:root {
  --navy: #123a63;
  --navy-deep: #0b2947;
  --blue: #1971c2;
  --blue-soft: #e9f3fb;
  --teal: #15847c;
  --amber: #c47a14;
  --red: #c53d46;
  --ink: #172534;
  --muted: #647180;
  --line: #dfe5eb;
  --line-soft: #edf1f4;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --sidebar: 248px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar);
  display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto;
  color: #fff; background: var(--navy-deep);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--navy-deep); background: #fff; border-radius: 6px; }
.brand-mark svg { width: 24px; height: 24px; }
.brand strong, .sidebar-footer strong { display: block; font-size: 15px; font-weight: 600; }
.brand span, .sidebar-footer span { display: block; margin-top: 2px; color: rgba(255,255,255,.62); font-size: 11px; }
.nav-list { display: grid; gap: 3px; padding: 14px 0; }
.nav-item, .topic-link { border: 0; cursor: pointer; text-align: left; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; color: rgba(255,255,255,.72); background: transparent; border-radius: 6px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: rgba(72, 159, 224, .23); box-shadow: inset 3px 0 #53a7e8; }
.nav-item svg { width: 19px; }
.nav-item b { min-width: 20px; margin-left: auto; padding: 2px 6px; color: #fff; background: var(--red); border-radius: 10px; font-size: 10px; text-align: center; }
.nav-drag-indicator { width:18px;height:24px;display:grid;place-items:center;margin-left:auto;opacity:.28;transition:opacity .15s; }.nav-drag-indicator svg { width:14px; }.nav-item:hover .nav-drag-indicator,.nav-item:focus-visible .nav-drag-indicator { opacity:.85; }.nav-item .nav-drag-indicator + b { margin-left:0; }.nav-item.dragging { opacity:.42; }.nav-item.drag-target { background:rgba(83,167,232,.2);box-shadow:inset 0 -2px #53a7e8; }
.sidebar-section { margin-top: 6px; padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.12); }
.customize-navigation-button { width:100%;min-height:34px;display:flex;align-items:center;gap:9px;margin-top:10px;padding:0 9px;border:1px solid rgba(255,255,255,.13);border-radius:5px;color:rgba(255,255,255,.72);background:rgba(255,255,255,.04);cursor:pointer;font-size:11px; }.customize-navigation-button:hover { color:#fff;background:rgba(255,255,255,.09); }.customize-navigation-button svg { width:15px; }
.sidebar-label { display: block; margin-bottom: 10px; color: rgba(255,255,255,.42); font-size: 11px; }
.topic-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 0; color: rgba(255,255,255,.7); background: none; font-size: 13px; }
.topic-dot { width: 7px; height: 7px; border-radius: 50%; }
.topic-dot.blue { background: #5fa8e1; }.topic-dot.teal { background: #4fc0ae; }.topic-dot.amber { background: #e0a955; }
.sidebar-footer { display: grid; grid-template-columns: 36px 1fr 32px; align-items: center; gap: 9px; margin-top: auto; padding: 14px 6px 0; border-top: 1px solid rgba(255,255,255,.12); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; background: #dbeaf6; color: var(--navy); border-radius: 50%; font-weight: 700; }
.sidebar-footer .icon-btn { color: rgba(255,255,255,.64); }

.app-main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 20; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.global-search { width: min(440px, 45vw); height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 11px; background: #f5f7f9; border: 1px solid transparent; border-radius: 6px; }
.global-search:focus-within { background: #fff; border-color: #89b9dd; box-shadow: 0 0 0 3px rgba(25,113,194,.09); }
.global-search svg { width: 18px; color: #7b8792; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
kbd { padding: 2px 6px; border: 1px solid #d8dee5; border-bottom-width: 2px; border-radius: 4px; color: #7b8792; background: #fff; font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.date-block { min-width: 92px; padding-right: 14px; border-right: 1px solid var(--line); text-align: right; }
.date-block strong { display: block; font-size: 13px; }.date-block span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-btn:hover { color: var(--navy); background: rgba(18,58,99,.07); }
.icon-btn svg { width: 18px; height: 18px; }
.notification-btn { position: relative; }.notification-btn span { position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.primary-btn, .secondary-btn, .text-btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border-radius: 5px; cursor: pointer; font-weight: 500; }
.primary-btn { color: #fff; border: 1px solid var(--navy); background: var(--navy); }.primary-btn:hover { background: #174a7d; }
.primary-btn:disabled { cursor: wait; opacity: .6; }
.secondary-btn { color: var(--navy); border: 1px solid #aebdca; background: #fff; }.secondary-btn:hover { background: #f5f8fa; }
.text-btn { color: var(--muted); border: 0; background: transparent; }.text-btn:hover { color: var(--navy); background: var(--blue-soft); }
.primary-btn svg, .secondary-btn svg { width: 16px; height: 16px; }
.mobile-only { display: none; }

main { max-width: 1560px; margin: 0 auto; padding: 26px 30px 42px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading h1 { margin: 2px 0 0; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 600; }
.heading-actions { display: flex; gap: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.stat { min-height: 92px; display: grid; grid-template-columns: 1fr 40px; align-items: center; padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.stat span { color: var(--muted); font-size: 12px; }.stat strong { display: block; margin-top: 4px; font-size: 25px; line-height: 1; }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 5px; }.stat-icon svg { width: 19px; }
.stat.warn .stat-icon { color: var(--amber); background: #fff4df; }.stat.good .stat-icon { color: var(--teal); background: #e9f7f4; }.stat.danger .stat-icon { color: var(--red); background: #fcecef; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 16px; }
.stack { display: grid; align-content: start; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.panel-header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line-soft); }
.panel-header h2 { margin: 0; font-size: 15px; }.panel-header small { margin-left: 8px; color: var(--muted); font-weight: 400; }
.panel-header button { border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 12px; }
.panel-body { padding: 8px 18px; }

.task-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line-soft); }
.task-row:last-child { border: 0; }
.check-btn { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 1px solid #aebbc6; border-radius: 4px; background: #fff; cursor: pointer; }.check-btn svg { width: 14px; opacity: 0; }
.check-btn:hover { border-color: var(--blue); }.task-row.done .check-btn { color: #fff; border-color: var(--teal); background: var(--teal); }.task-row.done .check-btn svg { opacity: 1; }.task-row.done .item-title { color: #8b959f; text-decoration: line-through; }
.item-title { margin: 0 0 5px; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.item-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 11px; }.item-meta span { display: inline-flex; align-items: center; gap: 4px; }.item-meta svg { width: 13px; }
.due { font-size: 11px; white-space: nowrap; }.due.overdue { color: var(--red); }.due.today { color: var(--amber); }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 4px; background: #f0f2f4; color: #596673; font-size: 11px; white-space: nowrap; }.status.blue { color: #1766a9; background: #eaf3fb; }.status.amber { color: #996115; background: #fff3df; }.status.green { color: #147267; background: #e8f6f3; }.status.red { color: #aa3540; background: #fcecee; }

.doc-row { display: grid; grid-template-columns: minmax(220px,1.5fr) .7fr .7fr auto; gap: 12px; align-items: center; min-height: 62px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }.doc-row:last-child { border: 0; }.doc-name { display: flex; align-items: center; gap: 10px; min-width: 0; }.file-icon { width: 30px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 4px; }.file-icon svg { width: 16px; }.doc-name strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.doc-name span, .doc-cell-label { color: var(--muted); font-size: 11px; }
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 14px 18px 18px; }
.quick-action { min-height: 78px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px solid var(--line); color: #435466; background: #fff; border-radius: 5px; cursor: pointer; font-size: 11px; }.quick-action:hover { color: var(--blue); border-color: #91b9d7; background: #f7fbfe; }.quick-action svg { width: 20px; }
.schedule { padding: 7px 18px 14px; }.schedule-item { position: relative; display: grid; grid-template-columns: 47px 1fr; gap: 12px; min-height: 60px; padding: 11px 0; }.schedule-item:not(:last-child)::before { content: ""; position: absolute; left: 52px; bottom: 0; width: calc(100% - 52px); border-bottom: 1px solid var(--line-soft); }.schedule-time { color: var(--navy); font-size: 12px; font-weight: 600; }.schedule-item strong { display: block; font-size: 12px; }.schedule-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.notice-list { padding: 6px 18px 13px; }.notice-item { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }.notice-item:last-child { border: 0; }.notice-item button { width: 100%; padding: 0; border: 0; text-align: left; background: none; cursor: pointer; }.notice-item strong { display: block; font-size: 12px; line-height: 1.6; }.notice-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.progress-row { padding: 14px 18px 18px; }.progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; }.progress-label span { color: var(--muted); }.progress-track { height: 7px; overflow: hidden; background: #ebeff2; border-radius: 4px; }.progress-track i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }.filter-btn { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted); cursor: pointer; font-size: 12px; }.filter-btn.active { color: var(--navy); border-color: #8ba9c2; background: #edf5fb; font-weight: 500; }
.data-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; }.table-head, .table-row { display: grid; gap: 14px; align-items: center; padding: 0 18px; }.table-head { min-height: 42px; color: var(--muted); background: #f7f9fa; border-bottom: 1px solid var(--line); font-size: 11px; }.table-row { min-height: 64px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }.table-row:last-child { border-bottom: 0; }.table-row:hover { background: #fbfcfd; }.doc-table .table-head, .doc-table .table-row { grid-template-columns: minmax(230px, 1.6fr) .55fr .65fr .55fr 68px; }.ledger-table .table-head, .ledger-table .table-row { grid-template-columns: 90px minmax(220px, 1.5fr) .7fr .7fr .55fr 58px; }.library-table .table-head, .library-table .table-row { grid-template-columns: minmax(230px, 1.5fr) .75fr .6fr .6fr 60px; }.row-title { min-width: 0; }.row-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.row-title small { color: var(--muted); }.action-link { border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 12px; }

.writing-layout { display: grid; grid-template-columns: 228px minmax(0,1fr); gap: 16px; min-height: calc(100vh - 136px); }.template-panel { align-self: start; background: #fff; border: 1px solid var(--line); border-radius: 6px; }.template-panel h2 { margin: 0; padding: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }.template-list { display: grid; padding: 8px; }.template-btn { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: center; padding: 10px 8px; border: 0; border-radius: 4px; text-align: left; background: transparent; cursor: pointer; }.template-btn:hover { background: #f3f7fa; }.template-btn svg { width: 17px; color: var(--blue); }.template-btn strong { display: block; font-size: 12px; }.template-btn span { color: var(--muted); font-size: 10px; }
.draft-panel-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.draft-panel-title h2 { border: 0; }.draft-panel-title .icon-btn { margin-right: 8px; }.draft-list { max-height: 210px; overflow: auto; padding: 7px; }.draft-item { width: 100%; display: block; padding: 9px 10px; border: 0; border-radius: 4px; text-align: left; background: transparent; cursor: pointer; }.draft-item:hover { background: #f5f7f9; }.draft-item.active { background: var(--blue-soft); box-shadow: inset 3px 0 var(--blue); }.draft-item strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.draft-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.draft-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 8px 10px; border-bottom: 1px solid var(--line); }.draft-actions button { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; font-size: 9px; }.draft-actions button:last-child { grid-column: span 2; }.draft-actions svg { width: 12px; }
.editor { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; }.editor-toolbar { min-height: 52px; display: flex; align-items: center; gap: 4px; padding: 7px 12px; border-bottom: 1px solid var(--line); }.editor-toolbar .icon-btn { width: 32px; height: 32px; }.divider { width: 1px; height: 22px; margin: 0 5px; background: var(--line); }.editor-title { width: 100%; padding: 22px 28px 12px; border: 0; outline: 0; color: var(--ink); font-size: 21px; font-weight: 600; }.editor-body { width: 100%; min-height: 460px; flex: 1; resize: none; padding: 12px 28px 30px; border: 0; outline: 0; color: #263849; line-height: 2; font-size: 14px; }.editor-footer { min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: var(--muted); background: #fafbfc; border-top: 1px solid var(--line); font-size: 10px; }
.writing-main { min-width: 0; display: grid; align-content: start; gap: 12px; }.smart-writing-panel { padding: 13px 15px 11px; border: 1px solid #cbd9e4; border-left: 3px solid var(--blue); border-radius: 6px; background: #fff; }.smart-writing-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }.smart-writing-head > div:first-child > span { display: flex; align-items: center; gap: 7px; color: var(--navy); font-size: 13px; font-weight: 600; }.smart-writing-head > div:first-child svg { width: 16px; color: var(--blue); }.smart-writing-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.writing-flow-actions { display: flex; gap: 5px; }.writing-flow-actions button { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: #415567; background: #fff; cursor: pointer; font-size: 10px; }.writing-flow-actions button:hover { color: var(--blue); border-color: #8fb5d1; }.writing-flow-actions svg { width: 13px; }.smart-action-grid { display: grid; grid-template-columns: repeat(6,minmax(72px,1fr)); gap: 6px; }.smart-action-grid button { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 4px; color: #354b5d; background: #f8fafb; cursor: pointer; font-size: 11px; }.smart-action-grid button:hover { color: var(--blue); border-color: #8fb5d1; background: #f2f8fc; }.smart-action-grid button:last-child { color: #fff; border-color: var(--navy); background: var(--navy); }.smart-action-grid button:disabled { cursor: wait; opacity: .55; }.smart-action-grid svg { width: 15px; }.smart-writing-panel > p { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.writing-result { overflow: hidden; }.writing-result-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); }.writing-result-head h2 { margin: 3px 0 0; font-size: 14px; }.writing-result-head > div:last-child { display: flex; align-items: center; gap: 8px; }.writing-result-head .icon-btn { width: 28px; height: 28px; }.writing-preview { padding: 14px 16px; }.writing-preview > div { border: 1px solid var(--line); border-radius: 5px; background: #fafbfc; }.writing-preview span { display: block; padding: 9px 12px; color: var(--muted); border-bottom: 1px solid var(--line-soft); font-size: 9px; }.writing-preview pre { max-height: 310px; overflow: auto; margin: 0; padding: 13px 15px; color: #314555; font-family: "Microsoft YaHei",sans-serif; font-size: 11px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }.writing-result-actions { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); background: #fafbfc; }.writing-result-actions > span { color: var(--muted); font-size: 9px; }.writing-result-actions .primary-btn { flex: 0 0 auto; }.writing-loading { min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 16px 20px; }.writing-loading > svg { width: 24px; color: var(--blue); animation: spin 1s linear infinite; }.writing-loading strong,.writing-loading span { display: block; }.writing-loading strong { font-size: 12px; }.writing-loading span { margin-top: 3px; color: var(--muted); font-size: 10px; }@keyframes spin { to { transform: rotate(360deg); } }
.writing-issue-list { max-height: 430px; overflow: auto; padding: 4px 16px; }.writing-issue { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }.writing-issue:last-child { border: 0; }.issue-level { min-height: 22px; display: grid; place-items: center; border-radius: 3px; color: #66717b; background: #edf0f2; font-size: 9px; }.writing-issue.high .issue-level { color: #a4313d; background: #fcecef; }.writing-issue.medium .issue-level { color: #8a5b16; background: #fff3df; }.writing-issue strong { display: block; font-size: 11px; }.writing-issue p { margin: 4px 0; color: #435667; font-size: 10px; line-height: 1.6; }.writing-issue small { color: var(--muted); font-size: 9px; line-height: 1.5; }.issue-actions { display: flex; gap: 5px; }.issue-actions button { min-height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); background: #fff; cursor: pointer; font-size: 9px; }.issue-actions .primary-mini { color: #fff; border-color: var(--blue); background: var(--blue); }.writing-check-clear { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px; }.writing-check-clear > svg { width: 34px; color: var(--teal); }.writing-check-clear p { margin: 0; }.writing-check-clear strong,.writing-check-clear span { display: block; }.writing-check-clear strong { font-size: 13px; }.writing-check-clear span { margin-top: 4px; color: var(--muted); font-size: 10px; }

.task-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.task-group { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; }.task-group-header { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); }.task-group-header h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }.task-group-header i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }.task-group-header span { color: var(--muted); font-size: 11px; }.task-group-list { padding: 4px 13px; }
.task-card { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }.task-card:last-child { border: 0; }.task-card-top { display: flex; gap: 9px; align-items: flex-start; }.task-card .check-btn { flex: 0 0 auto; margin-top: 1px; }.task-card h3 { margin: 0; font-size: 12px; line-height: 1.6; }.task-card p { margin: 7px 0 0 29px; color: var(--muted); font-size: 10px; line-height: 1.6; }.task-card-footer { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 0 29px; color: var(--muted); font-size: 10px; }.priority-dot { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #9ba6b0; }.priority-dot.high { background: var(--red); }.priority-dot.normal { background: var(--amber); }.priority-dot.low { background: var(--teal); }

.learning-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 16px; }.note-editor { width: 100%; min-height: 280px; resize: vertical; padding: 18px; border: 0; outline: 0; line-height: 1.8; font-size: 13px; }.learning-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }.learning-item:last-child { border: 0; }.learning-date { color: var(--navy); font-weight: 700; font-size: 12px; text-align: center; }.learning-date span { display: block; color: var(--muted); font-size: 9px; font-weight: 400; }.learning-item strong { display: block; font-size: 12px; }.learning-item p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.folder-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }.folder { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }.folder svg { width: 24px; color: var(--amber); }.folder strong { display: block; font-size: 12px; }.folder span { color: var(--muted); font-size: 10px; }
.integration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.integration-card { min-height: 292px; padding: 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 6px; }
.integration-card.primary-tool { border-top-color: var(--blue); }
.integration-top { display: flex; align-items: center; justify-content: space-between; }
.tool-logo { width: 46px; height: 46px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 6px; }.tool-logo svg { width: 23px; }.tool-logo.teal-logo { color: var(--teal); background: #e9f7f4; }
.integration-card h2 { margin: 17px 0 7px; font-size: 18px; }.integration-card p { min-height: 44px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 20px; }.tool-tags span { padding: 4px 8px; color: #4f6170; background: #f1f4f6; border-radius: 3px; font-size: 10px; }
.integration-actions { display: flex; flex-wrap: wrap; gap: 8px; }.tool-note { display: block; margin-top: 14px; color: #87919b; font-size: 10px; word-break: break-all; }
.integration-guide { padding-bottom: 4px; }.workflow { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: center; gap: 8px; padding: 22px; }.workflow > div { min-width: 0; }.workflow b { display: block; margin-bottom: 8px; color: var(--blue); font-size: 11px; }.workflow strong { display: block; font-size: 12px; }.workflow span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }.workflow > i { color: #a7b3bd; }.workflow > i svg { width: 17px; }
.assistant-status { min-height: 62px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 16px; border: 1px solid #b9ddd6; border-left: 3px solid var(--teal); border-radius: 5px; background: #f4fbf9; }.assistant-status.model { border-color: #b9d4e8; border-left-color: var(--blue); background: #f4f9fd; }.assistant-status > svg { width: 20px; color: var(--teal); }.assistant-status.model > svg { color: var(--blue); }.assistant-status strong { display: block; font-size: 12px; }.assistant-status span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.assistant-status button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 11px; }.assistant-status button svg { width: 14px; }
.assistant-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 16px; }.assistant-workspace { min-width: 0; overflow: hidden; }.assistant-messages { height: min(530px,calc(100vh - 330px)); min-height: 360px; overflow-y: auto; padding: 20px 22px; background: #fbfcfd; }.assistant-message { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; margin-bottom: 20px; }.assistant-message.user { margin-left: 12%; }.message-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 5px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 700; }.assistant-message.user .message-avatar { color: #fff; background: var(--navy); }.message-avatar svg { width: 16px; }.message-content { min-width: 0; }.message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }.message-meta strong { font-size: 11px; }.message-meta span { color: var(--muted); font-size: 9px; }.message-text { padding: 13px 15px; border: 1px solid var(--line); border-radius: 5px; color: #2c3c4b; background: #fff; font-size: 12px; line-height: 1.85; word-break: break-word; }.assistant-message.user .message-text { border-color: #d3e1ec; background: #f1f7fb; }.message-sources { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }.message-sources span { max-width: 100%; display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px; overflow: hidden; border-radius: 3px; color: #526779; background: #eef2f5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.message-sources svg { width: 10px; }.message-actions { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }.message-actions button { display: inline-flex; align-items: center; gap: 3px; padding: 5px 7px; border: 0; border-radius: 3px; color: var(--blue); background: transparent; cursor: pointer; font-size: 9px; }.message-actions button:hover { background: var(--blue-soft); }.message-actions svg { width: 11px; }.typing { min-height: 48px; display: flex; align-items: center; gap: 5px; padding: 0 15px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: typingPulse 1s infinite alternate; }.typing i:nth-child(2) { animation-delay:.2s; }.typing i:nth-child(3) { animation-delay:.4s; }.typing span { margin-left: 4px; color: var(--muted); font-size: 10px; }@keyframes typingPulse { to { opacity:.25; transform:translateY(-2px); } }
.assistant-composer { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: #fff; }.assistant-composer textarea { width: 100%; min-height: 74px; resize: none; padding: 10px 11px; border: 1px solid #cbd5de; border-radius: 4px; outline: 0; line-height: 1.6; font-size: 12px; }.assistant-composer textarea:focus { border-color: #6ba5d2; box-shadow: 0 0 0 3px rgba(25,113,194,.08); }.assistant-composer > div { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }.assistant-composer > div > span { color: var(--muted); font-size: 9px; }.assistant-composer .primary-btn { min-height: 34px; }
.assistant-side { display: grid; align-content: start; gap: 14px; }.prompt-list { display: grid; padding: 6px 10px 10px; }.prompt-list button { display: grid; grid-template-columns: 20px 1fr 14px; align-items: center; gap: 7px; min-height: 43px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; background: transparent; cursor: pointer; font-size: 11px; }.prompt-list button:last-child { border-bottom: 0; }.prompt-list button:hover { color: var(--blue); }.prompt-list svg { width: 14px; color: var(--blue); }.prompt-list svg:last-child { width: 12px; color: #9ca7b0; }.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 12px 16px; background: var(--line-soft); }.context-grid div { min-height: 62px; padding: 10px; background: #fff; }.context-grid span { display: block; color: var(--muted); font-size: 9px; }.context-grid strong { display: block; margin-top: 4px; font-size: 18px; }.context-panel p { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 11px 16px 15px; color: var(--muted); font-size: 9px; line-height: 1.6; }.context-panel p svg { width: 13px; flex: 0 0 auto; }
.analysis-security { min-height: 48px; display: flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 0 14px; border: 1px solid #bdded8; border-radius: 5px; color: var(--teal); background: #f5fbfa; font-size: 10px; }.analysis-security > svg { width: 16px; }.analysis-security span { font-weight: 600; }.analysis-security b { color: var(--muted); font-weight: 400; }.analysis-security em { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--blue); font-style: normal; }.analysis-security em svg { width: 14px; animation: spin 1s linear infinite; }@keyframes spin { to { transform:rotate(360deg); } }
.analysis-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 16px; align-items: start; }.import-list { min-width: 0; overflow: hidden; }.import-list > div:last-child { max-height: calc(100vh - 260px); overflow-y: auto; padding: 6px; }.import-item { width: 100%; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 62px; padding: 8px; border: 0; border-radius: 4px; text-align: left; background: transparent; cursor: pointer; }.import-item:hover { background:#f5f7f9; }.import-item.active { background:var(--blue-soft); box-shadow:inset 3px 0 var(--blue); }.mini-file-icon { width:30px;height:34px;display:grid;place-items:center;border-radius:4px;color:var(--blue);background:#fff; }.mini-file-icon svg { width:15px; }.import-item strong { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px; }.import-item div span { display:block;margin-top:3px;color:var(--muted);font-size:9px; }.import-item > i { color:var(--muted);font-size:9px;font-style:normal;white-space:nowrap; }
.analysis-empty { min-height: 520px; display:grid;place-items:center; }.drop-zone { width:calc(100% - 48px);min-height:430px;display:grid;place-items:center;align-content:center;gap:10px;border:1px dashed #aabac8;border-radius:6px;text-align:center;background:#fafcfd; }.drop-zone.dragging { border-color:var(--blue);background:var(--blue-soft); }.drop-zone > svg { width:46px;height:46px;color:#7d9bb4; }.drop-zone strong { font-size:15px; }.drop-zone span { color:var(--muted);font-size:11px; }.drop-zone small { display:flex;align-items:center;gap:5px;margin-top:8px;color:var(--teal);font-size:9px; }.drop-zone small svg { width:13px; }
.analysis-detail { display:grid;gap:14px;min-width:0; }.analysis-file-head { min-height:82px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 18px;border:1px solid var(--line);border-radius:6px;background:#fff; }.analysis-file-icon { width:46px;height:50px;display:grid;place-items:center;border-radius:5px;color:var(--blue);background:var(--blue-soft); }.analysis-file-icon svg { width:22px; }.analysis-file-head h2 { margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px; }.analysis-file-head div > span { display:block;margin-top:5px;color:var(--muted);font-size:10px; }.parse-warning { min-height:44px;display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #efd4a7;border-radius:5px;color:#8a5b16;background:#fff9ef;font-size:10px; }.parse-warning svg { width:16px;flex:0 0 auto; }.analysis-stats { margin:0; }.analysis-stats .stat { min-height:78px;padding:13px 15px; }.analysis-stats .stat strong { font-size:20px; }.analysis-result-grid { display:grid;grid-template-columns:1fr 1fr;gap:14px; }.analysis-summary { min-height:170px;padding:16px 18px;color:#334555;font-size:11px;line-height:1.9; }.extracted-fields { margin:0;padding:6px 18px 12px; }.extracted-fields div { display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid var(--line-soft); }.extracted-fields div:last-child { border:0; }.extracted-fields dt { color:var(--muted);font-size:10px; }.extracted-fields dd { margin:0;font-size:11px;word-break:break-word; }
.extracted-tasks .panel-body { padding-top:2px;padding-bottom:2px; }.extracted-task-row { display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:54px;border-bottom:1px solid var(--line-soft); }.extracted-task-row:last-child { border:0; }.extracted-task-row > span { width:20px;height:20px;display:grid;place-items:center;border-radius:3px;color:var(--blue);background:var(--blue-soft);font-size:9px; }.extracted-task-row p { margin:0;font-size:11px;line-height:1.6; }.extracted-task-row button { border:0;color:var(--blue);background:transparent;cursor:pointer;font-size:10px; }.table-preview-panel { overflow:hidden; }.table-preview { overflow:auto;max-height:300px; }.table-preview table { min-width:100%;border-collapse:collapse;font-size:10px; }.table-preview th,.table-preview td { min-width:95px;padding:8px 10px;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);text-align:left;white-space:nowrap; }.table-preview th { position:sticky;top:0;color:#485c6e;background:#f3f6f8;font-weight:600; }.text-preview { overflow:hidden; }.text-preview summary { padding:14px 18px;cursor:pointer;font-size:11px;font-weight:600; }.text-preview summary span { margin-left:6px;color:var(--muted);font-weight:400; }.text-preview pre { max-height:340px;overflow:auto;margin:0;padding:16px 18px;border-top:1px solid var(--line);color:#465866;background:#fafbfc;font-family:"Microsoft YaHei",sans-serif;font-size:10px;line-height:1.8;white-space:pre-wrap;word-break:break-word; }.parsing-state { min-height:520px;display:grid;place-items:center;align-content:center;gap:10px; }.parsing-state > svg { width:44px;height:44px;color:var(--blue);animation:scanPulse 1.2s ease-in-out infinite alternate; }.parsing-state strong { font-size:14px; }.parsing-state span { color:var(--muted);font-size:10px; }.parsing-state div { width:180px;height:4px;overflow:hidden;border-radius:2px;background:#e5ebf0; }.parsing-state div i { display:block;width:45%;height:100%;background:var(--blue);animation:parseMove 1.1s ease-in-out infinite alternate; }@keyframes scanPulse { to { opacity:.45;transform:scale(.94); } }@keyframes parseMove { to { transform:translateX(125%); } }.parsing-guide { padding:4px 22px 20px; }.parsing-guide p { margin:0;padding:12px 0;border-bottom:1px solid var(--line-soft); }.parsing-guide strong { display:block;font-size:12px; }.parsing-guide span { display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.6; }
.planner-alerts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-bottom: 14px; }.attention-strip { min-height: 68px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 5px; background: #fff; }.attention-strip.has-alert { border-left-color: var(--red); }.attention-strip > svg { width: 20px; color: var(--teal); }.attention-strip.has-alert > svg { color: var(--red); }.attention-strip strong { display: block; font-size: 12px; }.attention-strip span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.attention-strip button { border: 0; color: var(--blue); background: none; cursor: pointer; font-size: 11px; }
.week-strip { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; margin-bottom: 14px; }.day-card { min-height: 88px; display: grid; place-items: center; align-content: center; gap: 2px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }.day-card:hover { border-color: #8fb3cf; }.day-card.active { color: #fff; border-color: var(--navy); background: var(--navy); }.day-card span,.day-card small { color: var(--muted); font-size: 10px; }.day-card.active span,.day-card.active small { color: rgba(255,255,255,.72); }.day-card strong { font-size: 20px; }.day-card.today:not(.active) strong { color: var(--blue); }.planner-list .panel-body { padding-top: 0; padding-bottom: 0; }.agenda-row { display: grid; grid-template-columns: 50px 32px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line-soft); }.agenda-row:last-child { border: 0; }.agenda-time { color: var(--muted); font-size: 10px; }.agenda-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; color: var(--blue); background: var(--blue-soft); }.agenda-icon.schedule { color: var(--teal); background: #e9f7f4; }.agenda-icon.document { color: var(--amber); background: #fff4df; }.agenda-icon svg { width: 15px; }.agenda-row strong { display: block; font-size: 12px; }.agenda-row div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.review-switch { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }.review-switch span { margin-left: auto; color: var(--muted); font-size: 11px; }.review-stats { margin-bottom: 16px; }.review-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(310px,.7fr); gap: 16px; }.report-paper { min-height: 430px; padding: 28px 38px; color: #242d35; font-family: "FangSong", "STFangsong", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 2; }.report-paper h3 { margin: 0 0 24px; text-align: center; font-family: "Microsoft YaHei", sans-serif; font-size: 19px; }.report-paper p { margin: 12px 0 4px; font-weight: 600; }.report-paper ol { margin: 0; padding-left: 2em; }.report-paper li { padding-left: 4px; }.report-paper .muted-copy { color: var(--muted); font-weight: 400; }.review-notes label { display: grid; gap: 6px; padding: 12px 18px 0; color: #4c5d6d; font-size: 11px; }.review-notes label:last-child { padding-bottom: 18px; }.review-notes textarea { min-height: 82px; resize: vertical; padding: 10px; border: 1px solid #cdd6de; border-radius: 4px; outline: 0; line-height: 1.6; }.review-notes textarea:focus { border-color: #6ba5d2; box-shadow: 0 0 0 3px rgba(25,113,194,.08); }
.empty { padding: 42px 20px; color: var(--muted); text-align: center; }.empty svg { width: 32px; height: 32px; margin-bottom: 8px; opacity: .45; }.empty strong { display: block; color: #52606d; font-size: 13px; }.empty span { display: block; margin-top: 4px; font-size: 11px; }

.dialog { width: min(520px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow-y: auto; padding: 0; border: 1px solid #cfd8e0; border-radius: 7px; color: var(--ink); box-shadow: 0 24px 70px rgba(12,35,56,.22); }.dialog::backdrop { background: rgba(9,29,47,.5); backdrop-filter: blur(2px); }.dialog form { margin: 0; }.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); }.dialog-header h2 { margin: 2px 0 0; font-size: 18px; }.segmented { display: grid; grid-template-columns: repeat(4,1fr); margin: 18px 22px; padding: 3px; background: #eef2f5; border-radius: 5px; }.segmented button { height: 36px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }.segmented button.active { color: var(--navy); background: #fff; box-shadow: 0 1px 3px rgba(26,43,58,.12); }.segmented svg { width: 14px; }
.navigation-dialog { width:min(620px,calc(100vw - 28px)); }.navigation-editor { max-height:min(62vh,610px);overflow:auto;padding:10px 18px; }.navigation-editor-row { display:grid;grid-template-columns:22px 34px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:50px;padding:5px 8px;border-bottom:1px solid var(--line-soft);background:#fff; }.navigation-editor-row:last-child { border-bottom:0; }.navigation-editor-row.dragging { opacity:.4; }.navigation-editor-row.drag-target { box-shadow:inset 0 -2px var(--blue); }.navigation-editor-grip { color:#8b9aa8;cursor:grab; }.navigation-editor-grip svg,.navigation-editor-icon svg { width:16px; }.navigation-editor-icon { width:32px;height:32px;display:grid;place-items:center;border-radius:4px;color:var(--blue);background:var(--blue-soft); }.navigation-editor-row strong { font-size:12px; }.navigation-editor-actions { display:flex;align-items:center;gap:3px; }.navigation-editor-actions .icon-btn { width:28px;height:28px; }.navigation-editor-actions .icon-btn:disabled { opacity:.28;cursor:not-allowed; }.navigation-visible-toggle { display:flex;align-items:center;gap:5px;margin-left:6px;color:var(--muted);font-size:10px;cursor:pointer; }.navigation-visible-toggle input { width:15px;height:15px;accent-color:var(--blue); }.navigation-visible-toggle input:disabled { cursor:not-allowed; }.navigation-dialog-actions { display:grid;grid-template-columns:auto 1fr auto auto;border-top:1px solid var(--line); }
.settings-subtitle { margin: 4px 22px 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }.settings-subtitle strong { display: block; font-size: 12px; }.settings-subtitle span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.field { display: grid; gap: 7px; margin: 0 22px 14px; color: #4c5d6d; font-size: 12px; }.field input, .field select, .field textarea { width: 100%; padding: 9px 10px; border: 1px solid #cdd6de; border-radius: 4px; outline: 0; color: var(--ink); background: #fff; }.field textarea { resize: vertical; }.field input:focus, .field select:focus, .field textarea:focus { border-color: #6ba5d2; box-shadow: 0 0 0 3px rgba(25,113,194,.08); }.form-row { display: grid; grid-template-columns: 1fr 1fr; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; }
.search-dialog { width: min(650px,calc(100vw - 28px)); }.search-results { max-height: 58vh; overflow: auto; padding: 8px 22px 18px; }.search-result { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }.search-result:last-child { border: 0; }.search-result > svg { width: 18px; color: var(--blue); }.search-result strong { display: block; font-size: 12px; }.search-result span { color: var(--muted); font-size: 10px; }.search-result button { border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 11px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 340px; padding: 12px 16px; color: #fff; background: #173d5f; border-radius: 5px; box-shadow: 0 10px 30px rgba(12,35,56,.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; font-size: 12px; }.toast.show { opacity: 1; transform: translateY(0); }
.mobile-backdrop { display: none; }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid > .stack:last-child { grid-template-columns: repeat(2,1fr); }
  .task-groups { grid-template-columns: 1fr 1fr; }.task-groups > :last-child { grid-column: span 2; }
  .folder-grid { grid-template-columns: repeat(2,1fr); }
  .review-layout { grid-template-columns: 1fr; }
  .assistant-layout { grid-template-columns: 1fr; }.assistant-side { grid-template-columns: 1fr 1fr; }
  .analysis-layout { grid-template-columns:1fr; }.import-list > div:last-child { max-height:230px; }.analysis-result-grid { grid-template-columns:1fr; }
  .smart-action-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 780px) {
  :root { --sidebar: 264px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 12px 0 40px rgba(7,29,48,.2); }.sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }.mobile-only { display: grid; }.mobile-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(9,29,47,.45); }.mobile-backdrop.show { display: block; }
  .topbar { height: 60px; padding: 0 14px; gap: 8px; }.global-search { width: auto; flex: 1; }.global-search kbd { display: none; }.date-block, .notification-btn { display: none; }.topbar-actions { gap: 6px; }.primary-btn { padding: 0 11px; }.topbar .primary-btn span { display: none; }
  main { padding: 18px 14px 30px; }.page-heading { align-items: flex-start; margin-bottom: 16px; }.page-heading h1 { font-size: 21px; }.page-heading p { font-size: 12px; }.heading-actions .secondary-btn span { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.stat { min-height: 80px; padding: 13px; }.stat strong { font-size: 21px; }
  .dashboard-grid > .stack:last-child { grid-template-columns: 1fr; }.quick-grid { grid-template-columns: repeat(4,1fr); padding-inline: 12px; }.quick-action { min-height: 70px; }
  .doc-row { grid-template-columns: minmax(0,1fr) auto; }.doc-row > :nth-child(2), .doc-row > :nth-child(3) { display: none; }
  .toolbar { align-items: flex-start; flex-direction: column; }.filter-group { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }.filter-btn { flex: 0 0 auto; }
  .data-panel { overflow-x: auto; }.table-head, .table-row { min-width: 760px; }
  .writing-layout, .learning-grid { grid-template-columns: 1fr; }.template-panel:not(.writing-sidebar) { display: none; }.writing-sidebar { display: block; }.template-panel.writing-sidebar > h2,.template-panel.writing-sidebar > .template-list { display: none; }.editor-title { padding: 18px 18px 10px; }.editor-body { padding: 10px 18px 24px; }.smart-writing-head { align-items: flex-start; flex-direction: column; }.writing-flow-actions { width: 100%; }.writing-flow-actions button { flex: 1; justify-content: center; }
  .task-groups { grid-template-columns: 1fr; }.task-groups > :last-child { grid-column: auto; }
  .folder-grid { grid-template-columns: 1fr 1fr; }
  .integration-grid { grid-template-columns: 1fr; }.workflow { grid-template-columns: 1fr; }.workflow > i { transform: rotate(90deg); justify-self: center; }
  .planner-alerts { grid-template-columns: 1fr; }.week-strip { grid-template-columns: repeat(7, minmax(66px,1fr)); overflow-x: auto; padding-bottom: 4px; }.review-layout { grid-template-columns: 1fr; }
  .assistant-side { grid-template-columns: 1fr; }.assistant-messages { height: 460px; }.assistant-message.user { margin-left: 4%; }
  .analysis-file-head { grid-template-columns:42px minmax(0,1fr); }.analysis-file-head .heading-actions { grid-column:1 / -1; }.analysis-security { align-items:flex-start;flex-wrap:wrap;padding-block:10px; }.analysis-security em { width:100%;margin-left:23px; }
}
@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }.stat { grid-template-columns: 1fr; }.stat-icon { display: none; }
  .page-heading { flex-direction: column; }.heading-actions { width: 100%; }.heading-actions button { flex: 1; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }.folder-grid { grid-template-columns: 1fr; }
  .agenda-row { grid-template-columns: 38px 28px minmax(0,1fr); }.agenda-row .row-actions { grid-column: 3; }.report-paper { padding: 22px 18px; }.review-switch { flex-wrap: wrap; }.review-switch span { width: 100%; margin: 4px 0 0; }
  .assistant-status { grid-template-columns: 30px 1fr; }.assistant-status button { grid-column: 2; justify-self: start; padding-left: 0; }.assistant-messages { min-height: 360px; padding: 16px 12px; }.assistant-message { grid-template-columns: 28px minmax(0,1fr); }.message-avatar { width: 28px; height: 28px; }.assistant-composer > div > span { display: none; }
  .analysis-layout { gap:10px; }.analysis-file-head .heading-actions { width:100%; }.analysis-file-head .heading-actions button { flex:1; }.analysis-result-grid { gap:10px; }.drop-zone { width:calc(100% - 24px);min-height:380px;padding:18px; }.extracted-fields div { grid-template-columns:68px minmax(0,1fr); }
  .smart-action-grid { grid-template-columns: repeat(2,1fr); }.writing-result-actions { align-items: stretch; flex-direction: column; }.writing-result-actions .primary-btn { width: 100%; justify-content: center; }.writing-issue { grid-template-columns: 38px minmax(0,1fr); }.issue-actions { grid-column: 2; }.writing-result-head > div:last-child .status { display: none; }
  .segmented button { font-size: 0; }.segmented button svg { width: 17px; }.form-row { grid-template-columns: 1fr; }
  .navigation-dialog-actions { gap:6px;padding:12px 12px 14px; }
  .navigation-dialog-actions button { padding-inline:9px;font-size:12px;white-space:nowrap; }
}

/* Record management controls */
.doc-table .table-head, .doc-table .table-row { grid-template-columns: minmax(230px, 1.6fr) .55fr .65fr .55fr 104px; }
.ledger-table .table-head, .ledger-table .table-row { grid-template-columns: 90px minmax(220px, 1.5fr) .7fr .7fr .55fr 104px; }
.library-table .table-head, .library-table .table-row { grid-template-columns: minmax(210px, 1.45fr) .65fr .6fr .6fr 176px; }
.row-title small { display: block; overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
.task-card h3 { min-width: 0; flex: 1; }
.row-actions, .record-actions { display: flex; align-items: center; gap: 7px; }
.record-actions { margin-top: 8px; }
.danger-link { color: var(--red) !important; }
.compact-actions { display: flex; margin-left: auto; }
.compact-actions .icon-btn { width: 27px; height: 27px; }
.inline-action { margin-top: 5px; padding: 0; border: 0; color: var(--blue); background: none; cursor: pointer; font-size: 10px; }
.folder-button { cursor: pointer; text-align: left; }
.folder-button:hover, .folder-button.active { border-color: #86adc9; background: #f5faff; }
.library-storage-note { display:flex;align-items:flex-start;gap:8px;margin:-2px 0 14px;padding:10px 13px;border:1px solid #cfe0d9;border-radius:5px;color:#3d6457;background:#f5fbf8;font-size:10px;line-height:1.6; }.library-storage-note svg { width:16px;flex:0 0 auto;margin-top:1px;color:var(--teal); }
.library-row-actions { display:flex;align-items:center;gap:7px;flex-wrap:wrap; }
.library-file-row { cursor:pointer;user-select:none; }.library-file-row:focus-visible { outline:2px solid #5d96c2;outline-offset:-2px;background:#f5faff; }
.file-preview-dialog { width:min(920px,calc(100vw - 28px));overflow:hidden; }
.preview-dialog-header small { display:block;margin-top:5px;color:var(--muted);font-size:10px; }
.file-preview-content { min-height:420px;max-height:calc(100vh - 190px);overflow:auto;background:#f7f9fa; }
.file-preview-actions { min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 18px;border-top:1px solid var(--line);background:#fff; }
.file-preview-actions > span { color:var(--muted);font-size:10px; }
.file-preview-loading,.file-preview-empty { min-height:420px;display:grid;place-items:center;align-content:center;gap:9px;padding:30px;text-align:center;color:var(--muted); }
.file-preview-loading svg { width:28px;color:var(--blue);animation:spin 1s linear infinite; }
.file-preview-empty svg { width:38px;color:#8195a6; }.file-preview-empty strong { color:var(--ink);font-size:13px; }.file-preview-empty span { max-width:480px;font-size:11px;line-height:1.7; }.file-preview-empty.error svg { color:var(--red); }
.pdf-file-preview { display:block;width:100%;height:calc(100vh - 195px);min-height:520px;border:0;background:#e9edf0; }
.image-file-preview { min-height:420px;display:grid;place-items:center;padding:20px; }.image-file-preview img { display:block;max-width:100%;max-height:calc(100vh - 245px);object-fit:contain;box-shadow:0 3px 18px rgba(22,43,61,.13); }
.file-table-preview { overflow:auto;max-height:320px;margin:18px;border:1px solid var(--line);background:#fff; }.file-table-preview table { min-width:100%;border-collapse:collapse;font-size:10px; }.file-table-preview th,.file-table-preview td { min-width:100px;padding:8px 10px;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);text-align:left;white-space:nowrap; }.file-table-preview th { position:sticky;top:0;color:#42586a;background:#edf2f5; }
.file-text-preview { margin:18px;padding:20px;border:1px solid var(--line);border-radius:4px;color:#344b5e;background:#fff;font-family:"Microsoft YaHei",sans-serif;font-size:11px;line-height:1.9;white-space:pre-wrap;word-break:break-word; }
.metadata-preview dl { margin:0;padding:18px 22px;background:#fff;border-bottom:1px solid var(--line); }.metadata-preview dl div { display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:8px 0; }.metadata-preview dt { color:var(--muted);font-size:10px; }.metadata-preview dd { margin:0;font-size:11px;word-break:break-word; }
.settings-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px 20px; border-top: 1px solid var(--line); }
.settings-tools strong { display: block; font-size: 12px; }.settings-tools span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.settings-tools > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.settings-storage { background: #f6f8fa; }
.settings-storage #storageState[data-state="warning"] { color: var(--amber); }
.settings-storage #storageState[data-state="good"] { color: var(--teal); }
@media (max-width: 560px) { .settings-tools { align-items: stretch; flex-direction: column; }.settings-tools > div:last-child button { flex: 1; }.task-card-footer { align-items: flex-start; flex-direction: column; } }
@media (max-width: 560px) { .file-preview-actions { align-items:stretch;flex-direction:column; }.file-preview-actions button { width:100%;justify-content:center; }.file-preview-content,.file-preview-loading,.file-preview-empty { min-height:340px; }.file-text-preview,.file-table-preview { margin:10px; }.pdf-file-preview { min-height:430px; }.metadata-preview dl div { grid-template-columns:72px minmax(0,1fr); } }
