/* Metre2 Statistics File Viewer (2 Dec 2026) */
:root { --acc: #7c3aed; --accd: #5b21b6; --accbg: #f3effd }
.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) } .bar .sp { flex: 1 }
.bar input[type=search] { height: 32px; border: 1px solid var(--line); padding: 0 10px; font: inherit; font-size: 13px; width: 260px; border-radius: 0 }
.bar .cnt { font-size: 12.5px; color: var(--tx2); font-family: var(--mono) }
.ghw { overflow: hidden; border-bottom: 1px solid var(--line); background: #f6f7f9; flex: none }
#ghead { position: relative; height: 44px }
#grid { flex: 1; overflow: auto; position: relative; min-height: 0 }
#gbody { position: relative }
.c { position: absolute; top: 0; width: 132px; height: 28px; line-height: 28px; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; border-right: 1px solid #eef0f3; box-sizing: border-box }
#ghead .c { height: 44px; line-height: 1.25; padding-top: 5px; cursor: pointer } #ghead .c b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis } #ghead .c small { display: block; color: var(--tx3); font-size: 11px; overflow: hidden; text-overflow: ellipsis }
#ghead .c.sel, .gr .c.sel { background: var(--accbg) }
.c.n { left: 0; width: 64px; color: var(--tx3); font-size: 11.5px; font-family: var(--mono); background: #fafbfc; text-align: right }
#ghead .c.n { position: absolute }
.gr { position: absolute; left: 0; right: 0; height: 28px; border-bottom: 1px solid #f0f1f4 } .gr:hover { background: #f8f9fb }
.c.r { text-align: right; font-variant-numeric: tabular-nums } .c.m { color: #b8bec7 }
.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) }
#vars { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow: auto; margin-top: 8px }
#vars button { text-align: left; border: 1px solid transparent; background: none; padding: 4px 6px; cursor: pointer; font: inherit; font-size: 13px }
#vars button:hover { background: #f4f5f7 } #vars button.on { border-color: var(--acc); background: var(--accbg) }
#vars small { display: block; color: var(--tx3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } #vars i { float: right; font-style: normal; font-size: 11px; color: var(--accd) }
#vsearch { width: 100%; height: 30px; border: 1px solid var(--line); padding: 0 8px; font: inherit; font-size: 13px; border-radius: 0; box-sizing: border-box }
#vinfo { margin-top: 10px; border-top: 1px solid var(--line2); padding-top: 10px } #vinfo h5 { margin: 0 0 2px; font-size: 15px } #vinfo p { margin: 0 0 6px; font-size: 13px; color: var(--tx2) }
.kv, .freq { border-collapse: collapse; width: 100%; font-size: 12.5px; margin-bottom: 8px } .kv th { text-align: left; color: var(--tx2); font-weight: 500; padding: 2px 10px 2px 0; width: 80px } .kv td { padding: 2px 0 }
.freq th { text-align: left; font-size: 11px; color: var(--tx3); border-bottom: 1px solid var(--line); padding: 3px 4px } .freq td { padding: 3px 4px; border-bottom: 1px solid #f0f1f4 } .freq .r { text-align: right; font-variant-numeric: tabular-nums } .freq .lab { color: var(--accd) }
.sub { font-size: 12px; color: var(--tx3) }
#facts { border-collapse: collapse; font-size: 12.5px; width: 100% } #facts th { text-align: left; font-weight: 500; color: var(--tx2); padding: 2px 10px 2px 0; vertical-align: top; white-space: nowrap } #facts td { overflow-wrap: anywhere }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer } .chk input { accent-color: var(--acc); width: 16px; height: 16px }
.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: 60vh; flex: none } .bar input[type=search] { width: 140px } }
