html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: #000; font-family: 'Courier New', monospace; color: white; overflow: hidden; }
.dashboard { display: flex; flex-direction: column; height: 100vh; height: 100dvh; width: 100vw; padding: 4px; gap: 4px; box-sizing: border-box; }
#fatal-banner { display: none; position: fixed; top: 0; left: 0; width: 100%; background: #ff0000; color: #fff; text-align: center; padding: 10px; font-weight: bold; z-index: 9999; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.hud-header { background: #0a0a0a; border: 1px solid #333; border-radius: 6px; padding: 6px 12px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.hud-val { font-size: 16px; font-weight: bold; color: #00ffff; text-shadow: 0 0 5px #00ffff; }
.ventus-brand { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; max-width: 42vw; }
.ventus-main { font-family: -apple-system, sans-serif; font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 2px; white-space: nowrap; }
.ventus-sub { font-family: -apple-system, sans-serif; font-size: 6.8px; color: #888; letter-spacing: 2.4px; text-transform: uppercase; white-space: nowrap; }
.map-container { position: relative; flex-grow: 1; min-height: 0; border: 1px solid #222; border-radius: 6px; overflow: hidden; background: #0b0e14; }
#map { width: 100%; height: 100%; }
.podcast-shoutout { position: absolute; bottom: 6px; right: 8px; font-family: -apple-system, sans-serif; font-size: 8px; color: #fff; opacity: 0.5; text-align: right; text-transform: uppercase; letter-spacing: 1px; pointer-events: none; z-index: 10; text-shadow: 1px 1px 2px #000; }
.scada-wrapper { background: #050505; border: 1px solid #444; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; flex-shrink: 0; max-height: 38vh; }
.scada-brand { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #222; flex-shrink: 0; }
.scada-brand-main { font-family: -apple-system, sans-serif; font-size: 11px; font-weight: 800; color: #fff; letter-spacing: 2.4px; text-transform: uppercase; }
.scada-brand-sub { font-family: -apple-system, sans-serif; font-size: 6px; color: #555; letter-spacing: 2px; text-transform: uppercase; }
.scada-brand-tag { margin-left: auto; font-family: 'Courier New', monospace; font-size: 7px; color: #333; text-transform: uppercase; letter-spacing: 1px; }
.scada-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; overflow-y: auto; padding-bottom: 5px; }
.key-group { border-left: 2px solid #333; padding-left: 10px; margin-bottom: 4px; }
.key-title { font-size: 10px; color: #66ccff; text-transform: uppercase; margin-bottom: 6px; font-weight: bold; }
.key-item { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; cursor: pointer; }
.key-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; flex: 0 0 auto; }
.key-status { color: #555; font-size: 9px; margin-left: auto; }
input[type="checkbox"], input[type="radio"] { transform: scale(1.3); margin-right: 4px; accent-color: #00ffff; }
.maplibregl-popup-content { background: #000; color: #00ffff; border: 1px solid #444; font-family: monospace; font-size: 12px; padding: 8px; }
.disclaimer-box { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: justify; font-size: 9px; line-height: 1.5; color: #666; margin-top: 10px; padding-top: 10px; border-top: 1px solid #222; user-select: none; pointer-events: none; flex-shrink: 0; content-visibility: auto; }
.custom-map-attrib { position: absolute; top: 10px; left: 10px; background: rgba(5, 5, 5, 0.7); color: #888; font-family: 'Courier New', monospace; font-size: 9px; border-radius: 4px; padding: 4px 8px; z-index: 10; border: 1px solid #333; pointer-events: auto; max-width: calc(100% - 60px); line-height: 1.6; }
.custom-map-attrib a { color: #00ffff; text-decoration: none; }
.custom-map-attrib a:hover { text-decoration: underline; }
body.fs-active .custom-map-attrib { top: 44px; }
.search-bar-wrapper { position: absolute; top: 72px; right: 10px; z-index: 20; display: flex; gap: 6px; }
body.fs-active .search-bar-wrapper { top: 100px; }
.search-input { background: rgba(5,5,5,0.85); border: 1px solid #444; border-radius: 4px; color: #00ffff; font-family: 'Courier New', monospace; font-size: 11px; padding: 5px 10px; width: 220px; outline: none; }
.search-input::placeholder { color: #444; }
.search-input:focus { border-color: #00ffff; }
.search-btn { background: #0a0a0a; border: 1px solid #00ffff; border-radius: 4px; color: #00ffff; font-family: 'Courier New', monospace; font-size: 11px; padding: 5px 10px; cursor: pointer; }
.search-btn:hover { background: #00ffff; color: #000; }
.search-results { position: absolute; top: 36px; right: 0; background: #050505; border: 1px solid #333; border-radius: 4px; width: 300px; max-height: 220px; overflow-y: auto; z-index: 21; display: none; }
.search-result-item { padding: 7px 10px; font-family: 'Courier New', monospace; font-size: 10px; color: #888; cursor: pointer; border-bottom: 1px solid #111; line-height: 1.5; }
.search-result-item:hover { background: #111; color: #00ffff; }
.search-result-item b { color: #ffcc00; }
.search-no-results { padding: 8px 10px; font-family: 'Courier New', monospace; font-size: 10px; color: #444; }
.map-controls { position: absolute; bottom: 30px; left: 10px; z-index: 20; display: flex; flex-direction: column; gap: 4px; }
.map-mode-controls { position: absolute; top: 10px; right: 54px; z-index: 20; display: flex; gap: 8px; }
.map-ctrl-btn, .map-toggle-btn { background: rgba(5,5,5,0.85); border: 1px solid #333; border-radius: 4px; color: #888; font-family: 'Courier New', monospace; font-size: 9px; padding: 5px 8px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.map-toggle-btn { font-size: 11px; font-weight: bold; padding: 6px 12px; }
.map-ctrl-btn:hover, .map-toggle-btn:hover { border-color: #00ffff; color: #00ffff; }
.map-ctrl-btn.active, .map-toggle-btn.active { border-color: #00ffff; color: #00ffff; background: rgba(0,255,255,0.08); }
#btn-fullscreen { position: absolute; top: 10px; right: 10px; z-index: 20; background: rgba(5,5,5,0.85); border: 1px solid #333; border-radius: 4px; color: #888; font-size: 18px; width: 34px; height: 30px; cursor: pointer; line-height: 1; }
#btn-fullscreen:hover { color: #00ffff; border-color: #00ffff; }
#btn-fullscreen-exit { display: none; position: fixed; top: 8px; left: 8px; z-index: 511; background: #0a0a0a; color: #ff4444; border: 1px solid #ff4444; border-radius: 4px; padding: 6px 10px; font-family: monospace; cursor: pointer; }
#fs-letterhead { display: none; position: fixed; top: 8px; right: 12px; z-index: 512; text-align: right; pointer-events: none; }
#fs-curtain-tab { display: none; position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 512; background: rgba(5,5,5,0.94); color: #00ffff; border: 1px solid #333; border-bottom: none; border-radius: 8px 8px 0 0; padding: 5px 18px; font-family: monospace; font-size: 11px; cursor: pointer; }
#fs-curtain { display: none; position: fixed; left: 0; right: 0; bottom: 0; max-height: 42vh; overflow: auto; background: rgba(5,5,5,0.96); border-top: 1px solid #333; z-index: 511; padding: 12px; box-sizing: border-box; }
body.fs-active .dashboard { padding: 0; }
body.fs-active .hud-header, body.fs-active .scada-wrapper { display: none; }
body.fs-active .map-container { border: none; border-radius: 0; height: 100vh; }
body.fs-active #btn-fullscreen { display: none; }
body.fs-active .map-mode-controls { top: 44px; right: 12px; }
body.fs-active #btn-fullscreen-exit, body.fs-active #fs-letterhead, body.fs-active #fs-curtain-tab { display: block; }
body.fs-active.fs-curtain-open #fs-curtain { display: block; }
.status-legend { display: flex; flex-wrap: wrap; gap: 12px; color: #888; font-size: 10px; margin-bottom: 8px; }
.status-dot { display: flex; align-items: center; gap: 5px; }
.status-dot span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.popup-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; margin: 3px 0; }
.popup-row span:first-child { color: #888; }
.popup-val { color: #fff; }
@media (max-width: 720px) { .scada-keys { grid-template-columns: 1fr; } .search-bar-wrapper { top: 58px; right: 8px; } .search-input { width: 170px; } .status-legend { display: none; } .ventus-main { font-size: 13px; letter-spacing: 2px; } .map-mode-controls { top: 46px; right: 8px; } .map-toggle-btn { font-size: 9px; padding: 5px 8px; } }
