/* SITEBOT: a late-night assembly line crossed with a dev terminal. */
:root {
  --bg: #0a0d11;
  --bg-2: #10151b;
  --steel-1: #1a2129;
  --steel-2: #131920;
  --steel-hi: #3a4653;
  --line: #27313c;
  --text: #e9f0f5;
  --muted: #a0b1c0;
  --dim: #7a8b9b;
  --acc: #2ee6ff;          /* electric cyan: primary accent */
  --acc-2: #8af3ff;
  --acc-d: #0aa9c4;
  --sig: #ff7a1f;          /* signal orange: alerts, burns, stamps */
  --sig-2: #ffae5c;
  --paper: #e4eaef;        /* work-order labels */
  --paper-2: #cdd7df;
  --ink: #0e141a;
  --ink-2: #4b5966;
  --term: #05080b;
  --code: #cfe3ee;
  --green: #3dff8e;        /* terminal green */
  --amber: #ffc94d;
  --red: #ff5468;
  --blue: #9ab8ff;
  --r: 12px;
  --gut: 16px;
  --fd: 'Chakra Petch', 'Bahnschrift', 'Arial Narrow', sans-serif;
  --fb: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gut: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.55 var(--fb);
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 82% -10%, rgba(46, 230, 255, .13), transparent 62%),
    radial-gradient(700px 420px at -5% 35%, rgba(255, 122, 31, .06), transparent 70%),
    linear-gradient(rgba(46, 230, 255, .028) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(46, 230, 255, .028) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--acc); }
a:hover { color: var(--acc-2); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--fm); font-size: .92em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.dim { color: var(--dim); }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--acc); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font: 700 14px/1 var(--fd); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-hot { background: linear-gradient(180deg, #7ff1ff, var(--acc) 50%, var(--acc-d)); color: #021317; box-shadow: 0 0 0 1px rgba(46, 230, 255, .45), 0 8px 26px rgba(46, 230, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-hot:hover { color: #021317; box-shadow: 0 0 0 1px rgba(138, 243, 255, .7), 0 10px 34px rgba(46, 230, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-steel { background: linear-gradient(180deg, #2f3943, #1e262e); color: var(--text); border-color: #43505d; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn-steel:hover { color: #fff; border-color: rgba(46, 230, 255, .5); background: linear-gradient(180deg, #36414c, #222b34); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: #fff; border-color: var(--steel-hi); }
.btn-ghost[aria-disabled] { opacity: .5; pointer-events: none; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--acc); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--steel-2); color: var(--text); cursor: pointer; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="true"] { color: var(--dim); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 4px; font: 700 11px/1.4 var(--fm); letter-spacing: .05em; text-transform: uppercase; background: rgba(8, 11, 14, .88); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-cooking { color: var(--acc); border-color: rgba(46, 230, 255, .55); background: rgba(4, 30, 38, .92); }
.st-cooking i { background: var(--acc); box-shadow: 0 0 8px var(--acc); animation: pulse 1s ease-in-out infinite; }
.st-queued { color: var(--amber); border-color: rgba(255, 201, 77, .4); }
.st-idle { color: var(--muted); }
.st-break { color: var(--sig-2); border-color: rgba(255, 122, 31, .45); }
.st-break i { background: var(--sig); }
.st-done { color: var(--green); border-color: rgba(61, 255, 142, .4); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 4px; font: 600 12px/1.4 var(--fm); color: var(--muted); background: var(--steel-2); border: 1px solid var(--line); }
.tag-hire { color: var(--amber); border-color: rgba(255, 201, 77, .45); }
.tag-launch { color: var(--acc); border-color: rgba(46, 230, 255, .45); }

.av { position: relative; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #1d4752, #101a20); }
.av::before { content: attr(data-l); font: 700 18px/1 var(--fd); color: var(--acc); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 22px; height: 22px; border-radius: 5px; }
.av.sm::before { font-size: 12px; }
.av-lg { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 0 0 3px var(--steel-1), 0 0 0 4px rgba(46, 230, 255, .35); }
.av-lg::before { font-size: 32px; }
@media (max-width: 520px) { .av-lg { width: 52px; height: 52px; border-radius: 12px; } .k-id { gap: 12px; } }

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--steel-1), var(--steel-2));
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--shadow);
}
.panel h2 { font: 700 21px/1.1 var(--fd); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.panel h2 small { font: 500 13px var(--fb); color: var(--muted); text-transform: none; letter-spacing: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 12px/1 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 255, 142, .6); animation: ring 1.6s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 10px rgba(61, 255, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 142, 0); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes led { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .25; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 13, 17, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #1f2830; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(46, 230, 255, .45), transparent); pointer-events: none; }
.tb-in { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-av { position: relative; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #15414b, #0a1216 75%); border: 1px solid rgba(46, 230, 255, .35); display: grid; place-items: center; }
.brand-av svg { width: 26px; height: 26px; }
.brand-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.brand-t { font: 700 21px/1 var(--fd); letter-spacing: .08em; }
.brand-t em, .foot-brand em { font-style: normal; color: var(--acc); }
.tb-nav { display: flex; gap: 2px; margin-left: auto; }
.tb-nav a { padding: 8px 12px; border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.tb-nav a:hover, .tb-nav a[aria-current] { color: var(--text); background: rgba(46, 230, 255, .07); }
.tb-right { display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 700 11px/1 var(--fm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.live[data-s="live"] { color: var(--green); }
.live[data-s="live"] i { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.live[data-s="down"] i { background: var(--sig); }
@media (max-width: 860px) {
  .tb-nav a:nth-child(1), .tb-nav a:nth-child(2), .tb-nav a:nth-child(4) { display: none; }
}
@media (max-width: 520px) {
  .tb-in { gap: 8px; }
  .brand-t { font-size: 18px; }
  .brand-av { width: 30px; height: 30px; }
  .tb-nav a:nth-child(5) { display: none; }
  .tb-nav a { padding: 8px; }
  .live b { display: none; }
}

/* ---------- SIMULATED badge ---------- */
.sim-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; align-items: stretch; gap: 10px; overflow: hidden;
  padding: 0 12px 0 0; border-radius: 6px; background: #07090c; border: 1px solid #5a4a12;
  font: 600 12px/1.2 var(--fm); color: var(--amber); box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.sim-badge::before { content: ''; width: 12px; background: repeating-linear-gradient(-45deg, #ffc400 0 5px, #111 5px 10px); }
.sim-badge b { align-self: center; margin-left: -10px; padding: 7px 9px; background: #ffc400; color: #111; letter-spacing: .12em; }
.sim-badge span { align-self: center; }
@media (max-width: 520px) { .sim-badge span { display: none; } .sim-badge { padding: 0; } }

/* ---------- toasts / fatal ---------- */
.toasts { position: fixed; right: 12px; bottom: 12px; z-index: 70; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 24px)); }
.toast { background: #07090c; border: 1px solid var(--line); border-left: 4px solid var(--acc); padding: 10px 14px; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow); animation: toast-in .3s ease-out; }
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--green); }
.toast.burn { border-left-color: var(--sig); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .35s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.fatal { margin-top: 24px; padding: 18px; border: 1px solid var(--red); border-radius: var(--r); background: rgba(255, 84, 104, .08); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fatal p { margin: 0; flex: 1; min-width: 220px; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 18px; }
.hero-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 60px 0 28px; } .hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; } }
.wordmark { margin: 0; font: 700 clamp(58px, 17.5vw, 138px)/.9 var(--fd); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.wordmark span { display: inline; }
.wm-a { color: var(--text); }
.wm-b {
  background: linear-gradient(180deg, #c9fbff 0%, var(--acc) 45%, #0b9fc0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(46, 230, 255, .4));
  animation: hum 3.4s infinite steps(1, end);
}
@keyframes hum {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(46, 230, 255, .4)); }
  6% { filter: drop-shadow(0 0 28px rgba(46, 230, 255, .62)); }
  8% { filter: drop-shadow(0 0 10px rgba(46, 230, 255, .22)); }
  44% { filter: drop-shadow(0 0 24px rgba(46, 230, 255, .5)); }
  71% { filter: drop-shadow(0 0 16px rgba(46, 230, 255, .32)); }
}
.wm-sub { margin: 10px 0 0; font: 700 clamp(15px, 2.2vw, 20px)/1.25 var(--fd); letter-spacing: .06em; text-transform: uppercase; color: var(--acc-2); }
.tagline { margin: 16px 0 0; max-width: 44ch; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: #cfdbe4; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-row .btn { flex: 1 1 160px; }
@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }

.hire-box { margin-top: 22px; max-width: 560px; padding: 14px; border-radius: var(--r); background: rgba(5, 8, 11, .75); border: 1px dashed #3a4653; }
.hire-box label { display: block; font: 700 12px/1.3 var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hire-row { display: flex; gap: 8px; }
.hire-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--term); font-family: var(--fm); font-size: 14px; }
.hire-row input::placeholder { color: var(--dim); }
.hire-row input:focus { border-color: var(--acc); outline: none; box-shadow: 0 0 0 3px rgba(46, 230, 255, .22); }
.hire-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.hire-msg, .form-msg { margin: 6px 0 0; font-size: 14px; min-height: 0; }
.hire-msg:empty, .form-msg:empty { display: none; }
[data-kind="err"] { color: #ff8d9a; }
[data-kind="ok"] { color: var(--green); }

/* hero art: the build bay */
.hero-art { position: relative; }
.bay {
  position: relative; margin: 0 auto; max-width: 440px; padding: 0 0 16px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #121920, #0b1015 70%);
  border: 1px solid #25303a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--shadow);
}
.bay::before { /* hazard stripe header */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--sig) 0 10px, #11161b 10px 20px); opacity: .85;
}
.bay-top { position: relative; display: flex; align-items: center; gap: 10px; padding: 18px 16px 0; font: 700 11px/1 var(--fm); letter-spacing: .16em; color: var(--muted); }
.bay-st { margin-left: auto; color: var(--green); }
.leds { display: inline-flex; gap: 6px; }
.leds i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: led 1.1s infinite; }
.leds i:nth-child(2) { background: var(--acc); box-shadow: 0 0 8px var(--acc); animation-duration: .7s; animation-delay: -.3s; }
.leds i:nth-child(3) { background: var(--sig); box-shadow: 0 0 8px var(--sig); animation-duration: 1.7s; animation-delay: -.9s; }
.bot-stage { position: relative; height: 250px; margin-top: 4px; }
.bot-stage::before { /* floor glow */
  content: ''; position: absolute; left: 15%; right: 15%; bottom: 4px; height: 40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(46, 230, 255, .28), transparent 70%);
}
.bot, .bot-fallback { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 100%; width: auto; max-width: 90%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .6)); }
.bot-stage:has(.bot) .bot-fallback { display: none; }
.bot-fallback .eye { animation: eye 2.6s ease-in-out infinite alternate; }
.bot-fallback .ant { animation: led 1.3s infinite; }
.bot-fallback .chest i, .bot-fallback .cled { animation: led 1s infinite; }
.bot-fallback .cled:nth-of-type(2) { animation-delay: -.33s; }
.bot-fallback .cled:nth-of-type(3) { animation-delay: -.66s; }
@keyframes eye { from { transform: translateX(0); } to { transform: translateX(40px); } }
.scanline { position: absolute; left: 12%; right: 12%; top: 8%; height: 2px; border-radius: 2px; background: var(--acc); box-shadow: 0 0 12px 2px rgba(46, 230, 255, .55); opacity: .55; animation: scan 3.2s ease-in-out infinite alternate; pointer-events: none; }
@keyframes scan { to { top: 92%; } }
.belt { position: relative; display: block; width: 100%; height: auto; margin-top: -6px; }
.belt-move { animation: belt .7s linear infinite; }
@keyframes belt { to { stroke-dashoffset: -16; } }
.belt .bl { transform-box: fill-box; transform-origin: 0 50%; animation: build 4.2s ease-out infinite; }
.belt .bl:nth-of-type(2) { animation-delay: .35s; }
.belt .bl:nth-of-type(3) { animation-delay: .7s; }
.belt .bl:nth-of-type(4) { animation-delay: 1.05s; }
.belt .bl:nth-of-type(5) { animation-delay: 1.4s; }
@keyframes build { 0% { transform: scaleX(0); } 18%, 86% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.bay-sign { margin: 10px 0 0; text-align: center; font: 700 10.5px/1.3 var(--fm); letter-spacing: .24em; color: var(--dim); padding: 0 12px; }
@media (max-width: 959px) { .hero-art { max-width: 320px; width: 100%; margin: 0 auto; } .bot-stage { height: 200px; } }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.stat { position: relative; padding: 14px 16px; border-radius: 10px; background: linear-gradient(180deg, #161d24, #10161b); border: 1px solid var(--line); overflow: hidden; }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--steel-hi); }
.stat b { display: block; font: 700 clamp(26px, 5.4vw, 40px)/1 var(--fd); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font: 700 11px/1.2 var(--fm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat.hot::before { background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.stat.hot b { color: var(--acc); text-shadow: 0 0 18px rgba(46, 230, 255, .4); }
.stat.burn::before { background: var(--sig); }
.stat.burn b { color: var(--sig-2); }
.stat.burn.pre b { color: var(--muted); }

/* ---------- sections ---------- */
.sec { padding: 54px 0 0; }
.sec-head { margin-bottom: 20px; }
.sec-head h2 { margin: 0; font: 700 clamp(34px, 6vw, 56px)/1 var(--fd); text-transform: uppercase; letter-spacing: .03em; }
.sec-head h2::after { content: ''; display: block; width: 72px; height: 4px; margin-top: 12px; background: linear-gradient(90deg, var(--acc) 0 70%, transparent 70% 78%, var(--sig) 78%); }
.sec-head p { margin: 12px 0 0; max-width: 62ch; color: var(--muted); }
.sec-head.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.sec-head.row p { flex: 1 1 360px; margin: 0; }
.paused-note { margin-bottom: 16px; padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255, 122, 31, .45); color: var(--sig-2); background: rgba(255, 122, 31, .07); }

/* ---------- THE ASSEMBLY LINE: build bays ---------- */
.stations { display: grid; gap: 16px; }
@media (min-width: 900px) { .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .stations .station { min-height: 430px; } }
.station {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, var(--steel-1), var(--steel-2));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--shadow);
}
.station::before { /* bay floor grid */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 18px 18px;
}
.station > * { position: relative; }
.station[data-mode="cooking"] { border-color: rgba(46, 230, 255, .55); box-shadow: 0 0 0 1px rgba(46, 230, 255, .18), 0 0 46px rgba(46, 230, 255, .1), var(--shadow); }
.station[data-mode="cooking"]::after { /* scanner sweep across the bay */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--acc), transparent); box-shadow: 0 0 14px rgba(46, 230, 255, .6);
  animation: sweep 2.8s ease-in-out infinite alternate;
}
@keyframes sweep { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.station[data-mode="plated"] { border-color: rgba(61, 255, 142, .55); }
.st-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; background: var(--term); border: 1px solid #000; font: 700 11px var(--fm); color: var(--dim); }
.station[data-mode="cooking"] .st-num { color: var(--acc); border-color: rgba(46, 230, 255, .5); box-shadow: 0 0 10px rgba(46, 230, 255, .25); }
.st-name { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--text); line-height: 1.15; }
.st-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.st-name span { font: 600 12px var(--fm); color: var(--acc); }
.st-name:hover b { text-decoration: underline; }
.st-model { margin-left: auto; flex: none; padding: 3px 8px; border-radius: 4px; font: 600 11px/1.4 var(--fm); color: var(--muted); background: var(--term); border: 1px solid #000; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-model:empty { display: none; }
.st-timer { flex: none; font: 700 13px var(--fm); color: var(--acc); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.st-timer:empty { display: none; }
.st-cold { font: 700 17px/1 var(--fd); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-plated { margin-left: auto; font: 600 11px var(--fm); color: var(--dim); white-space: nowrap; }
.st-task { margin: 0; font: 600 12.5px/1.4 var(--fm); color: #c3d4e0; }
.st-note { margin: -4px 0 0; font: italic 500 13px var(--fb); color: var(--amber); }
.st-commit { margin: 0; font-weight: 700; line-height: 1.35; }
.st-commit b { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 4px; background: var(--acc); color: #021317; font: 700 12px/1.5 var(--fm); }
.st-meta { margin: -4px 0 0; font: 500 12px var(--fm); color: var(--muted); }

.term {
  position: relative; flex: none; height: 300px; border-radius: 8px; overflow: hidden;
  background: var(--term); border: 1px solid #000; box-shadow: inset 0 2px 12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(46, 230, 255, .06);
}
.term::after { /* scanlines + top fade */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--term) 0, transparent 22%), repeating-linear-gradient(0deg, rgba(61, 255, 142, .025) 0 1px, transparent 1px 3px);
}
.term pre {
  margin: 0; height: 100%; overflow: hidden; padding: 12px 14px;
  font: 400 12px/1.6 var(--fm); color: var(--code); white-space: pre-wrap; word-break: break-all; tab-size: 2;
}
@media (max-width: 560px) { .term { height: 240px; } .term pre { font-size: 11px; } }
.c-tag { color: var(--acc); }
.c-attr { color: var(--amber); }
.c-str { color: var(--green); }
.c-com { color: #6c7f8f; font-style: italic; }
.c-kw { color: #ff8fd0; }
.c-num { color: var(--sig-2); }
.c-commit { color: #021317; background: var(--green); padding: 0 4px; border-radius: 3px; font-weight: 700; }
.cursor { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--green); animation: blink 1s steps(2, start) infinite; box-shadow: 0 0 8px var(--green); }
@keyframes blink { to { visibility: hidden; } }

/* conveyor progress strip under a working bay (the old "burner" element) */
.burner { position: relative; display: flex; gap: 6px; align-items: center; height: 18px; margin: 0 2px -2px; padding: 0 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #1b232b 0 10px, #141a20 10px 20px); background-size: 20px 100%; border: 1px solid #000; }
.burner i { flex: 1; height: 6px; border-radius: 2px; background: #22303b; }
.station[data-mode="cooking"] .burner { animation: conveyor .6s linear infinite; }
.station[data-mode="cooking"] .burner i { animation: chase 1.2s steps(1, end) infinite; }
.burner i:nth-child(2) { animation-delay: .2s !important; }
.burner i:nth-child(3) { animation-delay: .4s !important; }
.burner i:nth-child(4) { animation-delay: .6s !important; }
.burner i:nth-child(5) { animation-delay: .8s !important; }
.burner i:nth-child(6) { animation-delay: 1s !important; }
@keyframes conveyor { to { background-position: 20px 0; } }
@keyframes chase { 0% { background: var(--acc); box-shadow: 0 0 8px var(--acc); } 34%, 100% { background: #22303b; box-shadow: none; } }
.station .burner { display: none; }
.station[data-mode="cooking"] .burner { display: flex; }

.plate { position: relative; display: block; border-radius: 8px; }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #05080b; border: 1px solid #000; }
.thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform: scale(var(--s, .26)); transform-origin: 0 0; pointer-events: none; background: #fff0; }
.plate .thumb { box-shadow: 0 0 0 3px #2c3946, 0 0 0 4px rgba(61, 255, 142, .5), 0 14px 30px rgba(0, 0, 0, .55); border-radius: 10px; margin: 6px 6px 2px; }
.dish .thumb { box-shadow: 0 0 0 3px #26313b, 0 10px 24px rgba(0, 0, 0, .5); }
.dish:hover .thumb { box-shadow: 0 0 0 3px var(--acc), 0 10px 24px rgba(0, 0, 0, .5); }
.stamp {
  position: absolute; left: 50%; top: 46%; z-index: 3; padding: 4px 16px 2px;
  font: 700 clamp(34px, 6vw, 56px)/1.05 var(--fd); letter-spacing: .08em; color: var(--green); white-space: nowrap;
  border: 4px solid var(--green); border-radius: 6px; background: rgba(3, 14, 9, .7);
  transform: translate(-50%, -50%) rotate(-7deg); text-shadow: 0 0 12px rgba(61, 255, 142, .6);
  box-shadow: 0 0 24px rgba(61, 255, 142, .35), inset 0 0 0 2px rgba(61, 255, 142, .3);
  animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
.stamp.small { position: static; transform: rotate(-4deg); display: inline-block; font-size: 30px; animation: none; margin: 0 0 8px; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(2.4); } 60% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); } }
.station[data-mode="plated"] { animation: flash .9s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--green), 0 0 70px rgba(61, 255, 142, .45), var(--shadow); } }
.cold { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: var(--muted); border: 1px dashed #33404c; border-radius: 8px; padding: 24px; }
.cold p { margin: 0; }
.cold.burnt { border-color: rgba(255, 122, 31, .5); }
.cold.burnt .stamp { color: var(--sig); border-color: var(--sig); text-shadow: 0 0 10px rgba(255, 122, 31, .5); box-shadow: 0 0 20px rgba(255, 122, 31, .25); background: rgba(20, 8, 2, .6); }

/* ---------- work orders: a conveyor of labels ---------- */
.rail { position: relative; margin-top: 6px; }
.rail-bar { position: absolute; left: 0; right: 0; top: 0; height: 18px; z-index: 1;
  background: repeating-linear-gradient(-45deg, #2a3540 0 8px, #1a222a 8px 16px); background-size: 22.6px 100%;
  border-top: 2px solid #3d4a57; border-bottom: 2px solid #05080b; box-shadow: 0 6px 14px rgba(0, 0, 0, .55);
  animation: rail 1.2s linear infinite; }
@keyframes rail { to { background-position: 22.6px 0; } }
.rail-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px; background: radial-gradient(circle at 50% 50%, #3a4653 0 3px, transparent 3.5px) 0 0 / 40px 6px; }
.rail-track {
  position: relative; display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  --rail-pad: max(var(--gut), calc((100% - 1240px) / 2 + var(--gut)));
  padding: 14px var(--rail-pad) 30px; scroll-padding-inline: var(--rail-pad); scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #3a4653 transparent;
  min-height: 210px;
}
.ticket { position: relative; flex: 0 0 196px; scroll-snap-align: start; transform: rotate(var(--tilt, 0deg)); transform-origin: 50% 0; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); transition: opacity .5s, transform .5s; }
.ticket.fresh { animation: drop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes drop { from { transform: translateY(-110%) rotate(-8deg); opacity: 0; } }
.ticket.gone { opacity: 0; transform: translateY(30px) rotate(6deg); }
.tk-clip { position: absolute; z-index: 3; left: 50%; top: -6px; width: 30px; height: 14px; transform: translateX(-50%); border-radius: 3px;
  background: linear-gradient(180deg, #5d6c7a, #2c3743); border: 1px solid #05080b; box-shadow: 0 2px 4px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tk-clip::after { content: ''; position: absolute; left: 50%; top: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 6px var(--acc); }
.tk-paper {
  position: relative; padding: 22px 14px 16px; color: var(--ink); font: 500 13px/1.45 var(--fm); border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, #f1f5f8, var(--paper) 30%, var(--paper-2));
}
.tk-paper::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(-45deg, var(--sig) 0 7px, var(--ink) 7px 14px); }
.tk-paper header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; border-bottom: 2px dashed #a9b6c1; font-size: 12px; color: var(--ink-2); }
.tk-paper header b { color: var(--ink); font-size: 14px; }
.tk-coin { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--ink); text-decoration: none; font-weight: 700; }
.tk-coin:hover { color: #000; text-decoration: underline; }
.tk-item { margin: 6px 0 0; font: 700 19px/1.1 var(--fd); text-transform: uppercase; letter-spacing: .03em; color: #0a1016; }
.tk-note { margin: 6px 0 0; font-size: 12.5px; color: #3a4652; font-style: italic; word-break: break-word; }
.tk-note.dim { color: #66737f; font-style: normal; }
.tk-paper footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 6px; border-top: 1px solid #b6c2cc; font-size: 11.5px; color: var(--ink-2); }
.tk-stamp { position: absolute; right: 8px; top: 44%; padding: 2px 8px; border: 3px solid; border-radius: 4px; font: 700 16px/1.1 var(--fd); letter-spacing: .08em; transform: rotate(-12deg); opacity: 0; }
.ticket[data-status="cooking"] .tk-stamp { opacity: .92; color: #0784a0; }
.ticket[data-status="cooking"] .tk-stamp::before { content: 'BUILDING'; }
.ticket[data-status="done"] .tk-stamp { opacity: .92; color: #12803e; }
.ticket[data-status="done"] .tk-stamp::before { content: 'SHIPPED'; }
.rail-empty { margin: 34px 0 0; color: var(--muted); max-width: 52ch; }

/* ---------- the wall ---------- */
.wall-sec { padding-bottom: 64px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--term); border: 1px solid var(--line); }
.tabs button { min-width: 72px; min-height: 38px; padding: 6px 14px; border: 0; border-radius: 5px; background: none; color: var(--muted); font: 700 13px var(--fd); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.tabs button[aria-selected="true"] { background: linear-gradient(180deg, #7ff1ff, var(--acc)); color: #021317; }
.wall { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--text); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--steel-1), var(--steel-2)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 24px rgba(0, 0, 0, .3); transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(46, 230, 255, .6); box-shadow: 0 0 0 1px rgba(46, 230, 255, .22), 0 16px 34px rgba(0, 0, 0, .45); }
.card[data-status="cooking"] { border-color: rgba(46, 230, 255, .5); }
.card .thumb { border-radius: 0; border: 0; border-bottom: 1px solid #000; }
.thumb-top { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.ver { padding: 2px 8px; border-radius: 4px; background: rgba(5, 8, 11, .88); border: 1px solid var(--line); font: 700 11px/1.4 var(--fm); color: var(--text); }
.hired { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 2px 8px; border-radius: 4px; background: rgba(36, 28, 4, .92); border: 1px solid rgba(255, 201, 77, .5); font: 700 10.5px/1.5 var(--fm); color: var(--amber); text-transform: uppercase; letter-spacing: .06em; }
.warming { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--muted); font: 700 19px/1.15 var(--fd); text-transform: uppercase; letter-spacing: .08em;
  background: repeating-linear-gradient(-45deg, #0c1116 0 10px, #10161c 10px 20px); }
.warming small { font: 500 12px var(--fm); text-transform: none; letter-spacing: 0; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.card-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.card-id b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-id span { font: 600 12px var(--fm); color: var(--acc); }
.model { position: absolute; right: 8px; bottom: 8px; z-index: 2; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 10.5px/1.5 var(--fm); color: var(--text); padding: 2px 7px; border-radius: 4px; background: rgba(5, 8, 11, .9); border: 1px solid var(--line); }
.model:empty { display: none; }
.card-title { margin: 0; font-size: 14px; color: #c8d6e1; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.hot-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); animation: pulse 1s infinite; }
.salary span, .cooks span { font: 600 11.5px var(--fm); color: var(--muted); }
.sal-bar { height: 7px; border-radius: 2px; background: var(--term); border: 1px solid #000; overflow: hidden; margin-bottom: 5px; }
.sal-bar i { display: block; height: 100%; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--acc) 0 6px, var(--acc-d) 6px 8px); }
.sal-bar.big { height: 12px; margin: 12px 0 0; }
.cooks { display: flex; align-items: center; gap: 4px; }
.cooks i { width: 14px; height: 7px; border-radius: 2px; background: #26313b; }
.cooks i.on { background: var(--amber); box-shadow: 0 0 6px rgba(255, 201, 77, .5); }
.cooks span { margin-left: 6px; }
.cooks.big i { width: 30px; height: 12px; border-radius: 3px; }
.empty { color: var(--muted); }

/* ---------- footer ---------- */
.foot { margin-top: 40px; border-top: 1px solid #1f2830; background: linear-gradient(180deg, #0e1318, #080b0e); padding: 34px 0 80px; }
.foot-in { display: grid; gap: 18px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: auto 1fr; align-items: center; } .foot-note { grid-column: 1 / -1; } }
.foot-brand { font: 700 28px/1 var(--fd); letter-spacing: .08em; }
.foot-brand small { display: block; margin-top: 6px; font: 600 12px var(--fm); letter-spacing: .06em; color: var(--dim); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 800px) { .foot-nav { justify-content: flex-end; } }
.foot-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 0; }
.foot-nav a:hover { color: var(--text); }
.foot-note { margin: 0; font-size: 13px; color: var(--dim); max-width: 80ch; }

/* ---------- inner pages ---------- */
.page-head { padding: 40px 0 24px; }
.page-head h1 { margin: 0; font: 700 clamp(40px, 8vw, 78px)/.98 var(--fd); text-transform: uppercase; letter-spacing: .03em; }
.lede { margin: 14px 0 0; max-width: 58ch; font-size: 18px; color: #cfdbe4; }
.fld { position: relative; display: block; margin-top: 14px; }
.fld > span { display: block; margin-bottom: 6px; font: 700 12px/1.3 var(--fm); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fld > span small { text-transform: none; letter-spacing: 0; color: var(--dim); font-weight: 500; }
.fld input, .fld textarea, .ver-pick select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--term); color: var(--text);
}
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(46, 230, 255, .22); }
.fld input::placeholder, .fld textarea::placeholder { color: #66778a; }
.invalid input, .invalid textarea, .drop.invalid, .check.invalid, .models.invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(255, 84, 104, .2); }
.count { position: absolute; right: 10px; bottom: 13px; font: 600 11px var(--fm); color: var(--dim); }

/* ---------- bay page (/k/<mint>) ---------- */
.k-head { display: grid; gap: 14px; padding-top: 24px; padding-bottom: 18px; }
@media (min-width: 900px) { .k-head { grid-template-columns: 1fr auto; align-items: center; } .k-ca { grid-column: 1 / -1; } }
.k-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.k-name { min-width: 0; }
.k-name h1 { margin: 0; font: 700 clamp(28px, 5vw, 50px)/1.05 var(--fd); text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
.k-name .sym { color: var(--acc); font-size: .6em; vertical-align: .25em; margin-left: 4px; }
.k-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.k-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.k-actions .btn { flex: 1 1 auto; }
.k-ca { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; font-size: 13px; color: var(--muted); }
.k-ca span { font: 700 11px var(--fm); letter-spacing: .1em; }
.k-ca code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.k-grid { display: grid; gap: 18px; grid-template-areas: "browser" "side" "log"; padding-bottom: 20px; }
@media (min-width: 1000px) { .k-grid { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto 1fr; grid-template-areas: "browser side" "log side"; align-items: start; } }
.k-browser { grid-area: browser; min-width: 0; }
.k-side { grid-area: side; display: grid; gap: 16px; min-width: 0; }
.k-log { grid-area: log; min-width: 0; }
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #07090c; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: linear-gradient(180deg, #232c35, #19212a); border-bottom: 1px solid #000; }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--sig); }
.dots i:nth-child(2) { background: var(--amber); }
.dots i:nth-child(3) { background: var(--green); }
.url { flex: 1; min-width: 0; padding: 5px 10px; border-radius: 5px; background: var(--term); font: 500 12px var(--fm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver-pick { display: flex; align-items: center; gap: 6px; flex: none; font: 600 11px var(--fm); color: var(--muted); }
.ver-pick select { width: auto; min-height: 32px; padding: 4px 8px; font: 600 12px var(--fm); }
@media (max-width: 480px) { .ver-pick span { display: none; } .dots { display: none; } }
.browser-view { position: relative; height: min(76vh, 760px); min-height: 480px; background: #05080b; }
.browser-view iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff0; }
.warming.big { font-size: 28px; gap: 6px; }
.warming.big p { margin: 0; }
.warming.big small { font-size: 13px; }
.stamp.huge { font-size: clamp(46px, 8vw, 96px); top: 42%; opacity: 0; animation: none; pointer-events: none; }
.stamp.huge.go { animation: stamp-show 2.6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stamp-show {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(2.4); }
  18% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
}
.k-hired-note { margin: 10px 0 0; font-size: 13px; color: var(--amber); }
.k-station { min-height: 0; }
.k-station .term { height: 280px; flex: none; }
.k-station[data-mode="idle"] .st-num, .k-station[data-mode="break"] .st-num { color: var(--dim); }
.k-station[data-mode="break"] .st-task { color: var(--sig-2); }
.elig { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.menu { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; }
.menu legend { padding: 0; margin-bottom: 8px; font: 700 12px var(--fm); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.menu-items { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-item { position: relative; cursor: pointer; }
.menu-item input { position: absolute; opacity: 0; pointer-events: none; }
.menu-item span { display: inline-block; padding: 8px 12px; border-radius: 6px; font: 600 13px var(--fb); background: var(--term); color: var(--text); border: 1px solid #33404c; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .4); transition: transform .1s, border-color .1s; }
.menu-item:hover span { transform: translateY(-1px); border-color: rgba(46, 230, 255, .5); }
.menu-item input:checked + span { background: var(--acc); color: #021317; border-color: var(--acc); box-shadow: 0 0 14px rgba(46, 230, 255, .35); }
.menu-item input:focus-visible + span { outline: 3px solid var(--acc-2); outline-offset: 2px; }
.menu-item.static span { cursor: default; }
.order-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.wallet-pill { font: 600 12px var(--fm); color: var(--muted); }
.sal-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sal-nums div { padding: 10px; border-radius: 8px; background: var(--term); border: 1px solid #000; min-width: 0; }
.sal-nums span { display: block; font: 700 10.5px var(--fm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sal-nums b { font: 700 22px/1.15 var(--fd); font-variant-numeric: tabular-nums; }
.sal-nums .low b { color: var(--sig-2); }
.sal-line { margin: 10px 0 0; }
.warn { color: var(--sig-2); }
.mini-tickets { display: grid; gap: 10px; }
.mini-ticket { padding: 10px 12px; border-radius: 4px; background: var(--paper); color: var(--ink); font: 500 12.5px/1.45 var(--fm); border-left: 5px solid #94a3b0; }
.mini-ticket[data-status="cooking"] { border-left-color: var(--acc-d); }
.mini-ticket b { font: 700 16px/1.15 var(--fd); text-transform: uppercase; letter-spacing: .03em; }
.mini-ticket p { margin: 4px 0 0; font-style: italic; color: #3a4652; }
.mini-ticket footer { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--ink-2); font-size: 11.5px; }
.commits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.commit { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 10px; border-radius: 8px; border: 1px solid transparent; background: var(--term); cursor: pointer; color: var(--text); }
.commit:hover { border-color: rgba(46, 230, 255, .35); }
.cv { flex: none; padding: 2px 8px; border-radius: 4px; background: var(--acc); color: #021317; font: 700 12px/1.5 var(--fm); }
.ct { display: flex; flex-direction: column; min-width: 0; }
.ct b { font-weight: 700; line-height: 1.3; }
.ct small { margin-top: 3px; font: 500 11.5px/1.5 var(--fm); color: var(--muted); }

/* ---------- launch ---------- */
.launch-grid { display: grid; gap: 18px; padding-bottom: 30px; }
@media (min-width: 980px) { .launch-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .launch-side { position: sticky; top: 76px; } }
.launch-main, .launch-side { display: grid; gap: 18px; min-width: 0; }
.coin-fields { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .coin-fields { grid-template-columns: 170px 1fr; } }
.fld-col .fld:first-child { margin-top: 0; }
.drop { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 220px; width: 100%; margin: 0 auto; border-radius: 12px; border: 2px dashed #3d4a57; background: var(--term); cursor: pointer; overflow: hidden; text-align: center; padding: 12px; }
.drop:hover, .drop.over { border-color: var(--acc); }
.drop:focus-within { outline: 3px solid var(--acc); outline-offset: 2px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.drop-t b { display: block; font: 700 19px var(--fd); text-transform: uppercase; letter-spacing: .05em; }
.drop-t small { color: var(--muted); font-size: 12px; }
.drop.has .drop-t { display: none; }
.two { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.models { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); border-radius: 12px; }
.model-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 10px; cursor: pointer; background: var(--term); border: 2px solid #232d37; transition: border-color .15s, transform .15s; }
.model-card:hover { border-color: #46566a; transform: translateY(-1px); }
.model-card input { position: absolute; opacity: 0; }
.model-card:has(input:checked) { border-color: var(--acc); background: linear-gradient(180deg, #072a32, var(--term)); box-shadow: 0 0 24px rgba(46, 230, 255, .16); }
.model-card:has(input:focus-visible) { outline: 3px solid var(--acc-2); outline-offset: 2px; }
.model-card:has(input:checked)::after { content: 'LOADED'; position: absolute; right: 10px; top: 10px; font: 700 12px var(--fm); letter-spacing: .1em; color: var(--acc); }
.mc-lab { font: 700 11px var(--fm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mc-name { font: 700 20px/1.15 var(--fd); text-transform: uppercase; letter-spacing: .03em; }
.mc-id { font-size: 11px; color: var(--dim); overflow-wrap: anywhere; }
.sol-in { position: relative; display: block; max-width: 220px; }
.sol-in b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 700 13px var(--fm); color: var(--muted); }
.disclosure { position: relative; padding: 24px 20px 20px; border-radius: var(--r); color: var(--ink); background: linear-gradient(180deg, #f1f5f8, var(--paper)); box-shadow: 0 0 0 3px rgba(255, 122, 31, .6), var(--shadow); overflow: hidden; }
.disclosure::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--sig) 0 9px, var(--ink) 9px 18px); }
.disclosure h2 { margin: 0 0 10px; font: 700 24px/1 var(--fd); text-transform: uppercase; letter-spacing: .05em; color: #0a1016; }
.disclosure p { margin: 0 0 10px; font-weight: 500; }
.big-split { display: grid; grid-template-columns: 7fr 3fr; overflow: hidden; border-radius: 6px; border: 2px solid var(--ink); }
.big-split span { padding: 10px; font: 700 12px var(--fm); text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--paper); min-width: 0; }
.big-split span + span { background: var(--sig); color: var(--ink); }
.big-split b { display: block; font: 700 30px/1 var(--fd); letter-spacing: .02em; }
.fine-list { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: #2c3742; }
.fine-list li { margin: 4px 0; }
.fine-list code { background: #cfd9e1; padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; background: #d4dee5; border: 2px solid transparent; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #0784a0; flex: none; }
.wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font: 600 13px var(--fm); }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.steps li { position: relative; padding-left: 34px; font-size: 14px; color: var(--dim); counter-increment: s; line-height: 24px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; border: 1px solid var(--line); font: 700 11px var(--fm); }
.steps li[data-s="on"] { color: var(--text); }
.steps li[data-s="on"]::before { border-color: var(--acc); color: var(--acc); box-shadow: 0 0 10px rgba(46, 230, 255, .4); animation: pulse 1s infinite; }
.steps li[data-s="done"] { color: var(--muted); }
.steps li[data-s="done"]::before { content: '✓'; background: var(--green); border-color: var(--green); color: #022010; }
.steps li[data-s="err"] { color: #ff8d9a; }
.steps li[data-s="err"]::before { content: '!'; border-color: var(--red); color: var(--red); }

/* ---------- hire page ---------- */
.hire-grid { display: grid; gap: 18px; padding-bottom: 30px; }
@media (min-width: 900px) { .hire-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.hire-box.big { max-width: none; margin: 0; border-style: solid; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: #cfdbe4; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 10px; height: 10px; border-radius: 2px; background: var(--acc); box-shadow: 0 0 8px rgba(46, 230, 255, .6); }

/* ---------- docs ---------- */
.docs-grid { display: grid; gap: 24px; padding-bottom: 30px; }
@media (min-width: 960px) { .docs-grid { grid-template-columns: 210px minmax(0, 1fr); } .toc { position: sticky; top: 80px; align-self: start; flex-direction: column; } }
.toc { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.toc a { padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--line); }
@media (min-width: 960px) { .toc a { border: 0; border-left: 2px solid var(--line); border-radius: 0 6px 6px 0; } }
.toc a:hover { color: var(--text); background: rgba(46, 230, 255, .06); border-left-color: var(--acc); }
.prose { max-width: 72ch; min-width: 0; }
.prose section { padding: 8px 0 22px; border-bottom: 1px solid #1f2830; margin-bottom: 18px; }
.prose h2 { margin: 0 0 10px; font: 700 32px/1.05 var(--fd); text-transform: uppercase; letter-spacing: .03em; }
.prose h3 { margin: 18px 0 6px; font-size: 18px; color: var(--acc); }
.prose p, .prose li { color: #cfdbe4; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.split-card { display: grid; gap: 12px; margin: 12px 0; }
@media (min-width: 640px) { .split-card { grid-template-columns: 7fr 3fr; } }
.split-card > div { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 10px; background: var(--term); border: 1px solid var(--line); min-width: 0; }
.split-card > div + div { border-color: rgba(255, 122, 31, .6); }
.split-card b { font: 700 42px/1 var(--fd); color: var(--acc); }
.split-card > div + div b { color: var(--sig); }
.split-card span { font: 700 12px var(--fm); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.split-card code { overflow-wrap: anywhere; color: var(--text); font-size: 12px; }
.split-card small { color: var(--muted); }
.menu-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.menu-h { font: 700 12px var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.model-list { list-style: none; padding: 0 !important; }
.model-list li { padding: 8px 0; border-bottom: 1px dashed #26313b; }
.model-list code { font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; margin: 8px 0; background: var(--bg-2); }
summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
details p { margin: 0 0 12px; }
.risks { border: 1px solid rgba(255, 122, 31, .45) !important; border-radius: 10px; padding: 18px !important; background: rgba(255, 122, 31, .05); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .wm-b { animation: none; }
  .station[data-mode="cooking"] .burner, .station[data-mode="cooking"] .burner i { animation: none; }
  .station[data-mode="cooking"] .burner i { background: var(--acc); }
  .cursor { animation: none; }
  .scanline { animation: none; top: 50%; opacity: .3; }
  .belt .bl { animation: none; transform: none; }
  .leds i, .bot-fallback .eye, .bot-fallback .ant, .bot-fallback .cled { animation: none; }
}
