/* A map-first workspace. Floating panels share one quiet, light surface. */
:root { --float-gap:18px; --float-right:280px; --glass:rgba(249,252,249,.94); --glass-line:rgba(137,165,153,.48); --glass-shadow:0 4px 24px #25443c12,0 1px 3px #25443c0b; }
html,body { width:100%; height:100%; overflow:hidden; }
body { padding:0; background:#e4eeea; }
main { position:fixed; inset:0; display:block; width:100%; height:100dvh; max-width:none; margin:0; padding:0; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; overflow:hidden!important; clip:rect(0,0,0,0); white-space:nowrap; border:0!important; }
.topbar,.casehead,.design-tray,.analysis,.siting-context,.question-card,.sent-filters,.sent-feed,.map-key,.stage-top,.stage-bottom,.sent-map-tools { background:var(--glass); border:1px solid var(--glass-line); border-radius:12px; box-shadow:var(--glass-shadow); }
.topbar { position:fixed; top:14px; left:var(--float-gap); right:var(--float-gap); max-width:none; min-height:52px; height:52px; padding:7px 12px; z-index:1000; gap:15px; }
.brand { font-size:23px; letter-spacing:-1px; }.brand img { width:25px; height:25px; }
.partners { padding-left:14px; border-color:var(--line); }.partners>span { display:none; }
.views { padding:2px; gap:3px; align-self:center; background:#e9f0ec; border:1px solid #dae5de; border-radius:8px; }
.views button,.views button[aria-pressed='true'] { border:0; border-radius:6px; padding:7px 10px; font-size:13px; white-space:nowrap; }
.views button[aria-pressed='true'] { background:#fff; box-shadow:0 1px 4px #36544914; }
.top-actions { gap:6px; }.top-actions button,.case-actions button,.placement-select { min-height:30px; border-radius:7px; background:transparent; }
.top-actions .primary { background:#d9eade; border-color:#bed7c7; }
.top-actions .icon-btn { width:30px; height:30px; }
.casehead { position:absolute; top:80px; left:var(--float-gap); height:42px; z-index:800; padding:5px 9px; display:flex; align-items:center; gap:12px; }
.case-title h1 { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.case-title .kicker { font-size:12px; font-weight:500; letter-spacing:0; text-transform:none; white-space:nowrap; }
.case-actions { gap:5px; }.placement-select { padding:3px 7px; }.placement-select select { font-size:12px; max-width:142px; }
#save { width:30px; padding:5px; }#save span { display:none; }#compare { font-size:12px; padding:5px 8px; }
.workbench,.sent-layout { position:absolute; inset:0; display:block; width:100%; height:100%; min-height:0; max-height:none; border:0; }
.workbench .stage,#stage[data-camera='plan'],#stage[data-camera='district'] { position:absolute; inset:0; width:100%; height:100%; min-height:0; border:0; border-radius:0; background:var(--scene); }
#stage #scene,#stage #map,#stage[data-camera='plan'] #map,#stage[data-camera='district'] #scene { position:absolute; inset:0; }
.stage-top { position:absolute; left:auto; right:var(--float-gap); top:80px; height:42px; padding:4px; gap:4px; z-index:810; width:auto; }
.cam-modes,.stage-top #layers,.aerial-modes { border:0; border-radius:7px; background:transparent; box-shadow:none; }
.stage .stage-top button { min-height:30px; font-size:12px; border-radius:7px; padding:5px 9px; }
.stage-top .cam-modes button[aria-pressed='true'] { background:#dce9e1; box-shadow:none; }
.stage .aerial-modes { padding:0 4px; }.aerial-modes select { font-size:12px; width:84px; }
.stage-top .aerial-modes .ico { display:none; }
#layers-menu { right:0; top:43px; border-radius:11px; padding:12px; box-shadow:0 8px 32px #193f3026; }
.design-tray { position:absolute; z-index:810; top:140px; right:var(--float-gap); width:var(--float-right); height:auto; max-height:calc(100dvh - 168px); overflow:auto; padding:0; }
.panel-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; min-height:38px; border:0; border-radius:11px; padding:10px 13px; font-size:13px; font-weight:600; background:transparent; text-align:left; }
.panel-toggle .ico { width:14px; height:14px; transform:rotate(180deg); }
.panel-toggle[aria-expanded='false'] .ico { transform:none; }
.panel-toggle:hover { background:#e7efe94d; }
#design-content { padding:0 13px 12px; }
.tray-title { margin:0 0 10px; }.tray-title .kicker { display:none; }
.tray-title h2 { font-size:18px; line-height:1.2; margin:0 0 5px; }.tray-title>span:last-child { font-size:12px; }
.design-choices { display:flex; flex-direction:column; gap:6px; }.design-card { min-height:59px; padding:5px 7px 5px 0; border-radius:8px; background:#f2f6f2; }
.design-card img { width:70px; height:50px; object-fit:cover; }.design-card>span { padding:0; }.design-card strong { font-size:12px; }.design-card small { font-size:11px; }.design-card .radio { width:12px; height:12px; }
.design-card[aria-pressed='true'] { background:#e2eee5; border-color:#8eb69e; }
.design-detail { height:54px; min-height:54px; font-size:11px; line-height:1.4; padding:8px 0 0; margin:0; overflow:auto; }
.resources { margin-top:10px; padding-top:10px; }.minor-title { font-size:10px; letter-spacing:1px; }.resource-grid { gap:12px; margin-top:7px; }.resource-grid b { font-size:23px; }.resource-grid span { font-size:11px; }
.evidence-link { padding-top:10px; margin-top:12px; font-size:12px; }
.question-card,.siting-context { left:var(--float-gap); top:140px; bottom:auto; width:248px; padding:12px; }
.question-card { max-height:145px; overflow:auto; }.question-card h2 { font-size:17px; }.question-card p { font-size:12px; }
.siting-context { padding:0; }.context-heading { margin:0; padding-right:8px; }.context-heading .panel-toggle { flex:1; width:auto; font-size:13px; }
#context-content { padding:0 13px 12px; }.context-key { font-size:10px; gap:7px 9px; }
#context-finding { height:46px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:10px 0 7px; padding-top:8px; }
#context-distances { flex-direction:column; gap:3px; font-size:11px; height:34px; overflow:hidden; }#context-distances span { display:flex; justify-content:space-between; }
#environment-status { height:26px; font-size:10px; overflow:hidden; }#retry-environment { font-size:11px; }
.analysis { position:absolute; left:var(--float-gap); right:calc(var(--float-right) + var(--float-gap) * 2); bottom:28px; z-index:810; height:145px; min-height:145px; display:grid; grid-template-columns:1fr; grid-template-rows:27px 1fr; gap:0; padding:8px 12px 12px; overflow:hidden; }
.analysis-head { display:flex; align-items:center; gap:8px; padding:0; height:22px; }.analysis-head>div { font-size:12px; }.analysis-head>small { margin:0 auto 0 0; font-size:10px; }.analysis-head .icon-btn { position:static; width:21px; height:21px; }
.metrics { align-items:start; padding-top:8px; min-width:0; }.analysis-metric { padding:0 11px; min-width:0; }.analysis-metric:first-child { padding-left:0; border-left:0; }.analysis-metric:last-child { padding-right:0; }
.metric-name { font-size:11px; white-space:nowrap; gap:5px; }.metric-name .ico { width:12px; height:12px; }.metric-line strong { font-size:25px; }.metric-line { margin:3px 0; gap:5px; }.metric-line .change { font-size:10px; white-space:nowrap; }.metric-caption { display:block; font-size:10px; line-height:1.25; max-height:26px; overflow:hidden; }.receiver select { width:100%; font-size:10px; }
.siting-cell { position:absolute; right:10px; top:7px; width:218px; height:27px; padding:0; border:0; background:var(--glass); }.siting-cell>span { display:none; }
#siting-check { width:100%; height:27px; min-height:27px; display:flex; align-items:center; justify-content:center; padding:4px 8px; border:1px solid #bbd2c4; border-radius:7px; background:#e7f1e8; font-size:11px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#siting-check::before { margin:0; font-size:8px; }#siting-check[data-status='conflict'] { background:#f6e7e1; border-color:#dfb4a7; }#siting-check[data-status='review'] { background:#f6efdb; border-color:#d9c9a2; }
.analysis-head .icon-btn { margin-right:224px; }.analysis-head>small { display:none; }
.stage-bottom,#stage[data-camera='plan'] .stage-bottom,#stage[data-camera='district'] .stage-bottom { position:absolute; left:auto; right:calc(var(--float-right) + var(--float-gap) * 2); bottom:187px!important; width:max-content; padding:4px; gap:9px; z-index:810; }
.stage-tools,.zoom { border:0; box-shadow:none; background:transparent; border-radius:7px; }.stage-bottom .gesture-hint { display:none; }.stage .stage-bottom button { min-height:29px; font-size:12px; padding:5px 8px; border-radius:7px; }.stage-bottom .zoom button { font-size:18px; width:28px; }.stage-bottom .zoom { border-left:1px solid var(--line); padding-left:4px; }
#modebar { position:absolute; bottom:185px; left:var(--float-gap); max-width:calc(100% - 550px); border-radius:8px; }
body[data-workspace='sentiment'] .casehead { width:auto; }
#sentiment { position:absolute; inset:0; height:100%; width:100%; }
.sent-figure { position:absolute; inset:0; width:100%; height:100%; min-height:0; }
#discussion-map { position:absolute; inset:0; }
.sent-filters { position:absolute; top:140px; left:var(--float-gap); z-index:810; width:238px; display:block; padding:0; }
#sent-filter-content { padding:0 12px 12px; display:flex; flex-direction:column; gap:11px; }
.sample-stamp { font-size:10px; letter-spacing:.2px; text-transform:none; border-radius:5px; width:fit-content; }
.sent-display { display:flex; }.sent-display button { flex:1; font-size:11px; }.sent-display button:last-child { flex:1.5; }
.sent-filters label { display:flex; justify-content:space-between; align-items:center; font-size:12px; }.sent-filters select { max-width:140px; width:140px; padding:5px; border-radius:5px; font-size:12px; }
#sent-filter-content>button { margin:0; border:0; background:none; justify-content:flex-start; padding:0; font-size:11px; color:var(--dim); }
.sent-feed { position:absolute; top:140px; right:var(--float-gap); width:var(--float-right); z-index:810; max-height:calc(100dvh - 168px); padding:0; display:block; overflow:hidden; }
#sent-feed-content { display:flex; flex-direction:column; max-height:calc(100dvh - 208px); }.feed-heading { padding:3px 13px 12px; background:transparent; }.feed-heading .kicker { display:none; }.feed-heading h2 { font-size:20px; margin:0 0 8px; }.feed-rows { min-height:0; overflow:auto; padding:0 9px 9px; }.thread { border-radius:7px; margin:6px 0; background:#f1f6f1; }.thread summary { padding:10px; }.thread summary strong { font-size:13px; }.thread summary small,.thread summary>span { font-size:10px; }.thread-text { padding:0 10px 10px; }.thread-text p,.thread-text blockquote { font-size:12px; }
.map-signature { display:none; }.sent-map-tools { top:80px; right:var(--float-gap); padding:4px; height:42px; gap:3px; }.sent-map-tools select { border:0; border-right:1px solid var(--line); padding:4px 10px; background:transparent; font-size:12px; }.sent-map-tools button { border:0; border-radius:6px; background:transparent; height:32px; width:32px; }
.map-key { left:var(--float-gap); bottom:28px; width:238px; padding:12px; }.map-key strong { font-size:12px; }.map-key small { font-size:10px; line-height:1.35; }.stance-buttons { gap:6px; }.stance-key { font-size:11px; }.sent-note-prompt { top:80px; bottom:auto; left:260px; background:var(--glass); border-radius:9px; }
.sentiment-heat { transform-origin:0 0; will-change:transform; }
.scope-map .leaflet-control-attribution,#discussion-map .leaflet-control-attribution { background:#f8faf8db; font-size:9px; border-radius:5px 0 0 0; max-width:95vw; }
.leaflet-control-scale { margin-bottom:5px!important; }
#toast { position:fixed; bottom:190px; border-radius:9px; }
@media(min-width:701px) and (max-width:1250px) {
 .case-title { display:none; }.casehead { max-width:320px; }.topbar { gap:10px; }.partners { padding-left:10px; gap:8px; }
 .stage .stage-top button { padding:5px 7px; font-size:11px; }
 :root { --float-right:260px; }.question-card,.siting-context { width:230px; }
 .analysis { height:145px; }.metric-line { flex-wrap:wrap; height:46px; align-content:flex-start; }.metric-line .change { display:block; width:100%; }.metric-caption { display:none; }.receiver select { margin-top:1px; }
 .siting-cell { width:205px; }.analysis-head .icon-btn { margin-right:211px; }
}
@media(min-width:701px) and (max-width:900px) { .partners { display:none; }.top-actions #notes span { display:none; }.top-actions .primary { font-size:11px; }.views button { font-size:12px; }.casehead { top:78px; }.stage-top { top:130px; left:var(--float-gap); right:auto; }.design-tray,.siting-context,.question-card { top:186px; }.sent-feed,.sent-filters { top:136px; }.design-tray { max-height:calc(100dvh - 214px); }.metric-name .ico { display:none; } }
@media(max-width:700px) {
 :root { --float-gap:10px; --float-right:260px; }
 .topbar { top:10px; height:87px; padding:8px 10px; flex-wrap:wrap; align-content:space-between; gap:5px 8px; }.brand { font-size:21px; }.partners { display:none; }.top-actions { margin-left:auto; }.top-actions #notes span { display:none; }.top-actions #full { display:none; }.top-actions .primary { font-size:12px; padding:4px 7px; }
 .views { order:3; margin:0; width:100%; height:32px; }.views button { flex:1; font-size:12px; padding:5px; }
 .casehead { top:106px; left:10px; right:10px; width:auto; height:36px; padding:3px 7px; gap:7px; }.case-title { display:none; }.case-actions { width:100%; justify-content:space-between; }.placement-select { flex:1; }.placement-select select { max-width:none; width:100%; }.case-actions #save { flex:0 0 30px; }
 .stage-top { left:10px; right:10px; top:151px; height:36px; padding:3px; justify-content:space-between; gap:3px; }.cam-modes { flex:1; }.cam-modes button { flex:1; }.stage .stage-top button { min-height:28px; padding:4px 5px; font-size:10px; }.stage-top #layers { font-size:0; padding:4px 7px; }.stage-top #layers .ico { width:15px; height:15px; }.stage .aerial-modes { padding:0; }.aerial-modes select { width:70px; font-size:10px; }
 .workbench .stage,#stage[data-camera='plan'],#stage[data-camera='district'] { height:100%; }
 #stage #scene,#stage #map,#stage[data-camera='plan'] #map,#stage[data-camera='district'] #scene { inset:0; }
 .question-card { display:none; }
 .stage[data-camera='district'] .siting-context,.stage[data-camera='plan'] .siting-context { position:absolute; top:196px; bottom:auto; left:10px; width:222px; height:auto; padding:0; border:1px solid var(--glass-line); border-radius:10px; background:var(--glass); box-shadow:var(--glass-shadow); }
 .siting-context .context-heading { margin:0; }.siting-context .panel-toggle { min-height:33px; padding:8px 10px; font-size:12px; }.siting-context #context-content { padding:0 10px 10px; }.siting-context #context-finding { height:44px; }.siting-context #environment-status { font-size:9px; }
 .design-tray { top:auto; left:10px; right:10px; bottom:25px; width:auto; max-height:calc(100dvh - 210px); z-index:850; }.design-tray .panel-toggle { min-height:37px; }.design-tray:has([aria-expanded='true']) { box-shadow:0 -12px 60px #204c3433; }.design-tray #design-content { max-height:calc(100dvh - 260px); overflow:auto; }.design-choices { display:flex; flex-direction:column; }.design-card img { height:50px; width:70px; }
 .analysis { left:10px; right:10px; bottom:72px; height:126px; min-height:126px; padding:6px 9px 8px; grid-template-rows:24px 1fr; }.analysis-head>div { font-size:11px; }.analysis-head .icon-btn { display:none; }.analysis-head .pulse { display:none; }.siting-cell { top:5px; right:6px; width:202px; }#siting-check { font-size:10px; height:26px; min-height:26px; }
 .metrics { padding-top:6px; }.analysis-metric { padding:0 7px; }.metric-name { font-size:9px; white-space:normal; line-height:1.15; min-height:21px; text-align:left; }.metric-name .ico { display:none; }.metric-line { height:40px; display:block; margin:3px 0; }.metric-line strong { font-size:22px; }.metric-line .change { display:block; font-size:9px; }.metric-caption { display:none; }.receiver { display:none; }
 .stage-bottom,#stage[data-camera='plan'] .stage-bottom,#stage[data-camera='district'] .stage-bottom { bottom:210px!important; right:10px; left:auto; padding:3px; gap:4px; }.stage .stage-bottom button { min-height:28px; font-size:11px; }.stage .stage-bottom .zoom button { font-size:16px; }.stage-bottom .zoom button { width:27px; }
 #modebar { bottom:252px; left:10px; max-width:calc(100% - 20px); }
 body[data-workspace='sentiment'] .casehead { display:none; }.sent-map-tools { top:106px; right:10px; height:36px; padding:2px; }.sent-map-tools button { height:30px; }.sent-filters { top:151px; left:10px; width:225px; }.sent-filters .panel-toggle { min-height:34px; padding:8px 10px; font-size:12px; }.sent-filters label { font-size:11px; }.sent-filters select { font-size:11px; }.sent-display { order:0; }
 .sent-feed { top:auto; bottom:25px; left:10px; right:10px; width:auto; max-height:45dvh; z-index:850; }.sent-feed .panel-toggle { min-height:37px; }#sent-feed-content { max-height:calc(45dvh - 40px); }.feed-heading { padding:0 12px 10px; }.feed-heading h2 { font-size:18px; }.feed-sub { margin-bottom:5px; }.sent-totals { margin-top:5px; }.sent-totals button b { font-size:17px; }.sent-feed:has([aria-expanded='true']) { box-shadow:0 -12px 60px #204c3433; }
 .sent-layout .map-key { bottom:73px; left:10px; width:225px; padding:8px 10px; }.map-key>strong { display:none; }.map-key small { font-size:9px; }.map-key .heat-key { max-width:200px; }.map-key .proposal-key { display:none; }.stance-key { font-size:10px; }.stance-buttons { gap:6px; }
 .sent-note-prompt { top:106px; left:10px; right:10px; max-width:none; }.sent-filters>button { margin:0; }#toast { bottom:252px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto; } }
/* Keep compact bars in one row at intermediate desktop sizes. */
@media(min-width:701px) {
 .casehead { max-width:none; width:max-content; }
 .stage-top { flex-wrap:nowrap; }
 .stage-top .aerial-modes { position:static; inset:auto; width:auto; height:30px; min-height:0; display:flex; margin:0; border-left:1px solid var(--line); border-radius:0; background:none; }
}
.stage-top .cam-modes button[aria-pressed='true'] { color:#214a3b; outline:none; border:0; }
.context-heading .panel-toggle { padding:10px 12px; min-height:38px; }
.resource-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.resource-grid>div { display:block; padding:0 0 8px; margin:0; min-height:0; border-bottom-width:2px; }
.resource-grid>div+div { margin:0; }
.resource-grid span { display:block; margin-bottom:4px; }
.resource-grid b { font-size:24px; }
.resource-grid small { font-size:10px; }
.resources { padding-top:9px; }
.design-tray .evidence-link { margin-top:10px; }
@media(max-width:700px) {
 .stage-top .aerial-modes { position:static; inset:auto; width:70px; height:28px; margin:0; min-height:0; border:0; background:none; }
 .siting-context .context-heading .panel-toggle { min-height:33px; padding:8px 10px; }
}
.resource-grid>div,.resource-grid>div+div { display:block; }
body[data-workspace='sentiment'] .case-title { display:block; }
.sent-filters>.panel-toggle { border:0; border-radius:11px; padding:10px 12px; margin:0; background:transparent; }
@media(min-width:701px) {
 .sent-feed { max-height:min(62dvh,620px); }
 #sent-feed-content { max-height:calc(min(62dvh,620px) - 39px); }
}
@media(max-width:700px) {
 .sent-filters>.panel-toggle { padding:8px 10px; }
 .analysis { height:138px; min-height:138px; }
 .receiver { display:block; }
 .receiver select { font-size:9px; height:14px; padding:0; margin:0; line-height:14px; }
 .stage-bottom,#stage[data-camera='plan'] .stage-bottom,#stage[data-camera='district'] .stage-bottom { bottom:222px!important; }
}
@media(max-width:700px) {
 .design-tray { background:#f8fbf8; }
 .design-tray .tray-title { display:block; }
 .design-tray .tray-title h2 { font-size:18px; margin:0 0 4px; }
 .design-tray .design-choices { display:flex; flex-direction:column; }
 .design-tray .design-card { display:grid; grid-template-columns:70px minmax(0,1fr) 14px; gap:8px; min-height:59px; padding:4px 8px 4px 0; align-items:center; text-align:left; }
 .design-tray .design-card img { width:70px; height:50px; margin:0; }
 .design-tray .design-card>span { padding:0; width:auto; }
 .design-tray .design-card .radio { position:static; }
 .design-tray .resources { display:block; margin-top:8px; padding-top:8px; }
 .design-tray .resource-grid { display:grid; grid-template-columns:1fr 1fr; width:100%; }
 .design-tray .resource-grid>div,.design-tray .resource-grid>div+div { border:0; padding:0 0 8px; }
 .design-tray .minor-title { margin-bottom:8px; }
 .design-tray .design-detail { height:46px; min-height:46px; }
}
.map-key .sample-note { padding-top:6px; margin-top:6px; border-top:1px solid var(--line); color:var(--dim); }
@media(min-width:1251px) {
 .analysis { max-width:900px; height:128px; min-height:128px; }
 .stage-bottom,#stage[data-camera='plan'] .stage-bottom,#stage[data-camera='district'] .stage-bottom { bottom:170px!important; }
}
@media(max-width:700px) { .design-tray .resources .minor-title { display:flex; width:auto; max-width:none; white-space:nowrap; justify-content:space-between; } }

/* Consolidated editor: one left control panel, one compact centered readout. */
.topbar { left:50%; right:auto; transform:translateX(-50%); width:max-content; max-width:calc(100% - 36px); min-height:46px; height:46px; padding:6px 10px; gap:12px; }
.topbar .brand { font-size:21px; }
.topbar .partners { display:flex; padding-left:10px; gap:9px; }
.partners a { display:flex; align-items:center; justify-content:center; height:26px; border-radius:4px; }
.partners a:hover { background:#dfece3; }
.partners img { display:block; height:17px; width:29px; }
.topbar .views { margin:0; }
.topbar .views button { padding:6px 9px; font-size:12px; }
.topbar .top-actions { gap:5px; margin:0; }
.topbar .top-actions button { font-size:11px; }
.topbar .top-actions #notes span { display:inline; }
.topbar #count { min-width:1ch; font-variant-numeric:tabular-nums; }
.editor-tools { position:absolute; top:82px; left:var(--float-gap); width:218px; z-index:820; border:1px solid var(--glass-line); border-radius:12px; background:var(--glass); box-shadow:var(--glass-shadow); }
#editor-toggle { display:none; }
#editor-content { padding:10px; max-height:calc(100dvh - 220px); overflow:auto; scrollbar-width:thin; overscroll-behavior:contain; }
.editor-tools .placement-select { width:100%; display:flex; height:33px; min-height:33px; padding:4px 8px; gap:6px; background:#f5f8f4; border:1px solid var(--line); border-radius:7px; }
.editor-tools .placement-select select { width:100%; max-width:none; min-width:0; font-size:12px; }
.editor-tools .placement-select .ico { width:15px; height:15px; }
.editor-tools .editor-views { display:flex; flex-direction:column; align-items:stretch; border:0; border-radius:0; background:none; box-shadow:none; padding:8px 0; margin:6px 0; gap:3px; border-top:1px solid var(--subline); border-bottom:1px solid var(--subline); }
#stage .editor-views button { display:flex; align-items:center; justify-content:flex-start; width:100%; min-height:33px; padding:6px 9px; gap:10px; border:0; border-radius:7px; background:transparent; color:var(--dim); font-size:12px; font-weight:500; }
#stage .editor-views button[aria-pressed='true'] { background:#dce9e1; color:#24543f; box-shadow:none; font-weight:600; }
#stage .editor-views button:hover { background:#e7f0e9; }
#stage .editor-views button .ico { width:18px; height:18px; }
.editor-actions { display:flex; align-items:center; gap:6px; }
.editor-actions #move { flex:1; min-height:31px; font-size:12px; font-weight:500; border:1px solid var(--line); border-radius:7px; background:#f3f7f2; justify-content:flex-start; padding:5px 8px; }
.editor-actions #move[aria-pressed='true'] { background:#dce9e1; border-color:#8eb49f; color:#24543f; }
.editor-actions #adjust { width:31px; height:31px; min-height:31px; border-radius:7px; background:transparent; }
.editor-navigation { display:flex; justify-content:space-between; align-items:center; padding:7px 2px; border-bottom:1px solid var(--subline); }
.editor-navigation>span { font-size:12px; color:var(--dim); padding-left:6px; }
.editor-navigation .zoom { display:flex; align-items:center; border:1px solid var(--line); border-radius:7px; padding:0; box-shadow:none; background:#f5f8f4; }
.editor-navigation .zoom button { width:31px; height:28px; min-height:28px; padding:0; border:0; border-radius:6px; background:transparent; font-size:19px; color:var(--ink); }
.editor-navigation .zoom button+button { border-left:1px solid var(--subline); border-radius:0; }
.editor-navigation .zoom button .ico { width:15px; height:15px; }
.editor-map-tools { display:flex; align-items:center; justify-content:flex-end; gap:7px; padding-top:8px; }
.editor-map-tools .aerial-modes { position:static; inset:auto; display:flex; flex:1; min-width:0; height:29px; min-height:0; padding:0; margin:0; border:1px solid var(--line); border-radius:6px; box-shadow:none; background:transparent; }
.editor-map-tools .aerial-modes select { width:100%; min-width:0; height:100%; font-size:11px; padding:3px 6px; }
.editor-map-tools .layer-wrap { position:static; }
.editor-map-tools #layers { min-height:29px; padding:5px 8px; background:transparent; border:1px solid var(--line); border-radius:6px; font-size:12px; font-weight:500; }
.editor-map-tools #layers .ico { width:15px; height:15px; }
.editor-tools #layers-menu { position:static; inset:auto; width:100%; min-width:0; padding:8px 4px; margin-top:8px; border:0; border-top:1px solid var(--subline); border-radius:0; box-shadow:none; background:transparent; }
.editor-tools #layers-menu label { font-size:11px; }
#stage .editor-tools .siting-context { position:static; inset:auto; width:100%; height:auto; padding:0; margin-top:7px; border:0; border-top:1px solid var(--subline); border-radius:0; box-shadow:none; background:transparent; }
#stage .editor-tools .context-heading { padding:0; }
#stage .editor-tools .context-heading .panel-toggle { min-height:33px; padding:8px 2px; font-size:12px; font-weight:500; }
#stage .editor-tools .context-heading #context-info { width:22px; min-height:22px; padding:0; }
#stage .editor-tools #context-content { padding:3px 1px 0; }
#stage .editor-tools .context-key { font-size:10px; gap:7px 6px; }
#stage .editor-tools #context-finding { font-size:11px; height:43px; }
#stage .editor-tools #context-distances { font-size:10px; }
#stage .editor-tools #environment-status { font-size:9px; }
#modebar { top:82px; left:252px; bottom:auto; max-width:calc(100% - 560px); border-radius:9px; }
.design-tray { top:82px; max-height:calc(100dvh - 110px); }
.analysis { position:absolute; left:50%; right:auto; bottom:25px; transform:translateX(-50%); width:min(660px,calc(100% - 36px)); max-width:none; height:110px; min-height:110px; padding:7px 12px 9px; grid-template-rows:22px 1fr; }
.analysis .analysis-head { display:flex; align-items:center; gap:8px; width:100%; height:22px; padding:0; }
.analysis .analysis-head>div:first-child { font-size:11px; font-weight:600; }
.analysis .siting-cell { position:static; inset:auto; margin-left:auto; padding:0; width:116px; height:22px; background:none; border:0; }
.analysis #siting-check { width:116px; height:22px; min-height:22px; border:0; padding:3px 7px; border-radius:5px; font-size:10px; }
.analysis #methods { display:flex; position:static; margin:0; width:20px; height:20px; min-height:20px; }
.analysis .metrics { padding-top:6px; }
.analysis .analysis-metric { padding:0 12px; }
.analysis .analysis-metric:first-child { padding-left:0; }
.analysis .analysis-metric:last-child { padding-right:0; }
.analysis .metric-name { font-size:11px; min-height:15px; white-space:nowrap; }
.analysis .metric-name .ico { display:block; width:12px; height:12px; }
.analysis .metric-line { display:flex; flex-wrap:nowrap; justify-content:space-between; align-items:baseline; height:29px; margin:1px 0 0; gap:5px; }
.analysis .metric-line strong { font-size:25px; }
.analysis .metric-line .change { display:inline; width:auto; font-size:9px; white-space:nowrap; }
.analysis .meter { margin:3px 0; height:2px; }
.analysis .metric-caption { display:none; }
.analysis .receiver { display:block; }
.analysis .receiver select { width:100%; font-size:10px; padding:0; height:15px; line-height:15px; margin:0; }
.sent-filters { top:82px; }.sent-feed { top:136px; }
@media(min-width:701px) and (max-width:900px) {
 .topbar { gap:7px; }.topbar .partners { padding-left:7px; gap:5px; }.partners img { width:24px; height:15px; }
 .topbar .brand { font-size:19px; }.topbar .views button { padding:6px; font-size:11px; }.topbar .top-actions button { padding:5px 6px; font-size:10px; }
 .topbar #full { display:none; }.editor-tools { width:200px; }.design-tray { width:240px; }
}
@media(max-width:700px) {
 .topbar { top:10px; left:50%; right:auto; width:calc(100% - 20px); max-width:none; height:85px; min-height:85px; padding:7px 9px; gap:5px 8px; }
 .topbar .partners { display:none; }.topbar .brand { font-size:20px; }.topbar .top-actions { margin-left:auto; gap:4px; }.topbar .top-actions #notes span { display:inline; }.topbar .top-actions #notes { padding:4px 5px; font-size:10px; }.topbar .top-actions #notes .ico { display:none; }.topbar .top-actions .primary { font-size:11px; padding:4px 7px; }.topbar #full { display:none; }
 .topbar .views { order:3; width:100%; margin:0; }.topbar .views button { flex:1; font-size:12px; }
 .editor-tools { top:105px; left:10px; width:200px; z-index:840; background:#f8fbf8; }
 #editor-toggle { display:flex; padding:8px 10px; min-height:35px; font-size:12px; }
 #editor-toggle>span { display:flex; align-items:center; gap:7px; }
 #editor-toggle>span>.ico { width:15px; height:15px; transform:none; }
 #editor-content { padding:0 9px 9px; max-height:calc(100dvh - 335px); }
 #stage .editor-views button { font-size:11px; min-height:30px; padding:5px 8px; }
 .editor-tools .editor-views { padding:6px 0; margin:6px 0; }
 .editor-tools .placement-select { height:30px; min-height:30px; }
 .editor-tools .placement-select select { font-size:11px; }
 #stage .editor-tools .siting-context { position:static; width:100%; height:auto; background:transparent; }
 .design-tray { top:auto; max-height:calc(100dvh - 180px); }
 .analysis { left:50%; right:auto; bottom:72px; width:calc(100% - 20px); height:121px; min-height:121px; padding:6px 9px 7px; grid-template-rows:22px 1fr; }
 .analysis .analysis-head>div:first-child { font-size:11px; }.analysis .analysis-head .pulse { display:none; }
 .analysis .siting-cell { width:102px; }.analysis #siting-check { width:102px; font-size:10px; }
 .analysis .analysis-metric { padding:0 6px; }
 .analysis .metric-name { min-height:21px; white-space:normal; font-size:9px; line-height:1.15; text-align:left; }.analysis .metric-name .ico { display:none; }
 .analysis .metric-line { display:block; height:38px; margin:2px 0 0; }.analysis .metric-line strong { font-size:22px; }.analysis .metric-line .change { display:block; font-size:9px; }
 .analysis .receiver select { font-size:9px; height:14px; line-height:14px; }
 #modebar { top:auto; left:10px; right:10px; bottom:205px; width:auto; max-width:none; }
 .sent-filters { top:151px; }.sent-feed { top:auto; }
}
.editor-map-tools:has(.aerial-modes[hidden]) .layer-wrap { width:100%; }
.editor-map-tools:has(.aerial-modes[hidden]) #layers { width:100%; justify-content:flex-start; }
/* Individual geolocated remarks sit above a continuous density field. */
.remark-marker { background:none; border:0; }
#discussion-map .remark-dot { display:grid; place-items:center; width:20px; height:20px; min-height:0; padding:0; border:0; border-radius:50%; background:transparent; box-shadow:none; }
.remark-dot::before { content:''; display:block; width:var(--remark-size,6px); height:var(--remark-size,6px); box-sizing:border-box; border:1.3px solid #fff; border-radius:50%; background:var(--stance); opacity:var(--remark-opacity,1); box-shadow:0 0 0 .5px #2a51494d; }
#discussion-map .remark-dot:hover::before,.remark-dot.selected::before { opacity:1; box-shadow:0 0 0 2px #fff,0 0 0 3px var(--stance); }
#discussion-map .remark-dot:focus-visible { outline:2px solid var(--stance); outline-offset:2px; }
.remark-tooltip { padding:5px 8px; font:11px/1.4 Helvetica,sans-serif; color:var(--ink); background:#f9fcf7f5; border:1px solid var(--line); border-radius:6px; box-shadow:0 2px 8px #27443c17; }
.thread.selected-remark { border-color:var(--stance); background:#f8fbf7; }
.map-key .stance-buttons { display:flex; flex-wrap:nowrap; justify-content:space-between; gap:3px; margin:6px 0; }
.map-key .stance-key { min-width:0; padding:3px 1px; gap:4px; font-size:10px; font-weight:500; white-space:nowrap; }
.map-key .stance-key i { width:6px; height:6px; flex:0 0 6px; }
.map-key>strong { font-size:12px; }
@media(max-width:700px) { .map-key .stance-key { font-size:9.5px; gap:3px; }.map-key .stance-buttons { gap:2px; } }
/* Design resources and geographic effects share one compact live readout. */
.design-assumptions { margin:8px 0 12px; color:var(--muted); font-size:10px; line-height:1.45; }
.analysis { width:min(880px,calc(100% - 36px)); height:128px; min-height:128px; }
.analysis .metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
.analysis .analysis-metric { padding:0 10px; }
.analysis .metric-line { display:block; height:43px; margin-top:2px; }
.analysis .metric-line strong { font-size:23px; white-space:nowrap; }
.analysis .metric-line .change { display:block; font-size:9px; line-height:12px; }
.analysis .analysis-metric.energy { --tone:#6d8b80; }
.analysis .analysis-metric.cooling { --tone:#4d93a3; }
.analysis .metric-name { font-size:10px; }
.analysis .metric-name .ico { width:11px; height:11px; }
.analysis .receiver select { font-size:9px; }
@media(max-width:700px) {
 .analysis { height:184px; min-height:184px; width:calc(100% - 20px); grid-template-rows:22px 1fr; }
 .analysis .metrics { grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px 0; }
 .analysis .analysis-metric { grid-column:span 2; padding:0 6px; }
 .analysis .analysis-metric.energy,.analysis .analysis-metric.cooling { grid-column:span 3; }
 .analysis .analysis-metric.energy { padding-left:0; }.analysis .analysis-metric.cooling { padding-right:0; }
 .analysis .analysis-metric.sound { border-left:0; padding-left:0; }
 .analysis .metric-name { font-size:10px; min-height:14px; white-space:nowrap; }
 .analysis .metric-line { height:34px; margin:0; }
 .analysis .metric-line strong { font-size:21px; }
 .analysis .metric-line .change { display:inline; font-size:9px; margin-left:5px; }
 .analysis .metric-line strong small { font-size:8px; }
 .analysis .analysis-metric:nth-child(n+3) .metric-name { font-size:9px; }
 .analysis .analysis-metric:nth-child(n+3) .metric-line .change { display:block; margin-left:0; }
 .analysis .analysis-metric:nth-child(n+3) .metric-line { height:40px; }
 #modebar { bottom:268px; }
 #editor-content { max-height:calc(100dvh - 398px); }
}
/* MineScope-inspired source icons, stream filters, and map pins for the light workshop theme. */
.sent-filters { width:256px; }
.map-key { width:256px; }
#sent-filter-content { gap:9px; max-height:calc(100dvh - 345px); overflow:auto; scrollbar-width:thin; overscroll-behavior:contain; }
.sent-filters label { font-size:11px; }
.sent-filters select { width:146px; max-width:146px; font-size:11px; padding:4px 5px; }
.stream-tabs { display:flex; gap:2px; padding:2px; background:#e7efea; border:1px solid var(--line); border-radius:6px; }
.stream-tabs button { flex:1 1 auto; min-width:0; min-height:26px; padding:4px 6px; gap:3px; border:1px solid transparent; border-radius:4px; background:transparent; color:var(--dim); font-size:10px; font-weight:600; white-space:nowrap; }
.stream-tabs button[data-stream-filter='all'] { flex:0 0 auto; padding:4px 10px; }
.stream-tabs button .ico { width:11px; height:11px; }
.stream-tabs button[aria-pressed='true'] { background:#fff; color:#1d4538; border-color:#c2d4ca; box-shadow:0 1px 2px #1c3a3212; }
.stream-tabs button:hover:not([aria-pressed='true']) { background:#f1f6f3; color:var(--ink); }
.source-groups { display:flex; flex-direction:column; gap:7px; padding:7px 0; border-top:1px solid var(--subline); border-bottom:1px solid var(--subline); }
.source-group { display:flex; flex-direction:column; gap:4px; }
.source-group-label { font-size:9.5px; font-weight:700; letter-spacing:.55px; text-transform:uppercase; color:var(--muted); }
.source-grid.two { display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.source-chip { display:flex; align-items:center; justify-content:flex-start; gap:4px; min-height:26px; padding:3px 6px; border:1px solid var(--line); border-radius:5px; background:#f5f9f6; color:var(--ink); font-size:10.5px; font-weight:500; text-align:left; transition:background .15s,border-color .15s,opacity .15s; }
.source-chip .ico { width:12px; height:12px; flex:0 0 12px; color:#2b6755; }
.source-chip[data-stream='social'] .ico { color:#3d6d89; }
.source-chip span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.source-chip b { margin-left:auto; font-size:9.5px; font-weight:600; color:var(--dim); font-variant-numeric:tabular-nums; }
.source-chip[aria-pressed='true'][data-stream='session'] { background:#e3f0e9; border-color:#8cb3a0; color:#1b4537; }
.source-chip[aria-pressed='true'][data-stream='social'] { background:#e7f0f5; border-color:#98b6c7; color:#22465b; }
.source-chip[aria-pressed='false'] { opacity:.46; background:transparent; border-style:dashed; color:var(--muted); }
.source-chip:hover { opacity:.95; }
#discussion-map .remark-pin { position:relative; display:grid; place-items:center; width:28px; height:28px; min-height:0; padding:0; border:0; border-radius:50%; background:transparent; box-shadow:none; opacity:var(--pin-opacity,.96); transition:transform .14s ease; }
#discussion-map .remark-pin::before { content:''; position:absolute; width:var(--pin-size,20px); height:var(--pin-size,20px); box-sizing:border-box; border-radius:50%; transition:transform .14s ease,box-shadow .14s ease; }
#discussion-map .remark-pin[data-stream='session']::before { background:var(--stance); border:1.6px solid #f9fcf9; box-shadow:0 1px 4px #17302a45; }
#discussion-map .remark-pin[data-stream='social']::before { background:#f9fcf9f5; border:1.8px solid var(--stance); box-shadow:0 1px 4px #17302a36; }
#discussion-map .remark-pin .ico { position:relative; z-index:1; width:calc(var(--pin-size,20px) * .58); height:calc(var(--pin-size,20px) * .58); stroke-width:2; }
#discussion-map .remark-pin[data-stream='session'] .ico { color:#fff; }
#discussion-map .remark-pin[data-stream='social'] .ico { color:var(--stance); }
#discussion-map .remark-pin:hover { opacity:1; transform:scale(1.18); z-index:5000; }
#discussion-map .remark-pin:hover::before { box-shadow:0 0 0 2.5px #fff,0 0 0 4px var(--stance),0 3px 10px #17302a38; }
#discussion-map .remark-pin.selected { opacity:1; transform:scale(1.28); }
#discussion-map .remark-pin.selected::before { box-shadow:0 0 0 2.5px #fff,0 0 0 4.6px var(--stance),0 4px 14px #17302a42; }
#discussion-map .remark-pin:focus-visible { outline:2px solid var(--stance); outline-offset:2px; }
.remark-tooltip { padding:5px 8px; font:11px/1.38 Helvetica,sans-serif; color:var(--ink); background:#f9fcf7f8; border:1px solid var(--line); border-radius:6px; box-shadow:0 3px 10px #27443c1f; }
.remark-tooltip strong { font-weight:600; color:var(--ink); }
.source-key { display:flex; flex-direction:column; gap:5px; padding:6px 0; margin:4px 0 5px; border-top:1px solid var(--subline); border-bottom:1px solid var(--subline); }
.source-key-row { display:flex; align-items:center; gap:7px; font-size:10px; color:var(--ink); }
.key-badges { display:inline-flex; align-items:center; gap:3px; flex-shrink:0; }
.key-pin { display:inline-grid; place-items:center; width:17px; height:17px; border-radius:50%; box-sizing:border-box; }
.key-pin .ico { width:10px; height:10px; stroke-width:2; }
.key-pin.session { background:#2e7664; color:#fff; border:1px solid #f9fcf9; box-shadow:0 1px 2px #1a352f33; }
.key-pin.social { background:#f9fcf9; color:#3d6d89; border:1.4px solid #3d6d89; }
.feed-stream-summary { display:flex; align-items:center; gap:10px; margin-top:7px; font-size:10.5px; color:var(--dim); }
.feed-stream-summary span { display:inline-flex; align-items:center; gap:4px; }
.feed-stream-summary .ico { width:12px; height:12px; }
.feed-stream-summary span[data-stream='session'] .ico { color:#2e7664; }
.feed-stream-summary span[data-stream='social'] .ico { color:#3d6d89; }
.feed-stream-summary b { color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.thread summary { padding:10px 24px 10px 10px; }
.thread summary::after { right:8px; top:11px; }
.thread summary .thread-meta { display:flex; align-items:center; justify-content:space-between; gap:6px; flex-wrap:wrap; }
.thread-stance { display:inline-flex; align-items:center; gap:4px; font-weight:600; color:var(--ink); }
.source-tag { display:inline-flex; align-items:center; gap:4px; padding:1px 6px; border-radius:999px; font-size:9.5px; font-weight:600; white-space:nowrap; }
.source-tag .ico { width:11px; height:11px; flex:0 0 11px; }
.source-tag[data-stream='session'] { background:#dfeee6; color:#1f5242; border:1px solid #b3d2c3; }
.source-tag[data-stream='social'] { background:#e4eef5; color:#275068; border:1px solid #b9cfdd; }
@media(max-width:700px) {
 .sent-filters { width:240px; }
 .sent-layout .map-key { width:240px; }
 #sent-filter-content { max-height:calc(100dvh - 300px); }
 .source-key-row { font-size:9.5px; gap:5px; }
 .key-pin { width:15px; height:15px; }
 .key-pin .ico { width:9px; height:9px; }
}
@media(prefers-reduced-motion:reduce) {
 #discussion-map .remark-pin,#discussion-map .remark-pin::before { transition:none; }
}
/* Live engineering profile and contextual KPI sub-captions in Scenario Editor. */
.design-detail { height:auto; min-height:46px; max-height:84px; }
.design-specs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:8px 0 6px; padding:7px 0; border-top:1px solid var(--subline); border-bottom:1px solid var(--subline); }
.design-specs>div { min-width:0; }
.design-specs span { display:block; font-size:9px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.design-specs b { display:block; margin-top:2px; font-size:12px; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
#stage .editor-tools #context-distances { height:auto; max-height:52px; }
.analysis { width:min(940px,calc(100% - 36px)); height:142px; min-height:142px; }
.analysis .metric-caption { display:block; margin-top:2px; font-size:9.5px; line-height:1.25; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.analysis .analysis-metric[data-alert='warn'] .metric-caption { color:#9a5822; font-weight:600; }
.analysis .analysis-metric.sound .metric-line { display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto; align-items:baseline; column-gap:5px; }
.analysis .analysis-metric.sound .metric-line strong { grid-column:1 / -1; }
.analysis .analysis-metric.sound .metric-line .change { grid-column:1; }
.analysis .sound-shield { grid-column:2; justify-self:end; font-size:8.5px; font-weight:600; padding:1px 4px; border-radius:3px; white-space:nowrap; background:#e7efe9; color:#2b6453; }
.analysis .sound-shield[data-shielded='no'] { background:#f4eae4; color:#9d4d3a; }
.analysis .sound-shield:empty { display:none; }
.analysis .receiver select { width:100%; height:15px; line-height:15px; font-size:9.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media(max-width:960px) and (min-width:701px) {
 .analysis .sound-shield { display:none; }
}
@media(max-width:700px) {
 .analysis { height:206px; min-height:206px; }
 .analysis .metric-caption { display:block; font-size:8.5px; }
 .analysis .sound-shield { display:none; }
 .analysis .receiver select { font-size:8.5px; height:14px; line-height:14px; }
 .design-specs { gap:4px; }
 .design-specs b { font-size:11px; }
}

/* Unified frosted architectural glass across Scenario Editor and Sentiment Map. */
:root {
 --float-right:296px;
 --ink:#1b3238;
 --dim:#425c62;
 --muted:#567075;
 --glass:linear-gradient(155deg,rgba(252,255,253,.66),rgba(235,246,242,.48));
 --glass-strong:linear-gradient(160deg,rgba(253,255,254,.76),rgba(238,247,244,.58));
 --glass-blur:blur(22px) saturate(168%) brightness(1.03);
 --glass-line:rgba(255,255,255,.72);
 --glass-ring:rgba(58,96,86,.15);
 --glass-shadow:0 14px 36px rgba(18,43,37,.13),0 2px 8px rgba(18,43,37,.06),0 0 0 1px var(--glass-ring),inset 0 1px 0 rgba(255,255,255,.92),inset 0 -1px 0 rgba(122,156,146,.14);
}
.topbar,.editor-tools,.design-tray,.analysis,.sent-left-tools,.sent-dock,.sent-feed.sent-window,.option-popover,#modebar,#toast,.sent-note-prompt {
 background:var(--glass);
 backdrop-filter:var(--glass-blur);
 -webkit-backdrop-filter:var(--glass-blur);
 border:1px solid var(--glass-line);
 border-radius:14px;
 box-shadow:var(--glass-shadow);
}
.analysis,.sent-dock,.sent-feed.sent-window,.design-tray,.option-popover { background:var(--glass-strong); }
#toast { background:rgba(24,58,49,.9); color:#f6fbf8; border-color:rgba(164,212,194,.42); font-weight:500; box-shadow:0 14px 32px rgba(15,38,33,.24),inset 0 1px 0 rgba(255,255,255,.16); }
#modebar { color:var(--ink); }
.topbar { border-radius:16px; gap:11px; }
dialog {
 background:linear-gradient(160deg,rgba(252,255,254,.92),rgba(239,247,244,.86));
 backdrop-filter:blur(24px) saturate(160%);
 -webkit-backdrop-filter:blur(24px) saturate(160%);
 border:1px solid rgba(255,255,255,.78);
 border-radius:14px;
 box-shadow:0 24px 60px rgba(15,38,33,.22),0 0 0 1px rgba(58,96,86,.16),inset 0 1px 0 rgba(255,255,255,.95);
}
dialog::backdrop { background:rgba(24,44,41,.28); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.dialog-head { background:rgba(246,251,249,.94); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom-color:rgba(82,118,108,.18); }

/* Unified glass-on-glass segmented controls & pills */
.views,.stream-tabs,.pillar-tabs,.domain-tabs,.sent-display,.feed-mode-tabs {
 background:rgba(220,235,229,.52);
 border:1px solid rgba(255,255,255,.62);
 border-radius:8px;
 padding:2px;
 box-shadow:inset 0 1px 2px rgba(28,58,50,.06);
}
.views button[aria-pressed='true'],
.stream-tabs button[aria-pressed='true'],
.pillar-tabs button[aria-selected='true'],
.domain-tabs button[aria-pressed='true'],
.sent-display button[aria-pressed='true'],
.feed-mode-tabs button[aria-selected='true'] {
 background:rgba(255,255,255,.86);
 color:#184035;
 border-color:transparent;
 box-shadow:0 1px 4px rgba(24,54,46,.12),inset 0 1px 0 rgba(255,255,255,.98);
}
.editor-tools .placement-select,.editor-navigation .zoom {
 background:rgba(255,255,255,.46);
 border-color:rgba(98,136,125,.24);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.editor-tools .placement-select { height:34px; min-height:34px; padding:4px 7px; }
.editor-tools .placement-select select {
 appearance:auto;
 -webkit-appearance:auto;
 background:transparent;
 border:0;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
 font-size:11.5px;
 font-weight:600;
 padding-right:2px;
}
#stage .editor-views button[aria-pressed='true'] {
 background:rgba(206,230,219,.72);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
#stage .editor-views button:hover,.panel-toggle:hover { background:rgba(255,255,255,.44); }
.editor-map-tools .aerial-modes,.editor-map-tools #layers { background:rgba(255,255,255,.44); border-color:rgba(98,136,125,.24); }

/* Streamlined right floating tray: zero boilerplate, hover/click info circles */
.design-tray { top:78px; width:var(--float-right); max-height:calc(100dvh - 102px); }
.design-tray .panel-toggle { min-height:34px; padding:8px 13px 6px; font-size:12px; color:var(--dim); }
#design-content { padding:0 12px 11px; }
.pillar-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; margin-bottom:9px; }
.pillar-tabs button { min-height:26px; padding:4px 3px; border:0; border-radius:6px; background:transparent; color:var(--dim); font-size:11px; font-weight:600; white-space:nowrap; }
.pillar-tabs button:hover:not([aria-selected='true']):not(:disabled) { background:rgba(255,255,255,.42); color:var(--ink); }
.tray-title { margin:0 0 8px; }
.tray-title h2 { font-size:15.5px; line-height:1.18; margin:0 0 2px; letter-spacing:-.35px; }
.tray-title>span:last-child { font-size:10.5px; color:var(--muted); }
.design-choices { display:flex; flex-direction:column; gap:6px; }
.design-card-wrap { position:relative; display:flex; align-items:stretch; }
.design-card {
 flex:1;
 min-width:0;
 display:grid;
 grid-template-columns:46px minmax(0,1fr) 14px;
 align-items:center;
 gap:8px;
 min-height:50px;
 padding:5px 30px 5px 6px;
 border-radius:10px;
 background:rgba(255,255,255,.46);
 border:1px solid rgba(114,150,139,.25);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.78);
 text-align:left;
 transition:background .15s,border-color .15s,box-shadow .15s;
}
.design-card:hover { background:rgba(255,255,255,.74); }
.design-card[aria-pressed='true'] {
 background:rgba(213,235,224,.78);
 border-color:rgba(82,142,118,.56);
 box-shadow:inset 3px 0 #3f846d,inset 0 1px 0 rgba(255,255,255,.85);
}
.design-card img { width:46px; height:36px; object-fit:cover; border-radius:6px; }
.card-badge {
 width:44px;
 height:36px;
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:1px;
 border-radius:6px;
 background:rgba(226,238,233,.72);
 border:1px solid rgba(112,150,138,.24);
 color:#2b6253;
}
.card-badge .ico { width:14px; height:14px; }
.card-badge em { font-style:normal; font-size:8.5px; font-weight:700; letter-spacing:.4px; line-height:1; }
.design-card[aria-pressed='true'] .card-badge { background:rgba(46,118,100,.14); border-color:rgba(46,118,100,.34); color:#1a4f40; }
.design-card strong { font-size:11.5px; line-height:1.2; color:var(--ink); }
.design-card small { font-size:10px; line-height:1.2; color:var(--dim); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.design-card .radio { width:12px; height:12px; border:1.5px solid rgba(92,130,118,.55); border-radius:50%; background:rgba(255,255,255,.6); }
.design-card[aria-pressed='true'] .radio { border:3.5px solid #2e7664; background:#fff; }
.design-card .check-dot { width:13px; height:13px; border:1.5px solid rgba(92,130,118,.55); border-radius:4px; background:rgba(255,255,255,.65); position:relative; }
.design-card[aria-pressed='true'] .check-dot { background:#2e7664; border-color:#2e7664; }
.design-card[aria-pressed='true'] .check-dot::after { content:''; position:absolute; left:3.5px; top:1px; width:3.5px; height:6.5px; border:solid #fff; border-width:0 1.6px 1.6px 0; transform:rotate(42deg); }

/* Quiet circular info trigger on each option card + frosted floating popover */
.opt-info {
 position:absolute;
 right:6px;
 top:50%;
 transform:translateY(-50%);
 width:18px;
 height:18px;
 min-height:18px;
 padding:0;
 border-radius:50%;
 border:1px solid rgba(92,130,118,.35);
 background:rgba(255,255,255,.62);
 color:var(--dim);
 font-size:10px;
 font-weight:700;
 font-style:italic;
 font-family:Georgia,serif;
 line-height:1;
 z-index:2;
}
.opt-info:hover,.opt-info:focus-visible,.opt-info[aria-expanded='true'] { background:#2e7664; border-color:#2e7664; color:#fff; }
.option-popover {
 position:fixed;
 z-index:940;
 width:246px;
 padding:11px 13px;
 pointer-events:none;
 color:var(--ink);
}
.option-popover .pop-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:5px; }
.option-popover strong { font-size:12px; color:#173d33; }
.option-popover .pop-head span { font-size:9px; font-weight:700; padding:1px 6px; border-radius:999px; background:rgba(46,118,100,.14); color:#1d5444; }
.option-popover p { margin:0; font-size:11px; line-height:1.45; color:var(--dim); }
.option-popover small { display:block; margin-top:6px; padding-top:5px; border-top:1px solid rgba(98,136,125,.2); font-size:10px; color:#2b6253; }

.nobuild-card { display:flex; flex-direction:column; gap:7px; padding:10px; border-radius:10px; background:rgba(255,255,255,.55); border:1px solid rgba(98,142,126,.3); }
.nobuild-card strong { font-size:13px; color:#184035; }
.nobuild-card p { margin:0; font-size:11px; line-height:1.4; color:var(--dim); }
.nobuild-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:6px 0; border-top:1px solid rgba(98,136,125,.18); border-bottom:1px solid rgba(98,136,125,.18); }
.nobuild-grid span { display:block; font-size:8.5px; color:var(--muted); }
.nobuild-grid b { display:block; font-size:11px; color:var(--ink); margin-top:2px; }
.nobuild-card .wide { width:100%; font-size:11px; padding:6px 8px; background:rgba(206,232,218,.78); border-color:rgba(114,166,142,.45); }

.design-specs { margin:9px 0 8px; padding:7px 0; border-top-color:rgba(98,136,125,.2); border-bottom-color:rgba(98,136,125,.2); }
.design-tray .evidence-link { margin-top:2px; padding-top:8px; border-top:0; font-size:11.5px; }

/* Bottom floating Live Analysis bar: crisp icon domain switcher */
.analysis { width:min(960px,calc(100% - 36px)); height:142px; min-height:142px; bottom:20px; border-radius:14px; }
.analysis .analysis-head { gap:8px; }
.domain-tabs { display:inline-flex; align-items:center; gap:2px; margin-left:6px; border-radius:8px; }
.domain-tabs button { width:26px; height:21px; min-height:21px; padding:0; border:0; border-radius:6px; background:transparent; color:var(--dim); }
.domain-tabs button .ico { width:13px; height:13px; stroke-width:1.85; }
.domain-tabs button:hover:not([aria-pressed='true']) { background:rgba(255,255,255,.5); color:var(--ink); }
.analysis .analysis-metric { border-left-color:rgba(98,136,125,.2); }
.analysis .analysis-metric.value,.analysis .analysis-metric.tax,.analysis .analysis-metric.capex,.analysis .analysis-metric.benefit,.analysis .analysis-metric.jobs,.analysis .analysis-metric.buildjobs { --tone:#8c6429; }
.analysis .analysis-metric.co2,.analysis .analysis-metric.amenity { --tone:#2e7664; }
.analysis .analysis-metric.protect,.analysis .analysis-metric.grants,.analysis .analysis-metric.receptor { --tone:#3d6d89; }
.analysis #siting-check { background:rgba(220,238,228,.75); }
.analysis #siting-check[data-status='conflict'] { background:rgba(248,224,218,.84); }
.analysis #siting-check[data-status='review'] { background:rgba(249,237,209,.84); }

/* Sentiment Map: 100% consistent frosted glass, left hover rail, bottom dock, dynamic window */
.sent-left-tools {
 position:absolute;
 top:78px;
 left:var(--float-gap);
 z-index:820;
 width:66px;
 padding:6px;
 display:flex;
 flex-direction:column;
 gap:6px;
 transition:transform .16s ease,box-shadow .16s ease;
}
.sent-left-tools:hover { transform:translateY(-1px); box-shadow:0 18px 40px rgba(18,43,37,.16),0 2px 8px rgba(18,43,37,.08),0 0 0 1px var(--glass-ring),inset 0 1px 0 rgba(255,255,255,.95); }
.sent-left-group { display:flex; flex-direction:column; background:rgba(255,255,255,.46); border:1px solid rgba(98,136,125,.24); border-radius:9px; overflow:hidden; }
.sent-left-group button { width:100%; height:31px; min-height:31px; padding:0; border:0; border-radius:0; background:transparent; color:var(--ink); font-size:17px; font-weight:500; }
.sent-left-group button + button { border-top:1px solid rgba(98,136,125,.18); }
.sent-left-group button:hover { background:rgba(255,255,255,.72); color:#184035; }
.sent-left-group button .ico { width:15px; height:15px; }
.sent-base-wrap { display:block; }
.sent-base-wrap select { width:100%; padding:4px 2px; border-radius:8px; border:1px solid rgba(98,136,125,.24); background:rgba(255,255,255,.48); color:var(--ink); font-size:10px; font-weight:600; text-align:center; }

.sent-note-prompt {
 position:absolute;
 top:78px;
 left:98px;
 z-index:860;
 padding:8px 12px;
 display:flex;
 align-items:center;
 gap:10px;
 font-size:12px;
 font-weight:500;
 color:var(--ink);
}
.sent-note-prompt button { min-height:24px; padding:3px 8px; font-size:11px; border-radius:6px; background:rgba(255,255,255,.68); border-color:rgba(98,136,125,.3); }

/* Consolidated bottom dock (Discussion filters + Viewpoints + Source chips) */
.sent-dock {
 position:absolute;
 left:50%;
 bottom:20px;
 transform:translateX(-50%);
 z-index:820;
 width:min(960px,calc(100% - 36px));
 padding:8px 12px 10px;
 display:flex;
 flex-direction:column;
 gap:7px;
}
.sent-dock-head { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.sent-dock .sent-display,.sent-dock .stream-tabs { display:inline-flex; gap:2px; border-radius:8px; }
.sent-dock .sent-display button,.sent-dock .stream-tabs button {
 min-height:23px;
 padding:3px 8px;
 border:0;
 border-radius:6px;
 background:transparent;
 color:var(--dim);
 font-size:10.5px;
 font-weight:600;
 white-space:nowrap;
}
.sent-dock .stream-tabs button .ico { width:11px; height:11px; }
.dock-selects { display:inline-flex; align-items:center; gap:5px; }
.dock-selects select {
 height:25px;
 padding:2px 6px;
 border-radius:7px;
 border:1px solid rgba(98,136,125,.25);
 background:rgba(255,255,255,.52);
 color:var(--ink);
 font-size:10.5px;
 font-weight:500;
 max-width:152px;
}
.dock-sample {
 margin-left:auto;
 font-size:9.5px;
 font-weight:600;
 letter-spacing:.2px;
 color:#245646;
 padding:2px 7px;
 border-radius:999px;
 background:rgba(213,235,224,.72);
 border:1px solid rgba(110,162,138,.32);
 white-space:nowrap;
}
.dock-mobile-toggle { display:none; }
.dock-reset {
 min-height:23px;
 padding:2px 8px;
 border-radius:7px;
 border:1px solid rgba(98,136,125,.24);
 background:rgba(255,255,255,.46);
 color:var(--dim);
 font-size:10.5px;
 font-weight:600;
}
.dock-reset:hover { background:rgba(255,255,255,.78); color:var(--ink); }

.sent-dock-body {
 display:grid;
 grid-template-columns:minmax(230px,0.92fr) minmax(0,1.65fr);
 gap:12px;
 align-items:center;
 padding-top:6px;
 border-top:1px solid rgba(98,136,125,.18);
}
.dock-viewpoints { display:flex; flex-direction:column; gap:5px; padding-right:12px; border-right:1px solid rgba(98,136,125,.18); }
.sent-dock .stance-buttons { display:flex; align-items:center; justify-content:space-between; gap:4px; margin:0; }
.sent-dock .stance-key {
 display:inline-flex;
 align-items:center;
 gap:4px;
 min-height:24px;
 padding:2px 6px;
 border-radius:7px;
 border:1px solid transparent;
 background:rgba(255,255,255,.36);
 color:var(--ink);
 font-size:10.5px;
 font-weight:600;
}
.sent-dock .stance-key:hover { background:rgba(255,255,255,.7); }
.sent-dock .stance-key[aria-pressed='true'] { background:rgba(255,255,255,.86); border-color:rgba(82,142,118,.48); box-shadow:0 1px 3px rgba(24,52,45,.08); }
.sent-dock .stance-key b { font-size:10.5px; font-weight:700; color:var(--dim); font-variant-numeric:tabular-nums; }
.sent-dock .sent-stack { height:4px; border-radius:999px; background:rgba(182,202,196,.4); }
.sent-dock #discussion-map-key { font-size:9.5px; color:var(--muted); line-height:1.2; }

.dock-sources { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:4px; }
.dock-sources .source-chip {
 min-height:30px;
 padding:4px 5px;
 border-radius:8px;
 background:rgba(255,255,255,.46);
 border:1px solid rgba(98,136,125,.24);
 font-size:10.5px;
}
.dock-sources .source-chip[aria-pressed='true'][data-stream='session'] { background:rgba(213,236,225,.78); border-color:rgba(104,160,136,.5); color:#184336; }
.dock-sources .source-chip[aria-pressed='true'][data-stream='social'] { background:rgba(220,235,244,.78); border-color:rgba(122,164,188,.5); color:#1f475e; }
.dock-sources .source-chip[aria-pressed='false'] { opacity:.45; background:rgba(255,255,255,.2); border-style:dashed; }

/* Geolocation leader line linking selected map comment to movable discussions window */
.sent-connector {
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 z-index:815;
 pointer-events:none;
 overflow:visible;
 display:none;
}
.sent-connector.is-visible {
 display:block;
}
.sent-connector .conn-halo {
 fill:none;
 stroke:rgba(255,255,255,.88);
 stroke-width:4.6;
 stroke-linecap:round;
 stroke-linejoin:round;
}
.sent-connector .conn-line {
 fill:none;
 stroke:var(--conn-color,#2e7664);
 stroke-width:2;
 stroke-linecap:round;
 stroke-linejoin:round;
}
.sent-connector .conn-ring {
 fill:none;
 stroke:var(--conn-color,#2e7664);
 stroke-width:1.7;
 stroke-opacity:.42;
}
.sent-connector .conn-pin-dot {
 fill:var(--conn-color,#2e7664);
 stroke:#fff;
 stroke-width:2.2;
}
.sent-connector .conn-anchor {
 fill:var(--conn-color,#2e7664);
 stroke:#fff;
 stroke-width:2;
 filter:drop-shadow(0 1px 3px rgba(18,43,37,.22));
}

/* Dynamic movable & resizable Community Discussions + Notes window */
.sent-feed.sent-window {
 position:absolute;
 top:78px;
 right:var(--float-gap);
 width:346px;
 height:min(540px,calc(100dvh - 235px));
 max-height:none;
 z-index:840;
 padding:0;
 display:flex;
 flex-direction:column;
 overflow:hidden;
}
.sent-feed.sent-window.is-collapsed { height:auto !important; }
.sent-feed.sent-window.is-dragging,.sent-feed.sent-window.is-resizing {
 user-select:none;
 box-shadow:0 22px 54px rgba(15,38,33,.22),0 0 0 1px rgba(68,124,104,.28),inset 0 1px 0 rgba(255,255,255,.96);
}
.sent-win-bar {
 display:flex;
 align-items:center;
 gap:5px;
 padding:7px 9px;
 cursor:grab;
 border-bottom:1px solid rgba(98,136,125,.18);
 background:rgba(255,255,255,.26);
 flex:0 0 auto;
}
.sent-feed.is-dragging .sent-win-bar { cursor:grabbing; }
.win-grip { display:inline-flex; align-items:center; color:var(--muted); opacity:.72; flex:0 0 auto; }
.win-grip .ico { width:13px; height:13px; }
.feed-mode-tabs { display:inline-flex; gap:2px; border-radius:7px; flex:0 0 auto; }
.feed-mode-tabs button { min-height:23px; padding:2px 8px; border:0; border-radius:5px; background:transparent; color:var(--dim); font-size:11px; font-weight:600; gap:4px; }
.feed-mode-tabs b { font-size:10px; font-weight:700; color:#2b6755; font-variant-numeric:tabular-nums; }
.add-note-inline {
 margin-left:auto;
 min-height:24px;
 padding:3px 8px;
 border-radius:7px;
 background:rgba(206,232,218,.78);
 border:1px solid rgba(114,166,142,.48);
 color:#163d31;
 font-size:10.5px;
 font-weight:600;
 gap:4px;
 white-space:nowrap;
}
.add-note-inline .ico { width:12px; height:12px; }
.add-note-inline:hover,.add-note-inline[aria-pressed='true'] { background:#2e7664; border-color:#2e7664; color:#fff; }
.win-btn {
 width:24px;
 height:24px;
 min-height:24px;
 padding:0;
 border-radius:6px;
 border:1px solid transparent;
 background:transparent;
 color:var(--dim);
 flex:0 0 auto;
}
.win-btn:hover { background:rgba(255,255,255,.65); border-color:rgba(98,136,125,.24); color:var(--ink); }
.win-btn .ico { width:13px; height:13px; }
.win-btn[aria-expanded='true'] .ico { transform:rotate(180deg); }

.sent-feed.sent-window #sent-feed-content { flex:1 1 auto; min-height:0; max-height:none; display:flex; flex-direction:column; }
.sent-feed.sent-window .feed-heading { padding:9px 13px 8px; border-bottom:1px solid rgba(98,136,125,.16); background:transparent; }
.sent-feed.sent-window .feed-heading h2 { font-size:16px; line-height:1.2; margin:0 0 4px; letter-spacing:-.3px; }
.sent-feed.sent-window .feed-sub { font-size:11px; gap:6px; }
.sent-feed.sent-window .feed-sub button { padding:2px 7px; border-radius:6px; background:rgba(255,255,255,.58); border-color:rgba(98,136,125,.28); font-size:10.5px; font-weight:600; }
.sent-feed.sent-window .feed-sub button:hover { background:rgba(255,255,255,.88); }
.sent-feed.sent-window .feed-rows { flex:1 1 auto; min-height:0; overflow:auto; padding:6px 10px 12px; }
.sent-feed.sent-window .thread { background:rgba(255,255,255,.52); border:1px solid rgba(255,255,255,.72); border-radius:9px; margin:6px 0; padding:0; box-shadow:0 1px 4px rgba(24,52,45,.05); }
.sent-feed.sent-window .thread.selected-remark { background:rgba(255,255,255,.84); border-color:var(--stance); }
.sent-feed.sent-window .thread-text button { margin-top:4px; border-radius:6px; background:rgba(255,255,255,.68); border-color:rgba(98,136,125,.28); font-weight:600; }

/* Session notes cards inside Sentiment Map window */
.empty-notes { display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:26px 16px; color:var(--dim); font-size:12px; line-height:1.45; }
.empty-notes .ico { width:22px; height:22px; color:#2e7664; opacity:.75; }
.user-note-card { padding:10px 11px; margin:6px 0; border-radius:9px; background:rgba(255,255,255,.58); border:1px solid rgba(114,158,142,.34); box-shadow:0 1px 4px rgba(24,52,45,.05); cursor:pointer; transition:background .15s,border-color .15s,box-shadow .15s; }
.user-note-card:hover { background:rgba(255,255,255,.78); }
.user-note-card.selected-note { background:rgba(255,255,255,.88); border-color:#2e7664; box-shadow:inset 3px 0 #2e7664,0 2px 6px rgba(24,52,45,.08); }
.user-note-meta { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:4px; }
.user-note-meta span { font-size:10px; font-weight:700; color:#1f5242; background:rgba(213,236,225,.8); padding:1px 6px; border-radius:999px; }
.user-note-meta small { font-size:10px; color:var(--muted); }
.user-note-card p { margin:0 0 7px; font-size:12px; line-height:1.42; color:var(--ink); }
.user-note-foot { display:flex; align-items:center; justify-content:space-between; gap:6px; flex-wrap:wrap; }
.user-note-foot small { font-size:10px; color:var(--dim); }
.user-note-actions { display:flex; gap:4px; }
.user-note-actions button { min-height:22px; padding:2px 7px; font-size:10px; border-radius:6px; background:rgba(255,255,255,.7); border-color:rgba(98,136,125,.28); }
.user-note-actions button:hover { background:#e2eee6; }

/* Subtle multi-edge resize handles for the dynamic discussions window */
.win-resize { position:absolute; z-index:6; }
.win-resize-w { left:0; top:38px; bottom:14px; width:7px; cursor:ew-resize; }
.win-resize-s { left:14px; right:14px; bottom:0; height:7px; cursor:ns-resize; }
.win-resize-sw { left:0; bottom:0; width:14px; height:14px; cursor:nesw-resize; }
.win-resize-se { right:0; bottom:0; width:14px; height:14px; cursor:nwse-resize; }
.win-resize-se::after {
 content:'';
 position:absolute;
 right:4px;
 bottom:4px;
 width:7px;
 height:7px;
 border-right:1.6px solid rgba(74,114,102,.48);
 border-bottom:1.6px solid rgba(74,114,102,.48);
 border-radius:0 0 2px 0;
}

/* Graphic Case Evidence Timeline, Participation Roles & Guardrails inside dialog */
dialog.large { width:min(980px,calc(100vw - 28px)); }
.ev-wrap { display:flex; flex-direction:column; gap:14px; }
.ev-hero p { margin:0; font-size:13.5px; line-height:1.48; color:var(--dim); }
.ev-hero strong { color:#174236; }
.ev-section-label { font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--muted); margin:2px 0 -4px; }

.ev-timeline { display:flex; flex-direction:column; gap:10px; }
.ev-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:stretch; }
.ev-step {
 --ev-tone:#3d6d89;
 --ev-soft:rgba(61,109,137,.13);
 --ev-ring:rgba(61,109,137,.36);
 display:flex;
 flex-direction:column;
 gap:9px;
 min-width:0;
}
.ev-step[data-tone='amber'] { --ev-tone:#9c6824; --ev-soft:rgba(156,104,36,.13); --ev-ring:rgba(156,104,36,.36); }
.ev-step[data-tone='red'] { --ev-tone:#a84839; --ev-soft:rgba(168,72,57,.13); --ev-ring:rgba(168,72,57,.38); }
.ev-step[data-tone='blue'] { --ev-tone:#336785; --ev-soft:rgba(51,103,133,.13); --ev-ring:rgba(51,103,133,.36); }
.ev-step[data-tone='slate'] { --ev-tone:#465d73; --ev-soft:rgba(70,93,115,.13); --ev-ring:rgba(70,93,115,.36); }
.ev-step[data-tone='mint'] { --ev-tone:#246b59; --ev-soft:rgba(36,107,89,.16); --ev-ring:rgba(36,107,89,.46); }

.ev-step-head { display:flex; align-items:center; gap:8px; position:relative; }
.ev-bubble {
 position:relative;
 flex:0 0 40px;
 width:40px;
 height:40px;
 border-radius:50%;
 display:grid;
 place-items:center;
 background:linear-gradient(155deg,rgba(255,255,255,.94),var(--ev-soft));
 border:2px solid var(--ev-tone);
 color:var(--ev-tone);
 box-shadow:0 4px 12px rgba(18,43,37,.1),0 0 0 3px var(--ev-soft);
}
.ev-bubble .ico { width:17px; height:17px; stroke-width:1.9; }
.ev-bubble em {
 position:absolute;
 right:-5px;
 top:-4px;
 min-width:17px;
 height:17px;
 padding:0 3px;
 border-radius:999px;
 background:var(--ev-tone);
 color:#fff;
 font-style:normal;
 font-size:9px;
 font-weight:700;
 display:grid;
 place-items:center;
 border:1.5px solid #f7fbf9;
 font-variant-numeric:tabular-nums;
}
.ev-step.is-tool .ev-bubble {
 background:linear-gradient(150deg,#2e7d69,#1f594a);
 color:#fff;
 border-color:#1c5244;
 box-shadow:0 6px 16px rgba(31,89,74,.28),0 0 0 4px rgba(46,125,105,.22);
}
.ev-step.is-tool .ev-bubble em { background:#f5fbf8; color:#1b4e40; border-color:#246b59; }
.ev-date {
 font-size:10.5px;
 font-weight:700;
 letter-spacing:.35px;
 text-transform:uppercase;
 color:var(--ev-tone);
 background:var(--ev-soft);
 border:1px solid var(--ev-ring);
 padding:3px 8px;
 border-radius:999px;
 white-space:nowrap;
}
.ev-step.is-tool .ev-date { background:#246b59; color:#fff; border-color:#246b59; }
.ev-rail {
 flex:1 1 auto;
 height:2px;
 background:linear-gradient(90deg,var(--ev-ring),rgba(116,152,140,.22));
 position:relative;
 margin-right:-6px;
}
.ev-rail::after {
 content:'';
 position:absolute;
 right:-2px;
 top:50%;
 width:6px;
 height:6px;
 border-top:2px solid var(--ev-tone);
 border-right:2px solid var(--ev-tone);
 transform:translateY(-50%) rotate(45deg);
 opacity:.72;
}
.ev-step:last-child .ev-rail { display:none; }

.ev-card {
 position:relative;
 flex:1 1 auto;
 display:flex;
 flex-direction:column;
 padding:11px 12px 10px;
 border-radius:12px;
 background:rgba(255,255,255,.64);
 border:1px solid rgba(114,152,140,.26);
 box-shadow:0 4px 14px rgba(18,43,37,.05),inset 0 1px 0 rgba(255,255,255,.88);
}
.ev-card::before {
 content:'';
 position:absolute;
 left:15px;
 top:-6px;
 width:10px;
 height:10px;
 background:rgba(255,255,255,.82);
 border-left:1px solid rgba(114,152,140,.26);
 border-top:1px solid rgba(114,152,140,.26);
 transform:rotate(45deg);
}
.ev-step.is-tool .ev-card {
 background:linear-gradient(155deg,rgba(218,240,230,.86),rgba(238,249,244,.78));
 border-color:rgba(46,118,100,.48);
 box-shadow:0 8px 22px rgba(27,78,64,.12),inset 0 1px 0 rgba(255,255,255,.92);
}
.ev-step.is-tool .ev-card::before {
 background:rgba(224,243,234,.95);
 border-color:rgba(46,118,100,.48);
}
.ev-card h3 { margin:0 0 6px; font-size:13.5px; line-height:1.25; color:#173732; letter-spacing:-.2px; }
.ev-tags { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:7px; }
.ev-tags span {
 font-size:10px;
 font-weight:600;
 padding:2px 7px;
 border-radius:6px;
 background:var(--ev-soft);
 color:var(--ev-tone);
 white-space:nowrap;
}
.ev-card p { margin:0 0 9px; font-size:12px; line-height:1.46; color:var(--dim); flex:1 1 auto; }
.ev-foot { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding-top:7px; border-top:1px solid rgba(98,136,125,.16); }
.ev-cite {
 font-size:10.5px;
 font-weight:600;
 color:var(--ev-tone);
 text-decoration:none;
 padding:2px 7px;
 border-radius:999px;
 background:rgba(255,255,255,.68);
 border:1px solid var(--ev-ring);
}
.ev-cite:hover { background:var(--ev-tone); color:#fff; }
.ev-jump {
 min-height:24px;
 padding:3px 9px;
 border-radius:7px;
 border:1px solid #246b59;
 background:#246b59;
 color:#fff;
 font-size:10.5px;
 font-weight:600;
}
.ev-jump:hover { background:#1b5244; }

.ev-bridge {
 display:flex;
 align-items:center;
 gap:10px;
 font-size:10px;
 font-weight:700;
 letter-spacing:.5px;
 text-transform:uppercase;
 color:var(--muted);
}
.ev-bridge::before,.ev-bridge::after {
 content:'';
 flex:1;
 height:1px;
 border-top:1.5px dashed rgba(98,136,125,.35);
}
.ev-bridge span {
 padding:2px 10px;
 border-radius:999px;
 background:rgba(255,255,255,.55);
 border:1px solid rgba(98,136,125,.24);
}

.ev-roles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.ev-role {
 display:flex;
 align-items:flex-start;
 gap:9px;
 padding:9px 11px;
 border-radius:10px;
 background:rgba(255,255,255,.54);
 border:1px solid rgba(110,148,136,.24);
}
.ev-role-ico {
 flex:0 0 28px;
 width:28px;
 height:28px;
 border-radius:8px;
 display:grid;
 place-items:center;
 background:rgba(46,118,100,.13);
 color:#246b59;
}
.ev-role-ico .ico { width:15px; height:15px; }
.ev-role strong { display:block; font-size:11.5px; color:#173d33; margin-bottom:2px; }
.ev-role p { margin:0; font-size:11px; line-height:1.38; color:var(--dim); }

.ev-guardrails { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ev-guard {
 padding:10px 12px;
 border-radius:11px;
 border:1px solid rgba(114,154,140,.26);
 background:rgba(232,243,238,.58);
}
.ev-guard.is-cant { background:rgba(248,236,232,.66); border-color:rgba(182,110,96,.3); }
.ev-guard h4 {
 display:flex;
 align-items:center;
 gap:6px;
 margin:0 0 6px;
 font-size:11.5px;
 font-weight:700;
 color:#1a4c3e;
}
.ev-guard.is-cant h4 { color:#8f3c2d; }
.ev-guard h4 .ico { width:14px; height:14px; flex:0 0 14px; }
.ev-guard ul { margin:0; padding-left:16px; font-size:11.5px; line-height:1.42; color:var(--dim); }
.ev-guard li { margin-bottom:4px; }
.ev-guard li:last-child { margin-bottom:0; }

@media(max-width:980px) {
 .sent-dock-body { grid-template-columns:1fr; gap:7px; }
 .dock-viewpoints { padding-right:0; border-right:0; padding-bottom:6px; border-bottom:1px solid rgba(98,136,125,.18); }
 .dock-sources { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:740px) {
 .ev-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ev-row,.ev-roles,.ev-guardrails { grid-template-columns:1fr; }
 .ev-rail,.ev-bridge { display:none; }
}
/* Topbar full-screen & demo play controls + active demo indicator */
.topbar .top-actions {
 display:inline-flex;
 align-items:center;
 gap:5px;
 margin:0;
 padding-left:8px;
 border-left:1px solid rgba(98,136,125,.24);
}
.topbar .top-actions .icon-btn {
 width:30px;
 height:30px;
 min-height:30px;
 padding:0;
 border-radius:8px;
 border:1px solid rgba(98,136,125,.26);
 background:rgba(255,255,255,.54);
 color:var(--ink);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
 transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .12s ease;
}
.topbar .top-actions .icon-btn .ico { width:14px; height:14px; }
.topbar .top-actions .icon-btn:hover {
 background:rgba(255,255,255,.88);
 border-color:rgba(74,124,108,.45);
 color:#163d32;
}
.topbar .top-actions .icon-btn:active { transform:scale(.95); }
.topbar .top-actions #full[aria-pressed='true'] {
 background:rgba(213,236,225,.86);
 border-color:rgba(74,134,112,.55);
 color:#174638;
}
.topbar .top-actions #demo[aria-pressed='true'] {
 background:#2e7664;
 border-color:#256253;
 color:#fff;
 box-shadow:0 2px 10px rgba(36,107,89,.3),0 0 0 3px rgba(46,118,100,.18);
}
.topbar .top-actions #demo[aria-pressed='true']:hover {
 background:#246252;
 border-color:#1e5245;
 color:#fff;
}
@media(min-width:701px) {
 .topbar #full { display:inline-flex; }
}
@keyframes demoRingPulse {
 0%,100% { stroke-opacity:.42; stroke-width:1.8; }
 50% { stroke-opacity:.9; stroke-width:3.2; }
}
.sent-layout[data-demo='active'] .sent-connector.is-visible .conn-ring {
 animation:demoRingPulse 2.4s ease-in-out infinite;
}
@media(prefers-reduced-motion:reduce) {
 .sent-layout[data-demo='active'] .sent-connector.is-visible .conn-ring { animation:none; }
}

@media(max-width:700px) {
 /* Clean single-row mobile topbar freeing vertical canvas space */
 .topbar {
  display:flex !important;
  flex-direction:row;
  flex-wrap:nowrap;
  top:8px;
  left:10px;
  right:10px;
  width:auto;
  max-width:none;
  transform:none;
  height:44px;
  min-height:44px;
  padding:5px 7px;
  gap:5px;
  align-items:center;
  justify-content:space-between;
 }
 .topbar .brand { font-size:16px; letter-spacing:-.6px; flex:0 0 auto; }
 .topbar .partners,.topbar #full { display:none !important; }
 .topbar .top-actions { display:inline-flex; padding-left:0; border-left:0; margin-left:0; flex:0 0 auto; }
 .topbar .top-actions #demo { width:28px; height:28px; min-height:28px; border-radius:7px; }
 .topbar .top-actions #demo .ico { width:13px; height:13px; }
 .topbar .views {
  grid-column:auto;
  grid-row:auto;
  order:0;
  display:inline-flex;
  width:auto;
  flex:0 1 auto;
  height:32px;
  margin:0;
  margin-left:auto;
 }
 .topbar .views button { flex:0 0 auto; padding:4px 6px; font-size:10.5px; gap:3px; }
 .topbar .views button .ico { width:11px; height:11px; }

 /* Mobile Scenario Editor: compact collapsible controls + swipeable single-row Live Analysis + bottom drawer */
 .editor-tools {
  top:58px;
  left:10px;
  width:auto;
  min-width:154px;
  max-width:calc(100vw - 20px);
  z-index:845;
  background:var(--glass-strong);
 }
 .editor-tools:has(#editor-toggle[aria-expanded='true']) { width:min(254px,calc(100vw - 20px)); }
 #editor-toggle { display:flex; padding:7px 10px; min-height:34px; font-size:12px; gap:8px; }
 #editor-content { padding:0 9px 9px; max-height:calc(100dvh - 260px); }

 .analysis {
  left:10px;
  right:10px;
  width:auto;
  transform:none;
  bottom:54px;
  height:auto;
  min-height:0;
  padding:6px 9px 7px;
  grid-template-rows:auto auto;
  z-index:820;
 }
 .analysis .analysis-head { height:24px; gap:5px; }
 .analysis .analysis-head>div:first-child { font-size:10.5px; white-space:nowrap; }
 .analysis .domain-tabs { margin-left:2px; }
 .analysis .domain-tabs button { width:24px; height:20px; min-height:20px; }
 .analysis .siting-cell { width:auto; margin-left:auto; }
 .analysis #siting-check { width:auto; max-width:98px; padding:2px 7px; height:22px; min-height:22px; font-size:9.5px; }
 .analysis #methods { display:flex; width:20px; height:20px; min-height:20px; }
 .analysis .metrics {
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:stretch;
  overflow-x:auto;
  gap:0;
  padding-top:5px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
 }
 .analysis .metrics::-webkit-scrollbar { display:none; }
 .analysis .analysis-metric,
 .analysis .analysis-metric:nth-child(1),
 .analysis .analysis-metric:nth-child(2) {
  flex:0 0 128px;
  grid-column:auto;
  padding:0 9px;
  border-left:1px solid rgba(98,136,125,.2);
 }
 .analysis .analysis-metric:first-child { border-left:0; padding-left:0; }
 .analysis .metric-name { min-height:14px; font-size:9.5px; white-space:nowrap; }
 .analysis .metric-line { display:flex; align-items:baseline; gap:4px; height:auto; margin:2px 0; }
 .analysis .metric-line strong { font-size:18px; }
 .analysis .metric-line .change { font-size:9px; white-space:nowrap; }
 .analysis .metric-caption { display:block; font-size:8.5px; max-height:14px; }
 .analysis .receiver { display:block; }
 .analysis .receiver select { font-size:9px; height:15px; line-height:15px; }

 .design-tray {
  top:auto;
  left:10px;
  right:10px;
  bottom:8px;
  width:auto;
  max-height:62dvh;
  z-index:860;
 }
 .design-tray .panel-toggle { min-height:38px; padding:8px 12px; }
 .design-tray #design-content { max-height:calc(62dvh - 42px); overflow:auto; }
 #modebar { top:58px; bottom:auto; left:10px; right:10px; max-width:none; z-index:870; }
 .option-popover { width:auto; }

 /* Mobile Sentiment Map: ~75% open interactive map, compact bottom dock + collapsible bottom sheet */
 .sent-left-tools { top:58px; left:10px; width:46px; padding:4px; gap:4px; z-index:820; }
 .sent-left-group button { height:28px; min-height:28px; font-size:15px; }
 .sent-base-wrap select { font-size:9px; padding:3px 1px; }
 .sent-note-prompt { top:58px; left:64px; right:10px; padding:6px 9px; font-size:11px; }

 .sent-dock {
  left:10px;
  right:10px;
  bottom:54px;
  width:auto;
  transform:none;
  padding:6px 8px;
  gap:5px;
  z-index:835;
 }
 .sent-dock-head { gap:5px; }
 .dock-mobile-toggle {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:auto;
  min-height:24px;
  padding:2px 8px;
  border-radius:7px;
  border:1px solid rgba(98,136,125,.28);
  background:rgba(255,255,255,.58);
  color:var(--ink);
  font-size:10.5px;
  font-weight:600;
 }
 .dock-mobile-toggle .ico { width:12px; height:12px; transition:transform .16s; }
 .dock-mobile-toggle[aria-expanded='true'] .ico { transform:rotate(180deg); }
 .dock-mobile-toggle[aria-expanded='true'] { background:#2e7664; border-color:#2e7664; color:#fff; }
 .sent-dock.is-mobile-compact .dock-extra { display:none; }
 .sent-dock.is-mobile-compact .sent-dock-body { padding-top:4px; }
 .sent-dock.is-mobile-compact .dock-viewpoints { padding-bottom:0; border-bottom:0; gap:3px; }
 .sent-dock.is-mobile-compact #discussion-map-key { display:none; }
 .sent-dock:not(.is-mobile-compact) { z-index:860; max-height:56dvh; overflow:auto; }
 .sent-dock .stance-key { font-size:10px; padding:2px 5px; }
 .dock-selects { width:100%; }
 .dock-selects select { flex:1; max-width:none; font-size:10.5px; }
 .dock-sample { display:none; }

 .sent-feed.sent-window {
  top:auto;
  bottom:8px;
  left:10px;
  right:10px;
  width:auto;
  height:52dvh;
  max-height:52dvh;
  z-index:865;
 }
 .sent-feed.sent-window.is-collapsed { height:auto !important; }
 .sent-feed.sent-window .sent-win-bar { cursor:default; padding:6px 8px; }
 .sent-feed.sent-window .win-btn[aria-expanded='false'] .ico { transform:rotate(180deg); }
 .sent-feed.sent-window .win-btn[aria-expanded='true'] .ico { transform:none; }
 .win-grip,.win-resize { display:none; }
 .add-note-inline span { display:none; }
 .add-note-inline { padding:3px 7px; }
 #toast { bottom:165px; left:10px; right:10px; transform:none; max-width:none; text-align:center; }
}
