/* Structure shared by the board apps. Each app sets the tokens and its own look. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.small { font-size: 13.5px; line-height: 1.35; }
.muted { color: var(--soft); }
.empty { padding: 24px 0; font-size: 17px; color: var(--soft); max-width: 46ch; }
.flag { padding: 8px 12px; font-size: 13.5px; line-height: 1.4; }

.search { position: relative; width: min(280px, 100%); }
.search input { width: 100%; height: 36px; padding: 0 12px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; }
.search input::placeholder { color: var(--soft); }
#search-results { position: absolute; z-index: 30; top: 42px; left: 0; right: 0; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#search-results button { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 8px 12px; background: none; border: 0; text-align: left; }
#search-results button:hover, #search-results button:focus-visible { background: var(--accent); color: var(--accent-ink); }
#search-results span { color: var(--soft); }
#search-results button:hover span { color: inherit; }
#search-results .none { padding: 12px; color: var(--soft); }

.ladder-wrap { overflow-y: auto; scrollbar-width: thin; }
.ladder { width: 100%; border-collapse: collapse; font-size: 14px; }
.ladder thead th { position: sticky; top: 0; z-index: 2; padding: 7px 8px; font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.ladder tbody th { padding: 3px 8px; font-weight: 700; text-align: left; white-space: nowrap; }
.ladder td { padding: 3px 8px; }
.ladder .num { text-align: right; font-family: var(--mono); font-size: 13px; }
.bar-cell { position: relative; min-width: 96px; width: 30%; }
.bar-cell strong { position: relative; font-family: var(--mono); font-size: 14px; }
.meter { position: absolute; left: 8px; right: 8px; top: 50%; height: 20px; transform: translateY(-50%); background: linear-gradient(90deg, var(--c) var(--w), transparent var(--w)); opacity: .32; }
.meter.hot { --c: var(--hot); }
.meter.warm { --c: var(--warm); }
.meter.cold { --c: var(--cold); }
.meter.none { --c: transparent; }
.act { text-align: right; width: 64px; }
.add { height: 28px; padding: 0 8px; background: none; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; font-size: 13px; white-space: nowrap; }
.add:hover:not(:disabled) { border-color: var(--accent); }
.add[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.add:disabled { opacity: .35; cursor: not-allowed; }
.stamp { font-size: 12.5px; color: var(--soft); }

.sheet { display: grid; align-content: start; gap: 12px; padding: 16px; overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet-head { display: flex; align-items: baseline; gap: 14px; }
.sheet-head h2 { flex: 1; }
.link { padding: 0; background: none; border: 0; color: var(--accent); font-size: 13.5px; font-weight: 600; text-decoration: underline; }
.huddle { color: var(--soft); }
.legs { display: grid; gap: 8px; }
.legs li { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; }
.leg-body { display: grid; min-width: 0; }
.leg-body strong { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg-body > span:not(.alive) { font-size: 13.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alive { display: block; height: 4px; margin-top: 4px; background: var(--line); overflow: hidden; }
.alive i { display: block; height: 100%; width: var(--w); background: var(--accent); }
.leg-p { font-family: var(--mono); font-size: 17px; text-align: right; }
.leg-p small { display: block; font-size: 12px; color: var(--soft); }
.x { width: 28px; height: 28px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; font-weight: 700; }
.est { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--raised); border-radius: var(--radius); }
.est span { display: block; font-weight: 700; }
.est small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--soft); }
.est strong { font-family: var(--mono); font-size: 25px; white-space: nowrap; }
.price { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.price input { width: 100%; height: 40px; padding: 0 12px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--mono); font-size: 16px; }
.verdict { padding: 10px 12px; border-radius: var(--radius); }
.verdict strong { display: block; font-size: 17px; font-weight: 800; }
.verdict p { font-size: 13.5px; line-height: 1.35; }
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { flex: 1; min-height: 34px; padding: 0 6px; background: none; border: 0; color: var(--soft); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--ground); }
.suggest { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.suggest h3 { font-size: 15px; font-weight: 800; }
.build { min-height: 42px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius); font-weight: 800; }
.foot { display: grid; gap: 4px; padding: 16px 20px; font-size: 12.5px; color: var(--soft); max-width: 1640px; margin: 0 auto; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 84px; transform: translateX(-50%); padding: 9px 14px; background: var(--ink); color: var(--ground); border-radius: var(--radius); font-weight: 700; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

