:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #080d15; color: #f1f5f9; }
* { box-sizing: border-box; }
body { margin: 0; width: 100%; height: 100dvh; overflow: hidden; }
[hidden] { display: none !important; }
#presentation, #stage { position: absolute; inset: 0; }
#stage { display: block; overflow: hidden; }
/* Fixed CSS viewport keeps Grafana's desktop breakpoints on every outer screen. */
#slide-viewport { position: absolute; width: 1920px; height: 1080px; transform-origin: top left; transform: scale(0); }
#slide-viewport > img, #slide-viewport > iframe { display: block; width: 1920px; height: 1080px; min-width: 0; min-height: 0; border: 0; }
#slide-viewport > img { object-fit: contain; }
#slide-viewport > * { animation: appear .25s ease-out; }
@keyframes appear { from { opacity: .35; } to { opacity: 1; } }
.notice { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4vw; text-align: center; background: #080d15; overflow: auto; }
.eyebrow { color: #8ed0b0; letter-spacing: .16em; font-size: clamp(11px, 1vw, 16px); }
h1 { max-width: 900px; font-size: clamp(25px, 3vw, 52px); margin: 12px 0; }
.notice p:not(.eyebrow) { max-width: 720px; font-size: clamp(15px, 1.3vw, 23px); line-height: 1.5; color: #bcc9d9; }
a { color: #9ad9ff; margin: 10px; }
button { font: inherit; background: #1d2a3c; color: #fff; border: 1px solid #4a5e76; border-radius: 7px; padding: 9px 14px; cursor: pointer; }
button:hover { background: #30465e; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #81ddb1; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: default; }
#controls { position: fixed; z-index: 4; bottom: 7px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; max-width: calc(100% - 16px); padding: 5px 8px; font-size: 12px; background: #0e1827e6; border: 1px solid #41556d; border-radius: 8px; box-shadow: 0 3px 12px #0006; transition: opacity .2s; }
#controls button { min-height: 30px; padding: 4px 8px; border-radius: 5px; }
#controls .brand { display: none; }
#position { white-space: nowrap; font-variant-numeric: tabular-nums; color: #bbcada; }
#slide-title { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.controls-hidden #controls { opacity: 0; pointer-events: none; }
body.controls-hidden #controls:focus-within { opacity: 1; pointer-events: auto; }
#help { position: fixed; z-index: 5; right: 20px; bottom: 95px; width: min(540px, calc(100vw - 40px)); max-height: 65dvh; overflow: auto; padding: 18px 24px; border: 1px solid #587089; background: #101d30; border-radius: 10px; line-height: 1.55; }
#settings { position: fixed; z-index: 5; right: 12px; bottom: 100px; width: min(360px, calc(100vw - 24px)); max-height: calc(100dvh - 112px); overflow: auto; padding: 16px; border: 1px solid #587089; background: #101d30; border-radius: 10px; font-size: 13px; }
#settings h2 { font-size: 17px; margin: 0 0 12px; }
#settings label { display: block; margin-bottom: 6px; }
#settings input { width: 100%; padding: 8px; font: inherit; color: #fff; background: #080d15; border: 1px solid #587089; border-radius: 5px; }
#settings p { line-height: 1.5; color: #bbcada; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.settings-actions button { padding: 6px 8px; font-size: 12px; }
#preview-label { position: fixed; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); background: #653e00ee; border: 1px solid #e9b65e; color: #ffecbc; padding: 6px 12px; border-radius: 5px; font-size: 12px; text-align: center; }
@media (max-width: 850px) { #controls { gap: 4px; flex-wrap: wrap; justify-content: center; width: max-content; } #slide-title { display: none; } }
@media (pointer: coarse) { #controls button { min-height: 44px; min-width: 44px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
