:root{--bg:#0b1220;--pan:#111a2b;--line:#22304a;--txt:#e6edf7;--mut:#8fa3c0;
      --ok:#22c55e;--bad:#ef4444;--warn:#f59e0b;--acc:#38bdf8}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--txt);font:13px/1.5 "Segoe UI",system-ui,sans-serif}
header{padding:14px 18px;border-bottom:1px solid var(--line)}
.brand{font-weight:800;font-size:16px}
.tag{font-size:11px;color:var(--mut);border:1px solid var(--line);border-radius:99px;padding:2px 8px;margin-inline-start:8px}
.sub{color:var(--mut);font-size:12px;margin-top:4px}
.bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid var(--line)}
label{color:var(--mut);display:flex;gap:6px;align-items:center}
input{background:#0d1626;color:var(--txt);border:1px solid var(--line);border-radius:6px;padding:5px 8px}
input[type=text]{min-width:260px}
input[type=number]{width:90px}
button{background:#1b2740;color:var(--txt);border:1px solid var(--line);border-radius:6px;padding:6px 12px;cursor:pointer}
button:disabled{opacity:.45;cursor:default}
#btnLoad{background:var(--acc);color:#06263a;border-color:var(--acc);font-weight:700}
.mode{color:var(--mut);font-size:12px;margin-inline-start:auto}
.panel{margin:14px 18px;border:1px solid var(--line);border-radius:10px;background:var(--pan);padding:12px 14px}
.head{font-weight:700;margin-bottom:8px}
.state{font-weight:800;letter-spacing:.5px;margin-bottom:10px}
.s-AVAILABLE{color:var(--ok)} .s-FAILED,.s-CANCELLED{color:var(--bad)}
.s-IMPORTING,.s-VERIFYING_MANIFEST,.s-VERIFYING_DATASET{color:var(--warn)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.grid div{border:1px solid var(--line);border-radius:8px;padding:8px}
.grid span{color:var(--mut);font-size:11px;display:block}
table{width:100%;border-collapse:collapse;font-size:12px}
th,td{border-bottom:1px solid var(--line);padding:6px 8px;text-align:start}
th{color:var(--mut);font-weight:600}
td.num{text-align:end;font-variant-numeric:tabular-nums}
code{font-family:ui-monospace,Consolas,monospace;font-size:11px}
.ok{color:var(--ok)} .bad{color:var(--bad)} .mut{color:var(--mut)}
pre{margin:0;max-height:220px;overflow:auto;color:var(--mut);font-size:11px;white-space:pre-wrap}

/* ---- derived assistive colour view ------------------------------------
   The colours carry a measurement, so each one is written out in words as
   well: colour is never the only signal. Nothing here is the source file. */
#cardPanel { background: #FAF7F0; }
.xcard { background: #FFFDF9; border: 1px solid #DED7CB; border-radius: 8px; padding: 12px; }
.xcard .xhead { color: #263238; font-size: 18px; margin-bottom: 8px; }
.xline { font-family: ui-monospace, Menlo, Consolas, monospace; padding: 3px 8px;
         border-right: 4px solid transparent; color: #17212B; white-space: pre-wrap;
         word-break: break-word; }
.xline .xtag { color: #28527A; }
.xline .xval { color: #17212B; }
.x-identity { border-right-color: #28527A; }
.x-price    { border-right-color: #7A6E8A; }
.x-empty    { background: #FDECEC; border: 1px solid #C94A4A; border-right-width: 4px; }
.x-placeholder { background: #FFF3D6; border: 1px solid #C47A12; border-right-width: 4px; }
.x-usable   { border-right-color: #4F8A68; }
.x-absent   { background: #F1F3F4; border: 1px solid #7A838A; border-right-width: 4px; }
.xstate { font-family: inherit; font-weight: 600; margin-inline-start: 8px; }
.xstate.e { color: #C94A4A; }
.xstate.p { color: #C47A12; }
.xstate.u { color: #4F8A68; }
.xstate.a { color: #7A838A; }
.xnote { color: #7A838A; }
.xlegend span { margin-inline-end: 14px; }
