/* The timer is confined to the authorized home-header position. */
.sg-home-top{display:flex;justify-content:center;align-items:center;gap:24px}
.rt-picture{position:relative;display:block;width:clamp(96px,23vw,180px);min-width:0;padding:0!important;border:0!important;background:transparent!important;line-height:0;container-type:inline-size}
.rt-picture>img{display:block;width:100%;height:auto;object-fit:contain;clip-path:none}
.rt-live-face{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.rt-mode{font-family:Arial,sans-serif;font-size:38px;letter-spacing:3px;fill:#c6f6ff}
.rt-digits{font-family:Arial,sans-serif;font-weight:800;font-size:130px;font-variant-numeric:tabular-nums;fill:#ff5b61;filter:drop-shadow(0 0 8px #ff222299)}
.rt-ready .rt-digits{fill:#4bff8c;font-size:170px;filter:drop-shadow(0 0 8px #19d87388)}
.rt-settings label{display:grid;grid-template-columns:1fr 100px;align-items:center;text-align:left;gap:12px;margin:14px 0}
.rt-settings input{max-width:100%;min-width:0;text-align:center}
.rt-state-ready{color:#4bff8c;font-weight:700}.rt-state-waiting{color:#ff5b61;font-weight:700}
@media(max-width:480px){.sg-home-top{gap:16px}}

/* Home uses shared columns so the timer stays directly above Bluetooth. */
.tracker-header.sg-timer-home{display:grid;grid-template-columns:repeat(3,clamp(96px,23vw,180px));justify-content:center;align-items:center;gap:16px 8px}
.sg-timer-home .sg-home-top,.sg-timer-home .hh-menu-wrap,.sg-timer-home .hh-menu-primary{display:contents}
.sg-timer-home .sg-home-top>a{grid-column:2;grid-row:1;justify-self:center}
.sg-timer-home .rt-picture{grid-column:3;grid-row:1;justify-self:center}
.sg-timer-home .hh-menu-picture-button{grid-column:1;grid-row:2}
.sg-timer-home .hh-receive-picture-button{grid-column:2;grid-row:2}
.sg-timer-home .bt-picture-button{grid-column:3;grid-row:2;width:clamp(96px,23vw,180px)}

.rt-settings select{max-width:100%;min-width:0;width:100%;text-align:center}
.rt-settings label:has(select){grid-template-columns:1fr}
