/* A single chamber workspace. Results own their search and reading space. */
:root{color-scheme:light;--ink:#202124;--muted:#737780;--line:#e1e3e8;--blue:#315e9b;--page:#f7f8fa;--ease:cubic-bezier(.22,1,.36,1)}
.reading-discussion{display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:550;color:var(--blue)}
*{box-sizing:border-box}
html,body{height:100%;margin:0;overflow:hidden;overscroll-behavior:none;background:var(--page)}
body{color:var(--ink);font-family:var(--velho-font),sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
a{color:inherit;text-decoration:none}
button:disabled{opacity:.45;cursor:wait}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #315e9b;outline-offset:3px}
button svg,a svg,.search-box svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#canvas{height:var(--app-height,100dvh);position:relative;overflow:hidden}
.explorer-viewport{position:relative;display:grid;grid-template-rows:48px minmax(0,1fr) auto 22px;gap:10px;height:100%;padding:0 24px max(8px,env(safe-area-inset-bottom))}
.wordmark{grid-area:1/1;align-self:center;justify-self:start;z-index:2;font-size:16px;letter-spacing:-.04em;font-weight:600}
.hero{grid-area:1/1;align-self:center;justify-self:end;pointer-events:none}
.hero h1{margin:0;font-size:14px;font-weight:400;letter-spacing:-.02em;color:#626872;line-height:1.3}
.local-badge{position:absolute;top:18px;left:128px;font-size:10px;color:#8a8e97}
.chamber{grid-row:2;position:relative;min-height:0;height:100%;width:min(1320px,100%);margin:0 auto}
.map-stage{position:absolute;top:0;left:0;width:100%;aspect-ratio:1460/732;max-height:100%;overflow:hidden;touch-action:none}
#map{display:block;width:100%;height:100%;overflow:hidden;touch-action:none;user-select:none;outline:none}
.map-stage.is-moving #map{overflow:visible;will-change:transform}
#seats,#party-aggregates,#district-regions,#district-labels{transition:opacity .2s var(--ease),visibility .2s}
#district-regions,#district-labels,.by-district #party-aggregates{opacity:0;visibility:hidden}
#party-aggregates,.by-district #district-regions,.by-district #district-labels{opacity:1;visibility:visible}
.by-district #party-aggregates{opacity:0;visibility:hidden}
.icon-button.workspace-settings{display:none;grid-area:1/1;align-self:center;justify-self:end;z-index:7;color:#7d8998}
.workspace-results .workspace-settings{display:inline-flex}
.workspace-results .hero{margin-right:42px}
.map-heading{position:absolute;left:4px;top:4px;right:4px;z-index:4;pointer-events:none}
.map-heading h2{display:none}
.party-back{display:flex;align-items:center;gap:4px;min-height:36px;padding:4px 10px;border-radius:8px;background:var(--page);font-size:12px;pointer-events:auto}
.scope-tools,.focus-person,.map-party-hint,.map-parties,.party-chart,.mobile-tools,.info-button,.explorer-footer{display:none!important}
.seat{cursor:pointer;outline:none;transition:transform .3s var(--ease)}
.seat:focus,.seat:focus-visible{outline:none}
.seat-body{transform-box:fill-box;transform-origin:center;transition:opacity .2s,transform .2s}
.seat-dot{stroke:transparent;stroke-width:1.5;transition:r .22s var(--ease),fill-opacity .18s,stroke .15s}
.seat.is-inverted .seat-dot{stroke:var(--party);stroke-width:1.4}
.seat.is-dimmed .seat-body{opacity:.12}
.seat.is-hovered .seat-dot,.seat.is-selected .seat-dot,.seat.is-linked .seat-dot,.seat:focus-visible .seat-dot{stroke:var(--ink);stroke-width:2.3}
.seat.is-inverted.is-hovered .seat-dot,.seat.is-inverted.is-selected .seat-dot{fill:color-mix(in srgb,var(--party) 30%,white)}
.seat-label{font-family:inherit;font-size:7.6px;font-weight:600;text-anchor:middle;dominant-baseline:central;pointer-events:none;transition:opacity .15s var(--ease)}
.has-outside-label .seat-label{stroke:var(--page);paint-order:stroke fill;stroke-linejoin:round}
.seat-hit{fill:transparent;pointer-events:none}
.seat-dot{pointer-events:all}
.seat:focus .seat-dot{stroke:#315e9b;stroke-width:2.3}
.is-entering .seat-body{animation:seat-in .5s var(--ease) both;animation-delay:var(--delay)}
.party-bubble{cursor:pointer;outline:none}
.party-bubble-dot{stroke:transparent;transition:r .3s var(--ease)}
.party-bubble.is-inverted .party-bubble-dot{stroke:var(--party);stroke-width:2}
.party-bubble.is-selected .party-bubble-dot,.party-bubble:focus-visible .party-bubble-dot{stroke:var(--ink);stroke-width:3}
.party-bubble text{text-anchor:middle;font-family:inherit;pointer-events:none}
.party-bubble-name{font-weight:600}
.district-region{fill:#e9edf3;fill-opacity:.22;stroke:#bdc8d5;stroke-width:1.3;stroke-linejoin:miter;pointer-events:none;transition:fill .18s,fill-opacity .18s,stroke .18s,stroke-width .18s}
.district-region.is-active{fill:#d2deed;fill-opacity:.6;stroke:#718cab;stroke-width:2.3}
.group-stat{cursor:pointer;outline:none}
.group-stat text{font-family:var(--velho-font);text-anchor:middle;pointer-events:none}
.group-stat-code{font-size:14px;font-weight:600;fill:var(--party,#5a6c80)}
.group-stat-value{font-size:12px;font-weight:450;fill:#677688;font-variant-numeric:tabular-nums}
.group-stat.is-active text,.group-stat:hover text,.group-stat:focus-visible text{fill:var(--ink)}
.group-stat.is-active rect,.group-stat:hover rect,.group-stat:focus-visible rect{fill:#e6ecf4}
.group-stat.is-unavailable{opacity:.35;pointer-events:none}
.is-zoomed .group-stat{opacity:0;pointer-events:none;visibility:hidden}
.answer-map .seat .seat-dot,.answer-map .seat.is-inverted .seat-dot{fill:var(--answer-color);stroke:transparent}
.answer-map .seat.answer-missing .seat-dot{fill:transparent;fill-opacity:1;stroke:#9aa8b7;stroke-width:1.7;stroke-dasharray:2 1.7}
.answer-map .seat:is(.is-hovered,.is-selected,.is-linked,:focus-visible) .seat-dot{stroke:var(--ink);stroke-width:2.3}
.answer-map .seat:focus .seat-dot{stroke:#315e9b;stroke-width:2.3}

/* The identity remains quiet; the current measure is the only lead figure. */
.center-stack{position:absolute;left:50%;transform:translateX(-50%);bottom:4px;width:min(600px,50%);min-height:0;display:flex;flex-direction:column;gap:14px;z-index:5;pointer-events:none}
.center-stack>*{pointer-events:auto}
.center-card{position:relative;flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto 28px;column-gap:8px;row-gap:10px;align-items:start;container-type:inline-size;width:min(100%,340px);margin:0 auto;min-height:72px;padding:0;transition:background .22s,border-color .22s,box-shadow .22s}
.center-card-head{grid-area:1/3;position:static}
#detail-summary{grid-area:1/1;min-width:0}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:8px;padding:0}
.icon-button:hover{background:#e9edf2}
.center-card-head .icon-button{width:28px;height:28px;color:#8a9098}
.profile-identity{display:flex;align-items:center;gap:10px;min-width:0;animation:identity-in .14s ease-out}
.portrait-frame{display:block;position:relative;overflow:hidden;flex-shrink:0;border-radius:8px;background:color-mix(in srgb,var(--party) 7%,#eceff3)}
.portrait-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 24%}
.profile-portrait,.profile-party-tile{width:42px;height:48px}
.portrait-initials{height:100%;display:grid;place-items:center;font-size:15px;color:color-mix(in srgb,var(--party) 65%,#202124)}
.profile-party-tile{display:grid;place-items:center;flex-shrink:0;border-radius:8px;background:color-mix(in srgb,var(--party) 10%,white);font-size:13px;color:var(--party)}
.profile-name{min-width:0}
.profile-name h2{font-size:16px;font-weight:550;line-height:1.25;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}
.profile-name p{font-size:11px;color:var(--muted);line-height:1.4;margin:4px 0 0}
.party-badge{display:inline-flex;align-items:center;vertical-align:middle;white-space:nowrap;border-radius:3px;padding:2px 4px;background:color-mix(in srgb,var(--party) 9%,white);color:color-mix(in srgb,var(--party) 65%,#202124);font-size:9px;font-weight:550}
.party-dot{display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%;background:var(--party)}
#detail-metrics{grid-column:1/-1;grid-row:2;min-width:0;margin:0}
.snapshot-stats{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:start;gap:12px;margin:0}
.snapshot-stats>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.snapshot-stats dt{font-size:10px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.snapshot-stats dd{order:-1;margin:0}
.snapshot-stats strong{font-size:clamp(14px,5cqw,17px);line-height:1.2;letter-spacing:-.025em;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}
.snapshot-stats small{display:none}
.overview-stats{grid-template-columns:1.2fr 1fr .8fr;grid-auto-flow:row;grid-auto-columns:auto;gap:12px}
#person-actions{grid-area:1/2;position:static}
.snapshot-actions{display:flex;align-items:center}
.snapshot-profile,.snapshot-actions button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:30px;font-size:11px;color:#566a83}
.snapshot-profile svg,.snapshot-actions button svg{width:14px;height:14px}
.is-person .snapshot-profile::after{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit}
.is-person .center-card-head{position:relative;z-index:2}
.is-person:has(.snapshot-profile:hover){background:#fff;box-shadow:0 5px 24px #28395712}
.is-person:has(.snapshot-profile:focus-visible){outline:2px solid var(--blue);outline-offset:3px}
.snapshot-meta{font-size:10px;line-height:1.4;color:var(--muted)}
.workspace-results .center-card{display:block;width:min(100%,340px);min-height:62px;padding-right:34px}
.workspace-results .center-card-head{position:absolute;right:0;top:0}
.workspace-results .profile-name{padding-right:72px}
.workspace-results .profile-name h2{font-size:15px}
.workspace-results #detail-metrics{position:absolute;top:2px;right:35px;width:70px;margin:0;text-align:right}
.workspace-results .snapshot-stats{display:block}
.workspace-results .snapshot-stats>div:not(:first-child){display:none}
.workspace-results .snapshot-stats>div{align-items:flex-end}
.workspace-results .snapshot-stats strong{font-size:20px}
.workspace-results[data-category=funding] .snapshot-stats strong{font-size:17px}
.workspace-results[data-category=funding] .center-card{min-height:70px}
.workspace-results[data-category=funding] #detail-metrics{width:96px}
.workspace-results[data-category=funding] .profile-name{padding-right:100px}
.workspace-results .snapshot-stats dt{font-size:10px;max-width:70px}
.workspace-results #person-actions{position:absolute;right:0;top:30px}
.workspace-results .snapshot-profile{width:28px;min-height:28px}
.workspace-results .snapshot-profile span{display:none}
/* Selecting a seat keeps a compact identity card on the map at every size. */
#canvas .center-card.is-person{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px 8px;width:min(100%,340px);min-height:0;padding:14px;border:1px solid #dce2ea;border-radius:3px;background:#fff;box-shadow:0 4px 18px #2839570d;backdrop-filter:none}
#canvas .is-person .center-card-head{grid-area:1/2;position:relative;right:auto;top:auto}
#canvas .is-person .center-card-head .icon-button{width:44px;height:44px;margin:-7px -7px 0 0;color:#687587}
#canvas .is-person #detail-summary{grid-area:1/1}
#canvas .is-person .profile-identity{gap:10px}
#canvas .is-person .profile-portrait{width:42px;height:50px;border-radius:3px}
#canvas .is-person .profile-name{padding:0}
#canvas .is-person .profile-name h2{font-size:17px;font-weight:600;line-height:1.2;letter-spacing:-.025em}
#canvas .is-person .profile-name p{display:flex;flex-wrap:wrap;align-items:center;gap:3px 6px;font-size:10px;margin-top:5px}
#canvas .is-person #detail-metrics{position:static;grid-area:2/1/3/-1;width:auto;margin:0;text-align:left;align-self:center}
#canvas .is-person .snapshot-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;gap:8px 12px}
#canvas .is-person .snapshot-stats>div{align-items:flex-start}
#canvas .is-person .snapshot-stats>div:not(:first-child){display:none}
#canvas .is-person .overview-stats{grid-template-columns:1.2fr 1fr .8fr;gap:8px}
#canvas .is-person .overview-stats>div:not(:first-child){display:flex}
#canvas .is-person .snapshot-stats strong{font-size:clamp(16px,5.8cqw,20px);font-weight:550;letter-spacing:-.03em}
#canvas .is-person .snapshot-stats dt{font-size:10px;max-width:none}
#canvas .is-person #person-actions{position:static;grid-area:3/1/4/-1;align-self:end;padding:0;border-top:1px solid #edf0f3}
#canvas .is-person .snapshot-actions{display:block}
#canvas .is-person .snapshot-profile{display:flex;justify-content:flex-end;width:100%;min-height:30px;padding-top:5px;color:var(--blue);font-size:12px;font-weight:500}
#canvas .is-person .snapshot-profile span{display:inline}
.answer-context{width:min(100%,340px);margin:0 auto;flex:none}
.answer-question{display:block;width:100%;text-align:left;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:-.015em;margin:0 0 12px;padding:0 16px 0 0;position:relative;overflow-wrap:anywhere}
.answer-question::after{content:'›';position:absolute;right:0;top:0;color:#8b97a7}
.workspace-results .answer-question{display:none}
.answer-legend-labels{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;align-items:end;min-height:26px;font-size:9px;line-height:1.3;color:#68727e;text-align:center}
.answer-legend{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin-top:1px}
.answer-scale-label{display:none}
.answer-legend button{min-width:0;min-height:38px;display:grid;place-items:center;border-radius:7px}
.answer-legend button:hover{background:#e9eef4}
.answer-legend button[aria-pressed=true]{background:#e3eaf3;box-shadow:inset 0 0 0 1px #a6b6cb}
.answer-example{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--answer-color);font-style:normal;font-size:10px;color:#fff;line-height:1}
.answer-example.is-light{color:#29371e}
.answer-example.is-missing{background:transparent;border:1px dashed #8a9aaa;color:#68727e}
.answer-status{font-size:10px;line-height:1.4;color:#7b8795;text-align:center;margin:3px 0 0}
.workspace-results.answer-map .center-card{min-height:72px}
.question-distribution{display:flex;gap:1px;height:4px;border-radius:2px;overflow:hidden;margin:10px 0 7px}
.question-distribution i{height:100%;flex-shrink:0}
.question-counts{display:flex;gap:12px;font-size:11px;line-height:1.4;color:#75818e;font-variant-numeric:tabular-nums}
.question-counts small{margin-left:auto;font-size:10px;white-space:nowrap}
.question-pick{display:flex;align-items:center;justify-content:center;width:22px;flex-shrink:0;color:#a0aab7}
.question-pick svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}

/* Search, result count and rows form one reading surface. */
.workspace-results .explorer-viewport{grid-template-rows:48px minmax(0,1fr) 0 22px;gap:0;padding-top:0}
.workspace-results .controls{display:none}
.activity-section{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;overflow:hidden;border:1px solid #e1e5eb;border-radius:12px;background:#fff;box-shadow:0 8px 32px #28395705}
.activity-heading{display:none}
.results-toolbar{display:flex;align-items:center;gap:8px;flex:none;min-height:48px;padding:5px 10px;border-bottom:1px solid #e8ebef}
.results-back{display:flex;align-items:center;justify-content:center;min-height:44px;flex-shrink:0;border-radius:3px;color:var(--blue);padding:0 7px;font-size:12px;font-weight:500;white-space:nowrap}
.results-back:hover{background:#f0f3f7}
.result-category{font-size:12px;font-weight:500;white-space:nowrap;color:#657180;max-width:100px;overflow:hidden;text-overflow:ellipsis}
.results-toolbar .speech-search{flex:1;min-width:0}
.results-toolbar .context-input{border:0;background:none;border-radius:0;padding:0 0 0 4px;gap:5px}
.results-toolbar .context-input>svg{display:none}
.results-toolbar .context-input input{height:36px;font-size:15px}
.results-toolbar .context-input button[type=submit]{background:#eef1f5;color:#495a70}
.results-toolbar #clear-query{width:28px;height:30px;color:#9198a2}
.results-toolbar #clear-query svg{width:14px;height:14px}
.context-status{font-size:12px;color:var(--muted);margin:6px 0;line-height:1.5}
.context-status:empty{display:none}
.results-toolbar .context-status{padding-left:4px;font-size:11px}
.result-options{display:flex;gap:8px;flex:none;padding:7px 12px;border-bottom:1px solid #e8ebef;overflow:hidden}
.result-options select{width:0;min-width:0;flex:1;font-size:12px;min-height:34px;background-color:#f4f6f9}
.detail-panel{display:flex;flex-direction:column;min-height:0;flex:1;outline:none}
.detail-head{display:none;flex:none;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:4px 12px;border-bottom:1px solid var(--line)}
.detail-panel.is-reading .detail-head{display:flex}
.detail-back{display:flex;align-items:center;gap:6px;width:auto;min-height:38px;font-size:12px;color:#596d88}
.detail-head p{margin:0;font-size:11px;color:var(--muted)}
.detail-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d2d8e0 transparent;min-height:0;flex:1;padding:0 14px;scroll-padding-top:8px}
.speech-list-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;border-bottom:1px solid #edf0f3;background:#fff}
.speech-list-tools p{font-size:12px;color:#737e8c;margin:0}
.speech-list-tools select{font-size:12px;background-color:transparent;padding:6px 20px 6px 4px;min-height:36px;max-width:48%;background-position:right 1px center}
.result-filters{min-height:36px;padding:4px 2px 4px 10px;font-size:12px;color:#526e90}
.result-note{font-size:11px;line-height:1.4;color:#707c8a;margin:6px 0 0}
.result-note:empty{display:none}
.speech-list-tools .result-note{margin:0 0 0 auto;font-size:10px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.speech-item{position:relative;display:flex;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #e8edf2;cursor:default;outline-offset:-2px;scroll-margin:8px}
.speech-item:last-child{border-bottom:0}
.speech-item::before{content:'';position:absolute;inset:8px auto 8px -10px;width:2px;border-radius:1px;background:transparent}
.speech-item.is-active::before{background:var(--party,#55718e)}
.speech-item.is-active{background:linear-gradient(90deg,#f7f9fc,#fff)}
.result-copy{flex:1;min-width:0}
.speech-item h3{font-size:14px;line-height:1.4;letter-spacing:-.015em;font-weight:500;margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.question-item h3{-webkit-line-clamp:2}
.organization-item{min-height:64px}
.organization-item h3{white-space:nowrap;display:block;text-overflow:ellipsis}
.result-excerpt{font-size:13px;line-height:1.5;color:#68727e;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
mark{background:#f8ecc3;color:#4f462d;border-radius:2px;padding:0 1px}
.speech-item-meta{display:flex;align-items:center;gap:6px 12px;min-width:0;font-size:11px;line-height:1.4;color:#697786}
.result-speaker{display:flex;align-items:center;gap:5px;min-width:0;flex:1;color:#566170;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.speech-item-meta b{font-weight:500;font-size:10px;color:color-mix(in srgb,var(--party) 65%,#202124)}
.speech-item-meta time{margin-left:auto;white-space:nowrap;font-size:11px;font-variant-numeric:tabular-nums}
.speech-item[data-organization] .speech-item-meta>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-open{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:44px;min-height:44px;padding:0 5px;border-radius:3px;color:var(--blue);font-size:11px;font-weight:500}
.row-open:hover,.row-open:focus-visible{color:#315e9b;background:#eef3fa}
.row-open svg{width:16px;height:16px}
.item-total{flex:none;margin:0 0 0 auto;font-size:14px;font-weight:500;letter-spacing:-.025em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink)}
.answer-stance{display:block;font-size:11px;line-height:1.4;margin-top:4px;color:#697786}
.speech-more,.browse-all,.detail-speech-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;margin:8px 0 12px;background:#f2f5f8;border-radius:7px;font-size:12px;color:#566b86}
.detail-message{padding:14px 2px;font-size:13px;line-height:1.7;color:var(--muted)}
#detail-reading{min-width:0;overflow-wrap:anywhere;padding:4px 2px 18px}
#detail-reading h3{font-size:21px;line-height:1.35;font-weight:500;letter-spacing:-.03em;margin:12px 0}
.reading-meta{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 20px}
.speech-transcript p{font-size:15px;line-height:1.85;color:#4e5865;margin:0 0 20px}
.speech-transcript a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.detail-backdrop{display:none}

/* The initial controls are one compact dock; settings stay secondary. */
.controls{grid-row:3;width:min(600px,100%);margin:0 auto;z-index:8}
.dock{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:3px;padding:7px 9px;border:1px solid #e2e6ec;border-radius:12px;background:#fff;box-shadow:0 6px 28px #26375205}
.speech-search{min-width:0;margin:0;position:relative}
.speech-search[aria-busy=true] .context-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.speech-search[aria-busy=true] button[type=submit]{position:relative}
.speech-search[aria-busy=true] button[type=submit]>span{opacity:0}
.speech-search[aria-busy=true] button[type=submit]::after{content:'';position:absolute;width:12px;height:12px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .65s linear infinite}
.dock>.speech-search{grid-column:1/-1;padding:0 0 5px;border-bottom:1px solid #edf0f3}
.context-input{display:flex;align-items:center;gap:8px;padding:0 0 0 8px;border:0;background:transparent;border-radius:8px}
.context-input>svg{width:16px;height:16px;fill:none;stroke:#8c96a4;stroke-width:1.6;stroke-linecap:round;flex-shrink:0}
.context-input input{width:100%;flex:1;min-width:0;height:38px;padding:0;background:none;border:0;font-size:14px;outline:none}
.context-input input::placeholder{color:#778392}
.context-input button[type=submit]{display:grid;place-items:center;width:44px;height:44px;min-width:44px;color:#fff;background:#394e69;border-radius:3px;font-size:12px;font-weight:500}
.context-input button svg{width:16px;height:16px}
#clear-query{width:28px;height:32px;color:#9aa2ad}
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
.dock-main{display:contents}
.mode-picker{display:flex;align-items:center;min-width:0;gap:2px}
.mode-picker button{flex:1;min-width:0;min-height:36px;padding:5px 8px;border-radius:6px;font-size:12px;color:#7c8795;white-space:nowrap}
.mode-picker [data-mode=overview]{flex:1.35}
.mode-picker button[aria-selected=true]{background:#edf1f6;color:#344a66;font-weight:550}
.dock-filter{width:36px;height:36px;color:#7d8998;position:relative}
.dock-filter svg{width:18px;height:18px}
.dock-filter i{position:absolute;right:4px;top:4px;width:4px;height:4px;border-radius:50%;background:#51749d}
.grouping-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.grouping-picker{display:flex;gap:4px;width:100%;min-width:0}
.grouping-picker button{flex:1;min-width:0;min-height:36px;font-size:12px;line-height:1.35;padding:6px 8px;border-radius:6px;background:#f0f3f7;color:#7a8797;overflow-wrap:anywhere}
.grouping-picker button[aria-pressed=true]{background:#40566f;color:#fff}
#map-district-field{width:100%}
#map-district{width:100%;min-height:38px}
.workspace-footer{grid-row:4;display:flex;align-items:center;justify-content:center;gap:14px;font-size:10px;color:#737f8f}
.workspace-footer>button{min-height:22px;padding:0;font-size:10px}
.workspace-footer .velho-credit{display:flex;align-items:center;flex-direction:row}
.workspace-footer .velho-credit span{display:none}
.workspace-footer .velho-credit img{width:44px;height:auto}
.tools-backdrop{position:fixed;inset:0;z-index:19;background:#27364b26;backdrop-filter:blur(3px)}
.panel{position:absolute;z-index:20;left:50%;bottom:28px;transform:translateX(-50%);width:min(480px,calc(100% - 24px));max-height:calc(100% - 48px);padding:20px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 15px 60px #26344915}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.panel-head h2{font-size:18px;font-weight:500;letter-spacing:-.03em;margin:0;min-width:0;overflow-wrap:anywhere}
.panel-head .icon-button{width:32px;height:32px;color:#8993a2}
.mobile-view-tools{display:flex;flex-direction:column;margin-bottom:16px;gap:2px}
.mobile-view-tools>button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;font-size:13px;line-height:1.4;text-align:left;padding:4px 0;min-width:0;overflow-wrap:anywhere}
.mobile-view-tools>button span{color:#9ca7b5}
.field,fieldset{margin:0 0 18px;padding:0;border:0;min-width:0}
.field label,fieldset legend{display:block;margin-bottom:7px;font-size:12px;color:#86909e}
.field select{width:100%}
select{min-width:0;max-width:100%;border:0;border-radius:6px;padding:9px 27px 9px 10px;font-size:13px;line-height:1.4;text-overflow:ellipsis;appearance:none;background:#f0f3f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%238591a1' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 9px center}
.party-options{display:flex;flex-wrap:wrap;gap:6px}
.party-options button{display:flex;align-items:center;gap:6px;min-height:34px;padding:6px 9px;font-size:11px;border:1px solid #e4e9ef;border-radius:6px}
.party-options button[aria-pressed=true]{background:#eaf0f7;border-color:#8096af}
.active-filters{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}
.active-filters:empty{display:none}
.active-filters button{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:6px;background:#edf2f7;font-size:11px}
.active-filters svg{width:11px;height:11px}
.zoom-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}
.zoom-row>div{display:flex;align-items:center;gap:6px}
.zoom-row button{font-size:12px}
.reset-button{min-height:40px;padding:8px 0;font-size:12px;color:var(--blue)}
#info-panel p{font-size:12px;line-height:1.8;color:#758190}
.info-links,.source-links{display:flex;flex-direction:column;gap:4px}
.info-links a,.source-links a{min-height:32px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#536f91}
.site-sources>summary{font-size:12px;min-height:38px}
.sources-content p,.record-source-list li{font-size:11px;line-height:1.7}
.search-box{display:flex;align-items:center;gap:8px;background:#f0f3f7;border-radius:7px;padding:0 10px}
.search-box svg{width:16px;height:16px;color:#9ba5b1}
.search-box input{width:100%;min-width:0;height:42px;border:0;background:none;font-size:14px}
.list-heading,.directory-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 8px;font-size:12px;color:var(--muted)}
.list-heading select,.directory-heading select{background-color:transparent;font-size:12px}
.results{max-height:330px;overflow:auto}
.result{display:flex;align-items:center;gap:8px;width:100%;padding:12px 0;text-align:left;border-bottom:1px solid var(--line)}
.result-name{flex:1;min-width:0}
.result-name strong{display:block;font-size:13px;font-weight:500}
.result-name small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}
.result-value{font-size:12px;white-space:nowrap}
.directory{grid-row:2;min-height:0;height:100%;overflow:auto;width:min(780px,100%);margin:0 auto}
.directory-search-row{display:flex;gap:8px}
.directory-search-row .search-box{flex:1}
.directory-results{border-radius:10px;background:#fff;padding:0 12px}
.directory-person{display:flex;align-items:center;gap:12px;min-height:76px;padding:10px 0;width:100%;text-align:left;border-bottom:1px solid var(--line)}
.directory-portrait{width:40px;height:48px}
.directory-name{flex:1;min-width:0}
.directory-name strong{display:block;font-size:14px;font-weight:500}
.directory-name>span{display:flex;align-items:center;gap:6px;margin-top:4px}
.directory-name small{font-size:11px;color:var(--muted)}
.directory-value{text-align:right}
.directory-value strong{display:block;font-size:16px;font-weight:500;white-space:nowrap}
.directory-value small{font-size:10px;color:var(--muted)}
.directory-chevron{color:#a8b1bd}
.empty-results{font-size:13px;line-height:1.7;color:var(--muted);padding:20px}
.loading{position:fixed;inset:0;display:grid;place-items:center;z-index:30;pointer-events:none;background:var(--page)}
.loading span{width:22px;height:22px;border:1px solid #dce2ea;border-top-color:#8493a5;border-radius:50%;animation:spin .8s linear infinite}
.ready .loading{opacity:0}
.load-error{max-width:340px;padding:24px;font-size:14px;line-height:1.7;text-align:center;color:var(--muted)}
.load-error button{display:block;margin:10px auto;color:var(--blue)}

/* Small screens keep the whole chamber visible and give the list the remaining height. */
@media(min-width:901px){
 .answer-context{position:fixed;left:24px;top:70px;width:240px;margin:0;z-index:5}
 .answer-status{font-size:10px}
 .workspace-side .map-stage{width:54%;left:0;transform:none;height:100%;max-height:none;aspect-ratio:auto}
 .workspace-side .center-stack{left:auto;right:0;transform:none;width:44%;bottom:6px}
 .workspace-side .group-stat-code{font-size:24px}
 .workspace-side .group-stat-value{font-size:22px}
}
@media(max-width:900px){
 .explorer-viewport{grid-template-rows:42px minmax(0,1fr) auto 22px;gap:8px;padding:0 12px max(5px,env(safe-area-inset-bottom))}
 .workspace-results .explorer-viewport{grid-template-rows:42px minmax(0,1fr) 0 22px;gap:0}
 .wordmark{font-size:13px}
 .hero h1{font-size:12px}
 .local-badge{display:none}
 .map-stage{top:0;left:0;transform:none;aspect-ratio:auto;width:100%;height:100%;max-height:none}
 .workspace-results .map-stage{height:calc((100vw - 24px)*.501369863)}
 .group-stat-code{font-size:36px}
 .group-stat-value{font-size:30px}
 .center-stack{width:100%;gap:10px;bottom:12px}
 .workspace-results .center-stack{bottom:4px}
 .center-card{width:min(100%,340px)}
 #canvas:not(.workspace-results) .center-card:not(.is-person){width:min(100%,420px);padding:12px;border:1px solid #e1e5eb;border-radius:12px;background:#ffffffed;box-shadow:0 4px 20px #28395708;backdrop-filter:blur(12px)}
 #canvas:not(.workspace-results) .center-card:not(.is-person) .snapshot-stats strong{font-size:clamp(14px,5cqw,16px)}
 #canvas:not(.workspace-results) .center-card:not(.is-person) .snapshot-stats dt{font-size:11px}
 .workspace-results .center-card{min-height:58px}
 .profile-portrait,.profile-party-tile{width:36px;height:42px}
 .profile-name h2,.workspace-results .profile-name h2{font-size:14px}
 .profile-name p{font-size:10px;margin-top:3px}
 .workspace-results .profile-name{padding-right:72px}
 .workspace-results #detail-metrics{right:34px;width:68px}
 .workspace-results .snapshot-stats strong{font-size:19px}
 .workspace-results .snapshot-stats dt{font-size:10px}
 .center-card-head .icon-button{width:28px;height:28px}
 .snapshot-profile span{display:none}
 .snapshot-profile{width:30px}
 .snapshot-actions button{width:auto;min-height:44px;font-size:11px}
 .results-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;padding:0 8px 5px;gap:0 6px}
 .results-toolbar .speech-search{grid-column:1/-1;width:100%}
 .results-toolbar .context-input{padding-left:4px}
 .result-category{font-size:11px;max-width:77px}
 .results-toolbar .context-input input,.context-input input{font-size:16px}
 .context-input input::placeholder{font-size:13px}
 .results-toolbar .context-input input{height:44px}
 .results-back{justify-self:start;padding:0 4px}
 .detail-scroll{padding:0 12px}
 .speech-list-tools{min-height:36px}
 .speech-list-tools p,.speech-list-tools select{font-size:11px}
 .speech-item{padding:10px 0}
 .speech-item h3{font-size:14px;font-weight:500;line-height:1.4}
 .result-excerpt{font-size:13px;line-height:1.5;margin-bottom:5px}
 .speech-item-meta,.speech-item-meta time{font-size:11px}
 .speech-item-meta b{font-size:10px}
 .result-speaker{gap:4px}
 .row-open{min-width:44px;min-height:44px}
 .row-open svg{width:15px;height:15px}
 .result-options{padding:5px 8px;gap:6px}
 .result-options select{font-size:13px;min-height:38px}
 .result-note{font-size:10px}
 .item-total{font-size:14px}
 .dock{padding:6px 7px;border-radius:11px}
 .mode-picker button{font-size:11px;min-height:40px;padding:5px 2px}
 .dock-filter{height:40px}
 .panel{bottom:10px!important;max-height:calc(100% - 20px)!important;padding:18px;border-radius:12px}
 .panel input{font-size:16px;min-height:44px}
 .panel select,.mobile-view-tools>button,.grouping-picker button{font-size:13px;line-height:1.4}
 .panel select{min-height:42px}
 .party-options button{font-size:12px}
 .party-options button,.grouping-picker button{min-height:40px}
 .workspace-footer{gap:12px}
 .workspace-footer .velho-credit img{width:40px}
 #detail-reading h3{font-size:19px}
 .speech-transcript p{font-size:14px;line-height:1.85}
 .answer-context{width:min(100%,340px)}
 .answer-question{font-size:13px}
 .answer-legend-labels{display:none}
 .answer-legend{grid-template-columns:auto repeat(4,minmax(44px,1fr)) auto minmax(44px,1fr);gap:0;align-items:center;margin-top:0}
 .answer-scale-label{display:block;padding:0 3px;font-size:10px;line-height:1.3;color:#68727e}
 .answer-legend button{min-height:44px}
 .answer-status{margin-top:0}
 .workspace-results.answer-map .center-card{min-height:68px}
}
@media(max-width:370px){
 .mode-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .mode-picker button{font-size:11px;min-height:32px}
 .dock-filter{align-self:center}
 .hero h1{font-size:11px}
 .result-category{max-width:64px;font-size:10px}
 .results-toolbar{gap:4px}
 .workspace-results .profile-name{padding-right:68px}
 .profile-name h2,.workspace-results .profile-name h2{font-size:13px}
 .speech-item-meta b{display:none}
}
@media(max-width:340px){
 .mode-picker button{font-size:10px;padding:5px 2px}
}
@media(max-height:700px) and (min-width:901px){
 .workspace-results .group-stat-code{font-size:24px}
 .workspace-results .group-stat-value{font-size:22px}
 .workspace-results .center-card{min-height:58px}
}
@media(max-height:500px) and (min-width:601px) and (max-width:900px){
 .explorer-viewport,.workspace-results .explorer-viewport{grid-template-rows:34px minmax(0,1fr) auto 18px;gap:0}
 .workspace-results .explorer-viewport{grid-template-rows:34px minmax(0,1fr) 0 18px}
 .workspace-results.workspace-side .map-stage{width:43%;left:0;transform:none;height:100%;aspect-ratio:auto}
 .workspace-results.workspace-side .center-stack{left:auto;right:0;transform:none;width:55%;bottom:4px;gap:5px}
 .workspace-results .center-card{min-height:49px}
 .workspace-results .profile-portrait{width:30px;height:34px}
 .workspace-results .profile-name h2{font-size:12px}
 .workspace-results .profile-name p{font-size:9px}
 .workspace-results .snapshot-stats strong{font-size:16px}
 .workspace-results .snapshot-stats dt{font-size:9px}
 .results-toolbar{display:flex;min-height:54px;padding:4px 7px;gap:6px}
 .results-toolbar .result-category{display:none}
 .results-toolbar .speech-search{width:auto}
 #canvas.workspace-results .center-card.is-person{grid-template-columns:minmax(0,1fr) auto}
 #canvas.workspace-results .is-person .center-card-head{justify-self:end}
 #canvas.workspace-results .is-person #detail-metrics{grid-area:2/1}
 #canvas.workspace-results .is-person #person-actions{grid-area:2/2;border:0;padding:0}
 #canvas.workspace-results .is-person .snapshot-profile{min-height:44px;padding:0}
 .speech-item{padding:9px 0}
 .speech-item h3{-webkit-line-clamp:1}
 .result-excerpt{-webkit-line-clamp:1}
}
@media(max-height:650px) and (max-width:900px){
 #canvas .center-card.is-person{padding:10px 12px;row-gap:8px}
 #canvas .is-person .profile-portrait{width:40px;height:46px}
 #canvas .is-person .profile-name h2{font-size:17px}
 #canvas .is-person #person-actions{padding-top:4px}
}
@media(max-height:540px) and (max-width:600px){
 #canvas[data-category=overview].is-query-editing .center-card{display:none}
 #canvas[data-category=overview].is-query-editing .map-stage{height:100%!important}
 .workspace-results.is-query-editing .center-stack{top:4px!important}
 .workspace-results.is-query-editing .center-card{display:none!important}
 .workspace-results.is-query-editing .map-stage{opacity:.12;pointer-events:none}
}
@keyframes seat-in{from{opacity:0;transform:translateY(5px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes identity-in{from{opacity:.35}to{opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-delay:0ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
