/* ───────── FORGE — tokens ───────── */
@font-face { font-family: 'Big Shoulders'; font-weight: 600; font-display: swap; src: url(../fonts/big-shoulders-display-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders'; font-weight: 800; font-display: swap; src: url(../fonts/big-shoulders-display-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders'; font-weight: 900; font-display: swap; src: url(../fonts/big-shoulders-display-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-sans-latin-wght-normal.woff2) format('woff2'); }

:root {
  --bg: #050506; --surface: #101012; --surface-2: #18181b; --line: #242428; --line-hi: #3b3b42;
  --text: #f1ede4; --muted: #94918a; --danger: #ff5a4d; --accent: #c8ff3d; --on-accent: #0a0b05;
  --display: 'Big Shoulders', 'Arial Narrow', sans-serif; --body: 'Instrument Sans', -apple-system, system-ui, sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --gutter: 20px; --radius: 26px; --tabh: 64px;
  --spring: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--body); overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:disabled { opacity: .35; pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }

.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ───────── typographie ───────── */
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
h1 { font: 900 clamp(52px, 17vw, 72px)/.88 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin-top: 8px; }
h2 { font: 800 30px/.95 var(--display); text-transform: uppercase; }
h3 { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.num { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; line-height: .9; letter-spacing: .005em; }
.num.xl { font-size: 76px; font-weight: 900; color: var(--accent); }
.num.md { font-size: 34px; } .num.sm { font-size: 22px; }
.lbl { font: 600 11px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); } .fine { font-size: 12.5px; color: var(--muted); line-height: 1.4; } .center { text-align: center; }
.note { font-size: 13.5px; color: #ffb35a; background: rgba(255, 179, 90, .08); border: 1px solid rgba(255, 179, 90, .22); border-radius: 14px; padding: 10px 12px; }
.linkish { color: var(--accent); font-size: 13.5px; text-align: left; padding: 4px 0; }
.ic { display: inline-flex; flex: none; }

/* ───────── structure ───────── */
main { position: relative; isolation: isolate; min-height: 100dvh; }
.view { padding: calc(var(--sat) + 22px) var(--gutter) calc(var(--tabh) + var(--sab) + 120px); display: grid; gap: 16px; align-content: start; animation: fadein .4s ease backwards; max-width: 560px; margin: 0 auto; }
.view::before { content: ''; position: fixed; inset: -10% -20% auto; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.view > * { animation: rise .55s var(--ease) backwards; }
.view > *:nth-child(2) { animation-delay: .05s } .view > *:nth-child(3) { animation-delay: .1s } .view > *:nth-child(4) { animation-delay: .15s }
.view > *:nth-child(5) { animation-delay: .2s } .view > *:nth-child(n+6) { animation-delay: .25s }
@keyframes fadein { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.head { padding-top: 4px; }
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; position: relative; text-align: left; width: 100%; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip { font: 600 12px/1 var(--body); padding: 7px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ───────── boutons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 18px; font: 700 16px/1 var(--body); transition: transform .18s var(--spring), background .2s; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: var(--surface-2); border: 1px solid var(--line-hi); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.big { min-height: 68px; font: 900 24px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; border-radius: 22px; width: 100%; }
.btn.wide, .wide { width: 100%; }
.danger-t { color: var(--danger); }
.btn-col { display: grid; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.pill { padding: 12px 16px; min-height: 44px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.pill:active { background: var(--accent); color: var(--on-accent); }

/* ───────── navigation ───────── */
.tabbar { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab) + 10px); width: min(calc(100% - 24px), 520px); height: var(--tabh);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 26px; background: rgba(18, 18, 21, .72); border: 1px solid var(--line-hi);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.tab { display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 20px; color: var(--muted); font: 600 10.5px/1 var(--body); letter-spacing: .04em; transition: color .2s, background .2s; min-width: 44px; }
.tab.on { color: var(--on-accent); background: var(--accent); }
.tab span:last-child { display: block; }

/* ───────── Séance : aperçu ───────── */
.daychips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daychip { height: 46px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); font: 800 16px/1 var(--display); letter-spacing: .04em; color: var(--muted); position: relative; transition: transform .2s var(--spring); }
.daychip.on { background: var(--c); color: #0a0b05; border-color: var(--c); transform: translateY(-3px); }
.daychip.today::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.hero { gap: 16px; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent); pointer-events: none; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.prog-name { font-size: 46px; font-weight: 900; margin-top: 6px; }
.tri { display: flex; gap: 14px; } .tri-i { display: grid; gap: 4px; justify-items: start; }
.kcal-box { display: grid; gap: 12px; }
.kcal-line { display: flex; align-items: flex-end; gap: 8px; color: var(--accent); } .kcal-line .ic { align-self: center; }
.kcal-line .unit { color: var(--muted); font-size: 14px; padding-bottom: 6px; }
.kcal-line.big .num.xl { font-size: 96px; }
.sim { display: grid; gap: 10px; font-size: 14px; color: var(--muted); } .sim .num { color: var(--text); font-size: 20px; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; }
.slider::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #3DDCFF, var(--accent), #FF7A2F, #FF4D8D); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--text); }
.slider::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #3DDCFF, var(--accent), #FF7A2F, #FF4D8D); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); }
.exlist { display: grid; gap: 2px; }
.exrow { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.exrow .idx { font: 800 18px/1 var(--display); color: var(--muted); display: inline-flex; }
.exrow .nm { font-weight: 600; } .exrow .meta { font: 800 20px/1 var(--display); color: var(--muted); letter-spacing: .02em; }
.quick { display: grid; gap: 10px; } .quick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-dock { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); width: min(calc(100% - 2 * var(--gutter)), 520px); bottom: calc(var(--sab) + var(--tabh) + 22px); animation: none !important; }
.cta-dock::before { content: ''; position: absolute; inset: -30px -20px -12px; background: linear-gradient(transparent, var(--bg) 70%); z-index: -1; pointer-events: none; }
.cta-dock .btn { box-shadow: 0 12px 36px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ───────── Séance : en cours ───────── */
.sess-head { display: flex; justify-content: space-between; align-items: center; }
.clock { font-size: 64px; display: block; margin-top: 8px; font-weight: 900; }
.sess-prog { display: flex; align-items: center; gap: 10px; }
.ring { position: relative; flex: none; } .ring svg { display: block; width: 100%; height: 100%; }
.ring-arc { transition: stroke-dasharray .35s var(--ease); }
.ring-in { position: absolute; inset: 0; display: grid; place-items: center; }
.now { gap: 14px; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.ex-name { font-size: 42px; font-weight: 900; }
.setdots { display: flex; gap: 8px; } .dot { flex: 1; height: 8px; border-radius: 9px; background: var(--line-hi); }
.dot.done { background: var(--accent); } .dot.cur { background: color-mix(in srgb, var(--accent) 45%, var(--line-hi)); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { display: grid; gap: 8px; } .step-lbl { font: 600 11px/1 var(--body); letter-spacing: .12em; color: var(--muted); }
.step-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 4px; }
.step-btn { width: 44px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); transition: transform .15s var(--spring), background .15s; }
.step-btn:active { transform: scale(.88); background: var(--accent); color: var(--on-accent); }
.step-mid { display: grid; justify-items: center; min-width: 0; }
.step-val { width: 100%; text-align: center; background: none; border: 0; font: 900 40px/1 var(--display); padding: 0; outline: none; font-variant-numeric: tabular-nums; }
.step-unit { font: 600 10px/1 var(--body); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }
.done-btn { margin-top: 4px; animation: none; }
.exlist.active .exrow { padding: 12px 10px; border-radius: 16px; border-bottom: 0; }
.exlist.active .exrow.cur { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.exlist.active .exrow.done { opacity: .5; } .exlist.active .exrow.done .idx { color: var(--accent); }
.sess-tools { display: flex; flex-wrap: wrap; gap: 8px; } .sess-tools .btn { min-height: 46px; padding: 0 14px; font-size: 14px; flex: 1 1 auto; }

/* ───────── récupération (plein écran) ───────── */
.rest { position: fixed; inset: 0; z-index: 70; background: radial-gradient(70% 50% at 50% 38%, color-mix(in srgb, var(--accent) 16%, #050506), #050506 75%);
  display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 18px; padding: calc(var(--sat) + 18px) var(--gutter) calc(var(--sab) + 22px); animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } }
.rest-top { text-align: center; padding-top: 6px; }
.rest-center { display: grid; place-items: center; }
.rest-ring { width: min(80vw, 340px) !important; height: min(80vw, 340px) !important; }
.rest-clock { font: 900 clamp(84px, 26vw, 118px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.rest.is-go .rest-clock { color: var(--accent); animation: pop .6s var(--spring) both; }
.rest.is-go { background: radial-gradient(80% 60% at 50% 38%, color-mix(in srgb, var(--accent) 38%, #050506), #050506 75%); }
@keyframes pop { from { transform: scale(.6); } }
.rest-next { display: grid; justify-items: center; gap: 4px; text-align: center; } .rest-next strong { font: 800 28px/1 var(--display); text-transform: uppercase; }
.rest-adj { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ───────── semaine ───────── */
.rings { grid-template-columns: repeat(3, 1fr); padding: 20px 10px; }
.rings-i { display: grid; justify-items: center; gap: 6px; text-align: center; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 12px; display: grid; gap: 8px; color: var(--accent); }
.stat .num { color: var(--text); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 168px; }
.bar { display: grid; grid-template-rows: 1fr auto auto; gap: 6px; justify-items: center; }
.bar-track { position: relative; width: 100%; max-width: 34px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: flex-end; }
.bar-plan { position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px dashed var(--line-hi); }
.bar-done { position: relative; width: 100%; background: var(--c); border-radius: 10px; transition: height .6s var(--ease); }
.bar-v { font: 800 16px/1 var(--display); color: var(--muted); } .bar-l { font: 800 15px/1 var(--display); color: var(--muted); }
.bar.today .bar-l { color: var(--c); } .bar.today .bar-track { border-color: var(--c); }
.tally li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }

/* ───────── plans / journal ───────── */
.plan-list, .logs { display: grid; gap: 10px; }
.plan, .logrow { grid-template-columns: 58px 1fr auto; align-items: center; padding: 14px; border-radius: 22px; gap: 12px; }
.plan-day { font: 900 22px/1 var(--display); color: var(--accent); letter-spacing: .04em; }
.plan-body { display: grid; gap: 3px; min-width: 0; } .plan-body strong { font: 800 22px/1 var(--display); text-transform: uppercase; } .plan-body .muted { font-size: 13px; }
.kc { text-align: right; display: grid; justify-items: end; } .kc i { font: 600 10px/1 var(--body); font-style: normal; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.chart svg { width: 100%; height: auto; } .svg-l { fill: var(--muted); font: 600 9px var(--body); } .svg-v { fill: var(--text); font: 700 10px var(--body); }
.empty { padding: 30px 0; text-align: center; }

/* ───────── feuilles ───────── */
.sheet-back { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
.sheet-back.out { opacity: 0; transition: opacity .18s; } .sheet-back.out .sheet { transform: translateY(40px); transition: transform .18s; }
.sheet { width: min(100%, 560px); max-height: 92dvh; display: grid; grid-template-rows: auto auto 1fr auto; background: #0e0e10; border: 1px solid var(--line-hi); border-bottom: 0; border-radius: 32px 32px 0 0; padding: 8px var(--gutter) calc(var(--sab) + 16px); animation: up .4s var(--ease) both; }
.sheet.tall { height: 92dvh; } @keyframes up { from { transform: translateY(100%); } }
.sheet-grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line-hi); margin: 4px auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .sheet-head h2 { font-size: 34px; }
.sheet-body > div { display: grid; gap: 14px; }
.sheet-body { overflow-y: auto; display: grid; gap: 14px; align-content: start; padding: 4px 0 12px; overscroll-behavior: contain; }
.sheet-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; padding-top: 10px; }
.finish, .recap { display: grid; gap: 14px; }
.recap { justify-items: center; text-align: center; }
.toast { position: fixed; z-index: 95; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab) + var(--tabh) + 34px); padding: 13px 18px; border-radius: 99px; background: var(--text); color: #0a0a0a; font-weight: 600; font-size: 14px; animation: rise .3s var(--ease) both; white-space: nowrap; }

/* ───────── formulaires ───────── */
.fld { display: grid; gap: 6px; font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fld input, .txt { width: 100%; height: 48px; padding: 0 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-hi); font: 600 16px var(--body); color: var(--text); text-transform: none; letter-spacing: 0; }
.xe { gap: 10px; padding: 14px; border-radius: 22px; } .xe-top { display: flex; gap: 8px; align-items: center; } .xe-btns { display: flex; gap: 6px; }
.xe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .xe-grid.two { grid-template-columns: 1fr 1fr; }
.xe-grid .fld { letter-spacing: .04em; font-size: 10px; } .xe-grid input { padding: 0 6px; text-align: center; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); gap: 4px; }
.seg button { min-height: 44px; border-radius: 12px; font-weight: 700; color: var(--muted); } .seg button.on { background: var(--accent); color: var(--on-accent); } .seg.sm button { min-height: 36px; font-size: 13px; }
.toggle { display: flex; justify-content: space-between; align-items: center; min-height: 48px; } .toggle input { appearance: none; -webkit-appearance: none; width: 56px; height: 34px; border-radius: 99px; background: var(--line-hi); position: relative; transition: background .2s; flex: none; }
.toggle input::after { content: ''; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--text); transition: transform .25s var(--spring); }
.toggle input:checked { background: var(--accent); } .toggle input:checked::after { transform: translateX(22px); background: var(--on-accent); }
.callout { grid-template-columns: auto 1fr; align-items: start; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); } .callout p { color: var(--text); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ───────── profils ───────── */
[data-profile='vlada'] { --accent: #ff8fb1; --on-accent: #1d0a13; }
.head-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-hi); font-weight: 700; font-size: 14px; }
.pavatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 900 28px/1 var(--display); flex: none; }
.pavatar.sm { width: 30px; height: 30px; font-size: 17px; }
.picker { position: fixed; inset: 0; z-index: 85; background: radial-gradient(70% 45% at 50% 0%, color-mix(in srgb, var(--accent) 20%, #050506), #050506 70%);
  display: grid; align-content: center; gap: 26px; padding: calc(var(--sat) + 24px) var(--gutter) calc(var(--sab) + 24px); animation: fade .3s both; }
.picker-top { display: grid; gap: 4px; } .picker-cards { display: grid; gap: 12px; }
.pcard { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: 26px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-hi); text-align: left; width: 100%; transition: transform .2s var(--spring); }
.pcard:active { transform: scale(.97); } .pcard.cur { border-color: var(--accent); }
.pcard .pavatar { background: var(--accent); color: #0a0a0a; width: 60px; height: 60px; font-size: 34px; }
.pname { display: grid; gap: 2px; min-width: 0; } .pname strong { font: 900 28px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.why { padding: 14px 18px; gap: 8px; } .why summary { cursor: pointer; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; list-style: none; display: flex; justify-content: space-between; }
.why summary::-webkit-details-marker { display: none; } .why summary::after { content: '+'; color: var(--accent); font-size: 22px; } .why[open] summary::after { content: '–'; }
.note-line { font-size: 14px; color: var(--text); background: color-mix(in srgb, var(--accent) 9%, transparent); border-left: 3px solid var(--accent); border-radius: 4px 12px 12px 4px; padding: 8px 12px; }
.hint { font-size: 13.5px; color: var(--accent); font-weight: 600; }
.science { display: grid; gap: 12px; } .science li { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .science li:last-child { border: 0; padding-bottom: 0; } .science p { font-size: 14.5px; }
.mrows { display: grid; gap: 4px; } .mrows li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mlabel { display: grid; gap: 2px; } .delta { font-size: 12.5px; color: var(--muted); font-weight: 600; } .delta.neg, .delta.pos { color: var(--accent); }
.mrows .num i { font: 600 10px var(--body); font-style: normal; color: var(--muted); margin-left: 3px; letter-spacing: .08em; text-transform: uppercase; }
.spark { display: inline-flex; }

/* ───────── fiches technique / vignettes ───────── */
.now-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.now-text { display: grid; gap: 8px; min-width: 0; }
.gthumb { position: relative; padding: 0; overflow: hidden; border-radius: 18px; background: #0a0a0c; border: 1px solid var(--line-hi); flex: none; display: block; transition: transform .2s var(--spring), border-color .2s; }
.gthumb:active { transform: scale(.95); border-color: var(--accent); }
.gthumb.md { width: 136px; height: 100px; }
.gthumb.sm { width: 64px; height: 46px; border-radius: 12px; }
.gthumb.empty { border-style: dashed; background: transparent; opacity: .4; }
.gthumb svg { width: 100%; height: 100%; display: block; }
.gthumb-tag { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 3px; font: 700 9px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: rgba(5, 5, 6, .72); padding: 4px 6px; border-radius: 99px; }
.exrow.has-thumb { grid-template-columns: 30px 64px 1fr auto; }
.exlist.active .exrow { grid-template-columns: 34px 1fr auto; }
.guide { display: grid; gap: 14px; }
.gfig { background: #0a0a0c; border: 1px solid var(--line); border-radius: 24px; padding: 8px; }
.gfig svg { width: 100%; height: auto; display: block; }
.gfig.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .gstill { display: grid; gap: 4px; justify-items: center; }
.gbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .gctl { display: flex; gap: 8px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 14px; } .btn.ghost.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.gsec { display: grid; gap: 8px; }
.gsteps { counter-reset: s; display: grid; gap: 10px; }
.gsteps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.gsteps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 900 16px/1 var(--display); }
.gmist { display: grid; gap: 8px; } .gmist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: var(--muted); } .gmist .ic { color: var(--danger); margin-top: 2px; }
.gnode { min-width: 84px; text-align: center; }
select.txt { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.fig-halo { transition: none; }
