:root {
  --navy: #102b46;
  --silver: #a9b6c4;
  --cold-white: #f6f9fd;
  --surface: #fff;
  --surface-subtle: #edf3f9;
  --surface-selected: #e4edf6;
  --text: #263e55;
  --muted: #52667b;
  --line: #d2dde8;
  --accent: #31597d;
  --navy-hover: #244666;
  --focus: #627f9c;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--cold-white);
  accent-color: var(--navy);
}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,label.import-button{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:4px}[hidden]{display:none!important}.sidebar{width:228px;position:fixed;inset:0 auto 0 0;background:var(--navy);color:var(--cold-white);padding:34px 18px;display:flex;flex-direction:column}nav{display:grid;gap:10px;margin-top:44px}.nav{border:0;background:none;color:var(--silver);text-align:left;display:flex;align-items:center;gap:17px;border-radius:7px;padding:16px 19px;font-size:17px;letter-spacing:1px;transition:.18s}.nav span{font:27px/1 Georgia;width:24px}.nav:hover{background:var(--navy-hover)}.nav.active{background:var(--navy-hover);color:var(--surface)}.sidebar-note{margin-top:auto;border-top:1px solid var(--focus);padding-top:20px;text-align:center;font-family:"Songti SC",serif;font-size:16px;letter-spacing:1px}.sidebar-note small{display:block;font:10px/1.8 sans-serif;color:var(--silver);letter-spacing:0;margin-top:12px}main{margin-left:228px;min-height:100vh;padding:0 44px}.topbar{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);font-size:13px}.topbar strong{font-weight:500}.separator{margin:0 16px;color:var(--muted)}.context{display:flex;align-items:center;color:var(--muted);font-size:12px}#connection{font-size:11px}#connection::before{content:"";display:inline-block;width:6px;height:6px;background:var(--muted);border-radius:50%;margin-right:7px}#connection.ready::before{background:var(--focus)}.workspace{max-width:1100px;margin:0 auto;padding:48px 0 0}.intro h1{font-size:40px;line-height:1.5;font-weight:600;letter-spacing:1px;margin:0;color:var(--navy)}.intro h1 br{display:none}.intro p{margin:16px 0 0;color:var(--muted);line-height:1.7;font-size:17px;letter-spacing:1px}.examples{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:34px 0}.example{border:1px solid var(--line);background:transparent;min-height:66px;border-radius:7px;display:flex;align-items:center;padding:16px 21px;gap:17px;text-align:left;color:var(--navy);transition:background .2s,border-color .2s}.example:hover{background:var(--surface-subtle);border-color:var(--focus)}.example svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6}.example strong{font-family:"Songti SC",SimSun,serif;font-size:20px;font-weight:600;color:var(--text)}.example .arrow{margin-left:auto;font-size:21px}.composer{background:var(--surface);border:1px solid var(--focus);border-radius:8px;overflow:hidden;box-shadow:0 3px 13px #102b4603;transition:box-shadow .2s}.composer:focus-within{box-shadow:0 0 0 3px #102b4612}textarea{display:block;width:100%;border:none;outline:none;resize:vertical;min-height:200px;padding:23px 25px;font-size:15px;line-height:1.9;background:transparent;color:var(--text)}textarea::placeholder{color:var(--muted)}.composer-footer{border-top:1px solid var(--line);min-height:65px;padding:13px 17px 13px 23px;display:flex;align-items:center;justify-content:space-between;gap:15px}.input-tools{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}#count{color:var(--muted);font-size:11px}.primary{background:var(--navy);color:white;border:0;border-radius:6px;padding:12px 23px;font-size:14px;white-space:nowrap;min-width:137px;box-shadow:0 2px 3px #102b4610}.primary:hover{background:var(--navy-hover)}.primary span{margin-left:16px}.submit-actions{display:flex;gap:8px;align-items:center}.secondary,.text-button{border:1px solid var(--line);border-radius:5px;background:transparent;padding:8px 12px;color:var(--navy);font-size:12px}.text-button:hover,.secondary:hover{background:var(--surface-subtle)}.privacy{font-size:12px;color:var(--muted);line-height:1.7;margin:15px 0 0}.support{border-top:1px solid var(--line);margin-top:36px;padding-top:26px;display:grid;grid-template-columns:1fr 1fr;gap:40px}.support section+section{padding-left:40px;border-left:1px solid var(--line)}h2{font-size:20px;font-weight:600;line-height:1.45;margin:0 0 18px;letter-spacing:1px}.support p{font-size:13px;line-height:1.9;color:var(--muted);margin:10px 0}.support .tip-title{border-left:3px solid var(--silver);padding-left:13px;color:var(--text);font-size:15px}.support a{display:block;margin:15px 0;font-size:14px;letter-spacing:.7px;color:var(--accent)}.support a:hover{text-decoration:underline}.support small{display:block;font-size:11px;line-height:1.8;color:var(--muted);margin-top:16px}footer{display:flex;justify-content:space-between;gap:15px;margin:36px auto 0;padding:20px 0;font-size:10px;color:var(--muted);max-width:1100px}.draft-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.draft-fields label{font-size:12px;color:var(--muted);display:grid;gap:8px}.draft-fields input,.draft-fields select{padding:11px 13px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--text);width:100%}.import-button{color:var(--navy);cursor:pointer;text-decoration:underline;text-underline-offset:3px}.notice{padding:15px 18px;background:var(--surface-subtle);border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:14px;line-height:1.7;margin-top:20px}.notice.error{background:#fff2eb;border-color:#ebd7c9;color:#8e4e30}.result-heading{display:flex;align-items:center;justify-content:space-between;margin-top:35px}.result-heading h2{margin:0}.message{margin-top:20px;border-top:1px solid var(--line);padding-top:22px}.question{color:var(--muted);font-size:14px;background:var(--surface-subtle);padding:15px 18px;border-radius:6px;white-space:pre-wrap;max-height:150px;overflow:auto;line-height:1.8}.answer{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.95;color:var(--text);margin:22px 0}.answer h3{font-size:17px;margin:24px 0 8px;color:var(--navy)}.answer p{margin:8px 0}.answer a{color:var(--accent);text-decoration:underline}.sources{padding:16px 18px;border-left:3px solid var(--silver);background:var(--surface-subtle);font-size:12px;line-height:1.8}.sources a{display:block;color:var(--accent);text-decoration:underline;margin-top:5px;overflow-wrap:anywhere}.sources small{display:block;color:var(--muted);margin-top:5px}.message-actions{display:flex;gap:10px;margin-top:15px}.result-meta{font-size:11px;color:var(--muted);margin:10px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1450px){.workspace{padding-top:65px}.intro h1{font-size:44px}.examples{margin:40px 0}textarea{min-height:220px}}@media(max-width:1200px){main{padding:0 30px}.sidebar{width:200px}main{margin-left:200px}.intro h1{font-size:34px}.intro h1 br{display:block}.example{padding:14px;gap:10px}.example strong{font-size:17px}.context .separator{margin:0 10px}.support{gap:24px}.support section+section{padding-left:24px}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:18px 20px 0}.sidebar-note{display:none}nav{display:flex;margin:18px 0 0;gap:5px}.nav{flex:1;justify-content:center;padding:12px 5px;font-size:13px;letter-spacing:0;border-radius:5px 5px 0 0;gap:7px}.nav span{font-size:20px;width:18px}main{margin-left:0;padding:0 20px}.topbar{min-height:57px;font-size:11px}.context{font-size:10px}.context .separator{display:none}#connection{display:none}.separator{margin:0 9px}.workspace{padding-top:28px}.intro h1{font-size:29px;line-height:1.55}.intro p{font-size:13px;letter-spacing:0}.examples{gap:8px;margin:25px 0}.example{min-height:55px;padding:10px;gap:8px}.example svg{width:19px;height:19px}.example strong{font-size:13px;white-space:nowrap}.example .arrow{display:none}textarea{padding:18px;min-height:215px;font-size:14px}.composer-footer{padding:12px;gap:8px}.input-tools{font-size:10px;gap:7px}#count{display:none}.primary{font-size:12px;padding:11px 13px;min-width:100px}.primary span{margin-left:8px}.support{grid-template-columns:1fr;gap:24px;margin-top:28px}.support section+section{border-left:0;border-top:1px solid var(--line);padding:24px 0 0}.privacy{font-size:10px}.support h2{font-size:20px}footer{flex-direction:column;line-height:1.7;font-size:9px}.draft-fields{gap:10px}}

.add-attachment {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--cold-white);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}
.add-attachment:hover:not(:disabled) { background: var(--surface-subtle); border-color: var(--focus); }
.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0 16px 12px;
}
.attachment-list li {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding-left: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cold-white);
  color: var(--navy);
  font-size: 12px;
}
.attachment-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-list button {
  flex: 0 0 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font-size: 18px;
}
.attachment-list button:hover:not(:disabled) { background: var(--surface-subtle); }
.attachment-status { color: #8e4e30; font-size: 12px; overflow-wrap: anywhere; }
.attachment-status:not(:empty) { margin-top: 8px; }
.sent-attachments { margin-top: 5px; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .add-attachment { width: 40px; height: 40px; flex-basis: 40px; }
  .example { min-width: 0; }
  .example strong { white-space: normal; overflow-wrap: anywhere; }
  .example svg { flex-shrink: 0; }
}

.signin-shell {
  margin: 0 auto;
  width: min(100%, 464px);
  padding: clamp(30px, 9vh, 96px) 24px 40px;
}
.signin-brand { margin-bottom: 24px; }
.signin-card {
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 8px;
  background: var(--surface);
}
.signin-card h1 { margin: 0 0 24px; font-size: 30px; font-weight: 600; line-height: 1.4; }
.signin-card form, .signin-card label { display: grid; gap: 8px; }
.signin-card form { gap: 17px; }
.signin-card label { font-size: 14px; }
.signin-card input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; }
.signin-switch { margin-top: 14px; }
.trial-notice-link { margin-left: 12px; text-decoration: underline; }
.signin-card a[href] { text-decoration: underline; }
.trial-notice-card p { line-height: 1.7; }
.account-feedback { margin: 0; font-size: 13px; color: #8e4e30; }
.account-menu { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.account-menu #account-name { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 540px) {
  .sidebar:has(.account-menu:not([hidden])) { flex-wrap: wrap; }
  .account-menu #account-name { max-width: 12ch; }
}

.notice > p { margin: 0; }
.retry-button { margin-top: 10px; }
.attachment-report {
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.attachment-report details { margin-top: 8px; }
.attachment-report summary { cursor: pointer; }
.attachment-report summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.attachment-report p { margin: 6px 0; }
.attachment-report blockquote {
  margin: 8px 0 9px 5px;
  padding: 5px 10px;
  border-left: 2px solid var(--line);
}
.attachment-report blockquote p { white-space: pre-wrap; }
.attachment-report details { scroll-margin-top: 12px; }

.legal-answer { white-space: normal; }
.legal-answer > section { margin-bottom: 20px; }
.legal-answer h3 { margin: 0 0 6px; }
.legal-answer ul, .legal-answer ol { margin: 0; padding-left: 22px; }
.legal-answer li > p { margin: 4px 0; }
.legal-answer .qa-evidence, .legal-answer .qa-bases { list-style: none; padding-left: 0; }
.qa-evidence li, .qa-bases li { padding: 7px 0; }
.qa-evidence li + li, .qa-bases li + li { border-top: 1px solid var(--line); }
.legal-answer .qa-unverified { color: #795722; }
.legal-answer p { white-space: pre-wrap; }

.draft-result { color: var(--text); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.draft-panel { margin: 14px 0; padding: 18px clamp(12px, 3vw, 28px); border: 1px solid var(--line); border-radius: 7px; }
.draft-panel h3, .draft-panel h4, .draft-panel h5 { margin: 0; color: var(--navy); }
.draft-panel h3 { font-size: 16px; }
.draft-panel ul { margin: 8px 0; padding-left: 22px; }
.draft-panel p { margin: 5px 0; }
.draft-body { background: var(--surface); }
.draft-actions, .draft-clause-header, .draft-target { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.draft-actions { margin: 8px 0 18px; }
.draft-feedback { color: var(--muted); font-size: 12px; }
.draft-panel .draft-title { text-align: center; font: 600 24px/1.5 "Songti SC", SimSun, serif; }
.draft-clause, .draft-signature { margin-top: 16px; }
.draft-clause-header h5, .draft-signature h5 { font-size: 14px; }
.draft-clause-header .draft-edit, .draft-target .text-button { padding: 3px 7px; }
.draft-clause-text { white-space: pre-wrap; }
.draft-signature { padding-top: 10px; border-top: 1px solid var(--line); }
.draft-checklist { background: var(--surface-subtle); }
.draft-pending { background: #faf4e7; border-color: #e0d6c0; }
.draft-confirm { margin-top: 4px; }
.draft-target { padding: 10px 16px; background: var(--surface-subtle); font-size: 13px; color: var(--navy); }

.review-method { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; border: 0; }
.review-method legend { padding: 0; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.review-method label { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--navy); font-size: 13px; cursor: pointer; }
.review-method label:has(:checked) { border-color: var(--focus); background: var(--surface-subtle); }
.review-method input { accent-color: var(--navy); margin: 0; }
.review-focus { grid-column: 1 / -1; }
.review-result { display: grid; gap: 14px; margin: 16px 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.review-panel { padding: 15px clamp(12px, 3vw, 24px); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.review-panel h3, .review-panel h4 { margin: 0 0 6px; color: var(--navy); }
.review-panel h3 { font-size: 16px; }
.review-panel h4 { font-size: 14px; }
.review-panel p { margin: 5px 0; }
.review-panel ul { margin: 6px 0; padding-left: 22px; }
.review-scope-result { background: var(--surface-subtle); }
.review-scope-result .attachment-report { margin: 10px 0 0; }
.review-coverage { font-weight: 600; }
.review-priorities { background: #faf4e7; border-color: #e0d6c0; }
.review-settings, .review-kind, .review-copy span { font-size: 12px; color: var(--muted); }
.review-finding { padding: 12px 0; }
.review-finding + .review-finding { border-top: 1px solid var(--line); }
.review-finding:last-child { padding-bottom: 0; }
.review-quote { margin: 9px 0 0; padding: 9px 12px; border-left: 2px solid var(--silver); background: var(--surface-subtle); white-space: pre-wrap; }
.review-finding dl { margin: 8px 0; }
.review-line { display: grid; grid-template-columns: max-content 1fr; gap: 10px; padding: 4px 0; }
.review-line dt { color: var(--navy); font-weight: 600; }
.review-line dd { margin: 0; white-space: pre-wrap; }
.review-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.review-decision { margin-top: 8px; }
.review-decision button[aria-pressed="true"] { background: var(--surface-selected); border-color: var(--focus); color: var(--navy); }
.review-decision small { color: var(--muted); }
.review-revision-preview { margin-top: 12px; }
.review-revision-preview pre { background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 6px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }

/* Keep the workspaces in the rail and the conversation in one surface. */
.sidebar {
  position: fixed;
  width: 221px;
  padding: 27px 17px 22px;
  border-right: 1px solid var(--line);
  background: #f9fbfe;
  color: var(--navy);
}
.brand { display: block; width: fit-content; flex-shrink: 0; margin-inline: 7px; }
.brand img { display: block; width: 156px; height: auto; }
.sidebar nav { display: grid; gap: 6px; margin: 36px 0 0; }
.sidebar .nav {
  min-height: 45px;
  gap: 13px;
  padding: 0 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap;
}
.sidebar .nav:hover { background: var(--surface-subtle); }
.sidebar .nav.active { background: var(--surface-selected); color: var(--navy); font-weight: 650; }
.sidebar .account-menu { align-items: flex-start; flex-direction: column; margin-top: auto; padding: 13px 6px; }
.sidebar-note { padding: 15px 7px 0; border-color: var(--line); text-align: left; font-family: inherit; font-size: 12px; line-height: 1.5; letter-spacing: 0; color: var(--muted); }
.sidebar:has(.account-menu:not([hidden])) .sidebar-note { margin-top: 0; }
.sidebar .nav svg, .intake-categories svg, .add-attachment svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main { --workspace-gutter: clamp(24px, 4vw, 58px); margin-left: 221px; padding-inline: var(--workspace-gutter); }
.topbar { min-height: 69px; margin-inline: calc(-1 * var(--workspace-gutter)); padding-inline: var(--workspace-gutter); background: #fbfdff; color: var(--muted); }
main:has(.conversation-page:not([hidden])) > footer { display: none; }
.conversation-page {
  max-width: 856px;
  padding: clamp(70px, 16vh, 157px) 0 72px;
}
.conversation-page:has(#results:not([hidden]), #ai-followup:not([hidden])) { padding-top: clamp(24px, 5vh, 48px); }
.conversation-title {
  margin: 0 0 30px;
  color: var(--navy);
  text-align: center;
  font-size: clamp(29px, 4vw, 47px);
  font-weight: 620;
  line-height: 1.32;
  letter-spacing: .025em;
}
.conversation-page:has(#results:not([hidden]), #ai-followup:not([hidden])) .conversation-title { text-align: left; font-size: 28px; margin-bottom: 20px; }
.conversation-page .composer {
  --composer-gutter: 21px;
  border: 1px solid #c5d2e1;
  border-radius: 17px;
  box-shadow: 0 14px 40px -28px #17375b55, 0 2px 9px #102b4605;
}
.conversation-page .composer:focus-within { border-color: var(--focus); }
.intake-head { padding: 18px var(--composer-gutter) 0; }
.intake-categories, .intake-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.intake-categories button, .intake-option {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.intake-categories button { display: inline-flex; align-items: center; gap: 7px; border-color: transparent; padding-inline: 8px; }
.intake-categories svg { width: 17px; height: 17px; }
.intake-option { min-height: 34px; background: var(--cold-white); }
.intake-categories button:hover, .intake-option:hover { background: var(--surface-subtle); color: var(--navy); }
.intake-categories button[aria-pressed="true"], .intake-option[aria-pressed="true"] {
  border-color: var(--silver);
  background: var(--surface-selected);
  color: var(--navy);
}
.intake-step {
  margin: 9px var(--composer-gutter) 2px;
  padding: 13px 14px;
  border: 1px solid #e4edf6;
  background: var(--cold-white);
  border-radius: 9px;
}
.intake-step p { margin: 0 0 10px; color: var(--text); font-size: 14px; line-height: 1.6; }
.ai-followup #ai-question { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.ai-followup #ai-return { margin-top: 8px; padding: 4px 8px; }
.clarification-history { margin: 8px 0; color: var(--muted); font-size: 13px; }
.clarification-history summary { cursor: pointer; }
.clarification-history p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.intake-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.intake-selection .text-button { padding: 4px 8px; }
.intake-step:has(#intake-question[hidden]) .intake-selection { margin-bottom: 0; }
#guide-reference { margin-top: 10px; }
#guide-reference p { margin: 8px 0; }
#guide-detail { margin-top: 8px; padding-top: 8px; font-size: 13px; line-height: 1.65; }
#guide-detail ul { margin: 0; padding-left: 18px; }
#guide-detail details { margin-top: 8px; }
#guide-reference summary, .intake-review > summary { font-size: 13px; cursor: pointer; color: var(--navy); }
.conversation-page .composer > :is(.draft-fields, .intake-review, .work-context, .guide-suggestion, .draft-target) {
  margin: 10px var(--composer-gutter);
}
.intake-review .review-method { margin-top: 10px; }
.conversation-page #input {
  min-height: 98px;
  padding: 16px calc(var(--composer-gutter) + 8px) 10px;
  font-size: 16px;
}
.conversation-page #input::placeholder { color: var(--muted); }
.conversation-page .composer-footer { min-height: 61px; gap: 10px; border-color: #e7edf5; padding: 12px var(--composer-gutter); }
.conversation-page .input-tools { gap: 8px; }
.conversation-page .add-attachment { width: 37px; height: 37px; flex-basis: 37px; border-radius: 7px; }
.conversation-page .add-attachment svg { width: 17px; height: 17px; }
.conversation-page #choose-knowledge { border-color: transparent; }
.composer:has(#input:placeholder-shown) #count { display: none; }
.conversation-page .primary { min-width: 98px; }
.conversation-page .privacy { margin: 13px 4px 0; text-align: center; color: var(--muted); }
.conversation-surface:has(#results:not([hidden])) { border: 1px solid #c5d2e1; border-radius: 17px; background: var(--surface); }
.conversation-surface:has(#results:not([hidden])) .composer { border: 0; border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: none; }
.conversation-surface:has(#results:not([hidden])) #results { padding: 0 clamp(12px, 3vw, 24px) 20px; }
.conversation-surface #results .result-heading { margin-top: 19px; }
.review-panel { border-radius: 11px; }
.review-quote { border: 1px solid var(--line); border-radius: 7px; background: var(--cold-white); }
.review-priorities { background: var(--surface-subtle); border-color: var(--line); }

@media (min-width: 761px) and (max-width: 900px) {
  .sidebar { width: 174px; padding-inline: 12px; }
  .brand img { width: 136px; }
  main { margin-left: 174px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 8px 13px; border: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin: 0; }
  .sidebar .brand img { width: clamp(82px, 23vw, 128px); }
  .sidebar > nav { display: flex; justify-content: end; gap: 2px; margin: 0; }
  .sidebar .nav { min-height: 40px; flex: none; gap: 3px; font-size: 12px; padding: 0 6px; }
  .sidebar .nav svg { width: 15px; height: 15px; }
  .sidebar .account-menu { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0; }
  main { --workspace-gutter: 13px; margin-left: 0; }
  .topbar { min-height: 43px; }
  #connection { display: inline; }
  .topbar .jurisdiction { display: none; }
  .conversation-page { padding-top: clamp(38px, 7vh, 68px); }
  .conversation-title { margin-bottom: 19px; }
  .conversation-page .composer { --composer-gutter: 12px; }
  .intake-head { padding-top: 15px; }
  .intake-categories { gap: 3px; }
  .intake-categories button { font-size: 11px; padding-inline: 5px; gap: 4px; }
  .intake-categories svg { width: 14px; height: 14px; }
  .conversation-page #input { padding-inline: calc(var(--composer-gutter) + 4px); }
  .conversation-page .composer-footer { align-items: end; }
  .conversation-page .input-tools .text-button, .conversation-page .import-button { padding: 7px; }
  .conversation-page .primary { min-width: 77px; }
}
@media (max-width: 360px) {
  .intake-categories svg { display: none; }
}
