:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  color: #142b2a;
  background: #f2f5f2;
  --paper: #fff;
  --surface: #f2f5f2;
  --ink: #142b2a;
  --muted: #5a6c66;
  --line: #dde6df;
  --green: #146751;
  --green-dark: #0c4f3d;
  --soft: #e7f3eb;
  --amber: #8a510b;
  --red: #a83832;
  --sidebar: #122e2c;
  --sidebar-width: 224px;
  --content-max-width: 1800px;
  --content-gutter: clamp(22px, 3.5vw, 58px);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #519b81; outline-offset: 3px; }
[hidden] { display: none !important; }
[data-display-only="true"] :is(.project-toolbar, #project-package, .requirement .entry, .requirement .check, .requirement [data-missing-status], .tender-controls, .sync-review-form, .sync-import, .sync-replace, [data-action="refresh"], [data-action="sync-retry"]) { display: none !important; }
.layout { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--sidebar); color: white; display: flex; flex-direction: column; gap: 48px; padding: 32px 19px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 5px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand strong { display: block; font-size: 16px; word-break: keep-all; }
.brand small, .schedule small { display: block; color: #b0c6be; font-size: 12px; margin-top: 5px; }
.brand-mark { width: 36px; height: 38px; border-radius: 10px; background: #c9e8d3; color: #1d5a48; display: grid; align-content: center; justify-items: start; padding-left: 10px; gap: 4px; flex: 0 0 auto; }
.brand-mark i { display: block; width: 12px; height: 2px; border-radius: 3px; background: currentColor; }
.brand-mark i:first-child { width: 8px; }
.brand-mark i:last-child { width: 16px; }
nav { display: grid; gap: 7px; }
nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; border-radius: 9px; padding: 0 13px; color: #c9dbd4; font-size: 14px; font-weight: 620; }
nav a:hover, nav a.active { background: #254944; text-decoration: none; color: #fff; }
.icon { width: 16px; height: 16px; display: inline-block; flex: 0 0 auto; opacity: .88; }
.icon-tasks { border: 1.5px solid currentColor; border-radius: 3px; background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 4px) center / 7px 9px no-repeat; }
.icon-grid { width: 16px; height: 16px; background: linear-gradient(currentColor 0 0) 0 0/6px 6px, linear-gradient(currentColor 0 0) 100% 0/6px 6px, linear-gradient(currentColor 0 0) 0 100%/6px 6px, linear-gradient(currentColor 0 0) 100% 100%/6px 6px; background-repeat: no-repeat; border-radius: 2px; }
.icon-sync { border: 1.5px solid currentColor; border-left-color: transparent; border-radius: 50%; position: relative; }
.icon-sync::before { content: ""; position: absolute; left: -2px; top: 1px; width: 4px; height: 4px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.schedule { margin-top: auto; padding: 16px 6px 3px; border-top: 1px solid #38524d; display: flex; gap: 10px; }
.schedule strong { font-size: 14px; }
.status-dot { display: inline-block; margin-top: 6px; background: #879e98; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.schedule[data-enabled="true"] .status-dot { background: #a0cdb1; }
main { width: min(100%, var(--content-max-width)); margin-inline: auto; padding: 40px var(--content-gutter) 55px; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; line-height: 1.24; }
h2 { font-size: 1.13rem; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
.subtitle { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.header, .section-title, .actions, .filter-row, .table-foot { display: flex; align-items: center; gap: 12px; }
.header, .section-title, .table-foot { justify-content: space-between; }
.header { align-items: flex-start; margin-bottom: 24px; }
.header .actions { justify-content: flex-end; flex-wrap: wrap; }
.btn { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: .875rem; font-weight: 640; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:hover { border-color: #90b3a0; background: #f8fcf8; text-decoration: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); }
.btn.sync-stop { color: #983b34; border-color: #edc5c0; background: #fff8f6; }
.btn.sync-stop:not(:disabled):hover { border-color: #bd7d74; background: #fbece8; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: .82rem; }
.sync-confirm-dialog { width: min(420px, calc(100% - 32px)); padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 48px #122e2c36; }
.sync-confirm-dialog::backdrop { background: #122e2c65; }
.sync-confirm-dialog h2 { font-size: 1.2rem; }
.sync-confirm-dialog p { margin-top: 9px; color: var(--muted); font-size: .9rem; }
.sync-confirm-dialog ul { margin: 14px 0 21px; padding: 10px 14px 10px 32px; border-radius: 8px; background: var(--surface); font-size: .92rem; line-height: 1.9; overflow-wrap: anywhere; }
.sync-confirm-dialog .actions { justify-content: flex-end; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 24px; }
.metric, .panel, .source-card { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; min-width: 0; }
.metric { min-height: 102px; padding: 16px 18px; display: grid; align-content: space-between; gap: 6px; }
.metric:first-child { background: #e6f1e8; border-color: #d2e5d8; }
.metric .label { font-size: .87rem; color: var(--muted); }
.metric .value { font-size: 1.95rem; font-weight: 720; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.task-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.task-category { min-width: 0; min-height: 91px; display: grid; gap: 8px; align-content: start; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; background: var(--paper); color: var(--muted); }
.task-category:hover { border-color: #90b3a0; }
.task-category[aria-pressed="true"] { background: #e7f3eb; border-color: #91b8a0; color: var(--green-dark); }
.task-category span { font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.task-category strong { color: var(--ink); font-size: 1.65rem; line-height: 1; font-variant-numeric: tabular-nums; }
.task-category--sync strong { color: var(--red); }
.task-list-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.task-list { list-style: none; padding: 0; margin: 0; }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 20px; border-top: 1px solid #e7eee8; }
.task-row:hover { background: #f8fbf8; }
.task-row-text { display: grid; min-width: 0; gap: 5px; }
.task-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: var(--muted); font-size: .8rem; }
.task-row h3 { line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
.task-row .hint { overflow-wrap: anywhere; }
.task-row-actions { justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 280px; }
.task-row-action { color: var(--green-dark); border-color: #bfd8c9; }
.task-empty a { display: inline-block; margin-top: 8px; }
.panel { margin-bottom: 19px; overflow: hidden; }
.panel > .section-title, .panel-inner { padding: 18px 20px; }
.project-filter { display: grid; gap: 11px; padding: 0 20px 16px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
input, select, textarea { min-width: 0; min-height: 40px; color: var(--ink); padding: 8px 10px; border: 1px solid #d6e0d9; border-radius: 8px; background: #fff; font-size: .875rem; }
input::placeholder, textarea::placeholder { color: #626e68; }
select { appearance: none; background: linear-gradient(45deg, transparent 49%, #516961 50%) calc(100% - 16px) 50%/5px 5px no-repeat, linear-gradient(135deg, #516961 50%, transparent 51%) calc(100% - 11px) 50%/5px 5px no-repeat, white; padding-right: 27px; }
textarea { width: 100%; min-height: 87px; resize: vertical; line-height: 1.55; }
.search { flex: 1 1 220px; }
.filter-row select { flex: 1 1 132px; max-width: 245px; }
.amount { width: 104px; }
.muted { color: var(--muted); }
.f14 { font-size: .875rem; }
.scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .87rem; }
th, td { padding: 13px 17px; border-bottom: 1px solid #e7eee8; vertical-align: middle; }
thead th { color: #4e6359; background: #f6f8f5; font-weight: 640; white-space: nowrap; }
tbody tr:hover { background: #f8fbf8; }
.project-table th:first-child, .project-table td:first-child { padding-left: 20px; }
.project-table td:last-child, .project-table th:last-child { padding-right: 20px; white-space: nowrap; }
.project-table { min-width: 840px; }
.project-table-scroll:focus-visible { outline-offset: -3px; }
.project-buyer { width: 17%; min-width: 128px; overflow-wrap: anywhere; }
.project-budget, .project-published { white-space: nowrap; font-variant-numeric: tabular-nums; }
.project-title { color: #15372c; font-weight: 660; display: inline-block; line-height: 1.5; max-width: 660px; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 5px; font-size: .75rem; line-height: 1.25; color: #426055; background: #edf2ed; white-space: nowrap; }
.badge.success { color: #145b3e; background: #e1f3e6; }
.badge.partial, .badge.review, .badge.stopping { color: #795115; background: #faf0d7; }
.badge.error { color: #9c392f; background: #fcebe7; }
.badge.running { color: #21578b; background: #e7f1fb; }
.table-foot { padding: 13px 20px; color: var(--muted); font-size: .87rem; }
.table-foot .actions { gap: 6px; }
.empty, .loading { padding: 42px 20px; text-align: center; color: var(--muted); line-height: 1.8; }
.empty .btn { margin-top: 12px; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.source-card { padding: 16px 18px; }
.source-card .section-title { align-items: flex-start; }
.source-stats { display: flex; gap: 26px; margin: 17px 0; }
.source-stats strong { display: block; margin: 4px 0 0; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.daily { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: 8px; overflow: hidden; background: #f0f5f0; }
.daily div { text-align: center; padding: 7px 2px; }
.daily .daily-today { background: #e1eee3; }
.daily small { display: block; color: #53695d; font-size: .73rem; }
.daily strong { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.source-card footer { font-size: .78rem; margin-top: 12px; color: var(--muted); line-height: 1.55; }
.run-history { min-width: 675px; }
.run-history :is(th, td):last-child { position: sticky; right: 0; min-width: 75px; white-space: nowrap; padding-inline: 10px 15px; border-left: 1px solid #e7eee8; }
.run-history td:last-child { background: var(--paper); }
.run-history tr:hover td:last-child { background: #f8fbf8; }
.run-review-link { color: var(--green-dark); border-color: #bfd8c9; }
.sync-review-actions { align-items: center; }
.sync-coverage { display: grid; gap: 12px; padding-top: 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.sync-run-message { padding: 11px 13px; border-left: 3px solid #d1a05c; background: #fdf7e9; color: #5c482d; overflow-wrap: anywhere; }
.sync-import { padding-top: 11px; border-top: 1px solid var(--line); }
.sync-import summary, .sync-review-history summary { color: var(--green-dark); font-weight: 650; cursor: pointer; }
.sync-import > .hint { margin: 8px 0 12px; }
.sync-import-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 11px; }
.sync-import-form > label:first-child { grid-column: 1 / -1; }
.sync-issues { display: grid; gap: 12px; padding: 0 20px 18px; }
.sync-issue { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; min-width: 0; gap: 9px; }
.sync-issue > .section-title { align-items: flex-start; }
.sync-issue h3 { line-height: 1.5; overflow-wrap: anywhere; }
.sync-problems { margin: 0; padding: 0 0 0 20px; color: var(--muted); font-size: .85rem; line-height: 1.65; overflow-wrap: anywhere; }
.sync-problems li + li { margin-top: 3px; }
.sync-problems strong { color: #755019; }
.sync-issue-actions, .sync-review-decisions { flex-wrap: wrap; gap: 7px; }
.sync-file { font-size: .85rem; overflow-wrap: anywhere; }
.sync-review-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.sync-review-form .btn { min-height: 40px; }
.sync-review-form > label, .sync-import-form > label { display: grid; gap: 5px; color: #304c40; font-size: .85rem; }
.sync-review-form > label { min-width: 214px; max-width: 100%; }
.sync-review-form label .muted, .sync-import-form label .muted { margin-left: 4px; font-size: .78rem; font-weight: 400; }
.sync-file-replacements { display: grid; gap: 7px; }
.sync-tender-files { border-top: 1px solid var(--line); display: grid; gap: 8px; padding-top: 10px; min-width: 0; }
.sync-tender-files h4 { margin: 0; font-size: .92rem; }
.sync-saved-files { display: grid; gap: 6px; }
.tender-controls { flex-wrap: wrap; gap: 7px; }
.tender-upload { cursor: pointer; }
.tender-upload input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; overflow: hidden; }
.tender-upload:has(input:disabled) { opacity: .55; cursor: progress; }
.sync-analysis-result > .panel-inner { display: grid; gap: 6px; font-size: .875rem; }
.sync-failed-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f9f8f3; border: 1px solid #eae6d9; border-radius: 7px; padding: 8px 10px; overflow-wrap: anywhere; font-size: .85rem; }
.sync-replace { cursor: pointer; }
.sync-replace input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; overflow: hidden; }
.sync-replace:has(input:disabled) { opacity: .55; cursor: progress; }
.sync-review-history > summary { padding: 16px 20px; }
.sync-focus-target { scroll-margin-block: 16px; outline: 2px solid #519879; outline-offset: 2px; }
.sync-import.sync-focus-target { border-radius: 5px; }
.breadcrumb { display: inline-block; margin-bottom: 16px; font-size: .875rem; font-weight: 620; }
.detail-header h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.detail-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 17px; align-items: start; }
.detail-wrap > * { min-width: 0; }
.fact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 18px; padding: 0 20px 19px; margin: 0; }
.fact-list dt { color: var(--muted); margin-bottom: 4px; font-size: .8rem; }
.fact-list dd { margin: 0; font-size: .88rem; line-height: 1.55; overflow-wrap: anywhere; }
.notice-text { margin: 16px 0 4px; font-family: inherit; font-size: 1rem; line-height: 1.75; overflow-x: auto; overflow-wrap: break-word; }
.notice-text p { margin: 0 0 .8em; }
.notice-text :is(h1, h2, h3, h4, h5, h6) { margin: 1.1em 0 .45em; line-height: 1.4; }
.notice-text > :first-child { margin-top: 0; }
.notice-text pre { white-space: pre-wrap; }
.notice-text table { margin: .75em 0; border-collapse: collapse; font-size: inherit; }
.notice-text :is(th, td) { padding: .4em .55em; border: 1px solid #bac7be; vertical-align: top; white-space: normal; }
.notice-text th { background: #f3f6f3; }
.notice-text tbody tr:hover { background: transparent; }
.notice-text a { text-decoration: underline; }
.notice-status { margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.notice-details summary { cursor: pointer; color: var(--green); font-size: 1rem; font-weight: 650; }
.notice-details { margin: 0 20px 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.notice-reading { position: relative; }
.notice-reading--original .notice-disclosure > summary { min-height: 34px; max-width: calc(100% - 147px); padding: 5px 0; }
.notice-reading--original > .notice-pdf-link { position: absolute; top: 12px; right: 0; }
.notice-pdf-link { color: var(--green-dark); }
.notice-original-only { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 9px 15px; }
.notice-original-only h3 { margin-bottom: 3px; }
.notice-provenance { color: var(--muted); font-size: .8125rem; line-height: 1.5; margin: 12px 0 0; }
.notice-text--reflow { max-width: 74ch; line-height: 1.85; overflow: visible; overflow-wrap: anywhere; }
.notice-text--reflow p { margin-bottom: .72em; }
.notice-text--reflow h3 { color: var(--ink); font-size: 1.08rem; font-weight: 700; margin: 1.25em 0 .4em; }
.notice-text--reflow h4 { color: var(--green-dark); font-size: 1rem; font-weight: 680; margin: 1em 0 .36em; }
.notice-text--reflow > :first-child { margin-top: 0; }
.notice-entries { list-style: none; margin: 0 0 .8em; padding: 0; }
.notice-entries li { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: .55em; margin-bottom: .45em; }
.notice-entry-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.files-panel .file-body { padding: 0 15px 16px; display: grid; gap: 8px; }
.attachment { padding: 10px 11px; border: 1px solid #e3ebe3; border-radius: 8px; overflow-wrap: anywhere; font-size: .84rem; }
.error-text { color: var(--red); font-size: .84rem; line-height: 1.6; }
.hint { font-size: .85rem; line-height: 1.65; color: var(--muted); }
.requirements { margin: 0; padding: 0 20px 18px; display: grid; gap: 13px; }
.requirement { border: 1px solid var(--line); border-radius: 10px; padding: 13px; display: grid; gap: 9px; }
.requirement > .section-title { align-items: flex-start; }
.requirement > .section-title h3 { min-width: 0; overflow-wrap: anywhere; }
.requirement-status { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.requirement--missing { border-color: #e9d9bd; box-shadow: inset 3px 0 #d9a957; }
.requirement--current { outline: 2px solid #519879; outline-offset: 2px; }
.requirement .evidence { font-size: .8rem; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.requirement .evidence summary { cursor: pointer; }
.requirement blockquote { margin: 5px 0 0; padding-left: 9px; border-left: 2px solid #bcd3c5; }
.requirement label, .check { display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; color: var(--muted); }
.requirement select { width: fit-content; max-width: 100%; }
.requirement input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; accent-color: var(--green); }
.requirement input[type="file"], .file-body input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-btn:focus-within { outline: 3px solid #519b81; outline-offset: 3px; }
.req-table th, .req-table td { padding: 6px; min-width: 95px; }
.req-table input { width: 100%; min-width: 80px; min-height: 34px; padding: 5px; }
.req-table input[aria-invalid="true"] { border-color: #cd9c52; background: #fffcf5; }
.requirement label.req-cell-entry { display: flex; align-items: center; gap: 6px; }
.req-cell-entry > span { flex: 0 1 auto; max-width: 11ch; color: var(--ink); }
.req-cell-entry > input { flex: 1 1 7ch; }
.req-table-note { margin-bottom: 6px; }
.project-screen { padding-bottom: 88px; }
.project-toolbar { position: fixed; z-index: 4; bottom: 0; inset-inline: var(--sidebar-width) 0; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -5px 20px #142b2a12; }
.project-toolbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; width: min(100%, var(--content-max-width)); margin-inline: auto; padding: 10px var(--content-gutter) max(10px, env(safe-area-inset-bottom)); }
.project-toolbar-status { display: grid; gap: 4px; min-width: 0; }
.project-progress, .project-toolbar-actions, .project-toolbar-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-width: 0; }
.project-progress { color: var(--green-dark); font-size: .875rem; }
.project-progress .btn { min-height: 30px; background: #f2f7f1; }
.project-progress .btn:not(:disabled):hover { background: var(--soft); }
.project-progress .btn:disabled { opacity: 1; color: var(--muted); background: var(--paper); }
.project-toolbar-actions { justify-content: flex-end; }
.project-toolbar-actions .btn { min-height: 38px; }
.project-toolbar .btn:disabled { cursor: default; }
.project-toolbar-hint { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.project-toolbar-link { padding: 0; border: 0; background: none; color: var(--green-dark); font-size: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.project-save-status:empty { display: none; }
.project-screen :is(.requirement, #project-attachments, #project-package) { scroll-margin-block: 12px 108px; }
.file-values { display: grid; gap: 4px; overflow-wrap: anywhere; font-size: .83rem; }
.callout { padding: 12px 13px; border-radius: 8px; background: #f4f8f2; color: #3a5650; margin: 0 20px 16px; font-size: .85rem; line-height: 1.65; }
.callout ul { padding-left: 19px; margin: 5px 0 0; }
#status-toast { position: fixed; z-index: 5; right: 22px; bottom: 22px; max-width: min(530px, calc(100vw - 44px)); padding: 13px 16px; border-radius: 9px; background: #123b30; color: white; box-shadow: 0 8px 30px #123b3026; font-size: .9rem; line-height: 1.6; }
#status-toast[data-error="true"] { background: #832f29; }
body:has(.project-toolbar) #status-toast { bottom: 102px; }
@media (max-width: 1130px) {
  :root { --sidebar-width: 188px; --content-gutter: 23px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .detail-wrap { grid-template-columns: minmax(0, 1fr); }
  .files-panel { grid-row: 1; }
  .project-screen { padding-bottom: 126px; }
  .project-toolbar-inner { grid-template-columns: minmax(0, 1fr); }
  .project-toolbar-actions { justify-content: flex-start; }
  body:has(.project-toolbar) #status-toast { bottom: 143px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; --content-gutter: 14px; }
  .layout { display: block; }
  .sidebar { position: static; height: auto; padding: 12px 14px 8px; gap: 9px; }
  .brand-mark { width: 30px; height: 30px; padding-left: 7px; }
  .brand small, .sidebar .schedule { display: none; }
  nav { display: flex; flex-wrap: wrap; gap: 3px; }
  nav a { min-height: 36px; padding-inline: 8px; gap: 7px; }
  main { padding-block: 23px; }
  .header { gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .metric { min-height: 76px; padding: 10px 13px; }
  .metric .value { font-size: 1.55rem; }
  .task-categories { gap: 7px; margin-bottom: 14px; }
  .task-category { padding: 10px 9px; min-height: 85px; }
  .task-category strong { font-size: 1.45rem; }
  .task-row { padding: 12px 14px; align-items: start; }
  .task-row-action { margin-top: 2px; }
  .source-grid { grid-template-columns: minmax(0, 1fr); }
  .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel > .section-title, .panel-inner { padding: 14px; }
  .project-filter, .requirements { padding-left: 14px; padding-right: 14px; }
  .notice-reading, .notice-original-only { margin-inline: 14px; }
  .sync-issues { padding-inline: 14px; }
  .sync-import-form { grid-template-columns: minmax(0, 1fr); }
  .sync-import-form .btn { width: fit-content; }
  .sync-review-history > summary { padding: 14px; }
}
@media (max-width: 520px) {
  .task-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .task-row-actions { justify-content: flex-start; max-width: none; }
  .notice-reading--original .notice-disclosure > summary { max-width: calc(100% - 136px); }
  .notice-pdf-link { font-size: .8rem; padding-inline: 7px; }
  .project-screen { padding-bottom: 168px; }
  .project-toolbar-inner { gap: 6px; }
  .project-toolbar-actions .btn { min-height: 34px; padding-inline: 8px; font-size: .8125rem; }
  .project-save-status { order: 1; }
  .project-screen :is(.requirement, #project-attachments, #project-package) { scroll-margin-block-end: 180px; }
  body:has(.project-toolbar) #status-toast { bottom: 182px; }
}
