:root {
    --bg: #06080b;

    --surface:
        rgba(16, 19, 24, 0.91);

    --surface-raised:
        rgba(21, 25, 31, 0.92);

    --surface-soft:
        rgba(24, 28, 35, 0.74);

    --surface-hover:
        rgba(31, 35, 44, 0.82);

    --line:
        rgba(255, 255, 255, 0.085);

    --line-strong:
        rgba(255, 255, 255, 0.15);

    --text: #f4f5f7;
    --muted: #969eaa;
    --faint: #666e79;

    --accent: #a985f4;
    --accent-bright: #bea4ff;

    --accent-soft:
        rgba(169, 133, 244, 0.11);

    --accent-medium:
        rgba(169, 133, 244, 0.18);

    --success: #86d8ae;

    --radius-xl: 28px;
    --radius-large: 24px;
    --radius-medium: 19px;
    --radius-small: 13px;

    --shadow-panel:
        0 22px 70px rgba(0, 0, 0, 0.27);

    --shadow-hover:
        0 18px 42px rgba(0, 0, 0, 0.24);

    --focus-ring:
        0 0 0 3px rgba(169, 133, 244, 0.18);
}


* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
    color-scheme: dark;
}


body {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at 18% -10%,
            rgba(110, 76, 180, 0.16),
            transparent 34%
        ),
        radial-gradient(
            circle at 92% 88%,
            rgba(68, 83, 175, 0.09),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #0a0c10 0%,
            #06080b 45%,
            #050608 100%
        );

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}


button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}


.hidden {
    display: none !important;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.bunker-background {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


.glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(125px);

    opacity: 0.075;
}


.glow-one {
    top: -180px;
    left: -120px;

    background: #8b5cf6;
}


.glow-two {
    right: -190px;
    bottom: -210px;

    background: #5365ff;
}


/* =========================================================
   PAGE / PANELS
   ========================================================= */

.dashboard-shell {
    position: relative;

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;
    padding: 42px 0 84px;
}


.bunker-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.027),
            rgba(255, 255, 255, 0.005)
        ),
        var(--surface);

    box-shadow: var(--shadow-panel);

    backdrop-filter: blur(18px);
}


/* =========================================================
   TYPOGRAPHY / LABELS
   ========================================================= */

.eyebrow,
.section-kicker,
.player-label {
    color: var(--accent);

    font-size: 0.67rem;
    font-weight: 800;

    letter-spacing: 0.17em;
    text-transform: uppercase;
}


/* =========================================================
   HEADER
   ========================================================= */

.command-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    padding: 27px 31px;
}


.command-header h1 {
    margin: 6px 0 5px;

    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 0.98;

    letter-spacing: -0.045em;
}


.command-header p {
    margin: 0;

    color: var(--muted);

    font-size: 0.88rem;
}


.player-block {
    min-width: 178px;

    padding: 7px 0 7px 25px;

    border-left: 1px solid var(--line);

    text-align: right;
}


.player-block strong {
    display: block;

    margin: 5px 0 3px;

    font-size: 1.04rem;
    letter-spacing: -0.015em;
}


.player-block > span:last-child {
    color: var(--muted);

    font-size: 0.72rem;
    font-weight: 650;

    letter-spacing: 0.075em;
}


/* =========================================================
   CONNECTION
   ========================================================= */

.connection-panel,
.connect-form-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    margin-top: 18px;
    padding: 30px 31px;
}


.connection-panel h2,
.connect-form-panel h2 {
    margin: 6px 0 7px;

    font-size: 1.32rem;
    letter-spacing: -0.02em;
}


.connection-panel p,
.connect-form-panel p {
    max-width: 560px;

    margin: 0;

    color: var(--muted);

    line-height: 1.6;
}


.primary-button {
    flex: 0 0 auto;

    padding: 11px 16px;

    border: 1px solid rgba(169, 133, 244, 0.38);
    border-radius: 12px;

    background: var(--accent-soft);

    color: #dfd2ff;

    font-size: 0.82rem;
    font-weight: 760;

    transition:
        transform 150ms ease,
        border-color 150ms ease,
        background 150ms ease;
}


.primary-button:hover {
    transform: translateY(-2px);

    border-color: rgba(169, 133, 244, 0.70);

    background: var(--accent-medium);
}


.primary-button:active {
    transform: translateY(0);
}


#connect-form {
    display: flex;

    gap: 10px;
}


#api-key {
    width: min(360px, 48vw);

    padding: 11px 14px;

    outline: none;

    border: 1px solid var(--line-strong);
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.25);

    color: var(--text);

    transition:
        border-color 150ms ease,
        background 150ms ease;
}


#api-key:focus {
    border-color: rgba(169, 133, 244, 0.58);

    background: rgba(0, 0, 0, 0.34);
}


.form-message {
    margin-top: 12px;

    color: var(--muted);

    font-size: 0.79rem;
}


/* =========================================================
   AUTHENTICATED DASHBOARD
   ========================================================= */

.dashboard-content {
    margin-top: 18px;
}


/* =========================================================
   PLAYER PATH
   ========================================================= */

.path-panel {
    position: relative;

    margin-bottom: 18px;
    padding: 25px 29px;

    overflow: hidden;
}


.path-panel::after {
    content: "";

    position: absolute;

    top: -90px;
    right: -70px;

    width: 210px;
    height: 210px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(169, 133, 244, 0.07),
            transparent 68%
        );

    pointer-events: none;
}


.path-panel-copy {
    position: relative;
    z-index: 1;
}


.path-title-row {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 6px;
}


.path-title-row h2 {
    margin: 0;

    font-size: clamp(1.3rem, 3vw, 1.78rem);

    letter-spacing: -0.035em;
}


.path-panel-copy > p {
    max-width: 760px;

    margin: 8px 0 0;

    color: var(--muted);

    font-size: 0.84rem;
    line-height: 1.58;
}


.path-change-button {
    padding: 6px 9px;

    border: 1px solid rgba(169, 133, 244, 0.28);
    border-radius: 9px;

    background: rgba(169, 133, 244, 0.07);

    color: #d8c9ff;

    font-size: 0.65rem;
    font-weight: 800;

    transition:
        transform 150ms ease,
        background 150ms ease,
        border-color 150ms ease;
}


.path-change-button:hover {
    transform: translateY(-1px);

    border-color: rgba(169, 133, 244, 0.58);

    background: rgba(169, 133, 244, 0.14);
}


.path-change-button:active {
    transform: translateY(0);
}


.path-chooser {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 9px;

    margin-top: 20px;
}


.path-option {
    min-width: 0;

    padding: 14px 13px;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.021);

    color: var(--text);

    text-align: left;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}


.path-option:hover {
    transform: translateY(-3px);

    border-color: rgba(169, 133, 244, 0.37);

    background: rgba(169, 133, 244, 0.065);

    box-shadow: var(--shadow-hover);
}


.path-option:active {
    transform: translateY(-1px);
}


.path-option.selected {
    border-color: rgba(169, 133, 244, 0.55);

    background:
        linear-gradient(
            145deg,
            rgba(169, 133, 244, 0.14),
            rgba(169, 133, 244, 0.045)
        );
}


.path-option-name {
    display: block;

    font-size: 0.86rem;
    font-weight: 800;
}


.path-option-short {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 0.67rem;
    line-height: 1.35;
}


.path-message {
    position: relative;
    z-index: 1;

    min-height: 16px;

    margin-top: 9px;

    color: var(--muted);

    font-size: 0.71rem;
}


/* =========================================================
   NEXT MOVE
   ========================================================= */

.next-move {
    position: relative;

    overflow: hidden;

    padding: 34px 35px;

    border-color: rgba(169, 133, 244, 0.19);

    background:
        linear-gradient(
            115deg,
            rgba(169, 133, 244, 0.095),
            rgba(255, 255, 255, 0.018) 45%,
            rgba(255, 255, 255, 0.004)
        ),
        var(--surface-raised);
}


.next-move::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            var(--accent-bright),
            rgba(169, 133, 244, 0.10)
        );
}


.next-move::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -115px;
    top: -120px;

    border: 1px solid rgba(169, 133, 244, 0.13);
    border-radius: 50%;

    box-shadow:
        0 0 0 35px rgba(169, 133, 244, 0.018);
}


.next-move-heading {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.priority-mark {
    padding: 6px 9px;

    border: 1px solid rgba(169, 133, 244, 0.27);
    border-radius: 999px;

    background: rgba(169, 133, 244, 0.055);

    color: #c9b4fb;

    font-size: 0.59rem;
    font-weight: 800;

    letter-spacing: 0.12em;
}


#next-move-content {
    position: relative;
    z-index: 1;
}


.next-move h2 {
    max-width: 720px;

    margin: 17px 0 8px;

    font-size: clamp(1.65rem, 3.8vw, 2.55rem);

    line-height: 1.08;
    letter-spacing: -0.04em;
}


.next-move p {
    max-width: 720px;

    margin: 0;

    color: var(--muted);

    font-size: 0.88rem;
    line-height: 1.65;
}


.next-action {
    display: inline-block;

    margin-top: 17px;

    color: #d7c8ff;

    font-size: 0.82rem;
    font-weight: 720;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-area,
.recommendation-area {
    margin-top: 38px;
}


.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 15px;
    padding: 0 3px;
}


.section-heading h2 {
    margin: 5px 0 0;

    font-size: 1.28rem;

    letter-spacing: -0.025em;
}


.section-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 0.78rem;
}


/* =========================================================
   SECTION CARDS
   ========================================================= */

.section-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 13px;
}


.section-card {
    position: relative;

    min-height: 184px;

    padding: 21px 21px 58px;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.005)
        ),
        var(--surface-soft);

    transition:
        transform 170ms ease,
        border-color 170ms ease,
        background 170ms ease,
        box-shadow 170ms ease;
}


.section-card.available:hover {
    transform: translateY(-4px);

    border-color: rgba(169, 133, 244, 0.31);

    background:
        linear-gradient(
            145deg,
            rgba(169, 133, 244, 0.075),
            rgba(255, 255, 255, 0.008)
        ),
        var(--surface-soft);

    box-shadow: var(--shadow-hover);
}


.section-card.available:active {
    transform: translateY(-2px);
}


.section-card.unavailable {
    opacity: 0.48;

    background:
        rgba(255, 255, 255, 0.012);
}


.section-card h3 {
    margin: 0 0 20px;

    font-size: 1rem;
    letter-spacing: -0.015em;
}


.section-status {
    margin-bottom: 6px;

    color: var(--text);

    font-size: 0.84rem;
    font-weight: 720;
}


.section-detail {
    min-height: 42px;

    color: var(--muted);

    font-size: 0.76rem;
    line-height: 1.5;
}


.clickable-section {
    cursor: pointer;
}


.section-card-footer {
    position: absolute;

    right: 19px;
    bottom: 17px;
    left: 19px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.section-open-button,
.section-planned {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 29px;

    padding: 6px 10px;

    border-radius: 9px;

    font-size: 0.67rem;
    font-weight: 800;

    text-decoration: none;
}


.section-open-button {
    border: 1px solid rgba(169, 133, 244, 0.33);

    background: rgba(169, 133, 244, 0.085);

    color: #d9cbff;

    transition:
        transform 150ms ease,
        border-color 150ms ease,
        background 150ms ease;
}


.section-open-button:hover {
    transform: translateY(-2px);

    border-color: rgba(169, 133, 244, 0.66);

    background: rgba(169, 133, 244, 0.17);
}


.section-open-button:active {
    transform: translateY(0);
}


.section-open-button span {
    transition: transform 150ms ease;
}


.section-open-button:hover span {
    transform: translateX(2px);
}


.section-planned {
    border: 1px solid var(--line);

    background: rgba(255, 255, 255, 0.015);

    color: var(--faint);
}


/* =========================================================
   RECOMMENDATIONS
   ========================================================= */

.recommendation-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}


.recommendation-item {
    padding: 19px 21px;

    border: 1px solid var(--line);
    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.014);
}


.recommendation-number {
    display: block;

    margin-bottom: 10px;

    color: var(--faint);

    font-size: 0.64rem;
    font-weight: 800;

    letter-spacing: 0.13em;
}


.recommendation-item h3 {
    margin: 0 0 6px;

    font-size: 0.94rem;
}


.recommendation-item p {
    margin: 0;

    color: var(--muted);

    font-size: 0.76rem;
    line-height: 1.55;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .path-chooser {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 820px) {

    .dashboard-shell {
        width: min(100% - 24px, 680px);

        padding-top: 20px;
    }


    .command-header,
    .connection-panel,
    .connect-form-panel {
        align-items: flex-start;
        flex-direction: column;
    }


    .player-block {
        width: 100%;

        padding: 15px 0 0;

        border-top: 1px solid var(--line);
        border-left: 0;

        text-align: left;
    }


    .section-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .recommendation-list {
        grid-template-columns: 1fr;
    }


    #connect-form {
        width: 100%;

        flex-direction: column;
    }


    #api-key {
        width: 100%;
    }

}


@media (max-width: 560px) {

    .path-chooser {
        grid-template-columns: 1fr;
    }


    .path-title-row {
        align-items: flex-start;
        flex-direction: column;
    }


    .path-panel {
        padding: 22px;
    }

}


@media (max-width: 520px) {

    .dashboard-shell {
        width: min(100% - 18px, 500px);
    }


    .command-header,
    .connection-panel,
    .connect-form-panel,
    .next-move {
        padding: 23px 20px;
    }


    .section-grid {
        grid-template-columns: 1fr;
    }


    .section-card {
        min-height: 164px;
    }


    .section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }

}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* ==========================================================
   WARRIOR V0.2 — PATH INTELLIGENCE
   ========================================================== */

.warrior-panel {
    padding: 22px;
}

.warrior-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.warrior-heading h2 {
    margin: 5px 0 0;
}

.warrior-training-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.warrior-training-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.035);
}

.warrior-content {
    display: grid;
    grid-template-columns:
        minmax(150px, 0.72fr)
        minmax(300px, 1.7fr)
        minmax(190px, 0.9fr);
    gap: 12px;
}

.warrior-total-card,
.warrior-goal-card,
.warrior-stat-grid {
    min-width: 0;
}

.warrior-total-card,
.warrior-goal-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 128px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.warrior-label {
    margin-bottom: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    opacity: 0.56;
}

#warrior-total {
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.warrior-growth {
    margin-top: 9px;
    font-size: 0.78rem;
    opacity: 0.68;
}

.warrior-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.warrior-stat-item {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

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

.warrior-stat-top span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.58;
}

.warrior-stat-top strong {
    font-size: 0.94rem;
}

.warrior-stat-track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.warrior-stat-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
    opacity: 0.72;
}

.warrior-stat-item small {
    display: block;
    margin-top: 7px;
    font-size: 0.68rem;
    opacity: 0.5;
}

.warrior-goal-card strong {
    font-size: 1rem;
    line-height: 1.35;
}

#warrior-goal-detail {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.45;
    opacity: 0.66;
}

.warrior-sync {
    margin-top: 11px;
    font-size: 0.68rem;
    opacity: 0.43;
}

.warrior-empty {
    padding: 17px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.84rem;
    opacity: 0.68;
}

@media (max-width: 900px) {
    .warrior-content {
        grid-template-columns: 1fr 1.5fr;
    }

    .warrior-goal-card {
        grid-column: 1 / -1;
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .warrior-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .warrior-training-link {
        align-self: flex-start;
    }

    .warrior-content {
        grid-template-columns: 1fr;
    }

    .warrior-goal-card {
        grid-column: auto;
    }

    .warrior-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .warrior-training-link {
        transition: none;
    }
}


/* ==========================================================
   TRAINING V0.6 — SEMANTIC COLOR FOUNDATION
   ========================================================== */

:root {
    /*
     * Semantic colors intentionally describe meaning,
     * not a particular feature.
     *
     * This lets Training, Warrior, Goals, and future
     * analytics share the same visual vocabulary.
     */
    --pb-positive: #55d98b;
    --pb-positive-soft: rgba(85, 217, 139, 0.12);
    --pb-positive-border: rgba(85, 217, 139, 0.25);

    --pb-developing: #e4c85a;
    --pb-developing-soft: rgba(228, 200, 90, 0.11);
    --pb-developing-border: rgba(228, 200, 90, 0.24);

    --pb-negative: #e56f76;
    --pb-negative-soft: rgba(229, 111, 118, 0.1);

    --pb-neutral: rgba(255, 255, 255, 0.66);
}


/* ----------------------------------------------------------
   BATTLE STAT STATE
   ---------------------------------------------------------- */

.warrior-stat-item.tone-strong {
    border-color: var(--pb-positive-border);
    background:
        linear-gradient(
            145deg,
            var(--pb-positive-soft),
            rgba(255, 255, 255, 0.015)
        );
}

.warrior-stat-item.tone-strong
.warrior-stat-top strong {
    color: var(--pb-positive);
}

.warrior-stat-item.tone-strong
.warrior-stat-track span {
    background: var(--pb-positive);
    opacity: 0.9;
}

.warrior-stat-item.tone-developing {
    border-color: var(--pb-developing-border);
    background:
        linear-gradient(
            145deg,
            var(--pb-developing-soft),
            rgba(255, 255, 255, 0.015)
        );
}

.warrior-stat-item.tone-developing
.warrior-stat-top strong {
    color: var(--pb-developing);
}

.warrior-stat-item.tone-developing
.warrior-stat-track span {
    background: var(--pb-developing);
    opacity: 0.92;
}

.warrior-stat-item.tone-neutral
.warrior-stat-top strong {
    color: var(--pb-neutral);
}


/* ----------------------------------------------------------
   MOVEMENT / GROWTH
   ---------------------------------------------------------- */

.warrior-growth {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 7px;
}

.warrior-growth.tone-positive {
    color: var(--pb-positive);
    background: var(--pb-positive-soft);
}

.warrior-growth.tone-negative {
    color: var(--pb-negative);
    background: var(--pb-negative-soft);
}

.warrior-growth.tone-neutral {
    color: var(--pb-neutral);
    background: rgba(255, 255, 255, 0.035);
}


/* ----------------------------------------------------------
   STRONG TOTAL VALUE
   ---------------------------------------------------------- */

#warrior-total {
    color: rgba(255, 255, 255, 0.96);
}


/* ----------------------------------------------------------
   ACCESSIBILITY
   Color is supplementary. Labels, values, percentages,
   and +/- movement remain readable without color.
   ---------------------------------------------------------- */

@media (prefers-contrast: more) {
    .warrior-stat-item.tone-strong {
        border-color: var(--pb-positive);
    }

    .warrior-stat-item.tone-developing {
        border-color: var(--pb-developing);
    }
}

/* V1.0L: compact Command Center overview */
.command-overview, .command-war { padding: clamp(20px, 3vw, 30px); }
.command-overview-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.command-overview h2, .command-war h2 { margin:6px 0 12px; }
.command-freshness { color:var(--muted); font-size:.8rem; }
.command-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.command-metric { background:var(--surface-soft); border:1px solid var(--line); border-radius:var(--radius-small); padding:17px; display:flex; flex-direction:column; gap:9px; min-width:0; }
.command-metric span, .command-metric small { color:var(--muted); font-size:.78rem; }
.command-metric strong { font-size:clamp(1.2rem,2vw,1.7rem); overflow-wrap:anywhere; }
.command-war p { color:var(--muted); margin:6px 0 14px; }
.command-war a { color:var(--accent-bright); }
@media(max-width:750px){ .command-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:390px){ .command-metrics { grid-template-columns:1fr; } }


/* V1.0L.1: Command Center panel breathing room (desktop + mobile).
   Applies only to top-level authenticated dashboard sections. */
.dashboard-content > section + section {
    margin-top: 16px;
}
@media (max-width: 750px) {
    .dashboard-content > section + section {
        margin-top: 14px;
    }
}
