/* ── Page shell ─────────────────────────────────────────────── */


html {
    font-size:80%;
}



body {
    width: 95vw;
    max-width: 100vw;
    padding: 0 0.5rem 0 0.5rem ;
    background: #1a3d1a;
}


.tv-section {
    /*position: fixed;*/
    /*top: 10rem;*/
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: none;
    flex-direction: column;
    width:100%;
}

.tv-section.active {
    display: flex;
}

/* nosnap: dev inspection mode — all sections visible, natural height, scrollable */
body.tv-nosnap {
    overflow: visible;
    font-size: 70%
    width: 1400px;
}
body.tv-nosnap .tv-section {
    position: static;
    display: flex;
    height: auto;
    min-height: unset;
    overflow: visible;
    border-top: 1px solid #2a4a2a;
}
#main-head .motto {display:none;}

/* ── Hidden sections (toggled by kiosk config) ───────────────── */
.tv-section.tv-hidden { display: none !important; }

/* ── Dot indicator (bottom-center) ──────────────────────────── */
#tv-indicator {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 900;
}
.tv-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: background 0.3s;
}
.tv-dot.active { background: rgba(255,255,255,0.85); }

/* ── Control button (bottom-right) ──────────────────────────── */
#tv-ctrl-btn {
    position: fixed;
    bottom: 0.8rem;
    right: 1rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0.45;
    transition: opacity 0.2s;
    padding: 0;
}
#tv-ctrl-btn:hover,
#tv-ctrl-btn:focus {
    opacity: 1;
    outline: 2px solid rgba(255,255,255,0.7);
    outline-offset: 2px;
}

/* ── Settings panel ──────────────────────────────────────────── */
#tv-settings-panel {
    display: none;
    position: fixed;
    bottom: 4.2rem;
    right: 1rem;
    background: rgba(15,30,15,0.96);
    color: #eee;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    min-width: 230px;
    z-index: 1001;
    font-size: 1.4rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
#tv-settings-panel.open { display: block; }

.tv-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-weight: bold;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adc;
}
#tv-panel-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
}
#tv-panel-close:hover,
#tv-panel-close:focus { color: #fff; outline: 1px solid rgba(255,255,255,0.5); }

.tv-panel-body { padding: 0.8rem 1rem 1rem; }

.tv-panel-primary-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    background: #2e6b2e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0.9rem;
    text-align: center;
}
.tv-panel-primary-btn:hover,
.tv-panel-primary-btn:focus { background: #3a853a; outline: 1px solid rgba(255,255,255,0.4); }

.tv-panel-section { margin-top: 0.8rem; }

.tv-panel-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8ab;
    margin-bottom: 0.4rem;
}

.tv-delay-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.tv-preset-btn {
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-size: 1.3rem;
    cursor: pointer;
}
.tv-preset-btn:hover,
.tv-preset-btn:focus { background: rgba(255,255,255,0.18); color: #fff; }
.tv-preset-btn.tv-active {
    background: #2e6b2e;
    color: #fff;
    border-color: #4a8a4a;
}
#tv-delay-custom {
    width: 3.8rem;
    background: rgba(255,255,255,0.1);
    color: #eee;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 1.3rem;
    text-align: center;
}
#tv-delay-custom:focus { outline: 1px solid rgba(255,255,255,0.5); }

#tv-section-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
#tv-section-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border: none;
}
#tv-section-list input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #4a8a4a;
    cursor: pointer;
    flex-shrink: 0;
}
#tv-section-list label {
    cursor: pointer;
    color: #ddd;
    font-size: 1.3rem;
}
