.summaryPanel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface);
}

.summaryItems {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 16px;
    width: 100%;
}

.summaryItem {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.summaryLabel {
    color: var(--text-tertiary);
    font-size: 12px;
}

.summaryValue {
    min-width: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
}

.summaryActions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

.rewardStrip {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.rewardItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-muted);
}

.rewardRank {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.rewardGroup {
    min-width: 0;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.configDialog {
    z-index: 1300;
}

.configDialogPaper {
    width: min(760px, calc(100vw - 32px));
    border-radius: 8px;
}

.configDialogForm {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.configDialogTitle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 14px;
}

.configDialogTitle h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.4;
}

.configDialogTitle span {
    color: var(--text-tertiary);
    font-size: 13px;
}

.configDialogContent {
    padding: 0 24px 8px;
}

.configDialogActions {
    padding: 14px 24px 22px;
}

.rewardEditorList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rewardEditor {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-muted);
}

.rewardEditorHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.rewardEditorHeader span:last-child {
    min-width: 0;
    overflow: hidden;
    color: var(--text-tertiary);
    font-weight: 500;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.periodCell {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.statusBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.statusActive {
    background: color-mix(in srgb, var(--success) 12%, transparent);
    color: var(--success);
}

.statusPending {
    background: color-mix(in srgb, var(--warning) 14%, transparent);
    color: var(--warning);
}

.statusDanger {
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    color: var(--danger);
}

.statusDisabled {
    background: var(--surface-muted);
    color: var(--text-tertiary);
}

@media (max-width: 980px) {
    .summaryPanel {
        align-items: stretch;
        flex-direction: column;
    }

    .summaryItems,
    .rewardStrip,
    .rewardEditorList {
        grid-template-columns: 1fr;
    }

    .summaryActions {
        justify-content: flex-end;
    }
}
