:root { --bg:#0e1410; --panel:#18211b; --line:#2c372e; --fg:#f1f5ee; --muted:#9fb0a2; --accent:#ff8a3d; --warn:#ffcf5c; --bad:#ff7a6b; --ok:#7fd391; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
body.tv { cursor: none; }
#tv { height: 100vh; display: grid; grid-template-rows: auto auto 1fr; gap: 2.2vh; padding: 3vh 3vw; }
.top { display: flex; justify-content: space-between; align-items: baseline; }
.top h1 { margin: 0; font-size: 4vh; letter-spacing: .02em; }
.top .clock { font-size: 4vh; color: var(--muted); font-variant-numeric: tabular-nums; }
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4vw; }
.st { background: var(--panel); border: 2px solid var(--line); border-radius: 1.2vw; padding: 2vh 1vw; text-align: center; display: flex; flex-direction: column; gap: .6vh; }
.st .n { font-size: 15vh; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.st .l { font-size: 3.2vh; font-weight: 700; }
.st .m { font-size: 2.3vh; color: var(--muted); min-height: 1.2em; }
.st.old { border-color: var(--warn); }
.st.old .m { color: var(--warn); }
.st.ready { border-color: var(--accent); }
.st.ready .n { color: var(--accent); }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4vw; min-height: 0; }
.box { background: var(--panel); border: 2px solid var(--line); border-radius: 1.2vw; padding: 2vh 1.6vw; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 1vh; }
.box h2 { margin: 0; font-size: 3vh; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.row { display: flex; justify-content: space-between; gap: 2vw; font-size: 3.4vh; padding: .8vh 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .w { color: var(--warn); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .w.bad { color: var(--bad); }
.row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.none { font-size: 3vh; color: var(--ok); }
.foot { font-size: 2.2vh; color: var(--muted); }
.err { color: var(--bad); }
.login { max-width: 460px; margin: 12vh auto; padding: 24px; font-size: 18px; }
.login input, .login button { display: block; width: 100%; font-size: 20px; padding: 14px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); }
.login button { background: var(--accent); color: #1c1006; font-weight: 700; border: 0; }
.login .bad { color: var(--bad); }
