/* growth.css - Growth center, badges, tasks, admin growth */

body.route-growth .page-frame {
    width: min(calc(100% - 18px), 960px);
}

body.route-growth .main-shell {
    gap: 18px;
}

.growth-shell {
    display: grid;
    gap: 20px;
}

.growth-level-card {
    background:
        linear-gradient(135deg, rgba(179, 78, 46, 0.06), transparent 60%),
        var(--surface);
}

.growth-level-head {
    display: flex;
    gap: 18px;
    align-items: center;
}

.growth-level-info {
    flex: 1;
    display: grid;
    gap: 10px;
}

.growth-level-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.growth-level-name h1 {
    margin: 0;
    font-size: 1.3rem;
}

.growth-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.growth-level-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--muted);
}

.growth-exp-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.growth-exp-bar-wrap small {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.82rem;
}

.growth-exp-bar {
    flex: 1;
    height: 10px;
    border-radius: 99px;
    background: rgba(42, 28, 21, 0.08);
    overflow: hidden;
}

.growth-exp-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), #e2784a);
    transition: width 0.4s ease;
}

.growth-checkin-card {
    background:
        linear-gradient(135deg, rgba(179, 78, 46, 0.05), transparent 72%),
        var(--surface);
}

.growth-checkin-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 8px 0 0;
}

.growth-streak-display {
    text-align: left;
    display: grid;
    gap: 2px;
}

.growth-streak-num {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--accent);
}

.growth-streak-display span {
    font-size: 0.85rem;
    color: var(--muted);
}

.growth-checkin-actions {
    display: flex;
    justify-content: flex-end;
}

.growth-badges-card--full {
    background:
        radial-gradient(circle at top right, rgba(202, 136, 0, 0.10), transparent 40%),
        linear-gradient(135deg, rgba(64, 40, 29, 0.03), transparent 65%),
        var(--surface);
}

.growth-badges-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
}

.growth-badges-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(186, 118, 56, 0.16);
    background: rgba(255, 250, 244, 0.9);
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.growth-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.growth-badge-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(140, 99, 66, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 245, 0.72)),
        rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 26px rgba(69, 42, 24, 0.06);
    position: relative;
    overflow: hidden;
}

.growth-badge-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: rgba(140, 99, 66, 0.18);
}

.growth-badge-item.rarity-rare::before {
    background: rgba(51, 102, 204, 0.32);
}

.growth-badge-item.rarity-epic::before {
    background: rgba(136, 51, 204, 0.32);
}

.growth-badge-item.rarity-legendary::before {
    background: rgba(204, 136, 0, 0.36);
}

.growth-badge-medal {
    flex-shrink: 0;
}

.growth-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.35rem;
    flex-shrink: 0;
    background: rgba(42, 28, 21, 0.06);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 10px 18px rgba(69, 42, 24, 0.10);
}

.growth-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.growth-badge-copy {
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
    min-width: 0;
}

.growth-badge-copy strong {
    font-size: 1rem;
}

.growth-badge-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.growth-badge-rarity {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.growth-badge-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.86rem;
}

.growth-badge-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.growth-badge-date {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted);
}

.growth-badge-boost-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.growth-badge-boost {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(58, 113, 86, 0.09);
    color: var(--success);
}

.growth-badge-boost.boost-exp {
    background: rgba(100, 160, 255, 0.12);
    color: #6ea8ff;
}

.growth-badge-boost.boost-pts {
    background: rgba(212, 168, 60, 0.14);
    color: #e8c84a;
}

.growth-badge-boost.boost-checkin {
    background: rgba(160, 100, 220, 0.12);
    color: #c48aff;
}

.growth-badge-boost.boost-legend {
    background: rgba(255, 100, 100, 0.1);
    color: #ff8a80;
    font-size: 0.72rem;
    border: 1px dashed rgba(255, 100, 100, 0.3);
}

.rarity-common {
    color: #6e5449;
    background: rgba(110, 84, 73, 0.08);
    border-color: rgba(110, 84, 73, 0.15);
}

.rarity-rare {
    color: #3366cc;
    background: rgba(51, 102, 204, 0.10);
    border-color: rgba(51, 102, 204, 0.20);
}

.rarity-epic {
    color: #8833cc;
    background: rgba(136, 51, 204, 0.10);
    border-color: rgba(136, 51, 204, 0.20);
}

.rarity-legendary {
    color: #cc8800;
    background: rgba(204, 136, 0, 0.12);
    border-color: rgba(204, 136, 0, 0.25);
}

.growth-badge-icon.rarity-common {
    background: rgba(110, 84, 73, 0.10);
}

.growth-badge-icon.rarity-rare {
    background: rgba(51, 102, 204, 0.12);
    color: #3366cc;
}

.growth-badge-icon.rarity-epic {
    background: rgba(136, 51, 204, 0.12);
    color: #8833cc;
}

.growth-badge-icon.rarity-legendary {
    background: rgba(204, 136, 0, 0.14);
    color: #cc8800;
}

span.growth-level-badge.rarity-common {
    color: #6e5449;
    background: rgba(110, 84, 73, 0.10);
}

span.growth-level-badge.rarity-rare {
    color: #3366cc;
    background: rgba(51, 102, 204, 0.12);
}

span.growth-level-badge.rarity-epic {
    color: #8833cc;
    background: rgba(136, 51, 204, 0.12);
}

span.growth-level-badge.rarity-legendary {
    color: #cc8800;
    background: rgba(204, 136, 0, 0.14);
}

.growth-task-list {
    display: grid;
    gap: 12px;
}

.growth-task-groups {
    display: grid;
    gap: 18px;
}

.growth-task-group {
    display: grid;
    gap: 12px;
}

.growth-task-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.growth-task-group-head h3 {
    margin: 0;
    font-size: 1rem;
}

.growth-task-group-count {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(42, 28, 21, 0.06);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.growth-task-item {
    display: grid;
    gap: 8px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
}

.growth-task-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.growth-task-head strong {
    font-size: 0.95rem;
}

.growth-task-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.growth-task-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.growth-task-type--daily {
    background: rgba(47, 118, 89, 0.10);
    color: #2f7659;
}

.growth-task-type--single {
    background: rgba(179, 78, 46, 0.10);
    color: #9c4d2d;
}

.growth-task-rewards {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.growth-task-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.growth-task-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.growth-task-footer small {
    color: var(--muted);
    font-size: 0.82rem;
}

.growth-task-hint {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.growth-submit-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.growth-submit-input {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-strong);
    font-size: 0.85rem;
    width: 160px;
}

.growth-log-list {
    display: grid;
    gap: 8px;
}

.growth-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.4);
}

.growth-log-main {
    display: flex;
    gap: 10px;
    align-items: center;
}

.growth-log-main strong {
    color: var(--accent);
    font-size: 0.92rem;
}

.growth-log-main span {
    color: var(--muted);
    font-size: 0.85rem;
}

.growth-log-item small {
    color: var(--muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.growth-admin-badge-row {
    display: grid;
    gap: 8px;
}

.growth-admin-badge-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.growth-admin-badge-info div {
    display: grid;
    gap: 2px;
}

.growth-admin-badge-info small {
    color: var(--muted);
    font-size: 0.82rem;
}

.growth-admin-badge-bonuses {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.growth-badge-edit-sheet {
    width: min(720px, calc(100vw - 24px));
}

.growth-badge-edit-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
}

.growth-badge-edit-preview-copy {
    display: grid;
    gap: 3px;
}

.growth-badge-edit-preview-copy small {
    color: var(--muted);
    font-size: 0.82rem;
}

.growth-submission-card {
    display: grid;
    gap: 8px;
}

.growth-review-input {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-strong);
    font-size: 0.85rem;
    width: 180px;
}

.profile-action-icon.action-emerald {
    background: linear-gradient(135deg, #2f7659, #47b37e);
    color: #fff;
}

@media (max-width: 720px) {
    .growth-badge-grid {
        grid-template-columns: 1fr;
    }

    .growth-level-head {
        flex-direction: column;
        text-align: center;
    }

    .growth-level-name {
        justify-content: center;
    }

    .growth-level-meta {
        justify-content: center;
    }

    .growth-exp-bar-wrap {
        flex-direction: column;
        gap: 6px;
    }

    .growth-checkin-body {
        flex-direction: column;
        align-items: stretch;
    }

    .growth-streak-display {
        text-align: center;
    }

    .growth-checkin-actions {
        justify-content: stretch;
    }

    .growth-checkin-actions form,
    .growth-checkin-actions .button,
    .growth-checkin-actions form .button {
        width: 100%;
    }

    .growth-badges-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .growth-badge-item {
        padding: 14px;
    }

    .growth-badge-icon {
        width: 52px;
        height: 52px;
    }

    .growth-submit-form {
        flex-direction: column;
        align-items: stretch;
    }

    .growth-submit-input {
        width: 100%;
    }
}

.growth-center {
    display: grid;
    gap: 16px;
}

.growth-center-hero {
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(216, 176, 106, 0.08), transparent 68%),
        var(--surface);
}

.growth-center-hero-main {
    display: flex;
    gap: 16px;
    align-items: center;
}

.growth-center-hero-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 10px;
}

.growth-center-hero-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.growth-center-hero-head h1 {
    margin: 0;
    font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
}

.growth-center-level {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(216, 176, 106, 0.12);
    color: #f3d7a0;
    font-size: 0.78rem;
    font-weight: 700;
}

.growth-center-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.growth-center-bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: rgba(42, 28, 21, 0.08);
    overflow: hidden;
}

.growth-center-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #d8b06a 55%, #f0d79a);
}

.growth-center-bar-wrap small {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.8rem;
}

.growth-center-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.84rem;
}

.growth-center-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.growth-center-card {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.growth-center-checkin,
.growth-center-badges,
.growth-center-tasks,
.growth-center-log {
    background:
        linear-gradient(135deg, rgba(216, 176, 106, 0.04), transparent 72%),
        var(--surface);
}

.growth-checkin-stack {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.growth-checkin-streak {
    display: grid;
    gap: 2px;
}

.growth-checkin-streak strong {
    font-size: clamp(2rem, 1.6rem + 1.8vw, 2.8rem);
    color: var(--accent);
    line-height: 1;
}

.growth-checkin-streak span {
    color: var(--muted);
    font-size: 0.84rem;
}

.growth-center-section-head {
    align-items: flex-end;
}

.growth-center-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(42, 28, 21, 0.06);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.growth-badge-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(148px, 160px));
    justify-content: start;
}

.growth-badge-item {
    display: grid;
    gap: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    align-content: start;
}

.growth-badge-item[open] {
    grid-column: 1 / -1;
}

.growth-center .growth-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
}

.growth-badge-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
}

.growth-badge-summary::-webkit-details-marker {
    display: none;
}

.growth-badge-summary-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.growth-badge-summary-copy strong {
    max-width: 5.6em;
    font-size: 0.9rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.growth-badge-summary-toggle {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1;
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

.growth-badge-item[open] .growth-badge-summary-toggle {
    transform: rotate(45deg);
}

.growth-badge-detail {
    display: grid;
    gap: 8px;
    padding: 0 14px 14px;
}

.growth-badge-item:not([open]) .growth-badge-detail {
    display: none;
}

.growth-badge-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.growth-badge-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.growth-task-groups {
    display: grid;
    gap: 14px;
}

.growth-task-group {
    display: grid;
    gap: 10px;
}

.growth-task-group-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.growth-task-group-head h3 {
    margin: 0;
    font-size: 0.98rem;
}

.growth-task-group-count {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(42, 28, 21, 0.06);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.growth-task-list {
    display: grid;
    gap: 10px;
}

.growth-task-item {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
}

.growth-task-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.growth-task-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.growth-task-title-wrap strong {
    font-size: 0.94rem;
}

.growth-task-rewards {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.growth-task-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.growth-task-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.growth-task-hint {
    color: var(--muted);
    font-size: 0.82rem;
}

.growth-submit-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.growth-submit-input {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-strong);
    font-size: 0.85rem;
    min-width: 160px;
    flex: 1 1 180px;
}

.growth-log-list {
    display: grid;
    gap: 8px;
}

.growth-log-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.4);
}

.growth-log-main {
    display: flex;
    gap: 10px;
    align-items: center;
}

.growth-log-main strong {
    color: var(--accent);
    font-size: 0.92rem;
}

.growth-log-main span {
    color: var(--muted);
    font-size: 0.84rem;
}

.growth-log-item small {
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.growth-center--compact .growth-center-hero {
    padding: 16px;
}

.growth-center--compact .growth-center-grid {
    gap: 14px;
}

.growth-center--compact .growth-center-card {
    padding: 16px;
}

@media (max-width: 860px) {
    .growth-center-grid {
        grid-template-columns: 1fr;
    }

    .growth-center-hero-main,
    .growth-checkin-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .growth-center-hero {
        text-align: center;
    }

    .growth-center-hero-head {
        justify-content: center;
    }

    .growth-center-bar-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .growth-center-meta {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .growth-center-card {
        padding: 14px;
    }

    .growth-badge-summary {
        padding: 11px 12px;
    }

    .growth-task-item {
        padding: 12px;
    }

    .growth-log-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .growth-log-item small {
        white-space: normal;
    }
}

.growth-badge-group {
    display: grid;
    gap: 10px;
}

.growth-badge-group + .growth-badge-group {
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.growth-badge-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.growth-badge-group-head h3 {
    margin: 0;
    font-size: 0.94rem;
}

.growth-badge-grid--locked {
    grid-template-columns: repeat(auto-fit, minmax(148px, 160px));
}

.growth-badge-item--locked {
    border-style: dashed;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(9, 14, 25, 0.78);
}

.growth-badge-summary--locked {
    cursor: default;
}

.growth-badge-summary-copy small {
    color: var(--muted);
    font-size: 0.76rem;
}

.growth-badge-item--locked .growth-badge-icon {
    filter: grayscale(1) saturate(0.35);
    opacity: 0.78;
}

.growth-badge-lock {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.growth-badge-item--locked .growth-badge-summary {
    min-height: 60px;
}

.growth-badge-item--locked .growth-badge-lock {
    display: none;
}

.growth-center-log {
    align-content: start;
}

.growth-log-summary {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(216, 176, 106, 0.05), transparent 75%),
        rgba(255, 255, 255, 0.4);
}

.growth-log-summary-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.growth-log-summary-main strong {
    color: var(--accent);
    font-size: 1.18rem;
    line-height: 1;
}

.growth-log-summary-main span {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.growth-log-summary small {
    color: var(--muted);
    font-size: 0.8rem;
}

.growth-log-panel {
    display: grid;
    gap: 12px;
}

.growth-log-panel-body {
    order: 1;
}

.growth-log-toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    list-style: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.growth-log-toggle::-webkit-details-marker {
    display: none;
}

.growth-log-toggle:hover {
    background: rgba(216, 176, 106, 0.12);
    border-color: rgba(216, 176, 106, 0.22);
}

.growth-log-toggle:focus-visible {
    outline: 2px solid rgba(216, 176, 106, 0.35);
    outline-offset: 2px;
}

.growth-log-toggle-label--open {
    display: none;
}

.growth-log-panel[open] .growth-log-toggle-label--closed {
    display: none;
}

.growth-log-panel[open] .growth-log-toggle-label--open {
    display: inline;
}

.growth-log-panel[open] .growth-log-toggle {
    background: rgba(216, 176, 106, 0.1);
    border-color: rgba(216, 176, 106, 0.24);
}

.growth-log-panel .growth-log-list {
    gap: 10px;
}

@media (max-width: 720px) {
    .growth-badge-grid,
    .growth-badge-grid--locked {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .growth-log-summary-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .growth-log-toggle {
        width: 100%;
        justify-self: stretch;
    }
}

/* Growth center layout refresh */
.growth-center {
    gap: 18px;
}

.growth-center-hero {
    padding: 20px 22px;
}

.growth-center-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.growth-center-hero-profile {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.growth-center-hero-copy {
    gap: 12px;
}

.growth-center-meta {
    display: none;
}

.growth-center-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 10px;
}

.growth-center-stat {
    display: grid;
    gap: 4px;
    min-width: 96px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(7, 12, 21, 0.72);
}

.growth-center-stat strong {
    font-size: 1.14rem;
    line-height: 1;
    color: var(--text);
}

.growth-center-stat span {
    color: var(--muted);
    font-size: 0.78rem;
}

.growth-center-bonus-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.growth-center-bonus-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.growth-center-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
    gap: 16px;
    align-items: start;
}

.growth-center-body {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 16px;
    align-items: start;
}

.growth-center-card {
    gap: 14px;
    padding: 16px 18px;
    align-content: start;
}

.growth-center-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.growth-center-card-title-row h2 {
    margin: 0;
    font-size: 1.02rem;
}

.growth-center--compact :is(.growth-center-card-title-row, .growth-center-section-head) p {
    display: none;
}

.growth-center--compact .growth-center-card {
    padding: 15px 16px;
}

.growth-center-checkin,
.growth-center-log {
    min-height: 0;
}

.growth-checkin-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.growth-checkin-streak {
    min-width: 82px;
}

.growth-checkin-streak strong {
    font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem);
}

.growth-checkin-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.growth-checkin-copy strong {
    font-size: 1rem;
    line-height: 1.2;
}

.growth-checkin-copy span {
    color: var(--muted);
    font-size: 0.84rem;
}

.growth-checkin-action {
    justify-self: end;
}

.growth-log-summary {
    padding: 14px 16px;
}

.growth-log-panel {
    gap: 10px;
}

.growth-log-toggle {
    width: 100%;
    justify-content: center;
}

.growth-center-body .growth-center-tasks,
.growth-center-body .growth-center-badges {
    min-height: 100%;
}

.growth-center-badges {
    gap: 16px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(216, 176, 106, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(17, 24, 40, 0.96), rgba(10, 15, 25, 0.94));
}

.growth-badge-group {
    gap: 10px;
    position: relative;
    padding: 12px 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(8, 13, 23, 0.68);
}

.growth-badge-group + .growth-badge-group {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.growth-center-badges .growth-badge-grid,
.growth-center-badges .growth-badge-grid--locked {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.growth-center-badges .growth-badge-item[open] {
    grid-column: 1 / -1;
}

.growth-center-badges .growth-badge-item,
.growth-center-badges .growth-badge-item--locked {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    background:
        linear-gradient(180deg, rgba(29, 38, 60, 0.96), rgba(16, 24, 38, 0.94)),
        rgba(9, 14, 24, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 22px rgba(0, 0, 0, 0.16);
}

body.theme-midnight .growth-center-badges .growth-badge-tile {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 64px;
    padding: 10px 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(29, 38, 60, 0.96), rgba(16, 24, 38, 0.94)),
        rgba(9, 14, 24, 0.9);
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 22px rgba(0, 0, 0, 0.16);
}

.growth-center-badges .growth-badge-item::after,
.growth-center-badges .growth-badge-item--locked::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(216, 176, 106, 0.18), rgba(216, 176, 106, 0.04));
    opacity: 0.9;
}

.growth-center-badges .growth-badge-summary {
    min-height: 0;
    padding: 0;
}

.growth-center-badges .growth-badge-summary-copy strong {
    font-size: 0.88rem;
}

.growth-badge-tile {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.growth-badge-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 176, 106, 0.22);
}

.growth-badge-tile:focus-visible {
    outline: 2px solid rgba(216, 176, 106, 0.35);
    outline-offset: 2px;
}

.growth-badge-tile .growth-badge-medal {
    flex: 0 0 auto;
}

.growth-center-badges .growth-badge-tile .growth-badge-summary-copy {
    display: block;
    min-width: 0;
}

body.theme-midnight .growth-center-badges .growth-badge-tile .growth-badge-summary-copy {
    display: block;
    min-width: 0;
}

.growth-center-badges .growth-badge-tile .growth-badge-summary-copy strong {
    display: block;
    width: 100%;
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.25;
    color: var(--text);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.growth-center-badges .growth-badge-tile .growth-badge-summary-copy small,
.growth-center-badges .growth-badge-summary-toggle,
.growth-center-badges .growth-badge-lock,
.growth-center-badges .growth-badge-detail {
    display: none;
}

body.theme-midnight [data-overlay-modal="growth-badge-detail"] {
    z-index: 140;
}

body.theme-midnight [data-overlay-modal="growth-badge-detail"] .overlay-backdrop {
    background: rgba(3, 6, 10, 0.36);
    backdrop-filter: blur(8px);
}

body.theme-midnight [data-overlay-modal="growth-badge-detail"] .overlay-panel.growth-badge-sheet {
    width: min(360px, calc(100vw - 20px));
    max-height: none;
    padding: 0;
    border: none;
    border-radius: 34px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

body.theme-midnight [data-overlay-modal="growth-badge-detail"] .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.growth-badge-sheet-head {
    position: absolute;
    inset: 16px 18px auto 18px;
    padding: 0 48px 0 0;
    z-index: 2;
}

.growth-badge-sheet-card {
    padding: 82px 18px 20px;
    border-radius: 34px;
    border: 1px solid rgba(216, 176, 106, 0.16);
    background:
        radial-gradient(circle at top center, rgba(216, 176, 106, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(33, 42, 64, 0.98), rgba(12, 18, 30, 0.97));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 28px 60px rgba(0, 0, 0, 0.34);
}

.growth-badge-sheet-body {
    display: grid;
    gap: 16px;
    justify-items: stretch;
}

.growth-badge-sheet-hero {
    display: grid;
    gap: 14px;
    justify-items: stretch;
    text-align: center;
}

.growth-badge-sheet-icon {
    width: 156px;
    height: 214px;
    border-radius: 30px;
    display: grid;
    place-items: start center;
    padding-top: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(8, 12, 22, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 18px 38px rgba(0, 0, 0, 0.3);
}

.growth-badge-sheet-icon::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(216, 176, 106, 0.34), rgba(216, 176, 106, 0.08));
}

.growth-badge-sheet-icon .growth-badge-icon {
    width: 128px;
    height: 128px;
    border-radius: 30px;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.growth-badge-sheet-copy {
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}

.growth-badge-sheet-copy p {
    margin: 0;
    max-width: none;
    color: var(--muted);
    line-height: 1.7;
}

.growth-badge-sheet-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.growth-badge-sheet-info {
    display: grid;
    gap: 10px;
    width: 100%;
}

.growth-badge-sheet-info-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.035);
}

.growth-badge-sheet-info-item span {
    color: var(--muted);
    font-size: 0.78rem;
}

.growth-badge-sheet-info-item strong {
    font-size: 0.96rem;
    line-height: 1.3;
}

.growth-badge-sheet-bonuses {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

@media (max-width: 720px) {
    body.theme-midnight [data-overlay-modal="growth-badge-detail"] .overlay-panel.growth-badge-sheet {
        width: min(340px, calc(100vw - 16px));
    }

    .growth-badge-sheet-card {
        padding: 78px 16px 18px;
    }

    .growth-badge-sheet-icon {
        width: 148px;
        height: 202px;
    }

    .growth-badge-sheet-icon .growth-badge-icon {
        width: 120px;
        height: 120px;
    }
}

.growth-task-groups {
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.growth-task-group {
    gap: 10px;
    min-height: 100%;
    padding: 12px 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(8, 13, 23, 0.66);
}

.growth-task-group + .growth-task-group {
    padding-top: 12px;
    border-top: none;
}

.growth-task-item {
    padding: 13px 14px;
    background:
        linear-gradient(180deg, rgba(20, 29, 44, 0.92), rgba(12, 18, 30, 0.94)),
        rgba(11, 16, 26, 0.88);
    border-color: rgba(255, 255, 255, 0.06);
}

.growth-center-log .empty-state,
.growth-center-tasks .empty-state,
.growth-center-badges .empty-state {
    min-height: 88px;
    display: grid;
    place-items: center start;
}

@media (max-width: 980px) {
    .growth-center-hero-main,
    .growth-center-overview,
    .growth-center-body {
        grid-template-columns: 1fr;
    }

    .growth-center-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .growth-task-groups {
        grid-template-columns: 1fr;
    }

    .growth-task-group + .growth-task-group {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .growth-center-badges .growth-badge-grid,
    .growth-center-badges .growth-badge-grid--locked {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .growth-center-hero {
        padding: 16px;
    }

    .growth-center-hero-main,
    .growth-center-hero-profile,
    .growth-checkin-strip {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .growth-center-hero-profile {
        display: flex;
        text-align: center;
    }

    .growth-center-hero-head,
    .growth-center-bar-wrap {
        justify-content: center;
    }

    .growth-center-hero-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .growth-checkin-action,
    .growth-checkin-action form,
    .growth-checkin-action .button {
        width: 100%;
        justify-self: stretch;
    }

    .growth-center-body,
    .growth-center-overview {
        gap: 14px;
    }

    .growth-task-group {
        padding: 12px;
    }

    .growth-badge-group {
        padding: 12px;
    }

    .growth-center-badges .growth-badge-grid,
    .growth-center-badges .growth-badge-grid--locked {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
