/* bead console: tokens, page frame and type. Pegboard system in its working register. */
@font-face { font-family: Archivo; src: url(archivo.4c98b9d490d1698ec95f2ff17a6c7d0e72691864c0c5d7bc2a2c161b45afe5ad.woff2) format("woff2"); font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(jetbrains-mono.2c32b9b3ee358c119e210f6f5195f9bd34894d78a785ff2e95d60e718e400af4.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  color-scheme: light;
  --board: #f4f1ea; --peg: #d9d3c5; --panel: #fffdf8; --ink: #15171c; --soft: #555a66; --line: #e4dfd3; --wash: #ece8de;
  --blue: #2f5bea; --orange: #ff6a3d; --yellow: #ffc83d; --green: #19a974; --red: #e0352f; --amber: #e9a400;
  --danger-text: #b3261f;
  --ring: radial-gradient(circle closest-side, transparent 0 15%, #000 17% 92%, transparent 96%);
  --sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --side: 15.5rem;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --board: #15171c; --peg: #2b2f39; --panel: #1d2027; --ink: #f4f1ea; --soft: #a9adb8; --line: #30343e; --wash: #23262e; --blue: #5c80f7; --green: #2cc48a; --red: #f2605a; --amber: #ffc83d; --danger-text: #ff8780; } }
:root[data-theme="dark"] { color-scheme: dark; --board: #15171c; --peg: #2b2f39; --panel: #1d2027; --ink: #f4f1ea; --soft: #a9adb8; --line: #30343e; --wash: #23262e; --blue: #5c80f7; --green: #2cc48a; --red: #f2605a; --amber: #ffc83d; --danger-text: #ff8780; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 .9375rem/1.5 var(--sans); font-variant-numeric: tabular-nums; }
::selection { background: var(--yellow); color: #15171c; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre, fieldset, table { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre, kbd, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
svg.i { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .6rem; left: .6rem; z-index: 20; background: var(--ink); color: var(--board); padding: .5rem .9rem; border-radius: 999px; }
.soft { color: var(--soft); }
.right { text-align: right; }

/* Frame: pegboard rail on the left, plain board for the work. */
.frame { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; padding: 1rem .75rem .9rem; border-right: 1.5px solid var(--ink); background: var(--board) radial-gradient(circle, var(--peg) 1.5px, transparent 2px) 0 0 / 15px 15px; scrollbar-width: thin; scrollbar-color: var(--peg) transparent; }
.rail > * { position: relative; }
.wordmark { display: flex; align-items: center; gap: .55rem; padding: .25rem .5rem; font-size: 1.35rem; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; text-decoration: none; }
.wordmark i { width: 1rem; height: 1rem; border: .32rem solid var(--blue); border-radius: 50%; }
.org { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; padding: .5rem .7rem; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 10px; font-weight: 600; cursor: pointer; text-align: left; }
.org small { display: block; font-weight: 400; font-size: .75rem; color: var(--soft); }
.org svg { transform: rotate(90deg); }
.rail nav { display: grid; gap: 1.1rem; }
.rail h2 { padding: 0 .6rem .25rem; font-size: .75rem; font-weight: 600; color: var(--soft); }
.rail nav a { display: flex; align-items: center; gap: .6rem; min-height: 2.1rem; padding: .3rem .6rem; border-radius: 8px; font-weight: 500; text-decoration: none; background: transparent; }
.rail nav a:hover { background: var(--wash); }
.rail nav a[aria-current="page"] { background: var(--ink); color: var(--board); }
.rail nav a[aria-disabled="true"] { color: var(--soft); cursor: default; }
.rail nav a[aria-disabled="true"]:hover { background: transparent; }
.rail nav a .count { margin-left: auto; font: 500 .75rem var(--mono); opacity: .75; }
.rail-foot { margin-top: auto; display: grid; gap: .6rem; }
.wallet { display: grid; gap: .35rem; padding: .7rem; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 10px; text-decoration: none; }
.wallet b { font-size: 1.15rem; font-stretch: 108%; letter-spacing: -.02em; }
.wallet span { font-size: .78rem; color: var(--soft); }
.me { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: 0 .3rem; font-size: .8rem; color: var(--soft); }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.work { min-width: 0; display: flex; flex-direction: column; overflow-x: clip; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .5rem clamp(1rem, 3vw, 2rem); background: var(--board); border-bottom: 1.5px solid var(--ink); }
.bar .crumbs { display: flex; align-items: center; gap: .4rem; min-width: 0; font-weight: 600; white-space: nowrap; }
.bar .crumbs a { color: var(--soft); text-decoration: none; }
.bar .crumbs a:hover { color: var(--ink); }
.bar .crumbs svg { width: .85rem; height: .85rem; color: var(--soft); }
.bar .spacer { flex: 1; }
.jump { display: flex; align-items: center; gap: .5rem; width: min(22rem, 34vw); padding: .4rem .7rem; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 999px; color: var(--soft); cursor: pointer; text-align: left; }
.jump span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
kbd { padding: .05rem .35rem; border: 1px solid var(--soft); border-radius: 5px; font-size: .72rem; color: var(--soft); }
.sample { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--soft); white-space: nowrap; }
.sample select { width: auto; min-height: 1.8rem; padding: .1rem .5rem; font-size: .75rem; border-radius: 999px; }
.bar .menu-btn { display: none; }
[hidden] { display: none !important; }
main { width: 100%; min-width: 0; max-width: 86rem; padding: 1.75rem clamp(1rem, 3vw, 2rem) 4rem; }

.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; font-stretch: 108%; letter-spacing: -.022em; }
.head p { margin-top: .3rem; color: var(--soft); max-width: 44rem; }
.head .acts { display: flex; flex-wrap: wrap; gap: .5rem; }
h2 { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .9375rem; font-weight: 600; }
.label { font-size: .8125rem; font-weight: 600; color: var(--soft); }
.fig { font-size: 2.25rem; line-height: 1; font-weight: 700; font-stretch: 108%; letter-spacing: -.03em; }
.fig small { font-size: .9375rem; font-weight: 500; letter-spacing: 0; font-stretch: 100%; color: var(--soft); }

.grid { display: grid; gap: 1.25rem; align-items: start; }
.g-main { grid-template-columns: minmax(0, 1fr) 21.5rem; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 1.25rem; min-width: 0; }
.sticky { position: sticky; top: 4.75rem; }

@media (max-width: 68rem) { .g-main { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } }
@media (max-width: 56rem) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: 15; inset: 0 auto 0 0; width: min(17rem, 86vw); transform: translateX(-102%); visibility: hidden; }
  .nav-open .rail { transform: none; visibility: visible; }
  .nav-open .work::before { content: ""; position: fixed; inset: 0; z-index: 14; background: color-mix(in srgb, var(--ink) 45%, transparent); }
  .bar .menu-btn { display: inline-flex; }
  .jump { width: auto; } .jump span, .jump kbd, .sample { display: none; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .rail { transition: transform .2s cubic-bezier(.16, 1, .3, 1), visibility .2s; }
  .rail nav a, .btn, .icon-btn, .chips span, .tile, .jump { transition: background-color .15s ease-out, color .15s ease-out; }
}
