/* Foci Lab upload analyser: extras on top of style.css (which supplies the tokens and shared classes). */
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.banner { margin-top: 18px; max-width: 80ch; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--focus); border-radius: 10px; padding: 12px 18px; font-size: 14px; }
.banner ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.banner li { margin: 3px 0; }
.banner b { color: var(--ink); }

#form { display: block; }
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 8px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input[type="file"] { width: 100%; min-height: 44px; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 13px "IBM Plex Sans", sans-serif; }
.req { font: 500 11px "IBM Plex Mono", monospace; color: var(--accent); margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; }
.field .note { margin: 6px 0 0; }

.params { margin: 12px 0; }
.params summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.params summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 12px 0; }
.pgrid label { display: block; font-size: 13px; font-weight: 600; }
.pgrid input { width: 100%; height: 40px; margin-top: 4px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 14px "IBM Plex Mono", monospace; }
.pgrid input:invalid, .pgrid input.bad { border-color: var(--up); }
.pgrid small { display: block; margin-top: 3px; color: var(--faint); font-size: 12px; line-height: 1.35; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.progress { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 13px "IBM Plex Mono", monospace; }
.progress progress { width: 160px; accent-color: var(--accent); }
.status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; }
.status.err { color: var(--up); font-weight: 600; }
.status.ok { color: var(--down); }

#results { margin-top: 30px; }
#results .tiles { margin-top: 14px; }
.ov { width: 100%; height: auto; display: block; border-radius: 10px; background: #05080f; }
.histbox svg { display: block; width: 100%; height: auto; }
.histbox rect.bar { fill: var(--accent); }
.histbox text { font: 11px "IBM Plex Mono", monospace; fill: var(--muted); }
.histbox line { stroke: var(--line); }
.tbl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tbl-head h3 { margin: 0; }
#tbl { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; }
#tbl th, #tbl td { text-align: right; }
.tbl { max-height: 420px; overflow: auto; }
.tbl thead th { position: sticky; top: 0; background: var(--surface); }
dl.used { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 13.5px; }
dl.used dt { color: var(--muted); }
dl.used dd { margin: 0; font-family: "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
#limits { color: var(--muted); font-size: 13.5px; }
#results .two { margin: 18px 0; }
#results .card { margin-bottom: 18px; }

@media (max-width: 860px) { .files { grid-template-columns: 1fr; } }
