/* Built programmatically; do not edit by hand. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/plex-mono-600.woff2) format("woff2"); }

/* The animation's own colors; everything else comes from the site's tokens. */
.kcbs { --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --bar: #b8c2da; --edge: #b9b8b1; --hl: #f2c230; --hl-edge: #d9a514; --cut: #dcdbd5; --in: #1d4ed8; --bad: #c2410c; --add: #0072b2; --del: #d55e00; --pill: #ecebe6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kcbs { --bar: #4b5673; --edge: #4a505b; --hl: #e3b93a; --hl-edge: #b8922a; --cut: #2e333c; --in: #a3b3ee; --bad: #f0875f; --add: #56b4e9; --del: #f0875f; --pill: #2a2f38; }
}
:root[data-theme="dark"] .kcbs { --bar: #4b5673; --edge: #4a505b; --hl: #e3b93a; --hl-edge: #b8922a; --cut: #2e333c; --in: #a3b3ee; --bad: #f0875f; --add: #56b4e9; --del: #f0875f; --pill: #2a2f38; }

.kcbs { max-width: 1120px; margin: 0.5rem auto 1rem; }

.kcbs .figure:focus { outline: none; }
.kcbs .figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.kcbs [hidden] { display: none !important; }
.kcbs .figure > * { min-width: 0; }
.kcbs .figure { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); display: grid; }
.kcbs .prompt {
    display: grid; gap: 4px; padding: 14px 18px;
    border-bottom: 1px solid var(--border); background: var(--bg-subtle); font-size: 0.95rem;
  }
.kcbs .prompt div { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.kcbs .prompt .lbl { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); min-width: 7.5rem; }
.kcbs .prompt code { font-family: var(--font-mono); font-size: 0.9rem; }
.kcbs .prompt .target code { color: var(--text-muted); }
.kcbs .svgwrap { overflow-x: auto; padding: 8px 10px 0; }
.kcbs .scrollhint { margin: 8px 18px 0; font-size: 0.8rem; color: var(--text-muted); }
.kcbs svg#beam { display: block; width: 100%; min-width: 760px; height: auto; }
.kcbs svg text { font-family: var(--font-mono); font-size: 14px; }
.kcbs .tok { fill: var(--text); transition: fill .5s; }
.kcbs .num { fill: var(--text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kcbs .bar { fill: var(--bar); transition: fill .5s; }
.kcbs .pill rect { fill: var(--pill); transition: fill .5s; }
.kcbs .pill text { fill: var(--text); font-size: 12px; font-weight: 600; }
.kcbs .chk { fill: var(--in); font-family: var(--font-body); font-size: 14px; font-weight: 600; }
.kcbs .item.bad .chk { fill: var(--bad); }
.kcbs .item.hl .bar { fill: var(--hl); }
.kcbs .item.hl .tok { font-weight: 600; }
.kcbs .item.cut .bar { fill: var(--cut); }
.kcbs .item.cut .tok { fill: var(--text-muted); }
.kcbs .item.bad .tok { fill: var(--bad); text-decoration: line-through; }
.kcbs .item.bad .pill rect { fill: var(--bad); }
.kcbs .item.bad .pill text { fill: var(--bg); }
.kcbs .item.bad .num { fill: var(--bad); font-family: var(--font-body); }
.kcbs .item.in .bar { fill: var(--in); }
.kcbs .item.out .bar { fill: var(--cut); }
.kcbs .item.out .tok { fill: var(--text-muted); }
.kcbs .item.prefix .tok { fill: var(--text-muted); }
.kcbs .item.dead .tok { fill: var(--text-muted); }
.kcbs .item.onpath .tok { font-weight: 600; }
.kcbs .edge.onpath { stroke: var(--hl-edge); stroke-width: 2; }
.kcbs .edge.dead { stroke: var(--edge); stroke-width: 1; }
.kcbs .axis line { stroke: var(--text-muted); stroke-width: 1; }
.kcbs .axis text { fill: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.kcbs .edge { fill: none; stroke: var(--edge); stroke-width: 1.2; transition: stroke .5s; }
.kcbs .edge.hl { stroke: var(--hl-edge); stroke-width: 1.6; }
.kcbs .edge.bad { stroke: var(--bad); stroke-dasharray: 3 3; }
.kcbs .edge.in { stroke: var(--in); }
.kcbs .hdr { fill: var(--text-muted); font-size: 13px; }
.kcbs .hdr.lbl, .kcbs .colhead { font-family: var(--font-body); font-size: 11.5px; letter-spacing: 0.04em; fill: var(--text-muted); }
.kcbs .note text { fill: var(--text-muted); font-size: 12px; }
.kcbs .note text.bad { fill: var(--bad); }
.kcbs .cutline line { stroke: var(--text); stroke-width: 1; stroke-dasharray: 5 4; }
.kcbs .cutline text { fill: var(--text); font-family: var(--font-body); font-size: 12px; }
.kcbs .row .txt tspan.del { fill: var(--del); text-decoration: line-through; }
.kcbs .row .txt tspan.add { fill: var(--add); font-weight: 600; text-decoration: underline; }
.kcbs .row .bar { fill: var(--bar); }
.kcbs .row.out .bar { fill: var(--cut); }
.kcbs .row.out .txt { fill: var(--text-muted); }
.kcbs .row .txt { fill: var(--text); }
.kcbs .row .lev { font-family: var(--font-body); font-size: 12.5px; fill: var(--in); font-weight: 600; }
.kcbs .seg { fill: var(--in); fill-opacity: 0.5; stroke: var(--bg); stroke-width: 1; }
.kcbs .seg.verb { fill-opacity: 1; }
.kcbs .sumlbl { font-family: var(--font-body); font-size: 12.5px; fill: var(--text-muted); }
.kcbs .sumlbl.lb { fill: var(--in); font-weight: 600; font-size: 14px; }
.kcbs .row .tag { font-family: var(--font-body); font-size: 12px; fill: var(--text-muted); letter-spacing: 0.04em; }
.kcbs .row.out .lev { fill: var(--text-muted); font-weight: 400; }
.kcbs .beambox {
    margin: 4px 18px 0; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle);
    display: grid; gap: 6px;
  }
.kcbs .beam-title { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.kcbs .beam-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.kcbs .beam-list li {
    display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center;
    font-family: var(--font-mono); font-size: 0.9rem;
  }
.kcbs .beam-list .sw { width: 12px; height: 12px; border-radius: 2px; background: var(--bar); }
.kcbs .beam-list li.hl .sw { background: var(--hl); }
.kcbs .beam-list li.hl .txt { font-weight: 600; }
.kcbs .beam-list .pre { color: var(--text-muted); }
.kcbs .beam-list .p { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.kcbs .beam-list .txt { overflow-wrap: anywhere; }
.kcbs .caption { min-height: 6.4em; padding: 12px 18px 4px; margin: 0; }
.kcbs .caption .seq { font-family: var(--font-mono); font-size: 0.92em; white-space: nowrap; }
.kcbs .caption .note-extra .seq { color: var(--text); }
.kcbs .caption .plbl { font-size: 0.78em; letter-spacing: 0.06em; white-space: nowrap; }
.kcbs .caption .note-extra { display: block; margin-top: 6px; color: var(--text-muted); }
.kcbs .summary { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 4px 18px 10px; }
.kcbs .stat { display: grid; }
.kcbs .stat .v { font-family: var(--font-mono); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kcbs .stat .k { font-size: 0.8rem; color: var(--text-muted); }
.kcbs .stat.lb .v { color: var(--in); font-weight: 600; }
.kcbs .controls {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    padding: 12px 18px 14px; border-top: 1px solid var(--border);
  }
.kcbs .btns { display: flex; gap: 6px; }
.kcbs button {
    font: inherit; font-size: 0.9rem; color: var(--text); background: var(--bg);
    border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 5px 12px; cursor: pointer;
  }
.kcbs button:hover { border-color: var(--text-muted); }
.kcbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kcbs button:disabled { opacity: 0.4; cursor: default; }
.kcbs .dots { display: flex; gap: 4px; flex-wrap: wrap; }
.kcbs .dots button { padding: 3px 9px; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.kcbs .dots button[aria-current="step"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.kcbs .crumbs { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.kcbs .where { font-size: 0.85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.kcbs .crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.kcbs .crumbs li:not(:last-child)::after { content: "›"; color: var(--border-strong); margin: 0 2px 0 4px; }
.kcbs .crumbs button {
    border: 0; background: none; padding: 2px 4px; font-size: 0.82rem; color: var(--text-muted);
  }
.kcbs .crumbs button:hover { color: var(--text); }
.kcbs .crumbs button[aria-current="step"] { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.kcbs .fine { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.kcbs .legend {
    display: flex; flex-wrap: wrap; gap: 6px 20px; min-height: 1.4em;
    font-size: 0.85rem; color: var(--text-muted); margin: 6px 18px 0; padding: 0; list-style: none;
  }
.kcbs .legend li { display: flex; align-items: center; gap: 7px; }
.kcbs .legend .sw { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
.kcbs .legend .gl { font-weight: 600; font-size: 0.95rem; }
.kcbs .legend .deadline { display: inline-block; width: 18px; height: 0; border-top: 1.5px solid var(--edge); opacity: .45; }
.kcbs .legend .mono { font-family: var(--font-mono); font-size: 0.85rem; }
.kcbs .legend li.new { animation: legend-in 1.6s ease-out; }
@keyframes legend-in {
    0% { opacity: 0; transform: translateY(4px); }
    30% { opacity: 1; transform: none; color: var(--text); }
    100% { color: var(--text-muted); }
  }
@media (prefers-reduced-motion: reduce) {
  .kcbs .legend li.new { animation: none; }
}
