/* HK Cut · the edit desk (15 Oct 2026). Built on the structure Harsh likes in HK Upload Desk (a 3D world behind glass, a serif
   headline with one italic word in the brand's gradient, stat rings, a deck of tiles of different sizes, keys that show their work,
   a live mission strip), in this site's own colours: platinum and white with an ice light for what is live (an editing desk, built
   for the future). The video itself is never framed, turned or cropped: it plays whole, still, on black. */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("fonts/InstrumentSans-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("fonts/InstrumentSans-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700 800; font-display: swap; src: url("fonts/InstrumentSans-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSerif-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/InstrumentSerif-400i.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("fonts/GeistMono-400.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500 700; font-display: swap; src: url("fonts/GeistMono-500.woff2") format("woff2"); }

:root {
  --bg: #07080a; --panel: rgba(17, 20, 26, .8); --panel2: rgba(30, 34, 42, .56); --line: rgba(214, 226, 242, .12); --line2: rgba(214, 226, 242, .22);
  --text: #f2f4f7; --soft: #c6ccd5; --muted: #8e959f; --dim: #5e646d;
  --plat: #dfe6ef; --ice: #a6d8f2; --k: 166, 216, 242; --ink: #0b0e13;
  --grad: linear-gradient(120deg, #ffffff 0%, #e1e8f1 30%, #a9b6c7 62%, #eef3f8 100%);
  --grad-ice: linear-gradient(120deg, #f2fbff, #a6d8f2 52%, #6aa6cc);
  --good: #6fe0a8; --warn: #f2b85c; --bad: #ff6b5e;
  --r: 24px;
  --shadow: 0 26px 60px -26px rgba(0, 0, 0, .9), 0 0 0 1px var(--line) inset;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: min(100% - 2 * clamp(14px, 2.6vw, 44px), 1720px);
  color-scheme: dark;
}
@media (min-width: 2400px) { :root { --wrap: min(100% - 120px, 2200px); } }
@media (min-width: 3800px) { :root { --wrap: min(100% - 160px, 2900px); } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font: 500 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; overflow-x: hidden;
  background: radial-gradient(1200px 700px at 86% -8%, rgba(166, 216, 242, .09), transparent 60%), radial-gradient(900px 640px at -12% 108%, rgba(200, 212, 230, .06), transparent 60%), var(--bg); }
@media (min-width: 2400px) { body { font-size: 16px; } }
@media (min-width: 3800px) { body { font-size: 17.5px; } }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { display: block; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); } .soft { color: var(--soft); }
:focus-visible { outline: 1.5px solid rgba(var(--k), .85); outline-offset: 3px; border-radius: 10px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; }
.grad { background: var(--grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; padding-right: .04em; }
@keyframes shine { to { background-position: 220% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .4; } }

/* ---------------------------------------------------------------- the world behind (gem.js), and the glass over it */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .3s; }
.bg canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.bg.live canvas { opacity: 1; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(130% 100% at 60% 40%, transparent 55%, rgba(4, 5, 7, .55) 100%); }
.glass { background: var(--panel); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- the top bar */
.topbar { position: sticky; top: 12px; z-index: 30; width: var(--wrap); margin: 12px auto 0; display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 16px; border-radius: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); background-size: 200% 100%; animation: shine 9s linear infinite; box-shadow: 0 8px 22px -8px rgba(var(--k), .55), inset 0 1px 0 #fff; }
.logo svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.brand .bt { font: 700 19px/1 var(--sans); letter-spacing: -.02em; }
.brand .bt em { font-size: 1.12em; background: var(--grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
.brand small { color: var(--muted); font: 500 12px var(--mono); padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line) inset; }
.tabs { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: 0 0 0 1px var(--line) inset; }
.tabs button { position: relative; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font: 600 14px var(--sans); padding: 9px 14px; border-radius: 10px; transition: color .2s, background .25s, box-shadow .25s; white-space: nowrap; }
.tabs button:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.tabs button.on { color: var(--ink); background: var(--grad); background-size: 200% 100%; box-shadow: 0 8px 22px -8px rgba(var(--k), .6), inset 0 1px 0 #fff; }
.tabs .ic { width: 16px; height: 16px; }
.tabs .tcount { font: 600 11px/1 var(--mono); font-style: normal; padding: 3px 6px; border-radius: 99px; background: rgba(0, 0, 0, .35); color: var(--soft); }
.tabs button.on .tcount { background: rgba(11, 14, 19, .15); color: var(--ink); }
.tabs .tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); animation: blink 1.4s infinite; }
.pills { display: flex; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border: 0; border-radius: 12px; color: var(--soft); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line) inset; font: 500 12.5px var(--mono); white-space: nowrap; transition: background .2s, color .2s; }
.pill:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.pill.sq { width: 38px; padding: 0; justify-content: center; }
.pill .ic { width: 15px; height: 15px; }
.lens { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.lens.good { background: var(--good); box-shadow: 0 0 10px rgba(111, 224, 168, .8); }
.lens.warn { background: var(--warn); box-shadow: 0 0 10px rgba(242, 184, 92, .8); animation: blink 1.4s infinite; }
.lens.ice { background: var(--ice); box-shadow: 0 0 10px rgba(var(--k), .9); }
.lens.bad { background: var(--bad); box-shadow: 0 0 10px rgba(255, 107, 94, .8); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; font: 600 11px/1 var(--mono); color: var(--soft);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 2px 0 rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- the page */
.app { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; padding: 8px 0 140px; }
.view { animation: rise .5s var(--ease) both; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 38px 6px 26px; flex-wrap: wrap; }
.hero .copy { max-width: 760px; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--plat); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.hero h1 { margin: 0; font: 400 clamp(46px, 4.6vw, 104px)/.98 var(--serif); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; }
.hero p { margin: 14px 0 0; color: var(--soft); font-size: 1.05em; max-width: 62ch; }
.stats { display: flex; gap: 14px; padding: 14px 16px 12px; border-radius: 20px; }
.stat { position: relative; display: grid; justify-items: center; gap: 6px; width: 76px; }
.stat svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.stat circle { fill: none; stroke-width: 4; }
.stat .track { stroke: rgba(255, 255, 255, .07); }
.stat .val { stroke: var(--plat); stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; transition: stroke-dashoffset 1.1s var(--ease); }
.stat.ice .val { stroke: var(--ice); } .stat.good .val { stroke: var(--good); } .stat.warn .val { stroke: var(--warn); }
.stat b { position: absolute; top: 0; height: 60px; display: grid; place-items: center; font: 700 17px/1 var(--sans); font-variant-numeric: tabular-nums; }
.stat small { font: 700 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------- keys: they show their work */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; padding: 13px 20px; border-radius: 14px; overflow: hidden; white-space: nowrap;
  color: var(--text); font: 650 15px/1 var(--sans); text-decoration: none; transition: transform .18s var(--ease), box-shadow .3s, background .3s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 17px; height: 17px; }
.btn.primary { color: var(--ink); background: var(--grad); background-size: 200% 100%; box-shadow: 0 12px 30px -10px rgba(var(--k), .55), inset 0 1px 0 #fff; }
.btn.primary:hover { background-position: 100% 0; }
.btn.ghost { background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; color: var(--soft); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.btn.ghost.on { color: var(--ink); background: var(--grad); box-shadow: inset 0 1px 0 #fff; }
.btn.small { padding: 9px 13px; font-size: 13.5px; border-radius: 11px; }
.btn.icon { padding: 10px; }
.btn[disabled] { opacity: .38; pointer-events: none; }
.btn.glow::after { content: ""; position: absolute; inset: -2px; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55), transparent 70%); transform: translateX(-120%); animation: sweep 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 60%, 100% { transform: translateX(120%); } }
.btn kbd { background: rgba(0, 0, 0, .18); color: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.btn.ghost kbd { background: rgba(255, 255, 255, .07); }
.btn em.n { font: 600 12px var(--mono); font-style: normal; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .22); }
/* a key at work: its spinner and its own progress, filling from the left */
.btn.busy { pointer-events: none; }
.btn.busy::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: rgba(var(--k), .22); transition: width .3s var(--ease); }
.btn.primary.busy::before { background: rgba(11, 14, 19, .14); }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; opacity: .8; }
.btn.armed { color: #ffd6d2; box-shadow: 0 0 0 1px rgba(255, 107, 94, .6) inset; }
.icon-btn { width: 38px; height: 38px; border: 0; border-radius: 12px; display: grid; place-items: center; color: var(--soft); background: rgba(255, 255, 255, .06); transition: background .2s, color .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.fab { position: fixed; right: max(24px, calc((100vw - var(--wrap)) / 2)); bottom: 26px; z-index: 40; padding: 18px 24px; font-size: 16px; border-radius: 18px; gap: 12px; }
.fab .sub { font: 600 12px var(--mono); opacity: .65; }

/* ---------------------------------------------------------------- the deck: tiles of different sizes */
.deck { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 30px; }
.tile { position: relative; overflow: hidden; border: 0; text-align: left; color: var(--text); font: inherit; border-radius: 26px; padding: 26px; display: grid; align-content: start; gap: 12px;
  background: linear-gradient(160deg, rgba(34, 39, 48, .86), rgba(13, 15, 20, .9)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s; }
button.tile { cursor: pointer; }
button.tile:hover, label.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 26px 50px -26px rgba(var(--k), .45); }
.tile.big { background: linear-gradient(150deg, rgba(56, 64, 78, .9), rgba(15, 17, 22, .92) 58%); box-shadow: var(--shadow), 0 0 0 1px rgba(214, 226, 242, .22) inset; }
.tile.on { box-shadow: var(--shadow), 0 0 0 1.5px rgba(var(--k), .75) inset, 0 26px 60px -30px rgba(var(--k), .55); }
.tile.dim { opacity: .55; }
.tile.dim:hover { opacity: .9; }
.tile-shine { position: absolute; inset: -40% -12% auto auto; width: 62%; height: 120%; background: radial-gradient(closest-side, rgba(225, 236, 248, .15), transparent); pointer-events: none; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(16px); } }
.tile-head { display: flex; gap: 16px; align-items: flex-start; }
.tile-icon { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; color: var(--plat); background: rgba(214, 226, 242, .08); box-shadow: 0 0 0 1px rgba(214, 226, 242, .22) inset; }
.tile-icon .ic { width: 23px; height: 23px; }
.tile.big .tile-icon, .tile.on .tile-icon { color: var(--ink); background: var(--grad); background-size: 200% 100%; box-shadow: inset 0 1px 0 #fff, 0 10px 24px -10px rgba(var(--k), .6); }
.tile h3 { margin: 0; font: 400 clamp(26px, 1.7vw, 40px)/1.05 var(--serif); letter-spacing: -.005em; }
.tile.big h3 { font-size: clamp(32px, 2.3vw, 54px); }
.tile p { margin: 4px 0 0; color: var(--muted); font-size: .92em; line-height: 1.5; }
.tile .k { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; font: 600 12px/1 var(--sans); color: var(--soft); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.chip.ice { color: var(--ink); background: var(--grad-ice); box-shadow: none; }
.chip.mono { font-family: var(--mono); font-weight: 500; }
.dropzone { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 6px; padding: 18px; border-radius: 18px;
  background: rgba(5, 7, 10, .45); box-shadow: 0 0 0 1px var(--line) inset; border: 1px dashed rgba(214, 226, 242, .2); transition: border-color .2s, background .2s; }
.dropzone.over { border-color: rgba(var(--k), .8); background: rgba(var(--k), .06); }
.dropzone .di { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; color: var(--plat); }
.dropzone b { display: block; font-weight: 600; }
.dropzone small { display: block; color: var(--muted); font-size: .85em; }
.dropzone .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.filecard { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 6px; padding: 12px; border-radius: 18px; background: rgba(5, 7, 10, .5); box-shadow: 0 0 0 1px var(--line) inset; }
.filecard.over { box-shadow: 0 0 0 1px rgba(var(--k), .8) inset; }
.filecard .thumb { width: 84px; aspect-ratio: 9 / 16; border-radius: 10px; display: grid; place-items: center; color: var(--dim); background: #000 center / contain no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.filecard b { display: block; font-weight: 650; font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filecard .chips { margin-top: 8px; }

/* section heads */
.sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 6px 16px; flex-wrap: wrap; }
.sec h2 { margin: 0; font: 400 clamp(30px, 2.2vw, 50px)/1 var(--serif); letter-spacing: -.01em; }
.sec p { margin: 6px 0 0; color: var(--muted); }

/* what it becomes: the first one large, the rest beside it */
.tpls { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.tpls.soonrow { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
.tpls.four { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
.tpl { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 14px 14px 18px; border: 0; border-radius: 24px; text-align: left; color: var(--text);
  background: linear-gradient(160deg, rgba(34, 39, 48, .94), rgba(13, 15, 20, .96)); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.tpl:hover { transform: translateY(-4px); }
.tpl.on { box-shadow: var(--shadow), 0 0 0 1.5px rgba(var(--k), .75) inset, 0 26px 60px -30px rgba(var(--k), .5); }
.tpl .pv { position: relative; aspect-ratio: 16 / 8; border-radius: 16px; overflow: hidden; background: #000 center 30% / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
.tpl.first .pv { aspect-ratio: 16 / 8; }
.tpl .pv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity .4s; }
.tpl:hover .pv video, .tpl.on .pv video { opacity: 1; }
.tpl .pv .tag { position: absolute; left: 12px; top: 12px; font: 700 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 8px; border-radius: 8px; color: var(--text); background: rgba(7, 8, 10, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tpl .row1 { display: flex; align-items: flex-start; gap: 12px; padding: 0 6px; }
.tpl h4 { margin: 0; font: 400 clamp(24px, 1.5vw, 34px)/1.05 var(--serif); }
.tpl.first h4 { font-size: clamp(30px, 2vw, 46px); }
.tpl p { margin: 3px 0 0; color: var(--muted); font-size: .9em; }
.tpl .row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; flex-wrap: wrap; }
.tpl .state { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; font: 650 12.5px/1 var(--sans); color: var(--soft); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; transition: background .2s, color .2s; }
.tpl .state .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.tpl.on .state { color: var(--ink); background: var(--grad); box-shadow: inset 0 1px 0 #fff; }
.tpl:hover .state { color: var(--text); }
.tpl.on:hover .state { color: var(--ink); }
.tpl.soon { opacity: .58; cursor: default; }
.tpl.soon:hover { transform: none; }
.tpl.soon .pv { display: grid; place-items: center; background: radial-gradient(90% 90% at 50% 0%, #161a21, #07080a); }
.tpl.soon .pv span { font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.tpl.small { grid-template-columns: 96px minmax(0, 1fr); align-items: center; padding: 12px; }
.tpl.small .pv { aspect-ratio: 1; border-radius: 12px; }
.tpl.small .row1, .tpl.small .row2 { padding: 0; }

/* the finishing options: switches, not words in boxes */
.opts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 20px; margin-bottom: 18px; }
.opts .lbl { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; cursor: pointer; color: var(--soft); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line) inset; font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.switch:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 36px; height: 22px; border-radius: 22px; background: rgba(255, 255, 255, .1); transition: background .25s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #e9eef4; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.switch input:checked + i { background: var(--grad-ice); }
.switch input:checked + i::after { transform: translateX(14px); background: #fff; }
.switch small { color: var(--muted); font-weight: 500; }
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line) inset; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 9px; font: 600 13.5px var(--sans); transition: color .2s, background .25s; }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--ink); background: var(--grad); box-shadow: inset 0 1px 0 #fff; }
.seg button .n { margin-left: 6px; font: 600 11px var(--mono); opacity: .7; }
details.more { border-radius: 20px; margin-bottom: 18px; }
details.more > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary b { font: 400 24px/1 var(--serif); }
details.more > summary small { color: var(--muted); }
details.more > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
details.more[open] > summary::after { transform: rotate(225deg); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 0 18px 18px; }
.field { display: grid; gap: 7px; }
.field > span { font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 0; border-radius: 13px; padding: 12px 14px; background: rgba(5, 7, 10, .55); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); outline: none; font: 500 14.5px/1.45 var(--sans); transition: box-shadow .2s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 1px rgba(var(--k), .7) inset, 0 0 0 4px rgba(var(--k), .12); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field.search { position: relative; }
.field.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.field.search input { padding-left: 40px; }

/* ---------------------------------------------------------------- the mission: one run, live */
.mission { position: relative; border-radius: 26px; padding: 22px 24px 20px; margin-bottom: 18px; overflow: hidden; }
.mission .mh { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mission .mh b { font: 400 26px/1 var(--serif); }
.mission .mh .mono { color: var(--soft); font-size: 13px; }
.rail { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 0; padding: 4px 0 2px; }
.rail .track { position: absolute; left: 32px; right: 32px; top: 27px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.rail .track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--grad-ice); box-shadow: 0 0 12px rgba(var(--k), .7); transition: width .8s var(--ease); }
.rail .tok { position: absolute; top: 19px; width: 19px; height: 19px; margin-left: -9px; border-radius: 6px; transform: rotate(45deg); background: var(--grad); box-shadow: 0 0 0 3px rgba(7, 8, 10, .9), 0 0 18px rgba(var(--k), .9); transition: left .8s var(--ease); z-index: 2; }
.stn { position: relative; display: grid; justify-items: center; gap: 9px; text-align: center; z-index: 1; }
.stn .node { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--dim); background: rgba(12, 14, 18, .92); box-shadow: 0 0 0 1px var(--line) inset; transition: color .3s, box-shadow .3s, background .3s, transform .3s var(--ease); }
.stn .node .ic { width: 22px; height: 22px; }
.stn b { font: 600 12.5px/1.2 var(--sans); color: var(--muted); }
.stn small { font: 500 11px/1 var(--mono); color: var(--dim); }
.stn.done .node { color: var(--ink); background: var(--grad); box-shadow: inset 0 1px 0 #fff; }
.stn.done b { color: var(--soft); }
.stn.run .node { color: var(--ice); background: rgba(var(--k), .12); box-shadow: 0 0 0 1.5px rgba(var(--k), .8) inset, 0 0 26px -4px rgba(var(--k), .7); transform: translateY(-4px); }
.stn.run b { color: var(--text); }
.stn.run small { color: var(--ice); }
.stn.fail .node { color: var(--bad); box-shadow: 0 0 0 1.5px rgba(255, 107, 94, .7) inset; }
.stn.group { }
.stn .gname { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 700 9.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { border-radius: 24px; padding: 20px 22px; min-width: 0; }
.panel > h3 { margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 400 26px/1 var(--serif); }
.panel > h3 small { font: 500 12.5px var(--mono); color: var(--muted); }
/* the picture: whole, still, on black, never framed or turned */
.screen { position: relative; display: grid; gap: 12px; justify-items: center; padding: 16px; border-radius: 24px; }
.screen video { display: block; width: 100%; max-height: min(74vh, 1100px); aspect-ratio: auto; object-fit: contain; background: #000; border-radius: 12px; }
.screen .cap { justify-self: stretch; display: flex; align-items: center; gap: 10px; font: 600 13px var(--sans); color: var(--soft); }
.screen .cap .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player { justify-self: stretch; display: flex; align-items: center; gap: 10px; }
.player .seek { position: relative; flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); cursor: pointer; touch-action: none; }
.player .seek i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--grad-ice); }
.player .seek i::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translateY(-50%); background: #fff; box-shadow: 0 0 0 3px rgba(var(--k), .3); }
.player .t { font: 500 12.5px var(--mono); color: var(--soft); min-width: 92px; text-align: right; }
.strip { justify-self: stretch; display: grid; gap: 7px; }
.strip .lane { position: relative; height: 24px; border-radius: 8px; background: rgba(5, 7, 10, .6); box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; }
.strip .seg { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; background: var(--grad-ice); opacity: .85; cursor: pointer; transition: opacity .15s; }
.strip .seg:hover { opacity: 1; }
.strip .head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px #fff; transition: left .25s linear, opacity .3s; opacity: 0; }
.strip .cap2 { display: flex; justify-content: space-between; gap: 12px; font: 500 12px var(--mono); color: var(--muted); }

/* the big number of a run */
.ring { position: relative; width: 168px; height: 168px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: rgba(255, 255, 255, .07); }
.ring .val { stroke: url(#ringgrad); stroke: var(--ice); stroke-linecap: round; stroke-dasharray: 465; stroke-dashoffset: 465; transition: stroke-dashoffset .9s var(--ease); filter: drop-shadow(0 0 8px rgba(var(--k), .55)); }
.ring .in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .in b { font: 400 54px/1 var(--serif); letter-spacing: -.02em; }
.ring .in b small { font-size: .45em; color: var(--muted); }
.ring .in span { font: 500 12px var(--mono); color: var(--soft); margin-top: 4px; }
.runhead { display: flex; align-items: center; gap: 28px; }

/* the steps of a run, with their own clocks */
.steps { display: grid; gap: 6px; }
.steps .gh { display: flex; align-items: center; gap: 9px; margin: 10px 2px 4px; font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.steps .gh:first-child { margin-top: 0; }
.srow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 13px; background: rgba(255, 255, 255, .025); box-shadow: 0 0 0 1px rgba(214, 226, 242, .06) inset; transition: background .3s, box-shadow .3s; }
.srow .sn { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 600 11.5px var(--mono); color: var(--dim); background: rgba(5, 7, 10, .6); }
.srow b { font-weight: 600; font-size: 14px; color: var(--soft); }
.srow small { display: block; color: var(--muted); font-size: 12px; }
.srow .tm { font: 500 12.5px var(--mono); color: var(--muted); text-align: right; white-space: nowrap; }
.srow.done .sn { color: var(--ink); background: var(--grad); }
.srow.done .sn .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.srow.run { background: rgba(var(--k), .08); box-shadow: 0 0 0 1px rgba(var(--k), .45) inset; }
.srow.run .sn { color: var(--ice); }
.srow.run .sn .spin { width: 14px; height: 14px; }
.srow.run b { color: var(--text); }
.srow.run .tm { color: var(--ice); }
.srow.fail { box-shadow: 0 0 0 1px rgba(255, 107, 94, .5) inset; }
.srow.fail .sn { color: var(--bad); }
.srow .bar { grid-column: 2 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: -2px; }
.srow .bar i { display: block; height: 100%; width: 0; background: var(--grad-ice); transition: width .5s var(--ease); }

/* the live account */
.feed { display: grid; gap: 2px; max-height: 62vh; overflow: auto; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.ev { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 6px; border-radius: 12px; animation: rise .45s var(--ease) both; }
.ev:hover { background: rgba(255, 255, 255, .03); }
.ev .evi { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--good); background: rgba(111, 224, 168, .1); }
.ev .evi .ic { width: 14px; height: 14px; }
.ev .evi.ice { color: var(--ice); background: rgba(var(--k), .12); }
.ev .evi.bad { color: var(--bad); background: rgba(255, 107, 94, .12); }
.ev .evi.now { color: var(--ice); background: rgba(var(--k), .14); }
.ev b { display: block; font-weight: 600; font-size: 14px; }
.ev.now b { color: var(--ice); }
.ev small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.ev .t { font: 500 11.5px var(--mono); color: var(--dim); padding-top: 3px; }

/* what was made for the reel: a wall of pictures */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.wall i { aspect-ratio: 16 / 10; border-radius: 10px; background: #0b0d11 center / cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); cursor: zoom-in; animation: rise .5s var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s; }
.wall i:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(var(--k), .6), 0 16px 26px -14px #000; }
.zoomed { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(4, 5, 7, .86); cursor: zoom-out; animation: fade .25s; }
.zoomed img { max-width: 86vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 40px 80px -30px #000; }

/* the done screen: the outputs, the keys, the checks, how long each step took */
.outs { display: flex; gap: 8px; flex-wrap: wrap; }
.outs button { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 8px 14px 8px 8px; border-radius: 14px; color: var(--soft); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line) inset; font: 600 14px var(--sans); transition: background .2s, color .2s; }
.outs button .pic { width: 40px; height: 40px; border-radius: 10px; background: #0b0d11 center / cover; }
.outs button small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; text-align: left; }
.outs button.on { color: var(--ink); background: var(--grad); box-shadow: inset 0 1px 0 #fff; }
.outs button.on small { color: rgba(11, 14, 19, .65); }
.acts { display: grid; gap: 10px; }
.acts .row { display: flex; gap: 8px; flex-wrap: wrap; }
.acts .btn.primary { justify-content: space-between; padding: 18px 20px; font-size: 16px; }
.acts .btn.primary small { display: block; font: 600 12px var(--sans); opacity: .6; margin-top: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ok { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 13px; color: var(--soft); background: rgba(111, 224, 168, .07); box-shadow: 0 0 0 1px rgba(111, 224, 168, .22) inset; max-width: 100%; }
.ok .ic { width: 14px; height: 14px; color: var(--good); stroke-width: 2.4; flex: none; }
.ok b { font-weight: 600; color: var(--text); }
.ok span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ok.look { background: rgba(242, 184, 92, .07); box-shadow: 0 0 0 1px rgba(242, 184, 92, .3) inset; }
.ok.look .ic { color: var(--warn); }
.bars { display: grid; gap: 9px; }
.brow { display: grid; grid-template-columns: minmax(90px, .9fr) minmax(0, 2fr) 84px; gap: 12px; align-items: center; font-size: 13.5px; }
.brow span:first-child { color: var(--soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .b { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.brow .b i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width 1.1s var(--ease); }
.brow.slow .b i { background: linear-gradient(90deg, #f2b85c, #ff8a5c); }
.brow.slow span:first-child { color: var(--warn); }
.brow .mono { text-align: right; color: var(--text); }
.total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.total b { font: 400 40px/1 var(--serif); }

/* projects: a queue bar, then a grid of cards */
.qbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 18px; margin-bottom: 18px; }
.qbar .field.search { margin-left: auto; min-width: 260px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pcard { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px; border: 0; border-radius: 22px; text-align: left; color: var(--text); cursor: pointer;
  background: linear-gradient(160deg, rgba(34, 39, 48, .94), rgba(13, 15, 20, .96)); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; animation: rise .45s var(--ease) both; }
/* (23 Oct 2026, the speed plan 1.1: each project card's frosted blur was drawn again on every frame of the stone behind it, about 61 of the
   70 points of a core Projects took at rest on the G9; the fill, already 86-90 % opaque, is 94-96 % instead, so it looks the same) */
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 24px 50px -26px rgba(var(--k), .45); }
.pcard .pp { aspect-ratio: 9 / 16; border-radius: 12px; background: #000 center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.pcard .pb { display: grid; align-content: start; gap: 6px; min-width: 0; padding-top: 4px; }
.pcard h4 { margin: 0; font: 400 26px/1.05 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard small { color: var(--muted); font-size: 12.5px; }
.pcard .go { position: absolute; right: 14px; bottom: 14px; color: var(--dim); transition: transform .25s var(--ease), color .2s; }
.pcard:hover .go { transform: translateX(4px); color: var(--text); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h2 { font: 400 36px/1.1 var(--serif); color: var(--text); margin: 0 0 8px; }

/* ---------------------------------------------------------------- words when pointed at, panels behind the pills, toasts */
.tipbox { position: fixed; left: 0; top: 0; z-index: 100; max-width: 320px; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--soft); pointer-events: none;
  background: rgba(16, 19, 24, .96); box-shadow: 0 0 0 1px var(--line2) inset, 0 20px 40px -16px #000; animation: fade .2s; }
.pop { position: fixed; z-index: 95; width: 340px; padding: 18px; border-radius: 20px; display: grid; gap: 10px; background: rgba(16, 19, 24, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--line2) inset, 0 30px 60px -20px #000; animation: rise .3s var(--ease); }
.pop .lbl { font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pop .pbig { font: 400 40px/1 var(--serif); }
.pop .pnums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pop .pnums div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line) inset; }
.pop .pnums b { display: block; font: 400 26px/1.05 var(--serif); }
.pop .pnums span { font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pop .prow { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--soft); padding: 3px 0; }
.pop .prow .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop .prow kbd { min-width: 74px; }
.toasts { position: fixed; z-index: 99; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; font-weight: 600; background: rgba(18, 21, 27, .97); box-shadow: 0 0 0 1px var(--line2) inset, 0 20px 40px -16px #000; animation: rise .35s var(--ease); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.toast.bad::before { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dropall { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(4, 5, 7, .78); pointer-events: none; animation: fade .2s; }
.dropall > div { display: grid; justify-items: center; gap: 12px; padding: 50px 70px; border-radius: 30px; text-align: center; border: 2px dashed rgba(var(--k), .6); background: rgba(16, 19, 24, .9); }
.dropall b { font: 400 54px/1 var(--serif); }
.dropall small { max-width: 44ch; color: var(--soft); }

/* ---------------------------------------------------------------- smaller screens: the iPad */
@media (max-width: 1500px) { .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .stage > .panel.feedp { grid-column: 1 / -1; } }
@media (max-width: 1180px) {
  .topbar { flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; justify-content: space-between; }
  .tabs button { flex: 1; justify-content: center; }
  .deck { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .deck .tile.big { grid-column: 1 / -1; }
  .tpls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tpl.first { grid-row: auto; grid-column: 1 / -1; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .runhead { flex-direction: column; align-items: flex-start; }
  .rail { overflow-x: auto; grid-auto-columns: 92px; padding-bottom: 8px; }
  .fab { left: 16px; right: 16px; justify-content: space-between; }
}
@media (max-width: 720px) { .deck, .tpls { grid-template-columns: minmax(0, 1fr); } .hero h1 { font-size: 44px; } .stats { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------------------------------------------------------------- Live: the edit line in 3D (live3d.js) with its panels over it,
   as HK Upload Desk's Live: the stations and their counts on the left, today's reels and the feed on the right, what needs him below */
html.lw-on, html.lw-on body { overflow: hidden; }
html.lw-on .bg, html.lw-on .vignette, html.lw-on .fab { display: none; }
html.lw-on .app { position: static; }
#vLive.lw-view { position: fixed; inset: 0; z-index: 1; animation: fade .6s ease both; }
.lw { position: absolute; inset: 0; overflow: hidden; background: #030406; }
.lw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.lw-canvas.drag { cursor: grabbing; }
.lw-canvas.point { cursor: pointer; }
.lw::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(2, 3, 4, .6) 100%); }
.lw-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lw-pin, .lw-tok { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; color: var(--text); will-change: transform; transition: opacity .25s; }
.lw-pin { display: inline-flex; align-items: center; gap: .55em; padding: .5em .7em .5em .55em; border-radius: 12px; font: 600 .87em/1 var(--sans); white-space: nowrap;
  background: rgba(10, 12, 16, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line2) inset, 0 10px 24px -12px #000; }
.lw-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 26px; background: linear-gradient(rgba(214, 226, 242, .45), transparent); }
.lw-pin .ic { width: 1.15em; height: 1.15em; color: var(--plat); }
.lw-pin b { font: 400 1.3em/1 var(--serif); letter-spacing: 0; }
.lw-pin em { font: 600 12px/1 var(--mono); font-style: normal; padding: 4px 7px; border-radius: 99px; color: var(--muted); background: rgba(255, 255, 255, .06); }
.lw-pin.has em { color: var(--ink); background: var(--grad); }
.lw-pin.busy { box-shadow: 0 0 0 1px rgba(var(--k), .8) inset, 0 0 26px -6px rgba(var(--k), .8); }
.lw-pin.busy .ic { color: var(--ice); }
.lw-pin.busy em { background: var(--grad-ice); animation: blink 1.6s infinite; }
.lw-pin:hover, .lw-pin.on { background: rgba(26, 31, 39, .9); box-shadow: 0 0 0 1px rgba(var(--k), .9) inset, 0 0 30px -8px rgba(var(--k), .9); }
.lw-tok { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; max-width: 300px; margin-top: 16px; padding: 8px 12px 8px 9px; border-radius: 14px; text-align: left; font-size: .93em;
  background: rgba(9, 13, 19, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(var(--k), .75) inset, 0 0 24px -8px rgba(var(--k), .7), 0 14px 30px -14px #000; }
.lw-tok i { width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); background: var(--grad); box-shadow: 0 0 12px rgba(var(--k), .9); }
.lw-tok::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 16px; background: linear-gradient(transparent, rgba(var(--k), .8)); }
.lw-tok b { display: block; font: 650 1em/1.15 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-tok small { display: block; font: 500 .85em/1.3 var(--mono); color: var(--ice); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-tok em { font: 600 12px var(--mono); font-style: normal; color: var(--text); }
.lw-tok.mine { background: rgba(14, 17, 22, .86); box-shadow: 0 0 0 1px rgba(223, 230, 239, .9) inset, 0 0 30px -8px rgba(var(--k), .9); }
.lw-tok.bad { background: rgba(24, 10, 10, .85); box-shadow: 0 0 0 1px rgba(255, 107, 94, .7) inset; }
.lw-tok.bad small { color: #ffb3ad; }

.lw-hud { position: absolute; z-index: 3; display: grid; gap: 12px; align-content: start; overflow: auto; scrollbar-width: none; border-radius: 22px; }
.lw-hud::-webkit-scrollbar { display: none; }
.lw-left { left: 18px; top: 96px; width: clamp(280px, 17vw, 370px); max-height: calc(100% - 180px); }
.lw-right { right: 18px; top: 96px; width: clamp(340px, 23vw, 500px); max-height: calc(100% - 180px); }
.lw-card { border-radius: 22px; padding: 18px 18px 16px; min-width: 0; animation: rise .5s var(--ease) both; }
.lw-card h4 { margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.lw-card h4 small { font: 500 11.5px var(--mono); letter-spacing: 0; text-transform: none; color: var(--dim); }
.lw-head h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 400 clamp(36px, 2.4vw, 54px)/1 var(--serif); letter-spacing: -.015em; }
.lw-head h2 .mono { font-size: 14px; color: var(--soft); letter-spacing: 0; }
.lw-head h2 .tag { font: 700 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 5px 8px; border-radius: 8px; color: var(--ink); background: var(--grad-ice); align-self: center; }
.lw-sum { display: grid; gap: 9px; margin: 16px 0 12px; }
.lw-sum .r { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lw-sum .r span { font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lw-sum .r b { font: 700 18px/1 var(--sans); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.lw-sum .bar { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .06); overflow: hidden; display: flex; gap: 2px; }
.lw-sum .bar i { display: block; height: 100%; border-radius: 7px; background: var(--grad); transition: width .8s var(--ease); }
.lw-sum .bar i.ice { background: var(--grad-ice); }
.lw-sum .bar i.bad { background: linear-gradient(90deg, #ff8a7c, #ff6b5e); }
.lw-head .upd { margin-top: 10px; font: 500 11.5px var(--mono); color: #ffb3ad; }
.lw-tools { display: flex; align-items: center; gap: 8px; }
.lw-tools .field.search { flex: 1; }
.lw-tools .field.search input { background: rgba(10, 12, 16, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lw-views { display: flex; gap: 6px; }
.lw-views button { width: 40px; height: 40px; border: 0; border-radius: 12px; display: grid; place-items: center; color: var(--soft); background: rgba(10, 12, 16, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line) inset; transition: background .2s, color .2s, box-shadow .2s; }
.lw-views button:hover { color: var(--text); background: rgba(30, 35, 43, .9); }
.lw-views button.on { color: var(--ink); background: var(--grad); box-shadow: inset 0 1px 0 #fff; }
.lw-views .ic { width: 17px; height: 17px; }
.lw-made { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lw-made button { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 9 / 16; background: #000 center / contain no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09); transition: transform .25s var(--ease), box-shadow .25s; animation: rise .45s var(--ease) both; }
.lw-made button:hover, .lw-made button.hot { transform: translateY(-3px); box-shadow: 0 0 0 1.5px rgba(var(--k), .8), 0 16px 26px -14px #000; }
.lw-made button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 7px 6px; font: 600 10.5px/1.2 var(--sans); color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-made .none { grid-column: 1 / -1; padding: 16px 4px; color: var(--muted); font-size: 13px; }
/* the live feed: every step of every job, newest first, a row each: when, what is happening (large), which job of which template */
.lw-feed { display: grid; align-content: start; max-height: 34vh; overflow: auto; scrollbar-width: none; margin: 0 -6px; padding: 0 6px;
  -webkit-mask: linear-gradient(#000 calc(100% - 26px), transparent); mask: linear-gradient(#000 calc(100% - 26px), transparent); }
.lw-feed::-webkit-scrollbar { display: none; }
.fev { display: grid; grid-template-columns: 50px 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 2px; border-top: 1px solid rgba(214, 226, 242, .07); }
.fev:first-child { border-top: 0; }
.fev.in { animation: rise .45s var(--ease) both; }
.fev .ft { font: 500 11px/1 var(--mono); color: var(--dim); text-align: right; padding-top: 8px; white-space: nowrap; }
.fev.fresh .ft { color: var(--ice); }
.fev .fi { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: var(--ice); background: rgba(var(--k), .1); }
.fev .fi .ic { width: 13px; height: 13px; }
.fev.good .fi { color: var(--good); background: rgba(111, 224, 168, .1); }
.fev.bad .fi { color: var(--bad); background: rgba(255, 107, 94, .12); }
.fev .fb { min-width: 0; }
.fev .fb b { font: 600 14px/1.32 var(--sans); color: var(--soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fev.fresh .fb b { color: var(--text); }
.fev .fb small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fev .fb small em { font: normal 650 12px var(--sans); color: var(--plat); margin-right: 7px; }
.fev.quiet .fb b { font: 400 24px/1.1 var(--serif); color: var(--text); }
.fev.quiet .fb small { white-space: normal; }
/* the zoom: a word on how while the line is whole, the way back once it is not (a double-click does it too) */
.lw-reset { position: absolute; z-index: 4; left: max(18px, calc((100vw - var(--wrap)) / 2)); bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 13px;
  font: 500 11.5px var(--mono); color: var(--dim); background: transparent; pointer-events: none; transition: background .25s, color .25s, box-shadow .25s; }
.lw-reset .ic { width: 15px; height: 15px; display: none; }
.lw-reset .rz { display: none; }
.lw-reset.on { pointer-events: auto; cursor: pointer; font: 650 13px var(--sans); color: var(--text); background: rgba(14, 17, 22, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(var(--k), .55) inset, 0 12px 30px -14px rgba(var(--k), .7); animation: rise .35s var(--ease) both; }
.lw-reset.on .ic { display: block; }
.lw-reset.on .rz { display: inline; }
.lw-reset.on .rh { display: none; }
.lw-reset.on:hover { background: rgba(26, 31, 39, .94); }
.lw-needs { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 36px); padding: 8px 10px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; animation: rise .5s var(--ease) both; }
.lw-needs::-webkit-scrollbar { display: none; }
.lw-needs > span { font: 700 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0 6px; white-space: nowrap; }
.lw-needs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 11px; color: var(--soft); background: rgba(255, 107, 94, .08); box-shadow: 0 0 0 1px rgba(255, 107, 94, .32) inset; font: 600 12.5px var(--sans); white-space: nowrap; transition: background .2s, color .2s; }
.lw-needs button:hover { color: var(--text); background: rgba(255, 107, 94, .16); }
.lw-needs button small { color: #ffb3ad; font-weight: 500; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.lw-needs.ok button { background: rgba(111, 224, 168, .07); box-shadow: 0 0 0 1px rgba(111, 224, 168, .25) inset; cursor: default; }
@media (max-width: 1500px) { .lw-left { width: 260px; } .lw-right { width: 340px; } .lw-made { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px) {
  .lw-left, .lw-right { top: 142px; max-height: calc(100% - 230px); }
  .lw-left { width: 224px; } .lw-right { width: 320px; }
  .lw-head h2 { font-size: 34px; }
  .lw-made { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lw-made button:nth-child(n+7) { display: none; }
  .fev { grid-template-columns: 42px 24px minmax(0, 1fr); gap: 8px; }
  .lw-views button { width: 36px; height: 36px; }
  .lw-pin:not(.busy):not(.on):not(:hover) b { display: none; }            /* (small screens: a station's name when something is there, or pointed at) */
}
@media (max-width: 900px) {
  #vLive.lw-view { position: relative; inset: auto; }
  html.lw-on, html.lw-on body { overflow: auto; }
  .lw { position: relative; height: 62vh; border-radius: 22px; margin: 12px 0; }
  .lw-hud, .lw-needs { position: static; transform: none; width: auto; max-height: none; margin: 0 0 12px; }
}
/* the run's hero keeps its height, so the Mac's stone stands in it and not over the run's strip */
.hero.runhero { min-height: clamp(220px, 25vh, 420px); align-items: center; }

/* ------------------------------------------------------------ the front page (16 Oct 2026, Harsh: "isi ko main face banao ... neeche
   hum select karein ... 9:16 mein ... projects last mein"): the live world first, the run started here under it, Create with its
   templates as small 9:16 cards, the recent projects last. One 3D world at a time: the hero's (the stone rests). */
html.home-on .bg, html.home-on .vignette { display: none; }
.livehero { position: relative; width: 100vw; margin: 12px 0 0 calc(50% - 50vw); height: calc(100vh - 150px); height: calc(100svh - 150px); min-height: 600px; overflow: hidden;
  border-radius: 0 0 34px 34px; background: #030406; box-shadow: 0 30px 80px -40px #000, 0 1px 0 rgba(214, 226, 242, .12); }
.livehero .lw { border-radius: inherit; }
.lw-hero .lw-left { top: 18px; left: max(18px, calc((100vw - var(--wrap)) / 2)); max-height: calc(100% - 110px); }
.lw-hero .lw-right { top: 18px; right: max(18px, calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; height: calc(100% - 110px); max-height: none; overflow: hidden; }
.lw-hero .lw-right > .lw-tools { flex: none; }
.lw-hero .lw-nowcard { flex: none; max-height: 42%; display: flex; flex-direction: column; }
.lw-hero .lw-now { min-height: 0; overflow: auto; scrollbar-width: none; }
.lw-hero .lw-now::-webkit-scrollbar { display: none; }
.lw-hero .lw-feedcard { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 6px; }   /* (as tall as its rows, up to the world's bottom) */
.lw-hero .lw-feed { flex: 1 1 auto; min-height: 0; max-height: none; }
.lw-down { position: absolute; z-index: 4; right: max(18px, calc((100vw - var(--wrap)) / 2)); bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 0; border-radius: 14px; color: var(--ink); background: var(--grad); background-size: 200% 100%; font: 650 14px var(--sans); cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -12px rgba(var(--k), .7); transition: transform .25s var(--ease); }
.lw-down:hover { transform: translateY(-2px); }
.lw-down .ic { width: 16px; height: 16px; transform: rotate(90deg); }
/* what is being made now, on the world's right: a row a job, its place on the line and how far it is */
.lw-nowcard { padding-bottom: 12px; }
.lw-now { display: grid; gap: 6px; }
.nowrow { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 10px 14px; border: 0; border-radius: 14px;
  text-align: left; color: var(--text); font: inherit; background: rgba(255, 255, 255, .035); box-shadow: 0 0 0 1px var(--line) inset; cursor: pointer; overflow: hidden; transition: background .2s, box-shadow .2s; }
.nowrow:hover { background: rgba(255, 255, 255, .07); }
.nowrow.mine { box-shadow: 0 0 0 1px rgba(var(--k), .6) inset, 0 12px 30px -16px rgba(var(--k), .7); }
.nowrow .nk { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--ink); background: var(--grad-ice); }
.nowrow .nk .ic { width: 17px; height: 17px; }
.nowrow.bad .nk { background: linear-gradient(120deg, #ffb3ad, #ff6b5e); }
.nowrow b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowrow .nb small { display: block; color: var(--muted); font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowrow .np { font-size: 13px; text-align: right; color: var(--ice); white-space: nowrap; }
.nowrow .np small { display: block; color: var(--muted); font: 500 10.5px var(--mono); }
.nowrow .nbar { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.nowrow .nbar i { display: block; height: 100%; border-radius: 3px; background: var(--grad-ice); transition: width .8s var(--ease); }
.nowempty { display: grid; gap: 6px; justify-items: start; padding: 2px 4px; }
.nowempty b { font: 400 24px/1.1 var(--serif); }
.nowempty small { color: var(--muted); font-size: .85em; }
/* the run started on this page, right under the world; Create; the projects last */
.runpane { scroll-margin-top: 96px; margin-top: 8px; }
.createsec { scroll-margin-top: 96px; margin-top: 44px; }
.recentsec { margin-top: 18px; }
.create-head { margin: 0 6px 22px; }
.create-head .eyebrow { margin: 0 0 8px; }
.busycard { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; margin-bottom: 26px; }
.busycard b { display: block; font: 400 28px/1.1 var(--serif); }
.busycard small { color: var(--muted); }
.busycard .btn { margin-left: auto; }
.step { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.step b { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 700 13px var(--mono); color: var(--ink); background: var(--grad); box-shadow: inset 0 1px 0 #fff; }
.step small { font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* 1 the start: three keys, the page's main thing (16 Oct 2026, Harsh: "moving 3D ... thode glowing ... interactive ... thode achhe se
   ubhar karke"). Each floats a little and a light runs round its edge; it leans to the mouse and comes up, goes down when pressed; the
   chosen one stays up and lit, with its tick. Its little picture moves: takes with the retake cut, a voice laying clips, a reel going on. */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.kinds { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin: 0 0 32px; perspective: 1400px; }
.kinds > .step { align-self: center; padding-right: 6px; }
.kind { --rx: 0deg; --ry: 0deg; --lift: 0px; --side: 7px; position: relative; display: block; min-width: 0; padding: 0; border: 0; border-radius: 24px; background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; will-change: transform;
  transition: transform .6s var(--ease), opacity .35s, filter .35s;
  animation: kfloat 6s ease-in-out infinite; animation-delay: calc(var(--t0, 0s) - var(--i, 0) * 2s); }
@keyframes kfloat { 0%, 100% { translate: 0 0; rotate: x 0deg; } 50% { translate: 0 -5px; rotate: x 2.5deg; } }
.kind::before { content: ""; position: absolute; left: 7%; right: 7%; top: 34%; bottom: -16px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--k), .75), rgba(var(--k), 0)); filter: blur(20px); opacity: .22; transform: translateZ(-2px); transition: opacity .45s; }
.kface { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 116px; padding: 18px 20px; border-radius: inherit; transform-style: preserve-3d;
  background: radial-gradient(360px 150px at var(--mx, 24%) var(--my, -10%), rgba(255, 255, 255, .1), transparent 62%), linear-gradient(162deg, rgba(52, 59, 71, .94), rgba(15, 17, 22, .97) 64%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .17), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 var(--side) 0 -1px #050608, 0 var(--side) 0 0 rgba(214, 226, 242, .14), 0 calc(var(--side) + 20px) 38px -18px rgba(0, 0, 0, .95);
  transition: box-shadow .4s var(--ease); }
.kedge { position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: .6; transition: opacity .35s;
  background: conic-gradient(from var(--a), rgba(214, 226, 242, .16) 0deg 210deg, rgba(var(--k), .95) 285deg, #fff 305deg, rgba(var(--k), .95) 325deg, rgba(214, 226, 242, .16) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: kedge 6s linear infinite; animation-delay: calc(var(--t0, 0s) - var(--i, 0) * 1.4s); }
@keyframes kedge { to { --a: 360deg; } }
.kind .ki { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: var(--plat); transform: translateZ(26px);
  background: linear-gradient(160deg, rgba(214, 226, 242, .17), rgba(214, 226, 242, .04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(214, 226, 242, .2) inset, 0 12px 20px -12px #000;
  transition: background .35s, color .35s, box-shadow .35s; }
.kind .ki .ic { width: 23px; height: 23px; }
.kind .kt { min-width: 0; transform: translateZ(14px); }
.kind .kt b { display: block; font: 400 clamp(24px, 1.65vw, 36px)/1.04 var(--serif); letter-spacing: -.01em; }
.kind .kt small { display: block; color: var(--muted); font-size: .8em; line-height: 1.35; margin-top: 5px; }
.kart { display: block; width: clamp(88px, 6.4vw, 132px); margin-right: 18px; aspect-ratio: 120 / 64; color: var(--plat); opacity: .62; transform: translateZ(20px); transition: opacity .35s, color .35s; }
.kart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.kind kbd { position: absolute; top: 11px; right: 13px; transform: translateZ(22px); transition: opacity .25s; }
.kon { position: absolute; top: 10px; right: 11px; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: var(--ink); background: var(--grad);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -8px rgba(var(--k), .9); transform: translateZ(24px) scale(.4); opacity: 0; transition: opacity .3s, transform .45s var(--ease); }
.kon .ic { width: 15px; height: 15px; }
/* pointed at (a mouse), chosen, not chosen, pressed (any hand) */
@media (hover: hover) {
  .kind:hover { --lift: -7px; --side: 10px; transition: transform .2s ease-out, opacity .35s, filter .35s; }
  .kind:hover::before { opacity: .6; }
  .kind:hover .kedge, .kind:hover .kart { opacity: 1; }
  .kind.dim:hover { opacity: .92; filter: none; }
}
.kind.on { --lift: -5px; --side: 9px; }
.kind.on::before { opacity: .85; animation: khalo 3s ease-in-out infinite; animation-delay: var(--t0, 0s); }
@keyframes khalo { 50% { opacity: .5; } }
.kind.on .kface { background: radial-gradient(360px 150px at var(--mx, 24%) var(--my, -10%), rgba(var(--k), .2), transparent 62%), linear-gradient(162deg, rgba(60, 76, 94, .96), rgba(15, 19, 26, .97) 64%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 var(--side) 0 -1px #06080c, 0 var(--side) 0 0 rgba(var(--k), .5), 0 calc(var(--side) + 22px) 46px -18px rgba(var(--k), .45); }
.kind.on .kedge { opacity: 1; animation-duration: 3s; background: conic-gradient(from var(--a), rgba(var(--k), .5) 0deg 200deg, #fff 290deg, rgba(var(--k), 1) 320deg, rgba(var(--k), .5) 360deg); }
.kind.on .ki { color: var(--ink); background: var(--grad); box-shadow: inset 0 1px 0 #fff, 0 14px 28px -12px rgba(var(--k), .95); }
.kind.on .kart { opacity: 1; color: var(--ice); }
.kind.on kbd { opacity: 0; }
.kind.on .kon { opacity: 1; transform: translateZ(24px) scale(1); }
.kind.dim { opacity: .5; filter: saturate(.3); }
.kind.press, .kind:active { --lift: 2px; --side: 2px; transition-duration: .08s; }
.kind.press .kface, .kind:active .kface { transition-duration: .08s; }
.kind.kpop .kface { animation: kpop .6s var(--ease) both; }
@keyframes kpop { 0% { scale: .955; } 55% { scale: 1.025; } 100% { scale: 1; } }
.kind:focus-visible { outline: none; }
.kind:focus-visible .kface { outline: 2px solid rgba(var(--k), .9); outline-offset: 3px; }
.kinds.rest .kind, .kinds.rest .kind::before, .kinds.rest .kedge, .kinds.rest .kart * { animation-play-state: paused; }
/* the keys' pictures: takes with the retake cut out; a voice laying a clip under each line; a finished reel going on to two templates */
.kart .b { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: kwave 1.2s ease-in-out infinite; animation-delay: calc(var(--t0, 0s) - var(--j) * .13s); }
.kart .b:nth-child(even) { animation-name: kwave2; animation-duration: 1.5s; }
.kart .b.x { animation: kwave 1.2s ease-in-out infinite, kx 3s linear infinite; animation-delay: calc(var(--t0, 0s) - var(--j) * .13s), var(--t0, 0s); }
@keyframes kwave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes kwave2 { 0%, 100% { transform: scaleY(.55); } 40% { transform: scaleY(.18); } 70% { transform: scaleY(.9); } }
@keyframes kx { 0%, 38% { opacity: 1; } 46%, 90% { opacity: .1; } 100% { opacity: 1; } }
.kart .cutl { color: var(--ice); animation: kcut 3s linear infinite; animation-delay: var(--t0, 0s); }
.kart .cutl line { stroke: currentColor; stroke-width: 1.6; }
.kart .cutl circle { fill: currentColor; }
@keyframes kcut { from { transform: translateX(2px); } to { transform: translateX(118px); } }
.kart .mic rect, .kart .mic path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kart .arc { fill: none; stroke: var(--ice); stroke-width: 2.2; stroke-linecap: round; opacity: 0; animation: karc 1.5s ease-out infinite; animation-delay: calc(var(--t0, 0s) - 1.5s + var(--j) * .22s); }
@keyframes karc { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.kart .clip { fill: rgba(214, 226, 242, .05); stroke: currentColor; stroke-opacity: .42; stroke-width: 1.5; animation: kclip 3s ease-in-out infinite; animation-delay: calc(var(--t0, 0s) - 3s + var(--j) * .5s); }
@keyframes kclip { 0%, 6% { fill: rgba(214, 226, 242, .05); stroke-opacity: .42; } 16%, 62% { fill: rgba(166, 216, 242, .5); stroke-opacity: 1; } 78%, 100% { fill: rgba(214, 226, 242, .05); stroke-opacity: .42; } }
.kart .ln { fill: currentColor; opacity: .3; transform-box: fill-box; transform-origin: left center; transform: scaleX(.18); animation: kln 3s ease-in-out infinite; animation-delay: calc(var(--t0, 0s) - 3s + var(--j) * .5s); }
@keyframes kln { 0%, 6% { transform: scaleX(.18); opacity: .3; } 16%, 62% { transform: scaleX(1); opacity: .95; } 78%, 100% { transform: scaleX(.18); opacity: .3; } }
.kart .fr { fill: rgba(214, 226, 242, .05); stroke: currentColor; stroke-width: 1.8; }
.kart .pl { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: kplay 2s ease-in-out infinite; animation-delay: var(--t0, 0s); }
@keyframes kplay { 50% { transform: scale(1.18); opacity: .7; } }
.kart .pt { fill: rgba(214, 226, 242, .16); }
.kart .pv { fill: var(--ice); transform-box: fill-box; transform-origin: left center; animation: kprog 3s linear infinite; animation-delay: var(--t0, 0s); }
@keyframes kprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.kart .ar { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: knudge 1.5s ease-in-out infinite; animation-delay: var(--t0, 0s); }
@keyframes knudge { 50% { transform: translateX(3px); } }
.kart .o { fill: rgba(214, 226, 242, .04); stroke: currentColor; stroke-opacity: .4; stroke-width: 1.5; animation: kout 3s ease-in-out infinite; animation-delay: calc(var(--t0, 0s) - 3s + var(--j) * .6s); }
@keyframes kout { 0%, 50% { fill: rgba(214, 226, 242, .04); stroke-opacity: .4; } 64%, 92% { fill: rgba(166, 216, 242, .32); stroke-opacity: 1; } 100% { fill: rgba(214, 226, 242, .04); stroke-opacity: .4; } }
.kart .ol { fill: currentColor; opacity: .3; animation: kol 3s ease-in-out infinite; animation-delay: calc(var(--t0, 0s) - 3s + var(--j) * .6s); }
@keyframes kol { 0%, 50% { opacity: .3; } 64%, 92% { opacity: .95; } 100% { opacity: .3; } }
/* 2 the templates: small 9:16 cards, each playing the reel it makes, all on one row (more to come: the row wraps) */
.tplsec { margin: 0 0 24px; }
.tplhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; }
.tplhead p { margin: 0; color: var(--muted); flex: 1; min-width: 260px; }
/* captions apart from the templates (17 Oct 2026) */
.tfam { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.tfamhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.tfamhead h3 { margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.tfamhead h3 .ic { width: 18px; height: 18px; }
.tfamhead p { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tcard .tag.new { background: rgba(255, 255, 255, .92); color: #111; }
.capgroup { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.caphead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.caphead h3 { margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.caphead h3 .ic { width: 18px; height: 18px; }
.caphead p { margin: 0; color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(132px, 9.4vw, 196px), 1fr)); gap: 16px 14px; }
.tcard { position: relative; display: grid; gap: 4px; align-content: start; padding: 0 0 6px; border: 0; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.tcard .tv { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000 center / cover no-repeat; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .3s; }
.tcard .tv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard:hover .tv { transform: translateY(-4px); }
.tcard.on .tv { box-shadow: var(--shadow), 0 0 0 2px rgba(var(--k), .95), 0 22px 50px -22px rgba(var(--k), .8); }
.tcard .tick { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--text); background: rgba(8, 10, 13, .86);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset; transition: background .2s, color .2s; }   /* no backdrop blur: 65 of them on the caption grid were redrawn every frame (19 Oct 2026) */
.tcard.on .tick { color: var(--ink); background: var(--grad); }
.tcard .tick .ic { width: 16px; height: 16px; }
.tcard .tag { position: absolute; left: 8px; top: 8px; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 5px 7px; border-radius: 7px; color: var(--ink); background: var(--grad); }
.tcard .tn { display: block; margin-top: 8px; font: 400 clamp(20px, 1.25vw, 26px)/1.05 var(--serif); }
.tcard .ta { display: block; color: var(--muted); font-size: .8em; line-height: 1.35; }
.tcard .tm { display: block; color: var(--soft); font-size: 11px; margin-top: 2px; }
.tcard.soon { opacity: .72; }
.tcard.soon .tv { display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 10px, transparent 10px 20px), #0c0e12; }
.tcard .soonlbl { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
/* 3 the files, one wide panel; 4 Make it, in its place (it never covers anything) */
.intake { display: grid; gap: 12px; margin: 0 0 18px; }
.inbox .dropzone, .inbox .filecard { margin-top: 0; }
.inbox.two > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.startbar { position: sticky; bottom: 16px; z-index: 6; display: flex; align-items: center; gap: 18px; padding: 14px 14px 14px 18px; border-radius: 22px; margin-top: 18px;
  background: rgba(13, 15, 19, .96); box-shadow: var(--shadow), 0 -18px 40px -12px rgba(0, 0, 0, .85); }
/* nothing of the page shows above the top bar while it scrolls under it */
html.home-on body::before { content: ""; position: fixed; z-index: 29; left: 0; right: 0; top: 0; height: 12px; background: var(--bg); pointer-events: none; }
.startbar .sbt { flex: 1; min-width: 0; }
.startbar .sbt b { display: block; font: 400 26px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.startbar .sbt small { display: block; color: var(--muted); font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.startbar .go { padding: 16px 22px; font-size: 16px; border-radius: 16px; gap: 12px; flex: none; }
.startbar .go .sub { font: 600 12px var(--mono); opacity: .65; }
@media (max-width: 1180px) {
  .runpane, .createsec { scroll-margin-top: 150px; }                       /* (the top bar is two rows here) */
  .lw-hero .lw-left { top: 14px; max-height: calc(100% - 120px); }
  .lw-hero .lw-right { top: 14px; height: calc(100% - 120px); }
  .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .kinds > .step { grid-column: 1 / -1; }
  .kface { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; min-height: 104px; padding: 14px 14px 14px 15px; }
  .kind .ki { width: 46px; height: 46px; border-radius: 15px; }
  .kind .ki .ic { width: 21px; height: 21px; }
  .kart { width: 76px; margin-right: 12px; }
  .kon { top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 8px; }
  .kind kbd { display: none; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
}
@media (max-width: 900px) {
  .livehero { width: auto; margin: 12px 0 0; height: auto; min-height: 0; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .livehero .lw { border-radius: 22px; }
  .lw-down { position: static; margin: 0 0 12px; }
  .livehero { display: flex; flex-direction: column; }                     /* (the world, what needs him, now making and the feed, then today) */
  .livehero > .lw { order: 0; } .livehero > .lw-needs { order: 1; } .livehero > .lw-right { order: 2; } .livehero > .lw-left { order: 3; } .livehero > .lw-down { order: 4; }
  .lw-hero .lw-right { height: auto; overflow: visible; }
  .lw-hero .lw-nowcard { max-height: none; }
  .lw-hero .lw-feed { max-height: 56vh; }
  .kart { width: 112px; margin-right: 28px; }
  .lw-reset { left: 16px; bottom: 14px; }
  .lw-made { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .inbox.two > div { grid-template-columns: minmax(0, 1fr); }
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .startbar { position: static; flex-wrap: wrap; }                         /* (a narrow screen: at the end of Create, it covers nothing) */
  .startbar .go { width: 100%; justify-content: center; }
}
/* over the live world nothing blurs what is behind it (16 Oct 2026: the world is drawn anew every frame, and every blur behind a
   panel is drawn again with it; measured, a fifth of the frames came late with them): the big panels are a shade more opaque instead */
.livehero .glass, .livehero .lw-pin, .livehero .lw-tok, .livehero .lw-tools .field.search input, .livehero .lw-views button, .livehero .lw-reset.on { -webkit-backdrop-filter: none; backdrop-filter: none; }
.livehero .glass { background: rgba(15, 18, 23, .9); }
.livehero .lw-pin:not(:hover):not(.on) { background: rgba(10, 12, 16, .84); }
/* the works (16 Oct 2026): a place for every template, in districts; one still to come is dimmed and says so */
.lw-pin.soon { opacity: .62; }
.lw-pin.soon em { font: 700 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.lw-dist { position: absolute; left: 0; top: 0; pointer-events: none; font: 700 calc(10.5px * var(--ui, 1))/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: rgba(166, 216, 242, .5);
  white-space: nowrap; will-change: transform; transition: opacity .25s; text-shadow: 0 0 14px #000, 0 0 4px #000; }
.lw-tok.far { opacity: 0 !important; pointer-events: none !important; }
.lw-labels.far .lw-pin.tpl:not(.busy):not(.on):not(:hover) b, .lw-labels.far .lw-pin.tpl.soon:not(:hover) em { display: none; }
.lw-labels.far .lw-pin.tpl:not(.has):not(:hover) em { display: none; }
.lw-hero .lw-now { grid-auto-rows: max-content; align-content: start; }   /* (many jobs at once: each row keeps its height, the list scrolls) */
/* the words over the works, smaller and never on top of each other (16 Oct 2026, Harsh: "wo chhote kar do aur distance kar do ...
   cluttered na ho"): one that would cover a more important one waits hidden until there is room (live3d.js, declutter) */
.lw-labels .lw-pin { gap: .45em; padding: .36em .55em .36em .45em; border-radius: 10px; font-size: calc(.74em * var(--ui, 1)); }
.lw-labels .lw-pin .ic { width: 1.05em; height: 1.05em; }
.lw-labels .lw-pin b { font-size: 1.16em; }
.lw-labels .lw-pin em { font-size: calc(10px * var(--ui, 1)); padding: 3px 6px; }
.lw-labels .lw-pin::after { height: 18px; }
.lw-labels .lw-tok { gap: 7px; max-width: calc(210px * var(--ui, 1)); margin-top: 12px; padding: 5px 9px 5px 7px; border-radius: 11px; font-size: calc(.78em * var(--ui, 1)); }
.lw-labels .lw-tok i { width: 7px; height: 7px; }
.lw-labels .lw-tok em { font-size: calc(10.5px * var(--ui, 1)); }
.lw-pin.tuck, .lw-tok.tuck { opacity: 0 !important; pointer-events: none !important; }

/* ------------------------------------------------------------ a big screen (16 Oct 2026, Harsh's own: a Samsung Odyssey G9, 5120 x 1440,
   144 Hz, "is desktop ke hisaab se nahi build kiya hai ... bahut badi screen hai"). Type, keys and cards grow with the window (--ui, from
   app.js: 1 on a laptop and an iPad), never the world's canvas or where its words stand: the bar, the sections and the panels over the
   world are zoomed, the world's words grow by their font. On a screen at least 2600 wide and twice as wide as tall the front page is
   two columns: the live world on the left, as tall as the window and staying while the right scrolls, its panels at its own edges;
   what is being made, Create and the recent work on the right, every template on one row. */
.topbar, #vRun, #vCreate, #vRecent, #vProjects, #vTemplates, .toasts { zoom: var(--ui, 1); }
.lw-hero .lw-card, .lw-hero .lw-tools, .lw-hero .lw-needs, .lw-hero .lw-down, .lw-hero .lw-reset { zoom: var(--ui, 1); }
@media (min-width: 1600px) {
  .lw-hero .lw-left { width: calc(clamp(280px, 17vw, 370px) * var(--ui, 1)); }
  .lw-hero .lw-right { width: calc(clamp(340px, 23vw, 500px) * var(--ui, 1)); }
}
@media (min-width: 2400px) {                                                 /* (a big screen: the panels at its edges, the world between them) */
  .lw-hero .lw-left, .lw-hero .lw-reset { left: 24px; } .lw-hero .lw-right, .lw-hero .lw-down { right: 24px; }
}
@media (min-width: 2600px) and (min-aspect-ratio: 2/1) {
  :root { --wrap: calc(100% - 64px); }
  html.home-on #vHome { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 30px; align-items: start; }
  html.home-on #vLive.livehero { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: calc(26px + 64px * var(--ui, 1)); width: auto; margin: 4px 0 0;
    height: calc(100vh - 40px - 64px * var(--ui, 1)); min-height: 560px; border-radius: 30px; }
  html.home-on #vRun, html.home-on #vCreate, html.home-on #vRecent { grid-column: 2; min-width: 0; }
  html.home-on #vRun { margin-top: 4px; }
  html.home-on #vCreate { margin-top: 4px; scroll-margin-top: calc(26px + 64px * var(--ui, 1)); }
  html.home-on .runpane { scroll-margin-top: calc(26px + 64px * var(--ui, 1)); }
  .lw-hero .lw-left { left: 20px; } .lw-hero .lw-right { right: 20px; }
  .lw-hero .lw-reset { left: 16px; } .lw-hero .lw-down { right: 16px; }
  .createsec .cards { grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 9.4vw, 196px), 1fr)); }   /* (auto-fill: 3 cards on the G9 stood
     1,700 px wide each with auto-fit, 21 Oct 2026, Harsh: "ekdum zoomed") */
  .createsec .tcard .tm { font-size: 11.5px; }
}

/* the final check and "Galat hai" (16 Oct 2026) */
.fcheck { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.fcheck b { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.fcheck b.good { color: var(--good); } .fcheck b.bad { color: var(--warn); }
.fcheck ul { margin: 6px 0 0 18px; padding: 0; display: grid; gap: 3px; }
.galat { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.galat input { flex: 1 1 220px; min-width: 0; background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 9px 12px; color: var(--text); font: inherit; font-size: 14px; }
.galat .mono { font-family: var(--mono); color: var(--ice); }

/* the colours: a palette for every template (16 Oct 2026) */
.colours { margin: 22px 0 14px; display: grid; gap: 12px; }
.pals { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--soft); font: inherit; font-size: 13px; cursor: pointer; }
.pal:hover { border-color: var(--line2); color: var(--text); }
.pal.on { border-color: var(--ice); color: var(--text); box-shadow: 0 0 0 2px rgba(var(--k), .25); }
.pal.add { border-style: dashed; }
.pal.busy { opacity: .6; pointer-events: none; }
.sw { display: inline-flex; }
.sw i { width: 14px; height: 14px; border-radius: 50%; margin-left: -4px; border: 1.5px solid rgba(0, 0, 0, .35); }
.sw i:first-child { margin-left: 0; }
.pals.mini { margin-top: 10px; gap: 6px; }
.pals.mini .lbl { font-size: 12px; color: var(--muted); margin-right: 4px; }
/* the colour examples: each palette button shows the template in that palette (17 Oct 2026) */
.pals.ex { gap: 10px; align-items: flex-start; }
.pals.ex .pal:not(.add) { flex-direction: column; align-items: stretch; padding: 6px; border-radius: 14px; gap: 6px; }
.pals.ex .pal .pex { width: 64px; height: 114px; object-fit: cover; border-radius: 9px; display: block; background: var(--panel); }
.pals.ex .pal .pname { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.pals.ex .pal.add { align-self: center; }
.pals.mini.ex { gap: 6px; }
.pals.mini.ex .lbl { width: 100%; }
.pals.mini.ex .pal:not(.add) { padding: 4px; border-radius: 11px; gap: 4px; }
.pals.mini.ex .pal .pex { width: 38px; height: 68px; border-radius: 7px; }
.pals.mini.ex .pal .pname { font-size: 10px; gap: 4px; }
.pals.mini.ex .pal .pname .sw i { width: 9px; height: 9px; }
.palhint { font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
.palprev { display: flex; gap: 12px; flex-wrap: wrap; }
.palprev figure { margin: 0; text-align: center; }
.palprev img { width: 120px; height: 213px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; transition: opacity .15s; }
.palprev figcaption { font-size: 12px; color: var(--soft); margin-top: 6px; }
.pals.mini .pal { padding: 6px 8px; }
.palform { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 14px 16px; border-radius: 18px; }
.palform input[type=color] { width: 54px; height: 34px; border: 0; background: none; padding: 0; }
.palform input[type=text] { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; }
.clients { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.clients .lbl { font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); cursor: help; }
.clients select { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--panel2); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); font: inherit; font-size: 13px; min-width: 210px; max-width: 100%; }
.clientform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.clientform input { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; min-width: 180px; }

/* the caption cards his way (18 Oct 2026, Harsh: rearrange by dragging, favourites, take some away): the bar, "Sajao" mode */
.capbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; }
.capbtn { cursor: pointer; border: 0; transition: background .2s, color .2s; }
.capbtn:hover { color: var(--text); }
.capbtn.on { color: var(--ink); background: var(--grad); box-shadow: none; }
.capbtn .ic { width: 14px; height: 14px; }
.capbtn[aria-pressed="true"] .ic, .capbtn.on .ic { stroke: currentColor; }
.caphint { color: var(--muted); font-size: 12px; margin-right: auto; }
.capempty { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 6px 0; }
.tcard .favmark { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #ffd54a;
  background: rgba(8, 10, 13, .82); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; }   /* (no backdrop blur, as .tick) */
.tcard .favmark .ic { width: 14px; height: 14px; fill: currentColor; }
.arrcard { position: relative; border-radius: 18px; }
.arrcard > .tcard { pointer-events: none; }
.arrcard > .tcard .tick { display: none; }
.cards.arranging .arrcard > .tcard .tv { box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .22); }
.arrcard .grip, .arrcard .favbtn, .arrcard .hidebtn { position: absolute; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px;
  cursor: pointer; color: var(--text); background: rgba(8, 10, 13, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset; transition: background .2s, color .2s; }
.arrcard .grip { left: 8px; top: 8px; cursor: grab; touch-action: none; }
.arrcard .grip:active { cursor: grabbing; }
.arrcard .grip .ic { stroke-width: 3.4; }
.arrcard .favbtn { right: 8px; top: 8px; }
.arrcard .favbtn.on { color: #ffd54a; }
.arrcard .favbtn.on .ic { fill: currentColor; }
.arrcard .hidebtn { right: 8px; top: 56px; }
.arrcard .hidebtn.back { left: 50%; right: auto; top: 34%; width: auto; height: auto; display: inline-flex; gap: 6px; padding: 10px 14px; transform: translateX(-50%);
  border-radius: 99px; font: 600 13px/1 var(--sans); white-space: nowrap; color: var(--ink); background: var(--grad); box-shadow: none; }
.arrcard .hidebtn.back .ic { width: 15px; height: 15px; }
.arrcard.gone > .tcard { opacity: .38; filter: grayscale(.7); }
.arrcard.capslot { opacity: .22; }
.arrcard .grip:focus-visible, .arrcard .favbtn:focus-visible, .arrcard .hidebtn:focus-visible, .capbtn:focus-visible { outline: 2px solid rgba(var(--k), .95); outline-offset: 2px; }
.capghost { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: .94; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .6)); will-change: transform; }
.capghost > .tcard .tv { box-shadow: var(--shadow), 0 0 0 2px rgba(var(--k), .95); }
@media (hover: hover) {
  .arrcard .grip:hover { color: var(--ink); background: var(--grad); box-shadow: none; }
  .arrcard .favbtn:hover { color: #ffd54a; }
  .arrcard .hidebtn:not(.back):hover { color: #ff7a7a; }
}

/* the caption cards as strips (19 Oct 2026, Harsh: "caption to uski size jitna bhi ho sakta hai ... card basically chhoti patti jitna,
   jisse hum ek hi saath bahut saare caption dekh sakein"): a 2:1 strip of the caption on black (make_cap_loops), its name and its
   time under it (what it does is the tip) */
.capcards .cards { grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15vw, 280px), 1fr)); gap: 14px 12px; }
.tcard.capstrip .tv { aspect-ratio: 2 / 1; border-radius: 12px; }
.tcard.capstrip .tn { margin-top: 4px; font-size: clamp(16px, 1.05vw, 20px); }
.tcard.capstrip .ta { display: none; }
.tcard.capstrip .tick { width: 26px; height: 26px; right: 6px; bottom: 6px; border-radius: 8px; }
.tcard.capstrip .favmark { left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 7px; }
.arrcard:has(> .tcard.capstrip) :is(.grip, .favbtn, .hidebtn:not(.back)) { top: 6px; width: 34px; height: 34px; border-radius: 10px; }
.arrcard:has(> .tcard.capstrip) :is(.grip, .favbtn, .hidebtn:not(.back)) .ic { width: 16px; height: 16px; }
.arrcard:has(> .tcard.capstrip) .grip { left: 6px; }
.arrcard:has(> .tcard.capstrip) .favbtn { right: 6px; }
.arrcard:has(> .tcard.capstrip) .hidebtn:not(.back) { right: 46px; }
.arrcard:has(> .tcard.capstrip) .hidebtn.back { top: 22%; padding: 8px 12px; }
/* where the captions go: Ek jagah / Ghoomta (19 Oct 2026) */
.capmode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -2px 0 14px; }
.capmode .lbl { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* switches to find what weighs on the Mac (?noanim, ?noblur; 19 Oct 2026) */
html.dbg-noanim *, html.dbg-noanim *::before, html.dbg-noanim *::after { animation: none !important; }
html.dbg-noblur *, html.dbg-noblur *::before, html.dbg-noblur *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* the page at rest (app.js, 19 Oct 2026: the page froze the Mac mini): nothing moves until a hand comes back; a spinner keeps
   turning (it says the Mac is working) */
html.rest *, html.rest *::before, html.rest *::after, html.macbusy *, html.macbusy *::before, html.macbusy *::after { animation-play-state: paused !important; }
html.rest .spin, html.macbusy .spin { animation-play-state: running !important; }   /* (html.macbusy: the Mac at work, app.js) */

/* the shine sweeps of the logo, the brand name and the gradient headings step 14 times a second (19 Oct 2026, the page froze the Mac
   mini: every change of a sweep repaints its text and the blurred top bar over it; Chrome did it 144 times a second on the G9) */
.grad, .brand .bt em { animation-timing-function: steps(98); }
.logo { animation-timing-function: steps(126); }

/* ---------------------------------------------------------------- a made caption look's card (22 Oct 2026, Harsh: the old one hid its editor
   among small keys and showed its colours as dots): the download and "Edit captions" side by side, Fixed or Moving, the standout colour
   as caption samples, every version kept (the last five) to play or download */
.acts .dlrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.acts .dlrow .capedit { padding: 0 20px; font-size: 15px; color: var(--text); }
.acts .capset { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.acts .capset .lbl { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.acts .capset .lbl small { letter-spacing: 0; text-transform: none; font-weight: 500; }
.acts .capmode.capset { margin: 0; display: flex; justify-content: space-between; }
.acts .cchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.acts .cchip { border: 0; border-radius: 11px; padding: 9px 4px 6px; background: #0b0d11; box-shadow: 0 0 0 1px var(--line) inset; text-align: center; min-width: 0; transition: box-shadow .15s, transform .1s; }
.acts .cchip:hover { box-shadow: 0 0 0 1px var(--line2) inset; }
.acts .cchip:active { transform: scale(.97); }
.acts .cchip.on { box-shadow: 0 0 0 2px var(--ice) inset; }
.acts .cchip.busy { opacity: .55; pointer-events: none; }
.acts .cchip .cs { display: block; font: 800 14px/1.2 var(--sans); white-space: nowrap; overflow: hidden; }
.acts .cchip small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acts .vlist { display: grid; }
.acts .vrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.acts .vrow:first-child { border-top: 0; padding-top: 0; }
.acts .vrow .vn { text-align: center; font-size: 12.5px; font-weight: 700; padding: 4px 0; border-radius: 8px; box-shadow: 0 0 0 1px var(--line2) inset; color: var(--soft); }
.acts .vrow.latest .vn { background: var(--grad); color: var(--ink); box-shadow: none; }
.acts .vrow.playing .vn { box-shadow: 0 0 0 2px var(--ice) inset; }
.acts .vrow .vt { min-width: 0; display: grid; }
.acts .vrow .vt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acts .vrow .vt small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.acts .vrow .vt .sw { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.acts .vrow .vk { display: flex; gap: 6px; }
.acts .vrow .vk .btn { padding: 7px 10px; font-size: 12.5px; }
@media (max-width: 560px) { .acts .dlrow { grid-template-columns: 1fr; } .acts .dlrow .capedit { padding: 12px; } .acts .vrow .vk .btn .ic { display: none; } }

/* ---------------------------------------------------------------- the studios (25 Oct 2026, Harsh: "caption ki category alag se define
   karo aur upar rakho ... voiceover mode saath mein integrate"): a start's own panel at the top of step 2, its edits and caption looks as
   9:16 sample reels, what comes out, the rest folded under it; a look's whole sample reel over the page */
.st-sec > .tplhead { margin-bottom: 16px; }
.st-panel { position: relative; border-radius: 26px; padding: 20px 22px 18px; margin: 0 0 16px; overflow: hidden; }
.st-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(760px 260px at 8% 0%, rgba(var(--k), .11), transparent 70%); pointer-events: none; }
.st-panel > * { position: relative; }
.st-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-head .si { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--ink); background: var(--grad-ice); flex: none; }
.st-head .si .ic { width: 21px; height: 21px; }
.st-head h3 { margin: 0; font: 400 clamp(28px, 2vw, 40px)/1 var(--serif); letter-spacing: -.01em; }
.st-head .chips { margin-left: auto; }
.st-sub { margin: 8px 0 0; color: var(--muted); max-width: 76ch; }
.st-guide { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }
.st-guide span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; font: 600 13px/1 var(--sans); color: var(--soft); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; }
.st-guide span b { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 700 11.5px var(--mono); color: var(--ink); background: var(--grad); }
.st-guide i { font-style: normal; color: var(--dim); }
.st-row { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.st-rowhead { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 12px; }
.st-rowhead .lt { font: 700 12px/1 var(--mono); color: var(--ink); background: var(--grad-ice); padding: 5px 8px; border-radius: 7px; }
.st-rowhead h4 { margin: 0; font: 600 18px/1.15 var(--sans); }
.st-rowhead p { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1 1 320px; }
.st-rowhead .capmode { margin: 0 0 0 auto; }
.st-card { position: relative; min-width: 0; }
.st-card > .tcard { width: 100%; }
.st-ov { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 9 / 16; pointer-events: none; }
.st-play { position: absolute; left: 8px; bottom: 8px; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 7px 10px 7px 8px; border-radius: 9px;
  font: 600 12px/1 var(--sans); color: var(--ink); background: rgba(255, 255, 255, .93); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.st-play:hover { transform: translateY(-1px); background: #fff; }
.st-play .ic { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.tcard .tag.auto { background: #ffd54a; color: #111; }
.st-nowords { position: absolute; inset: 0; display: grid; place-items: center; font: 600 13px var(--sans); color: var(--soft); background: rgba(7, 8, 10, .42); }
.tcard.st-nocap:not(.on) .tv { filter: saturate(.5); }
.st-out { margin-top: 16px; border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; background: rgba(var(--k), .07); box-shadow: 0 0 0 1px rgba(var(--k), .3) inset; }
.st-out .lbl { font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.st-out ol { margin: 0; padding: 0; list-style: none; display: flex; gap: 6px 18px; flex-wrap: wrap; flex: 1 1 300px; }
.st-out li { display: inline-flex; gap: 7px; align-items: baseline; font-size: 14px; color: var(--text); }
.st-out li b { width: 19px; height: 19px; border-radius: 6px; display: inline-grid; place-items: center; font: 700 11px var(--mono); color: var(--ink); background: var(--grad-ice); flex: none; }
.st-out .tot { color: var(--soft); font-size: 13px; }
.st-fold { margin-top: 12px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: 0 0 0 1px var(--line) inset; }
.st-row .st-fold { background: transparent; box-shadow: none; margin-top: 14px; }
.st-foldbtn { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--soft); padding: 13px 15px; text-align: left; font: 500 14px var(--sans); cursor: pointer; border-radius: 16px; }
.st-row .st-foldbtn { width: auto; display: inline-flex; padding: 9px 13px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; }
.st-foldbtn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.st-foldbtn b { color: var(--text); font-weight: 600; white-space: nowrap; }
.st-foldbtn .ic { width: 16px; height: 16px; }
.st-foldbtn .st-names { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-foldbtn .open { font: 600 12px var(--mono); color: var(--soft); white-space: nowrap; }
.st-foldbody { padding: 4px 15px 16px; }
.st-row .st-foldbody { padding: 12px 0 0; }
.st-tabs { margin: 0 0 22px; flex-wrap: wrap; }
.st-tabs button { padding: 9px 14px; font-size: 14px; }
.st-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 7, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }   /* (no fade-in: html.rest and html.macbusy pause every animation, and a paused fade stays at 0) */
.st-mbox { display: grid; grid-template-columns: auto minmax(240px, 320px); gap: 20px; align-items: end; border-radius: 24px; padding: 14px 20px 14px 14px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto; }
.st-mv video { display: block; height: min(78vh, 760px); aspect-ratio: 9 / 16; border-radius: 16px; background: #000; }
.st-mt h3 { margin: 0 0 8px; font: 400 30px/1.05 var(--serif); }
.st-mt p { margin: 0 0 10px; color: var(--soft); font-size: 14px; }
.st-mt small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.st-mbtns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .st-panel { padding: 16px 14px 14px; border-radius: 22px; }
  .st-head .chips { margin-left: 0; flex-basis: 100%; }
  .st-rowhead .capmode { margin-left: 0; }
  .st-mbox { grid-template-columns: 1fr; padding: 12px; }
  .st-mv video { height: auto; width: min(100%, 340px); max-height: 62vh; margin: 0 auto; }
}
