.habit-shell {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 42px;
}

.habit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.parent-console-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(8, 14, 30, .72);
    backdrop-filter: blur(18px);
}

.parent-console-header .console-kicker {
    margin-bottom: 2px;
    font-size: 10px;
}

.parent-console-header h1 {
    font-size: clamp(22px, 4vw, 30px);
}

.parent-save-top {
    min-height: 40px;
    padding: 0 16px;
}

.parent-console-main {
    min-width: 0;
}

.parent-console-main .habit-panel {
    margin: 10px 0;
}

.habit-header h1,
.habit-panel h2,
.habit-panel h3 {
    margin: 0;
}

.habit-panel {
    margin: 16px 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.055));
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 46px rgba(0,0,0,.24);
    backdrop-filter: blur(16px);
}

.habit-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(126,182,255,.055), transparent 28%, transparent 72%, rgba(119,224,182,.055)),
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 24%);
}

.habit-panel > * {
    position: relative;
    z-index: 1;
}

.habit-panel h1,
.habit-panel h2,
.habit-panel h3,
.habit-card h3,
.habit-card strong {
    color: var(--text-main);
}

.habit-panel p,
.habit-panel small,
.habit-card p {
    color: var(--text-muted);
}

.habit-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 10px;
}

.home-shell .habit-section-title small {
    display: none;
}

.habit-form-grid,
.habit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

/* 自定义任务卡片样式 */
.custom-task-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(126,182,255,.08) 0%, rgba(119,224,182,.06) 100%);
    border: 1px solid rgba(126,182,255,.15);
    box-shadow: 0 4px 16px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.06);
    transition: transform .2s, box-shadow .2s;
}

.custom-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}

.custom-daily-card {
    background: linear-gradient(135deg, rgba(255,224,130,.1) 0%, rgba(255,183,107,.06) 100%);
    border-color: rgba(255,224,130,.2);
}

.custom-unlimited-card {
    background: linear-gradient(135deg, rgba(126,182,255,.08) 0%, rgba(119,224,182,.06) 100%);
    border-color: rgba(126,182,255,.15);
}

.custom-task-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.custom-task-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-task-stars {
    font-size: 13px;
    font-weight: 700;
    color: #62f0b6;
    text-shadow: 0 0 8px rgba(98,240,182,.4);
}

.custom-task-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.custom-task-action {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.custom-task-action.complete {
    background: linear-gradient(135deg, #62f0b6 0%, #3dd68c 100%);
    color: #0a2012;
    box-shadow: 0 2px 10px rgba(98,240,182,.35);
}

.custom-task-action.complete:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(98,240,182,.45);
}

.custom-task-action.complete:active {
    transform: scale(0.98);
}

.custom-task-action.pending {
    background: rgba(255,224,130,.18);
    color: #ffe082;
    cursor: pointer;
    box-shadow: none;
}

.custom-task-action.withdraw {
    background: rgba(255,127,127,.12);
    color: #ffb7b7;
    font-size: 12px;
    padding: 8px 12px;
}

.custom-task-action.withdraw:hover {
    background: rgba(255,127,127,.25);
}

.custom-task-action.approve {
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b35 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255,159,67,.4);
}

.custom-task-action.approve:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255,159,67,.5);
}

.habit-field,
.habit-card {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.065);
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.weekly-report {
    display: grid;
    gap: 14px;
}

.weekly-report-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.weekly-report-head h3,
.weekly-report-records h3 {
    margin: 0;
}

.weekly-report-head span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.weekly-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.weekly-report-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.065);
}

.weekly-report-card h3 {
    margin: 0;
    font-size: 15px;
}

.weekly-report-card p {
    margin: 0;
    font-size: 13px;
}

.total-report-card strong {
    color: var(--primary-green) !important;
    font-size: clamp(26px, 4vw, 38px);
}

.weekly-report-records {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.weekly-empty-message {
    margin: 0;
}

.planet-status-card {
    min-height: 132px;
    padding: 18px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(145deg, rgba(126,182,255,.16), rgba(119,224,182,.08));
}

.star-bag-card {
    min-height: 188px;
}

.planet-status-card h3 {
    font-size: 15px;
    letter-spacing: .02em;
}

.planet-status-card strong {
    display: block;
    min-height: 38px;
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.25;
    letter-spacing: .02em;
    word-break: break-word;
}

.planet-status-card .star-field {
    min-height: 76px;
    font-size: clamp(21px, 3vw, 30px);
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.star-count-line {
    margin: 0;
    color: #ffe98a !important;
    font-size: 16px;
    font-weight: 900;
}

.streak-status-card .streak-days {
    font-size: clamp(34px, 5vw, 52px);
    color: var(--primary-green) !important;
}

.streak-bonus-box {
    grid-column: 1 / -1;
    overflow-x: auto;
}

.streak-bonus-box small {
    color: var(--text-muted);
    font-weight: 700;
}

.streak-bonus-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
}

.streak-bonus-row b,
.streak-bonus-row span {
    color: var(--text-main);
    font-weight: 800;
    white-space: nowrap;
}

.habit-panel .streak-bonus-row input {
    flex: 0 0 56px;
    width: 56px !important;
    max-width: 56px !important;
    min-width: 56px !important;
    margin: 0;
    padding: 6px 7px;
    text-align: center;
}

.reward-rule-groups {
    display: grid;
    gap: 14px;
}

.reward-rule-group {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.045);
}

.reward-rule-group h4 {
    margin: 0;
    color: var(--primary-green);
}

.compact-reward-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.star-balance {
    color: #ffe98a !important;
    text-shadow: 0 0 18px rgba(255, 233, 138, .28);
}

.mission-home-card {
    gap: 12px;
    padding: 18px;
}

.task-cards-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(var(--task-count, 2), minmax(0, 1fr));
    gap: 14px;
}

.mission-home-card.is-complete {
    border-color: rgba(119,224,182,.32);
    background:
        radial-gradient(circle at 88% 12%, rgba(119,224,182,.20), transparent 34%),
        rgba(255,255,255,.075);
}

.mission-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mission-card-head h3,
.mission-card-head p {
    margin: 0;
}

.mission-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(126,182,255,.15);
    font-size: 26px;
}

.mission-status-pill,
.mission-finished {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(119,224,182,.22);
    background: rgba(119,224,182,.13);
    color: var(--primary-green);
    font-weight: 900;
}

.mission-finished.muted {
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.08);
    color: var(--text-muted);
}

.mission-progress-line {
    margin: 0;
    min-height: 28px;
    font-weight: 800;
}

.task-star-rules,
.daily-total-reward {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 233, 138, .10);
    border: 1px solid rgba(255, 233, 138, .20);
    color: #ffe98a;
    font-weight: 900;
}

.task-star-rules p,
.daily-total-reward p {
    margin: 0;
}

.daily-total-reward {
    grid-column: 1 / -1;
}

.checkin-reward-line {
    margin: 8px 0 0;
    font-weight: 900;
    color: #ffe98a;
}

.record-story-card {
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 800;
}

.reward-shop-card p {
    margin: 0;
}

#habit-rewards.habit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#habit-redemptions.habit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.reward-shop-card {
    min-height: 126px;
    grid-template-rows: 1fr auto;
    overflow: hidden;
}

.reward-pretty-card {
    padding: 13px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 8%, rgba(255,233,138,.10), transparent 32%),
        rgba(255,255,255,.065);
}

.reward-pretty-card.claim {
    border-color: rgba(119,224,182,.28);
    background:
        radial-gradient(circle at 88% 8%, rgba(119,224,182,.15), transparent 34%),
        rgba(255,255,255,.065);
}

.reward-pretty-card.done {
    opacity: .72;
}

.reward-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.reward-card-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(126,182,255,.14);
    font-size: 19px;
}

.reward-shop-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.reward-shop-main h3,
.reward-shop-main p {
    margin: 0;
    overflow-wrap: anywhere;
}

.reward-card-top h3 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

.reward-card-top > div {
    min-width: 0;
}

.reward-shop-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.reward-shop-bottom strong {
    color: #ffe98a !important;
    font-size: 18px;
    white-space: nowrap;
}

.reward-shop-bottom .btn-main {
    flex: 0 0 auto;
    width: auto;
    min-width: 56px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
}

.reward-shop-bottom .btn-main:disabled,
.reward-shop-bottom .btn-main.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(1);
}

.streak-bonus-line {
    margin: 0;
    color: #ffe98a !important;
    font-weight: 900;
}

.reward-admin-list,
.reward-history-group,
.reward-history-items {
    display: grid;
    gap: 10px;
}

.reward-history-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 920px) {
    #habit-rewards.habit-grid,
    .reward-history-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .task-cards-row {
        grid-template-columns: 1fr;
    }

    #habit-rewards.habit-grid,
    .reward-history-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.reward-admin-item,
.reward-history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 16px;
    background: rgba(255,255,255,.06);
}

.reward-admin-item.disabled,
.reward-history-card.compact {
    opacity: .72;
}

.reward-admin-item h3,
.reward-history-card h3,
.reward-admin-item p,
.reward-history-card p,
.reward-history-group h3 {
    margin: 0;
}

.reward-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.reward-history-group.picked {
    margin-top: 12px;
}

.reward-history-card.compact {
    padding: 9px 11px;
}

.reward-history-card .btn-main {
    width: auto;
    min-width: 0;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
}

.tiny-action {
    line-height: 1.1;
    white-space: nowrap;
}

.records-preview-actions {
    margin-top: 10px;
}

.records-preview-actions .btn-main {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
}

.records-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(4,10,20,.52);
    backdrop-filter: blur(4px);
}

.records-dialog {
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background: rgba(8,14,30,.96);
    box-shadow: 0 22px 70px rgba(0,0,0,.42);
}

.records-dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.records-dialog-head h2,
.record-insight-card h3 {
    margin: 0;
}

.records-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: var(--text-main);
    font-size: 20px;
}

.record-insights {
    display: grid;
    gap: 12px;
}

.record-insight-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 16px;
    background: rgba(255,255,255,.055);
}

.record-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.record-all-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
}

.habit-field span,
.habit-field legend {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
}

.habit-field input,
.habit-field select,
.habit-field textarea,
.habit-panel input,
.habit-panel select,
.habit-panel textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    font: inherit;
    background: rgba(7, 12, 27, .58);
    color: var(--text-main);
}

.habit-field input::placeholder,
.habit-panel input::placeholder,
.habit-panel textarea::placeholder {
    color: rgba(238,247,255,.48);
}

.habit-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: 0;
}

.compact-checks {
    align-items: center;
    gap: 7px;
    padding: 10px;
}

.compact-checks legend {
    flex: 0 0 100%;
    margin-bottom: 2px;
    color: var(--accent);
}

.compact-checks label {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 13px;
}

.habit-checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(126,182,255,.12);
    color: var(--text-main);
    font-weight: 700;
}

.habit-panel .btn-main,
.habit-card .btn-main,
.habit-card .nav-link,
.habit-card .console-button {
    color: #102019;
}

.habit-card .secondary {
    color: #10192a;
}

.habit-checks input,
.habit-field input[type="checkbox"] {
    width: auto;
}

.habit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.parent-overview-panel {
    padding: 16px;
}

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

.parent-stat-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.07);
}

.parent-stat-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.parent-stat-card strong {
    color: var(--text-main);
    font-size: clamp(18px, 2.4vw, 24px);
}

.parent-stat-card small {
    color: var(--text-muted);
}

.control-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(8, 14, 30, .34);
}

.control-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.control-card-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-card-head small {
    color: var(--text-muted);
}

.control-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(126,182,255,.13);
    font-size: 22px;
}

.switch-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 800;
}

.compact-control-panel .habit-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.habit-message {
    margin-top: 10px;
    color: var(--text-muted);
    font-weight: 700;
}

.mission-title {
    color: var(--text-main);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    letter-spacing: -.03em;
}

.mission-check-card {
    display: grid;
    gap: 14px;
}

.mission-check-list {
    display: grid;
    gap: 10px;
}

.mission-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 16px;
    background: rgba(255,255,255,.07);
    color: var(--text-main);
}

.mission-check-item span {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(119,224,182,.14);
}

.mission-check-item b {
    color: var(--text-main);
    font-size: clamp(15px, 2.3vw, 18px);
    line-height: 1.35;
}

.mission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.mission-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(119,224,182,.12);
    color: var(--primary-green);
    font-size: 13px;
    font-weight: 900;
}

.mission-list {
    margin: 6px 0 0;
    padding-left: 20px;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 700;
}


.parent-entry {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 20;
}

@media (max-width: 640px) {
    .habit-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .parent-entry {
        position: static;
    }

    .parent-save-top {
        width: 100%;
    }

    .habit-panel {
        padding: 16px;
    }

    .parent-overview {
        grid-template-columns: 1fr;
    }

    .control-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .streak-bonus-row { font-size: 13px; }
}

/* 自定义任务管理样式 */
.custom-task-admin-list,
.custom-task-pending-list {
    display: grid;
    gap: 10px;
}

.custom-task-admin-item,
.custom-task-pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.04);
}

.custom-task-admin-info,
.custom-task-pending-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.custom-task-admin-info strong,
.custom-task-pending-info strong {
    font-size: 14px;
    color: var(--text-main);
}

.custom-task-admin-info span,
.custom-task-pending-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.custom-task-pending-info small {
    font-size: 11px;
    color: var(--text-muted);
    opacity: .7;
}

.custom-task-admin-actions,
.custom-task-pending-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.habit-btn-small {
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255,255,255,.1);
    color: var(--text-main);
    transition: background .2s;
}

.habit-btn-small:hover {
    background: rgba(255,255,255,.18);
}

.habit-btn-small.danger {
    background: rgba(255,127,127,.12);
    color: #ff7f7f;
}

.habit-btn-small.danger:hover {
    background: rgba(255,127,127,.24);
}

.habit-btn-small.approve {
    background: rgba(98,240,182,.15);
    color: #62f0b6;
}

.habit-btn-small.approve:hover {
    background: rgba(98,240,182,.28);
}


/* 家长后台奖励列表压缩版：减少单个奖励占用高度，方便管理更多奖励 */
.reward-admin-list {
    gap: 7px;
}

.reward-admin-item {
    min-height: auto;
    padding: 8px 10px;
    border-radius: 12px;
    gap: 10px;
}

.reward-admin-info {
    min-width: 0;
    flex: 1;
}

.reward-admin-info h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.25;
}

.reward-admin-info p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.reward-admin-info p b {
    color: var(--primary-green);
}

.reward-admin-actions {
    flex: 0 0 auto;
    gap: 6px;
}

.reward-admin-actions .habit-btn-small {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
}

@media (max-width: 680px) {
    .reward-admin-item {
        align-items: stretch;
        flex-direction: column;
    }
    .reward-admin-actions {
        justify-content: flex-start;
    }
}
