:root {
  --ink: #162b36;
  --ink-soft: #344f5d;
  --paper: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #e9eff2;
  --line: #cbd7dd;
  --line-dark: #91a8b3;
  --accent: #256b8f;
  --accent-strong: #174f6c;
  --seal: #d96645;
  --seal-soft: #fff0ea;
  --gold: #a86f16;
  --success: #237653;
  --danger: #b9493e;
  --info-soft: #e8f1f6;
  --success-soft: #e5f2eb;
  --warning-soft: #fff5df;
  --shadow: 0 16px 40px rgba(22, 43, 54, 0.1);
  --radius: 10px;
  --sidebar: 244px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -60px; padding: 10px 16px; background: var(--ink); color: white; transition: top .15s ease; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 20px 22px; display: flex; flex-direction: column; color: #edf4f7; background: var(--ink); border-right: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 24px; background: var(--seal); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.brand strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: .06em; }
.brand small { display: block; margin-top: 2px; color: #b5c5cd; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nav-list { margin-top: 52px; display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px; color: #d0dbe0; text-decoration: none; border-left: 3px solid transparent; border-radius: 6px; font-size: 15px; font-weight: 650; transition: background .16s ease, color .16s ease; }
.nav-item:hover, .nav-item:focus-visible { color: white; background: rgba(255,255,255,.06); outline: none; }
.nav-item.is-active { color: white; background: rgba(255,255,255,.09); border-left-color: var(--seal); }
.nav-icon { width: 28px; height: 28px; display: grid; place-items: center; font-family: "Noto Serif SC", "Songti SC", serif; border: 1px solid #526c78; border-radius: 3px; }
.sidebar-note { margin-top: auto; padding: 16px 14px; color: #c8d5db; background: rgba(255,255,255,.05); border-top: 2px solid var(--seal); }
.sidebar-note span { color: #a9bdc7; font-size: 11px; letter-spacing: .12em; }
.sidebar-note p { margin: 8px 0 0; font-size: 14px; line-height: 1.75; }
.sidebar-foot { margin-top: 20px; color: #91a6b0; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.main-frame { margin-left: var(--sidebar); min-height: 100vh; }
.page-wrap { width: min(1450px, 100%); margin: 0 auto; padding: 46px 54px 80px; animation: page-in .25s ease both; }
.mobile-header { display: none; }

.kicker { margin: 0 0 9px; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.page-header h1 { margin: 0; font-size: clamp(36px, 4.5vw, 58px); font-weight: 800; line-height: 1.16; letter-spacing: -.025em; }
.page-lead { max-width: 680px; margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }

.button { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-dark); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(37,107,143,.22); outline-offset: 2px; }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); box-shadow: 0 5px 14px rgba(37, 107, 143, .2); }
.button-primary:hover { background: var(--accent-strong); }
.button-dark { color: white; background: var(--ink); border-color: var(--ink); }
.button-danger { color: white; background: var(--danger); border-color: var(--danger); }
.button-large { min-height: 50px; padding-inline: 25px; }
.button-small { min-height: 34px; padding-inline: 12px; font-size: 12px; }
.button-full { width: 100%; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: white; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.summary-strip div { min-height: 88px; padding: 16px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-right: 1px solid rgba(255,255,255,.12); }
.summary-strip div:last-child { border-right: 0; }
.summary-strip span { color: #d3dfe4; font-size: 13px; font-weight: 600; }
.summary-strip strong { font-size: 32px; font-weight: 750; }
.filter-bar { padding: 14px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.filter-bar input, .filter-bar select { height: 44px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); padding: 0 12px; font-size: 14px; }
.search-field { flex: 1; min-width: 210px; }
.search-field input { width: 100%; }
.table-shell { background: var(--surface); border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
.requirements-table { width: 100%; min-width: 1040px; border-collapse: collapse; text-align: left; }
.requirements-table th { padding: 12px 16px; color: #4c6572; background: #e7eef2; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.requirements-table td { padding: 17px 16px; border-bottom: 1px solid #e0e8ec; font-size: 14px; vertical-align: middle; }
.requirements-table tbody tr { transition: background .15s ease; }
.requirements-table tbody tr:hover { background: #f3f7f9; }
.requirements-table .requirement-row { cursor: pointer; }
.requirements-table .requirement-row:focus-visible { outline: 3px solid rgba(37,107,143,.24); outline-offset: -3px; }
.requirements-table tbody tr:last-child td { border-bottom: 0; }
.requirements-table .department-group-row:hover { background: transparent; }
.department-group-row th { padding: 10px 16px; color: var(--ink); background: #e1edf2; border-top: 1px solid #b8ccd5; border-bottom: 1px solid #b8ccd5; text-align: left; }
.department-group-row:first-child th { border-top: 0; }
.department-group-row span { font-size: 14px; font-weight: 800; }
.department-group-row small { margin-left: 9px; color: #58707b; font-size: 11px; font-weight: 600; }
.requirement-cell a { display: block; max-width: 410px; font-size: 15px; font-weight: 750; text-decoration: none; }
.requirement-cell a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.requirement-cell span { display: block; margin-top: 5px; color: #7d8e8b; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.muted-cell { color: #526a75; white-space: nowrap; }
.priority { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 3px; font-family: ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 800; }
.priority-p0 { color: #8f261d; background: #f8ded8; }
.priority-p1 { color: #9a4a12; background: #f8e8d1; }
.priority-p2 { color: #225f80; background: #e0edf4; }
.priority-p3 { color: #586966; background: #e7ecea; }
.status { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border: 1px solid #a9bec8; border-radius: 100px; color: #344f5d; background: #f6f9fa; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status-开发中, .status-待验收, .status-已通过 { color: #225f80; background: var(--info-soft); border-color: #b7d2e0; }
.status-已完成 { color: #236146; background: var(--success-soft); border-color: #aad0b7; }
.status-补充中 { color: #8a5a14; background: var(--warning-soft); border-color: #e3c98e; }
.status-已拒绝 { color: #87372c; background: var(--seal-soft); border-color: #e1b5aa; }
.empty-state { padding: 80px 24px; text-align: center; }
.empty-glyph { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 24px; color: var(--seal); border: 1px solid var(--seal); border-radius: 50%; }
.empty-state h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 24px; }
.empty-state p { margin: 9px 0 22px; color: var(--ink-soft); }

.form-page-header { align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.form-page-header h1 { max-width: 720px; }
.preflight-box { width: 320px; flex: 0 0 auto; padding: 18px 20px; background: var(--ink); color: white; border-top: 3px solid var(--seal); }
.preflight-box strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 18px; }
.preflight-box ul { margin: 12px 0 0; padding-left: 19px; color: #c7d4d1; font-size: 12px; line-height: 1.9; }
.error-summary { margin-bottom: 20px; padding: 15px 18px; color: #7f2e24; background: var(--seal-soft); border-left: 4px solid var(--seal); }
.error-summary p { margin: 4px 0 0; font-size: 13px; }
.requirement-form { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.section-index { padding: 34px 28px; background: var(--surface-2); border-right: 1px solid var(--line); }
.section-index > span { color: var(--seal); font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 800; }
.section-index h2 { margin: 12px 0 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 24px; font-weight: 650; }
.section-index p { margin: 9px 0 0; color: #62736f; font-size: 12px; line-height: 1.7; }
.section-fields { padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.field { display: flex; min-width: 0; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; }
.field span b, .confirm-box b { color: var(--seal); }
.field span em { padding: 2px 6px; color: #71827e; background: #edf0ed; border-radius: 3px; font-size: 9px; font-style: normal; font-weight: 750; }
.field.is-required span em { color: #8f2c21; background: var(--seal-soft); }
.field small { min-height: 20px; margin: 5px 0 7px; color: #73827f; font-size: 11px; line-height: 1.5; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-dark); border-radius: 4px; background: white; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.field input, .field select { min-height: 44px; padding: 0 12px; }
.field textarea { padding: 11px 12px; line-height: 1.7; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #7f9892; }
.field-error { margin-top: 6px; color: var(--danger); font-size: 11px; font-weight: 700; }
.upload-field input { padding: 9px; border-style: dashed; background: #f8faf8; }
.confirm-box { display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px; color: var(--ink-soft); background: var(--info-soft); border: 1px solid #c4d6df; border-radius: 4px; cursor: pointer; }
.confirm-box input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.confirm-box span { font-size: 12px; line-height: 1.7; }
.confirm-box strong { display: block; color: var(--ink); font-size: 13px; }
.form-actions { padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: white; }
.form-actions strong, .form-actions span { display: block; }
.form-actions span { margin-top: 4px; color: #aebfbb; font-size: 11px; }

/* Spreadsheet-style requirement entry */
.sheet-page-header { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.sheet-page-header h1 { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: -.025em; }
.sheet-page-header p:not(.kicker) { max-width: 720px; margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.sheet-header-note { min-width: 230px; padding: 13px 16px; display: grid; border: 1px solid var(--line-dark); border-top: 3px solid var(--seal); background: var(--surface); }
.sheet-header-note span { color: #506a76; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.sheet-header-note strong { margin-top: 4px; font-size: 19px; font-weight: 800; }
.sheet-header-note small { margin-top: 2px; color: #5d747f; font-size: 11px; }
.completion-meter { height: 5px; margin: 8px 0 5px; overflow: hidden; background: #dce6eb; border-radius: 99px; }
.completion-meter i { width: 0; height: 100%; display: block; background: var(--success); border-radius: inherit; transition: width .2s ease; }
.sheet-tipbar { min-height: 44px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #405b68; background: #e8f0f4; border: 1px solid var(--line); border-bottom: 0; font-size: 12px; }
.sheet-tipbar b { margin-right: 8px; color: var(--ink); }
.tip-required-mark { margin: 0 2px; color: var(--seal); font-size: 14px; font-style: normal; font-weight: 900; }
.sheet-tipbar kbd { padding: 2px 6px; color: var(--ink); background: white; border: 1px solid #b7c2be; border-bottom-width: 2px; border-radius: 3px; font: 10px ui-monospace, Consolas, monospace; }
.sheet-tip-actions { display: flex; align-items: center; gap: 12px; }
.sheet-tip-actions button { min-height: 30px; padding: 0 10px; color: var(--accent-strong); background: white; border: 1px solid #b9cbd4; border-radius: 5px; font-size: 11px; font-weight: 750; cursor: pointer; }
.sheet-tip-actions button[aria-pressed="true"] { color: white; background: var(--accent); border-color: var(--accent); }
.requirement-sheet { border-radius: 0; box-shadow: var(--shadow); }
.sheet-scroll { max-height: calc(100vh - 300px); min-height: 430px; overflow: auto; background: white; scrollbar-color: #91a8b4 #eaf0f3; }
.entry-sheet { width: 100%; min-width: 960px; table-layout: fixed; border-collapse: separate; border-spacing: 0; text-align: left; }
.entry-sheet .col-code { width: 48px; }
.entry-sheet .col-field { width: 190px; }
.entry-sheet .col-help { width: 280px; }
.entry-sheet .col-entry { width: auto; }
.entry-sheet thead th { position: sticky; top: 0; z-index: 6; height: 38px; padding: 0 11px; color: #eef4f6; background: var(--ink); border-right: 1px solid #3e5552; border-bottom: 1px solid #0c1d1c; font-size: 11px; font-weight: 750; letter-spacing: .07em; }
.entry-sheet thead th:first-child { left: 0; z-index: 8; text-align: center; }
.entry-sheet thead th:nth-child(2) { left: 48px; z-index: 8; }
.sheet-section-row th { height: 40px; padding: 0 12px; color: var(--ink); background: #ddeaf0; border-bottom: 1px solid #adc3cd; font-size: 13px; }
.sheet-section-row span { width: 24px; height: 24px; margin-right: 10px; display: inline-grid; place-items: center; color: white; background: var(--accent); font: 700 10px ui-monospace, Consolas, monospace; }
.sheet-section-row strong { margin-right: 12px; }
.sheet-section-row small { color: #526a75; font-size: 11px; font-weight: 550; }
.sheet-field-row > td, .sheet-field-row > th { min-height: 56px; padding: 9px 11px; background: white; border-right: 1px solid #d5e0e4; border-bottom: 1px solid #d5e0e4; vertical-align: middle; transition: background .12s ease, box-shadow .12s ease; }
.sheet-field-row > th { position: sticky; left: 48px; z-index: 3; font-size: 13px; font-weight: 750; }
.sheet-field-row > th label { cursor: pointer; }
.field-required-mark { margin-left: 4px; color: var(--seal); font-size: 15px; font-weight: 900; }
.field-optional-mark { margin-left: 7px; color: #71858f; font-size: 10px; font-weight: 600; white-space: nowrap; }
.sheet-field-row.is-required .field-optional-mark { color: var(--seal); font-weight: 800; }
.sheet-row-number { position: sticky; left: 0; z-index: 4; color: #58707c; background: #edf2f5 !important; font: 11px ui-monospace, Consolas, monospace; text-align: center; }
.sheet-help { color: #506871; font-size: 12px; line-height: 1.6; }
.sheet-entry { padding: 0 !important; background: #fbfdff !important; }
.sheet-entry input:not([type="checkbox"]), .sheet-entry select, .sheet-entry textarea { width: 100%; min-height: 54px; padding: 11px 13px; display: block; color: var(--ink); background: transparent; border: 0; border-radius: 0; font-size: 13px; font-weight: 500; line-height: 1.65; }
.sheet-entry textarea { min-height: 64px; overflow: hidden; resize: none; }
.sheet-entry input[type="file"] { padding-top: 12px; }
.sheet-entry input::placeholder, .sheet-entry textarea::placeholder { color: #7e9098; font-weight: 400; }
.sheet-entry input:focus, .sheet-entry select:focus, .sheet-entry textarea:focus { position: relative; z-index: 2; outline: 0; box-shadow: inset 0 0 0 2px var(--accent); background: white; }
.sheet-field-row:focus-within > td, .sheet-field-row:focus-within > th { background: #edf5f8; }
.sheet-field-row:focus-within > .sheet-entry { background: white !important; }
.sheet-field-row:hover > td:not(.sheet-entry), .sheet-field-row:hover > th { background: #f3f7f9; }
.requirement-sheet.show-required-only .sheet-field-row:not(.sheet-required-row):not(.is-required) { display: none; }
.sheet-entry .field-error { padding: 6px 11px 8px; display: block; background: #fff0eb; border-top: 1px solid #f0c3b8; }
.sheet-checkbox { min-height: 54px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.sheet-checkbox input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.sheet-checkbox span { color: #3f5864; font-size: 12px; line-height: 1.6; }
.sheet-actions { position: sticky; bottom: 0; z-index: 9; padding: 14px 18px; box-shadow: 0 -8px 22px rgba(23,44,43,.12); }
.sheet-actions .button { min-height: 42px; }

.flash-stack { margin-bottom: 18px; display: grid; gap: 8px; }
.flash { padding: 12px 15px; border-left: 4px solid; background: white; box-shadow: 0 5px 20px rgba(0,0,0,.04); font-size: 13px; }
.flash-success { border-color: var(--success); }
.flash-error { border-color: var(--danger); }
.flash-info { border-color: var(--gold); }
.breadcrumb { display: flex; gap: 8px; color: #526a75; font-size: 13px; }
.breadcrumb a { color: var(--accent); text-underline-offset: 3px; }
.detail-header { margin: 22px 0 28px; padding-bottom: 25px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line-dark); }
.detail-eyebrow { display: flex; align-items: center; gap: 10px; color: #647572; font-size: 11px; font-family: ui-monospace, Consolas, monospace; }
.detail-title-block h1 { max-width: 900px; margin: 14px 0 0; font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.3; letter-spacing: -.025em; }
.detail-title-block > p { margin: 12px 0 0; color: #526a75; font-size: 13px; }
.status-large { min-height: 34px; padding-inline: 14px; font-size: 12px; }
.workflow-progress { margin: -8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; list-style: none; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(22,43,54,.05); }
.workflow-progress li { min-height: 60px; padding: 11px 14px; display: flex; align-items: center; gap: 9px; color: #536b76; border-right: 1px solid var(--line); font-size: 12px; font-weight: 650; white-space: nowrap; }
.workflow-progress li:last-child { border-right: 0; }
.workflow-progress li span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; background: #e8eef1; border-radius: 50%; font: 750 10px ui-monospace, Consolas, monospace; }
.workflow-progress li.is-done { color: #256449; background: var(--success-soft); }
.workflow-progress li.is-done span { color: white; background: var(--success); }
.workflow-progress li.is-current { color: var(--accent-strong); background: var(--info-soft); box-shadow: inset 0 -3px 0 var(--accent); }
.workflow-progress li.is-current span { color: white; background: var(--accent); }
.workflow-progress li:last-child.is-current { color: #256449; background: var(--success-soft); box-shadow: inset 0 -3px 0 var(--success); }
.workflow-progress li:last-child.is-current span { background: var(--success); }
.workflow-callout { margin: -10px 0 24px; padding: 11px 14px; border: 1px solid; font-size: 12px; }
.workflow-callout.status-补充中 { color: #7e5619; background: var(--warning-soft); border-color: #e2ca96; }
.workflow-callout.status-已拒绝 { color: #87372c; background: var(--seal-soft); border-color: #e0b4aa; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.detail-main { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ledger-section { padding: 31px 34px; border-bottom: 1px solid var(--line); }
.ledger-section:last-child { border-bottom: 0; }
.ledger-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.ledger-heading span { color: var(--seal); font-family: ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 800; }
.ledger-heading h2 { margin: 0; font-size: 23px; font-weight: 800; }
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); }
.meta-grid div { padding: 13px 14px; border-right: 1px solid var(--line); }
.meta-grid div:last-child { border-right: 0; }
.meta-grid dt { color: #536b76; font-size: 11px; font-weight: 650; }
.meta-grid dd { margin: 6px 0 0; font-size: 14px; font-weight: 750; }
.owner-strip { margin-top: 14px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--accent-strong); background: var(--info-soft); border-left: 3px solid var(--accent); }
.owner-strip span { font-size: 10px; letter-spacing: .08em; }
.owner-strip strong { font-size: 13px; }
.content-block { margin-top: 20px; }
.content-block:first-of-type { margin-top: 0; }
.content-block h3 { margin: 0 0 8px; color: #435d68; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.content-block p { margin: 0; color: #263e3b; font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.accent-block { padding: 14px 16px; background: var(--seal-soft); border-left: 3px solid var(--seal); }
.feature-list { padding: 18px; background: var(--info-soft); border-left: 3px solid var(--accent); }
.acceptance-section { background: #fffbf2; }
.attachment-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.attachment-list li { padding: 12px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-size: 12px; }
.attachment-list a { color: var(--accent); font-weight: 750; text-underline-offset: 3px; }
.attachment-list span { color: #788783; }
.detail-aside { display: grid; gap: 16px; }
.action-panel, .timeline-panel { padding: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(22,43,54,.05); }
.panel-heading { margin-bottom: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-heading span { color: #596f79; font-size: 11px; font-weight: 650; letter-spacing: .07em; }
.panel-heading strong { font-size: 17px; font-weight: 800; }
.current-status-card { margin-bottom: 14px; padding: 12px; background: #f2f6f8; border: 1px solid var(--line); }
.current-status-card p { margin: 9px 0 0; color: #455f6b; font-size: 12px; line-height: 1.65; }
.compact-field { margin-bottom: 13px; }
.compact-field > span { font-size: 12px; }
.compact-field input, .compact-field select { min-height: 39px; }
.compact-field textarea { font-size: 13px; }
.review-panel { border-top: 3px solid var(--accent); }
.review-summary { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.review-summary div { min-width: 0; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-summary div:nth-child(2n) { border-right: 0; }
.review-summary div:nth-last-child(-n+2) { border-bottom: 0; }
.review-summary dt { color: #778994; font-size: 9px; }
.review-summary dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 750; }
.acceptance-panel { border-top: 3px solid var(--success); }
.acceptance-result p { margin: 10px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.change-panel { border-top: 3px solid var(--seal); }
.change-panel summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.change-panel summary::-webkit-details-marker { display: none; }
.change-panel summary span { color: #758581; font-size: 10px; }
.change-panel summary strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 16px; }
.change-panel[open] summary { margin-bottom: 16px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 19px 20px; border-left: 1px solid #c6d0cc; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-dot { position: absolute; left: -4px; top: 3px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px var(--info-soft); }
.timeline strong { display: block; font-size: 13px; }
.timeline p { margin: 5px 0; color: #435d68; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.timeline time { color: #899793; font-family: ui-monospace, Consolas, monospace; font-size: 9px; }

@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 1080px) {
  :root { --sidebar: 208px; }
  .page-wrap { padding-inline: 32px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .form-section { grid-template-columns: 190px minmax(0, 1fr); }
  .section-index { padding-inline: 22px; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .meta-grid div:nth-child(2) { border-right: 0; }
  .meta-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .sidebar { display: none; }
  .main-frame { margin-left: 0; }
  .mobile-header { height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: white; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 700; text-decoration: none; }
  .mobile-brand span { width: 28px; height: 28px; display: grid; place-items: center; background: var(--seal); border-radius: 3px; }
  .page-wrap { padding: 28px 18px 60px; }
  .page-header { align-items: flex-start; }
  .page-header > .button { display: none; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-strip div:nth-child(2) { border-right: 0; }
  .summary-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .filter-bar { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .filter-bar label:not(.search-field) { flex: 1 1 calc(33% - 10px); }
  .filter-bar select { width: 100%; }
  .form-page-header { display: block; }
  .preflight-box { width: 100%; margin-top: 24px; }
  .form-section { grid-template-columns: 1fr; }
  .section-index { padding: 22px 22px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-index p { max-width: 500px; }
  .section-fields { padding: 24px 22px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .sheet-page-header { align-items: stretch; flex-direction: column; gap: 18px; }
  .sheet-header-note { min-width: 0; width: 100%; }
  .sheet-tipbar { align-items: flex-start; flex-direction: column; gap: 5px; }
  .sheet-scroll { max-height: calc(100vh - 305px); min-height: 390px; }
  .sheet-actions { gap: 12px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-panel { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .page-header h1 { font-size: 36px; }
  .page-lead { font-size: 14px; }
  .sheet-page-header h1 { font-size: 34px; }
  .sheet-page-header p:not(.kicker) { font-size: 12px; }
  .entry-sheet { min-width: 720px; }
  .entry-sheet .col-help { display: none; }
  .entry-sheet .col-entry { width: 514px; }
  .entry-sheet thead th:nth-child(3), .sheet-help { display: none; }
  .summary-strip div { min-height: 74px; padding: 13px 15px; }
  .summary-strip strong { font-size: 26px; }
  .filter-bar label:not(.search-field) { flex-basis: calc(50% - 10px); }
  .filter-bar .button { flex: 1; }
  .section-fields { grid-template-columns: 1fr; gap: 20px; }
  .field-wide { grid-column: auto; }
  .form-actions { padding: 20px; }
  .detail-header { display: block; }
  .detail-header > .status { margin-top: 17px; }
  .ledger-section { padding: 24px 20px; }
  .meta-grid { grid-template-columns: 1fr; }
  .meta-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .meta-grid div:last-child { border-bottom: 0; }
  .detail-aside { grid-template-columns: 1fr; }
  .timeline-panel { grid-column: auto; }
}
