/* Schermi delle sale d'attesa (04 §4.4): temi tv_scuro (default), tv_chiaro, tv_contrasto; solo transform CSS, nessuna dipendenza esterna. */
.dsp [hidden], .dsp-pair [hidden] { display: none !important; }
.ds-display { padding: 0 !important; }
.dsp, .dsp-pair { --bg: #0b1220; --fg: #f8fafc; --mut: #94a3b8; --acc: #22d3ee; --card: #111a2e; font-family: "Plus Jakarta Sans Variable", system-ui, sans-serif; }
.dsp--tv_chiaro { --bg: #f8fafc; --fg: #0f172a; --mut: #475569; --acc: #0891b2; --card: #ffffff; }
.dsp--tv_contrasto { --bg: #000; --fg: #fff; --mut: #ffe600; --acc: #ffe600; --card: #000; }
.dsp { position: relative; height: calc(100vh - 24px); background: var(--bg); color: var(--fg); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.dsp__top { display: flex; align-items: center; gap: 1.5vw; padding: 1.2vh 2vw; font-size: 2.4vh; border-bottom: 2px solid var(--card); }
.dsp__nome { flex: 1; font-weight: 700; } .dsp__ora { font-size: 4vh; font-weight: 800; font-variant-numeric: tabular-nums; }
.dsp-logo { display: inline-grid; place-items: center; width: 6vh; height: 6vh; border-radius: 1.4vh; background: var(--acc); color: #00131a; font-weight: 900; font-size: 2.6vh; }
.dsp__main { display: grid; grid-template-columns: 60% 40%; min-height: 0; }
.dsp--full .dsp__main { grid-template-columns: 1fr; grid-template-rows: 70% 30%; }
.dsp--full .dsp__lato { display: grid; grid-template-columns: 2fr 1fr; }
.dsp--verticale .dsp__main { grid-template-columns: 1fr; grid-template-rows: 55% 45%; }
.dsp__chiamata { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2vh 2vw; }
.dsp__label { color: var(--mut); font-size: 2.4vh; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1vh; }
.dsp__codice { font-size: 18vh; line-height: 1; font-weight: 900; letter-spacing: .04em; margin: 0; color: var(--acc); font-variant-numeric: tabular-nums; }
.dsp__dest { font-size: 6vh; font-weight: 800; margin: 2vh 0 0; } .dsp__area { font-size: 3vh; color: var(--mut); margin: 1vh 0 0; }
.dsp__lato { background: var(--card); padding: 2vh 2vw; display: flex; flex-direction: column; gap: 2vh; overflow: hidden; }
.dsp__storico ol, .dsp__attesa ul { list-style: none; margin: 0; padding: 0; }
.dsp__storico li { display: flex; justify-content: space-between; font-size: 3.6vh; padding: .8vh 0; border-bottom: 1px solid rgba(148, 163, 184, .25); }
.dsp__storico li strong { font-variant-numeric: tabular-nums; }
.dsp__attesa li { font-size: 2.6vh; padding: .5vh 0; } .dsp__attesa li span { color: var(--mut); }
.dsp__ritardi p { font-size: 2.6vh; color: #fbbf24; margin: .4vh 0; }
.dsp__ticker { padding: 1.2vh 2vw; font-size: 2.6vh; background: var(--card); color: var(--mut); white-space: nowrap; overflow: hidden; }
.dsp__banner { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; animation: dsp-in .5s ease-out; z-index: 5; }
.dsp__banner .dsp__codice { font-size: 28vh; } .dsp__banner .dsp__dest { font-size: 8vh; }
@keyframes dsp-in { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dsp__offline { position: absolute; right: 1.5vw; bottom: 1vh; font-size: 1.8vh; color: var(--mut); z-index: 6; }
.dsp__stale { position: absolute; left: 0; right: 0; top: 9vh; text-align: center; background: #b45309; color: #fff; padding: 1vh; font-size: 3vh; z-index: 6; }
.dsp__audio { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); background: var(--acc); color: #00131a; border: 0; border-radius: 999px; padding: 1.5vh 3vw; font-size: 2.6vh; font-weight: 800; z-index: 7; cursor: pointer; }
.dsp__notte { position: absolute; inset: 0; background: #000; color: #475569; display: flex; gap: 2vw; justify-content: center; align-items: center; font-size: 8vh; z-index: 8; }
.dsp-pair { min-height: 100vh; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5vh; text-align: center; padding: 4vh 4vw; }
.dsp-pair h1 { font-size: 5vh; margin: 0; } .dsp-pair__help { font-size: 2.4vh; color: var(--mut); max-width: 70ch; margin: 0; }
.dsp-pair__code { font-size: 14vh; font-weight: 900; letter-spacing: .25em; color: var(--acc); font-variant-numeric: tabular-nums; }
.dsp-pair__demo { display: grid; gap: 1vh; justify-items: center; margin-top: 2vh; padding: 2vh 3vw; border: 1px dashed var(--mut); border-radius: 2vh; }
.dsp-pair__demo label { font-size: 2.2vh; color: var(--mut); }
.dsp-pair__demo input { font-size: 4vh; text-align: center; width: 12ch; padding: .6vh 1vw; border-radius: 1vh; border: 2px solid var(--acc); background: transparent; color: var(--fg); letter-spacing: .1em; }
.dsp-pair__demo button { font-size: 2.4vh; padding: 1vh 2vw; border-radius: 999px; border: 0; background: var(--acc); color: #00131a; font-weight: 800; cursor: pointer; }
.dsp-err { color: #f87171; font-size: 2.4vh; min-height: 3vh; }
