:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #14151a; background: #fff; font-synthesis: none; --secondary: #565b66; --accent: #3152d4; --accent-bright: #5d81ff; --surface: #edf0f4; --border: #e4e7ec; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
button { border: 0; background: transparent; }
svg { width: 17px; height: 17px; flex: 0 0 17px; }
[hidden] { display: none !important; }
.workspace { position: relative; display: grid; grid-template-columns: 155px 190px minmax(0, 1fr); height: 100dvh; min-height: 460px; overflow: hidden; font-size: 14px; }
.sidebar { display: flex; flex-direction: column; background: #fbf5ec; border-right: 1px solid var(--border); padding: 22px 10px 12px; }
.brand { font-size: 15px; font-weight: 750; margin: 0 10px 25px; }
.nav-item { display: flex; align-items: center; gap: 9px; min-height: 37px; padding: 8px; border-radius: 5px; font-size: 13px; }
.nav-item.active { background: var(--surface); font-weight: 650; }
.nav-label { margin: 19px 8px 6px; font-size: 10px; color: #72716f; }
.search { color: #797874; font-size: 12px; margin: 10px 0 15px; }
.profile { display: flex; gap: 8px; align-items: center; margin-top: auto; padding: 12px 3px 0; border-top: 1px solid #e3e0dc; font-size: 11px; }
.avatar { width: 27px; height: 27px; border-radius: 6px; display: grid; place-items: center; background: var(--secondary); color: white; font-size: 11px; flex-shrink: 0; }
.profile small { display: block; margin-top: 3px; color: #666; font-size: 10px; }
.history { border-right: 1px solid #e5e5e7; overflow-y: auto; }
.history-head { height: 64px; display: flex; align-items: center; padding: 0 17px; border-bottom: 1px solid #e8e8ea; }
h1 { font-size: 17px; margin: 0; font-weight: 650; }
.new-chat { display: flex; align-items: center; gap: 9px; padding: 20px 17px 15px; font-weight: 600; }
.history-row { margin: 4px 7px; padding: 12px 10px; border-radius: 6px; }
.history-row.selected { background: var(--surface); }
.history-row strong { display: block; font-size: 13px; font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-row small { display: block; color: #696a70; font-size: 11px; margin-top: 6px; }
.conversation { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.context-head { height: 64px; flex-shrink: 0; border-bottom: 1px solid #ebebed; display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.context-head h2 { font-size: 14px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.workspace-chip { font-size: 11px; background: var(--surface); color: var(--secondary); padding: 6px 10px; border-radius: 20px; white-space: nowrap; }
.icon-button { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 5px; }
.icon-button:hover { background: #eeeef1; }
.transcript { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 32px 12px; scrollbar-width: thin; }
.welcome { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-bottom: 25px; text-align: center; }
.welcome h3 { font-size: 22px; font-weight: 600; margin: 18px 0 12px; }
.welcome svg { width: 26px; height: 26px; color: #7d818b; }
.welcome p { font-size: 13px; color: #73747b; }
.user-message { width: fit-content; max-width: 88%; margin: 0 0 26px auto; padding: 11px 16px; border-radius: 20px; background: #e9f3ff; color: #20344f; font-size: 15px; line-height: 1.5; }
.answer { font-size: 15.5px; line-height: 1.6; }
.answer h3 { font-size: 15px; line-height: 1.5; margin: 0 0 12px; font-weight: 650; }
.answer ol { padding-left: 23px; margin: 0 0 15px; }
.answer li { padding-left: 2px; margin-bottom: 12px; }
.answer p { margin: 0 0 18px; }
.citation { color: var(--accent); vertical-align: super; font-size: 11px; padding: 2px 4px; border-radius: 3px; }
.citation:hover { background: #edf0ff; }
.source-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; background: #f4f6ff; color: var(--accent); border: 1px solid #bcc9ff; border-radius: 6px; font-size: 12px; font-weight: 500; padding: 5px 10px; }
.source-chip:hover { background: #eaeeff; border-color: var(--accent-bright); }
.loading { color: #777982; font-size: 13px; padding: 8px 0; }
.loading::after { content: '...'; animation: pulse 1s ease-in-out infinite alternate; }
.composer-dock { margin: 12px 24px 15px; flex-shrink: 0; }
.composer { display: flex; gap: 8px; align-items: center; min-height: 38px; padding: 3px 5px 3px 12px; border: 1px solid #d6d6da; border-radius: 20px; box-shadow: 0 2px 8px #20293805; }
.composer textarea { width: 100%; min-width: 0; border: 0; resize: none; background: transparent; font-size: 13px; line-height: 18px; height: 20px; padding: 1px 0; color: #41434b; }
.workspace[data-state="idle"] .composer textarea { height: 42px; }
.send { background: var(--accent); color: white; border-radius: 50%; width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; }
.send:disabled { background: #eef0f4; color: #9ea2ad; opacity: 1; }
.help-offer { padding-top: 4px; margin-top: 20px; }
.help-offer p, .help-context p { color: #6d7078; font-size: 13px; line-height: 1.6; }
.help-offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.online { color: #356950; font-size: 11px; }
.online::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #53a474; }
.help-contact { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.help-identity .online { margin-left: 8px; font-weight: 400; }
.guided-action { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; margin-bottom: 110px; }
.action-pointer { position: absolute; top: calc(100% + 4px); right: 40%; width: 240px; height: 110px; color: var(--accent); pointer-events: none; transform: scaleX(-1); }
.action-pointer svg { display: block; width: 100%; height: 100%; }
.action-pointer .arrow-stroke { stroke-dasharray: 1 1; animation: sketch-arrow 800ms linear both; }
.help-offer .action-pointer { right: auto; left: 40%; transform: none; }
@keyframes sketch-arrow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.help-identity { font-size: 13px; line-height: 1.5; }
.help-identity strong { font-weight: 600; }
.help-identity small { display: block; color: var(--secondary); font-size: 12px; }
.help-button, .cancel-help { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; flex: 0 0 auto; padding: 0 12px; border: 1px solid #ccd2dc; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1; margin: 0; transition: background-color 120ms, border-color 120ms, box-shadow 120ms; }
.help-button { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.help-button:hover, .send:hover:not(:disabled) { background: #2944b8; border-color: #2944b8; }
.cancel-help { background: #fff; color: #565b66; }
.cancel-help:hover { background: var(--surface); border-color: #a8adb6; color: #14151a; }
.help-button:active, .cancel-help:active { box-shadow: inset 0 1px 3px #14151a24; }
.help-button svg, .cancel-help svg, .source-chip svg { width: 14px; height: 14px; flex-basis: 14px; }
.pending-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pending { color: var(--secondary); font-size: 12px; background: var(--surface); border-radius: 20px; padding: 5px 10px; display: inline-block; }
.help-context { margin-top: 22px; border-top: 1px solid #e8e8eb; padding-top: 18px; }
.help-context h3 { margin: 0 0 8px; font-size: 14px; }
.drawer { position: absolute; inset: 64px 0 0 auto; width: min(395px, 100%); background: #fff; border-left: 1px solid var(--border); box-shadow: -12px 0 25px #2029380a; padding: 20px; overflow-y: auto; z-index: 2; animation: slide-in 180ms ease-out; }
.drawer-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.drawer h2 { font-size: 18px; line-height: 1.4; margin: 0 0 8px; }
.drawer small { font-size: 11px; color: #737780; }
.source-meta { display: grid; gap: 8px; margin: 20px 0; font-size: 11px; }
.source-meta div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
.source-meta dt { color: var(--secondary); }
.source-meta dd { margin: 0; }
.source-section { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; font-size: 14px; line-height: 1.65; }
.source-section h3 { font-size: 15px; }
.source-section p { margin: 0 0 16px; padding: 8px 10px; border-left: 2px solid var(--border); }
.source-section p.is-cited { border-left-color: var(--accent-bright); background: #f5f8ff; }
.source-section mark { color: inherit; background: #e9f1ff; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.local-note { color: var(--secondary); font-size: 11px; line-height: 1.5; }
.attention { animation: call-attention 900ms ease-in-out 2; }
@keyframes call-attention { 50% { box-shadow: 0 0 0 5px #5d81ff26; } }
@media (min-width: 761px) {
  .workspace.source-open { grid-template-columns: 155px minmax(0, 1fr) 360px; }
  .source-open .history { display: none; }
  .source-open .drawer { position: relative; inset: auto; width: auto; min-height: 0; box-shadow: none; }
  .source-open .transcript { padding: 24px; }
  .source-open .context-head { padding: 0 20px; gap: 8px; }
  .source-open .user-message { max-width: 100%; }
}
@media (min-width: 761px) and (max-width: 950px) {
  .workspace.source-open { grid-template-columns: 130px minmax(0, 1fr) 280px; }
  .source-open .workspace-chip { display: none; }
  .source-open .transcript { padding: 20px; }
  .source-open .drawer { padding: 16px; }
}
@keyframes pulse { from { opacity: .3; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 760px) { .workspace { grid-template-columns: 135px minmax(0, 1fr); } .history { display: none; } .transcript { padding: 24px; } }
@media (max-width: 480px) { .workspace { grid-template-columns: minmax(0, 1fr); } .sidebar { display: none; } .context-head { padding: 0 16px; gap: 8px; } .transcript { padding: 20px; } .composer-dock { margin: 10px 16px 14px; } .workspace-chip { max-width: 100px; overflow: hidden; text-overflow: ellipsis; } }

.source-close { position: absolute; top: 12px; right: 12px; }
.source-document { padding: 18px 2px 0; }
.document-running-head { margin: 0 0 26px; font-size: 10px; color: var(--secondary); }
.source-document h2 { padding-right: 24px; font-size: 22px; line-height: 1.3; }
.document-intro { font-size: 13px; line-height: 1.6; color: var(--secondary); margin: 12px 0 24px; }
.source-document .source-section { margin-top: 0; padding-top: 20px; }
.document-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 24px; font-size: 10px; color: var(--secondary); }
.person-conversation { margin-top: 26px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0 0; animation: slide-in 240ms ease-out; }
.person-conversation-head { display: flex; align-items: center; gap: 12px; }
.person-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #e5ebff; color: #3152d4; font-size: 13px; font-weight: 600; }
.person-conversation-head h3 { margin: 0; font-size: 15px; }
.person-conversation-head p { margin: 3px 0 0; font-size: 12px; color: var(--secondary); }
.person-conversation-head .online { margin-left: 8px; }
.person-conversation-head .pending { margin-left: auto; white-space: nowrap; }
.handoff-receipt { display: flex; gap: 12px; padding: 24px 0 16px; }
.handoff-receipt-icon { color: #3152d4; padding-top: 2px; }
.handoff-receipt h3 { margin: 0 0 5px; font-size: 14px; }
.handoff-receipt p { margin: 0; font-size: 13px; color: var(--secondary); line-height: 1.6; max-width: 420px; }
.context-attachment { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 6px; margin: 0 0 20px 29px; }
.context-attachment > span { color: var(--secondary); display: flex; }
.context-attachment strong { font-size: 13px; font-weight: 500; }
.context-attachment p { font-size: 11px; margin: 2px 0 0; color: var(--secondary); }
.person-conversation-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.person-conversation-footer > span { font-size: 11px; color: var(--secondary); }
.person-conversation-footer .cancel-help { margin: 0; }
.answer .local-note { font-size: 10px; color: var(--secondary); line-height: 1.5; margin: 12px 0 0; }
@media (max-width: 600px) {
  .person-conversation-head { flex-wrap: wrap; }
  .person-conversation-head .pending { margin-left: 50px; }
  .context-attachment { margin-left: 0; }
}
.citation-ending { white-space: nowrap; }
.person-conversation .conversation-context { margin: 12px 0 16px; font-size: 11px; color: var(--secondary); }
.person-messages { display: grid; gap: 16px; }
.person-message { max-width: 94%; animation: slide-in 180ms ease-out; }
.person-message > span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--secondary); }
.person-message p { margin: 0; font-size: 14px; line-height: 1.55; }
.person-message--you { justify-self: end; max-width: 88%; }
.person-message--you p { padding: 10px 14px; background: #e9f3ff; border-radius: 16px; }
.person-messages:not(:empty) { margin-bottom: 20px; }
.person-conversation-footer .cancel-help { flex-shrink: 0; }
.composer-dock .person-conversation-footer { border-top: 0; padding: 0 2px 10px; }
.composer-dock .person-conversation-footer .cancel-help { padding: 6px 10px; }
.person-conversation { border-bottom: 0; }
@media (min-width: 601px) {
  .user-message { font-size: 13px; padding: 9px 13px; margin-bottom: 22px; }
  .answer { font-size: 13.5px; line-height: 1.6; }
  .answer h3, .person-conversation-head h3 { font-size: 14px; }
  .person-message p { font-size: 13px; }
  .person-message--you p { padding: 8px 12px; }
  .person-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 11px; }
  .source-document h2 { font-size: 19px; }
}

/* Show the evidence as a page, not another application panel. */
.routing-reason { font-size: 12px; color: var(--secondary); margin: 12px 0 0; }
.resolution-next { border-top: 1px solid var(--border); padding-top: 14px; display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.resolution-next p { margin: 0; padding-top: 8px; font-size: 12px; color: var(--secondary); }
.resolution-next button { flex-shrink: 0; }
.knowledge-review { max-width: 620px; margin: 0 auto; padding: 12px 0 24px; font-size: 13px; line-height: 1.55; }
.knowledge-review h3 { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 8px 0 12px; }
.knowledge-status { font-size: 11px; color: #26744e; font-weight: 600; margin: 0; }
.knowledge-review > p { color: var(--secondary); }
.knowledge-review label { display: block; margin: 18px 0 6px; font-size: 12px; font-weight: 600; }
.knowledge-review input, .knowledge-review textarea { box-sizing: border-box; width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font: inherit; color: inherit; background: white; }
.knowledge-review textarea { min-height: 150px; resize: vertical; }
.knowledge-provenance { font-size: 11px; color: var(--secondary); margin: 16px 0; }
.knowledge-provenance div { display: flex; gap: 12px; }
.knowledge-provenance dt { min-width: 35px; }
.knowledge-provenance dd { margin: 0; }
.knowledge-actions { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border); padding: 16px 0 110px; }
.knowledge-actions .action-pointer { top: 56px; right: 48px; }
.saved-knowledge { padding: 20px 0; margin: 20px 0; border-block: 1px solid var(--border); }
.saved-knowledge h4 { font-size: 16px; margin: 8px 0; }
.saved-knowledge small { color: var(--secondary); font-size: 11px; }
.composer-dock[hidden] { display: none; }
@media (max-width: 600px) {
  .resolution-next { align-items: flex-start; flex-direction: column; }
  .resolution-next .action-pointer { right: auto; left: 40%; transform: none; }
  .action-pointer { width: min(210px, calc(100vw - 120px)); height: 100px; }
}
.drawer, .source-open .drawer { padding: 44px 14px 18px; background: #eef0f3; }
.source-close { top: 5px; right: 9px; width: 28px; height: 28px; }
.source-document { padding: 26px 22px 18px; background: #fff; border: 1px solid #dfe2e7; box-shadow: 0 2px 5px #2029380b; min-height: 470px; }
.document-running-head { margin: 0 0 16px; font-size: 9px; }
.source-document h2 { padding: 0; font-size: 18px; line-height: 1.35; }
.document-intro { font-size: 11px; line-height: 1.6; margin: 10px 0 18px; }
.source-document .source-section { padding-top: 12px; font-size: 12px; line-height: 1.7; }
.source-section h3 { font-size: 13px; margin: 0 0 14px; }
.source-section p { padding: 0; border: 0; margin: 0 0 16px; }
.source-section p.is-cited { background: transparent; }
.source-section mark { background: #e9f1ff; }
.document-footer { font-size: 9px; margin-top: 20px; padding-top: 12px; }
.source-document { min-height: 680px; padding: 28px 24px 22px; font-family: Georgia, "Times New Roman", serif; }
.source-document .document-running-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 22px; font-family: Arial, sans-serif; font-size: 8px; color: #30343a; }
.document-running-head span { text-align: right; }
.source-document h2 { font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.2; margin-bottom: 16px; }
.policy-register { font-family: Arial, sans-serif; font-size: 9px; line-height: 1.6; margin: 0 0 22px; }
.policy-register div { display: grid; grid-template-columns: 82px 1fr; }
.policy-register dt { font-weight: 600; }
.policy-register dd { margin: 0; }
.source-document .source-section { border: 0; padding: 0; font-size: 11px; line-height: 1.6; }
.source-document .source-section h3 { font-size: 12px; margin: 18px 0 7px; }
.source-document .source-section p { margin-bottom: 10px; }
.source-document .document-footer { font-family: Arial, sans-serif; margin-top: 28px; }
