/*
========================================================================
12WR TEST v1010 - APP-WIDE LIVE VISUAL PREVIEW
========================================================================
TEST visual staging only.

This layer intentionally loads after existing TEST styles so every page can
preview the intended production visual language before any deliberate LIVE
promotion.

No SQL, Engine 3.0, permissions, calculations, or LIVE resources are changed.
========================================================================
*/

body.test-live-preview {
    --ink: #f5f8ff;
    --muted: #b6c6da;
    --line: #284f77;
    --blue: #59baff;
    --navy: #061321;
    --teal: #42d7cf;
    --green: #60ef86;
    --amber: #ffca63;
    --red: #ff7e83;
    --surface: #0d1d33;
    --background: #061321;

    --live-bg: #061321;
    --live-bg-deep: #040d18;
    --live-panel: #0d1d33;
    --live-panel-raised: #11243e;
    --live-panel-soft: #142b48;
    --live-border: #2a5684;
    --live-border-bright: #3c79b0;
    --live-text: #f5f8ff;
    --live-muted: #b6c6da;
    --live-blue: #59baff;
    --live-blue-soft: #88d3ff;
    --live-green: #60ef86;
    --live-green-soft: #9af8b1;
    --live-amber: #ffca63;
    --live-red: #ff7e83;
    --live-shadow: 0 16px 42px rgba(0, 0, 0, .24);

    color-scheme: dark;
    color: var(--live-text);
    background:
        radial-gradient(
            circle at 86% -8%,
            rgba(62, 135, 199, .14),
            transparent 28rem),
        var(--live-bg);
}

/* ---------- typography ---------- */

body.test-live-preview h1,
body.test-live-preview h2,
body.test-live-preview h3,
body.test-live-preview h4,
body.test-live-preview strong {
    color: var(--live-text);
}

body.test-live-preview .lede,
body.test-live-preview .small,
body.test-live-preview .muted,
body.test-live-preview .hint,
body.test-live-preview .help-text,
body.test-live-preview .dash-small-line,
body.test-live-preview .dash-focus,
body.test-live-preview .footer,
body.test-live-preview .recomp-footer {
    color: var(--live-muted);
}

body.test-live-preview main a:not(.button):not(.primary) {
    color: var(--live-blue-soft);
}

body.test-live-preview main a:not(.button):not(.primary):hover {
    color: var(--live-green-soft);
}

/* ---------- topbar + navigation ---------- */

body.test-live-preview .topbar,
body.test-live-preview.app-shell .topbar {
    min-height: 78px;
    background:
        linear-gradient(
            180deg,
            #06111f,
            #040d18);
    color: var(--live-text);
    border-bottom: 1px solid #1e4268;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .20);
}

body.test-live-preview .brand-logo-light {
    display: none !important;
}

body.test-live-preview .brand-logo-dark {
    display: block !important;
}

body.test-live-preview .app-quick-nav a,
body.test-live-preview .public-nav a {
    color: #edf6ff;
    opacity: 1;
    border-radius: 999px;
    padding: .52rem .75rem;
    font-weight: 750;
    transition:
        color .14s ease,
        background .14s ease;
}

body.test-live-preview .app-quick-nav a:hover,
body.test-live-preview .app-quick-nav a:focus,
body.test-live-preview .public-nav a:hover,
body.test-live-preview .public-nav a:focus {
    color: #061321;
    background:
        linear-gradient(
            90deg,
            var(--live-blue),
            var(--live-green));
}

body.test-live-preview .app-nav,
body.test-live-preview.app-shell .app-nav.app-menu {
    background: #09182a;
    color: var(--live-text);
    border-color: var(--live-border);
    box-shadow: var(--live-shadow);
}

body.test-live-preview .app-nav a {
    color: #eaf4ff;
    border-radius: .55rem;
}

body.test-live-preview .app-nav a:hover,
body.test-live-preview .app-nav a:focus {
    background: #132a47;
    color: var(--live-green-soft);
}

body.test-live-preview .nav-toggle,
body.test-live-preview.app-shell .nav-toggle {
    border-color: #3b6894;
    background: #10243d;
}

body.test-live-preview .nav-toggle-line,
body.test-live-preview.app-shell .nav-toggle-line {
    background: #f5f8ff;
}

/* ---------- page headers ---------- */

body.test-live-preview .app-page-head,
body.test-live-preview .page-head {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--live-border);
    border-radius: 1rem;
    background:
        linear-gradient(
            135deg,
            rgba(17, 37, 64, .98),
            rgba(7, 23, 40, .98));
    box-shadow: var(--live-shadow);
}

body.test-live-preview .app-page-head::after,
body.test-live-preview .page-head::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 19rem;
    height: 19rem;
    top: -12rem;
    right: -6rem;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(96, 239, 134, .15),
            rgba(89, 186, 255, .08) 38%,
            transparent 70%);
}

body.test-live-preview .app-kicker,
body.test-live-preview .dash-panel-label,
body.test-live-preview .app-section-label {
    color: var(--live-blue-soft);
    font-weight: 900;
    letter-spacing: .08em;
}

/* ---------- primary surfaces across the application ---------- */

body.test-live-preview .card,
body.test-live-preview .kpi,
body.test-live-preview .recommendation,
body.test-live-preview .dash-panel,
body.test-live-preview .dash-section,
body.test-live-preview .dash-fuel-card,
body.test-live-preview .dash-coach-card,
body.test-live-preview .dash-analysis-card,
body.test-live-preview .dash-marisol-card,
body.test-live-preview .dash-coach-guide-card,
body.test-live-preview .welcome-hero-copy,
body.test-live-preview .welcome-decision-card,
body.test-live-preview .welcome-feature,
body.test-live-preview .welcome-coach-strip,
body.test-live-preview .evidence-hero,
body.test-live-preview .evidence-principle,
body.test-live-preview .evidence-card,
body.test-live-preview .evidence-footnote,
body.test-live-preview .simple-step,
body.test-live-preview .evidence-mini-card,
body.test-live-preview .onboarding-section,
body.test-live-preview .onboarding-start,
body.test-live-preview .fuel-cycle-card,
body.test-live-preview .app-process-grid article,
body.test-live-preview .setup-intro-card,
body.test-live-preview .weekly-plan-guide,
body.test-live-preview .resistance-anchor-panel,
body.test-live-preview .recommended-day,
body.test-live-preview .recommended-week-review,
body.test-live-preview .client-start-guide,
body.test-live-preview .baseline-entry-guide,
body.test-live-preview .learn12wr-hero,
body.test-live-preview .learn12wr-section,
body.test-live-preview .learn12wr-daily,
body.test-live-preview .learn12wr-finish,
body.test-live-preview .profile-note,
body.test-live-preview .profile-metric-grid > div,
body.test-live-preview .progress-range,
body.test-live-preview .progress-chart-placeholder,
body.test-live-preview .photo-upload-disabled {
    background:
        linear-gradient(
            145deg,
            var(--live-panel-raised),
            var(--live-panel));
    color: var(--live-text);
    border-color: var(--live-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025),
        0 12px 32px rgba(0, 0, 0, .14);
}

/* ---------- nested surfaces ---------- */

body.test-live-preview .dash-actual-line,
body.test-live-preview .dash-preliminary,
body.test-live-preview .dash-detail-date,
body.test-live-preview .dash-refill-line > div,
body.test-live-preview .dash-physiology-note,
body.test-live-preview .dash-analysis-narrative,
body.test-live-preview .dash-analysis-scale-strip > div,
body.test-live-preview .client-start-loop span,
body.test-live-preview .client-start-grid > div,
body.test-live-preview .client-start-priorities > div,
body.test-live-preview .learn12wr-goal-grid article,
body.test-live-preview .learn12wr-daily-grid article,
body.test-live-preview .learn12wr-example-grid > div,
body.test-live-preview .learn12wr-illustration,
body.test-live-preview .learn12wr-card-illustration,
body.test-live-preview .option4-checks label,
body.test-live-preview .option4-mini-kpis,
body.test-live-preview .plan-targets > span,
body.test-live-preview .plan-mix-item,
body.test-live-preview .app-empty-state {
    background: #0a1a2d;
    color: #dce9f7;
    border-color: #315a84;
}

/* ---------- primary actions ---------- */

body.test-live-preview .primary,
body.test-live-preview a.primary,
body.test-live-preview button.primary,
body.test-live-preview .admin-primary-button,
body.test-live-preview .learn12wr-primary-button,
body.test-live-preview .public-nav-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    border: 0;
    border-radius: .78rem;
    padding: .66rem 1rem;
    background:
        linear-gradient(
            90deg,
            var(--live-blue),
            var(--live-green));
    color: #061321 !important;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(70, 190, 186, .22);
    transition:
        transform .14s ease,
        filter .14s ease,
        box-shadow .14s ease;
}

body.test-live-preview .primary:hover,
body.test-live-preview a.primary:hover,
body.test-live-preview button.primary:hover,
body.test-live-preview .admin-primary-button:hover,
body.test-live-preview .learn12wr-primary-button:hover,
body.test-live-preview .public-nav-create:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 12px 30px rgba(70, 190, 186, .30);
}

/* ---------- secondary actions ---------- */

body.test-live-preview .button,
body.test-live-preview a.button,
body.test-live-preview button.button,
body.test-live-preview .admin-secondary-button,
body.test-live-preview .learn12wr-secondary-button,
body.test-live-preview .copy-week-button,
body.test-live-preview .dash-coach-brief-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    border: 1px solid var(--live-border-bright);
    border-radius: .78rem;
    padding: .62rem .95rem;
    background: #10233c;
    color: var(--live-text) !important;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

body.test-live-preview .button:hover,
body.test-live-preview a.button:hover,
body.test-live-preview button.button:hover,
body.test-live-preview .admin-secondary-button:hover,
body.test-live-preview .learn12wr-secondary-button:hover {
    border-color: var(--live-blue);
    background: #142c4a;
    color: var(--live-green-soft) !important;
}

/* ---------- destructive actions ---------- */

body.test-live-preview .workout-delete-button,
body.test-live-preview .admin-code-action-danger {
    border: 1px solid rgba(255, 126, 131, .56);
    border-radius: .72rem;
    background: rgba(105, 27, 35, .25);
    color: #ffb3b7;
    font-weight: 850;
}

/* ---------- forms ---------- */

body.test-live-preview input,
body.test-live-preview select,
body.test-live-preview textarea,
html[data-theme="light"] body.test-live-preview input,
html[data-theme="light"] body.test-live-preview select,
html[data-theme="light"] body.test-live-preview textarea,
html[data-theme="dark"] body.test-live-preview input,
html[data-theme="dark"] body.test-live-preview select,
html[data-theme="dark"] body.test-live-preview textarea {
    color: var(--live-text);
    background: #0a192b;
    border-color: #38648e;
    border-radius: .72rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}

body.test-live-preview input::placeholder,
body.test-live-preview textarea::placeholder {
    color: #8197b1;
}

body.test-live-preview input:focus,
body.test-live-preview select:focus,
body.test-live-preview textarea:focus {
    outline: none;
    border-color: var(--live-blue);
    box-shadow: 0 0 0 3px rgba(89, 186, 255, .14);
}

body.test-live-preview input[readonly] {
    color: #c2d3e5;
    background: #0c1d32;
}

body.test-live-preview label {
    color: #dce9f7;
}

body.test-live-preview .app-date-picker {
    background: #0d1d33;
    border-color: var(--live-border);
}

/* ---------- tables ---------- */

body.test-live-preview table {
    color: var(--live-text);
}

body.test-live-preview th {
    color: #dcecff;
    background: #102640;
    border-color: #315b85;
}

body.test-live-preview td {
    color: #d6e3f2;
    background: #0b1b2f;
    border-color: #274e76;
}

body.test-live-preview tbody tr:nth-child(even) td {
    background: #0e2037;
}

body.test-live-preview tbody tr:hover td {
    background: #132a47;
}

/* ---------- messages / status / badges ---------- */

body.test-live-preview .app-message,
body.test-live-preview .app-status,
body.test-live-preview .dash-status {
    color: #dce9f7;
    background: #0d1d33;
    border-color: var(--live-border);
}

body.test-live-preview .app-message.success,
body.test-live-preview .app-status.good,
body.test-live-preview .dash-status.good,
body.test-live-preview .client-start-note,
body.test-live-preview .learn12wr-callout,
body.test-live-preview .learn12wr-graduate {
    color: #caffd7;
    background:
        linear-gradient(
            90deg,
            rgba(34, 99, 69, .38),
            rgba(11, 49, 53, .58));
    border-color: rgba(96, 239, 134, .45);
}

body.test-live-preview .app-message.warning,
body.test-live-preview .app-status.review,
body.test-live-preview .dash-status.warning,
body.test-live-preview .learn12wr-fuel-rule {
    color: #ffe5a7;
    background: rgba(97, 66, 17, .30);
    border-color: rgba(255, 202, 99, .48);
}

body.test-live-preview .dash-status.danger {
    color: #ffc5c8;
    background: rgba(100, 27, 35, .30);
    border-color: rgba(255, 126, 131, .48);
}

body.test-live-preview .app-pill,
body.test-live-preview .pill,
body.test-live-preview .plan-category-badge,
body.test-live-preview .weekly-target-chips span {
    border-color: #38658f;
    background: #10243e;
    color: #dcebfb;
}

/* ---------- common rows ---------- */

body.test-live-preview .plan-day-row,
body.test-live-preview .workout-saved-row,
body.test-live-preview .welcome-decision-row {
    border-color: #315a84;
}

body.test-live-preview .plan-day-row:hover,
body.test-live-preview .workout-saved-row:hover {
    background: #112743;
}

/* ---------- Workout Builder ---------- */

body.test-live-preview .wi-workspace {
    background:
        linear-gradient(
            145deg,
            #10233c,
            #0a192c);
    border-color: var(--live-border);
    box-shadow: var(--live-shadow);
}

body.test-live-preview .wi-mode-button {
    min-height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .68rem 1.05rem;
    border: 1px solid var(--live-border);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            #122744,
            #0c1c31);
    color: var(--live-text);
    font-weight: 850;
    text-decoration: none;
}

body.test-live-preview .wi-mode-button:hover,
body.test-live-preview .wi-mode-button:focus-visible {
    border-color: var(--live-blue);
}

body.test-live-preview .wi-mode-button.is-active {
    border-color: transparent;
    background:
        linear-gradient(
            90deg,
            var(--live-blue),
            var(--live-green));
    color: #061321;
}

body.test-live-preview .wi-search-simple {
    background: rgba(7, 22, 38, .66);
    border-color: #315b85;
}

body.test-live-preview .wi-search-result,
body.test-live-preview .wi-workout-exercise,
body.test-live-preview .wi-preview-exercise {
    background:
        linear-gradient(
            90deg,
            #0d1c31,
            #10243e);
    border-color: #38648e;
}

body.test-live-preview .wi-search-result:hover,
body.test-live-preview .wi-search-result:focus,
body.test-live-preview .wi-workout-exercise:hover,
body.test-live-preview .wi-preview-exercise:hover {
    border-color: var(--live-blue);
}

body.test-live-preview .wi-search-title-row strong,
body.test-live-preview .wi-workout-exercise-name strong,
body.test-live-preview .wi-preview-exercise strong {
    color: #f8fbff;
}

body.test-live-preview .wi-search-copy > span,
body.test-live-preview .wi-preview-exercise span {
    color: #b7c8dc;
}

body.test-live-preview .wi-technique-button {
    color: var(--live-blue-soft);
    font-weight: 800;
}

body.test-live-preview .wi-technique-button:hover {
    color: var(--live-green-soft);
}

body.test-live-preview .wi-favorite-button {
    color: var(--live-blue);
}

body.test-live-preview .wi-favorite-button.is-favorite {
    color: var(--live-green);
    text-shadow: 0 0 14px rgba(96, 239, 134, .22);
}

body.test-live-preview .wi-technique-dialog {
    border-color: var(--live-border-bright);
    background:
        linear-gradient(
            155deg,
            #112540,
            #09192c);
    color: var(--live-text);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .56);
}

body.test-live-preview .wi-technique-modal-body {
    color: #d4e2f2;
}

body.test-live-preview .wi-technique-close {
    color: var(--live-blue-soft);
}

body.test-live-preview .wi-primary-save-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

body.test-live-preview .wi-save-note {
    color: var(--live-muted);
    font-size: .9rem;
}

/* ---------- footer ---------- */

body.test-live-preview .recomp-footer {
    border-top-color: #1d3c5d;
}

body.test-live-preview .recomp-footer strong {
    color: #eaf4ff;
}

body.test-live-preview .recomp-footer a {
    color: var(--live-blue-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
    body.test-live-preview .app-page-head,
    body.test-live-preview .page-head {
        padding: 1rem;
    }
}

@media (max-width: 620px) {
    body.test-live-preview .primary,
    body.test-live-preview .button {
        min-height: 2.8rem;
    }
}

/* =====================================================================
   v1010 - Per-set reps and compact workout entry
   ===================================================================== */

body.test-live-preview .wi-mode-button.is-active,
body.test-live-preview main a.wi-mode-button.is-active {
    color: #061321 !important;
    text-shadow: none !important;
}

body.test-live-preview .wi-workout-exercise {
    grid-template-columns:
        minmax(15rem, 2.1fr)
        4.2rem
        minmax(12rem, 1.45fr)
        7.2rem
        auto;
    column-gap: .7rem;
    row-gap: .55rem;
    align-items: end;
}

body.test-live-preview .wi-workout-exercise label {
    font-size: .88rem;
    font-weight: 800;
}

body.test-live-preview .wi-workout-exercise input[type="number"] {
    min-height: 2.55rem;
    padding: .38rem .48rem;
    font-size: 1.05rem;
    font-weight: 750;
}

body.test-live-preview .wi-sets-field {
    width: 4.2rem;
}

body.test-live-preview .wi-heaviest-field {
    width: 7.2rem;
}

body.test-live-preview .wi-set-reps-group {
    display: flex;
    align-items: end;
    gap: .38rem;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: .05rem;
}

body.test-live-preview .wi-set-rep-field {
    flex: 0 0 4.15rem;
    width: 4.15rem;
}

body.test-live-preview .wi-set-rep-field span {
    display: block;
    margin-bottom: .24rem;
    color: var(--live-muted);
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}

body.test-live-preview .wi-set-rep-field input {
    width: 100%;
}

body.test-live-preview .wi-remove-exercise {
    min-height: 2.55rem;
    align-self: end;
}

@media (max-width: 980px) {
    body.test-live-preview .wi-workout-exercise {
        grid-template-columns:
            minmax(13rem, 1fr)
            4.2rem
            minmax(10rem, 1fr)
            7.2rem;
    }

    body.test-live-preview .wi-remove-exercise {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 720px) {
    body.test-live-preview .wi-workout-exercise {
        grid-template-columns:
            4.2rem
            minmax(0, 1fr);
    }

    body.test-live-preview .wi-workout-exercise-name {
        grid-column: 1 / -1;
    }

    body.test-live-preview .wi-set-reps-group {
        grid-column: 1 / -1;
    }

    body.test-live-preview .wi-heaviest-field {
        width: 100%;
    }

    body.test-live-preview .wi-remove-exercise {
        grid-column: 1 / -1;
    }
}

/* =====================================================================
   v1010 - Workout Builder final label polish
   ===================================================================== */

body.test-live-preview .wi-date-label-row {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    flex-wrap: wrap;
}

body.test-live-preview .wi-date-tracking-note {
    color: var(--live-muted);
    font-size: .78rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.25;
}

/* =====================================================================
   v1010 - Compact Workout Builder header analysis
   Keeps the desktop header in the existing vertical footprint.
   ===================================================================== */

body.test-live-preview .wi-analysis-head {
    display: grid;
    grid-template-columns:
        minmax(14rem, .82fr)
        minmax(13rem, .66fr)
        minmax(26rem, 1.35fr);
    align-items: center;
    gap: 1rem;
}

body.test-live-preview .wi-analysis-head .wi-head-title,
body.test-live-preview .wi-analysis-head .wi-head-date,
body.test-live-preview .wi-analysis-head .wi-header-analysis {
    min-width: 0;
}

body.test-live-preview .wi-analysis-head .wi-head-title h1 {
    margin-bottom: 0;
}

body.test-live-preview .wi-analysis-head .wi-head-date {
    justify-self: stretch;
    margin: 0;
}

body.test-live-preview .wi-analysis-head .wi-head-date label {
    display: grid;
    gap: .22rem;
    margin: 0;
}

body.test-live-preview .wi-analysis-head .wi-head-date input[type="date"] {
    width: 100%;
    min-height: 2.55rem;
    padding: .38rem .55rem;
}

body.test-live-preview .wi-analysis-head .wi-date-label-row {
    min-height: 1rem;
    line-height: 1;
}

body.test-live-preview .wi-analysis-head .wi-date-tracking-note {
    display: block;
    margin-top: 0;
    font-size: .70rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.test-live-preview .wi-header-analysis {
    border-left: 1px solid var(--live-border-bright);
    padding-left: 1rem;
    display: grid;
    align-content: center;
    gap: .20rem;
    line-height: 1.08;
    overflow: hidden;
}

body.test-live-preview .wi-header-analysis-label {
    color: var(--live-blue-soft);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .09em;
}

body.test-live-preview .wi-header-analysis-line {
    color: #dce9f7;
    font-size: .84rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.test-live-preview .wi-header-analysis-line strong {
    color: #ffffff;
    font-size: .91rem;
}

body.test-live-preview .wi-analysis-separator {
    color: var(--live-blue-soft);
    margin: 0 .30rem;
}

body.test-live-preview .wi-analysis-muted {
    color: var(--live-muted);
}

body.test-live-preview .wi-header-analysis-source {
    color: var(--live-muted);
    font-size: .69rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
   Desktop rule: do not add padding, margin, min-height, or a card wrapper
   to wi-analysis-head. The left title loses its former date line, and the
   new center/right content is deliberately compressed to that same height.
*/
@media (max-width: 1080px) {
    body.test-live-preview .wi-analysis-head {
        grid-template-columns:
            minmax(12rem, .8fr)
            minmax(12rem, .65fr)
            minmax(20rem, 1.2fr);
        gap: .7rem;
    }

    body.test-live-preview .wi-header-analysis {
        padding-left: .7rem;
    }

    body.test-live-preview .wi-header-analysis-line {
        font-size: .78rem;
    }
}

@media (max-width: 820px) {
    body.test-live-preview .wi-analysis-head {
        grid-template-columns: 1fr 1fr;
    }

    body.test-live-preview .wi-header-analysis {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--live-border-bright);
        padding: .55rem 0 0;
    }
}

/* =====================================================================
   v1010 - UNIFIED AUTHENTICATED APP THEME / CONTRAST HARDENING
   ---------------------------------------------------------------------
   The blue-green neon theme is authoritative across the authenticated
   client application, regardless of the user's light/dark preference.

   IMPORTANT:
   - Theme properties only are forced here.
   - Layout dimensions and application behavior are not changed.
   - Page-specific CSS may load later in some Razor views; !important is
     intentionally limited to palette/contrast properties so those files
     cannot reintroduce white panels with white text.
   ===================================================================== */

/* ----- base authenticated app palette ----- */

body.test-live-preview.app-shell {
    background:
        radial-gradient(
            circle at 86% -8%,
            rgba(62, 135, 199, .14),
            transparent 28rem),
        #061321 !important;
    color: #f5f8ff !important;
}

body.test-live-preview.app-shell main.container {
    color: #f5f8ff;
}

body.test-live-preview.app-shell h1,
body.test-live-preview.app-shell h2,
body.test-live-preview.app-shell h3,
body.test-live-preview.app-shell h4 {
    color: #f7fbff !important;
}

/*
   Do not globally force <strong> to white. Some components intentionally
   use colored text; inheriting from the component keeps contrast correct.
*/
body.test-live-preview.app-shell strong {
    color: inherit;
}

body.test-live-preview.app-shell label {
    color: inherit !important;
}

body.test-live-preview.app-shell .small,
body.test-live-preview.app-shell .muted,
body.test-live-preview.app-shell .lede,
body.test-live-preview.app-shell .hint,
body.test-live-preview.app-shell .help-text,
body.test-live-preview.app-shell .form-footnote {
    color: #b6c6da !important;
}

/* ----- navigation: always readable ----- */

body.test-live-preview.app-shell .app-quick-nav a {
    color: #edf7ff !important;
    opacity: 1 !important;
}

body.test-live-preview.app-shell .app-quick-nav a:hover,
body.test-live-preview.app-shell .app-quick-nav a:focus {
    color: #061321 !important;
    background:
        linear-gradient(
            90deg,
            #59baff,
            #60ef86) !important;
}

body.test-live-preview.app-shell .app-nav.app-menu {
    background:
        linear-gradient(
            155deg,
            #10243e,
            #071526) !important;
    border-color: #3c79b0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .42) !important;
}

body.test-live-preview.app-shell .app-nav.app-menu a {
    color: #edf7ff !important;
    opacity: 1 !important;
}

body.test-live-preview.app-shell .app-nav.app-menu a:hover,
body.test-live-preview.app-shell .app-nav.app-menu a:focus {
    color: #9af8b1 !important;
    background: #183555 !important;
}

body.test-live-preview.app-shell .app-nav.app-menu .nav-signout {
    color: #ff9ea4 !important;
    border-top-color: #315a84 !important;
}

/* ----- form controls, including native dropdown contents ----- */

body.test-live-preview.app-shell input,
body.test-live-preview.app-shell select,
body.test-live-preview.app-shell textarea {
    color: #f5f8ff !important;
    background: #08192c !important;
    border-color: #38648e !important;
}

body.test-live-preview.app-shell select option,
body.test-live-preview.app-shell select optgroup {
    color: #f5f8ff !important;
    background: #0a1b2f !important;
}

body.test-live-preview.app-shell input::placeholder,
body.test-live-preview.app-shell textarea::placeholder {
    color: #8197b1 !important;
}

/* ----- generic application surfaces ----- */

body.test-live-preview.app-shell .card,
body.test-live-preview.app-shell .kpi,
body.test-live-preview.app-shell .recommendation,
body.test-live-preview.app-shell .app-page-head,
body.test-live-preview.app-shell .page-head,
body.test-live-preview.app-shell .app-date-picker,
body.test-live-preview.app-shell .dash-panel,
body.test-live-preview.app-shell .dash-section,
body.test-live-preview.app-shell .dash-fuel-card,
body.test-live-preview.app-shell .dash-coach-card,
body.test-live-preview.app-shell .dash-analysis-card,
body.test-live-preview.app-shell .dash-marisol-card,
body.test-live-preview.app-shell .dash-coach-guide-card,
body.test-live-preview.app-shell .profile-note,
body.test-live-preview.app-shell .profile-metric-grid > div,
body.test-live-preview.app-shell .progress-range,
body.test-live-preview.app-shell .progress-chart-placeholder,
body.test-live-preview.app-shell .photo-upload-disabled {
    background:
        linear-gradient(
            145deg,
            #11243e,
            #0d1d33) !important;
    color: #f5f8ff !important;
    border-color: #2a5684 !important;
}

/* ----- status / instructional callouts ----- */

body.test-live-preview.app-shell .app-message,
body.test-live-preview.app-shell .app-status,
body.test-live-preview.app-shell .status-card,
body.test-live-preview.app-shell .schedule-status-message,
body.test-live-preview.app-shell .plan-source-note,
body.test-live-preview.app-shell .critical-choice-callout,
body.test-live-preview.app-shell .setup-next-callout,
body.test-live-preview.app-shell .plan-choice-description {
    background: #0b2038 !important;
    color: #dce9f7 !important;
    border-color: #315f8d !important;
}

body.test-live-preview.app-shell .app-message.success,
body.test-live-preview.app-shell .app-status.good,
body.test-live-preview.app-shell .status-card.good {
    background:
        linear-gradient(
            90deg,
            rgba(28, 88, 63, .56),
            rgba(9, 48, 54, .72)) !important;
    color: #caffd7 !important;
    border-color: rgba(96, 239, 134, .52) !important;
}

body.test-live-preview.app-shell .app-message.warning,
body.test-live-preview.app-shell .app-status.review,
body.test-live-preview.app-shell .status-card.review {
    background: rgba(97, 66, 17, .38) !important;
    color: #ffe5a7 !important;
    border-color: rgba(255, 202, 99, .52) !important;
}

/* =====================================================================
   DAILY ENTRY
   ===================================================================== */

body.test-live-preview.app-shell .daily-entry-page {
    color: #f5f8ff !important;
}

body.test-live-preview.app-shell .daily-entry-datebar,
body.test-live-preview.app-shell .daily-entry-section,
body.test-live-preview.app-shell .daily-entry-workout-card,
body.test-live-preview.app-shell .daily-entry-future,
body.test-live-preview.app-shell .daily-entry-actions {
    background:
        linear-gradient(
            145deg,
            #11243e,
            #0d1d33) !important;
    color: #f5f8ff !important;
    border-color: #2a5684 !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 12px 30px rgba(0,0,0,.15) !important;
}

body.test-live-preview.app-shell .daily-entry-header h1,
body.test-live-preview.app-shell .daily-entry-section-heading h2,
body.test-live-preview.app-shell .daily-entry-subheading h3,
body.test-live-preview.app-shell .daily-entry-grid label,
body.test-live-preview.app-shell .daily-entry-notes,
body.test-live-preview.app-shell .daily-entry-checks label {
    color: #f7fbff !important;
}

body.test-live-preview.app-shell .daily-entry-lede,
body.test-live-preview.app-shell .daily-entry-kicker,
body.test-live-preview.app-shell .daily-entry-section-heading p,
body.test-live-preview.app-shell .daily-entry-subheading p,
body.test-live-preview.app-shell .daily-entry-grid small,
body.test-live-preview.app-shell .daily-entry-notes small,
body.test-live-preview.app-shell .daily-entry-planned span,
body.test-live-preview.app-shell .daily-entry-microcopy {
    color: #b6c6da !important;
}

body.test-live-preview.app-shell .daily-entry-info {
    background:
        linear-gradient(
            90deg,
            rgba(24, 67, 112, .70),
            rgba(11, 38, 70, .78)) !important;
    color: #dceeff !important;
    border-left-color: #59baff !important;
}

body.test-live-preview.app-shell .daily-entry-info strong,
body.test-live-preview.app-shell .daily-entry-info span,
body.test-live-preview.app-shell .daily-entry-info small {
    color: inherit !important;
}

body.test-live-preview.app-shell .daily-entry-status {
    background: #091a2e !important;
    color: #dce9f7 !important;
    border-color: #315a84 !important;
}

body.test-live-preview.app-shell .daily-entry-status b {
    background: #173657 !important;
    color: #eaf6ff !important;
}

body.test-live-preview.app-shell .daily-entry-status em {
    color: #9fb3ca !important;
}

body.test-live-preview.app-shell .daily-entry-status.is-complete {
    background: rgba(24, 81, 58, .52) !important;
    color: #caffd7 !important;
    border-color: rgba(96, 239, 134, .50) !important;
}

body.test-live-preview.app-shell .daily-entry-status.is-complete b {
    background:
        linear-gradient(
            135deg,
            #22c55e,
            #60ef86) !important;
    color: #061321 !important;
}

body.test-live-preview.app-shell .daily-entry-success {
    background: rgba(24, 81, 58, .52) !important;
    color: #caffd7 !important;
    border-color: rgba(96, 239, 134, .50) !important;
}

body.test-live-preview.app-shell .daily-entry-add-workout {
    background: #102b49 !important;
    color: #bfe6ff !important;
    border-color: #3c79b0 !important;
}

/* =====================================================================
   WEEKLY PLAN / SCHEDULE
   ===================================================================== */

body.test-live-preview.app-shell .weekly-plan-guide,
body.test-live-preview.app-shell .setup-intro-card,
body.test-live-preview.app-shell .recommended-week-review,
body.test-live-preview.app-shell .resistance-first-callout,
body.test-live-preview.app-shell .resistance-anchor-panel,
body.test-live-preview.app-shell .resistance-plan-note {
    background:
        linear-gradient(
            145deg,
            #11243e,
            #0d1d33) !important;
    color: #f5f8ff !important;
    border-color: #2f69a0 !important;
}

body.test-live-preview.app-shell .weekly-plan-guide p,
body.test-live-preview.app-shell .setup-intro-card p,
body.test-live-preview.app-shell .recommended-week-review p,
body.test-live-preview.app-shell .resistance-first-callout p,
body.test-live-preview.app-shell .resistance-anchor-panel p,
body.test-live-preview.app-shell .resistance-plan-note p,
body.test-live-preview.app-shell .plan-recalc-note,
body.test-live-preview.app-shell .plan-day-context,
body.test-live-preview.app-shell .plan-timing-note {
    color: #b6c6da !important;
}

body.test-live-preview.app-shell .resistance-first-callout strong,
body.test-live-preview.app-shell .resistance-anchor-panel h3,
body.test-live-preview.app-shell .resistance-plan-note strong {
    color: #9ddcff !important;
}

body.test-live-preview.app-shell .setup-progress span,
body.test-live-preview.app-shell .weekly-target-chips span,
body.test-live-preview.app-shell .plan-targets > span,
body.test-live-preview.app-shell .plan-mix-item,
body.test-live-preview.app-shell .recommended-day {
    background: #0a1a2d !important;
    color: #dce9f7 !important;
    border-color: #315a84 !important;
}

body.test-live-preview.app-shell .recommended-day strong {
    color: #9fdcff !important;
}

body.test-live-preview.app-shell .recommended-day span {
    color: #dce9f7 !important;
}

body.test-live-preview.app-shell .setup-progress span.active {
    background:
        linear-gradient(
            90deg,
            rgba(89, 186, 255, .24),
            rgba(96, 239, 134, .18)) !important;
    color: #bfe8ff !important;
    border-color: #59baff !important;
}

/* =====================================================================
   PROGRESS
   ===================================================================== */

body.test-live-preview.app-shell .progress-recomp {
    color: #f5f8ff !important;
}

body.test-live-preview.app-shell .progress-primary-card,
body.test-live-preview.app-shell .progress-secondary article,
body.test-live-preview.app-shell .progress-trends,
body.test-live-preview.app-shell .progress-additional,
body.test-live-preview.app-shell .progress-additional-grid div {
    background:
        linear-gradient(
            145deg,
            #11243e,
            #0d1d33) !important;
    color: #f5f8ff !important;
    border-color: #2a5684 !important;
}

body.test-live-preview.app-shell .progress-header p,
body.test-live-preview.app-shell .progress-kicker,
body.test-live-preview.app-shell .progress-label,
body.test-live-preview.app-shell .progress-delta,
body.test-live-preview.app-shell .progress-delta em,
body.test-live-preview.app-shell .progress-secondary article > span,
body.test-live-preview.app-shell .progress-secondary article > small,
body.test-live-preview.app-shell .progress-section-heading p,
body.test-live-preview.app-shell .progress-empty {
    color: #b6c6da !important;
}

body.test-live-preview.app-shell .progress-explainer {
    background: #172544 !important;
    color: #e9e2ff !important;
    border-left-color: #9f7aea !important;
}

body.test-live-preview.app-shell .progress-rank {
    background: #173657 !important;
    color: #f5f8ff !important;
}

body.test-live-preview.app-shell .progress-table th {
    color: #cfe6fa !important;
    background: #102640 !important;
    border-color: #315b85 !important;
}

body.test-live-preview.app-shell .progress-table td {
    color: #d6e3f2 !important;
    background: #0b1b2f !important;
    border-color: #274e76 !important;
}

body.test-live-preview.app-shell .progress-table td span {
    color: #9fb3ca !important;
}

/* ----- common chips / nested regions ----- */

body.test-live-preview.app-shell .option4-checks label,
body.test-live-preview.app-shell .option4-mini-kpis,
body.test-live-preview.app-shell .app-empty-state,
body.test-live-preview.app-shell .dash-actual-line,
body.test-live-preview.app-shell .dash-preliminary,
body.test-live-preview.app-shell .dash-detail-date,
body.test-live-preview.app-shell .dash-refill-line > div,
body.test-live-preview.app-shell .dash-physiology-note,
body.test-live-preview.app-shell .dash-analysis-narrative,
body.test-live-preview.app-shell .dash-analysis-scale-strip > div {
    background: #0a1a2d !important;
    color: #dce9f7 !important;
    border-color: #315a84 !important;
}

/* ----- retain blue -> green neon accent language ----- */

body.test-live-preview.app-shell .primary,
body.test-live-preview.app-shell a.primary,
body.test-live-preview.app-shell button.primary {
    background:
        linear-gradient(
            90deg,
            #59baff,
            #60ef86) !important;
    color: #061321 !important;
}

body.test-live-preview.app-shell .app-kicker,
body.test-live-preview.app-shell .app-section-label,
body.test-live-preview.app-shell .daily-entry-kicker,
body.test-live-preview.app-shell .progress-kicker {
    color: #88d3ff !important;
}

body.test-live-preview.app-shell a:not(.button):not(.primary) {
    text-decoration-color: rgba(89,186,255,.42);
}

/* =====================================================================
   v1010 - MODERN NEON VIBRANCE PASS
   Visual-only polish for authenticated TEST.
   Keeps the dark LIVE-inspired foundation, but restores hierarchy,
   category color, glow, and modern interactive depth.
   ===================================================================== */

body.test-live-preview.app-shell {
    --vib-blue: #59baff;
    --vib-cyan: #20d9ff;
    --vib-green: #60ef86;
    --vib-violet: #a779ff;
    --vib-pink: #ff61d8;
    --vib-amber: #ffc65a;
    --vib-red: #ff7281;
    --vib-panel: #0c1d32;
    --vib-panel-2: #112743;
    --vib-border: #315f8d;
    --vib-text: #f7fbff;
    --vib-muted: #bed0e3;
}

/* ----- richer page canvas without losing the LIVE look ----- */

body.test-live-preview.app-shell {
    background:
        radial-gradient(
            circle at 18% -5%,
            rgba(89, 186, 255, .13),
            transparent 24rem),
        radial-gradient(
            circle at 82% 8%,
            rgba(96, 239, 134, .09),
            transparent 28rem),
        radial-gradient(
            circle at 50% 70%,
            rgba(167, 121, 255, .045),
            transparent 36rem),
        #061321 !important;
}

body.test-live-preview.app-shell .app-page-head,
body.test-live-preview.app-shell .card,
body.test-live-preview.app-shell .daily-entry-section,
body.test-live-preview.app-shell .daily-entry-datebar,
body.test-live-preview.app-shell .weekly-plan-guide,
body.test-live-preview.app-shell .recommended-week-review,
body.test-live-preview.app-shell .progress-primary-card,
body.test-live-preview.app-shell .progress-secondary article {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025),
        0 18px 44px rgba(0, 0, 0, .18);
}

/* ----- subtle neon edge on major surfaces ----- */

body.test-live-preview.app-shell .app-page-head,
body.test-live-preview.app-shell .daily-entry-datebar,
body.test-live-preview.app-shell .weekly-plan-guide {
    position: relative;
    overflow: hidden;
}

body.test-live-preview.app-shell .app-page-head::before,
body.test-live-preview.app-shell .daily-entry-datebar::before,
body.test-live-preview.app-shell .weekly-plan-guide::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            var(--vib-blue),
            var(--vib-cyan) 36%,
            var(--vib-green) 68%,
            var(--vib-violet));
    opacity: .95;
}

/* ----- headings and section markers ----- */

body.test-live-preview.app-shell .app-kicker,
body.test-live-preview.app-shell .daily-entry-kicker,
body.test-live-preview.app-shell .progress-kicker {
    color: var(--vib-cyan) !important;
    text-shadow:
        0 0 18px rgba(32, 217, 255, .28);
}

body.test-live-preview.app-shell .app-section-label {
    color: #b7e9ff !important;
    letter-spacing: .07em;
}

body.test-live-preview.app-shell .app-number {
    color: #061321 !important;
    background:
        linear-gradient(
            135deg,
            var(--vib-blue),
            var(--vib-green)) !important;
    border: 0 !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.08),
        0 0 22px rgba(89,186,255,.22);
}

/* ----- cards: modern depth + restrained color ----- */

body.test-live-preview.app-shell .card.app-section {
    position: relative;
    overflow: hidden;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

body.test-live-preview.app-shell .card.app-section::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background:
        linear-gradient(
            180deg,
            var(--vib-blue),
            var(--vib-cyan));
    opacity: .85;
}

body.test-live-preview.app-shell .card.app-section-teal::after {
    background:
        linear-gradient(
            180deg,
            var(--vib-cyan),
            var(--vib-green));
}

body.test-live-preview.app-shell .card.app-section-violet::after,
body.test-live-preview.app-shell .card.app-section-purple::after {
    background:
        linear-gradient(
            180deg,
            var(--vib-violet),
            var(--vib-pink));
}

body.test-live-preview.app-shell .card.app-section-orange::after,
body.test-live-preview.app-shell .card.app-section-amber::after {
    background:
        linear-gradient(
            180deg,
            var(--vib-amber),
            #ff8a65);
}

/* ----- modern buttons ----- */

body.test-live-preview.app-shell .button,
body.test-live-preview.app-shell button:not(.nav-toggle):not(.primary) {
    border-color: #3e77a9 !important;
    background:
        linear-gradient(
            180deg,
            rgba(20, 50, 82, .96),
            rgba(10, 29, 50, .96)) !important;
    color: #dff4ff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035);
    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        color .16s ease;
}

body.test-live-preview.app-shell .button:hover,
body.test-live-preview.app-shell .button:focus,
body.test-live-preview.app-shell button:not(.nav-toggle):not(.primary):hover,
body.test-live-preview.app-shell button:not(.nav-toggle):not(.primary):focus {
    border-color: var(--vib-cyan) !important;
    color: #ffffff !important;
    box-shadow:
        0 0 0 1px rgba(32,217,255,.18),
        0 0 20px rgba(32,217,255,.12);
    transform: translateY(-1px);
}

body.test-live-preview.app-shell .primary,
body.test-live-preview.app-shell a.primary,
body.test-live-preview.app-shell button.primary {
    background:
        linear-gradient(
            90deg,
            var(--vib-blue),
            var(--vib-cyan) 42%,
            var(--vib-green)) !important;
    box-shadow:
        0 9px 24px rgba(32,217,255,.12),
        0 0 22px rgba(96,239,134,.08) !important;
}

/* ----- fields: brighter focus, better labels ----- */

body.test-live-preview.app-shell input,
body.test-live-preview.app-shell select,
body.test-live-preview.app-shell textarea {
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

body.test-live-preview.app-shell input:focus,
body.test-live-preview.app-shell select:focus,
body.test-live-preview.app-shell textarea:focus {
    outline: none !important;
    border-color: var(--vib-cyan) !important;
    background: #0b2038 !important;
    box-shadow:
        0 0 0 3px rgba(32,217,255,.11),
        0 0 24px rgba(32,217,255,.09) !important;
}

/* =====================================================================
   DAILY ENTRY — make it feel like a flagship screen
   ===================================================================== */

body.test-live-preview.app-shell.vib-daily-entry .daily-entry-header h1 {
    display: inline-block;
    position: relative;
    padding-bottom: .28rem;
}

body.test-live-preview.app-shell.vib-daily-entry .daily-entry-header h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5.5rem;
    height: 3px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--vib-blue),
            var(--vib-green));
    box-shadow:
        0 0 18px rgba(32,217,255,.28);
}

body.test-live-preview.app-shell .daily-entry-datebar {
    border-color: #3b78ad !important;
    background:
        linear-gradient(
            135deg,
            rgba(18, 47, 79, .98),
            rgba(8, 27, 48, .98)) !important;
}

body.test-live-preview.app-shell .daily-entry-datebar input[type="date"] {
    border: 1px solid var(--vib-cyan) !important;
    background:
        linear-gradient(
            135deg,
            rgba(8, 27, 47, 1),
            rgba(11, 38, 61, 1)) !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.025),
        0 0 0 3px rgba(32,217,255,.07),
        0 0 28px rgba(32,217,255,.10) !important;
}

body.test-live-preview.app-shell .daily-entry-datebar > label,
body.test-live-preview.app-shell .daily-entry-datebar label {
    color: #eaf7ff !important;
    font-weight: 800;
}

body.test-live-preview.app-shell .daily-entry-status {
    position: relative;
    overflow: hidden;
    border-color: #315e89 !important;
    background:
        linear-gradient(
            145deg,
            #102640,
            #0a1b2f) !important;
}

body.test-live-preview.app-shell .daily-entry-status::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: var(--vib-blue);
    opacity: .75;
}

body.test-live-preview.app-shell .daily-entry-status.vib-body-recovery::after {
    background:
        linear-gradient(
            90deg,
            var(--vib-blue),
            var(--vib-cyan));
}

body.test-live-preview.app-shell .daily-entry-status.vib-training::after {
    background:
        linear-gradient(
            90deg,
            var(--vib-cyan),
            var(--vib-green));
}

body.test-live-preview.app-shell .daily-entry-status.vib-nutrition::after {
    background:
        linear-gradient(
            90deg,
            var(--vib-violet),
            var(--vib-pink));
}

body.test-live-preview.app-shell .daily-entry-status b {
    color: #ffffff !important;
    box-shadow:
        0 0 18px rgba(89,186,255,.12);
}

body.test-live-preview.app-shell .daily-entry-section {
    position: relative;
    overflow: hidden;
    border-color: #2f608d !important;
    background:
        linear-gradient(
            145deg,
            #112640,
            #0c1b30) !important;
}

body.test-live-preview.app-shell .daily-entry-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background:
        linear-gradient(
            180deg,
            var(--vib-blue),
            var(--vib-cyan));
    box-shadow:
        0 0 18px rgba(89,186,255,.18);
}

body.test-live-preview.app-shell .daily-entry-section.vib-training::before {
    background:
        linear-gradient(
            180deg,
            var(--vib-cyan),
            var(--vib-green));
}

body.test-live-preview.app-shell .daily-entry-section.vib-nutrition::before {
    background:
        linear-gradient(
            180deg,
            var(--vib-violet),
            var(--vib-pink));
}

body.test-live-preview.app-shell .daily-entry-section-heading h2,
body.test-live-preview.app-shell .daily-entry-subheading h3,
body.test-live-preview.app-shell .daily-entry-section label,
body.test-live-preview.app-shell .daily-entry-section legend {
    color: #f9fcff !important;
}

body.test-live-preview.app-shell .daily-entry-section-heading p,
body.test-live-preview.app-shell .daily-entry-subheading p,
body.test-live-preview.app-shell .daily-entry-section .small,
body.test-live-preview.app-shell .daily-entry-section small,
body.test-live-preview.app-shell .daily-entry-section .muted {
    color: #c2d4e7 !important;
    opacity: 1 !important;
}

body.test-live-preview.app-shell .daily-entry-info {
    background:
        linear-gradient(
            100deg,
            rgba(24, 68, 112, .90),
            rgba(13, 44, 75, .90)) !important;
    border-left: 4px solid var(--vib-cyan) !important;
    box-shadow:
        inset 0 0 28px rgba(89,186,255,.035);
}

body.test-live-preview.app-shell .daily-entry-section.vib-nutrition .daily-entry-info {
    border-left-color: var(--vib-violet) !important;
}

body.test-live-preview.app-shell .daily-entry-section.vib-training .daily-entry-info {
    border-left-color: var(--vib-green) !important;
}

/* =====================================================================
   WEEKLY PLAN — restore category color and make each day feel alive
   ===================================================================== */

body.test-live-preview.app-shell .vib-workout-label {
    --vib-color: var(--vib-blue);
}

body.test-live-preview.app-shell .vib-workout-label.vib-strength,
body.test-live-preview.app-shell .vib-workout-select.vib-strength,
body.test-live-preview.app-shell .vib-workout-host.vib-strength {
    --vib-color: var(--vib-violet);
}

body.test-live-preview.app-shell .vib-workout-label.vib-accessory,
body.test-live-preview.app-shell .vib-workout-select.vib-accessory,
body.test-live-preview.app-shell .vib-workout-host.vib-accessory {
    --vib-color: var(--vib-amber);
}

body.test-live-preview.app-shell .vib-workout-label.vib-conditioning,
body.test-live-preview.app-shell .vib-workout-select.vib-conditioning,
body.test-live-preview.app-shell .vib-workout-host.vib-conditioning {
    --vib-color: var(--vib-cyan);
}

body.test-live-preview.app-shell .vib-workout-label.vib-recovery,
body.test-live-preview.app-shell .vib-workout-select.vib-recovery,
body.test-live-preview.app-shell .vib-workout-host.vib-recovery {
    --vib-color: var(--vib-green);
}

body.test-live-preview.app-shell .vib-workout-label.vib-mixed,
body.test-live-preview.app-shell .vib-workout-select.vib-mixed,
body.test-live-preview.app-shell .vib-workout-host.vib-mixed {
    --vib-color: var(--vib-pink);
}

body.test-live-preview.app-shell .vib-workout-label.vib-neutral,
body.test-live-preview.app-shell .vib-workout-select.vib-neutral,
body.test-live-preview.app-shell .vib-workout-host.vib-neutral {
    --vib-color: var(--vib-blue);
}

body.test-live-preview.app-shell .vib-workout-dot {
    display: inline-block;
    width: .68rem;
    height: .68rem;
    margin: 0 .42rem 0 .35rem;
    border-radius: 999px;
    vertical-align: .02rem;
    background: var(--vib-color);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--vib-color) 14%, transparent),
        0 0 14px var(--vib-color);
}

body.test-live-preview.app-shell .vib-workout-select {
    border-color:
        color-mix(
            in srgb,
            var(--vib-color) 62%,
            #315f8d) !important;
    box-shadow:
        inset 4px 0 0 var(--vib-color),
        0 0 0 1px rgba(255,255,255,.015) !important;
}

body.test-live-preview.app-shell .vib-workout-host {
    border-color:
        color-mix(
            in srgb,
            var(--vib-color) 48%,
            #315f8d) !important;
}

body.test-live-preview.app-shell .weekly-plan-guide {
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(96,239,134,.075),
            transparent 18rem),
        linear-gradient(
            145deg,
            #112743,
            #0b1c31) !important;
}

body.test-live-preview.app-shell .setup-progress span.active {
    background:
        linear-gradient(
            90deg,
            rgba(89,186,255,.30),
            rgba(96,239,134,.22)) !important;
    border-color: var(--vib-cyan) !important;
    color: #ffffff !important;
    box-shadow:
        0 0 18px rgba(32,217,255,.10);
}

body.test-live-preview.app-shell .weekly-target-chips span,
body.test-live-preview.app-shell .plan-targets > span {
    border-color: #3c6d99 !important;
    background:
        linear-gradient(
            180deg,
            #102640,
            #091a2e) !important;
}

/* ----- broader app vibrance, still restrained ----- */

body.test-live-preview.app-shell .progress-primary-card,
body.test-live-preview.app-shell .progress-secondary article,
body.test-live-preview.app-shell .dash-panel,
body.test-live-preview.app-shell .dash-section {
    border-color: #315f8d !important;
}

body.test-live-preview.app-shell .progress-primary-card {
    box-shadow:
        inset 4px 0 0 var(--vib-violet),
        0 18px 44px rgba(0,0,0,.18) !important;
}

body.test-live-preview.app-shell .dash-panel:nth-of-type(1),
body.test-live-preview.app-shell .dash-section:nth-of-type(1) {
    box-shadow:
        inset 3px 0 0 rgba(89,186,255,.78),
        0 18px 44px rgba(0,0,0,.16) !important;
}

body.test-live-preview.app-shell .dash-panel:nth-of-type(2),
body.test-live-preview.app-shell .dash-section:nth-of-type(2) {
    box-shadow:
        inset 3px 0 0 rgba(96,239,134,.72),
        0 18px 44px rgba(0,0,0,.16) !important;
}

/* ----- accessibility / motion ----- */

@media (prefers-reduced-motion: reduce) {
    body.test-live-preview.app-shell .card.app-section,
    body.test-live-preview.app-shell .button,
    body.test-live-preview.app-shell button,
    body.test-live-preview.app-shell input,
    body.test-live-preview.app-shell select,
    body.test-live-preview.app-shell textarea {
        transition: none !important;
    }
}

@media (max-width: 760px) {
    body.test-live-preview.app-shell .vib-workout-dot {
        width: .58rem;
        height: .58rem;
        margin-left: .25rem;
    }

    body.test-live-preview.app-shell .daily-entry-datebar::before,
    body.test-live-preview.app-shell .weekly-plan-guide::before {
        height: 3px;
    }
}

/* =====================================================================
   v1010 - MY WORKOUTS PLAN / DAILY PICKER
   Reusable hierarchical selector shared by Weekly Plan and Daily Entry.
   ===================================================================== */

body.test-live-preview.app-shell .workout-template-dialog {
    width: min(34rem, calc(100vw - 2rem));
    max-height: min(80vh, 42rem);
    padding: 0;
    border: 1px solid rgba(89, 186, 255, .52);
    border-radius: 1rem;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(96, 239, 134, .10),
            transparent 18rem),
        linear-gradient(
            145deg,
            #112743,
            #08192c);
    color: #f7fbff;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .55),
        0 0 36px rgba(32, 217, 255, .10);
}

body.test-live-preview.app-shell .workout-template-dialog::backdrop {
    background: rgba(2, 10, 20, .72);
    backdrop-filter: blur(3px);
}

body.test-live-preview.app-shell .workout-template-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem .8rem;
    border-bottom: 1px solid rgba(89, 186, 255, .22);
}

body.test-live-preview.app-shell .workout-template-dialog-head h2 {
    margin: .1rem 0 0;
    font-size: 1.2rem;
}

body.test-live-preview.app-shell .workout-template-dialog-close {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: 1.45rem;
    line-height: 1;
}

body.test-live-preview.app-shell .workout-template-choice-list {
    display: grid;
    gap: .55rem;
    padding: .9rem 1rem;
    max-height: 24rem;
    overflow: auto;
}

body.test-live-preview.app-shell .workout-template-choice {
    display: grid;
    gap: .22rem;
    width: 100%;
    padding: .78rem .9rem !important;
    text-align: left;
    border: 1px solid #315f8d !important;
    border-radius: .8rem !important;
    background:
        linear-gradient(
            135deg,
            rgba(16, 43, 73, .98),
            rgba(8, 25, 44, .98)) !important;
    color: #f7fbff !important;
}

body.test-live-preview.app-shell .workout-template-choice:hover,
body.test-live-preview.app-shell .workout-template-choice:focus {
    border-color: var(--vib-cyan, #20d9ff) !important;
    box-shadow:
        inset 3px 0 0 var(--vib-green, #60ef86),
        0 0 24px rgba(32, 217, 255, .12) !important;
    transform: translateY(-1px);
}

body.test-live-preview.app-shell .workout-template-choice strong {
    color: #ffffff !important;
    font-size: .96rem;
}

body.test-live-preview.app-shell .workout-template-choice span {
    color: #bcd0e3 !important;
    font-size: .78rem;
}

body.test-live-preview.app-shell .workout-template-create {
    margin: 0 1rem 1rem;
    width: calc(100% - 2rem);
}

body.test-live-preview.app-shell .workout-template-empty {
    margin: 0;
    padding: 1rem;
    color: #bfd0e3 !important;
}

body.test-live-preview.app-shell .wi-plan-builder-banner {
    display: grid;
    gap: .22rem;
    margin-bottom: .8rem;
    border-left: 4px solid var(--vib-green, #60ef86) !important;
    background:
        linear-gradient(
            90deg,
            rgba(21, 75, 58, .56),
            rgba(9, 35, 55, .78)) !important;
}

body.test-live-preview.app-shell .wi-plan-builder-banner strong {
    color: #d7ffe0 !important;
}

body.test-live-preview.app-shell .plan-workout-select option[value="__MY_WORKOUTS__"],
body.test-live-preview.app-shell .daily-workout-type-select option[value="__MY_WORKOUTS__"] {
    color: #bfe8ff;
    font-weight: 800;
}

body.test-live-preview.app-shell .plan-workout-select option[value="__CREATE_CUSTOM__"],
body.test-live-preview.app-shell .daily-workout-type-select option[value="__CREATE_CUSTOM__"] {
    color: #caffd7;
    font-weight: 800;
}

body.test-live-preview.app-shell .plan-day-workout select:has(option[data-template-option]:checked) {
    border-color: var(--vib-green, #60ef86) !important;
    box-shadow:
        inset 4px 0 0 var(--vib-green, #60ef86),
        0 0 20px rgba(96, 239, 134, .08) !important;
}

@media (max-width: 640px) {
    body.test-live-preview.app-shell .workout-template-dialog {
        width: calc(100vw - 1rem);
    }
}


/* TEST palette for the shared entry-date controls. */
body.test-live-preview.app-shell .app-adjacent-days .app-day-nav-button {
    min-height: 2.25rem;
    padding: .42rem .55rem;
    color: #e8f7ff !important;
    background: #102a44;
    border-color: #3974a0;
    font-size: .79rem;
}
body.test-live-preview.app-shell .app-adjacent-days .app-day-nav-button:hover,
body.test-live-preview.app-shell .app-adjacent-days .app-day-nav-button:focus-visible {
    color: #fff !important;
    background: #1a4261;
    border-color: #35d1e3;
}
body.test-live-preview.app-shell .app-date-picker input[type="date"],
body.test-live-preview.app-shell .daily-entry-date-form input[type="date"] {
    font-size: 1.05rem;
    font-weight: 800;
    color: #70e0f4 !important;
}
body.test-live-preview.app-shell .app-date-heading {
    font-size: 1.18rem;
    font-weight: 800;
    color: #70e0f4 !important;
}


/* ===== v1013 weekly plan energy palette ===== */
body.test-live-preview.app-shell .plan-week-mix .plan-mix-item {
    border: 2px solid #315a84 !important;
    border-top-width: 2px !important;
    background: #0b1c31 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

body.test-live-preview.app-shell .plan-mix-major {
    border-color: #ff4d5a !important;
    box-shadow: 0 0 18px rgba(255, 77, 90, .16);
}
body.test-live-preview.app-shell .plan-mix-major strong { color: #ff8790 !important; }

body.test-live-preview.app-shell .plan-mix-accessory {
    border-color: #ff982f !important;
    box-shadow: 0 0 18px rgba(255, 152, 47, .16);
}
body.test-live-preview.app-shell .plan-mix-accessory strong { color: #ffb766 !important; }

body.test-live-preview.app-shell .plan-mix-cardio {
    border-color: #ffd84d !important;
    box-shadow: 0 0 18px rgba(255, 216, 77, .14);
}
body.test-live-preview.app-shell .plan-mix-cardio strong { color: #ffe783 !important; }

body.test-live-preview.app-shell .plan-mix-recovery {
    border-color: #55e27a !important;
    box-shadow: 0 0 18px rgba(85, 226, 122, .14);
}
body.test-live-preview.app-shell .plan-mix-recovery strong { color: #8cf0a7 !important; }

body.test-live-preview.app-shell .plan-mix-other {
    border-color: #39c8ee !important;
}
body.test-live-preview.app-shell .plan-mix-other strong { color: #7dddf7 !important; }

body.test-live-preview.app-shell .plan-mix-unplanned {
    border-color: #6f8ca8 !important;
}
body.test-live-preview.app-shell .plan-mix-unplanned strong { color: #a8bfd4 !important; }

body.test-live-preview.app-shell .plan-week-mix .plan-mix-item span {
    color: #d3e0ee !important;
}

body.test-live-preview.app-shell .plan-day-row {
    border-style: solid !important;
    border-width: 2px 2px 2px 7px !important;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease,
        background .16s ease;
}

body.test-live-preview.app-shell .plan-day-row.plan-cat-major {
    border-color: #ff4d5a !important;
    background:
        linear-gradient(90deg, rgba(118, 24, 38, .36), rgba(10, 28, 49, .96) 24%) !important;
    box-shadow: inset 5px 0 0 rgba(255, 77, 90, .22), 0 0 20px rgba(255, 77, 90, .10);
}

body.test-live-preview.app-shell .plan-day-row.plan-cat-accessory {
    border-color: #ff982f !important;
    background:
        linear-gradient(90deg, rgba(126, 69, 13, .34), rgba(10, 28, 49, .96) 24%) !important;
    box-shadow: inset 5px 0 0 rgba(255, 152, 47, .20), 0 0 20px rgba(255, 152, 47, .09);
}

body.test-live-preview.app-shell .plan-day-row.plan-cat-cardio {
    border-color: #ffd84d !important;
    background:
        linear-gradient(90deg, rgba(110, 91, 17, .32), rgba(10, 28, 49, .96) 24%) !important;
    box-shadow: inset 5px 0 0 rgba(255, 216, 77, .18), 0 0 20px rgba(255, 216, 77, .08);
}

body.test-live-preview.app-shell .plan-day-row.plan-cat-recovery {
    border-color: #55e27a !important;
    background:
        linear-gradient(90deg, rgba(24, 91, 54, .34), rgba(10, 28, 49, .96) 24%) !important;
    box-shadow: inset 5px 0 0 rgba(85, 226, 122, .18), 0 0 20px rgba(85, 226, 122, .08);
}

body.test-live-preview.app-shell .plan-day-row.plan-cat-other {
    border-color: #39c8ee !important;
    background:
        linear-gradient(90deg, rgba(20, 79, 103, .30), rgba(10, 28, 49, .96) 24%) !important;
}

body.test-live-preview.app-shell .plan-day-row.plan-cat-unplanned {
    border-color: #6f8ca8 !important;
    background:
        linear-gradient(90deg, rgba(50, 69, 89, .30), rgba(10, 28, 49, .96) 24%) !important;
}

body.test-live-preview.app-shell .plan-day-row.plan-cat-major .plan-category-badge {
    border-color: #ff4d5a !important;
    background: rgba(118, 24, 38, .52) !important;
    color: #ffd9dc !important;
}
body.test-live-preview.app-shell .plan-day-row.plan-cat-accessory .plan-category-badge {
    border-color: #ff982f !important;
    background: rgba(126, 69, 13, .50) !important;
    color: #ffe1bc !important;
}
body.test-live-preview.app-shell .plan-day-row.plan-cat-cardio .plan-category-badge {
    border-color: #ffd84d !important;
    background: rgba(110, 91, 17, .48) !important;
    color: #fff1ae !important;
}
body.test-live-preview.app-shell .plan-day-row.plan-cat-recovery .plan-category-badge {
    border-color: #55e27a !important;
    background: rgba(24, 91, 54, .48) !important;
    color: #d3ffdf !important;
}
body.test-live-preview.app-shell .plan-day-row.plan-cat-other .plan-category-badge {
    border-color: #39c8ee !important;
    background: rgba(20, 79, 103, .48) !important;
    color: #d2f7ff !important;
}
body.test-live-preview.app-shell .plan-day-row.plan-cat-unplanned .plan-category-badge {
    border-color: #6f8ca8 !important;
    background: rgba(50, 69, 89, .46) !important;
    color: #d5e3ef !important;
}

body.test-live-preview.app-shell .plan-day-row:hover {
    transform: translateY(-1px);
}

body.test-live-preview.app-shell .plan-day-row.plan-pending-change {
    outline: 3px solid #eef8ff !important;
    outline-offset: 3px;
    box-shadow:
        0 0 0 2px #31d2f7,
        0 0 30px rgba(49, 210, 247, .28) !important;
    transform: translateY(-1px);
}

body.test-live-preview.app-shell .plan-day-row.plan-pending-change .plan-recalc-note {
    display: inline-block;
    margin-top: .55rem;
    padding: .38rem .55rem;
    border-left: 4px solid #ffd84d;
    border-radius: 4px;
    background: rgba(110, 91, 17, .30);
    color: #fff1a8 !important;
    font-weight: 900;
}


/* ===== v1013.1 weekly summary fills + picker category colors ===== */
body.test-live-preview.app-shell .plan-week-mix {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.test-live-preview.app-shell .plan-week-mix .plan-mix-item {
    min-height: 5.15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-width: 2px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
}

body.test-live-preview.app-shell .plan-week-mix .plan-mix-major {
    background: linear-gradient(145deg, #a51f36, #731426) !important;
    border-color: #ff5968 !important;
}
body.test-live-preview.app-shell .plan-week-mix .plan-mix-major strong,
body.test-live-preview.app-shell .plan-week-mix .plan-mix-major span {
    color: #fff !important;
}

body.test-live-preview.app-shell .plan-week-mix .plan-mix-accessory {
    background: linear-gradient(145deg, #bd5b12, #843b08) !important;
    border-color: #ff9b38 !important;
}
body.test-live-preview.app-shell .plan-week-mix .plan-mix-accessory strong,
body.test-live-preview.app-shell .plan-week-mix .plan-mix-accessory span {
    color: #fff !important;
}

body.test-live-preview.app-shell .plan-week-mix .plan-mix-cardio {
    background: linear-gradient(145deg, #e0ba19, #a88709) !important;
    border-color: #ffe15a !important;
}
body.test-live-preview.app-shell .plan-week-mix .plan-mix-cardio strong,
body.test-live-preview.app-shell .plan-week-mix .plan-mix-cardio span {
    color: #071526 !important;
}

body.test-live-preview.app-shell .plan-week-mix .plan-mix-recovery {
    background: linear-gradient(145deg, #19844a, #105d33) !important;
    border-color: #60ee89 !important;
}
body.test-live-preview.app-shell .plan-week-mix .plan-mix-recovery strong,
body.test-live-preview.app-shell .plan-week-mix .plan-mix-recovery span {
    color: #fff !important;
}

body.test-live-preview.app-shell .plan-week-mix .plan-mix-unplanned {
    background: linear-gradient(145deg, #3b5873, #263d54) !important;
    border-color: #7699b9 !important;
}
body.test-live-preview.app-shell .plan-week-mix .plan-mix-unplanned strong,
body.test-live-preview.app-shell .plan-week-mix .plan-mix-unplanned span {
    color: #f3f8fc !important;
}

/* Closed picker inherits the day's semantic color. */
body.test-live-preview.app-shell .plan-cat-major .plan-workout-select {
    border-color: #ff5968 !important;
    color: #ff8791 !important;
}
body.test-live-preview.app-shell .plan-cat-accessory .plan-workout-select {
    border-color: #ff9b38 !important;
    color: #ffb86e !important;
}
body.test-live-preview.app-shell .plan-cat-cardio .plan-workout-select {
    border-color: #ffe15a !important;
    color: #ffe77e !important;
}
body.test-live-preview.app-shell .plan-cat-recovery .plan-workout-select {
    border-color: #60ee89 !important;
    color: #91f3ad !important;
}
body.test-live-preview.app-shell .plan-cat-unplanned .plan-workout-select {
    border-color: #7699b9 !important;
    color: #c0d2e2 !important;
}

/* Native select menus are browser-rendered, but Chromium/Windows honors
   option text colors. The closed selector styling above remains the fallback. */
body.test-live-preview.app-shell .plan-workout-select option[data-category="major"] {
    color: #d82942;
    font-weight: 800;
}
body.test-live-preview.app-shell .plan-workout-select option[data-category="accessory"] {
    color: #d5670f;
    font-weight: 800;
}
body.test-live-preview.app-shell .plan-workout-select option[data-category="cardio"] {
    color: #9a7a00;
    font-weight: 800;
}
body.test-live-preview.app-shell .plan-workout-select option[data-category="recovery"] {
    color: #168043;
    font-weight: 800;
}
body.test-live-preview.app-shell .plan-workout-select option[data-category="unplanned"] {
    color: #647c93;
    font-weight: 800;
}

@media (max-width: 980px) {
    body.test-live-preview.app-shell .plan-week-mix {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    body.test-live-preview.app-shell .plan-week-mix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ===== v1013.2 recommended vs planned split cards ===== */
body.test-live-preview.app-shell .plan-week-mix .plan-mix-item {
    min-height: 0;
    padding: 0 !important;
    justify-content: stretch;
    overflow: hidden;
    background: transparent !important;
}

body.test-live-preview.app-shell .plan-mix-recommended,
body.test-live-preview.app-shell .plan-mix-planned {
    padding: .78rem .9rem;
}

body.test-live-preview.app-shell .plan-mix-recommended {
    min-height: 6.35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.test-live-preview.app-shell .plan-mix-planned {
    min-height: 4.65rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid rgba(5, 18, 32, .22);
}

body.test-live-preview.app-shell .plan-mix-section-label {
    margin: 0 0 .42rem !important;
    font-size: .67rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.test-live-preview.app-shell .plan-mix-value-line {
    display: flex;
    align-items: baseline;
    gap: .48rem;
}

body.test-live-preview.app-shell .plan-mix-value-line strong {
    display: inline-block;
    flex: 0 0 auto;
    font-size: 1.72rem;
    line-height: 1;
}

body.test-live-preview.app-shell .plan-mix-value-line span {
    display: inline-block;
    margin: 0 !important;
    font-size: .78rem !important;
    line-height: 1.16;
    font-weight: 900 !important;
}

body.test-live-preview.app-shell .plan-mix-recommended em {
    display: block;
    margin-top: .5rem;
    font-size: .68rem;
    line-height: 1;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .055em;
}

/* Dark recommendation headers: white lettering on the stronger category color. */
body.test-live-preview.app-shell .plan-mix-major .plan-mix-recommended {
    background: linear-gradient(145deg, #9b1d35, #701426) !important;
}
body.test-live-preview.app-shell .plan-mix-accessory .plan-mix-recommended {
    background: linear-gradient(145deg, #aa520f, #773706) !important;
}
body.test-live-preview.app-shell .plan-mix-cardio .plan-mix-recommended {
    background: linear-gradient(145deg, #917500, #675300) !important;
}
body.test-live-preview.app-shell .plan-mix-recovery .plan-mix-recommended {
    background: linear-gradient(145deg, #14733e, #0d512c) !important;
}
body.test-live-preview.app-shell .plan-mix-unplanned .plan-mix-recommended {
    background: linear-gradient(145deg, #39536c, #293d51) !important;
}

body.test-live-preview.app-shell .plan-week-mix .plan-mix-recommended strong,
body.test-live-preview.app-shell .plan-week-mix .plan-mix-recommended span,
body.test-live-preview.app-shell .plan-week-mix .plan-mix-recommended em {
    color: #ffffff !important;
}

/* Lighter lower cells: actual planned count in black for instant comparison. */
body.test-live-preview.app-shell .plan-mix-major .plan-mix-planned {
    background: #f4a9b5 !important;
}
body.test-live-preview.app-shell .plan-mix-accessory .plan-mix-planned {
    background: #ffc188 !important;
}
body.test-live-preview.app-shell .plan-mix-cardio .plan-mix-planned {
    background: #f8e583 !important;
}
body.test-live-preview.app-shell .plan-mix-recovery .plan-mix-planned {
    background: #a9e8bb !important;
}
body.test-live-preview.app-shell .plan-mix-unplanned .plan-mix-planned {
    background: #c8d8e6 !important;
}

body.test-live-preview.app-shell .plan-week-mix .plan-mix-planned strong,
body.test-live-preview.app-shell .plan-week-mix .plan-mix-planned span {
    color: #07101a !important;
}

body.test-live-preview.app-shell .plan-mix-planned .plan-mix-section-label {
    opacity: .72;
}

@media (max-width: 1100px) {
    body.test-live-preview.app-shell .plan-mix-value-line {
        align-items: flex-start;
        flex-direction: column;
        gap: .24rem;
    }
}

@media (max-width: 700px) {
    body.test-live-preview.app-shell .plan-mix-recommended {
        min-height: 5.9rem;
    }

    body.test-live-preview.app-shell .plan-mix-planned {
        min-height: 4.35rem;
    }
}


/* ===== v1013.3 Weekly Plan goal preview dark treatment ===== */
body.test-live-preview.app-shell .plan-goal-preview {
    border-color:#315a84 !important;
    background:
        linear-gradient(
            135deg,
            rgba(17, 36, 62, .98),
            rgba(10, 27, 47, .98)) !important;
    box-shadow:0 10px 28px rgba(0,0,0,.22);
}

body.test-live-preview.app-shell .plan-goal-preview.is-previewing {
    border-color:#59baff !important;
    box-shadow:
        0 0 0 1px rgba(89,186,255,.24),
        0 12px 30px rgba(0,0,0,.26);
}

body.test-live-preview.app-shell .plan-goal-preview h2 {
    color:#f5f8ff !important;
}

body.test-live-preview.app-shell .plan-goal-preview p,
body.test-live-preview.app-shell .plan-goal-engine-note {
    color:#b8c9dc !important;
}

body.test-live-preview.app-shell .plan-goal-preview-copy strong {
    color:#ffffff !important;
}

body.test-live-preview.app-shell .plan-goal-preview-form label {
    color:#9fdcff !important;
}

body.test-live-preview.app-shell .plan-goal-preview-form select {
    border-color:#46719b !important;
    background:#071a2d !important;
    color:#f5f8ff !important;
}

body.test-live-preview.app-shell .plan-goal-preview-form select:focus {
    border-color:#59baff !important;
    outline:2px solid rgba(89,186,255,.20);
    outline-offset:1px;
}

body.test-live-preview.app-shell .plan-goal-current-pill {
    border-color:#55e27a !important;
    background:rgba(24,91,54,.36) !important;
    color:#bdf7cc !important;
}


/* ===== v1013.4 Weekly Plan closeout dark simulator ===== */
body.test-live-preview.app-shell .weekly-plan-hero-head {
    align-items:stretch;
}

body.test-live-preview.app-shell .weekly-plan-hero-image {
    border-color:#315a84 !important;
    background:#071a2d !important;
    box-shadow:0 10px 28px rgba(0,0,0,.24);
}

body.test-live-preview.app-shell .weekly-plan-hero-image img {
    filter:saturate(.94) contrast(1.02) brightness(.88);
}

body.test-live-preview.app-shell .plan-goal-outlook {
    border-color:#315a84 !important;
    background:rgba(6,20,35,.70) !important;
}

body.test-live-preview.app-shell .plan-goal-outlook-head strong {
    color:#f5f8ff !important;
}

body.test-live-preview.app-shell .plan-goal-outlook-grid > div {
    border-color:#315a84 !important;
    background:#0a1a2d !important;
}

body.test-live-preview.app-shell .plan-goal-outlook-grid span {
    color:#89a7c5 !important;
}

body.test-live-preview.app-shell .plan-goal-outlook-grid strong {
    color:#f5f8ff !important;
}

body.test-live-preview.app-shell .plan-goal-outlook > p {
    color:#9fb2c8 !important;
}

body.test-live-preview.app-shell .plan-goal-title-row .help-tip,
body.test-live-preview.app-shell .plan-goal-outlook-head .help-tip {
    border-color:#4d789f !important;
    color:#9fdcff !important;
    background:#0a1a2d !important;
}


/* ===== v1013.5 compact cardio + recovery dark treatment ===== */
body.test-live-preview.app-shell .workout-intelligence-page .wi-quick-log-intro {
    border-color:#315a84 !important;
    background:#0a1a2d !important;
    color:#dce9f7 !important;
}

body.test-live-preview.app-shell .workout-intelligence-page .wi-quick-log-intro strong {
    color:#9fdcff !important;
}

body.test-live-preview.app-shell .workout-intelligence-page .wi-quick-log {
    border-color:#315a84 !important;
    background:
        linear-gradient(
            145deg,
            #10243d,
            #0a1a2d) !important;
    box-shadow:0 10px 28px rgba(0,0,0,.22);
}

body.test-live-preview.app-shell .workout-intelligence-page .wi-cardio-activity-field label,
body.test-live-preview.app-shell .workout-intelligence-page .wi-cardio-number-field > span,
body.test-live-preview.app-shell .workout-intelligence-page .wi-quick-log-kicker {
    color:#9fdcff !important;
}

body.test-live-preview.app-shell .workout-intelligence-page .wi-cardio-activity-field select,
body.test-live-preview.app-shell .workout-intelligence-page .wi-cardio-number-field input {
    border-color:#46719b !important;
    background:#06182a !important;
    color:#f5f8ff !important;
}

body.test-live-preview.app-shell .workout-intelligence-page .wi-cardio-activity-field select:focus,
body.test-live-preview.app-shell .workout-intelligence-page .wi-cardio-number-field input:focus {
    border-color:#59baff !important;
    outline:2px solid rgba(89,186,255,.18);
    outline-offset:1px;
}

body.test-live-preview.app-shell .workout-intelligence-page .wi-quick-log-summary > small,
body.test-live-preview.app-shell .workout-intelligence-page .wi-cardio-number-field small {
    color:#9fb2c8 !important;
}

body.test-live-preview.app-shell .workout-intelligence-page .wi-quick-log-actions {
    border-top-color:#315a84 !important;
}


/* ===== v1013.6 completed workout sync dark treatment ===== */
body.test-live-preview.app-shell .daily-entry-actual-sync {
    border-color:#3d9960 !important;
    background:rgba(20,74,45,.42) !important;
}

body.test-live-preview.app-shell .daily-entry-actual-sync strong {
    color:#9af8b1 !important;
}

body.test-live-preview.app-shell .daily-entry-actual-sync span {
    color:#c8dfd0 !important;
}

body.test-live-preview.app-shell .daily-entry-completed-actual {
    border-color:#315a84 !important;
    background:#0a1a2d !important;
}

body.test-live-preview.app-shell .daily-entry-completed-badge {
    background:rgba(30,110,63,.42) !important;
    color:#9af8b1 !important;
}

body.test-live-preview.app-shell .daily-entry-completed-stats > div {
    border-color:#315a84 !important;
    background:#08182a !important;
}

body.test-live-preview.app-shell .daily-entry-completed-stats span,
body.test-live-preview.app-shell .daily-entry-completed-actual p {
    color:#a9bdd2 !important;
}

body.test-live-preview.app-shell .daily-entry-completed-stats strong,
body.test-live-preview.app-shell .daily-entry-completed-actual-head strong {
    color:#f5f8ff !important;
}


/* ===== v1013.7 workout completion sync confirmation ===== */
body.test-live-preview.app-shell .workout-intelligence-page .wi-complete-sync {
    border-color:#3d9960 !important;
    background:rgba(20,74,45,.38) !important;
}

body.test-live-preview.app-shell .workout-intelligence-page .wi-complete-sync > strong {
    color:#9af8b1 !important;
}

body.test-live-preview.app-shell .workout-intelligence-page .wi-complete-sync > p {
    color:#c8dfd0 !important;
}
