/* Metre2 XER Viewer (3 Dec 2026) */
:root { --acc: #b45309; --accd: #92400e; --accbg: #fdf4e7 }
.stage { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--panel) }
.bar { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap } .bar .sp { flex: 1 }
.bar input[type=search] { height: 32px; border: 1px solid var(--line); padding: 0 10px; font: inherit; font-size: 13px; width: 220px; border-radius: 0 }
.bar select { height: 32px; border: 1px solid var(--line); background: var(--panel); font: inherit; font-size: 13px; max-width: 260px }
.bar .seg { flex: none } .bar .seg button { height: 32px; font-size: 12.5px; padding: 0 10px; flex: none }
.bar .cnt { font-size: 12.5px; color: var(--tx2); font-family: var(--mono) }
.only { display: flex; gap: 10px; align-items: center; padding: 6px 14px; background: var(--accbg); font-size: 13px; border-bottom: 1px solid var(--line) } .only button { border: 0; background: none; color: var(--accd); font-weight: 600; cursor: pointer; text-decoration: underline }
#grid { flex: 1; overflow: auto; position: relative; min-height: 0; cursor: default }
#cv { position: sticky; top: 0; left: 0; display: block }
#sp { position: absolute; top: 0; left: 0; pointer-events: none }
.foot { display: flex; justify-content: space-between; gap: 12px; padding: 5px 12px; font-size: 11.5px; color: var(--tx3); background: var(--panel); border-top: 1px solid var(--line); font-family: var(--mono) }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer } .chk input { accent-color: var(--acc); width: 15px; height: 15px }
#facts, .kv { border-collapse: collapse; font-size: 12.5px; width: 100% } #facts th, .kv th { text-align: left; font-weight: 500; color: var(--tx2); padding: 2px 10px 2px 0; vertical-align: top; white-space: nowrap } #facts td, .kv td { overflow-wrap: anywhere; padding: 2px 0 }
#act h5 { margin: 0; font-size: 15px; font-family: var(--mono) } #act h5 em { font-style: normal; font-size: 11px; background: #fee2e2; color: #b91c1c; padding: 1px 6px; margin-left: 6px; font-family: var(--sans, inherit) } #act > p { margin: 2px 0 8px; font-size: 13.5px }
.rel { border-collapse: collapse; width: 100%; font-size: 12px; margin-top: 8px } .rel th { text-align: left; font-size: 11px; color: var(--tx3); border-bottom: 1px solid var(--line); padding: 3px 4px; font-weight: 600 } .rel td { padding: 3px 4px; border-bottom: 1px solid #f0f1f4; vertical-align: top }
.rel button { border: 0; background: none; padding: 0; color: var(--accd); font: 600 12px var(--mono); cursor: pointer; text-decoration: underline } .rel span { color: var(--tx2) }
.ck { border-collapse: collapse; width: 100%; font-size: 12.5px } .ck td { padding: 4px 4px; border-bottom: 1px solid #f0f1f4; vertical-align: top } .ck .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap }
.ck button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; text-align: left; cursor: pointer; color: var(--tx) } .ck button:disabled { cursor: default; font-weight: 500; color: var(--tx2) } .ck small { display: block; color: var(--tx3); font-size: 11px }
.ck tr.bad td:first-child { box-shadow: inset 3px 0 0 #dc2626; padding-left: 8px } .ck tr.ok td:first-child { box-shadow: inset 3px 0 0 #16a34a; padding-left: 8px } .ck tr.bad .r { color: #b91c1c; font-weight: 600 }
.sub { font-size: 12px; color: var(--tx3); margin: 6px 0 0 }
.go .btn { width: 100% } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
@media (min-width: 901px) { .app:has(#vWork:not([hidden])) { height: 100vh; min-height: 0 } #vWork { overflow: hidden } }
@media (max-width: 900px) { #grid { height: 65vh; flex: none } .bar input[type=search] { width: 140px } }
.est .n { overflow-wrap: anywhere }
