/* /spark — a terminal app. Monochrome ink on charcoal (dark) / nordic paper
   (light). No blue. Emphasis by weight, brightness and inversion. Presence-
   green only on online dots; muted pink only for failure. Scoped under .sk. */

.sk {
  --bg: #0c0c0b;
  --well: #0f0f0e;
  --ink: #f1efe7;
  --ink-2: #c9c7bf;
  --dim: #8f8e88;
  --faint: #5c5b57;
  --line: rgba(241, 239, 231, 0.16);
  --line-hi: rgba(241, 239, 231, 0.42);
  --rule: rgba(241, 239, 231, 0.07);
  --a: #ecEAE2;          /* alternating machine inks */
  --b: #8d8c86;
  --c: #3f3f3c;          /* memory from machines not holding layers */
  --e: rgba(241, 239, 231, 0.07);
  --on: #7fbf86;         /* presence only */
  --err: #d49aa5;        /* failure only */
  --inv-bg: #f1efe7;
  --inv-ink: #0c0c0b;
  color-scheme: dark;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jetbrains), 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
}

@media not all { /* dark only (owner) */
  .sk {
    --bg: #f2f1ec;
    --well: #ebeae4;
    --ink: #161615;
    --ink-2: #3a3a37;
    --dim: #6b6a64;
    --faint: #a3a29b;
    --line: rgba(22, 22, 21, 0.2);
    --line-hi: rgba(22, 22, 21, 0.5);
    --rule: rgba(22, 22, 21, 0.08);
    --a: #1d1d1b;
    --b: #8a8982;
    --c: #cfcec7;
    --e: rgba(22, 22, 21, 0.07);
    --on: #3d8a48;
    --err: #b25a6a;
    --inv-bg: #161615;
    --inv-ink: #f2f1ec;
    color-scheme: light;
  }
}

.sk *, .sk *::before, .sk *::after { box-sizing: border-box; }
.sk a { color: inherit; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.sk a:hover { text-decoration-color: var(--ink); }
.sk code { font-family: inherit; }
.sk button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sk b { font-weight: 700; }
.sk-dim { color: var(--dim); }
.sk-faint { color: var(--faint); }
.sk-inv { background: var(--inv-bg); color: var(--inv-ink); padding: 0 5px; }
.sk-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sk-key {
  display: inline-block; min-width: 1.6em; text-align: center; padding: 0 4px;
  background: var(--inv-bg); color: var(--inv-ink); font-weight: 700;
}

.sk-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--faint); vertical-align: 1px; margin-right: 6px; flex: none;
}
.sk-dot.on { background: var(--on); box-shadow: 0 0 0 3px color-mix(in srgb, var(--on) 18%, transparent); }
.sk-dot.err { background: var(--err); box-shadow: none; }

.sk-caret {
  display: inline-block; width: 0.6em; height: 1.15em; margin-left: 2px; vertical-align: -0.2em;
  background: var(--ink); animation: sk-blink 1.06s steps(1) infinite;
}
.sk-caret.sm { height: 1em; width: 0.5em; background: var(--dim); }
@keyframes sk-blink { 50% { opacity: 0; } }

/* ── status bar ───────────────────────────────────────────── */
.sk-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: stretch; height: 28px; overflow: hidden; white-space: nowrap;
  background: var(--well); border-bottom: 1px solid var(--line);
  font-size: 12px; line-height: 28px;
}
.sk-bar > * { flex: none; }
.sk-bar-app { background: var(--inv-bg); color: var(--inv-ink); font-weight: 700; padding: 0 12px; }
.sk-bar-seg { padding: 0 12px; border-right: 1px solid var(--line); color: var(--ink-2); }
.sk-bar-seg b { color: var(--ink); }
.sk-bar-seg b.sk-inv { color: var(--inv-ink); }
.sk-bar-fx {
  margin: 4px 0 4px 10px; padding: 0 8px; line-height: 18px; align-self: center;
  border: 1px dashed var(--ink-2); color: var(--ink); font-weight: 700; letter-spacing: 0.08em; font-size: 11px;
}
.sk-bar-fx + .sk-bar-seg { margin-left: 10px; border-left: 1px solid var(--line); }
.sk-bar-grow { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; border-right: 0; }
.sk-bar-end { border-right: 0; border-left: 1px solid var(--line); }
.sk-bar .sk-spark { margin-left: 10px; }
.sk-clock { font-variant-numeric: tabular-nums; color: var(--ink); }

.sk-spark { letter-spacing: 0; color: var(--ink-2); line-height: 1; white-space: pre; }
.sk-spark i { font-style: normal; }
.sk-spark i.z { color: var(--faint); }

/* ── shell ────────────────────────────────────────────────── */
.sk-main { max-width: 1600px; margin: 0 auto; padding: 14px 16px 52px; }

.sk-title {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end;
  padding: 4px 2px 16px;
}
.sk-title h1 {
  margin: 0; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em;
}
.sk-spec { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; color: var(--ink); font-weight: 600; }
.sk-spec em { font-style: normal; font-weight: 400; color: var(--dim); margin-left: 6px; }
.sk-stats { display: grid; grid-template-columns: repeat(4, auto); border: 1px solid var(--line); }
.sk-stat { padding: 6px 16px 5px; display: flex; flex-direction: column; min-width: 104px; }
.sk-stat + .sk-stat { border-left: 1px solid var(--line); }
.sk-stat b { font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sk-stat b small { font-size: 0.55em; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.sk-stat span { font-size: 11px; color: var(--dim); }

.sk-grid {
  display: grid; gap: 16px 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  grid-template-areas:
    "mac  join"
    "mac  ring"
    "mac  fit"
    "out  note"
    "cap  cap"
    "log  log"
    "mach mach";
}

/* ── panes ────────────────────────────────────────────────── */
.sk-pane {
  position: relative; min-width: 0; border: 1px solid var(--line);
  padding: 14px 12px 10px; transition: border-color 160ms;
}
.sk-pane:hover, .sk-pane.hot { border-color: var(--line-hi); }
.sk-pane-h {
  position: absolute; top: -0.78em; left: 8px; right: 8px; height: 1.5em;
  display: flex; justify-content: space-between; gap: 10px; pointer-events: none;
  font-size: 12px; line-height: 1.5; white-space: nowrap;
}
.sk-pane-t, .sk-pane-m { background: var(--bg); padding: 0 6px; pointer-events: auto; }
.sk-pane-t { font-weight: 700; color: var(--ink); }
.sk-pane-t b { color: var(--dim); font-weight: 500; margin-right: 6px; }
.sk-pane-t b::before { content: '['; color: var(--faint); }
.sk-pane-t b::after { content: ']'; color: var(--faint); }
.sk-pane-m { color: var(--dim); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sk-pane-m b { color: var(--ink); }
.sk-pane.hot .sk-pane-t::after { content: ' ●'; color: var(--ink); animation: sk-blink 1.06s steps(1) infinite; }

/* output */
.sk-out-p { display: flex; flex-direction: column; grid-area: out; }
.sk-term {
  flex: 1 1 auto; min-height: 220px; max-height: 460px; height: 0; overflow-y: auto;
  font-size: 15.5px; line-height: 1.62; padding: 2px 2px 6px; scrollbar-width: thin;
}
.sk-prompt { color: var(--dim); margin-bottom: 10px; }
.sk-back { opacity: 0.42; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--rule); }
.sk-out { white-space: pre-wrap; color: var(--ink); }
.sk-donel { margin-top: 8px; font-size: 12px; }
.sk-kv { display: grid; gap: 1px; font-size: 13px; }
.sk-kv > div { display: flex; min-width: 0; }
.sk-kv > div > span:first-child:not(.sk-faint) { flex: none; width: 9ch; color: var(--dim); }
.sk-kv > div:first-child { margin-bottom: 8px; }
.sk-out-foot {
  display: flex; align-items: center; gap: 12px; margin: 8px -12px -10px; padding: 6px 12px;
  border-top: 1px solid var(--rule); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.sk-out-foot .sk-spark.grow { flex: 1 1 auto; overflow: hidden; font-size: 15px; letter-spacing: 0.04em; }

/* join */
.sk-cmd { display: grid; grid-template-columns: 1.4ch minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 4px 0; }
.sk-cmd code { font-weight: 600; overflow-wrap: anywhere; }
.sk-btn { font-size: 11px; color: var(--dim) !important; padding: 0 6px !important; border: 1px solid var(--line) !important; min-width: 5.4ch; }
.sk-btn:hover, .sk-btn.ok { background: var(--inv-bg) !important; color: var(--inv-ink) !important; border-color: var(--inv-bg) !important; }
.sk-cmt { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--rule); color: var(--faint); white-space: pre; overflow: hidden; }
.sk-cmt b { color: var(--ink-2); font-weight: 600; }

/* fit */
.sk-fit { display: grid; font-variant-numeric: tabular-nums; }
.sk-fit-h, .sk-fit-r { display: grid; grid-template-columns: 9ch 7ch 9ch minmax(0, 1fr); gap: 10px; align-items: center; padding: 1px 0; }
.sk-fit-dl { color: var(--dim); text-align: right; white-space: nowrap; }
.sk-fit-h span:nth-child(3) { text-align: right; }
.sk-fit-h { color: var(--faint); border-bottom: 1px solid var(--rule); padding-bottom: 3px; margin-bottom: 2px; }
.sk-fit-r > span:first-child { color: var(--dim); }
.sk-fit-r b { text-align: right; }
.sk-fit-h span:nth-child(2) { text-align: right; }
.sk-fit-r.relay b, .sk-fit-r.nv b { color: var(--dim); font-weight: 500; }
.sk-fit-bar { height: 9px; position: relative; background: var(--e); }
.sk-fit-bar i {
  position: absolute; inset: 0 auto 0 0;
  background: repeating-linear-gradient(90deg, var(--ink-2) 0 5px, transparent 5px 7px);
}
.sk-fit-r.nv .sk-fit-bar { background: repeating-linear-gradient(90deg, var(--e) 0 2px, transparent 2px 4px); }
.sk-fit-f { margin-top: 6px; padding-top: 5px; border-top: 1px dashed var(--rule); }

/* ring */
.sk-path { display: flex; flex-wrap: wrap; gap: 3px 0; align-items: baseline; line-height: 1.75; }
.sk-hop { display: inline-flex; align-items: baseline; white-space: nowrap; }
.sk-hop > i { font-style: normal; color: var(--faint); padding: 0 7px; }
.sk-hop > span { padding: 0 5px; color: var(--ink-2); }
.sk-hop em { font-style: normal; color: var(--faint); }
.sk-hop.on > span { background: var(--inv-bg); color: var(--inv-ink); }
.sk-hop.on em { color: var(--inv-ink); opacity: 0.6; }
.sk-hop.ghost > span { color: var(--faint); }
.sk-end { border: 1px dashed var(--line-hi); padding: 0 6px; color: var(--dim); }
.sk-hop > .sk-end { padding: 0 6px; }
.sk-ring-f { display: flex; gap: 16px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--rule); color: var(--ink-2); }
.sk-ring-r { margin-left: auto; }

/* capacity */
.sk-cap { display: grid; grid-template-columns: 7ch minmax(0, 1fr) 9ch; gap: 6px 12px; align-items: center; font-variant-numeric: tabular-nums; }
.sk-cap-l { color: var(--dim); }
.sk-cap-v { text-align: right; color: var(--dim); white-space: nowrap; }
.sk-cap-v b { color: var(--ink); }
.sk-cells { display: grid; grid-template-columns: repeat(62, minmax(0, 1fr)); gap: 2px; height: 14px; }
.sk-cells.tall { height: 24px; }
.sk-cells i { background: var(--e); }
.sk-cells i.a { background: var(--a); }
.sk-cells i.b { background: var(--b); }
.sk-cells i.c { background: var(--c); }
.sk-cells i.e { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.sk-cells i.edge { box-shadow: -2px 0 0 var(--bg); }
.sk-cells i.hot { background: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); position: relative; z-index: 1; }
.sk-cells i.b.hot { background: var(--ink); }
.sk-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; margin-top: -2px; }

/* machines */
.sk-tbl { display: grid; font-variant-numeric: tabular-nums; }
.sk-tr {
  display: grid; align-items: center; gap: 0 14px; padding: 2px 4px; min-width: 0;
  grid-template-columns: 3.4ch 7px minmax(12ch, 1.1fr) minmax(16ch, 1.5fr) 7ch 8ch 8ch minmax(120px, 1.4fr) 5ch 6ch;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.sk-tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sk-tr .sk-dot { margin: 0; }
.sk-tr .r { text-align: right; }
.sk-tr:not(.sk-thead):hover { background: var(--inv-bg); color: var(--inv-ink); }
.sk-tr:not(.sk-thead):hover > * { color: var(--inv-ink) !important; }
.sk-tr:not(.sk-thead):hover .sk-slice { background: color-mix(in srgb, var(--inv-ink) 14%, transparent); }
.sk-tr:not(.sk-thead):hover .sk-slice i { background: var(--inv-ink); }
.sk-thead { color: var(--faint); border-bottom-color: var(--line); padding-bottom: 3px; }
.sk-th { text-align: left; color: var(--faint) !important; }
.sk-th.r { text-align: right; }
.sk-th.on { color: var(--ink) !important; }
button.sk-th:hover { color: var(--ink-2) !important; }
.c-n { color: var(--faint); }
.c-meta { display: none; }
.c-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.c-name.anon { font-weight: 400; color: var(--dim); }
.c-chip { color: var(--dim); }
.c-ram { color: var(--ink-2); }
.c-role { color: var(--dim); }
.layers .c-role { color: var(--ink); }
.c-role.err { color: var(--err); }
.c-lay { color: var(--ink); font-weight: 600; }
.c-rt, .c-up { color: var(--faint); }
.sk-tr.off { opacity: 0.45; }
.sk-tr.seat > * { color: var(--faint); }
.sk-tr.seat .c-name { font-weight: 400; font-style: italic; }
.sk-tr.seat .c-ram, .sk-tr.seat .c-lay { color: var(--dim); }
.sk-slice { display: block; position: relative; height: 7px; background: var(--e); }
.sk-slice i { position: absolute; top: 0; bottom: 0; background: var(--ink-2); }
.drafter .c-role, .relay .c-role, .standby .c-role { color: var(--dim); }
.sk-tag { font-size: 10px; font-weight: 500; border: 1px solid var(--line-hi); padding: 0 4px; line-height: 1.35; color: var(--dim); }

.sk-foot {
  display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 14px; color: var(--faint); font-size: 11.5px;
}
.sk-foot > * + *::before { content: '│'; color: var(--line); margin: 0 10px; }

/* key bar */
.sk-keys {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: 26px;
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
  background: var(--well); border-top: 1px solid var(--line); font-size: 12px; white-space: nowrap;
}
.sk-keys > button { padding: 0 10px 0 0 !important; color: var(--dim) !important; }
.sk-keys > button:hover { color: var(--ink) !important; }
.sk-keys > button b { background: var(--inv-bg); color: var(--inv-ink); padding: 0 5px; margin-right: 6px; }
.sk-keys-r { margin-left: auto; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }

/* help */
.sk-help-bg {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}
.sk-help { background: var(--bg); border-color: var(--line-hi); padding: 18px 18px 14px; width: min(420px, 100%); }
.sk-help-g { display: grid; grid-template-columns: 7ch 1fr; gap: 5px 12px; align-items: center; }
.sk-help-g .sk-key { justify-self: start; }
.sk-help-sep { grid-column: 1 / -1; border-top: 1px dashed var(--rule); margin: 4px 0; }
.sk-lg { display: flex; gap: 2px; align-items: center; }
.sk-lg i { display: inline-block; width: 10px; height: 14px; }
.sk-lg i.a { background: var(--a); } .sk-lg i.b { background: var(--b); }
.sk-lg i.e { box-shadow: inset 0 0 0 1px var(--line); }
.sk-lg i.hot { background: var(--ink); box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--ink); }
.sk-lg i.sk-dot { width: 7px; height: 7px; margin: 0 0 0 2px; }

/* supermac */
.sk-sm-p { display: flex; flex-direction: column; padding-bottom: 10px; }
.sk-sm { position: relative; flex: 1 1 auto; min-height: 470px; margin: 0 -6px; }
.sk-sm canvas { position: absolute; inset: 0; display: block; touch-action: manipulation; }
.sk-sm-tip {
  position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none;
  background: var(--inv-bg); color: var(--inv-ink); padding: 1px 7px; font-size: 11.5px; white-space: nowrap;
}
.sk-sm-tip.below { transform: translate(-50%, 16px); }
.sk-sm-tip.right { transform: translate(calc(-100% + 8px), calc(-100% - 12px)); }
.sk-sm-tip.right.below { transform: translate(calc(-100% + 8px), 16px); }
.sk-sm-foot { margin-top: 2px; }
.sk-sm-meter { flex: 1 1 auto; height: 7px; position: relative; background: var(--e); min-width: 40px; }
.sk-sm-meter i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--ink-2) 0 5px, transparent 5px 7px); }
.sk-pane-m .sk-dot { margin-right: 5px; }

/* share cards (?og=1 | ?og=square | ?og=video) */
.sk-og { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.sk-og-body { flex: 1 1 auto; min-height: 0; display: grid; gap: 22px; padding: 26px 28px 26px; }
.sk-og.wide .sk-og-body { grid-template-columns: 430px minmax(0, 1fr); align-items: stretch; }
.sk-og.sq .sk-og-body { grid-template-rows: auto minmax(0, 1fr) auto; padding: 30px 34px 34px; gap: 24px; }
.sk-og-text { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.sk-og h1 { margin: 0; font-size: 38px; line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.sk-og.sq h1 { font-size: 46px; }
.sk-og .sk-spec { font-size: 15px; margin-top: 12px; }
.sk-og .sk-stats { margin-top: 22px; justify-self: stretch; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sk-og.sq .sk-stats { margin-top: 0; }
.sk-og .sk-stat { min-width: 0; padding: 8px 14px 7px; }
.sk-og .sk-stat b { font-size: 28px; }
.sk-og.sq .sk-stat b { font-size: 34px; }
.sk-og .sk-stat span { font-size: 13px; }
.sk-og-cmd { margin-top: 18px; font-size: 16px; font-weight: 600; border: 1px dashed var(--line-hi); padding: 6px 10px; align-self: flex-start; }
.sk-og-pane { min-height: 0; padding: 16px 10px 10px; }
.sk-og-pane .sk-sm { min-height: 0; }
.sk-og .sk-bar { position: static; height: 34px; line-height: 34px; font-size: 14px; }
.sk-og .sk-pane-h { font-size: 14px; }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 1099px) {
  .sk-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "mac" "out" "note" "join" "ring" "cap" "log" "fit" "mach";
  }
  .sk.is-empty .sk-grid { grid-template-areas: "mac" "join" "out" "note" "cap" "log" "ring" "fit" "mach"; }
  .sk-title { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sk-stats { justify-self: start; }
  .sk-tr { grid-template-columns: 3.4ch 7px minmax(10ch, 1fr) minmax(14ch, 1.3fr) 7ch 8ch 8ch minmax(80px, 1fr) 6ch; }
  .sk-tr > .c-rt { display: none; }
}
@media (max-width: 760px) {
  .sk-tr { grid-template-columns: 3.4ch 7px minmax(10ch, 1fr) 7ch 8ch 8ch 6ch; }
  .sk-tr > .c-chip, .sk-tr > .c-slice { display: none; }
}
@media (max-width: 430px) {
  .sk { font-size: 12px; }
  .sk-hide-s { display: none !important; }
  .sk-bar-seg { padding: 0 8px; }
  .sk-bar-app { padding: 0 8px; }
  .sk-bar-fx { margin-left: 6px; padding: 0 5px; }
  .sk-bar-fx + .sk-bar-seg { margin-left: 6px; }
  .sk-bar-end { display: none; }
  .sk-main { padding: 12px 12px 24px; }
  .sk-keys { display: none; }
  .sk-title { padding-bottom: 14px; gap: 12px; }
  .sk-title h1 { font-size: 21px; }
  .sk-spec { gap: 2px 12px; font-size: 11.5px; }
  .sk-stats { justify-self: stretch; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sk-stat { min-width: 0; padding: 5px 8px 4px; }
  .sk-stat b { font-size: 18px; }
  .sk-grid { gap: 16px; }
  .sk-pane { padding: 13px 10px 9px; }
  .sk-sm { min-height: 0; height: auto; aspect-ratio: 1 / 1.04; margin: 0 -4px; }
  .sk-sm-foot { gap: 10px; }
  .sk-term { font-size: 13.5px; height: auto; min-height: 150px; max-height: 300px; }
  .sk-out-foot { margin: 8px -10px -9px; padding: 6px 10px; }
  .sk-cmd { gap: 8px; }
  .sk-cmd code { font-size: 11.5px; }
  .sk-cmt { white-space: normal; font-size: 11.5px; }
  .sk-cap { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; }
  .sk-cap > :nth-child(1) { grid-area: 1 / 1; }
  .sk-cap > :nth-child(3) { grid-area: 1 / 2; }
  .sk-cap > :nth-child(2) { grid-area: 2 / 1 / 3 / 3; margin-bottom: 6px; }
  .sk-cap > :nth-child(4) { grid-area: 3 / 1; }
  .sk-cap > :nth-child(6) { grid-area: 3 / 2; }
  .sk-cap > :nth-child(5) { grid-area: 4 / 1 / 5 / 3; }
  .sk-cap > :nth-child(8) { grid-area: 5 / 1 / 6 / 3; }
  .sk-cells { gap: 1px; }
  .sk-cells.tall { height: 20px; }
  .sk-cap > span:empty { display: none; }
  .sk-hop > i { padding: 0 4px; }
  /* machines: key:value rows */
  .sk-thead { display: none; }
  .sk-tr {
    grid-template-columns: 2.4ch 7px minmax(0, 1fr) auto;
    grid-template-areas: "n dot name lay" ". . meta meta";
    gap: 0 8px; padding: 5px 2px;
  }
  .sk-tr > .c-n { grid-area: n; }
  .sk-tr > .sk-dot { grid-area: dot; }
  .sk-tr > .c-name { grid-area: name; }
  .sk-tr > .c-lay { grid-area: lay; text-align: right; }
  .sk-tr > .c-chip, .sk-tr > .c-ram, .sk-tr > .c-role, .sk-tr > .c-up, .sk-tr > .c-rt, .sk-tr > .c-slice { display: none; }
  .sk-tr > .c-meta { display: block; grid-area: meta; font-size: 11px; color: var(--dim); }
  .sk-foot { font-size: 11px; }
}
.sk-og.wide .sk-stat b { font-size: 24px; white-space: nowrap; }

/* join: one line + agent line; manual invite tucked away */
.sk .sk-agent code b { color: var(--sk-ink); }
.sk .sk-manual { margin-top: 6px; background: none; border: 0; padding: 0; font: inherit; color: var(--sk-dim); cursor: pointer; }
.sk .sk-manual:hover { color: var(--sk-ink); }
.sk .sk-manual-body { margin-top: 4px; display: grid; gap: 2px; color: var(--sk-ink-2); }
.sk .sk-inv { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.sk .sk-chip { font: inherit; color: var(--sk-ink); background: transparent; border: 1px solid var(--sk-rule-hi); padding: 0 6px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk .sk-chip:hover, .sk .sk-chip.ok { background: var(--sk-inv-bg); color: var(--sk-inv-ink); }

/* ── [7] notebook ─────────────────────────────────────────── */
.nb { display: flex; flex-direction: column; min-width: 0; }
.nb-faint { color: var(--faint); }
.nb-credit {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px;
  padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px dashed var(--rule); font-size: 12px; color: var(--ink-2);
}
.nb-credit a { text-decoration: none; }
.nb-credit a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.nb-credit b { font-weight: 600; color: var(--ink); }
.nb-warn { white-space: nowrap; }

.nb-prog { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 11.5px; margin-bottom: 6px; }
.nb-prog-l, .nb-prog-v { color: var(--dim); font-variant-numeric: tabular-nums; }
.nb-prog-v b { color: var(--ink); }
.nb-cells { display: grid; grid-template-columns: repeat(47, minmax(0, 1fr)); gap: 2px; height: 9px; }
.nb-cells i { box-shadow: inset 0 0 0 1px var(--line); }
.nb-cells i.on { background: var(--b); box-shadow: none; }
.nb-cells i.hot { background: var(--ink); box-shadow: none; }

.nb-now {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center;
  margin: 2px 0 4px; padding: 3px 6px; border: 1px dashed var(--line-hi); font-size: 12px; color: var(--ink-2);
}
.nb-now-k { background: var(--inv-bg); color: var(--inv-ink); font-weight: 700; padding: 0 5px; font-size: 11px; }

.nb-list { flex: 1 1 auto; height: 0; min-height: 420px; overflow-y: auto; margin: 0 -12px; padding: 0 12px; scrollbar-width: thin; overscroll-behavior: contain; }
.nb-e { position: relative; padding: 10px 0 11px; border-bottom: 1px solid var(--rule); }
.nb-e:last-of-type { border-bottom: 0; }
.nb-e.reply { margin-left: 3ch; padding-left: 12px; border-left: 1px dashed var(--line); }
.nb-e.fresh::before, .nb-e.flash::before {
  content: ''; position: absolute; inset: 0 -12px; pointer-events: none;
  background: color-mix(in srgb, var(--ink) 9%, transparent); animation: nb-fade 4s ease-out forwards;
}
.nb-e.reply.fresh::before, .nb-e.reply.flash::before { left: 0; }
.nb-e.fresh .nb-who::after { content: ' new'; font-weight: 500; font-size: 10.5px; color: var(--inv-ink); background: var(--inv-bg); padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
@keyframes nb-fade { from { opacity: 1; } to { opacity: 0; } }

.nb-h { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.nb-g {
  flex: none; display: inline-grid; place-items: center; width: 1.7em; height: 1.55em; align-self: center;
  font-weight: 700; font-size: 12.5px; line-height: 1;
}
.nb-g.s0 { background: var(--inv-bg); color: var(--inv-ink); }
.nb-g.s1 { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.nb-g.s2 { box-shadow: inset 0 0 0 1px var(--dim); color: var(--ink-2); background: repeating-linear-gradient(135deg, transparent 0 3px, var(--rule) 3px 4px); }
.nb-g.s3 { outline: 1px dashed var(--ink-2); outline-offset: -1px; color: var(--ink); }
.nb-who { font-weight: 700; color: var(--ink); }
.nb-re { color: var(--ink-2) !important; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nb-re:hover { color: var(--ink) !important; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.nb-t { margin-left: auto; flex: none; color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; cursor: default; }
.nb-t .nb-abs { color: var(--dim); }
.nb-t .nb-abs::after { content: ' · '; color: var(--faint); }

.nb-sec { margin: 3px 0 5px; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-q {
  margin: 4px 0 6px; padding: 2px 0 2px 9px; border-left: 2px solid var(--line-hi);
  font-size: 12px; line-height: 1.45; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nb-q-s { color: var(--ink-2); margin-right: 6px; }
.nb-x { font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.nb-m { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 5px; font-size: 11px; color: var(--dim); }
.nb-m > span + span::before { content: '·'; color: var(--faint); margin-right: 8px; }
.nb-m .nb-m-k { color: var(--faint); }
.nb-m .anon { color: var(--faint); }

.nb-more {
  display: block; width: 100%; margin: 8px 0 4px; padding: 5px 0 !important; text-align: center;
  border: 1px dashed var(--line) !important; color: var(--dim) !important; font-size: 12px;
}
.nb-more:hover { color: var(--ink) !important; border-color: var(--line-hi) !important; }
.nb-end { text-align: center; color: var(--faint); font-size: 11px; padding: 10px 0 4px; }
.nb-foot { justify-content: space-between; font-size: 11.5px; }
.nb-foot a { color: var(--ink-2); }

/* empty: the plan, dim */
.nb-empty { padding: 6px 0 4px; }
.nb-wait { color: var(--ink); font-size: 13px; padding: 6px 8px; border: 1px dashed var(--line-hi); margin-bottom: 12px; }
.nb-plan { display: grid; font-size: 12px; }
.nb-plan-h { display: flex; justify-content: space-between; color: var(--faint); border-bottom: 1px solid var(--rule); padding-bottom: 3px; margin-bottom: 3px; }
.nb-plan-r { display: grid; grid-template-columns: 6ch minmax(0, 1fr) auto; gap: 10px; padding: 2px 0; color: var(--faint); white-space: nowrap; }
.nb-plan-r > * { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nb-plan-n { font-variant-numeric: tabular-nums; }
.nb-plan-s { color: var(--dim); }
.nb-plan-r.more { color: var(--faint); font-style: italic; }
.nb-plan-f { margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--rule); color: var(--faint); font-size: 11.5px; }

/* /notebook — full width, reading column */
.nb-page .sk-bar-seg b { color: var(--ink); }
.nb-main { max-width: 860px; margin: 0 auto; padding: 22px 16px 40px; }
.nb-title { padding: 0 2px 22px; }
.nb-title h1 { margin: 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.nb-title p { margin: 10px 0 0; max-width: 68ch; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.nb-full .nb-list { height: auto; min-height: 0; overflow: visible; }
.nb-full .nb-x { font-size: 15px; line-height: 1.65; }
.nb-full .nb-e { padding: 14px 0 15px; }

@media (max-width: 1099px) {
  .nb-list { height: auto; min-height: 0; max-height: 560px; }
  .nb-full .nb-list { max-height: none; }
}
@media (max-width: 430px) {
  .nb-list { margin: 0 -10px; padding: 0 10px; max-height: 520px; }
  .nb-e.reply { margin-left: 1.5ch; padding-left: 9px; }
  .nb-t .nb-abs { display: none; }
  .nb-x { font-size: 13.5px; }
  .nb-full .nb-x { font-size: 14.5px; }
  .nb-credit { font-size: 11.5px; }
  .nb-plan-r { grid-template-columns: 6ch minmax(0, 1fr); }
  .nb-plan-t { display: none; }
  .nb-main { padding: 16px 12px 28px; }
  .nb-foot { margin: 8px -10px -9px; padding: 6px 10px; }
  .nb-foot > .nb-faint { display: none; }
  .nb-foot > a { margin-left: auto; }
}

/* pledged fill + celebration */
.sk-burst { position: absolute; inset: 0; display: block; pointer-events: none; z-index: 3; }
.sk-sm-badge { display: inline-flex; align-items: center; color: var(--ink); font-weight: 700; white-space: nowrap; }
.sk-sm-badge em { font-style: normal; font-weight: 500; color: var(--dim); margin-left: 6px; }
.sk-cells i.p { background: repeating-linear-gradient(135deg, var(--b) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--line-hi); }
.sk-slice i.p { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1.5px, transparent 1.5px 4px); }
.sk-tr.gone { opacity: 0.5; }
.sk-tr.gone .c-name { font-weight: 400; }
.c-hist { color: var(--dim); font-size: 11.5px; }

/* "big mac" pane title doubles as the celebration preview button */
.sk-bm-btn { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .35em; }
.sk-bm-btn:hover, .sk-bm-btn:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }

.sk-tnum { font-variant-numeric: tabular-nums; }

/* special-thanks scene — a banner unfurled across an exchange facade at night */
.sk .sk-tys { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: rgba(4, 4, 6, 0.78); backdrop-filter: blur(3px); animation: sk-tys-in .35s ease-out both; }
@keyframes sk-tys-in { from { opacity: 0; } to { opacity: 1; } }
.sk .sk-tys-stage { --gilt: #c9b48a; position: relative; width: min(1100px, 100%); aspect-ratio: 1200 / 760; max-height: calc(100vh - 32px);
  overflow: hidden; border: 1px solid rgba(201, 180, 138, 0.3); box-shadow: 0 30px 90px rgba(0,0,0,.7); background: #07080b; }
.sk .sk-tys-facade { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sk .sk-tys-banner { position: absolute; left: 21%; width: 58%; top: 36.4%; transform-origin: top center; z-index: 2;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); }
.sk .sk-tys-rod { height: 9px; margin: 0 -3%; border-radius: 5px; background: linear-gradient(#f0deae, #a8874c 60%, #6f5730); }
.sk .sk-tys-cloth { position: relative; text-align: center; padding: clamp(10px, 2.2vw, 26px) clamp(10px, 2.6vw, 34px) clamp(40px, 9vw, 120px);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2.2%, rgba(0,0,0,.16) 3.4%, rgba(255,255,255,.03) 5.6%),
    linear-gradient(180deg, #1a1612 0%, #120f0c 55%, #0c0a08 100%);
  border-left: 2px solid rgba(201,180,138,.55); border-right: 2px solid rgba(201,180,138,.55);
  box-shadow: inset 0 0 0 6px #120f0c, inset 0 0 0 7px rgba(201,180,138,.45);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 75% calc(100% - 18px), 50% 100%, 25% calc(100% - 18px), 0 100%);
  animation: sk-tys-unfurl 1.6s cubic-bezier(.2,.75,.25,1) .25s both, sk-tys-sway 6s ease-in-out 1.9s infinite; transform-origin: top center; }
@keyframes sk-tys-unfurl {
  0% { clip-path: polygon(0 0, 100% 0, 100% 0, 75% 0, 50% 0, 25% 0, 0 0); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 75% calc(100% - 18px), 50% 100%, 25% calc(100% - 18px), 0 100%); } }
@keyframes sk-tys-sway { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(.6deg); } }
.sk .sk-tys .sk-ty-kicker { margin: 4px 0 2px; font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: clamp(9px, 1.15vw, 13px);
  letter-spacing: .42em; text-transform: uppercase; color: var(--gilt); }
.sk .sk-tys .sk-ty-kicker span { letter-spacing: 0; margin: 0 .5em; }
.sk .sk-tys .sk-ty-name { display: inline-block; font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: clamp(20px, 4.4vw, 54px);
  line-height: 1.08; letter-spacing: .08em; text-transform: uppercase; color: #f4efe2; text-decoration: none;
  text-shadow: 0 1px 0 #000, 0 0 26px rgba(201,180,138,.25); }
.sk .sk-tys .sk-ty-name:hover { color: var(--gilt); }
.sk .sk-tys .sk-ty-line { margin: 6px auto 4px; max-width: 640px; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-size: clamp(11px, 1.55vw, 19px); line-height: 1.4; color: #d9d3c4; }
.sk .sk-ty-ico { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; margin: 0 .12em; }
.sk .sk-tys .sk-ty-handle { color: #a39d8f; text-decoration: none; letter-spacing: .08em; font-size: clamp(10px, 1vw, 12px); }
.sk .sk-tys .sk-ty-handle:hover { color: var(--gilt); }
.sk .sk-tys .sk-burst { z-index: 3; }
.sk .sk-tys-x { position: absolute; top: 8px; right: 10px; z-index: 4; width: 28px; height: 28px; border: 1px solid rgba(201,180,138,.4);
  background: rgba(0,0,0,.55); color: #e9e3d4; font: 600 16px/1 ui-monospace, monospace; cursor: pointer; }
.sk .sk-tys-x:hover { background: #e9e3d4; color: #0c0c0b; }
@media (max-width: 640px) {
  .sk .sk-tys-stage { aspect-ratio: 4 / 5; }
  .sk .sk-tys-banner { left: 6%; width: 88%; top: 36.4%; }
  .sk .sk-tys .sk-ty-name { font-size: clamp(22px, 8vw, 34px); }
  .sk .sk-tys .sk-ty-line { font-size: 14px; }
  .sk .sk-tys .sk-ty-kicker { font-size: 10px; letter-spacing: .3em; }
}
@media (prefers-reduced-motion: reduce) { .sk .sk-tys, .sk .sk-tys-cloth { animation: none; } }
/* the strip under the title that replays it */
.sk .sk-tystrip { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 12px; padding: 7px 12px; font: inherit;
  color: var(--ink-2); background: linear-gradient(90deg, rgba(201,180,138,.10), rgba(201,180,138,.02)); border: 1px solid rgba(201,180,138,.32);
  cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; }
.sk .sk-tystrip:hover { border-color: rgba(201,180,138,.7); }
.sk .sk-tystrip-k { font-family: 'Cinzel', Georgia, serif; letter-spacing: .22em; text-transform: uppercase; font-size: 11px; color: #c9b48a; }
.sk .sk-tystrip-n { font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.sk .sk-tystrip-l { color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.sk .sk-tystrip-go { margin-left: auto; color: #c9b48a; }

/* weights row: striped while a layer's Mac is still downloading its slice */
.sk-cells i.dl { background: repeating-linear-gradient(135deg, var(--b) 0 2px, transparent 2px 5px); background-size: 7px 7px; animation: sk-dl 1.1s linear infinite; }
@keyframes sk-dl { to { background-position: 7px 0; } }
@media (prefers-reduced-motion: reduce) { .sk-cells i.dl { animation: none; } }
@media (max-width: 430px) {
  .sk .sk-cap > .sk-cap-wl { grid-area: 6 / 1; }
  .sk .sk-cap > .sk-cap-wv { grid-area: 6 / 2; }
  .sk .sk-cap > .sk-cap-wc { grid-area: 7 / 1 / 8 / 3; }
  .sk .sk-cap > .sk-axis { grid-area: 8 / 1 / 9 / 3; }
}
.sk .sk-cap-eta { color: var(--dim); font-size: 12px; }
.sk .sk-cap-eta b { color: var(--ink); }
@media (max-width: 430px) {
  .sk .sk-cap > .sk-cap-el { grid-area: 9 / 1; }
  .sk .sk-cap > .sk-cap-ev { grid-area: 9 / 2; }
  .sk .sk-cap > .sk-cap-ec { grid-area: 10 / 1 / 11 / 3; }
}
.sk-cells i.disk { background: radial-gradient(circle, var(--b) 1.2px, transparent 1.6px) 0 0 / 5px 5px; box-shadow: inset 0 0 0 1px var(--b); }

/* ── swarm log: newest first, one line per event, repeats folded (×n) ── */
.sk-log { padding-bottom: 8px; }
.sk .sk-log-tg { font: inherit; color: var(--dim); cursor: pointer; }
.sk .sk-log-tg:hover { color: var(--ink); }
.sk-log-sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.sk-log-chip { display: inline-block; border: 1px solid var(--line); padding: 1px 8px; color: var(--ink-2); font-variant-numeric: tabular-nums; max-width: 100%; }
.sk-log-chip b { color: var(--ink); }
.sk-log-bad { color: var(--err); }
.sk-log-f { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.sk .sk-log-f button { padding: 0 7px; color: var(--dim); border: 1px solid transparent; }
.sk .sk-log-f button:hover { color: var(--ink); }
.sk .sk-log-f button.on { color: var(--ink); border-color: var(--line-hi); }
.sk-log-rows { list-style: none; margin: 8px 0 0; padding: 0; max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.sk-log-r {
  display: grid; grid-template-columns: 5.5ch 1.6ch minmax(0, 1fr) auto; gap: 0 8px; align-items: baseline;
  padding: 2px 0; border-top: 1px dashed var(--rule); font-variant-numeric: tabular-nums;
}
.sk-log-r:first-child { border-top: 0; }
.sk-log-t { color: var(--faint); }
.sk-log-i { text-align: center; color: var(--dim); }
.sk-log-x { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sk-log-n { color: var(--ink); font-weight: 700; text-align: right; }
.sk-log-r.bad .sk-log-i, .sk-log-r.bad .sk-log-x { color: var(--err); }
.sk-log-r.ok .sk-log-i, .sk-log-r.ok .sk-log-x { color: var(--ink); }
.sk-log-r.info .sk-log-x { color: var(--dim); }
.sk-log-r.warn .sk-log-i { color: var(--ink); }
.sk-log-more { display: flex; gap: 14px; margin-top: 6px; }
.sk .sk-log-more button { color: var(--dim); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.sk .sk-log-more button:hover { color: var(--ink); }
@media (max-width: 760px) {
  .sk-log-x { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 430px) {
  .sk-log-r { grid-template-columns: 5.5ch 1.4ch minmax(0, 1fr) auto; gap: 0 6px; font-size: 11.5px; padding: 3px 0; }
  .sk-log-chip { font-size: 11.5px; }
  .sk-log-rows { max-height: 420px; }
}
