:root{--ink:#12243a;--muted:#586577;--line:#dbe2ea;--bg:#f3f5f8;--card:#fff;--accent:#0d7364;--soft:#e4f3f0}
*{box-sizing:border-box}
body{margin:0;font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
a{color:var(--accent)}
h1,h2,h3,p{margin:0}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 12px}
button:hover{border-color:var(--accent)}
button:disabled{opacity:.45;cursor:default}
:focus-visible{outline:3px solid #f0a020;outline-offset:2px}
.top{background:var(--ink);color:#fff;padding:24px max(16px,calc((100vw - 1320px)/2));display:flex;gap:32px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap}
.brand{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#5fd3bc}
h1{font-size:34px;line-height:1.15;margin:2px 0 6px}
.lede{max-width:640px;color:#c6d1de}
.facts{display:flex;gap:28px;margin:0}
.facts dt{font-size:12px;color:#9fb0c3}.facts dd{margin:0;font-size:26px;font-weight:650}.facts dd.sub{font-size:12px;font-weight:400;color:#9fb0c3}
.jump{display:none;background:#5fd3bc;color:var(--ink);padding:9px 14px;border-radius:8px;text-decoration:none;font-weight:600}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:20px;max-width:1352px;margin:20px auto;padding:0 16px;align-items:start}
main{display:grid;gap:20px;min-width:0}
.panel,.assistant{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px;min-width:0}
h2{font-size:19px;margin-bottom:12px}h3{font-size:15px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.chip{border-radius:99px;padding:3px 11px;font-size:13px}.chip b{color:var(--muted);font-weight:500;margin-left:3px}
.chip[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}.chip[aria-pressed=true] b{color:#5fd3bc}
.filters{display:grid;grid-template-columns:2fr 1.3fr 1.1fr 1fr 1fr;gap:8px}
label{display:grid;gap:3px;font-size:12px;color:var(--muted)}
input,select{font-size:14px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:8px;padding:7px 8px;width:100%;min-width:0}
.error{color:#a4262c}.count{margin:10px 0 2px;font-weight:600}
.bills,.brief{list-style:none;margin:0;padding:0}
.bill{display:flex;gap:12px;align-items:flex-start;border-top:1px solid var(--line);padding:11px 0}.bill-main{flex:1;min-width:0}
.bill-title{font-weight:600}.bill-ko{overflow-wrap:anywhere}.bill-meta{font-size:12.5px;color:var(--muted)}
.stage{display:inline-block;background:var(--soft);color:#0a5a4e;border-radius:5px;padding:0 7px;font-weight:600}
.stage-closed{background:#eceef2;color:#4a5565}.stage-judiciary_review,.stage-committee_decided{background:#fdf0d8;color:#7a4b00}
.pin[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.empty{color:var(--muted);padding:12px 0}.more{margin-top:6px}
.source{font-size:12px;color:var(--muted);margin-top:14px}
.chart-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}#chart-note{color:var(--muted);font-size:13px}
#chart{width:100%;height:auto;margin:8px 0 14px;display:block}
.grid{stroke:#e7ecf2}.axis{font-size:12px;fill:var(--muted)}.line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round}.dot{fill:var(--accent)}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.card{display:grid;text-align:left;align-content:start;gap:2px;padding:10px 12px}
.card[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.card-name{font-size:12px;color:var(--muted);line-height:1.35}.card-value{font-size:19px;font-weight:650}.card-value small{font-size:11px;color:var(--muted);font-weight:500}.card-period{font-size:11px;color:var(--muted)}
.badge{font-size:13px;background:var(--soft);border-radius:99px;padding:1px 9px;color:#0a5a4e}
.brief li{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:7px 0;overflow-wrap:anywhere}.brief li:first-child{margin-top:10px}
.remove{padding:0 9px;align-self:flex-start}#brief-download{margin-top:12px}.ghost{margin-left:6px}
.assistant{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;scroll-margin-top:12px}
.samples{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.samples button{font-size:13px;padding:4px 10px;background:var(--soft);border-color:transparent}
#assistant-status{font-size:12.5px;color:var(--muted);margin-bottom:8px}
.assistant-note{font-size:12px;color:var(--muted);margin-top:10px}
.agents-box summary{cursor:pointer;font-size:13px;color:var(--muted);margin-top:8px}
.agents-box [data-ns-slot=agents]{height:360px}
footer{max-width:1352px;margin:0 auto 32px;padding:0 16px;font-size:13px;color:var(--muted);display:grid;gap:6px}
@media(max-width:1000px){.layout{grid-template-columns:minmax(0,1fr)}.assistant{position:static;max-height:none}.jump{display:inline-block}}
@media(max-width:640px){.filters{grid-template-columns:1fr 1fr}.filters label:first-child{grid-column:1/-1}.top{padding:20px 16px;gap:16px}h1{font-size:28px}.layout{padding:0 10px}.panel,.assistant{padding:14px}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* Assistant (runtime theme and overrides) */
#agent-app{--ns-font:system-ui,sans-serif;--ns-bg:#fff;--ns-fg:#12243a;--ns-primary:#0d7364;--ns-accent:#0d7364;--ns-border:#dbe2ea;--ns-panelbg:#fff;--ns-msgbg:#f3f5f8;--ns-muted:#586577}
/* Set the height once the runtime has mounted the chat, so a failed load leaves no
   empty box. */
#agent-app.ns-composed-app [data-ns-slot="chat"] { height: 520px; }
/* The runtime gives the chat no background of its own. Keep --ns-msgbg different from
   --ns-bg, or bot replies lose their bubble. */
#agent-app .ns-chat { background: var(--ns-bg); }

/* Site-wide form rules often stretch the runtime's own controls. Undo them here. */
#agent-app input[type="checkbox"],
#agent-app input[type="radio"] { width: auto; }
#agent-app .ns-header { flex-wrap: wrap; }
/* Site label rules add margins and bold text, and the inputs inside the labels inherit
   the weight. */
#agent-app .ns-settings-body label { margin: 4px 0; font-weight: 400; }
/* Chat forms label radio groups with a legend, so site legend fonts would reach them. */
#agent-app .ns-w-label { font-family: inherit; }
/* Site label rules add margins to chat form fields and make their options bold. */
#agent-app .ns-widget label { margin: 0; }
#agent-app .ns-w-radio label,
#agent-app .ns-w-multi label,
#agent-app .ns-w-toggle { font-weight: 400; }
/* The runtime sizes radio and multi-choice options but not the checkbox label. */
#agent-app .ns-w-toggle { font-size: 13px; }
/* The runtime spaces its buttons with gap. A site's button margin pushes Send below the input. */
#agent-app button { margin: 0; }
/* Chat choices are buttons with a light background. A site's button color can hide their
   titles. */
#agent-app .ns-w-choice { color: var(--ns-fg); }
/* A site's button:hover background also reaches the runtime's plain buttons, behind
   their dark text. Keep the runtime's own backgrounds. */
#agent-app .ns-devtoggle:not(.on):hover,
#agent-app .ns-modal-close:hover { background: transparent; }
#agent-app .ns-w-choice:disabled:hover { background: #fafbfc; }
/* The runtime's message rule hides the partner consent card's own background, and its
   Decline label then has too little contrast. */
#agent-app .ns-consent { background: #fffbeb; }
/* While a consent card waits, the status line above it already says "Contacting", though
   nothing has been sent. Hide it until the visitor answers. */
#agent-app .ns-msgs:has(.ns-consent-actions) > .ns-turn-status { display: none; }
/* Long links in a reply would run out of the bubble on a phone. "anywhere" would also
   let the consent card's buttons shrink and split their labels. */
#agent-app .ns-msg { overflow-wrap: break-word; }
/* On a phone the consent card is too narrow for its three buttons in one row, and
   "Always allow" breaks onto two lines. Keep each label whole and wrap the row. */
#agent-app .ns-consent-actions { flex-wrap: wrap; }
#agent-app .ns-consent-actions button { white-space: nowrap; }

/* site.js and the runtime add their confirmation dialogs to <body>, outside #agent-app.
   Site h2 rules reach the heading, and the two buttons touch. A right margin keeps
   wrapped buttons lined up on the left. */
body > dialog h2 { margin: 0 0 12px; font: 700 1.25em system-ui, sans-serif; }
body > dialog button { margin-right: 8px; }
/* site.js's dialog: the details in two columns, and a plain decline button, so the two
   choices do not look the same. */
.assistant-review { max-width: 640px; width: 85%; max-height: 85vh; overflow: auto; border: 1px solid #888; border-radius: 12px; padding: 24px; font: 16px system-ui, sans-serif; }
.assistant-review dl { display: grid; grid-template-columns: fit-content(40%) 1fr; gap: 4px 16px; margin: 12px 0; }
.assistant-review dt { font-weight: 600; }
.assistant-review dd { margin: 0; overflow-wrap: anywhere; }
.assistant-review details { margin: 12px 0; }
.assistant-review pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-review .assistant-decline { background: transparent; color: inherit; border: 1px solid currentColor; }

@media (max-width: 760px) {
  .assistant-panels { grid-template-columns: 1fr; }
  /* On a phone, each detail goes under its label, so an email is not split. */
  .assistant-review dl { grid-template-columns: 1fr; gap: 0; }
  .assistant-review dd { margin-bottom: 8px; }
}
