:root {
  --bg: #fbfaf7; --surface: #ffffff; --text: #1d1c1a; --muted: #6b6963; --faint: #9a978f;
  --border: #e4e1d9; --accent: #1f5fa8;
  --ok-bg: #e7f3df; --ok: #2f5f10; --warn-bg: #fbefd8; --warn: #7a4a07; --bad-bg: #fbe5e4; --bad: #8f2424;
  --gray-bg: #efede7; --gray: #55534e;
  --radius: 10px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161614; --surface: #1f1f1c; --text: #ecebe6; --muted: #a7a59e; --faint: #7d7b75;
    --border: #34332f; --accent: #7fb2ec;
    --ok-bg: #233a17; --ok: #b9e09a; --warn-bg: #3d2d10; --warn: #f4cf8a; --bad-bg: #432020; --bad: #f4b0ae;
    --gray-bg: #2b2a27; --gray: #c9c7c0;
  }
}
:root[data-theme="dark"] {
  --bg: #161614; --surface: #1f1f1c; --text: #ecebe6; --muted: #a7a59e; --faint: #7d7b75;
  --border: #34332f; --accent: #7fb2ec;
  --ok-bg: #233a17; --ok: #b9e09a; --warn-bg: #3d2d10; --warn: #f4cf8a; --bad-bg: #432020; --bad: #f4b0ae;
  --gray-bg: #2b2a27; --gray: #c9c7c0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main, .top, .foot { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 6px; }
.brand { font-weight: 600; color: var(--text); font-size: 17px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; }
.about-link { margin-left: auto; font-size: 14px; }
.foot { color: var(--faint); font-size: 12px; padding-top: 24px; padding-bottom: 32px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1 { font-size: 22px; line-height: 1.25; margin: 8px 0 2px; }
h2 { font-size: 16px; margin: 22px 0 8px; }

.search { position: sticky; top: 0; background: var(--bg); padding: 8px 0 10px; z-index: 2; }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 11px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row-tools { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
button.chip { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; }
button.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.list { list-style: none; margin: 0; padding: 0; }
.list li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px;
  border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.list li a:hover .nm { text-decoration: underline; }
.nm { font-weight: 550; }
.sub { font-size: 13px; color: var(--muted); }
.right { text-align: right; white-space: nowrap; }
.closed .nm { color: var(--muted); }

.pill { display: inline-block; font-size: 12px; font-weight: 550; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.pill.pass { background: var(--ok-bg); color: var(--ok); }
.pill.cond { background: var(--warn-bg); color: var(--warn); }
.pill.fail { background: var(--bad-bg); color: var(--bad); }
.pill.other { background: var(--gray-bg); color: var(--gray); }
.flagdot { color: var(--warn); font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.badge { background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: var(--radius); padding: 10px 12px; margin: 12px 0; }
.badge summary { cursor: pointer; font-weight: 550; list-style: none; }
.badge summary::-webkit-details-marker { display: none; }
.badge summary .why { font-weight: 400; text-decoration: underline; margin-left: 6px; }
.badge p { margin: 8px 0 0; font-size: 14px; color: var(--text); }
.banner { background: var(--gray-bg); color: var(--gray); border-radius: var(--radius); padding: 8px 12px; margin: 10px 0; font-size: 14px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.tile { background: var(--gray-bg); border-radius: var(--radius); padding: 8px 10px; }
.tile .k { font-size: 12px; color: var(--muted); }
.tile .v { font-size: 20px; font-weight: 600; }
.strip { display: flex; flex-wrap: wrap; gap: 4px; }
.strip .pill { min-width: 24px; text-align: center; }

.insp li a { display: block; }
.insp .line1 { display: flex; justify-content: space-between; gap: 8px; }
.ai { font-size: 12px; color: var(--muted); margin-top: 4px; }
.vio { border-top: 1px solid var(--border); padding: 10px 0; }
.vio:first-child { border-top: 0; }
.vio .head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.vio details { margin-top: 4px; }
.vio summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.vio .orig { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.sev { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.sev.priority { background: var(--bad-bg); color: var(--bad); }
.sev.priority_foundation, .sev.risk_factor { background: var(--warn-bg); color: var(--warn); }
.sev.core, .sev.upkeep { background: var(--gray-bg); color: var(--gray); }
.back { display: inline-block; margin: 6px 0; font-size: 14px; }
.prose p, .prose li { color: var(--text); }
.prose li { margin-bottom: 6px; }

/* ---------- redesign: one symbol per item, fewer words ---------- */
.search input { border-radius: 14px; padding: 13px 16px; font-size: 17px; }
section { margin-top: 18px; }
.h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.h h2 { margin: 0; font-size: 17px; }
.h a { font-size: 14px; }
.list .item { display: flex; justify-content: flex-start; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; }
.list li:last-child .item { border-bottom: 0; }
.item .txt { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: left; }
.item .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { font-size: 13.5px; color: var(--muted); }
.item:hover .nm { text-decoration: underline; }
.dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 15px; font-weight: 700; line-height: 1; }
.dot.g { background: var(--ok-bg); color: var(--ok); }
.dot.y { background: var(--warn-bg); color: var(--warn); }
.dot.r { background: var(--bad-bg); color: var(--bad); }
.dot.n { background: var(--gray-bg); color: var(--gray); }
.ok-t { color: var(--ok); }
.ghost { font: inherit; font-size: 15px; width: 100%; padding: 12px; border-radius: 12px; border: 1px dashed var(--border);
  background: transparent; color: var(--accent); cursor: pointer; margin-top: 6px; }

.hero { display: block; border-radius: 16px; padding: 16px; margin: 14px 0 12px; text-decoration: none; color: var(--text); }
.hero:hover { text-decoration: none; filter: brightness(0.98); }
.hero.g { background: var(--ok-bg); } .hero.y { background: var(--warn-bg); } .hero.r { background: var(--bad-bg); } .hero.n { background: var(--gray-bg); }
.hero .big { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; }
.hero .dot { background: var(--surface); }
.hero .said { margin-top: 8px; font-size: 15px; }
.hero .when { margin-top: 10px; font-size: 13px; color: var(--muted); }
.bars { display: flex; gap: 3px; margin: 6px 0 14px; }
.bar { width: 16px; height: 7px; border-radius: 4px; }
.bar.g { background: var(--ok); } .bar.y { background: var(--warn); } .bar.r { background: var(--bad); } .bar.n { background: var(--border); }
details.quiet { margin: 6px 0; font-size: 14px; color: var(--muted); }
details.quiet summary { cursor: pointer; list-style: none; }
details.quiet summary::-webkit-details-marker, details.all summary::-webkit-details-marker { display: none; }
details.quiet .why { color: var(--accent); margin-left: 4px; }
details.quiet p { color: var(--text); margin: 8px 0 0; }
details.all { margin: 10px 0; }
details.all > summary { cursor: pointer; list-style: none; color: var(--accent); font-size: 15px; padding: 6px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
a.chip { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); text-decoration: none; }
a.chip[aria-current="true"] { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.day { margin: 16px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .back { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.share { flex: none; font: inherit; font-size: 14px; padding: 5px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text); }
button.share:hover { border-color: var(--text); }
button.share.done { color: var(--ok); border-color: currentColor; }
