/* Hosted interface. System fonts; no remote assets or inline styles. */
:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --surface: #fffdf9;
  --ink: #27312b;
  --muted: #5b625b;
  --line: #dddcd2;
  --control-line: #80877f;
  --accent: #355f50;
  --accent-dark: #24483b;
  --accent-soft: #e8eee5;
  --warm: #93482f;
  --warm-soft: #f4e7da;
  --warning: #745016;
  --warning-soft: #fff6e5;
  --focus: #215fd4;
  --radius: 16px;
}

/* Persistent production workspace. The earlier Chat B reader styles remain. */
.product-root, .product-root * { min-width: 0; }
.product-heading { margin-bottom: 26px; }
.product-heading-actions { display: grid; gap: 12px; justify-items: end; }
.product-heading-actions .connection-context { max-width: 100%; }
.product-count { margin-top: 18px; font-size: 1.125rem; font-weight: 650; color: var(--accent-dark); }
.product-count-explanation { max-width: 58ch; margin-top: 5px; color: var(--muted); font-size: .875rem; }
.product-count-explanation summary { cursor: pointer; }
.product-startup, .product-onboarding { padding: 30px; margin: 18px 0; }
.product-onboarding > p { max-width: 76ch; margin-top: 12px; }
.product-onboarding form { margin-top: 20px; }
.product-preferences { margin-bottom: 18px; overflow: hidden; }
.product-preferences > summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--accent-dark); }
.product-preferences[open] > summary { border-bottom: 1px solid var(--line); }
.product-preferences-body { padding: 24px; }
.product-preferences-body > p { max-width: 78ch; margin-top: 12px; }
.product-preference-form { display: grid; gap: 10px; max-width: 640px; margin: 20px 0; }
.product-preference-form button { justify-self: start; margin-top: 4px; }
.product-access-caption { color: var(--muted); font-size: .875rem; margin: 8px 0 16px; }
.product-refresh-row { display: flex; align-items: center; gap: 18px; margin: 24px 0; }
.product-refresh-row button { flex: 0 0 auto; }
.product-refresh-row p { margin: 0; max-width: 62ch; }
.product-grid { display: grid; grid-template-columns: minmax(260px, .84fr) minmax(0, 1.7fr); gap: 22px; align-items: start; }
.product-task-rail { padding: 24px 14px 14px; }
.product-task-rail > h2 { padding: 0 10px; }
.product-task-tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 14px 4px; }
.product-task-tabs button { min-height: 44px; padding: 8px 10px; font-size: .875rem; border-radius: 8px; }
.product-task-tabs button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-dark); }
.product-task-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.product-task-list > li { margin: 0; }
.product-task { display: grid; justify-items: start; gap: 9px; width: 100%; padding: 18px; text-align: left; color: var(--ink); border: 1px solid var(--line); background: var(--surface); font-weight: 400; line-height: 1.45; }
.product-task:hover { background: var(--paper); border-color: var(--accent); color: var(--ink); }
.product-task[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.product-task-title { font-weight: 650; font-size: 1rem; overflow-wrap: anywhere; }
.product-task-date { font-size: .8125rem; color: var(--muted); }
.product-priority { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: .75rem; font-weight: 650; letter-spacing: .01em; background: #edf0e9; color: #425346; }
.product-priority-high { background: #f7e4d7; color: #803d21; }
.product-priority-low { background: #edf0f2; color: #52616c; }
.product-task-review { color: var(--warm); font-size: .8125rem; }
.product-task-empty { padding: 22px 12px 26px; }
.product-task-empty p { margin-top: 10px; }
.product-work { padding: 28px; }
.product-work-empty { display: grid; justify-items: start; gap: 14px; min-height: 310px; align-content: center; padding: 10px; }
.product-work-content > h2 { font-size: 1.5rem; line-height: 1.35; }
.product-task-meta { margin: 10px 0 18px; color: var(--muted); font-size: .875rem; }
.product-summary { margin-top: 22px; padding: 20px; border-radius: 12px; background: #f0f2ea; }
.product-summary > p { margin-top: 9px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-citations { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.product-citation { padding: 6px 9px; min-height: 44px; font-size: .8125rem; }
.product-reasons { margin: 14px 0; }
.product-reasons ul { margin: 12px 0 0; padding-left: 22px; font-size: .875rem; color: var(--muted); }
.product-task-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0; }
.product-task-actions > button { min-height: 44px; padding: 9px 13px; font-size: .875rem; }
.product-defer { position: relative; }
.product-defer > summary { cursor: pointer; padding: 11px 8px; color: var(--accent); font-size: .875rem; }
.product-defer-form { display: grid; gap: 10px; padding: 12px 0; }
.product-priority-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .875rem; }
.product-priority-field select { width: auto; min-width: 100px; font-size: .875rem; }
.product-editor { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.product-editor-heading { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; align-items: center; }
.product-save-status { color: var(--muted); font-size: .8125rem; }
.product-editor-heading + p { margin-top: 8px; }
.product-label { display: block; font-size: .875rem; font-weight: 650; color: var(--ink); }
.product-root input:not([type="checkbox"]):not([type="hidden"]), .product-root textarea { width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 11px 12px; font: inherit; font-size: 1rem; }
.product-root input:not([type="checkbox"]):not([type="hidden"]) { min-height: 48px; }
.product-root textarea { resize: vertical; }
.product-recipients { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; margin: 20px 0 8px; }
.product-recipients .product-label { margin: 0; }
.product-editor > .product-label { margin: 18px 0 7px; }
.product-reply-body { line-height: 1.7; min-height: 260px; }
.product-rewrite-bar { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 5px; }
.product-rewrite-bar button { min-height: 44px; padding: 9px 12px; font-size: .875rem; }
.product-custom > summary { padding: 11px 0; cursor: pointer; color: var(--accent); font-size: .875rem; }
.product-custom form { display: grid; gap: 10px; padding: 8px 0 12px; }
.product-custom form button { justify-self: start; }
.product-model-status { color: var(--accent-dark); font-size: .875rem; }
.product-editor-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 18px 0 10px; }
.product-editor-actions > button:last-child { margin-left: auto; }
.product-candidate { margin: 18px 0; padding: 20px; background: #edf1e9; border: 1px solid #a8bba9; border-radius: 12px; }
.product-candidate > h4 { margin: 0 0 12px; }
.product-candidate > button { margin-top: 14px; }
.product-candidate .candidate-body { background: var(--surface); }
.product-conflict > h4 { margin: 0 0 12px; }
.product-conflict .candidate-body { margin-top: 12px; }
.product-conflict .product-editor-actions > button:last-child { margin-left: 0; }
.product-send-status { margin-bottom: 18px; }
.product-send-status button { margin-top: 12px; }
.product-send-status > p { font-weight: 600; }
.product-recovery { margin-top: 16px; }
.product-recovery summary { cursor: pointer; font-weight: 600; }
.product-recovery p { margin-top: 10px; }
.product-recovery-controls { display: grid; justify-items: start; gap: 10px; margin-top: 8px; }
.product-recorded-send { margin-top: 14px; }
.product-recorded-send > summary { cursor: pointer; font-size: .875rem; }
.product-recorded-send > p { margin-top: 10px; }
.product-recorded-send .candidate-body { padding: 14px 0; }
.product-summary-coverage { margin-top: 14px; font-size: .875rem; }
.product-chat { margin-top: 24px; padding: 28px; }
.product-chat > h2 + p { margin-top: 10px; }
.product-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; margin-top: 20px; }
.product-chat-form > label, .product-chat-form > textarea, .product-chat-form > details, .product-chat-form > p { grid-column: 1 / -1; }
.product-chat-form > button { justify-self: start; }
.product-chat-dates summary { cursor: pointer; color: var(--muted); font-size: .875rem; padding: 8px 0; }
.product-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; }
.product-date-fields > label { grid-column: 1 / -1; }
.product-date-fields > input { grid-column: 1 / -1; }
.product-chat-turns { display: grid; gap: 18px; margin-top: 22px; }
.product-chat-turn { padding: 20px; border-radius: 12px; border: 1px solid var(--line); }
.product-chat-question { color: var(--accent-dark); }
.product-chat-answer { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-chat-turn blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid #bdccbf; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.product-chat-turn .disclosure { margin-top: 12px; }
.product-coverage { margin: 20px 0 0; }
.product-coverage > div { padding: 16px 0; }
.product-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.product-dialog-heading > button { flex: 0 0 auto; }
.product-source-message { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-source-message > h3 { font-size: 1.125rem; }
.product-source-message .source-body { margin-top: 14px; }
.product-source-coverage { font-size: .875rem; }
.product-review-recipients { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 22px 0; }
.product-review-recipients dt { color: var(--muted); }
.product-review-recipients dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.product-root .product-exact-body { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.product-review-dialog > button { margin-top: 20px; }
.product-error { margin-bottom: 16px; }
.product-error > code { display: block; margin-top: 10px; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: minmax(235px, .85fr) minmax(0, 1.4fr); gap: 16px; }
  .product-work { padding: 22px; }
  .product-heading-actions { max-width: 40%; }
  .product-rewrite-bar button { flex-grow: 1; }
}
@media (max-width: 680px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-heading { gap: 20px; }
  .product-heading-actions { max-width: none; width: 100%; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; justify-items: stretch; }
  .product-heading-actions .connection-context { margin: 0; }
  .product-heading-actions > a.button { font-size: .875rem; padding: 10px 12px; }
  .product-refresh-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .product-task-rail { padding: 20px 12px 12px; }
  .product-task-list { max-height: 450px; overflow-y: auto; padding: 3px; overscroll-behavior: contain; }
  .product-work { padding: 22px 18px; }
  .product-work-empty { min-height: 200px; padding: 4px; }
  .product-work-content > h2 { font-size: 1.25rem; }
  .product-summary { padding: 16px; }
  .product-editor-actions { gap: 8px; }
  .product-editor-actions > button:last-child { width: 100%; margin-left: 0; }
  .product-reply-body { min-height: 300px; }
  .product-candidate { padding: 16px; }
  .product-chat { padding: 22px 18px; }
  .product-chat-turn { padding: 16px; }
  .product-preferences-body { padding: 20px; }
  .product-dialog-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .product-dialog-heading > button { margin-left: auto; }
  .product-review-recipients { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .product-review-recipients dd { margin-bottom: 12px; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 44px;
  max-width: 100%;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--surface);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
button:hover, .button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--control-line); }
.button-secondary:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }
.text-button { padding: 10px 12px; background: transparent; border-color: transparent; color: var(--muted); }
.text-button:hover { background: var(--paper); border-color: transparent; color: var(--ink); }
button:disabled { background: var(--line); border-color: var(--control-line); color: var(--muted); cursor: not-allowed; }
:where(a, button, input, select, summary, textarea, dialog):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
#main:focus { outline: none; }
::selection { background: #d8e8e2; color: var(--ink); }
.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 16px;
  padding: 12px 18px;
  border: 2px solid var(--focus);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
h2 { font-size: 1.25rem; font-weight: 650; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
h3 { font-size: 1rem; font-weight: 650; line-height: 1.5; }
p + p { margin-top: .75em; }
form { margin: 0; min-width: 0; }
code { font: .875em/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.eyebrow { color: var(--accent); font-size: .9375rem; font-weight: 600; margin-bottom: 8px; }
.page-intro { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; margin-top: 12px; max-width: 62ch; }
.field-help, .list-caption, .result-period, .folder-caption, .permission-note { color: var(--muted); font-size: .9375rem; line-height: 1.6; overflow-wrap: anywhere; }
.permission-note { max-width: 80ch; }

/* A small number of working destinations; no hidden mobile menu. */
.app-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; max-width: 1200px; min-height: 72px; padding: 10px 32px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.125rem; font-weight: 650; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 10px 10px 10px 3px; background: var(--accent); color: white; font: 650 1.625rem/1 Georgia, serif; padding-bottom: 5px; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 8px; color: var(--muted); font-size: .9375rem; text-decoration: none; }
.main-nav a:hover { background: var(--paper); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 650; }
.header-caption { margin-left: auto; color: var(--muted); font-size: .875rem; }
.page-shell { flex: 1; width: min(1040px, calc(100% - 64px)); min-width: 0; margin: 0 auto; padding: 40px 0 56px; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; width: min(1040px, calc(100% - 64px)); margin: 0 auto; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.app-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.page-heading { margin-bottom: 32px; }
.welcome-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.welcome-heading > div { min-width: 0; }
.welcome-heading > div:first-child { flex: 1; }
.welcome-heading h1, .hosted-entry h1 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 400; letter-spacing: -.04em; }
.connection-context { display: block; max-width: 34%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; text-decoration: none; }
.connection-context:hover { border-color: var(--accent); background: var(--accent-soft); }
.connection-label { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--accent); font-weight: 600; }
.connection-address { display: block; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.status-label { display: inline-flex; align-items: center; padding: 5px 11px; border: 1px solid #c6d9d2; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: .9375rem; font-weight: 600; line-height: 1.5; }

/* Visible policy and result coverage stay outside technical disclosures. */
.scope-note { margin: 0 0 24px; padding: 0 0 0 12px; border-left: 2px solid #9cafaa; color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.scope-note strong { color: var(--ink); }
.scope-note p + p { margin-top: 4px; }
.notice { margin: 18px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; overflow-wrap: anywhere; }
.notice-warning { background: var(--warning-soft); border-color: #c09b55; color: var(--warning); }
.notice-info { background: #eef3f8; border-color: #9babbb; }
.notice-success { background: var(--accent-soft); border-color: #9cafaa; color: var(--accent-dark); }
.notice a { color: inherit; font-weight: 600; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { margin-bottom: 24px; }
.section-heading > p:not(.eyebrow) { margin-top: 10px; color: var(--muted); }
.setup-panel { padding: 32px; }
.setup-panel > .section-heading { max-width: 66ch; }
.folder-form { display: grid; gap: 12px; max-width: 640px; margin-top: 24px; }
.folder-form > label:not(.check) { font-size: .9375rem; font-weight: 600; }
select { width: 100%; min-width: 0; min-height: 48px; max-width: 100%; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 1rem; }
select:disabled { background: var(--paper); color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 8px 0; padding: 8px 0; font-size: .9375rem; cursor: pointer; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 3px 0; accent-color: var(--accent); }
.check span { flex: 1; min-width: 0; }
.folder-form button { justify-self: start; }
.folder-refresh { margin-top: 20px; }
.folder-refresh + .field-help { margin-top: 14px; }
.setup-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.5rem; margin-bottom: 20px; }
.inbox-shortcut { margin-top: 20px; }
.inbox-shortcut + .folder-form { padding-top: 24px; border-top: 1px solid var(--line); }
.folder-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; padding: 24px 28px; }
.folder-card > div { min-width: 0; }
.folder-card .eyebrow { margin-bottom: 6px; }
.folder-caption { margin-top: 4px; }
.folder-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; }
.folder-actions > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.folder-card > .permission-note { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }

/* Native disclosures provide keyboard behavior without client-side code. */
.disclosure { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.disclosure > summary { min-height: 48px; padding: 14px 4px; font-size: 1rem; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.disclosure > summary::marker { color: var(--accent); }
.disclosure > summary > span { color: var(--muted); margin-left: 14px; font-size: .9375rem; font-weight: 400; }
.disclosure-content { padding: 4px 4px 24px; overflow-wrap: anywhere; }
.disclosure-content > p { max-width: 80ch; }
.disclosure-content > form { margin-top: 20px; }
.disclosure-content h2, .disclosure-content h3 { margin-top: 20px; }
.disclosure:target { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 4px; }
.folder-disclosure { margin-top: 32px; }
.account-details { margin-top: 40px; }
.folder-disclosure + .account-details { margin-top: 0; }
.account-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 16px; }
.account-content section { min-width: 0; }
.account-content section > p { color: var(--muted); font-size: 1rem; margin-top: 16px; }
.account-content section > form { margin-top: 20px; }
.account-list, .technical-list, .mail-metadata { display: grid; grid-template-columns: minmax(5rem, .35fr) minmax(0, 1fr); gap: 8px 20px; margin: 20px 0; font-size: .9375rem; }
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.technical-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.technical-list dt, .technical-list dd { overflow-wrap: anywhere; }
.technical-details .disclosure-content { font-size: .9375rem; color: var(--muted); }

/* Message rows use only retrieved source metadata, with no synthetic metrics. */
.message-section { margin-top: 28px; }
.results-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; }
.result-count { color: var(--muted); font-size: .9375rem; }
.snapshot-status { margin-left: auto; color: var(--accent); font-size: .9375rem; }
.result-period { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }
.message-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.message-list > li + li { border-top: 1px solid var(--line); }
.message-list > li:first-child .message-row { border-radius: 13px 13px 0 0; }
.message-list > li:last-child .message-row { border-radius: 0 0 13px 13px; }
.message-list > li:only-child .message-row { border-radius: 13px; }
.message-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 6px 24px; width: 100%; padding: 22px 28px; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 400; }
.message-row:hover { background: #f0f5f3; color: var(--ink); }
.message-row:focus-visible { position: relative; z-index: 1; outline-offset: 3px; }
.message-row:disabled { background: var(--paper); color: var(--muted); }
.message-sender { grid-column: 1; font-size: .9375rem; color: var(--muted); overflow-wrap: anywhere; }
.message-subject { grid-column: 1; grid-row: 2; font-size: 1.125rem; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.message-date { grid-column: 2; grid-row: 1; color: var(--muted); font-size: .9375rem; text-align: right; overflow-wrap: anywhere; }
.attachment-note { display: block; margin-top: 4px; }
.message-action { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; color: var(--accent); font-size: .9375rem; font-weight: 600; }
.message-action > span { margin-left: 8px; }
.list-caption { max-width: 88ch; margin-top: 16px; }
.empty-state { margin-top: 24px; padding: 40px 32px; text-align: center; }
.empty-state p { max-width: 62ch; margin: 12px auto 0; color: var(--muted); }
.empty-state .button { margin-top: 24px; }
.empty-mark { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--accent); background: var(--paper); font-size: 1.5rem; }

/* The source message is the primary reader content. */
.reader-workspace { width: 100%; max-width: 880px; margin: 0 auto; min-width: 0; }
.reader-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: -8px 0 28px; }
.reader-navigation > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1rem; }
.reader-heading h1 { max-width: 36ch; }
.reader-heading .page-intro { overflow-wrap: anywhere; }
.thread-heading { margin-top: 24px; margin-bottom: 16px; }
.thread-heading > p { font-size: .9375rem; }
.coverage-note { max-width: 78ch; }
.coverage-details { margin-top: 8px; border-top: 0; }
.coverage-details > summary { padding: 10px 0; font-weight: 400; }
.mail-card { margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mail-card > summary { padding: 24px 32px; cursor: pointer; font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.mail-card > summary::marker { color: var(--accent); }
.mail-summary-sender { display: inline; }
.mail-summary-meta { display: block; margin-top: 8px; color: var(--muted); font-size: .9375rem; font-weight: 400; }
.mail-summary-warning { display: block; margin-top: 10px; color: var(--warning); font-size: .9375rem; font-weight: 600; }
.mail-content { min-width: 0; padding: 0 32px 36px; }
.message-addresses { border-bottom: 1px solid var(--line); }
.message-addresses > summary { font-size: .9375rem; font-weight: 400; }
.message-addresses .disclosure-content { padding-bottom: 0; }
.mail-metadata { margin-top: 8px; }
.attachment-notice { margin-top: 16px; color: var(--muted); font-size: .9375rem; }
.mail-body { max-width: 70ch; margin: 28px auto 0; min-width: 0; overflow-wrap: anywhere; font: 1.0625rem/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.mail-body > * { margin: 0; }
.mail-body > * + * { margin-top: 1.1em; }
.mail-body p, .mail-body li { white-space: pre-wrap; tab-size: 4; }
.mail-body ul { padding-inline-start: 1.5em; }
.mail-body ol { padding-inline-start: 0; list-style-position: inside; }
.mail-body li + li { margin-top: .35em; }
.mail-body blockquote { padding: .25em 0 .25em 1em; border-inline-start: 3px solid #a9c4ba; color: #40544d; }
.mail-body .body-empty { color: var(--muted); }
.reader-workspace > .technical-details { margin-top: 28px; }

/* Entry, admission and recoverable errors share the product shell. */
.hosted-entry { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 72px; padding: 28px 0 40px; }
.entry-copy { padding-top: 36px; }
.hosted-entry h1 { font-size: clamp(2.5rem, 5vw, 3.875rem); line-height: 1.08; }
.entry-copy .page-intro { font-size: 1.125rem; margin-top: 28px; max-width: 36ch; }
.entry-principle { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.entry-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 36px #18252c06; }
.entry-card > h2 { margin-bottom: 12px; }
.entry-card > p { color: var(--muted); font-size: .9375rem; }
.entry-card > form { margin-top: 28px; }
.microsoft-button { width: 100%; gap: 13px; background: var(--surface); color: var(--ink); border-color: var(--control-line); min-height: 52px; }
.microsoft-button:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.microsoft-mark { display: grid; flex: 0 0 auto; grid-template-columns: 9px 9px; gap: 2px; }
.microsoft-mark i { display: block; height: 9px; background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }
.entry-card > .entry-caption { margin-top: 12px; text-align: center; font-size: .875rem; }
.entry-boundary { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.entry-boundary > p { margin-top: 12px; }
.entry-boundary strong { color: var(--ink); }
.entry-details { margin-top: 24px; }
.entry-details > summary { font-size: .875rem; }
.entry-details .disclosure-content { padding-bottom: 0; color: var(--muted); font-size: .875rem; }
.entry-notice { text-align: left; background: #eef3f8; border-color: #9babbb; }
.auth-panel { max-width: 680px; margin: 24px auto; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.auth-panel > p:not(.eyebrow) { margin-top: 20px; }
.auth-panel > .disclosure { margin: 28px 0; }
.auth-panel > .button { margin-top: 8px; }
.identity-code, .error-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }

/* Account, privacy and support have their own clear destinations. */
.app-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.entry-benefits { display: grid; gap: 24px; list-style: none; padding: 0; margin: 36px 0 0; }
.entry-benefits li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.entry-benefits li > span:last-child { min-width: 0; }
.entry-benefits strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1rem; font-weight: 600; }
.benefit-number { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #cbdcd5; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.entry-card > .eyebrow { color: var(--accent); margin-bottom: 8px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.settings-card { min-width: 0; padding: 28px; }
.settings-card, .privacy-body, .privacy-summary, .entry-card, .auth-panel { overflow-wrap: anywhere; }
.settings-card > h2, .settings-card > .status-label { margin-bottom: 16px; }
.settings-card > p, .settings-card > div > p { color: var(--muted); }
.settings-card > p + p, .settings-card > div > p + p { margin-top: 16px; }
.settings-card .status-label + h2 { margin-top: 20px; }
.settings-card h3 { margin: 24px 0 8px; }
.settings-card h3:first-child { margin-top: 0; }
.settings-form { margin: 24px 0; }
.settings-action { margin-top: 24px; }
.settings-action .disclosure-content { padding-bottom: 0; }
.permissions-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-top: 24px; }
.permissions-card > div { min-width: 0; }
.permissions-card h2 { margin-bottom: 16px; }
.support-card { margin-top: 24px; }
.support-card .technical-details { margin-top: 24px; }
.delete-account { margin-top: 36px; }
.delete-account > summary { color: #8a2929; }
.delete-account .disclosure-content { max-width: 76ch; color: var(--muted); }
.button-danger { background: #8a2929; border-color: #8a2929; }
.button-danger:hover { background: #6b1f1f; border-color: #6b1f1f; }
.reader-footnote { margin: 28px 0 0; color: var(--muted); font-size: .9375rem; }
.privacy-page { max-width: 980px; margin: 0 auto; }
.privacy-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 28px; background: var(--accent-soft); border-color: #cbdcd5; }
.privacy-summary h2 { font-size: 1.0625rem; margin-bottom: 8px; }
.privacy-summary p { color: #40544d; font-size: .9375rem; }
.privacy-body { max-width: 76ch; margin: 40px auto 0; }
.privacy-body section + section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.privacy-body h2 { margin-bottom: 16px; }
.privacy-body p, .privacy-body li { color: var(--muted); }
.privacy-options { padding-inline-start: 24px; }
.privacy-options li + li { margin-top: 12px; }
.privacy-options strong { color: var(--ink); }
.error-panel > .button { margin-top: 24px; }
:where(section, details, div)[id] { scroll-margin-top: 28px; }

@media (max-width: 900px) {
  .header-inner { padding-right: 24px; padding-left: 24px; gap: 16px; }
  .page-shell, .app-footer { width: calc(100% - 48px); }
  .welcome-heading { flex-direction: column; gap: 20px; }
  .connection-context { max-width: 100%; }
  .hosted-entry { gap: 32px; }
  .entry-card { padding: 28px; }
  .account-content { grid-template-columns: minmax(0, 1fr); }
  .permissions-card { gap: 24px; }
}
@media (max-width: 680px) {
  .header-inner { display: flex; flex-wrap: wrap; padding: 10px 20px 6px; gap: 4px 10px; }
  .brand { flex: 1; }
  .main-nav { order: 3; flex-basis: 100%; margin: 0; gap: 8px; }
  .main-nav a { padding: 10px 12px; }
  .header-caption { font-size: .8125rem; min-height: 44px; display: inline-flex; align-items: center; }
  .page-shell { width: calc(100% - 32px); padding: 28px 0 36px; }
  .app-footer { width: calc(100% - 40px); padding: 20px 0; }
  .page-heading { margin-bottom: 24px; }
  .connection-context { width: 100%; padding: 12px 16px; }
  .scope-note { margin-bottom: 20px; }
  .setup-panel { padding: 24px 20px; }
  .folder-card { grid-template-columns: minmax(0, 1fr); align-items: stretch; padding: 20px; gap: 16px; }
  .folder-card button, .folder-form button { width: 100%; }
  .folder-actions { justify-content: space-between; }
  .folder-actions form { flex: 1; }
  .disclosure > summary > span { display: block; margin: 4px 0 0 18px; }
  .message-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 20px; }
  .message-sender, .message-subject, .message-date, .message-action { grid-column: 1; grid-row: auto; text-align: left; }
  .message-subject { font-size: 1.0625rem; }
  .message-action { margin-top: 0; justify-self: start; }
  .snapshot-status { margin-left: 0; }
  .empty-state { padding: 32px 20px; }
  .account-list, .mail-metadata { grid-template-columns: 5rem minmax(0, 1fr); gap: 8px 12px; }
  .mail-card > summary { padding: 20px; }
  .mail-content { padding: 0 20px 28px; }
  .mail-body { margin-top: 24px; }
  .hosted-entry { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0; }
  .entry-copy { padding: 0; }
  .entry-copy .page-intro { font-size: 1.0625rem; margin-top: 20px; }
  .entry-principle { margin-top: 24px; }
  .entry-card { padding: 24px 20px; }
  .auth-panel { padding: 28px 20px; margin: 0; }
  .settings-grid, .permissions-card, .privacy-summary { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { gap: 20px; }
  .settings-card, .privacy-summary { padding: 24px 20px; }
  .privacy-summary { gap: 24px; }
  .privacy-body { margin-top: 28px; }
  .entry-benefits { gap: 18px; margin-top: 28px; }
  .inbox-shortcut button, .settings-form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .status-label, .brand-mark { border: 1px solid ButtonText; }
  .main-nav a[aria-current="page"] { outline: 1px solid LinkText; }
  :where(a, button, input, select, summary):focus-visible { outline-color: Highlight; }
  .message-row { border: 1px solid ButtonText; }
}

/* The assistant is a focused correspondence workspace, alongside the reader. */
.assistant-root { margin: 0 0 36px; min-width: 0; }
.assistant-root *, .source-dialog * { min-width: 0; }
.assistant-shell { display: grid; gap: 24px; }
.assistant-loading, .assistant-panel, .assistant-unavailable { padding: clamp(22px, 4vw, 36px); }
.assistant-loading, .assistant-unavailable { background: var(--warm-soft); border-color: #d9c7b5; }
.assistant-loading p:last-child { max-width: 66ch; color: var(--muted); margin-top: 10px; }
.assistant-overview { display: grid; grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 4vw, 36px); background: linear-gradient(110deg, var(--surface), #f4ede3); }
.assistant-overview h2 { max-width: 32ch; font: 400 clamp(1.75rem, 3.5vw, 2.4rem)/1.25 "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.035em; }
.assistant-overview p { max-width: 70ch; }
.assistant-overview > .eyebrow { margin: 0 0 10px; }
.assistant-overview > .page-intro { margin-top: 14px; }
.assistant-overview > .progress-track { margin-top: 24px; max-width: 42rem; }
.assistant-overview > .field-hint { margin-top: 0; }
.assistant-overview > .assistant-actions { margin-top: 24px; }
.assistant-overview > .assistant-actions:not(:has(> :not([hidden]))) { display: none; }
.assistant-overview > .assistant-unavailable { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 0; margin-top: 24px; background: transparent; border: 0; border-radius: 0; }
.assistant-status:empty, .status-message:empty { display: none; }
.assistant-status, .status-message { color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.assistant-status { border-left: 3px solid var(--accent); padding: 12px 16px; background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.assistant-status[role="alert"] { color: var(--warning); background: var(--warning-soft); border-color: var(--warning); }
.assistant-unavailable { border-radius: var(--radius); border: 1px solid #d9c7b5; }
.assistant-unavailable h2 { margin-bottom: 12px; }
.assistant-unavailable p { max-width: 72ch; }
.assistant-root h3 { margin: 0 0 10px; font-size: 1.125rem; }
.assistant-root h4 { margin: 0 0 12px; font-size: 1rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.field-hint { color: var(--muted); font-size: .9375rem; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }
.field-hint:empty { display: none; }
.assistant-root .field { display: grid; align-content: start; gap: 8px; }
.assistant-root .field > .field-hint { margin: 0; }
.assistant-root .text-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 6px 0; overflow-wrap: anywhere; }
.selection-panel > summary, .coverage-details.assistant-panel > summary { min-height: 48px; padding: 8px 0; font-size: 1.125rem; font-weight: 650; cursor: pointer; overflow-wrap: anywhere; }
.selection-panel > summary::marker, .coverage-details.assistant-panel > summary::marker { color: var(--accent); }
.selection-panel[open] > summary { margin-bottom: 18px; }
.selection-panel > .disclosure-content { padding: 0; }
.assistant-root :is(input[type="text"], input[type="datetime-local"], input[type="date"], textarea),
.source-dialog select {
  display: block; width: 100%; min-height: 48px; max-width: 100%; padding: 12px 14px;
  border: 1px solid var(--control-line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font-size: 1rem; line-height: 1.6;
}
.assistant-root textarea { resize: vertical; }
.assistant-root fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.assistant-root legend { padding: 0; font-weight: 650; margin-bottom: 12px; }
.assistant-root label { display: block; font-weight: 600; }
.assistant-root input[type="checkbox"] { width: 21px; height: 21px; margin: 3px 0; flex: 0 0 auto; accent-color: var(--accent); }
.assistant-root .check { display: flex; font-weight: 400; gap: 12px; }
.assistant-root .check-label { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 0; font-weight: 400; line-height: 1.6; cursor: pointer; overflow-wrap: anywhere; }
.assistant-root .field-help { margin-top: 8px; }
.processing-notice { margin: 24px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #f1f3ed; }
.processing-notice > .field-hint { margin-top: 12px; }
.processing-notice > .check-label { margin-top: 12px; }
.selection-list { display: grid; gap: 0; margin: 20px 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.assistant-root .selection-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; min-height: 60px; cursor: pointer; font-weight: 400; overflow-wrap: anywhere; }
.selection-item > span { flex: 1; }
.selection-title { display: block; font-weight: 600; line-height: 1.55; }
.selection-list > :not(:first-child) { border-top: 1px solid var(--line); }
.selection-item label { display: flex; flex: 1; align-items: flex-start; gap: 14px; cursor: pointer; }
.selection-item:has(input:checked) { background: var(--accent-soft); }
.selection-item:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
.selection-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; font-weight: 400; }
.selection-actions, .assistant-actions, .editor-toolbar, .task-controls, .source-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.assistant-actions p, .selection-actions p { flex: 1 1 20rem; }
.assistant-actions > .field { flex: 1 1 12rem; }
.assistant-actions:has(> .field) { align-items: end; }
.quiet-button, .citation-button { color: var(--accent); background: transparent; border-color: var(--line); }
.quiet-button:hover, .citation-button:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }
.citation-button { min-height: 44px; padding: 9px 12px; font-size: .875rem; font-weight: 600; }
.progress-track { display: block; width: 100%; height: 8px; margin: 16px 0 10px; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); color: var(--accent); accent-color: var(--accent); }
.progress-track::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.progress-track::-webkit-progress-value { background: var(--accent); border-radius: 99px; transition: width 220ms ease-out; }
.progress-track::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.progress-value { color: var(--accent); font-weight: 650; }
.assistant-layout { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.75fr); align-items: start; gap: 24px; }
.task-rail { min-width: 0; padding: 22px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.task-rail > :is(h2, h3, p) { margin-right: 20px; margin-left: 20px; }
.task-list { list-style: none; padding: 0; margin: 18px 0 0; max-height: 40rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.task-item { border-top: 1px solid var(--line); }
.task-button { display: block; width: 100%; padding: 20px; text-align: left; color: var(--ink); background: transparent; border: 0; border-radius: 0; font-weight: 400; }
.task-button:hover { color: var(--ink); background: var(--accent-soft); }
.task-button:focus-visible { outline-offset: -4px; }
.task-button[aria-current="true"], .task-button[aria-pressed="true"], .task-active { color: var(--accent-dark); background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.task-title { display: block; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.task-meta { display: block; color: var(--muted); font-size: .875rem; margin-top: 8px; }
.workspace-panel { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.assistant-root .workspace-heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin: 0 0 18px; font-size: 1.4rem; line-height: 1.5; }
.priority-note { color: var(--muted); font-size: .9375rem; margin: 12px 0; }
.suggested-action { margin: 18px 0; padding: 14px 16px; background: var(--warm-soft); border-radius: 10px; line-height: 1.7; }
.excerpt-list { display: grid; gap: 18px; padding: 0; margin: 18px 0 24px; list-style: none; }
.excerpt-list:empty, .chat-thread:empty { display: none; }
.citation-list { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence-quote { margin: 0 0 10px; padding: 14px 18px; border-left: 3px solid #a8b8a4; border-radius: 0 10px 10px 0; background: #f1f3ed; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.editor-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.editor-label { display: block; font-size: 1.125rem; font-weight: 650; margin-bottom: 10px; }
.assistant-root .draft-editor { min-height: 280px; margin-top: 12px; padding: 20px; line-height: 1.8; }
.editor-toolbar { align-items: stretch; gap: 8px; }
.editor-toolbar button { padding: 10px 14px; }
.editor-panel > form, .editor-panel > label { margin-top: 18px; }
.editor-panel > p { margin-top: 10px; }
.editor-panel > .disclosure { margin-top: 24px; }
.editor-panel > .disclosure > .field { margin-top: 10px; }
.editor-panel > .disclosure > button { margin: 16px 0 24px; }
.candidate-panel { margin-top: 24px; border: 1px solid #d8bfa9; border-left: 4px solid var(--warm); border-radius: 12px; padding: 20px; background: #fcf4eb; }
.candidate-panel h4 { color: var(--warm); }
.candidate-panel > button { margin-top: 18px; }
.candidate-body { white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px 0; margin: 0; font: inherit; line-height: 1.8; }
.conflict-panel { margin-top: 20px; padding: 20px; border: 1px solid #ba985c; border-radius: 12px; background: var(--warning-soft); }
.conflict-panel p { color: var(--warning); }
.conflict-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; max-height: 18rem; overflow: auto; }
.conflict-panel > button { margin: 14px 8px 0 0; }
.task-controls { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 28px; }
.task-controls label { width: 100%; }
.task-controls select { flex: 1 1 10rem; }
.task-controls input { flex: 1 1 14rem; }
.chat-panel { padding: clamp(22px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.chat-panel > p { max-width: 74ch; color: var(--muted); }
.chat-thread { display: grid; gap: 24px; margin: 24px 0; padding: 0; list-style: none; }
.chat-entry { min-width: 0; }
.chat-question { padding: 16px 20px; margin: 0 0 16px 10%; border-radius: 14px 14px 3px 14px; background: var(--accent-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-answer { margin-right: 6%; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-answer h3, .chat-answer > p { margin-bottom: 12px; }
.chat-form { display: grid; gap: 12px; margin-top: 20px; }
.chat-form > .assistant-actions { margin-top: 4px; }
.chat-form textarea { min-height: 100px; }
.chat-form > button { justify-self: start; }
.date-panel { display: grid; gap: 16px; padding: 24px; margin: 20px 0; background: var(--warm-soft); border: 1px solid #d9c7b5; border-radius: 12px; }
.date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.date-fields label { display: grid; gap: 8px; }
.date-fields > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.date-panel code { font-size: .9375rem; }
.date-preview { padding: 16px; background: var(--surface); border: 1px solid #d9c7b5; border-radius: 8px; font-size: .9375rem; line-height: 1.75; overflow-wrap: anywhere; }
.scope-coverage { color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.assistant-root .coverage-details { padding-top: 12px; margin-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.assistant-root .coverage-details summary { color: var(--ink); min-height: 44px; cursor: pointer; }
.assistant-root .coverage-details ul { padding-left: 20px; margin: 10px 0; }
.assistant-root .coverage-details.assistant-panel { padding: 22px 28px; margin: 0; border: 1px solid var(--line); }
.coverage-details.assistant-panel[open] > summary { margin-bottom: 14px; }
.coverage-list > li + li { margin-top: 8px; }
.source-dialog { width: min(880px, calc(100% - 36px)); max-height: calc(100% - 48px); max-height: calc(100dvh - 48px); padding: clamp(20px, 4vw, 36px); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 100px #263c3240; overflow-y: auto; overscroll-behavior: contain; }
.source-dialog::backdrop { background: #1d302bcc; }
.source-dialog[data-fallback-modal][open] { position: fixed; z-index: 1000; inset: 50% auto auto 50%; margin: 0; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax #1d302bcc, 0 24px 100px #263c3240; }
.source-dialog:not([open]) { display: none; }
.source-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.source-dialog-header h2 { flex: 1; font-size: 1.375rem; }
.source-dialog-header button { flex: 0 0 auto; }
.source-dialog > p { color: var(--muted); margin-top: 12px; }
.source-body { margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font: 1.0625rem/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.source-body mark { background: #ffe1a3; color: #302c20; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.source-navigation { justify-content: space-between; }
.source-navigation label { flex-basis: 100%; }
.source-navigation > span { text-align: center; }
.assistant-root button, .source-dialog button { min-width: 44px; transition: background-color 140ms ease, border-color 140ms ease; }
.assistant-root :is(button, input, textarea, select):disabled { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .candidate-panel { animation: appear 180ms ease-out; }
  .source-dialog[open] { animation: appear 140ms ease-out; }
  .source-dialog[data-fallback-modal][open] { animation: fade-in 140ms ease-out; }
  @keyframes appear { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes fade-in { from { opacity: .4; } to { opacity: 1; } }
}
@media (max-width: 900px) {
  .assistant-layout { grid-template-columns: minmax(13rem, .7fr) minmax(0, 1.5fr); gap: 16px; }
  .workspace-panel { padding: 22px; }
  .task-button { padding: 16px; }
}
@media (max-width: 680px) {
  .assistant-root { margin-bottom: 28px; }
  .assistant-shell { gap: 20px; }
  .assistant-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .task-list { max-height: 22rem; }
  .task-rail { padding: 20px 0 0; }
  .workspace-panel, .chat-panel { padding: 20px; }
  .assistant-loading, .assistant-panel, .assistant-unavailable, .assistant-overview { padding: 22px 20px; }
  .assistant-root .coverage-details.assistant-panel { padding: 18px 20px; }
  .assistant-root .selection-item { padding: 16px; }
  .processing-notice { padding: 18px; }
  .assistant-overview > .assistant-unavailable { align-items: stretch; }
  .assistant-overview > .assistant-unavailable > a { flex: 1 1 14rem; }
  .assistant-actions > button, .selection-actions > button { flex: 1 1 14rem; }
  .editor-toolbar > button, .task-controls > button { flex: 1 1 8rem; }
  .assistant-root .draft-editor { min-height: 250px; padding: 16px; }
  .date-fields { grid-template-columns: minmax(0, 1fr); }
  .date-panel { padding: 18px; }
  .chat-question { margin-left: 4%; }
  .chat-answer { margin-right: 0; }
  .chat-form > button { justify-self: stretch; }
  .source-dialog { width: calc(100% - 20px); max-height: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; padding: 20px; }
  .source-dialog-header { flex-wrap: wrap; gap: 12px; }
  .source-dialog-header button { margin-left: auto; }
  .source-body { font-size: 1rem; }
  .source-navigation > button { flex: 1 1 6rem; }
  .source-navigation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .source-navigation > button:first-child { grid-column: 1; grid-row: 1; }
  .source-navigation > button:last-child { grid-column: 2; grid-row: 1; }
  .source-navigation > span { grid-column: 1 / -1; grid-row: 2; }
}
@media (forced-colors: active) {
  .task-button[aria-current="true"], .task-button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  .source-body mark { border: 1px solid Highlight; }
  .progress-track { border: 1px solid CanvasText; }
  :where(textarea, dialog):focus-visible { outline-color: Highlight; }
}
.privacy-curtain { width: min(1040px, calc(100% - 32px)); margin: 40px auto; padding: 28px; color: var(--muted); }
.privacy-curtain > :is(a, button) { display: flex; width: fit-content; margin-top: 20px; }
