/* Fluo app theme (served under /app). Shared tokens come from brand/styles/fluo-tokens.css. */
:root {
    --brand: var(--fluo-action);
    --brand-600: var(--fluo-action-hover);
    --brand-700: var(--fluo-navy);
    --brand-100: var(--fluo-line);
    --brand-50: var(--fluo-mist);
    --accent: var(--fluo-action);
    --accent-50: var(--fluo-sand);
    --bg: var(--fluo-canvas);
    --surface: var(--fluo-surface);
    --ink: var(--fluo-ink);
    --muted: var(--fluo-muted);
    --line: var(--fluo-line);
    --danger: var(--fluo-danger);
    --danger-50: #FBECEF;
    --warn-50: var(--fluo-sand);
    --ok: var(--fluo-success);
    --radius: var(--fluo-radius-card);
    --radius-sm: var(--fluo-radius-control);
    --shadow: var(--fluo-shadow);
    --font: var(--fluo-body);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 400; font-family: var(--fluo-display); letter-spacing: -.025em; }
h2 { font-size: 1.5rem; font-weight: 400; font-family: var(--fluo-display); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); }
h1:focus { outline: none; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shell */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .9rem clamp(1rem, 4vw, 2.5rem);
    background: rgb(247 249 254 / .94); backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.topbar-links { display: flex; gap: 1.25rem; }
.topbar-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .35rem; }
.topbar-links a:hover { color: var(--brand); }
.page { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem) 6rem; }
.footer { padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 5.5rem; color: var(--muted); font-size: .85rem; text-align: center; border-top: 1px solid var(--line); }
.footer p { max-width: 720px; margin: 0 auto; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card.tint { background: var(--brand-50); border-color: var(--brand-100); box-shadow: none; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 1rem; }
.grid > .card + .card { margin-top: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
    transition: background .15s, transform .05s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
.btn-outline { background: var(--surface); color: var(--brand); border-color: var(--brand-100); }
.btn-outline:hover:not(:disabled) { border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--ink); background: rgba(0,0,0,.04); }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: .8rem 1.8rem; }
.btn-sm { min-height: 44px; padding: .35rem .9rem; font-size: .875rem; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); font-size: 1.1rem; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

/* Forms */
label.field { display: block; font-weight: 600; margin-bottom: .35rem; }
.hint { color: var(--muted); font-size: .9rem; margin-top: -.15rem; margin-bottom: .6rem; font-weight: 400; }
.input, textarea.input, select.input {
    width: 100%; min-height: 48px; padding: .65rem .9rem; font: inherit; color: var(--ink);
    border: 1.5px solid var(--fluo-control); border-radius: var(--radius-sm); background: var(--surface);
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.input-code { font-size: 1.4rem; letter-spacing: .15em; text-transform: uppercase; text-align: center; font-weight: 700; }
.question { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.question:first-of-type { border-top: 0; padding-top: 0; }
.question > .q-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .2rem; }
.error-text { color: var(--danger); font-size: .9rem; margin-top: .35rem; }

/* Option buttons and chips */
.options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.options.compact { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.option {
    text-align: left; min-height: 52px; padding: .75rem 1rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer;
    display: flex; align-items: center; gap: .65rem; transition: border-color .15s, background .15s;
}
.option::before { content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fluo-control); }
.option:hover { border-color: var(--brand); }
.option.selected { border-color: var(--brand); background: var(--brand-50); font-weight: 600; }
.option.selected::before { border-color: var(--brand); background: radial-gradient(var(--brand) 45%, transparent 50%); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
    padding: .5rem .95rem; font: inherit; font-size: .95rem; cursor: pointer; min-height: 42px; transition: all .15s;
}
.chip:hover { border-color: var(--brand); }
.chip.selected { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip.selected::before { content: "✓ "; }

/* Pills / badges */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--brand-50); color: var(--brand-700); white-space: nowrap; }
.pill.accent { background: var(--accent-50); color: #8A5410; }
.pill.grey { background: var(--fluo-sand); color: var(--muted); }
.pill.danger { background: var(--danger-50); color: var(--danger); }
.cat-Aerobic { background: #E3F1FB; color: #1C5E8A; }
.cat-Strength { background: #F3E8FB; color: #6B3592; }
.cat-Flexibility { background: #E9F6EC; color: #2F7A45; }
.cat-Balance { background: #FFF1DD; color: #8A5410; }
.cat-Mobility { background: var(--brand-50); color: var(--brand-700); }
.cat-Physio { background: #FBE9EE; color: #9A3352; }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: 1rem 1.15rem; display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.alert .alert-icon { font-size: 1.25rem; line-height: 1.3; }
.alert p:last-child { margin-bottom: 0; }
.alert-warn { background: var(--warn-50); border: 1px solid #D3C6AF; }
.alert-danger { background: var(--danger-50); border: 1px solid #E9B8C0; }
.alert-info { background: var(--brand-50); border: 1px solid var(--brand-100); }

/* Home */
.hero { display: grid; gap: 2rem; grid-template-columns: 1.2fr 1fr; align-items: center; padding: 1.5rem 0 2.5rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-art { background: linear-gradient(160deg, var(--brand-50), #fff); border-radius: 28px; padding: 1.5rem; border: 1px solid var(--brand-100); }
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .feature-icon { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); font-size: 1.3rem; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

/* Survey wizard */
.wizard { max-width: 760px; margin: 0 auto; }
.wizard-progress { display: flex; gap: .35rem; margin: .5rem 0 1.25rem; }
.wizard-progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.wizard-progress span.done { background: var(--brand); }
.wizard-progress span.current { background: var(--accent); }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.review-list { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .5rem 1rem; margin: 0; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 600; }

.generating { text-align: center; padding: 3rem 1rem; }

/* Plan pages */
.plan-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.plan-header .subtitle { color: var(--muted); font-size: 1.05rem; margin: 0; }
.code-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .5rem .45rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; letter-spacing: .08em; }
.code-chip button { border: 0; background: var(--brand-50); color: var(--brand-700); border-radius: 999px; padding: .25rem .7rem; font: inherit; font-size: .8rem; letter-spacing: 0; cursor: pointer; font-weight: 600; }

.tabs { display: flex; gap: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem; margin-bottom: 1.25rem; width: fit-content; }
.tabs a { padding: .5rem 1.1rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.tabs a.active { background: var(--brand); color: #fff; }
@media (max-width: 640px) {
    .tabs { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; border-radius: 0; margin: 0; justify-content: space-around; z-index: 30; border-width: 1px 0 0; padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)); }
    .tabs a { flex-direction: column; gap: 0; font-size: .78rem; padding: .35rem .8rem; }
    .tabs a .tab-icon { font-size: 1.2rem; }
    .topbar-links { display: none; }
}

.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; margin-bottom: 1rem; }
.day { border: 0; background: transparent; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .5rem .2rem; border-radius: 16px; color: var(--muted); }
.day .dow { font-size: .8rem; font-weight: 600; }
.day .dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--fluo-control); display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: var(--muted); background: var(--surface); }
.day.selected { background: var(--brand); color: #fff; }
.day.selected .dot { border-color: #fff; }
.day.state-Complete .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.day.state-Partial .dot { background: linear-gradient(90deg, var(--brand) 50%, var(--brand-50) 50%); border-color: var(--brand); color: #fff; }
.day.state-Rest .dot { border-style: dashed; }
.day.state-Missed .dot { border-color: #AF3545; }
.day.today .dow::after { content: " •"; color: var(--accent); }
.week-strip .day.selected .dot { background: rgba(255, 255, 255, .18); border-color: #fff; color: #fff; }

.today-hero { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.today-hero .big { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; line-height: 1; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.stat { background: var(--surface); border-radius: var(--radius-sm); padding: .75rem .9rem; border: 1px solid var(--brand-100); }
.stat .value { font-size: 1.35rem; font-weight: 800; }
.stat .label { font-size: .8rem; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .today-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-label { position: absolute; text-align: center; line-height: 1.1; }
.ring .ring-label strong { display: block; font-size: 1.5rem; font-weight: 800; }
.ring .ring-label span { font-size: .75rem; color: var(--muted); font-weight: 600; }

.activity { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .15s, background .15s; }
.activity + .activity { margin-top: .75rem; }
.activity.done { background: var(--fluo-mist); border-color: var(--brand-100); }
.activity-main { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; }
.tick { flex: 0 0 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--fluo-control); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 1.25rem; color: transparent; transition: all .15s; }
.tick:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-100); }
.tick.checked { background: var(--brand); border-color: var(--brand); color: #fff; }
.tick:disabled { cursor: not-allowed; opacity: .5; }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 .2rem; }
.activity.done .activity-title { text-decoration: line-through; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.activity-meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; }
.expand { border: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: .5rem; white-space: nowrap; }
.activity-detail { padding: 0 1.1rem 1.1rem 4.1rem; }
.activity-detail .tip { background: var(--accent-50); border-radius: var(--radius-sm); padding: .65rem .85rem; font-size: .92rem; margin-top: .5rem; }
.log-form { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; margin-top: .85rem; padding-top: .85rem; border-top: 1px dashed var(--line); }
.log-form .input { min-height: 40px; width: 110px; }
@media (max-width: 560px) { .activity-detail { padding-left: 1.1rem; } }

.effort { display: flex; gap: .25rem; flex-wrap: wrap; }
.effort button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: .85rem; cursor: pointer; }
.effort button.selected { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.rest-card { text-align: center; padding: 2.5rem 1rem; }
.rest-card .emoji { font-size: 3rem; }

/* Charts */
.bars { display: grid; grid-auto-fluo: column; grid-auto-columns: 1fr; gap: .75rem; align-items: end; height: 220px; padding-top: 1.5rem; position: relative; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: .4rem; height: 100%; justify-content: flex-end; }
.bar-track { width: 100%; max-width: 64px; flex: 1; display: flex; align-items: flex-end; position: relative; background: var(--fluo-mist); border-radius: 12px; overflow: hidden; }
.bar-fill { width: 100%; background: linear-gradient(180deg, var(--brand), var(--brand-600)); border-radius: 12px 12px 0 0; transition: height .4s; }
.bar-planned { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--accent); }
.bar-col .bar-value { font-weight: 700; font-size: .9rem; }
.bar-col .bar-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.hbar { display: grid; grid-template-columns: 120px 1fr 56px; gap: .75rem; align-items: center; margin-bottom: .6rem; font-size: .92rem; }
.hbar-track { height: 12px; background: var(--fluo-mist); border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; background: var(--brand); }
.legend { display: flex; gap: 1rem; font-size: .85rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; background: var(--brand); }
.legend span.planned::before { background: transparent; border-top: 2px dashed var(--accent); height: 0; width: 14px; vertical-align: 3px; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: .75rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }

/* Plan overview */
.week-block { margin-top: 1.25rem; }
.week-block h3 { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.day-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); align-items: start; }
.day-row:first-of-type { border-top: 0; }
.day-row .date { font-weight: 700; }
.day-row .date span { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .day-row { grid-template-columns: 1fr; gap: .35rem; } }

.spinner { width: 28px; height: 28px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Blazor */
#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.blazor-error-boundary { background: var(--danger-50); padding: 1rem; color: var(--danger); border-radius: var(--radius-sm); }
.blazor-error-boundary::after { content: "Something went wrong."; }
.validation-message { color: var(--danger); font-size: .9rem; }

/* Identity and inclusive photography */
.brand .fluo-mark { display: block; width: 132px; height: 36px; overflow: visible; }
.fluo-mark .fluo-mark-spark, .fluo-mark .fluo-mark-trail { will-change: transform; }
.footer .footer-tagline { font-family: var(--fluo-display); font-size: 1.15rem; color: var(--fluo-ink); margin-bottom: .75rem; }
.hero-photo { display: block; width: 100%; height: auto; border-radius: var(--fluo-radius-card); }
.hero-art { padding: 0; background: transparent; border: 0; position: relative; }
.hero-art .card { margin-top: 1rem; }
.feature-icon img { width: 24px; height: 24px; }
:focus-visible { outline: 3px solid var(--fluo-focus); outline-offset: 3px; }
.input:focus-visible { outline: 3px solid var(--fluo-focus); outline-offset: 3px; box-shadow: none; }
[hidden] { display: none !important; }
.fluo-loader { display: block; width: min(260px, 75vw); height: auto; margin: 0 auto 1.25rem; }
.fluo-startup { display: none; position: fixed; inset: 0; z-index: 900; align-items: center; justify-content: center; padding: 2rem 1.5rem; background: var(--fluo-navy); opacity: 1; transition: opacity 220ms ease; }
.fluo-booting .fluo-startup { display: flex; }
.fluo-booting #fluo-app { visibility: hidden; }
.fluo-startup-content { width: 100%; max-width: 400px; text-align: center; }
.fluo-startup .fluo-loader { width: min(300px, 75vw); margin-bottom: 0; }
.fluo-startup-wordmark { display: block; width: 180px; height: 75px; margin: .25rem auto 1.5rem; }
.fluo-startup-tagline { color: #F0F5FC; font-size: 1rem; max-width: 30ch; margin: 0 auto 2rem; }
.fluo-startup-status { font-size: .875rem; color: #B9C8DB; }
.fluo-startup.fluo-startup-leaving { display: flex; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) { .btn, .option, .chip, .input { border: 2px solid ButtonText; } }

/* Fluo identity */
.hero { background: var(--fluo-mist) url("brand/patterns/fluo-loops.svg") center / cover no-repeat; border-radius: 32px; padding: clamp(1.25rem, 4vw, 2.5rem); margin-bottom: 1.5rem; border: 1px solid var(--brand-100); }
.fluo-icon { display: inline-block; flex: none; vertical-align: -.2em; }
.tabs a .tab-icon { width: 20px; height: 20px; }
.feature .feature-icon { color: var(--brand); }
.footer-logo { display: block; width: 180px; height: auto; margin: 0 auto .75rem; }
.footer-links { margin-top: .75rem !important; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--brand); }
.fluo-startup-endorsement { margin: -1.25rem auto 1rem; color: #B9C8DB; font-size: .95rem; }
.btn-primary { background: var(--fluo-action); }
.card.tint { background-image: linear-gradient(160deg, var(--brand-50), var(--surface)); }
.app-banner { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--fluo-navy) url("brand/patterns/fluo-loops-dark.svg") center / cover no-repeat; color: #fff; margin-top: 1.5rem; }
.app-banner img { flex: none; border-radius: 14px; }
.app-banner p { margin: 0; color: #B9C8DB; }
.app-banner strong { display: block; color: #fff; font-size: 1.05rem; }
.app-banner .btn { margin-left: auto; background: #fff; color: var(--fluo-navy); }
@media (max-width: 640px) { .app-banner { flex-wrap: wrap; } .app-banner .btn { margin-left: 0; width: 100%; } }
.hero-icon { width: 72px; height: 72px; margin: 0 auto .75rem; border-radius: 22px; display: grid; place-items: center; background: var(--fluo-brand-gradient); color: #fff; }
.alert .alert-icon { color: var(--brand); line-height: 1; }
.alert-danger .alert-icon { color: var(--danger); }
.rest-card .emoji { color: var(--brand); }
.streak-icon { color: var(--brand); vertical-align: -.1em; }
.icon-heading { display: flex; align-items: center; gap: .5rem; }
.activity-meta .fluo-icon, .tip .fluo-icon { vertical-align: -.25em; }
.code-chip .fluo-icon { color: var(--brand); }
/* The loader is the dark motion asset: give it its Midnight Navy surface wherever it appears. */
.card.generating { background: var(--fluo-navy) url("brand/patterns/fluo-loops-dark.svg") center / cover no-repeat; border-color: var(--fluo-navy); color: #F0F5FC; }
.card.generating h1 { color: #fff; }
.card.generating .muted { color: #B9C8DB; }

/* Call-to-action buttons: leading icon chip, trailing arrow, Action Blue gradient and a gentle lift. */
.btn-cta { gap: .6rem; padding: .45rem 1.4rem .45rem .45rem; letter-spacing: .005em; transition: transform .14s, box-shadow .22s, background-position .22s, border-color .15s, background-color .15s; }
.btn-cta:not(:has(.btn-icon)) { padding-left: 1.4rem; }
.btn-cta:not(:has(.btn-arrow)) { padding-right: 1.4rem; }
.btn-cta:has(.btn-arrow-back) { padding-left: 1.1rem; }
.btn-cta.btn-lg { padding: .5rem 1.7rem .5rem .5rem; }
.btn-cta:hover:not(:disabled) { transform: translateY(-1px); }
.btn-cta:active:not(:disabled) { transform: translateY(0); }
.btn-cta .btn-icon { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; transition: transform .22s; }
.btn-cta.btn-lg .btn-icon { width: 2.5rem; height: 2.5rem; }
.btn-cta:hover:not(:disabled) .btn-icon { transform: rotate(-8deg) scale(1.06); }
.btn-cta .btn-arrow { transition: transform .22s; }
.btn-cta:hover:not(:disabled) .btn-arrow { transform: translateX(3px); }
.btn-cta .btn-arrow-back, .btn-cta:hover:not(:disabled) .btn-arrow-back { transform: scaleX(-1); }

.btn-primary.btn-cta { color: #fff; background: linear-gradient(135deg, #1937BD 0%, #2045E8 45%, #2F6BF0 100%) 0 0 / 160% 100%; box-shadow: 0 6px 18px rgb(32 69 232 / .28), inset 0 1px 0 rgb(255 255 255 / .18); }
.btn-primary.btn-cta:hover:not(:disabled) { background: linear-gradient(135deg, #1937BD 0%, #2045E8 45%, #2F6BF0 100%) 100% 0 / 160% 100%; box-shadow: 0 10px 26px rgb(32 69 232 / .36), inset 0 1px 0 rgb(255 255 255 / .22); }
.btn-primary.btn-cta:disabled { box-shadow: none; }
.btn-primary.btn-cta .btn-icon { background: rgb(255 255 255 / .18); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); }

.btn-outline.btn-cta { border-width: 1.5px; box-shadow: 0 2px 8px rgb(10 18 48 / .05); }
.btn-outline.btn-cta:hover:not(:disabled) { background: var(--brand-50); border-color: var(--brand); box-shadow: 0 8px 20px rgb(10 18 48 / .08); }
.btn-outline.btn-cta .btn-icon { background: var(--brand-50); color: var(--brand); transition: transform .22s, background .22s, color .22s; }
.btn-outline.btn-cta:hover:not(:disabled) .btn-icon { background: var(--fluo-brand-gradient); color: #fff; }
@media (forced-colors: active) { .btn-cta .btn-icon { border: 1px solid ButtonText; } }
