/* board.css - the public phone table (board.html). A file of its own: the page's CSP allows no inline style. */
:root { color-scheme:light dark; --fg:#1c1b1f; --muted:#5c5c66; --border:#e1e1e8; --accent:#5b3fd6; --bg:#fff; --code-bg:#f4f4f7;
  --me:#efe9ff; --ok:#1d7f4e; --flash:#b3261e; --tag:#ecebf3; --theory:#8a5a00; --sub:#fafafc; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fg:#e6e1e5; --muted:#a3a3ab; --border:#2c2c33; --accent:#b39dff; --bg:#131318;
    --code-bg:#1b1b22; --me:#2b2347; --ok:#5fd39a; --flash:#ff8a80; --tag:#25252e; --theory:#f2c46d; --sub:#18181e; }
}
:root[data-theme="dark"] { color-scheme:dark; --fg:#e6e1e5; --muted:#a3a3ab; --border:#2c2c33; --accent:#b39dff; --bg:#131318;
  --code-bg:#1b1b22; --me:#2b2347; --ok:#5fd39a; --flash:#ff8a80; --tag:#25252e; --theory:#f2c46d; --sub:#18181e; }
* { box-sizing:border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--fg); }
body { font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; max-width:1400px;
  margin:0 auto; padding:24px 16px 64px; }
header { border-bottom:1px solid var(--border); padding-bottom:12px; margin-bottom:20px; display:flex; flex-wrap:wrap;
  gap:14px; align-items:center; }
header img { width:52px; height:52px; border-radius:14px; }
header .title { flex:1; min-width:200px; }
h1 { font-size:26px; margin:0; }
h2 { font-size:19px; margin-top:32px; border-top:1px solid var(--border); padding-top:20px; }
.sub { color:var(--muted); font-size:14px; }
a { color:var(--accent); }
p { max-width:860px; }
.prevail { color:var(--muted); font-size:14px; background:var(--code-bg); border-radius:6px; padding:8px 12px; }
details.how { background:var(--code-bg); border-radius:10px; padding:10px 16px; margin:12px 0 18px; max-width:860px; }
details.how summary { cursor:pointer; font-weight:600; }
details.how p { font-size:14px; }
.filters { display:flex; flex-wrap:wrap; gap:12px 16px; align-items:flex-end; margin:8px 0 6px; }
.filters label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); }
.filters select, .filters input { font:inherit; font-size:14px; color:var(--fg); background:var(--bg);
  border:1px solid var(--border); border-radius:8px; padding:7px 10px; min-width:140px; }
.filters select:focus, .filters input:focus { outline:2px solid var(--accent); outline-offset:1px; }
.msg { color:var(--muted); font-size:14px; min-height:1.5em; }
.msg .line { display:block; }
.wrap { overflow-x:auto; border:1px solid var(--border); border-radius:10px; max-width:100%; }
table { border-collapse:collapse; width:100%; font-size:13px; }
th, td { border-bottom:1px solid var(--border); padding:8px 10px; text-align:start; vertical-align:top; white-space:nowrap; }
td.wide { white-space:normal; min-width:260px; max-width:340px; }
/* (an APU device a line: a row stays as tall as its fewest lines allow) */
.dev { display:flex; flex-wrap:nowrap; align-items:center; gap:2px 6px; white-space:nowrap; }
.dev .tags { flex-wrap:nowrap; }
.dev + .dev { margin-top:2px; }
.dev .tags { margin-top:0; }
th { background:var(--code-bg); font-weight:600; position:sticky; top:0; white-space:nowrap; }
td.num { white-space:nowrap; font-variant-numeric:tabular-nums; }
td.rank { font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums; }
tr.me td { background:var(--me); }
tr.me td.rank { color:var(--accent); }
.strong { font-weight:600; }
.dim { color:var(--muted); }
.ok { color:var(--ok); }
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12px; }
.flash { color:var(--flash); font-weight:700; cursor:help; }
.tags { display:flex; flex-wrap:wrap; gap:3px; margin-top:4px; }
.tag { background:var(--tag); border-radius:4px; padding:0 5px; font-size:11px; line-height:18px; white-space:nowrap; }
label.langbox { display:inline-flex; align-items:center; gap:6px; margin:0; border:1px solid var(--border);
  border-radius:999px; padding:0 4px 0 10px; color:var(--muted); }
.langbox:focus-within, .langbox:hover { border-color:var(--accent); }
.langbox svg { width:16px; height:16px; flex:none; }
.langbox select { background:transparent; border:0; color:var(--fg); font:inherit; font-size:14px; padding:6px 6px;
  cursor:pointer; outline:none; max-width:180px; }
.langbox option { background:var(--bg); color:var(--fg); }
footer { margin-top:40px; padding-top:16px; border-top:1px solid var(--border); color:var(--muted); font-size:13px; }
td.rank .toggle { font:inherit; font-size:12px; color:var(--accent); background:transparent; border:1px solid var(--border);
  border-radius:6px; width:24px; height:24px; padding:0; margin-inline-end:6px; cursor:pointer; vertical-align:middle; }
td.rank .toggle:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
tr.units > td { background:var(--sub); padding:6px 8px 12px; white-space:normal; }
/* (the opened row stays within the screen however wide the main table is: it sticks to the start and scrolls
   inside itself) */
.unitbox { position:sticky; inset-inline-start:0; max-width:min(900px, calc(100vw - 54px)); }
.utitle { font-weight:600; margin:2px 0 6px; }
.uscroll { overflow-x:auto; border:1px solid var(--border); border-radius:8px; background:var(--bg); }
table.utable { width:auto; min-width:100%; font-size:13px; }
table.utable th, table.utable td { padding:6px 10px; position:static; }
table.utable thead th { background:var(--code-bg); white-space:normal; min-width:110px; max-width:190px; }
table.utable tbody th { background:transparent; font-weight:600; white-space:normal; min-width:120px; max-width:200px; }
table.utable tr.best th, table.utable tr.best td { border-top:2px solid var(--border); }
table.utable tr.mode th, table.utable tr.mode td { padding-top:3px; padding-bottom:3px; font-weight:400; }
.small { font-size:11px; font-weight:400; }
.theory { color:var(--theory); font-style:italic; }
.tick { color:var(--ok); font-weight:700; }
td.nofit { white-space:normal; min-width:130px; max-width:170px; }
.legend { margin:-2px 0 6px; }
td.ucell { white-space:normal; min-width:120px; max-width:190px; }
td.ucell .note { display:block; font-size:11px; font-weight:400; line-height:1.35; margin-top:2px; }
/* (partly: the unit reads the prompt's products only, the answer is the CPU's: a half-tone, dashed badge) */
td.ucell .note.partly { display:inline-block; border:1px dashed var(--theory); border-radius:4px; padding:0 4px;
  color:var(--muted); }
.warn { color:var(--flash); }
[hidden] { display:none !important; }
@media (max-width:600px) {
  h1 { font-size:22px; }
  .filters label { flex:1 1 140px; }
  .filters select, .filters input { min-width:0; width:100%; }
  /* (narrow: the format tags off-screen to the right would set each row's height; the row's ▸ shows its units) */
  td.wide .tags { display:none; }
  td.wide { min-width:200px; }
  .dev + .dev { margin-top:0; }
}
