body { font: 14px/1.4 system-ui, sans-serif; margin: 0 1.5rem 3rem; color: #1d2329; }
header { border-bottom: 1px solid #d5dbe1; padding: .75rem 0; }
h1 { font-size: 1.3rem; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; }
label { margin: 0 .3rem 0 .8rem; font-weight: 600; }
label:first-child { margin-left: 0; }
input, select, button { font: inherit; padding: .2rem .4rem; }
.hint { color: #5b6670; margin-left: .8rem; font-size: .9em; }
nav { margin: .8rem 0; display: flex; gap: .3rem; }
[role=tab] { border: 1px solid #b8c1ca; background: #f3f5f7; cursor: pointer; }
[role=tab][aria-selected=true] { background: #1d4f7a; color: #fff; border-color: #1d4f7a; }
form[role=tabpanel] { margin-bottom: 1rem; }
#error { background: #fdecea; border: 1px solid #e0a39c; padding: .6rem .8rem; margin: .8rem 0; }
#coverage { background: #f4f7ec; border: 1px solid #c9d6a8; padding: .3rem .9rem; margin: .5rem 0; }
#coverage h3 { font-size: .95rem; margin: .4rem 0; }
details { margin: .5rem 0; background: #f6f6fb; border: 1px solid #d0d0e6; padding: .3rem .9rem; }
table { border-collapse: collapse; width: 100%; margin: .5rem 0; }
th, td { border-bottom: 1px solid #e3e7eb; text-align: left; padding: .25rem .4rem; vertical-align: top; }
th { background: #f3f5f7; }
td.etal { color: #9a3412; font-weight: 700; }
button.link { background: none; border: none; color: #1d4f7a; text-decoration: underline; cursor: pointer; padding: 0 .3rem 0 0; }
#instrument { border-top: 2px solid #1d4f7a; margin-top: 1rem; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; }
dt { font-weight: 600; }
pre { white-space: pre-wrap; margin: .2rem 0; }

/* R2: the reconciliation queue (recon.html) */
.recon { --series-1: #2a78d6; --series-2: #eb6834; --surface-1: #fcfcfb; --text-secondary: #52514e; }
.recon h1 a.hint { font-size: .8rem; font-weight: 400; }
.recon section[aria-label] > h2 { margin-top: 1.2rem; }
#flash { background: #eef6ee; border: 1px solid #a8cfa8; padding: .5rem .8rem; margin: .8rem 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.meaning { color: #52514e; font-size: .9em; }
tr.total { font-weight: 700; }
#filters { margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .3rem 0; align-items: center; }
#items tbody tr { cursor: pointer; }
#items tbody tr[aria-selected=true] { background: #e6eef7; outline: 2px solid #1d4f7a; outline-offset: -2px; }
#items tbody tr.done td { color: #5b6670; text-decoration: line-through; }
kbd { border: 1px solid #b8c1ca; border-radius: 3px; padding: 0 .25rem; background: #f3f5f7; font-size: .85em; }
.pager { margin: .4rem 0; }
#item { border-top: 2px solid #1d4f7a; margin-top: 1rem; }
.panel { border: 1px solid #d5dbe1; padding: .3rem .9rem .6rem; margin: .7rem 0; }
.panel h3 { margin: .4rem 0; font-size: 1rem; }
.panel h4 { margin: .7rem 0 .3rem; font-size: .92rem; }
.status { padding: .4rem .6rem; border-left: 4px solid #b8c1ca; background: #f6f7f8; }
.status.st-open { border-color: #eb6834; }
.status.st-resolved { border-color: #1baf7a; }
.status.st-deferred { border-color: #eda100; }
.status.st-not_applicable { border-color: #8a8f96; }
.actions form { border-top: 1px dashed #d5dbe1; padding: .3rem 0 .5rem; }
.actions form:first-of-type { border-top: none; }
.field { display: inline-flex; align-items: center; margin: .2rem .6rem .2rem 0; }
.field label { margin: 0 .3rem 0 0; }
.mode, .row { margin: .2rem 0; }
.picks { list-style: none; padding: 0; margin: .2rem 0; max-height: 14rem; overflow: auto; }
.preview { background: #f4f7ec; border: 1px solid #c9d6a8; padding: .2rem .7rem; margin: .4rem 0; }
.preview:empty { display: none; }
.preview tr.this { background: #fff3c4; font-weight: 600; }
.bad { color: #9a3412; }
.tiles { display: flex; gap: 1rem; flex-wrap: wrap; }
.tile { border: 1px solid #d5dbe1; padding: .4rem .9rem; min-width: 10rem; background: var(--surface-1); }
.tile-label { color: var(--text-secondary); font-size: .85rem; }
.tile-value { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-sub { color: var(--text-secondary); font-size: .8rem; }
.charts { display: flex; gap: 1rem; flex-wrap: wrap; }
figure.chart { position: relative; margin: .6rem 0; width: 380px; background: var(--surface-1); border: 1px solid #e3e7eb; padding: .3rem; }
figure.chart figcaption { font-weight: 600; font-size: .9rem; }
figure.chart svg { width: 100%; height: auto; }
figure.chart .grid { stroke: #e3e7eb; stroke-width: 1; }
figure.chart .axis { fill: var(--text-secondary); font-size: 10px; }
figure.chart .direct { fill: #0b0b0b; font-size: 11px; font-weight: 600; }
figure.chart .line { fill: none; stroke-width: 2; }
figure.chart .line.s1 { stroke: var(--series-1); }
figure.chart .line.s2 { stroke: var(--series-2); }
figure.chart .dot { stroke: var(--surface-1); stroke-width: 2; }
figure.chart .dot.s1 { fill: var(--series-1); }
figure.chart .dot.s2 { fill: var(--series-2); }
figure.chart .hit { fill: transparent; cursor: crosshair; }
figure.chart .tip { position: absolute; top: 1.6rem; transform: translateX(-50%); background: #1d2329; color: #fff; padding: .15rem .45rem; font-size: .8rem; white-space: nowrap; pointer-events: none; }

/* I2: the clerk's copy on an item */
.copy-file { border-top: 1px dashed #d5dbe1; padding: .3rem 0; }
.pages { display: flex; gap: .5rem; flex-wrap: wrap; margin: .3rem 0; }
img.page { width: 160px; border: 1px solid #b8c1ca; cursor: zoom-in; background: #fff; }
img.page.big { width: min(850px, 100%); cursor: zoom-out; }
details.ocr pre { max-height: 20rem; overflow: auto; background: #fafafa; border: 1px solid #eee; padding: .3rem; }
.conf { font-variant-numeric: tabular-nums; }
.conf.high { font-weight: 700; color: #136f4a; }
ul.why { margin: 0; padding-left: 1rem; font-size: .85em; color: #52514e; }
.login { display: grid; grid-template-columns: max-content 18rem; gap: .5rem .8rem; align-items: center; margin: 1rem 0; }
.login button { grid-column: 2; justify-self: start; }
#session { display: flex; gap: .8rem; align-items: center; }
