/* HealthStreak 1.8 Skins
   Classic is styles.css untouched. Each skin re-points the tokens, then adds its one signature:
   Gym = bevelled steel plate and rivets · Glam = spinning rose-gold ring and sparkle
   Modern = frosted glass over drifting colour · Neon Night = magenta tube and cyan edge glow.
   <html data-skin="…"> is set by skins.js before first paint; data-dark marks the dark skins. */

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root { --on-accent: #fff; --sheet-bg: var(--glacier); }

/* ── Shared plumbing (all skins, Classic included) ───────────────────── */
.btn-teal, .send-btn, .check.is-done, .voice-btn.is-playing, .cam-find button { color: var(--on-accent); }
.chart-top .talk-btn { color: var(--on-accent); }
.talk-btn [data-icon] svg { stroke: currentColor; }
.tw-check svg { stroke: var(--on-accent); }
.avatar-tile.is-selected::after { color: var(--on-accent); }
.toast { color: var(--glacier); }
.sheet, .stack-form .sheet-actions, .sticky-actions { background: var(--sheet-bg); }

/* Program titles: one line, shrunk to fit; a clean second line only for long names (skins.js). */
.pc-top { grid-template-columns: minmax(0, 1fr); }
[data-fit] { display: block; min-width: 0; white-space: nowrap; overflow: hidden; }
[data-fit].fit-two { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }

/* ── Skin picker (You tab). Swatches carry their own colours so every skin previews truthfully. ── */
#skinCard { display: grid; gap: 12px; }
.skin-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.skin-tile { display: grid; gap: 6px; justify-items: center; padding: 0; border: 0; background: none; font: inherit; color: var(--spruce); cursor: pointer; text-align: center; }
.skin-tile b { font-size: 13px; line-height: 1.1; }
.skin-tile small { font-size: 11px; color: var(--spruce-2); line-height: 1.1; }
.sw { position: relative; width: 100%; aspect-ratio: 9 / 15; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.12); transition: transform .18s ease, box-shadow .18s ease; }
.sw i { position: absolute; display: block; }
.sw .f { left: 14%; top: 10%; width: 36%; aspect-ratio: 1; }
.sw .c1, .sw .c2 { left: 10%; right: 10%; height: 22%; }
.sw .c1 { top: 42%; } .sw .c2 { top: 69%; }
.skin-tile[aria-pressed="true"] .sw { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--teal), 0 8px 18px rgba(0,0,0,.2); }
.skin-tile:focus-visible { outline: none; }
.skin-tile:focus-visible .sw { box-shadow: 0 0 0 3px var(--teal), 0 0 0 6px var(--teal-soft); }
.sw-classic { background: #EEF3F1; }
.sw-classic .f { border-radius: 8px; background: linear-gradient(160deg, #1F7A6D, #10302B); }
.sw-classic .c1, .sw-classic .c2 { background: #fff; border-radius: 6px; border-top: 3px solid #1F7A6D; }
.sw-gym { background: #16181b repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 6px); }
.sw-gym .f { border-radius: 4px; background: linear-gradient(145deg, #d9dde1, #7d838a 30%, #3c4045 55%, #9aa0a6 80%, #e6e9ec); box-shadow: inset 0 0 0 3px rgba(0,0,0,.0), inset 0 0 0 4px #2c3035; }
.sw-gym .c1, .sw-gym .c2 { border-radius: 3px; background: linear-gradient(180deg, #41464c, #25282c); border: 1px solid #5b6168; }
.sw-gym .c1::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(-45deg, #ff6a13 0 4px, #16181b 4px 8px); }
.sw-glam { background: radial-gradient(90% 60% at 80% 0%, #fff6ef, transparent 60%), #f6e9df; }
.sw-glam .f { border-radius: 50%; background: conic-gradient(#b76e79, #f7d9c4, #c9a45c, #fff3e6, #b76e79); box-shadow: 0 0 8px rgba(201,164,92,.6); }
.sw-glam .c1, .sw-glam .c2 { border-radius: 8px; background: rgba(255,255,255,.8); border: 1px solid rgba(183,110,121,.4); }
.sw-glass { background: radial-gradient(60% 40% at 15% 15%, #1f9c8a, transparent 70%), radial-gradient(55% 35% at 95% 55%, rgba(255,90,78,.7), transparent 70%), radial-gradient(60% 40% at 30% 100%, rgba(58,123,213,.7), transparent 70%), #06201d; }
.sw-glass .f { border-radius: 10px; background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.4); }
.sw-glass .c1, .sw-glass .c2 { border-radius: 8px; background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.28); }
.sw-neon { background: #07070c linear-gradient(rgba(43,240,255,.08) 1px, transparent 1px) 0 0 / 8px 8px; }
.sw-neon .f { border-radius: 6px; border: 2px solid #ff2bd6; box-shadow: 0 0 6px #ff2bd6, 0 0 12px rgba(255,43,214,.6); }
.sw-neon .c1, .sw-neon .c2 { border-radius: 5px; border: 1px solid rgba(43,240,255,.7); box-shadow: 0 0 8px rgba(43,240,255,.35); }
@media (max-width: 360px) { .skin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Entrance overlay ─────────────────────────────────────────────── */
.skin-fx { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.skin-fx i { position: absolute; display: block; }

/* ── Shared fixes for the dark skins (Gym, Modern, Neon) ─────────────── */
html[data-dark] { color-scheme: dark; }
html[data-dark] .msg-user .bubble { background: var(--teal); color: var(--on-accent); }
html[data-dark] .day-chip[aria-pressed="true"], html[data-dark] .pg-goal[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
html[data-dark] .pg-goal[aria-pressed="true"] small { color: var(--on-accent); opacity: .8; }
html[data-dark] .brief-card, html[data-dark] .player { background: var(--paper); color: var(--spruce); border: 1px solid var(--line); }
html[data-dark] .transcript { color: var(--spruce-2); }
html[data-dark] .program-cta { background: linear-gradient(135deg, var(--teal-soft), var(--paper)); color: var(--spruce); border: 1px solid var(--line); }
html[data-dark] .program-cta strong { color: var(--spruce); }
html[data-dark] .program-cta .pc-kicker { color: var(--teal); }
html[data-dark] .mini-face, html[data-dark] .coach-face, html[data-dark] .call-img, html[data-dark] .bc-thumb, html[data-dark] .player .ph,
html[data-dark] .tw-pick, html[data-dark] .tw-photo { background: linear-gradient(160deg, var(--line), var(--glacier)); color: var(--spruce); }
html[data-dark] .tw-mono { color: var(--teal); }
html[data-dark] .tw-files, html[data-dark] .tw-info, html[data-dark] .cam-find input, html[data-dark] .cam-icon[aria-pressed="true"],
html[data-dark] .call-btn[aria-pressed="true"] { color: #10302B; }
html[data-dark] .call-btn[aria-pressed="true"] [data-icon] svg { stroke: #10302B; }
html[data-dark] .event-pill, html[data-dark] .pill-s.st-pending_approval, html[data-dark] .plan-card.is-pending .plan-kicker,
html[data-dark] .ai-today .pc-kicker, html[data-dark] .ai-warn { color: var(--gold); }
html[data-dark] .form-error, html[data-dark] .btn-danger-ghost, html[data-dark] .tw-del, html[data-dark] .pg-open li.is-fix { color: #ff8a80 !important; }
html[data-dark] .btn-danger-ghost { border-color: rgba(255,138,128,.4); }
html[data-dark] .presence { border-color: var(--glacier); }
html[data-dark] .sheet::backdrop { background: rgba(0, 0, 0, .6); }
html[data-dark] .celebrate { background: rgba(0, 0, 0, .65); }
html[data-dark] .celebrate-card { background: var(--sheet-bg); border: 1px solid var(--line); }
html[data-dark] .tabbar { border-top-color: var(--line); }
html[data-dark] .composer-wrap { background: linear-gradient(to top, var(--glacier) 60%, transparent); }

/* ════════════════════════════════════════════════════════════════════
   GYM · Iron plate
   ════════════════════════════════════════════════════════════════════ */
html[data-skin="gym"] {
  --glacier: #16181b; --paper: #2a2e33; --sheet-bg: #1c1f23;
  --spruce: #f2f0ea; --spruce-2: #b9bec4; --chart: #80868d; --line: #454a51;
  --teal: #ff6a13; --teal-soft: rgba(255,106,19,.16); --coral: #ff4d2e; --coral-soft: rgba(255,77,46,.16);
  --gold: #ffc24a; --gold-soft: rgba(255,194,74,.14); --on-accent: #16181b;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px; --r-md: 8px; --r-lg: 10px;
  --shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -2px 0 rgba(0,0,0,.35), 0 10px 24px rgba(0,0,0,.5);
  --steel: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), linear-gradient(180deg, #41464c 0%, #2c3035 55%, #25282c 100%);
  --rivet: radial-gradient(circle at 4px 4px, #c9ced4 0 2px, #6b7178 2.5px, transparent 3.5px);
  --plate: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px), repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px);
}
html[data-skin="gym"] body { background-color: #16181b; background-image: var(--plate); background-attachment: fixed; }
html[data-skin="gym"] .sheet { background-color: #1c1f23; background-image: var(--plate); }
/* Steel plates */
html[data-skin="gym"] :is(.card, .compartment, .program-card, .workout-card, .program-cta, .stack-item, .brief-row, .pg-section, .lg-ex, .k-note, .k-plan, .empty-card, .celebrate-card, .add-way, .msg-kelly .bubble, .ai-today, .plan-card) {
  background: var(--steel); border-color: #5b6168; box-shadow: var(--shadow);
}
html[data-skin="gym"] :is(.card, .program-card, .workout-card, .stack-item, .brief-row, .pg-section, .lg-ex, .k-plan, .empty-card, .add-way, .msg-kelly .bubble) { border-style: solid; border-width: 1px; }
html[data-skin="gym"] .compartment { border-left: 1px solid #5b6168; border-right: 1px solid #5b6168; border-bottom: 1px solid #5b6168; }
html[data-skin="gym"] .workout-card { border-top: 3px solid #ff6a13; }
html[data-skin="gym"] :is(.card, .compartment, .program-card, .workout-card) { position: relative; }
html[data-skin="gym"] :is(.card, .compartment, .program-card, .workout-card)::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none; z-index: 1;
  background: var(--rivet) top left / 8px 8px no-repeat, var(--rivet) top right / 8px 8px no-repeat,
              var(--rivet) bottom left / 8px 8px no-repeat, var(--rivet) bottom right / 8px 8px no-repeat;
}
/* Header: dark plate, hazard stripe underneath */
html[data-skin="gym"] .chart { background: linear-gradient(180deg, #25282c, #1b1d20); border-bottom: 0; padding-bottom: 18px; }
html[data-skin="gym"] .chart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, #ff6a13 0 10px, #16181b 10px 20px); }
html[data-skin="gym"] .portrait {
  padding: 6px; border-radius: 10px;
  background: linear-gradient(145deg, #d9dde1 0%, #7d838a 30%, #3c4045 55%, #9aa0a6 80%, #e6e9ec 100%);
  box-shadow: 0 8px 20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.35);
}
html[data-skin="gym"] .portrait img { border-radius: 5px; }
html[data-skin="gym"] .portrait-fallback { border-radius: 5px; background: var(--steel); color: #9aa0a6; text-shadow: 0 1px 0 rgba(255,255,255,.12), 0 -1px 0 rgba(0,0,0,.7); }
html[data-skin="gym"] .portrait::after {
  content: ""; position: absolute; inset: 1px; pointer-events: none; border-radius: 9px;
  background: radial-gradient(circle at 2.5px 2.5px, #f4f6f8 0 1.2px, #5d636a 1.8px, transparent 2.6px) top left / 5px 5px no-repeat,
              radial-gradient(circle at 2.5px 2.5px, #f4f6f8 0 1.2px, #5d636a 1.8px, transparent 2.6px) top right / 5px 5px no-repeat,
              radial-gradient(circle at 2.5px 2.5px, #f4f6f8 0 1.2px, #5d636a 1.8px, transparent 2.6px) bottom left / 5px 5px no-repeat;
}
html[data-skin="gym"] .coach-name { font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: 32px; line-height: 1; text-shadow: 0 1px 0 rgba(255,255,255,.12), 0 -1px 0 rgba(0,0,0,.7); }
html[data-skin="gym"] .vitals { font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #b9bec4; }
html[data-skin="gym"] .vital b { color: #f2f0ea; font-size: 14px; font-weight: 700; }
html[data-skin="gym"] .vital.lvl b, html[data-skin="gym"] .vital.lvl { color: #ff6a13; }
html[data-skin="gym"] .ecg .trace { stroke: #ff6a13; stroke-width: 2.5; }
html[data-skin="gym"] .ecg .today-dot { fill: #ff6a13; }
html[data-skin="gym"] .xp { background: #0f1113; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
html[data-skin="gym"] .xp span { background: linear-gradient(90deg, #ff6a13, #ffc24a); }
html[data-skin="gym"] .chart-top .talk-btn { border-radius: 6px; background: #ff6a13; color: #16181b; font: 800 13px var(--body); text-transform: uppercase; letter-spacing: .06em; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
/* Type */
html[data-skin="gym"] :is(.pane-head h2, .card h3, .comp-head h3, .workout-card h3, .sheet-head h2, .empty-card h3, .celebrate-card h2, .pg-hero h3) { text-transform: uppercase; letter-spacing: .02em; font-weight: 800; }
html[data-skin="gym"] .pane-head h2 { font-size: 34px; font-weight: 900; text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 -1px 0 rgba(0,0,0,.7); }
html[data-skin="gym"] .pc-kicker { font-family: var(--body); font-weight: 700; letter-spacing: .14em; color: #ff6a13; }
html[data-skin="gym"] .pc-top strong { font: 800 26px/1.05 var(--display); text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,255,255,.12), 0 -1px 0 rgba(0,0,0,.7); }
html[data-skin="gym"] .pc-bar { background: #0f1113; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
html[data-skin="gym"] .pc-bar i { background: linear-gradient(90deg, #e85a05, #ff8a40); }
html[data-skin="gym"] .pc-food { background: rgba(0,0,0,.22); }
html[data-skin="gym"] .pc-today, html[data-skin="gym"] .pc-food { border-top-color: #454a51; }
/* Controls */
html[data-skin="gym"] .btn { border-radius: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
html[data-skin="gym"] :is(.btn-primary, .btn-teal) { background: linear-gradient(180deg, #ff7a26, #e85a05); border-color: #ff8a40; color: #16181b; box-shadow: 0 4px 0 #9c3a00; }
html[data-skin="gym"] :is(.btn-primary, .btn-teal):active { transform: translateY(3px); box-shadow: 0 1px 0 #9c3a00; }
html[data-skin="gym"] .btn-ghost { background: #25282c; border-color: #5b6168; color: #f2f0ea; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
html[data-skin="gym"] .check { border-radius: 8px; background: #1d2024; border-color: #6b7178; }
html[data-skin="gym"] .check.is-done { background: #ff6a13; border-color: #ff8a40; transform: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
html[data-skin="gym"] :is(.field input, .field select, .field textarea, .times input, .inline-form input, .ing-row input, .lg-set input, .composer) { background: #1d2024; border-color: #5b6168; }
html[data-skin="gym"] .composer { border-radius: 10px; }
html[data-skin="gym"] .send-btn { border-radius: 8px; background: #ff6a13; }
html[data-skin="gym"] .seg { background: #1d2024; border-radius: 8px; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
html[data-skin="gym"] .seg-btn { border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
html[data-skin="gym"] .seg-btn.is-active { background: var(--steel); color: #f2f0ea; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
html[data-skin="gym"] .chip, html[data-skin="gym"] .day-chip { border-radius: 6px; background: #25282c; border-color: #5b6168; }
html[data-skin="gym"] .msg-kelly .bubble { border-radius: 10px 10px 10px 3px; }
html[data-skin="gym"] .msg-user .bubble { border-radius: 10px 10px 3px 10px; font-weight: 600; }
html[data-skin="gym"] .mini-face { border-radius: 4px; }
html[data-skin="gym"] .tabbar { background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), linear-gradient(180deg, #33373c, #222528); border-top: 1px solid #5b6168; backdrop-filter: none; }
html[data-skin="gym"] .tab { text-transform: uppercase; letter-spacing: .06em; color: #8a9097; }
html[data-skin="gym"] .tab.is-active { color: #ff6a13; }
html[data-skin="gym"] .tw-tile { border-radius: 8px; }
html[data-skin="gym"] .tw-tile.is-on { box-shadow: 0 0 0 3px #ff6a13; }
@media (min-width: 900px) {
  html[data-skin="gym"] .chart::after { left: auto; top: 0; right: 0; bottom: 0; width: 6px; height: auto; }
  html[data-skin="gym"] .portrait { padding: 10px; }
}
/* Gym entrance: the plate drops, the frame clanks in, a glint runs over the steel. */
@keyframes gym-drop { 0% { transform: translateY(-36px); opacity: 0; } 60% { transform: translateY(4px); opacity: 1; } 80% { transform: translateY(-2px); } 100% { transform: none; } }
@keyframes gym-clank { 0% { transform: scale(1.35) rotate(-8deg); opacity: 0; } 55% { transform: scale(.94) rotate(2deg); opacity: 1; } 75% { transform: scale(1.03) rotate(-1deg); } 100% { transform: none; } }
@keyframes gym-rise { from { transform: translateY(28px); opacity: 0; } }
@keyframes gym-stripe { from { background-position: -120px 0; } }
@keyframes gym-glint { from { transform: translateX(-60%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
html[data-skin="gym"].skin-enter .chart { animation: gym-drop .6s cubic-bezier(.2,.9,.3,1) both; }
html[data-skin="gym"].skin-enter .portrait { animation: gym-clank .7s cubic-bezier(.2,1.2,.4,1) .15s both; }
html[data-skin="gym"].skin-enter .chart::after { animation: gym-stripe 1s ease-out .2s both; }
html[data-skin="gym"].skin-enter .view.is-active .pane > *, html[data-skin="gym"].skin-enter .view.is-active .msg:nth-last-child(-n+4) { animation: gym-rise .5s cubic-bezier(.2,.9,.3,1) both; }
html[data-skin="gym"].skin-enter .tabbar { animation: gym-rise .5s cubic-bezier(.2,.9,.3,1) .25s both; }
.fx-gym i { top: -20%; bottom: -20%; left: 0; width: 34%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.16) 45%, rgba(255,214,180,.28) 50%, rgba(255,255,255,.16) 55%, rgba(255,255,255,0)); mix-blend-mode: screen; animation: gym-glint 1.1s cubic-bezier(.5,0,.3,1) .45s both; }

/* ════════════════════════════════════════════════════════════════════
   GLAM · Sparkle
   ════════════════════════════════════════════════════════════════════ */
html[data-skin="glam"] {
  --glacier: #f6e9df; --paper: rgba(255,255,255,.74); --sheet-bg: #f8ece4;
  --spruce: #3a1e2e; --spruce-2: #7a5563; --chart: #b39099; --line: rgba(183,110,121,.3);
  --teal: #a3585f; --teal-soft: #f3dcd6; --coral: #c2475b; --coral-soft: #f8dde0;
  --gold: #b8913f; --gold-soft: #f3e6cc; --on-accent: #fff7f2;
  --display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --body: Jost, "Avenir Next", system-ui, sans-serif;
  --r-md: 18px; --r-lg: 22px;
  --shadow: 0 10px 30px rgba(120,60,70,.12), inset 0 1px 0 #fff;
  --foil: linear-gradient(110deg, #b76e79 0%, #e7b8a6 35%, #fff3e6 50%, #e7b8a6 65%, #b76e79 100%);
}
html[data-skin="glam"] body { background: radial-gradient(120% 60% at 80% 0%, #fff6ef 0%, rgba(255,246,239,0) 60%), radial-gradient(90% 50% at 0% 100%, #f1d6cf 0%, rgba(241,214,207,0) 60%), #f6e9df; background-attachment: fixed; }
html[data-skin="glam"] :is(.card, .compartment, .program-card, .workout-card, .stack-item, .brief-row, .pg-section, .lg-ex, .k-note, .k-plan, .empty-card, .add-way, .msg-kelly .bubble) { border: 1px solid rgba(183,110,121,.32); }
html[data-skin="glam"] .compartment { border-top-width: 3px; }
html[data-skin="glam"] .compartment.c-morning { border-top-color: #c9a45c; }
html[data-skin="glam"] .compartment.c-midday { border-top-color: #b76e79; }
html[data-skin="glam"] .compartment.c-evening { border-top-color: #c2475b; }
html[data-skin="glam"] .compartment.c-night { border-top-color: #3a1e2e; }
html[data-skin="glam"] .program-card { position: relative; }
html[data-skin="glam"] .program-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--foil); background-size: 200% 100%; animation: glam-shimmer 4s linear infinite; }
html[data-skin="glam"] .chart { background: rgba(255,250,246,.6); border-bottom: 1px solid rgba(183,110,121,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* The ring: rose gold that turns, glitter on top, sparks that twinkle. */
@keyframes glam-spin { to { --spin: 360deg; } }
@keyframes glam-twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes glam-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
html[data-skin="glam"] .portrait {
  width: 80px; height: 80px; margin: 6px; border-radius: 50%; isolation: isolate;
  background: linear-gradient(160deg, #e9c3bb, #b76e79); border: 2px solid #fff6ef;
}
html[data-skin="glam"] .portrait img { border-radius: 50%; }
html[data-skin="glam"] .portrait-fallback { border-radius: 50%; background: linear-gradient(160deg, #e9c3bb, #b76e79); color: #fff3ec; font: italic 600 34px var(--display); }
html[data-skin="glam"] .portrait::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.6px) 0 0 / 9px 9px,
              radial-gradient(circle, rgba(201,164,92,.9) 0 1px, transparent 1.6px) 4px 6px / 13px 13px,
              conic-gradient(from var(--spin), #b76e79, #f7d9c4, #c9a45c, #fff3e6, #b76e79, #e8b4a8, #c9a45c, #b76e79);
  box-shadow: 0 0 22px rgba(201,164,92,.55);
  animation: glam-spin 6s linear infinite;
}
html[data-skin="glam"] .portrait::after {
  content: ""; position: absolute; inset: -16px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 14 10 24 12 14 14 12 24 10 14 0 12 10 10z' fill='%23fff'/%3E%3C/svg%3E") 86% 4% / 15px 15px no-repeat,
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 14 10 24 12 14 14 12 24 10 14 0 12 10 10z' fill='%23c9a45c'/%3E%3C/svg%3E") 2% 82% / 13px 13px no-repeat,
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 14 10 24 12 14 14 12 24 10 14 0 12 10 10z' fill='%23fff'/%3E%3C/svg%3E") 100% 52% / 9px 9px no-repeat;
  filter: drop-shadow(0 0 3px rgba(255,255,255,.9));
  animation: glam-twinkle 2.4s ease-in-out infinite;
}
html[data-skin="glam"] .presence { border-color: #fff6ef; right: -2px; bottom: -2px; }
html[data-skin="glam"] .coach-name { font-style: italic; font-weight: 600; font-size: 32px; letter-spacing: 0; line-height: 1.05; }
html[data-skin="glam"] .presence-label { color: #a3585f; font-family: var(--body); letter-spacing: .14em; }
html[data-skin="glam"] .vitals { font-family: var(--body); color: #7a5563; }
html[data-skin="glam"] .vital b { color: #3a1e2e; font-weight: 600; }
html[data-skin="glam"] .vital.lvl b { color: #a3585f; }
html[data-skin="glam"] .ecg .trace { stroke: #b76e79; stroke-width: 2.5; filter: drop-shadow(0 0 3px rgba(201,164,92,.7)); }
html[data-skin="glam"] .ecg .today-dot { fill: #c9a45c; }
html[data-skin="glam"] .xp { background: #f3e2d8; }
html[data-skin="glam"] .xp span { background: var(--foil); background-size: 200% 100%; animation: glam-shimmer 4s linear infinite; }
html[data-skin="glam"] .chart-top .talk-btn { background: var(--foil); background-size: 200% 100%; animation: glam-shimmer 4s linear infinite; color: #3a1e2e; font: 600 13px var(--body); text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 4px 14px rgba(183,110,121,.35); }
html[data-skin="glam"] :is(.display, .card h3, .comp-head h3, .workout-card h3, .pg-hero h3) { letter-spacing: 0; font-weight: 700; }
html[data-skin="glam"] .pane-head h2 { font-style: italic; font-weight: 600; font-size: 34px; }
html[data-skin="glam"] .pc-kicker { font-family: var(--body); font-weight: 600; letter-spacing: .16em; color: #a3585f; }
html[data-skin="glam"] .pc-top strong { font: 700 24px/1.1 "Cormorant Garamond", var(--display); }
html[data-skin="glam"] .pc-bar { background: #f1dcd4; }
html[data-skin="glam"] .pc-bar i { background: var(--foil); background-size: 200% 100%; animation: glam-shimmer 4s linear infinite; }
html[data-skin="glam"] .pc-food { background: rgba(255,246,239,.7); }
html[data-skin="glam"] .btn { letter-spacing: .04em; font-weight: 600; }
html[data-skin="glam"] :is(.btn-primary, .btn-teal) { background: #3a1e2e; color: #fff3ec; box-shadow: 0 6px 18px rgba(58,30,46,.3); }
html[data-skin="glam"] .btn-ghost { background: rgba(255,255,255,.8); border-color: rgba(183,110,121,.4); }
html[data-skin="glam"] .check { border-radius: 50%; border: 1.5px solid #b76e79; background: #fff; }
html[data-skin="glam"] .check.is-done { background: var(--foil); background-size: 200% 100%; animation: glam-shimmer 4s linear infinite; color: #3a1e2e; border-color: transparent; transform: none; box-shadow: 0 3px 10px rgba(183,110,121,.35); }
html[data-skin="glam"] .send-btn { background: #3a1e2e; color: #fff3ec; }
html[data-skin="glam"] .msg-user .bubble { background: #3a1e2e; color: #fff3ec; }
html[data-skin="glam"] .mini-face { border-radius: 50%; background: linear-gradient(160deg, #e9c3bb, #b76e79); box-shadow: 0 0 0 2px #fff6ef, 0 0 0 3.5px #c9a45c; }
html[data-skin="glam"] .seg { background: #f1dcd4; }
html[data-skin="glam"] .tabbar { background: rgba(255,250,246,.82); border-top: 1px solid rgba(183,110,121,.3); }
html[data-skin="glam"] .tab { color: #b39099; font-weight: 600; }
html[data-skin="glam"] .tab.is-active { color: #a3585f; }
html[data-skin="glam"] .tw-tile.is-on { box-shadow: 0 0 0 3px #c9a45c; }
html[data-skin="glam"] .tw-pick, html[data-skin="glam"] .tw-photo { background: linear-gradient(160deg, #b76e79, #3a1e2e); }
html[data-skin="glam"] .tw-mono { color: #f7d9c4; }
html[data-skin="glam"] .program-cta { background: linear-gradient(135deg, #3a1e2e 0%, #6e3a4c 100%); }
html[data-skin="glam"] .program-cta .pc-kicker { color: #e7b8a6; }
html[data-skin="glam"] .brief-card { background: #3a1e2e; }
html[data-skin="glam"] .celebrate { background: rgba(58,30,46,.5); }
@media (min-width: 900px) {
  html[data-skin="glam"] .portrait { width: min(100% - 24px, 240px); height: auto; aspect-ratio: 1; justify-self: center; margin: 14px; }
  html[data-skin="glam"] .portrait img { border-radius: 50%; }
  html[data-skin="glam"] .portrait::before { inset: -10px; }
}
/* Glam entrance: a burst of sparkle, the room comes up soft-focus. */
@keyframes glam-burst { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(70deg); } 100% { opacity: 0; transform: scale(.3) rotate(160deg); } }
@keyframes glam-bloom { from { opacity: 0; filter: blur(8px); transform: scale(.98); } }
@keyframes glam-ring-in { from { transform: scale(.4) rotate(-90deg); opacity: 0; } }
.fx-glam i { color: #fff; animation: glam-burst 1.3s cubic-bezier(.3,.7,.4,1) both; filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 10px rgba(201,164,92,.7)); }
.fx-glam svg { width: 100%; height: 100%; display: block; fill: currentColor; }
html[data-skin="glam"].skin-enter .portrait { animation: glam-ring-in .9s cubic-bezier(.2,1.3,.4,1) both; }
html[data-skin="glam"].skin-enter .view.is-active .pane > *, html[data-skin="glam"].skin-enter .view.is-active .msg:nth-last-child(-n+4),
html[data-skin="glam"].skin-enter .coach-name { animation: glam-bloom .9s ease-out both; }

/* ════════════════════════════════════════════════════════════════════
   MODERN · Glass
   ════════════════════════════════════════════════════════════════════ */
html[data-skin="glass"] {
  --glacier: #06201d; --paper: rgba(255,255,255,.08); --sheet-bg: #0b2a26;
  --spruce: #f3fbf9; --spruce-2: #b3cbc6; --chart: #7f9e98; --line: rgba(255,255,255,.16);
  --teal: #7ff0dc; --teal-soft: rgba(127,240,220,.14); --coral: #ff7a6e; --coral-soft: rgba(255,122,110,.16);
  --gold: #ffd27a; --gold-soft: rgba(255,210,122,.14); --on-accent: #06201d;
  --display: Sora, "Avenir Next", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px;
  --shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 20px 40px rgba(0,0,0,.28);
  --glass: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 45%, rgba(255,255,255,.04) 100%);
  --sheen: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.26) 50%, transparent 60%);
}
@keyframes glass-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(22px, -18px); } }
@keyframes glass-sheen { 0% { background-position: 160% 0; } 60%, 100% { background-position: -60% 0; } }
html[data-skin="glass"] body { background: #06201d; }
html[data-skin="glass"] body::before, html[data-skin="glass"] body::after, html[data-skin="glass"] .shell::before {
  content: ""; position: fixed; border-radius: 50%; filter: blur(52px); pointer-events: none; z-index: 0; animation: glass-drift 14s ease-in-out infinite;
}
html[data-skin="glass"] body::before { width: 340px; height: 340px; left: -110px; top: -80px; background: #1f9c8a; }
html[data-skin="glass"] body::after { width: 300px; height: 300px; right: -120px; top: 34%; background: #ff5a4e; opacity: .5; animation-delay: -5s; }
html[data-skin="glass"] .shell::before { width: 360px; height: 360px; left: 8%; bottom: -170px; background: #3a7bd5; opacity: .5; animation-delay: -9s; z-index: -1; }
html[data-skin="glass"] .shell, html[data-skin="glass"] .join-screen { position: relative; z-index: 1; }
html[data-skin="glass"] .sheet { background: rgba(9,42,38,.86); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid rgba(255,255,255,.18); border-bottom: 0; }
html[data-skin="glass"] .stack-form .sheet-actions, html[data-skin="glass"] .sticky-actions { background: rgba(9,42,38,.92); }
html[data-skin="glass"] :is(.card, .compartment, .program-card, .workout-card, .program-cta, .stack-item, .brief-row, .pg-section, .lg-ex, .k-note, .k-plan, .empty-card, .add-way, .msg-kelly .bubble, .ai-today, .plan-card, .brief-card, .player) {
  background: var(--glass); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.22); box-shadow: var(--shadow);
}
html[data-skin="glass"] .compartment { border-top: 3px solid var(--teal); }
html[data-skin="glass"] .compartment.c-morning { border-top-color: var(--gold); }
html[data-skin="glass"] .compartment.c-evening { border-top-color: var(--coral); }
html[data-skin="glass"] .compartment.c-night { border-top-color: #8fb4ff; }
html[data-skin="glass"] .workout-card { border-top: 3px solid var(--coral); }
html[data-skin="glass"] .ai-today { border-left: 4px solid var(--gold); }
html[data-skin="glass"] .compartment.is-complete { background: linear-gradient(0deg, rgba(127,240,220,.16), rgba(255,255,255,.05) 70%); }
html[data-skin="glass"] .program-card { position: relative; }
html[data-skin="glass"] .program-card::after, html[data-skin="glass"] .portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--sheen); background-size: 250% 100%; animation: glass-sheen 7s ease-in-out infinite;
}
html[data-skin="glass"] .chart { background: rgba(6,32,29,.38); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
html[data-skin="glass"] .portrait { padding: 6px; border-radius: 26px; background: var(--glass); border: 1px solid rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 20px 40px rgba(0,0,0,.28); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
html[data-skin="glass"] .portrait img { border-radius: 20px; }
html[data-skin="glass"] .portrait-fallback { border-radius: 20px; background: linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,.05)); color: #e9fbf6; }
html[data-skin="glass"] .portrait::after { inset: 0; }
html[data-skin="glass"] .coach-name { font-weight: 700; letter-spacing: -.02em; }
html[data-skin="glass"] .vitals { font-family: var(--body); color: rgba(243,251,249,.75); }
html[data-skin="glass"] .vital b { color: #fff; font-weight: 600; }
html[data-skin="glass"] .vital.lvl b { color: #7ff0dc; }
html[data-skin="glass"] .ecg .trace { stroke: #7ff0dc; filter: drop-shadow(0 0 4px rgba(127,240,220,.6)); }
html[data-skin="glass"] .ecg .today-dot { fill: #7ff0dc; }
html[data-skin="glass"] .ecg .base { stroke: rgba(255,255,255,.12); }
html[data-skin="glass"] .xp { background: rgba(255,255,255,.12); }
html[data-skin="glass"] .xp span { background: linear-gradient(90deg, #7ff0dc, #fff); }
html[data-skin="glass"] .chart-top .talk-btn { background: var(--glass); border: 1px solid rgba(255,255,255,.3); color: #f3fbf9; font: 600 13px var(--body); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); backdrop-filter: blur(12px); }
html[data-skin="glass"] .pane-head h2 { font-weight: 600; letter-spacing: -.02em; }
html[data-skin="glass"] .pc-kicker { font-family: var(--body); font-weight: 600; letter-spacing: .12em; color: #7ff0dc; }
html[data-skin="glass"] .pc-top strong { font: 600 27px/1.1 Archivo, var(--display); font-stretch: 75%; letter-spacing: -.01em; }
html[data-skin="glass"] .pc-bar { background: rgba(255,255,255,.15); }
html[data-skin="glass"] .pc-bar i { background: linear-gradient(90deg, #7ff0dc, #fff); }
html[data-skin="glass"] .pc-food { background: rgba(255,255,255,.04); }
html[data-skin="glass"] :is(.pc-today, .pc-food) { border-top-color: rgba(255,255,255,.16); }
html[data-skin="glass"] .btn { font-weight: 600; }
html[data-skin="glass"] .btn-primary { background: #f3fbf9; color: #06201d; box-shadow: 0 8px 24px rgba(127,240,220,.3); }
html[data-skin="glass"] .btn-teal { background: #f3fbf9; color: #06201d; box-shadow: 0 8px 24px rgba(127,240,220,.35); }
html[data-skin="glass"] .btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: #f3fbf9; }
html[data-skin="glass"] .check { border-radius: 14px; border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
html[data-skin="glass"] .check.is-done { background: #7ff0dc; border-color: #7ff0dc; transform: none; box-shadow: 0 0 18px rgba(127,240,220,.45); }
html[data-skin="glass"] :is(.field input, .field select, .field textarea, .times input, .inline-form input, .ing-row input, .lg-set input) { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
html[data-skin="glass"] .composer { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
html[data-skin="glass"] .composer-wrap { background: none; }
html[data-skin="glass"] .seg { background: rgba(255,255,255,.08); }
html[data-skin="glass"] .seg-btn.is-active { background: rgba(255,255,255,.2); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
html[data-skin="glass"] .chip, html[data-skin="glass"] .day-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
html[data-skin="glass"] .tabbar { background: rgba(8,36,32,.55); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-top: 1px solid rgba(255,255,255,.14); }
html[data-skin="glass"] .tab { color: rgba(243,251,249,.6); font-weight: 500; }
html[data-skin="glass"] .tab.is-active { color: #7ff0dc; font-weight: 600; }
@media (max-width: 899px) {
  html[data-skin="glass"] .tabbar { left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); height: var(--tabbar-h); padding-bottom: 0; border-radius: 24px; border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 16px 32px rgba(0,0,0,.3); }
  html[data-skin="glass"] .pane { padding-bottom: calc(40px + var(--tabbar-h) + var(--safe-b)); }
  html[data-skin="glass"] #view-chat { padding-bottom: calc(var(--tabbar-h) + 10px + var(--safe-b)); }
  /* Content fades out before it reaches the floating bar instead of peeking underneath it. */
  html[data-skin="glass"] .views::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + 34px + var(--safe-b)); z-index: 4; pointer-events: none; background: linear-gradient(to top, rgba(6,32,29,.92) 45%, rgba(6,32,29,0)); }
}
/* Glass entrance: colour blooms behind the glass, one sheen crosses the whole screen. */
@keyframes glass-bloom { from { opacity: 0; transform: scale(.5); } }
@keyframes glass-frost { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(6px); } }
@keyframes glass-sweep { from { transform: translateX(-120%) skewX(-16deg); } to { transform: translateX(380%) skewX(-16deg); } }
html[data-skin="glass"].skin-enter body::before, html[data-skin="glass"].skin-enter body::after { animation: glass-bloom 1.2s cubic-bezier(.2,.8,.2,1) both, glass-drift 14s ease-in-out 1.2s infinite; }
html[data-skin="glass"].skin-enter .chart, html[data-skin="glass"].skin-enter .view.is-active .pane > *,
html[data-skin="glass"].skin-enter .view.is-active .msg:nth-last-child(-n+4), html[data-skin="glass"].skin-enter .tabbar { animation: glass-frost .8s cubic-bezier(.2,.8,.2,1) both; }
.fx-glass i { top: -10%; bottom: -10%; left: 0; width: 30%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.22), rgba(255,255,255,0)); animation: glass-sweep 1.3s cubic-bezier(.45,0,.25,1) .35s both; }

/* ════════════════════════════════════════════════════════════════════
   NEON NIGHT
   ════════════════════════════════════════════════════════════════════ */
html[data-skin="neon"] {
  --glacier: #07070c; --paper: rgba(12,14,26,.86); --sheet-bg: #0b0b14;
  --spruce: #eef0ff; --spruce-2: #9aa3c7; --chart: #5d6591; --line: rgba(43,240,255,.22);
  --teal: #2bf0ff; --teal-soft: rgba(43,240,255,.1); --coral: #ff2bd6; --coral-soft: rgba(255,43,214,.12);
  --gold: #ffd84a; --gold-soft: rgba(255,216,74,.12); --on-accent: #07070c;
  --display: "Chakra Petch", "Eurostile", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow: 0 0 0 1px rgba(43,240,255,.12), 0 0 22px rgba(43,240,255,.16), inset 0 0 24px rgba(43,240,255,.06);
}
@keyframes neon-pulse { 0%, 100% { box-shadow: 0 0 6px #ff2bd6, 0 0 18px rgba(255,43,214,.6), 0 0 40px rgba(255,43,214,.35), inset 0 0 12px rgba(255,43,214,.35); } 50% { box-shadow: 0 0 8px #ff2bd6, 0 0 26px rgba(255,43,214,.8), 0 0 60px rgba(255,43,214,.45), inset 0 0 18px rgba(255,43,214,.45); } }
@keyframes neon-flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }
html[data-skin="neon"] body {
  background-color: #07070c;
  background-image: linear-gradient(rgba(43,240,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(43,240,255,.05) 1px, transparent 1px), radial-gradient(80% 40% at 50% 0%, rgba(255,43,214,.16), transparent 70%);
  background-size: 28px 28px, 28px 28px, 100% 100%; background-attachment: fixed;
}
html[data-skin="neon"] .sheet { border: 1px solid rgba(255,43,214,.45); border-bottom: 0; box-shadow: 0 -8px 40px rgba(255,43,214,.2); }
html[data-skin="neon"] :is(.card, .compartment, .program-card, .workout-card, .program-cta, .stack-item, .brief-row, .pg-section, .lg-ex, .k-note, .k-plan, .empty-card, .add-way, .msg-kelly .bubble, .ai-today, .plan-card) {
  background: var(--paper); border: 1px solid rgba(43,240,255,.55); box-shadow: var(--shadow);
}
html[data-skin="neon"] .compartment { border-top: 2px solid var(--teal); }
html[data-skin="neon"] .compartment.c-morning { border-top-color: #ffd84a; }
html[data-skin="neon"] .compartment.c-evening, html[data-skin="neon"] .workout-card { border-top: 2px solid #ff2bd6; }
html[data-skin="neon"] .compartment.c-night { border-top-color: #8b7bff; }
html[data-skin="neon"] .compartment.is-complete { background: linear-gradient(0deg, rgba(43,240,255,.12), var(--paper) 70%); }
html[data-skin="neon"] .ai-today { border-left: 3px solid #ffd84a; }
html[data-skin="neon"] .chart { background: rgba(7,7,12,.78); border-bottom: 1px solid rgba(255,43,214,.4); box-shadow: 0 6px 24px rgba(255,43,214,.08); }
html[data-skin="neon"] .portrait { padding: 5px; border-radius: 18px; background: #0d0d16; border: 2px solid #ff2bd6; animation: neon-pulse 3.2s ease-in-out infinite; }
html[data-skin="neon"] .portrait img { border-radius: 12px; }
html[data-skin="neon"] .portrait-fallback { border-radius: 12px; border: 1px solid rgba(43,240,255,.5); background: radial-gradient(circle at 50% 30%, rgba(43,240,255,.22), #0d0d16 70%); color: #2bf0ff; text-shadow: 0 0 10px rgba(43,240,255,.8); }
html[data-skin="neon"] .presence { border-color: #07070c; }
html[data-skin="neon"] .presence.is-online { background: #39ff88; box-shadow: 0 0 8px #39ff88; }
html[data-skin="neon"] .coach-name { color: #ffe3fa; text-transform: uppercase; letter-spacing: .04em; font-size: 30px; text-shadow: 0 0 6px rgba(255,43,214,.9), 0 0 18px rgba(255,43,214,.6); animation: neon-flicker 7s linear infinite; }
html[data-skin="neon"] .presence-label { color: #ff7be6; }
html[data-skin="neon"] .vitals { color: #9aa3c7; }
html[data-skin="neon"] .vital b { color: #2bf0ff; text-shadow: 0 0 8px rgba(43,240,255,.7); font-weight: 600; }
html[data-skin="neon"] .vital.lvl b { color: #ff7be6; text-shadow: 0 0 8px rgba(255,43,214,.7); }
html[data-skin="neon"] .ecg .trace { stroke: #2bf0ff; filter: drop-shadow(0 0 4px #2bf0ff) drop-shadow(0 0 10px rgba(43,240,255,.7)); }
html[data-skin="neon"] .ecg .today-dot { fill: #ff2bd6; filter: drop-shadow(0 0 4px #ff2bd6); }
html[data-skin="neon"] .ecg .base { stroke: rgba(43,240,255,.15); }
html[data-skin="neon"] .xp { background: rgba(255,216,74,.1); }
html[data-skin="neon"] .xp span { background: #ffd84a; box-shadow: 0 0 10px #ffd84a; }
html[data-skin="neon"] .chart-top .talk-btn { border-radius: 8px; border: 1px solid #2bf0ff; background: rgba(43,240,255,.08); color: #2bf0ff; font: 600 13px var(--display); text-transform: uppercase; letter-spacing: .1em; box-shadow: 0 0 14px rgba(43,240,255,.4); }
html[data-skin="neon"] :is(.pane-head h2, .sheet-head h2, .celebrate-card h2) { text-transform: uppercase; letter-spacing: .04em; }
html[data-skin="neon"] .pane-head h2 { color: #ffe3fa; text-shadow: 0 0 6px rgba(255,43,214,.7), 0 0 16px rgba(255,43,214,.4); }
html[data-skin="neon"] :is(.card h3, .comp-head h3, .workout-card h3) { font-weight: 600; letter-spacing: .02em; }
html[data-skin="neon"] .pc-kicker { font-family: var(--mono); font-weight: 600; letter-spacing: .14em; color: #ff7be6; }
html[data-skin="neon"] .pc-top strong { font: 700 24px/1.05 "Saira Condensed", var(--display); text-transform: uppercase; letter-spacing: .01em; }
html[data-skin="neon"] .pc-bar { background: rgba(43,240,255,.1); }
html[data-skin="neon"] .pc-bar i { background: #2bf0ff; box-shadow: 0 0 10px #2bf0ff; }
html[data-skin="neon"] .pc-food { background: rgba(43,240,255,.04); }
html[data-skin="neon"] :is(.pc-today, .pc-food) { border-top-color: rgba(43,240,255,.2); }
html[data-skin="neon"] .btn { border-radius: 10px; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
html[data-skin="neon"] :is(.btn-primary, .btn-teal) { background: #ff2bd6; color: #12000f; box-shadow: 0 0 18px rgba(255,43,214,.8), 0 0 40px rgba(255,43,214,.4); }
html[data-skin="neon"] .btn-ghost { background: rgba(43,240,255,.05); border-color: rgba(43,240,255,.6); color: #2bf0ff; }
html[data-skin="neon"] .check { border-radius: 10px; border: 1.5px solid rgba(43,240,255,.6); background: transparent; }
html[data-skin="neon"] .check.is-done { background: #2bf0ff; border-color: #2bf0ff; transform: none; box-shadow: 0 0 14px rgba(43,240,255,.8); }
html[data-skin="neon"] :is(.field input, .field select, .field textarea, .times input, .inline-form input, .ing-row input, .lg-set input, .composer) { background: rgba(10,12,22,.9); border-color: rgba(43,240,255,.35); }
html[data-skin="neon"] .send-btn { border-radius: 10px; box-shadow: 0 0 12px rgba(43,240,255,.6); }
html[data-skin="neon"] .msg-user .bubble { background: #ff2bd6; color: #12000f; box-shadow: 0 0 14px rgba(255,43,214,.45); border-radius: 14px 14px 4px 14px; }
html[data-skin="neon"] .msg-kelly .bubble { border-radius: 14px 14px 14px 4px; }
html[data-skin="neon"] .seg { background: rgba(43,240,255,.07); border: 1px solid rgba(43,240,255,.25); }
html[data-skin="neon"] .seg-btn.is-active { background: rgba(43,240,255,.16); color: #2bf0ff; box-shadow: 0 0 10px rgba(43,240,255,.3); }
html[data-skin="neon"] .chip, html[data-skin="neon"] .day-chip { background: transparent; border-color: rgba(43,240,255,.4); }
html[data-skin="neon"] .day-chip[aria-pressed="true"], html[data-skin="neon"] .pg-goal[aria-pressed="true"] { background: #2bf0ff; box-shadow: 0 0 12px rgba(43,240,255,.6); }
html[data-skin="neon"] .tabbar { background: rgba(7,7,12,.92); border-top: 1px solid rgba(255,43,214,.5); box-shadow: 0 -6px 24px rgba(255,43,214,.15); }
html[data-skin="neon"] .tab { color: #6c74a0; font-family: var(--display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html[data-skin="neon"] .tab.is-active { color: #2bf0ff; text-shadow: 0 0 8px rgba(43,240,255,.8); }
html[data-skin="neon"] .tw-tile.is-on { box-shadow: 0 0 0 2px #ff2bd6, 0 0 16px rgba(255,43,214,.6); }
html[data-skin="neon"] .link-btn { color: #2bf0ff; }
/* Neon entrance: the tubes strike, stutter, then hold. A scanline wipes the glass. */
@keyframes neon-ignite { 0% { opacity: 0; } 8% { opacity: .85; } 12% { opacity: .05; } 22% { opacity: 1; } 27% { opacity: .25; } 34% { opacity: 1; } 40% { opacity: .6; } 46%, 100% { opacity: 1; } }
@keyframes neon-trace { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes neon-scan { from { transform: translateY(-10vh); opacity: 1; } 85% { opacity: 1; } to { transform: translateY(105vh); opacity: 0; } }
html[data-skin="neon"].skin-enter .shell { animation: neon-ignite 1s linear both; }
html[data-skin="neon"].skin-enter .ecg .trace { stroke-dasharray: 420; animation: neon-trace 1.6s ease-out .5s both; }
html[data-skin="neon"].skin-enter .portrait { animation: neon-ignite 1.1s linear .15s both, neon-pulse 3.2s ease-in-out 1.3s infinite; }
.fx-neon i { left: 0; right: 0; top: 0; height: 3px; background: #2bf0ff; box-shadow: 0 0 12px #2bf0ff, 0 0 30px rgba(43,240,255,.8); animation: neon-scan 1.2s cubic-bezier(.4,0,.6,1) .25s both; }

/* Everyone: stagger the entrance down the page. */
html.skin-enter .view.is-active .pane > :nth-child(2) { animation-delay: .08s; }
html.skin-enter .view.is-active .pane > :nth-child(3) { animation-delay: .16s; }
html.skin-enter .view.is-active .pane > :nth-child(4) { animation-delay: .24s; }
html.skin-enter .view.is-active .pane > :nth-child(5) { animation-delay: .32s; }
html.skin-enter .view.is-active .pane > :nth-child(n+6) { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html[data-skin] .portrait, html[data-skin] .portrait::before, html[data-skin] .portrait::after, html[data-skin] .coach-name,
  html[data-skin] .program-card::before, html[data-skin] .program-card::after, html[data-skin] body::before, html[data-skin] body::after, html[data-skin] .shell::before,
  html[data-skin] .check.is-done, html[data-skin] .chart-top .talk-btn, html[data-skin] .xp span, html[data-skin] .pc-bar i { animation: none !important; }
  .skin-fx { display: none; }
}

/* 1.9 health card inside each skin */
html[data-skin="gym"] .hl-tile { background: #1d2024; border: 1px solid #454a51; border-radius: 6px; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
html[data-skin="gym"] .hl-level { text-transform: uppercase; letter-spacing: .02em; font-size: 26px; }
html[data-skin="glam"] .hl-tile { background: rgba(255,246,239,.85); border: 1px solid rgba(183,110,121,.25); }
html[data-skin="glam"] .hl-level { font-style: italic; font-weight: 600; }
html[data-skin="glass"] .hl-tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; }
html[data-skin="neon"] .hl-tile { background: rgba(43,240,255,.05); border: 1px solid rgba(43,240,255,.25); border-radius: 10px; }
html[data-skin="neon"] .hl-level { text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 0 10px currentColor; }
html[data-skin="neon"] .hl-spark polyline { filter: drop-shadow(0 0 3px #2bf0ff); }
html[data-dark] .hl-prompt { background: rgba(255,255,255,.04); }

/* 1.10 Arsenal inside each skin */
html[data-skin="gym"] .ar-card, html[data-skin="gym"] .ar-empty, html[data-skin="gym"] .gear-card { background: var(--steel); border: 1px solid #5b6168; border-radius: 8px; }
html[data-skin="gym"] .ar-body strong, html[data-skin="gym"] .ar-empty h3 { text-transform: uppercase; letter-spacing: .02em; }
html[data-skin="gym"] .ar-img { background: #d9dde1; }
html[data-skin="glam"] .ar-card, html[data-skin="glam"] .ar-empty, html[data-skin="glam"] .gear-card { border: 1px solid rgba(183,110,121,.32); }
html[data-skin="glam"] .ar-qty, html[data-skin="glam"] .gear-go { background: var(--foil); background-size: 200% 100%; color: #3a1e2e; }
html[data-skin="glass"] .ar-card, html[data-skin="glass"] .ar-empty, html[data-skin="glass"] .gear-card { background: var(--glass); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255,255,255,.22); }
html[data-skin="glass"] .ar-img { background: rgba(255,255,255,.92); }
html[data-skin="neon"] .ar-card, html[data-skin="neon"] .ar-empty, html[data-skin="neon"] .gear-card { background: var(--paper); border: 1px solid rgba(43,240,255,.55); box-shadow: var(--shadow); }
html[data-skin="neon"] .ar-card:hover { box-shadow: 0 0 0 1px #2bf0ff, 0 0 18px rgba(43,240,255,.35); }
html[data-skin="neon"] .ar-img { background: #0d0d16; }
html[data-skin="neon"] .ar-img img { filter: drop-shadow(0 0 10px rgba(43,240,255,.25)); }
html[data-dark] .chip.is-on { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
html[data-dark] .ar-qty { background: var(--teal); color: var(--on-accent); }
html[data-dark] .ar-photo-btn { background: rgba(0,0,0,.65); }

/* 1.11.1 splash per skin */
html[data-skin="gym"] { --pulse: #ff6a13; }
html[data-skin="glam"] { --pulse: #b76e79; }
html[data-skin="glass"] { --pulse: #7ff0dc; }
html[data-skin="neon"] { --pulse: #2bf0ff; }
html[data-skin="gym"] .splash { background-color: #16181b; background-image: var(--plate); }
html[data-skin="gym"] .sp-word { text-transform: uppercase; font-weight: 900; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(255,255,255,.12), 0 -1px 0 rgba(0,0,0,.7); }
html[data-skin="gym"] .splash::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, #ff6a13 0 12px, #16181b 12px 24px); }
html[data-skin="glam"] .splash { background: radial-gradient(120% 60% at 80% 0%, #fff6ef 0%, rgba(255,246,239,0) 60%), radial-gradient(90% 50% at 0% 100%, #f1d6cf 0%, rgba(241,214,207,0) 60%), #f6e9df; }
html[data-skin="glam"] .sp-word { font-style: italic; font-weight: 600; letter-spacing: 0; }
html[data-skin="glam"] .sp-accent .sp-l { background: linear-gradient(180deg, #f3cdbf 0%, #c9877f 45%, #a3585f 70%, #c9a45c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
html[data-skin="glass"] .splash { background: #06201d; }
html[data-skin="glass"] .splash::before, html[data-skin="glass"] .splash::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: glass-drift 10s ease-in-out infinite; }
html[data-skin="glass"] .splash::before { width: 60vmax; height: 60vmax; left: -20vmax; top: -15vmax; background: #1f9c8a; }
html[data-skin="glass"] .splash::after { width: 50vmax; height: 50vmax; right: -20vmax; bottom: -15vmax; background: #3a7bd5; opacity: .45; }
html[data-skin="glass"] .sp-stage, html[data-skin="glass"] .sp-motto { z-index: 1; }
html[data-skin="neon"] .splash { background-color: #07070c; background-image: linear-gradient(rgba(43,240,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(43,240,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
html[data-skin="neon"] .sp-line { stroke-width: 2.5; filter: drop-shadow(0 0 4px #2bf0ff) drop-shadow(0 0 12px rgba(43,240,255,.8)); }
html[data-skin="neon"] .sp-word { text-transform: uppercase; letter-spacing: .04em; color: #ffe3fa; text-shadow: 0 0 8px rgba(255,43,214,.9), 0 0 22px rgba(255,43,214,.6); }
html[data-skin="neon"] .sp-accent { color: #2bf0ff; text-shadow: 0 0 8px rgba(43,240,255,.9), 0 0 22px rgba(43,240,255,.6); }
html[data-skin="neon"] .sp-ring { box-shadow: 0 0 12px #2bf0ff; }

/* 1.13 Choose Your Coach wears the skin, same ground as the splash */
html[data-skin="gym"] .cs { background-color: #16181b; background-image: var(--plate); }
html[data-skin="gym"] .cs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, #ff6a13 0 12px, #16181b 12px 24px); }
html[data-skin="gym"] .cs-name { text-transform: uppercase; font-weight: 900; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(255,255,255,.12), 0 -1px 0 rgba(0,0,0,.7); }
html[data-skin="gym"] .cs-portrait, html[data-skin="gym"] .cs-tface { border-radius: 6px; }
html[data-skin="glam"] .cs { background: radial-gradient(120% 60% at 80% 0%, #fff6ef 0%, rgba(255,246,239,0) 60%), radial-gradient(90% 50% at 0% 100%, #f1d6cf 0%, rgba(241,214,207,0) 60%), #f6e9df; }
html[data-skin="glam"] .cs-name { font-style: italic; font-weight: 600; letter-spacing: -.01em; }
html[data-skin="glam"] .cs-portrait { border-radius: 999px 999px 28px 28px; }
html[data-skin="glass"] .cs { background: #06201d; }
html[data-skin="glass"] .cs::before, html[data-skin="glass"] .cs::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: glass-drift 10s ease-in-out infinite; }
html[data-skin="glass"] .cs::before { width: 60vmax; height: 60vmax; left: -20vmax; top: -15vmax; background: #1f9c8a; }
html[data-skin="glass"] .cs::after { width: 50vmax; height: 50vmax; right: -20vmax; bottom: -15vmax; background: #3a7bd5; opacity: .4; }
html[data-skin="glass"] .cs-name { font-weight: 500; letter-spacing: -.03em; }
html[data-skin="glass"] .cs-portrait { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 30px 60px -30px rgba(127,240,220,.6); }
html[data-skin="neon"] .cs { background-color: #07070c; background-image: linear-gradient(rgba(43,240,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(43,240,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
html[data-skin="neon"] .cs-name { text-transform: uppercase; letter-spacing: .03em; color: #ffe3fa; text-shadow: 0 0 8px rgba(255,43,214,.9), 0 0 22px rgba(255,43,214,.6); }
html[data-skin="neon"] .cs-portrait { border-radius: 10px; box-shadow: 0 0 0 1px #2bf0ff, 0 0 18px rgba(43,240,255,.55), 0 0 60px -10px rgba(255,43,214,.5); }
html[data-skin="neon"] .cs-tface { border-radius: 8px; }
html[data-skin="neon"] .cs-beat path { stroke-width: 2.5; filter: drop-shadow(0 0 4px #2bf0ff) drop-shadow(0 0 12px rgba(43,240,255,.8)); }
html[data-dark] .cs-lead { color: #0b0b0f; }
html[data-dark] .focus-pick[aria-checked="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
