/* The map is the main surface. Long explanations are opened deliberately. */
:root{--panel:440px}
.access-dialog{width:410px;max-width:calc(100vw - 32px);border:1px solid #b7c8d2;border-radius:18px;padding:28px;background:#f6f9fa;color:#29414f;box-shadow:0 20px 80px #071d3b55}.access-dialog::backdrop{background:#071a2b99;backdrop-filter:blur(5px)}.access-dialog h2{font-size:25px;margin:8px 0 14px}.access-dialog p,.access-dialog label{font-size:16px;line-height:1.55}.access-dialog label{display:block;margin:18px 0}.access-dialog input{display:block;width:100%;font-size:22px;letter-spacing:6px;padding:12px;border:1px solid #a6bac6;border-radius:8px;margin-top:8px}.access-close{position:absolute;right:14px;top:12px;font-size:26px}.access-submit{width:100%;padding:13px;border-radius:8px;background:#2d5267;color:white;font-size:16px}.access-error{color:#a34733;min-height:24px}
.topbar{height:72px;padding:0 24px}.edition,.source-state,.map-heading .eyebrow,.map-caption,.map-hint,.work-legend small,.journey-top,.journey-tabs,footer{display:none}
.docs-link,.access-button{font-size:14px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;white-space:nowrap}.docs-link:hover{background:#dce6eb}.top-right{gap:10px}
.workspace,.details-open .workspace{display:block;position:relative;height:calc(100dvh - 140px);max-height:none;min-height:420px}.map-area,.process-active .map-area{height:100%;width:100%}
.map-heading{left:24px;top:20px}.map-heading h1{font-size:27px;letter-spacing:-.6px}.map-heading p{display:none}.details-open .map-heading{display:block}
.map-top-controls,.details-open .map-top-controls{top:22px;bottom:auto;left:auto;right:24px;gap:8px}.map-top-controls .pill,.pill{font-size:14px;padding:10px 12px;min-height:42px}.pill svg{width:17px;height:17px}
.island-overview{left:24px;bottom:22px;gap:8px}.island-overview>button{font-size:14px;min-height:42px;padding:10px 12px}.island-overview>span{display:none}
.map-tools{bottom:22px;right:24px}.map-tools button{width:35px;height:33px}.map-tools output{font-size:13px;width:44px}.camera-controls{right:24px;bottom:79px}.camera-controls button{font-size:13px;min-height:34px}
.work-legend{left:24px;bottom:86px;font-size:12px;gap:9px}.work-legend strong{display:none}.work-legend span{font-size:12px}.focus-chip,.details-open .focus-chip{top:82px;left:24px;font-size:13px}
.inspector,.details-open .inspector{position:absolute;inset:16px 16px 16px auto;width:var(--panel);max-width:calc(100% - 32px);border:1px solid #bac9d0;border-radius:16px;box-shadow:0 20px 70px #07192455;z-index:24;overflow:hidden}.inspector{display:none}.details-open .inspector{display:flex}
.inspector-top{padding:20px 22px 14px}.inspector-title{height:auto;min-height:46px}.inspector-title h2{font-size:23px;line-height:1.25}.inspector .eyebrow,.section-heading{font-size:12px;letter-spacing:1px}.inspector .icon-button{width:40px;height:40px}.inspector .icon-button svg{width:22px;height:22px}
.search{padding:12px;min-height:48px}.search input{font-size:16px}.search svg{width:19px;height:19px}.panel{padding:0 22px 22px;scrollbar-gutter:stable}.inspector-foot{display:none}
.panel p,.agent-description,.activity-note,.soft-note,.facts,.facts dd,.facts dt,.status-badge,.panel .text-link,.directory-toggle,.panel .empty,.process-evidence p,.process-evidence summary{font-size:15px;line-height:1.65}.facts{grid-template-columns:110px minmax(0,1fr);gap:13px}.facts dt{color:#7f94a0}.soft-note{padding:14px}.status-badge{font-weight:550}.dot{width:8px;height:8px}
.section-heading>span,.section-heading button,.agent-hero>span{font-size:12px}.agent-row,.district-row{padding:13px 6px;gap:12px}.agent-copy strong,.district-row strong{font-size:16px}.agent-copy small,.district-row small{font-size:13px;line-height:1.5}.agent-avatar,.district-swatch{height:36px;width:36px;font-size:13px}.agent-hero{height:70px}.row-end,.district-row .row-end{font-size:14px}.brain-card b{font-size:16px}.brain-card p{font-size:14px}.stat span{font-size:12px}.stats{gap:12px}.stat strong{font-size:30px}
.live-history .live-record b{font-size:16px;white-space:normal}.live-history .live-record small{font-size:13px;white-space:normal;overflow-wrap:anywhere}.live-history .live-record-time{font-size:13px}.live-history .live-record{padding:14px;align-items:flex-start}.live-record-time small{font-size:12px}.live-history{display:grid;gap:10px}.live-record-time{max-width:90px}.live-filters{gap:7px;flex-wrap:wrap}.live-filters button{font-size:14px;min-height:40px;padding:9px 12px}.operator-events li{font-size:14px;line-height:1.5}.observation-presence{font-size:14px;line-height:1.5;flex-wrap:wrap}.observation-presence span{font-size:13px}
.event-top,.event-route,.event>small,.event-top time{font-size:14px;line-height:1.6}.event{padding:14px 0}.live-gates li,.live-gates b,.live-gates span{font-size:14px;line-height:1.6}
.process-card{padding:15px 10px}.process-card strong{font-size:17px}.process-card small{font-size:13px}.process-groups button{font-size:14px;padding:9px 12px;min-height:40px}.coverage-card p,.coverage-card span{font-size:14px}.step-title{font-size:28px}.step-kicker,.step-kicker span,.step-actor b,.step-actor small,.step-io,.step-io dd,.step-nav button,.related-process,.hold-note p,.branch-box p,.gate-actions button,.tour-notice{font-size:15px;line-height:1.6}.step-io{grid-template-columns:40px minmax(0,1fr)}
.journey{height:68px;padding:0 24px;background:var(--paper);border-top:1px solid var(--line);display:flex;align-items:center}.live-harbour{margin:0;padding:0;border:0;width:100%;background:transparent}.live-compact{display:flex;align-items:center;gap:18px;min-width:0}.live-compact>button{display:flex;align-items:center;gap:6px;font-size:15px;min-height:42px;white-space:nowrap}.live-compact .live-connection{font-size:14px;white-space:nowrap;max-width:260px}.live-compact .live-follow{margin-left:auto;padding:8px 12px}.activity-count span{color:var(--muted)}
.live-compact .operator-presence{margin:0;gap:8px;min-width:0}.live-compact .operator-presence button{font-size:14px;padding:9px 10px;min-height:40px;flex:none;max-width:230px}.live-compact .operator-presence b{font-size:14px}.live-compact .operator-presence span{font-size:12px;max-width:95px}.live-compact .operator-presence .dot{width:7px;height:7px}
#journeyDetail{display:none}.process-active .journey{height:auto;min-height:68px}.process-active #journeyDetail{display:flex;width:100%;margin:0;padding:10px 0}.process-active .journey-description{display:none}.journey-actions{margin-left:auto}.journey-actions button,.tour-status,.tour-status b,.tour-status span,.step-strip button{font-size:14px;min-height:38px}.tour-status{gap:10px}.step-strip{display:none}.process-toolbar{padding:16px 24px}.process-heading h2{font-size:24px}.process-switch button{font-size:14px;min-height:40px}.process-stage{z-index:10}.flow-io p,.flow-branches span,.flow-actor,.flow-actor small{font-size:14px}.flow-step-heading strong{font-size:23px}
.live-trip{display:none!important}
.map-bubble{position:absolute;width:max-content;max-width:240px;padding:10px 13px;border-radius:11px;border:1px solid #bccbd1;background:#f9fbfbf5;color:#263e4b;box-shadow:0 6px 22px #081b2a30;z-index:18;backdrop-filter:blur(12px);font-size:15px;line-height:1.4;pointer-events:none}.map-bubble.pinned{width:280px;max-width:calc(100% - 28px);padding:14px 16px;pointer-events:auto}.map-bubble::before{content:'';position:absolute;left:-6px;top:var(--pointer-y,50%);width:10px;height:10px;transform:rotate(45deg);background:#f9fbfb;border-left:1px solid #bccbd1;border-bottom:1px solid #bccbd1}.map-bubble.left-of-target::before{left:auto;right:-6px;transform:rotate(225deg)}
.bubble-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:#627f8f}.bubble-top button{flex-shrink:0;width:32px;height:32px;font-size:24px;line-height:1;margin:-6px -8px -3px 0}.map-bubble h2{font-size:16px;line-height:1.3;margin:0 0 5px;font-weight:650;overflow-wrap:anywhere}.map-bubble.pinned h2{font-size:19px;margin:7px 0}.map-bubble p{font-size:15px;margin:9px 0;line-height:1.45;overflow-wrap:anywhere}.bubble-status{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:550}.bubble-status i{flex-shrink:0;width:7px;height:7px;border-radius:50%;background:#91a1aa}.bubble-status.working i{background:#538866}.bubble-status.waiting i{background:#b6873e}.bubble-status.failed i{background:#b76654}.bubble-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:13px;color:#6f8793}.bubble-meta:empty{display:none}.bubble-actions{border-top:1px solid #d4dfe4;padding-top:9px;margin-top:10px;display:flex;gap:7px}.bubble-actions button{min-height:36px;font-size:14px;display:flex;gap:5px;align-items:center;justify-content:center;padding:6px 9px;border-radius:7px;background:#e4ecf0}.bubble-actions svg{width:16px;height:16px}
.night .map-bubble{background:#203442f5;border-color:#536b79;color:#e0e8ec}.night .map-bubble::before{background:#203442;border-color:#536b79}.night .bubble-top,.night .bubble-meta,.night .bubble-hint{color:#a0b8c5}.night .bubble-actions{border-color:#4b626f}.night .bubble-actions button{background:#344e5e;color:#dfebf1}.night .bubble-phase{color:#b3cbd8}.night .inspector{border-color:#526776}.night .docs-link:hover{background:#334b5b}
@media(max-width:1150px){.live-compact .operator-presence span,.activity-count span{display:none}.live-compact{gap:12px}.map-heading h1{font-size:24px}.work-legend{display:none}}
@media(max-width:760px){:root{--rail:0px}.rail{display:none}.shell{margin-left:0}.topbar{height:60px;padding:0 14px}.wordmark{font-size:20px}.top-right{gap:4px}.docs-link,.access-button{font-size:12px;padding:8px}.topbar .icon-button{display:none}.workspace,.details-open .workspace{display:block;height:calc(100dvh - 134px);min-height:400px}.map-area,.process-active .map-area{height:100%}.map-heading{left:16px;top:12px}.map-heading h1{font-size:23px}.map-top-controls,.details-open .map-top-controls{left:16px;right:16px;top:65px;bottom:auto;gap:6px}.map-top-controls .pill{font-size:12px;padding:8px;min-height:40px}.map-tools{right:14px;bottom:16px}.camera-controls{right:14px;bottom:72px}.map-tools button{width:29px}.island-overview{left:14px;bottom:16px;gap:6px}.island-overview>button{font-size:12px;padding:8px;min-height:40px}#allIslands{display:none}.focus-chip,.details-open .focus-chip{top:115px;left:16px;font-size:12px}.inspector,.details-open .inspector{inset:10px;width:calc(100% - 20px);max-width:none;min-height:0;max-height:none}.inspector-title h2{font-size:22px}.journey{height:74px;padding:0 12px;overflow:auto}.live-compact{gap:12px;min-width:max-content}.live-compact .live-connection{font-size:13px}.live-compact>button{font-size:14px}.live-compact .operator-presence button{padding:8px;font-size:12px;flex-wrap:nowrap}.live-compact .operator-presence b{font-size:12px}.map-bubble.pinned{left:12px!important;right:auto!important;top:auto!important;bottom:68px;width:280px;max-width:calc(100% - 24px);max-height:calc(100% - 140px);overflow:auto}.map-bubble::before{display:none}.bubble-actions button{min-height:40px}.process-toolbar{padding:12px 16px;gap:8px}.process-heading h2{font-size:21px}.process-active .map-top-controls{top:auto;bottom:122px;left:auto;right:14px}.process-switch button{font-size:13px}.process-active #journeyDetail{min-width:0}.tour-status{font-size:13px}.tour-status span{display:none}}

.live-compact>.live-connection{order:0;width:auto;flex-shrink:0}.live-compact>.operator-presence{flex:none;width:auto}.live-compact>button{flex-shrink:0}.journey{overflow-x:auto;overflow-y:hidden}
@media(max-width:760px){.live-compact{gap:8px}.live-compact>.activity-count{display:none}.live-compact .live-follow{font-size:0;padding:8px;margin-left:0}.live-compact .live-follow svg{width:18px;height:18px}.live-compact .live-connection{max-width:110px;overflow:hidden}.live-compact .operator-presence{gap:6px}}

.service-balance-card{padding:14px 16px;margin:14px 0;border:1px solid #8c9c9040;border-radius:12px;background:#899e8c12}
.service-balance-card strong{font-size:22px;font-weight:600}.service-balance-card p{font-size:14px;line-height:1.5;margin:6px 0}.service-balance-card small{display:block;line-height:1.5;opacity:.7}.service-balance-card meter,.service-balance-card progress{width:100%;height:18px;margin:8px 0}

.operator-model-badge{display:inline-block;margin:0 0 6px;padding:3px 8px;border:1px solid #869990;border-radius:6px;background:#233b34;color:#e5eee8;font-size:11px;font-weight:650;line-height:1.3;}
