:root {
  --forest: #192620; --ink: #25352f; --muted: #69756b; --line: #dfe4da;
  --paper: #f6f7f1; --accent: #d1ae69; --pale: #f3eddd; --red: #983e32;
  color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; line-height: 1.65; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #b59b5d; outline-offset: 3px; }
input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #cfd7ca; border-radius: 6px; color: var(--ink); background: #fff; }
input::placeholder { color: #818b7d; }
input:focus { border-color: #809373; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(27px, 3vw, 34px); font-weight: 600; letter-spacing: -.7px; line-height: 1.4; }
h2 { font-size: 18px; font-weight: 600; }
.muted { color: var(--muted); font-size: 13px; }
.eyebrow { color: #7d886f; font-size: 10px; letter-spacing: 1.8px; font-weight: 600; margin-bottom: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 42px; border: 1px solid transparent; border-radius: 6px; padding: 10px 16px; font-size: 12px; font-weight: 600; transition: background .16s, border-color .16s, transform .16s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.primary { color: #f6f2e6; background: var(--forest); }
.primary:hover:not(:disabled) { background: #314b3b; }
.secondary { background: #fff; border-color: #d4ddcc; }
.secondary:hover:not(:disabled) { background: #edf2e7; border-color: #b6c4ab; }
.full { width: 100%; justify-content: space-between; }
.text-button { border: 0; background: none; color: #5f7358; font-size: 12px; min-height: 40px; padding: 8px 4px; }
.text-button:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.skip-link { position: fixed; z-index: 10; top: -80px; left: 16px; padding: 10px 16px; background: var(--accent); color: var(--forest); }
.skip-link:focus { top: 12px; }
.site-header { min-height: 85px; padding: 18px max(28px, calc((100vw - 1420px) / 2)); display: flex; align-items: center; gap: 38px; background: var(--forest); color: #e6ebde; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; letter-spacing: 3px; font-weight: 700; line-height: 1.05; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 40px; border-radius: 8px; color: var(--forest); background: var(--accent); font: 700 28px Georgia, serif; letter-spacing: 0; }
.wordmark-en { display: block; font-size: 8px; letter-spacing: 2.4px; font-weight: 400; color: #a7b49f; margin-top: 7px; }
.header-context { font-size: 12px; color: #aab7a4; padding-left: 32px; border-left: 1px solid #40523e; }
.header-context span { color: #62735f; margin: 0 14px; }
.header-link { margin-left: auto; font-size: 12px; color: #d4c399; padding: 9px 0; }
.header-link:hover { color: #f6e4b7; }
#main-content { outline: none; }
.workspace { max-width: 1476px; padding: 34px 28px 0; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: 24px; }
.page-heading .muted { margin-top: 9px; }
.page-actions, .state-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.workspace-meta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; min-height: 50px; margin-bottom: 24px; font-size: 11px; color: #6f7b66; }
.workspace-meta p { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #748f65; }
.meta-divider { color: #a4ad9d; }
.response-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 30px; align-items: start; }
.response-sidebar { position: sticky; top: 18px; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.list-heading h2 { font-size: 16px; }
.list-heading p { margin-top: 3px; font-size: 10px; color: var(--muted); }
.count { font-size: 11px; color: #7e8a72; margin-left: 5px; font-weight: 400; }
.icon-button { display: grid; place-items: center; background: transparent; border: 1px solid #d8dfcf; border-radius: 6px; width: 42px; height: 42px; font-size: 23px; line-height: 1; }
.icon-button:hover:not(:disabled) { background: #e8edde; }
.search-label { display: block; font-size: 11px; color: #6f7b66; margin-bottom: 6px; }
#response-search { font-size: 12px; }
.list-message { color: var(--muted); font-size: 11px; min-height: 20px; margin: 12px 0 8px; }
.list-message.error { color: var(--red); }
.response-list { margin: 0; padding: 0 0 8px; list-style: none; max-height: calc(100vh - 248px); min-height: 110px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #bdc7b4 transparent; }
.response-list li + li { border-top: 1px solid var(--line); }
.response-item { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid transparent; background: transparent; padding: 16px 14px 16px 12px; transition: background .17s, border-color .17s; }
.response-item:hover { background: #edf1e5; }
.response-item[aria-current="true"] { background: #e7edde; border-left-color: #8a7446; }
.response-item strong { display: block; color: #30402c; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.response-item .respondent-company { display: block; color: #65735c; font-size: 11px; margin: 4px 0 10px; overflow-wrap: anywhere; }
.response-item time { display: block; color: #77836d; font-size: 10px; font-variant-numeric: tabular-nums; }
.response-item .receipt-short { display: block; color: #89927d; font-size: 9px; margin-top: 2px; overflow-wrap: anywhere; }
.detail-panel { background: #fff; border: 1px solid #e0e5d9; min-height: 510px; min-width: 0; }
.detail-state { min-height: 510px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; text-align: center; padding: 40px 25px; }
.detail-state h2 { font-size: 20px; color: #5e6e54; }
.detail-state p { color: #7b8770; font-size: 12px; max-width: 380px; }
.folio-mark { font: 40px Georgia, serif; color: #a8b79a; margin-bottom: 8px; }
.detail-toolbar { display: flex; align-items: center; gap: 15px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: #fbfcf8; }
.detail-toolbar .button { margin-left: auto; min-height: 36px; padding: 7px 12px; font-size: 11px; }
.readonly-label { font-size: 10px; color: #7c886f; }
#back-to-list { display: none; }
.document-heading { padding: 30px 34px 23px; border-bottom: 1px solid var(--line); }
.document-heading h2 { font-size: 24px; line-height: 1.5; font-weight: 600; margin-bottom: 9px; overflow-wrap: anywhere; outline: none; }
.document-heading .muted { font-size: 12px; white-space: pre-wrap; }
.respondent-meta { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 24px; }
.meta-item { min-width: 0; }
.respondent-meta dt { color: #7f8873; font-size: 10px; }
.respondent-meta dd { margin: 4px 0 0; font-size: 12px; color: #415037; overflow-wrap: anywhere; white-space: pre-wrap; }
.meta-item.wide { grid-column: 1 / -1; }
.answer-summary { font-size: 11px; color: #756749; padding-top: 18px; margin-top: 22px; border-top: 1px dashed #dce1d4; }
.document-section { padding: 27px 34px 10px; }
.group-heading { padding-bottom: 15px; border-bottom: 1px solid #ccd6c0; }
.group-kicker { color: #97875c; font-size: 10px; letter-spacing: 1.4px; margin-bottom: 4px; }
.group-heading h3 { font-size: 18px; font-weight: 600; }
.group-description { color: #76816a; font-size: 11px; margin-top: 5px; white-space: pre-wrap; }
.question { padding: 22px 0; border-bottom: 1px solid #e7ebdf; }
.question:last-child { border-bottom: 0; }
.question-title { display: flex; align-items: baseline; gap: 9px; }
.question-number { color: #9a9e89; font-size: 10px; min-width: 24px; font-variant-numeric: tabular-nums; }
.question h4 { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.question-hint { font-size: 11px; color: #768069; margin: 6px 0 12px 33px; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-content { margin-left: 33px; }
.answer-label { font-size: 9px; color: #89917d; margin-bottom: 5px; }
.answer-values { list-style: none; margin: 0; padding: 0; font-size: 13px; color: #314e2e; }
.answer-values li { position: relative; padding-left: 17px; overflow-wrap: anywhere; white-space: pre-wrap; }
.answer-values li::before { content: "✓"; position: absolute; top: 0; left: 0; color: #758460; font-size: 11px; }
.answer-values li + li { margin-top: 5px; }
.unanswered { color: #948970; font-size: 12px; }
.option-reference { font-size: 10px; color: #818973; margin-top: 10px; overflow-wrap: anywhere; white-space: pre-wrap; }
.answer-note { margin-top: 13px; border-left: 2px solid #d5bf89; padding: 8px 12px; background: #f8f5eb; }
.answer-note-label { display: block; color: #88774d; font-size: 9px; margin-bottom: 4px; }
.answer-note p { color: #665f4a; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-empty { color: #919985; font-size: 10px; margin-top: 10px; }
.boundaries { padding-top: 24px; padding-bottom: 18px; margin-top: 12px; border-top: 1px solid var(--line); background: #fbfaf5; }
.boundaries h3 { font-size: 14px; font-weight: 600; }
.boundaries ul { margin: 12px 0 0; padding-left: 17px; color: #7b765e; font-size: 11px; }
.boundaries li { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.document-footer { padding: 24px 34px 30px; color: #7f856e; font-size: 10px; border-top: 1px solid var(--line); }
.document-footer p { white-space: pre-wrap; overflow-wrap: anywhere; }
.document-footer p + p { margin-top: 9px; }
.work-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #8d967e; font-size: 9px; padding: 25px 0; }
.center-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: calc(100vh - 85px); padding: 40px 24px; text-align: center; }
.center-state h1 { font-size: 25px; }
.center-state p { color: var(--muted); font-size: 13px; max-width: 440px; }
.center-state .state-actions { margin-top: 8px; justify-content: center; }
.loading-mark { width: 24px; height: 24px; border: 2px solid #d8ddcc; border-top-color: #86764c; border-radius: 50%; animation: spin .9s linear infinite; }
.login-view { min-height: calc(100vh - 85px); display: grid; place-items: center; padding: 54px 24px; }
.login-form { width: min(100%, 370px); }
.login-form h1 { font-size: 29px; margin-bottom: 12px; }
.login-form > .muted { font-size: 12px; margin-bottom: 29px; }
.login-form label { display: block; font-size: 12px; font-weight: 600; margin: 17px 0 7px; }
.form-message { min-height: 23px; color: var(--red); font-size: 12px; margin: 12px 0; white-space: pre-wrap; }
.login-note { text-align: center; color: #7e8970; font-size: 11px; margin-top: 26px; line-height: 1.9; }
.login-note a { display: inline-block; padding: 7px; color: #526944; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); color: #f1f4e9; background: #263d2b; border-radius: 7px; padding: 12px 20px; font-size: 12px; max-width: calc(100vw - 30px); width: max-content; z-index: 20; animation: appear .18s ease-out; }
.toast.error { background: #813d32; }
#response-detail { animation: appear .18s ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 1450px) { .response-layout { grid-template-columns: 316px minmax(0, 1fr); gap: 40px; } .document-heading, .document-section, .document-footer { padding-left: 46px; padding-right: 46px; } }
@media (max-width: 1000px) { .response-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; } .page-heading { align-items: flex-start; } .page-actions { max-width: 180px; } .page-actions .button { width: 100%; } .document-heading, .document-section, .document-footer { padding-left: 24px; padding-right: 24px; } .detail-toolbar { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 720px) {
  .site-header { min-height: 77px; padding: 18px 20px; gap: 15px; }
  .header-context { display: none; }
  .wordmark { font-size: 22px; gap: 10px; }
  .brand-mark { width: 32px; height: 35px; font-size: 25px; }
  .header-link { font-size: 11px; }
  .workspace { padding: 25px 18px 0; }
  .page-heading { display: block; padding-bottom: 19px; }
  .page-heading .muted { font-size: 12px; }
  .page-actions { max-width: none; flex-wrap: nowrap; margin-top: 18px; gap: 8px; }
  .page-actions .button { width: auto; flex: 1; padding: 10px; font-size: 11px; gap: 7px; }
  .workspace-meta { margin-bottom: 22px; }
  .workspace-meta p { gap: 7px; font-size: 10px; }
  .response-layout { display: block; }
  .response-sidebar { position: static; padding-bottom: 24px; }
  .response-list { max-height: 365px; min-height: 0; }
  .response-item { padding-top: 14px; padding-bottom: 14px; }
  .list-heading { margin-bottom: 13px; }
  .detail-panel, .detail-state { min-height: 300px; }
  .detail-state { padding: 40px 20px; }
  #back-to-list { display: block; font-size: 10px; padding: 8px 0; }
  .readonly-label { display: none; }
  .detail-toolbar { padding: 10px 17px; gap: 8px; }
  .detail-toolbar .button { font-size: 10px; padding: 8px 10px; }
  .document-heading { padding: 24px 19px 21px; }
  .document-heading h2 { font-size: 21px; }
  .document-section { padding: 23px 19px 8px; }
  .respondent-meta { gap: 12px 14px; margin-top: 20px; }
  .respondent-meta dd { font-size: 11px; }
  .group-heading h3 { font-size: 17px; }
  .question { padding: 20px 0; }
  .question h4 { font-size: 13px; }
  .question-title { gap: 7px; }
  .question-number { min-width: 19px; }
  .question-hint, .answer-content { margin-left: 26px; }
  .answer-values { font-size: 12px; }
  .answer-note { padding: 8px 10px; }
  .document-footer { padding: 23px 19px; }
  .work-footer { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  @page { size: A4; margin: 15mm; }
  :root, body { background: #fff; color: #000; }
  body { font-size: 10pt; }
  .site-header, .skip-link, .page-heading, .workspace-meta, .response-sidebar, .detail-toolbar, .work-footer, .toast, #loading-view, #login-view, #blocked-view, #detail-empty, #detail-loading, #detail-error { display: none !important; }
  .workspace { max-width: none; margin: 0; padding: 0; }
  .response-layout { display: block; }
  .detail-panel { border: 0; min-height: 0; background: #fff; }
  #response-detail { animation: none; }
  .document-heading, .document-section, .document-footer { padding-left: 0; padding-right: 0; }
  .document-heading { padding-top: 0; }
  .document-heading h2 { font-size: 19pt; }
  .question { break-inside: avoid; page-break-inside: avoid; padding: 15px 0; }
  .group-heading { break-after: avoid; page-break-after: avoid; }
  h2, h3, h4 { break-after: avoid; }
  .question h4, .answer-values, .answer-note p { color: #000; }
  .muted, .group-description, .question-hint, .option-reference, .note-empty, .document-footer, .unanswered, .respondent-meta dt, .respondent-meta dd, .boundaries ul { color: #444; }
  .answer-note { background: transparent; border-left-color: #777; }
  .boundaries { background: transparent; }
  .document-footer { font-size: 8pt; }
}
