:root {
  color-scheme: light;
  --nav: #172c50;
  --nav-hover: #223b64;
  --nav-selected: #2d4775;
  --nav-text: #c8d4e9;
  --bg: #f3f6fb;
  --paper: #ffffff;
  --ink: #1e2b40;
  --muted: #536581;
  --subtle: #77849a;
  --line: #e0e6ef;
  --line-strong: #cbd5e4;
  --blue: #315ed5;
  --blue-hover: #254dbb;
  --blue-soft: #edf2ff;
  --amber: #946018;
  --amber-soft: #fff5e4;
  --green: #26704e;
  --green-soft: #eaf6ee;
  --red: #b43e45;
  --red-soft: #fff0f0;
  --radius: 10px;
  --sidebar-width: 224px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow-panel: 0 14px 42px #00000020;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
svg { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 27px; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 19px; line-height: 1.5; font-weight: 650; }
h3 { font-size: 15px; line-height: 1.6; font-weight: 650; }
small { font-size: 12px; }
strong { font-weight: 600; }
::selection { color: #17367f; background: #dae5ff; }
input, textarea { caret-color: var(--blue); }
:focus-visible { outline: 3px solid #7296ed; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #7296ed; outline-offset: 1px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The permanent shell stays quiet around the work. */
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); padding: 26px 16px 16px; display: flex; flex-direction: column; color: var(--nav-text); background: var(--nav); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 1px 10px 30px; color: #fff; min-height: 76px; text-decoration: none; }
.sidebar-brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 36px; height: 36px; flex: 0 0 auto; object-fit: contain; border-radius: 20%; }
.brand-text { min-width: 0; font-size: 16px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; line-height: 1.4; }
.brand-text small, .brand-text span { display: block; margin-top: 6px; color: #a9bada; font-size: 11px; font-weight: 400; letter-spacing: .03em; }
.side-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 14px; border-radius: 8px; color: var(--nav-text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav-item:hover { background: var(--nav-hover); color: #fff; text-decoration: none; }
.nav-item.active { color: #fff; background: var(--nav-selected); font-weight: 600; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; flex: 0 0 20px; }
.nav-count { min-width: 22px; margin-left: auto; padding: 0 5px; border-radius: 5px; text-align: center; color: #dde7ff; background: #385788; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 21px; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar-note { margin: 0 10px 22px; color: #a9bada; font-size: 11px; line-height: 1.8; }
.sidebar-note strong { display: block; margin-bottom: 5px; color: #c9d8ee; font-size: 12px; font-weight: 500; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 14px 8px 8px; border-top: 1px solid #314363; }
.sidebar-profile small { display: block; color: #a9bada; font-size: 11px; }
.sidebar-profile > div { min-width: 0; }
.sidebar-collapse { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 36px; margin-top: 17px; border-radius: 7px; color: #b7c6e1; font-size: 12px; }
.sidebar-collapse:hover { color: #fff; background: var(--nav-hover); }
.sidebar-collapse svg { width: 17px; height: 17px; }
.workspace { width: calc(100% - var(--sidebar-width)); min-width: 0; margin-left: var(--sidebar-width); }
.is-collapsed { --sidebar-width: 72px; }
.is-collapsed .sidebar { padding: 26px 10px 16px; }
.is-collapsed .sidebar-brand { padding: 1px 0 30px; justify-content: center; }
.is-collapsed .brand-text, .is-collapsed .nav-label, .is-collapsed .nav-count, .is-collapsed .sidebar-note, .is-collapsed .sidebar-profile > div:not(.avatar), .is-collapsed .sidebar-collapse span { display: none; }
.is-collapsed .nav-item { justify-content: center; padding: 11px 0; }
.is-collapsed .sidebar-profile { justify-content: center; padding-inline: 0; }
.topbar { position: relative; z-index: 40; min-height: 64px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-tool { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0; color: #33425b; font-size: 13px; font-weight: 500; }
.topbar-tool svg:last-child { width: 14px; height: 14px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 17px; position: relative; }
.topbar-divider { width: 1px; height: 23px; background: var(--line); }
.avatar, .mini-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #3c5277; background: #eaf0fa; font-size: 13px; font-weight: 600; width: 33px; height: 33px; }
.mini-avatar { width: 25px; height: 25px; font-size: 11px; }
.sidebar .avatar { color: #eaf0fb; background: #345077; }
.role-label { color: var(--muted); font-size: 12px; }
.account-button { display: flex; align-items: center; gap: 9px; padding: 5px 0 5px 5px; border-radius: 7px; }
.account-button .role-label { display: block; text-align: left; font-size: 10px; }
.account-button > svg { width: 13px; height: 13px; color: var(--muted); }
.demo-strip { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 6px 24px; background: #edf2fc; border-bottom: 1px solid #dfe7f8; color: #53688c; font-size: 11px; line-height: 1.5; }
.demo-strip .dot { width: 5px; height: 5px; border-radius: 50%; background: #5379ce; }
.demo-strip button { padding: 0 2px; color: #365bb0; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.desktop-notice { display: none; }
.content { max-width: 1660px; margin: 0 auto; padding: 31px 34px 50px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-head > div:first-child { min-width: 0; }
.page-head h1, .page-head .title { color: #1c2b43; }
.subtitle, .page-head > div > p { margin-top: 9px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; padding-top: 2px; }

/* Controls deliberately share one shape and hierarchy. */
.btn { min-height: 38px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: #3a4962; font-size: 13px; font-weight: 500; white-space: nowrap; line-height: 1.5; text-decoration: none; }
.btn:hover:not(:disabled) { background: #f7f9fd; border-color: #aabbd6; color: #243f73; text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.btn.primary:hover:not(:disabled) { color: #fff; background: var(--blue-hover); border-color: var(--blue-hover); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--blue); }
.btn.quiet:hover:not(:disabled) { border-color: transparent; background: var(--blue-soft); }
.btn.danger { color: var(--red); background: #fff; }
.btn.danger:hover:not(:disabled) { background: var(--red-soft); border-color: #d7a2a5; }
.btn.small { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.icon-btn, .btn.icon-btn { width: 34px; height: 34px; min-height: 34px; padding: 7px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #536581; }
.icon-btn:hover:not(:disabled) { color: #2c4b8c; background: var(--blue-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.resume-strip { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 17px 20px; border: 1px solid #d9e2f4; border-radius: var(--radius); background: #edf2fc; margin-bottom: 24px; }
.resume-strip > svg { color: #4b70bd; width: 22px; height: 22px; }
.resume-strip .info, .resume-info { flex: 1; min-width: 0; }
.resume-strip strong { color: #2f466e; font-size: 13px; }
.resume-strip p, .resume-strip small { display: block; color: #5c6f91; margin-top: 3px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-strip .btn, .resume-strip > a:last-child, .resume-strip > button:last-child { margin-left: auto; }
.overview-line { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.overview-line strong { color: #364a6a; font-size: 15px; margin: 0 5px; font-variant-numeric: tabular-nums; }
.tab-bar { display: flex; align-items: center; gap: 26px; min-height: 49px; border-bottom: 1px solid var(--line); }
.tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: stretch; padding: 13px 1px; color: var(--muted); font-size: 13px; white-space: nowrap; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 19px; padding: 0 5px; background: #eaf0f8; border-radius: 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.tab.active .filter-count { color: #315dc2; background: #e5ecff; }
.toolbar { display: flex; align-items: center; gap: 11px; justify-content: space-between; flex-wrap: wrap; padding: 18px 0; }
.toolbar .toolbar-left, .toolbar .toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; min-height: 38px; padding: 0 11px; border-radius: 7px; min-width: 220px; max-width: 340px; }
.search-input svg { width: 17px; height: 17px; color: #6a7b97; }
.search-input input { width: 100%; min-width: 0; padding: 8px 0; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 12px; }
.search-input:focus-within { outline: 2px solid #7296ed; outline-offset: 1px; }
input.search-input { width: 300px; font-size: 12px; }
.filter-select { min-height: 38px; padding: 7px 31px 7px 11px; border: 1px solid var(--line); border-radius: 7px; color: #52617b; background: #fff; font-size: 12px; }
input::placeholder, textarea::placeholder { color: #6b7890; opacity: 1; }

/* Tasks are a list with clear stages, not a metrics dashboard. */
.table-container { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow-x: auto; }
.table-container > .tab-bar, .table-container > .toolbar { padding-inline: 22px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
.task-table { table-layout: auto; min-width: 680px; }
th { height: 46px; padding: 12px 19px; color: #60708b; background: #f8fafd; font-size: 11px; font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 20px 19px; border-bottom: 1px solid #e9edf4; vertical-align: middle; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.task-table tbody tr:hover { background: #fafcff; }
.task-table th:first-child, .task-table td:first-child { padding-left: 23px; }
.task-table th:last-child, .task-table td:last-child { padding-right: 23px; }
.document-cell { display: flex; align-items: center; gap: 12px; min-width: 200px; max-width: 470px; }
.document-cell > div:last-child { min-width: 0; }
.doc-glyph { width: 31px; height: 38px; color: #7891bf; flex: 0 0 auto; display: grid; place-items: center; }
.doc-glyph svg { width: 24px; height: 28px; }
.doc-title { display: block; max-width: 100%; text-align: left; color: #263956; font-size: 13px; font-weight: 600; line-height: 1.7; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-title:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc-subtitle { display: block; font-size: 11px; line-height: 1.5; color: #536581; margin-top: 3px; overflow-wrap: anywhere; white-space: normal; }
.doc-meta { margin-top: 7px; color: #65748c; font-size: 10px; }
.row-action { color: #3b61b1; font-size: 12px; padding: 4px 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.row-action:hover { text-decoration: underline; }
.row-action svg { width: 14px; height: 14px; }
.owner-cell { display: inline-flex; align-items: center; gap: 8px; color: #56657f; white-space: nowrap; }
.time-text { color: #536581; font-size: 11px; white-space: nowrap; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); color: #687791; font-size: 11px; }
.tag { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 3px 7px; border-radius: 5px; background: #f0f3f8; color: #596b86; font-size: 11px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.tag.blue { color: #365bb5; background: var(--blue-soft); }
.tag.reference-delete:hover:not(:disabled) { color: #365bb5; background: #e2eaff; }
.reference-header-actions { flex-wrap: nowrap; }
.tag.amber { color: var(--amber); background: var(--amber-soft); }
.tag.green { color: var(--green); background: var(--green-soft); }
.tag.red { color: var(--red); background: var(--red-soft); }
.tag.muted { color: #5c6b82; background: #eef2f7; }
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.empty-state { padding: 60px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--muted); }
.empty-state > svg { width: 34px; height: 34px; color: #8196b7; margin-bottom: 16px; }
.empty-state h3 { color: #3b4f70; font-size: 16px; margin-bottom: 9px; }
.empty-state p { max-width: 400px; margin-bottom: 19px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.note { padding: 12px 14px; border-radius: 7px; background: #f2f5fb; color: #556b8b; font-size: 12px; line-height: 1.8; }
.note.amber { background: var(--amber-soft); color: #82591e; }
.note.red, .error { color: var(--red); }
.error { padding: 9px 0; font-size: 12px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: #344764; margin-bottom: 13px; }
.meta-text, .muted { color: var(--muted); }
.meta-text { font-size: 12px; line-height: 1.7; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.divider { height: 1px; margin: 22px 0; border: 0; background: var(--line); }

/* Details slide from the same edge as the inline knowledge panes. */
#drawer, dialog.drawer { position: fixed; inset: 0 0 0 auto; width: 520px; max-width: min(720px, calc(100vw - 72px)); max-height: 100dvh; height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: #fff; box-shadow: -12px 0 48px #00000020; }
#drawer.wide, dialog.drawer.wide { width: 700px; }
#drawer[open], dialog.drawer[open] { display: flex; flex-direction: column; animation: drawer-arrive 180ms var(--ease); }
dialog::backdrop { background: #12234445; }
.drawer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 21px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.drawer-heading h2 { font-size: 19px; }
.drawer-heading p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.drawer-body { flex: 1; min-height: 0; padding: 25px 28px 34px; overflow-y: auto; overscroll-behavior: contain; }
.drawer-body > .note:first-child { margin-bottom: 22px; }
.drawer-body h3 { margin-bottom: 10px; }
.drawer-body .section-title { margin-top: 24px; }
.drawer-body .section-title:first-child { margin-top: 0; }
.drawer-footer { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 9px; background: #fff; }
.drawer-close { margin: -2px -7px 0 0; }
.field { display: block; margin-bottom: 18px; min-width: 0; }
.field > label, label.field > span:first-child { display: block; font-size: 12px; color: #445673; font-weight: 500; margin-bottom: 7px; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; min-width: 0; min-height: 39px; padding: 9px 11px; border: 1px solid #cbd5e3; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.65; }
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.tall { min-height: 180px; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: #f1f4f8; color: #536581; cursor: not-allowed; }
.field small, .field .help-text { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.model-selection-note { margin: 5px 0 18px 24px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.model-events { margin-top: 10px; }
.model-event { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.model-event small { color: var(--muted); font-size: 11px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.choice-row, .checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #445976; line-height: 1.8; }
.choice-row { padding: 12px 0; }
.choice-row input, .checkline input { width: 15px; height: 15px; flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--blue); }
.choice-row > div { min-width: 0; }
.choice-row small { display: block; color: var(--muted); font-size: 11px; }
.excerpt { padding: 15px 17px; background: #f6f8fc; border-radius: 7px; color: #4a5e7d; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.excerpt + .excerpt { margin-top: 10px; }
.excerpt p + p { margin-top: 10px; }
#toast { position: fixed; z-index: 100; bottom: 28px; left: 50%; max-width: min(560px, calc(100vw - 50px)); transform: translateX(-50%); padding: 13px 20px; border-radius: 9px; box-shadow: 0 8px 28px #00000026; background: #223858; color: #fff; font-size: 13px; line-height: 1.7; opacity: 0; pointer-events: none; }
#toast.visible, #toast.show { opacity: 1; }
.menu-popover { position: absolute; top: calc(100% + 12px); right: 0; z-index: 50; min-width: 228px; max-width: 360px; padding: 8px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-panel); color: var(--ink); }
.menu-popover h3 { padding: 8px 9px; font-size: 12px; color: #596b87; }
.menu-popover .note { font-size: 11px; margin: 7px; }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 11px; border-radius: 6px; text-align: left; color: #3c4f6d; font-size: 12px; }
.menu-item:hover, .menu-item.active { background: var(--blue-soft); color: #315cc1; }
.menu-item small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.menu-item svg { width: 17px; height: 17px; }

/* Bilingual paragraphs share a row, not a scroll percentage. */
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.review-head h1 { font-size: 24px; }
.review-head .subtitle { margin-top: 7px; }
.review-head .page-actions { align-items: center; }
.review-head .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 13px; }
.review-head .back-link svg { width: 15px; height: 15px; }
.review-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; min-height: 53px; padding: 10px 15px; margin-bottom: 21px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.review-tools .tab-bar { border: 0; min-height: 32px; gap: 4px; }
.review-tools .tab { padding: 5px 12px; border: 0; border-radius: 5px; min-height: 32px; }
.review-tools .tab.active { color: #315cc1; background: #eaf0fd; }
.review-tools > div { display: flex; align-items: center; gap: 12px; }
.review-tools .meta-text { font-size: 11px; }
.review-layout { display: grid; grid-template-columns: 174px minmax(0, 1fr); gap: 22px; align-items: start; }
.review-layout.without-outline { grid-template-columns: minmax(0, 1fr); }
.review-outline { position: sticky; top: 22px; align-self: start; padding-top: 2px; max-height: calc(100vh - 45px); overflow: auto; }
.review-outline h3 { font-size: 12px; color: #526582; margin: 0 9px 14px; }
.review-outline .meta-text { margin: 12px 9px; font-size: 11px; }
.outline-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 10px; margin-bottom: 5px; border-radius: 7px; font-size: 12px; text-align: left; color: #596c89; line-height: 1.6; }
.outline-item:hover { background: #e9eff9; color: var(--blue); }
.outline-item.active { background: #e1eafb; color: #315bb7; font-weight: 600; }
.outline-item .tag { margin-left: auto; padding: 1px 4px; min-height: 20px; font-size: 10px; }
.outline-item svg { width: 15px; height: 15px; }
.review-body, .review-document { min-width: 0; }
.parallel-heading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #f7f9fd; border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; color: #5f718d; font-size: 11px; font-weight: 500; }
.parallel-heading > div, .parallel-heading > span { padding: 13px 23px; }
.parallel-heading > :last-child { border-left: 1px solid var(--line); }
.paragraph-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-top: 0; scroll-margin-top: 26px; }
.paragraph-pair:last-child { border-radius: 0 0 9px 9px; }
.paragraph-pair.active { background: #fcfdff; }
.source-segment, .translation-segment { padding: 24px 24px 28px; min-width: 0; }
.source-segment { color: #40516d; }
.translation-segment { border-left: 1px solid var(--line); }
.paragraph-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; font-size: 11px; color: #536581; }
.paragraph-number { display: inline-flex; align-items: center; gap: 6px; color: #526b95; font-size: 11px; font-variant-numeric: tabular-nums; }
.paragraph-text, .en-text, .zh-text { font-size: 16px; line-height: 1.9; letter-spacing: 0; overflow-wrap: break-word; }
.paragraph-text p + p { margin-top: 15px; }
.en-text { color: #3f506a; }
.zh-text { color: #243650; }
.issue-block { margin-top: 21px; padding: 17px 0 0; border-top: 1px solid #dfe6f2; }
.issue-block > .tag { margin-bottom: 11px; }
.issue-reason { color: #6b5a3c; font-size: 12px; line-height: 1.85; margin: 10px 0 14px; }
.suggestion { padding: 13px 14px; border-radius: 7px; background: #eff4fe; color: #344e7b; font-size: 14px; line-height: 1.85; margin-bottom: 15px; }
.suggestion > small, .suggestion-label { display: block; color: #5972a0; font-size: 10px; margin-bottom: 6px; }
.decision-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.decision-button { min-height: 32px; padding: 5px 8px; border: 1px solid #ccd7e8; border-radius: 6px; font-size: 12px; background: #fff; color: #4e6282; line-height: 1.5; white-space: nowrap; }
.decision-button:hover { background: #f0f5ff; border-color: #90a9de; color: #315dc4; }
.decision-button.selected { background: #e8efff; color: #2c54bb; border-color: #88a3df; }
.draft-note { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: #59749d; font-size: 11px; line-height: 1.7; }
.draft-note svg { width: 13px; height: 13px; }
.issue-block .field { margin-top: 14px; margin-bottom: 10px; }
.issue-block textarea { min-height: 130px; font-size: 14px; line-height: 1.8; }
.feedback-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; color: #526b91; font-size: 12px; }
.feedback-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.feedback-link svg { width: 13px; height: 13px; }
.review-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 19px; padding: 15px 0; }
.review-progress { display: inline-flex; align-items: center; gap: 10px; color: #536581; font-size: 12px; }
.bibliography-panel { padding: 20px 22px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.bibliography-panel h3 { margin-bottom: 9px; font-size: 14px; }
.bibliography-panel p { margin: 7px 0; color: #5b6c88; font-size: 12px; }
.bibliography-panel .checkline { margin-top: 14px; }
.review-empty { padding: 50px 20px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.submit-summary { padding: 17px 18px; border: 1px solid var(--line); border-radius: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; color: #536783; font-size: 12px; }
.summary-row strong { color: #263f65; font-variant-numeric: tabular-nums; }
.status-steps { display: flex; flex-direction: column; gap: 0; list-style: none; padding: 0; margin: 15px 0; }
.status-steps > li, .status-step { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; font-size: 12px; color: #596d8c; }
.status-steps svg { width: 17px; height: 17px; color: #6987bc; margin-top: 2px; }
.switch { position: relative; display: inline-block; width: 30px; height: 18px; flex: 0 0 auto; padding: 0; border: 1px solid #9eacc3; border-radius: 12px; background: #aab8cc; }
.switch::before { content: ""; position: absolute; width: 12px; height: 12px; top: 2px; left: 2px; border-radius: 50%; background: #fff; }
.switch[aria-checked=true] { background: var(--blue); border-color: var(--blue); }
.switch[aria-checked=true]::before { left: 14px; }
.switch > span:empty { display: none; }

/* Knowledge pages use the same white work surface and selected-row grammar. */
.split-view { display: grid; grid-template-columns: minmax(280px, .37fr) minmax(0, .63fr); min-height: 630px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.knowledge-split { margin-top: 7px; height: calc(100dvh - 338px); min-height: 360px; max-height: 960px; grid-template-rows: minmax(0, 1fr); }
.tab-bar + .toolbar + .knowledge-split { height: calc(100dvh - 387px); }
.knowledge-split > .list-pane, .knowledge-split > .detail-pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.toolbar:has(+ .knowledge-split) { justify-content: flex-start; }
.toolbar:has(+ .knowledge-split) > .meta-text:not(:first-child), .toolbar:has(+ .knowledge-split) > .btn:last-child { margin-left: auto; }
.knowledge-split .term-row { padding: 12px 21px; }
.knowledge-split .term-row > strong, .knowledge-split .term-row > h3 { margin-bottom: 3px; }
.knowledge-split .term-row > span:not(.tag), .knowledge-split .term-row > small { display: block; color: #536581; font-size: 12px; line-height: 1.8; }
.knowledge-split .term-row > small, .knowledge-split .term-row > .meta-text { margin-top: 4px; color: var(--muted); font-size: 11px; }
.knowledge-split .term-list > .section-title { padding: 17px 21px 5px; margin: 0; font-size: 12px; }
.list-pane { min-width: 0; border-right: 1px solid var(--line); background: #fff; }
.list-pane > .toolbar { padding: 17px; border-bottom: 1px solid var(--line); }
.list-pane .search-input { min-width: 0; max-width: none; width: 100%; flex: 1 1 auto; }
.list-pane .filter-select { width: 100%; }
.list-pane > .meta-text { padding: 13px 19px; font-size: 11px; }
.term-list { display: flex; flex-direction: column; }
.term-row { position: relative; display: block; width: 100%; padding: 19px 21px; text-align: left; border-bottom: 1px solid #e9edf4; background: #fff; color: var(--ink); }
.term-row:last-child { border-bottom: 0; }
.term-row:hover { background: #f8faff; }
.term-row[aria-selected=true], .term-row[aria-pressed=true], .term-row.active { background: #edf3ff; }
.term-row[aria-selected=true] .term-name, .term-row[aria-selected=true] strong, .term-row[aria-pressed=true] .term-name, .term-row[aria-pressed=true] strong, .term-row.active strong { color: #2f59b6; }
.term-row h3, .term-row strong { display: block; margin-bottom: 5px; color: #344b6f; font-size: 14px; font-weight: 600; }
.term-row p { color: #536581; font-size: 12px; line-height: 1.8; }
.term-row .tag { margin-top: 9px; }
.term-row .meta-text { display: block; margin-top: 7px; font-size: 11px; }
.term-row .row-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.term-row .row-top .tag { margin-top: 0; }
.detail-pane { min-width: 0; padding: 27px 29px 35px; overflow-wrap: anywhere; }
.detail-pane > .empty-state { min-height: 480px; justify-content: center; }
.knowledge-split .detail-pane > .empty-state { min-height: 100%; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 21px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.detail-head h2 { color: #243b60; font-size: 23px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.detail-head h3 { font-size: 18px; }
.detail-head .meta-text { margin-top: 8px; }
.detail-head .tag { margin-top: 9px; }
.detail-section { margin-top: 25px; }
.detail-section:first-child { margin-top: 0; }
.detail-section > h3 { margin-bottom: 13px; color: #374d70; font-size: 14px; }
.detail-section > p { font-size: 13px; line-height: 1.85; color: #526784; }
.detail-section .field { margin-top: 14px; }
.detail-section details { padding: 13px 0; border-top: 1px solid var(--line); font-size: 12px; color: #60728d; }
.detail-section summary { cursor: pointer; color: #4f678c; font-size: 12px; }
.detail-section details[open] summary { margin-bottom: 12px; }
.detail-section .choice-row { padding: 12px 0; }
.detail-section .choice-row + .choice-row { border-top: 1px solid #e7edf6; }
.detail-section .form-actions { margin-top: 20px; }
.context-group { padding: 19px 0; border-bottom: 1px solid var(--line); }
.context-group:first-child { padding-top: 0; }
.context-group:last-child { border-bottom: 0; }
.context-group h3 { margin-bottom: 7px; }
.context-group p { margin-top: 7px; font-size: 12px; color: #5b6d89; line-height: 1.9; }
.knowledge-split .excerpt { font-size: 13px; }
.file-drop { position: relative; display: grid; place-items: center; min-height: 150px; padding: 22px; border: 1px dashed #aabbd8; border-radius: 9px; background: #f7faff; text-align: center; }
.file-drop input[type=file] { max-width: 100%; font-size: 12px; }
.file-drop > svg { color: #6480b5; margin-bottom: 10px; }
.file-list { padding: 0; margin: 15px 0; list-style: none; }
.file-list > li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: #546985; font-size: 12px; overflow-wrap: anywhere; }
.cost-total { color: #273f65; font-variant-numeric: tabular-nums; font-weight: 600; }
.cost-table td, .cost-table th { padding-inline: 14px; }
.footer-note { display: flex; justify-content: space-between; gap: 15px; margin-top: 24px; color: #687993; font-size: 10px; }

/* Real application states, menus, and supporting surfaces. */
.skip-link { position: fixed; z-index: 120; top: 10px; left: 12px; padding: 10px 16px; border-radius: 7px; background: var(--paper); color: var(--blue); box-shadow: var(--shadow-panel); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sidebar-note { display: flex; align-items: flex-start; gap: 8px; }
.sidebar-note > svg { width: 14px; height: 14px; margin-top: 3px; }
.topbar-tool { position: relative; }
.tool-switch { min-height: 38px; display: inline-flex; align-items: center; gap: 10px; padding: 5px 8px 5px 0; border-radius: 6px; font-size: 13px; font-weight: 500; }
.tool-switch:hover { color: var(--blue); }
.tool-switch > svg:first-child { width: 19px; height: 19px; color: #58739d; }
.profile-button { display: inline-flex; align-items: center; gap: 9px; padding: 5px 0 5px 5px; border-radius: 7px; text-align: left; }
.profile-button:hover .profile-name { color: var(--blue); }
.profile-button > svg { width: 13px; height: 13px; color: var(--muted); margin-left: 3px; }
.profile-name { color: #3b4b66; font-size: 12px; line-height: 1.5; }
.profile-name small { display: block; color: var(--muted); font-size: 10px; margin-top: 1px; }
.notification-trigger { position: relative; }
.notification-dot { position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.tool-menu { left: -8px; right: auto; width: 294px; }
.platform-shell .workspace { width: 100%; margin-left: 0; }
.platform-shell .content { max-width: 1200px; margin-inline: auto; }
.platform-brand { display: inline-flex; align-items: center; gap: 10px; margin-right: 28px; color: var(--ink); font-size: 20px; font-weight: 650; }
.platform-brand strong { font: inherit; white-space: nowrap; }
.platform-brand:hover { text-decoration: none; }
.platform-brand span { white-space: nowrap; font-size: 14px; font-weight: 400; color: var(--muted); }
.platform-shell .tool-menu { left: auto; right: 0; }
.tool-directory { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.tool-entry { display: flex; align-items: center; gap: 24px; padding: 28px; }
.tool-entry + .tool-entry { border-top: 1px solid var(--line); }
.tool-entry-icon { color: var(--blue); flex: 0 0 auto; }
.tool-entry-icon svg { width: 32px; height: 32px; }
.tool-entry-copy { flex: 1; min-width: 0; }
.tool-entry-copy h2 { margin: 0 0 8px; font-size: 20px; }
.tool-entry-copy p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.tools-footnote { margin-top: 20px; color: var(--muted); font-size: 14px; }
.notification-menu { width: 345px; }
.menu-heading { padding: 9px 11px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 12px; color: #344967; font-weight: 600; }
.menu-heading > span, .menu-heading > small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.7; }
.menu-item > span { min-width: 0; flex: 1; }
.menu-item > svg:last-child:not(:first-child) { margin-left: auto; }
.menu-item.current { color: #315cc1; background: #f1f5fd; }
.menu-item:hover { text-decoration: none; }
.menu-footnote { margin: 7px 10px 5px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.notification-menu .menu-item { align-items: flex-start; line-height: 1.7; }
.notification-menu .menu-item > svg { margin-top: 2px; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.status-dot.amber { color: #ab771e; }
.status-dot.green { color: var(--green); }
.status-dot.blue { color: var(--blue); }
.demo-strip > .status-dot { color: #5379ce; }
.demo-strip button { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; white-space: nowrap; }
.demo-strip button svg { width: 12px; height: 12px; }
.workspace { min-height: 100vh; display: flex; flex-direction: column; }
.content { width: 100%; flex: 1; }
.workspace-footer { width: 100%; max-width: 1660px; margin: auto auto 0; padding: 0 34px 21px; display: flex; justify-content: space-between; gap: 16px; color: #536581; font-size: 10px; }
.resume-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #4b70bd; }
.resume-icon svg { width: 23px; height: 23px; }
.resume-info > .meta-text { display: block; margin-bottom: 3px; color: #536581; font-size: 11px; }
.resume-info > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-meta { color: #536581; font-size: 12px; white-space: nowrap; }
.overview-line > span { display: inline-flex; align-items: center; gap: 6px; }
.overview-line .overview-scope { margin-left: auto; gap: 5px; font-size: 11px; }
.overview-scope svg { width: 13px; height: 13px; }
.task-list-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 24px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.task-list-heading .tab-bar { min-height: 65px; border-bottom: 0; }
.task-list-heading .search-input { width: 250px; min-width: 180px; max-width: 100%; margin-block: 12px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; color: #62728c; font-size: 11px; border-top: 1px solid var(--line); }
.table-container + .note { margin-top: 17px; }
.doc-meta { display: block; }
.doc-meta > span { padding: 0 6px; }
.owner-cell > small { color: #536581; font-size: 10px; }
.tag.gray { color: #5c6b82; background: #eef2f7; }
.note > svg { width: 16px; height: 16px; margin-right: 5px; }
.drawer-intro { margin-bottom: 22px; font-size: 13px; line-height: 1.85; color: #5b6f8e; }
.drawer-body .detail-head { display: block; }
.drawer-body .detail-head > .meta-text { display: block; margin: 0 0 7px; }
.drawer-body .detail-head h3 { margin-bottom: 7px; line-height: 1.6; }
.drawer-body .detail-head > p { color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.info-list { display: grid; grid-template-columns: minmax(104px, .38fr) minmax(0, .62fr); gap: 12px 20px; margin: 18px 0 24px; color: #3e536f; font-size: 12px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
.status-steps small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.status-steps li.done > span svg { color: #457a66; }
.task-progress-content { flex: 1; min-width: 0; }
.task-progress-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.task-progress-heading strong { color: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.task-progress-step progress { display: block; width: 100%; height: 6px; margin: 9px 0 7px; overflow: hidden; border: 0; border-radius: 3px; appearance: none; background: var(--line); color: var(--blue); accent-color: var(--blue); }
.task-progress-step progress::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
.task-progress-step progress::-webkit-progress-value { background: var(--blue); border-radius: 3px; }
.task-progress-step progress::-moz-progress-bar { background: var(--blue); border-radius: 3px; }
.task-progress-step.done progress { color: var(--green); accent-color: var(--green); }
.task-progress-step.done progress::-webkit-progress-value { background: var(--green); }
.task-progress-step.done progress::-moz-progress-bar { background: var(--green); }
.task-progress-step.failed > span svg { color: var(--red); }
.task-progress-step.paused > span svg { color: var(--amber); }
.task-progress-step.blocked > span svg { color: var(--amber); }
.task-progress-step.blocked progress { accent-color: var(--amber); }
.task-progress-step.blocked progress::-webkit-progress-value { background: var(--amber); }
.task-progress-step.blocked progress::-moz-progress-bar { background: var(--amber); }
.status-steps .task-progress-time { margin-top: 4px; font-variant-numeric: tabular-nums; }
.task-progress-note { margin: 8px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.activity-item { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0; color: #536987; font-size: 12px; }
.activity-item > svg { width: 15px; height: 15px; margin-top: 3px; color: #5e7dae; }
.activity-item small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.download-option, .account-row { display: flex; align-items: center; gap: 13px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.download-option > svg { color: #728ab0; width: 23px; height: 23px; }
.download-option > div, .account-row > div { min-width: 0; flex: 1; }
.download-option strong, .account-row strong { display: block; font-size: 13px; }
.download-option small, .account-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.drawer-body .form-actions + p.muted { margin-top: 18px; font-size: 11px; line-height: 1.8; }
.plain-list { padding-left: 19px; color: #536987; font-size: 13px; line-height: 1.9; }
.plain-list li + li { margin-top: 9px; }
.upload-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 180px; padding: 26px 20px; margin-bottom: 20px; border: 1px dashed #9eb3d6; border-radius: 9px; background: #f7faff; cursor: pointer; text-align: center; }
.upload-zone > svg { width: 26px; height: 26px; color: #6480b5; margin-bottom: 3px; }
.upload-zone > strong { font-size: 13px; color: #3d5b87; }
.upload-zone > span { font-size: 11px; color: #536581; }
.upload-zone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone:hover, .upload-zone.dragging { background: #edf3ff; border-color: var(--blue); }
.upload-zone:focus-within { outline: 2px solid #7296ed; outline-offset: 2px; }
.selected-file { display: flex; align-items: flex-start; gap: 11px; padding: 12px 13px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 7px; color: #40597c; font-size: 12px; }
.selected-file > svg { width: 18px; height: 18px; margin-top: 1px; color: #6988b6; }
.selected-file > span { min-width: 0; overflow-wrap: anywhere; }
.selected-file small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
#pending-files:not(:empty) { margin-bottom: 22px; }
.field > label > span { margin-left: 4px; font-size: 11px; font-weight: 400; color: var(--muted); }
.review-head > div:first-child { min-width: 0; }
.review-head .page-subtitle { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.review-head .page-subtitle > span { padding: 0 9px; }
.save-state { display: inline-flex; align-items: center; gap: 5px; color: #536581; font-size: 11px; white-space: nowrap; }
.save-state svg { width: 14px; height: 14px; }
.review-tool-actions { flex: 0 0 auto; }
.core-toggle-label { color: #546782; font-size: 12px; }
.review-tool-actions > .icon-btn { margin-left: 10px; }
.review-outline h2 { font-size: 12px; color: #526582; margin: 0 9px 14px; }
.outline-item { align-items: flex-start; }
.outline-number { color: #536581; font-size: 10px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.outline-item small { display: block; margin-top: 3px; font-size: 10px; color: #536581; font-weight: 400; }
.outline-hint { color: #536581; font-size: 11px; line-height: 1.8; margin: 20px 10px 0; }
.parallel-document { min-width: 0; }
.parallel-heading small { font-size: 9px; color: #536581; font-weight: 400; margin-left: 7px; letter-spacing: .03em; }
.issue-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; }
.issue-heading .meta-text { font-size: 10px; }
.suggestion > .meta-text { display: block; margin-bottom: 6px; color: #576f99; font-size: 11px; }
.suggestion p { margin: 0; }
.decision-button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.decision-button svg { width: 13px; height: 13px; }
.next-paragraph { margin: 19px -8px 0 auto; display: flex; width: fit-content; }
.end-of-document { margin-top: 21px; text-align: right; color: #536581; font-size: 10px; }
.core-check { margin-top: 18px; }
.bibliography-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; }
.bibliography-panel > div { display: flex; align-items: center; gap: 13px; min-width: 0; }
.bibliography-panel > div > svg { color: #7790b7; width: 21px; height: 21px; }
.bibliography-panel strong { font-size: 13px; }
.bibliography-panel small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.bibliography-panel .checkline { margin-top: 0; flex: 0 0 auto; }
.review-scope-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -3px 0 15px; color: #536581; font-size: 11px; }
.review-progress { flex-wrap: wrap; row-gap: 4px; }
.review-progress strong { color: #425b80; }
.submit-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #fff; margin-bottom: 20px; padding: 19px 21px; }
.submit-summary h2 { font-size: 15px; margin-bottom: 6px; }
.submit-summary p { color: #4f6484; font-size: 12px; line-height: 1.8; }
.submit-summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.submit-summary .form-actions { flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
.process-note, .complete-note { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 20px; padding: 15px 18px; }
.process-note > svg, .complete-note > svg { margin-top: 2px; }
.process-note > div, .complete-note > div { flex: 1; min-width: 0; }
.process-note p, .complete-note p { margin-top: 4px; }
.complete-note { background: #edf6f0; color: #456e58; }

@keyframes drawer-arrive { from { transform: translateX(14px); } to { transform: translateX(0); } }

@media (min-width: 1700px) {
  .content { padding-top: 39px; padding-inline: 46px; }
  .topbar { padding-inline: 46px; }
  .workspace-footer { padding-inline: 46px; }
  .task-table td { padding-top: 22px; padding-bottom: 22px; }
  .document-cell { max-width: 650px; }
  .review-layout { grid-template-columns: 186px minmax(0, 1fr); gap: 28px; }
  .source-segment, .translation-segment { padding: 29px 33px 33px; }
  .paragraph-text, .en-text, .zh-text { max-width: 72ch; }
  .split-view { grid-template-columns: minmax(330px, .34fr) minmax(0, .66fr); }
  .detail-pane { padding-inline: 36px; }
}
@media (max-width: 1300px) {
  :root { --sidebar-width: 208px; }
  .is-collapsed { --sidebar-width: 72px; }
  .sidebar { padding-inline: 12px; }
  .brand-text { font-size: 15px; }
  .sidebar-brand { gap: 8px; padding-inline: 7px; }
  .topbar { padding-inline: 25px; }
  .content { padding: 28px 25px 42px; }
  .workspace-footer { padding-inline: 25px; }
  .task-list-heading { gap: 18px; padding-inline: 18px; }
  .task-list-heading .tab-bar { gap: 20px; }
  .task-list-heading .search-input { width: 210px; }
  .page-actions { gap: 7px; }
  .task-table th, .task-table td { padding-inline: 12px; }
  .task-table th:first-child, .task-table td:first-child { padding-left: 18px; }
  .task-table th:last-child, .task-table td:last-child { padding-right: 18px; }
  .document-cell { gap: 8px; max-width: 370px; }
  .review-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 16px; }
  .review-layout.without-outline { grid-template-columns: minmax(0, 1fr); }
  .source-segment, .translation-segment { padding: 21px 19px 25px; }
  .parallel-heading > div, .parallel-heading > span { padding-inline: 19px; }
  .review-tools { gap: 9px; padding-inline: 12px; }
  .review-tools > div { gap: 8px; }
  .split-view { grid-template-columns: minmax(265px, .36fr) minmax(0, .64fr); }
  .detail-pane { padding: 24px 23px 30px; }
  .term-row { padding: 18px; }
  .knowledge-split .term-row { padding-inline: 18px; }
  .decision-button { font-size: 12px; padding-inline: 8px; }
}
@media (max-width: 1100px) {
  .content { padding-inline: 21px; }
  .topbar { padding-inline: 21px; }
  .workspace-footer { padding-inline: 21px; }
  .topbar-actions { gap: 10px; }
  .role-label { display: none; }
  .page-head { gap: 16px; }
  h1 { font-size: 25px; }
  .page-actions .btn { padding-inline: 11px; }
  .review-head { flex-wrap: wrap; }
  .review-head .page-actions { justify-content: flex-start; }
  .review-layout { grid-template-columns: minmax(0, 1fr); }
  .review-outline { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; max-height: 150px; margin-bottom: 2px; }
  .review-outline h3 { width: 100%; margin: 0 0 4px; }
  .review-outline h2 { width: 100%; margin: 0 0 4px; }
  .outline-hint { width: 100%; margin: 4px 0 0; }
  .outline-item { width: auto; padding: 6px 9px; margin: 0; font-size: 11px; }
  .review-outline .meta-text { margin: 3px 0; }
  .review-tools { align-items: flex-start; }
  .review-tools > div { flex-wrap: wrap; }
  .split-view { grid-template-columns: 260px minmax(0, 1fr); }
  .detail-pane { padding-inline: 19px; }
  .detail-head { gap: 10px; flex-wrap: wrap; }
  .detail-head h2 { font-size: 21px; }
  .field-grid { gap: 0 12px; }
  .task-list-heading { flex-wrap: wrap; gap: 0; padding-bottom: 14px; }
  .task-list-heading .tab-bar { width: 100%; min-height: 56px; }
  .task-list-heading .search-input { width: 100%; max-width: none; }
  .overview-line .overview-scope { width: 100%; margin-left: 0; }
  .review-scope-note { align-items: flex-start; }
  .review-scope-note > span:last-child { white-space: nowrap; }
  .bibliography-panel { flex-wrap: wrap; gap: 13px; }
  .bibliography-panel .checkline { margin-left: 34px; }
  .submit-summary { flex-wrap: wrap; }
  .submit-summary .form-actions { width: 100%; }
  .parallel-heading small { display: block; margin: 2px 0 0; }
}
@media (max-width: 900px) {
  body { min-width: 900px; }
  body:has(.task-table) { min-width: 0; }
  .desktop-notice { display: block; padding: 8px 20px; color: #6e571f; background: var(--amber-soft); font-size: 12px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Persistent reading controls remain available while reviewing long documents. */
.review-command-bar { position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 12px 0; margin: -12px 0 20px; }
.review-command-bar .review-head { margin-bottom: 12px; align-items: center; }
.review-command-bar .review-head h1 { font-size: 20px; }
.review-command-bar .back-link { margin-bottom: 6px; }
.review-command-bar .page-subtitle { margin-top: 4px; }
.review-command-bar .review-tools { margin-bottom: 0; }
.review-content .review-outline { top: 205px; max-height: calc(100dvh - 225px); }
.review-content .paragraph-pair { scroll-margin-top: 205px; }
@media (max-width: 1100px) { .review-content .review-outline { position: static; max-height: 150px; } }

/* Account entry extends the existing workbench palette and control styles. */
.auth-page { max-width: 480px; margin: 64px auto; padding: 0 24px; }
.auth-page > .platform-brand { margin-bottom: 28px; }
.auth-panel { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.auth-panel h1 { font-size: 23px; margin: 0 0 12px; }
.auth-panel > p, .auth-note { color: var(--muted); line-height: 1.8; font-size: 14px; }
.auth-panel form { margin-top: 24px; }
.auth-panel button { width: 100%; }
#auth-error { color: var(--red); font-size: 14px; }
.account-editor { padding: 20px 0; border-bottom: 1px solid var(--line); }
.account-editor h3 { margin: 0 0 16px; }
.account-editor h3 small { font-weight: 400; color: var(--muted); }
.account-editor .checkline { margin-bottom: 12px; }

/* The automatic result is a hand-off to the reviewer, with the next action visible. */
.review-status { margin-bottom: 22px; padding: 18px 20px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.review-status-heading { display: flex; align-items: flex-start; gap: 11px; }
.review-status-heading > svg { margin-top: 3px; color: var(--amber); }
.review-status-heading > div { flex: 1; min-width: 0; }
.review-status-heading h2 { font-size: 16px; line-height: 1.6; }
.review-status-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.review-check-evidence { margin: 11px 0 15px 31px; color: var(--muted); font-size: 12px; }
.review-check-evidence > span { padding: 0 9px; }
.review-work-items { display: flex; gap: 24px; padding: 13px 0; border-top: 1px solid var(--line); }
.review-work-items p { flex: 1; min-width: 0; }
.review-work-items strong { display: block; font-size: 13px; }
.review-work-items span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.auto-changes { border-top: 1px solid var(--line); }
.auto-changes > summary { padding: 12px 0; color: #3a4962; cursor: pointer; font-size: 13px; font-weight: 500; }
.auto-changes > summary > span { margin-left: 7px; color: var(--muted); font-size: 12px; font-weight: 400; }
.review-detail-empty { padding: 0 0 16px; color: var(--muted); font-size: 13px; }
.automatic-change { padding: 16px 0; border-top: 1px solid var(--line); }
.automatic-change > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.automatic-change > div > span { color: var(--muted); }
.automatic-change > p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.automatic-change dl { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 7px 13px; margin: 12px 0 0; font-size: 13px; line-height: 1.8; }
.automatic-change dt { color: var(--muted); }
.automatic-change dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.automatic-change .btn { margin-top: 9px; }
.unlinked-issues { padding: 15px 0; border-top: 1px solid var(--line); color: var(--amber); }
.unlinked-issues h3 { font-size: 13px; }
.unlinked-issues p { margin-top: 5px; font-size: 12px; }
.process-note.red { background: var(--red-soft); }
.review-empty .status-steps { margin: 0 0 18px; }
@media (max-width: 1300px) {
 .review-status-heading > .tag { display: none; }
 .review-work-items { gap: 18px; }
}
@media (max-width: 900px) {
 .review-work-items { flex-direction: column; gap: 13px; }
 .review-check-evidence { margin-left: 0; }
}

/* Tool-level help stays beside the tool entry. */
.tool-entry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) {
 .tool-entry { flex-wrap: wrap; gap: 16px; padding: 22px; }
 .tool-entry-copy { flex-basis: calc(100% - 52px); }
 .tool-entry-actions { margin-left: 48px; }
}

/* Feedback list alignment and a consistent heading/body rhythm. */
.knowledge-split > .list-pane[aria-label="反馈与共同知识列表"] { --feedback-list-inset: 21px; }
.knowledge-split > .list-pane[aria-label="反馈与共同知识列表"] .term-row,
.knowledge-split > .list-pane[aria-label="反馈与共同知识列表"] .term-list > .section-title { padding-inline: var(--feedback-list-inset); }
.knowledge-split > .list-pane[aria-label="反馈与共同知识列表"] .term-list > .detail-section { margin: 0; padding: 8px var(--feedback-list-inset) 14px; }

.knowledge-split > .detail-pane[aria-label="反馈详情"] > .detail-section { margin-top: 24px; }
.knowledge-split > .detail-pane[aria-label="反馈详情"] > .detail-section > h3 { margin: 0 0 12px; }
.knowledge-split > .detail-pane[aria-label="反馈详情"] > .detail-section > h3:not(:first-child) { margin-top: 24px; }
.knowledge-split > .detail-pane[aria-label="反馈详情"] > .detail-section > p + p { margin-top: 12px; }
.knowledge-split > .detail-pane[aria-label="反馈详情"] > .detail-section > ol { margin: 0; padding-inline-start: 22px; font-size: 13px; line-height: 1.85; color: #526784; }
.knowledge-split > .detail-pane[aria-label="反馈详情"] > .detail-section > ol > li + li { margin-top: 8px; }
.knowledge-split > .detail-pane[aria-label="反馈详情"] > .detail-section > ol + p { margin-top: 12px; }

@media (max-width: 1300px) {
  .knowledge-split > .list-pane[aria-label="反馈与共同知识列表"] { --feedback-list-inset: 18px; }
}

.review-draft-option { flex-wrap: wrap; align-items: flex-start; }
.review-draft-option > .review-draft-info { flex: 1; min-width: 150px; }
.review-draft-option > .review-draft-actions { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 8px; padding-left: 36px; }
.review-formal-heading { margin-top: 28px; margin-bottom: 12px; font-size: 14px; color: #374d70; }


/* Keep literature review usable on small screens without changing other workspaces. */
.mobile-segment-label { display: none; }
@media (max-width: 900px) {
  body.literature-review { min-width: 0; }
  .literature-review .app-shell { display: block; }
  .literature-review .sidebar { position: static; width: 100%; padding: 8px 12px; overflow: hidden; }
  .literature-review .sidebar-brand, .literature-review .sidebar-bottom { display: none; }
  .literature-review .side-nav { display: flex; flex-direction: row; gap: 4px; max-width: 100%; overflow-x: auto; }
  .literature-review .nav-item { flex: 0 0 auto; width: auto; gap: 6px; padding: 10px 9px; min-height: 44px; }
  .literature-review .nav-label { display: inline; }
  .literature-review .nav-icon, .literature-review .nav-count { display: none; }
  .literature-review .workspace { width: 100%; margin-left: 0; }
  .literature-review .topbar { min-height: 56px; padding: 0 14px; gap: 8px; }
  .literature-review .topbar-tool { min-width: 0; }
  .literature-review .tool-switch { min-width: 0; gap: 7px; }
  .literature-review .tool-switch > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .literature-review .topbar-actions { gap: 5px; }
  .literature-review .profile-name, .literature-review .topbar-divider { display: none; }
  .literature-review .content { padding: 22px 14px 32px; }
  .literature-review .review-command-bar { position: static; }
  .literature-review .review-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .literature-review .review-head .page-actions { width: 100%; }
  .literature-review .page-actions .save-state { flex-basis: 100%; }
  .literature-review .review-tools { padding: 10px 12px; gap: 10px; }
  .literature-review .review-tool-actions { width: 100%; justify-content: space-between; }
  .literature-review .review-status { padding: 16px 14px 0; }
  .literature-review .review-status-heading > svg { display: none; }
  .literature-review .parallel-heading { display: none; }
  .literature-review .paragraph-pair { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); scroll-margin-top: 20px; }
  .literature-review .source-segment, .literature-review .translation-segment { padding: 18px 16px; }
  .literature-review .translation-segment { border-left: 0; border-top: 1px solid var(--line); }
  .literature-review .mobile-segment-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
  .literature-review .paragraph-top { flex-wrap: wrap; gap: 8px; }
  .literature-review .decision-button { min-height: 44px; flex: 1 1 calc(50% - 6px); white-space: normal; }
  .literature-review .btn { min-height: 44px; white-space: normal; }
  .literature-review .review-scope-note { flex-direction: column; gap: 4px; }
  .literature-review .review-scope-note > span:last-child { white-space: normal; }
  .literature-review .bibliography-panel { padding: 16px 14px; }
  .literature-review .bibliography-panel .checkline { margin-left: 0; }
  .literature-review .review-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .literature-review .review-progress { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .literature-review .review-content p, .literature-review .issue-source { overflow-wrap: anywhere; }
  .literature-review #drawer { width: 100%; max-width: 100vw; }
  .literature-review .drawer-heading { padding: 20px; }
  .literature-review .drawer-body { padding: 20px; }
  .literature-review .drawer-body .form-actions { flex-wrap: wrap; }
  .literature-review .drawer-body .form-actions .btn { flex: 1 1 100%; }
}

.source-structure-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.source-structure-actions .btn { min-height: 40px; }
