/* Styles for the sealed check frame. Loaded as a blob: stylesheet (ADR-0003). */
:root { color-scheme: light; --ink: #0f172a; --muted: #475569; --line: #dbe3ea; --green: #0f6b5c; --red: #b42318; --amber: #8a5a00; --bg: #f7faf9; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; }
#app { padding: 16px; display: grid; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg); }
h2 { font-size: 1.15rem; margin: 0 0 4px; } h3 { font-size: 1rem; margin: 16px 0 8px; }
p { margin: 4px 0 12px; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 12px; }
legend { font-weight: 600; padding: 0 4px; }
.field { display: grid; gap: 4px; margin-bottom: 10px; }
label { font-weight: 500; font-size: .95rem; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #b8c4ce; border-radius: 8px; width: 100%; background: #fff; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid #93c5bd; outline-offset: 1px; }
.hint { font-size: .85rem; margin: 0; }
.field.check { display: flex; align-items: center; gap: 8px; }
.field.check input { width: auto; margin: 0; }
fieldset > .hint { margin-bottom: 8px; }
.file-row { display: grid; gap: 8px; grid-template-columns: 1fr 1fr 2fr; }
@media (max-width: 640px) { .file-row { grid-template-columns: 1fr; } }
button { font: inherit; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
button.primary { background: var(--ink); color: #fff; }
button.link { border: 0; padding: 4px 0; color: var(--green); text-decoration: underline; background: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.error { color: var(--red); font-weight: 600; }
.working { color: var(--muted); }
.statement { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.summary { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.summary li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.v-fail { color: var(--red); } .v-unsure { color: var(--amber); } .v-ok { color: var(--green); } .v-none { color: var(--muted); }
.coverage, .note, .period { font-size: .9rem; }
table.lines { border-collapse: collapse; width: 100%; font-size: .9rem; color: var(--ink); }
table.lines th, table.lines td { text-align: left; border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
table.lines tr.v-fail td:first-child { color: var(--red); font-weight: 600; }
table.lines tr.v-unsure td:first-child { color: var(--amber); font-weight: 600; }
.statement-host { overflow-x: auto; }
@media print { #app > .card:not(.ask) { display: none; } .ask .actions { display: none; } }
.rule { font-size: .8rem; color: var(--muted); }
td.records { word-break: break-all; font-size: .8rem; }
.waste { margin-top: 16px; } .w-look { color: var(--ink); } .w-early { color: var(--muted); }
table.lines tr.w-look td:first-child { font-weight: 600; }
#app > * { min-width: 0; } /* a wide statement table scrolls inside its box instead of widening the page */
@media (max-width: 640px) {
  table.lines thead { display: none; }
  table.lines, table.lines tbody, table.lines tr, table.lines td { display: block; width: 100%; }
  table.lines tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
  table.lines td { border: 0; padding: 2px 0; }
  table.lines td:empty { display: none; }
  table.lines td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
  table.lines td[data-label='Verdict']::before, table.lines td[data-label='What']::before,
  table.lines td[data-label='Status']::before { content: none; }
}
/* Statement pictures (ADR-0005): inline SVG with presentation attributes; layout only here. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.viz { margin: 12px 0 16px; }
.viz svg.chart { display: block; width: 100%; }
.bar-title { margin: 12px 0 4px; color: var(--ink); font-size: .95rem; }
.legend { list-style: none; padding: 0; margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { flex: none; }
.over { margin: 0 0 10px; color: #9c1c14; }
ol.top { margin: 4px 0 12px; padding-left: 1.5em; font-size: .9rem; }
.glance-list { list-style: none; padding: 0; margin: 0; }
.glance-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.glance-list .detail { color: var(--muted); font-size: .9rem; }
.pill { display: inline-block; min-width: 7.5em; text-align: center; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .85rem; border: 1px solid currentColor; }
.pill.v-fail { color: #9c1c14; background: #fdecea; } .pill.v-unsure { color: #6b4400; background: #fdf2d6; }
.pill.v-ok { color: #0b5d4f; background: #e3f2ed; } .pill.v-none { color: var(--muted); background: #eef2f1; }
