/* VizzBees Studio · LOCK IN. Discipline, focus, silence, execution: one monochrome system, shared by every component.
   Colors: neutral greys only (no blue, violet or warm cast); the brightest white is kept for primary actions and key
   figures. States (error / warning / done) are told by icons, labels and shapes, never by a hue. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/Inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/Inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/InterTight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/InterTight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/JetBrainsMono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/JetBrainsMono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/BarlowCondensed-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/BarlowCondensed-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/BarlowCondensed-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/BarlowCondensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/BarlowCondensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/BarlowCondensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* surfaces */
  --bg: #080808; --bg-2: #0c0c0c; --panel: #111111; --panel-2: #191919; --panel-3: #212121;
  --line: #222222; --line-2: #292929; --line-3: #3a3a3a;
  /* text */
  --text: #f2f2f2; --text-2: #d4d4d4; --muted: #a3a3a3; --faint: #737373; --white: #ffffff; --ink: #080808;
  /* the old accent names now point to white: the one bright thing on a screen is the action / the figure that matters */
  --gold: #f2f2f2; --gold-2: #ffffff; --gold-deep: #f2f2f2; --gold-ink: #f2f2f2; --honey: #f2f2f2;
  --gold-soft: rgba(255, 255, 255, .06); --gold-glow: rgba(255, 255, 255, .10);
  --series: #f2f2f2; --series-2: #8a8a8a; --grid: #1c1c1c;
  /* states: same greys, told apart by icon + label + shape (.tag.err is inverted, .tag.gold outlined, ...) */
  --ok: #d4d4d4; --ok-bg: rgba(255, 255, 255, .05); --warn: #ededed; --warn-bg: rgba(255, 255, 255, .07);
  --err: #ffffff; --err-bg: rgba(255, 255, 255, .10); --blue: #d4d4d4; --blue-bg: rgba(255, 255, 255, .05);
  --side: #0a0a0a; --side-line: #1c1c1c;
  /* depth: discreet */
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .5); --shadow-2: 0 10px 28px -14px rgba(0, 0, 0, .9);
  --shadow-3: 0 28px 70px -24px rgba(0, 0, 0, .95); --inset: inset 0 1px 0 rgba(255, 255, 255, .025);
  /* shape */
  --radius: 10px; --radius-sm: 7px; --radius-lg: 14px; --radius-pill: 999px;
  /* spacing scale (4 px grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-xs: 11.5px; --fs-sm: 12.5px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 28px; --fs-3xl: 40px;
  /* motion: short, opacity and tiny moves; no bounce */
  --ease: cubic-bezier(.2, 0, 0, 1); --spring: cubic-bezier(.2, 0, 0, 1);
  --dur-1: 120ms; --dur-2: 150ms; --dur-3: 180ms;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px #f2f2f2;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); letter-spacing: -.003em; }
body::before { /* honey glow + honeycomb texture, fixed behind everything */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 78% -8%, var(--gold-soft), transparent 70%),
    radial-gradient(700px 420px at -5% 105%, var(--gold-soft), transparent 70%),
    radial-gradient(700px 420px at -5% 105%, transparent, transparent);
}
body::after { /* the honeycomb: only in the band at the top of the page, never behind the numbers */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 420px; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31zM28 63v34M1 16.5 0 16M55 16.5l1-.5' fill='none' stroke='%23909090' stroke-opacity='.09'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000000 0, #000000 120px, transparent 400px); mask-image: linear-gradient(to bottom, #000000 0, #000000 120px, transparent 400px);
}
@keyframes glow-drift { to { background-position: 40px 20px, -30px -10px, 0 0; } }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--gold-glow); }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; } svg.i.lg { width: 22px; height: 22px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; }
h1 { font-size: 30px; line-height: 1.15; margin: 0 0 16px; font-weight: 750; }
h2 { font-size: 17px; margin: 32px 0 12px; font-weight: 700; }
h3 { margin: 0; font-size: 15px; font-weight: 700; }
code { font: 12px ui-monospace, "SF Mono", Menlo, monospace; background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: 13.5px; } .tiny { font-size: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ shell: sidebar + content */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 16px;
  background: var(--side); border-right: 1px solid var(--side-line); backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); z-index: 20; view-transition-name: side; }
.is-desktop .side { padding-top: 46px; }
.side-drag { position: absolute; inset: 0 0 auto; height: 40px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; text-decoration: none; }
.brand .logo { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 10px var(--gold-glow)); transition: transform .6s var(--spring); }
.brand:hover .logo { transform: rotate(60deg) scale(1.05); }
.brand b { display: block; font: 800 17px/1.1 var(--font-display); letter-spacing: -.02em; }
.brand small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 11px; color: var(--muted);
  font-weight: 600; text-decoration: none; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.on { color: var(--text); background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--honey); }
.nav a.on svg.i { color: var(--gold-deep); }
:root[data-theme="dark"] .nav a.on svg.i { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a.on svg.i { color: var(--gold); } }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: var(--gold-soft); color: var(--gold-ink); }
.badge.err { background: var(--err-bg); color: var(--err); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.live { position: relative; overflow: hidden; border-radius: 16px; padding: 13px 14px; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.live::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%); opacity: .6; pointer-events: none; }
.live.paused::after { background: radial-gradient(circle, var(--err-bg), transparent 70%); }
.live-state { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.live.on .live-state { color: var(--ok); } .live.paused .live-state { color: var(--err); } .live.test .live-state { color: var(--warn); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.live.on .dot::after, .dot.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.live-next { margin-top: 9px; font-size: 12px; color: var(--muted); }
.live-count { font: 750 17px/1.2 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.live form { margin-top: 10px; }
.theme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.theme button { display: grid; place-items: center; height: 28px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: all .2s; }
.theme button:hover { color: var(--text); }
.theme button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow-1); }
.content { min-width: 0; position: relative; }
.topdrag { display: none; }
.is-desktop .topdrag { display: block; position: fixed; top: 0; left: 248px; right: 0; height: 30px; z-index: 15; }
main { max-width: 1240px; margin: 0 auto; padding: 34px 36px 80px; view-transition-name: page; }
.is-desktop main { padding-top: 44px; }
main.bare { max-width: none; padding: 0; }

/* ------------------------------------------------------------------ page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 4px 0 6px; }
.page-head .lead { margin: 0; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-head .lead .dot { color: var(--ok); }
.page-head .lead .dot.off { color: var(--faint); } .page-head .lead .dot.run { color: var(--gold); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 4px; }
.back:hover { color: var(--text); }
.grad-text { background: linear-gradient(100deg, var(--text) 30%, var(--gold-deep) 70%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ cards, grids */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { position: relative; background: var(--panel); border-radius: var(--radius); padding: 18px; min-width: 0;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line), var(--inset); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.card.lift:hover, a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head a { font-size: 13.5px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.section-head a:hover { color: var(--text); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { overflow: hidden; }
.kpi .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi .label .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); flex: none; }
:root[data-theme="dark"] .kpi .label .ic { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kpi .label .ic { color: var(--gold); } }
.kpi .value { font: 750 30px/1.15 var(--font-display); letter-spacing: -.025em; margin: 12px 0 3px; font-variant-numeric: tabular-nums; }
.kpi .value.na { color: var(--faint); }
.kpi .value.text { font-size: 22px; }
.kpi .hero { font-size: 44px; }
.kpi .sub { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 16px; margin-bottom: 16px; }
.next { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px; padding: 18px; overflow: hidden; }
.next::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px 220px at 100% 0%, var(--gold-soft), transparent 70%); }
.next-body { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 4px 0; }
.next .countdown { font: 800 44px/1.05 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.next .countdown small { font-size: .5em; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.next-when { color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.next-hook { font: 700 17px/1.35 var(--font-display); letter-spacing: -.01em; margin: 8px 0 4px; }
.next-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.cover { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000000; border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; isolation: isolate; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease), filter .4s; }
.cover:hover img { transform: scale(1.025); }
.cover .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; background: rgba(0, 0, 0, .18); }
.cover .play span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #151515; background: var(--honey);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transform: scale(.8); transition: transform .4s var(--spring); }
.cover .play svg { fill: currentColor; stroke: none; margin-left: 3px; }
.cover:hover .play, .cover:focus-visible .play { opacity: 1; } .cover:hover .play span { transform: scale(1); }

/* today ring */
.today { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.today .eyebrow { align-self: flex-start; }
.ring { position: relative; width: 156px; height: 156px; margin: 4px 0 2px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--panel-3); }
.ring .bar { stroke: url(#honeyStroke); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; }
.ring-center b { font: 800 44px/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring-center span { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.today-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.today-stats a { text-decoration: none; padding: 9px 6px; border-radius: 12px; background: var(--panel-2); transition: background .2s, transform .2s; }
.today-stats a:hover { background: var(--panel-3); transform: translateY(-1px); }
.today-stats b { display: block; font: 750 17px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.today-stats span { font-size: 12px; color: var(--muted); }
.today-stats .err b { color: var(--err); }

/* filmstrip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 138px; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.strip::-webkit-scrollbar { height: 6px; } .strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 9px; }
.film { scroll-snap-align: start; text-decoration: none; display: block; }
.film .cover { border-radius: 14px; }
.film .cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 22%); }
.film-time { position: absolute; z-index: 2; top: 7px; left: 7px; right: 7px; display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.film-time span { white-space: nowrap; color: #ffffff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 3px 7px; border-radius: 99px; background: rgba(10, 10, 10, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film-time i { font-style: normal; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #bcbcbc; color: #131313; font-size: 12px; font-weight: 900; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.film-hook { font: 650 12px/1.3 var(--font-display); margin-top: 8px; padding: 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.film .play { z-index: 3; }
.film-meta { font-size: 12px; color: var(--muted); margin-top: 3px; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film.making .cover { background: linear-gradient(110deg, var(--panel-2) 30%, var(--panel-3) 50%, var(--panel-2) 70%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; cursor: default; }
.film.making .cover::after { display: none; }
.film.making .cover { display: grid; place-items: center; }
@keyframes shimmer { to { background-position: -150% 0; } }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* list rows (recent posts, etc.) */
.list { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 8px; margin: 0 -8px; border-radius: 13px; text-decoration: none; transition: background .2s; }
.item:hover { background: var(--panel-2); }
.item .cover { border-radius: 9px; box-shadow: none; }
.item .title { font-weight: 650; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item .end { text-align: right; font-size: 12px; color: var(--muted); }
.item .end b { display: block; color: var(--text); font: 750 15px/1.2 var(--font-display); }
.empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 26px 10px; color: var(--muted); font-size: 13.5px; }
.empty .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); color: var(--faint); }

/* ------------------------------------------------------------------ notices (dismissible) */
.notices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); font-size: 13.5px;
  transition: opacity .3s var(--ease), transform .35s var(--ease), max-height .4s var(--ease), margin .4s var(--ease), padding .4s var(--ease);
  max-height: 120px; overflow: hidden; }
.notice .n-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.notice.err .n-ic { background: var(--err-bg); color: var(--err); } .notice.warn .n-ic { background: var(--warn-bg); color: var(--warn); }
.notice.info .n-ic { background: var(--blue-bg); color: var(--blue); } .notice.ok .n-ic { background: var(--ok-bg); color: var(--ok); }
.notice .n-link { font-size: 13.5px; font-weight: 700; color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 9px; white-space: nowrap; }
.notice .n-link:hover { background: var(--panel-2); }
.notice .n-x { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--faint); cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.notice .n-x:hover { background: var(--panel-2); color: var(--text); transform: rotate(90deg); }
.notice.gone { opacity: 0; transform: translateX(24px) scale(.98); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; }
.notices-foot { display: flex; justify-content: flex-end; }
.link-btn { border: 0; background: none; color: var(--muted); font: 600 12px var(--font); cursor: pointer; padding: 2px 4px; }
.link-btn:hover { color: var(--text); text-decoration: underline; }

/* inline alerts inside pages */
.alert { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 13px; margin-bottom: 8px; font-size: 13.5px; }
.alert.warn { background: var(--warn-bg); color: var(--warn); } .alert.err { background: var(--err-bg); color: var(--err); }
.alert.info { background: var(--blue-bg); color: var(--blue); }
.alert a { font-weight: 700; white-space: nowrap; }

/* toasts (flash messages) */
.toasts { position: fixed; z-index: 60; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 15px; background: var(--panel); color: var(--text);
  box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line-2); font-size: 13.5px; animation: toast-in .5s var(--spring) both; }
.toast .t-ic { color: var(--ok); margin-top: 1px; } .toast.error .t-ic { color: var(--err); }
.toast button { margin-left: auto; border: 0; background: none; color: var(--faint); cursor: pointer; padding: 0 2px; }
.toast.out { animation: toast-out .35s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
.flash { padding: 11px 14px; border-radius: 13px; margin-bottom: 12px; background: var(--blue-bg); color: var(--blue); }
.flash.error { background: var(--err-bg); color: var(--err); }

/* ------------------------------------------------------------------ tags, buttons, chips */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px;
  background: var(--panel-2); color: var(--muted); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.tag.gold { background: var(--gold-soft); color: var(--gold-ink); box-shadow: none; } .tag.ok { background: var(--ok-bg); color: var(--ok); box-shadow: none; }
.tag.err { background: var(--err-bg); color: var(--err); box-shadow: none; } .tag.blue { background: var(--blue-bg); color: var(--blue); box-shadow: none; }
.tag .dot { width: 6px; height: 6px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font: 650 13.5px/1 var(--font);
  padding: 10px 15px; border-radius: 12px; background: var(--panel); color: var(--text); border: 0; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); transition: transform .2s var(--ease), box-shadow .2s, background .2s; overflow: hidden; }
.btn:hover { background: var(--panel-2); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.gold { background: var(--honey); color: #151515; box-shadow: 0 6px 18px -6px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(107, 107, 107, .25); }
.btn.gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn.gold:hover::after { transform: translateX(120%); }
.btn.gold:hover { box-shadow: 0 10px 26px -8px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(107, 107, 107, .25); }
.btn.danger { color: var(--err); }
.btn.danger:hover { background: var(--err-bg); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.sm { padding: 7px 11px; font-size: 12px; border-radius: 10px; }
.btn.w100 { width: 100%; }
.btn svg.i { width: 15px; height: 15px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chips .btn.sm { box-shadow: none; background: transparent; color: var(--muted); }
.chips .btn.sm:hover { background: var(--panel-2); color: var(--text); transform: none; }
.chips .btn.sm.gold { background: var(--panel); color: var(--text); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.chips .btn.sm.gold::after { display: none; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
form.inline { display: inline; }

/* ------------------------------------------------------------------ forms */
input, select, textarea { font: inherit; font-size: 13.5px; color: var(--text); background: var(--panel-2); border: 0; border-radius: 11px; padding: 9px 12px; width: 100%;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
input:focus, select:focus, textarea:focus { outline: 0; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 4px var(--gold-soft); }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--gold); box-shadow: none; padding: 0; }
input[type="file"] { padding: 8px; font-size: 13.5px; }
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
label { display: block; font-weight: 650; font-size: 13.5px; margin: 14px 0 6px; color: var(--text-2); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 8px 0; color: var(--text); font-size: 13.5px; }
label.check input { width: 17px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; }

/* ------------------------------------------------------------------ tables */
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr, table tr { transition: background .15s; }
table tr:hover td { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
th { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }

/* ------------------------------------------------------------------ videos grid */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 18px 16px; }
.vtile { display: flex; flex-direction: column; gap: 10px; }
.vtile .cover { border-radius: 16px; }
.vtile .cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 26%, transparent 60%, rgba(0, 0, 0, .7)); }
.vtile .v-top { position: absolute; z-index: 2; top: 9px; left: 9px; right: 9px; display: flex; gap: 5px; flex-wrap: wrap; }
.vtile .v-top .tag { background: rgba(10, 10, 10, .62); color: #ffffff; box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vtile .v-top .tag.ok { background: rgba(112, 112, 112, .85); } .vtile .v-top .tag.err { background: rgba(104, 104, 104, .88); }
.vtile .v-top .tag.gold { background: rgba(190, 190, 190, .92); color: #151515; } .vtile .v-top .tag.blue { background: rgba(103, 103, 103, .85); }
.vtile .v-views { position: absolute; z-index: 2; left: 10px; bottom: 9px; color: #ffffff; font-weight: 800; font-size: 12px; display: flex; gap: 5px; align-items: center; }
.vtile .v-hook { font: 700 13.5px/1.35 var(--font-display); letter-spacing: -.01em; }
.vtile .v-meta { font-size: 12px; color: var(--muted); }
.vtile .v-err { font-size: 12px; color: var(--err); }
.vtile .v-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.vtile .cover.nocover { display: grid; place-items: center; background: var(--panel-2); color: var(--faint); cursor: default; }

/* legacy video rows still used on a few pages */
.thumbrow { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.thumbrow img { width: 64px; height: 114px; object-fit: cover; border-radius: 10px; background: #000000; cursor: pointer; }
.vcard { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.vcard img { width: 96px; height: 170px; object-fit: cover; border-radius: 12px; background: #000000; cursor: pointer; }
.hook { font-weight: 700; }

/* ------------------------------------------------------------------ resources, accounts */
.asset { display: block; text-decoration: none; }
.asset img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #000000; display: block; transition: transform .6s var(--ease); }
.asset .imgwrap { overflow: hidden; border-radius: 12px; }
.asset:hover img { transform: scale(1.05); }
.asset.off img { opacity: .35; filter: grayscale(1); }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--gold); }
.avatar.none { display: grid; place-items: center; color: var(--faint); box-shadow: 0 0 0 1px var(--line-2); }
.acct-head { display: flex; gap: 12px; align-items: center; }
.meter { height: 7px; border-radius: 9px; background: var(--panel-3); overflow: hidden; margin: 8px 0 4px; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--honey); transform-origin: left; animation: meter 1.2s var(--ease) both; }
@keyframes meter { from { transform: scaleX(0); } }
.pill-list { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ charts */
.chart { position: relative; width: 100%; margin-top: 6px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar-mark { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-grow .9s var(--ease) both; animation-delay: calc(var(--i) * 45ms); transition: opacity .2s; }
.chart.hovering .bar-mark { opacity: .38; } .chart.hovering .bar-mark.hot { opacity: 1; }
@keyframes bar-grow { from { transform: scaleY(0); } }
.chart .line-mark { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s var(--ease) forwards; }
.chart .area-mark { animation: fade 1.2s .4s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
.chart .tip { position: absolute; z-index: 5; pointer-events: none; background: var(--panel); border-radius: 12px; padding: 8px 11px; font-size: 12px; color: var(--muted);
  box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line-2); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); transition: left .12s var(--ease), top .12s var(--ease); }
.chart .tip b { display: block; font: 750 15px/1.3 var(--font-display); color: var(--text); }
details summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 10px; list-style: none; display: inline-flex; align-items: center; gap: 5px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸"; transition: transform .2s; display: inline-block; }
details[open] summary::before { transform: rotate(90deg); }
details table { margin-top: 6px; font-size: 13.5px; }

/* ------------------------------------------------------------------ misc */
.qa li { margin: 4px 0; list-style: none; } .qa { padding: 0; margin: 8px 0 0; }
dialog { background: transparent; border: 0; padding: 0; max-width: none; max-height: none; overflow: visible; }
dialog::backdrop { background: rgba(5, 5, 5, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
dialog[open] { animation: pop .45s var(--spring); } dialog[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }
dialog video { display: block; max-height: 86vh; max-width: 92vw; border-radius: 22px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); }
dialog .close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-2); }
.report ul { margin: 6px 0; padding-left: 18px; } .report li { margin: 3px 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); vertical-align: middle; }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); } .status-dot.run { background: var(--gold); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.focus-pts { display: grid; grid-template-columns: 1fr 70px 70px 70px; gap: 6px; align-items: center; }
.detail { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); align-items: start; }
.stat-row { display: flex; gap: 18px; flex-wrap: wrap; }
.stat-row div b { display: block; font: 750 22px/1.2 var(--font-display); }
.stat-row div span { font-size: 12px; color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ------------------------------------------------------------------ login */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); padding: 34px 30px 30px; text-align: center; border-radius: 26px; box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); }
.auth-card .logo { width: 68px; height: 68px; margin: 0 auto 14px; display: block; filter: drop-shadow(0 10px 24px var(--gold-glow)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(4deg); } }
.auth-card h1 { margin: 0 0 4px; font-size: 30px; }
.auth-card form { text-align: left; margin-top: 18px; }
.auth-card .btn { width: 100%; margin-top: 16px; padding: 12px; }

/* ------------------------------------------------------------------ motion: page entrance + view transitions */
.reveal { animation: rise .32s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@view-transition { navigation: auto; }
::view-transition-old(page) { animation: .1s ease both vt-out; }
::view-transition-new(page) { animation: .2s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .chart .line-mark { stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: sticky; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--side-line); }
  .is-desktop .side { padding-top: 34px; }
  .brand { padding: 0; } .brand .logo { width: 28px; height: 28px; } .brand small { display: none; }
  .nav { order: 3; flex: 1 0 100%; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; margin: 0 -4px; padding: 2px 4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 11px; white-space: nowrap; gap: 7px; font-size: 13.5px; }
  .nav a.on::before { display: none; }
  .nav a svg.i { width: 16px; height: 16px; }
  .badge { margin-left: 2px; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .live { padding: 6px 11px; border-radius: 99px; } .live::after, .live-next, .live-count, .live form { display: none; }
  .theme { display: none; }
  .is-desktop .topdrag { left: 0; }
  main { padding: 22px 16px 70px; } .is-desktop main { padding-top: 22px; }
  h1 { font-size: 22px; }
  .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .kpis, .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .value { font-size: 22px; } .kpi .hero { font-size: 30px; }
  .next { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .next .countdown { font-size: 30px; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .notice { grid-template-columns: auto minmax(0, 1fr) auto; }
  .notice .n-link { display: none; }
  .vcard { grid-template-columns: 80px 1fr; } .vcard img { width: 80px; height: 142px; }
}
@media (max-width: 420px) {
  .next { grid-template-columns: minmax(0, 1fr); }
  .next .cover { width: 140px; }
  .kpis, .kpis.six { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================== v2.1 additions (same honey system) */
[hidden] { display: none !important; }
.content { overflow-x: clip; }
.section-head .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-head .eyebrow + h3 { margin-top: 4px; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); text-decoration: none; font-weight: 600; transition: color .2s; }
.link:hover { color: var(--text); }
.period { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 650;
  color: var(--text-2); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.period svg.i { width: 14px; height: 14px; color: var(--gold-deep); }

/* account line in the page header */
.who-line { display: inline-flex; align-items: center; gap: 8px; }
.avatar.xs { width: 22px; height: 22px; box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--gold); }
.avatar.xs.none { font-size: 12px; font-weight: 800; color: #151515; background: var(--honey); }

/* today: one tile per slot, in time order */
.day-card { margin-bottom: 16px; }
.segbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; height: 8px; margin: 2px 0 18px; }
.segbar span { border-radius: 99px; background: var(--panel-3); position: relative; overflow: hidden; }
.segbar span.done { background: var(--honey); transform-origin: left; animation: seg-in .8s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.segbar span.fail { background: var(--err); }
.segbar span.live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: sweep 1.4s linear infinite; }
@keyframes seg-in { from { transform: scaleX(0); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.slot { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.slot .cover { border-radius: 14px; }
.slot.is-next .cover { box-shadow: 0 0 0 3px var(--gold), 0 14px 34px -14px rgba(0, 0, 0, .55); }
.slot.later .cover img { filter: saturate(.75) brightness(.9); }
.slot.later .cover:hover img { filter: none; }
.slot-time { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.slot-time b { font: 750 17px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.slot-time small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot .tag { align-self: flex-start; text-decoration: none; }

/* is everything working */
.verdict { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.verdict .big { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.verdict.ok .big { background: var(--ok-bg); color: var(--ok); } .verdict.warn .big { background: var(--warn-bg); color: var(--warn); }
.verdict.err .big { background: var(--err-bg); color: var(--err); }
.verdict b { display: block; font: 750 17px/1.2 var(--font-display); letter-spacing: -.02em; }
.verdict span { font-size: 12px; color: var(--muted); }
.checks { display: flex; flex-direction: column; }
.check { display: grid; grid-template-columns: 22px 128px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 9px 8px; margin: 0 -8px;
  border-radius: 11px; text-decoration: none; font-size: 13.5px; transition: background .2s; }
.check + .check { box-shadow: 0 -1px 0 var(--line); }
.check:hover { background: var(--panel-2); }
.check .ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.check .ck svg { width: 12px; height: 12px; stroke-width: 3; }
.check.ok .ck { background: var(--ok-bg); color: var(--ok); } .check.warn .ck { background: var(--warn-bg); color: var(--warn); }
.check.err .ck { background: var(--err-bg); color: var(--err); }
.check b { font-weight: 650; }
.check span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check.err span, .check.warn span { color: var(--text-2); }
.check .chev { color: var(--faint); transition: transform .2s, color .2s; }
.check:hover .chev { color: var(--text); transform: translateX(2px); }

/* recent performance */
.perf-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.perf-kpis > div { padding: 12px 14px; border-radius: 14px; background: var(--panel-2); }
.perf-kpis span { display: block; font-size: 12px; color: var(--muted); }
.perf-kpis b { display: block; font: 750 22px/1.2 var(--font-display); letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.perf-kpis b.na { color: var(--faint); }
.top-video { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 14px; background: var(--gold-soft); }
.top-video .title { font-weight: 650; font-size: 13.5px; line-height: 1.35; }
.top-video .meta { font-size: 12px; color: var(--muted); }
.top-video .end b { font: 750 17px/1 var(--font-display); }
.cover.sm { border-radius: 9px; box-shadow: none; }
.cover.sm .play span { width: 28px; height: 28px; } .cover.sm .play svg { width: 13px; height: 13px; }
.cover.nocover { display: grid; place-items: center; background: var(--panel-2); cursor: default; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }

@media (max-width: 1180px) { .slots { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
@media (max-width: 900px) {
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .check { grid-template-columns: 22px minmax(0, 1fr) 16px; } .check span { grid-column: 2; white-space: normal; }
  .perf-kpis b { font-size: 22px; }
}
.tag svg.i { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ key indicators (TikTok Studio style) */
.ktiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kb.compact .ktiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ktile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; padding: 12px 14px 11px;
  border: 0; border-radius: 14px; background: var(--panel-2); color: var(--text); font: inherit; box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, box-shadow .25s, transform .25s var(--ease); }
.ktile:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.ktile.on { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold), 0 6px 18px -10px var(--gold-glow); }
.ktile .k-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.ktile .k-val { font: 750 30px/1.15 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 2px 0 1px; }
.kb.compact .ktile .k-val { font-size: 22px; }
.k-delta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-delta svg.i { width: 14px; height: 14px; stroke: none; }
.k-delta em { font-style: normal; font-weight: 500; opacity: .8; }
.k-delta.up { color: var(--ok); } .k-delta.down { color: var(--err); } .k-delta.flat, .k-delta.new { color: var(--muted); font-weight: 600; }
.kchart { margin-top: 16px; }
.kchart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.k-big b { font: 800 30px/1.05 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kb.compact .k-big b { font-size: 30px; }
.k-big span { font-size: 15px; font-weight: 650; color: var(--text-2); }
.k-big small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.seg.mini { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg.mini button { border: 0; background: transparent; color: var(--muted); font: 650 12px var(--font); padding: 6px 11px; border-radius: 8px; cursor: pointer; transition: all .2s; }
.seg.mini button:hover { color: var(--text); }
.seg.mini button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow-1); }
.chart .pt-mark { transform-box: fill-box; transform-origin: center; animation: pt-pop .5s var(--spring) both; animation-delay: calc(var(--i) * 60ms + 500ms); }
@keyframes pt-pop { from { transform: scale(0); } }
@media (max-width: 900px) { .ktiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ktile .k-val { font-size: 22px; } }

.chart .tip.left { transform: translate(calc(-100% + 16px), calc(-100% - 12px)); }

/* ------------------------------------------------------------------ what works: effect bars (diverging around ×1, log scale ×1/3 … ×3) */
.effects { display: flex; flex-direction: column; }
.dims { grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); }
.eff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 110px) 46px 96px; align-items: center; gap: 12px; padding: 9px 0; font-size: 13.5px; }
.eff-main { min-width: 0; }
.eff-label { font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eff-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.eff .tag { justify-self: end; }
.eff-bar { position: relative; height: 10px; border-radius: 99px; background: var(--panel-2); }
.eff-bar i { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--line-2); }
.eff-bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; width: calc(var(--x) * 50%); animation: meter 1s var(--ease) both; }
.eff-bar span.pos { left: 50%; background: var(--ok); transform-origin: left; }
.eff-bar span.neg { right: 50%; background: var(--err); transform-origin: right; }
.eff-num { font: 750 13.5px/1 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 900px) { .dims { grid-template-columns: minmax(0, 1fr); } .eff { grid-template-columns: minmax(0, 1fr) 64px 42px; row-gap: 6px; } .eff .tag { grid-column: 1; grid-row: 2; justify-self: start; } }

.insights { display: flex; flex-direction: column; }
.insight { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 13.5px; line-height: 1.45; }
.insight + .insight { box-shadow: 0 -1px 0 var(--line); }
.insight .ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: -1px; }
.insight .ck svg { width: 12px; height: 12px; stroke-width: 3; }
.insight.ok .ck { background: var(--ok-bg); color: var(--ok); } .insight.err .ck { background: var(--err-bg); color: var(--err); }
.insight.warn .ck { background: var(--warn-bg); color: var(--warn); }

/* ------------------------------------------------------------------ live refresh */
.soft .reveal, .soft .chart .bar-mark, .soft .chart .area-mark, .soft .chart .pt-mark, .soft .segbar span,
.soft .meter span, .soft .eff-bar span { animation: none !important; }
.soft .chart .line-mark { animation: none !important; stroke-dashoffset: 0; }
.bumped { animation: bumped 1.6s var(--ease); }
@keyframes bumped { 0% { box-shadow: 0 0 0 0 var(--gold-glow); } 25% { box-shadow: 0 0 0 4px var(--gold-glow); } 100% { box-shadow: 0 0 0 0 transparent; } }
.live-sync { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.live-sync b { color: var(--text-2); font-weight: 650; }
.sync-btn { width: 26px; height: 26px; border: 0; border-radius: 8px; background: var(--panel-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.sync-btn:hover { color: var(--text); background: var(--panel-3); }
[data-refresh].spinning svg.i { animation: spin .9s linear infinite; }
[data-refresh].spinning { pointer-events: none; opacity: .75; }
.link.link-btn { padding: 0; background: none; border: 0; cursor: pointer; font: 600 13.5px var(--font); }
@media (max-width: 900px) { .live-sync { display: none; } }

/* ================================================================== life: intro, ambient motion, spotlight, tilt, glider, bursts */
@property --spot { syntax: '<color>'; inherits: false; initial-value: rgba(0, 0, 0, 0); }
@property --hole { syntax: '<length>'; inherits: false; initial-value: 0px; }

/* ---- opening: the logo draws itself, then the studio opens through a widening circle */
.intro { display: none; }
.intro-play .intro { display: grid; position: fixed; inset: 0; z-index: 100; place-items: center; cursor: pointer;
  background: radial-gradient(55% 42% at 50% 50%, rgba(190, 190, 190, .22), transparent 70%), #0c0c0c;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000000 calc(var(--hole) + 1px)); }
.intro-out .intro { animation: intro-hole .55s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes intro-hole { to { --hole: 160vmax; } }
.intro-stage { position: relative; display: grid; justify-items: center; gap: 18px; }
.intro-out .intro-stage { animation: stage-out .55s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes stage-out { to { transform: scale(1.6); opacity: 0; filter: blur(4px); } }
.intro-logo { width: 136px; height: 136px; overflow: visible; filter: drop-shadow(0 0 34px rgba(190, 190, 190, .5)); }
.intro-logo .hx-outline { stroke-dasharray: 330; stroke-dashoffset: 330; animation: hx-draw .75s cubic-bezier(.6, 0, .2, 1) .1s forwards; }
.intro-logo .hx-fill { opacity: 0; transform-origin: 60px 60px; animation: hx-fill .55s var(--spring) .6s forwards; }
.intro-logo .hx-inner { transform-origin: 60px 60px; transform: scale(0); animation: hx-pop .45s var(--spring) .8s forwards; }
.intro-logo .hx-play { transform-origin: 63px 60px; transform: scale(0) rotate(-120deg); animation: hx-play .55s var(--spring) .95s forwards; }
@keyframes hx-draw { to { stroke-dashoffset: 0; } }
@keyframes hx-fill { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes hx-pop { to { transform: scale(1); } }
@keyframes hx-play { to { transform: scale(1) rotate(0); } }
.intro-word { display: flex; align-items: baseline; gap: 12px; font: 800 30px/1 var(--font-display); color: #f1f1f1; letter-spacing: -.02em; }
.intro-word .w { display: inline-flex; }
.intro-word .w span { display: inline-block; opacity: 0; transform: translateY(16px) scale(.9); animation: letter .55s var(--spring) forwards; animation-delay: calc(1.02s + var(--i) * 45ms); }
.intro-word .w.gold span { color: #bebebe; }
@keyframes letter { to { opacity: 1; transform: none; } }
.intro-sub { font: 700 12px var(--font); letter-spacing: .34em; text-transform: uppercase; color: rgba(241, 241, 241, .55); opacity: 0; animation: fade-in .6s ease 1.4s forwards; }
@keyframes fade-in { to { opacity: 1; } }
.intro-sparks i { position: absolute; left: 50%; top: 68px; width: 11px; height: 12px; background: #bebebe; opacity: 0;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); animation: spark 1.2s cubic-bezier(.2, .8, .2, 1) .98s forwards; }
.intro-sparks i:nth-child(3n) { background: #e2e2e2; width: 7px; height: 8px; }
.intro-sparks i:nth-child(4n) { background: #f6f6f6; width: 5px; height: 6px; }
@keyframes spark { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r)) scale(1); } }
.intro-quick .intro-logo *, .intro-quick .intro-word .w span, .intro-quick .intro-sub { animation-duration: 1ms !important; animation-delay: 0s !important; }
.intro-quick .intro-sparks { display: none; }
.intro-play .reveal { animation-delay: calc(820ms + var(--d, 0) * 1ms); }
.intro-quick .reveal { animation-delay: calc(200ms + var(--d, 0) * 1ms); }

/* ---- ambient motion: drifting honey light + hexagons rising slowly */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; width: 48vmax; height: 48vmax; border-radius: 50%; opacity: .55;
  background: radial-gradient(circle, var(--gold-glow), transparent 65%); animation: orb 28s ease-in-out infinite alternate; will-change: transform; }
.ambient i:nth-child(1) { left: -12vmax; top: -14vmax; }
.ambient i:nth-child(2) { right: -16vmax; top: 18vh; animation-duration: 34s; animation-delay: -9s; opacity: .35; }
.ambient i:nth-child(3) { left: 28vw; bottom: -24vmax; animation-duration: 40s; animation-delay: -17s; opacity: .3; }
@keyframes orb { 33% { transform: translate(6vmax, 4vmax) scale(1.08); } 66% { transform: translate(-4vmax, 7vmax) scale(.94); } 100% { transform: translate(3vmax, -5vmax) scale(1.05); } }
.ambient b { position: absolute; bottom: -90px; left: var(--x); width: var(--s); height: calc(var(--s) * 1.15); opacity: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 46'%3E%3Cpath d='M20 2 38 12.5v21L20 44 2 33.5v-21z' fill='none' stroke='%23aeaeae' stroke-width='2'/%3E%3C/svg%3E");
  animation: hexfloat var(--t) linear infinite; animation-delay: var(--dl); will-change: transform; }
@keyframes hexfloat { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: var(--o, .35); } 85% { opacity: calc(var(--o, .35) * .6); }
  100% { transform: translateY(-118vh) rotate(var(--rot)); opacity: 0; } }

/* ---- a honey spotlight follows the cursor on cards */
.card { background-image: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 46%);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), --spot .45s ease; }
.card:hover { --spot: rgba(190, 190, 190, .10); }

/* ---- thumbnails tilt in 3D with a moving glare */
.cover { transform-style: preserve-3d; will-change: transform; }
.cover.tilting { transition: transform .12s ease-out; }
.cover .play { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 25%), rgba(255, 255, 255, .32), transparent 46%), rgba(0, 0, 0, .14); }
.next .cover::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%); transform: translateX(-130%);
  animation: cover-shine 7s ease-in-out 3s infinite; }
@keyframes cover-shine { 0%, 72% { transform: translateX(-130%); } 88%, 100% { transform: translateX(130%); } }

/* ---- sidebar: the highlight glides between items */
.nav { position: relative; }
.nav a { z-index: 1; }
.nav-glider { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 11px; pointer-events: none; opacity: 0;
  background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: transform .5s var(--spring), width .5s var(--spring), height .5s var(--spring), opacity .3s; }
.has-glider .nav a.on, .has-glider .nav a:hover { background: transparent; box-shadow: none; }
.has-glider .nav a:hover:not(.on) { color: var(--text); }

/* ---- page-to-page progress bar */
.nprog { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120; pointer-events: none; background: var(--honey);
  box-shadow: 0 0 14px var(--gold-glow); border-radius: 0 3px 3px 0; transition: width 1.2s cubic-bezier(.1, .7, .2, 1), opacity .2s; }
.nprog.go { width: 86%; }

/* ---- small living details */
.grad-text { background-size: 230% 100%; animation: text-shine 7s ease-in-out infinite alternate; }
@keyframes text-shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.ring .bar { filter: drop-shadow(0 0 7px var(--gold-glow)); }
.countdown .dg, .live-count .dg { display: inline-block; }
.dg.flip { animation: flip .5s var(--spring); }
@keyframes flip { from { transform: translateY(-45%) scale(.96); opacity: 0; filter: blur(2px); } }
.reveal.later { animation: none; opacity: 0; transform: translateY(10px); }
.brand .logo { animation: logo-breathe 5s ease-in-out infinite; }
@keyframes logo-breathe { 50% { filter: drop-shadow(0 4px 16px var(--gold-glow)); } }

/* ---- celebration: a burst of honey hexagons */
.burst { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 95; }
.burst i { position: absolute; width: var(--w); height: calc(var(--w) * 1.15); background: var(--c); opacity: 0;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); animation: burst 1.5s cubic-bezier(.15, .7, .3, 1) forwards; animation-delay: var(--dl); }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); }
  55% { opacity: 1; transform: translate(calc(-50% + var(--tx) * .8), calc(-50% + var(--ty1))) rotate(calc(var(--r) * .6)) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty2))) rotate(var(--r)) scale(.8); } }

@media (prefers-reduced-motion: reduce) {
  .ambient, .intro { display: none !important; }
  .reveal.later { opacity: 1; transform: none; }
}

.intro-done .reveal { animation-delay: calc(var(--d, 0) * 1ms); }

.preload *, .preload *::before, .preload *::after { transition: none !important; }

/* ------------------------------------------------------------------ Atelier: the production line, live */
.live-shop { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: center; overflow: hidden; }
.live-shop::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px 240px at 0% 50%, var(--gold-soft), transparent 70%); }
.shop-frame { position: relative; cursor: default; display: grid; place-items: center; background: #0c0c0c; }
.shop-frame img { width: 100%; height: 100%; object-fit: cover; animation: fade .4s ease; }
.shop-frame.busy { box-shadow: 0 0 0 3px var(--gold), 0 0 40px var(--gold-glow), 0 14px 34px -14px rgba(0, 0, 0, .55); animation: shop-glow 2.4s ease-in-out infinite; }
@keyframes shop-glow { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 70px var(--gold-glow), 0 14px 34px -14px rgba(0, 0, 0, .55); } }
.shop-wait { position: absolute; inset: 0; display: grid; place-items: center; }
.shop-rec { position: absolute; top: 9px; left: 9px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 99px;
  background: rgba(10, 10, 10, .7); color: #ffffff; font-size: 12px; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(6px); }
.shop-rec i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e8e; animation: blink 1s infinite; }
.shop-body { position: relative; min-width: 0; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 10px; padding: 0; counter-reset: st; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--faint); text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--line-2); }
.stepper li:first-child::before { display: none; }
.stepper .st-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-2); transition: all .35s var(--spring); position: relative; z-index: 1; }
.stepper .st-dot svg.i { width: 14px; height: 14px; stroke-width: 3; }
.stepper li.done { color: var(--text-2); } .stepper li.done::before { background: var(--gold); }
.stepper li.done .st-dot { background: var(--honey); color: #151515; box-shadow: none; }
.stepper li.active { color: var(--text); } .stepper li.active::before { background: linear-gradient(90deg, var(--gold), var(--line-2)); }
.stepper li.active .st-dot { background: var(--panel); box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 6px var(--gold-soft); animation: dot-pulse 1.2s ease-in-out infinite; }
@keyframes dot-pulse { 50% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 11px transparent; } }
.shop-bar { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin: 6px 0 14px; }
.shop-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--honey); transition: width .8s var(--ease);
  background-size: 200% 100%; animation: bar-flow 1.6s linear infinite; }
@keyframes bar-flow { to { background-position: -200% 0; } }
.shop-weeks { display: flex; flex-direction: column; gap: 4px; }
.fly-in { animation: fly-in .8s var(--spring) both; }
@keyframes fly-in { from { opacity: 0; transform: translateX(-60px) scale(.8) rotate(-6deg); } }
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { background: var(--panel-2); border-radius: 14px; padding: 8px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wday.past { opacity: .55; }
.wday-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 750; text-transform: capitalize; }
.wday-head span { color: var(--muted); font-weight: 600; }
.wpost { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; align-items: center; text-decoration: none; }
.wpost .cover { border-radius: 6px; }
.wtime { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wtime i { font-style: normal; color: var(--muted); } .wtime i.ok { color: var(--ok); }
.wvar { position: absolute; left: 18px; top: -4px; color: var(--gold-deep); }
.wvar svg.i { width: 13px; height: 13px; }
.wempty { color: var(--faint); font-size: 12px; text-align: center; }
@media (max-width: 1100px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .live-shop { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; } .stepper li span:last-child { display: none; } .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Comptes: one card per account, one section per network (1 video → TikTok + Instagram + YouTube) */
.acct2 { padding: 20px 20px 14px; margin-bottom: 18px; }
.acct2-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 18px; align-items: center; }
.acct2-id h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; } .acct2-id h3 a { text-decoration: none; }
.acct2-id .tiny { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct2-today { min-width: 150px; } .acct2-today b { font: 700 17px var(--font-display); letter-spacing: -.01em; }
.acct2-today .meter { margin: 6px 0 4px; }
.acct2-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acct2.paused .acct2-head .avatar { filter: grayscale(.6); }
@media (max-width: 900px) {
  .acct2-head { grid-template-columns: auto minmax(0, 1fr); }
  .acct2-today, .acct2-actions { grid-column: 1 / -1; } .acct2-actions { justify-content: flex-start; }
}

.fanout { position: relative; display: grid; justify-items: center; margin: 16px 0 0; }
.fan-src { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.fan-src .i { width: 15px; height: 15px; color: var(--gold-deep); }
.fan-src b { color: var(--text); }
.fan-lines { display: block; width: 100%; height: 30px; margin-top: -2px; overflow: visible; }
.fan-lines path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.fan-lines path.dead { stroke: var(--line-2); stroke-dasharray: 2 6; }
.fan-lines path.live { stroke: var(--gold); stroke-dasharray: 5 9; animation: fan-flow 1.1s linear infinite; }
@keyframes fan-flow { to { stroke-dashoffset: -28; } }

.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.fanout + .pf-grid { margin-top: 0; }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } .fan-lines { display: none; } .fanout { margin-bottom: 10px; } }
.pf { --pf: var(--gold); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px;
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; overflow: clip;
  animation: pf-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), opacity .3s; }
.pf::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--pf); opacity: 0; transition: opacity .3s; }
.pf::after { content: ""; position: absolute; width: 160px; height: 160px; right: 0; top: 0; translate: 45% -55%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pf) 16%, transparent), transparent); opacity: 0; transition: opacity .4s; }
.pf.on::before { opacity: .9; } .pf.on::after { opacity: 1; }
.pf:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }
.pf-tiktok { --pf: #9a9a9a; } .pf-instagram { --pf: #777777; } .pf-youtube { --pf: #7a7a7a; }
.pf.off { opacity: .6; } .pf.off:hover { opacity: .85; }
.pf.missing { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-2); }
.pf-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.pf-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--pf);
  background: color-mix(in srgb, var(--pf) 13%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pf) 22%, transparent); }
.pf-ico .i { width: 21px; height: 21px; }
.pf.missing .pf-ico { color: var(--faint); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.pf-name { flex: 1; min-width: 0; } .pf-name b { font-size: 15px; }
.pf-name .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pf-stats div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 11px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.pf-k { font: 700 17px var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; } .pf-l { font-size: 12px; color: var(--muted); }
.pf-studio { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.pf-studio span { display: flex; align-items: center; gap: 7px; } .pf-studio .i { width: 14px; height: 14px; color: var(--muted); flex: none; }
.pf-studio .err, .pf-studio .err .i, .acct2-foot .err { color: var(--err); }
.pf-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.pf.missing .pf-foot { border-top: 0; padding-top: 0; justify-content: flex-start; }
.pf-last { flex: 1; min-width: 0; font-size: 12px; color: var(--text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-last:hover { color: var(--text); text-decoration: underline; }
.pf-open { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.pf-open:hover { color: var(--text); } .pf-open .i, .pf-foot .btn .i { width: 13px; height: 13px; }
.pf-help { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pf-alert { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--warn); background: var(--warn-bg); padding: 6px 9px; border-radius: 9px; }
.pf-alert .i { width: 14px; height: 14px; flex: none; }
.acct2-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.acct2-foot > span { display: inline-flex; align-items: center; gap: 6px; } .acct2-foot .i { width: 13px; height: 13px; }
@keyframes pf-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.switch { position: relative; flex: none; width: 42px; height: 25px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, box-shadow .3s; }
.switch span { position: absolute; top: 3.5px; left: 3.5px; width: 18px; height: 18px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .4s var(--spring); }
.switch.is-on { background: var(--honey); box-shadow: inset 0 0 0 1px rgba(107, 107, 107, .25), 0 4px 12px -4px var(--gold-glow); }
.switch.is-on span { transform: translateX(17px); }
.switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.soft .pf { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .fan-lines path.live { animation: none; } .pf { animation: none; } }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pf-chip { --pf: var(--gold); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 99px; font-size: 12px; font-weight: 600;
  text-decoration: none; color: var(--text-2); background: color-mix(in srgb, var(--pf) 10%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pf) 24%, transparent); }
.pf-chip .i { width: 15px; height: 15px; color: var(--pf); }
.pf-chip.scheduled { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.pf-chip.error { background: var(--err-bg); color: var(--err); box-shadow: none; }
a.pf-chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--pf); }
.pf-chip.pf-tiktok, .pf-btn.pf-tiktok { --pf: #9a9a9a; } .pf-chip.pf-instagram, .pf-btn.pf-instagram { --pf: #777777; } .pf-chip.pf-youtube, .pf-btn.pf-youtube { --pf: #7a7a7a; }
.pf-btn { padding: 6px 8px; } .pf-btn .i { width: 16px; height: 16px; color: var(--pf); }

/* ---- account page: networks with their daily rhythm, then every video to come, day by day */
.pf-rate { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); }
.pf-rate span:first-child { display: inline-flex; align-items: center; gap: 6px; } .pf-rate .i { width: 14px; height: 14px; }
.pf-rate b { font: 700 17px var(--font-display); color: var(--text); }
.nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 22px; }
.net { --pf: var(--gold); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px;
  background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); position: relative; overflow: hidden; overflow: clip; }
.net::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--pf); opacity: 0; transition: opacity .3s; }
.net.on::before { opacity: .9; } .net.off, .net.missing { opacity: .7; }
.net.missing .pf-ico { color: var(--faint); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.net-id { flex: 1; min-width: 0; } .net-id b { font-size: 15px; }
.net-id .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.stepper button { width: 28px; height: 28px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 600 17px/1 var(--font); cursor: pointer; transition: background .2s, transform .2s var(--spring); }
.stepper button:hover:not(:disabled) { background: var(--panel); box-shadow: var(--shadow-1); }
.stepper button:active:not(:disabled) { transform: scale(.9); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper span { min-width: 54px; display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.stepper b { font: 700 17px var(--font-display); font-variant-numeric: tabular-nums; } .stepper small { font-size: 12px; color: var(--muted); }
.stepper b.bump { animation: rate-bump .45s var(--spring); }
@keyframes rate-bump { 40% { transform: scale(1.35); color: var(--gold-deep); } }

.up-day { margin-bottom: 26px; }
.up-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 2px 10px; }
.up-day-head h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; } .up-day-head h2 .muted { font-weight: 600; }
.up-counts { display: flex; gap: 6px; }
.pf-mini { --pf: var(--gold); display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 99px; font-size: 12px; font-weight: 700;
  color: var(--text-2); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.pf-mini .i { width: 14px; height: 14px; color: var(--pf); }
.pf-mini.pf-tiktok { --pf: #9a9a9a; } .pf-mini.pf-instagram { --pf: #777777; } .pf-mini.pf-youtube { --pf: #7a7a7a; }
.up-list { display: grid; gap: 10px; }
.up-item { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 12px 14px 12px 12px;
  border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease); animation: pf-in .6s var(--ease) both; animation-delay: calc(min(var(--i, 0), 10) * 45ms + 100ms); }
.up-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }
.soft .up-item { animation: none !important; }
.up-cover.cover { width: 84px; aspect-ratio: 9 / 16; border-radius: 12px; }
.up-cover .play span { width: 34px; height: 34px; } .up-cover .play .i { width: 16px; height: 16px; }
.up-main { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.up-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.up-time { font: 800 22px var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.up-hook { margin: 0; font-size: 15px; line-height: 1.3; } .up-hook a { text-decoration: none; } .up-hook a:hover { text-decoration: underline; }
.up-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.up-meta span { display: inline-flex; align-items: center; gap: 4px; }
.up-meta span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin-right: 8px; }
.up-meta .var { color: var(--gold-ink); font-weight: 600; } .up-meta .var .i { width: 13px; height: 13px; }
.up-nets { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip.waiting { background: var(--panel-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pf-chip.offline, .pf-chip.skip { background: transparent; color: var(--faint); box-shadow: none; border: 1px dashed var(--line-2); padding: 3px 9px 3px 5px; }
.pf-chip.offline .i, .pf-chip.skip .i { color: var(--faint); }
.pf-chip.published { background: color-mix(in srgb, var(--pf) 14%, var(--panel)); }
.up-more summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.up-more summary::-webkit-details-marker { display: none; }
.up-more summary { margin-top: 0; }
.up-more summary:hover { color: var(--text); }
.up-caption { white-space: pre-line; font-size: 13.5px; color: var(--text-2); margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); }
.up-more ol { margin: 6px 0; padding-left: 18px; color: var(--text-2); }
.up-go { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); text-decoration: none;
  transition: background .2s, color .2s, transform .3s var(--spring); }
.up-go:hover { background: var(--panel-2); color: var(--text); transform: translateX(3px); }
@media (max-width: 640px) { .up-item { grid-template-columns: 64px minmax(0, 1fr); } .up-cover.cover { width: 64px; } .up-go { display: none; } }

/* ---- linking an account's networks (Upload-Post connect page) */
.connect-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; margin: 14px 0 2px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-soft), transparent 70%), var(--panel); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
.cb-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--honey); color: #151515; flex: none;
  box-shadow: 0 6px 16px -6px var(--gold-glow); }
.cb-ic .i { width: 18px; height: 18px; }
.cb-txt { flex: 1; min-width: 220px; } .cb-txt b { font-size: 13.5px; }
.cb-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- per-network stats of a video */
.vstat-total { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; margin: 6px 0 6px; }
.vstat-total div, .vnet-grid div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 11px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.vstat-total b { font: 800 22px var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.vstat-total span, .vnet-grid span { font-size: 12px; color: var(--muted); }
.vnet { --pf: var(--gold); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.vnet.pf-tiktok { --pf: #9a9a9a; } .vnet.pf-instagram { --pf: #777777; } .vnet.pf-youtube { --pf: #7a7a7a; }
.vnet header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .vnet header b { flex: 1; font-size: 15px; }
.vnet .pf-ico { width: 32px; height: 32px; border-radius: 10px; } .vnet .pf-ico .i { width: 18px; height: 18px; }
.vnet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.vnet-grid div { background: var(--panel); }
.vnet-grid b { font: 700 17px var(--font-display); font-variant-numeric: tabular-nums; }
.vnet .chart { margin-top: 10px; }
.vsrc { margin-top: 12px; display: grid; gap: 5px; }
.vsrc-row { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 8px; font-size: 12px; }
.vsrc-row i { height: 8px; border-radius: 9px; background: var(--panel-3); overflow: hidden; }
.vsrc-row s { display: block; height: 100%; border-radius: 9px; background: var(--pf); text-decoration: none; }
.vsrc-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Performances: one tile per network (click = filter the key indicators) */
.nets-perf { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.nperf { --pf: var(--gold); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; text-decoration: none;
  background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); overflow: hidden; overflow: clip;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.nperf::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--pf); opacity: .85; }
.nperf:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }
.nperf.on { box-shadow: var(--shadow-2), inset 0 0 0 2px var(--pf); }
.nperf.pf-tiktok { --pf: #9a9a9a; } .nperf.pf-instagram { --pf: #777777; } .nperf.pf-youtube { --pf: #7a7a7a; }
.nperf header { display: flex; align-items: center; gap: 10px; } .nperf header b { flex: 1; font-size: 15px; }
.nperf .pf-ico { width: 32px; height: 32px; border-radius: 10px; } .nperf .pf-ico .i { width: 18px; height: 18px; }
.nperf-main { display: flex; align-items: baseline; gap: 8px; } .nperf-main b { font: 800 30px var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nperf-main span { font-size: 12px; color: var(--muted); }
.nperf-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.nperf-sub b { color: var(--text); font-variant-numeric: tabular-nums; }
.nperf-sub em { font-style: normal; font-weight: 700; } .nperf-sub em.up { color: var(--ok); } .nperf-sub em.down { color: var(--err); }
.pf-l em { font-style: normal; font-weight: 700; } .pf-l em.up { color: var(--ok); } .pf-l em.down { color: var(--err); }

.net.pf-tiktok { --pf: #9a9a9a; } .net.pf-instagram { --pf: #777777; } .net.pf-youtube { --pf: #7a7a7a; }
@media (display-mode: standalone) { body { padding-top: env(safe-area-inset-top); } }
.phone-url { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px;
  background: var(--gold-soft); } .phone-url b { font: 700 17px var(--font-display); letter-spacing: -.01em; user-select: all; }
.phone-url .tiny { width: 100%; }
.pf-alert.err { color: var(--err); background: var(--err-bg); }
.cb-qr { width: 132px; height: 132px; border-radius: 12px; background: #ffffff; padding: 6px; image-rendering: pixelated; flex: none;
  box-shadow: inset 0 0 0 1px var(--line-2); }
.ig-mode { position: relative; z-index: 1; } .ig-mode select { width: 100%; font-size: 12px; padding: 7px 10px; border-radius: 10px; }
.ig-mode .tiny { margin-top: 4px; }
.hr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.hr-stats div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.hr-stats b { font: 800 22px var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hr-stats span { font-size: 12px; color: var(--muted); }
.fresh-stock { margin-bottom: 14px; } .fresh-stock > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.fresh-stock b[data-count] { font: 800 30px var(--font-display); letter-spacing: -.02em; } .fresh-stock span { color: var(--muted); font-size: 13.5px; }

/* ---- TikTok health / reset routine on the account page */
.tk-health { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin: -6px 0 18px; border-radius: 16px;
  background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.tk-health .pf-ico { --pf: #9a9a9a; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--pf);
  background: color-mix(in srgb, var(--pf) 13%, var(--panel)); flex: none; } .tk-health .pf-ico .i { width: 19px; height: 19px; }
.tk-txt { flex: 1; min-width: 220px; } .tk-txt b { font-size: 13.5px; }
.tk-health.warn { box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--warn); background: linear-gradient(135deg, var(--warn-bg), transparent 70%), var(--panel); }
.tk-health.running { box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--gold); background: linear-gradient(135deg, var(--gold-soft), transparent 70%), var(--panel); }

/* ---- Anti-shadowban page */
.as-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 8px; }
.as-card { padding: 16px; border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.as-card header { display: flex; align-items: center; gap: 12px; } .as-card header > div { flex: 1; min-width: 0; }
.as-card header b { font-size: 15px; }
.as-card.warn { box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--err); background: linear-gradient(135deg, var(--err-bg), transparent 70%), var(--panel); }
.as-card.running { box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--gold); background: linear-gradient(135deg, var(--gold-soft), transparent 70%), var(--panel); }
.as-steps { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.as-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.as-steps li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); flex: none; }
.as-steps li.done { color: var(--text-2); } .as-steps li.done::before { background: var(--ok); box-shadow: none; }
.as-steps li.now { color: var(--text); font-weight: 600; } .as-steps li.now::before { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); animation: blink 1.6s infinite; }
.as-list { display: grid; gap: 10px; }
.as-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px;
  background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.as-cover.cover { width: 64px; aspect-ratio: 9 / 16; border-radius: 10px; }
.tag.err { background: var(--err-bg); color: var(--err); box-shadow: none; }
.as-count { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.as-count b { font: 800 30px var(--font-display); line-height: 1; } .as-count span { font-size: 13.5px; color: var(--text-2); }
.as-count small { font-size: 12px; color: var(--muted); }
.as-lessons { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ------------------------------------------------------------------ Malory, the agent (orange robot) */
:root { --orange: #9a9a9a; --orange-ink: #6e6e6e; --orange-soft: rgba(169, 169, 169, .15); --m-shadow: rgba(31, 31, 31, .16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --orange-ink: #c1c1c1; --orange-soft: rgba(169, 169, 169, .16); --m-shadow: rgba(0, 0, 0, .5); } }
:root[data-theme="dark"] { --orange-ink: #c1c1c1; --orange-soft: rgba(169, 169, 169, .16); --m-shadow: rgba(0, 0, 0, .5); }
.malory { display: block; overflow: visible; }
.malory .m-shadow { fill: var(--m-shadow); transform-box: fill-box; transform-origin: center; animation: m-shadow 3.4s ease-in-out infinite; }
.malory .m-bot { animation: m-float 3.4s ease-in-out infinite; }
.malory .m-eyes { transform-box: fill-box; transform-origin: center; animation: m-blink 5.2s infinite; }
.malory .m-ant-glow { transform-box: fill-box; transform-origin: center; animation: m-glow 2.2s ease-in-out infinite; }
.malory .m-face { filter: drop-shadow(0 0 2.5px rgba(217, 217, 217, .75)); }
.malory .m-arm { transform-box: fill-box; transform-origin: 50% 12%; }
.malory .m-arm-r { animation: m-wave 6s ease-in-out infinite; }
.malory.m-fire .m-bot { animation: m-hop 1.1s ease-in-out infinite; }
.malory.m-fire .m-shadow { animation-duration: 1.1s; }
.malory.m-fire .m-arm-l { animation: m-cheer-l 1.1s ease-in-out infinite; } .malory.m-fire .m-arm-r { animation: m-cheer-r 1.1s ease-in-out infinite; }
.malory.m-happy .m-arm-r { animation-duration: 4s; }
.malory.m-fixing .m-ant-glow { animation-duration: .9s; }
.malory.m-fixing .m-arm-r { animation: m-cheer-r .55s ease-in-out infinite; }
.malory.m-annoyed .m-bot { animation: m-huff 3.4s ease-in-out infinite; }
.malory.m-annoyed .m-arm-r, .malory.m-worried .m-arm-r { animation: none; }
.malory.m-worried .m-bot { animation-duration: 5s; }
.malory.m-sick .m-bot { transform-origin: 60px 118px; animation: m-sway 4.2s ease-in-out infinite; }
.malory.m-sick .m-arm-r, .malory.m-sick .m-arm-l { animation: none; }
.malory.m-sick .m-ant-glow { animation-duration: 3.6s; opacity: .5; }
.malory.m-sick .m-drop { transform-box: fill-box; transform-origin: top; animation: m-drip 2.6s ease-in infinite; }
.malory.m-sick .m-face { filter: drop-shadow(0 0 2px rgba(217, 217, 217, .45)); }
@keyframes m-float { 50% { transform: translateY(-4px); } }
@keyframes m-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(1px); } 52%, 56% { transform: rotate(2.6deg) translateX(.8px); } 54% { transform: rotate(2.6deg) translateX(-.8px); } }
@keyframes m-drip { 0% { transform: translateY(-2px) scale(.7); opacity: 0; } 25% { opacity: 1; transform: none; } 80% { opacity: 1; transform: translateY(9px); } 100% { opacity: 0; transform: translateY(13px); } }
@keyframes m-shadow { 50% { transform: scaleX(.82); opacity: .7; } }
@keyframes m-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes m-glow { 50% { opacity: .35; transform: scale(.75); } }
@keyframes m-wave { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-16deg); } 82% { transform: rotate(4deg); } 88% { transform: rotate(-12deg); } 94% { transform: rotate(0); } }
@keyframes m-hop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-7px); } }
@keyframes m-cheer-l { 50% { transform: rotate(20deg); } }
@keyframes m-cheer-r { 50% { transform: rotate(-20deg); } }
@keyframes m-huff { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -3px); } 78% { transform: translate(0, 0); }
  81% { transform: translate(-1.6px, 0); } 84% { transform: translate(1.6px, 0); } 87% { transform: translate(-1px, 0); } 90% { transform: translate(0, 0); } }

/* the dock: Malory in the corner of every page, his current thought on hover */
.malory-dock { position: fixed; z-index: 55; right: 18px; bottom: 16px; display: flex; align-items: flex-end; gap: 8px; text-decoration: none; color: var(--text); }
.md-bot { position: relative; width: 62px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: var(--panel);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); transition: transform .3s var(--spring); }
.md-bot .malory { width: 50px; height: 52px; }
.md-bot::after { content: ""; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--panel); }
.malory-dock[data-mood="fixing"] .md-bot::after { background: var(--gold); }
.malory-dock[data-mood="annoyed"] .md-bot::after, .malory-dock[data-mood="worried"] .md-bot::after, .malory-dock[data-mood="sick"] .md-bot::after { background: var(--err); }
.malory-dock:hover .md-bot, .malory-dock:focus-visible .md-bot { transform: translateY(-3px) scale(1.04); }
.malory-dock:focus-visible { outline: 0; } .malory-dock:focus-visible .md-bot { box-shadow: var(--shadow-2), 0 0 0 3px var(--gold-glow); }
.md-bubble { max-width: 300px; margin-bottom: 20px; padding: 10px 13px; border-radius: 16px 16px 4px 16px; background: var(--panel); color: var(--text-2);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); font-size: 12px; line-height: 1.42;
  opacity: 0; transform: translateY(6px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.md-bubble b { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); margin-bottom: 2px; }
.md-bubble b i { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--orange-soft); color: var(--orange-ink); }
.md-bubble > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.malory-dock:hover .md-bubble, .malory-dock:focus-visible .md-bubble, .malory-dock.say .md-bubble { opacity: 1; transform: none; }
body:has(.malory-dock) .toasts { bottom: 96px; }
@media (max-width: 900px) { .malory-dock { right: 12px; bottom: 12px; } .md-bot { width: 52px; height: 54px; border-radius: 18px; } .md-bot .malory { width: 42px; height: 44px; }
  .md-bubble { max-width: min(240px, calc(100vw - 96px)); } }

/* the Malory page */
.ml-hero { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(250px, auto); gap: 26px; align-items: center; margin-bottom: 16px;
  padding: 22px 26px; border-radius: 26px; background: radial-gradient(420px 260px at 6% 50%, var(--orange-soft), transparent 70%), var(--panel);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.ml-avatar { width: 170px; height: 176px; display: grid; place-items: center; }
.ml-svg { width: 158px; height: 163px; }
.ml-intro h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; font: 800 30px/1.05 var(--font-display); }
.ml-mood { background: var(--orange-soft); color: var(--orange-ink); box-shadow: none; font-size: 12px; }
.ml-mood .dot { background: currentColor; }
.ml-say { position: relative; max-width: 660px; padding: 12px 16px; border-radius: 4px 18px 18px 18px; background: var(--panel-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.5; }
.ml-motto { margin: 10px 0 4px; color: var(--muted); font-style: italic; font-size: 13.5px; }
.ml-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ml-link { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--gold-ink); font-weight: 650; }
.ml-link:hover { text-decoration: underline; } .ml-link svg.i { width: 13px; height: 13px; }
.ml-stats { display: grid; grid-template-columns: repeat(2, minmax(118px, 1fr)); gap: 10px; }
.ml-stats > div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 16px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.ml-stats b { font: 800 22px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.ml-stats span { font-size: 12px; color: var(--muted); }
.ml-stats small { font-size: 12px; font-weight: 700; } .ml-stats small.up { color: var(--ok); } .ml-stats small.down { color: var(--err); }
.ml-stats .bad { background: var(--err-bg); box-shadow: inset 0 0 0 1.5px var(--err); } .ml-stats .bad b { color: var(--err); }
@media (max-width: 1100px) { .ml-hero { grid-template-columns: 130px minmax(0, 1fr); } .ml-avatar { width: 130px; height: 136px; } .ml-svg { width: 124px; height: 128px; }
  .ml-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ml-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; gap: 14px; } .ml-avatar { width: 104px; height: 108px; }
  .ml-svg { width: 100px; height: 104px; } .ml-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ml-intro h1 { font-size: 30px; } }

.ml-needs { margin-bottom: 16px; padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, var(--orange-soft), transparent 70%), var(--panel);
  box-shadow: var(--shadow-1), inset 0 0 0 1.5px rgba(169, 169, 169, .55); }
.ml-needs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--orange-ink); }
.ml-needs-head b { color: var(--text); font-size: 15px; }
.ml-needs-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ml-need { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 11px 13px; border-radius: 14px;
  background: var(--panel); color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ml-need b { font-size: 13.5px; } .ml-need span { grid-column: 1; font-size: 12px; color: var(--muted); }
.ml-need svg.i { grid-row: 1 / span 2; grid-column: 2; color: var(--muted); }
.ml-need:hover { transform: translateY(-1px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }

.ml-attack { margin-bottom: 16px; padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, var(--err-bg), transparent 70%), var(--panel);
  box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--err); }
.ml-attack .ml-needs-head { color: var(--err); flex-wrap: wrap; }
.ml-leads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ml-leads li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 11px; border-radius: 13px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ml-leads b { display: block; font-size: 13.5px; } .ml-leads span { display: block; font-size: 12px; color: var(--muted); }
.ml-leads .ml-act { color: var(--text-2); } .ml-leads em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); }
.ml-pf { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: var(--panel-2); color: var(--text-2); }
.ml-algo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
@media (max-width: 1000px) { .ml-algo { grid-template-columns: minmax(0, 1fr); } }
.ml-algo-h { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 13.5px; color: var(--muted); } .ml-algo-h b { color: var(--text); font-size: 15px; }
.ml-algo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ml-algo li b { display: block; font-size: 13.5px; } .ml-algo li span { font-size: 12px; color: var(--muted); }
.ml-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1000px) { .ml-grid { grid-template-columns: minmax(0, 1fr); } }
.ml-h { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; } .ml-h svg.i { width: 17px; height: 17px; color: var(--orange); }
.ml-thoughts, .ml-plan, .ml-did { list-style: none; margin: 0; padding: 0; display: grid; }
.ml-thoughts { gap: 11px; }
.ml-thoughts li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; }
.ml-thoughts p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.ml-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--faint); }
.k-good .ml-dot { background: var(--ok); } .k-bad .ml-dot { background: var(--err); } .k-fix .ml-dot { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.ml-plan { gap: 8px; }
.ml-plan li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 13px; background: var(--panel-2); }
.ml-plan li b { display: block; font-size: 13.5px; } .ml-plan li span { font-size: 12px; color: var(--muted); }
.ml-plan em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--panel-3); color: var(--muted); white-space: nowrap; }
.ml-box { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: var(--panel-3); color: var(--muted); }
.ml-box svg.i { width: 14px; height: 14px; }
.st-done .ml-box, .st-done em { background: var(--ok-bg); color: var(--ok); }
.st-doing .ml-box, .st-doing em { background: var(--gold-soft); color: var(--gold-ink); }
.st-blocked .ml-box, .st-blocked em { background: var(--err-bg); color: var(--err); }
.st-you .ml-box, .st-you em { background: var(--orange-soft); color: var(--orange-ink); }
.ml-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 1s linear infinite; }
.ml-did { gap: 10px; }
.ml-did li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--text-2); }
.ml-did svg.i { margin-top: 2px; color: var(--orange); }

.ml-chat { display: flex; flex-direction: column; }
.ml-msgs { display: flex; flex-direction: column; gap: 8px; min-height: 110px; max-height: 300px; overflow-y: auto; padding: 2px 2px 10px; }
.ml-msg { max-width: 88%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; animation: pop .3s var(--ease) both; }
.ml-msg.bot { align-self: flex-start; background: var(--panel-2); color: var(--text); border-bottom-left-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); }
.ml-msg.me { align-self: flex-end; background: var(--honey); color: #151515; border-bottom-right-radius: 5px; }
.ml-msg.typing { color: var(--muted); font-style: italic; }
.ml-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.ml-chips button { font: 600 12px var(--font); padding: 5px 10px; border: 0; border-radius: 99px; cursor: pointer; background: var(--panel-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.ml-chips button:hover { background: var(--gold-soft); color: var(--gold-ink); }
.ml-ask { display: flex; gap: 8px; margin-top: auto; } .ml-ask input { flex: 1; min-width: 0; } .ml-ask .btn { flex: none; }

.ml-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ml-rule { padding: 14px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.ml-rule span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-bottom: 8px; border-radius: 7px; background: var(--orange-soft); color: var(--orange-ink); font: 800 12px var(--font-display); }
.ml-rule b { display: block; margin-bottom: 3px; font-size: 13.5px; } .ml-rule p { margin: 0; font-size: 12px; color: var(--muted); }
.ml-journal { padding: 4px 18px; }
.ml-journal > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ml-journal > div:last-child { border-bottom: 0; }
.ml-journal time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ml-journal p { margin: 0; font-size: 13.5px; color: var(--text-2); }
@media (max-width: 640px) { .ml-journal > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .malory, .malory * { animation: none !important; } }

/* Malory everywhere: his comment at the top of the pages, his eyes follow the pointer, little actions now and then */
.ml-tip { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 0 16px; padding: 6px 14px 6px 6px; border-radius: 18px;
  background: var(--panel); color: var(--text-2); text-decoration: none; font-size: 13.5px; line-height: 1.4;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); animation: tip-in .6s var(--spring) both; transition: box-shadow .25s var(--ease); }
.ml-tip:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }
.ml-tip-bot { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--orange-soft); }
.ml-tip[data-mood="sick"] .ml-tip-bot, .ml-tip[data-mood="annoyed"] .ml-tip-bot, .ml-tip[data-mood="worried"] .ml-tip-bot { background: var(--err-bg); }
.ml-tip-svg { width: 34px; height: 35px; }
.ml-tip-say { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ml-tip-say b { margin-right: 4px; color: var(--orange-ink); font-weight: 750; }
.ml-tip-say.typing::after { content: ""; display: inline-block; width: 6px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--orange); animation: blink .8s steps(1) infinite; }
@keyframes tip-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.malory .m-face { transition: transform .3s var(--ease); }
.malory.act-wave .m-arm-r { animation: m-wave-now 1.4s ease-in-out; }
.malory.act-hop .m-bot { animation: m-hop .5s ease-in-out 2; }
.malory.act-look .m-eyes { animation: m-look 1.6s ease-in-out; }
.malory.act-beep .m-ant-glow, .malory.busy .m-ant-glow { animation: m-glow .32s ease-in-out infinite; }
.malory.busy .m-eyes { animation: m-look 1s ease-in-out infinite; }
.malory.busy .m-arm-r { animation: m-cheer-r .5s ease-in-out infinite; }
@keyframes m-wave-now { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-38deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(-38deg); } 80% { transform: rotate(-10deg); } }
@keyframes m-look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3.5px); } 70% { transform: translateX(3.5px); } }
.malory-dock.enter .md-bot { animation: md-in .8s var(--spring) both; }
@keyframes md-in { from { opacity: 0; transform: translateY(90px) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .ml-tip, .malory-dock.enter .md-bot { animation: none; } .malory .m-face { transition: none; } }

.ml-savoir { display: grid; gap: 10px; margin-bottom: 8px; }
.ml-adv { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, var(--orange-soft), transparent 75%), var(--panel);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.ml-adv svg.i { color: var(--orange); margin-top: 2px; } .ml-adv b { display: block; font-size: 13.5px; } .ml-adv span { font-size: 13.5px; color: var(--text-2); }
.ml-cat { padding: 0; overflow: hidden; }
.ml-cat summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ml-cat summary::-webkit-details-marker { display: none; }
.ml-cat summary b { font-size: 15px; } .ml-cat summary svg.i { margin-left: auto; color: var(--muted); transition: transform .25s var(--ease); }
.ml-cat[open] summary svg.i { transform: rotate(90deg); }
.ml-know { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 0 14px 14px; }
.ml-k { padding: 12px; border-radius: 14px; background: var(--panel-2); }
.ml-k-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; } .ml-k-h b { font-size: 13.5px; }
.ml-k em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--panel-3); color: var(--muted); }
.ml-k em.s-auto { background: var(--ok-bg); color: var(--ok); } .ml-k em.s-mesuré { background: var(--blue-bg); color: var(--blue); }
.ml-k em.s-toi { background: var(--orange-soft); color: var(--orange-ink); } .ml-k em.s-bientôt { background: var(--gold-soft); color: var(--gold-ink); }
.ml-k p { margin: 0 0 4px; font-size: 12px; color: var(--text-2); } .ml-k .ml-k-how { color: var(--muted); }
.ml-k-ev { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px !important; padding-top: 6px; border-top: 1px solid var(--line); color: var(--text) !important; font-weight: 600; }
.ml-k-ev svg.i { color: var(--orange); margin-top: 1px; }
.ml-leads .ml-why { font-size: 12px; color: var(--muted); }

/* photo carousels (signature photo formats) */
.slides { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.slides img { flex: none; width: 46%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; scroll-snap-align: start; background: #000000; }

/* Malory's recap of the owner's absence */
.ml-recap { margin-bottom: 16px; padding: 16px 18px; border-radius: 22px; background: linear-gradient(135deg, var(--orange-soft), transparent 60%), var(--panel);
  box-shadow: var(--shadow-2), inset 0 0 0 1.5px rgba(169, 169, 169, .5); }
.ml-recap-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--orange-ink); margin-bottom: 10px; }
.ml-recap-head b { color: var(--text); font-size: 17px; }
.ml-recap-pick { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.ml-recap-pick a { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--panel-2); color: var(--text-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.ml-recap-pick a:hover { background: var(--gold-soft); color: var(--gold-ink); }
.ml-recap-say { padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.ml-recap-say p { margin: 0 0 6px; font-size: 13.5px; color: var(--text); } .ml-recap-say p:last-child { margin: 0; }
.ml-recap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .ml-recap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ml-recap-grid { grid-template-columns: minmax(0, 1fr); } .ml-recap-pick { margin-left: 0; } }
.ml-rc { padding: 12px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.ml-rc h3 { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ml-rc-big { font: 800 30px/1.1 var(--font-display); color: var(--ok); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.ml-rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ml-rc-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13.5px; }
.ml-rc-list b { font-variant-numeric: tabular-nums; }
.ml-rc-pub { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ml-rc-pub li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ml-rc-pub a { text-decoration: none; color: inherit; min-width: 0; }
.ml-rc-pub b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-rc-pub span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-rc-pub em { font-style: normal; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ml-tip.recap { box-shadow: var(--shadow-2), inset 0 0 0 1.5px rgba(169, 169, 169, .6); background: linear-gradient(135deg, var(--orange-soft), transparent 70%), var(--panel); }

/* business tiles (Whop) */
.biz-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
@media (max-width: 1100px) { .biz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .biz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.biz-tiles > div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.biz-tiles b { font: 800 22px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.biz-tiles span { font-size: 12px; color: var(--muted); }
.biz-tiles .hl { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); }
.tablewrap { overflow-x: auto; }
.biz-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.biz-table th { text-align: right; font-size: 12px; color: var(--muted); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.biz-table td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.biz-table th:first-child, .biz-table td:first-child { text-align: left; }

.settings-save { position: sticky; bottom: 14px; z-index: 20; margin-top: 14px; padding: 10px 12px; border-radius: 16px; width: fit-content;
  background: var(--panel); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }

/* Malory's lab */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.lab-card { border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.lab-card video { width: 100%; aspect-ratio: 9 / 16; background: #000000; display: block; }
.lab-body { padding: 12px; display: grid; gap: 6px; }
.lab-body b { font-size: 13.5px; } .lab-body p { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.lab-list { display: grid; gap: 8px; }
.lab-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.lab-row img { width: 54px; height: 96px; object-fit: cover; border-radius: 8px; }
.lab-row b { display: block; font-size: 13.5px; } .lab-row span { font-size: 12px; color: var(--muted); }
.lab-row em { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* X (black ink, white in dark mode) and the verified badge */
:root { --x-ink: #1c1c1c; --verified: #959595; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --x-ink: #e7e7e7; } }
:root[data-theme="dark"] { --x-ink: #e7e7e7; }
.pf-x, .pf.pf-x, .pf-chip.pf-x, .pf-btn.pf-x, .pf-mini.pf-x, .vnet.pf-x, .nperf.pf-x, .net.pf-x { --pf: var(--x-ink); }
.pf-grid { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
@media (max-width: 1280px) { .pf-grid[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .pf-grid, .pf-grid[style*="--n:4"] { grid-template-columns: minmax(0, 1fr); } }
.pf-handle { display: flex; align-items: center; gap: 4px; min-width: 0; }
.vbadge { width: 15px; height: 15px; flex: none; color: var(--verified); vertical-align: -3px; }
.vbadge use { pointer-events: none; }
.pf-foot .link-btn.tiny { font-size: 12px; color: var(--faint); }
.pf-foot .link-btn.tiny:hover { color: var(--text); }

/* Labo: posts for X */
.xlab { margin: 0 0 28px; padding: 18px; border-radius: 22px; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.xlab-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 14px; }
.xlab-head h2 { margin: 0 0 2px; font-size: 17px; } .xlab-head p { margin: 0; max-width: 72ch; }
.xlab .pf-ico, .xrow .pf-ico { --pf: var(--x-ink); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--pf); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.xcard { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); align-content: start; }
.xcard header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.xav { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; } .xav.none { background: var(--panel-2); }
.xwho { display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; } .xwho b { font-size: 13.5px; }
.xwho span { font-size: 12px; color: var(--muted); width: 100%; margin-top: -2px; }
.xcard textarea { width: 100%; resize: vertical; font: inherit; font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.xcard textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.xmeta { display: flex; justify-content: flex-end; margin-top: -6px; }
.ximgs { display: grid; gap: 3px; border-radius: 14px; overflow: hidden; grid-template-columns: 1fr 1fr; }
.ximgs.n1 { grid-template-columns: 1fr; }
.ximgs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ximgs.n3 img:first-child { grid-row: span 2; height: 100%; }
.xinsp { margin: 0; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.xinsp .i { flex: none; margin-top: 1px; color: var(--gold-deep, var(--gold)); }
.xrow { grid-template-columns: 38px minmax(0, 1fr) auto; }
.xrow em a { display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 640px) { .xlab { padding: 14px; } .xlab-head { grid-template-columns: auto minmax(0, 1fr); } .xlab-head .as-count { grid-column: 1 / -1; justify-self: start; } .xgrid { grid-template-columns: minmax(0, 1fr); } }
.ximgs.raw { grid-template-columns: 1fr; background: #121212; }
.ximgs.raw img { aspect-ratio: auto; object-fit: contain; max-height: 360px; }
.xadd { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.xadd b { display: flex; gap: 6px; align-items: center; font-size: 13.5px; } .xadd span { display: block; margin-top: 2px; }
.xadd input[type=file] { font-size: 12px; max-width: 230px; }
.xadd textarea { font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; border: 0; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); resize: vertical; }
@media (max-width: 900px) { .xadd { grid-template-columns: minmax(0, 1fr); } .xadd input[type=file] { max-width: none; } }

/* Ressources: 5,000+ images, filtered one page at a time */
.res-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 10px; }
.res-filter input[type=search] { flex: 1 1 220px; min-width: 0; padding: 8px 12px; border-radius: 10px; border: 0; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 13.5px; }
.res-filter select { padding: 7px 10px; border-radius: 10px; border: 0; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 13.5px; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 14px 0; }
.mrr-chart { margin: 4px 0 14px; padding: 12px 14px 8px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }

/* ================================================================== design pass 2026-10-15 (audit) */
/* ---- 1. menu in 4 groups */
.nav-group { margin: 14px 11px 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.nav > .nav-group:first-child { margin-top: 2px; }
.side .nav { overflow-y: auto; scrollbar-width: none; min-height: 0; }
.side .nav::-webkit-scrollbar { display: none; }
.side-foot { margin-top: auto; }

/* ---- 2. mobile: a tab bar at the bottom, every other page in the « Plus » sheet */
main { padding-bottom: 110px; }               /* the Malory dock never covers the end of a page */
.tabbar, .more-sheet { display: none; }
@media (max-width: 900px) {
  .side .nav { display: none; }
  .side { flex-wrap: nowrap; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--side); border-top: 1px solid var(--side-line);
    backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 7px 0 5px; border: 0; background: none;
    border-radius: 14px; color: var(--muted); font: 600 12px/1 var(--font); text-decoration: none; cursor: pointer; }
  .tabbar svg.i { width: 22px; height: 22px; }
  .tabbar .on { color: var(--gold-ink); background: var(--gold-soft); }
  .tabbar .on svg.i { color: var(--gold-deep); }
  .tb-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid;
    place-items: center; font: 800 12px/1 var(--font); font-style: normal; background: var(--gold); color: #1e1e1e; }
  .tb-dot { position: absolute; top: 5px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--err); }
  main { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .malory-dock { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  body:has(.malory-dock) .toasts { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .more-sheet[open] { display: block; position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 82vh; overflow-y: auto;
    padding: 8px 14px calc(18px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 22px 22px 0 0; background: var(--panel);
    color: var(--text); box-shadow: var(--shadow-3); animation: sheet-up .26s var(--ease); }
  .more-sheet::backdrop { background: rgba(15, 15, 15, .32); }
  .ms-head { position: sticky; top: -8px; display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 6px; background: var(--panel); z-index: 1; }
  .ms-head b { font: 700 17px var(--font-display); }
  .ms-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
  .ms-nav { display: grid; gap: 2px; }
  .ms-nav a { padding: 11px 12px; font-size: 15px; }
  .ms-nav .nav-group { margin: 14px 12px 4px; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

/* ---- 3. Malory: the dock is his everyday place; the banner only for a recap or a real alert */
.ml-tip.alert { border-color: rgba(104, 104, 104, .25); }

/* ---- 5. three surface levels: ground, card, hero card (the one thing that matters on the screen) */
.next, .hero-card { background: linear-gradient(180deg, rgba(226, 226, 226, .16), rgba(226, 226, 226, .04) 60%), var(--panel);
  box-shadow: var(--shadow-2), inset 0 0 0 1.5px rgba(190, 190, 190, .45), var(--inset); }
.next::before { background: radial-gradient(520px 240px at 100% 0%, var(--gold-soft), transparent 72%); }

/* ---- Apple-clean (owner, 2026-10-15: « poncé et épuré, mentalité Apple »): no texture, no floating light, honey only
   as an accent; motion only where it means something */
body::after { display: none; }
body::before { background: radial-gradient(1100px 520px at 70% -12%, rgba(190, 190, 190, .07), transparent 70%); animation: none; }
.ambient { display: none; }
.card { background-image: none; }
.card:hover { --spot: transparent; }
.next .cover::before { animation: none; opacity: 0; transition: opacity .3s; }
.next .cover:hover::before { opacity: 1; animation: cover-shine 1.4s ease-in-out 1; }
.grad-text { animation: none; }
.brand .logo { animation: none; }
.brand:hover .logo { transform: none; }
.cover { transform-style: flat; }
.cover.tilting { transform: none !important; }

/* ---- 6. Business: the MRR first (with its curve), revenue and sign-ups beside it, the rest in one quiet strip */
.biz-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin: 4px 0 12px; }
.bh-mrr { position: relative; border-radius: 18px; padding: 18px 18px 8px; display: grid; gap: 8px; min-width: 0; }
.bh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.bh-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bh-big { display: block; font: 700 44px/1.05 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.bh-sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.bh-sub em { font-style: normal; font-weight: 700; } .bh-sub em.up { color: var(--ok); } .bh-sub em.down { color: var(--err); }
.bh-meta { font-size: 12px; color: var(--faint); }
.bh-side { display: grid; gap: 12px; min-width: 0; }
.bh-card { border-radius: 18px; padding: 16px 18px; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.bh-card b { font: 700 30px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.biz-strip { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 6px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.biz-strip > div { flex: 1 1 140px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); min-width: 0; }
.biz-strip > div:last-child { border-right: 0; }
.biz-strip b { font: 700 22px/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.biz-strip span { font-size: 13.5px; color: var(--muted); }
.biz-todo { margin: 8px 0 10px; }
@media (max-width: 900px) { .biz-hero { grid-template-columns: minmax(0, 1fr); } .bh-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bh-big { font-size: 30px; } .bh-card b { font-size: 22px; } }
@media (max-width: 520px) { .bh-side { grid-template-columns: minmax(0, 1fr); } .biz-strip > div { flex-basis: 45%; border-bottom: 1px solid var(--line); } }

/* ---- 7. Comptes: one-line names, a quiet « ••• » menu, the connect card folded once the account runs */
.acct2-brand { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.acct2-name { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.acct2-name a { text-decoration: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; letter-spacing: .1em; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--panel);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); display: grid; gap: 2px; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 10px; border: 0; background: none;
  color: var(--text); font: 600 13.5px var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--panel-2); }
.menu-pop form { margin: 0; }
.connect-fold { margin-top: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.connect-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-weight: 600; font-size: 13.5px; }
.connect-fold > summary::-webkit-details-marker { display: none; }
.connect-fold[open] > summary { border-bottom: 1px solid var(--line); }
.connect-fold .connect-box { margin: 12px; }

/* ================================================================== Apple pass: quiet chrome, big clear titles, soft solid controls */
:root { --radius: 22px; --radius-sm: 14px; --line: rgba(31, 31, 31, .07); --line-2: rgba(31, 31, 31, .12); }
:root[data-theme="dark"] { --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .11); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .11); } }
main { padding: 40px 44px 110px; }
.is-desktop main { padding-top: 48px; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.028em; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 44px 0 14px; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.eyebrow { font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.page-head { margin-bottom: 28px; }
.page-head .lead { font-size: 15px; color: var(--muted); max-width: 680px; line-height: 1.5; }
/* cards: lighter edge, more air */
.card { padding: 22px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.card.lift:hover, a.card:hover { transform: translateY(-1px); }
/* buttons: soft solid pills, one honey primary, no shine */
.btn { border-radius: 999px; padding: 10px 18px; font: 600 15px/1 var(--font); background: var(--panel-2); box-shadow: none; }
.btn:hover { background: var(--panel-3); box-shadow: none; transform: none; }
.btn:active { transform: scale(.97); }
.btn.gold { background: var(--gold); color: #151515; box-shadow: none; }
.btn.gold::after { display: none; }
.btn.gold:hover { background: #cecece; box-shadow: none; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.sm { padding: 8px 14px; font-size: 13.5px; border-radius: 999px; }
/* tags: borderless, calm */
.tag { box-shadow: none; font-weight: 600; padding: 3px 10px; }
/* inputs: filled, rounded, a clear honey focus ring; native selects and file pickers dressed like the rest */
input, select, textarea { font-size: 15px; border-radius: 12px; padding: 10px 13px; }
select { -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237b7b7b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center; }
input[type="file"] { padding: 6px; font-size: 13.5px; color: var(--muted); background: var(--panel-2); }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--gold); color: #151515; font: 600 13.5px var(--font); cursor: pointer; }
label { font-weight: 600; }
/* sidebar: lighter, airier */
.side { background: var(--side); border-right: 1px solid var(--side-line); }
.nav a { padding: 8px 11px; font-weight: 550; }
.nav a.on { box-shadow: none; background: var(--panel); }
.nav a.on::before { display: none; }
.nav-glider { box-shadow: none; }
.live { box-shadow: none; }
@media (max-width: 900px) { main { padding: 24px 18px calc(110px + env(safe-area-inset-bottom, 0px)); } h1 { font-size: 30px; } }
/* sidebar fits any window: tighter rows, a one-line live status (the countdown lives on the Accueil) */
.side { padding: 16px 12px 12px; gap: 4px; }
.brand { padding: 4px 10px 12px; }
.nav { gap: 1px; }
.nav a { padding: 6px 10px; font-size: 15px; }
.nav-group { margin: 12px 10px 3px; }
.side-foot { gap: 8px; padding-top: 8px; }
.live { padding: 10px 12px; border-radius: 14px; background: var(--panel-2); box-shadow: none; }
.live::after, .live-sync { display: none; }
.live-next { display: inline; margin: 0; font-size: 13.5px; }
.live-next::before { content: " · "; }
.live-count { display: inline; font: 600 13.5px var(--font); color: var(--text-2); }
.live-state { font-size: 12px; font-weight: 700; display: inline-flex; }
.live form { margin-top: 8px; }
.live form .btn { padding: 7px 12px; font-size: 13.5px; background: var(--panel); }
.theme { background: var(--panel-2); box-shadow: none; }
@media (max-height: 760px) { .live form { display: none; } }
.live form { display: none; }          /* pausing stays on the Accueil (« Suspendre la production ») and in Réglages */
.nav a { padding: 5px 10px; }

/* ---- 9. Vidéos: one segmented control for the state, one menu for the account, one badge per thumbnail */
.vfilter { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel-2); max-width: 100%; }
.seg a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(31, 31, 31, .12); }
.vf-acc select { width: auto; min-width: 190px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
@media (max-width: 900px) { .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 16px; } .seg::-webkit-scrollbar { display: none; } .vf-acc, .vf-acc select { width: 100%; } }

/* ---- 8. Labo: tabs, a real drop zone, one primary action per card */
.lab-tabs { margin-bottom: 22px; }
.lab-tabs i { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); font-size: 12px; font-weight: 700; }
.xlab { background: none; box-shadow: none; padding: 0; }
.xlab-head { grid-template-columns: auto minmax(0, 1fr); }
.xadd { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.drop { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed rgba(138, 138, 138, .35); background: var(--gold-soft); transition: background .2s, border-color .2s; }
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(190, 190, 190, .22); }
.drop.has { border-style: solid; border-color: var(--gold); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; padding: 0; }
.drop-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); color: var(--gold-deep); flex: none; }
.drop-txt { display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); }
.drop-txt b { color: var(--text); font-size: 15px; }
@media (max-width: 900px) { .xadd { grid-template-columns: minmax(0, 1fr); } }

/* ---- 9. Accueil: quiet header actions, "Hier" at night, compact next card on phones */
.head-acts { display: flex; gap: 6px; align-self: flex-start; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: transparent; color: var(--muted); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--panel-3); color: var(--text); }
.icon-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.icon-btn svg.i { width: 18px; height: 18px; }
.yday { justify-content: center; }
.yday-main { display: grid; gap: 2px; margin: 10px 0 2px; }
.yday-main b { font: 800 44px/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.yday-main span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.yday-sub { font-size: 15px; color: var(--text); }
.yday .today-stats { margin-top: auto; }
@media (max-width: 900px) {
  .page-head { position: relative; }
  .head-acts { position: absolute; top: 0; right: 0; }
  .next { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px; align-items: center; }
  .next .cover { width: 76px; }
  .next-body { gap: 4px; padding: 0; }
  .next .next-hook, .next .row, .next-when { display: none; }
  .next .countdown { font-size: 30px; margin: 0; }
  .next-foot { margin-top: 4px; }
}
@media (max-width: 420px) {
  .next { grid-template-columns: 64px minmax(0, 1fr); }
  .next .cover { width: 64px; }
}
@media (max-width: 900px) { .wide-only { display: none; } .head-acts { top: 20px; right: -6px; } }
/* the generic ▸ marker belongs to plain text disclosures, not to menus or folds that carry their own icon */
.menu > summary::before, .connect-fold > summary::before { content: none; }
.connect-fold > summary { margin-top: 0; color: var(--text); }
/* headers whose controls cannot fit next to the title wrap under it instead of running off a phone screen */
.section-head { flex-wrap: wrap; }
.section-head > * { min-width: 0; }
@media (max-width: 900px) {
  .btn { white-space: normal; text-wrap: balance; }
  form.inline { max-width: 100%; }
}

/* ---- 10. Live views counter: real readings, odometer digits */
.live-views { position: relative; margin-bottom: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--panel);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: grid; gap: 10px; }
.lv-head { display: flex; align-items: center; gap: 8px; }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(112, 112, 112, .45); animation: lvpulse 2s infinite; }
@keyframes lvpulse { 70% { box-shadow: 0 0 0 8px rgba(112, 112, 112, 0); } 100% { box-shadow: 0 0 0 0 rgba(112, 112, 112, 0); } }
.odo { display: flex; align-items: flex-end; font: 800 56px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  color: var(--text); overflow: hidden; height: 1em; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.odo-strip span { height: 1em; line-height: 1; text-align: center; }
.odo-sep { display: inline-block; width: .22em; }
.live-views.tick .odo { animation: lvflash 1s ease-out; }
@keyframes lvflash { 0% { color: var(--gold-deep); } 100% { color: var(--text); } }
.lv-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; font-size: 15px; color: var(--muted); }
.lv-today b { color: var(--ok); font-variant-numeric: tabular-nums; }
.lv-pf { display: flex; gap: 8px; flex-wrap: wrap; }
.lv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--panel-2);
  font-size: 13.5px; color: var(--muted); }
.lv-chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.live-views.big { min-height: 62vh; align-content: center; justify-items: center; text-align: center; padding: 40px 24px; }
.live-views.big .odo { font-size: clamp(56px, 11vw, 150px); }
.live-views.big .lv-meta { font-size: 17px; justify-content: center; }
.live-views.big .lv-pf { justify-content: center; }
.lv-note { max-width: 620px; font-size: 13.5px; color: var(--faint); margin: 8px 0 0; }
@media (max-width: 900px) { .odo { font-size: 44px; } }
@media (prefers-reduced-motion: reduce) { .odo-strip { transition: none; } .lv-dot { animation: none; } }

.lv-head { flex-wrap: wrap; }
.lv-mode { margin-left: auto; }
.lv-mode button { border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font); padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.lv-mode button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow-1); }
.live-views.big .lv-head { justify-content: center; }
.live-views.big .lv-mode { margin-left: 0; }

/* ---- 11. The day's thread as a stack of cards; the whole thread opens in a sheet */
.day-deck { padding: 0; margin-bottom: 16px; }
.deck-btn { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px;
  align-items: center; padding: 18px 24px; cursor: pointer; border-radius: inherit; }
.deck-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.deck { position: relative; height: 176px; }
.deck-card { position: absolute; left: 62px; top: 4px; width: 92px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden;
  background: var(--panel-3); z-index: var(--z); box-shadow: 0 1px 2px rgba(31, 31, 31, .08), 0 10px 22px -10px rgba(31, 31, 31, .45);
  transform: translateX(calc(var(--k) * 16px)) rotate(calc(var(--k) * 6deg)) scale(calc(1 - (var(--k) * var(--k)) * .015));
  transform-origin: 50% 110%; transition: transform .45s var(--ease); }
.deck-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-card.top { box-shadow: 0 0 0 2px var(--gold), 0 12px 26px -10px rgba(31, 31, 31, .5); }
.deck-card.published::after, .deck-card.error::after { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font: 700 11px/1 var(--font); color: #ffffff; }
.deck-card.published::after { content: "✓"; background: var(--ok); }
.deck-card.error::after { content: "!"; background: var(--err); }
.deck-btn:hover .deck-card { transform: translateX(calc(var(--k) * 30px)) rotate(calc(var(--k) * 9deg)); }
.deck-info { display: grid; gap: 8px; min-width: 0; }
.deck-title { font: 700 22px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.deck-sub { font-size: 15px; color: var(--muted); }
.deck-sub em { font-style: normal; color: var(--err); font-weight: 600; }
.deck-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.day-deck .segbar { margin: 2px 0; }
.day-sheet { width: min(1120px, calc(100vw - 32px)); max-height: 86vh; overflow: auto; border: 0; border-radius: 26px; padding: 22px 24px 26px;
  background: var(--panel); color: var(--text); box-shadow: var(--shadow-3); }
.day-sheet::backdrop { background: rgba(16, 16, 16, .38); backdrop-filter: blur(8px); }
.day-sheet[open] { animation: sheet-in .32s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.ds-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.day-sheet .slots { margin-top: 14px; }
@media (max-width: 900px) {
  .deck-btn { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 16px; }
  .deck { height: 132px; }
  .deck-card { width: 68px; left: 40px; }
  .deck-title { font-size: 19px; }
  .day-sheet { width: 100vw; max-width: 100vw; max-height: 90vh; margin: auto 0 0; border-radius: 26px 26px 0 0; padding: 18px 16px 30px; }
}
@media (prefers-reduced-motion: reduce) { .deck-card { transition: none; } .day-sheet[open] { animation: none; } }
@media (max-width: 900px) {     /* health checks on a phone: icon, then the label above its detail, chevron at the end */
  .check { grid-template-columns: 22px minmax(0, 1fr) 16px; grid-template-areas: "ck b chev" "ck s chev"; row-gap: 2px; }
  .check .ck { grid-area: ck; }
  .check b { grid-area: b; }
  .check > span:not(.ck) { grid-area: s; white-space: normal; }
  .check .chev { grid-area: chev; }
}

/* ---- 12. Malory at work: animated scenes (Atelier: he codes the videos; Labo: he brews potions), looping */
:root { --sc-wall-a: #f3f3f3; --sc-wall-b: #e3e3e3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sc-wall-a: #1f1f1f; --sc-wall-b: #131313; } }
:root[data-theme="dark"] { --sc-wall-a: #1f1f1f; --sc-wall-b: #131313; }
.scene-card { padding: 0; overflow: hidden; margin-bottom: 16px; }
.scene { display: block; width: 100%; height: auto; }
.sc-wall-a { stop-color: var(--sc-wall-a); } .sc-wall-b { stop-color: var(--sc-wall-b); }
.scene .malory .m-bot, .scene .malory .m-shadow { animation: none; }
.scene .malory .m-shadow { display: none; }
.scene .m-joy { opacity: 0; }
.scene .sc-tab { font: 600 8.5px var(--font); fill: #cbcbcb; }
.scene .sl-card-t { font: 700 11.5px var(--font); fill: #2e2e2e; }

/* Atelier */
.sc-mal .m-arm-l { animation: sc-type-l .26s ease-in-out infinite alternate; }
.sc-mal .m-arm-r { animation: sc-type-r .26s ease-in-out .13s infinite alternate; }
@keyframes sc-type-l { from { transform: rotate(-6deg); } to { transform: rotate(-17deg) translateY(-2px); } }
@keyframes sc-type-r { from { transform: rotate(6deg); } to { transform: rotate(17deg) translateY(-2px); } }
.sc-mal .m-face { animation: sc-glance 9s ease-in-out infinite; }
@keyframes sc-glance { 0%, 38% { transform: translate(3px, 1px); } 44%, 78% { transform: translate(5px, -1px); } 84%, 94% { transform: translate(0, 0); } 100% { transform: translate(3px, 1px); } }
.sc-mal .m-joy { animation: sc-joy 9s infinite; }
@keyframes sc-joy { 0%, 83% { opacity: 0; } 86%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
.sc-code { animation: sc-scroll 18s linear infinite; }
@keyframes sc-scroll { to { transform: translateY(-224px); } }
.sc-cursor { animation: sc-blink 1s steps(1) infinite; }
@keyframes sc-blink { 50% { opacity: 0; } }
.sc-prog { transform-box: fill-box; transform-origin: 0 50%; animation: sc-prog 9s linear infinite; }
@keyframes sc-prog { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
.sc-scan { animation: sc-scan 1.6s linear infinite; }
@keyframes sc-scan { from { transform: translateY(0); } to { transform: translateY(140px); } }
.sc-done { transform-box: fill-box; transform-origin: center; animation: sc-done 9s infinite; }
@keyframes sc-done { 0%, 79% { opacity: 0; transform: scale(0); } 82% { opacity: 1; transform: scale(1.18); } 86%, 94% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; transform: scale(1); } }
.sc-spark path, .sl-spark path { transform-box: fill-box; transform-origin: center; opacity: 0; animation: sc-spark 9s infinite; animation-delay: var(--d); }
@keyframes sc-spark { 0%, 80% { opacity: 0; transform: scale(.2); } 84% { opacity: 1; transform: scale(1.25) rotate(20deg); } 92%, 100% { opacity: 0; transform: scale(.5) rotate(40deg); } }
.sc-fly { transform-box: fill-box; transform-origin: center; opacity: 0; animation: sc-fly 9s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes sc-fly { 0%, 85% { opacity: 0; transform: none; } 87% { opacity: 1; transform: none; } 97% { opacity: 1; transform: translate(94px, 108px) rotate(14deg) scale(.95); } 99%, 100% { opacity: 0; transform: translate(94px, 108px) rotate(14deg) scale(.95); } }
.sc-key { fill: #343434; animation: sc-key 1.43s infinite; animation-delay: var(--d); }
@keyframes sc-key { 0%, 14%, 100% { fill: #343434; } 5% { fill: #d9d9d9; } }
.sc-steam { opacity: 0; animation: sc-steam 3s ease-in-out infinite; }
.sc-steam.s2 { animation-delay: 1.5s; }
@keyframes sc-steam { 0% { opacity: 0; transform: translateY(4px); } 30% { opacity: .65; } 100% { opacity: 0; transform: translateY(-16px); } }
.sc-hand-m, .sc-hand-h { transform-box: fill-box; transform-origin: 50% 100%; }
.sc-hand-m { animation: sc-rot 12s linear infinite; } .sc-hand-h { animation: sc-rot 144s linear infinite; }
@keyframes sc-rot { to { transform: rotate(360deg); } }
.sc-leaf { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-sway 4s ease-in-out infinite; }
.sc-leaf.l2 { animation-delay: -2s; transform-origin: 0 100%; }
@keyframes sc-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.sc-glyphs text { font: 700 17px ui-monospace, "SF Mono", Menlo, monospace; fill: var(--gold-deep); opacity: 0; animation: sc-glyph 6s ease-out infinite; animation-delay: var(--d); }
@keyframes sc-glyph { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: .85; } 70%, 100% { opacity: 0; transform: translateY(-24px); } }
.sc-beam { animation: sc-beam 8s ease-in-out infinite; }
@keyframes sc-beam { 50% { opacity: .26; } }

/* Labo */
.sl-mal .m-arm-r { animation: sl-raise 9s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes sl-raise { 0%, 12% { transform: rotate(0); } 24% { transform: rotate(-135deg); } 30% { transform: rotate(-139deg); } 36% { transform: rotate(-131deg); } 42% { transform: rotate(-137deg); } 47% { transform: rotate(-135deg); } 57%, 100% { transform: rotate(0); } }
.sl-mal .m-arm-l { animation: sl-idle 3s ease-in-out infinite; }
@keyframes sl-idle { 50% { transform: rotate(7deg); } }
.sl-mal .m-face { animation: sl-look 9s ease-in-out infinite; }
@keyframes sl-look { 0%, 16% { transform: translate(0, 0); } 22%, 66% { transform: translate(5px, 3px); } 72%, 100% { transform: translate(0, 0); } }
.sl-mal .m-joy { animation: sl-joy 9s infinite; }
@keyframes sl-joy { 0%, 71% { opacity: 0; } 74%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }
.sl-tube { opacity: 0; animation: sl-tube 9s infinite; }
@keyframes sl-tube { 0%, 18% { opacity: 0; } 23%, 46% { opacity: 1; } 50%, 100% { opacity: 0; } }
.sl-tube-liq { fill: #9b9b9b; }
.sl-stream { stroke: #9b9b9b; stroke-dasharray: 6 5; opacity: 0; animation: sl-stream 9s linear infinite, sl-flow .35s linear infinite; }
@keyframes sl-stream { 0%, 26% { opacity: 0; } 29%, 45% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes sl-flow { to { stroke-dashoffset: -11; } }
.sl-liquid { animation: sl-liquid 9s ease-in-out infinite; }
@keyframes sl-liquid { 0%, 26% { fill: #bdbdbd; transform: translateY(0); } 46% { fill: #9b9b9b; transform: translateY(-10px); } 62% { fill: #a7a7a7; transform: translateY(-11px); } 74%, 86% { fill: #d9d9d9; transform: translateY(-12px); } 96%, 100% { fill: #bdbdbd; transform: translateY(0); } }
.sl-bub, .sl-bub2 { animation: sl-bub 1.6s ease-in infinite; animation-delay: var(--d); }
.sl-bub2 { animation-duration: 1.1s; }
@keyframes sl-bub { 0% { transform: translateY(0); opacity: .8; } 100% { transform: translateY(-30px); opacity: 0; } }
.sl-poof { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; animation: sl-poof 9s ease-out infinite; }
@keyframes sl-poof { 0%, 70% { opacity: 0; transform: scale(.4); } 74% { opacity: .95; transform: scale(1.05); } 84% { opacity: .7; transform: scale(1.15); } 92%, 100% { opacity: 0; transform: scale(1.3); } }
.sl-spark path { animation-name: sl-spark; }
@keyframes sl-spark { 0%, 71% { opacity: 0; transform: scale(.2); } 76% { opacity: 1; transform: scale(1.3) rotate(25deg); } 86%, 100% { opacity: 0; transform: scale(.5) rotate(45deg); } }
.sl-card { opacity: 0; animation: sl-card 9s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes sl-card { 0%, 73% { opacity: 0; transform: translateY(34px) scale(.9); } 78% { opacity: 1; transform: translateY(0) scale(1); } 90% { opacity: 1; transform: translateY(-8px); } 96%, 100% { opacity: 0; transform: translateY(-16px); } }
.sl-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: sl-flicker .18s ease-in-out infinite alternate; }
@keyframes sl-flicker { from { transform: scale(1.05, .9); } to { transform: scale(.95, 1.08); } }
.sl-flask-liq { fill: #a7a7a7; }
.sl-vapor circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sl-vapor 2.4s ease-out infinite; animation-delay: var(--d); }
@keyframes sl-vapor { 0% { opacity: .6; transform: translateY(0) scale(.6); } 100% { opacity: 0; transform: translateY(-28px) scale(1.7); } }
.sl-drop { animation: sl-drop 1.4s ease-in infinite; }
@keyframes sl-drop { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 78% { opacity: 1; transform: translateY(46px); } 84%, 100% { opacity: 0; transform: translateY(48px); } }
.sl-coil { stroke-dasharray: 8 8; animation: sl-flow 1s linear infinite; }
.sl-halo { opacity: .1; filter: blur(7px); animation: sl-halo 3.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes sl-halo { 50% { opacity: .34; } }
.sl-rt-liq { transform-box: fill-box; transform-origin: 50% 100%; animation: sl-bob 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes sl-bob { 50% { transform: scaleY(.9); } }
@media (prefers-reduced-motion: reduce) { .scene, .scene * { animation: none !important; } }

.ahead-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: var(--panel); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); font-size: 13.5px; white-space: nowrap; }
.ahead-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
@media (max-width: 900px) { .ahead-chip { white-space: normal; } }

/* Atelier scene while a real video is being made: the real script, the real progress, a ✓ only for real outputs */
.sc-live { opacity: 0; transition: opacity .4s; }
.sc-live .sc-k { fill: #bdbdbd; }
.sc-live .sc-v { fill: #d9d9d9; }
.scene-coder.busy .sc-live { opacity: 1; }
.scene-coder.busy .sc-code { opacity: .12; transition: opacity .4s; }
.scene-coder.busy .sc-prog { animation: none; transition: transform .8s var(--ease); }
.scene-coder.busy .sc-done, .scene-coder.busy .sc-spark path, .scene-coder.busy .sc-fly, .scene-coder.busy .sc-mal .m-joy { animation: none; opacity: 0; }
.scene-coder.busy .sc-rec { animation: sc-blink 1s steps(1) infinite; }
.scene-coder:not(.busy) .sc-rec { fill: #676767; }
.scene-coder.busy .sc-mal .m-arm-l, .scene-coder.busy .sc-mal .m-arm-r { animation-duration: .16s; }
.scene-coder.done-go .sc-done { animation: sc-done-once 2.4s both; }
.scene-coder.done-go .sc-spark path { animation: sc-spark-once 2.4s both; animation-delay: var(--d); }
.scene-coder.done-go .sc-fly { animation: sc-fly-once 2.4s cubic-bezier(.4, 0, .2, 1) both; }
.scene-coder.done-go .sc-mal .m-joy { animation: sc-joy-once 2.4s both; }
@keyframes sc-done-once { 0% { opacity: 0; transform: scale(0); } 12% { opacity: 1; transform: scale(1.18); } 22%, 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes sc-spark-once { 0% { opacity: 0; transform: scale(.2); } 15% { opacity: 1; transform: scale(1.25) rotate(20deg); } 45%, 100% { opacity: 0; transform: scale(.5) rotate(40deg); } }
@keyframes sc-fly-once { 0%, 30% { opacity: 0; transform: none; } 36% { opacity: 1; transform: none; } 92% { opacity: 1; transform: translate(94px, 108px) rotate(14deg) scale(.95); } 100% { opacity: 0; transform: translate(94px, 108px) rotate(14deg) scale(.95); } }
@keyframes sc-joy-once { 0%, 100% { opacity: 0; } 10%, 85% { opacity: 1; } }

/* ---- 13. Night over Paris in Malory's scenes: --night (0 day -> 1 night) follows the real sun (app/sun.py, app.js) */
.scene { --night: 0; }
.sc-dark { opacity: calc(var(--night) * .88); transition: opacity 4s ease; pointer-events: none; }
.sc-nglow { opacity: var(--night); transition: opacity 4s ease; mix-blend-mode: screen; pointer-events: none; }
.sc-glow { animation: sc-glow 5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes sc-glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.sc-day-only { opacity: calc(1 - var(--night)); transition: opacity 4s ease; }
.sc-sky-night { opacity: var(--night); transition: opacity 4s ease; }
.sc-sun { opacity: calc(1 - var(--night)); transition: opacity 4s ease; }
.sc-cloud { animation: sc-cloud 38s linear infinite; }
@keyframes sc-cloud { from { transform: translateX(0); } to { transform: translateX(120px); } }
.sc-stars circle { animation: sc-twinkle 2.8s ease-in-out infinite; animation-delay: var(--d); }
@keyframes sc-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* at night his eyes glow in the dark and the potions / screens shine a little more */
.scene.night .malory .m-eyes { filter: drop-shadow(0 0 3px rgba(217, 217, 217, .95)); }
.scene.night .malory .m-ant-glow { opacity: 1; }
.scene-chem.night .sl-halo { filter: blur(9px); }
@media (prefers-reduced-motion: reduce) { .sc-dark, .sc-nglow, .sc-day-only, .sc-sky-night, .sc-sun { transition: none; } }
/* the clock on the Atelier wall shows the real time in Paris (app.js sets the hands) */
.scene-coder.real-time .sc-hand-m, .scene-coder.real-time .sc-hand-h { animation: none; transition: transform 1s var(--ease); }

/* ================================================================== 14. LOCK IN (2026-10-15)
   One monochrome system on top of everything above: the tokens again (they win over the old light/dark blocks), then
   every component and state. Quality comes from proportion, contrast and care, not from color or ornament. */
html:root[data-theme] {
  --bg: #080808; --bg-2: #0c0c0c; --panel: #111111; --panel-2: #191919; --panel-3: #212121;
  --line: #222222; --line-2: #292929; --line-3: #3a3a3a;
  --text: #f2f2f2; --text-2: #d4d4d4; --muted: #a3a3a3; --faint: #737373;
  --gold: #f2f2f2; --gold-2: #ffffff; --gold-deep: #f2f2f2; --gold-ink: #f2f2f2; --honey: #f2f2f2;
  --gold-soft: rgba(255, 255, 255, .06); --gold-glow: rgba(255, 255, 255, .10);
  --orange: #d4d4d4; --orange-soft: rgba(255, 255, 255, .07); --orange-ink: #f2f2f2;
  --series: #f2f2f2; --grid: #1c1c1c;
  --ok: #d4d4d4; --ok-bg: rgba(255, 255, 255, .05); --warn: #ededed; --warn-bg: rgba(255, 255, 255, .07);
  --err: #ffffff; --err-bg: rgba(255, 255, 255, .10); --blue: #d4d4d4; --blue-bg: rgba(255, 255, 255, .05);
  --side: #0a0a0a; --side-line: #1c1c1c;
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .5); --shadow-2: 0 10px 28px -14px rgba(0, 0, 0, .9); --shadow-3: 0 28px 70px -24px rgba(0, 0, 0, .95);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .025);
  --radius: 10px; --radius-sm: 7px;
  color-scheme: dark;
}

/* ---- base */
body { background: var(--bg); color: var(--text); font: 400 14px/1.6 var(--font); letter-spacing: -.003em;
  font-feature-settings: "cv11", "ss03"; }
body::before { background: radial-gradient(1200px 520px at 50% -18%, rgba(255, 255, 255, .035), transparent 70%); animation: none; }
body::after, .ambient, .intro, .burst, .intro-sparks { display: none !important; }
::selection { background: #f2f2f2; color: #080808; }
a { text-decoration-color: var(--line-3); }
:focus-visible { outline: 2px solid #f2f2f2; outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: 0; }
svg.i { stroke-width: 1.6; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); }
h1 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.022em; line-height: 1.1; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.012em; margin: 44px 0 14px; }
h3 { font-size: 15px; font-weight: 600; letter-spacing: -.006em; }
.eyebrow, .nav-group, th, .bh-label, .acct2-brand, .live-state { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .hint { color: var(--faint); font-size: 12.5px; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: 12px; background: var(--panel-2); color: var(--text-2); border-radius: 5px; padding: 1px 6px; }
kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; font: 500 10.5px/1 var(--font-mono); color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line-3); border-bottom-width: 2px; border-radius: 4px; }
.grad-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--text); }
/* figures that are read, compared or ticking: monospace, aligned */
html [data-countdown], html [data-countdown] .dg, html [data-countdown] small, .live-count, html .odo, html .odo *, td.num, .num, .film-time,
.badge, .tb-badge, time, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
html .odo { font-weight: 600; }
html [data-countdown] .dg { font-weight: 600; }
html [data-countdown] small { font-family: var(--font); letter-spacing: 0; }
.dg.flip { animation: li-digit var(--dur-2) var(--ease); }
@keyframes li-digit { from { opacity: .3; } }

/* ---- shell */
.side { background: var(--side); border-right: 1px solid var(--side-line); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 16px 12px 12px; }
.brand { gap: 10px; padding: 4px 8px 16px; }
.brand .logo { width: 30px; height: 30px; filter: none; transition: none; }
.brand:hover .logo { transform: none; }
.brand b { font: 700 15px/1.1 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.brand small { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
/* the bee: white on black, crisp; .inverse for light surfaces */
.logo .bee-bg { fill: #000000; stroke: var(--line-3); stroke-width: 2; }
.logo .bee-fg { fill: #f2f2f2; } .logo .bee-wings, .logo .bee-line { stroke: #f2f2f2; }
.logo .bee-cut { fill: #000000; stroke: #000000; } .logo .bee-gap { stroke: #000000; }
.logo.inverse .bee-bg { fill: #f2f2f2; stroke: none; } .logo.inverse .bee-fg { fill: #080808; } .logo.inverse .bee-wings, .logo.inverse .bee-line { stroke: #080808; }
.logo.inverse .bee-cut { fill: #f2f2f2; stroke: #f2f2f2; } .logo.inverse .bee-gap { stroke: #f2f2f2; }
.nav-group { margin: 18px 10px 6px; color: var(--faint); }
.nav a { gap: 10px; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.nav a:hover { color: var(--text); background: #121212; }
.nav a.on { color: #ffffff; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav a.on::before { display: block; content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 2px; border-radius: 0 2px 2px 0; background: #f2f2f2; }
.nav a.on svg.i, .nav a svg.i { color: inherit; }
.nav-glider { background: var(--panel-2) !important; box-shadow: inset 0 0 0 1px var(--line-2) !important; transition-duration: var(--dur-3) !important; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 600; background: transparent; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-3); }
.badge.err { background: #f2f2f2; color: #080808; box-shadow: none; }
.side-foot { gap: 8px; padding-top: 10px; border-top: 1px solid var(--side-line); }
.live { background: transparent; box-shadow: none; padding: 6px 4px; border-radius: 0; }
.live-state { gap: 8px; color: var(--text-2) !important; }
.live .dot, .dot { background: currentColor; }
.live.on .dot::after, .dot.pulse::after { display: none; animation: none; }
.live.paused .dot { border-radius: 1.5px; }                         /* paused = a square (stop) */
.live.test .dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }   /* test = a hollow ring */
.live-count { color: var(--muted); font-size: 12px; }
.side-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.st-btn { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 9px; border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--muted); font: 500 12.5px var(--font); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color var(--dur-1), background var(--dur-1), box-shadow var(--dur-1); }
.st-btn:hover { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-3); }
.st-btn kbd { margin-left: auto; }
.st-btn.icon-only { width: 32px; justify-content: center; padding: 0; }
main { max-width: 1200px; padding: 40px 48px 110px; }
.is-desktop main { padding-top: 46px; }
.page-head { margin-bottom: 30px; gap: 20px; }
.page-head h1 { margin: 6px 0 8px; }
.page-head .lead { font-size: 14px; color: var(--muted); max-width: 640px; }
.page-head .lead .dot { color: var(--text-2); } .page-head .lead .dot.off { color: var(--faint); } .page-head .lead .dot.run { color: #ffffff; }
.back { color: var(--muted); font-size: 13px; }

/* ---- surfaces: one level of card, one hero per screen */
.card { background: var(--panel); border-radius: var(--radius); padding: 20px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--dur-2) var(--ease); }
.card.lift:hover, a.card:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line-3); }
.next, .hero-card { background: linear-gradient(180deg, #151515, #101010); box-shadow: inset 0 0 0 1px var(--line-3), inset 0 1px 0 rgba(255, 255, 255, .05); }
.next::before { display: none; }
.kpi .label .ic, .notice .n-ic { background: var(--panel-2); color: var(--text-2); border-radius: 6px; }
.section-head a { color: var(--muted); font-size: 13px; }

/* ---- buttons: one bright primary per screen, the rest quiet */
.btn { height: 34px; padding: 0 14px; border-radius: var(--radius-sm); font: 600 13px/1 var(--font); letter-spacing: -.003em; background: var(--panel-2);
  color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); transition: background var(--dur-1) var(--ease), color var(--dur-1), box-shadow var(--dur-1); }
.btn:hover { background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-3); transform: none; }
.btn:active { transform: none; background: #262626; }
.btn.gold { background: #f2f2f2; color: #080808; box-shadow: none; }
.btn.gold:hover { background: #ffffff; box-shadow: none; }
.btn.gold:active { background: #dcdcdc; }
.btn.gold::after { display: none; }
.btn.ghost { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.danger { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn.danger:hover { background: var(--panel-3); box-shadow: inset 0 0 0 1px #5a5a5a; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: default; }
.chips .btn.sm { background: transparent; color: var(--muted); box-shadow: none; }
.chips .btn.sm:hover { background: var(--panel-2); color: var(--text); }
.chips .btn.sm.gold { background: var(--panel-2); color: #ffffff; box-shadow: inset 0 0 0 1px var(--line-3); }
.icon-btn { color: var(--muted); transition: color var(--dur-1), background var(--dur-1); }
.icon-btn:hover { color: var(--text); }
.seg { background: #0d0d0d; border-radius: 8px; padding: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.seg a, .seg button { border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color var(--dur-1), background var(--dur-1); }
.seg a:hover, .seg button:hover { color: var(--text); }
.seg a.on, .seg button.on, .seg .on { background: var(--panel-3); color: #ffffff; box-shadow: inset 0 0 0 1px var(--line-3); }

/* ---- tags & states: told apart by shape and words */
.tag { gap: 5px; padding: 2px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; background: transparent; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2); }
.tag.gold { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); background: transparent; }
.tag.ok { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; }
.tag.err { background: #f2f2f2; color: #080808; box-shadow: none; }
.tag.blue { color: var(--text-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.notice, .alert, .flash, .toast { border-radius: 8px; background: var(--panel); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.notice.err, .alert.err, .flash.error, .toast.error { box-shadow: inset 0 0 0 1px #5a5a5a, inset 3px 0 0 #f2f2f2; color: var(--text); }
.notice.warn, .alert.warn { box-shadow: inset 0 0 0 1px var(--line-3), inset 3px 0 0 #8a8a8a; }
.notice.err .n-ic { background: #f2f2f2; color: #080808; } .notice.warn .n-ic { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.notice.info .n-ic, .notice.ok .n-ic { background: var(--panel-2); color: var(--text-2); }
.notice .n-x:hover { transform: none; }
.toast { background: #161616; box-shadow: inset 0 0 0 1px var(--line-3), var(--shadow-3); animation: li-toast var(--dur-3) var(--ease) both; }
.toast .t-ic { color: var(--text); }
.toast.out { animation: li-toast-out var(--dur-2) var(--ease) both; }
@keyframes li-toast { from { opacity: 0; transform: translateY(4px); } }
@keyframes li-toast-out { to { opacity: 0; transform: translateY(4px); } }

/* ---- forms */
input, select, textarea { font-size: 14px; border-radius: var(--radius-sm); padding: 9px 12px; background: #0d0d0d; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--dur-1) var(--ease), background var(--dur-1); }
input::placeholder, textarea::placeholder { color: #666666; }
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
input:focus, select:focus, textarea:focus { background: #0f0f0f; box-shadow: inset 0 0 0 1px #f2f2f2; outline: 0; }
select { background: #0d0d0d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23a3a3a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
input[type="checkbox"], input[type="radio"] { accent-color: #f2f2f2; }
input[type="file"]::file-selector-button { background: #f2f2f2; color: #080808; border-radius: 6px; font: 600 12.5px var(--font); }
label { color: var(--text-2); font-weight: 500; font-size: 13px; }
.switch { background: #2a2a2a; box-shadow: inset 0 0 0 1px var(--line-3); transition: background var(--dur-2) var(--ease); }
.switch span { background: #8a8a8a; transition: transform var(--dur-2) var(--ease), background var(--dur-2); }
.switch.is-on { background: #f2f2f2; box-shadow: none; }
.switch.is-on span { background: #080808; }

/* ---- tables */
th { padding: 10px; color: var(--faint); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--text-2); }
table tr:hover td { background: #0d0d0d; }

/* ---- menus, dialogs, tooltips */
.menu-pop { background: #131313; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3); }
.menu-pop a, .menu-pop button { border-radius: 6px; font-weight: 500; font-size: 13px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--panel-3); }
dialog { color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .72); }
.more-sheet[open], .day-sheet[open] { background: #101010 !important; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3) !important; }
/* chart tooltips: a dark card, the value in bright white (mono), the date in grey */
.chart .tip, .tip { background: #161616 !important; color: var(--muted) !important; border-radius: 7px !important;
  box-shadow: inset 0 0 0 1px var(--line-3), var(--shadow-2) !important; padding: 8px 11px !important; }
.chart .tip b, .tip b { display: block; color: #ffffff !important; font: 600 15px/1.3 var(--font-mono) !important; letter-spacing: -.02em; }
.chart .tip span, .tip span { color: var(--muted) !important; font: 500 12px var(--font) !important; }

/* ---- covers: calm in black & white, the real colors when you point at one */
.cover { border-radius: 8px; background: #0f0f0f; box-shadow: inset 0 0 0 1px var(--line); }
.cover img, .deck-card img, .lab-row img, .film .cover img { filter: grayscale(1) contrast(1.04) brightness(.92); transition: filter var(--dur-3) var(--ease); }
.cover:hover img, .cover:focus-visible img, .deck-btn:hover .deck-card.top img, .lab-row:hover img { filter: none; }
.cover .play span { background: rgba(8, 8, 8, .72); color: #f2f2f2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: none; }
.cover::before, .cover::after { animation: none !important; }
.nocover .spin, .spin { border-color: var(--line-3) !important; border-top-color: #f2f2f2 !important; }

/* ---- key figures */
.ktile { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--dur-1), background var(--dur-1); }
.ktile:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line-3); }
.ktile.on { background: var(--panel-2); box-shadow: inset 0 0 0 1px #f2f2f2; }
.lv-dot { background: #f2f2f2; animation: none; box-shadow: none; }
.lv-today b, .bh-sub em.up, .bh-sub em.down { color: var(--text); }
.bh-sub em.up::before { content: "▲ "; font-size: .8em; } .bh-sub em.down::before { content: "▼ "; font-size: .8em; }
.ring .bar { stroke: #f2f2f2; }

/* ---- Malory: small, monochrome, never in the way */
.malory-dock .md-bubble { background: #131313; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); border-radius: 10px 10px 3px 10px; }
.md-bubble b i { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-3); border-radius: 4px; }
.malory-dock:hover .md-bot { transform: none; }
.ml-tip { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 8px; }

/* ---- motion: short, opacity first, never decorative and permanent */
.reveal { animation: li-rise var(--dur-3) var(--ease) both; animation-delay: calc(var(--d, 0) * .4ms); }
@keyframes li-rise { from { opacity: 0; transform: translateY(3px); } }
::view-transition-old(page) { animation: var(--dur-1) ease both vt-out; }
::view-transition-new(page) { animation: var(--dur-3) var(--ease) both vt-in; }
.bumped { animation: none !important; }
.pbar, .progress-bar { background: #f2f2f2 !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; } }

/* ---- command palette (⌘K) and shortcuts */
dialog.cmdk { width: min(620px, calc(100vw - 32px)); max-height: 70vh; margin: 13vh auto 0; padding: 0; border: 0; border-radius: 12px; background: #0f0f0f;
  box-shadow: inset 0 0 0 1px var(--line-3), var(--shadow-3); overflow: hidden; }
dialog.cmdk[open] { display: flex; flex-direction: column; animation: li-pop var(--dur-2) var(--ease) both; }
@keyframes li-pop { from { opacity: 0; transform: translateY(-4px); } }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cmdk-in .cmdk-ic { color: var(--faint); display: grid; }
.cmdk-in input { flex: 1; padding: 6px 0; background: transparent; box-shadow: none; font-size: 15px; }
.cmdk-in input:focus { box-shadow: none; background: transparent; }
.cmdk-list { overflow-y: auto; padding: 6px; min-height: 0; }
.cmdk-group { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.cmdk-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text-2);
  font: 500 13.5px var(--font); text-align: left; cursor: pointer; }
.cmdk-item svg.i { color: var(--faint); }
.cmdk-item.on { background: var(--panel-3); color: #ffffff; }
.cmdk-item.on svg.i { color: var(--text); }
.ci-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-s { margin-left: auto; flex: none; font: 500 11px var(--font-mono); color: var(--faint); }
.cmdk-empty { padding: 26px; text-align: center; color: var(--faint); font-size: 13px; }
.cmdk-foot { display: flex; gap: 18px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 4px; }
dialog.keys-sheet { width: min(420px, calc(100vw - 32px)); padding: 18px 20px; border: 0; border-radius: 12px; background: #0f0f0f; box-shadow: inset 0 0 0 1px var(--line-3), var(--shadow-3); }
.ks-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ks-head b { font: 650 15px var(--font-display); }
.ks { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 13px; color: var(--text-2); }
.ks dt { display: flex; gap: 4px; } .ks dd { margin: 0; }
.ms-close { background: var(--panel-2) !important; color: var(--text) !important; border-radius: 6px !important; }

/* ---- Focus mode: only the work; the way out stays visible */
.focus-exit { display: none; }
html.focus .side, html.focus .tabbar, html.focus .malory-dock, html.focus .notices, html.focus .ml-tip, html.focus [data-secondary],
html.focus .topdrag { display: none !important; }
html.focus .shell { grid-template-columns: minmax(0, 1fr); }
html.focus main { max-width: 1040px; }
html.focus .focus-exit { display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 70; top: 14px; right: 16px; height: 32px; padding: 0 10px;
  border: 0; border-radius: var(--radius-sm); background: #0f0f0f; color: var(--muted); font: 500 12.5px var(--font); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-3); }
html.focus .focus-exit:hover { color: var(--text); }
.is-desktop.focus .focus-exit { top: 38px; }

/* ---- phones */
@media (max-width: 900px) {
  main { padding: 22px 16px calc(110px + env(safe-area-inset-bottom, 0px)); }
  h1 { font-size: 24px; }
  .tabbar { background: rgba(10, 10, 10, .96); border-top: 1px solid var(--side-line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar a, .tabbar button { color: var(--faint); border-radius: 8px; font-weight: 500; }
  .tabbar .on { color: #ffffff; background: transparent; }
  .tabbar .on svg.i { color: #ffffff; }
  .tabbar .on::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: #f2f2f2; }
  .tb-badge { background: #f2f2f2; color: #080808; border-radius: 4px; }
  .tb-dot { background: #f2f2f2; }
  .side-tools { display: none; }
}

/* ---- people's pictures (avatars) and content emojis stay quiet: grey until pointed at */
.avatar img, .xav img, .ml-avatar img, img.avatar, .avatar, .xav { filter: grayscale(1); }
.avatar:hover, .xav:hover, .avatar:hover img { filter: none; }
/* ---- Atelier at rest: a calm empty state, no endless spinner */
.shop-idle { display: grid; justify-items: center; gap: 8px; color: var(--faint); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.shop-idle svg.i { width: 26px; height: 26px; }
/* ---- Malory's scenes in monochrome: the night stays, the light is controlled (no white blobs) */
.sc-nglow { opacity: calc(var(--night) * .32); mix-blend-mode: normal; }
.scene-card { background: #0c0c0c; box-shadow: inset 0 0 0 1px var(--line); }
.sc-glyphs, .sl-card { filter: none; }
/* ---- networks: one grey identity, no colored edge */
html .pf, html .pf-chip, html .pf-btn, html .vnet { --pf: #d4d4d4; }
.pf::before { display: none; }
.pf-ico { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 8px; }
.pf-chip { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 6px; }
.pf-chip .i, .pf-btn .i { color: var(--text-2); }
.pf { border-radius: var(--radius); }
/* ---- quality checks on a video: a check or a cross, the words say the rest */
ul.qa { list-style: none; padding: 0; display: grid; gap: 6px; }
ul.qa li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
ul.qa li.ko { color: var(--text); font-weight: 600; }
ul.qa li.ko svg.i { color: #080808; background: #f2f2f2; border-radius: 3px; }
/* ---- the production steps in the Atelier: small marks on one line (the account-rate stepper shares the class name) */
.stepper .st-dot { min-width: 0; width: 22px; height: 22px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-3); }
.stepper li::before { top: 10px; left: calc(-50% + 13px); right: calc(50% + 13px); height: 1px; background: var(--line-3); }
.stepper li.done::before { background: #f2f2f2; }
.stepper li.done .st-dot { background: #f2f2f2; color: #080808; box-shadow: none; }
.stepper li.on .st-dot, .stepper li.cur .st-dot { box-shadow: inset 0 0 0 1.5px #f2f2f2; }
.stepper li.on, .stepper li.cur { color: var(--text); }

/* ================================================================== 15. DISCIPLINE (campaign composition, 2026-10-15)
   Condensed titles and figures, photographs as part of the layout (static/img/lockin, prepared by
   scripts/lockin_images.py), results that dominate. Real numbers only. */
:root { --font-cond: "Barlow Condensed", "Inter Tight", "Arial Narrow", sans-serif; }
h1 { font-family: var(--font-cond); font-weight: 600; font-size: 44px; line-height: .98; letter-spacing: .002em; }
h2 { font-family: var(--font-cond); font-weight: 600; font-size: 26px; letter-spacing: .005em; line-height: 1.05; }
.page-head h1 { margin: 8px 0 10px; }
.k-val, .kpi .value, .bh-big, .bh-card b, .biz-strip b, .hr-stats b, .k-big b { font-family: var(--font-cond) !important; font-weight: 600 !important; letter-spacing: .005em !important; }
.k-val { font-size: 38px !important; }
.btn.lg { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 8px; }

/* ---- Performances hero */
.ph { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  grid-template-rows: auto 1fr; gap: 0 28px; min-height: 520px; margin: 0 0 14px; padding: 26px 30px 28px; border-radius: 14px;
  background: radial-gradient(900px 520px at 78% 30%, #151515, #060606 70%); box-shadow: inset 0 0 0 1px var(--line); }
.ph-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ph-photo, .ph-cut { position: absolute; right: 0; top: 0; height: 100%; width: 72%; object-fit: cover; object-position: 70% 30%; }
.ph-photo { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%), linear-gradient(to top, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 38%); filter: contrast(1.05); }
.ph-cut { z-index: 2; }
.ph-word { position: absolute; z-index: 1; left: 50%; top: 46%; transform: translate(-36%, -50%); white-space: nowrap; text-transform: uppercase;
  font: 700 clamp(110px, 17vw, 260px)/.8 var(--font-cond); letter-spacing: .04em;
  background: linear-gradient(180deg, #4a4a4a 0%, #262626 55%, #141414 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph.has-photo .ph-word { background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .16)); -webkit-background-clip: text; background-clip: text; }
.ph-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 3; }
.ph-top .eyebrow { color: var(--muted); }
.ph-body { align-self: end; z-index: 3; display: grid; gap: 18px; max-width: 560px; }
.ph-num { display: flex; align-items: baseline; gap: 12px; }
.ph-num b { font: 600 clamp(84px, 11vw, 150px)/.82 var(--font-cond); letter-spacing: -.005em; color: #ffffff; font-variant-numeric: tabular-nums; }
.ph-num span { font: 600 24px var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ph-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.ph-facts li { display: grid; gap: 2px; padding: 0 18px; border-left: 1px solid var(--line-3); }
.ph-facts li:first-child { padding-left: 0; border-left: 0; }
.ph-facts b { font: 600 24px/1.1 var(--font-cond); color: var(--text); font-variant-numeric: tabular-nums; }
.ph-facts span { font-size: 12px; color: var(--faint); }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-goal { grid-column: 2; grid-row: 2; align-self: end; z-index: 3; display: grid; gap: 10px; padding: 16px 18px; border-radius: 10px;
  background: rgba(8, 8, 8, .78); box-shadow: inset 0 0 0 1px var(--line-3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pg-head { display: flex; justify-content: space-between; align-items: center; }
.pg-title { font-size: 13px; color: var(--muted); } .pg-title b { font: 600 30px/1 var(--font-cond); color: #fff; margin-right: 4px; }
.pg-bar { height: 4px; background: #262626; border-radius: 2px; overflow: hidden; }
.pg-bar span { display: block; height: 100%; background: #f2f2f2; border-radius: 2px; transition: width var(--dur-3) var(--ease); }
.pg-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); } .pg-meta b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.pg-empty { margin: 0; font-size: 13px; color: var(--muted); }
dialog.goal-sheet { width: min(420px, calc(100vw - 32px)); padding: 18px 20px; border: 0; border-radius: 12px; background: #0f0f0f; box-shadow: inset 0 0 0 1px var(--line-3), var(--shadow-3); color: var(--text); }
dialog.goal-sheet::backdrop { background: rgba(0, 0, 0, .72); }

/* ---- the networks band */
.nb { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 0 14px; border-radius: 12px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); }
.nb-item { display: grid; gap: 4px; padding: 14px 18px; text-decoration: none; color: var(--text); border-left: 1px solid var(--line);
  transition: background var(--dur-1) var(--ease); }
.nb-item:first-child { border-left: 0; }
.nb-item:hover { background: #151515; }
.nb-item.on { background: #1a1a1a; box-shadow: inset 0 -2px 0 #f2f2f2; }
.nb-name { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.nb-item b { font: 600 34px/1 var(--font-cond); letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.nb-sub { font-size: 12px; color: var(--faint); } .nb-sub em { font-style: normal; color: var(--text-2); }

/* ---- the evolution, given room */
.pc-chart { padding: 24px 26px; margin: 0 0 14px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pc-head h2 { margin: 6px 0 0; font-size: 30px; }
.pc-chart .chart[data-kind=area] { min-height: 260px; }
.pc-chart details { margin-top: 12px; }

/* ---- regularity card with its photograph */
.reg { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); margin: 0 0 30px; border-radius: 14px; overflow: hidden;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-height: 300px; }
.reg-art { position: relative; background: radial-gradient(420px 300px at 40% 40%, #181818, #070707); overflow: hidden; }
.reg-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05);
  -webkit-mask-image: linear-gradient(to right, #000 60%, transparent); mask-image: linear-gradient(to right, #000 60%, transparent); }
.reg-word { position: absolute; left: -6px; bottom: -14px; font: 700 96px/.8 var(--font-cond); text-transform: uppercase; letter-spacing: .02em;
  writing-mode: vertical-rl; transform: rotate(180deg); background: linear-gradient(0deg, #2e2e2e, #121212); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reg-body { padding: 24px 26px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.reg-num { display: flex; align-items: baseline; gap: 10px; }
.reg-num b { font: 600 84px/.85 var(--font-cond); color: #fff; font-variant-numeric: tabular-nums; }
.reg-num span { font: 600 20px var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.reg-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.reg-facts li { display: grid; gap: 2px; padding: 12px 14px 0; border-left: 1px solid var(--line); }
.reg-facts li:first-child { border-left: 0; padding-left: 0; }
.reg-facts b { font: 600 26px/1.05 var(--font-cond); font-variant-numeric: tabular-nums; } .reg-facts span { font-size: 12px; color: var(--faint); }
.reg .chart { min-height: 150px; }

@media (max-width: 900px) {
  .ph { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 20px 18px 20px; gap: 18px; }
  .ph-photo, .ph-cut { width: 100%; height: 62%; object-position: 60% 20%; }
  .ph-photo { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
  .ph.has-photo .ph-body { margin-top: 180px; }
  .ph-word { top: 26%; left: 50%; transform: translate(-50%, -50%); font-size: 26vw; }
  .ph-goal { grid-column: 1; grid-row: auto; }
  .ph-num b { font-size: 86px; }
  .ph-facts li { padding: 0 12px; } .ph-facts b { font-size: 20px; }
  .nb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-item:nth-child(3) { border-left: 0; } .nb-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .reg { grid-template-columns: minmax(0, 1fr); }
  .reg-art { min-height: 160px; }
  .reg-art img { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
  .reg-word { writing-mode: horizontal-tb; transform: none; left: 12px; bottom: -10px; font-size: 76px; }
  .reg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .reg-facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  h1 { font-size: 36px; }
}

/* the content area decides (not the window): the composition follows the room it really has */
main { container: main / inline-size; }
.ph-num b { font-size: clamp(72px, 13cqi, 156px); white-space: nowrap; }
.ph-word { left: auto; right: -2%; transform: translateY(-50%); font-size: clamp(100px, 19cqi, 270px); }
.nb { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container main (max-width: 980px) {
  .ph { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 22px; }
  .ph-goal { grid-column: 1; grid-row: auto; max-width: 520px; }
  .ph-word { top: 30%; right: -4%; font-size: 24cqi; }
  .ph:not(.has-photo) .ph-body { margin-top: 120px; }
  .ph-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .ph-facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@container main (max-width: 720px) {
  .nb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-item:nth-child(3) { border-left: 0; } .nb-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .reg { grid-template-columns: minmax(0, 1fr); }
  .reg-art { min-height: 150px; }
  .reg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .reg-facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .reg-word { writing-mode: horizontal-tb; transform: none; left: 14px; bottom: -12px; font-size: 22cqi; }
}
/* narrow room (window or phone): the picture on top, centred and faded downwards; the figures below it, on clear black */
@container main (max-width: 980px) {
  .ph-art { inset: 0 0 auto 0; height: 64cqi; }
  .ph-photo, .ph-cut { width: 100%; height: 100%; right: 0; top: 0; object-position: 50% 42%;
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent); mask-image: linear-gradient(to bottom, #000 58%, transparent); }
  .ph-athlete .ph-word { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); font-size: 21cqi; }
  .ph.has-photo .ph-body { margin-top: calc(64cqi - 150px); }
}
/* the goal sits with the figures (left, on clear black); the right side belongs to the picture */
.ph { grid-template-columns: minmax(0, 1fr); }
.ph-body { max-width: 600px; }
.ph-goal { grid-column: auto; grid-row: auto; max-width: 460px; margin-top: 4px; background: rgba(10, 10, 10, .72); }
/* A: the word lives to the right of the figures, across the statue's head (the figures keep clear black) */
.ph-athlete .ph-word { left: 45%; right: auto; top: 46%; transform: translateY(-50%); font-size: min(14.2cqi, 205px); }
.ph-athlete .ph-word { left: 47.5%; top: 47%; font-size: 10.6cqi; letter-spacing: .02em; }
.ph-top { flex-wrap: wrap; }
@container main (max-width: 980px) {
  .ph-athlete .ph-word { left: 50%; top: 52%; font-size: 16.5cqi; transform: translate(-50%, -50%); }
}
@container main (max-width: 620px) {
  .ph-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ph-tools { justify-content: flex-start; }
  .ph-variant .seg a, .ph-period a { padding: 6px 10px; }
  .ph { padding: 18px 16px 20px; }
  .ph-art { height: 78cqi; }
  .ph.has-photo .ph-body { margin-top: calc(78cqi - 190px); }
}
@container main (max-width: 620px) {
  .ph-athlete .ph-art { height: 92cqi; }
  .ph-athlete.has-photo .ph-body { margin-top: calc(92cqi - 150px); }
  .ph-athlete .ph-word { top: 38%; }
}

/* ================================================================== 16. APPLE CALM (2026-10-15): one subject at a time
   The essentials on screen, everything else one tab away; explanations behind a small (i); few buttons. */
.ptabs, .lab-tabs { display: flex; gap: 2px; margin: 26px 0 18px; padding: 0; overflow-x: auto; scrollbar-width: none;
  background: transparent; box-shadow: inset 0 -1px 0 var(--line); border-radius: 0; }
.ptabs::-webkit-scrollbar, .lab-tabs::-webkit-scrollbar { display: none; }
.ptabs a, .lab-tabs a { position: relative; flex: none; padding: 10px 14px 12px; border-radius: 0; background: transparent !important; box-shadow: none !important;
  color: var(--faint); font: 500 14px var(--font); text-decoration: none; transition: color var(--dur-1) var(--ease); }
.ptabs a:hover, .lab-tabs a:hover { color: var(--text-2); }
.ptabs a.on, .lab-tabs a.on { color: #ffffff; }
.ptabs a.on::after, .lab-tabs a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: #f2f2f2; border-radius: 2px 2px 0 0; }
.lab-tabs i { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-3); border-radius: 4px; }
[data-panel] { animation: li-rise var(--dur-3) var(--ease) both; }
.panel-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; } .panel-head h2 { margin: 0; }
.panel-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
/* (i): the explanation, on demand */
details.info { position: relative; display: inline-block; }
details.info > summary { list-style: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--faint); cursor: pointer;
  transition: color var(--dur-1), background var(--dur-1); }
details.info > summary::-webkit-details-marker { display: none; }
details.info > summary:hover, details.info[open] > summary { color: var(--text); background: var(--panel-2); }
.info-pop { position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); width: min(320px, 80vw); padding: 12px 14px; border-radius: 9px; background: #161616;
  color: var(--text-2); font: 400 12.5px/1.55 var(--font); text-transform: none; letter-spacing: 0; box-shadow: inset 0 0 0 1px var(--line-3), var(--shadow-3);
  animation: li-pop var(--dur-2) var(--ease) both; }
details.more { margin-top: 14px; } details.more > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
/* hero: one action, the goal as a single quiet line until it exists */
.ph-goal.empty { background: transparent; box-shadow: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pg-set { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--muted); font: 500 13.5px var(--font); cursor: pointer;
  transition: color var(--dur-1); }
.pg-set:hover { color: #fff; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--panel-2); }
.pc-head h2 { font-size: 26px; }
.ph-goal.empty { justify-items: start; }
.pg-set { justify-self: start; }
.pc-head { align-items: center; }
.pc-head .row { flex-wrap: nowrap; align-items: center; gap: 6px; }
.pc-head h2 { margin: 0; }
.row > details.info, .pc-head details.info { display: inline-grid; vertical-align: middle; }

/* ---- four categories in the sidebar, their pages as sub-categories at the top of the page */
.nav.cats { gap: 4px; margin-top: 10px; }
.nav.cats a { padding: 9px 11px; font-size: 14.5px; font-weight: 500; gap: 12px; }
.nav.cats a svg.i { width: 19px; height: 19px; }
.subnav { display: flex; gap: 22px; margin: -6px 0 26px; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 4px 0; color: var(--faint); font: 500 13.5px var(--font); text-decoration: none; border-bottom: 1.5px solid transparent;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.subnav a:hover { color: var(--text-2); }
.subnav a.on { color: #ffffff; border-bottom-color: #f2f2f2; }
.subnav a i { font-style: normal; margin-left: 6px; font: 500 10.5px var(--font-mono); color: var(--muted); }
html.focus .subnav { display: none; }
@media (max-width: 900px) {
  .tabbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; height: 16px; min-width: 16px; font-size: 10px; background: #f2f2f2; color: #080808; box-shadow: none; }
  .tabbar a { display: grid; justify-items: center; gap: 3px; }
  .subnav { margin: -4px 0 20px; gap: 18px; }
}
/* page descriptions: behind the (i) next to the title (fewer words on screen) */
.page-head .lead.to-info { display: none; }
.page-head h1 { display: inline-flex; align-items: center; gap: 10px; }
.page-head h1 details.info > summary { width: 24px; height: 24px; }
.page-head h1 .info-pop { left: 0; right: auto; font-family: var(--font); font-weight: 400; font-size: 12.5px; line-height: 1.55; letter-spacing: 0; }
details.info > summary { display: grid !important; list-style: none; }
details.info > summary::marker, details.info > summary::-webkit-details-marker { content: ""; display: none; }
.ptabs .tab-n { font-style: normal; margin-left: 6px; font: 500 10.5px var(--font-mono); color: var(--text); padding: 1px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-3); }
[data-panel] > .card + .card, [data-panel] > section + section { margin-top: 14px; }

details.info > summary::before, details.info > summary::after { content: none !important; display: none !important; }
details.info { margin: 0 !important; padding: 0 !important; vertical-align: middle; }
/* Réglages: quiet rows */
.set-actions { gap: 8px; margin-bottom: 14px; }
.set-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .set-head h3 { margin: 0; }
.set-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
.set-row .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3a; flex: none; } .set-row .status-dot.on { background: #f2f2f2; }
.set-end { margin-left: auto; }
.settings-save { position: sticky; bottom: 16px; z-index: 5; justify-content: flex-start; margin-top: 16px; }
.settings-save .btn { box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .9); }
[data-panel] > .card { margin-bottom: 14px; }

/* ---- the statue's aura of power: a white glow breathing around the silhouette, a rim of light along its edges */
.ph-cut.ph-aura { z-index: 2; pointer-events: none; mix-blend-mode: screen; filter: brightness(2.6) contrast(1.4) blur(26px); opacity: .42;
  transform-origin: 50% 70%; animation: aura-breathe 5.2s ease-in-out infinite; }
.ph-cut.ph-aura.rim { filter: brightness(3.2) blur(5px); opacity: .22; animation: aura-rim 2.6s ease-in-out infinite; }
.ph-cut.ph-solid { z-index: 3; }
@keyframes aura-breathe { 0%, 100% { opacity: .30; transform: scale(1); } 50% { opacity: .62; transform: scale(1.035); } }
@keyframes aura-rim { 0%, 100% { opacity: .16; } 40% { opacity: .34; } 55% { opacity: .22; } 70% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ph-cut.ph-aura { animation: none; opacity: .4; } .ph-cut.ph-aura.rim { opacity: .22; } }

/* ---- Badges: the next one large, the collection below; metal in black & white, the great ones alive */
.bd-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 34px 38px; margin-bottom: 22px;
  border-radius: 14px; background: radial-gradient(600px 340px at 18% 50%, #191919, #070707 70%); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bd-hero h1 { font-size: 64px; margin: 6px 0 4px; display: flex; align-items: baseline; gap: 14px; }
.bd-hero h1 span { font: 600 26px var(--font-cond); color: var(--muted); letter-spacing: .02em; }
.bd-rarity { display: inline-flex; padding: 3px 9px; border-radius: 4px; font: 600 11px var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.bd-rarity.sm { padding: 2px 7px; font-size: 10px; }
.bd-bar { margin: 22px 0 8px; height: 5px; max-width: 520px; }
.bd-meta { display: flex; justify-content: space-between; max-width: 520px; font-size: 12.5px; color: var(--faint); }
.bd-meta b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.bd-facts { display: flex; gap: 0; margin-top: 22px; }
.bd-facts div { display: grid; gap: 2px; padding: 0 22px; border-left: 1px solid var(--line-3); }
.bd-facts div:first-child { padding-left: 0; border-left: 0; }
.bd-facts b { font: 600 28px/1 var(--font-cond); } .bd-facts span { font-size: 12px; color: var(--faint); }
.bd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bd-card { display: grid; justify-items: center; gap: 8px; padding: 22px 14px 16px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--dur-2) var(--ease), background var(--dur-2); }
.bd-card:hover { box-shadow: inset 0 0 0 1px var(--line-3); background: #141414; }
.bd-name { display: grid; justify-items: center; gap: 1px; } .bd-name b { font: 600 24px/1 var(--font-cond); } .bd-name span { font-size: 12.5px; color: var(--muted); }
.bd-foot { display: flex; align-items: center; gap: 6px; }
.bd-state { font: 500 11.5px var(--font-mono); color: var(--faint); }
.bd-card.won .bd-state { color: var(--text-2); }
.bd-card .info-pop { left: 50%; right: auto; transform: translateX(-50%); }
.bd-card .info-pop a { color: var(--text); }
.bd-note { margin-top: 16px; display: flex; justify-content: flex-end; }
/* the medals */
.medal { display: block; overflow: visible; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .85)); }
.medal .m-label { font-family: var(--font-cond); font-weight: 700; letter-spacing: .01em; paint-order: stroke; }
.medal.locked > :not(.m-seal):not(defs) { opacity: .22; filter: grayscale(1) brightness(.6); }
.medal.locked .m-label { opacity: .35; }
.medal:not(.locked) .m-sheen { animation: m-sheen 5.5s cubic-bezier(.4, 0, .2, 1) infinite; }
.medal.tier-2:not(.locked) .m-sheen, .medal.tier-3:not(.locked) .m-sheen { animation-duration: 7s; }
@keyframes m-sheen { 0%, 62% { transform: rotate(20deg) translateX(0); } 100% { transform: rotate(20deg) translateX(320px); } }
.medal:not(.locked) .m-orbit { transform-origin: 100px 100px; animation: m-spin 26s linear infinite; }
.medal:not(.locked) .m-spin { transform-origin: 100px 100px; animation: m-spin 40s linear infinite reverse; }
@keyframes m-spin { to { transform: rotate(360deg); } }
.medal:not(.locked) .m-halo { animation: m-breathe 4.8s ease-in-out infinite; transform-origin: 100px 100px; }
@keyframes m-breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.medal:not(.locked) .m-sparks path { transform-box: fill-box; transform-origin: center; animation: m-spark 2.8s ease-in-out infinite; animation-delay: var(--d); }
@keyframes m-spark { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2) rotate(30deg); } }
.bd-card.won:hover .medal { transform: translateY(-3px); transition: transform var(--dur-3) var(--ease); }
@media (prefers-reduced-motion: reduce) { .medal * { animation: none !important; } }
@container main (max-width: 900px) {
  .bd-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 26px 18px; gap: 18px; }
  .bd-hero h1 { justify-content: center; font-size: 48px; } .bd-bar, .bd-meta { margin-left: auto; margin-right: auto; }
  .bd-facts { justify-content: center; }
  .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bd-hero-art { position: relative; display: grid; place-items: center; }
.bd-hero-art.preview .medal { filter: grayscale(1) brightness(.5) drop-shadow(0 14px 24px rgba(0, 0, 0, .85)); }
.bd-hero-art.preview .medal * { animation: none !important; }
.bd-lockchip { position: absolute; bottom: 6px; padding: 3px 9px; border-radius: 99px; background: #0a0a0a; color: var(--text); font: 500 11.5px var(--font-mono);
  box-shadow: inset 0 0 0 1px var(--line-3); }
/* no separator line between the Dock column and the page (owner) */
.side { border-right: 0 !important; box-shadow: none !important; }

/* ---- the sidebar in text again, one line per category (owner: « en texte comme avant, pas en rond »), a little narrower than before */
@media (min-width: 901px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  .is-desktop .topdrag { left: 220px; }
}
/* phone: the status sits in the top bar, so no separator line above it */
@media (max-width: 900px) { .side-foot { border-top: 0; padding-top: 0; } }
/* phone: the sticky « Enregistrer » sits above the tab bar, not under it */
@media (max-width: 900px) { .settings-save { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); } }
/* badges: the count and the % never touch */
.bd-meta { gap: 12px; }
@container main (max-width: 900px) { .bd-meta { width: 100%; } }

/* ---- Warm-up: networks set aside 5 days before their first video */
.wu-list { display: grid; gap: 12px; margin-bottom: 14px; }
.wu-card { display: grid; gap: 14px; padding: 18px 20px; }
.wu-card.done { opacity: .62; }
.wu-top { display: flex; align-items: center; gap: 14px; }
.wu-pf { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.wu-id { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wu-id b { font: 600 15px var(--font); overflow-wrap: anywhere; } .wu-id span { font-size: 12.5px; color: var(--muted); }
.wu-day { font: 600 34px/1 var(--font-cond); letter-spacing: .01em; white-space: nowrap; } .wu-day i { font-style: normal; font-size: 20px; color: var(--faint); }
.wu-steps { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
.wu-steps span { height: 4px; border-radius: 2px; background: var(--panel-3); }
.wu-steps span.on { background: var(--text-2); }
.wu-steps span.now { background: #f2f2f2; animation: wu-now 2.4s ease-in-out infinite; }
@keyframes wu-now { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .wu-steps span.now { animation: none; } }
.wu-meta { font-size: 12.5px; color: var(--muted); } .wu-meta b { color: var(--text); font: 500 12.5px var(--font-mono); }
.wu-link { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.wu-link-txt { flex: 1; min-width: 200px; display: grid; gap: 6px; } .wu-link-txt > span { font-size: 12.5px; color: var(--muted); }
.wu-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.wu-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.wu-empty { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: var(--muted); }
.wu-add .wu-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.wu-add label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.wu-add select { min-width: 240px; max-width: 100%; } .wu-add input[type=number] { width: 110px; }
.wu-none { margin: 0; font-size: 13px; color: var(--muted); }
.wu-day.wait { font-size: 22px; color: var(--muted); }

/* ---- fluidity (owner: « rends le site beaucoup plus fluide ») */
/* the statue's aura is pre-rendered (scripts/lockin_images.py): only its opacity breathes, nothing is blurred live */
.ph-cut.ph-aura.baked, .ph-cut.ph-aura.rim.baked { filter: none; will-change: opacity, transform; }
/* long lists: what is far from the screen is not drawn until it comes near */
.vgrid > .vtile { content-visibility: auto; contain-intrinsic-size: auto 380px; }
.strip > .film { content-visibility: auto; contain-intrinsic-size: 138px 300px; }
/* fixed and sticky bars: solid black, no live blur under them (they are near-opaque anyway) */
.side, .tabbar, .subnav, .settings-save, .notices, .toasts .toast, .malory-dock .md-bubble { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* the Malory corner bot moves as one composited layer */
.malory-dock .md-bot { will-change: transform; }
/* instant page changes: a short, calm cross-fade (the sidebar stays still) */
::view-transition-old(page) { animation-duration: 90ms; }
::view-transition-new(page) { animation-duration: 160ms; }
::view-transition-group(side) { animation: none; }
