@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }
/* World sandbox DD — an auction lot catalogue.
   Research is printed in ink; your own judgment is pencilled in a blue-black. One red marks change. */
:root {
  --paper: #ffffff;
  --paper-2: #f4f5f6;
  --ink: #111214;
  --ink-2: #4f545b;          /* secondary text, 7.6:1 on paper */
  --rule: #d5d8dc;
  --rule-strong: #9aa0a7;
  --pencil: #1d3557;         /* your marks */
  --pencil-wash: #e8eef6;
  --red: #c4122f;            /* changed, conflict, high threat */
  --red-wash: #fbe9ec;
  --ok: #1d6b45;
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--pencil); color: #fff; }
a { color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--pencil); }
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; border-radius: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
* { scrollbar-color: var(--rule-strong) transparent; scrollbar-width: thin; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: stretch; gap: var(--s5);
  padding: 0 var(--s5); background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.sale { display: flex; flex-direction: column; justify-content: center; padding: var(--s2) 0; text-decoration: none; }
.sale { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; }
.crumbs { display: contents; }
.crumbs a { font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; grid-row: 1; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { display: none; }
.sale-title { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; grid-row: 1; white-space: nowrap; }
.sale-title::before { content: "/"; font-weight: 400; color: var(--rule-strong); margin-right: 6px; }
.sale-sub { grid-column: 1 / -1; }
.sale-sub { color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.tabs { display: flex; gap: 0; margin-left: var(--s5); }
.tabs a {
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px; padding: 0 var(--s4);
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 13px;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.count { font-weight: 700; color: var(--pencil); }
.count:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gsearch { margin-left: auto; display: flex; align-items: center; position: relative; }
.gsearch input {
  width: 300px; padding: 6px 30px 6px 10px; border: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper);
}
.gsearch input::placeholder { color: var(--ink-2); }
.gsearch input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--ink); }
.gsearch kbd {
  position: absolute; right: 8px; font: 600 11px var(--font); color: var(--ink-2);
  border: 1px solid var(--rule); padding: 0 5px; pointer-events: none;
}
.gsearch input:focus + kbd, .gsearch input:not(:placeholder-shown) + kbd { display: none; }
.me { margin-left: var(--s4); display: flex; align-items: center; color: var(--pencil); font-size: 12px; }

main { padding: 0 var(--s5) var(--s7); outline: none; }

/* ---------- loading / toast ---------- */
.loading { padding-top: var(--s5); }
.sk { background: linear-gradient(90deg, var(--paper-2), #eceef0, var(--paper-2)); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
.sk-band { height: 64px; margin-bottom: var(--s4); }
.sk-row { height: 28px; margin-bottom: 2px; }
@keyframes sk { to { background-position: -200% 0; } }
#toast {
  position: fixed; bottom: var(--s5); left: 50%; transform: translate(-50%, 12px);
  background: var(--ink); color: #fff; padding: var(--s2) var(--s4); font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease-out, transform .18s ease-out;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--red); }

/* ---------- key findings ---------- */
.findings { padding: var(--s5) 0 var(--s4); border-bottom: 1px solid var(--rule); }
.findings summary {
  cursor: pointer; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2);
  list-style-position: outside; width: max-content;
}
.findings summary:hover { color: var(--ink); }
.findings ul { margin: var(--s2) 0 0; padding-left: 18px; columns: 2 420px; column-gap: var(--s6); }
.findings li { break-inside: avoid; margin-bottom: 8px; max-width: 72ch; line-height: 1.55; }
.findings .flots { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.findings .flots a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.findings .flots a:hover { color: var(--pencil); text-decoration: underline; }

/* ---------- sale summary band ---------- */
.band {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule); margin: 0 calc(var(--s5) * -1);
}
.band > section { padding: var(--s4) var(--s5); border-right: 1px solid var(--rule); min-width: 0; }
.band > section:last-child { border-right: 0; }
.band h2 { display: flex; align-items: baseline; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: var(--s3); }
.h2n { font-size: 12px; font-weight: 800; letter-spacing: 0; color: var(--ink); }
.h2n.red { color: var(--red); }
.band > section { padding-top: var(--s5) !important; padding-bottom: var(--s5) !important; }
.progress { display: flex; height: 10px; background: var(--paper-2); margin: var(--s2) 0 var(--s2); }
.progress span { display: block; height: 100%; }
.st-not-started { background: var(--paper-2); }
.st-reading { background: #9fb3cc; }
.st-questions-out { background: #5a7aa3; }
.st-done { background: var(--pencil); }
.st-pass { background: #b9bec4; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: 12px; color: var(--ink-2); }
.legend button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.legend button:hover { color: var(--ink); }
.legend button[aria-pressed="true"] { color: var(--pencil); font-weight: 700; }
.legend i { width: 9px; height: 9px; display: inline-block; border: 1px solid var(--rule-strong); }
.big { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.lotlist { list-style: none; margin: 0; padding: 0; font-size: 13px; columns: 2 180px; column-gap: var(--s4); }
.lotlist li { display: flex; gap: 10px; padding: 2px 0; break-inside: avoid; }
.lotlist .ll-no { color: var(--ink-2); font-weight: 700; min-width: 18px; }
.lotlist a { text-decoration: none; }
.lotlist a:hover { text-decoration: underline; }
.moved { list-style: none; margin: 0; padding: 0; font-size: 12px; max-height: 66px; overflow: auto; }
.moved li { display: flex; justify-content: space-between; gap: var(--s2); }
.moved a { text-decoration: none; }
.delta { color: var(--red); font-weight: 700; }
.muted { color: var(--ink-2); }

/* ---------- filters ---------- */
.filters {
  position: sticky; top: 49px; z-index: 5; background: var(--paper);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
  padding: var(--s3) 0; border-bottom: 1px solid var(--ink);
}
.filters input[type="search"] {
  width: 260px; padding: 6px 10px; border: 1px solid var(--rule-strong); background: var(--paper); border-radius: 0;
}
.filters input[type="search"]::placeholder { color: var(--ink-2); }
.filters select { padding: 5px 8px; border: 1px solid var(--rule-strong); background: var(--paper); border-radius: 0; }
.chip {
  all: unset; cursor: pointer; padding: 4px 10px; border: 1px solid var(--rule-strong); font-size: 12px; font-weight: 600;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.red[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.chip:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; }
.filters .shown { margin-left: auto; color: var(--ink-2); font-size: 12px; }

/* ---------- table bar + column menu ---------- */
.tablebar { display: flex; justify-content: space-between; align-items: center; padding: var(--s5) 0 var(--s3); font-size: 12px; }
.linkbtn { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; color: var(--ink-2); }
.linkbtn:hover { color: var(--ink); }
.linkbtn:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; }
.colmenu { position: relative; }
.colmenu summary { cursor: pointer; list-style: none; padding: 4px 10px; border: 1px solid var(--rule-strong); font-weight: 600; user-select: none; }
.colmenu summary::-webkit-details-marker { display: none; }
.colmenu summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.colmenu[open] summary { border-color: var(--ink); }
.colmenu summary:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; }
.colmenu-panel {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px;
  background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 6px 18px rgba(17,18,20,.12);
  padding: var(--s2) var(--s3);
}
.colmenu-panel label { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; cursor: pointer; }
.colmenu-panel input { accent-color: var(--pencil); }
.colmenu-foot { display: flex; justify-content: space-between; gap: var(--s3); border-top: 1px solid var(--rule); margin-top: var(--s2); padding-top: var(--s2); }

/* ---------- lot index ---------- */
table.lots { width: 100%; border-collapse: collapse; }
.lots th {
  position: sticky; top: 57px; z-index: 4; background: var(--paper);
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2);
  padding: 8px 10px; border-bottom: 1px solid var(--ink); white-space: nowrap; letter-spacing: .06em;
}
.lots th button { all: unset; cursor: pointer; }
.lots th button:hover { color: var(--ink); }
.lots th button[data-dir]::after { content: attr(data-dir); margin-left: 4px; color: var(--pencil); }
.lots th button:focus-visible { outline: 2px solid var(--pencil); }
.lots td { padding: 10px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lots tr.group td {
  padding: var(--s6) 10px var(--s2); border-bottom: 1px solid var(--rule-strong);
  font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
}
.lots tr.group:first-child td { padding-top: var(--s4); }
.lots tr.group .muted { font-weight: 400; text-transform: none; letter-spacing: 0; }
.lots tr.lot { cursor: pointer; }
.lots tr.lot td { transition: background-color .15s ease-out; }
.lots tr.lot:hover td { background: #f7f8f9; }
.lots tr.lot.is-pass td { color: var(--ink-2); }
.lots tr.lot.is-pass .name { text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.lotno { font-weight: 600; width: 44px; white-space: nowrap; color: var(--ink-2); }
.name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.name a { text-decoration: none; }
.oneliner { display: block; color: var(--ink-2); font-size: 12px; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lotno, .h2n, .ll-no, .timeline time { font-variant-numeric: tabular-nums; }
.num { text-align: right; white-space: nowrap; }
.links { white-space: nowrap; }
.ilink { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: -4px 2px 0 -5px; color: #6b7078; border-radius: 2px; vertical-align: middle; transition: color .15s ease-out, background-color .15s ease-out; }
.ilink:hover { color: var(--pencil); background: var(--pencil-wash); }
.ilink:focus-visible { outline: 2px solid var(--pencil); outline-offset: 0; }
.xref { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.xref:hover { color: var(--pencil); text-decoration-color: currentColor; }
.people-cell { font-size: 13px; white-space: nowrap; line-height: 1.55; }
.people-cell a { text-decoration-color: var(--rule-strong); }
.person { display: flex; align-items: center; gap: 2px; }
.person .ilink { width: 20px; height: 20px; margin: 0 0 0 2px; }
.person .ilink svg { width: 12px; height: 12px; }
.people-cell a:hover { text-decoration-color: currentColor; }
.cust a.cs { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pencil); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.cust a.cs:hover { color: var(--pencil); }
.cust { font-size: 13px; max-width: 24ch; color: var(--ink); line-height: 1.45; }
.unv { color: var(--ink-2); font-style: italic; }
.nf { color: var(--ink-2); }
.cmp-box { width: 28px; }
.cmp-box input { accent-color: var(--pencil); width: 15px; height: 15px; margin: 2px 0 0; cursor: pointer; }
.tier { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }

/* threat: four printed blocks */
.threat-cell { white-space: nowrap; }
.threat { display: inline-flex; gap: 2px; vertical-align: middle; }
.threat i { width: 7px; height: 11px; background: var(--paper-2); border: 1px solid var(--rule-strong); }
.threat.low i:nth-child(-n+1),
.threat.medium i:nth-child(-n+2) { background: var(--ink); border-color: var(--ink); }
.threat.high i:nth-child(-n+3) { background: var(--red); border-color: var(--red); }
.threat-label { font-size: 12px; margin-left: 6px; }

/* pencil marks */
.mark { color: var(--pencil); font-weight: 600; font-size: 12px; white-space: nowrap; }
.mark.empty { color: var(--rule-strong); font-weight: 400; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--pencil); }
.dots i.on { background: var(--pencil); }
.flag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--red); border: 1px solid var(--red); padding: 0 4px; margin-left: 6px; vertical-align: 1px;
}

/* ---------- lot page ---------- */
.lot-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s5); align-items: end;
  padding: var(--s5) 0 var(--s4); border-bottom: 2px solid var(--ink);
}
.lot-num { font-size: 72px; font-weight: 800; line-height: .85; letter-spacing: -0.04em; }
.lot-num small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 6px; }
.lot-title h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.lot-title p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; max-width: 70ch; }
.lot-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: flex-end; font-size: 13px; }
.lot-nav { display: flex; justify-content: space-between; padding: var(--s2) 0; font-size: 12px; border-bottom: 1px solid var(--rule); }
.lot-nav a { text-decoration: none; color: var(--ink-2); }
.lot-nav a:hover { color: var(--ink); }

.lot-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; }
.entry { padding-right: var(--s6); border-right: 1px solid var(--rule); }
.entry section { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); }
.entry section:last-child { border-bottom: 0; }
.entry h2 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--s3); }
.entry p { margin: 0 0 var(--s3); max-width: 72ch; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 0; margin: 0; }
.facts dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid var(--rule); }
.facts dd { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--rule); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 4px 8px 4px 0; border-bottom: 1px solid var(--rule-strong); }
.grid td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.condition { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.condition > div { padding-right: var(--s4); }
.condition > div + div { padding-left: var(--s4); border-left: 1px solid var(--rule); }
.condition h3 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--s2); }
.condition h3.r { color: var(--red); }
ul.plain { margin: 0; padding-left: 16px; }
ul.plain li { margin-bottom: 4px; }
.services { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--s2); }
.services span { font-size: 12px; border: 1px solid var(--rule); padding: 1px 6px; }
.provenance { columns: 2; column-gap: var(--s5); font-size: 12px; padding-left: 16px; margin: 0; }
.provenance li { break-inside: avoid; margin-bottom: 3px; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: var(--s3); padding: 4px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.timeline time { color: var(--ink-2); font-weight: 600; }

/* obsolete */
.flag.obs { color: var(--ink-2); border-color: var(--rule-strong); }
.big-flag { font-size: 11px; vertical-align: 6px; margin-left: 10px; }
.lots tr.lot.is-obsolete td { color: var(--ink-2); }
.lots tr.lot.is-obsolete .name a { text-decoration: line-through; text-decoration-color: var(--rule-strong); color: var(--ink-2); }
.field.obs { padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); }
.field.obs.is-on .lab { color: var(--ink-2); }
.obs-row { display: flex; gap: 6px; align-items: stretch; }
.obs-reason { flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid var(--rule-strong); border-radius: 0; background: var(--paper); font-size: 12px; color: var(--ink); }
.obs-reason:focus { outline: none; border-color: var(--pencil); }
.obs-row .btn { margin-top: 0; white-space: nowrap; }
.obs-who { margin: 0 0 6px; font-size: 12px; color: var(--ink-2); }
.colmenu-sep { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); border-top: 1px solid var(--rule); margin-top: var(--s2); padding-top: var(--s2); }

/* your marks panel */
.marks { padding: var(--s5) 0 var(--s5) var(--s5); color: var(--pencil); }
.marks-inner { position: sticky; top: 72px; }
.marks h2 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--s3); display: flex; justify-content: space-between; align-items: baseline; }
.marks h2 small { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--ink-2); }
.field { margin-bottom: var(--s4); }
.field > .lab { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; border-top: 1px solid var(--pencil); border-left: 1px solid var(--pencil); }
.seg button { all: unset; cursor: pointer; flex: 1 1 auto; text-align: center; padding: 5px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--paper); border-right: 1px solid var(--pencil); border-bottom: 1px solid var(--pencil); }
.seg button:hover { background: var(--pencil-wash); }
.seg button[aria-pressed="true"] { background: var(--pencil); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.seg button:disabled { opacity: .5; cursor: progress; }
.checks label, .qs label { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 13px; cursor: pointer; }
.checks input, .qs input { accent-color: var(--pencil); margin-top: 3px; flex: none; }
.qs label { color: var(--ink); }
.qs label.done span { color: var(--ink-2); text-decoration: line-through; }
.note-form textarea {
  width: 100%; min-height: 76px; resize: vertical; padding: 8px; border: 1px solid var(--pencil); border-radius: 0;
  background: var(--paper); color: var(--pencil);
}
.note-form textarea::placeholder { color: #6b7e98; }
.btn {
  all: unset; cursor: pointer; display: inline-block; margin-top: 6px; padding: 6px 14px;
  background: var(--pencil); color: #fff; font-size: 12px; font-weight: 700;
}
.btn:hover { background: #12243b; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.ghost { background: transparent; color: var(--pencil); border: 1px solid var(--pencil); }
.notes { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.notes li { padding: var(--s2) 0; border-top: 1px solid var(--rule); font-size: 13px; }
.notes .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-bottom: 2px; }
.notes .meta button { all: unset; cursor: pointer; text-decoration: underline; }
.notes p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.empty-note { font-size: 12px; color: var(--ink-2); }

/* ---------- questions ledger ---------- */
.ledger-head { padding: var(--s5) 0 var(--s3); border-bottom: 2px solid var(--ink); display: flex; align-items: baseline; gap: var(--s4); }
.ledger-head h1 { font-size: 22px; font-weight: 800; }
.ledger section { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 220px 1fr; gap: var(--s4); }
.ledger h2 { font-size: 13px; font-weight: 800; }
.ledger h2 a { text-decoration: none; }
.ledger h2 small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12px; }

/* ---------- search results ---------- */
.results { list-style: none; margin: 0; padding: 0; }
.results > li { display: grid; grid-template-columns: 220px 1fr; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.results h2 { font-size: 13px; font-weight: 800; }
.results h2 a { text-decoration: none; }
.results h2 small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.hits { list-style: none; margin: 0; padding: 0; }
.hits li { display: grid; grid-template-columns: 110px 1fr; gap: var(--s3); padding: 3px 0; font-size: 13px; }
.hits .where { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding-top: 2px; }
.hits .where.pencil { color: var(--pencil); }
.hits .more { color: var(--ink-2); font-size: 12px; }
mark { background: #fff0a8; color: inherit; padding: 0 1px; }
.search-tips { color: var(--ink-2); font-size: 13px; }
.search-tips code { font-family: var(--mono); font-size: 12px; background: var(--paper-2); padding: 0 4px; }

/* ---------- compare ---------- */
.cmp-wrap { overflow-x: auto; margin-top: var(--s4); }
table.cmp { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.cmp th, .cmp td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; min-width: 200px; max-width: 280px; }
.cmp th[scope="row"] { min-width: 130px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); position: sticky; left: 0; background: var(--paper); }
.cmp thead th { border-bottom: 2px solid var(--ink); }
.cmp thead .lotno { font-size: 28px; display: block; }
.cmp thead a { text-decoration: none; font-weight: 800; font-size: 15px; }
.cmp thead button { all: unset; cursor: pointer; font-size: 11px; color: var(--ink-2); text-decoration: underline; }
.empty-state { padding: var(--s7) 0; max-width: 60ch; }
.empty-state h1 { font-size: 22px; font-weight: 800; margin-bottom: var(--s2); }
.empty-state p { color: var(--ink-2); }
.err-state { padding: var(--s6) 0; color: var(--red); }

@media (max-width: 1400px) {
  .gsearch input { width: 220px; }
  .tabs { margin-left: 0; }
  .tabs a { padding: 0 var(--s3); }
}
@media (max-width: 1100px) {
  .gsearch input { width: 180px; }
  .sale-sub { display: none; }
  .band { grid-template-columns: 1fr 1fr; }
  .band > section:nth-child(2) { border-right: 0; }
  .band > section:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .lot-body { grid-template-columns: 1fr; }
  .entry { padding-right: 0; border-right: 0; }
  .marks { padding-left: 0; border-top: 2px solid var(--ink); }
  .col-cat, .col-catalog { display: none; }
}
@media (max-width: 720px) {
  main { padding: 0 var(--s3) var(--s6); }
  .masthead { padding: 0 var(--s3); gap: var(--s2); flex-wrap: wrap; }
  .tabs { margin-left: 0; order: 3; width: 100%; }
  .tabs a { padding: var(--s2) var(--s3); }
  .me { display: none; }
  .gsearch { order: 2; width: 100%; margin: 0 0 var(--s2); }
  .gsearch input { width: 100%; }
  .results > li, .hits li { grid-template-columns: 1fr; gap: 2px; }
  .band { grid-template-columns: 1fr; margin: 0 calc(var(--s3) * -1); }
  .band > section { border-right: 0; border-bottom: 1px solid var(--rule); }
  .filters { position: static; }
  .filters input[type="search"] { width: 100%; }
  .lots th { position: static; }
  .col-stage, .col-build, .col-invest, .col-checks, .col-status, .oneliner, .lots .threat-label { display: none; }
  .filters select { flex: 1 1 40%; min-width: 0; }
  .lots td, .lots th { padding: 5px 4px; }
  .band .muted { overflow-wrap: anywhere; }
  .lot-head { grid-template-columns: 1fr; gap: var(--s2); }
  .lot-num { font-size: 48px; }
  .lot-links { justify-content: flex-start; }
  .condition { grid-template-columns: 1fr; }
  .condition > div + div { padding-left: 0; border-left: 0; margin-top: var(--s3); }
  .provenance { columns: 1; }
  .facts { grid-template-columns: 110px 1fr; }
  .ledger section { grid-template-columns: 1fr; gap: var(--s2); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- research home ---------- */
.home { max-width: 880px; margin: 0 auto; padding: var(--s7) var(--s5); }
.home main { padding: 0; }
.home-mast { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: var(--s3); }
.home-mast .brand { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; }
.home-mast .who { font-size: 12px; color: var(--pencil); }
.home-mast .who a { color: var(--ink-2); margin-left: var(--s3); }
.home h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: var(--s7) 0 var(--s3); max-width: 18ch; }
.home .lede { font-size: 16px; color: var(--ink-2); max-width: 56ch; margin: 0 0 var(--s5); }
.signin { display: inline-block; padding: 10px 20px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.signin:hover { background: var(--pencil); color: #fff; }
.home .fine { font-size: 12px; color: var(--ink-2); margin-top: var(--s3); }
.spaces { list-style: none; margin: var(--s6) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.spaces li { border-bottom: 1px solid var(--rule); }
.spaces a { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s4); align-items: baseline; padding: var(--s4) 0; text-decoration: none; }
.spaces a:hover .sp-name { color: var(--pencil); text-decoration: underline; }
.sp-no { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.sp-name { font-size: 18px; font-weight: 800; }
.sp-desc { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; max-width: 60ch; }
.sp-meta { font-size: 12px; color: var(--pencil); font-weight: 600; white-space: nowrap; }
.spaces li.soon a { pointer-events: none; }
.spaces li.soon .sp-name, .spaces li.soon .sp-no { color: var(--rule-strong); }
@media (max-width: 720px) {
  .home { padding: var(--s5) var(--s3); }
  .home h1 { font-size: 30px; margin-top: var(--s6); }
  .spaces a { grid-template-columns: 44px 1fr; }
  .sp-meta { grid-column: 2; }
}
.grid.custs { margin-bottom: var(--s5); }

.company-head { grid-template-columns: 1fr auto; }
.az { list-style: none; margin: 0; padding: 0; columns: 1; }
.az-letter { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--ink-2); padding: var(--s5) 0 var(--s2); border-bottom: 1px solid var(--rule-strong); }
.az-row { display: grid; grid-template-columns: 260px 1fr 140px; gap: var(--s4); padding: 8px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.az-name { font-weight: 700; font-size: 15px; text-decoration: none; }
.az-name:hover { color: var(--pencil); text-decoration: underline; }
.az-desc { color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-meta { font-size: 12px; color: var(--ink-2); text-align: right; }
.az-row.is-obsolete .az-name { text-decoration: line-through; color: var(--ink-2); }
@media (max-width: 720px) { .az-row { grid-template-columns: 1fr; gap: 2px; } .az-meta { text-align: left; } }

/* ================= refinement pass: clean, quiet, sleek ================= */
:root {
  --rule: #e6e8eb;
  --rule-strong: #c9cdd2;
  --radius: 6px;
}
/* masthead */
.masthead { border-bottom: 1px solid var(--rule); box-shadow: 0 1px 0 rgba(17,18,20,.02); backdrop-filter: saturate(1.4) blur(8px); background: rgba(255,255,255,.92); }
.tabs a { border-bottom-width: 2px; margin-bottom: -1px; color: #6b7078; }
.tabs a[aria-current="page"] { border-bottom-color: var(--ink); }
.gsearch input { border-radius: var(--radius); border-color: var(--rule-strong); background: #fafbfb; }
.gsearch input:focus { background: var(--paper); box-shadow: 0 0 0 3px var(--pencil-wash); border-color: var(--pencil); }
.gsearch kbd { border-radius: 4px; }
.me { color: var(--ink-2); }

/* section labels: quieter */
.band h2, .entry h2, .marks h2, .findings summary, .lots th, .facts dt, .kn-l, .colmenu-sep, .fn h3 { color: #7a7f87; }
.entry h2, .marks h2 { font-size: 11px; letter-spacing: .08em; font-weight: 700; margin-bottom: var(--s4); }
.entry section { padding: var(--s6) 0; }

/* band + findings */
.band { border-bottom: 1px solid var(--rule); }
.band > section { border-right: 1px solid var(--rule); }
.findings { border-bottom: 1px solid var(--rule); }

/* lot index table */
.lots th { border-bottom: 1px solid var(--rule-strong); font-weight: 600; }
.lots tr.group td { border-bottom: 1px solid var(--rule); color: var(--ink); }
.lots td { border-bottom: 1px solid var(--rule); }
.lots tr.lot:hover td { background: #f8f9fa; }
.lots tr.lot.is-obsolete td { background: none; opacity: .5; }
.lots tr.lot.is-obsolete:hover td { opacity: .8; }
.tablebar { padding-top: var(--s6); }
.colmenu summary { border-radius: var(--radius); border-color: var(--rule-strong); }
.colmenu-panel { border-radius: 8px; border-color: var(--rule-strong); box-shadow: 0 12px 32px rgba(17,18,20,.12), 0 2px 6px rgba(17,18,20,.06); padding: var(--s3) var(--s4); }

/* company / lot page */
.lot-nav { border-bottom: 0; padding: var(--s4) 0 0; }
.lot-head { border-bottom: 1px solid var(--rule); padding: var(--s5) 0 var(--s6); }
.lot-title h1 { font-size: 34px; letter-spacing: -0.025em; }
.lot-title p { color: #565b62; }
.lot-links a { color: var(--ink-2); text-decoration-color: var(--rule-strong); }
.lot-links a:hover { color: var(--pencil); }
.entry { border-right: 1px solid var(--rule); }
.entry section { border-bottom: 1px solid var(--rule); }
.facts dt, .facts dd { border-bottom-color: var(--rule); padding: 9px 0; }
.facts dt { font-weight: 600; }
.grid th { border-bottom-color: var(--rule-strong); color: #7a7f87; font-weight: 600; }
.grid td { border-bottom-color: var(--rule); }
.condition > div + div { border-left-color: var(--rule); }
.services span { border-radius: 999px; border-color: var(--rule); padding: 2px 10px; background: #fafbfb; }

/* marks panel: calmer controls with one radius */
.marks { padding-left: var(--s6); }
.seg { border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; background: var(--rule-strong); gap: 1px; }
.seg button { border: 0 !important; color: #3d4a5c; }
.seg button:hover { background: #f3f6fa; }
.seg button[aria-pressed="true"] { background: var(--pencil); color: #fff; }
.btn { border-radius: var(--radius); padding: 7px 14px; }
.btn.ghost { border-color: var(--rule-strong); color: var(--pencil); }
.btn.ghost:hover { border-color: var(--pencil); background: var(--pencil-wash); }
.note-form textarea, .obs-reason { border-radius: var(--radius); border-color: var(--rule-strong); }
.note-form textarea:focus, .obs-reason:focus { outline: none; border-color: var(--pencil); box-shadow: 0 0 0 3px var(--pencil-wash); }
.field.obs { border-bottom-color: var(--rule); }
.checks label, .qs label { padding: 5px 0; }

/* flags */
.flag { border-radius: 4px; padding: 1px 6px; }

/* home */
.home-mast { border-bottom: 1px solid var(--rule-strong); }
.spaces { border-top: 1px solid var(--rule-strong); }
.spaces li { border-bottom-color: var(--rule); }
.signin { border-radius: var(--radius); padding: 11px 22px; }

/* A–Z */
.az-letter { border-bottom-color: var(--rule); }
.az-row { border-bottom-color: var(--rule); }

/* questions ledger, search */
.ledger-head { border-bottom: 1px solid var(--rule-strong); }
.ledger section, .results > li { border-bottom-color: var(--rule); }
.lot-body { grid-template-columns: minmax(0, 1fr) 400px; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.seg button { padding: 6px 8px; }
@media (max-width: 1100px) { .lot-body { grid-template-columns: 1fr; } }

/* ---------- overview, report, compare ---------- */
.page-head { padding: var(--s6) 0 var(--s4); border-bottom: 1px solid var(--rule-strong); }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.page-head p { margin: var(--s2) 0 0; max-width: 72ch; color: #565b62; font-size: 15px; }
.page-head p.small { font-size: 12px; }
.ov-sec { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); }
.ov-sec h2, .report h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #7a7f87; margin-bottom: var(--s3); }
.ov-findings { margin: 0; padding-left: 20px; columns: 2 420px; column-gap: var(--s6); }
.ov-findings li { break-inside: avoid; margin-bottom: 10px; line-height: 1.55; max-width: 72ch; }
.ov-table td { vertical-align: top; }
.ov-table .why { color: #565b62; font-size: 13px; max-width: 60ch; }
.name-link { font-weight: 700; text-decoration: none; }
.name-link:hover { text-decoration: underline; color: var(--pencil); }
.flag.ref { color: var(--pencil); border-color: var(--pencil); }
.report { max-width: 980px; }
.report section { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); }
.report p { max-width: 72ch; line-height: 1.6; margin: 0 0 var(--s3); font-size: 15px; }
.report h3 { font-size: 13px; font-weight: 700; margin: var(--s4) 0 var(--s2); }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.chart { margin: 0; position: relative; }
.chart figcaption { font-size: 13px; font-weight: 700; margin-bottom: var(--s3); }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: 12px; }
.bar-label { color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.bar-label:hover { color: var(--pencil); text-decoration: underline; }
.bar-track { height: 12px; position: relative; }
.bar { display: block; height: 100%; background: var(--pencil); border-radius: 0 4px 4px 0; transition: opacity .15s ease-out; }
.bar:hover, .bar:focus-visible { opacity: .8; outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--pencil-wash); }
.bar-val { color: #565b62; text-align: right; font-variant-numeric: tabular-nums; }
.chart-note { font-size: 12px !important; color: #7a7f87; margin-top: var(--s2) !important; }
.chart-tip { position: absolute; pointer-events: none; opacity: 0; background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; transition: opacity .12s ease-out; z-index: 5; }
.map-list { list-style: none; margin: 0; padding: 0; }
.map-list li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 14px; }
.map-list li a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.map-list li a:hover { text-decoration: underline; }
.map-list .threat-label { display: none; }
.cmp-bar { display: flex; gap: var(--s2); align-items: center; padding: var(--s4) 0; }
.cmp-add { width: 320px; padding: 7px 10px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); }
.cmp-add:focus { outline: none; border-color: var(--pencil); box-shadow: 0 0 0 3px var(--pencil-wash); }
.cmp-bar .btn { margin-top: 0; }
.cmp-wrap { overflow-x: auto; }
table.cmp { border-collapse: collapse; font-size: 13px; }
.cmp th, .cmp td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; min-width: 220px; max-width: 300px; }
.cmp th[scope="row"] { min-width: 120px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #7a7f87; position: sticky; left: 0; background: var(--paper); }
.cmp thead th { border-bottom: 1px solid var(--rule-strong); font-size: 15px; font-weight: 800; }
.cmp thead a { text-decoration: none; }
@media (max-width: 900px) { .charts { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 110px 1fr 60px; } }

/* ---------- sign-in ---------- */
.login { max-width: 380px; margin: 16vh auto; padding: 0 24px; }
.login h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.login .lede { color: #565b62; margin: 0 0 24px; }
.login label { display: block; font-size: 12px; font-weight: 600; color: #565b62; margin-bottom: 14px; }
.login input { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; font: inherit; font-size: 15px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.login input:focus { outline: none; border-color: var(--pencil); box-shadow: 0 0 0 3px var(--pencil-wash); }
.login .signin { border: 0; cursor: pointer; width: 100%; margin-top: 6px; font: inherit; font-weight: 700; }
.login-err { color: var(--red); font-size: 13px; margin: 0 0 10px; }

/* ---------- ICP ---------- */
.icp-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; margin: 0 4px 3px 0; border-radius: 999px; background: var(--pencil-wash); color: var(--pencil); white-space: nowrap; }
.icp-chip.minor { background: #f1f2f4; color: #565b62; font-weight: 500; }
.icp-cell { min-width: 150px; max-width: 200px; }
.icp-motion { font-size: 11px; color: #7a7f87; margin-top: 2px; }
.icp-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s4) var(--s6); }
.icp-seg h3 { font-size: 13px; font-weight: 700; margin: 0 0 4px; }
.icp-seg p { margin: 0; font-size: 13px; line-height: 1.6; }
.icp-seg a { text-decoration: none; }
.icp-seg a:hover { text-decoration: underline; }
.icp-seg a.strong { font-weight: 600; color: var(--ink); }

.login .signin.gh { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: #fff; padding: 11px 22px; }
.login .pw-alt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
