/* console.css — the driven console on index.html.
   Loaded by every page for the shared tokens' sake? No: index.html only. */

.shell { display: none; }
.js .shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  background: var(--bg);
}
.js #doc { display: none; }
#doc { padding-bottom: 4rem; }

/* ── status bar ─────────────────────────────────────────── */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding: 0.6rem clamp(0.9rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.bar > * { white-space: nowrap; }
.bar b { font-weight: 400; color: var(--fg); }
.bar .id { color: var(--fg); letter-spacing: 0.02em; text-transform: none; font-size: 0.75rem; }
.bar .id::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--proj-ink);
  transition: background .24s var(--ease);
}
.bar .spacer { margin-left: auto; }

/* ── rail ───────────────────────────────────────────────── */

.mid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
@media (min-width: 64rem) {
  .mid { grid-template-columns: 15.5rem minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
}

.rail {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.6rem clamp(0.9rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail h2 { display: none; }
.rail .foot { display: none; }
/* Same idiom as everything else you can act on: [thing]. The box is gone; what marks the
   session you are in is a soft pulse under the name, in that project's own colour. */
.rail-item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.75rem;
  color: var(--mid);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0.3rem 0.1rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s var(--ease);
}
.rail-item .nm::before { content: "["; color: var(--dim); }
.rail-item .nm::after  { content: "]"; color: var(--dim); }
.rail-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.rail-item .n, .rail-item .stack { display: none; }
.rail-item:hover { color: var(--fg); }
.rail-item:hover .nm::before, .rail-item:hover .nm::after { color: var(--c); }
.rail-item[aria-current="true"] { color: var(--fg); }
.rail-item[aria-current="true"] .nm::before,
.rail-item[aria-current="true"] .nm::after { color: var(--c); }

/* the tell: a hairline under the current session, breathing in its colour */
.rail-item[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0.1rem; right: 0.1rem; bottom: 0.05rem;
  height: 1px;
  background: var(--c);
  animation: railpulse 2.4s var(--ease) infinite;
}
@keyframes railpulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rail-item[aria-current="true"]::after { animation: none; opacity: 1; }
}

@media (min-width: 64rem) {
  .rail {
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden auto;
    padding: 1.25rem 1rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .rail h2 {
    display: block;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin: 0 0 0.85rem 0.55rem;
  }
  .rail-item {
    display: grid;
    grid-template-columns: 1.6rem 1fr 0.5rem;
    align-items: center;
    gap: 0.1rem 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.6rem;
    border-color: transparent;
    position: relative;
  }
  .rail-item .n { display: block; font-size: 0.6875rem; color: var(--dim); }
  .rail-item .stack {
    display: block;
    grid-column: 2 / 4;
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rail-item { padding: 0.5rem 0.6rem; }
  .rail-item[aria-current="true"] { background: var(--proj-soft); }
  .rail-item[aria-current="true"]::before {
    content: "";
    position: absolute;
    left: -1rem; top: 0; bottom: 0;
    width: 2px;
    background: var(--c);
    animation: railpulse 2.4s var(--ease) infinite;
  }
  /* the underline belongs to the compact rail only; here the left bar does the marking */
  .rail-item[aria-current="true"]::after { display: none; }
  .rail .foot { display: block; margin-top: auto; padding: 1rem 0.6rem 0; font-size: 0.6875rem; color: var(--dim); }
  .rail .foot a { display: block; color: var(--dim); border: 0; }
  .rail .foot a:hover { color: var(--fg); }
}

/* ── log ────────────────────────────────────────────────── */

.log {
  overflow: hidden auto;
  padding: clamp(1rem, 3vh, 2rem) clamp(0.9rem, 2vw, 2rem) 1.5rem;
}
.log > * { max-width: 60rem; }
.log .line { color: var(--mid); }
.log .dimline { color: var(--dim); font-size: 0.8125rem; }

.echo {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--proj-ink);
  transition: color .24s var(--ease);
}
.log > .echo:first-child { margin-top: 0; }
.echo .ps { color: var(--dim); }
/* One block, one character cell wide: in a monospace line 1ch is exactly the grid, so
   the caret sits on the same rhythm as the glyphs instead of half a step off. */
.caret {
  display: inline-block;
  width: 1ch; height: 1.15em;
  background: var(--proj-ink);
  vertical-align: -0.22em;
  animation: blink 1.06s steps(1, end) infinite;
}
.caret.off { animation: none; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.block {
  border-left: 2px solid var(--proj-ink);
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin: 0 0 0.5rem;
  transition: border-color .24s var(--ease);
}
.js .block, .js .echo { animation: rise .12s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── output: table ──────────────────────────────────────── */

.tbl { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.tbl th {
  text-align: left; font-weight: 400;
  font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); padding: 0 1.25rem 0.5rem 0;
}
.tbl td { padding: 0.45rem 1.25rem 0.45rem 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.tbl .name { color: var(--fg); }
.tbl .name button {
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  border-bottom: 1px solid var(--line);
}
.tbl .name button:hover { border-color: var(--c); }
.tbl .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 0.55rem; }
.tbl td.dim { color: var(--dim); }
.tbl td.stack { color: var(--mid); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── output: project card ───────────────────────────────── */

.card {
  display: grid;
  gap: 1.5rem;
  padding: 0.15rem 0 0.35rem;
}
@media (min-width: 60rem) {
  .card.with-stage {
    grid-template-columns: minmax(0, 1fr) 17rem;
    align-items: start;
    transition: grid-template-columns .5s var(--ease);
  }
  .card .pin { position: sticky; top: 0; }

  /* Desktop view of a device demo: the panel leaves the side column, drops below and
     takes the full width, and the text flows right into the space it vacated. */
  .card.with-stage.dev-wide { grid-template-columns: minmax(0, 1fr) 0rem; }
  .card.dev-wide > div:first-child { grid-column: 1 / -1; }
  .card.dev-wide p { max-width: none; }
  .card.dev-wide .langwrap, .card.dev-wide .stackgraph { max-width: 46rem; }
}

/* At every width, not just the wide one: below 60rem the card is already a single column,
   and without this the panel stayed in a 197px cell and the desktop layout came out as a
   thumbnail. */
.card.dev-wide .pin { position: static; grid-column: 1 / -1; grid-row: 2; }
@media (prefers-reduced-motion: reduce) {
  .card.with-stage { transition: none; }
}
.card .claim {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0.35rem 0 0.9rem;
  text-wrap: pretty;
}
.card .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.card p { color: var(--mid); margin: 0 0 1rem; max-width: 54ch; }
.card .nums { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0 0 1.25rem; }
.card .nums div { display: flex; flex-direction: column-reverse; gap: 0.1rem; }
.card .nums b { font-weight: 400; font-size: 1.125rem; }
.card .nums span { font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.card .stage { background: var(--bg); }

/* ── output: notices ────────────────────────────────────── */

.hint { color: var(--mid); font-size: 0.875rem; }
.hint b { color: var(--fg); font-weight: 400; }

/* ── fx: decode, typewriter status, test runner ─────────── */

.decode .lk { color: var(--fg); }
.decode .rn { color: var(--dim); }

@keyframes blink { 0%, 50% { opacity: 1 } 50.01%, 100% { opacity: 0 } }

.runner { font-size: 0.8125rem; }
.runner .rhead {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0 0 0.4rem; border-bottom: 1px solid var(--line); color: var(--mid);
}
.runner .run { color: var(--proj-ink); }
.runner .rbody { padding: 0.45rem 0 0; }
.runner .rline {
  display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 0.75rem;
  margin: 0; padding: 0.1rem 0; animation: rin .2s var(--ease);
}
.runner .ok { color: var(--proj-ink); }
.runner .file { color: var(--fg); }
.runner .dim { color: var(--dim); }
@keyframes rin { from { opacity: 0; transform: translateY(3px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  .runner .rline { animation: none; }
}

@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.kv { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.35rem 1rem; font-size: 0.875rem; }
.kv dt { color: var(--dim); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.2rem; }
.kv dd { margin: 0; color: var(--fg); }

.help { display: grid; gap: 0.3rem 1.25rem; grid-template-columns: 10.5rem 1fr; font-size: 0.8125rem; }
.help code { color: var(--fg); }
.help span { color: var(--mid); }
@media (max-width: 40rem) { .help { grid-template-columns: 1fr; gap: 0 0.5rem; } .help span { margin-bottom: 0.4rem; } }

/* ── dock: chips + prompt ───────────────────────────────── */

/* light theme: the same session hue, darkened just enough to read on paper-white */
[data-theme="light"] ::selection { background: color-mix(in oklab, var(--proj), #fff 55%); color: #16181d; }

/* The dock sits under the log without competing with it: no fill, one hairline, and
   the commands whispered rather than announced. They come up only on hover. */
/* The prompt is part of the output now: same left rule as a block, so the caret lands on
   the same column as everything the console has printed. */
.log .prompt {
  margin: 0.35rem 0 1.5rem;
  padding-left: 1.1rem;
  border-left: 2px solid transparent;
  scroll-margin-bottom: 1.5rem;
}
.log .prompt:focus-within { border-left-color: var(--proj-ink); }
.log .prompt .ps { transition: color .24s var(--ease); }
.jump { margin-left: auto; }

.dock {
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  padding: 0.45rem clamp(0.9rem, 2vw, 1.5rem) max(0.5rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.dock .chips { flex: 1; min-width: 0; }
.dock .chips {
  align-items: baseline; overflow-x: auto; flex-wrap: nowrap;
  scrollbar-width: none; padding-bottom: 0.1rem; gap: 0.15rem 0.9rem;
}
.dock .chip {
  white-space: nowrap;
  font-size: 0.6875rem;
  color: var(--dim);
  opacity: .65;
  transition: opacity .12s var(--ease), color .12s var(--ease);
}
.dock .chip::before, .dock .chip::after { opacity: .45; }
.dock .chip:hover, .dock .chip:focus-visible { opacity: 1; color: var(--proj-ink); }
.dock .chip:hover::before, .dock .chip:hover::after,
.dock .chip:focus-visible::before, .dock .chip:focus-visible::after { opacity: 1; }
.dock .chips::-webkit-scrollbar { display: none; }
@media (min-width: 64rem) { .dock .chips { flex-wrap: wrap; overflow: visible; } }

/* On a phone the chips are the only control, so they get a real tap target and full
   contrast. The padding grows, the look does not: still no fill, still no border. */
@media (max-width: 40rem) {
  .dock .chip { font-size: 0.75rem; opacity: 1; padding: 0.5rem 0; }
  .dock .chips { gap: 0 1.1rem; }
}

.prompt { display: flex; align-items: center; gap: 0.6rem; }
.prompt .ps { color: var(--proj-ink); transition: color .24s var(--ease); }
/* The suggestion sits underneath the input in the same box with the same metrics: the
   typed part is transparent and only holds the width, the rest is the grey hint. */
.prompt .field { position: relative; flex: 1; min-width: 0; display: flex; }
.prompt .suggest {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0.35rem 0;
  font: inherit;
  white-space: pre;
  pointer-events: none;
  overflow: hidden;
}
.prompt .suggest .typed { color: transparent; }
.prompt .suggest .rest { color: var(--dim); }

.prompt input {
  position: relative;
  z-index: 1;
  flex: 1;
  font: inherit;
  background: none;
  border: 0;
  color: var(--fg);
  caret-color: var(--proj-ink);
  padding: 0.35rem 0;
  min-width: 0;
}
.prompt input:focus { outline: 0; }
.prompt input::placeholder { color: var(--dim); }

/* ── intro: who is speaking, printed on boot and by `whoami` ── */

.intro { display: grid; gap: 0.7rem; max-width: 56ch; }
.intro .name {
  margin: 0; font-family: var(--mono); font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.08;
}
.intro .who { margin: 0; color: var(--dim); font-size: 0.75rem; letter-spacing: 0.06em; }
.intro p { margin: 0; color: var(--mid); }
.intro .looking { color: var(--fg); }
.intro .cta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; align-items: baseline;
  color: var(--dim); font-size: 0.75rem; margin-top: 0.4rem; }

/* ── stack graph: what talks to what ────────────────────── */

.stackgraph { margin-top: 1.5rem; max-width: 34rem; }
.graph { width: 100%; height: auto; display: block; overflow: visible; touch-action: none; }

.gedge {
  stroke: var(--line);
  stroke-width: 0.35;
  stroke-dasharray: 1.6 1.6;
  animation: flow 2.4s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -3.2; } }

.gnode { cursor: grab; outline: 0; }
.gnode.held { cursor: grabbing; }
.gnode circle {
  fill: var(--bg);
  stroke: var(--line);
  stroke-width: 0.4;
  transition: stroke .16s var(--ease), r .16s var(--ease);
}
.gnode .mark path { fill: var(--mid); transition: fill .16s var(--ease); }
.gnode text {
  fill: var(--dim);
  font-family: var(--mono);
  /* The viewBox is 100 wide whatever the pixel width, so the label has to grow as the
     frame shrinks or it turns to mush on a phone. */
  font-size: 2.6px;
  letter-spacing: 0.14px;
  text-anchor: middle;
  transition: fill .16s var(--ease);
}

/* The circle and the mark move; the mark's own scaling lives on the <g> inside it, so a
   CSS transform here cannot wipe it out. That was the logo blowing up on hover. */
.gnode > circle, .gnode > .mark { transition: transform .18s var(--ease); }
.gnode:hover > circle, .gnode:hover > .mark { transform: translateY(-1px); }
.gnode:hover circle { stroke: var(--proj-ink); }
.gnode:hover .mark path { fill: var(--fg); }
.gnode:hover text { fill: var(--mid); }
.gnode.held > circle, .gnode.held > .mark { transform: scale(1.12); }
.gnode.held circle { stroke: var(--proj-ink); }
.gnode.held .mark path { fill: var(--proj-ink); }

@media (prefers-reduced-motion: reduce) {
  .gedge { animation: none; }
  .gnode > * { transition: none; }
}

/* ── language bar ───────────────────────────────────────── */

.langwrap { margin-top: 1.5rem; max-width: 34rem; }
.langs .track {
  display: flex; gap: 2px; height: 7px; overflow: hidden;
  background: var(--line);
}
.langs .seg {
  width: 0; background: var(--c); flex: 0 0 auto;
  transition: width .7s var(--ease);
}
.langs .legend {
  list-style: none; margin: 0.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem;
  font-size: 0.6875rem; color: var(--dim);
}
.langs .legend i { display: inline-block; width: 7px; height: 7px; background: var(--c); margin-right: 0.4rem; }
.langs .legend b { color: var(--mid); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .langs .seg { transition: none; } }

/* ── the bot's own chat, running ─────────────────────────── */

.chatsim {
  display: flex; flex-direction: column;
  height: min(30rem, 62vh);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 60%, #000);
  font-size: 0.75rem;
}
.chatsim .chead {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line);
  color: var(--mid); font-size: 0.6875rem; letter-spacing: 0.06em;
}
.chatsim .chead .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--proj-ink); }
.chatsim .chead .cnt { margin-left: auto; color: var(--dim); }
.chatsim .cfeed { flex: 1; overflow: hidden auto; padding: 0.5rem 0.7rem 0.7rem; scrollbar-width: thin; }

.cmsg { margin: 0; padding: 0.16rem 0; line-height: 1.45; color: var(--mid); word-break: break-word; }
.cmsg .who { font-weight: 500; }
.cmsg .who::after { content: ":"; color: var(--dim); margin-right: 0.35rem; }
.cmsg.user .cmd { color: var(--fg); }
.cmsg.bot { color: var(--mid); }
.cmsg .cbadge { display: inline-block; width: 14px; height: 14px; margin-right: 0.3rem; vertical-align: -3px; }
.cmsg.bot .paint {
  color: transparent;
  background-color: #B1EB34;
  background-image: url(assets/paint-cs-gold.webp);
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 0.1px #FBDC45, 1px 1px 0.1px #803E00;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .cmsg.bot .paint { color: #B1EB34; background: none; }
}
.cmsg { animation: cmsgin .18s var(--ease); }
@keyframes cmsgin { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cmsg { animation: none; } }

/* ── @channel: the same app at two widths ───────────────── */

.device-wrap { display: grid; gap: 0.5rem; }
.devbar { display: flex; align-items: baseline; gap: 0.9rem; font-size: 0.6875rem; }
.devbar .devnote { margin-left: auto; color: var(--dim); font-size: 0.625rem; letter-spacing: 0.06em; }
.device {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: height .5s var(--ease);
}
/* Wider than the column: pan it rather than shrink the app into illegibility. */
.device.pans { overflow-x: auto; overscroll-behavior-x: contain; }
.device .sizer { position: relative; }
.device iframe {
  border: 0;
  transform-origin: top left;
  transition: width .5s var(--ease), height .5s var(--ease), transform .5s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .device, .device iframe { transition: none; }
}

/* Scrolled up: the feed is holding position rather than following new messages. */
.chatsim.held-scroll .chead .cnt::after { content: " · reading history"; color: var(--proj-ink); }
.chatsim .cfeed { scroll-behavior: auto; overscroll-behavior: contain; }

/* The viewBox is 100 units wide whatever the pixel width, so on a phone the labels and
   strokes have to grow or they turn to mush. Kept at the end: the base .gnode rules come
   earlier in this file and would otherwise win on order. */
@media (max-width: 40rem) {
  .gnode text { font-size: 3.5px; }
  .gnode circle { stroke-width: 0.55; }
  .gedge { stroke-width: 0.45; }
}

/* The opening block: who I am first, then what I have done. */
.intro .about { color: var(--fg); max-width: 58ch; }
.intro .did-head {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.intro .did li { color: var(--mid); }
.intro .did li b { color: var(--fg); font-weight: 400; }

/* Short line, the rest a keypress away. */
.ex .f { color: var(--mid); }
.ex .more { font-size: 0.6875rem; white-space: nowrap; }
.intro .about .ex .s { color: var(--fg); }

/* Chatair's interface lives in chatair.css, rebuilt from the app's own source. */

.shotstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; margin-top: 0.6rem; }
.shotstrip img { width: 100%; border: 1px solid var(--line); border-radius: 2px; }

.bot-explorer { scroll-margin-top: 12px; }
.bot-filters { position: sticky; top: 0; z-index: 2; padding: 12px 0; background: var(--bg); }
.bot-search-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.bot-filters .search { min-width: 0; width: min(100%, 360px); }
.bot-filters .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin-top: 10px; padding-bottom: 4px; }
.bot-filters .chip { flex: 0 0 auto; min-height: 44px; }
.bot-pages { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
.bot-pages .k { min-height: 44px; }
.bot-pages[hidden] { display: none; }
.bot-pages button:disabled { opacity: .4; cursor: default; }

.graph-figure { margin: 0; min-width: 0; }
.graph-info { border-top: 1px solid var(--line); padding: 12px 2px; font-size: 12px; line-height: 1.6; color: var(--mid); }
.graph-info strong { color: var(--fg); }
.card .graph-info p, .tv-log .card .graph-info p { margin: 4px 0; font-size: 12px; }
.graph-info ul { padding-left: 18px; margin: 6px 0 0; }
.gnode:focus-visible .node-face, .gnode[aria-pressed="true"] .node-face { stroke: var(--accent); stroke-width: .5px; }

.chatsim .cfeed { overflow-anchor: none; }
.chat-activity { display: flex; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--line); }
.chat-activity .k { min-height: 44px; font-size: 12px; }
.chat-jump { margin-left: auto; }
.chat-jump[hidden] { display: none; }
.bot-runner { padding: 10px; border-top: 1px solid var(--line); }
.bot-runner label { font-size: 12px; }
.bot-runner > div { display: flex; gap: 8px; margin-top: 6px; }
.bot-runner input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.bot-runner .k { min-height: 44px; }
.tv-log .card .bot-runner-status, .card .bot-runner-status { margin: 8px 0 0; font-size: 11px; line-height: 1.5; }

.bot-filters .search { min-height: 44px; font-size: 16px; }
