:root{
  --maroon:#5d170e;--maroon-dark:#2d150a;--cream:#fae8d0;--gold:#b39455;
  --ink:#201f1d;--muted:#6d6a65;--paper:#f4f1eb;--surface:#fff;--line:#d7d0c4;
  --blue:#204968;--blue-soft:#dceaf2;--match:#4d819e;--selected:#d8ab4c;
  --toolbar-h:76px;--radius:14px;--touch:46px;
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--paper);color:var(--ink)}
body{font-family:"Source Sans 3",Arial,sans-serif;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}
button,select,input{font:inherit}
button{touch-action:manipulation}
.history-app{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}

/* Application toolbar */
.app-toolbar{min-height:var(--toolbar-h);background:var(--maroon);border-bottom:7px solid var(--maroon-dark);display:flex;align-items:center;gap:18px;padding:8px clamp(12px,2vw,28px);color:#fff;z-index:20}
.brand-lockup{display:flex;align-items:center;gap:11px;min-width:max-content}.senate-seal{width:52px;height:52px;object-fit:contain}.brand-copy{line-height:1.06}.brand-kicker{font-family:Cinzel,Georgia,serif;color:var(--cream);font-size:clamp(.96rem,1.3vw,1.2rem);letter-spacing:.03em}.brand-title{font-size:.78rem;opacity:.92;margin-top:4px}
.toolbar-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.tool-btn,.session-select{min-height:var(--touch);border-radius:9px;border:1px solid rgba(255,255,255,.30);background:rgba(255,255,255,.08);color:#fff;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.tool-btn{padding:.48rem .78rem}.tool-btn:hover,.tool-btn:focus-visible{background:rgba(255,255,255,.17);color:#fff;border-color:rgba(255,255,255,.55)}.tool-btn.active{outline:2px solid var(--cream);outline-offset:1px}
.tool-btn-primary{background:var(--cream);color:var(--maroon);border-color:var(--cream)}.tool-btn-primary:hover,.tool-btn-primary:focus-visible{background:#fff;color:var(--maroon)}
.session-select{width:auto;min-width:178px;background-color:#fff;color:#2b2b2b;border-color:#fff;font-weight:700;padding-right:2.1rem}

/* Main surface */
.workspace{min-height:0;padding:clamp(6px,.9vw,12px);overflow:hidden}.chamber-surface{height:100%;min-height:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 28px rgba(42,32,24,.08);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
.content-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px clamp(12px,1.7vw,22px);border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfaf7);min-height:61px}
.content-heading{min-width:0}.heading-line{display:flex;align-items:center;gap:10px;min-width:0}.content-heading h1{font-family:Cinzel,Georgia,serif;color:var(--maroon);font-size:clamp(1rem,1.6vw,1.35rem);margin:0;white-space:nowrap}.session-badge{font-size:.73rem;font-weight:750;background:#f3ece2;border:1px solid #d7c9b7;border-radius:999px;padding:4px 8px;white-space:nowrap;color:#55483d}.search-context{font-size:.72rem;color:var(--muted);margin-top:2px;max-width:min(55vw,760px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.content-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}.occupancy-status{font-size:.76rem;font-weight:700;color:#4f4943;white-space:nowrap}.result-button{min-height:38px;border:1px solid #7aa2b7;background:#eef6fa;color:#24546d;border-radius:9px;padding:5px 10px;font-size:.77rem;font-weight:800;display:inline-flex;align-items:center;gap:6px}.result-button:hover,.result-button:focus-visible{background:#dcecf4;color:#173e53}
.legend{display:flex;align-items:center;gap:9px;font-size:.72rem;color:#4e4a45;white-space:nowrap}.legend span{display:inline-flex;align-items:center;gap:4px}.legend-swatch{display:inline-block;width:12px;height:12px;border-radius:3px;border:2px solid #836a56;background:#efe5d6}.legend-swatch.match{background:var(--match);border-color:#315f78}.legend-swatch.selected{background:var(--selected);border-color:#7f5e21}.legend-swatch.empty{background:#f1f1ee;border-style:dashed;border-color:#aaa}

/* Responsive chamber engine */
.chamber-stage{position:relative;min-height:0;overflow:hidden;display:block;background:radial-gradient(circle at 50% 10%,rgba(244,238,227,.75),rgba(255,255,255,0) 35%);padding:2px}
#chamberSvg{display:block;width:100%;height:100%;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.dais .dais-main{fill:#ede4d4;stroke:#755f4e;stroke-width:2}.dais .dais-clerk{fill:#f5eee3;stroke:#755f4e;stroke-width:2}.dais .dais-line{fill:none;stroke:#9a8776;stroke-width:2}.dais text{font-family:Cinzel,Georgia,serif;font-weight:650;fill:#493b31;pointer-events:none}
.seat{cursor:pointer;outline:none;transition:opacity .13s ease}.seat .desk-body{fill:#ede5d8;stroke:#755f4e;stroke-width:2}.seat .desk-hit{fill:transparent;stroke:none}.seat-name{font-family:"Source Sans 3",Arial,sans-serif;font-weight:800;fill:#5d170e;text-anchor:middle;pointer-events:none}.seat-meta{fill:#5e5952;text-anchor:middle;pointer-events:none;font-weight:600}.seat:hover .desk-body,.seat:focus-visible .desk-body{stroke:#173a5e;stroke-width:4}.seat.search-nonmatch{opacity:.14}.seat.search-match{opacity:1}.seat.search-match .desk-body{fill:#d9e9f2;stroke:#2f6d8b;stroke-width:4}.seat.selected{opacity:1!important}.seat.selected .desk-body{fill:#f2d58f;stroke:#6d5019;stroke-width:5;filter:url(#seatShadow)}.seat.empty{cursor:default;opacity:.34}.seat.empty .desk-body{fill:#f5f4f1;stroke:#aaa;stroke-dasharray:6 4}.first-use-hint{position:absolute;left:50%;top:54%;bottom:auto;transform:translate(-50%,-50%);background:rgba(45,21,10,.88);color:#fff;border-radius:999px;padding:7px 14px;font-size:.76rem;display:flex;align-items:center;gap:6px;pointer-events:none;transition:opacity .2s;white-space:nowrap;z-index:4}.first-use-hint.hide{opacity:0}

/* Shared layers */
.layer-kicker{text-transform:uppercase;letter-spacing:.11em;color:#4d819e;font-size:.67rem;font-weight:800}.layer-note{font-size:.78rem;color:var(--muted)}
.search-layer{--bs-offcanvas-height:auto;height:fit-content!important;max-height:min(90dvh,690px);bottom:auto!important;border-bottom:7px solid var(--maroon);box-shadow:0 18px 60px rgba(0,0,0,.25)}.search-layer-header{padding:12px clamp(16px,2.4vw,30px);border-bottom:1px solid var(--line)}.search-layer h2,.results-layer h2{font-family:Cinzel,Georgia,serif;color:var(--maroon);font-size:1.25rem;margin-bottom:2px}.search-form{height:auto;display:block;flex:0 0 auto}.search-layer-body{flex:0 0 auto!important;overflow:auto;padding:10px clamp(16px,2.4vw,30px) 8px;overscroll-behavior:contain}.search-primary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 13px}.unified-search-grid{align-content:start}.field-wrap label{display:block;font-weight:750;font-size:.78rem;margin-bottom:4px;color:#49443f}.form-control,.form-select{min-height:var(--touch);border-radius:8px;border-color:#c9c2b7}.form-control:focus,.form-select:focus{border-color:#3e7898;box-shadow:0 0 0 .18rem rgba(62,120,152,.16)}.input-with-key{display:flex}.input-with-key .form-control{border-radius:8px 0 0 8px}.vk-field-btn{width:var(--touch);min-width:var(--touch);border:1px solid #c9c2b7;border-left:0;background:#f4f1eb;border-radius:0 8px 8px 0;color:#5d170e}.search-actions{flex:0 0 auto;padding:8px clamp(16px,2.4vw,30px);border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;background:#fbfaf7}.search-actions .btn{min-height:44px}.btn-senate{background:var(--maroon);border-color:var(--maroon);color:#fff;font-weight:750}.btn-senate:hover{background:#45100a;border-color:#45100a;color:#fff}
body.vk-open .search-layer{height:fit-content!important;max-height:min(58dvh,520px);bottom:auto!important}

/* Search results are a temporary bottom layer, not reserved layout */
.results-layer{height:min(48dvh,470px)!important;border-top:6px solid var(--maroon);box-shadow:0 -18px 55px rgba(0,0,0,.22)}.results-header{padding:11px clamp(16px,2.2vw,28px);border-bottom:1px solid var(--line)}.results-body{padding:10px clamp(12px,2vw,24px);overflow:auto;overscroll-behavior:contain}.result-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:8px}.results-filters{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px}.results-filter-label{font-size:.64rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em;color:#6e655c;margin-right:2px}.results-filter-chip{display:inline-flex;align-items:center;min-height:24px;padding:2px 7px;border-radius:999px;background:#f1ece5;border:1px solid #d5c8b9;color:#4f443b;font-size:.68rem;font-weight:700}
.person-result{border:1px solid var(--line);background:#fff;border-radius:10px;padding:11px 12px;display:grid;grid-template-columns:minmax(210px,.9fr) minmax(280px,1.35fr);gap:12px 16px;align-items:start}.person-result-profile{min-width:0}.person-result-name{font-weight:850;color:#4f170f;font-size:.98rem;line-height:1.15}.person-result-meta{font-size:.74rem;color:#5e5852;margin-top:3px;font-weight:650}.person-result-extra{font-size:.69rem;color:var(--muted);margin-top:5px;line-height:1.28;overflow-wrap:anywhere}.person-result-service{display:grid;gap:8px;min-width:0}.result-service-block{min-width:0}.result-section-label{margin-bottom:4px}.session-pills,.service-session-pills{display:flex;gap:5px;flex-wrap:wrap}.current-session-pills{justify-content:flex-start}.session-jump{min-height:34px;border:1px solid #b8cbd6;background:#eff6fa;color:#204968;border-radius:8px;padding:4px 8px;font-size:.7rem;font-weight:750}.session-jump:hover,.session-jump:focus-visible{background:#dbeaf2}.service-session-chip{display:inline-flex;align-items:center;min-height:30px;border:1px solid #b8cbd6;background:#eff6fa;color:#204968;border-radius:8px;padding:3px 8px;font-size:.67rem;font-weight:750;white-space:nowrap;cursor:pointer}.service-session-chip:hover,.service-session-chip:focus-visible{background:#dbeaf2;border-color:#8fb0c1;color:#163d59}.service-session-chip.active,.service-session-chip:disabled{background:#eee9e2;border-color:#cfc6bc;color:#817970;cursor:default;opacity:.78}
.empty-results{text-align:center;color:var(--muted);padding:24px;font-size:.9rem}

/* Member inspector */
.member-dialog{max-width:min(900px,94vw);margin:auto}.member-panel{border:0;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.30);padding:18px 21px;position:relative;max-height:80dvh}.member-close{position:absolute;right:12px;top:12px;width:var(--touch);height:var(--touch);border:0;border-radius:50%;background:#f2eee7;font-size:1.1rem;color:#4b443e}.member-heading{padding-right:52px;border-bottom:1px solid var(--line);padding-bottom:10px}.member-heading h2{font-family:Cinzel,Georgia,serif;color:var(--maroon);font-size:1.42rem;margin:2px 0}.member-summary{font-size:.87rem;color:#5f5a54}.member-detail{padding:11px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 18px;overflow:auto}.detail-item{min-width:0}.detail-label{font-size:.66rem;text-transform:uppercase;letter-spacing:.06em;color:#777068;font-weight:800}.detail-value{font-size:.9rem;font-weight:650;line-height:1.2;overflow-wrap:anywhere}.member-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:10px}.member-actions .btn{min-height:42px}.record-panel,.help-panel,.exit-panel{border-radius:14px;border:0}.exit-dialog{max-width:min(520px,92vw)}.exit-panel .modal-body{font-size:.95rem;color:#514b45}.exit-panel .modal-footer .btn{min-height:44px;min-width:110px}.record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.help-grid>div{border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;grid-template-columns:32px 1fr;column-gap:7px}.help-grid i{font-size:1.1rem;color:var(--maroon);grid-row:1/3}.help-grid strong{font-size:.88rem}.help-grid span{font-size:.77rem;color:var(--muted)}

/* Optional built-in virtual keyboard */
.virtual-keyboard{position:fixed;left:50%;bottom:max(8px,env(safe-area-inset-bottom));transform:translateX(-50%) translateY(125%);width:min(900px,96vw);background:#2a2724;border:1px solid #4b4640;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.36);padding:8px;z-index:1095;transition:transform .18s ease;color:#fff}.virtual-keyboard.open{transform:translateX(-50%) translateY(0)}.vk-top{display:flex;justify-content:space-between;align-items:center;padding:0 3px 7px;font-size:.76rem}.vk-top button{width:38px;height:34px;border:0;border-radius:7px;background:#433e39;color:#fff}.vk-keys{display:grid;grid-template-columns:repeat(10,1fr);gap:5px}.vk-key{min-height:46px;border:0;border-radius:7px;background:#f7f5f0;color:#272421;font-weight:800;box-shadow:inset 0 -2px 0 rgba(0,0,0,.12)}.vk-key:active{transform:translateY(1px)}.vk-key.wide{grid-column:span 2}.vk-key.space{grid-column:span 4}

/* Touchscreen/laptop compacting */
@media (max-width:1050px){
  .brand-title{display:none}.brand-lockup{min-width:auto}.senate-seal{width:46px;height:46px}.app-toolbar{--toolbar-h:68px}.tool-label{display:none}.session-select{min-width:148px}.search-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.member-detail,.record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.legend{gap:7px}.content-meta{gap:8px}.occupancy-status{display:none}
}
@media (max-width:760px){
  .app-toolbar{padding:7px 8px;gap:6px}.brand-copy{display:none}.senate-seal{width:43px;height:43px}.toolbar-actions{width:100%;gap:4px}.tool-btn{min-width:var(--touch);padding:7px}.tool-btn-primary span{display:none}.session-select{min-width:0;flex:1;font-size:.8rem}.workspace{padding:4px}.chamber-surface{border-radius:9px}.content-header{padding:7px 8px;gap:7px;align-items:center}.heading-line{gap:6px}.content-heading h1{font-size:.94rem}.session-badge{font-size:.64rem;padding:3px 6px}.search-context{font-size:.64rem;max-width:48vw}.legend{font-size:.61rem;gap:5px}.legend-swatch{width:9px;height:9px}.content-meta{gap:5px}.result-button{min-height:34px;padding:4px 7px;font-size:.68rem}.search-layer{height:fit-content!important;max-height:90dvh;bottom:auto!important}.search-primary-grid{grid-template-columns:1fr}.member-panel{max-height:88dvh;padding:15px 14px}.member-detail,.record-grid{grid-template-columns:1fr 1fr}.help-grid{grid-template-columns:1fr}.first-use-hint{font-size:.66rem;top:54%;bottom:auto}.vk-key{min-height:44px;font-size:.82rem}.results-layer{height:min(58dvh,500px)!important}.result-list{grid-template-columns:1fr}.person-result{padding:8px}
}
@media (max-width:500px){
  .brand-lockup{display:none}.content-heading h1{display:none}.session-badge{font-size:.64rem}.search-context{max-width:42vw}.legend span{font-size:0}.legend-swatch{width:13px;height:13px}.member-detail,.record-grid{grid-template-columns:1fr}.results-layer{height:62dvh!important}
}
@media (max-height:720px){
  :root{--toolbar-h:60px;--touch:42px}.app-toolbar{min-height:60px;padding-top:5px;padding-bottom:5px}.senate-seal{width:40px;height:40px}.content-header{min-height:50px;padding-top:5px;padding-bottom:5px}.first-use-hint{display:none}.member-panel{max-height:91dvh}.member-detail{gap:6px 14px}.detail-value{font-size:.84rem}.search-layer{height:fit-content!important;max-height:86dvh;bottom:auto!important}.virtual-keyboard{width:min(820px,97vw)}.vk-key{min-height:40px}
}
@media (pointer:coarse){
  :root{--touch:50px}.tool-btn,.session-select,.form-control,.form-select{min-height:50px}.seat:hover .desk-body{stroke-width:2}.result-button{min-height:44px}.session-jump{min-height:44px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.virtual-keyboard,.seat,.first-use-hint{transition:none!important}}

/* 1.1 chamber fidelity: true concentric floor arcs */
.floor-layer{pointer-events:none}
.floor-arc{fill:none;stroke:#d8cfc1;stroke-width:1.4;stroke-dasharray:2 5;opacity:.62}
.floor-label{font-family:"Source Sans 3",Arial,sans-serif;font-weight:800;font-size:10px;letter-spacing:.16em;fill:#8b8177;opacity:.78}

/* Finite historical fields are selectors; keep them compact and touch-safe. */
.search-form select.form-select{cursor:pointer}
@media (pointer:coarse){
  .search-form select.form-select{min-height:50px}
}


/* Compact Senate footer: fixed inside the viewport, never causes page scrolling. */
.app-footer{min-height:32px;background:var(--maroon-dark);color:rgba(250,232,208,.94);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px clamp(12px,2vw,28px);font-size:.72rem;line-height:1.1;border-top:1px solid rgba(250,232,208,.22);white-space:nowrap;overflow:hidden}
.app-footer .footer-context{opacity:.78;text-overflow:ellipsis;overflow:hidden}
@media (max-width:500px){.app-footer{min-height:28px;font-size:.64rem;padding-left:8px;padding-right:8px}.app-footer .footer-context{display:none}}


/* 1.4 information-surface readability pass */
.results-layer{height:min(54dvh,540px)!important}
.results-body{padding:12px clamp(14px,2vw,26px)}
.result-list{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:11px}
.person-result{padding:14px 15px;display:flex;flex-direction:column;align-items:stretch;gap:10px;min-height:132px;border-radius:12px;box-shadow:0 2px 10px rgba(45,21,10,.035)}
.person-result-identity{min-width:0}
.person-result-name{font-size:1.02rem;line-height:1.18;margin-bottom:4px}
.person-result-meta{font-size:.81rem;line-height:1.25;color:#5f5a54}
.person-result-sessions{margin-top:auto;padding-top:8px;border-top:1px solid #ebe5dc}
.result-section-label{font-size:.65rem;text-transform:uppercase;letter-spacing:.085em;font-weight:800;color:#756c63;margin-bottom:6px}
.session-pills{justify-content:flex-start;gap:6px}
.session-jump{min-height:36px;padding:5px 9px;font-size:.72rem;line-height:1.05}

.member-dialog{max-width:min(980px,94vw)}
.member-panel{padding:20px 24px 18px;max-height:82dvh}
.member-heading{padding-bottom:12px}
.member-heading h2{font-size:clamp(1.35rem,2vw,1.72rem);line-height:1.12}
.member-summary{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:7px;color:#4e4841;font-size:.86rem;font-weight:650}
.member-summary span{display:inline-flex;align-items:center;gap:5px}
.member-summary span+span:before{content:'•';color:#a08f7b;margin-right:7px}
.member-detail{padding:15px 0 13px;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 24px;align-content:start}
.detail-item{padding:0;min-width:0}
.detail-wide{grid-column:span 2}
.detail-label{font-size:.68rem;letter-spacing:.075em;margin-bottom:3px;color:#746c64}
.detail-value{font-size:.96rem;font-weight:650;line-height:1.32;color:#27231f}
.member-actions{padding-top:12px}
.member-actions .btn{font-weight:650}

.record-panel{max-height:88dvh;overflow:hidden}
.record-panel .modal-body{padding:18px 22px;overflow:auto}
.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:start}
.record-section{border:1px solid var(--line);border-radius:11px;background:#fcfbf8;padding:14px 15px;min-width:0}
.record-section h3{font-family:Cinzel,Georgia,serif;color:var(--maroon);font-size:.94rem;margin:0 0 11px;padding-bottom:7px;border-bottom:1px solid #e6dfd5}
.record-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 18px}
.record-section .detail-wide{grid-column:1/-1}
.record-section .detail-value{font-size:.91rem;line-height:1.3}

@media (max-width:900px){
  .result-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .member-detail{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-wide{grid-column:1/-1}
  .record-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:650px){
  .result-list{grid-template-columns:1fr}
  .person-result{min-height:0}
  .member-panel{padding:17px 15px 14px}
  .member-detail{grid-template-columns:1fr 1fr;gap:10px 14px}
  .record-grid{grid-template-columns:1fr}
  .record-section-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:430px){
  .member-detail{grid-template-columns:1fr}
  .detail-wide{grid-column:auto}
  .record-section-grid{grid-template-columns:1fr}
  .record-section .detail-wide{grid-column:auto}
  .member-summary span+span:before{display:none}
  .member-summary{gap:4px 9px}
}

/* Source-data desk collisions are preserved rather than guessed. */
.seat.conflict .desk-body{stroke:#8a5a00;stroke-width:2.5;stroke-dasharray:4 2}.seat.conflict .seat-name{font-weight:800}.seat.conflict .seat-meta{font-weight:700}

.legend-swatch.conflict{background:#fff7df;border:2px dashed #8a5a00}

/* 2.1 canonical 2026 floor geometry: 1–16 inner arch, 17–40 outer arch */
.floor-arc-0{stroke:#cbbdaf;stroke-width:1.4;stroke-dasharray:none;opacity:.58}
.floor-arc-1{stroke:#c3b3a3;stroke-width:1.55;stroke-dasharray:none;opacity:.66}


@media (max-width:900px){
  .person-result{grid-template-columns:1fr}
  .person-result-service{grid-template-columns:1fr}
}
@media (max-width:600px){
  .results-filter-chip{font-size:.64rem}
  .service-session-chip{font-size:.63rem;padding:3px 6px}
}

/* 4.5 search scope */
.search-scope-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:7px 9px;border:1px solid #d7cec2;border-radius:9px;background:#faf8f4}
.search-scope-label{font-size:.76rem;font-weight:850;color:#49443f;text-transform:uppercase;letter-spacing:.055em}
.search-scope-options{display:flex;gap:5px;flex-wrap:wrap}
.search-scope-btn{min-height:36px;border:1px solid #c9c2b7;border-radius:8px;background:#fff;color:#5b5148;padding:5px 10px;font-size:.74rem;font-weight:750}
.search-scope-btn:hover,.search-scope-btn:focus-visible{border-color:#8aa9ba;background:#f1f7fa;color:#204968}
.search-scope-btn.active{border-color:#5d170e;background:#5d170e;color:#fff}
.search-scope-btn i{margin-right:4px}
.results-scope-chip{display:inline-flex;align-items:center;min-height:24px;padding:2px 7px;border-radius:999px;background:#e9f2f7;border:1px solid #b8cbd6;color:#204968;font-size:.68rem;font-weight:750}
.no-current-session{font-size:.7rem;color:#857b72;font-style:italic;padding:3px 0}
@media(max-width:600px){.search-scope-row{align-items:flex-start;flex-direction:column}.search-scope-options{width:100%}.search-scope-btn{flex:1}}

/* 4.7 Search session selector + separate All Sessions control */
.search-scope-options{align-items:center}
.search-session-select{min-width:190px;min-height:36px;width:auto;font-size:.74rem;font-weight:750;border-color:#c9c2b7;background-color:#fff;color:#493f37}
.search-session-select:focus{border-color:#5d170e;box-shadow:0 0 0 .16rem rgba(93,23,14,.12)}
.search-session-select.scope-inactive{opacity:.58;background-color:#f3f0eb}
#allSessionsSearchBtn.active{border-color:#5d170e;background:#5d170e;color:#fff}
@media(max-width:600px){
  .search-session-select{width:100%;min-width:0}
  #allSessionsSearchBtn{width:100%}
}


/* 4.8 Results: full application page below Senate navbar */
.results-layer.offcanvas-bottom{
  top:var(--toolbar-h)!important;
  bottom:0!important;
  height:auto!important;
  max-height:none!important;
  border-top:6px solid var(--maroon);
  box-shadow:0 -8px 28px rgba(0,0,0,.18);
}
.results-layer .results-header{
  flex:0 0 auto;
}
.results-layer .results-body{
  flex:1 1 auto!important;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
}
@media(max-width:900px){
  .results-layer.offcanvas-bottom{
    top:var(--toolbar-h)!important;
    bottom:0!important;
    height:auto!important;
    max-height:none!important;
  }
}

/* 4.9 Search throbber */
.search-loading{
  position:fixed;
  inset:0;
  z-index:1095;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(244,241,235,.62);
  backdrop-filter:blur(1px);
}
.search-loading.d-none{display:none!important}
.search-loading-card{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:min(340px,88vw);
  padding:14px 18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:0 14px 42px rgba(45,21,10,.18);
}
.search-spinner{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border:4px solid #ddd4c8;
  border-top-color:var(--maroon);
  border-radius:50%;
  animation:senate-search-spin .8s linear infinite;
}
.search-loading-copy{display:flex;flex-direction:column;gap:2px;line-height:1.15}
.search-loading-copy strong{font-family:Cinzel,Georgia,serif;color:var(--maroon);font-size:.93rem}
.search-loading-copy span{font-size:.76rem;color:var(--muted)}
@keyframes senate-search-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .search-spinner{animation-duration:1.6s}
}


/* 5.3.2 Persistent chamber guidance */
#firstUseHint,
.first-use-hint{
  left:50%!important;
  top:42%!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:none;
  z-index:4;
}
#firstUseHint.hide,
.first-use-hint.hide{
  opacity:1!important;
  visibility:visible!important;
  display:flex!important;
}


/* ================================================================
   5.4 Layerfall Views branch
   Navbar establishes scope; time is the common historical axis.
   ================================================================ */
.history-app{
  grid-template-rows:auto auto minmax(0,1fr) auto;
}
.view-nav{
  min-height:48px;
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 2px 8px rgba(45,21,10,.05);
  overflow:hidden;
  z-index:18;
}
.view-tabs{
  height:100%;
  display:flex;
  align-items:stretch;
  overflow-x:auto;
  scrollbar-width:thin;
  overscroll-behavior-x:contain;
  padding:0 clamp(6px,1vw,14px);
}
.view-tab{
  flex:1 0 auto;
  min-width:118px;
  min-height:48px;
  border:0;
  border-right:1px solid #eee7dc;
  background:#fff;
  color:#4e4036;
  padding:7px 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:.78rem;
  font-weight:760;
  white-space:nowrap;
  position:relative;
}
.view-tab:first-child{border-left:1px solid #eee7dc}
.view-tab:hover,.view-tab:focus-visible{background:#faf4eb;color:var(--maroon)}
.view-tab.active{
  color:var(--maroon);
  background:#fff9f1;
}
.view-tab.active:after{
  content:"";
  position:absolute;
  left:12px;right:12px;bottom:0;
  height:4px;
  border-radius:4px 4px 0 0;
  background:var(--maroon);
}
.view-tab i{font-size:.9rem}

.history-view-surface{
  height:100%;
  min-height:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 8px 28px rgba(42,32,24,.08);
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
}
.history-view-header{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:10px clamp(14px,2vw,24px);
  background:linear-gradient(180deg,#fff,#fbfaf7);
  border-bottom:1px solid var(--line);
}
.history-view-heading{min-width:0}
.history-view-title-row{display:flex;align-items:center;gap:10px;min-width:0}
.history-view-title-row h1{
  font-family:Cinzel,Georgia,serif;
  color:var(--maroon);
  font-size:clamp(1.08rem,1.8vw,1.48rem);
  margin:0;
}
.history-view-description{
  margin-top:3px;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.25;
  max-width:820px;
}
.history-view-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.scope-badge{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #d2c7b8;
  background:#f6f0e7;
  color:#5a4e42;
  font-size:.72rem;
  font-weight:750;
  white-space:nowrap;
}
.history-search-btn{
  min-height:40px;
  border:1px solid #c7b7a6;
  background:#fff;
  color:var(--maroon);
  font-weight:750;
  white-space:nowrap;
}
.history-search-btn:hover,.history-search-btn:focus-visible{background:#f7eee4;color:var(--maroon)}
.district-view-select{min-width:155px;min-height:40px}

.history-view-body{
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:clamp(12px,1.8vw,22px);
  background:
    linear-gradient(180deg,rgba(250,248,244,.7),rgba(255,255,255,.88)),
    radial-gradient(circle at 50% 0,rgba(179,148,85,.08),transparent 38%);
}
.view-loading{
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#6a6158;
  font-weight:700;
}
.view-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.view-stat-card{
  min-height:86px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:12px 14px;
  box-shadow:0 2px 8px rgba(45,21,10,.025);
}
.view-stat-value{
  color:var(--maroon);
  font-family:Cinzel,Georgia,serif;
  font-size:clamp(1.18rem,2vw,1.72rem);
  font-weight:800;
  line-height:1.05;
}
.view-stat-label{
  color:#6c645c;
  font-size:.69rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-top:5px;
}
.view-stat-note{color:#81786f;font-size:.68rem;margin-top:3px;line-height:1.2}

.timeline-card,.milestone-card,.people-card,.more-card{
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  box-shadow:0 2px 10px rgba(45,21,10,.03);
}
.timeline-card{padding:14px 16px;margin-bottom:12px}
.timeline-card-header{
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px
}
.timeline-card h2,.milestone-card h2,.people-card h2{
  font-family:Cinzel,Georgia,serif;
  color:var(--maroon);
  font-size:1rem;
  margin:0;
}
.timeline-card-header p{margin:0;color:var(--muted);font-size:.7rem}
.view-trend{
  height:156px;
  display:flex;
  align-items:flex-end;
  gap:2px;
  padding:12px 6px 24px;
  border-radius:9px;
  background:
    repeating-linear-gradient(to top,#f1ece4 0,#f1ece4 1px,transparent 1px,transparent 38px),
    linear-gradient(180deg,#fff,#fcfaf7);
  overflow-x:auto;
}
.timeline-session{
  min-width:5px;
  flex:1 0 5px;
  max-width:16px;
  height:var(--bar-h,10%);
  min-height:3px;
  border:0;
  border-radius:3px 3px 0 0;
  background:#8e644e;
  opacity:.72;
  padding:0;
  cursor:pointer;
  position:relative;
}
.timeline-session:hover,.timeline-session:focus-visible{opacity:1;background:var(--maroon);outline:2px solid #e9d8c3;outline-offset:1px}
.timeline-session.current{background:#2f6d8b;opacity:1}
.timeline-axis{
  display:flex;justify-content:space-between;
  margin-top:-18px;
  padding:0 4px;
  color:#867c72;font-size:.62rem;pointer-events:none
}
.timeline-note{
  margin-top:8px;
  display:flex;align-items:center;gap:7px;
  color:#6f675f;font-size:.68rem
}
.timeline-current-dot{width:9px;height:9px;border-radius:50%;background:#2f6d8b;display:inline-block}

.view-two-column{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);
  gap:12px;
}
.milestone-card,.people-card{padding:14px 16px;min-width:0}
.milestone-list{display:grid;gap:8px;margin-top:10px}
.milestone-item{
  border-left:4px solid #b39455;
  background:#fbf7f1;
  border-radius:0 9px 9px 0;
  padding:9px 11px;
}
.milestone-item strong{display:block;color:#4d1b14;font-size:.79rem}
.milestone-item span{display:block;color:#6e665e;font-size:.7rem;line-height:1.28;margin-top:2px}
.people-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.history-person-chip{
  min-height:34px;
  border:1px solid #cfc4b7;
  background:#fff;
  border-radius:999px;
  color:#4d231d;
  font-size:.71rem;
  font-weight:730;
  padding:5px 9px;
}
.history-person-chip:hover,.history-person-chip:focus-visible{background:#f7eee4;border-color:#a98c72}

.district-history-list{display:grid;gap:7px;margin-top:10px}
.district-history-row{
  display:grid;
  grid-template-columns:minmax(160px,.75fr) minmax(0,1.5fr);
  gap:12px;
  align-items:center;
  border-bottom:1px solid #eee7df;
  padding:8px 2px;
}
.district-history-row:last-child{border-bottom:0}
.district-history-name{font-weight:800;color:#4e1a13}
.district-history-sessions{display:flex;flex-wrap:wrap;gap:5px}
.mini-session-chip{
  border-radius:999px;
  background:#f4efe8;
  border:1px solid #d8cec2;
  color:#5f574f;
  padding:3px 7px;
  font-size:.64rem;
  font-weight:700;
}

.more-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.more-card{padding:14px;min-height:130px}
.more-card i{color:var(--maroon);font-size:1.1rem}
.more-card h2{font-size:.92rem;margin:8px 0 4px;color:#4d1b14}
.more-card p{font-size:.7rem;color:#70685f;line-height:1.3;margin:0}
.more-card .status{display:inline-block;margin-top:10px;font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#7e725f}

.dataset-caution{
  margin-top:12px;
  border:1px solid #ccd9e2;
  background:#f1f7fa;
  color:#38556a;
  border-radius:10px;
  padding:9px 11px;
  font-size:.7rem;
  line-height:1.3;
}
.dataset-caution strong{color:#27465d}

@media (max-width:1120px){
  .view-tab{min-width:108px;padding-left:9px;padding-right:9px}
  .view-tab span{font-size:.72rem}
  .view-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .view-nav{min-height:44px}
  .view-tab{min-width:94px;min-height:44px;gap:5px;padding:6px 8px}
  .view-tab i{font-size:.82rem}.view-tab span{font-size:.66rem}
  .history-view-header{align-items:flex-start;flex-direction:column;gap:7px;padding:8px 10px}
  .history-view-actions{width:100%;overflow-x:auto}
  .scope-badge{display:none}
  .history-search-btn{margin-left:auto}
  .history-view-body{padding:9px}
  .view-two-column{grid-template-columns:1fr}
  .view-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .more-grid{grid-template-columns:1fr 1fr;gap:7px}
  .timeline-card{padding:10px}
}
@media (max-width:500px){
  .view-summary-grid,.more-grid{grid-template-columns:1fr}
  .history-view-description{font-size:.7rem}
  .district-history-row{grid-template-columns:1fr}
}
@media (max-height:720px){
  .view-nav{min-height:40px}
  .view-tab{min-height:40px}
  .history-view-header{min-height:58px;padding-top:6px;padding-bottom:6px}
  .view-stat-card{min-height:70px;padding:8px 10px}
  .view-trend{height:120px}
}


/* ================================================================
   5.5 Layerfall Geo + Archive enrichment sandbox
   ================================================================ */
.district-mode-controls{
  display:inline-flex;
  align-items:center;
  border:1px solid #cfc3b6;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  flex:0 0 auto;
}
.district-mode-btn{
  min-height:38px;
  border:0;
  border-right:1px solid #ddd2c6;
  background:#fff;
  color:#5d5147;
  padding:5px 9px;
  font-size:.68rem;
  font-weight:780;
  white-space:nowrap;
}
.district-mode-btn:last-child{border-right:0}
.district-mode-btn:hover,.district-mode-btn:focus-visible{background:#f8f1e8;color:var(--maroon)}
.district-mode-btn.active{background:var(--maroon);color:#fff}
.district-mode-btn i{margin-right:4px}

.geo-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr);
  gap:12px;
}
.geo-card,.archive-card,.enrichment-health-card{
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  box-shadow:0 2px 10px rgba(45,21,10,.035);
}
.geo-card{overflow:hidden}
.geo-card-header,.archive-card-header,.enrichment-health-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #eee7df;
}
.geo-card h2,.archive-card h2,.enrichment-health-card h2{
  margin:0;
  color:var(--maroon);
  font-family:Cinzel,Georgia,serif;
  font-size:.98rem;
}
.geo-card-header p,.archive-card-header p,.enrichment-health-header p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:.68rem;
  line-height:1.3;
}
.geo-map-wrap{
  position:relative;
  min-height:360px;
  background:linear-gradient(180deg,#f4f6f4,#e8ece9);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.geo-map-image{
  width:100%;
  height:100%;
  min-height:360px;
  object-fit:contain;
  display:block;
}
.geo-map-fallback{
  padding:36px 20px;
  text-align:center;
  max-width:520px;
  color:#5d615d;
}
.geo-map-fallback i{display:block;font-size:2rem;color:#788d83;margin-bottom:10px}
.geo-map-fallback strong{display:block;color:#37463f;margin-bottom:4px}
.geo-provenance{
  padding:9px 12px;
  background:#f8f6f2;
  border-top:1px solid #e8e1d8;
  color:#665f57;
  font-size:.65rem;
  line-height:1.35;
}
.geo-provenance code{font-size:.62rem}
.geo-reference-warning{
  margin:10px 12px 0;
  padding:8px 10px;
  border-radius:9px;
  border:1px solid #e6c27d;
  background:#fff7e8;
  color:#69521f;
  font-size:.68rem;
  line-height:1.35;
}
.geo-side-stack{display:grid;gap:12px;align-content:start}
.geo-detail-list{display:grid;gap:7px;padding:12px 14px}
.geo-detail-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  border-bottom:1px solid #f0ebe4;
  padding-bottom:7px;
  font-size:.69rem;
}
.geo-detail-row:last-child{border-bottom:0;padding-bottom:0}
.geo-detail-row span{color:#71685e}
.geo-detail-row strong{color:#3f352d;text-align:right}

.health-chip{
  display:inline-flex;align-items:center;gap:5px;
  border-radius:999px;padding:4px 8px;
  font-size:.62rem;font-weight:820;text-transform:uppercase;letter-spacing:.04em
}
.health-chip.ready{background:#e8f4ec;color:#315f42;border:1px solid #b9d7c3}
.health-chip.network{background:#eef4f8;color:#365a70;border:1px solid #bfd0dc}
.health-chip.pending{background:#fff4df;color:#755515;border:1px solid #e3ca91}
.health-list{display:grid;gap:7px;padding:12px 14px}
.health-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.68rem}
.health-row span:first-child{color:#5f574f}

.region-toolbar{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px
}
.region-select{min-width:220px;max-width:310px}
.region-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.region-card{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:12px;
  min-height:118px;
}
.region-card.active{border-color:#8b513f;box-shadow:0 0 0 2px rgba(93,23,14,.08)}
.region-card h3{font-size:.82rem;color:#4d1b14;margin:0 0 5px;font-weight:820}
.region-card p{font-size:.67rem;color:#6f675e;line-height:1.3;margin:0}
.region-card button,.archive-source-link{
  margin-top:9px;
  min-height:32px;
  border:1px solid #cdbeb0;
  background:#fff;
  color:var(--maroon);
  border-radius:8px;
  padding:4px 8px;
  font-size:.66rem;
  font-weight:780;
  text-decoration:none;
  display:inline-flex;align-items:center;gap:5px;
}
.region-card button:hover,.archive-source-link:hover{background:#f7eee4;color:var(--maroon)}
.archive-source-list{display:grid;gap:9px;padding:12px 14px}
.archive-source-item{
  border-left:4px solid #b39455;
  background:#fbf7f1;
  border-radius:0 9px 9px 0;
  padding:9px 10px;
}
.archive-source-item strong{display:block;color:#4d1b14;font-size:.72rem}
.archive-source-item span{display:block;color:#6d655d;font-size:.65rem;line-height:1.3;margin-top:2px}
.enrichment-boundary{
  margin-top:12px;
  border:1px dashed #b9aca0;
  border-radius:10px;
  padding:9px 11px;
  background:#faf8f5;
  color:#645d55;
  font-size:.68rem;
  line-height:1.35;
}
.enrichment-boundary strong{color:#483a31}

@media (max-width:1100px){
  .district-mode-btn{padding-left:7px;padding-right:7px}
  .district-mode-btn i{display:none}
  .geo-grid{grid-template-columns:1fr}
  .geo-side-stack{grid-template-columns:1fr 1fr}
  .region-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .district-mode-controls{max-width:100%;overflow-x:auto}
  .district-mode-btn{font-size:.63rem}
  .geo-side-stack{grid-template-columns:1fr}
  .region-grid{grid-template-columns:1fr}
  .geo-map-wrap,.geo-map-image{min-height:260px}
}


/* ================================================================
   5.6 Layerfall Self-Similar Guided Interface
   Every view uses the same Explore -> Explain -> Compare -> Tour -> Evidence pattern.
   ================================================================ */
.tool-btn-guide{
  border-color:rgba(255,255,255,.45)!important;
  background:rgba(255,255,255,.11)!important;
}
.tool-btn-guide:hover,.tool-btn-guide:focus-visible{background:rgba(255,255,255,.2)!important}

.chamber-surface{
  grid-template-rows:auto auto minmax(0,1fr);
}
.history-view-surface{
  grid-template-rows:auto auto minmax(0,1fr);
}
.view-context-bar{
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:3px clamp(12px,1.6vw,20px);
  background:#f8f4ee;
  border-bottom:1px solid #e4dbd0;
  color:#695f55;
  font-size:.66rem;
  flex:0 0 auto;
}
.view-context-path{
  display:flex;align-items:center;gap:7px;
  min-width:0;font-weight:720;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.view-context-path i{color:#8c6e59}
.context-guide-btn{
  border:0;background:transparent;color:var(--maroon);
  min-height:26px;padding:2px 5px;
  font-size:.64rem;font-weight:800;white-space:nowrap;
}
.context-guide-btn:hover,.context-guide-btn:focus-visible{text-decoration:underline}

.guide-layer{
  width:min(94vw,520px)!important;
  border-left:7px solid var(--maroon);
  box-shadow:-18px 0 60px rgba(0,0,0,.22);
}
.guide-layer-header{
  padding:14px 16px 12px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbf8f4);
}
.guide-layer h2{
  margin:1px 0 2px;
  color:var(--maroon);
  font-family:Cinzel,Georgia,serif;
  font-size:1.24rem;
}
.guide-layer-body{
  padding:12px 14px 16px;
  background:#fcfbf8;
  overscroll-behavior:contain;
}
.guide-intent-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin-bottom:10px;
}
.guide-intent{
  border:1px solid #d7cdc2;
  border-radius:10px;
  background:#fff;
  min-height:88px;
  padding:8px 6px;
  color:#554b43;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  text-align:center;
}
.guide-intent i{font-size:1rem;color:#8c624e}
.guide-intent strong{font-size:.72rem;color:#4b2b22}
.guide-intent span{font-size:.59rem;line-height:1.18;color:#776f68}
.guide-intent:hover,.guide-intent:focus-visible{background:#f9f2e9;border-color:#bda794}
.guide-intent.active{background:#5d170e;border-color:#5d170e;color:#fff}
.guide-intent.active i,.guide-intent.active strong,.guide-intent.active span{color:#fff}

.guide-mode-body{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  min-height:164px;
  padding:12px;
  margin-bottom:10px;
}
.guide-mode-title{
  display:flex;align-items:center;gap:7px;
  color:var(--maroon);
  font-family:Cinzel,Georgia,serif;
  font-weight:800;font-size:.92rem;margin-bottom:4px
}
.guide-mode-copy{font-size:.69rem;color:#655d56;line-height:1.36;margin-bottom:9px}
.guide-path-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.guide-path-btn{
  border:1px solid #d8cec3;
  background:#fff;
  border-radius:9px;
  padding:8px;
  text-align:left;
  min-height:58px;
}
.guide-path-btn:hover,.guide-path-btn:focus-visible{background:#f9f1e8;border-color:#bda794}
.guide-path-btn strong{display:block;color:#4d1b14;font-size:.7rem}
.guide-path-btn span{display:block;color:#70675f;font-size:.61rem;line-height:1.25;margin-top:2px}

.guide-explain-list{display:grid;gap:7px}
.guide-explain-item{
  padding:8px 9px;border-radius:9px;background:#f8f5f0;border-left:4px solid #b39455
}
.guide-explain-item strong{display:block;font-size:.69rem;color:#4d2a20}
.guide-explain-item span{display:block;font-size:.62rem;color:#6e655d;line-height:1.28;margin-top:2px}

.guide-compare-form{
  display:grid;grid-template-columns:1fr auto 1fr;gap:7px;align-items:end;margin-bottom:9px
}
.guide-compare-form label{font-size:.62rem;font-weight:800;color:#665c53}
.guide-compare-vs{font-size:.62rem;font-weight:900;color:#8a7766;padding-bottom:9px}
.compare-output{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.compare-stat{
  border:1px solid #e3dcd3;border-radius:8px;background:#faf8f4;padding:7px
}
.compare-stat strong{display:block;color:#5d170e;font-size:.76rem}
.compare-stat span{display:block;color:#756d65;font-size:.58rem;margin-top:2px}

.guide-tour-card{display:grid;gap:8px}
.guide-tour-progress{display:flex;gap:4px}
.guide-tour-dot{height:5px;flex:1;border-radius:999px;background:#e1d8ce}
.guide-tour-dot.done,.guide-tour-dot.active{background:#5d170e}
.guide-tour-step{padding:9px;border-radius:9px;background:#f8f3ec}
.guide-tour-step strong{display:block;color:#4d1b14;font-size:.74rem}
.guide-tour-step span{display:block;color:#696158;font-size:.64rem;line-height:1.3;margin-top:3px}
.guide-tour-actions{display:flex;justify-content:flex-end;gap:7px}

.guide-ask-card,.guide-evidence-card{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:11px;
  margin-top:10px;
}
.guide-question-label{
  display:flex;align-items:center;gap:6px;
  font-size:.7rem;font-weight:820;color:#4f291f;margin-bottom:6px
}
.guide-question-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.guide-question-row input{font-size:.72rem}
.guide-question-examples{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.guide-question-examples button{
  border:1px solid #d7cec4;background:#faf8f5;color:#63584e;
  border-radius:999px;padding:4px 7px;font-size:.58rem;font-weight:720
}
.guide-question-examples button:hover{background:#f4eadf;color:#5d170e}
.guide-answer{
  margin-top:8px;padding:9px;border-radius:9px;
  background:#eef5f8;border:1px solid #cadce4;color:#39566a;
  font-size:.66rem;line-height:1.35
}
.guide-answer strong{color:#29485c}
.guide-answer .guide-action-link{
  display:inline-flex;margin-top:7px;border:1px solid #9fb8c5;background:#fff;
  color:#315970;border-radius:7px;padding:4px 7px;font-weight:800
}

.guide-evidence-heading{display:flex;align-items:center;gap:6px;color:#49332a;font-size:.7rem;margin-bottom:7px}
.evidence-tier{display:grid;grid-template-columns:auto 72px 1fr;align-items:center;gap:6px;margin-top:5px;font-size:.59rem;color:#6e665e}
.evidence-tier strong{color:#4c433c}
.evidence-dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.evidence-dot.canonical{background:#315f42}
.evidence-dot.verified{background:#315970}
.evidence-dot.research{background:#9a792c}

@media (max-width:760px){
  .guide-intent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .guide-intent{min-height:66px}
  .guide-path-grid{grid-template-columns:1fr}
  .guide-compare-form{grid-template-columns:1fr}
  .guide-compare-vs{display:none}
  .view-context-bar{min-height:27px}
}
@media (max-height:700px){
  .guide-intent{min-height:58px}
  .guide-intent span{display:none}
  .guide-mode-body{min-height:120px}
}


/* 5.6.1 — historical modes consolidated under one Views dropdown */
.view-nav{min-height:44px;overflow:visible;z-index:30}
.view-dropdown-wrap{min-height:44px;display:flex;align-items:center;gap:12px;padding:4px clamp(10px,1.4vw,18px)}
.views-dropdown-toggle{min-height:36px;min-width:220px;display:inline-flex;align-items:center;gap:8px;justify-content:flex-start;border:1px solid #cdbfb1;background:#fffaf3;color:var(--maroon);font-size:.73rem;font-weight:760;box-shadow:none}
.views-dropdown-toggle:hover,.views-dropdown-toggle:focus-visible{background:#f7eee4;color:var(--maroon);border-color:#aa8f79}
.views-dropdown-toggle .views-dropdown-label{color:#786b5f;font-weight:700}
.views-dropdown-toggle strong{color:var(--maroon);font-weight:850}
.views-dropdown-toggle:after{margin-left:auto}
.views-dropdown-menu{min-width:250px;padding:6px;border:1px solid #d5c8ba;border-radius:10px;box-shadow:0 14px 34px rgba(45,21,10,.18)}
.views-dropdown-menu .dropdown-item{min-height:38px;display:flex;align-items:center;gap:9px;border-radius:7px;color:#4f443a;font-size:.73rem;font-weight:720}
.views-dropdown-menu .dropdown-item i{width:18px;color:#8a6752;text-align:center}
.views-dropdown-menu .dropdown-item:hover,.views-dropdown-menu .dropdown-item:focus-visible{background:#f8f0e7;color:var(--maroon)}
.views-dropdown-menu .dropdown-item.active,.views-dropdown-menu .dropdown-item:active{background:var(--maroon);color:#fff}
.views-dropdown-menu .dropdown-item.active i,.views-dropdown-menu .dropdown-item:active i{color:#fff}
.view-dropdown-context{min-width:0;color:#746b62;font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:760px){.view-dropdown-wrap{gap:7px;padding:4px 7px}.views-dropdown-toggle{min-width:180px;max-width:65vw}.view-dropdown-context{display:none}}


/* 5.6.2 — Selected Session as first-class historical context */
.history-anchor-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:5px}
.history-anchor-primary{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:3px 5px 3px 8px;border:1px solid #d7c8b8;border-radius:10px;background:#fbf5ed}
.history-anchor-label{color:#75695d;font-size:.61rem;font-weight:820;text-transform:uppercase;letter-spacing:.055em}
.history-anchor-pill{display:inline-flex;align-items:center;justify-content:center;min-width:74px;min-height:25px;padding:3px 9px;border-radius:999px;background:var(--maroon);color:#fff;font-size:.72rem;font-weight:900;letter-spacing:.03em;box-shadow:inset 0 -1px 0 rgba(0,0,0,.16)}
.history-anchor-pill.anchor-pulse{animation:sessionAnchorPulse .72s ease-out}
.history-anchor-scope{color:#6e655c;font-size:.64rem;font-weight:690}
@keyframes sessionAnchorPulse{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(93,23,14,.28)}
  45%{transform:scale(1.05);box-shadow:0 0 0 8px rgba(93,23,14,.08)}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(93,23,14,0)}
}
[data-session].selected-session,[data-session-code].selected-session{
  outline:2px solid #8a5b44;outline-offset:2px;border-radius:8px
}
@media (max-width:760px){
  .history-anchor-strip{gap:6px}
  .history-anchor-scope{flex-basis:100%}
}


/* 5.6.3 — Search follows the active historical view */
.search-view-scope-banner{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:7px;
  padding:7px 9px;
  border:1px solid #d7c9ba;
  border-radius:9px;
  background:#fbf6ef;
  color:#64594f;
  font-size:.64rem;
}
.search-view-scope-label{
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:850;
  color:#817265;
}
#searchViewScopeName{
  color:var(--maroon);
  font-weight:900;
}
#searchViewScopeDetail{
  color:#6c6259;
}
.search-scope-btn.view-locked{
  opacity:.58;
}


/* 5.6.4 — political party color cues */
:root{
  --party-democrat:#2f6fb3;
  --party-democrat-soft:#eaf2fb;
  --party-republican:#b63a3a;
  --party-republican-soft:#fbecec;
  --party-independent:#6d6a73;
  --party-independent-soft:#f0eff2;
}
.party-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:.62rem;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
  vertical-align:middle;
}
.party-badge.compact{
  min-width:24px;
  min-height:22px;
  padding:2px 6px;
  font-size:.6rem;
}
.party-badge.party-democrat{
  color:#194c7e;
  background:var(--party-democrat-soft);
  border-color:#9fc0e2;
}
.party-badge.party-republican{
  color:#812727;
  background:var(--party-republican-soft);
  border-color:#dfa7a7;
}
.party-badge.party-independent{
  color:#4f4c54;
  background:var(--party-independent-soft);
  border-color:#c8c5cc;
}
.party-badge.party-other{
  color:#5d5147;
  background:#f5f1eb;
  border-color:#d7cec3;
}

/* subtle contextual emphasis without overriding selected/match/conflict states */
.seat-card.party-democrat:not(.selected):not(.match):not(.conflict),
.desk-card.party-democrat:not(.selected):not(.match):not(.conflict){
  box-shadow:inset 4px 0 0 var(--party-democrat);
}
.seat-card.party-republican:not(.selected):not(.match):not(.conflict),
.desk-card.party-republican:not(.selected):not(.match):not(.conflict){
  box-shadow:inset 4px 0 0 var(--party-republican);
}
.seat-card.party-independent:not(.selected):not(.match):not(.conflict),
.desk-card.party-independent:not(.selected):not(.match):not(.conflict){
  box-shadow:inset 4px 0 0 var(--party-independent);
}

/* party cues for filters/tables/chips when classes are applied dynamically */
.party-democrat.party-text{color:var(--party-democrat);font-weight:800}
.party-republican.party-text{color:var(--party-republican);font-weight:800}
.party-independent.party-text{color:var(--party-independent);font-weight:800}

.party-legend{display:inline-flex!important;align-items:center;gap:4px}
.party-dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.party-dot.democrat{background:var(--party-democrat)}
.party-dot.republican{background:var(--party-republican)}


/* 5.6.5 — Views dropdown moved into the primary top navbar */
.history-app{
  grid-template-rows:auto minmax(0,1fr) auto;
}
.view-nav{
  display:none!important;
}
.topbar-views-dropdown{
  position:relative;
  flex:0 0 auto;
}
.topbar-views-dropdown .views-dropdown-toggle{
  min-width:185px;
  min-height:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.42);
  background:rgba(255,255,255,.09);
  color:#fff;
  border-radius:.375rem;
  padding:6px 10px;
  box-shadow:none;
}
.topbar-views-dropdown .views-dropdown-toggle:hover,
.topbar-views-dropdown .views-dropdown-toggle:focus-visible,
.topbar-views-dropdown .views-dropdown-toggle[aria-expanded="true"]{
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.72);
  color:#fff;
}
.topbar-views-dropdown .views-dropdown-toggle .views-dropdown-label{
  color:rgba(255,255,255,.72);
}
.topbar-views-dropdown .views-dropdown-toggle strong{
  color:#fff;
}
.topbar-views-dropdown .views-dropdown-toggle i{
  color:#fff;
}
.topbar-views-dropdown .views-dropdown-menu{
  margin-top:6px!important;
  z-index:1100;
}
@media (max-width:980px){
  .topbar-views-dropdown .views-dropdown-toggle{
    min-width:150px;
  }
  .topbar-views-dropdown .views-dropdown-label{
    display:none;
  }
}
@media (max-width:760px){
  .topbar-views-dropdown .views-dropdown-toggle{
    min-width:46px;
    width:auto;
    max-width:180px;
  }
  .topbar-views-dropdown .views-dropdown-toggle strong{
    max-width:105px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}


/* 5.6.6 — Views left-most; Help folded into Guide */
.topbar-views-dropdown{
  order:-30;
  margin-left:0;
}
.toolbar-actions > .tool-btn-primary{
  order:-20;
}
.guide-intent-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
@media (max-width:760px){
  .guide-intent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* 5.6.7 — party-aware historical people chips */
.history-person-chip{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-width:2px!important;
  border-style:solid!important;
}
.history-person-chip .history-person-name{
  min-width:0;
}
.history-person-chip.party-democrat{
  border-color:var(--party-democrat)!important;
  background:linear-gradient(180deg,#fff,#f7fbff)!important;
  box-shadow:inset 0 0 0 1px rgba(47,111,179,.08);
}
.history-person-chip.party-republican{
  border-color:var(--party-republican)!important;
  background:linear-gradient(180deg,#fff,#fff8f8)!important;
  box-shadow:inset 0 0 0 1px rgba(182,58,58,.08);
}
.history-person-chip.party-independent{
  border-color:var(--party-independent)!important;
  background:linear-gradient(180deg,#fff,#fafafa)!important;
}
.history-person-chip.party-other{
  border-color:#cdbfb1!important;
}
.history-person-chip.party-democrat:hover,
.history-person-chip.party-democrat:focus-visible{
  background:var(--party-democrat-soft)!important;
  box-shadow:0 0 0 2px rgba(47,111,179,.13);
}
.history-person-chip.party-republican:hover,
.history-person-chip.party-republican:focus-visible{
  background:var(--party-republican-soft)!important;
  box-shadow:0 0 0 2px rgba(182,58,58,.13);
}
.history-person-chip.party-independent:hover,
.history-person-chip.party-independent:focus-visible{
  background:var(--party-independent-soft)!important;
}
.history-person-chip .party-badge.compact{
  min-width:20px;
  min-height:19px;
  padding:1px 5px;
  font-size:.54rem;
  margin-left:1px;
}
.people-card .party-key-inline{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin:0 0 8px;
  color:#71685f;
  font-size:.59rem;
}


/* 5.6.8 — Party-aware chamber desks */
.seat.party-democrat:not(.selected):not(.search-match):not(.conflict) .desk-body{
  stroke:var(--party-democrat);
  stroke-width:3.5;
}
.seat.party-republican:not(.selected):not(.search-match):not(.conflict) .desk-body{
  stroke:var(--party-republican);
  stroke-width:3.5;
}
.seat.party-independent:not(.selected):not(.search-match):not(.conflict) .desk-body{
  stroke:var(--party-independent);
  stroke-width:3.5;
}
.seat-party-mark{
  text-anchor:middle;
  dominant-baseline:middle;
  font-family:"Source Sans 3",Arial,sans-serif;
  font-weight:900;
  pointer-events:none;
}
.seat-party-mark.party-democrat{fill:var(--party-democrat)}
.seat-party-mark.party-republican{fill:var(--party-republican)}
.seat-party-mark.party-independent{fill:var(--party-independent)}
.seat-party-mark.party-other{fill:#6f665e}

/* Preserve higher-priority interaction states */
.seat.search-match .seat-party-mark,
.seat.selected .seat-party-mark,
.seat.conflict .seat-party-mark{
  font-weight:900;
}


/* 5.6.9 — clean Chamber session anchor */
.chamber-anchor-strip{
  margin-top:5px;
  margin-bottom:0;
}
.chamber-anchor-strip .history-anchor-primary{
  margin-bottom:0;
}


/* 5.6.10 — Party-aware search result cards */
.person-result{
  border-width:2px;
}
.person-result.party-democrat{
  border-color:var(--party-democrat);
  box-shadow:inset 4px 0 0 rgba(47,111,179,.13);
}
.person-result.party-republican{
  border-color:var(--party-republican);
  box-shadow:inset 4px 0 0 rgba(182,58,58,.13);
}
.person-result.party-independent{
  border-color:var(--party-independent);
  box-shadow:inset 4px 0 0 rgba(109,106,115,.12);
}
.person-result.party-other{
  border-color:var(--line);
}
.person-result-name-row{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.person-result-name-row .party-badge{
  flex:0 0 auto;
}
.person-result.party-democrat .person-result-name{
  color:#245d96;
}
.person-result.party-republican .person-result-name{
  color:#8f2d2d;
}
.person-result.party-independent .person-result-name{
  color:#55515b;
}
/* Keep text/badge visible so color is supplemental, not the only cue. */


/* 5.6.11 — redundant per-view context bar removed from all views */
.view-context-bar,
.view-context-path,
.context-guide-btn{
  display:none!important;
}


/* 5.6.12 — one dynamic scoped Search control in the top navbar */
.history-search-btn{
  display:none!important;
}
#globalSearchButton{
  min-width:118px;
  justify-content:center;
}
#globalSearchLabel{
  white-space:nowrap;
}
.history-view-actions{
  gap:8px;
}
@media (max-width:760px){
  #globalSearchButton{
    min-width:44px;
  }
  #globalSearchLabel{
    max-width:116px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}


/* 5.6.13 — People panel follows the selected timeline session */
.people-session-scope{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin:2px 0 7px;
  color:#6f665d;
  font-size:.61rem;
  font-weight:700;
}
.people-session-pill{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:2px 7px;
  border-radius:999px;
  background:#f4eee6;
  border:1px solid #d7c8b8;
  color:var(--maroon);
  font-weight:900;
}
.people-session-empty{
  display:block;
  width:100%;
  padding:10px;
  border:1px dashed #cdbfb1;
  border-radius:9px;
  background:#faf8f5;
  color:#746a61;
  font-size:.66rem;
}


/* 5.6.14 — Reset Search inside the Search layer */
.search-actions{
  gap:8px;
}
#resetSearch{
  border-color:#a88f7a;
  color:#5d170e;
  background:#fffaf4;
}
#resetSearch:hover,#resetSearch:focus-visible{
  border-color:#7f5f4a;
  background:#f5eadf;
  color:#5d170e;
}
@media (max-width:600px){
  .search-actions{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
  }
  .search-actions .btn{
    min-width:0;
    padding-left:7px;
    padding-right:7px;
  }
}


/* 5.6.16 — working Guide Tour */
.guide-tour-status{
  display:block;
  margin-top:7px;
  color:#756b62;
  font-size:.68rem;
  font-weight:700;
}
.guide-tour-destination{
  animation:guideTourDestinationPulse .9s ease-out;
}
@keyframes guideTourDestinationPulse{
  0%{box-shadow:inset 0 0 0 0 rgba(93,23,14,0)}
  35%{box-shadow:inset 0 0 0 4px rgba(93,23,14,.22)}
  100%{box-shadow:inset 0 0 0 0 rgba(93,23,14,0)}
}
@media (prefers-reduced-motion:reduce){
  .guide-tour-destination{animation:none}
}


/* 5.11.2 — selected-session timeline focus + scrollbar below date axis */
.timeline-scroll{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  scrollbar-gutter:stable;
  padding-bottom:3px;
}
.timeline-track{
  width:max(100%,calc(var(--timeline-count,1) * 7px));
  min-width:100%;
}
.timeline-scroll .view-trend{
  overflow:visible;
  width:100%;
  min-width:0;
  padding-bottom:8px;
}
.timeline-scroll .timeline-axis{
  display:flex;
  justify-content:space-between;
  margin-top:4px;
  padding:0 4px 5px;
  color:#867c72;
  font-size:.62rem;
  pointer-events:none;
  min-height:18px;
}
.timeline-scroll::-webkit-scrollbar{
  height:11px;
}
.timeline-scroll::-webkit-scrollbar-track{
  background:#efe9e1;
  border-radius:999px;
}
.timeline-scroll::-webkit-scrollbar-thumb{
  background:#aa9584;
  border:2px solid #efe9e1;
  border-radius:999px;
}
.timeline-scroll::-webkit-scrollbar-thumb:hover{
  background:#826854;
}
.timeline-scroll{
  scrollbar-color:#aa9584 #efe9e1;
  scrollbar-width:auto;
}
.timeline-session.current{
  box-shadow:0 0 0 2px rgba(47,109,139,.17);
}


/* 5.12.11 — Senator photo thumbnails */
.senator-photo{flex:0 0 auto;display:block;object-fit:cover;object-position:center top;background:#efe8df;border:1px solid #d5c8bb;box-shadow:0 1px 4px rgba(45,21,10,.08)}
.senator-photo-chip{width:42px;height:52px;border-radius:8px}
.senator-photo-result{width:62px;height:78px;border-radius:10px}
.senator-photo-modal{width:86px;height:108px;border-radius:12px}
.history-person-chip{display:flex;align-items:center;justify-content:flex-start;gap:9px;text-align:left;min-height:58px}
.history-person-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.history-person-name{line-height:1.12}
.person-result-profile-with-photo{display:grid;grid-template-columns:62px minmax(0,1fr);gap:12px;align-items:start}
.person-result-profile-copy{min-width:0}
.member-heading-with-photo{display:grid;grid-template-columns:86px minmax(0,1fr);gap:14px;align-items:start}
.member-heading-copy{min-width:0}
@media(max-width:700px){
  .senator-photo-result{width:52px;height:66px}
  .person-result-profile-with-photo{grid-template-columns:52px minmax(0,1fr);gap:9px}
  .senator-photo-modal{width:70px;height:88px}
  .member-heading-with-photo{grid-template-columns:70px minmax(0,1fr);gap:10px}
}


/* 5.12.12 — view scoping and Full Historical Record portrait */
.history-person-chip{min-height:0}
.history-person-copy{gap:3px}
.senator-photo-record{width:72px;height:90px;border-radius:10px}
.record-modal-header{align-items:flex-start}
.record-modal-heading{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:start;min-width:0}
.record-modal-heading-copy{min-width:0;padding-top:2px}
@media(max-width:700px){
  .senator-photo-record{width:58px;height:73px}
  .record-modal-heading{grid-template-columns:58px minmax(0,1fr);gap:9px}
}


/* 5.12.13 — active View-search feedback */
.view-search-active{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  padding:7px 10px;
  border:1px solid #d7c3ad;
  border-radius:9px;
  background:#fbf4e9;
  color:#5d170e;
  font-size:.76rem;
}
.view-search-active span{
  color:#6d625a;
  font-weight:500;
}


/* 5.12.14 — historical View Results matrix access */
.history-results-button{
  min-height:36px;
  max-width:300px;
}
.history-results-button span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:900px){
  .history-results-button{
    max-width:190px;
  }
}


/* 5.12.16 — State Map rendering */
.geo-map-wrap{
  min-height:360px;
  background:#f4f1eb;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.geo-map-image{
  display:block;
  width:100%;
  height:auto;
  min-height:360px;
  max-height:520px;
  object-fit:contain;
  background:#f4f1eb;
}


/* 5.12.17 — District map visibility */
.geo-map-wrap{
  min-height:360px;
  background:#fffaf4!important;
  border-top:1px solid #dfd1c3;
  border-bottom:1px solid #dfd1c3;
}
.geo-map-image{
  background:#fffaf4!important;
  filter:none!important;
}
.geo-map-fallback{
  background:#fffaf4;
  color:#5d170e;
}


/* 5.12.18 — selected-session District representation */
.district-selected-session-list{margin-top:8px}
.district-selected-session-row{align-items:center}
.district-selected-session-row .mini-session-chip.active{
  background:#fae8d0;
  border-color:#b39455;
  color:#5d170e;
  font-weight:700;
}


/* 5.12.19 — selected-session search defaults + enforced View filters */
.search-view-fixed-filters{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 10px;
  padding:8px 10px;
  background:#fbf4e9;
  border:1px solid #dbc7b3;
  border-radius:9px;
}
.search-view-filter-chip{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:3px 8px;
  border-radius:999px;
  background:#fae8d0;
  border:1px solid #b39455;
  color:#5d170e;
  font-size:.72rem;
  font-weight:700;
}
.field-view-fixed{
  position:relative;
}
.field-view-fixed .form-select{
  background-color:#f8f0e6;
  border-color:#b39455;
  color:#5d170e;
  opacity:1;
}
.view-filter-lock{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:3px;
  color:#745440;
  font-size:.66rem;
  font-weight:700;
}
.results-filter-chip.view-filter{
  background:#fae8d0;
  border-color:#b39455;
  color:#5d170e;
}


/* 5.12.21 — first-paint View fidelity */
.history-view-surface > .history-view-body > .view-loading{
  min-height:220px;
}


/* 5.12.25 — stable Census generalized state map */
.geo-map-image{
  background:#fffaf4!important;
  filter:contrast(1.35) saturate(.85)!important;
}


/* 5.12.26 — readable State Map + selected district overlay */
.geo-map-wrap{position:relative;min-height:360px;background:#fffaf4!important}
.geo-map-stack{
  position:relative;width:100%;min-height:360px;
  background:radial-gradient(circle at 50% 42%,rgba(250,232,208,.48),rgba(255,250,244,.96) 68%),#fffaf4;
  overflow:hidden;
}
.geo-map-stack .geo-map-image{
  display:block;width:100%;height:auto;min-height:360px;max-height:520px;object-fit:contain;background:transparent!important;
}
.geo-map-stack .geo-map-base{
  position:relative;z-index:1;opacity:.92;
  filter:grayscale(1) contrast(2.25) brightness(.56)!important;
}
.geo-map-stack .geo-map-selected{
  position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:contain;opacity:1;pointer-events:none;
  filter:brightness(0) saturate(100%) invert(12%) sepia(62%) saturate(3492%) hue-rotate(352deg) brightness(84%) contrast(96%)
         drop-shadow(0 0 1px #5d170e) drop-shadow(0 0 2px rgba(93,23,14,.72))!important;
}
.geo-map-selected-badge{
  position:absolute;z-index:3;top:12px;left:12px;display:flex;align-items:center;gap:7px;
  padding:6px 10px;border:1px solid rgba(93,23,14,.32);border-radius:999px;background:rgba(255,250,244,.95);
  color:#5d170e;box-shadow:0 2px 8px rgba(45,21,10,.12);font-size:.72rem;font-weight:700;pointer-events:none;
}
.geo-map-selected-swatch{width:18px;height:0;border-top:4px solid #5d170e;border-radius:999px}
.geo-map-legend{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:7px 10px 3px;background:#fffaf4;color:#5f554d;font-size:.68rem}
.geo-map-legend span{display:inline-flex;align-items:center;gap:6px}
.geo-map-legend-line{display:inline-block;width:21px;height:0;border-top:2px solid #5e5a56}
.geo-map-legend-line.selected{border-top:4px solid #5d170e}
.geo-provenance{background:#fffaf4}
@media(max-width:700px){
  .geo-map-selected-badge{top:8px;left:8px;font-size:.66rem}
  .geo-map-legend{gap:9px}
}


/* 5.12.27 — historical boundary plan registry */
.geo-boundary-plan-summary{
  display:grid;
  grid-template-columns:1.3fr .9fr 1.2fr;
  gap:8px;
  padding:9px 10px;
  border-top:1px solid #eadfd3;
  border-bottom:1px solid #eadfd3;
  background:#fffdf9;
}
.geo-boundary-plan-summary>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.geo-boundary-plan-summary span{font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;color:#786b61}
.geo-boundary-plan-summary strong{font-size:.78rem;color:#5d170e}
.geo-boundary-plan-badge{
  position:absolute;z-index:3;top:12px;right:12px;
  display:flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  background:rgba(255,250,244,.95);border:1px solid #b39455;
  color:#5d170e;font-size:.69rem;font-weight:700;
  box-shadow:0 2px 8px rgba(45,21,10,.10);
}
.historical-plan-unavailable{
  min-height:390px;background:#fffaf4;color:#5d170e;
}
.geo-unverified-session{
  margin-top:8px;padding:5px 9px;border:1px solid #d9c2a8;border-radius:999px;
  background:#fae8d0;font-weight:700;font-size:.72rem;
}
@media(max-width:800px){
  .geo-boundary-plan-summary{grid-template-columns:1fr}
  .geo-boundary-plan-badge{top:auto;bottom:10px;right:10px}
}

/* 5.12.29 — full historical View timelines */
.timeline-note{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.timeline-full-history-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border:1px solid #d6c2ad;border-radius:999px;background:#fff8ef;color:#5d170e;font-size:.66rem;font-weight:700;white-space:nowrap}

/* 5.12.30 — View-owned Search defaults are isolated to their View */
.view-filter-lock{white-space:nowrap}

/* 5.12.31 — full historical View metrics */
.view-metric-scope-note{
  display:flex;align-items:center;gap:6px;
  margin:0 0 7px;
  color:#6b5a4c;
  font-size:.68rem;
  font-weight:700;
}
.view-metric-scope-note i{color:#5d170e}


/* 5.13.0 — Quickstart default landing */
.quickstart-top-search{display:flex;align-items:center;gap:6px;min-width:min(360px,34vw)}
.quickstart-top-search .form-control{height:42px;min-width:170px;border:1px solid rgba(255,255,255,.72);background:#fffaf4;color:#2d150a;font-weight:600}
.quickstart-top-search .form-control::placeholder{color:#7b6b5f}
.quickstart-surface{height:100%;overflow:auto;padding:20px 24px 26px;background:linear-gradient(180deg,#fffaf4 0%,#f7f1e9 100%)}
.quickstart-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:stretch;margin-bottom:18px}
.quickstart-hero-copy,.quickstart-card,.quickstart-guide-card,.quickstart-boundary-card{border:1px solid #dccfc0;border-radius:14px;background:rgba(255,255,255,.92);box-shadow:0 5px 18px rgba(45,21,10,.06)}
.quickstart-hero-copy{padding:24px 26px}
.quickstart-hero-copy h1{margin:.15rem 0 .45rem;color:#5d170e;font-family:Cinzel,Georgia,serif;font-size:clamp(1.8rem,3vw,2.8rem)}
.quickstart-hero-copy p{max-width:900px;margin:0;color:#5d5148;font-size:1rem;line-height:1.48}
.quickstart-search-hint{display:flex;align-items:flex-start;gap:9px;margin-top:16px;padding:10px 12px;border-left:4px solid #5d170e;border-radius:8px;background:#fbf4e9;color:#4d3d33}
.quickstart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.quickstart-card{appearance:none;text-align:left;padding:18px;color:#38271f;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.quickstart-card:hover,.quickstart-card:focus-visible{transform:translateY(-2px);border-color:#b39455;box-shadow:0 8px 20px rgba(45,21,10,.10);outline:none}
.quickstart-card>i{display:inline-grid;place-items:center;width:34px;height:34px;margin-bottom:10px;border-radius:50%;background:#fae8d0;color:#5d170e}
.quickstart-card strong{display:block;margin-bottom:5px;color:#5d170e;font-family:Cinzel,Georgia,serif;font-size:.95rem}
.quickstart-card span{display:block;min-height:54px;color:#65574d;font-size:.82rem;line-height:1.4}
.quickstart-card em{display:block;margin-top:10px;color:#5d170e;font-size:.72rem;font-style:normal;font-weight:700}
.quickstart-bottom{display:grid;grid-template-columns:1.4fr .8fr;gap:12px}
.quickstart-guide-card,.quickstart-boundary-card{padding:18px 20px}
.quickstart-guide-card{display:flex;align-items:center;justify-content:space-between;gap:18px}
.quickstart-guide-card h2{margin:.1rem 0 .25rem;color:#5d170e;font-family:Cinzel,Georgia,serif;font-size:1.15rem}
.quickstart-guide-card p,.quickstart-boundary-card p{margin:0;color:#65574d;font-size:.82rem;line-height:1.42}
.quickstart-boundary-card strong{display:block;margin-bottom:5px;color:#5d170e;font-family:Cinzel,Georgia,serif}
@media(max-width:1000px){.quickstart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quickstart-hero,.quickstart-bottom{grid-template-columns:1fr}.quickstart-top-search{min-width:260px}}
@media(max-width:700px){.quickstart-surface{padding:14px}.quickstart-grid{grid-template-columns:1fr}.quickstart-top-search{min-width:0;flex:1}.quickstart-top-search .form-control{min-width:0}.quickstart-guide-card{align-items:flex-start;flex-direction:column}}

/* 5.13.2 — all-session result cards */
.person-result-service.all-session-service{
  align-self:stretch;
}
.person-result-service.all-session-service .service-history-block{
  margin-top:0;
}


/* 5.13.3 — clickable member card controls in Results matrix */
.member-card-photo-button{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  border-radius:10px;
  cursor:pointer;
  line-height:0;
}
.member-card-photo-button:focus-visible{
  outline:3px solid #2f6fb3;
  outline-offset:3px;
}
.person-result-name.member-card-open{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  color:inherit;
  font:inherit;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}
.person-result-name.member-card-open:hover,
.person-result-name.member-card-open:focus-visible{
  color:#5d170e;
  text-decoration:underline;
  text-underline-offset:2px;
}
.person-result-name.member-card-open:focus-visible{
  outline:2px solid #2f6fb3;
  outline-offset:2px;
  border-radius:3px;
}
.person-result-profile .member-card-photo-button img{
  cursor:pointer;
}


/* 5.13.7 — 2021 Science Museum chamber context */
.covid-chamber-context{
  position:absolute;
  left:50%;
  top:43%;
  z-index:5;
  width:min(560px,72%);
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:16px 20px 14px;
  border:1px solid rgba(93,23,14,.34);
  border-radius:14px;
  background:rgba(255,250,244,.96);
  box-shadow:0 12px 34px rgba(45,21,10,.16);
  color:#41372f;
  text-align:center;
  pointer-events:auto;
}
.covid-chamber-context.d-none{display:none!important}
.covid-context-kicker{
  display:flex;
  align-items:center;
  gap:7px;
  color:#5d170e;
  font-size:.68rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.covid-chamber-context>strong{
  font-family:Cinzel,Georgia,serif;
  color:#5d170e;
  font-size:clamp(1rem,1.7vw,1.35rem);
}
.covid-chamber-context>span{
  max-width:52ch;
  font-size:.79rem;
  line-height:1.4;
}
.covid-context-data-note{
  color:#6c5f54;
  font-size:.73rem!important;
}
.covid-chamber-context>a{
  margin-top:2px;
  color:#2f6fb3;
  font-size:.72rem;
  font-weight:700;
  text-decoration:none;
}
.covid-chamber-context>a:hover,
.covid-chamber-context>a:focus-visible{
  text-decoration:underline;
}
#firstUseHint.covid-context-suppressed{
  display:none!important;
}
@media(max-width:760px){
  .covid-chamber-context{
    width:min(92%,560px);
    top:45%;
    padding:13px 14px 12px;
  }
  .covid-chamber-context>span{font-size:.74rem}
}


/* 5.14.0 — career timeline Matrix cards */
.career-timeline{grid-column:1/-1;margin:2px 12px 8px;padding:9px 10px 10px;border-top:1px solid #eadfd3;border-bottom:1px solid #eadfd3;background:#fffdf9}
.career-timeline-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px;color:#5d170e;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.055em}
.career-timeline-heading>span{display:flex;align-items:center;gap:6px}.career-timeline-heading small{color:#75685e;font-size:.61rem;font-weight:600;text-transform:none;letter-spacing:0}
.career-row{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;align-items:start;padding:4px 0}.career-row+.career-row{border-top:1px dotted #e2d5c7}
.career-row-label{padding-top:5px;color:#6e5b4c;font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.career-segments{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.career-segment{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:4px 7px;border:1px solid #d8c5b2;border-radius:8px;background:#fff8ef;color:#493d34;font-size:.65rem;line-height:1.15}
.career-segment strong{color:#5d170e;font-size:.67rem}.career-segment>span{color:#74675d;white-space:nowrap}.career-arrow{color:#9d8068;font-size:.72rem}
@media(max-width:720px){.career-row{grid-template-columns:1fr}.career-row-label{padding-top:0}.career-timeline-heading{align-items:flex-start;flex-direction:column}}

/* 5.14.1 — identity provenance note */
.career-source-variant-note{
  grid-column:1/-1;
  display:flex;
  align-items:flex-start;
  gap:6px;
  margin:0 12px 6px;
  padding:6px 8px;
  border:1px solid #d6c4b2;
  border-radius:8px;
  background:#fff9f1;
  color:#6b5b4e;
  font-size:.64rem;
  line-height:1.3;
}
.career-source-variant-note i{color:#5d170e;margin-top:1px}

/* 5.15.0 — Clerk / Lieutenant Governor officeholder layers */
.dais .dais-officeholder{cursor:default;outline:none}.dais .dais-officeholder.has-officeholder{cursor:pointer}.dais .dais-officeholder.has-officeholder:hover rect,.dais .dais-officeholder.has-officeholder:focus-visible rect{stroke:#5d170e;stroke-width:3;filter:drop-shadow(0 2px 3px rgba(45,21,10,.2))}.dais .dais-officeholder.needs-review rect{stroke:#a77924;stroke-dasharray:4 3}.dais .dais-role-title{font-family:Source Sans 3,Arial,sans-serif;font-weight:800;letter-spacing:.06em;fill:#735e4c;pointer-events:none}.dais .dais-role-name{font-family:Cinzel,Georgia,serif;font-weight:700;fill:#3f3128;pointer-events:none}.officeholder-panel .member-heading{border-bottom-color:#dac7b5}.officeholder-panel .member-summary span:first-child{font-weight:700}.officeholder-panel .detail-wide .detail-value a{overflow-wrap:anywhere}


/* 5.15.4 — historical visualization officeholder summary panels */
.view-officeholder-card{
  position:relative;
}
.view-officeholder-card.has-officeholder{
  cursor:pointer;
}
.view-officeholder-card.has-officeholder:hover,
.view-officeholder-card.has-officeholder:focus{
  border-color:#b39455;
  box-shadow:0 0 0 2px rgba(179,148,85,.16),0 4px 14px rgba(45,21,10,.08);
  outline:none;
}
.view-stat-officeholder-name{
  font-size:clamp(1rem,1.45vw,1.38rem);
  line-height:1.08;
  overflow-wrap:anywhere;
}
.view-stat-officeholder-status{
  font-size:clamp(1rem,1.35vw,1.3rem);
  line-height:1.08;
}
.view-officeholder-card.needs-review .view-stat-value{
  color:#8a5b12;
}
.view-officeholder-card.not-applicable .view-stat-value,
.view-officeholder-card.unassigned .view-stat-value{
  color:var(--muted);
}
