:root{--ink:#1d2433;--muted:#5b6475;--line:#d9dde5;--bg:#f5f6f8;--card:#fff;--accent:#1f4e8c;--accent-ink:#fff;--err:#a12b2b;--err-bg:#fbeaea;--ok:#24683a;--ok-bg:#e8f4ec;--warn:#7a5a00;--warn-bg:#fff6dc}
*{box-sizing:border-box}
body{margin:0;font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}
.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem 1.5rem;background:#fff;color:var(--accent);flex-wrap:wrap;border-bottom:4px solid #c9a227;box-shadow:0 1px 0 var(--line)}
.top a{color:var(--accent);text-decoration:none;font-weight:600}.top a:hover{text-decoration:underline}.top button.link{color:var(--accent)}
.brand{display:block;line-height:0}.brand img{height:60px;width:auto;display:block}.brand:hover{text-decoration:none}
@media (max-width:600px){.brand img{height:44px}}
.top nav{display:flex;gap:1.1rem;align-items:center;flex-wrap:wrap}
main{max-width:1100px;margin:1.5rem auto;padding:0 1rem}
h1{font-size:1.5rem;margin:.2rem 0 1rem}h2{font-size:1.15rem;margin:.2rem 0 .75rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:1.25rem 1.5rem;margin-bottom:1rem}
.card.narrow{max-width:480px;margin:2rem auto}.card.muted{color:var(--muted)}
label{display:block;margin:.6rem 0;font-weight:600}
label.check{font-weight:400;display:flex;gap:.5rem;align-items:center}
input,select{display:block;width:100%;margin-top:.25rem;padding:.55rem .6rem;font:inherit;border:1px solid #b9bfca;border-radius:6px;background:#fff}
input[type=checkbox]{width:auto;display:inline;margin:0}
input:focus,select:focus,button:focus,a:focus{outline:3px solid #8fb3e8;outline-offset:1px}
button,.button{display:inline-block;margin-top:.5rem;padding:.55rem 1.1rem;font:inherit;font-weight:600;color:var(--accent-ink);background:var(--accent);border:0;border-radius:6px;cursor:pointer;text-decoration:none}
button.small{padding:.3rem .7rem;margin:0;font-size:.9rem}
button.link{background:none;color:inherit;padding:0;margin:0;font-weight:400;text-decoration:underline}
form.inline{display:inline}
.small{font-size:.9rem;color:var(--muted)}
.flash{padding:.75rem 1rem;border-radius:6px;margin-bottom:1rem;border:1px solid}
.flash ul{margin:0;padding-left:1.2rem}
.flash.error{background:var(--err-bg);color:var(--err);border-color:#e6b5b5}
.flash.success{background:var(--ok-bg);color:var(--ok);border-color:#b6d9c1}
.flash.warn{background:var(--warn-bg);color:var(--warn);border-color:#ecd890}
.flash.info{background:#eaf0f9;color:#24456f;border-color:#bfd0ea}
.secret{font:1.15rem/1.6 ui-monospace,Consolas,monospace;letter-spacing:.05em;background:var(--bg);border:1px dashed var(--line);padding:.5rem .75rem;margin:.4rem 0;word-break:break-all}
ul.codes{columns:2;font:1.1rem/1.9 ui-monospace,Consolas,monospace;list-style:none;padding:1rem;background:var(--bg);border-radius:6px}
table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);border-radius:8px;overflow:hidden}
th,td{padding:.55rem .7rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{background:#eef1f5;font-size:.9rem}
table.compact td,table.compact th{padding:.35rem .5rem;font-size:.92rem}
tr.inactive td{color:var(--muted)}
td.actions form{display:flex;gap:.4rem}td.actions select{margin:0;width:auto}
td.details{max-width:320px;word-break:break-word;font-size:.85rem}
.tag{display:inline-block;padding:.05rem .45rem;margin:.1rem;border-radius:4px;background:var(--accent);color:#fff;font-size:.8rem}
.tag.light{background:#e3e9f2;color:var(--ink)}
.row{display:flex;gap:1rem;align-items:flex-end;flex-wrap:wrap}.row h1{margin-right:auto}.row .grow{flex:1}
.row label{margin:0}
fieldset{border:1px solid var(--line);border-radius:6px;margin:1rem 0;padding:.5rem 1rem}
.picklist{display:inline-block;vertical-align:top;min-width:260px;margin:.5rem 1.5rem .5rem 0}
.picklist label.check{margin:.25rem 0}
progress{width:100%;height:1.2rem}
button.secondary{background:#e3e9f2;color:var(--ink)}
table.results th{width:60%;font-weight:600;background:none}
details summary{cursor:pointer;margin:.5rem 0}
code{background:var(--bg);padding:0 .25rem;border-radius:3px}
textarea{display:block;width:100%;margin-top:.25rem;padding:.55rem .6rem;font:inherit;border:1px solid #b9bfca;border-radius:6px}
.tabs{display:flex;gap:.25rem;flex-wrap:wrap;margin-bottom:.75rem}
.tabs a{padding:.4rem .8rem;border-radius:6px;text-decoration:none;color:var(--ink);background:#e3e9f2}
.tabs a.on{background:var(--accent);color:#fff}
.status{display:inline-block;padding:.1rem .5rem;border-radius:4px;font-size:.85rem;background:#e3e9f2}
.s-open{background:#e8f0fb;color:#1f4e8c}.s-in_progress{background:#fff6dc;color:#7a5a00}
.s-waiting_agency,.s-waiting_constituent{background:#f3eafb;color:#5b2d82}.s-closed{background:#eceff3;color:#5b6475}
.tag.urgent{background:#a12b2b}.tag.high{background:#b06a00}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1rem}.cols .card{margin-bottom:0}
.pre{white-space:pre-wrap}
ol.timeline{list-style:none;padding:0;margin:0}ol.timeline li{border-left:3px solid var(--line);padding:.25rem 0 .75rem .75rem}
ol.timeline li.t-transfer,ol.timeline li.t-assignment{border-left-color:#5b2d82}ol.timeline li.t-closed{border-left-color:var(--ok)}
ol.timeline li.t-agency_contact{border-left-color:#b06a00}
a.button.small{padding:.3rem .7rem;font-size:.9rem;margin:0}
h1{margin-right:auto}
/* small buttons keep button colors (the .small text style would otherwise turn them grey) */
button.small,a.button.small{color:var(--accent-ink)}
button.secondary,button.secondary.small{color:var(--ink)}
.cols{margin-bottom:1rem}
.qr{margin:.75rem 0}.qr svg{display:block;max-width:100%;height:auto;border:1px solid var(--line,#ddd)}
details{margin:.5rem 0}details summary{cursor:pointer;color:var(--accent,#1a4f8b)}
.card.danger{border-color:#c0392b}.card.danger h2{color:#c0392b}button.danger{background:#c0392b;color:#fff;border-color:#c0392b}
form.inline-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.5rem 0;padding:.5rem 0;border-bottom:1px solid var(--line)}form.inline-row select{width:auto}
.vote{border-top:1px solid var(--line);padding:.4rem 0}.vote-line{white-space:pre-wrap;line-height:1.5}
.note{border-top:1px solid var(--line);padding:.4rem 0}
.board{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.6rem;padding-bottom:.5rem}
.board-col{background:#eef1f5;border-radius:8px;padding:.5rem;min-height:120px}.board-col h3{font-size:.85rem;margin:.1rem 0 .5rem}
.board-card{display:block;background:#fff;border:1px solid var(--line);border-left:4px solid #9aa5b5;border-radius:6px;padding:.45rem .5rem;margin-bottom:.45rem;color:var(--ink);text-decoration:none;font-size:.88rem}
.board-card.top{border-left-color:#a12b2b}.board-card.high{border-left-color:#b06a00}.board-card .small{display:block;margin-top:.2rem}
.tag.top{background:#a12b2b}.tag.normal{background:#7a8494}.note.floor{background:#f7f8fb}
.tag.pos-support{background:#2e7d32}.tag.pos-oppose{background:#a12b2b}.tag.pos-no_position{background:#6b7280}
.appointees h2{font-size:1.05rem}.appointees table{margin:0;table-layout:fixed;width:100%}.appointees th:nth-child(1){width:24%}.appointees th:nth-child(2){width:44%}.appointees th:nth-child(3){width:14%}
.nowrap{white-space:nowrap}details.inline{display:inline-block;margin-left:.25rem}details.inline[open]{display:block;margin-top:.4rem}
a.button.secondary{background:#e3e9f2;color:var(--ink)}.agenda-day h2{margin:0}.agenda-day .row{align-items:center;justify-content:space-between}
.print-table{width:100%;border-collapse:collapse}.print-table th,.print-table td{border:1px solid #999;padding:.35rem .5rem;text-align:left;vertical-align:top}
@media print{header.top,.no-print,.flash,footer{display:none!important}body{background:#fff}main,.wrap{max-width:none;padding:0;margin:0}.print-sheet{font-size:11pt}}
[hidden]{display:none!important}
.cal-head{align-items:center;gap:.75rem}.cal-head h2{margin:0;min-width:10rem;text-align:center}
table.month{table-layout:fixed;width:100%;border-collapse:collapse}table.month th{text-align:center}
table.month td{vertical-align:top;height:6.5rem;border:1px solid var(--line);padding:.25rem;font-size:.85rem;background:#fff}
table.month td.pad{background:#f6f7f9}table.month td.session{background:#fff8cc}table.month td.holiday{background:#eef2f7}
table.month td.today{outline:2px solid var(--accent);outline-offset:-2px}.dnum{font-weight:700}
.tag-s{font-size:.7rem;color:#7a6400;text-transform:uppercase;letter-spacing:.03em}.tag-h,.tag-o{font-size:.75rem;color:#4a5568}
.out{margin-top:.2rem;padding:.1rem .3rem;border-radius:4px;background:#e3e9f2}.out.pending{background:#fff;border:1px dashed #9aa5b4}
.menubar{display:flex;gap:.2rem;align-items:center;flex-wrap:wrap}
.menubar .top-item{display:inline-block;padding:.45rem .7rem;border-radius:6px;color:var(--accent);font-weight:600;text-decoration:none;cursor:pointer;list-style:none}
.menubar .top-item:hover,.menubar .top-item.on{background:#eef2f7;text-decoration:none}
.menubar summary.top-item::-webkit-details-marker{display:none}.menubar summary.top-item::after{content:" \25BE";font-size:.75em}
details.menu{position:relative}details.menu>div{position:absolute;top:calc(100% + .3rem);left:0;z-index:20;min-width:12rem;background:#fff;
border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:.35rem;display:flex;flex-direction:column}
details.menu.right>div{left:auto;right:0}details.menu>div a,details.menu>div button.link{display:block;padding:.45rem .7rem;border-radius:5px;color:var(--ink);font-weight:500;text-decoration:none;text-align:left;width:100%}
details.menu>div a:hover,details.menu>div button.link:hover{background:#eef2f7}details.menu form{margin:0}
table.perms td,table.perms th{text-align:center;vertical-align:middle}table.perms td:first-child,table.perms th:first-child{text-align:left}
.report tr.total td{font-weight:700;border-top:2px solid var(--line)}
.dash{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1rem}.dash .card{margin:0}.dash h2{font-size:1.05rem;margin-top:0}
.dash ul{margin:.3rem 0 0;padding-left:1.1rem}.dash .big{font-size:1.8rem;font-weight:700;line-height:1}
.checks{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem}label.inline{display:inline-flex;gap:.35rem;align-items:center;font-weight:400;margin:0}
.speakers .speaker{display:grid;grid-template-columns:1.2fr 1.4fr .9fr;gap:.5rem;border-top:1px dashed var(--line);padding:.4rem 0}
.speakers .speaker label{margin:0}.speakers .speaker .wide{grid-column:1/-1}
.note ul.pc{margin:.2rem 0 .3rem 1.1rem;padding:0}.note h4{margin:.5rem 0 .1rem;font-size:.95rem}
.note details.versions{margin:.3rem 0}.note details.versions .old{border-left:3px solid var(--line);padding-left:.6rem;margin:.4rem 0;color:#444}
.tag.pos-neutral,.tag.pos-none{background:#6b7280}
/* Phase 10B.2: fiscal notes on the bill page */
table.fiscal td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
table.fiscal th{text-align:left}
.fiscal-row{font-variant-numeric:tabular-nums;margin:.15rem 0 .15rem 1rem}
#fiscal h3{margin-top:1rem}
/* Phase 10B.3: agenda comments and published agendas */
.agenda-comment{border-left:3px solid #c9d3e0;padding:.2rem .6rem;margin:.4rem 0 0}
.agenda-comment p{margin:.2rem 0}
.agenda-comment .small{color:#555}
table.published td.result{white-space:nowrap}
.version-note{color:#7a5a00}
/* Phase 10B.4: Agenda Comments preview, laid out like the document */
.agenda-comments-doc{max-width:48rem;font-size:1rem;line-height:1.45}
.agenda-comments-doc .center{text-align:center;margin:.2rem 0}
.agenda-comments-doc h2.center{font-size:1.15rem;margin-bottom:1.2rem}
.ac-item{display:grid;grid-template-columns:3.2rem 1fr;margin-top:1rem}
.ac-item p{margin:0 0 .6rem}
.ac-field{display:grid;grid-template-columns:9rem 1fr;margin:0 0 .6rem 3.2rem}
.ac-in{margin:0 0 .6rem 3.2rem}
ul.ac-in{padding-left:1.4rem}
.ac-label{margin-bottom:.1rem}
.ac-rule{border:0;border-top:2px solid #222;margin:1rem 0 1rem 3.2rem}
.ac-table td{padding:0 1.2rem 0 0}
@media print{.agenda-comments-doc{border:0;box-shadow:none}}
/* Phase 9D: checking a nominee's questionnaire beside the scan */
.check-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start}
.check-grid .scan{position:sticky;top:.5rem;max-height:96vh;overflow:auto;border:1px solid #ccd;background:#fff}
.check-grid .scan img{display:block;width:100%;height:auto;border-bottom:1px solid #ccd}
.check-grid textarea.table-edit{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.85rem;white-space:pre}
.flagged{background:#fff4d6;border-left:3px solid #d99a00;padding-left:.4rem}
@media (max-width:900px){.check-grid{grid-template-columns:1fr}.check-grid .scan{position:static;max-height:60vh}}
/* UAT change 4: case activity report, printed landscape */
.note-picks label.check{display:block;margin:.15rem 0}.note-picks,.office-picks{border:1px solid var(--line);border-radius:6px;padding:.5rem .75rem;margin:.5rem 0;display:flex;flex-wrap:wrap;gap:.25rem 1.25rem}
.office-picks legend{font-weight:600;padding:0 .25rem}
.case-report table.case-list td{vertical-align:top}.case-report table.case-list th:nth-child(3){width:34%}.case-report .office-cases{margin-top:1.25rem}
@page caselandscape{size:letter landscape;margin:.5in}
@media print{.case-report{page:caselandscape;font-size:9pt}.case-report h1{font-size:15pt}.case-report h2{font-size:12pt;margin:.8rem 0 .3rem}
 .case-report table{width:100%;border-collapse:collapse}.case-report th,.case-report td{border:1px solid #999;padding:2px 4px}
 .case-report thead{display:table-header-group}.case-report h2{break-after:avoid}.case-report tr{break-inside:avoid}.case-report a{color:#000;text-decoration:none}}
/* UAT change 4, patch 2: each case as its own section, not a table row */
.case-block{border-top:1px solid var(--line);padding:.6rem 0 .7rem}.case-block:last-child{border-bottom:1px solid var(--line)}
.cb-head{display:flex;align-items:baseline;gap:1rem}.cb-num{font-weight:700;min-width:6.5rem}.cb-who{font-weight:600;flex:1}
.cb-status{font-size:.85rem;padding:.1rem .5rem;border-radius:999px;background:#e8eef7;white-space:nowrap}.is-closed .cb-status{background:#e6f2e8}
.cb-subject{font-weight:600;margin:.25rem 0 .1rem 7.5rem}.cb-summary{margin:.1rem 0 .35rem 7.5rem;color:#333}
.cb-facts{display:flex;flex-wrap:wrap;gap:.2rem 1.6rem;margin:0 0 0 7.5rem;font-size:.85rem}.cb-facts div{display:flex;gap:.35rem}
.cb-facts dt{color:#666;font-weight:400}.cb-facts dd{margin:0;font-weight:600}
@media print{.case-block{break-inside:avoid;padding:.35rem 0 .45rem}.cb-status{border:1px solid #999;background:none!important}
 .cb-subject,.cb-summary,.cb-facts{margin-left:6.2rem}.cb-num{min-width:5.5rem}
 .case-report .cb-head{font-size:11pt}.case-report .cb-subject{font-size:10pt}.case-report .cb-summary{font-size:9.5pt}.case-report .cb-facts{font-size:8.5pt}
 .case-report .cb-status{font-size:8.5pt}.case-report .office-cases h2{break-after:avoid}.case-report .cases-start{break-before:page}}
/* UAT change 6: bill synopsis to 7 lines, expandable */
.synopsis{margin:.2rem 0 .3rem}.synopsis.clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;line-clamp:7;overflow:hidden;max-height:10.5em;max-height:7lh}
button.link-button,button.link-button.small{background:none;border:0;padding:0;margin:0 0 .6rem;color:var(--accent);font-weight:600;text-decoration:underline;cursor:pointer}
@media print{.synopsis.clamped{display:block;-webkit-line-clamp:unset;overflow:visible}[data-clamp-toggle]{display:none}}
/* UAT change 7: whip count */
details.whip-box>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
details.whip-box>summary::-webkit-details-marker{display:none}details.whip-box>summary h2{margin:0;color:var(--accent)}
details.whip-box>summary .chev{font-size:.9rem;color:#5b6472;display:inline-block}details.whip-box[open]>summary .chev{transform:rotate(90deg)}
.whip-body{margin-top:.8rem}.private{font-size:.8rem;color:#5b6472}
.tally{display:flex;gap:.4rem;flex-wrap:wrap;margin:0}.tally span{padding:.15rem .5rem;border-radius:6px;font-weight:700;font-size:.85rem;background:#eef2f7}
.tally .y{background:#e3f1e5;color:#1e6b2a}.tally .n{background:#f7e3e3;color:#9b2222}.tally .x,.tally .a,.tally .c{background:#eef0f3;color:#3b4250}
.tally .u{background:#fff;border:1px dashed #b8c0cc;color:#5b6472}
.need{font-weight:700}.need.ok{color:#1e6b2a}.need.short{color:#9b2222}
table.whip td{vertical-align:middle}table.whip td.pick{white-space:nowrap}
table.whip label.v{display:inline-flex;align-items:center;gap:.2rem;margin-right:.55rem;font-size:.9rem}table.whip label.v.clear{color:#7a8494}
table.whip tr.dem td:first-child{border-left:3px solid #4a6fa5}table.whip tr.rep td:first-child{border-left:3px solid #b23a3a}
table.whip input[type=text]{width:100%;min-width:12rem}table.whip .party{font-size:.8rem;color:#5b6472}
table.whip .miss{color:#9b2222;font-weight:700}table.whip .hit{color:#1e6b2a}.whip-history{margin-top:.6rem}
ul.plain{list-style:none;padding:0;margin:.3rem 0}ul.household li{margin:.25rem 0}.req{border-left:3px solid var(--line);padding:.3rem .6rem;margin:.5rem 0}
.stance-support{color:#1d6b35}.stance-oppose{color:#a32020}
