:root { color-scheme: light; --navy: #16365b; --blue: #2169ac; --paper: #fff; --rail: #f3f6fa; --ink: #253548; --muted: #5b6b7e; --line: #d8e1ec; --amber: #9a6200; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, .button, summary { cursor: pointer; }
button, .button { border: 1px solid transparent; border-radius: 5px; padding: .55rem 1rem; line-height: 1.5; }
button:disabled { cursor: default; opacity: .5; }
a { color: var(--blue); overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 2; background: white; padding: 10px; }
.skip-link:focus { top: 10px; }
.topbar { min-height: 88px; border-bottom: 1px solid var(--line); padding: 18px max(28px, calc((100vw - 1380px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark { background: var(--navy); color: white; width: 42px; height: 42px; display: grid; place-items: center; font-size: 24px; border-radius: 5px; }
.brand strong { display: block; font-size: 19px; letter-spacing: .04em; }
.brand div > span { display: block; color: var(--muted); font-size: 12px; }
.account { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.quiet { color: var(--navy); background: transparent; border-color: var(--line); }
.quiet:hover { background: var(--rail); }
.button { display: inline-block; color: white; background: var(--navy); text-decoration: none; font-weight: 600; white-space: nowrap; }
.button:hover { background: #214d7c; }
main { max-width: 1380px; padding: 0 28px; margin: auto; min-height: calc(100vh - 160px); }
.status { color: var(--muted); font-size: 14px; margin: 0; padding: 16px 0; min-height: 54px; overflow-wrap: anywhere; }
.status[data-error="true"] { color: #a52b25; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.work-column { min-width: 0; padding-top: 12px; padding-bottom: 48px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.section-label { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.5vw, 32px); line-height: 1.4; color: var(--navy); margin-bottom: 0; font-weight: 650; }
h2 { font-size: 18px; line-height: 1.5; color: var(--navy); margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 6px; }
.access-state { color: var(--navy); background: #eaf1f9; font-size: 12px; border-radius: 3px; padding: 4px 8px; white-space: nowrap; }
.notice { color: var(--amber); border-left: 3px solid var(--amber); padding: 12px 16px; background: #fff8eb; }
.controls { display: flex; gap: 20px; margin-bottom: 20px; align-items: end; }
.field { display: grid; gap: 6px; flex: 1; max-width: 320px; }
label { font-size: 14px; font-weight: 600; }
select, input { width: 100%; border: 1px solid #b6c5d6; background: white; padding: 8px 10px; border-radius: 4px; color: var(--ink); min-height: 44px; }
.question-label { display: block; margin-bottom: 8px; font-size: 16px; }
textarea { display: block; resize: vertical; width: 100%; min-height: 138px; border: 1px solid #aabed4; border-radius: 5px; padding: 16px; color: var(--ink); line-height: 1.8; }
textarea::placeholder, input::placeholder { color: #677b90; }
.submit-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.submit-row p { flex: 1; margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.quick-prompts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); font-size: 13px; }
.quick-prompts > span { margin-right: 4px; color: var(--muted); }
.quick-prompts button { color: var(--blue); padding: 5px 10px; background: var(--rail); }
.answer { padding-top: 28px; }
.answer-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.answer-block { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 20px; max-width: 75ch; }
.answer-block.quote { border-left: 3px solid #b4c9df; padding-left: 16px; }
.answer-block.notice { font-size: 14px; }
.inline-citation { padding: 2px 7px; background: #eaf1f9; color: var(--blue); margin: 8px 6px 0 0; font-size: 12px; }
.warning-list { color: var(--amber); font-size: 13px; }
.answer-footnote { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; }
.answer-empty { padding: 36px 0 44px; color: var(--navy); }
.answer-empty > span { font-size: 60px; line-height: 1; color: #9bb5d0; display: block; height: 44px; }
.answer-empty p { margin-bottom: 7px; }
.source-rail { background: var(--rail); padding: 22px 24px 30px; min-width: 0; border-radius: 5px 5px 0 0; }
summary { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 24px; }
.source-rail section h2 { font-size: 14px; margin-bottom: 6px; }
.source-item { border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; overflow-wrap: anywhere; }
.source-item p { margin: 3px 0; }
.references { margin-top: 28px; }
.citation-button { width: 100%; background: white; border: 1px solid var(--line); text-align: left; color: var(--navy); margin-bottom: 8px; overflow-wrap: anywhere; }
.citation-button span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
#citation-detail { margin-top: 20px; overflow-wrap: anywhere; }
#citation-detail blockquote { margin: 14px 0; border-left: 3px solid #aabed4; padding-left: 12px; white-space: pre-wrap; font-size: 14px; }
#citation-detail dl { font-size: 12px; }
#citation-detail dt { color: var(--muted); }
#citation-detail dd { margin: 0 0 8px; }
.login { max-width: 780px; margin: 65px auto; }
.login h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 22px; }
.intro { color: var(--muted); font-size: 18px; max-width: 36em; }
.source-intro { display: flex; padding: 0; list-style: none; gap: 36px; margin: 36px 0; }
.source-intro li { padding-left: 14px; border-left: 3px solid #aabed4; }
.source-intro strong, .source-intro span { display: block; }
.source-intro span { color: var(--muted); font-size: 13px; }
.login > .muted { margin-top: 20px; }
footer { display: flex; gap: 20px; justify-content: space-between; padding: 20px 28px; max-width: 1380px; margin: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 960px) { .workspace { gap: 24px; grid-template-columns: minmax(0, 1fr) 280px; } .source-rail { padding: 18px; } .workspace-heading { align-items: start; flex-direction: column; gap: 10px; } .submit-row { flex-wrap: wrap; } .submit-row p { flex-basis: 100%; } }
@media (max-width: 720px) { .topbar { padding: 16px 20px; align-items: start; } .account { flex-direction: column; align-items: end; gap: 8px; } main { padding: 0 20px; } .workspace { display: flex; flex-direction: column; gap: 0; } .work-column { padding-bottom: 24px; } .source-rail { margin-bottom: 28px; } .controls { flex-direction: column; align-items: stretch; gap: 12px; } .field { max-width: none; } .source-intro { flex-direction: column; gap: 16px; } .login { margin: 30px auto; } .answer-heading { flex-direction: column; gap: 0; } footer { margin: 0 20px; padding: 16px 0; flex-direction: column; gap: 3px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
