/* dlog. Paper white, compact controls and small corner radii. Inter is served from this site; nothing loads from elsewhere. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --paper: #F8F8F5; --sheet: #FEFEFC; --side: #F2F2EE;
  --ink: #28292C; --ink-2: #55575D; --ink-3: #686A71;
  --line: #E2E2DD; --line-2: #CDCDC7; --edge: #B3B4B1;
  --ok: #3C6B5B; --ok-bg: #DDE9E3; --bad: #93463A; --bad-bg: #F2E2DD;
  --accent: #C0433B;
  --nw: 360px; --nr: 8px;
  /* Home and the brief: each half holds one centred column, its top level with the other's under the bar. */
  --col: 600px; --half-pad: 40px; --half-top: 24px; --bar-h: 56px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
p, h1, h2, h3, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 5px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

/* The frame: menu on the left, then the page. */
.app { height: 100vh; display: flex; overflow: hidden; }
.side { flex: none; width: 232px; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 12px; border-right: 1px solid var(--line); background: var(--side); overflow-y: auto; }
.side:empty { display: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 34px; padding: 0 12px 0 8px; margin-bottom: 10px; border-radius: 6px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.logo { width: 26px; height: 14px; flex: none; fill: var(--side); stroke: var(--ink); stroke-width: 1.6; }
.snav { display: flex; flex-direction: column; gap: 2px; }
.slink { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; border: 0; border-radius: 5px; background: none; font-size: 14px; color: var(--ink-2); text-align: left; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.slink:hover { background: rgba(40, 40, 50, .05); color: var(--ink); }
.slink.is-on { background: rgba(40, 40, 50, .08); color: var(--ink); font-weight: 500; }
.sub { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; padding-left: 16px; }
.sub .slink { height: 32px; font-size: 14px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 999px; background: color-mix(in oklab, var(--accent) 14%, var(--side)); color: var(--accent); font-size: 12px; font-weight: 600; }
.grow { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 4px 4px 8px; border-top: 1px solid var(--line-2); }
.who-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.who-l { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.who-n { font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.content { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; }
.left { position: relative; flex: none; width: 50%; overflow: hidden; border-right: 1px solid var(--line); transition: width .65s var(--ease); }
.left-in { width: 100%; min-width: 0; height: 100%; overflow-y: auto; padding: calc(var(--bar-h) + var(--half-top)) var(--half-pad) 40px; transition: opacity .35s ease .2s; }
.iconbtn { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 6px; background: none; color: var(--ink-2); text-decoration: none; transition: background .2s ease, color .2s ease; }
.iconbtn:hover { background: rgba(40, 40, 50, .06); color: var(--ink); }

/* Left half: what dlog is, or the project brief. */
.intro, .brief { width: 100%; max-width: var(--col); margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.brief { container-type: inline-size; }
.intro { gap: 0; }
.intro-h { display: flex; align-items: center; gap: 14px; font-size: 33px; line-height: 1.15; font-weight: 600; letter-spacing: -.022em; }
.intro-h > .logo { width: 38px; height: 20px; fill: var(--paper); stroke: var(--accent); stroke-width: 1.5; }
.intro-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 16px; }
/* The line from the title to "observable", drawn like the logo beside the title: a circle, then the line. */
.intro-join { display: none; }
.intro-top.is-joined { flex-wrap: nowrap; column-gap: 0; }
/* The logo beside the title draws its 26 x 14 viewBox 20px high, so at 20/14 scale: circles of r 3 with a 1.5 stroke
   (10.7px across, a 2.1px ring) and a 1.5 line. The join is drawn the same. A pseudo-element is not matched by
   `*`, so it is given border-box itself. */
.intro-top.is-joined > .intro-join { position: relative; display: block; flex: 1 1 21px; min-width: 21px; height: calc(1.5px * 20 / 14); margin-left: 8px; background: var(--accent); }
.intro-join::before { content: ""; box-sizing: border-box; position: absolute; left: 0; top: 50%; width: calc(7.5px * 20 / 14); height: calc(7.5px * 20 / 14); border: calc(1.5px * 20 / 14) solid var(--accent); border-radius: 50%; background: var(--paper); transform: translateY(-50%); }
/* "observable", and its two edges to what it makes observable. */
.intro-what { flex: none; }
.eg-graph.is-fan.is-mini { grid-template-columns: auto 36px auto; }
.eg-graph.is-mini .eg-to { gap: 5px; }
.eg-graph.is-mini .eg-wires .ln { stroke: color-mix(in oklab, var(--accent) 60%, var(--edge)); }
.eg-node.is-word { padding: 3px 9px; }
.eg-node.is-word .eg-t { font-size: 13.5px; line-height: 20px; white-space: nowrap; }
.eg-graph.is-mini > .eg-node.is-word { border-color: color-mix(in oklab, var(--accent) 45%, transparent); box-shadow: 0 8px 18px -14px color-mix(in oklab, var(--accent) 55%, transparent); color: var(--accent); }
/* The four steps, numbered down a thin line, each with an example drawn like the graph's nodes. */
.guide { margin-top: 22px; display: flex; flex-direction: column; }
.guide-step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 16px; padding-bottom: 16px; }
.guide-step:last-child { padding-bottom: 0; }
.guide-step:not(:last-child)::before { content: ""; position: absolute; left: 11.5px; top: 32px; bottom: 8px; border-left: 1.5px solid color-mix(in oklab, var(--accent) 30%, var(--line)); }
.guide-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); font-size: 12px; font-weight: 600; color: #fff; }
.guide-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 1px; }
.guide-t { font-size: 15.5px; line-height: 22px; font-weight: 600; }
.guide-b { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.guide-eg { margin-top: 9px; }
.eg-node, .eg-why { min-width: 0; border: 1px solid var(--line-2); border-radius: var(--nr); background: var(--sheet); }
.eg-node { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; }
.eg-k { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 8px; font-size: 11.5px; line-height: 16px; color: var(--ink-3); }
.eg-k > span { white-space: nowrap; }
.eg-t { font-size: 14px; line-height: 1.35; font-weight: 500; }
.eg-d { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
/* As in the graph: a decided node is drawn solid, in soft red here; one still waiting is dashed. */
.eg-node.is-acc { border-color: color-mix(in oklab, var(--accent) 45%, transparent); box-shadow: 0 8px 18px -14px color-mix(in oklab, var(--accent) 55%, transparent); }
.eg-node.is-acc .eg-st { color: var(--accent); font-weight: 500; }
.eg-node.is-wait { border-style: dashed; background: transparent; }
/* A piece of the graph: a card, edges drawn to the cards it leads to, and on each edge the pill the graph shows. */
.eg-graph { display: grid; grid-template-columns: minmax(0, auto) minmax(72px, 1fr) minmax(0, auto); align-items: center; }
.eg-graph.is-fan { grid-template-columns: minmax(0, auto) 112px minmax(0, 1fr); }
.eg-graph > .eg-node { max-width: 200px; }
.eg-wire-col { position: relative; align-self: stretch; }
.eg-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.eg-wires .ln.is-prop { stroke: var(--line-2); stroke-dasharray: 5 6; }
.eg-wires .ln.is-ok { stroke: color-mix(in oklab, var(--ok) 55%, var(--edge)); }
.eg-wires .ln.is-bad { stroke: color-mix(in oklab, var(--bad) 55%, var(--edge)); }
.eg-to { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eg-pill { position: absolute; left: 50%; top: 50%; z-index: 1; display: inline-flex; transform: translate(-50%, -50%); }
.eg-pill .pill-in > .ic { width: 12px; height: 12px; color: var(--ink-3); }
.eg-pill.check-pill .pill-in > .ic { color: currentColor; }
.eg-pill .edge-status > .ic { width: 14px; height: 14px; color: currentColor; }
.eg-pill.is-waiting .edge-status { color: var(--accent); }
.eg-pill .edge-avatars .av + .av { margin-left: -4px; box-shadow: 0 0 0 1px var(--paper); }
.eg-code .eg-k { justify-content: flex-start; }
.eg-path { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; font: 11.5px/16px ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: nowrap; text-overflow: ellipsis; }
.eg-path > .ic { width: 12px; height: 12px; flex: none; color: var(--accent); }
.eg-fn { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; }
.eg-check { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 5px; border-top: 1px solid var(--line); }
.eg-lead { font-size: 12.5px; font-weight: 600; }
.eg-tests { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ok); white-space: nowrap; }
.eg-tests > .ic { width: 12px; height: 12px; }
.eg-cond { align-self: flex-start; padding: 2px 6px; border-radius: 4px; background: color-mix(in oklab, var(--ink) 5%, var(--sheet)); font: 12px/18px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.eg-graph:not(.is-fan) > .eg-node { max-width: 144px; }
.eg-graph:not(.is-fan) { grid-template-columns: minmax(0, auto) minmax(136px, 1fr) minmax(0, auto); }
.eg-graph:not(.is-fan) > .eg-to { min-width: 180px; }
/* On a narrow column the cards hang below the one they come from, each edge turning into its card. */
.eg-graph.is-tree { grid-template-columns: 128px minmax(0, 1fr); row-gap: 12px; }
.eg-graph.is-tree:not(.is-fan) { grid-template-columns: 44px minmax(0, 1fr); row-gap: 44px; }
.eg-graph.is-tree.is-fan { grid-template-columns: 92px minmax(0, 1fr); }
.eg-graph.is-tree > .eg-node { position: relative; z-index: 1; grid-column: 1 / 3; grid-row: 1; justify-self: start; max-width: none; }
.eg-graph.is-tree > .eg-wire-col { grid-column: 1; grid-row: 1 / 3; }
.eg-graph.is-tree > .eg-to { grid-column: 2; grid-row: 2; }
.eg-why { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.eg-why-h { display: flex; align-items: center; gap: 10px; }
.eg-q { font-size: 14px; line-height: 1.45; }
.eg-by { font-size: 12.5px; color: var(--ink-3); }
.brief-top { display: flex; align-items: center; justify-content: space-between; margin: -8px -10px -14px 0; }
.eyebrow { font-size: 13px; color: var(--ink-3); }
.brief-title { font-size: 33px; line-height: 1.15; font-weight: 600; letter-spacing: -.022em; text-wrap: balance; }
.brief-text { font-size: 16.5px; line-height: 1.62; color: var(--ink-2); text-wrap: pretty; white-space: pre-line; }
.brief-text.is-ph { color: var(--ink-3); }
.sec { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sec-h { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.pr { font-size: 13px; color: var(--ink-3); }
.sum { font-size: 15px; color: var(--ink-2); }

/* The bar above the graph. */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar { flex: none; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.crumb { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 6px; border-radius: 5px; font-size: 13px; color: var(--ink-3); text-decoration: none; white-space: nowrap; transition: color .2s ease, background .2s ease; }
a.crumb:hover { color: var(--ink); background: rgba(40, 40, 50, .05); }
.crumb.is-last { flex: 0 1 auto; min-width: 0; display: block; line-height: 30px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 500; }
.sep { flex: none; font-size: 14px; color: var(--line-2); }
.tools { flex: none; display: flex; align-items: center; gap: 8px; }
.search { position: relative; display: flex; align-items: center; height: 32px; color: var(--ink-3); }
.search .ic { position: absolute; left: 9px; pointer-events: none;  width: 14px;  height: 14px; }
.search input { width: 168px; height: 30px; padding: 0 10px 0 30px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); font-size: 13px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; transition: width .35s var(--ease), border-color .2s ease, box-shadow .2s ease; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { width: 216px; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 12%, transparent); }
.chipwrap { position: relative; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.chip:hover { border-color: var(--edge); color: var(--ink); }
.chip.is-set { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 7%, var(--sheet)); color: var(--accent); font-weight: 500; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 208px; max-height: 320px; overflow-y: auto; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); box-shadow: 0 18px 40px -20px rgba(40, 40, 50, .32); animation: pop .2s var(--ease) both; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 0 8px; border: 0; border-radius: 5px; background: none; font-size: 13px; text-align: left; white-space: nowrap; }
.menu button:hover { background: rgba(40, 40, 50, .05); }
.menu button.is-on { color: var(--accent); font-weight: 500; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }


/* The stage: on the home page and the brief, one list of nodes; in the workspace, a board the camera moves across. */
html.graph-swipes, html.graph-swipes body { overscroll-behavior-x: none; }
.stage { flex: 1; min-height: 0; position: relative; overflow: hidden; overscroll-behavior: none; container-type: inline-size; }
.board { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.cap { position: absolute; z-index: 6; height: 22px; font-size: 13px; line-height: 22px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap.focus { left: calc(50% - var(--nw) / 2); top: 14px; width: var(--nw); }
.hint { font-size: 14px; line-height: 1.5; color: var(--ink-3); text-align: center; text-wrap: pretty; }
.stage:not(.is-graph) { display: flex; flex-direction: column; overflow-y: auto; padding: var(--half-top) var(--half-pad) 32px; }
.stage:not(.is-graph) .cap.focus { position: static; flex: none; width: min(var(--col), 100%); height: 30px; margin: 0 auto 12px; line-height: 30px; }
.stage:not(.is-graph) .board, .stage:not(.is-graph) .lane, .stage:not(.is-graph) .lane-view { display: contents; }
.stage:not(.is-graph) :is(.lane-head, .lane-fade, .more, .lane-tech, .lane-impl, .stub, .step-link, .wires, .focus-nav, .compact-edges) { display: none; }
.stage:not(.is-graph) .col.focus { position: relative; inset: auto; width: min(var(--col), 100%); margin: 0 auto; }
.stage:not(.is-graph) .list { display: flex; flex-direction: column; gap: 12px; transform: none !important; }
.stage:not(.is-graph) .hint { width: min(var(--col), 100%); margin: 14px auto 0; }

/* Sections: a bordered frame each, numbered, with the list inside scrolling under faded edges. */
.is-graph .board { will-change: transform; }
.lane { --lane: #F2F2EE; position: absolute; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--lane); transition: opacity .45s ease, border-color .3s ease, box-shadow .3s ease, top .6s var(--ease), height .6s var(--ease); }
.lane.is-current { --lane: #F0F0EB; border-color: var(--line-2); box-shadow: 0 22px 44px -36px rgba(40, 40, 50, .45); }
.lane.is-aside { opacity: .5; }
.is-graph.has-panel .lane-tech { opacity: .3; }
.lane-head { flex: none; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 9px; border-bottom: 1px solid var(--line); }
.lane-step { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 28px; padding: 0 11px 0 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--sheet); color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.lane-step .ic { width: 14px; height: 14px; }
.lane-step-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in oklab, var(--ink) 8%, var(--sheet)); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .2s ease, color .2s ease; }
.lane-step[aria-current] { border-color: color-mix(in oklab, var(--accent) 45%, var(--line-2)); background: color-mix(in oklab, var(--accent) 6%, var(--sheet)); color: var(--accent); font-weight: 600; }
.lane-step[aria-current] .lane-step-n { background: var(--accent); color: #fff; }
a.lane-step[href]:hover { border-color: var(--accent); color: var(--accent); }
a.lane-step[href]:hover .lane-step-n { background: color-mix(in oklab, var(--accent) 14%, var(--sheet)); }
.lane-count { min-width: 0; margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane-view { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 0 0 9px 9px; }
.lane .col { position: absolute; left: 14px; right: 14px; top: 0; }
.lane .list { display: flex; flex-direction: column; gap: 12px; transition: transform .6s var(--ease); }
.is-scrolling .lane .list { transition: none; }
.lane .list.is-new > * { animation: rise .5s var(--ease) both; }
.lane .list.is-new > :nth-child(2) { animation-delay: 45ms; }
.lane .list.is-new > :nth-child(3) { animation-delay: 90ms; }
.lane .list.is-new > :nth-child(4) { animation-delay: 135ms; }
.lane .list.is-new > :nth-child(n + 5) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.lane-fade { position: absolute; left: 0; right: 0; z-index: 2; height: 76px; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.lane-fade.t { top: 0; background: linear-gradient(to bottom, var(--lane) 14%, color-mix(in oklab, var(--lane) 0%, transparent)); }
.lane-fade.b { bottom: 0; background: linear-gradient(to top, var(--lane) 14%, color-mix(in oklab, var(--lane) 0%, transparent)); }
.lane-fade.is-on { opacity: 1; }
.more { position: absolute; left: 50%; z-index: 3; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--sheet); color: var(--ink-2); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 6px 14px -10px rgba(40, 40, 50, .45); transition: border-color .2s ease, color .2s ease; }
.more.t { top: 8px; }
.more.b { bottom: 8px; }
.more:hover { border-color: var(--accent); color: var(--accent); }

/* The steps between sections, at the height of their numbers. Moving between them runs a line along the link. */
.step-link { position: absolute; height: 0; border-top: 1.5px dashed var(--line-2); pointer-events: none; }
.step-link::after { content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.step-link.is-done { border-top-style: solid; border-top-color: color-mix(in oklab, var(--accent) 35%, var(--line-2)); }
.step-link.is-travelling::after { animation: flow-travel .85s var(--ease) both; }
.step-link.is-back::after { transform-origin: right; }
.step-chev { position: absolute; left: 50%; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); color: var(--ink-3); transform: translate(-50%, -50%); }
.step-chev .ic { width: 12px; height: 12px; }
.step-link.is-done .step-chev { border-color: color-mix(in oklab, var(--accent) 45%, var(--line-2)); color: var(--accent); }
@keyframes flow-travel { 0% { opacity: 1; transform: scaleX(0); } 65% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }

/* The product the first section hangs from. */

.focus-nav { position: absolute; z-index: 7; display: flex; align-items: center; gap: 4px; padding: 3px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 8px 24px -18px rgba(40, 40, 50, .3); }
.focus-pick { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--ink-3); }
.focus-pick select { width: 100%; border: 0; padding: 2px 16px 2px 0; background: transparent; font-size: 13px; color: var(--ink); text-overflow: ellipsis; cursor: pointer; }
/* The sections in the bar. The shaded window covers the two on screen and slides along with the board. */
.sections { position: relative; display: flex; align-items: center; height: 34px; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--sheet); }
.sections[hidden] { display: none; }
.sw-window { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 999px; background: color-mix(in oklab, var(--ink) 6%, var(--sheet)); pointer-events: none; }
.sections.is-ready .sw-window { transition: left .55s var(--ease), width .55s var(--ease); }
.sw { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: color .2s ease; }
.sw-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in oklab, var(--ink) 8%, var(--sheet)); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .3s ease, color .3s ease; }
.sw.is-view { color: var(--ink); }
.sw[aria-current] .sw-n { background: var(--accent); color: #fff; }
a.sw[href]:hover { color: var(--accent); }
a.sw[href]:hover .sw-n { background: color-mix(in oklab, var(--accent) 16%, var(--sheet)); }
a.sw[aria-current][href]:hover .sw-n { background: var(--accent); }
.sw[aria-disabled="true"] { opacity: .45; }
.sw-sep { position: relative; flex: none; width: 8px; height: 1.5px; margin: 0 1px; background: var(--line-2); }
.sw-all { display: inline-flex; align-items: center; gap: 5px; height: 28px; margin-left: 4px; padding: 0 10px 0 9px; border: 0; border-left: 1px solid var(--line); border-radius: 0 999px 999px 0; background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 500; transition: color .2s ease; }
.sw-all .ic { width: 14px; height: 14px; }
.sw-all:hover, .sw-all[aria-pressed="true"] { color: var(--accent); }
.compact-edges { display: none; }

/* Nodes. */
.node { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 100%; height: 76px; flex: none; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--nr); background: var(--sheet); color: var(--ink); text-align: left; text-decoration: none; transition: opacity .5s ease, transform .5s var(--ease), filter .5s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease; }
.node:hover { border-color: var(--edge); background: #fff; }
.nt { display: block; font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.008em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node.rich { justify-content: flex-start; height: auto; padding: 10px 14px; }
.node.rich .nt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: 15.5px; line-height: 21px; }
.node.rich .n-foot { margin-top: 2px; }
.node.tall .nt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: 15px; line-height: 20px; }
.n-top { display: flex; align-items: center; gap: 4px; min-width: 0; height: 18px; }
.lbl { display: inline-flex; align-items: center; flex: none; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; }
.n-kind { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.n-stamp { min-width: 0; margin-left: auto; padding-left: 8px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd { display: block; font-size: 12.5px; line-height: 17px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-foot { display: flex; align-items: center; gap: 10px; height: 22px; margin-top: auto; }
.nstats { display: flex; align-items: center; gap: 11px; min-width: 0; overflow: hidden; }
.nstat { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nstat .ic { width: 13px; height: 13px; }
.nstat.ok { color: var(--ok); }
.nstat.bad { color: var(--bad); }
.nstat.wait { color: var(--accent); }
.avs { display: inline-flex; flex: none; margin-left: auto; padding-left: 6px; }
.av { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; margin-left: -6px; border: 1.5px solid var(--sheet); border-radius: 50%; background: #E4E4DF; color: var(--ink-2); font-size: 9px; font-weight: 600; letter-spacing: .01em; }
.av.plus { background: color-mix(in oklab, var(--ink) 9%, var(--sheet)); color: var(--ink-2); }
.av.lg { width: 28px; height: 28px; margin-left: 0; border: 0; font-size: 11px; }
.av.sm { width: 18px; height: 18px; margin-left: 0; border: 0; font-size: 8px; }
.node.is-prop { border-style: dashed; background: color-mix(in oklab, var(--sheet) 55%, transparent); }
.node.is-ref { background: transparent; }
.node.is-ref .nt { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.node.is-focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 34px -26px color-mix(in oklab, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--accent) 4%, var(--sheet)); }
.node.is-focus::before, .node.is-focus::after, .kidnode::before { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1.5px var(--edge); }
.node.is-focus::before, .kidnode::before { left: -5px; }
/* Nothing comes into a product requirement, so it has no dot on its left. */
.lane-req .node.is-focus::before { content: none; }
.node.is-focus::after { right: -5px; }
.node.is-dim { opacity: .62; filter: saturate(.35); transform: scale(.975); }
.node.is-dim2 { opacity: .42; filter: saturate(.2); transform: scale(.96); }
.node.is-dim3 { opacity: .28; filter: saturate(.1); transform: scale(.945); }
.node.is-dim:hover, .node.is-dim2:hover, .node.is-dim3:hover { opacity: .95; filter: none; }
.node.add { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; height: 52px; padding: 0 12px; border-style: dashed; background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.node.add:hover { color: var(--ink); background: rgba(255, 255, 255, .5); }
.port { position: absolute; right: -14px; top: 50%; z-index: 1; display: inline-flex; align-items: center; height: 24px; margin-top: -12px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink-2); transition: border-color .25s ease, color .25s ease, background .25s ease, transform .3s var(--ease); }
.port .ic { width: 12px; height: 12px; }
.node:hover .port { border-color: var(--accent); background: var(--sheet); color: var(--accent); transform: translateX(3px); }
.addlink { display: inline-flex; align-items: center; gap: 6px; height: 32px; flex: none; padding: 0 8px; border: 0; border-radius: 6px; background: none; font-size: 13px; color: var(--ink-3); transition: color .2s ease, background .2s ease; }
.addlink:hover { color: var(--ink); background: rgba(40, 40, 50, .05); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 88px; flex: none; padding: 0 20px; border: 1px dashed var(--line-2); border-radius: var(--nr); font-size: 14px; line-height: 1.45; color: var(--ink-3); text-align: center; text-wrap: balance; }
.empty b { font-weight: 600; color: var(--ink-2); }

/* Code linked to a technical requirement, as a card like the nodes: the function and where it is, its contract in a
   line, the checks the requirement is about with whether a test covers each, and how its checks stand. */
.codenode { gap: 6px; }
.codenode.is-open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 34px -26px color-mix(in oklab, var(--accent) 60%, transparent); }
.codenode .n-top { gap: 6px; }
.codenode .n-top > .ic { width: 13px; height: 13px; color: var(--ink-3); }
.code-where { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11.5px/18px var(--mono); color: var(--ink-3); }
.code-lines, .code-now { flex: none; font: 500 11.5px/18px var(--mono); color: var(--ink-3); }
.code-now { color: var(--ink-2); }
.code-now::before { content: "→ "; color: var(--ink-3); }
.code-state { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.codenode .code-where { flex: 0 1 auto; }
.cr-change { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px 8px; border: 1px solid color-mix(in oklab, var(--bad) 30%, var(--line)); border-radius: 6px; background: color-mix(in oklab, var(--bad-bg) 55%, var(--sheet)); }
.cr-change-h { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 16px; font-weight: 600; color: var(--bad); }
.cr-change-h .ic { width: 11px; height: 11px; }
.cr-change-t { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 12.5px; line-height: 17px; color: var(--ink); }
.code-state .ic { width: 12px; height: 12px; }
.code-state.is-ok { color: var(--ok); }
.code-state.is-bad { color: var(--bad); }
.codenode .n-foot .avs { margin-left: 0; }
/* The counts and the stamp share a line when they fit; the stamp moves down rather than cut a count short. */
.codenode .n-foot { flex-wrap: wrap; height: auto; min-height: 22px; row-gap: 4px; }
.codenode .n-foot .nstats { flex: none; overflow: visible; }
.node.rich .code-name { font-family: var(--mono); font-size: 15px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.node .code-facts { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: 13px; line-height: 18px; }
.code-type { padding: 0 3px; border-radius: 3px; background: #F1F1EC; font: 12px/18px var(--mono); color: var(--ink); }
.code-dot { color: var(--ink-3); }
.cr-box { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; padding: 7px 10px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.cr-list { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; align-items: baseline; gap: 4px 8px; }
.cr { display: contents; }
.cr-lead { font-size: 12px; line-height: 18px; color: var(--ink-2); white-space: nowrap; }
.cr-cond, .cr-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px/18px var(--mono); color: var(--ink); }
.cr-text { font-family: inherit; }
.cr-test { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.cr-test .ic { width: 12px; height: 12px; }
.cr-test.is-ok { color: var(--ok); }
.cr-test.is-bad { color: var(--bad); }
.cr-test.is-none { color: var(--ink-3); }
.cr-more { font-size: 11.5px; line-height: 16px; color: var(--ink-3); }
.codenode .code-body { margin: 2px 0 0; padding: 6px 0; border: 1px solid var(--line); border-radius: 6px; background: #FBFBF8; font: 11.5px/17px var(--mono); white-space: pre; overflow: hidden; }
.code-line { display: flex; }
.code-n { flex: none; width: 38px; padding-right: 10px; color: var(--ink-3); text-align: right; opacity: .75; user-select: none; }
.code-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.code-more { display: block; padding-left: 48px; color: var(--ink-3); font-family: Inter, sans-serif; font-size: 11.5px; }

/* Edges, in board pixels, and what sits on them. */
.wires { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.edge { position: absolute; inset: 0; pointer-events: none; }
.edge:hover, .edge:focus-within, .edge.is-open { z-index: 9; }
.edge > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.edge { transition: opacity .25s ease, visibility 0s; }
/* A new edge: its pill arrives first, then the line grows in from both ends and meets the pill at its sides. The line
   is shown through a clip of two strips, one from each end to the pill's near side (--x0 to --pl, --pr to --x1, in
   board pixels, set as the edge is drawn), so none of it is ever under the pill while the pill is fading in. */
.edge { --x0: 0px; --x1: 0px; --pl: 0px; --pr: 0px; }
.edge.is-new > svg { animation: into-pill .4s var(--ease) .16s both; }
/* On the pill's inside, so the pill's own box, which the strips are measured from, is never scaled. */
.edge.is-new .pill-in { animation: pill-arrive .2s ease both; }
@keyframes into-pill {
  from { clip-path: polygon(var(--x0) -99999px, var(--x0) -99999px, var(--x0) 99999px, var(--x1) 99999px, var(--x1) -99999px, var(--x1) -99999px, var(--x1) 99999px, var(--x0) 99999px); }
  to { clip-path: polygon(var(--x0) -99999px, var(--pl) -99999px, var(--pl) 99999px, var(--pr) 99999px, var(--pr) -99999px, var(--x1) -99999px, var(--x1) 99999px, var(--x0) 99999px); }
}
@keyframes pill-arrive { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
.edge.is-off, .edge.is-leaving { opacity: 0 !important; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.edge.is-off :is(.pill, .pop), .edge.is-leaving :is(.pill, .pop) { visibility: hidden !important; }
.ln { stroke: var(--edge); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke .25s ease, stroke-width .25s ease; }
.edge.is-path .ln { stroke: #8C8D89; stroke-width: 1.75; }
.edge.is-quiet { opacity: .4; }
.edge.is-quiet:is(:hover, :focus-within, .is-open) { opacity: 1; }
.edge.is-prop .ln { stroke: var(--line-2); stroke-dasharray: 5 6; }
.edge.is-path.is-prop .ln { stroke: var(--edge); }
.edge.is-ref .ln { stroke: var(--line-2); stroke-dasharray: 1.5 7; stroke-linecap: round; }
.edge.to-code.is-ok .ln { stroke: color-mix(in oklab, var(--ok) 55%, var(--edge)); }
.edge.to-code.is-bad .ln { stroke: color-mix(in oklab, var(--bad) 70%, var(--edge)); }
.edge:hover .ln, .edge:focus-within .ln, .edge.is-open .ln { stroke: var(--accent); stroke-width: 2; }
.is-graph.has-panel .edge.fan { opacity: .3; }
.pill { position: absolute; z-index: 2; display: inline-flex; align-items: center; height: 32px; padding: 0; border: 0; background: none; transform: translate(-50%, -50%); pointer-events: auto; }
.pill-in { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; height: 25px; padding: 0 7px 0 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: border-color .25s ease, color .25s ease, background .25s ease; }
.pill-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.edge.trunk .pill { transform: translate(0, -50%); }
.pill:focus-visible { outline: none; }
.pill:focus-visible .pill-in { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.sw:focus-visible, .sw-all:focus-visible { outline-offset: -2px; border-radius: 999px; }
.edge.trunk .pill-in { gap: 6px; max-width: 206px; height: 27px; padding: 0 10px 0 4px; font-weight: 600; }
.edge.is-ref .pill-t { text-decoration: line-through; color: var(--ink-3); }
.edge.is-prop .pill-in { border-style: dashed; border-color: var(--edge); }
.edge:hover .pill-in, .edge:focus-within .pill-in, .edge.is-open .pill-in { border-color: var(--accent); background: var(--sheet); }
.edge .pill-in > .ic, .compact-pill .pill-in > .ic { width: 12px; height: 12px; color: var(--ink-3); }
.edge-status { display: inline-flex; flex: none; color: var(--ink-3); }
.edge .pill-in > .edge-status > .ic, .compact-pill .pill-in > .edge-status > .ic { width: 14px; height: 14px; color: currentColor; }
.edge:hover .edge-status, .edge:focus-within .edge-status { color: var(--accent); }
.edge-avatars { display: inline-flex; align-items: center; flex: none; }
.edge-avatars .av + .av { margin-left: -4px; box-shadow: 0 0 0 1px var(--sheet); }
/* A decided edge: the decider's avatar, their name sliding out on hover, then the lock. */
.pill-name { max-width: 0; overflow: hidden; font-size: 12px; color: var(--ink-2); opacity: 0; transition: max-width .3s var(--ease), opacity .2s ease, margin .3s var(--ease); }
.edge:hover .pill-name, .edge:focus-within .pill-name, .edge.is-open .pill-name, .compact-pill:hover .pill-name { max-width: 140px; margin-inline: 2px 1px; opacity: 1; }
.check-pill .pill-in { gap: 5px; padding: 0 10px 0 7px; }
.check-pill .pill-in > .ic { color: currentColor; }
.check-pill.is-ok .pill-in { border-color: color-mix(in oklab, var(--ok) 40%, var(--line-2)); background: color-mix(in oklab, var(--ok-bg) 55%, var(--paper)); color: var(--ok); }
.check-pill.is-bad .pill-in { border-color: color-mix(in oklab, var(--bad) 45%, var(--line-2)); background: color-mix(in oklab, var(--bad-bg) 60%, var(--paper)); color: var(--bad); }
.check-pill.is-none .pill-in { border-style: dashed; color: var(--ink-3); }
a.pill { color: inherit; text-decoration: none; }
.edge.code-stub .pill { transform: translate(0, -50%); }
.code-pill .pill-in { gap: 5px; padding: 0 9px 0 7px; font-variant-numeric: tabular-nums; }
/* A check's parts in its popover: what the code does, then its tests. */
.pop-sub { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pop-sub .ic { width: 13px; height: 13px; color: var(--ink-3); }
.pop-sub .tag { margin-left: auto; }
.chg, .cov { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.chg li { display: grid; grid-template-columns: 14px 1fr; gap: 6px; font-size: 13.5px; line-height: 1.45; text-wrap: pretty; }
.chg-k { font: 600 13px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: center; color: var(--ink-3); }
.chg .is-added .chg-k { color: var(--ok); }
.chg-b { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.chg .is-long:not(.is-full) .chg-text { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.chg-more { padding: 0; border: 0; background: none; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.chg-more:hover, .chg-more:focus-visible { color: var(--ink); text-decoration: underline; }
.chg .is-removed .chg-k { color: var(--bad); }
.fr-list { display: grid; grid-template-columns: 13px max-content minmax(0, 1fr); align-items: baseline; gap: 5px 7px; margin: 0; padding: 0; list-style: none; }
.fr { display: contents; }
.fr > .ic, .fr-rest > .ic { width: 12px; height: 12px; align-self: center; color: var(--ok); }
.fr-lead { font-size: 12.5px; line-height: 19px; color: var(--ink-2); white-space: nowrap; }
.fr-cond { min-width: 0; overflow-wrap: anywhere; white-space: normal; justify-self: start; max-width: 100%; padding: 0 5px; border-radius: 4px;
  font: 12px/19px var(--mono); color: color-mix(in oklab, var(--ok) 80%, var(--ink)); background: color-mix(in oklab, var(--ok) 10%, transparent); }
.fr-k { align-self: center; font: 600 13px/19px var(--mono); text-align: center; color: var(--bad); }
.fr-list.is-changed { align-items: start; }
.fr-list.is-changed .fr-k { align-self: start; }
.fr-list.is-changed .fr-cond { grid-column: 2 / 4; justify-self: stretch; margin-bottom: 4px; padding: 3px 7px; }
.fr-list.is-changed .fr-cond { white-space: pre-wrap; overflow-wrap: anywhere; color: color-mix(in oklab, var(--bad) 80%, var(--ink)); background: color-mix(in oklab, var(--bad) 9%, transparent); }
.fr.is-removed .fr-cond { text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--bad) 50%, transparent); }
.fr.is-more .fr-lead { grid-column: 2 / 4; color: var(--ink-3); }
.fr-rest { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12.5px; color: var(--ink-2); }
.chg-notes summary { cursor: pointer; font-size: 12.5px; color: var(--ink-3); }
.chg-code { padding: 0 3px; border-radius: 3px; background: #F3F3EF; font: 12px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.chg-notes .chg { margin-top: 7px; }
.chg-notes .chg li { font-size: 12.5px; color: var(--ink-2); }
.cov li { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cov-by { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.cov-by.is-none { color: var(--bad); }
.watch-edit { align-self: flex-start; }
.run-link { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.run-link:hover { color: var(--ink); }
.aff { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.aff a { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: inherit; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.aff a:hover, .aff a:focus-visible { border-color: var(--line-2); background: var(--paper); }
.aff-t { font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.aff-why { overflow: hidden; font-size: 12px; line-height: 1.4; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.pop { position: absolute; z-index: 10; width: 320px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; padding: 14px 14px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); box-shadow: 0 22px 48px -22px rgba(40, 40, 50, .4); pointer-events: auto; opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.985); transition: opacity .18s ease, transform .24s var(--ease), visibility 0s linear .25s; }
.pop.up, .tip { transform: translateY(4px) scale(.985); }
/* A decision edge's popover shows on hover and on keyboard focus; selected with the pointer, the record shows instead. */
.edge:hover .pop, .edge:not(.in, .fan):focus-within .pop, .edge:has(:focus-visible) .pop, .edge.is-open .pop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .24s var(--ease), visibility 0s; }
.edge.trunk.is-open .tip, .edge.trunk:focus-within .tip { opacity: 0; visibility: hidden; }

/* A form that takes a node's place while someone writes a proposal. */
.composer { display: flex; flex-direction: column; gap: 8px; width: 100%; height: 212px; flex: none; padding: 12px; border: 1px solid var(--accent); border-radius: var(--nr); background: var(--sheet); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 10%, transparent); }
.composer-h { font-size: 13px; color: var(--ink-3); }
.composer input, .composer textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--paper); font-size: 14.5px; outline: none; resize: none; }
.composer input { height: 32px; font-weight: 500; }
.composer textarea { flex: 1; min-height: 0; font-size: 14px; }
.composer input:focus, .composer textarea:focus { border-color: var(--accent); }
.composer .row { display: flex; align-items: center; gap: 8px; }
.composer .error { font-size: 12.5px; }
.composer .note { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.pop-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { display: inline-flex; align-items: center; height: 21px; flex: none; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag.acc { background: color-mix(in oklab, var(--accent) 13%, var(--sheet)); color: var(--accent); }
.tag.ref { background: color-mix(in oklab, var(--ink) 9%, var(--sheet)); color: var(--ink-2); }
.tag.wait { border: 1px dashed var(--line-2); font-weight: 500; color: var(--ink-2); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.pop-at { font-size: 12.5px; color: var(--ink-3); }
.pop-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 600; line-height: 20px; }
.pop-line .ic { color: var(--ink-3); }
.pop-why { font-size: 14.5px; line-height: 1.5; text-wrap: pretty; white-space: pre-line; }
.pop-by { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pop-src { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.pop-foot { padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.pop-act, .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.why textarea, .why input, .field input, .field textarea, .field select { display: block; width: 100%; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--paper); font-size: 14px; line-height: 1.45; resize: vertical; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.why textarea { min-height: 56px; resize: none; }
.why input { height: 30px; padding: 0 8px; border-radius: 4px; font-size: 13.5px; }
.why textarea::placeholder, .why input::placeholder { color: var(--ink-3); }
.why textarea:focus, .why input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 12%, transparent); }
.error { font-size: 13px; line-height: 1.45; color: var(--bad); }
.btn.remove-node { color: var(--bad); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s ease, border-color .2s ease, filter .2s ease; }
.btn:hover { border-color: var(--edge); }
.btn.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { height: 26px; padding: 0 8px; border-radius: 4px; font-size: 12.5px; }
.btn.quiet { border-color: transparent; background: none; color: var(--ink-2); }
.btn.quiet:hover { background: rgba(40, 40, 50, .05); color: var(--ink); }
.tbtn { height: 24px; margin-left: auto; padding: 0 6px; border: 0; border-radius: 4px; background: none; font-size: 12.5px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.tbtn:hover { background: color-mix(in oklab, var(--accent) 9%, transparent); }
a.tbtn { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
button.oc-title { padding: 0; border: 0; background: none; text-align: left; color: inherit; }
button.oc-title:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sum a { color: var(--accent); text-decoration: none; }
.sum a:hover { text-decoration: underline; }
.page > .empty { height: auto; padding: 28px 20px; }

/* Every option that was considered, opened from the edge. */
.scrim { position: absolute; inset: 0; z-index: 11; border: 0; background: transparent; pointer-events: auto; cursor: default; }
.opanel { position: absolute; z-index: 12; top: 0; left: 0; width: 420px; max-height: 70vh; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 10px; background: var(--sheet); box-shadow: 0 34px 80px -34px rgba(40, 40, 50, .5); pointer-events: auto; animation: panelIn .3s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateX(-8px) scale(.985); } to { opacity: 1; transform: none; } }
.op-h { display: flex; align-items: center; gap: 8px; flex: none; padding: 10px 8px 8px 12px; }
.op-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.op-t { font-size: 15px; line-height: 21px; font-weight: 600; }
.op-s { font-size: 12.5px; line-height: 17px; color: var(--ink-3); }
.op-list { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 2px 12px 4px; overflow-y: auto; }
.ocard { display: flex; flex-direction: column; gap: 6px; flex: none; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); }
.ocard.is-acc { border-color: color-mix(in oklab, var(--accent) 55%, var(--line-2)); background: color-mix(in oklab, var(--accent) 5%, var(--sheet)); }
.ocard.is-prop { border-style: dashed; background: transparent; }
.ocard.is-ref { background: transparent; }
.oc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oc-title { min-width: 0; font-size: 15px; line-height: 21px; font-weight: 600; text-wrap: pretty; }
.ocard.is-ref .oc-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.oc-why { font-size: 14px; line-height: 1.5; text-wrap: pretty; white-space: pre-line; }
.oc-by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.oc-src { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; font-size: 12.5px; color: var(--ink-3); }
.oc-now { flex: none; font-weight: 500; color: var(--ink-2); }
.oc-act { display: flex; align-items: center; gap: 6px; }
.oc-act .why { flex: 1; min-width: 0; }
.op-f { flex: none; padding: 4px 12px 12px; }
.op-f .composer { height: auto; }
.op-f .composer textarea { min-height: 60px; }

/* A node's whole record: a card that slides in from the right over the graph, drawn like the nodes and sections.
   Out of view it waits past the right edge, so the page clips it there rather than letting the app scroll to it. */
.content { overflow: clip; }
.drawer { position: absolute; top: 68px; right: 12px; bottom: 12px; z-index: 20; width: 420px; max-width: calc(100% - 24px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--sheet); box-shadow: 0 34px 80px -34px rgba(40, 40, 50, .5), 0 2px 6px -2px rgba(40, 40, 50, .08); transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.drawer-pages { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-in { flex: 1; overflow-y: auto; padding: 22px 28px 32px; display: flex; flex-direction: column; gap: 20px; }
/* Turning the page: the page leaving sits over the one arriving until it has slid away. */
.drawer-in.is-leaving { position: absolute; inset: 0; z-index: 1; background: var(--sheet); pointer-events: none; }
.rec-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--sheet); }
.rec-close:hover { background: color-mix(in oklab, var(--ink) 6%, var(--sheet)); }
.rec-top { margin: -4px 0 -12px; padding-right: 32px; }
.rec-title { font-size: 25px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.rec-detail { font-size: 15px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; text-wrap: pretty; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.chain a { text-decoration: none; }
.chain a:hover { color: var(--ink); text-decoration: underline; }
.dcard { align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); }
.hist { align-self: stretch; display: flex; flex-direction: column; gap: 10px; }
.hist li { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.hist b { font-weight: 600; color: var(--ink); }
.rec-code { align-self: stretch; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); }
.rec-code li + li { border-top: 1px solid var(--line); }
.rec-code a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "ic name state" ". at at"; align-items: center; gap: 2px 8px; padding: 9px 12px; color: inherit; text-decoration: none; }
.rec-code a:hover { background: rgba(40, 40, 50, .04); }
.rec-code a > .ic { grid-area: ic; width: 14px; height: 14px; color: var(--ink-3); }
.rec-code-name { grid-area: name; min-width: 0; overflow: hidden; font-family: var(--mono); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rec-code-at { grid-area: at; min-width: 0; overflow: hidden; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; }
.rec-code-state { grid-area: state; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.rec-code-state .ic { width: 12px; height: 12px; }
.rec-code-state.is-ok { color: var(--ok); }
.rec-code-state.is-bad { color: var(--bad); }
.decide { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }

/* Linked code's record: wider, for its lines. Its contract part by part, each check with its tests, and the lines
   kept with the link at the foot, where pointing at a check lights its line. */
@media (min-width: 901px) { .drawer.is-code { width: clamp(420px, 44vw, 640px); } }
.drawer-in.is-code { padding-bottom: 0; gap: 18px; }
.code-title { font-family: var(--mono); font-size: 22px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.drawer-in.is-code .chain { flex-wrap: nowrap; }
.drawer-in.is-code .chain > span { flex: none; }
.drawer-in.is-code .chain > a, .code-at-path, .code-at-repo, .code-at-now { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-at { margin-top: -10px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.code-at-row { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; }
.code-at-path { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.code-at-loc { flex: none; }
.code-at-now { color: var(--ink-2); }
.code-results, .contract-summary { gap: 9px; }
.contract-summary { display: flex; flex-direction: column; }
.code-results > .pop-sub:first-child, .code-results > .contract-summary:first-child > .pop-sub { padding-top: 0; border-top: 0; }
.c-def-h { margin-top: 6px; }
.c-def { margin-top: -6px; }
.csec { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.csec-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.csec-n { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 7%, var(--sheet)); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.c-params { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; margin: 0; font: 12.5px/1.5 var(--mono); }
.c-params dt { font-weight: 600; }
.c-params dd { margin: 0; min-width: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.c-type { align-self: flex-start; padding: 1px 5px; border-radius: 4px; background: #F1F1EC; font: 12.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.c-list { display: flex; flex-direction: column; gap: 3px; padding-left: 18px; list-style: disc; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.c-list code, .cc-branch code { padding: 0 3px; border-radius: 3px; background: #F1F1EC; font: 12px/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.c-none { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.c-checks { display: flex; flex-direction: column; gap: 8px; }
.cc { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); transition: border-color .15s ease, background .15s ease; }
.cc.has-line:hover, .cc:focus-within, .cc.is-lit { border-color: color-mix(in oklab, var(--accent) 48%, var(--line-2)); background: color-mix(in oklab, var(--accent) 5%, var(--sheet)); }
.cc-n { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--sheet); font-size: 11px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cc.has-line .cc-n { border-color: color-mix(in oklab, var(--accent) 45%, var(--line-2)); color: var(--accent); }
.c-checks.is-extra .cc-n { border-style: dashed; }
.cc-b { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.cc-lead { font-size: 13.5px; font-weight: 600; }
.cc-tag { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ink) 6%, var(--sheet)); font-size: 11px; font-weight: 500; color: var(--ink-3); }
.cc-tag .ic { width: 11px; height: 11px; }
.cc-tag.is-change { background: var(--bad-bg); color: var(--bad); }
.cc-line { margin-left: auto; height: 20px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--sheet); font: 500 11px/1 var(--mono); color: var(--ink-3); transition: color .2s ease, border-color .2s ease; }
.cc-line:hover, .cc.is-lit .cc-line { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); color: var(--accent); }
pre.cc-cond { padding: 6px 9px; border-radius: 5px; background: #F3F3EE; font: 12px/1.6 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; }
.cc-text { font-size: 13.5px; line-height: 1.5; }
.cc-branch { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.cc-tests { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.45; }
.cc-tests > .ic { width: 13px; height: 13px; margin-top: 2px; }
.cc-tests ul { display: flex; flex-direction: column; gap: 3px; }
.cc-tests li { display: flex; align-items: flex-start; gap: 6px; }
.cc-tests li > .ic { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--ok); }
.cc-tests li > span { min-width: 0; overflow-wrap: anywhere; }
.cc-tests.is-ok { display: block; color: var(--ink-2); }
.cc-tests details { margin-top: 3px; }
.test-at { flex: none; margin-left: auto; padding-left: 8px; color: var(--ink-3); font: 500 11.5px/1.45 var(--mono); white-space: nowrap; }
a.test-at { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
a.test-at:hover { color: var(--ink); text-decoration-color: currentColor; }
.cc-include { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--ink-2); background: var(--sheet); font-size: 11px; line-height: 1.35; cursor: pointer; }
.cc-include input { margin: 0; accent-color: var(--accent); }
.cc-include:has(input:checked) { border-color: color-mix(in oklab, var(--accent) 42%, var(--line-2)); color: var(--ink); background: color-mix(in oklab, var(--accent) 6%, var(--sheet)); }
.cc-include:has(input:disabled) { opacity: .65; cursor: default; }
.cc-selectable:has(.cc-include input:checked) > .cc-n { background: color-mix(in oklab, var(--accent) 9%, var(--sheet)); }
.cov li > .test-at { margin-left: 0; padding-left: 0; }
.cc-tests details summary { cursor: pointer; padding-left: 19px; color: var(--ink-3); }
.cc-tests details[open] summary { margin-bottom: 3px; }
.cc-tests.is-bad { color: var(--bad); font-weight: 500; }
.cc-tests.is-none { color: var(--ink-3); }
.code-by { margin-top: 4px; }
.snip { position: sticky; bottom: 0; z-index: 1; display: flex; flex-direction: column; flex: none; margin: 0 -28px; border-top: 1px solid var(--line-2); background: #FBFBF8; box-shadow: 0 -18px 28px -22px rgba(40, 40, 50, .3); }
.snip-h { display: flex; align-items: center; gap: 7px; height: 34px; flex: none; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); background: var(--sheet); font-size: 12px; color: var(--ink-3); }
.snip-h > .ic { width: 13px; height: 13px; }
.snip-t1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snip-size { width: 26px; height: 26px; }
.snip-size .ic { width: 14px; height: 14px; }
.snip-body { position: relative; max-height: 27vh; overflow: auto; padding: 6px 0 12px; font: 11.5px/1.6 var(--mono); outline-offset: -2px; transition: max-height .3s var(--ease); }
.snip.is-tall .snip-body { max-height: 62vh; }
.snip-l { display: grid; grid-template-columns: 48px 22px minmax(0, 1fr); transition: background .15s ease; }
.snip-n { padding-right: 8px; color: var(--ink-3); text-align: right; opacity: .75; user-select: none; }
.snip-m { font-size: 10px; font-weight: 600; color: var(--accent); text-align: center; user-select: none; }
.snip-t { padding: 0 16px 0 2ch; text-indent: -2ch; color: var(--ink); font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.snip-l.is-lit { background: color-mix(in oklab, var(--accent) 12%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.snip-l.has-active-range { background: color-mix(in oklab, var(--accent) 4%, transparent); }
.src-keyword { color: #822d68; }
.src-type { color: #185d77; }
.src-string { color: #2b654b; }
.src-number, .src-literal { color: #925012; }
.src-call { color: #344e95; }
.src-comment { color: #626962; font-style: italic; }
.src-range { --mark-color: #aa741e; color: inherit; background: color-mix(in oklab, var(--mark-color) 12%, transparent); box-shadow: inset 0 -1px color-mix(in oklab, var(--mark-color) 55%, transparent); }
.src-range.is-called { --mark-color: #397c83; }
.src-range.is-statement { --mark-color: #7660a7; }
.src-range.is-active, .src-range:hover { background: color-mix(in oklab, var(--mark-color) 26%, transparent); box-shadow: inset 0 -2px var(--mark-color); }

/* Pages that are lists: proposals, activity, people, settings. */
.pagewrap { flex: 1; min-width: 0; overflow-y: auto; }
.page { max-width: 860px; margin: 0 auto; padding: 48px 40px 72px; display: flex; flex-direction: column; gap: 22px; }
.page-h { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.022em; }
.lede { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.group { display: flex; flex-direction: column; gap: 10px; }
.group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.group-h a { font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
/* Proposals: one line each, grouped by project and then by what they hang under. The bar, the project and the group
   stay at the top while the list scrolls under them. */
.page.pq-page { max-width: 1360px; padding: 0 28px 72px; gap: 0; }
.pq-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 16px 0 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.pq-bar .page-h { font-size: 21px; line-height: 28px; }
.pq-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pq-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-left: 10px; }
.pq-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.pq-filter select { height: 28px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--sheet); font-size: 13px; color: var(--ink); }
.pq-filter select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent); }
.pq-keys { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pq-keys > span { display: inline-flex; align-items: center; gap: 3px; }
.pq-keys kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--sheet); font: 500 11px/1 Inter, sans-serif; color: var(--ink-2); }
.pq-keys kbd:last-of-type { margin-right: 2px; }
.pq-ph { position: sticky; top: var(--pq-bar, 57px); z-index: 3; display: flex; align-items: center; gap: 10px; height: 44px; padding-top: 6px; background: var(--paper); font-size: 15px; font-weight: 600; }
.pq-n { font-size: 12.5px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pq-ph a { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.pq-ph a:hover { text-decoration: underline; }
.pq-groups { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.pq-group { border: 1px solid var(--line-2); border-radius: var(--nr); background: var(--sheet); }
.pq-gh { position: sticky; top: calc(var(--pq-bar, 57px) + 44px); z-index: 2; display: flex; align-items: center; gap: 6px; min-width: 0; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); border-radius: var(--nr) var(--nr) 0 0; background: var(--sheet); font-size: 12.5px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.pq-gk { flex: none; font-weight: 600; color: var(--ink-2); }
.pq-gp { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pq-gp a { font-weight: 500; color: var(--ink); text-decoration: none; }
.pq-gp a:hover { text-decoration: underline; }
.pq-gh .tag { height: 18px; font-size: 11.5px; }
.pq-gn { margin-left: auto; padding-left: 8px; font-variant-numeric: tabular-nums; }
.pq-row { position: relative; scroll-margin: calc(var(--pq-bar, 57px) + 80px) 0 12px; border-top: 1px solid var(--line); outline: none; }
.pq-row:first-child { border-top: 0; }
.pq-row:last-child, .pq-row:last-child .pq-line { border-radius: 0 0 var(--nr) var(--nr); }
.pq-line { display: grid; grid-template-columns: minmax(0, 1fr) 176px 132px 88px 124px 158px; align-items: center; gap: 12px; height: 38px; padding: 0 8px 0 12px; cursor: default; }
.pq-row:hover .pq-line { background: color-mix(in oklab, var(--ink) 2.5%, var(--sheet)); }
.pq-row::before { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.pq-row.is-current::before, .pq-row.is-changed::before { content: ""; }
.pq-row.is-current .pq-line { background: color-mix(in oklab, var(--accent) 4%, var(--sheet)); }
.pq-row.is-current:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pq-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 20px; }
.pq-toggle { padding: 0; border: 0; background: none; text-align: left; }
.pq-toggle:hover .pq-t { text-decoration: underline; text-underline-offset: 3px; }
.pq-t { font-weight: 600; color: var(--ink); }
.pq-d { margin-left: 10px; font-size: 13px; color: var(--ink-3); }
.pq-lbls { display: flex; gap: 4px; min-width: 0; overflow: hidden; mask-image: linear-gradient(to left, transparent, #000 14px); }
.pq-by, .pq-to { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.pq-by .avs { margin: 0; padding-left: 6px; }
.pq-by .av { width: 20px; height: 20px; font-size: 8.5px; }
.pq-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pq-to:not(:has(.av)) { color: var(--ink-3); }
.pq-to.is-me { font-weight: 600; color: var(--ink); }
.pq-when { overflow: hidden; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pq-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.pq-act .iconbtn { width: 26px; height: 26px; }
.pq-row:not(.is-current):not(:hover) .pq-act .btn { border-color: var(--line); color: var(--ink-2); }
.pq-row.is-done .pq-line { grid-template-columns: minmax(0, 1fr) auto; height: 32px; }
.pq-row.is-done .pq-text { display: flex; align-items: center; gap: 8px; }
.pq-row.is-done .tag { height: 18px; font-size: 11.5px; }
.pq-row.is-done .pq-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--ink-2); }
.pq-row.is-done .pq-d { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; }
/* Expanded proposal and its decision form. */
.pq-open { --pq-pad: clamp(14px, 2.5vw, 28px); background: var(--sheet); border-radius: inherit; text-align: left; }
.pq-panel-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 20px var(--pq-pad) 12px; scroll-margin-top: calc(var(--pq-bar, 57px) + 80px); }
.pq-panel-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.pq-kind { margin-bottom: 4px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.pq-panel-head h4 { margin: 0; font-size: clamp(18px, 2vw, 23px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pq-panel-actions, .pq-decision-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pq-panel-actions .btn .ic { width: 13px; height: 13px; }
.pq-collapse .ic { transform: rotate(180deg); }
.pq-panel-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .48fr); gap: 18px 32px; padding: 0 var(--pq-pad) 20px; }
.pq-detail { max-width: 72ch; color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.pq-panel-labels { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.pq-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: start; gap: 9px 14px; margin: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--nr); background: var(--paper); }
.pq-meta .pq-parent { grid-column: 1 / -1; }
.pq-meta dt { color: var(--ink-3); font-size: 12px; }
.pq-meta dd { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; margin: 2px 0 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.pq-meta a, .pq-code-text a, .pq-more-code { text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pq-meta a:hover, .pq-code-text a:hover, .pq-more-code:hover { text-decoration-color: currentColor; }
.pq-muted { color: var(--ink-3); font-size: 13px; }
.pq-evidence { margin: 0 var(--pq-pad); border-top: 1px solid var(--line); padding: 13px 0 16px; }
.pq-evidence-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; }
.pq-evidence-head h5, .pq-reason-label { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.pq-code-list { margin-top: 9px; border: 1px solid var(--line); border-radius: var(--nr); }
.pq-code-item { padding: 8px 11px; }
.pq-code-item + .pq-code-item { border-top: 1px solid var(--line); }
.pq-code-line { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: start; gap: 3px 8px; }
.pq-code-line > .ic { width: 14px; height: 14px; margin-top: 3px; color: var(--ink-3); }
.pq-code-text { display: flex; min-width: 0; flex-direction: column; gap: 1px; overflow-wrap: anywhere; }
.pq-code-text code { font: 500 12.5px/1.45 var(--mono); }
.pq-code-path { color: var(--ink-3); font-size: 12px; }
.pq-code-item .cr-list, .pq-code-coverage { margin: 5px 0 0 22px; }
.pq-code-coverage { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; color: var(--ink-3); font-size: 12px; }
.pq-more-code { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; }
.pq-more-code .ic { width: 13px; height: 13px; }
.pq-decide { display: grid; gap: 6px; padding: 14px var(--pq-pad) 16px; border-top: 1px solid var(--line); border-radius: inherit; border-top-left-radius: 0; border-top-right-radius: 0; background: var(--paper); }
.pq-decision-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 12px; }
.pq-decision-row .why input, .pq-decision-actions .btn { height: 36px; border-radius: 6px; }
.pq-decision-row .why input { background: var(--sheet); scroll-margin: calc(var(--pq-bar, 57px) + 80px) 0 16px; }
.pq-decision-actions .btn { padding-inline: 12px; }
.pq-notes { display: grid; gap: 4px; margin-bottom: 4px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.pq-notes li { display: flex; align-items: flex-start; gap: 6px; }
.pq-notes .ic { width: 13px; height: 13px; margin-top: 2px; color: var(--ink-3); }
.pq-row.is-changed::before { background: var(--bad); }
@media (max-width: 1280px) {
  .pq-line { grid-template-columns: minmax(0, 1fr) 150px 46px 88px 116px 158px; }
  .pq-by .pq-name { display: none; }
  .pq-ctx-lbls { display: inline-flex; }
}
@media (max-width: 1100px) {
  .pq-line { grid-template-columns: minmax(0, 1fr) 150px 46px 88px 20px 158px; gap: 10px; }
  .pq-to .pq-name { display: none; }
  .pq-keys { display: none; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .pq-line { grid-template-columns: minmax(0, 1fr) 46px 88px 20px 158px; }
  .pq-lbls { display: none; }
}
.members { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.member { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.member .pr { margin-left: auto; }
.ci-body, .ci-setup, .ci-connect { display: flex; flex-direction: column; gap: 10px; }
.ci-repo { align-items: flex-start; padding: 10px 0; }
.ci-repo-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: color-mix(in oklab, var(--ink) 6%, var(--sheet)); color: var(--ink-2); }
.ci-repo-text { display: flex; flex: 1 1 180px; flex-direction: column; gap: 2px; min-width: 0; }
.ci-repo-text .pop-src { overflow-wrap: anywhere; }
.ci-disconnect { margin-left: auto; flex: none; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); }
.card h2 { font-size: 16px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
pre { margin: 0; padding: 12px 14px; border-radius: 5px; background: color-mix(in oklab, var(--ink) 5%, var(--sheet)); font: 12.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 36px; height: 36px; border: 2px solid transparent; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--paper); }
.swatch.is-on { border-color: var(--ink); }
.seg { display: inline-flex; height: 30px; padding: 2px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); }
.seg button { height: 24px; padding: 0 9px; border: 0; border-radius: 4px; background: none; font-size: 13px; color: var(--ink-2); }
.seg button.is-on { background: color-mix(in oklab, var(--ink) 9%, transparent); color: var(--ink); font-weight: 500; }

/* Sign in. */
.signin { flex: 1; overflow-y: auto; display: grid; place-items: center; padding: 40px 20px; }
.signin-in { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 18px; }
.pick { display: flex; flex-direction: column; gap: 8px; }
.pick button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--nr); background: var(--sheet); text-align: left; transition: border-color .2s ease, background .2s ease; }
.pick button:hover { border-color: var(--edge); background: #fff; }
.pick-t { display: flex; flex-direction: column; font-size: 14.5px; font-weight: 600; }
.pick-t span { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }

.notice { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(560px, calc(100% - 32px)); padding: 8px 12px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.45; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s; }
.notice.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: opacity .25s ease, transform .3s var(--ease), visibility 0s; }

@media (max-width: 1320px) { :root { --nw: 320px; } .opanel { width: 380px; } }
@media (max-width: 1180px) { :root { --nw: 292px; } }
@media (max-width: 900px) {
  .app { height: auto; min-height: 100vh; flex-direction: column; overflow: visible; }
  .side { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .brand { margin-bottom: 0; }
  .snav, .sub { flex-direction: row; flex-wrap: wrap; margin: 0; padding-left: 0; }
  .slink, .sub .slink { width: auto; height: 34px; }
  .grow { display: none; }
  .count { margin-left: 0; }
  .who { margin-top: 0; padding: 0 8px; border-top: 0; }
  .who-t { display: none; }
  .crumb, .chip, .btn, .btn.sm { min-height: 32px; }
  .content { flex-direction: column; }
  .left { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .left-in { min-width: 0; height: auto; padding: 28px 20px 32px; }
  .bar { flex-wrap: wrap; padding: 8px 12px; row-gap: 8px; }
  .crumbs { flex-basis: 100%; overflow-x: auto; }
  .tools { flex: 1; flex-wrap: wrap; }
  .search { flex: 1; min-width: 140px; height: 32px; }
  .search input, .search input:focus { width: 100%; height: 32px; }
  .chipwrap .menu { right: auto; left: 0; }
  .drawer { position: fixed; inset: 0; z-index: 40; width: 100%; max-width: none; border: 0; border-radius: 0; }
  .page { padding: 28px 16px 48px; }
  .pq-wrap { overflow: visible; }
  .page.pq-page { padding: 0 12px 48px; }
  .pq-bar { padding: 12px 0 10px; }
  .pq-filters { margin-left: 0; }
  .pq-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; height: auto; padding: 8px 8px 8px 12px; }
  .pq-text { flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pq-d { display: none; }
  .pq-by .pq-name, .pq-to .pq-name { display: block; }
  .pq-lbls { order: 1; flex-basis: 100%; }
  .pq-ctx-lbls { display: none; }
  .pq-act { margin-left: auto; }
  .pq-act .btn { display: none; }
  .pq-row.is-done .pq-line { height: auto; }
  .pq-row.is-done .pq-text { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .pq-panel-body, .pq-decision-row { grid-template-columns: minmax(0, 1fr); }
  .pq-code-line { grid-template-columns: 14px minmax(0, 1fr); }
  .pq-code-line .code-state { grid-column: 2; justify-self: start; margin-left: 0; white-space: normal; }
  .pq-decision-actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
.calm *, .calm *::before, .calm *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
.reference-empty { align-items: flex-start; padding: 20px; gap: 12px; }
.reference-empty > .ic { width: 28px; height: 28px; color: var(--accent); }
@media (min-width: 901px) and (max-width: 1100px) {
  .side { width: 196px; }
  .bar { flex-wrap: wrap; padding: 8px 16px; }
  .crumbs { flex-basis: 100%; }
  :root { --half-pad: 32px; --bar-h: 90px; }
}
@media (max-width: 900px) {
  .bar > .tools > .tools { flex: 0 1 auto; }
  .chipwrap .menu { max-width: calc(100vw - 32px); }
  .nt { min-width: 0; }
  .drawer-in { padding: 20px; }
  .drawer-in.is-code { padding-bottom: 0; }
  .snip { margin: 0 -20px; }
  .snip-body { max-height: 26vh; }
  .snip-l { grid-template-columns: 36px 16px minmax(0, 1fr); }
  .snip-t { padding-right: 12px; }
  .member { flex-wrap: wrap; padding: 12px 0; }
  .member .pop-src { overflow-wrap: anywhere; }
}

/* Imported project references */
.page.reference-page { max-width: 1560px; gap: 15px; }
.ref-page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ref-receipt { margin-top: -8px; }
.c-others > summary { cursor: pointer; color: var(--ink-3); font-size: 13px; margin: 8px 0 4px; }
/* The data model: the diagram fills the page; the view menu, zoom and the selected table's columns sit over it. */
.dm-holder { min-height: 420px; }
.dmv { position: relative; height: calc(100vh - 186px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--nr); background: var(--paper); overflow: hidden; }
.dmv-svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; }
.dmv-svg.is-panning { cursor: grabbing; }
.dmv.is-loading .dmv-svg { opacity: .4; }
.dmv-top { position: absolute; top: 10px; left: 10px; }
.dmv-view { font-family: inherit; font-size: 13px; font-weight: 500; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); color: var(--ink); max-width: min(360px, calc(100vw - 80px)); }
.dmv-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); }
.dmv-table { cursor: pointer; transition: opacity .15s ease; }
.dmv-table:focus { outline: none; }
.dmv-table:focus-visible .dmv-box { stroke: var(--accent); stroke-width: 2; }
.dmv-box { fill: var(--sheet); stroke: var(--line-2); stroke-width: 1; }
.dmv-table:hover .dmv-box { stroke: var(--edge); }
.dmv-table.is-on .dmv-box { stroke: var(--accent); stroke-width: 2; }
.dmv-table.is-off, .dmv-line.is-off { opacity: .18; }
.dmv-rule { stroke: var(--line); }
.dmv-title { font: 600 14px Inter, sans-serif; fill: var(--ink); }
.dmv-name { font: 11px var(--mono); fill: var(--ink-3); }
.dmv-key { font: 600 9.5px Inter, sans-serif; letter-spacing: .03em; fill: var(--ink-3); }
.dmv-key.is-pk { fill: var(--ink); }
.dmv-col { font: 12.5px var(--mono); fill: var(--ink-2); }
.dmv-col.is-joined { fill: var(--ink); }
.dmv-coltype.is-to { fill: var(--ink-2); }
.dmv-coltype { font: 11px var(--mono); fill: var(--ink-3); }
.dmv-more { font: italic 11.5px Inter, sans-serif; fill: var(--ink-3); }
.dmv-line { fill: none; stroke: var(--edge); stroke-width: 1.3; transition: opacity .15s ease; }
.dmv-line.is-loose { stroke-dasharray: 5 4; }
.dmv-line.is-on { stroke: var(--accent); stroke-width: 1.8; }
#dmv-arrow path { fill: var(--edge); }
#dmv-arrow-on path { fill: var(--accent); }
.dmv-band { fill: transparent; transition: fill .15s ease; }
.dmv-row.is-lit .dmv-band { fill: color-mix(in oklab, var(--accent) 10%, var(--sheet)); }
.dmv-row.is-lit .dmv-col { fill: var(--accent); font-weight: 600; }
.dmv-row.is-lit .dmv-key { fill: var(--accent); }
.dmv-panel { position: absolute; top: 10px; right: 10px; width: min(460px, calc(100% - 20px)); max-height: calc(100% - 70px); overflow: auto; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .35); }
.dmv-panel-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 10px 8px 14px; }
.dmv-panel-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.dmv-panel-h code { font: 11.5px var(--mono); color: var(--ink-3); }
.dmv-unused { margin: 0 14px 8px; font-size: 13px; color: var(--ink-2); }
.dmv-cols { overflow-x: auto; }
.dmv-cols table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dmv-cols th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--sheet); }
.dmv-cols th:first-child, .dmv-cols td:first-child { padding-left: 14px; }
.dmv-cols td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dmv-cols tr:last-child td { border-bottom: 0; }
.dmv-cols code { font: 12px var(--mono); }
.dmv-type { color: var(--ink-2); }
.dmv-req { color: var(--ink-3); }
.dmv-ref { all: unset; cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.dmv-ref:hover { text-decoration-color: var(--ink-2); }
.dmv-ref:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dmv-loose, .dmv-any { color: var(--ink-3); }
@media (max-width: 680px) {
  .dmv { height: 72vh; }
  .dmv-panel { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 55%; border-radius: 8px 8px 0 0; }
}
.ref-brief-link { display: flex; justify-content: space-between; gap: 8px; }
.ref-upload { position: relative; z-index: 15; }
.ref-upload > summary { list-style: none; cursor: pointer; }
.ref-upload > summary::-webkit-details-marker { display: none; }
.ref-upload-form { position: absolute; top: calc(100% + 5px); right: 0; display: grid; gap: 10px; width: min(350px, 88vw); padding: 13px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); box-shadow: 0 10px 30px #28292c22; }
.ref-upload-form input { width: 100%; min-width: 0; font-size: 13px; }
.ref-icon-fill { fill: #fff; stroke: none; }
.ref-deployment-content { display: grid; gap: 7px; max-width: 680px; padding: 3px 0 10px; }
.ref-deployment-content > .field { max-width: 320px; }
.ref-deployment-paste form { display: grid; justify-items: start; gap: 6px; }
.ref-deployment-paste .field { width: 100%; }
.ref-deployment-paste textarea { font-family: monospace; }
.ref-deployment-results { max-height: 250px; overflow: auto; }
.ref-deployment-results > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 34%); gap: 6px 12px; padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.ref-deployment-match { display: grid; align-content: start; justify-items: start; gap: 4px; }
.ref-text-button { padding: 0; border: 0; background: none; color: var(--accent); text-align: left; font-size: inherit; }
.ref-text-button:hover { text-decoration: underline; }
/* The architecture: the drawing fills the page, as the data model's does; the menus, the check and the panel sit over it. */
.arch { --warn: #94600F; --warn-bg: #F6ECD9; }
.arch-top { display: grid; justify-items: start; gap: 8px; max-width: min(520px, calc(100% - 20px)); }
.arch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-right { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.arch-tool { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); color: var(--ink); font-size: 13px; font-weight: 500; }
.arch-tool:hover { border-color: var(--edge); }
.arch-tool .ic { width: 14px; height: 14px; }
.arch-check > .ic:first-child { color: var(--ok); }
.arch-check > .ic:last-child { color: var(--ink-3); }
.arch-check.is-failing { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.arch-check.is-failing > .ic:first-child { color: var(--bad); }
.arch-step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 10px; padding: 6px 12px 8px 6px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); font-size: 13px; box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .35); }
.arch-step p { color: var(--ink-2); font-size: 12.5px; }
.arch-step-nav { display: flex; align-items: center; gap: 1px; color: var(--ink-3); font-size: 12px; }
.arch-step-nav .iconbtn { width: 26px; height: 26px; }
.arch-step-nav + div { padding-top: 3px; }
.arch-svg text { font-family: Inter, sans-serif; }
.arch-bound rect { fill: color-mix(in oklab, var(--ink) 2%, var(--paper)); stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 5 4; }
.arch-bound-label { fill: var(--ink-3); font-size: 13px; }
.arch-node { cursor: pointer; transition: opacity .15s ease; }
.arch-node:focus { outline: none; }
.arch-box, .arch-stack { fill: var(--sheet); stroke: var(--line-2); stroke-width: 1.3; }
.arch-node[data-kind="system"] .arch-box { fill: color-mix(in oklab, var(--accent) 6%, var(--sheet)); }
.arch-node[data-kind="forbidden"] .arch-box { fill: var(--bad-bg); stroke: var(--bad); stroke-dasharray: 4 3; }
.arch-node:hover .arch-box, .arch-node:focus-visible .arch-box { stroke: var(--edge); }
.arch-node.is-gone .arch-box { fill: var(--bad-bg); stroke: var(--bad); stroke-dasharray: 5 3; }
/* Selection and a scenario's step are drawn in ink: red on this page means the code no longer has it. */
.arch-node.is-step .arch-box { fill: color-mix(in oklab, var(--ink) 5%, var(--sheet)); stroke: var(--ink); stroke-width: 2; }
.arch-node.is-on .arch-box { stroke: var(--ink); stroke-width: 2.2; }
.arch-title { font-size: 14px; font-weight: 600; fill: var(--ink); }
.arch-sub { font-size: 12px; fill: var(--ink-3); }
.arch-badge circle { fill: var(--bad); stroke: var(--sheet); stroke-width: 1.5; }
.arch-badge path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.arch-tab rect { fill: var(--warn-bg); stroke: var(--warn); stroke-width: 1; stroke-dasharray: 3 2; }
.arch-tab text { font: 11px var(--mono); fill: var(--warn); }
.arch-edge { fill: none; stroke: var(--edge); cursor: pointer; transition: opacity .15s ease; }
.arch-line, .arch-tip { stroke-width: 1.5; }
.arch-hit { stroke: transparent; stroke-width: 10; }
.arch-edge.is-unsure .arch-line { stroke-dasharray: 4 3; }
.arch-edge.is-forbidden { stroke: var(--bad); }
.arch-edge.is-forbidden .arch-line { stroke-dasharray: 5 5; }
.arch-forbidden { stroke: none; fill: var(--bad); font-size: 12px; }
.arch-edge.is-gone { stroke: var(--bad); }
.arch-edge.is-gone .arch-line { stroke-dasharray: 6 4; }
.arch-edge.is-gap { stroke: var(--warn); }
.arch-edge.is-gap .arch-line { stroke-width: 1.7; stroke-dasharray: 3 3; }
.arch-edge.is-step { stroke: var(--ink); }
.arch-edge.is-step .arch-line, .arch-edge.is-on .arch-line { stroke-width: 2.4; }
.arch-edge:hover:not(.is-gap):not(.is-gone), .arch-edge.is-on:not(.is-gap):not(.is-gone) { stroke: var(--ink); }
.has-step .arch-node:not(.is-step):not(.is-on) { opacity: .4; }
.has-step .arch-edge:not(.is-step):not(.is-on) { opacity: .3; }
.arch-node.is-off, .arch-edge.is-off { opacity: .18; }
.arch-panel { top: 50px; max-height: calc(100% - 110px); font-size: 13px; }
.arch-head { min-width: 0; }
.arch-head h2 { overflow-wrap: anywhere; }
.arch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; color: var(--ink-3); font-size: 12px; }
.arch-meta a { color: var(--ink-2); }
.arch-meta .tag { height: 19px; }
.arch-desc { display: -webkit-box; margin: 0 14px 10px; overflow: hidden; color: var(--ink-2); font-size: 12.5px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.arch-pad { padding: 0 14px 10px; }
.arch-ends { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; }
.arch-ends .ic { width: 13px; height: 13px; color: var(--ink-3); }
.arch-sec { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.arch-sec h3 { margin: 0 0 7px; color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.arch-state { margin-bottom: 6px; font-weight: 600; }
.arch-state.is-ok { color: var(--ok); }
.arch-state.is-bad { color: var(--bad); }
.arch-state.is-none { color: var(--ink-2); }
.arch-kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 10px; margin: 0; }
.arch-kv dt { color: var(--ink-3); }
.arch-kv dd { min-width: 0; margin: 0; }
.arch-vals { display: grid; gap: 2px; }
.arch-vals li, .arch-find { min-width: 0; overflow-wrap: anywhere; }
.arch-sec code, .arch-file { font: 11.5px var(--mono); }
a.arch-file { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
a.arch-file:hover { color: var(--ink); text-decoration-color: currentColor; }
.arch-flows { width: 100%; border-collapse: collapse; }
.arch-flows td { padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.arch-flows td:last-child { padding-right: 0; }
.arch-flows tr:last-child td { border-bottom: 0; }
.arch-dir { width: 14px; color: var(--ink-3); font-family: var(--mono); }
.arch-code { width: 14px; text-align: right; }
.arch-flows td > div { margin-top: 1px; }
.arch-ok { color: var(--ok); }
.arch-bad { color: var(--bad); font-weight: 600; }
.arch-muted { color: var(--ink-3); }
.arch-sec > ul { display: grid; gap: 8px; }
.arch-choice { display: inline-flex; align-items: flex-start; gap: 7px; cursor: pointer; }
.arch-choice input { flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.arch-ev { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 2px 0 0 21px; color: var(--ink-3); font-size: 12px; }
.arch-chips { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.arch-picks { position: sticky; bottom: 0; display: grid; gap: 7px; padding: 10px 14px; border-top: 1px solid var(--line-2); background: var(--sheet); font-size: 12.5px; }
.arch-bar-buttons, .arch-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.arch-deploy .ref-deployment > summary { display: none; }
@media (max-width: 680px) {
  .arch-right { top: auto; right: auto; bottom: 10px; left: 10px; max-width: calc(100% - 140px); }
  .arch-tool { min-width: 0; }
  .arch-tool > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .arch-panel { top: auto; max-height: 55%; }
}

/* Projects and the icon rail keep their DOM and open state during navigation. */
.side { position: relative; z-index: 23; overflow: visible; transition: width .3s var(--ease); }
.side-top, .project-switch { display: flex; align-items: center; gap: 2px; }
.side-top { justify-content: space-between; margin-bottom: 10px; }
.side-top .brand { margin-bottom: 0; padding-right: 4px; }
.nav-collapse { margin-left: auto; }
.project-picker { position: relative; min-width: 0; }
.project-switch .slink { flex: 1; min-width: 0; }
.slink-label { overflow: hidden; text-overflow: ellipsis; }
.side.is-collapsed { width: 56px; padding-inline: 9px; }
.side.is-collapsed .side-top, .side.is-collapsed .project-switch { flex-direction: column; align-items: stretch; }
.side.is-collapsed .side-top .brand { align-self: center; padding: 0; }
.side.is-collapsed .nav-collapse { align-self: center; margin-left: 0; }
.side.is-collapsed .brand-label, .side.is-collapsed .slink-label, .side.is-collapsed .who-t, .side.is-collapsed .count { display: none; }
.side.is-collapsed .slink { justify-content: center; padding-inline: 0; }
.side.is-collapsed .sub { padding: 0; }
.side.is-collapsed .who { flex-direction: column; gap: 4px; padding-inline: 0; }

/* The menu's projects: the five opened most recently, the open one first with its pages under it, then a field that
   finds any project. The icon rail and narrow screens keep the open project's pages, and find a project from a search
   button that opens the field as a panel. */
.proj-recent { display: flex; flex-direction: column; gap: 2px; padding-left: 24px; }
.proj-name { display: block; height: 30px; padding: 0 8px; border-radius: 5px; font-size: 13.5px; line-height: 30px; color: var(--ink-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s ease, color .2s ease; }
.proj-name:hover { background: rgba(40, 40, 50, .05); color: var(--ink); }
.proj-item.is-current > .proj-name { color: var(--ink); font-weight: 500; }
.proj-name.is-on { background: rgba(40, 40, 50, .08); }
.proj-item > .sub { margin: 2px 0 6px 8px; padding-left: 7px; border-left: 1px solid var(--line-2); }
.proj-find-toggle { display: none; }
.proj-find { position: relative; margin: 4px 0 8px 24px; }
.project-picker.is-short .proj-find:not(.is-panel) { display: none; }
.proj-search { position: relative; display: flex; align-items: center; color: var(--ink-3); }
.proj-search .ic { position: absolute; left: 9px; width: 14px; height: 14px; pointer-events: none; }
.proj-input { width: 100%; height: 30px; padding: 0 8px 0 29px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; font-size: 13.5px; color: var(--ink); outline: none; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.proj-input::placeholder { color: var(--ink-3); }
.proj-input:hover { border-color: var(--edge); }
.proj-input:focus { border-color: var(--accent); background: var(--sheet); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent); }
.proj-pop { position: absolute; z-index: 3; top: calc(100% + 4px); left: 0; right: 0; max-height: min(320px, 50vh); overflow-y: auto; padding: 4px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--sheet); box-shadow: 0 12px 32px #28292c19; }
.proj-option { display: block; padding: 5px 8px; border-radius: 4px; font-size: 13px; line-height: 20px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-option.is-active { background: var(--side); }
.proj-none { padding: 5px 8px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.proj-find.is-panel { position: absolute; z-index: 3; width: 240px; margin: 0; padding: 6px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); box-shadow: 0 12px 32px #28292c19; }
.proj-find.is-panel .proj-pop { position: static; max-height: min(320px, 60vh); margin-top: 4px; padding: 0; border: 0; box-shadow: none; }
.side.is-collapsed .proj-find-toggle { display: inline-grid; width: 100%; }
.side.is-collapsed :is(.proj-find:not(.is-panel), .proj-name, .proj-item:not(.is-current)) { display: none; }
.side.is-collapsed .proj-recent { padding-left: 0; }
.side.is-collapsed .proj-item > .sub { margin: 0; padding: 0; border: 0; }
.side.is-collapsed .proj-find.is-panel { top: 0; left: calc(100% + 10px); }
@media (max-width: 900px) {
  .project-picker, .proj-recent, .proj-item.is-current { display: contents; }
  .proj-find-toggle, .side.is-collapsed .proj-find-toggle { display: inline-grid; width: 30px; }
  :is(.proj-find:not(.is-panel), .proj-name, .proj-item:not(.is-current)) { display: none; }
  .proj-item > .sub { margin: 0; padding: 0; border: 0; }
  .proj-find.is-panel, .side.is-collapsed .proj-find.is-panel { top: 100%; left: 12px; width: min(300px, calc(100vw - 24px)); }
}

.crumb:not(.is-last) { min-width: 0; flex: 0 1 auto; display: block; line-height: 30px; overflow: hidden; text-overflow: ellipsis; }
.crumb:first-child { flex-shrink: 0; }
/* The project's name is short and says where you are, so the long titles after it give way first. */
.crumb.is-project { flex-shrink: 0; max-width: 18ch; }
.edge-ownership { display: grid; gap: 4px; }
.assignment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px 10px; }
.assignment-form .row { min-height: 33px; }
.assignment-form .error { grid-column: 1 / -1; }
.compact-pill { border: none; cursor: pointer; background: transparent; align-self: flex-start; padding: 0; }
.compact-pill .pill-in { border-radius: 999px; }

/* The brief: people and where it stands on one toolbar line, then the project's activity as a bordered timeline. */
.brief > .brief-top { margin: 0; }
.brief-toolbar { display: flex; flex-wrap: nowrap; align-self: stretch; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); }
.brief-chip.is-icon { padding: 0 10px; }

/* A node's labels in its record. */
.rec-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rec-labels .btn .ic { width: 13px; height: 13px; }
.labels-form { align-self: stretch; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); }
.lbl-pick { display: inline-flex; padding: 0; border: 0; border-radius: 4px; background: none; }
.lbl-pick:hover .lbl, .lbl-pick:focus-visible .lbl { box-shadow: 0 0 0 1.5px currentColor; }
.brief-compartment { position: relative; display: flex; min-width: 0; flex: 1 1 auto; }
.brief-compartment + .brief-compartment { border-left: 1px solid var(--line); }
.brief-chip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 30px; padding: 0 9px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: background .2s ease, color .2s ease; }
.brief-chip:hover, .brief-chip:focus-visible { background: color-mix(in oklab, var(--accent) 6%, var(--sheet)); color: var(--accent); }
.brief-compartment:first-child .brief-chip { border-radius: 7px 0 0 7px; }
.brief-compartment:last-child .brief-chip { border-radius: 0 7px 7px 0; }
.brief-chip > .ic { width: 14px; height: 14px; }
.brief-chip .avs { margin: 0; padding-left: 5px; }
.brief-chip .av { width: 19px; height: 19px; font-size: 8px; }
.brief-chip-count { min-width: 18px; padding: 0 5px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 6%, var(--sheet)); color: var(--ink-2); font-size: 11.5px; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.brief-chip:hover .brief-chip-count { background: color-mix(in oklab, var(--accent) 12%, var(--sheet)); color: var(--accent); }
.brief-tip { position: absolute; top: calc(100% + 6px); left: 50%; z-index: 8; width: max-content; max-width: min(230px, 70vw); padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); color: var(--ink-2); box-shadow: 0 10px 24px -12px rgba(40, 40, 50, .3); font-size: 12px; line-height: 1.45; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%, -3px); transition: opacity .15s ease, transform .2s var(--ease), visibility 0s linear .15s; }
.brief-compartment:first-child .brief-tip { left: 0; transform: translateY(-3px); }
.brief-compartment:nth-last-child(-n + 2) .brief-tip { left: auto; right: 0; transform: translateY(-3px); }
.brief-compartment:hover .brief-tip, .brief-compartment:focus-within .brief-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .15s ease .12s, transform .2s var(--ease) .12s, visibility 0s linear .12s; }
.brief-compartment:first-child:hover .brief-tip, .brief-compartment:first-child:focus-within .brief-tip,
.brief-compartment:nth-last-child(-n + 2):hover .brief-tip, .brief-compartment:nth-last-child(-n + 2):focus-within .brief-tip { transform: none; }
.brief-activity { align-self: stretch; display: flex; flex-direction: column; padding: 0 14px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); }
.brief-activity-title { display: flex; align-items: center; gap: 7px; margin: 0 -14px 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.brief-activity-title .ic { width: 14px; height: 14px; color: var(--accent); }
.brief-activity > .pop-src { padding-block: 10px; }
.brief-activity .timeline-event { position: relative; padding-block: 10px; }
.brief-activity .timeline-entry:not(:last-child) .timeline-event::before { content: ''; position: absolute; left: 13.5px; top: 40px; bottom: -10px; width: 1px; background: var(--line-2); }
.brief-activity .timeline-entry:last-child .timeline-event { border-bottom: 0; }
.older-activity > summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; list-style: none; cursor: pointer; font-size: 13px; }
.older-activity > summary::-webkit-details-marker { display: none; }
.older-activity > summary > .ic { width: 14px; height: 14px; color: var(--ink-3); }
.older-activity[open] > summary > .ic:last-child { transform: rotate(180deg); }
.older-activity > summary:hover { color: var(--accent); }
.timeline-copy a { color: var(--accent); text-decoration-color: color-mix(in oklab, var(--accent) 30%, transparent); text-underline-offset: 2px; }
/* Where the column is too narrow for the words, the toolbar keeps its icons and counts. */
@container (max-width: 470px) {
  .brief-chip-label { display: none; }
  .brief-chip { padding-inline: 8px; }
}
.timeline, .older-activity { width: 100%; }
.timeline-date { margin: 8px 0 6px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.timeline-event { display: grid; grid-template-columns: 33px minmax(0,1fr) auto; align-items: start; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.timeline-avatar { position: relative; }
.timeline-glyph { position: absolute; bottom: -3px; right: 0; display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--line); border-radius: 50%; background: var(--sheet); color: var(--ink-2); }
.timeline-glyph .ic { width: 10px; height: 10px; }
.timeline-copy { min-width: 0; overflow-wrap: anywhere; }
.timeline-copy strong { font-weight: 600; }
.timeline-detail { margin-top: 3px; color: var(--ink-3); font-size: 12.5px; white-space: pre-line; }
.timeline-event time { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.older-activity > summary { width: fit-content; padding: 5px 0; color: var(--ink-2); }
.older-activity-controls { display: grid; gap: 6px; justify-items: start; }
.older-activity-controls > button { margin-top: 8px; }

@media (max-width: 900px) {
  .side.is-collapsed { width: 100%; padding-inline: 12px; }
  .side.is-collapsed .side-top, .side.is-collapsed .project-switch, .side.is-collapsed .who { flex-direction: row; align-items: center; }
  .side-top { margin-bottom: 0; }
  .side.is-collapsed .slink { width: 30px; }
  .main { overflow-x: clip; }
}

/* Narrow screens: the sections stack, and only the node in focus of the section in focus shows above its edges. */
@media (max-width: 900px) {
  .stage.is-graph { overflow: visible; padding: 6px 16px 40px; }
  .is-graph .board { position: static; display: flex; flex-direction: column; gap: 14px; width: auto !important; height: auto !important; transform: none !important; }
  .is-graph .lane { position: static; width: auto !important; height: auto !important; border: 0; background: none; box-shadow: none; opacity: 1; }
  .is-graph .lane-head { height: auto; padding: 0 0 8px; border: 0; }
  .is-graph .lane-view { overflow: visible; }
  .is-graph .lane .col { position: static; }
  .is-graph .lane .list { transform: none !important; }
  .is-graph :is(.lane-fade, .more, .step-link, .stub, .wires) { display: none; }
  .is-graph .focus-nav { position: static; width: 100% !important; }
  .is-graph .lane-req .node:not(.is-focus), .is-graph .lane-req .node.add { display: none; }
  .is-graph.is-tech .lane-req { display: none; }
  .is-graph.is-tech .lane-tech .node:not(.is-focus), .is-graph.is-tech .lane-tech .node.add { display: none; }
  .is-graph .compact-edges { display: flex; flex-direction: column; gap: 16px; }
  .compact-decision, .compact-option { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-left: 2px solid var(--line-2); }
  .compact-option > .btn { align-self: flex-start; }
  .compact-edges .opanel { position: static; width: 100%; max-height: none; animation: none; box-shadow: none; }
  .compact-edges .op-list { overflow: visible; }
  .compact-edges .oc-act { flex-wrap: wrap; }
  .compact-edges .oc-act .why { flex-basis: 100%; }
  .is-graph .node.is-dim, .is-graph .node.is-dim2, .is-graph .node.is-dim3 { opacity: 1; filter: none; transform: none; }
  .port { right: 8px; }
  .kidnode { padding-right: 36px; }
  .stage:not(.is-graph) { padding: 16px 20px 32px; }
  .stage:not(.is-graph) .col.focus { width: 100%; }
  .cap { display: none; }
  .focus-pick select { min-height: 36px; font-size: 14px; }
}

.node-removal-dialog { width: min(480px, calc(100% - 24px)); max-height: 88dvh; overflow: auto; padding: 22px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); background: var(--sheet); }
.node-removal-dialog::backdrop { background: rgb(0 0 0 / 24%); }
.csec-sub { margin: 12px 0 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cov-pick:has(input:disabled) { cursor: default; opacity: .65; }
.ci-repo.is-gone { opacity: .6; }
.token-new { padding: 12px 14px; border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); border-radius: 10px; background: color-mix(in oklab, var(--accent) 5%, var(--sheet)); }
.token-new pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.declared-fields { display: grid; gap: 6px; margin: 0; font-size: 12.5px; line-height: 1.5; }
.declared-fields-row { display: flex; flex-wrap: wrap; gap: 2px 9px; }
.declared-fields dt { font-weight: 600; }
.declared-fields dd { margin: 0; min-width: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.declared-fields code { font: 12px/1.5 var(--mono); }
.coverage-heading .tag { white-space: normal; }
.run-details > :not(summary) { margin-top: 8px; }

.rule-dialog { width: min(1140px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); background: var(--sheet); }
.rule-dialog::backdrop { background: rgb(0 0 0 / 30%); }
.rule-dialog-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(780px, calc(100dvh - 34px)); }
.rule-dialog-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 20px; padding: 18px 24px 14px; border-bottom: 1px solid var(--line); }
.rule-dialog-header h2 { font-size: 20px; line-height: 1.25; }
.rule-dialog-header h2:focus { outline: none; }
.rule-dialog-header > code { color: var(--ink-3); font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.rule-scope { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; min-width: 0; margin: 0; padding: 4px 0 0; border: 0; font-size: 13px; }
.rule-scope label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.rule-scope input { accent-color: var(--accent); }
.rule-dialog-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 0; }
.rule-dialog-list { overflow: auto; overscroll-behavior: contain; padding: 16px 24px; }
.rule-group + .rule-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rule-group h3, .rule-source-top h3 { margin-bottom: 4px; font-size: 13px; line-height: 1.5; font-weight: 600; }
.rule-missing { padding-top: 4px; font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.rule-dialog-list .test-at { white-space: normal; overflow-wrap: anywhere; }
.rule-dialog-source { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: #FBFBF8; }
.rule-source-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px; padding: 12px 16px; background: var(--sheet); font-size: 12px; }
.rule-source-top h3 { margin-bottom: 0; }
.rule-dialog-source .snip { position: static; flex: 1; min-height: 0; margin: 0; box-shadow: none; }
.rule-dialog-source .snip-body { flex: 1; max-height: none; min-height: 0; overscroll-behavior: contain; }
.rule-dialog-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--line); }
.rule-dialog-footer .error { flex: 1 1 100%; }
@media (max-width: 760px) {
  .rule-dialog { width: calc(100% - 16px); }
  .rule-dialog-header { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
  .rule-dialog-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); }
  .rule-dialog-list { padding: 12px 16px; }
  .rule-dialog-list .cc { gap: 7px; padding: 8px; }
  .rule-dialog-source { border-top: 1px solid var(--line); border-left: 0; }
  .rule-source-top, .rule-dialog-footer { padding: 8px 16px; }
}
