/* Takt docs, in the dashboard's type and colours: Space Grotesk for the name
   and headings, Inter for text, JetBrains Mono for code and numbers.
   Home page styles are under .tk. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --tk-bg: #ffffff;
  --tk-surface: #f9f9fb;
  --tk-track: #f1f2f5;
  --tk-line: #e5e7ec;
  --tk-text: #111214;
  --tk-soft: #3b3f47;
  --tk-muted: #656a74;
  --tk-accent: #ff4d1a;
  --tk-accent-text: #c9370d;
  --tk-green: #15803d;
  --tk-red: #b91c1c;
  --tk-amber: #b45309;
  --tk-p0: #ff4d1a;
  --tk-p1: #2563eb;
  --tk-p2: #0d9488;
  --tk-p3: #a3a8b1;
  --tk-on: #ffffff;
  --tk-wordmark: "Space Grotesk", "Inter", sans-serif;
  --tk-display: "Space Grotesk", "Inter", sans-serif;
  --tk-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --tk-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --vp-c-bg: var(--tk-bg);
  --vp-c-bg-alt: var(--tk-surface);
  --vp-c-bg-soft: var(--tk-surface);
  --vp-c-divider: var(--tk-line);
  --vp-c-gutter: var(--tk-line);
  --vp-c-text-1: var(--tk-text);
  --vp-c-text-2: var(--tk-muted);
  --vp-code-block-bg: var(--tk-surface);
  --vp-code-bg: var(--tk-track);
  --vp-code-color: var(--tk-accent-text);
  --vp-font-family-base: var(--tk-sans);
  --vp-font-family-mono: var(--tk-mono);
}
.dark {
  --tk-bg: #0f1114;
  --tk-surface: #16191e;
  --tk-track: #1c2027;
  --tk-line: #272c35;
  --tk-text: #eef0f4;
  --tk-soft: #c4c8d0;
  --tk-muted: #8b92a0;
  --tk-accent: #ff6233;
  --tk-accent-text: #ff7a4d;
  --tk-green: #4ade80;
  --tk-red: #f87171;
  --tk-amber: #fbbf24;
  --tk-p0: #ff6233;
  --tk-p1: #60a5fa;
  --tk-p2: #2dd4bf;
  --tk-p3: #5f6673;
  --tk-on: #0f1114;
}

/* ---------- Every page ---------- */

.vp-doc h1, .vp-doc h2, .vp-doc h3 { font-family: var(--tk-display); letter-spacing: -0.015em; }
.vp-doc h1 { font-weight: 700; }
.vp-doc h2 { font-weight: 700; border-top-color: var(--tk-line); }
.vp-doc th {
  font: 600 10.5px/1.4 var(--tk-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tk-muted);
}
.vp-doc table { font-size: 14px; }
.vp-doc :not(pre) > code { font-size: 0.86em; }
.vp-doc div[class*="language-"] { border: 1px solid var(--tk-line); border-radius: 8px; }
.VPSidebar .VPSidebarItem.level-0 > .item .text,
.VPDocAsideOutline .outline-title {
  font: 600 11px/1.4 var(--tk-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tk-muted);
}

/* Platform cards on the install page. */
.vp-doc .tk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.vp-doc .tk-card { min-width: 0; padding: 4px 18px 6px; border: 1px solid var(--tk-line); border-radius: 10px; background: var(--tk-surface); }
.vp-doc .tk-card h3 { margin: 14px 0 4px; padding: 0; }
.vp-doc .tk-card p { margin: 8px 0; font-size: 14.5px; line-height: 1.55; }
.vp-doc .tk-card p:first-of-type { color: var(--tk-muted); }
.vp-doc .tk-card div[class*="language-"] { margin: 10px 0; }
.vp-doc .tk-card div[class*="language-"] pre { padding: 12px 14px; }
.vp-doc .tk-card div[class*="language-"] code { font-size: 12.5px; }
@media (max-width: 1439px) { .vp-doc .tk-cards { grid-template-columns: minmax(0, 1fr); } }

/* The top bar's Install link, as a button. */
.VPNavBarMenuLink[href="/installing/"] {
  margin-left: 8px;
  padding: 0 14px;
  height: 32px;
  line-height: 32px;
  align-self: center;
  border-radius: 8px;
  background: #c9370d;
  color: #fff !important;
  font-weight: 600;
}
.VPNavBarMenuLink[href="/installing/"]:hover { background: #a92d0a; }

/* ---------- Home ---------- */

.tk {
  color: var(--tk-text);
  font: 400 17px/1.6 var(--tk-sans);
  -webkit-font-smoothing: antialiased;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}
.tk *, .tk *::before, .tk *::after { box-sizing: border-box; }
.tk a { color: var(--tk-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tk-accent) 60%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.tk a:hover { color: var(--tk-accent-text); }
.tk p code, .tk-after code {
  font: 500 0.8em/1 var(--tk-mono);
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--tk-track);
  color: var(--tk-text);
  white-space: nowrap;
}
.tk .light-only { display: inline-block; }
.tk .dark-only { display: none; }
.dark .tk .light-only { display: none; }
.dark .tk .dark-only { display: inline-block; }

.tk-hero { text-align: center; max-width: 860px; margin: 0 auto; }
.tk-mark { width: 72px; height: 72px; margin: 0 auto 28px; }
.tk-hero h1 {
  margin: 0;
  font: 700 clamp(36px, 5.6vw, 64px)/1.04 var(--tk-display);
  letter-spacing: -0.035em;
}
.tk-sub { margin: 24px auto 0; max-width: 40em; color: var(--tk-muted); font-size: 19px; line-height: 1.55; }

.tk-install {
  margin: 40px auto 0;
  max-width: 640px;
  text-align: left;
  border: 1px solid var(--tk-line);
  border-radius: 10px;
  background: var(--tk-surface);
  overflow: hidden;
}
.tk-tabs { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; }
.tk-tabs button {
  font: 500 12px/1 var(--tk-mono);
  color: var(--tk-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.tk-tabs button[aria-selected="true"] { color: var(--tk-text); border-color: var(--tk-line); background: var(--tk-bg); }
.tk-cmd { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 20px; }
.tk-cmd code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font: 500 15px/1.4 var(--tk-mono);
  color: var(--tk-text);
  background: none;
}
.tk-cmd code::before { content: "$ "; color: var(--tk-muted); }
.tk-copy {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--tk-line);
  background: var(--tk-bg);
  color: var(--tk-text);
  font: 500 12px/1 var(--tk-sans);
  cursor: pointer;
}
.tk-copy:hover { border-color: var(--tk-muted); }
/* The same box on the install page, one tab per system. */
.tk-install-platforms { margin: 16px 0 0; max-width: none; }
/* Inside a docs page, the page's inline-code style would box the command. */
.vp-doc .tk-install-platforms .tk-cmd code { padding: 0; border-radius: 0; background: none; color: var(--tk-text); font: 500 15px/1.4 var(--tk-mono); }
.tk-after { margin: 16px auto 0; font-size: 15px; color: var(--tk-muted); }
/* The star button sits in the hero, where people look, not only in the nav.
   Its count appears once GitHub answers. */
.tk-star { margin: 20px auto 0; }
.tk-star .VPMetricButton { min-height: 40px; padding: 0 18px; font-size: 15px; gap: 10px; }
.tk-star .VPMetricButton .VPMetricButtonIcon { width: 18px; height: 18px; }
.tk-post { margin: 10px auto 0; font-size: 15px; }

/* The story: a pinned panel on the left, prose on the right. */
.tk-story { margin-top: 96px; }
.tk-pin { display: none; }
.tk-prose section { padding: 8px 0 56px; }
.tk-prose h2 {
  margin: 0 0 16px;
  font: 700 clamp(28px, 3.3vw, 38px)/1.1 var(--tk-display);
  letter-spacing: -0.025em;
  border: 0;
  padding: 0;
}
.tk-prose p { margin: 0 0 14px; color: var(--tk-soft); max-width: 36em; }
.tk-small { font-size: 14px; color: var(--tk-muted) !important; }
.tk-shot { display: block; margin: 24px 0 10px; border: 1px solid var(--tk-line); border-radius: 10px; overflow: hidden; }
.tk-shot img { display: block !important; width: 100%; height: auto; }
.dark .tk-shot img.light-only, .tk-shot img.dark-only { display: none !important; }
.dark .tk-shot img.dark-only { display: block !important; }

@media (min-width: 1080px) {
  .tk.js .tk-story { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 64px; }
  .tk.js .tk-pin { display: block; }
  .tk:not(.js) .tk-story { max-width: 760px; margin-left: auto; margin-right: auto; }
  .tk-panel { position: sticky; top: calc(var(--vp-nav-height, 64px) + 20px); }
  .tk.js .tk-panel .tk-scene { display: none; }
  .tk.js .tk-panel .tk-scene.active { display: block; }
  .tk.js .tk-prose section { min-height: 72vh; padding: 24px 0 40px; }
  .tk.js .tk-prose section:last-child { min-height: 100vh; }
  .tk.js .tk-prose section:first-child { padding-top: 0; }
  .tk.js .tk-prose .tk-scene { display: none; }
}

/* A scene: a card in the dashboard's look, with a caption under it. */
.tk-scene {
  margin: 0 0 28px;
  border: 1px solid var(--tk-line);
  border-radius: 12px;
  background: var(--tk-bg);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--tk-line), 0 28px 56px -36px rgba(0, 0, 0, 0.45);
}
.tk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tk-line);
}
.tk-brand { display: inline-flex; align-items: center; gap: 7px; font: 700 15px/1 var(--tk-wordmark); letter-spacing: -0.02em; }
.tk-brand img { width: 18px; height: 18px; }
.tk-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1 var(--tk-mono); color: var(--tk-muted); }
.tk-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--tk-line);
  background: var(--tk-surface);
  font: 500 11px/1 var(--tk-mono);
  color: var(--tk-muted);
}
.tk-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--tk-green); animation: tkBeat 1.6s ease-in-out infinite; }
@keyframes tkBeat { 50% { opacity: 0.4; } }
.tk-body { padding: 14px; overflow: hidden; }
.tk.js .tk-panel .tk-body { height: 625px; overflow: hidden; }
.tk.js .tk-panel { transform-origin: top left; }
.tk-scene figcaption {
  padding: 11px 14px 12px;
  border-top: 1px solid var(--tk-line);
  background: var(--tk-surface);
  font: 500 12px/1.5 var(--tk-mono);
  color: var(--tk-muted);
}
.tk-scene figcaption code { color: var(--tk-text); }
.tk-scene figcaption a { color: var(--tk-text); }

.tk-term {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--tk-surface);
  border: 1px solid var(--tk-line);
}
.tk-term p {
  margin: 0;
  font: 400 12.5px/1.6 var(--tk-mono);
  color: var(--tk-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tk-term .ps { color: var(--tk-muted); }
.tk-term .dim { color: var(--tk-muted); }
.tk-term .res { color: var(--tk-green); }
.tk-term .hint { color: var(--tk-amber); }
.tk-term .warn { color: var(--tk-red); }
.tk-term .ag { color: var(--tk-accent); }
.tk-term .k { display: inline-block; width: 7ch; color: var(--tk-accent-text); }
.tk.js .tk-term .cmd.typing .t::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--tk-text);
  margin-left: 1px;
  animation: tkBlink 1s steps(2, jump-none) infinite;
}
@keyframes tkBlink { 50% { opacity: 0; } }

.tk-lanes { margin-top: 12px; }
.tk-term-sm p { font-size: 11.5px; line-height: 1.55; }
.tk-after-lanes { margin-top: 10px; }
.tk-dash-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 2px 0 6px; font: 500 11.5px/1.3 var(--tk-mono); color: var(--tk-muted); }
.tk-dash-sum b { color: var(--tk-text); font-weight: 600; }
.tk-lanes:first-child { margin-top: 0; }
.tk-lane { padding: 4px 0 8px; }
.tk-lane + .tk-lane { border-top: 1px solid var(--tk-line); padding-top: 8px; }
.tk-lh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 7px; font: 500 11px/1.2 var(--tk-mono); color: var(--tk-muted); }
.tk-lh b { font: 700 14.5px/1.1 var(--tk-display); color: var(--tk-text); letter-spacing: -0.01em; }
.tk-lh .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tk-green); }
.tk-lh .dot.asleep { background: var(--tk-muted); }
.tk-lh .tag { font: 600 10px/1 var(--tk-mono); padding: 3px 7px; border-radius: 4px; border: 1px solid var(--tk-line); color: var(--tk-text); }
.tk-lh .tag.on { background: color-mix(in srgb, var(--tk-text) 16%, var(--tk-surface)); border-color: color-mix(in srgb, var(--tk-text) 30%, var(--tk-surface)); }
.tk-lh .tag.quiet { color: var(--tk-muted); border-color: transparent; background: color-mix(in srgb, var(--tk-muted) 14%, transparent); font-weight: 500; }
.tk-al { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-bottom: 6px; font: 600 9.5px/1 var(--tk-mono); letter-spacing: 0.06em; color: var(--tk-muted); }
.tk-al em { font: 500 11px/1 var(--tk-mono); font-style: normal; white-space: nowrap; }
.tk-al .strip { display: flex; height: 10px; border-radius: 5px; background: var(--tk-track); overflow: hidden; }
.tk-al .strip i { display: block; height: 100%; width: var(--w); flex: 0 0 auto; border-right: 2px solid var(--tk-bg); }
.tk-al .strip i.p0 { background: var(--tk-p0); }
.tk-al .strip i.p1 { background: var(--tk-p1); }
.tk-al .strip i.p2 { background: var(--tk-p2); }
.tk-al .strip i.p3 { background: var(--tk-p3); }
.tk-al .strip i.keep { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tk-muted) 45%, transparent) 0 3px, transparent 3px 6px); }
.tk-al .strip i.used { background: color-mix(in srgb, var(--tk-muted) 45%, var(--tk-track)); }
.tk.js .tk-al .strip i.step.on { animation: tkGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes tkGrow { from { width: 0; } to { width: var(--w); } }
.tk-scene .job, .tk-q {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 4px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--tk-line);
  border-left: 4px solid var(--c, var(--tk-p1));
  border-radius: 7px;
  background: var(--tk-surface);
  font: 600 13px/1.3 var(--tk-display);
  color: var(--tk-text);
}
.tk-scene .p0 { --c: var(--tk-p0); }
.tk-scene .p1 { --c: var(--tk-p1); }
.tk-scene .p2 { --c: var(--tk-p2); }
.tk-scene .p3 { --c: var(--tk-p3); }
.tk-qhead { margin: 10px 0 2px; font: 700 11px/1.2 var(--tk-display); letter-spacing: .05em; text-transform: uppercase; color: var(--tk-muted); }
.tk-scene .job em, .tk-q em { margin-left: auto; font: 500 11px/1.3 var(--tk-mono); font-style: normal; color: var(--tk-muted); }
.tk-q em { color: var(--tk-accent-text); }
.tk-scene .pr { font: 600 10px/1 var(--tk-mono); padding: 2.5px 5px; border-radius: 4px; background: var(--c, var(--tk-p1)); color: var(--tk-on); }
.tk-scene .pr.p1 { background: var(--tk-p1); }
.tk-scene .vm { font: 500 10px/1 var(--tk-mono); color: var(--tk-muted); border: 1px solid var(--tk-line); border-radius: 4px; padding: 2px 4px; }
.tk-note { margin: 6px 0 0; font: 500 11.5px/1.4 var(--tk-mono); color: var(--tk-muted); }
.tk-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; padding: 6px 10px; border: 1px solid var(--tk-line); border-radius: 8px; font: 500 11px/1.2 var(--tk-mono); color: var(--tk-muted); }
.tk-stats .spark { display: inline-flex; align-items: flex-end; gap: 1px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.tk-stats .spark b { width: 2px; background: var(--tk-accent); }

/* Steps: hidden until played; "until" elements show until a flip plays. */
.tk:not(.js) .until { display: none; }
.tk.js .step:not(.on) { display: none; }
.tk.js .until.gone { display: none; }
.tk-chip { display: inline-block; margin: 6px 6px 0 0; padding: 4px 8px; border-radius: 6px; font: 500 11px/1.2 var(--tk-mono); }
.tk-chip.ok { background: color-mix(in srgb, var(--tk-green) 14%, transparent); color: var(--tk-green); }
.tk-chip.fail { background: color-mix(in srgb, var(--tk-red) 12%, transparent); color: var(--tk-red); }
/* Every scene: a terminal of fixed height on top, the dashboard under it. */
.tk-scene .tk-term { height: 132px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.tk-scene .tk-term.nowrap p { white-space: pre; overflow-wrap: normal; }
.tk-scene .tk-term p { font-size: 11.5px; line-height: 1.55; }

@media (max-width: 1079px) {
  .tk-story { margin-top: 88px; }
  .tk-prose section { padding-bottom: 44px; }
  .tk.js .tk-prose .tk-body { min-height: 420px; }
}
@media (max-width: 640px) {
  .tk { padding: 48px 16px 88px; font-size: 16.5px; }
  .tk-sub { font-size: 17px; }
  .tk-mark { width: 56px; height: 56px; margin-bottom: 22px; }
  .tk-cmd { padding: 12px 10px 12px 14px; gap: 10px; }
  .tk-cmd code { font-size: 13px; }
  .tk-term p { font-size: 11.5px; }
  .tk-body { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-live i { animation: none; }
}


.tk-chip.cancel { background: color-mix(in srgb, var(--tk-amber) 14%, transparent); color: var(--tk-amber); }

/* Also built in: one line each, after the story. */
.tk-more { max-width: 960px; margin: 48px auto 0; padding-top: 48px; border-top: 1px solid var(--tk-line); }
.tk-more h2 { margin: 0 0 24px; font: 700 clamp(28px, 3.3vw, 38px)/1.1 var(--tk-display); letter-spacing: -0.025em; border: 0; padding: 0; }
.tk-more dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin: 0; }
.tk-more dt { font: 600 16px/1.3 var(--tk-display); }
.tk-more dd { margin: 4px 0 0; color: var(--tk-soft); font-size: 15.5px; }
@media (max-width: 900px) { .tk-more dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tk-more dl { grid-template-columns: minmax(0, 1fr); } }

/* What we didn't build: a short list after the story. */
.tk-didnt { max-width: 960px; margin: 48px auto 0; padding-top: 48px; border-top: 1px solid var(--tk-line); }
.tk-didnt h2 { margin: 0 0 10px; font: 700 clamp(28px, 3.3vw, 38px)/1.1 var(--tk-display); letter-spacing: -0.025em; border: 0; padding: 0; }
.tk-didnt-lede { margin: 0 0 24px; color: var(--tk-muted); }
.tk-didnt dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; margin: 0; }
.tk-didnt dt { font: 700 16px/1.3 var(--tk-display); }
.tk-didnt dt::before { content: "\00d7"; color: var(--tk-accent); margin-right: 8px; }
.tk-didnt dd { margin: 3px 0 0; color: var(--tk-soft); font-size: 15.5px; }
@media (max-width: 760px) { .tk-didnt dl { grid-template-columns: minmax(0, 1fr); } }

/* The dashboard's stats strip, ported from internal/coord/dashboard.html. */
.tk-scene {
  --oma-s1: #ff4d1a; --oma-s2: #2563eb; --oma-s3: #0d9488; --oma-s4: #d97706;
  --oma-base: rgba(17, 18, 20, 0.15);
  --text: var(--tk-text); --muted: var(--tk-muted); --line: var(--tk-line); --bg: var(--tk-bg);
  --surface: var(--tk-surface); --amber: var(--tk-amber); --red: var(--tk-red);
}
.dark .tk-scene {
  --oma-s1: #ff6233; --oma-s2: #60a5fa; --oma-s3: #2dd4bf; --oma-s4: #fbbf24;
  --oma-base: rgba(238, 240, 244, 0.16);
}
.tk-scene .lane-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font: 500 11px/1.2 "JetBrains Mono", monospace;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.tk-scene .lane-stats:hover { border-color: var(--muted); }
.tk-scene .oma-mod {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tk-scene .oma-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: 700 7.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  color: var(--muted);
  width: 9px;
  flex-shrink: 0;
}
.tk-scene .oma-graph { display: block; flex-shrink: 0; }
.tk-scene .oma-fig {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font: 500 11px/1.15 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.tk-scene .oma-fig strong { color: var(--text); font-weight: 600; }
.tk-scene .oma-fig .sub { font-size: 10px; color: var(--muted); }
.tk-scene .oma-fig.warn strong { color: var(--amber); }
.tk-scene .oma-fig.hot strong { color: var(--red); }
.tk-scene .oma-sep { width: 1px; height: 22px; background: var(--line); flex-shrink: 0; }
.tk-scene .oma-toggle {
  margin-left: auto;
  font: 500 10px/1 "JetBrains Mono", monospace;
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.tk-scene .stale-tag {
  font: 500 10.5px/1.2 "JetBrains Mono", monospace;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .tk-scene .lane-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 8px 10px;
  }
  .tk-scene .oma-sep { display: none; }
  .tk-scene .oma-mod { min-width: 0; gap: 5px; }
  .tk-scene .oma-fig { min-width: 0; overflow: hidden; }
  .tk-scene .oma-fig strong, .tk-scene .oma-fig .sub { white-space: normal; overflow-wrap: break-word; }
  .tk-scene .oma-toggle {
    grid-column: 1 / -1;
    margin-left: 0;
    justify-self: end;
  }
}

/* The dashboard's join banner (.pairs), ported. */
.tk-scene .tk-pairs { margin: 0 0 10px; display: grid; gap: 8px; }
.tk-scene .pair-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--tk-accent); border-radius: 10px; font: 500 12px/1.45 var(--tk-sans); }
.tk-scene .pair-code { font-weight: 700; letter-spacing: .08em; font-family: var(--tk-mono); }
.tk-scene .pair-btns { display: flex; gap: 8px; }
.tk-scene .pair-btns button { font: inherit; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--tk-muted); background: transparent; color: inherit; cursor: default; }
.tk-scene .pair-btns .tk-approve, .tk-scene .pair-btns .tk-press { border-color: var(--tk-accent); color: var(--tk-accent-text); }
.tk-scene .pair-btns .tk-press { background: var(--tk-accent); color: #fff; }

.tk-didnt-end { margin: 40px 0 0; font: 600 18px/1.5 var(--tk-display); }
