
/* Portal dark palette: customer-portal/src/client/styles/controls.css.
   Local copy keeps Replay independently deployable. */
:root {
  color-scheme: dark;
  --bg: #111821;
  --panel: #1b2430;
  --surface: #202a36;
  --line: #33404f;
  --line-strong: #4a596b;
  --muted: #b8c1cc;
  --subtle: #91a0b2;
  --text: #f9f9fb;
  --accent: #4c9ce8;
  --accent-hover: #7eb7ed;
  --accent-soft: #20364c;
  --success: #73cf8b;
  --redirect: #6aafea;
  --warning: #e8b15c;
  --coral: #ff8a82;
  --grid: #33404f33;
  --mono: 'IBM Plex Mono', monospace;
  --body: 'Barlow', 'Trebuchet MS', sans-serif;
}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:15px}button,select,input{font:inherit}button,select{color:inherit;cursor:pointer}button{background:none;border:0}button:disabled{opacity:.45;cursor:default}button:hover,select:hover{color:#fff}button:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button[hidden],[hidden]{display:none!important}a{color:inherit;text-decoration:none}.app{width:100%;margin:0}.header{height:96px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);background:linear-gradient(100deg,#1b243088,transparent)}.brand{display:flex;gap:18px;align-items:center}.brand-icon{width:52px;height:52px;object-fit:contain}.brand strong{font-size:22px;font-weight:500;letter-spacing:3px}.brand strong span{color:var(--muted)}.brand small{display:block;color:var(--muted);font-size:13px;letter-spacing:2px;margin-top:5px}.header-right{display:flex;align-items:center;gap:20px}.recorded{font:10px var(--mono);letter-spacing:1.3px;color:var(--muted);display:flex;align-items:center;gap:9px}.recorded i{height:6px;width:6px;border:1px solid var(--accent);border-radius:50%}.delay{color:var(--muted);border:1px solid var(--line-strong);border-radius:4px;padding:7px 11px;font:11px var(--mono)}.icon-button{font-size:23px;width:35px;height:35px;color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);padding:25px 38px 27px;border-bottom:1px solid var(--line)}.metrics>div{padding-left:33px;border-left:1px solid var(--line)}.metrics>div:first-child{padding-left:0;border-left:0}.metric-label{display:block;font:10px var(--mono);letter-spacing:1.5px;color:var(--muted)}.metrics strong{font:30px var(--body);font-weight:500;letter-spacing:.5px;display:inline-block;margin-top:8px}.metrics small{display:inline-block;font-size:11px;color:var(--subtle);margin-left:12px}.metric-label .tiny-dot{margin-left:4px}.tiny-dot{display:inline-block;width:5px;height:5px;vertical-align:middle;background:var(--success);border-radius:50%}.coral{background:var(--coral)}.section-bar{display:flex;align-items:center;justify-content:space-between;padding:18px 38px 10px}.view-title{display:flex;align-items:center;gap:12px;font-size:14px}.live-mark{color:var(--accent);font-size:20px}.subtle,#scope-label{color:var(--muted)}.view-actions{display:flex;gap:24px;font-size:12px}.view-actions button{color:var(--muted)}.view-actions button span{margin-left:8px;color:var(--muted)}.harbour{height:490px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 40% 50%,#20364c66,transparent 70%)}.chart-decoration{position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(90deg,transparent,#000 17%,#000 80%,transparent)}.chart-decoration svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#4a596b40;stroke-width:1;stroke-dasharray:6 9}.coordinate{position:absolute;font:9px var(--mono);color:var(--line-strong)}.c1{left:32%;top:22px}.c2{left:68%;top:22px}.c3{left:25%;bottom:67px}.c4{right:29%;bottom:67px}.compass{position:absolute;left:51%;top:12px;text-align:center;font:9px var(--mono);color:var(--subtle)}.compass span{display:block;font-size:29px;font-weight:400;border:1px solid var(--line);border-radius:50%;width:46px;height:46px;margin-top:7px;line-height:43px}#traffic{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.sources,.destinations{position:absolute;top:20px;bottom:59px}.sources{left:38px;width:178px}.destinations{right:30px;width:270px}h2{font:10px var(--mono);font-weight:400;letter-spacing:1.8px;margin:0;color:var(--muted)}h2>span{color:var(--subtle);font-size:9px;letter-spacing:.7px;margin-left:10px}.sources h2,.destinations h2{margin-bottom:22px}.source{height:79px;display:flex;align-items:center;gap:15px}.source-symbol{display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:50%;height:31px;width:31px;flex-shrink:0;font-size:17px;color:var(--muted)}.source:nth-child(3) .source-symbol{border-radius:9px}.source strong{display:block;font-size:13px;font-weight:400}.source small{font:10px var(--mono);display:block;margin-top:7px;color:var(--muted)}.service{position:relative;margin-left:11px;border:1px solid transparent;border-radius:5px;transition:background .2s,border-color .2s}.service:before{content:'';position:absolute;left:-13px;top:29px;width:7px;height:7px;border:2px solid var(--accent-hover);background:var(--accent-soft);outline:1px solid var(--line-strong);outline-offset:4px;border-radius:50%}.service.selected{background:linear-gradient(100deg,#20364ccc,#1b243080);border-color:var(--accent)}.service.selected:before{border-color:var(--accent);box-shadow:0 0 13px #4c9ce866}.service-button{width:100%;display:flex;align-items:center;text-align:left;padding:14px 13px 13px 19px;gap:10px}.service-button strong{display:block;font-size:14px;font-weight:500}.service-button small{display:block;color:var(--muted);font:10px var(--mono);margin-top:6px}.sparkline{margin-left:auto;width:46px;height:22px;display:flex;gap:2px;align-items:flex-end;opacity:.6}.sparkline i{width:2px;background:var(--accent)}.chevron{margin-left:auto;color:var(--accent-hover)}.path-list{padding:0 14px 10px 19px}.path-row{display:flex;align-items:center;gap:7px;font:10px var(--mono);line-height:23px;color:var(--muted)}.path-row i{height:3px;width:3px;background:var(--accent)}.path-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.path-row small{margin-left:auto;color:var(--subtle);font-size:10px}.canvas-note{position:absolute;bottom:48px;left:38px;font:9px var(--mono);color:var(--subtle);display:flex;align-items:center;gap:7px}.canvas-note .tiny-dot{height:3px;width:3px;background:var(--subtle)}.legend{position:absolute;bottom:5px;left:0;right:0;display:flex;justify-content:center;gap:20px}.legend button{padding:8px 0;font-size:11px;color:var(--muted);border-bottom:1px solid transparent}.legend button.active{color:var(--text);border-bottom-color:var(--accent)}.legend i{display:inline-block;height:7px;width:7px;background:var(--dot);border-radius:50%;margin-right:7px;box-shadow:0 0 8px color-mix(in srgb,var(--dot) 25%,transparent)}.legend button span{margin-left:4px}.replay{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 38px 17px;background:#1b243066}.playback-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:15px}.recording-picker{display:flex;align-items:center;gap:13px;font-size:13px}.calendar{font-size:21px;color:var(--accent-hover)}.separator{height:18px;width:1px;background:var(--line);margin:0 4px}select{border:1px solid var(--line-strong);background:var(--surface);border-radius:4px;padding:8px 9px;font:12px var(--body)}#recording{background:transparent;border-color:transparent;padding-left:0}.transport{display:flex;align-items:center;gap:16px}.play-button{height:42px;width:42px;border:1px solid var(--accent-hover);border-radius:50%;font:19px var(--body);background:var(--accent-soft);box-shadow:0 0 0 4px #4c9ce815;display:grid;place-items:center}.play-button:hover{background:#283440}#clock{font:16px var(--mono);letter-spacing:1px;padding-left:5px;min-width:103px}.timeline-hint{font:9px var(--mono);letter-spacing:1px;color:var(--subtle)}.timeline-hint span{margin-left:8px;font-size:17px}.timeline-wrap{height:72px;position:relative;background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:100% 24px,calc(100% / 60) 100%;border:1px solid var(--line)}#histogram{width:100%;height:100%;display:block}#seek{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}.timeline-wrap:focus-within{outline:2px solid var(--accent);outline-offset:3px}#playhead{position:absolute;top:-7px;bottom:0;width:1px;background:var(--text);pointer-events:none;box-shadow:0 0 9px #7eb7ed44}#playhead span{position:absolute;top:-1px;left:-4px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:7px solid var(--text)}.time-ticks{display:flex;justify-content:space-between;font:10px var(--mono);color:var(--muted);margin-top:11px}.timeline-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:12px;pointer-events:none}.inspector{padding:24px 38px 14px}.inspector-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.inspector-heading>span{font-size:11px;color:var(--subtle)}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font:9px var(--mono);letter-spacing:1px;color:var(--subtle);padding:9px 14px;border-bottom:1px solid var(--line);font-weight:400}td{font:10px var(--mono);padding:9px 14px;border-bottom:1px solid var(--line);color:var(--muted)}td:first-child,th:first-child{padding-left:0}td:nth-child(2){color:var(--text)}td:nth-child(2) span{color:var(--subtle);margin-left:10px}.status-tag{padding:2px 5px;border:1px solid currentColor;border-radius:3px;font-size:9px}footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 38px;color:var(--subtle);font-size:10px}footer .tiny-dot{width:4px;height:4px;margin-right:6px}.footer-divider{padding:0 10px;color:var(--line-strong)}.sample-badge{font:8px var(--mono);letter-spacing:1px;border:1px solid var(--line-strong);color:var(--muted);padding:4px 7px;border-radius:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border:1px solid var(--line-strong);background:var(--panel);padding:12px 20px;border-radius:5px;font-size:13px;z-index:5}.ambient .inspector{display:none}.ambient .harbour{height:calc(100vh - 405px);min-height:430px}.ambient .sources,.ambient .destinations{display:flex;flex-direction:column}.ambient #source-list,.ambient #service-list{display:flex;flex-direction:column;justify-content:space-around;flex:1}.ambient .canvas-note{bottom:45px}
@media(min-width:1600px){.harbour{height:570px}.source{height:96px}.service-button{padding-top:19px;padding-bottom:19px}.service:before{top:34px}.destinations{width:300px}.sources{width:200px}.source strong{font-size:15px}.service-button strong{font-size:16px}}
@media(max-width:1100px){.metrics small{display:block;margin:5px 0 0}.sources{left:24px;width:145px}.destinations{right:19px;width:225px}.source{gap:9px}.source strong{font-size:11px}.source small{font-size:9px}.source-symbol{height:26px;width:26px}.service-button strong{font-size:12px}.sparkline{width:32px}.header,.section-bar{padding-left:24px;padding-right:24px}.metrics,.replay,.inspector{padding-left:24px;padding-right:24px}.timeline-hint{display:none}.legend{gap:15px}.canvas-note{left:24px}.inspector-heading>span{display:none}footer{padding-left:24px;padding-right:24px}}
@media(max-width:700px){.header{height:80px;padding:0 17px}.brand{gap:10px}.brand-icon{width:38px;height:38px}.brand strong{font-size:15px;letter-spacing:2px}.brand small{font-size:10px;letter-spacing:1px}.header-right{gap:8px}.recorded{display:none}.delay{font-size:9px;padding:6px}.header-right .icon-button{display:none}.metrics{padding:18px 17px;gap:18px 0;grid-template-columns:repeat(2,1fr)}.metrics>div{padding-left:18px}.metrics>div:nth-child(3){border:0;padding-left:0}.metrics strong{font-size:25px}.metric-label{font-size:9px}.metrics small{font-size:10px}.section-bar{padding:14px 17px 6px}.view-title{font-size:12px;gap:7px}.view-actions{gap:8px;font-size:11px}#ambient{font-size:0}#ambient span{font-size:17px}.harbour{height:460px}.sources{left:17px;width:100px;top:17px}.destinations{right:8px;width:165px;top:17px}.sources h2,.destinations h2{font-size:8px;letter-spacing:1px;margin-bottom:17px}.destinations h2 span,.sources h2 span{display:none}.source{height:76px}.source-symbol{display:none}.source strong{font-size:10px}.source small{font-size:8px}.service-button{padding:13px 7px 13px 12px;gap:4px}.service-button strong{font-size:10px}.service-button small{font-size:8px}.sparkline{display:none}.service:before{left:-8px;width:5px;height:5px;outline-offset:2px}.path-list{padding:0 6px 7px 11px}.path-row{font-size:8px;line-height:20px;gap:4px}.path-row small{font-size:8px}.legend{gap:13px;bottom:5px;flex-wrap:wrap;padding:0 12px}.legend button{font-size:10px}.legend button span{display:none}.legend i{margin-right:4px;width:5px;height:5px}.canvas-note{left:17px;font-size:8px;bottom:45px}.compass{left:39%;top:40px;opacity:.4}.coordinate{display:none}.replay{padding:16px 17px}.playback-toolbar{flex-wrap:wrap;gap:17px;margin-bottom:20px}.recording-picker{font-size:12px;gap:9px}.transport{width:100%;justify-content:center;gap:20px}.timeline-wrap{height:65px}.time-ticks{font-size:8px}.inspector{padding:22px 17px 6px}.inspector-heading h2{font-size:9px;letter-spacing:1px}.inspector-heading h2 span{font-size:8px}.inspector td,.inspector th{font-size:9px;padding-right:16px}.inspector td:nth-child(2) span{display:block;margin:4px 0 0}footer{padding:17px;flex-wrap:wrap;gap:12px;font-size:9px}footer>span:last-child{width:100%}.ambient .harbour{height:460px}}
.harbour:has(.service.selected){height:580px}.ambient .harbour:has(.service.selected){height:calc(100vh - 405px);min-height:580px}
@media(max-width:700px){.harbour:has(.service.selected),.ambient .harbour:has(.service.selected){height:540px;min-height:540px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.metrics{background:var(--panel)}
.legend button.active{border-bottom-color:var(--accent);color:var(--text)}

/* Spotlight previews a destination without changing the recording filters. */
.service{transition:opacity .18s ease,background .18s ease,border-color .18s ease}
.service.dimmed{opacity:.36}
.service.spotlit{background:linear-gradient(100deg,#20364c99,#1b243033);border-color:var(--line-strong)}
.service.spotlit:before{border-color:var(--accent-hover);box-shadow:0 0 14px #4c9ce84d}
.service.spotlit .service-button strong{color:var(--text)}
@media(prefers-reduced-motion:reduce){.service{transition:none}}

.tv-playback{display:none}

#service-list{display:flex;flex-direction:column}
.service-rank{flex:0 0 20px;color:var(--subtle);font:10px var(--mono);font-variant-numeric:tabular-nums}
.service-button{min-width:0}
.service-button>span:has(strong){min-width:0}
.service-button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){.service-rank{flex-basis:13px;font-size:8px}}

.recording-error{padding:8vh 6vw;font-size:20px;line-height:1.6}
.many-services:not(.tv) .harbour{height:850px;min-height:850px}
.region-sources .sources{display:flex;flex-direction:column}
.region-sources #source-list{display:flex;flex-direction:column;justify-content:space-around;flex:1;min-height:0}
.region-sources .source{height:auto;min-height:0;flex:1}

.country-sources .source-symbol{font:11px var(--mono);letter-spacing:.03em;flex-shrink:0}
.country-sources .source>div{min-width:0}
.country-sources .source strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.country-sources .source-symbol:has(.country-flag){border:0;border-radius:0;background:none}
.country-flag{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:2px;box-shadow:0 0 0 1px #ffffff18}

.source-symbol:has(.internal-icon),.source-symbol:has(.globe-icon){border:0;background:none}
.internal-icon{display:block;width:100%;height:100%;object-fit:contain}
.globe-icon{display:block;width:90%;height:90%;color:var(--accent-hover)}

.app>footer{display:none}
.section-bar{display:none}

.service-label{display:flex;flex-direction:column;min-width:0}
.service-name{display:block;font-size:11px;color:var(--muted);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sources>h2,.destinations>h2{display:none}

.loading .app{visibility:hidden;pointer-events:none}
#loading-view{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center;background-color:var(--bg);background-image:linear-gradient(#33404f22 1px,transparent 1px),linear-gradient(90deg,#33404f22 1px,transparent 1px);background-size:44px 44px;cursor:auto;font-family:var(--body)}
#loading-view>img{width:clamp(64px,6vw,120px);height:auto;margin-bottom:18px}
#loading-view>strong{font-size:clamp(18px,1.8vw,34px);font-weight:500;letter-spacing:.14em}
#loading-view>strong span{color:var(--muted)}
#loading-view h1{font-size:clamp(16px,1.15vw,24px);font-weight:500;margin:22px 0 8px}
#loading-view p{font-size:clamp(12px,.9vw,18px);line-height:1.6;color:var(--muted);margin:0;max-width:36em}
.loading-ring{width:28px;height:28px;margin-top:30px;border:2px solid var(--line);border-top-color:var(--accent-hover);border-radius:50%;animation:replay-loading 1s linear infinite}
#loading-retry{margin-top:24px;padding:10px 24px;border:1px solid var(--accent);border-radius:5px;color:var(--text);background:var(--panel);cursor:pointer}
@keyframes replay-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loading-ring{animation:none;border-top-color:var(--accent-hover)}}

#music-credit { position: fixed; right: 18px; bottom: 8px; z-index: 20; padding: 5px 9px; border: 1px solid #2c4053; border-radius: 5px; background: #111b25f2; color: #aebdcb; font-family: inherit; font-size: 11px; line-height: 1.5; text-decoration: none; cursor: pointer; }
#music-credit > span:last-child { display: block; color: #7e9ab4; font-size: 9px; }
#music-credit[hidden] { display: none; }
