/* Braid — paper, ink, and a vermilion seal. */
:root {
  --paper: #f3eee2; --paper2: #ebe4d3; --card: #faf7ef; --ink: #1d1a15; --soft: #4d463a; --faint: #8d8473; --line: #d6ccb6;
  --seal: #c2401c;
  --held: #2f6b3c; --leaning: #6e7a1f; --contested: #a9730a; --doubted: #a4501c; --fallen: #8a3a3a; --unsettled: #6a4c93; --bare: #8d8473;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif; --sans: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #16140f; --paper2: #1e1b15; --card: #211e17; --ink: #ece5d3; --soft: #bdb39d; --faint: #857c69; --line: #3a3528;
    --seal: #e5633c; --held: #6fbf7f; --leaning: #b6c455; --contested: #e2ab3d; --doubted: #e08a4f; --fallen: #d07a7a; --unsettled: #b294e0; --bare: #857c69; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration-color: var(--seal); text-underline-offset: 3px; }
a:hover { color: var(--seal); }
code, pre { font-family: var(--mono); font-size: 0.82em; }
code { background: var(--paper2); padding: 1px 5px; border-radius: 3px; }
code.wrap { word-break: break-all; display: inline-block; }
pre { background: var(--paper2); padding: 12px; border-radius: 6px; overflow-x: auto; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
h1 { font: 500 clamp(1.9rem, 4.5vw, 2.7rem)/1.12 var(--serif); margin: 0 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
h1 .glyph { vertical-align: -4px; margin-right: 6px; }
h1.claim-h { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
h2 { font: 600 0.8rem var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--soft); margin: 44px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
h3 { font: 600 1.05rem var(--sans); margin: 0 0 8px; }
p { margin: 0 0 12px; }
ul, ol { padding-left: 1.2em; margin: 0 0 12px; } li { margin-bottom: 6px; }
s { color: var(--faint); text-decoration-color: var(--fallen); }
.dim { color: var(--faint); } .small { font-size: 0.86rem; }
.eyebrow { font: 500 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--seal); margin: 0 0 10px; }
.eyebrow a { text-decoration: none; }
.sub { font: 400 1.18rem/1.5 var(--serif); color: var(--soft); max-width: 62ch; }
.prose { font: 400 1.1rem/1.6 var(--serif); max-width: 66ch; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }

/* shell */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.wordmark { font: 600 1.4rem var(--serif); text-decoration: none; letter-spacing: -0.02em; }
.wordmark::before { content: ''; display: inline-block; width: 0.62em; height: 0.62em; background: var(--seal); border-radius: 2px; margin-right: 7px; }
.wordmark.big { font-size: clamp(3rem, 10vw, 5rem); display: block; margin-bottom: 18px; }
.lenspick { font-size: 0.85rem; color: var(--soft); margin-left: auto; display: flex; align-items: center; gap: 8px; }
select, input[type=text], input:not([type]) { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
.lenspick select { font-weight: 600; border-color: var(--seal); }
.me { font-size: 0.85rem; text-decoration: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.frame { display: grid; grid-template-columns: 200px minmax(0, 1fr); max-width: 1120px; margin: 0 auto; }
.rail { position: sticky; top: 53px; align-self: start; height: calc(100vh - 53px); overflow-y: auto; padding: 28px 12px 28px 20px; display: flex; flex-direction: column; gap: 4px; font-size: 0.93rem; }
.rail a { display: block; padding: 5px 10px; border-radius: 5px; text-decoration: none; color: var(--soft); border-left: 2px solid transparent; }
.rail a:hover { color: var(--ink); background: var(--paper2); }
.rail a.on { color: var(--ink); font-weight: 600; border-left-color: var(--seal); border-radius: 0 5px 5px 0; }
.rail-label { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 18px 0 4px 12px; }
.rail-group.end { margin-top: auto; padding-top: 16px; }
main { padding: 40px 28px 120px; min-width: 0; outline: none; }
.page-head { margin-bottom: 28px; }
@media (max-width: 820px) {
  .frame { display: block; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); gap: 2px; }
  .rail-group { display: flex; } .rail-group.end { margin: 0; padding: 0; } .rail-label { display: none; }
  .rail a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; } .rail a.on { border-bottom-color: var(--seal); border-radius: 5px 5px 0 0; }
  main { padding: 28px 16px 100px; } .top { padding: 8px 14px; gap: 10px; } .me code, .lenspick { font-size: 0.78rem; } .me code { display: none; }
}

/* threshold */
.threshold { max-width: 640px; margin: 0 auto; padding: 12vh 20px 80px; }
.lede { font: 400 clamp(1.3rem, 3.4vw, 1.7rem)/1.4 var(--serif); margin-bottom: 32px; }
.incept p { font: 400 1.08rem/1.6 var(--serif); color: var(--soft); }
.field { display: block; font-size: 0.9rem; font-weight: 500; margin: 18px 0 8px; } .field input, .field select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 1rem; }
.ceremony { margin-top: 24px; padding-left: 1.4em; font-size: 0.95rem; } .ceremony li { animation: rise 0.4s ease both; margin-bottom: 10px; }
.foot { margin-top: 56px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* buttons */
.btn { font: 500 0.92rem var(--sans); padding: 8px 16px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; display: inline-block; position: relative; overflow: hidden; }
.btn:hover { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); } .btn.ghost:hover { border-color: var(--seal); color: var(--seal); background: transparent; }
.btn.danger:hover, .btn.danger[data-sure] { border-color: var(--fallen); color: var(--fallen); }
.btn:disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
.btn.hold { background: var(--seal); border-color: var(--seal); color: #fff; min-width: 170px; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-fill { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); transform: scaleX(0); transform-origin: left; } .holding .hold-fill { transform: scaleX(1); transition: transform 1s linear; }
.hold-label { position: relative; }

/* identity */
.who { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; vertical-align: middle; } .who:hover span { text-decoration: underline; text-decoration-color: var(--seal); }
.glyph { flex: none; vertical-align: middle; }
.tether { font-size: 0.8rem; color: var(--faint); margin-left: 6px; white-space: nowrap; } .tether .glyph { vertical-align: -2px; }
.seal { display: inline-block; vertical-align: -1px; cursor: help; }
.who-head { display: flex; gap: 20px; align-items: flex-start; } .aid { font-size: 0.75rem; margin-top: 8px; color: var(--soft); }
.tetherline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0; } .tetherline.small { font-size: 0.88rem; padding: 4px 0 12px; } .arrow { color: var(--faint); font-size: 0.85rem; }
.members { list-style: none; padding: 0; } .creds { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 10px; } .creds th { text-align: left; font-weight: 500; color: var(--faint); font-size: 0.78rem; } .creds td, .creds th { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.maynot li { color: var(--fallen); } .maynot li::marker { content: '\2715  '; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 8px 0 14px; } .stats b { display: block; font: 500 1.35rem var(--serif); } .stats span { font-size: 0.8rem; color: var(--faint); }

/* panels, claims, objects */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 18px 0; }
.panel > :last-child { margin-bottom: 0; }
.panel.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; } .span2 { grid-column: 1 / -1; }
details.panel summary, .versions summary, .sheet summary, .obj summary { cursor: pointer; } details.panel[open] summary { margin-bottom: 12px; }
.callout { border-left: 3px solid var(--seal); padding: 10px 16px; background: var(--paper2); border-radius: 0 8px 8px 0; font-size: 0.95rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; } .cols h2 { margin-top: 28px; }
.tag { font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); background: var(--paper2); padding: 2px 7px; border-radius: 3px; white-space: nowrap; }
.claims { display: grid; gap: 14px; }
.claim { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--bare); border-radius: 4px 10px 10px 4px; padding: 16px 20px; }
.claim.st-held { border-left-color: var(--held); } .claim.st-leaning { border-left: 5px dashed var(--leaning); } .claim.st-contested { border-left: 5px double var(--contested); }
.claim.st-doubted { border-left: 5px dotted var(--doubted); } .claim.st-fallen { border-left-color: var(--fallen); } .claim.st-fallen .claim-text { color: var(--soft); }
.claim-meta { font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.claim-text { font: 500 1.28rem/1.35 var(--serif); margin: 10px 0; text-wrap: pretty; } .claim-text.big { font-size: clamp(1.35rem, 3.2vw, 1.75rem); } .small-claim { font-size: 1.05rem; }
.claim-foot { font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--soft); } .counts b { color: var(--ink); font-weight: 600; }
.claim-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } .claim-actions .btn { padding: 5px 12px; font-size: 0.85rem; }
.standing { font: 600 0.72rem var(--sans); text-transform: uppercase; letter-spacing: 0.07em; padding: 3px 9px; border-radius: 99px; border: 1.5px solid currentColor; white-space: nowrap; display: inline-block; }
.standing i { font-weight: 400; font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.8; }
.st-held.standing, .cell.st-held { color: var(--held); } .st-leaning.standing, .cell.st-leaning { color: var(--leaning); } .st-contested.standing, .cell.st-contested { color: var(--contested); }
.st-doubted.standing, .cell.st-doubted { color: var(--doubted); } .st-fallen.standing, .cell.st-fallen { color: var(--fallen); } .st-unsettled.standing { color: var(--unsettled); border-style: dashed; } .st-bare.standing { color: var(--bare); border-style: dotted; }
.mine { font: 500 0.8rem var(--mono); color: var(--seal); }
.obj { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; background: var(--card); }
.obj-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 0.86rem; margin-bottom: 6px; } .obj-body { font-size: 0.95rem; }
.obj.frozen { opacity: 0.75; border-style: dashed; } .obj.interest { background: repeating-linear-gradient(135deg, var(--card) 0 9px, var(--paper2) 9px 10px); } .obj.turnobj { border-color: var(--seal); }
.obj.orphan { border: 1.5px dotted var(--faint); background: transparent; } .obj.orphan.fell { opacity: 0.7; } .obj.pending { border: 1.5px dashed var(--contested); }
.versions { margin: 12px 0 8px; font-size: 0.95rem; } .versions p { margin: 10px 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chips span { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 0.85rem; color: var(--soft); } .chips b { color: var(--ink); display: block; }

/* today */
.moved { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.move { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.move:hover { border-color: var(--seal); color: inherit; transform: translateY(-2px); }
.verb { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--seal); } .move-body { font: 400 1.05rem/1.45 var(--serif); } .cta { font-size: 0.85rem; font-weight: 500; margin-top: auto; padding-top: 6px; }

/* signing sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(15, 12, 8, 0.55); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(440px, 100%); max-height: 92vh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 0 22px 26px; box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.35); animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); border: 1px solid var(--line); border-bottom: 0; }
.sheet.plain { padding-top: 22px; }
@keyframes up { from { transform: translateY(100%); } }
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; border-bottom: 1px solid var(--line); } }
.sheet-bar { display: flex; justify-content: space-between; font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); padding: 14px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); } .sheet-bar b { color: var(--ink); }
.sheet h3 { font: 500 1.35rem var(--serif); margin-bottom: 12px; }
.sheet-lines { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.9rem; margin: 0 0 14px; } .sheet-lines dt { color: var(--faint); } .sheet-lines dd { margin: 0; }
.sheet-warn { color: var(--doubted); font-size: 0.9rem; border-left: 3px solid currentColor; padding-left: 10px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; } .sheet details { font-size: 0.85rem; margin-bottom: 10px; }
.stance-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; } .stance-row input { position: absolute; opacity: 0; }
.stance-row span { display: block; text-align: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-weight: 500; text-transform: capitalize; }
.stance-row input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); } .stance-row input:focus-visible + span { outline: 2px solid var(--seal); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 8px; font-size: 0.9rem; z-index: 60; animation: rise 0.3s; transition: opacity 0.5s; max-width: 92vw; } .toast.out { opacity: 0; } .toast a { color: inherit; }

/* lenses */
.lenscards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.lenscard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; } .lenscard.on { border-color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal); }
.lenscard h3 { font: 500 1.3rem var(--serif); margin: 0; } .lenscard .btn { margin-top: auto; align-self: flex-start; }
.bars { display: grid; gap: 3px; margin: 6px 0 12px; font: 400 0.68rem var(--mono); color: var(--faint); } .bars span { display: grid; grid-template-columns: 1fr 78px; align-items: center; gap: 6px; direction: rtl; text-align: left; } .bars i { height: 5px; background: var(--paper2); border-radius: 3px; position: relative; direction: ltr; } .bars i::after { content: ''; position: absolute; inset: 0; width: calc(var(--w) * 100%); background: var(--ink); border-radius: 3px; }
.scrollx { overflow-x: auto; }
.matrix { border-collapse: collapse; width: 100%; font-size: 0.85rem; min-width: 640px; } .matrix th { font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px; color: var(--faint); } .matrix th.on { color: var(--seal); }
.matrix td { padding: 8px 6px; border-top: 1px solid var(--line); } .matrix td:first-child { font-family: var(--serif); font-size: 0.98rem; max-width: 340px; } .matrix td:first-child a { text-decoration: none; }
.cell { text-align: center; font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; background: color-mix(in srgb, currentColor 9%, transparent); }
.slider { display: grid; grid-template-columns: 1fr minmax(120px, 220px); gap: 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .slider small { display: block; color: var(--faint); font-size: 0.8rem; } input[type=range] { width: 100%; accent-color: var(--seal); } .forge .btn { margin-top: 16px; }
.lensrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 16px; } .lensrow .cell { padding: 14px 8px; border-radius: 8px; } .lensrow b, .lensrow small { display: block; text-transform: none; letter-spacing: 0; } .lensrow b { font: 500 1.1rem var(--serif); color: var(--ink); } .lensrow small { font-weight: 400; color: var(--faint); margin-top: 3px; }

/* trace */
.roots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 28px; } .root { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 0.85rem; } .root b { display: block; font: 500 1.1rem var(--serif); } .root span { color: var(--soft); }
.r-assertion { border-color: var(--fallen) !important; } .r-instrument { border-color: var(--held) !important; } .r-computation { border-color: var(--leaning) !important; } .r-testimony { border-color: var(--contested) !important; }
.trace { list-style: none; padding: 0; margin: 0 0 20px; max-width: 680px; } .step { position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--line); margin: 0 0 0 8px; animation: rise 0.45s ease both; }
.step::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.step.gap::before { border-color: var(--fallen); border-style: dashed; } .step.gap { border-left-style: dashed; border-left-color: var(--fallen); } b.gap { color: var(--fallen); }
.step-label { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--seal); } .step-by { margin: 4px 0 6px; font-size: 0.9rem; } .step p { margin: 0; font-size: 0.98rem; }
.rootstep { border: 2px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-left: 0; background: var(--card); } .rootstep::before { display: none; } .verdict { font: 400 1.2rem/1.5 var(--serif) !important; margin: 8px 0 10px !important; }

/* wallet */
.kel { list-style: none; padding: 0; } .kel li { border-bottom: 1px solid var(--line); margin: 0; } .kel summary { display: grid; grid-template-columns: 28px 40px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; cursor: pointer; font-size: 0.9rem; list-style: none; } .kel summary::-webkit-details-marker { display: none; }
.seq { font-family: var(--mono); color: var(--faint); } .t { font: 500 0.72rem var(--mono); text-transform: uppercase; } .t-icp { color: var(--held); } .t-rot { color: var(--unsettled); } .t-ixn { color: var(--seal); }
.vr { font: 500 0.75rem var(--mono); } .vr.ok { color: var(--held); } .vr.bad { color: var(--fallen); }

/* moot, dissent */
.seats { display: grid; gap: 8px; margin: 14px 0; } .seat { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 12px; border-radius: 8px; border-left: 4px solid var(--bare); background: var(--paper2); } .seat p { margin: 2px 0 0; }
.seat-w { font: 500 1.3rem var(--serif); } .v-for { border-left-color: var(--held); } .v-against { border-left-color: var(--fallen); } .v-pending { border-left: 4px dashed var(--contested); } .v-observer { opacity: 0.7; }
blockquote { margin: 16px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); font: italic 400 1.08rem/1.5 var(--serif); } cite { display: block; font: normal 400 0.82rem var(--sans); color: var(--faint); margin-top: 8px; }
.history { list-style: none; padding: 0; } .history li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.objection { position: relative; padding: 22px 0 22px 56px; border-top: 1px solid var(--line); max-width: 720px; } .objection h3 { font: 500 1.45rem/1.25 var(--serif); } .objection p { font: 400 1.08rem/1.6 var(--serif); color: var(--soft); }
.num { position: absolute; left: 0; top: 22px; font: 400 2rem var(--serif); color: var(--seal); }

/* turn */
.turn-text { font: normal 400 clamp(1.15rem, 2.6vw, 1.4rem)/1.55 var(--serif); border-left: 4px solid var(--seal); padding: 6px 0 6px 24px; max-width: 64ch; margin: 24px 0; } .turn-text cite { margin-top: 18px; }
.belief { list-style: none; padding: 0; max-width: 680px; } .belief li { display: grid; grid-template-columns: 96px 84px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); } .belief p { margin: 0; font-size: 0.95rem; } .b-date { font: 400 0.8rem var(--mono); color: var(--faint); } .belief li:last-child { border-bottom: 2px solid var(--seal); }
@media (max-width: 560px) { .belief li { grid-template-columns: 1fr auto; } .belief p { grid-column: 1 / -1; } .panel.two { grid-template-columns: 1fr; } .objection { padding-left: 40px; } }

/* merrow */
.scrub { position: sticky; top: 60px; z-index: 5; } .scrub-top { display: flex; justify-content: space-between; align-items: center; } .clock { font: 500 2.2rem var(--mono); letter-spacing: -0.02em; }
.ticks { display: flex; justify-content: space-between; font: 400 0.62rem var(--mono); color: var(--faint); margin-top: 2px; } .cap { font: italic 400 1.05rem var(--serif); margin: 10px 0 0; min-height: 3em; }
.stage > div { animation: none; } .stage .fresh { animation: rise 0.5s ease both; } .stage .fresh .obj { box-shadow: 0 0 0 2px var(--seal); }
@media (max-width: 560px) { .ticks span:nth-child(even) { visibility: hidden; } .clock { font-size: 1.6rem; } }

/* tremor */
.diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; } .diff-old { opacity: 0.75; } .diff-new { border-left: 3px solid var(--held); padding-left: 16px; }
.mini-time { list-style: none; padding: 0; font-size: 0.93rem; } .mini-time li { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); margin: 0; } .mini-time b { font-family: var(--mono); font-size: 0.8rem; color: var(--seal); margin-right: 6px; } .mini-time.wide { max-width: 720px; } .mini-time.wide li { padding-bottom: 14px; font-size: 1rem; }
.tremor { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 24px; align-items: start; } @media (max-width: 760px) { .tremor { grid-template-columns: 1fr; } }
.tremor-svg { width: 100%; height: auto; } .tremor-svg .ring { fill: none; stroke: var(--line); stroke-dasharray: 2 4; } .tremor-svg circle { transition: opacity 0.3s; } .tremor-svg .off { opacity: 0.1; }
.epi { fill: var(--ink); } .epi-t { fill: var(--paper); font: 600 9px var(--mono); }
.d-resigned { fill: var(--held); } .d-withdrew { fill: var(--contested); } .d-silent { fill: var(--bare); } .d-refused { fill: var(--fallen); }
.legend { display: grid; gap: 6px; } .leg { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line); font-size: 0.88rem; } .leg b { margin-left: auto; font-family: var(--mono); } .leg i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; } .leg.on, .leg:hover { border-color: var(--ink); } .leg:focus-visible { outline: 2px solid var(--seal); }
.leg.d-resigned i { color: var(--held); } .leg.d-withdrew i { color: var(--contested); } .leg.d-silent i { color: var(--bare); } .leg.d-refused i { color: var(--fallen); }

/* veil */
.fields { display: grid; gap: 8px; margin: 14px 0; } .fields label { display: flex; gap: 10px; align-items: center; cursor: pointer; } .fields .locked { cursor: default; } .fields input { accent-color: var(--seal); width: 17px; height: 17px; }
.set { display: flex; flex-wrap: wrap; gap: 5px; margin: 16px 0 10px; } .set i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--line); transition: all 0.3s; } .set i.in { background: var(--ink); border: 1.5px solid var(--ink); }

/* finding */
.finding-obj { border-width: 2px; padding: 18px 20px; } .ab > div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; background: var(--paper); font-size: 0.93rem; } .ab p { font: 400 1.05rem/1.4 var(--serif); margin: 8px 0; }
.asks { display: flex; flex-wrap: wrap; gap: 8px; } .refusal { margin-top: 12px; border: 1.5px solid var(--fallen); border-radius: 8px; padding: 12px 14px; font-size: 0.93rem; animation: rise 0.3s; } .refusal b { color: var(--fallen); display: block; margin-bottom: 4px; }

/* convening */
.parties { display: grid; gap: 8px; margin: 18px 0; } .party { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 4px 16px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 0.92rem; align-items: center; } .party > .dim { display: none; }
.party.signed { border-left: 4px solid var(--held); } .party.refused { border-left: 4px dashed var(--doubted); } .no { font: 500 0.72rem var(--mono); text-transform: uppercase; color: var(--doubted); margin-right: 6px; } @media (max-width: 600px) { .party { grid-template-columns: 1fr; } }

/* voss */
.checks { list-style: none; padding: 0; } .checks li { padding: 5px 0; animation: rise 0.3s; color: var(--held); font-weight: 500; }
.ring-svg { width: 100%; max-width: 440px; display: block; margin: 0 auto 12px; } .edge { stroke: var(--line); stroke-width: 1; fill: none; } .edge.money { stroke: var(--fallen); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: 0.8; animation: fade 0.8s; }
.node { fill: var(--held); transition: fill 0.5s; } .node.paid { fill: var(--fallen); } .node.voss { fill: var(--ink); } .ring-t { fill: var(--paper); font: 600 11px var(--sans); } .ring-t.dark { font-size: 10px; } .supplier { fill: var(--fallen); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* small-screen polish */
.cap { line-height: 1.4; }
.me span.nm { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
@media (max-width: 820px) { .lenspick { font-size: 0; gap: 0; } .lenspick select { font-size: 0.85rem; } .me { min-width: 0; overflow: hidden; } .scrub { position: static; } }

/* ——— live network ——— */
.rail-label.first { margin-top: 0; }
.staged { border: 1.5px dashed var(--contested); border-radius: 8px; padding: 10px 14px; margin-bottom: 28px; font-size: 0.88rem; color: var(--soft); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.staged b { color: var(--contested); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; } .staged label { margin-left: auto; white-space: nowrap; } .staged select { padding: 3px 8px; }
textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; display: block; margin-top: 6px; resize: vertical; }
input[type=number] { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
fieldset.field { border: 0; padding: 0; } .pick { display: grid; gap: 6px; margin-top: 8px; max-height: 220px; overflow-y: auto; font-weight: 400; } .pick label { display: flex; gap: 8px; align-items: center; } .pick input { width: auto; display: inline; margin: 0; }
.feed { list-style: none; padding: 0; font-size: 0.93rem; } .feed li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; } .feed li > .dim { min-width: 78px; }
.stances { list-style: none; padding: 0; } .stances li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tag.bad { background: var(--fallen); color: var(--paper); } .tag.turn { background: var(--seal); color: #fff; }
.callout.bad { border-left-color: var(--fallen); }
.sheet-err { color: var(--fallen); border: 1.5px solid var(--fallen); border-radius: 8px; padding: 10px 12px; font-size: 0.92rem; }
.reply { margin: 8px 0 0 14px; padding-left: 10px; border-left: 2px solid var(--line); font-size: 0.92rem; }
.capture { margin-top: 8px; padding: 8px 10px; background: var(--paper2); border-radius: 6px; font-size: 0.88rem; word-break: break-word; }
.btn.tiny { padding: 2px 9px; font-size: 0.78rem; margin-top: 8px; display: block; } .obj.open { border-left: 3px solid var(--doubted); }
.wrapbtns { margin: 14px 0 6px; }
.claim.st-withdrawn, .claim.st-pending, .claim.st-thin { border-left-color: var(--bare); } .claim.st-pending { border-left: 5px dashed var(--unsettled); }
.cell.st-unsettled { color: var(--unsettled); } .cell.st-bare { color: var(--bare); }
b.gap { color: var(--fallen); }
.r-document { border-color: var(--leaning) !important; } .r-unstated { border-color: var(--bare) !important; }
@media (max-width: 820px) { .staged label { margin-left: 0; } }
