/* Styles carried over from the CS Equine Test Review artifact. Colors are tokens; dark mode is redefined below. */
:root {
  --bg: #f6f6fa; --panel: #ffffff; --fg: #15172a; --muted: #5d6074; --line: #dcdde8;
  --accent: #5546a8; --navy: #1b2a6b; --lilac: #c0b0e0; --high: #b3261e; --med: #a15c00; --ok: #23763f; --chip: #eeedf6;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 8px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #12131c; --panel: #1b1d2a; --fg: #eceaf7; --muted: #a2a3b8; --line: #2e3042;
  --accent: #a99cf0; --navy: #8fa2f0; --lilac: #4a3f86; --high: #ff8a80; --med: #f0b35a; --ok: #74d197; --chip: #252738; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #12131c; --panel: #1b1d2a; --fg: #eceaf7; --muted: #a2a3b8; --line: #2e3042;
  --accent: #a99cf0; --navy: #8fa2f0; --lilac: #4a3f86; --high: #ff8a80; --med: #f0b35a; --ok: #74d197; --chip: #252738; color-scheme: dark; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 14px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 48px; display: grid; gap: 16px; }
h1 { font-size: 22px; font-weight: 600; margin: 0; text-wrap: balance; }
.sub { color: var(--muted); margin: 4px 0 0; max-width: 65ch; line-height: 1.45; }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { font: inherit; font-size: 13px; padding: 5px 12px; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg .badge { margin-left: 5px; font-size: 11px; background: var(--chip); color: var(--fg); border-radius: 999px; padding: 0 6px; }
.seg button[aria-pressed="true"] .badge { background: var(--bg); color: var(--fg); }
.wlbar2 { position: static; border-bottom: 0; padding-block: 0 4px; }
.wlbar .seg, .wlbar2 .seg { flex-wrap: wrap; }
.wlbar2 input[type=date] { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
.aztiles .tile { cursor: pointer; font: inherit; text-align: left; color: var(--fg); }
.aztiles .tile[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 1px; }
.aztiles .tile .lab:last-child { font-size: 11px; }
.azsum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.azsum button { font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: transparent; color: var(--fg); cursor: pointer; }
.azsum button b { font-variant-numeric: tabular-nums; margin-right: 4px; }
.azsum button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.devchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dchip { font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; background: var(--panel); color: var(--fg); cursor: pointer; text-align: left; }
.dchip b { font-family: var(--mono, ui-monospace, monospace); font-weight: 600; }
.dchip .st { display: block; font-size: 11px; color: var(--muted); }
.dchip.rep { border-color: var(--high); } .dchip.rep .st { color: var(--high); font-weight: 600; }
.dchip.mon { border-color: var(--med); } .dchip.mon .st { color: var(--med); font-weight: 600; }
.dchip.repd { opacity: .7; } .dchip.new .st, .dchip.req .st { color: var(--ok); font-weight: 600; }
.arrow { color: var(--muted); }
.newcust { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 7px; margin-left: 6px; white-space: nowrap; }
.actrow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.actrow:last-child { border-bottom: 0; }
.actrow input[type=text], .actrow input[type=date], .actrow select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
#rp-acc-panel table { font-size: 12px; } #rp-acc-panel td, #rp-acc-panel th { padding: 3px 6px; }
.ctab { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctab th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ctab td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctab tr.crow { cursor: pointer; } .ctab tr.crow:hover td { background: var(--chip); }
.ctab tr.crow.done td { opacity: .75; }
.ctab .rk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--line); }
.ctab .rk.High { background: var(--high); } .ctab .rk.Medium { background: var(--med); }
.ctab td.short { color: var(--muted); max-width: 420px; }
.ctab tr.cexp > td { background: var(--bg); padding: 10px; }
.tagrow { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mini { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 0 7px; border: 1px solid var(--line); white-space: nowrap; }
.mini.fu { border-color: var(--med); color: var(--med); } .mini.com { border-color: var(--high); color: var(--high); } .mini.fp { background: var(--high); color: #fff; border-color: var(--high); } .mini.ok { border-color: var(--ok); color: var(--ok); }
.plain { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 6px; }
.plain h3 { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.plain p { margin: 0; line-height: 1.5; } .plain ol { margin: 0; padding-left: 20px; line-height: 1.5; }
.qms { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border: 1px dashed var(--line); border-radius: 6px; padding: 6px 10px; }
.qms input[type=text] { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); min-width: 0; flex: 1 1 140px; }
.sumtab { margin-bottom: 4px; }
.seg button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; margin-left: auto; }
.status { font-size: 13px; color: var(--muted); }
.list { display: grid; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.card.High { border-left-color: var(--high); }
.card.Medium { border-left-color: var(--med); }
.card.Pending { border-left-color: var(--muted); }
.card.Low { border-left-color: var(--line); }
.card.needsrev { border-left-color: var(--accent); }
.group { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 8px 0 -2px; }
a.sn { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a.sn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.card.done { opacity: .78; }
.top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.risk { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.risk { padding: 1px 8px; border-radius: 999px; }
.risk.High { background: var(--high); color: #fff; } .risk.Medium { background: var(--med); color: #fff; } .risk.Pending { color: var(--muted); border: 1px dashed var(--muted); } .risk.Low { color: var(--muted); border: 1px solid var(--line); }
.needs { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 8px; }
.sn { font-family: var(--mono); font-size: 13px; }
.cust { font-weight: 600; }
.when { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.why { margin: 0; line-height: 1.45; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { background: var(--chip); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--muted); }
.fact b { color: var(--fg); font-weight: 500; }
details { font-size: 13px; color: var(--muted); }
details p { margin: 6px 0 0; line-height: 1.45; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 10px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label, .check { font-size: 12px; color: var(--muted); }
select, textarea { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); width: 100%; min-width: 0; }
textarea { resize: vertical; min-height: 36px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--fg); font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.full { grid-column: 1 / -1; }
.guide { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 10px 12px; display: grid; gap: 6px; }
.ghead { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.glabel { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.gtitle { font-weight: 600; }
.gwhy, .gsrc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ghist { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 2px; }
.ghist b { font-variant-numeric: tabular-nums; }
.gsteps summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--fg); }
.gsteps ol { margin: 6px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--fg); }
.guse { justify-self: start; font: inherit; font-size: 12px; padding: 4px 12px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); cursor: pointer; }
.guse:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.donebar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; border: 1px solid var(--accent); border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.donebtn { font: inherit; font-size: 13px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--panel); cursor: pointer; }
.donebtn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.pilot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--chip); border-radius: 6px; padding: 6px 10px; }
.pilot select { width: auto; min-width: 0; flex: 1 1 200px; }
.saved { font-size: 12px; color: var(--muted); }
.saved.ok { color: var(--ok); }
.saved.err { color: var(--high); }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r); padding: 24px; color: var(--muted); text-align: center; }
.export { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.export input { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg); }
.expbtn { font: inherit; font-size: 13px; padding: 5px 12px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); cursor: pointer; }
.expbtn:hover { background: var(--chip); }
.hero { background: linear-gradient(120deg, #14205a 0%, #2b2f8f 45%, #5546a8 75%, #8f7fd6 100%); color: #fff; border-radius: 12px; padding: 18px 20px; display: grid; gap: 4px; }
.hero .word, .hero h1 { color: #fff; }
.hero .tagline { color: rgba(255,255,255,.8); border-left-color: rgba(255,255,255,.35); }
.hero .sub { color: rgba(255,255,255,.88); }
.hero .rule { background: linear-gradient(90deg, #ffffff, #c0b0e0 50%, rgba(255,255,255,0)); opacity: .7; }
.tile.vi { border-top-color: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel)); }
.tile.nv { border-top-color: var(--navy); background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 10%, var(--panel)), var(--panel)); }
.tile.hi { border-top-color: var(--high); background: linear-gradient(180deg, color-mix(in srgb, var(--high) 10%, var(--panel)), var(--panel)); }
.tile.me { border-top-color: var(--med); background: linear-gradient(180deg, color-mix(in srgb, var(--med) 12%, var(--panel)), var(--panel)); }
.azb { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.azcard { text-align: left; font: inherit; color: var(--fg); cursor: pointer; display: grid; gap: 2px; }
.azcard[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.azcard .azsub { font-size: 11px; color: var(--muted); }
.azedit td { background: var(--chip); }
.azedit select, #az-win { width: auto; }
#az-dev td:first-child, #az-dev td:last-child, #az-dev td:nth-child(4) { white-space: nowrap; }
#az-dev td:nth-child(2) { min-width: 170px; }
#az-q { flex: 1 1 220px; }
.panel h2 { color: var(--navy); }
.panel { border-top: 3px solid var(--accent); }
.err { color: var(--high); font-weight: 600; }
.nae { color: var(--muted); }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.word { font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--fg); }
.tagline { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.rule { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--navy), var(--accent) 55%, var(--lilac)); margin-top: 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
.tabs button { white-space: nowrap; flex: 0 0 auto; }
.tabs button { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tabs .badge { margin-left: 6px; font-size: 12px; background: var(--chip); border-radius: 999px; padding: 0 7px; color: var(--fg); font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; }
.tile .lab { font-size: 12px; color: var(--muted); }
.tile .num { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile.hi .num { color: var(--high); } .tile.me .num { color: var(--med); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.panel h2 { font-size: 16px; font-weight: 600; margin: 0; }
.note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.tscroll { overflow: auto; max-height: 560px; }
.tscroll.short { max-height: none; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
th button { all: unset; cursor: pointer; }
th button:focus-visible { outline: 2px solid var(--accent); border-radius: 2px; }
td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.wrapc { min-width: 14rem; }
.pill { display: inline-block; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; white-space: nowrap; }
.pill.High { background: var(--high); border-color: var(--high); color: #fff; } .pill.Medium { background: var(--med); border-color: var(--med); color: #fff; } .pill.Low { color: var(--muted); } .pill.Pending { color: var(--muted); border-style: dashed; } .pill.Review { background: var(--accent); border-color: var(--accent); color: #fff; }
.yes { color: var(--ok); font-weight: 600; white-space: nowrap; } .no { color: var(--med); white-space: nowrap; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tools input[type=search], .tools input[type=date] { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); min-width: 0; }
.tools input[type=search] { flex: 1 1 14rem; }
.chip { font: inherit; font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.golink { font: inherit; font-size: 12px; padding: 2px 10px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); cursor: pointer; white-space: nowrap; }
@media (max-width: 640px) { .hn { display: none; } }
.ov-tools select { width: auto; max-width: 100%; }
.rangesel { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); width: auto; }
.printonly { display: none; }
.rpbar { display: flex; height: 18px; border-radius: 3px; overflow: hidden; min-width: 0; flex: 1 1 auto; }
.rpbar i { display: block; height: 18px; font-style: normal; font-size: 11px; line-height: 18px; color: #fff; text-align: center; overflow: hidden; white-space: nowrap; }
.rprow { display: grid; grid-template-columns: minmax(80px, 110px) 1fr minmax(120px, auto); gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.rprow .ct { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile.ok .num { color: var(--ok); } .tile.ok { border-top-color: var(--ok); }
@media print { .printonly { display: block; } #rp-save, #rp-xlsx, #rp-print, #rp-exgo, #rp-aq, #rp-areset, #rp-acc td:first-child, #rp-acc th:first-child, #rp-acc tr.exc { display: none !important; } }
@media print { .tabs, .hero .rule, #sy-save, #me-xlsx, #me-print, #act-who, #act-days, textarea { display: none !important; } body { background: #fff; } .panel { break-inside: avoid; border: 1px solid #ccc; } section[hidden] { display: none !important; } }
.ro .form select, .ro .form input, .ro .form textarea { pointer-events: none; opacity: .7; }
.tgs { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; }
.tg { white-space: nowrap; color: var(--muted); }
.tg b { font-weight: 500; color: var(--fg); }
.tg.pos { color: var(--accent); font-weight: 600; } .tg.pos b { color: var(--accent); }
.tg.err { color: var(--high); font-weight: 600; } .tg.err b { color: var(--high); }
.tg.fp { color: var(--high); font-weight: 600; text-decoration: underline wavy; text-underline-offset: 3px; }
.fptag { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 999px; background: var(--high); color: #fff; white-space: nowrap; }
.fpbox { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border: 1px solid var(--high); border-radius: 6px; padding: 6px 10px; }
.fpbox select { width: auto; flex: 1 1 160px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chiprow .lab { font-size: 12px; color: var(--muted); margin-right: 2px; }
.ov-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ov-tools select, .ov-tools input[type=date] { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
td.n, th.n { text-align: right; }
tr.tot td { font-weight: 600; border-top: 2px solid var(--line); }
.hbar { display: flex; align-items: center; gap: 6px; min-width: 120px; }
.hbar i { display: block; height: 10px; border-radius: 0 3px 3px 0; background: var(--high); }
.hbar.v i { background: var(--accent); }
.days { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.days .d { flex: 1 1 0; display: flex; flex-direction: column-reverse; min-width: 4px; height: 100%; }
.days .d i { display: block; width: 100%; }
.days .d .ok { background: var(--navy); border-radius: 0; }
.days .d .bad { background: var(--high); border-radius: 3px 3px 0 0; }
.dlab { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
.deflot { color: var(--high); font-weight: 600; }
.wg { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 2px; vertical-align: middle; }
.wg span { min-width: 30px; padding: 1px 3px; border-radius: 3px; font-size: 10px; line-height: 1.25; text-align: center; background: var(--chip); color: var(--muted); border: 1px solid var(--line); }
.wg span b { display: block; font-size: 11px; color: var(--fg); font-weight: 600; }
.wg span.B { background: color-mix(in srgb, var(--med) 22%, var(--panel)); border-color: var(--med); }
.wg span.E { background: var(--high); border-color: var(--high); color: #fff; } .wg span.E b { color: #fff; }
.wg span.D { background: color-mix(in srgb, var(--med) 10%, var(--panel)); border-style: dashed; border-color: var(--med); }
.wg span.C { background: color-mix(in srgb, var(--ok) 14%, var(--panel)); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.wg.sm span { min-width: 16px; padding: 0 2px; font-size: 0; } .wg.sm span b { font-size: 10px; }
.loadbox { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.loadtx { font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
.loadtx .bad { color: var(--high); font-weight: 600; } .loadtx .warn { color: var(--med); font-weight: 600; }
.wlegend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); align-items: center; }
/* Base and helpers that replace the artifact's inline styles (inline styles are blocked by the CSP). */
:root { color-scheme: light; box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; padding: 0; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }
.stack { display: grid; gap: 16px; }
.h1top { margin-top: 6px; }
.mt6 { margin-top: 6px; }
.m0 { margin: 0; }
.ml8 { margin-left: 8px; }
.flaggedh { margin: 4px 0 -6px; }
.tabhelp { margin: -6px 0 0; }
.warnline { color: var(--med); }
.tabs .who { margin-left: auto; align-self: center; font-size: 13px; color: var(--muted); white-space: nowrap; padding-left: 8px; }
.tabs .who a { color: var(--accent); }
#wl-q { flex: 1 1 220px; max-width: 320px; }
.comid { flex: 0 1 160px !important; }
.nowrap { white-space: nowrap; }
/* Grid children default to min-width:auto and would widen the page past a phone screen. */
.wrap > *, #app > *, .stack > * { min-width: 0; }
#app { display: grid; gap: 16px; min-width: 0; }
/* Replacements for the artifact's inline styles. */
.lead { margin: 0; color: var(--fg); }
.points { font-size: 14px; line-height: 1.5; }
.h14 { font-size: 14px; margin: 6px 0; }
.h14t { font-size: 14px; margin-top: 6px; }
.mw420 { max-width: 420px; }
.mw640 { max-width: 640px; }
.mw110 { max-width: 110px; }
.mw220 { max-width: 220px; }
.mw80 { max-width: 90px; }
.grow { flex: 1 1 240px; min-width: 0; }
.modebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; }
.modebar .note { margin: 0; }
/* The AI / Non-AI switch shows one feature set at a time. */
body.mode-ai .only-rules, body.mode-rules .only-ai { display: none !important; }
.askout { border-top: 0; white-space: pre-wrap; line-height: 1.5; }
.photo-in { font-size: 12px; max-width: 100%; }
.mw260 { max-width: 260px; }
.mt6s { margin: 6px 0 0; color: var(--fg); }
.notes-ta { min-height: 110px; }
.notes-ta-sm { min-height: 90px; }
.prewrap { white-space: pre-wrap; }
.legend .c-user { --c: #4f7cc4; } .legend .c-product { --c: var(--high); } .legend .c-amb { --c: var(--ok); }
.legend .c-none { --c: var(--muted); } .legend .c-notErr { --c: #b9b4c9; }
.legend .c-valid { --c: var(--navy); } .legend .c-invalid { --c: var(--high); }
.legend .c-ERP { --c: var(--navy); } .legend .c-EHV-1 { --c: var(--high); } .legend .c-Sal { --c: var(--ok); } .legend .c-Strep { --c: var(--accent); }
.split { display: flex; height: 14px; border-radius: 3px; overflow: hidden; min-width: 140px; gap: 0; }
.split i { display: block; height: 14px; border-radius: 0; }
.mono { font-family: var(--mono); }
.wrapflex { flex-wrap: wrap; }
.ctl-in { font: inherit; font-size: 12px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
.ctl-in13 { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
.w-auto { width: auto; }
.svgbox svg { display: block; max-width: 520px; }
.card.flash { outline: 2px solid var(--accent); }
.muted { color: var(--muted); }
