/* Clip Studio panel, design 1 "Sunset". The whole page is the cover's sunset sky: deep purple on top, then pink, then orange,
   with a glowing sun, water and palms drawn in SVG (no pictures, no logos). The parts lie on it as dark glass cards
   with a sunset-coloured edge. Colours from the VI logo and the cover (Shyar 16 Nov 2026: "gta 6 game cover färger över hela sidan").
   60/30/10: 60 % the sunset sky and the deep purple glass (#1D0B38), 30 % pink to coral (#F33AA4, #FF786B: edges, numbers, bars),
   10 % yellow-orange #FFB84E (buttons). White text on the glass. Script font: Mr Dafoe (OFL).
   Contrast: white on the glass 14:1 or more; #E3D6F2 hints 11:1; #1D0B38 on the button gradient 6.8:1 or more.
   Only transform and opacity are animated. prefers-reduced-motion stops everything. */
:root {
  --bg: #1D0B38;          /* VI nr 7, deep purple: the night at the top of the sky and the glass */
  --bg-deep: #140728;     /* inputs */
  --glass: rgba(29, 11, 56, .88);
  --row: rgba(255, 255, 255, .055);
  --line: rgba(255, 176, 135, .24);
  --btn: #FFB84E;         /* VI nr 6, buttons */
  --coral: #FF786B;       /* VI nr 5 */
  --pink: #F33AA4;        /* VI nr 4 */
  --neon: #F33AA4;
  --neon-soft: rgba(243, 58, 164, .4);
  --purple: #7C44BD;      /* VI nr 2 */
  --blue: #2260CA;        /* VI nr 1 */
  --lilac: #BD8DBD;       /* cover sky */
  --peach: #FFB087;       /* cover sky */
  --plum: #9F6294;        /* cover sky */
  --white: #FFFFFF;
  --text-soft: #E3D6F2;
  --ok: #7BE000;
  --warn: #FFE04A;
  --sunset: linear-gradient(90deg, #FFB84E 0%, #FF786B 45%, #F33AA4 100%);
  --edge: linear-gradient(140deg, rgba(255, 184, 78, .95) 0%, rgba(255, 120, 107, .75) 25%, rgba(243, 58, 164, .6) 50%, rgba(124, 68, 189, .45) 75%, rgba(34, 96, 202, .6) 100%);
  --display: 'Anton', 'Bebas Neue', Impact, Haettenschweiler, 'Arial Narrow Bold', 'Franklin Gothic Medium', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sun: min(62vw, 440px);
  --horizon: 76%;
  color-scheme: dark;
}
@font-face { font-family: 'Anton'; src: url('/fonts/Anton-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mr Dafoe'; src: url('/fonts/MrDafoe-Regular.ttf') format('truetype'); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--white); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: transparent; position: relative;
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a { color: var(--white); font-weight: 700; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 9; padding: 10px 14px; background: var(--btn); color: var(--bg); border-radius: 999px; font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- The sky behind everything ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.sky-a, .sky-b { position: absolute; inset: 0; }
.sky-a { background: linear-gradient(180deg, #1D0B38 0%, #2B1052 16%, #4E2486 30%, #7C44BD 40%, #9F6294 50%, #F33AA4 61%, #FF786B 69%, #FFB087 var(--horizon)); }
.sky-b { opacity: 0; background: linear-gradient(180deg, #1D0B38 0%, #351463 18%, #7C44BD 34%, #BD8DBD 48%, #FF786B 62%, #FFB84E 71%, #FFB087 var(--horizon)); }
.stars { position: absolute; left: 0; right: 0; top: 0; height: 34%;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 26%, #FFD6F2 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 10%, #FFD6F2 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 44%, #fff 50%, transparent 51%);
  opacity: .7; }
.sun-glow { position: absolute; width: calc(var(--sun) * 2.8); height: calc(var(--sun) * 2.8); left: calc(50% - var(--sun) * 1.4); top: calc(var(--horizon) - var(--sun) * 1.55);
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, .7) 0%, rgba(255, 120, 107, .38) 26%, rgba(243, 58, 164, .16) 46%, transparent 68%); }
.sun { position: absolute; width: var(--sun); height: var(--sun); left: calc(50% - var(--sun) / 2); top: calc(var(--horizon) - var(--sun) * .58); border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #FFF4DA 0%, #FFE0A0 24%, #FFB84E 52%, #FF8A68 78%, #FF786B 100%);
  box-shadow: 0 0 60px rgba(255, 184, 78, .7), 0 0 140px rgba(255, 120, 107, .5); }
.haze { position: absolute; left: -20%; width: 140%; border-radius: 50%; }
.haze.h1 { top: calc(var(--horizon) - 18%); height: 7%; background: radial-gradient(ellipse at center, rgba(243, 58, 164, .55), transparent 70%); }
.haze.h2 { top: calc(var(--horizon) - 9%); height: 5%; background: radial-gradient(ellipse at center, rgba(159, 98, 148, .7), transparent 70%); }
.birds { position: absolute; top: 24%; left: 0; width: 84px; height: 28px; }
.water { position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0;
  background: linear-gradient(180deg, #9F6294 0%, #5A2A7E 12%, #2E1259 45%, #1D0B38 100%); }
.water::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #FFD6A8 30%, #FFF4DA 50%, #FFD6A8 70%, transparent); opacity: .9; }
.reflect { position: absolute; left: calc(50% - var(--sun) * .45); width: calc(var(--sun) * .9); top: 0; height: 75%; transform-origin: 50% 0;
  background: repeating-linear-gradient(180deg, rgba(255, 210, 140, .9) 0 3px, transparent 3px 11px);
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 0%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 50% 100% at 50% 0%, #000 20%, transparent 72%); }
.palms { position: absolute; bottom: 0; width: min(48vw, 440px); height: auto; aspect-ratio: 400 / 420; }
.palms.left { left: 0; }
.palms.right { right: 0; }
.sway { transform-box: fill-box; transform-origin: 50% 100%; }

/* ---------- Top: the art as a postcard, the name in script ---------- */
.case { max-width: 1440px; margin: 0 auto; }
.cover { position: relative; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(12px, env(safe-area-inset-top)) 16px 0; min-height: 56px; }
.mode { margin: 0; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .1em;
  background: rgba(29, 11, 56, .82); color: var(--white); border: 1px solid rgba(255, 184, 78, .7); }
.mode::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.mode.live::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
#logout { margin-left: auto; background: rgba(29, 11, 56, .82); }
.hero { display: grid; padding: 10px 16px 4px; }
.postcard { margin: 0; padding: 5px; border-radius: 26px; background: linear-gradient(135deg, #FFB84E, #FF786B 30%, #F33AA4 60%, #7C44BD);
  box-shadow: 0 30px 60px -24px rgba(20, 5, 40, .9), 0 0 50px rgba(255, 120, 107, .35); transform: rotate(-1.2deg); }
.art { position: relative; overflow: hidden; border-radius: 21px; aspect-ratio: 780 / 692; background: #BD8DBD; }
.art::before { content: ""; position: absolute; inset: 0; background: url('/art/jason-lucia-mobile.jpg') center top / cover no-repeat; transform-origin: 60% 40%; }
.art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(29, 11, 56, .55)); }
.blurb { position: relative; z-index: 1; margin: -54px 10px 0; padding: 18px 18px 16px; border-radius: 22px; background: var(--glass); color: var(--white); }
.blurb::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: var(--edge); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.welcome { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; color: var(--peach); }
.script { margin: 2px 0 4px; padding: 0 4px 6px 2px; font-family: 'Mr Dafoe', 'Segoe Script', 'Brush Script MT', cursive; font-size: 58px; line-height: 1.05; white-space: nowrap;
  color: #FFD9B0; background: linear-gradient(90deg, #FFE1A6 0%, #FFB84E 30%, #FF8A7A 60%, #FF7FC4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(243, 58, 164, .55)); transform: rotate(-3deg); transform-origin: left center; display: inline-block; }
.brand { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--white); }
.mode-line { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-soft); }

.testdata { position: relative; margin: 20px 16px 0; padding: 10px 14px; border: 2px dashed var(--pink); border-radius: 14px; background: rgba(29, 11, 56, .88); color: var(--white); font-size: 14px; }
.testdata strong { display: block; color: #FF8CCB; letter-spacing: .12em; }

/* ---------- Layout ---------- */
main { display: grid; gap: 20px; padding: 20px 16px 28px; outline: none; }
#panel, .first, .trio, .rest { display: grid; gap: 20px; }

/* At a glance: the three first things */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 12px 12px 10px; border-radius: 18px; overflow: hidden;
  background: var(--glass); color: var(--white); text-decoration: none; min-width: 0; }
.g::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sunset); }
.g.g-al::before { background: linear-gradient(90deg, #FF786B, #F33AA4); }
.g.g-li::before { background: linear-gradient(90deg, #7C44BD, #2260CA); }
.g .ico { width: 22px; height: 22px; color: var(--btn); }
.g.g-al .ico { color: #FF8CCB; }
.g.g-li .ico { color: #C9A6F0; }
.g-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.g-v { font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: 17px; line-height: 1.15; letter-spacing: .03em; overflow-wrap: anywhere; }
.g.hot .g-v { color: #FF9C92; }
.g.hot::after { content: ""; position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); }

/* ---------- Cards: dark glass with a sunset edge ---------- */
.card { position: relative; padding: 20px 18px; min-width: 0; border-radius: 24px;
  background: linear-gradient(165deg, rgba(52, 20, 92, .92) 0%, rgba(29, 11, 56, .93) 45%, rgba(22, 7, 44, .94) 100%);
  box-shadow: 0 26px 50px -28px rgba(10, 2, 24, .95); }
.card::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: var(--edge); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.login { max-width: 480px; width: 100%; margin: 0 auto; }

h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; }
h1, h2 { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 14px;
  font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
h1::after, h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 3px; border-radius: 3px; background: var(--sunset); transform-origin: left center; }
h1 .ico, h2 .ico { width: 36px; height: 36px; padding: 7px; border-radius: 50%; color: var(--btn); background: rgba(255, 184, 78, .12); box-shadow: inset 0 0 0 1px rgba(255, 184, 78, .45); }
h2 > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sn { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--sunset); color: var(--bg); font-family: system-ui, sans-serif; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
h3 { font-size: 13px; margin-top: 18px; text-transform: uppercase; letter-spacing: .14em; color: var(--peach); }
p { margin: 0 0 10px; }
.hint { color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.warn-text { color: #FF9C92; }
.msg { min-height: 1.5em; margin: 8px 0 0; color: var(--ok); font-size: 14px; font-weight: 700; }
.msg.err { color: #FF9C92; }

label { display: block; margin: 12px 0 4px; font-weight: 700; font-size: 14px; color: var(--white); }
input[type=email], input[type=password], input[type=number], input:not([type]), input[type=url], input[type=datetime-local], input[type=date], select {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--white); background: rgba(20, 7, 40, .85);
  border: 1.5px solid rgba(189, 141, 189, .6); border-radius: 12px; color-scheme: dark; }
input::placeholder { color: #B9A6D6; }
input:focus, select:focus { border-color: var(--btn); box-shadow: 0 0 0 4px rgba(255, 184, 78, .18); outline: none; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

/* Buttons: sunset pill, they give way under the finger */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 44px; padding: 10px 22px; margin-top: 14px;
  border: 1.5px solid var(--btn); border-radius: 999px; font: inherit; font-weight: 800; font-size: 15px; letter-spacing: .03em; cursor: pointer; touch-action: manipulation; user-select: none; }
.btn.small { margin: 0; min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn.primary { border: 0; background: linear-gradient(90deg, #FFB84E, #FF9A5E 55%, #FF8A70); color: var(--bg); box-shadow: 0 10px 24px -10px rgba(255, 140, 90, .8); }
.btn.ghost, .btn.danger { background: rgba(29, 11, 56, .4); color: var(--btn); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }

/* 01 Uploads: the big PAUSE ALL */
.pause-state { font-size: 18px; font-weight: 800; }
.pause.on .pause-state { color: #FF9C92; }
.pause.on::after { content: ""; position: absolute; inset: -6px; border-radius: 30px; border: 2px solid var(--coral); pointer-events: none; opacity: .8; }
.pause-btn { position: relative; width: 100%; min-height: 76px; margin-top: 10px; border: 0; font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: 26px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bg); background: linear-gradient(100deg, #FFB84E 0%, #FF786B 55%, #F33AA4 100%); box-shadow: 0 16px 34px -14px rgba(243, 58, 164, .9), inset 0 1px 0 rgba(255, 255, 255, .45); overflow: hidden; }
.pause-btn::before { content: ""; width: 6px; height: 24px; margin-right: 14px; border-radius: 2px; background: var(--bg); box-shadow: 10px 0 0 var(--bg); flex: none; }
.pause-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%) skewX(-20deg); }

/* 02 Alerts */
.alerts-card h2 .ico { color: #FF8CCB; background: rgba(243, 58, 164, .14); box-shadow: inset 0 0 0 1px rgba(243, 58, 164, .5); }
.alert-cols { display: grid; gap: 18px; }
.alert-cols h3 { margin-top: 4px; }
.phone-alerts { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.phone-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.phone-btns .btn { margin-top: 4px; }
.count { color: var(--text-soft); font-weight: 700; letter-spacing: 0; }

/* Lists inside the cards */
.steps, .clips, .streamers, .accounts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 14px;
  background: var(--row); border: 1px solid var(--line); border-left: 4px solid var(--purple); }
.steps .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 184, 78, .14); color: var(--btn); font-weight: 900; font-size: 13px; }
.steps .t { font-weight: 700; font-size: 15px; }
.steps .sub { grid-column: 2 / 4; font-size: 13px; color: var(--text-soft); overflow-wrap: anywhere; }
.steps li.ok { border-left-color: var(--ok); }
.steps li.error { border-left-color: var(--coral); border-color: var(--coral); }
.steps li.never { border-left-style: dashed; }
.steps li.notbuilt { border-left: 4px dotted #9C8CB8; }
.steps li.notbuilt .n { color: #D2C6E6; background: rgba(156, 140, 184, .18); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  border: 1px solid currentColor; background: rgba(20, 7, 40, .6); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 6px currentColor; }
.badge.ok, .badge.green { color: var(--ok); }
.badge.error, .badge.red { color: #FF9C92; }
.badge.never { color: var(--white); border-style: dashed; }
.badge.notbuilt { color: #D2C6E6; border-style: dotted; }
.badge.off { color: var(--text-soft); }
.badge.yellow { color: var(--warn); }

.accounts li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; padding: 10px 14px; border-radius: 14px; background: var(--row); border: 1px solid var(--line); }
.accounts li .hint { margin: 0; }
.providers { display: grid; gap: 10px; }
.providers .btn { width: 100%; margin: 0; padding: 10px 14px 10px 18px; justify-content: space-between; flex-wrap: wrap; text-align: left; border-radius: 16px; }
.providers .badge { font-size: 11px; letter-spacing: .02em; padding: 2px 7px; }

.clips li, .streamers li { padding: 14px; border-radius: 16px; background: var(--row); border: 1px solid var(--line); min-width: 0; }
.row-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.row-top b { overflow-wrap: anywhere; }
.row-top .badge { flex: none; }
.meta { margin: 6px 0 0; font-size: 13px; color: var(--text-soft); overflow-wrap: anywhere; }
.meta a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--white); }
.note, .redline { position: relative; margin: 8px 0 0; padding: 8px 10px 8px 34px; border-radius: 10px; background: rgba(255, 120, 107, .12); color: var(--white); border: 1px solid var(--coral); font-size: 14px; overflow-wrap: anywhere; }
.note::before, .redline::before { content: ""; position: absolute; left: 12px; top: 14px; width: 10px; height: 10px; background: var(--coral); transform: rotate(45deg); }
.streamers li.red { border: 2px solid var(--coral); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; box-shadow: 0 0 6px currentColor; }
.dot.green { background: var(--ok); color: var(--ok); } .dot.yellow { background: var(--warn); color: var(--warn); } .dot.red { background: var(--coral); color: var(--coral); }
.unapproved { margin-top: 18px; padding: 12px 14px; border: 1px dashed rgba(255, 176, 135, .6); border-radius: 14px; }
.switch-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.switch-row label { margin: 0; }
.switch-row input { width: 24px; height: 24px; margin: 0; accent-color: var(--pink); }
.brain-state { font-weight: 700; color: var(--ok); }
.brain-state.unset { color: #FF9C92; }

.alerts, .views, .gate, .reasons { list-style: none; margin: 0; padding: 0; }
.alerts, .views, .gate { display: grid; gap: 10px; }
.alerts > li, .views > li, .gate > li, .rule { padding: 14px; border-radius: 16px; background: var(--row); border: 1px solid var(--line); min-width: 0; }
.alerts > li.open, .gate > li.stopped { border-left: 4px solid var(--coral); background: linear-gradient(90deg, rgba(255, 120, 107, .14), var(--row) 50%); }
.alerts > li.done { border-left: 4px solid var(--ok); }
.gate > li.held { border-left: 4px solid var(--warn); }
li.empty, p.empty { padding: 10px 14px; border-radius: 14px; border: 1px dashed rgba(255, 176, 135, .5); color: var(--text-soft); font-size: 14px; background: none; }
.msgline { margin: 8px 0 0; font-size: 14px; color: var(--white); overflow-wrap: anywhere; }

.tablewrap { margin-top: 10px; overflow-x: auto; }
.views table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.views th, .views td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.views thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.views th[scope=row], .views thead th:first-child { text-align: left; }
.views td { font-weight: 800; color: var(--white); }
.views td.notyet { font-weight: 600; font-size: 12px; color: var(--text-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gate-sum { font-weight: 800; }
.reasons { display: grid; gap: 6px; margin-top: 10px; }
.reasons li { position: relative; padding: 8px 10px 8px 30px; border-radius: 10px; font-size: 14px; color: var(--white); background: rgba(255, 120, 107, .12); border: 1px solid var(--coral); overflow-wrap: anywhere; }
.reasons li::before { content: ""; position: absolute; left: 11px; top: 14px; width: 9px; height: 9px; background: var(--coral); transform: rotate(45deg); }
.gate > li.held .reasons li { background: rgba(255, 224, 74, .08); border-color: var(--warn); }
.gate > li.held .reasons li::before { background: var(--warn); }

/* 13 Cost */
.cost-big { margin: 4px 0 12px; font-size: 15px; color: var(--text-soft); }
.cost-big .spent { font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: 44px; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; margin-right: 6px; }
.meter { height: 16px; border-radius: 999px; background: rgba(20, 7, 40, .9); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.meter span { display: block; height: 100%; width: 0; background: var(--sunset); border-radius: 999px; }
.meter.high span { background: linear-gradient(90deg, #FF786B, #F33AA4); }
#cost-note { margin-top: 10px; }

.rule-id { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 15px; }
.change { margin: 8px 0 0; font-size: 22px; font-weight: 900; color: var(--white); font-variant-numeric: tabular-nums; }
.rule h3 { margin: 14px 0 0; font-size: 12px; }

/* 03 Live */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dash-head h2 { margin: 0; }
.dash-test { margin: 0; padding: 4px 12px; border: 2px dashed var(--pink); border-radius: 999px; color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.dash h2 .ico { color: #C9A6F0; background: rgba(124, 68, 189, .22); box-shadow: inset 0 0 0 1px rgba(189, 141, 189, .6); }
.now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 48px; margin: 4px 0 16px; padding: 10px 16px; border-radius: 22px;
  background: linear-gradient(90deg, rgba(243, 58, 164, .2), rgba(255, 184, 78, .1)); border: 1px solid rgba(243, 58, 164, .45); }
.now-dot { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--btn); box-shadow: 0 0 8px var(--btn); }
.now-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--btn); opacity: 0; }
.now-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); }
.now-text { flex: 1 1 200px; min-width: 0; font-weight: 700; font-size: 15px; color: var(--white); overflow-wrap: anywhere; }

.tiles { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { --c: #FFB84E; position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 14px 14px; border-radius: 18px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 60%), var(--row); border: 1px solid var(--line); }
.tile::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.tile.t1 { --c: #FFB84E; } .tile.t2 { --c: #F33AA4; } .tile.t3 { --c: #FF786B; } .tile.t4 { --c: #FFE04A; } .tile.t5 { --c: #FF8CCB; } .tile.t6 { --c: #BD8DBD; } .tile.step { --c: #7C9CE8; }
.tile .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.tile .v { font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: 36px; line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
.tile .of { font-size: 13px; color: var(--text-soft); }
.tile.step { grid-column: 1 / -1; }
.tile.step .step-name { font-size: 17px; font-weight: 800; color: var(--white); overflow-wrap: anywhere; }
.tile.step.running { border-color: var(--btn); }
.delta { position: absolute; top: -12px; right: 10px; z-index: 1; padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--bg); background: var(--sunset);
  opacity: 0; animation: delta 2.4s ease-out forwards; }
.delta.down { background: var(--text-soft); }
@keyframes delta { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }

/* Rolling numbers: one column 0-9 per digit, moved with transform */
.odo { display: inline-flex; align-items: flex-start; white-space: nowrap; line-height: 1.1; }
.digit { display: block; height: 1.1em; overflow: hidden; }
.col { display: flex; flex-direction: column; transition: transform 1.1s var(--ease); }
.col span { display: block; height: 1.1em; line-height: 1.1; text-align: center; }
.sym { display: block; height: 1.1em; line-height: 1.1; }

.dash-lines { display: grid; gap: 8px; margin-bottom: 4px; }
.places { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; margin: 0; padding: 10px 14px; border-radius: 14px;
  background: var(--row); border: 1px solid var(--line); color: var(--white); font-size: 14px; overflow-wrap: anywhere; }
.places-k { font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--btn); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; min-height: 44px; }
.bars .name { font-weight: 700; font-size: 14px; }
.bars .track, .weights .track { position: relative; height: 14px; border-radius: 999px; background: rgba(20, 7, 40, .9); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bars .fill, .weights .fill { display: block; height: 100%; border-radius: 999px; background: var(--sunset); transform-origin: left center; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.bars li:nth-child(2) .fill { background: linear-gradient(90deg, #F33AA4, #7C44BD); }
.bars li:nth-child(3) .fill { background: linear-gradient(90deg, #7C44BD, #2260CA); }
.bars .v { min-width: 72px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 14 Learning Loop: green = does better, coral = does worse, the white line = 1 (average) */
.learn-cols, .footage-cols { display: grid; gap: 8px 28px; }
.learn h3, .footage-cols h3 { margin: 16px 0 8px; font-size: 13px; }
.weights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.weights li { display: grid; grid-template-columns: minmax(0, 120px) 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 10px; min-height: 44px; }
.weights .name { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.weights .fill.up { background: linear-gradient(90deg, #4FA800, #7BE000); }
.weights .fill.down { background: linear-gradient(90deg, #F33AA4, #FF786B); }
.weights .one { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--white); }
.weights .v { min-width: 56px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.weights .sub { grid-column: 2 / -1; font-size: 12px; color: var(--text-soft); }
#w-range { margin-top: 14px; }
.footage-cols code { overflow-wrap: anywhere; color: var(--white); }

/* Paid clip offers */
.offer-link { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.offer-remove { margin-top: 8px; }

/* Footer */
.strip { padding: 0 16px 28px; }
.strip p { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; border-radius: 999px; background: var(--glass); color: var(--text-soft);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; width: fit-content; max-width: 100%; }
.strip .ico { color: var(--btn); }

/* ---------- Bigger screens ---------- */
@media (min-width: 768px) {
  .bar { padding: 18px 28px 0; }
  .hero { padding: 14px 28px 8px; }
  .script { font-size: 72px; }
  main, .testdata { margin-left: 28px; margin-right: 28px; }
  main { padding: 24px 0 32px; gap: 24px; }
  #panel, .first, .trio, .rest { gap: 24px; }
  .card { padding: 24px 24px; }
  .glance { gap: 14px; }
  .g { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 16px 18px; }
  .g-k { flex: 1; }
  .g-v { flex-basis: 100%; font-size: 20px; }
  .trio, .rest { grid-template-columns: 1fr 1fr; align-items: start; }
  .rest .card.wide { grid-column: 1 / -1; }
  .clips, .streamers, .views, .gate { grid-template-columns: 1fr 1fr; }
  .alert-cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .dash-lines { grid-template-columns: 1fr 1fr; }
  .bars li { grid-template-columns: 110px 1fr 90px; }
  .strip { padding: 0 28px 32px; }
  .learn-cols, .footage-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 0; padding-top: 18px; }
  .art { aspect-ratio: 16 / 9; }
  .art::before { background-image: url('/art/jason-lucia-wide.jpg'); background-position: 30% 25%; }
  .blurb { margin: 0 0 0 -40px; padding: 28px 30px 24px; }
  .script { font-size: clamp(72px, 6vw, 92px); }
  .first { grid-template-columns: minmax(320px, .8fr) minmax(0, 1.6fr); align-items: start; }
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .tile.step { grid-column: 1 / -1; }
  .clips, .streamers, .views, .gate { grid-template-columns: repeat(3, 1fr); }
  .rest .card.learn { grid-column: 1 / -1; }
}

/* ---------- Motion (only with no reduced-motion wish) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sky-b { animation: dusk 20s ease-in-out infinite alternate; }
  .stars { animation: twinkle 5s ease-in-out infinite alternate; }
  .sun-glow { animation: glow 8s ease-in-out infinite alternate; }
  .sun { animation: sunbreath 12s ease-in-out infinite alternate; }
  .haze.h1 { animation: drift 46s ease-in-out infinite alternate; }
  .haze.h2 { animation: drift 34s ease-in-out infinite alternate-reverse; }
  .birds { animation: fly 48s linear infinite; }
  .reflect { animation: shimmer 4.5s ease-in-out infinite alternate; }
  .sway.s1 { animation: sway 7s ease-in-out infinite alternate; }
  .sway.s2 { animation: sway 9s ease-in-out -3s infinite alternate; }
  .sway.s3 { animation: sway 8s ease-in-out -5s infinite alternate; }
  .postcard { animation: card-in 1.1s var(--ease) both; }
  .art::before { animation: kenburns 26s ease-in-out infinite alternate; }
  .blurb { animation: rise .9s var(--ease) .25s both; }
  .script { animation: script-in 1.2s var(--ease) .45s both; }
  .now-dot::after { animation: ping 1.6s var(--ease) infinite; }
  .now-text { animation: arrive .5s var(--ease); }
  .pause-btn::after { animation: sheen 5s ease-in-out 1.5s infinite; }
  .pause.on::after { animation: ring 1.8s ease-in-out infinite alternate; }
  .g.hot::after { animation: ping-soft 1.6s ease-in-out infinite alternate; }
  .glance .g { animation: rise .7s var(--ease) both; }
  .glance .g:nth-child(2) { animation-delay: .08s; } .glance .g:nth-child(3) { animation-delay: .16s; }
  .btn { transition: transform .16s var(--ease), opacity .16s ease; }
  .btn:not(:disabled):active { transform: scale(.96); }
  .g { transition: transform .2s var(--ease); }
  .g:active { transform: scale(.97); }
  /* Parts come up into place when they reach the screen (app.js adds .in) */
  .js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv h2::after { transform: scaleX(0); transition: transform .9s var(--ease) .25s; }
  .js .rv.in h2::after { transform: scaleX(1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:not(:disabled):hover { transform: translateY(-2px); }
  .g:hover { transform: translateY(-3px); }
}
@media (hover: hover) { .btn:not(:disabled):hover { opacity: .94; } }
@keyframes dusk { from { opacity: 0; } to { opacity: 1; } }
@keyframes twinkle { from { opacity: .35; } to { opacity: .85; } }
@keyframes glow { from { opacity: .75; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes sunbreath { from { transform: translateY(0) scale(1); } to { transform: translateY(-2.5%) scale(1.02); } }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes fly { 0% { transform: translate(-120px, 0); } 50% { transform: translate(55vw, -18px); } 100% { transform: translate(calc(100vw + 120px), 6px); } }
@keyframes shimmer { from { transform: scaleX(.9); opacity: .65; } to { transform: scaleX(1.1); opacity: 1; } }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.4deg); } }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) rotate(-5deg) scale(.96); } to { opacity: 1; transform: rotate(-1.2deg); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, 1%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes script-in { from { opacity: 0; transform: rotate(-3deg) translateX(-18px); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes ping-soft { from { transform: scale(.8); opacity: .6; } to { transform: scale(1.2); opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sheen { 0%, 70% { transform: translateX(-100%) skewX(-20deg); } 100% { transform: translateX(560%) skewX(-20deg); } }
@keyframes ring { from { opacity: .35; transform: scale(.99); } to { opacity: 1; transform: scale(1.01); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .col, .bars .fill, .weights .fill { transition: none; }
  .delta { display: none; }
}
