/* Data versions bar, comparison marks and the "What changed" report. Colours come from styles.css. */
.vbar { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.vbar.old { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); }
.vbar-in { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.vsel { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em; }
.vsel select { font: inherit; font-size: 0.86rem; letter-spacing: 0; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; max-width: min(320px, 70vw); }
.vsel select:focus-visible, .vb-btn:focus-visible, .vnav button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vb-stat { color: var(--ink-2); }
.vb-stat b { color: var(--ink); }
.vb-old { color: var(--ink); font-weight: 600; }
.vb-btn { font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.vframe { position: fixed; left: -20000px; top: 0; border: 0; visibility: hidden; pointer-events: none; }

/* figures that differ from the version compared with */
body:not(.vmarks-off) #view .vchg { background: color-mix(in srgb, var(--warn) 32%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 32%, transparent); border-radius: 3px; cursor: help; }
body:not(.vmarks-off) #view svg .vchg { stroke: var(--warn); stroke-width: 3px; paint-order: stroke; }
body:not(.vmarks-off) #view svg text.vchg { stroke: none; font-weight: 800; text-decoration: underline; }
body:not(.vmarks-off) #view .vnew { text-decoration: underline dotted var(--muted); text-underline-offset: 3px; cursor: help; }
#view .vflash { outline: 3px solid var(--focus); outline-offset: 3px; }

.vnav { position: fixed; left: 18px; bottom: 18px; z-index: 45; display: flex; gap: 4px; align-items: center; color: var(--band-ink); background: var(--band); border-radius: 999px; padding: 4px 5px 4px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.22); font-size: 0.84rem; font-weight: 600; }
.vnav[hidden] { display: none; }
.vnav span { margin-right: 6px; white-space: nowrap; }
.vnav button { font: inherit; color: inherit; background: rgba(255,255,255,.16); border: 0; border-radius: 999px; padding: 6px 11px; cursor: pointer; }
@media (max-width: 640px) { .vnav { left: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } .vsel { width: 100%; justify-content: space-between; } }

/* the report */
dialog.vdlg { width: min(1040px, 96vw); max-height: 88vh; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); overflow: hidden; }
dialog.vdlg[open] { display: flex; flex-direction: column; }
dialog.vdlg::backdrop { background: rgba(0,0,0,.45); }
.vdlg-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.vdlg-h h3 { margin: 0; font-size: 1.05rem; }
.vdlg-b { padding: 4px 18px 20px; overflow: auto; }
.vsec h4 { margin: 20px 0 4px; font-size: 0.98rem; }
.vsec h5 { margin: 12px 0 4px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.vline { margin: 4px 0 8px; color: var(--ink-2); font-size: 0.88rem; line-height: 1.5; }
.vmuted { color: var(--muted); }
.vtable { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.vtable th { text-align: left; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.vtable td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.vtable .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vplus { color: var(--good); font-weight: 600; }
.vminus { color: var(--bad); font-weight: 600; }
@media print { .vbar, .vnav, .vframe { display: none !important; } }
