:root {
  --bg: #f1f1ef;
  --surface: #ffffff;
  --ink: #1b1d22;
  --muted: #464a52;
  --line: #b9bbc0;
  --field: #7d8189;
  --accent: #23489a;
  --accent-ink: #ffffff;
  --accent-soft: #dfe6f5;
  --warn: #9a3412;
  --warn-soft: #fbe9df;
  --keep: #1d6b3a;
  --maybe: #8a5a00;
  --no: #a1251a;
  --r: 6px;
  --head: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --surface: #1d2026;
    --ink: #e8e9ec;
    --muted: #b9bcc4;
    --line: #4a4f5a;
    --field: #7a808c;
    --accent: #93b2ff;
    --accent-ink: #0d1220;
    --accent-soft: #263150;
    --warn: #ffab85;
    --warn-soft: #3a2219;
    --keep: #7fd39a;
    --maybe: #f0c060;
    --no: #ff9b8c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--head); letter-spacing: .01em; }

h1 { font: 700 clamp(30px, 6vw, 44px)/1.08 var(--head); margin: 24px 0 8px; letter-spacing: -.01em; max-width: 20ch; }
h2 { font: 700 26px/1.2 var(--head); margin: 0 0 10px; }
h3 { font: 700 20px/1.3 var(--head); margin: 18px 0 6px; }
.lede { margin: 0 0 20px; max-width: 62ch; color: var(--muted); font-size: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--field); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font: 600 16px/1.2 var(--body); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 8px 10px; }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: 16px; }
.btn.danger { background: var(--no); border-color: var(--no); color: var(--surface); }
.btn:disabled { opacity: .55; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linkish { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--accent); text-decoration: underline; font: inherit; font-size: 16px; cursor: pointer; }
.msg, .store-note { margin: 8px 0; font-size: 16px; }
.store-note { padding: 10px 12px; background: var(--warn-soft); border-radius: var(--r); color: var(--ink); }
.banner { padding: 14px 16px; margin: 0 0 20px; border: 2px solid var(--accent); border-radius: var(--r); background: var(--surface); }
.banner p { margin: 0 0 10px; }

input[type=text], input[type=number], input[type=search], input[type=date], select, textarea {
  font: 16px/1.3 var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: var(--r);
  min-height: 44px; padding: 8px 10px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; }
select { padding-right: 28px; }
label { font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
input[aria-invalid=true] { border-color: var(--no); box-shadow: 0 0 0 1px var(--no); }

/* ---- glazes ---- */
.glazes { margin-bottom: 24px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-head h2 { margin: 0; }
.glist { list-style: none; margin: 8px 0 0; padding: 0; }
.ghead { display: none; }
.grow { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) 92px; grid-template-areas: "tag name name act" "nocol brand code cone" ". note note note";
  gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.grow .tag { grid-area: tag; }
.grow [data-f=name] { grid-area: name; font-weight: 600; }
.grow [data-f=brand] { grid-area: brand; }
.grow [data-f=code] { grid-area: code; }
.grow [data-f=cone] { grid-area: cone; }
.grow .gact { grid-area: act; display: flex; justify-content: flex-end; }
.grow .nocol { grid-area: nocol; justify-self: start; font-size: 16px; line-height: 1.1; min-height: 44px; min-width: 44px; text-align: left; }
.grow .gnote { grid-area: note; margin: 0; color: var(--no); font-size: 16px; }
.tag { position: relative; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 var(--mono); cursor: pointer;
  background: var(--surface); border: 2px solid var(--ink); color: var(--ink); }
.tag.empty { border-style: dashed; border-color: var(--field); }
.tag:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.tag .color { position: absolute; top: -2px; left: -2px; width: 44px; height: 44px; border-radius: 50%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.icon { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; border-radius: var(--r); }
.icon:hover { background: var(--accent-soft); }
.icon:disabled { opacity: .3; cursor: default; background: transparent; }
.gbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.paste { margin-top: 12px; display: grid; gap: 8px; max-width: 620px; }
.paste .btn { justify-self: start; }
@media (min-width: 760px) {
  .ghead { display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr) minmax(92px, .9fr) 96px 96px; gap: 8px; font-weight: 600; color: var(--muted); padding: 0 0 4px; border-bottom: 1px solid var(--line); }
  .grow { grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr) minmax(92px, .9fr) 96px 96px; grid-template-areas: "tag name brand code cone nocol act" ". note note note note note note"; }
}

/* ---- plan ---- */
.plan { margin-bottom: 32px; }
.choose { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.choose > label:first-child { width: 100%; }
.choose select { width: auto; max-width: 100%; min-width: 230px; }
.base-wrap { display: inline-flex; align-items: center; gap: 8px; }
.base-wrap select { min-width: 160px; }
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 8px; }
.count { margin: 0; font: 700 22px/1.1 var(--head); }
.count strong { font-size: 46px; font-family: var(--mono); letter-spacing: -.03em; margin-right: 4px; }
.sub { margin: 6px 0 0; color: var(--muted); }
.clash-box { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.clash-box p { margin: 0; color: var(--warn); font-weight: 600; }
.over { margin: 10px 0 0; color: var(--warn); font-weight: 600; }
.more { margin: 8px 0 16px; }
.more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--accent); }
.more-body { display: grid; gap: 14px; padding: 6px 0 4px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 0; }
.seg legend { width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--field); margin-left: -1px; background: var(--surface); font-weight: 500; }
.seg label:first-of-type span { border-radius: var(--r) 0 0 var(--r); margin-left: 0; }
.seg label:last-of-type span { border-radius: 0 var(--r) var(--r) 0; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; position: relative; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; position: relative; }
.nums { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.nums legend { width: 100%; }
.nums label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.nums input { width: 80px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ink); margin-top: 8px; }
.tabs button { min-height: 46px; padding: 8px 18px; border: 0; background: transparent; color: var(--ink); font: 700 18px/1 var(--head); cursor: pointer; border-radius: var(--r) var(--r) 0 0; }
.tabs button[aria-selected=true] { background: var(--ink); color: var(--bg); }
.view { padding: 16px 0 8px; }
.empty { color: var(--muted); }

.mwrap { overflow-x: auto; max-width: 100%; }
.matrix { border-collapse: separate; border-spacing: 3px; }
.matrix caption { text-align: left; color: var(--muted); padding-bottom: 6px; caption-side: top; }
.matrix th { font-weight: 600; padding: 0; }
.matrix thead th { height: 44px; vertical-align: bottom; }
.matrix .corner { text-align: left; font-weight: 500; color: var(--muted); font-size: 16px; padding-right: 8px; white-space: nowrap; }
.matrix tbody th { text-align: left; white-space: nowrap; padding-right: 8px; position: sticky; left: 0; background: var(--bg); z-index: 1; }
.mtag { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 4px; border-radius: 50%; border: 2px solid var(--ink); font: 700 15px/1 var(--mono); }
.mname { margin-left: 8px; display: inline-block; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; font-weight: 500; }
.matrix td { padding: 0; }
.cell { position: relative; width: 44px; height: 44px; border: 1px solid var(--field); border-radius: 4px; background: var(--surface); cursor: pointer; padding: 0; display: grid; place-items: center; }
.cell:hover { border-color: var(--accent); border-width: 2px; }
.matrix td.off { width: 44px; height: 44px; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line) 5px 6px); border-radius: 4px; }
.mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 15px/1 var(--body); }
.mark:empty { display: none; }
.v-k .mark { background: var(--keep); color: var(--surface); }
.v-m .mark { background: var(--maybe); color: var(--surface); }
.v-n .mark { background: var(--no); color: var(--surface); }
.cell.clash::after, .chip.clash::after { content: ""; position: absolute; top: -1px; right: -1px; border-style: solid; border-width: 0 13px 13px 0; border-color: transparent var(--warn) transparent transparent; border-radius: 0 4px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 8px; border: 1px solid var(--field); border-radius: 4px; background: var(--surface);
  color: var(--ink); font: 700 16px/1 var(--mono); cursor: pointer; }
.chip.v-k { border: 2px solid var(--keep); }
.chip.v-m { border: 2px solid var(--maybe); }
.chip.v-n { border: 2px solid var(--no); }
.mini { display: inline-grid; width: 16px; height: 24px; border: 1px solid var(--field); border-radius: 2px; overflow: hidden; grid-template-rows: 1fr; flex: none; position: relative; }
.mini i { position: absolute; left: 0; right: 0; bottom: 0; }
.mini i.l0 { top: 0; }
.mini i.l1 { top: 0; bottom: 35%; }
.mini i.l2 { top: 0; bottom: 65%; }
.stacks h3:first-child { margin-top: 0; }
.shelf { margin: 0 0 14px; }
.shelf-h { margin: 0 0 6px; font-weight: 600; }
#view-shelves h3:first-child { margin-top: 0; }

.own { margin: 0 0 12px; color: var(--muted); max-width: 70ch; }
.rfilter { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 8px; max-width: 640px; }
@media (min-width: 560px) { .rfilter { grid-template-columns: auto 1fr auto 180px; align-items: center; gap: 10px; } }
.rcount { margin: 8px 0; color: var(--muted); }
.rlist { list-style: none; margin: 0 0 12px; padding: 0; }
.res { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.res:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.res-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.res .code { display: inline-flex; align-items: center; gap: 8px; font: 700 20px/1 var(--mono); }
.res-name { font-weight: 600; }
.where { width: 100%; color: var(--muted); font-size: 16px; }
.res.clash .where { color: var(--warn); }
.res.clash::after { display: none; }
.verdict { display: flex; }
.vb { flex: 1 1 0; max-width: 130px; min-height: 44px; border: 1px solid var(--field); background: var(--surface); color: var(--ink); font: 600 16px/1 var(--body); cursor: pointer; margin-left: -1px; }
.vb:first-child { border-radius: var(--r) 0 0 var(--r); margin-left: 0; }
.vb:last-child { border-radius: 0 var(--r) var(--r) 0; }
.vb[aria-pressed=true] { color: var(--surface); position: relative; }
.vb.v-k[aria-pressed=true] { background: var(--keep); border-color: var(--keep); }
.vb.v-m[aria-pressed=true] { background: var(--maybe); border-color: var(--maybe); }
.vb.v-n[aria-pressed=true] { background: var(--no); border-color: var(--no); }
.note { min-height: 44px; }
.ph { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.addph { position: relative; cursor: pointer; }
.addph:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.thumb { padding: 0; border: 1px solid var(--field); border-radius: 4px; background: none; cursor: zoom-in; width: 72px; height: 72px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 760px) {
  .res { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "h h" "v ph" "n n"; }
  .res-h { grid-area: h; }
  .verdict { grid-area: v; }
  .ph { grid-area: ph; justify-content: flex-end; }
  .note { grid-area: n; }
}

.out { margin: 8px 0 40px; padding-top: 20px; border-top: 2px solid var(--ink); }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; margin-bottom: 4px; }
.sheets legend { grid-column: 1 / -1; }
.fire { grid-template-columns: 1fr; max-width: 640px; }
.fire label { display: grid; gap: 4px; }
@media (min-width: 640px) { .fire { grid-template-columns: 1fr 1fr 1fr; } .fire .wide { grid-column: 1 / -1; } }
.keepfile { margin-top: 10px; }
.openfile { position: relative; cursor: pointer; }
.openfile:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.safari { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.banner.full { border-color: var(--warn); }
.warn-h { color: var(--warn); }
.newtest { margin-top: 16px; }
.confirm { margin-top: 8px; padding: 12px 14px; border: 2px solid var(--warn); border-radius: var(--r); background: var(--surface); max-width: 560px; }
.confirm p { margin: 0 0 8px; }
.earlier { margin-top: 12px; }
.earlier summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--accent); }
.earlier ol { list-style: none; padding: 0; margin: 0; }
.earlier li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.earlier li p { margin: 0 0 6px; }

.content { max-width: 70ch; padding-bottom: 32px; }
.content h2 { margin-top: 32px; }
.content h3 { font-family: var(--body); font-size: 18px; margin-top: 20px; }
.content p { margin: 0 0 12px; }

.undo { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 30; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px; background: var(--ink); color: var(--bg); border-radius: var(--r); box-shadow: 0 6px 24px rgb(0 0 0 / .25); }
.undo p { margin: 0; flex: 1; font-size: 16px; }
.undo .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.undo .btn.quiet { background: transparent; color: var(--bg); }

.viewer { border: 0; border-radius: var(--r); padding: 12px; max-width: min(92vw, 900px); background: var(--surface); color: var(--ink); }
.viewer::backdrop { background: rgb(0 0 0 / .7); }
.viewer img { display: block; max-width: 100%; max-height: 72vh; margin: 8px 0; }
.viewer p { margin: 0; font-weight: 600; }

.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0 28px; color: var(--muted); font-size: 16px; }
.sb-more { line-height: 1.8; }
.sb-privacy, .sb-credit { margin: 6px 0; }
.foot a { color: var(--accent); }

.print-root { display: none; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---- paper ---- */
@page { margin: 12mm; }
@media print {
  body { background: #fff; color: #000; font: 10.5pt/1.35 var(--body); }
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block; }
  .psheet { break-after: page; }
  .psheet:last-child { break-after: auto; }
  .ph-head { border-bottom: 1.5pt solid #000; margin-bottom: 8pt; padding-bottom: 4pt; }
  .ph-head h2 { font: 700 17pt/1.15 var(--head); margin: 0; }
  .ph-head p { margin: 2pt 0 0; font-size: 10pt; }
  .ph-head.slim { margin-bottom: 6pt; }
  .ph-head.slim h2 { font-size: 13pt; display: inline; }
  .ph-head.slim p { display: inline; margin-left: 8pt; }
  h3 { font: 700 12.5pt/1.2 var(--head); margin: 10pt 0 4pt; break-after: avoid; }
  .pset { margin: 0 0 8pt; }
  .pnote { margin: 0 0 6pt; font-size: 10pt; }
  table { border-collapse: collapse; }
  .pkey { width: calc(100% - 2pt); margin: 0 1pt 6pt; }
  .pkey th, .pkey td { border: .75pt solid #555; padding: 2.5pt 5pt; text-align: left; vertical-align: middle; }
  .pkey th { font-size: 9.5pt; }
  .pkey.tight th, .pkey.tight td { padding: 1.5pt 5pt; font-size: 9.5pt; }
  .pkey tr { break-inside: avoid; }
  .pk-t { white-space: nowrap; width: 1%; }
  .pk-t b { font-family: var(--mono); font-size: 11pt; }
  .psw { display: inline-block; width: 10pt; height: 10pt; border: .75pt solid #000; vertical-align: -1.5pt; margin-right: 5pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .psw.none { border-style: dashed; }
  .pgrid { break-inside: avoid; }
  .pmatrix { margin: 0 1pt; }
  .pmatrix th, .pmatrix td { border: .75pt solid #000; text-align: center; padding: 0; font-family: var(--mono); }
  .pmatrix thead th { font-size: 9pt; }
  .pmatrix tbody th { font-size: 9pt; padding: 0 3pt; }
  .pmatrix .pc { font: 8pt var(--body); padding: 0 3pt; white-space: nowrap; }
  .pmatrix td { position: relative; font-weight: 700; }
  .md .pmatrix td, .md .pmatrix thead th { width: .42in; height: .42in; font-size: 12pt; }
  .sm .pmatrix td, .sm .pmatrix thead th { width: .31in; height: .31in; font-size: 10pt; }
  .xs .pmatrix td, .xs .pmatrix thead th { width: .215in; height: .215in; font-size: 8pt; }
  .md .pmatrix tbody th { font-size: 12pt; } .sm .pmatrix tbody th { font-size: 10pt; } .xs .pmatrix tbody th { font-size: 8.5pt; }
  .pmatrix td.off { background: #bbb; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .pmatrix td.clash::after, .pcode.clash::after, .lab.clash::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 6pt 6pt 0; border-color: transparent #000 transparent transparent; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .pcode { display: inline-block; position: relative; font: 700 10pt var(--mono); border: .75pt solid #000; padding: 1pt 4pt; margin: 0 2pt 3pt 0; white-space: nowrap; }
  .pshelf { margin: 0 0 4pt; break-inside: avoid; }
  .pshelves h3, .pstacks h3 { margin-top: 10pt; }

  .lgrid { display: grid; grid-template-columns: repeat(3, 1fr); width: calc(100% - 1pt); }
  .lab { position: relative; height: .94in; border: .75pt dashed #000; margin: 0 -.75pt -.75pt 0; padding: 4pt 6pt; display: flex; flex-direction: column; gap: 1pt; overflow: hidden; break-inside: avoid; }
  .lcode { font: 700 15pt/1.05 var(--mono); white-space: nowrap; }
  .lnames { font-size: 9pt; line-height: 1.2; font-weight: 600; }
  .lnames.f2 { font-size: 8pt; line-height: 1.15; }
  .lnames.f3 { font-size: 7pt; line-height: 1.12; }
  .nw { white-space: nowrap; }
  .lmeta { margin-top: auto; font-size: 8pt; line-height: 1.2; color: #222; }

  .pfields { display: grid; grid-template-columns: 1fr 1fr; gap: 8pt 18pt; margin: 4pt 0 6pt; }
  .pf { display: flex; gap: 6pt; align-items: baseline; border-bottom: .75pt solid #000; min-height: 20pt; }
  .pf span { font-weight: 600; white-space: nowrap; }
  .pfnotes { margin: 4pt 0; }
  .psched { width: calc(100% - 2pt); margin: 0 1pt; }
  .psched th, .psched td { border: .75pt solid #000; padding: 3pt 5pt; text-align: left; height: 20pt; }
  .psched td:first-child { width: 14%; }
  .plines i { display: block; height: 22pt; border-bottom: .75pt solid #000; }
  .pown { font-size: 9.5pt; margin: 10pt 0 0; font-style: italic; }
  .presults .pown { margin: 0 0 8pt; }

  .pres { width: calc(100% - 2pt); margin: 0 1pt; table-layout: fixed; }
  .pres col.c1 { width: 10%; } .pres col.c2 { width: 28%; } .pres col.c3 { width: 12%; } .pres col.c4 { width: 50%; }
  .pres th, .pres td { border: .75pt solid #000; padding: 4pt 5pt; text-align: left; vertical-align: top; }
  .pres thead { display: table-header-group; }
  .pres tr { break-inside: avoid; }
  .pres td { height: 40pt; }
  .pcd { font: 700 11pt var(--mono); white-space: nowrap; }
  .pcl { font-size: 9pt; }
  .pv span { display: block; width: max-content; padding: 0 3pt; margin: 0 1pt 2pt 0; border: .75pt solid transparent; border-radius: 8pt; font-size: 9.5pt; }
  .pv span.on { border-color: #000; font-weight: 700; }
}
@media (max-width: 560px) {
  .mname { display: none; }
  .matrix .corner span[aria-hidden] { display: none; }
  .cell, .matrix td.off { width: 44px; height: 44px; }
}
.phmiss { color: var(--warn); font-weight: 600; }
@media (max-width: 399px) {
  .grow { grid-template-areas: "tag name name act" "nocol brand brand brand" ". code code cone" ". note note note"; }
}
@media (max-width: 360px) {
  .grow input[type=text] { padding-left: 6px; padding-right: 6px; }
}

/* Grid squares show their code where there is room; squares for a glaze alone are hatched. */
.cell .ccode { display: none; }
.matrix td.solo .cell { border-style: dashed; border-width: 2px; }
.matrix td.solo .cell.plain { background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--accent-soft) 6px 9px); }
@media (min-width: 600px) {
  .cell { width: 64px; }
  .cell .ccode { display: inline-block; font: 700 16px/1 var(--mono); padding: 3px 4px; border-radius: 3px; background: var(--surface); color: var(--ink); }
  .cell .mark { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; font-size: 12px; }
  .matrix td.off { width: 64px; }
}
.mini i.none { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--field) 3px 4px); }
