/* haggle · site styles */
@font-face { font-family: "Bricolage"; src: url(../assets/fonts/Bricolage.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(../assets/fonts/Newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(../assets/fonts/Newsreader-Italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../assets/fonts/JetBrainsMono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --fog: #E8ECEF; --fog2: #DCE2E7; --white: #FFFFFF; --ink: #16202E; --ink2: #4B5768; --ink3: #7A8594; --line: #C6CED6; --line2: #E1E6EB;
  --buyer: #1A73B8; --buyer-w: #E3EFF8; --seller: #B8336A; --seller-w: #F7E4EC; --deal: #16202E;
  --sans: "Bricolage", "Segoe UI", system-ui, sans-serif; --serif: "Newsreader", Georgia, serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 400 17px/1.55 var(--sans); font-variation-settings: "opsz" 16; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--buyer); text-underline-offset: 3px; }
code { font: 0.86em var(--mono); background: var(--fog2); padding: 0.08em 0.35em; border-radius: 4px; }
pre { margin: 0; font: 13.5px/1.6 var(--mono); overflow: auto; }
pre code { background: none; padding: 0; font-size: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--buyer); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 8px; background: transparent;
  color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 600; font-size: 16px; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn.solid { background: var(--ink); color: var(--white); }
.btn.solid:hover { background: #2B3A50; }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { background: var(--fog2); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.linkish { border: 0; background: none; padding: 0; color: var(--buyer); text-decoration: underline; cursor: pointer; font-size: 15px; }
.linkish:disabled { color: var(--ink3); text-decoration: none; cursor: default; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--fog2); border-radius: 9px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 7px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink2); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(22,32,46,.18); }
.seg.small button { padding: 4px 10px; font-size: 13px; }

/* ---------------------------------------------------------------- top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 28px;
  background: rgba(232,236,239,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2); }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 24px; font-stretch: 80%; letter-spacing: -0.01em; }
.mark svg path { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.mk-b { stroke: var(--buyer); } .mk-s { stroke: var(--seller); } .mk-d { fill: var(--ink); }
.token-pill { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); min-width: 0; }
.tp-t { font-weight: 700; font-size: 15px; }
.tp-ca { background: none; padding: 0; color: var(--ink2); font-size: 13px; white-space: nowrap; }
.tp-copy { border: 0; border-radius: 999px; background: var(--ink); color: var(--white); padding: 7px 14px; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tp-copy:hover { background: #2B3A50; }

/* ---------------------------------------------------------------- hero: the negotiation plane */
.hero { padding: 26px 28px 0; max-width: 1440px; margin: 0 auto; }
.plane { position: relative; background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); }
#dance { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hero-copy { position: absolute; left: 3.2%; top: 50%; transform: translateY(-50%); width: 35%; }
.hero h1 { margin: 0; font-weight: 750; font-stretch: 75%; font-variation-settings: "opsz" 96; font-size: clamp(40px, 4.9vw, 80px); line-height: .94; letter-spacing: -0.02em; }
.hero-lede { margin: 18px 0 0; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink2); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.plane-tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 14px)); width: max-content; max-width: 260px; padding: 9px 12px; background: var(--ink); color: #fff; border-radius: 6px; font-size: 13.5px; line-height: 1.4; pointer-events: none; }
.plane-tip b { display: block; } .plane-tip span { display: block; color: #AEB9C6; }
.replay { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 12px 4px 0; font-size: 14px; color: var(--ink2); }
.replay p { margin: 0; }
.replay-key { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.replay-key span { display: inline-flex; align-items: center; gap: 7px; }
.replay-key span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.k-b::before { background: var(--buyer); } .k-s::before { background: var(--seller); }
.k-f::before { width: 18px !important; height: 2px !important; border-radius: 1px !important; background: var(--ink); }
.replay-now { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- the agenda (page navigation) */
.agenda { max-width: 1440px; margin: 34px auto 0; padding: 0 28px; }
.agenda ol { list-style: none; counter-reset: ag; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 2px solid var(--ink); }
.agenda li { counter-increment: ag; }
.agenda a { display: block; height: 100%; padding: 12px 14px 16px 0; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); margin-right: 14px; }
.agenda li:last-child a { border-right: 0; }
.agenda a::before { content: counter(ag); display: block; font-weight: 300; font-stretch: 75%; font-size: 40px; line-height: 1; color: var(--ink3); margin-bottom: 8px; font-variant-numeric: lining-nums; }
.agenda b { display: block; font-size: 18px; font-weight: 700; }
.agenda a > span { display: block; font-size: 14px; color: var(--ink2); line-height: 1.35; margin-top: 2px; }
.agenda a:hover::before, .agenda a.now::before { color: var(--buyer); }
.agenda a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- sections */
.sec { max-width: 1440px; margin: 0 auto; padding: 84px 28px 0; scroll-margin-top: 56px; }
.sec-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr); gap: 0 20px; align-items: end; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.sec-n { font-weight: 300; font-stretch: 75%; font-size: 64px; line-height: .8; color: var(--ink3); }
.sec-head h2 { margin: 0; font-weight: 700; font-stretch: 78%; font-variation-settings: "opsz" 72; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -0.015em; }
.sec-head p { margin: 0; color: var(--ink2); max-width: 60ch; }

/* ---------------------------------------------------------------- 1 the table */
.table-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; margin-bottom: 18px; }
.tablegrid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.party { background: var(--white); border-radius: var(--r); padding: 18px 18px 20px; border-top: 5px solid; }
.party.buyer { border-color: var(--buyer); } .party.seller { border-color: var(--seller); } .party.you-card { border-color: var(--seller); }
.party h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.party.you-card p { margin: 0; color: var(--ink2); font-size: 15px; }
.f { display: block; margin: 0 0 14px; font-size: 14px; color: var(--ink2); border: 0; padding: 0; }
.f output { float: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.f input[type=range], .party > input[type=range] { display: block; width: 100%; margin: 6px 0 0; }
.party > input[type=range] { margin: -8px 0 14px; }
.party > input[type=range]:disabled { opacity: .35; }
.f.chk { display: flex; gap: 8px; align-items: flex-start; }
.f.chk output { float: none; margin-left: 4px; }
fieldset.f legend { padding: 0; margin-bottom: 6px; }
input[type=range] { accent-color: var(--ink); height: 22px; }
.buyer input[type=range] { accent-color: var(--buyer); } .seller input[type=range] { accent-color: var(--seller); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 5px 11px; cursor: pointer; font-size: 14px; }
.buyer .chips button[aria-pressed="true"] { background: var(--buyer); border-color: var(--buyer); color: #fff; }
.seller .chips button[aria-pressed="true"] { background: var(--seller); border-color: var(--seller); color: #fff; }
.chips-say { margin: 6px 0 0; font-size: 13px; color: var(--ink3); line-height: 1.35; }
.weights { display: grid; gap: 6px; }
.weights label { display: grid; grid-template-columns: 74px 1fr 38px; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); }
.weights output { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink2); }
.weights input { width: 100%; }

.ledger-wrap { background: var(--white); border-radius: var(--r); padding: 16px; min-width: 0; }
.zopa { position: relative; height: 86px; margin: 0 6px 12px; }
.zopa svg { display: block; width: 100%; height: 100%; overflow: visible; }
.zt { position: absolute; font-size: 12.5px; font-weight: 600; white-space: nowrap; line-height: 1; }
.zl { position: absolute; top: 28px; height: 36px; border-left: 2px dashed; }
.zd { position: absolute; top: 30px; height: 32px; border-left: 3px solid var(--ink); }
.zd b { position: absolute; top: -6px; left: 6px; background: var(--ink); color: #fff; font-size: 12.5px; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.ledger-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 10px; }
.inline { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink2); }
.ledger { max-height: 470px; overflow: auto; border: 1px solid var(--line2); border-radius: 8px; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ledger th { position: sticky; top: 0; background: var(--white); text-align: left; font-weight: 600; color: var(--ink2); font-size: 13px; padding: 8px 8px; border-bottom: 1px solid var(--line); z-index: 1; }
.ledger td { padding: 7px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.ledger tr.empty td { white-space: normal; color: var(--ink3); padding: 26px 16px; text-align: center; }
.ledger tr.b td:nth-child(2) { color: var(--buyer); font-weight: 600; }
.ledger tr.s td:nth-child(2) { color: var(--seller); font-weight: 600; }
.ledger tr.p td:nth-child(2) { color: var(--ink); font-weight: 600; }
.ledger tr.b { background: linear-gradient(90deg, var(--buyer-w) 0 4px, transparent 4px); }
.ledger tr.s { background: linear-gradient(90deg, var(--seller-w) 0 4px, transparent 4px); }
.ledger tr.p { background: #F3F5F7; }
.ledger tr.new { animation: rowin .35s ease-out; }
@keyframes rowin { from { background-color: #FFF6D6; } }
.ledger td.chg { font-weight: 700; }
.note { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line); color: var(--ink2); }
.note.accept { background: var(--ink); color: #fff; border-color: var(--ink); }
.note.final { border-color: var(--ink); color: var(--ink); }
.note.walk { border-style: dashed; }
.note.ask-human, .note.approve, .note.decline { background: #FFF4D6; border-color: #E2B33A; color: #6B4C00; }
.rate { display: inline-grid; grid-template-columns: 46px; gap: 3px; vertical-align: middle; }
.rate i { display: block; height: 5px; border-radius: 3px; background: var(--line2); position: relative; overflow: hidden; }
.rate i b { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.rate i.rb b { background: var(--buyer); } .rate i.rs b { background: var(--seller); }

.outcome { margin-top: 12px; padding: 14px 16px; border-radius: 8px; background: var(--fog); }
.outcome h4 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.outcome p { margin: 0; color: var(--ink2); font-size: 15px; }
.outcome .terms { color: var(--ink); font-weight: 600; font-size: 17px; margin: 2px 0 6px; }
.outcome.deal { background: var(--ink); color: #fff; }
.outcome.deal p { color: #C9D2DC; } .outcome.deal .terms { color: #fff; }
.outcome .ask-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.outcome.ask { background: #FFF4D6; }
.ledger-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: center; margin-top: 10px; }
.hash { margin: 0; font: 12.5px var(--mono); color: var(--ink3); overflow-wrap: anywhere; }

.you { margin-top: 12px; padding: 14px 16px; border: 1.5px solid var(--seller); border-radius: 8px; }
.you-h { margin: 0 0 10px; font-weight: 600; }
.you-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.you-fields label { display: grid; gap: 4px; font-size: 13px; color: var(--ink2); }
.you-fields input, .you-fields select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 15px; font-variant-numeric: tabular-nums; }
.you-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------------------------------------------------------------- 2 protocol */
.proto { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.seq { margin: 0; background: var(--white); border-radius: var(--r); padding: 18px; }
.seq svg { display: block; width: 100%; height: auto; }
.notes { margin: 0; display: grid; gap: 0; }
.notes div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notes dt { font: 600 14px var(--mono); padding-top: 2px; }
.notes dd { margin: 0; color: var(--ink2); }
.msg { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 34px; align-items: start; }
.msg-h { margin: 0; color: var(--ink2); }
.msg pre { background: var(--ink); color: #DCE4EE; padding: 16px 18px; border-radius: var(--r); }

/* ---------------------------------------------------------------- 3 benchmark */
.bench { background: var(--white); border-radius: var(--r); padding: 20px; }
.bench-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 16px; }
.bench-controls label { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ink2); }
.bench-controls select, .bench-controls input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); width: 96px; }
.progress { flex: 1 1 140px; height: 4px; background: var(--line2); border-radius: 2px; overflow: hidden; min-width: 120px; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .15s; }
.metric { margin-bottom: 18px; }
.heat-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.heat { display: grid; grid-template-columns: 110px repeat(4, minmax(0, 1fr)); gap: 2px; font-variant-numeric: tabular-nums; }
.heat .hc { position: relative; aspect-ratio: 1.7 / 1; display: grid; place-items: center; border-radius: 4px; font-size: 20px; font-weight: 600; cursor: default; }
.heat .hc:focus-visible { outline-offset: 0; }
.heat .hh { font-size: 14px; color: var(--ink2); display: flex; align-items: flex-end; justify-content: center; padding: 4px; text-align: center; line-height: 1.2; }
.heat .hr { font-size: 14px; color: var(--ink2); display: flex; align-items: center; line-height: 1.2; }
.heat .corner { font-size: 12.5px; color: var(--ink3); display: flex; align-items: flex-end; line-height: 1.25; }
.heat .tip { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: 230px; padding: 10px 12px; background: var(--ink); color: #fff; border-radius: 6px; font-size: 13px; font-weight: 400; line-height: 1.45; pointer-events: none; opacity: 0; transition: opacity .12s; text-align: left; }
.heat .tip { display: none; }
.heat .hc:hover .tip, .heat .hc:focus .tip { display: block; opacity: 1; }
.heat .hc:nth-child(5n) .tip, .heat .hc:nth-child(5n+4) .tip { left: auto; right: 0; transform: none; }
.heat .hc:nth-child(5n+2) .tip { left: 0; transform: none; }
.heat-say { margin: 0; color: var(--ink2); }
.heat-say b { color: var(--ink); }
.legend-ramp { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink3); }
.legend-ramp i { width: 140px; height: 8px; border-radius: 4px; }

/* ---------------------------------------------------------------- 4 paper */
.paper { max-width: 760px; margin: 0 auto; padding: 56px 64px 48px; background: var(--white); border-radius: 2px; box-shadow: 0 1px 0 var(--line2), 0 24px 48px -36px rgba(22,32,46,.45);
  font: 400 19px/1.62 var(--serif); font-variation-settings: "opsz" 16; color: #1D2733; }
.paper header { text-align: center; margin-bottom: 30px; }
.paper h3 { margin: 0; font: 600 34px/1.15 var(--serif); font-variation-settings: "opsz" 60; letter-spacing: -0.01em; }
.byline { margin: 12px 0 0; font-size: 16px; color: var(--ink2); font-style: italic; }
.abstract { margin: 0 -10px 28px; padding: 18px 26px; background: #F4F6F8; border-radius: 4px; font-size: 17px; }
.abstract h4 { margin: 0 0 4px; font: 600 15px var(--sans); }
.abstract p { margin: 0; }
.paper h4 { margin: 34px 0 10px; font: 650 17px/1.3 var(--sans); }
.pn { display: inline-block; min-width: 26px; color: var(--ink3); font-weight: 400; }
.paper p { margin: 0 0 14px; hyphens: auto; }
.paper sup a { text-decoration: none; font: 600 12px var(--sans); color: var(--buyer); padding: 0 1px; }
.eq { text-align: center; font-style: italic; font-size: 20px; margin: 18px 0 !important; }
.fig { margin: 26px -110px; padding: 18px 20px 14px; background: #F4F6F8; border-radius: 6px; }
.fig-plot svg { display: block; width: 100%; height: auto; }
.fig figcaption { margin-top: 8px; font-size: 15px; color: var(--ink2); }
.tbl { overflow-x: auto; margin: 18px 0 20px; }
.paper table { width: 100%; border-collapse: collapse; font: 15px/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.paper caption { caption-side: top; text-align: left; font: 15px var(--serif); color: var(--ink2); padding-bottom: 6px; }
.paper th, .paper td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line2); }
.paper th:first-child, .paper td:first-child { text-align: left; }
.paper thead th { border-bottom: 1.5px solid var(--ink); font-weight: 600; }
.paper ul { padding-left: 22px; margin: 0 0 14px; } .paper li { margin: 4px 0; }
.refs { font-size: 15.5px; padding-left: 22px; color: var(--ink2); }
.refs li { margin: 6px 0; }

/* ---------------------------------------------------------------- 5 docs */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 2px; }
.tabs button { text-align: left; border: 0; background: none; padding: 9px 14px; border-radius: 7px; cursor: pointer; font-size: 16px; color: var(--ink2); border-left: 3px solid transparent; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
.tabs button:hover { color: var(--ink); }
.doc { background: var(--white); border-radius: var(--r); padding: 22px 26px; max-width: 900px; min-width: 0; }
.docs > *, .source > *, .proto > *, .msg > *, .heat-wrap > * { min-width: 0; }
.doc p { margin: 0 0 14px; max-width: 72ch; }
.doc pre { background: var(--ink); color: #DCE4EE; padding: 16px 18px; border-radius: 8px; margin: 0 0 16px; }

/* ---------------------------------------------------------------- 6 source */
.source { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.release { background: var(--white); border-radius: var(--r); padding: 18px; }
.rel-h { margin: 18px 0 8px; font-weight: 700; font-size: 16px; }
.rel-h:first-child { margin-top: 0; }
.release pre { background: var(--fog); padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.dl { list-style: none; margin: 10px 0 0; padding: 0; }
.dl li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line2); }
.dl a { font: 500 14px var(--mono); }
.dl span { font-size: 14px; color: var(--ink3); }
.repo-link { display: inline-block; margin-top: 10px; font-weight: 600; }
.changes { font-size: 14.5px; color: var(--ink2); }
.changes p { margin: 0 0 4px; color: var(--ink); font-weight: 600; }
.changes ul { margin: 0; padding-left: 18px; } .changes li { margin: 4px 0; }
.release textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font: 12.5px var(--mono); resize: vertical; margin-bottom: 8px; }
.verify-out { margin: 8px 0 0; font-size: 14px; min-height: 1.4em; }
.verify-out.ok { color: #1E6B3A; } .verify-out.bad { color: #A11D3E; }
.files { min-width: 0; }
.filetable { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; font-size: 14px; font-variant-numeric: tabular-nums; }
.filetable th { text-align: left; font-weight: 600; color: var(--ink2); padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.filetable td { padding: 0; border-bottom: 1px solid var(--line2); }
.filetable td > * { display: block; padding: 8px 12px; }
.filetable button { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font: 500 14px var(--mono); color: var(--buyer); }
.filetable tr.on { background: var(--buyer-w); }
.filetable tr.on button { color: var(--ink); font-weight: 700; }
.filetable .h { font: 12.5px var(--mono); color: var(--ink3); white-space: nowrap; }
.viewer { margin-top: 16px; background: var(--white); border-radius: var(--r); overflow: hidden; }
.viewer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line2); }
.viewer-head b { font: 600 14px var(--mono); }
.viewer-head span { font-size: 13px; color: var(--ink3); margin-right: auto; }
.code { max-height: 560px; padding: 14px 0; counter-reset: ln; font-size: 13px; }
.code .l { display: block; padding: 0 16px 0 0; white-space: pre; }
.code .l::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 46px; padding-right: 14px; text-align: right; color: var(--ink3); user-select: none; }
.md { padding: 6px 28px 22px; max-height: 620px; overflow: auto; font-size: 16px; }
.md h1 { font-size: 34px; font-stretch: 80%; margin: 18px 0 6px; } .md h2 { font-size: 23px; margin: 26px 0 8px; } .md h3 { font-size: 18px; }
.md p, .md li { max-width: 74ch; }
.md pre { background: var(--ink); color: #DCE4EE; padding: 14px 16px; border-radius: 8px; margin: 0 0 14px; }
.md .tw { overflow-x: auto; margin: 0 0 14px; }
.md table { border-collapse: collapse; font-size: 14.5px; }
.md th, .md td { border-bottom: 1px solid var(--line2); padding: 6px 10px; text-align: left; vertical-align: top; }
.md pre.raw { background: var(--fog); color: var(--ink); white-space: pre-wrap; }

/* ---------------------------------------------------------------- 7 market */
.market { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "quote screen" "contract screen"; gap: 20px 24px; align-items: start; }
.quote { grid-area: quote; }
.q-eq { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.q-one { font-size: 16px; color: var(--ink2); width: 100%; }
.q-eq b { font-weight: 700; font-stretch: 78%; font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.q-chg { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.q-chg.up { color: #1E6B3A; } .q-chg.down { color: #A11D3E; }
.q-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.q-table th { text-align: left; font-weight: 400; color: var(--ink2); padding: 7px 0; border-bottom: 1px solid var(--line); }
.q-table td { text-align: right; font-weight: 600; padding: 7px 0; border-bottom: 1px solid var(--line); }
.q-when { margin: 8px 0 0; font-size: 13px; color: var(--ink3); }
.screen { grid-area: screen; background: var(--ink); border-radius: 14px; padding: 12px; }
.screen-in { position: relative; height: 560px; border-radius: 8px; overflow: hidden; background: #0E1622; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.standby { position: absolute; inset: 0; display: grid; place-items: center; color: #8C9AAB; font-size: 15px; background: #0E1622; transition: opacity .4s; }
.standby.off { opacity: 0; pointer-events: none; }
.screen-out { display: inline-block; margin: 10px 4px 2px; color: #C9D2DC; font-size: 14px; }
.contract { grid-area: contract; }
.ct-h { margin: 0 0 8px; font-weight: 600; }
.ca-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; font: 500 15px var(--mono); }
.ca-groups span { padding: 4px 6px; background: var(--white); border-radius: 4px; border: 1px solid var(--line2); }
.ca-full { margin: 0 0 12px; font: 12px var(--mono); color: var(--ink3); overflow-wrap: anywhere; text-align: center; }
.copy-note { margin: 8px 0 0; font-size: 14px; min-height: 1.3em; color: #1E6B3A; }
.links { display: grid; gap: 8px; margin-top: 10px; }
.links a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { border-color: var(--ink); }
.links img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }
.links .at { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--fog2); font-weight: 700; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 110px; background: var(--ink); color: #C9D2DC; overflow: hidden; }
.foot-cols { max-width: 1440px; margin: 0 auto; padding: 48px 28px 10px; display: grid; grid-template-columns: 200px 200px minmax(0, 1fr); gap: 24px; }
.foot a { display: block; color: #fff; text-decoration: none; padding: 3px 0; font-size: 15px; }
.foot a:hover { text-decoration: underline; }
.fh { margin: 0 0 8px; color: #8C9AAB; font-size: 14px; }
.fnote { justify-self: end; max-width: 420px; font-size: 14px; }
.fnote p { margin: 0 0 8px; }
.foot-word { margin: 0; text-align: center; font-weight: 800; font-stretch: 75%; font-variation-settings: "opsz" 96; font-size: 31vw; line-height: .74; letter-spacing: -0.04em; color: #1F2D40; transform: translateY(14%); user-select: none; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1180px) {
  .tablegrid { grid-template-columns: 1fr 1fr; }
  .ledger-wrap { grid-column: 1 / -1; grid-row: 2; }
  .agenda ol { grid-template-columns: repeat(4, 1fr); }
  .agenda li:nth-child(4) a { border-right: 0; }
  .fig { margin-left: -40px; margin-right: -40px; }
}
@media (max-width: 900px) {
  .hero-copy { position: static; width: auto; padding: 26px 22px 10px; transform: none; }
  .plane { display: flex; flex-direction: column-reverse; }
  .proto, .msg, .heat-wrap, .docs, .source { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; flex-wrap: wrap; }
  .tabs button { border-left: 0; border-bottom: 2px solid transparent; }
  .tabs button[aria-selected="true"] { border-bottom-color: var(--ink); }
  .market { grid-template-columns: 1fr; grid-template-areas: "quote" "screen" "contract"; }
  .sec-head { grid-template-columns: 48px 1fr; }
  .sec-head p { grid-column: 1 / -1; margin-top: 10px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .fnote { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { padding: 8px 14px; }
  .tp-ca { display: none; }
  .hero { padding: 14px 12px 0; }
  .hero-copy { padding: 22px 16px 8px; }
  .hero h1 { font-size: 46px; }
  .agenda { padding: 0 12px; }
  .agenda ol { grid-template-columns: 1fr 1fr; }
  .agenda a { margin-right: 10px; padding-right: 0; }
  .agenda li:nth-child(odd) a { border-right: 1px solid var(--line); }
  .agenda li:nth-child(even) a { border-right: 0; }
  .agenda a::before { font-size: 30px; }
  .sec { padding: 64px 12px 0; }
  .sec-n { font-size: 46px; }
  .tablegrid { grid-template-columns: 1fr; }
  .ledger-wrap { grid-row: auto; padding: 12px; }
  .ledger-wrap { order: 2; } .party.seller { order: 3; } .party.you-card { order: 1; }
  .ledger { max-height: 420px; }
  .you-fields { grid-template-columns: 1fr 1fr; }
  .paper { padding: 30px 18px 30px; font-size: 17.5px; }
  .paper h3 { font-size: 27px; }
  .abstract { margin: 0 0 24px; padding: 14px 16px; }
  .fig { margin: 22px -10px; padding: 12px; }
  .bench { padding: 14px; }
  .heat { grid-template-columns: 74px repeat(4, minmax(0, 1fr)); }
  .heat .hc { font-size: 15px; aspect-ratio: 1.1 / 1; }
  .heat .hh, .heat .hr { font-size: 12px; }
  .heat .tip { width: 180px; }
  .doc { padding: 16px; }
  .md { padding: 4px 16px 18px; }
  .screen-in { height: 440px; }
  .notes div { grid-template-columns: 96px 1fr; }
  .filetable th:nth-child(2), .filetable td:nth-child(2) { display: none; }
  .filetable button { overflow-wrap: anywhere; font-size: 13px; }
  .filetable .h { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
