:root{font-family:var(--font-ui,"Segoe UI",system-ui,Arial,sans-serif);color:#273140;background:#fafafb;font-synthesis:none;--red:#bc001b;--line:#e5e7ec}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.65}button,input,textarea{font:inherit}button,a,textarea{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:default}a{color:#a60018}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #d88a97;outline-offset:3px}[hidden]{display:none!important}.skip{position:absolute;left:16px;top:-80px;background:#bc001b;color:white;padding:9px;z-index:8}.skip:focus{top:9px}
.chat-header{height:78px;position:sticky;top:0;z-index:4;background:#ffffffed;backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.header-inner{max-width:1160px;margin:auto;padding:15px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.chat-brand{display:flex;align-items:center;gap:11px}.chat-brand img{width:43px;height:43px}.chat-brand strong{display:block;font-size:17px;line-height:1.5}.chat-brand small{display:block;font-size:11px;color:#737b87;letter-spacing:.15px}.header-actions{display:flex;align-items:center;gap:22px}.connection{font-size:11px;color:#7b828d}.connection:before{content:"";display:inline-block;width:5px;height:5px;background:#b6001b;border-radius:50%;margin:0 6px 2px 0}.new-chat{background:white;border:1px solid #e3cdd1;border-radius:6px;padding:8px 12px;font-size:12px;color:#a00018;display:flex;align-items:center;gap:7px}.new-chat svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}.chat-main{max-width:880px;margin:auto;padding:0 28px 220px;min-height:calc(100dvh - 78px)}.welcome{padding:65px 0 30px;text-align:center;max-width:720px;margin:auto}.welcome-icon{display:inline-grid;place-items:center;width:66px;height:66px;border:1px solid #f1d8dd;background:#fff4f6;border-radius:18px;margin-bottom:22px}.welcome-icon img{width:39px;height:39px}.welcome .overline{font-size:10px;letter-spacing:1.2px;color:#a50018;font-weight:700;margin:0 auto 10px}.welcome h1{font-size:32px;line-height:1.3;margin:0 0 15px;letter-spacing:-.6px}.welcome>p{font-size:14px;color:#6c7583;line-height:1.8;margin:0 auto;max-width:550px}.starter-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:29px auto 24px;text-align:left;max-width:650px}.starter-grid button{background:white;border:1px solid var(--line);border-radius:8px;padding:17px 18px;text-align:left;font-size:13px;line-height:1.6;display:flex;gap:12px;align-items:center}.starter-grid button:hover{border-color:#d7a8b1;background:#fffafb}.starter-grid button>span:first-child{color:#ad001a;font-size:17px}.welcome .scope{font-size:11px;line-height:1.8;color:#858b95;max-width:600px}.messages{padding:10px 0 0}.message{margin:24px 0 33px;scroll-margin-top:100px}.message.user{display:flex;justify-content:flex-end}.user-text{background:#f0f1f5;padding:13px 18px;border-radius:14px 14px 3px 14px;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.message.assistant{display:flex;align-items:flex-start;gap:15px}.message-avatar{flex:0 0 30px;padding-top:3px}.message-avatar img{width:30px;height:30px;border-radius:7px}.message-body{min-width:0;flex:1;font-size:14px;line-height:1.85;overflow-wrap:anywhere}.message-name{display:block;font-size:12px;font-weight:700;color:#333f50;margin:0 0 11px}.message-body p{margin:0 0 14px}.message-body h3{font-size:17px;line-height:1.7;font-weight:650;margin:8px 0 14px;color:#283241}.answer-citation{display:block;font-size:11px;line-height:1.7;color:#a10018;margin-bottom:5px}.answer-context{font-size:11px;color:#777f8c;border-bottom:1px solid var(--line);padding-bottom:13px}.answer-section{margin:20px 0}.answer-section h4{font-size:13px;font-weight:700;color:#303b4b;margin:0 0 8px}.answer-section p{margin:0 0 11px}.answer-money{font-size:20px;font-weight:700;color:#a00018;line-height:1.6}.answer-warning{background:#fff7e7;border-left:3px solid #c39137;border-radius:0 4px 4px 0;padding:11px 13px;color:#76561c;font-size:13px}.answer-footnote{font-size:11px;color:#808792;line-height:1.8}.measure-basis{font-size:12px;color:#777f8b}.answer-options{display:grid;gap:10px;margin:18px 0}.answer-option{display:flex;align-items:flex-start;gap:13px;background:white;border:1px solid var(--line);border-radius:8px;padding:18px;text-align:left;width:100%;line-height:1.7}.answer-option:hover{border-color:#ce9ca7;background:#fffdfd}.option-number{flex:0 0 24px;height:24px;display:grid;place-items:center;background:#fff0f2;color:#ac0019;font-size:11px;border-radius:5px}.answer-option strong{display:block;font-size:14px;font-weight:600;color:#303b4b;margin:6px 0;max-height:150px;overflow:auto}.answer-option small{display:block;font-size:11px;color:#7b828c}.option-open{display:block;font-size:11px;font-weight:600;color:#a50018;margin-top:9px}.more-results,.retry{background:white;border:1px solid #e0c6cd;border-radius:5px;padding:8px 12px;color:#a30019;font-size:12px;margin:0 0 15px}.followups{display:flex;gap:7px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:15px;margin-top:22px}.followups button{background:white;border:1px solid var(--line);border-radius:18px;font-size:11px;color:#656f7d;padding:7px 11px}.followups button:hover{color:#a30018;border-color:#d0a7b0}details{margin:13px 0;font-size:12px;color:#65707f}summary{cursor:pointer;color:#626d7c;line-height:1.8;padding:4px 0}details[open]>summary{margin-bottom:11px}.source-links{display:flex;flex-wrap:wrap;gap:9px 18px;margin-bottom:15px}.source-links a{font-size:11px}.answer-sources{border-top:1px solid var(--line);padding-top:10px;margin-top:25px}.pending{color:#858b95;font-size:13px}
.composer-area{position:fixed;left:0;right:0;bottom:0;background:linear-gradient(#fafafb00,#fafafb 19px);padding:25px 28px max(16px,env(safe-area-inset-bottom));z-index:3}.composer-inner{max-width:824px;margin:auto}.composer{display:flex;align-items:flex-end;gap:12px;border:1px solid #d8dce4;background:white;border-radius:12px;padding:13px 14px 13px 18px;box-shadow:0 5px 25px #26334708}.composer:focus-within{border-color:#b66e7d;box-shadow:0 0 0 3px #bc001b08}.composer textarea{border:0;resize:none;background:transparent;width:100%;min-width:0;min-height:45px;max-height:160px;padding:8px 0;outline:none!important;font-size:14px;color:#303a49;line-height:1.7}.composer textarea::placeholder{color:#9399a3}.send{flex:0 0 39px;width:39px;height:39px;border:0;border-radius:8px;background:#bc001b;color:white;display:grid;place-items:center;margin-bottom:2px}.send svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.composer-note{display:flex;justify-content:center;position:relative;font-size:10px;line-height:1.7;color:#858b95;text-align:center;margin:9px 0 0}.char-count{position:absolute;right:0}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:650px){.chat-header{height:69px}.header-inner{padding:12px 17px}.chat-brand{gap:9px}.chat-brand img{width:37px;height:37px}.chat-brand strong{font-size:15px}.chat-brand small{font-size:10px}.connection{display:none}.new-chat{font-size:11px;padding:8px 10px}.new-chat>span{display:none}.chat-main{padding:0 17px 190px;min-height:calc(100dvh - 69px)}.welcome{padding:38px 0 20px}.welcome-icon{width:58px;height:58px;margin-bottom:20px}.welcome h1{font-size:26px;letter-spacing:-.4px}.welcome>p{font-size:13px}.starter-grid{grid-template-columns:1fr;gap:8px;margin:25px 0 20px}.starter-grid button{padding:13px 15px;font-size:12px}.welcome .scope{font-size:10px}.message{margin:20px 0 28px;scroll-margin-top:85px}.message.assistant{gap:10px}.message-avatar{flex-basis:25px}.message-avatar img{width:25px;height:25px}.message-body{font-size:14px;line-height:1.9}.user-text{max-width:90%;font-size:14px;padding:11px 15px}.message-body h3{font-size:16px}.answer-money{font-size:18px}.answer-option{padding:14px;gap:9px}.option-number{flex-basis:21px;height:21px}.answer-option strong{font-size:13px}.composer-area{padding:22px 13px max(13px,env(safe-area-inset-bottom))}.composer{padding:10px 11px 10px 14px;gap:8px}.composer textarea{font-size:16px;min-height:43px}.composer-note{font-size:9px;padding:0 8px}.char-count{display:none}.followups button{font-size:10px;padding:7px 9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}@media print{.chat-header,.composer-area,.welcome,.followups,.more-results{display:none!important}.chat-main{padding:0;max-width:none}.message{break-inside:avoid}.answer-sources{display:block}}

.source-reading{border:1px solid #e1e5eb;border-radius:7px;padding:16px 18px;background:#fff}.source-version-label{font-size:10px;line-height:1.8;color:#7b6336;letter-spacing:.25px}.source-reading p,.source-article p{white-space:pre-line}.source-clause{padding:10px 0;border-top:1px solid #e5e7ec}.source-clause h5{font-size:12px;color:#364152;margin:8px 0}.source-clause p{font-size:12px}.source-article{margin-top:22px}.source-reading .answer-section:first-of-type{margin-top:14px}

.answer-understanding{font-size:11px;color:#697586;background:#f1f3f6;border-radius:5px;padding:9px 12px;line-height:1.8}
.report-action,.report-actions button{background:white;color:#a30018;border:1px solid #dfc7ce;border-radius:6px;padding:9px 12px;font-size:12px;line-height:1.6}.report-action[hidden]{display:none}.report-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.case-followup{padding:8px 12px;border:1px solid #e6e0d6;border-radius:6px;background:#fffdf8}.case-followup .case-questions{border:0;margin:0;padding:10px 0;background:transparent}.multiple-case{margin:24px 0;padding-top:16px;border-top:1px solid var(--line)}.history-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.history-comparison section{padding:16px;background:#fff;border:1px solid #e1e5eb;border-radius:6px}.history-comparison h4{margin:0 0 12px;font-size:13px}.history-comparison p{white-space:pre-line;font-size:12px}.lookup-report{padding:10px 0;color:#111;overflow-wrap:anywhere}.lookup-report h2{font-size:20px}.lookup-report h3{font-size:17px}.lookup-report h4{font-size:14px}.lookup-report p{white-space:pre-line;font-size:13px}.header-actions .report-action{white-space:nowrap}
@media(max-width:650px){.header-actions{gap:6px}.header-actions .report-action{font-size:10px;padding:7px}.history-comparison{grid-template-columns:1fr}.lookup-report{padding:0}}
@media print{body.printing-report>.chat-header,body.printing-report>.chat-main,body.printing-report>.composer-area{display:none!important}body.printing-report>#print-report{display:block!important}.report-action,.report-actions,.case-followup{display:none!important}#print-report{font-family:"Times New Roman",serif;color:#000}#print-report h2{font-size:16pt;text-align:center}#print-report h3,#print-report h4{break-after:avoid}#print-report p{font-size:12pt;line-height:1.45;orphans:3;widows:3}#print-report .lookup-report{padding:0}#print-report article{break-inside:auto}}

.case-facts{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 15px}.case-facts span{font-size:11px;line-height:1.6;padding:5px 9px;background:#f0f2f6;border:1px solid #e4e7ed;border-radius:5px;color:#536071}.case-questions{padding:16px 18px;background:#fff;border:1px solid #dfc7ce;border-left:3px solid #bc001b;border-radius:5px;margin:14px 0 20px}.case-questions h3{font-size:14px;margin:0 0 10px}.case-questions p{font-size:13px;margin:10px 0}.case-choices{display:flex;flex-wrap:wrap;gap:7px}.case-choices button{border:1px solid #e0c8ce;border-radius:5px;padding:7px 11px;background:#fff9fa;color:#a30018;font-size:12px}.case-match{display:block!important;color:#5a6c5e!important;font-size:11px!important;margin:7px 0}.case-version{border-left:2px solid #cfb16e;padding:0 12px;background:#fffcf4}.case-reasons ul{padding-left:19px}.authority-checks{display:grid;gap:8px}.authority-check{padding:12px 14px;border:1px solid #e3e6eb;border-left:3px solid #bd9957;border-radius:5px;background:#fff}.authority-check strong{font-size:12px}.authority-check>span{float:right;font-size:10px;color:#8b6e36}.authority-check.pass{border-left-color:#5d8468}.authority-check.pass>span{color:#5d8468}.authority-check.fail{border-left-color:#bc001b}.authority-check.fail>span{color:#bc001b}.authority-check p{margin:7px 0!important;font-size:12px}.authority-check small{color:#7c8490;font-size:10px}

@media print{body.printing-report>.skip{display:none!important}}

.sector-picker{display:flex;align-items:center;gap:12px;margin:0 0 9px;max-width:100%}
.sector-picker label{flex-shrink:0;font-size:12px;font-weight:600;color:#626d7c}
.sector-picker select{font:inherit;font-size:13px;color:#a30018;background:#fff;border:1px solid #dfc7ce;border-radius:7px;padding:9px 30px 9px 12px;min-width:0;max-width:100%;width:440px;cursor:pointer;text-overflow:ellipsis}
.sector-picker select:focus-visible{outline:3px solid #d88a97;outline-offset:2px}
.sector-picker select:disabled{opacity:.6;cursor:default}
.chat-main{padding-bottom:270px}
@media(max-width:650px){.sector-picker{gap:8px}.sector-picker label{font-size:11px}.sector-picker select{width:100%;flex:1;font-size:14px;padding:10px 25px 10px 9px}.chat-main{padding-bottom:245px}}

.admin-link{font-size:12px;text-decoration:none;white-space:nowrap}

body {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
.chat-header { height: auto; min-height: 78px; position: relative; }
.header-inner { min-height: 78px; flex-wrap: wrap; row-gap: 10px; }
.chat-brand { flex: 0 0 auto; }
.chat-brand strong { font-size: 17px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.chat-brand small { font-size: 12px; line-height: 1.5; letter-spacing: normal; }
.header-actions { margin-left: auto; gap: 12px; flex-shrink: 0; }
.admin-link, .new-chat, .report-action { font-size: 13px; line-height: 1.5; }
.new-chat, .report-action { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.chat-main {
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: stretch;
  min-height: 0;
  padding: 0 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scroll-padding-block: 20px;
}
.messages { max-width: 824px; margin-inline: auto; }
.message { scroll-margin-top: 0; }
.welcome { padding-top: 48px; }
.welcome h1 { font-size: 30px; line-height: 1.35; letter-spacing: normal; font-weight: 700; }
.welcome .overline { font-size: 12px; line-height: 1.5; letter-spacing: .5px; }
.welcome > p { font-size: 15px; line-height: 1.65; }
.welcome .scope { font-size: 12px; line-height: 1.6; }
.starter-grid { align-items: stretch; grid-auto-rows: 1fr; }
.starter-grid button { font-size: 14px; line-height: 1.55; min-height: 64px; }
.starter-grid button > span:first-child { flex: 0 0 18px; text-align: center; }
.message-body { font-size: 15px; line-height: 1.7; }
.message-body h3 { font-size: 18px; font-weight: 600; line-height: 1.5; text-wrap: pretty; }
.message-name, .answer-citation, .answer-context, .answer-footnote,
.source-links a, .measure-basis, .option-open, .answer-option small,
.followups button, .case-facts span { font-size: 12px; line-height: 1.6; }
.message-avatar { padding-top: 0; }
.answer-section h4 { font-size: 15px; line-height: 1.5; }
.answer-option { align-items: flex-start; }
.answer-option > span:last-child { min-width: 0; flex: 1; }
.answer-option strong { font-size: 15px; line-height: 1.6; }
.option-number { line-height: 1; margin-top: 1px; }
.answer-warning, details { font-size: 13px; line-height: 1.65; }
.source-version-label { font-size: 11px; line-height: 1.6; letter-spacing: normal; }
.source-clause p, .source-clause h5, .history-comparison p { font-size: 14px; line-height: 1.65; }
.source-reading { padding: 18px; }
.authority-check { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.authority-check > span { float: none; text-align: right; font-size: 12px; line-height: 1.6; }
.authority-check strong { font-size: 13px; line-height: 1.6; }
.authority-check p, .authority-check small { grid-column: 1 / -1; }
.authority-check small { font-size: 12px; line-height: 1.6; }
.composer-area { position: relative; padding: 12px 28px max(14px, env(safe-area-inset-bottom)); background: #fafafb; border-top: 1px solid var(--line); }
.composer { gap: 12px; padding: 10px 14px 10px 18px; align-items: center; }
.composer textarea { min-height: 44px; font-size: 16px; line-height: 1.5; padding: 10px 0; }
.send { width: 40px; height: 40px; flex-basis: 40px; margin: 2px 0; align-self: flex-end; }
.sector-picker { gap: 12px; align-items: center; }
.sector-picker label { font-size: 13px; line-height: 1.5; }
.sector-picker select { font-size: 14px; line-height: 1.5; height: 42px; padding: 8px 30px 8px 12px; }
.composer-note { font-size: 12px; line-height: 1.5; margin-top: 8px; }
.char-count { position: static; margin-left: 12px; white-space: nowrap; }

@media (max-width: 650px) {
  .chat-header, .header-inner { min-height: 68px; height: auto; }
  .header-inner { padding: 12px 16px; column-gap: 12px; }
  .chat-brand { gap: 9px; }
  .chat-brand strong { font-size: 16px; }
  .chat-brand small { font-size: 11px; }
  .chat-brand img { width: 38px; height: 38px; }
  .header-actions { gap: 8px; }
  .header-actions .report-action { font-size: 12px; line-height: 1.5; padding: 8px 10px; }
  .new-chat { width: 38px; padding: 8px; }
  .chat-main { padding: 0 16px 24px; scrollbar-gutter: auto; }
  .welcome { padding-top: 28px; }
  .welcome h1 { font-size: 25px; line-height: 1.4; }
  .welcome > p { font-size: 14px; }
  .welcome .overline { font-size: 11px; }
  .starter-grid { gap: 10px; margin: 24px 0; }
  .starter-grid button { font-size: 14px; min-height: 58px; padding: 14px; }
  .message { scroll-margin-top: 0; }
  .message.assistant { gap: 10px; }
  .message-body { font-size: 15px; line-height: 1.7; }
  .message-body h3 { font-size: 17px; line-height: 1.5; }
  .answer-option { padding: 14px; }
  .answer-option strong { font-size: 14px; }
  .source-reading { padding: 14px; }
  .followups button { font-size: 12px; padding: 8px 10px; }
  .authority-check { grid-template-columns: minmax(0, 1fr); }
  .authority-check > span { text-align: left; }
  .composer-area { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); }
  .composer { padding: 8px 10px 8px 14px; gap: 8px; }
  .sector-picker { gap: 10px; }
  .sector-picker label { font-size: 12px; }
  .sector-picker select { font-size: 15px; height: 42px; padding: 8px 25px 8px 10px; }
  .composer-note { font-size: 11px; padding: 0; }
}
@media print {
  body { display: block; height: auto; overflow: visible; }
  .chat-main { overflow: visible; padding: 0; scrollbar-gutter: auto; }
}
