:root {
  --bg:#f5f5f7; --surface:#fff; --surface-2:#fafafc; --surface-3:#f2f2f7;
  --ink:#1d1d1f; --ink-2:#6e6e73; --ink-3:#737373;
  --line:#d2d2d7; --row-line:#e5e5ea; --line-strong:#aeaeb2;
  --brand:#0071e3; --brand-strong:#0062c4; --brand-ink:#0066cc; --brand-tint:#e7f1fd;
  --green:#1d7a33; --green-tint:#e8f7ee; --red:#d70015; --red-tint:#fdecec;
  --pending:#0040dd; --muted:#6c6c70; --muted-tint:#f0f0f3; --warn:#8a5b00; --warn-tint:#fff8e6;
  --glass:rgba(255,255,255,.91); --scrim:rgba(29,29,31,.21);
  --shadow:0 1px 3px rgba(0,0,0,.045); --float-shadow:0 12px 48px rgba(0,0,0,.14);
  --radius:12px; --radius-md:10px; --radius-sm:6px; --pill:8px;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Segoe UI",sans-serif;
  --topbar-h:52px; --context-h:49px;
}
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:var(--bg); color:var(--ink); font:13px/1.5 var(--font); -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; color:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { border:0; background:none; cursor:pointer; }
button:disabled { opacity:.48; cursor:default; }
a { color:inherit; text-decoration:none; }
h1,h2,h3,p { margin:0; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
[hidden] { display:none!important; }
body.locked { overflow:hidden; }
.skip { position:fixed; top:6px; left:6px; z-index:200; padding:8px; background:var(--surface); transform:translateY(-150%); }
.skip:focus { transform:none; }
.topbar { position:sticky; top:0; z-index:30; min-height:var(--topbar-h); display:flex; align-items:center; gap:24px; padding:0 20px; background:var(--glass); backdrop-filter:blur(20px) saturate(180%); border-bottom:1px solid var(--row-line); }
.brand { display:flex; align-items:center; gap:8px; flex:none; color:var(--ink); font-size:14px; font-weight:600; }
.brand-icon { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; background:var(--brand); color:var(--surface); font-size:12px; font-weight:600; }
.modules { display:flex; align-items:center; gap:3px; min-width:0; }
.modules a { display:flex; align-items:center; justify-content:center; gap:5px; min-width:88px; height:33px; padding:0 12px; border-radius:8px; color:var(--ink-2); white-space:nowrap; transition:background 140ms,color 140ms; }
.modules a:hover { background:var(--surface-3); color:var(--ink); }
.modules a[aria-current=page] { background:var(--brand); color:var(--surface); font-weight:500; }
.pending-dot { width:5px; height:5px; border-radius:50%; background:var(--red); }
.modules a[aria-current=page] .pending-dot { background:var(--surface); }
.topbar-end { display:flex; align-items:center; gap:14px; margin-left:auto; flex:none; font-size:11px; }
body.request-page .top-new { display:none; }
body.wo-page .top-new { display:none; }
.demo-label { color:var(--warn); background:var(--warn-tint); padding:3px 8px; border-radius:var(--pill); font-size:10px; white-space:nowrap; }
.global-find { color:var(--ink-2); font-size:11px; padding:5px; }
kbd { color:var(--ink-3); font:10px var(--font); border:1px solid var(--line); border-radius:4px; padding:0 4px; margin-left:5px; }
.range-button { border:1px solid var(--row-line); border-radius:var(--pill); background:var(--surface); padding:5px 10px; color:var(--ink-2); font-size:11px; white-space:nowrap; }
.user { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.avatar { display:inline-grid; place-items:center; width:25px; height:25px; border-radius:50%; background:var(--brand-tint); color:var(--brand-ink); font-size:11px; font-weight:500; }
.context-bar { display:flex; align-items:center; gap:18px; min-height:var(--context-h); padding:8px 20px; border-bottom:1px solid var(--row-line); background:var(--surface-2); }
.context-title { display:flex; align-items:center; gap:9px; min-width:0; font-size:13px; font-weight:600; white-space:nowrap; }
.crumb { color:var(--ink-3); font-weight:400; font-size:12px; }
.back { display:inline-flex; align-items:center; gap:4px; color:var(--brand-ink); font-size:12px; }
.subnav { display:flex; align-items:center; gap:4px; min-width:0; }
.subnav a,.subnav button { padding:5px 13px; color:var(--ink-2); border-radius:8px; font-size:12px; white-space:nowrap; }
.subnav [aria-current=page],.subnav [aria-selected=true] { color:var(--brand-ink); background:var(--brand-tint); font-weight:500; }
.context-meta { margin-left:auto; display:flex; align-items:center; gap:10px; color:var(--ink-3); font-size:11px; white-space:nowrap; }
.green-dot { display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--green); margin-right:5px; }
#workspace { min-width:0; padding:16px 20px 28px; outline:none; }
.page-stack { display:flex; flex-direction:column; gap:3px; min-width:0; }
.heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.heading h1 { font-size:16px; font-weight:600; }
.subtext { color:var(--ink-3); font-size:11px; margin-top:3px; }
.muted { color:var(--ink-3); }
.small { font-size:11px; }
.tiny { font-size:10px; }
.mono,.money,.tabular { font-variant-numeric:tabular-nums; }
.money { font-weight:500; white-space:nowrap; }
.blue { color:var(--brand-ink); }
.red { color:var(--red); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:6px 12px; min-height:30px; border:1px solid var(--line); border-radius:var(--pill); background:var(--surface); color:var(--ink-2); font-size:11px; white-space:nowrap; }
.btn:hover { color:var(--ink); border-color:var(--line-strong); }
.btn.primary { color:var(--surface); border-color:var(--brand); background:var(--brand); }
.btn.primary:hover { background:var(--brand-strong); }
.btn.quiet { background:var(--surface-3); border-color:transparent; }
.btn.danger { background:var(--red-tint); color:var(--red); border-color:transparent; }
.btn:disabled { pointer-events:none; }
.text-link { color:var(--brand-ink); padding:0; font-size:11px; }
.text-link:hover { text-decoration:underline; }
.actions { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.badge { display:inline-flex; align-items:center; gap:3px; border-radius:var(--pill); padding:2px 7px; font-size:10px; white-space:nowrap; font-weight:500; color:var(--muted); background:var(--muted-tint); }
.badge.pending { color:var(--pending); background:var(--brand-tint); }
.badge.good { color:var(--green); background:var(--green-tint); }
.badge.danger { color:var(--red); background:var(--red-tint); }
.badge.warn { color:var(--warn); background:var(--warn-tint); }
.panel { background:var(--surface); border:1px solid var(--row-line); border-radius:var(--radius); min-width:0; box-shadow:var(--shadow); overflow:hidden; }
.panel-head { display:flex; align-items:center; gap:10px; justify-content:space-between; padding:11px 14px; border-bottom:1px solid var(--row-line); }
.panel-head h2,.section-title { font-size:14px; font-weight:600; }
.panel-body { padding:14px; }
.toolbar { display:flex; align-items:center; gap:9px; padding:9px 12px; flex-wrap:wrap; border-bottom:1px solid var(--row-line); }
.toolbar .right { margin-left:auto; }
.search { background:var(--surface-3); border:1px solid transparent; border-radius:var(--pill); padding:7px 11px; font-size:12px; width:220px; max-width:100%; }
.search:focus { background:var(--surface); border-color:var(--brand); }
.select { padding:6px 10px; border:1px solid var(--row-line); border-radius:8px; background:var(--surface); font-size:11px; max-width:100%; }
.segments { display:flex; align-items:center; flex-wrap:wrap; gap:2px; }
.segments button { min-height:30px; padding:5px 10px; border-radius:8px; font-size:11px; color:var(--ink-2); }
.segments button span { margin-left:5px; font-size:10px; color:var(--ink-3); }
.segments button[aria-pressed=true] { background:var(--brand); color:var(--surface); }
.segments button[aria-pressed=true] span { color:var(--surface); }
.notice { display:flex; align-items:center; gap:10px; padding:10px 13px; border-radius:12px; background:var(--surface-2); border:1px solid var(--row-line); font-size:11px; color:var(--ink-2); }
.notice.warn { background:var(--warn-tint); color:var(--warn); border-color:transparent; }
.notice .right { margin-left:auto; }
.template-groups { display:flex; flex-direction:column; gap:21px; }
.group-head { display:flex; align-items:center; gap:8px; margin-bottom:9px; }
.group-head h2 { font-size:13px; font-weight:600; }
.group-head span { color:var(--ink-3); font-size:11px; }
.template-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.template { position:relative; display:grid; grid-template-columns:1fr 132px; width:100%; min-height:139px; padding:17px 18px; gap:15px; text-align:left; background:var(--surface); border:1px solid var(--row-line); border-radius:18px; box-shadow:var(--shadow); transition:transform 160ms,border-color 160ms; }
.template:hover { border-color:var(--line-strong); transform:translateY(-1px); }
.template[data-pending=true] { border-color:var(--brand); }
.template strong { font-size:13px; font-weight:600; }
.template-main { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; }
.template-pending { display:flex; gap:7px; align-items:baseline; margin-top:6px; color:var(--brand-ink); }
.template-pending b { font-size:24px; font-weight:600; line-height:1.1; }
.template-pending span { font-size:11px; }
.template-side { display:grid; grid-template-columns:1fr 1fr; gap:12px 15px; padding-left:15px; border-left:1px solid var(--row-line); }
.template-side span { display:flex; flex-direction:column; gap:2px; color:var(--ink-3); font-size:10px; }
.template-side b { color:var(--ink); font-size:14px; font-weight:500; font-variant-numeric:tabular-nums; }
.approval-workspace { display:grid; grid-template-columns:minmax(0,42fr) minmax(0,58fr); gap:10px; align-items:stretch; height:calc(100dvh - 145px); min-height:480px; }
.approval-master,.approval-detail { display:flex; flex-direction:column; min-height:0; }
.approval-list { overflow:auto; flex:1; min-height:0; }
.approval-row { display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:13px 15px; border-bottom:1px solid var(--row-line); min-width:0; }
.approval-row:hover { background:var(--surface-2); }
.approval-row[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.row-copy { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.row-top,.row-bottom { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.row-top strong { font-size:12px; font-weight:600; }
.row-top .date { margin-left:auto; color:var(--ink-3); font-size:10px; }
.row-bottom { color:var(--ink-3); font-size:11px; }
.row-number { font-size:10px; color:var(--brand-ink); }
.approval-row .avatar { width:28px; height:28px; flex:none; }
.panel-foot { padding:10px 14px; min-height:38px; border-top:1px solid var(--row-line); font-size:10px; color:var(--ink-3); display:flex; align-items:center; justify-content:space-between; gap:9px; }
.detail-header { padding:17px 18px 14px; border-bottom:1px solid var(--row-line); }
.detail-header h2 { font-size:16px; font-weight:600; margin:7px 0; }
.detail-header .amount { font-size:28px; font-weight:600; letter-spacing:-.02em; margin:13px 0 4px; }
.detail-content { padding:16px 18px; min-height:0; flex:1; overflow:auto; }
.detail-section + .detail-section { margin-top:18px; border-top:1px solid var(--row-line); padding-top:15px; }
.detail-section h3 { font-size:12px; font-weight:600; margin-bottom:10px; }
.detail-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; margin:0; }
.detail-fields dt { color:var(--ink-3); font-size:10px; margin-bottom:3px; }
.detail-fields dd { margin:0; font-size:12px; overflow-wrap:anywhere; }
.process { margin:0; padding:0; list-style:none; }
.process li { display:flex; gap:10px; position:relative; padding-bottom:16px; }
.process li:not(:last-child)::before { content:""; position:absolute; top:13px; bottom:0; left:4px; width:1px; background:var(--row-line); }
.process-dot { position:relative; z-index:1; width:9px; height:9px; margin-top:4px; border-radius:50%; background:var(--line); flex:none; }
.process .done .process-dot { background:var(--green); }
.process .active .process-dot { background:var(--brand); box-shadow:0 0 0 3px var(--brand-tint); }
.process .error .process-dot { background:var(--red); }
.process strong { font-size:11px; font-weight:500; display:block; }
.process p { font-size:10px; color:var(--ink-3); margin-top:3px; }
.file-row,.related-row { padding:9px 10px; background:var(--surface-2); border-radius:8px; display:flex; gap:8px; align-items:center; font-size:11px; }
.file-row + .file-row,.related-row + .related-row { margin-top:6px; }
.file-row .right,.related-row .right { margin-left:auto; }
.empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:180px; padding:24px; text-align:center; color:var(--ink-3); font-size:12px; }
.empty strong { color:var(--ink-2); font-size:14px; font-weight:500; }
.ticker { display:flex; gap:0; flex-wrap:wrap; padding:12px 0; background:var(--surface); border:1px solid var(--row-line); border-radius:12px; }
.ticker > div { padding:2px 20px; border-right:1px solid var(--row-line); min-width:145px; flex:1; }
.ticker > div:last-child { border:0; }
.ticker span { font-size:10px; color:var(--ink-3); }
.ticker b { display:block; margin-top:3px; font-size:16px; font-weight:500; font-variant-numeric:tabular-nums; }
.table-scroll { overflow:auto; max-width:100%; min-width:0; }
table { border-collapse:collapse; width:100%; font-size:12px; }
th,td { padding:11px 13px; border-bottom:1px solid var(--row-line); text-align:left; vertical-align:middle; white-space:nowrap; }
th { font-size:10px; color:var(--ink-3); background:var(--surface-2); font-weight:500; }
tbody tr:hover { background:var(--surface-2); }
tbody tr:last-child td { border-bottom:0; }
td.num,th.num { text-align:right; font-variant-numeric:tabular-nums; }
td .cell-sub { color:var(--ink-3); font-size:10px; margin-top:3px; }
.row-actions { display:flex; gap:10px; align-items:center; }
.wide-table { min-width:1120px; }
.extra-wide { min-width:1670px; }
.progress { display:flex; gap:7px; align-items:center; font-size:10px; color:var(--ink-2); white-space:nowrap; }
.progress-track { width:65px; height:4px; background:var(--surface-3); border-radius:var(--pill); overflow:hidden; }
.progress-track i { height:100%; display:block; background:var(--brand); }
.milestones { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:6px; }
.milestone { padding:11px 7px; border:1px solid var(--row-line); border-radius:12px; background:var(--surface); text-align:center; }
.milestone strong { display:block; color:var(--ink-2); font-size:10px; font-weight:500; }
.milestone b { display:block; color:var(--brand-ink); font-size:16px; margin-top:3px; font-weight:500; }
.milestone[aria-pressed=true] { border-color:var(--brand); background:var(--brand-tint); }
.milestone .late { font-size:10px; color:var(--red); margin-top:1px; }
.table-title { display:flex; align-items:center; gap:8px; }
.chart-strip { display:flex; align-items:center; gap:8px; padding:12px 16px; flex-wrap:wrap; border-bottom:1px solid var(--row-line); }
.chart-strip span { color:var(--ink-3); font-size:10px; }
.split { display:grid; grid-template-columns:minmax(200px,.65fr) minmax(0,1.8fr); gap:14px; min-width:0; }
.staff-list { padding:4px; max-height:570px; overflow:auto; }
.staff-item { width:100%; padding:11px 12px; border-radius:8px; display:flex; flex-direction:column; gap:3px; align-items:flex-start; }
.staff-item:hover { background:var(--surface-2); }
.staff-item[aria-selected=true] { background:var(--brand-tint); }
.staff-item strong { font-size:12px; font-weight:500; }
.staff-item span { color:var(--ink-3); font-size:10px; }
.permission-row { display:flex; align-items:center; gap:10px; padding:11px 16px; border-bottom:1px solid var(--row-line); }
.permission-row .permission-copy { flex:1; }
.permission-row strong { display:block; font-size:12px; font-weight:500; }
.permission-row small { display:block; color:var(--ink-3); font-size:10px; margin-top:2px; }
.toggle { width:33px; height:20px; border-radius:var(--pill); padding:3px; background:var(--line); flex:none; }
.toggle span { display:block; width:14px; height:14px; background:var(--surface); border-radius:50%; transition:transform 160ms; }
.toggle[aria-checked=true] { background:var(--brand); }
.toggle[aria-checked=true] span { transform:translateX(13px); }
.permission-label { padding:8px 16px; background:var(--surface-2); font-size:10px; color:var(--ink-3); }
.mini-audit { margin-top:14px; }
.catalog { display:flex; gap:4px; flex-wrap:wrap; padding:11px 14px; border-bottom:1px solid var(--row-line); }
.catalog button { padding:5px 11px; border-radius:var(--pill); color:var(--ink-2); font-size:11px; }
.catalog button[aria-pressed=true] { color:var(--brand-ink); background:var(--brand-tint); }
.source-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.source-card { padding:17px; }
.source-card h2 { display:flex; justify-content:space-between; gap:7px; font-size:13px; font-weight:500; }
.source-card .source-count { font-size:16px; font-weight:500; margin:14px 0 5px; }
.source-card p { color:var(--ink-3); font-size:11px; }
.source-card footer { display:flex; justify-content:space-between; margin-top:15px; padding-top:10px; border-top:1px solid var(--row-line); font-size:10px; color:var(--ink-3); }
.home-intro { text-align:center; padding:45px 0 30px; }
.home-intro h1 { font-size:16px; font-weight:600; }
.home-intro p { color:var(--ink-3); margin-top:7px; font-size:12px; }
.home-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; max-width:1060px; margin:auto; }
.home-card { text-align:left; padding:24px; min-height:150px; transition:transform 150ms; }
.home-card:hover { transform:translateY(-2px); }
.home-card h2 { font-size:14px; margin-bottom:8px; font-weight:600; }
.home-card p { color:var(--ink-3); font-size:12px; margin-bottom:15px; }
.check-layout { display:grid; grid-template-columns:minmax(240px,.85fr) minmax(0,1.4fr); gap:14px; }
.candidate { width:100%; display:flex; flex-direction:column; gap:4px; padding:13px 15px; border-bottom:1px solid var(--row-line); text-align:left; }
.candidate[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.candidate strong { font-size:12px; font-weight:500; }
.candidate small { color:var(--ink-3); font-size:10px; }
.evidence-item { display:flex; gap:9px; padding:11px 0; border-bottom:1px solid var(--row-line); font-size:12px; }
.evidence-item .checkmark { color:var(--green); }
.evidence-item .checkmark.warn { color:var(--warn); }
.evidence-item p { color:var(--ink-3); font-size:11px; margin-top:3px; }
.matching-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.record-pick { width:100%; text-align:left; padding:13px; border-bottom:1px solid var(--row-line); display:flex; flex-direction:column; gap:5px; }
.record-pick[aria-pressed=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.record-pick strong { font-size:11px; font-weight:500; }
.record-pick small { font-size:10px; color:var(--ink-3); }
.allocation-bar { display:flex; align-items:center; gap:11px; padding:14px; border-top:1px solid var(--row-line); flex-wrap:wrap; }
.allocation-amount { width:130px; }
.overlay { position:fixed; inset:0; z-index:70; display:flex; align-items:center; justify-content:center; padding:24px; }
.scrim { position:absolute; inset:0; background:var(--scrim); backdrop-filter:blur(2px); }
.dialog { position:relative; z-index:1; width:min(680px,100%); max-height:calc(100dvh - 48px); background:var(--surface); border:1px solid var(--row-line); border-radius:12px; box-shadow:var(--float-shadow); display:flex; flex-direction:column; outline:none; }
.dialog.wide { width:min(1000px,100%); }
.dialog.drawer { position:fixed; right:0; top:0; bottom:0; border-radius:0; width:min(580px,100%); max-height:100dvh; }
.dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; padding:18px 20px; border-bottom:1px solid var(--row-line); }
.dialog-header h2 { font-size:16px; font-weight:600; }
.close { width:28px; height:28px; display:grid; place-items:center; background:var(--surface-3); border-radius:50%; font-size:16px; flex:none; }
.dialog-body { padding:20px; min-height:0; overflow:auto; }
.dialog-footer { padding:12px 20px; border-top:1px solid var(--row-line); display:flex; gap:7px; justify-content:flex-end; }
.dialog-footer .left { margin-right:auto; }
.form { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form label { display:flex; flex-direction:column; gap:5px; font-size:11px; color:var(--ink-2); }
.form input,.form select,.form textarea { border:1px solid var(--line); border-radius:8px; padding:8px 10px; background:var(--surface); min-width:0; font-size:12px; width:100%; }
.form .full { grid-column:1/-1; }
.form-error { color:var(--red); background:var(--red-tint); border-radius:8px; padding:9px 11px; margin-bottom:13px; font-size:11px; }
.search-result { display:flex; align-items:center; gap:10px; width:100%; padding:12px 0; text-align:left; border-bottom:1px solid var(--row-line); font-size:12px; }
.search-result span { color:var(--ink-3); font-size:11px; }
.search-result strong { font-weight:500; }
.search-result .right { margin-left:auto; }
.toast { position:fixed; z-index:120; bottom:20px; left:50%; transform:translateX(-50%); padding:10px 17px; max-width:calc(100% - 24px); background:var(--ink); color:var(--surface); border-radius:var(--pill); box-shadow:var(--float-shadow); font-size:12px; text-align:center; }
.blank-break { white-space:normal; overflow-wrap:anywhere; }
@media(min-width:1600px) {
 .template-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .approval-workspace { grid-template-columns:minmax(0,620px) minmax(0,1fr); }
}
@media(max-width:1120px) {
 .topbar { gap:14px; padding:0 15px; } .modules a { min-width:73px; padding:0 8px; font-size:12px; }
 .topbar-end { gap:8px; } .global-find { display:none; }
 .template-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .context-bar { gap:12px; padding-left:16px; padding-right:16px; }
 .subnav a { padding:5px 9px; font-size:11px; }
 .context-meta { font-size:10px; }
 .ticker > div { min-width:125px; padding:2px 14px; }
}
@media(max-width:900px) {
 .approval-workspace { grid-template-columns:1fr; height:auto; min-height:0; }
 .approval-list { max-height:70vh; }
 .approval-detail { min-height:450px; }
 .detail-content { overflow:visible; }
}
@media(max-width:800px) {
 .topbar { flex-wrap:wrap; gap:4px 16px; padding:8px 12px; }
 .brand { font-size:13px; } .modules { order:3; width:100%; justify-content:space-between; margin-top:5px; }
 .modules a { min-width:0; flex:1; height:32px; font-size:11px; padding:0 6px; }
 .topbar-end { margin-left:auto; } .range-button { display:none; } .demo-label { font-size:10px; }
 .context-bar { flex-wrap:wrap; gap:6px 12px; padding:9px 12px; }
 .context-meta { margin-left:auto; }
 .context-bar:has(.subnav) .context-title { width:100%; }
 .context-bar:has(.subnav) .context-meta { display:none; }
 .subnav { width:100%; overflow:auto; padding-bottom:2px; }
 #workspace { padding:3px 2px; } .template-grid { grid-template-columns:1fr 1fr; }
 .template { grid-template-columns:1fr; min-height:147px; gap:10px; padding:15px; }
 .template-side { grid-template-columns:repeat(4,1fr); border-left:0; border-top:1px solid var(--row-line); padding:8px 0 0; gap:7px; }
 .template-side b { font-size:12px; }
 .toolbar { padding:10px; gap:7px; } .toolbar .search { width:100%; }
 .toolbar .right { margin-left:0; }
 .split { grid-template-columns:minmax(120px,.65fr) minmax(0,1.5fr); gap:9px; }
 .staff-item { padding:10px 8px; }
 .milestones { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
 .milestone { padding:7px; }
 .ticker { gap:9px 0; } .ticker > div { min-width:33%; padding:2px 12px; }
 .check-layout { grid-template-columns:1fr; } .matching-board { grid-template-columns:1fr; }
 .home-grid,.source-list { grid-template-columns:1fr 1fr; gap:10px; }
 .home-card { padding:17px; }
}
@media(max-width:480px) {
 .user { font-size:10px; } .user .avatar { width:22px; height:22px; font-size:10px; }
 .context-title { font-size:12px; } .context-meta .btn { padding:4px 8px; min-height:27px; }
 .heading { flex-wrap:wrap; } .heading h1 { font-size:14px; }
 .segments button { padding:5px 8px; font-size:10px; }
 .template strong { font-size:12px; } .template { padding:12px; }
 .template-side { grid-template-columns:1fr 1fr; }
 .home-grid,.source-list { grid-template-columns:1fr; }
 .form { grid-template-columns:1fr; } .form .full { grid-column:auto; }
 .detail-fields { gap:10px; } .detail-header h2 { font-size:14px; }
 .overlay { padding:12px; } .dialog { max-height:calc(100dvh - 24px); }
 .permission-row { padding:10px; gap:7px; }
 .permission-row strong { font-size:11px; }
 .notice { align-items:flex-start; flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
@media(max-width:800px) { .app-shell.has-subnav { grid-template-columns:140px minmax(0,1fr); } .subnav-rail { width:140px; } }
@media(max-width:600px) { .app-shell.has-subnav { grid-template-columns:124px minmax(0,1fr); } .subnav-rail { width:124px; } .subnav-head { padding:0 7px; } .subnav-item { padding:0 6px; font-size:10px; } }

.appr-page { gap:3px; }
.appr-platform-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-height:36px; padding:0 2px; }
.appr-platform-head h1 { margin:0; color:var(--ink); font-size:14px; font-weight:650; letter-spacing:.2px; }
.appr-tag { padding:2px 9px; border:1px solid var(--row-line); border-radius:999px; color:var(--ink-3); font-size:10px; white-space:nowrap; }
.appr-tag.ok { color:var(--green); border-color:#bfe6d5; background:var(--green-tint); }
.appr-spacer { flex:1; }
.appr-sync { min-height:28px; padding:4px 10px; border:1px solid var(--brand); border-radius:7px; background:var(--brand); color:var(--surface); font-size:10px; }
.appr-sync:hover { background:var(--brand-strong); }
.appr-pager { display:flex; align-items:center; justify-content:center; gap:8px; min-height:18px; padding:3px 0; color:var(--ink-3); font-size:10px; }
.appr-pager button { min-height:24px; padding:2px 8px; border:1px solid var(--row-line); border-radius:5px; background:var(--surface); color:var(--ink-2); font-size:10px; }
.appr-pager button:disabled { opacity:.45; }
.appr-snapshot-bar { display:flex; align-items:center; gap:10px; padding:3px 2px; color:var(--ink-3); font-size:9px; }
.appr-snapshot-bar span:first-child { padding:1px 6px; border-radius:5px; color:var(--brand-ink); background:var(--brand-tint); font-weight:500; }
.appr-wall { display:flex; flex-direction:column; gap:6px; }
.appr-group { display:flex; flex-direction:column; gap:3px; }
.appr-group-head { display:flex; align-items:center; gap:8px; padding:4px 2px 1px; border-bottom:1px solid var(--row-line); color:var(--ink-2); font-size:11px; }
.appr-group-head strong { color:var(--ink); font-size:12px; }
.appr-group-head span { color:var(--ink-3); font-size:10px; }
.appr-group-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:3px; }
.appr-card { display:flex; flex-direction:column; gap:3px; min-height:82px; padding:10px 12px; border:1px solid var(--row-line); border-radius:9px; background:var(--surface); text-align:left; box-shadow:var(--shadow); }
.appr-card:hover { border-color:var(--line-strong); background:var(--surface-2); }
.appr-card.on { border-color:var(--brand); box-shadow:0 0 0 2px var(--brand-tint); }
.appr-card-name { display:flex; align-items:center; gap:6px; color:var(--ink); font-size:12px; font-weight:600; }
.appr-card-name i { width:6px; height:6px; flex:none; border-radius:50%; background:var(--brand); }
.appr-card-sub { color:var(--ink-3); font-size:10px; }
.appr-card-nums { display:flex; gap:9px; flex-wrap:wrap; margin-top:auto; color:var(--ink-3); font-size:10px; }
.appr-card-nums b { color:var(--ink); font-weight:600; }
.appr-card-nums .pend b { color:var(--brand-ink); }
.appr-list-head { display:flex; align-items:center; gap:8px; min-height:34px; padding:0 2px; border-bottom:1px solid var(--row-line); }
.appr-list-head strong { color:var(--ink); font-size:13px; font-weight:600; }
.appr-list-head > span { color:var(--ink-3); font-size:10px; }
.appr-back { padding:3px 6px; border-radius:5px; color:var(--brand-ink); font-size:10px; }
.appr-back:hover { background:var(--brand-tint); }
.appr-bar { display:flex; align-items:center; gap:7px; flex-wrap:wrap; min-height:35px; }
.appr-tabs { display:flex; gap:2px; padding:2px; border-radius:7px; background:var(--surface-3); }
.appr-tabs button { min-height:26px; padding:3px 10px; border-radius:5px; color:var(--ink-3); font-size:11px; }
.appr-tabs button span { color:var(--ink-3); font-size:9px; margin-left:3px; }
.appr-tabs button[aria-pressed=true] { color:var(--ink); background:var(--surface); font-weight:500; box-shadow:0 1px 3px rgba(15,23,42,.08); }
.appr-bar .search { width:210px; }
.appr-meta { margin-left:auto; color:var(--ink-3); font-size:10px; }
.appr-table-wrap { border:1px solid var(--row-line); border-radius:9px; overflow:auto; background:var(--surface); }
.appr-table { width:100%; border-collapse:collapse; font-size:11px; }
.appr-table th,.appr-table td { padding:8px 10px; border-bottom:1px solid var(--row-line); text-align:left; vertical-align:top; }
.appr-table th { background:var(--surface-2); color:var(--ink-3); font-size:9px; font-weight:600; white-space:nowrap; }
.appr-table th:nth-child(1) { width:135px; }
.appr-table th:nth-child(3) { width:72px; }
.appr-table th:nth-child(4) { width:96px; }
.appr-table th:nth-child(5) { width:108px; }
.appr-table th:nth-child(6) { width:92px; }
.appr-table th:nth-child(7) { width:96px; }
.appr-table tbody tr { cursor:pointer; }
.appr-table tbody tr:hover td { background:var(--brand-tint); }
.appr-table tbody tr:last-child td { border-bottom:0; }
.appr-no { color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.appr-ref { max-width:140px; margin-top:2px; color:var(--red); font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.appr-title-cell { max-width:300px; }
.appr-title { display:block; overflow:hidden; color:var(--ink); font-size:11px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.appr-sub { display:block; margin-top:2px; color:var(--ink-3); font-size:9px; white-space:nowrap; }
.appr-pill { display:inline-block; padding:2px 7px; border-radius:999px; background:var(--surface-3); color:var(--muted); font-size:9px; white-space:nowrap; }
.appr-pill.PENDING { color:var(--brand-ink); background:var(--brand-tint); }
.appr-pill.APPROVED { color:var(--green); background:var(--green-tint); }
.appr-pill.RETURNED { color:var(--warn); background:var(--warn-tint); }
.appr-pill.REJECTED { color:var(--red); background:var(--red-tint); }
.appr-pill.REVOKED,.appr-pill.DELETED,.appr-pill.APPROVED_THEN_REVOKED { color:var(--muted); background:var(--surface-3); }
.appr-who span { display:block; color:var(--ink); font-size:10px; }
.appr-who small { display:block; margin-top:2px; color:var(--ink-3); font-size:9px; }
.appr-time { color:var(--ink-2); font-size:10px; white-space:nowrap; }
.appr-rel { display:inline-flex; gap:3px; flex-wrap:wrap; }
.appr-rel span { padding:1px 6px; border-radius:999px; background:var(--surface-3); color:var(--ink-3); font-size:9px; }
.appr-rel .pending { color:var(--brand-ink); background:var(--brand-tint); }
.appr-rel .mine { color:#6544b8; background:#f1eeff; }
.appr-rel .approved { color:var(--green); background:var(--green-tint); }
.appr-chips { display:flex; gap:3px; flex-wrap:wrap; max-width:300px; }
.appr-chip { max-width:150px; padding:1px 6px; border:1px solid var(--row-line); border-radius:5px; background:var(--surface-2); color:var(--ink-2); font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.appr-foot { padding:5px 2px; color:var(--ink-3); font-size:9px; }

.approval-drawer { position:fixed; inset:0 0 0 auto; z-index:60; width:min(560px,100vw); overflow:auto; border-left:1px solid var(--line); background:var(--surface); box-shadow:-12px 0 32px rgba(15,23,42,.12); transform:translateX(102%); transition:transform .22s ease; }
.approval-drawer.open { transform:none; }
.approval-drawer-close { position:absolute; top:10px; right:12px; z-index:2; width:28px; height:28px; border-radius:6px; color:var(--ink-3); font-size:20px; line-height:1; }
.approval-drawer-close:hover { color:var(--ink); background:var(--surface-3); }
.appr-drawer-head { position:sticky; top:0; z-index:1; padding:14px 18px 11px; border-bottom:1px solid var(--row-line); background:var(--surface); }
.appr-drawer-head h2 { margin:0 34px 4px 0; color:var(--ink); font-size:15px; font-weight:600; }
.appr-drawer-head .no { color:var(--ink-3); font-size:10px; font-variant-numeric:tabular-nums; }
.appr-drawer-body { padding:10px 18px 36px; }
.appr-kv { display:grid; grid-template-columns:76px 1fr; gap:6px 12px; margin:8px 0 14px; font-size:11px; }
.appr-kv dt { color:var(--ink-3); }
.appr-kv dd { margin:0; color:var(--ink); }
.appr-sec { margin:15px 0 7px; color:var(--ink-3); font-size:9px; font-weight:600; letter-spacing:.4px; }
.appr-current { padding:7px 9px; border-left:2px solid var(--brand); background:var(--brand-tint); color:var(--brand-ink); font-size:11px; }
.appr-drawer-ref { display:flex; gap:6px; width:100%; padding:4px 0; color:var(--red); font-size:10px; text-align:left; }
.appr-drawer-ref span { color:var(--ink-3); }
.appr-fld { padding:6px 0; border-bottom:1px dashed var(--row-line); font-size:11px; }
.appr-fld:last-child { border-bottom:0; }
.appr-fld .l { margin-bottom:2px; color:var(--ink-3); font-size:9px; }
.appr-nodes { display:flex; flex-direction:column; }
.appr-node { display:flex; flex-direction:column; gap:1px; margin-left:3px; padding:5px 0 5px 11px; border-left:2px solid var(--row-line); font-size:10px; }
.appr-node strong { color:var(--ink); font-weight:500; }
.appr-node span { color:var(--ink-3); }
.appr-node.done { border-color:var(--green); }
.appr-node.cur { border-color:var(--brand); background:linear-gradient(90deg,var(--brand-tint),transparent 60%); }

@media(max-width:900px) {
  .appr-table-wrap { border:0; background:transparent; overflow:visible; }
  .appr-table, .appr-table thead, .appr-table tbody, .appr-table th, .appr-table td, .appr-table tr { display:block; }
  .appr-table thead { display:none; }
  .appr-table tbody tr { margin-bottom:3px; padding:8px 10px; border:1px solid var(--row-line); border-radius:8px; background:var(--surface); }
  .appr-table tbody td { display:flex; gap:8px; padding:2px 0; border:0; }
  .appr-table tbody td::before { content:attr(data-l); flex:none; width:52px; padding-top:1px; color:var(--ink-3); font-size:9px; }
  .appr-title-cell, .appr-chips { max-width:none; }
}

/* ===== V3 · 任务 / 对象 / 变更工作区 ===================================== */
/* 二级菜单是绝对定位浮层：导航条不能是滚动容器，否则会裁剪浮层（窄屏在媒体查询里单独恢复滚动） */
.top-nav { display:flex; align-items:center; gap:2px; min-width:0; overflow:visible; scrollbar-width:none; }
.top-nav::-webkit-scrollbar { display:none; }
.top-nav a { position:relative; display:inline-flex; align-items:center; gap:5px; flex:none; height:31px; padding:0 10px; border-radius:7px; color:var(--ink-2); font-size:12px; white-space:nowrap; }
.top-nav a:hover { background:var(--surface-2); color:var(--ink); }
.top-nav a[aria-current=page] { background:var(--surface-3); color:var(--ink); font-weight:500; }
.nav-dot { position:absolute; top:4px; right:4px; width:5px; height:5px; border-radius:50%; background:var(--red); pointer-events:none; }
.nav-group { position:relative; display:inline-flex; align-items:center; flex:none; gap:0; }
.nav-group.is-open > a[data-nav] { background:var(--brand-tint); color:var(--brand-ink); }
.nav-group.is-open > a[data-nav]::after { content:""; position:absolute; left:10px; right:10px; bottom:-1px; height:2px; border-radius:2px 2px 0 0; background:var(--brand-ink); }
.nav-expand { display:grid; place-items:center; width:19px; height:26px; padding:0; border-radius:5px; color:var(--ink-3); font-size:14px; line-height:1; }
.nav-expand:hover { color:var(--ink); background:var(--surface-2); }
.nav-expand[aria-expanded=true] { color:var(--brand-ink); background:var(--brand-tint); }
.nav-submenu { position:absolute; top:calc(100% + 12px); left:0; z-index:40; display:flex; flex-direction:column; gap:1px; min-width:136px; padding:5px; border:1px solid var(--row-line); border-radius:10px; background:var(--surface); box-shadow:0 14px 34px -10px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.06); }
.nav-subitem { position:relative; display:flex; align-items:center; gap:6px; width:100%; height:28px; padding:0 8px; border-radius:6px; color:var(--ink-2); font-size:11px; white-space:nowrap; text-align:left; }
.nav-subitem:hover { color:var(--ink); background:var(--surface-2); }
.nav-subitem[aria-pressed=true] { color:var(--brand-ink); background:var(--brand-tint); font-weight:500; }
.nav-subitem-action { color:var(--ink-3); }
.app-shell { display:grid; grid-template-columns:0 minmax(0,1fr); transition:grid-template-columns 180ms ease; }
.app-shell.has-subnav { grid-template-columns:168px minmax(0,1fr); }
.subnav-rail { position:sticky; top:var(--topbar-h); align-self:start; display:flex; flex-direction:column; width:168px; height:calc(100dvh - var(--topbar-h)); overflow:auto; border-right:1px solid var(--row-line); background:var(--surface); z-index:20; }
.subnav-head { display:flex; align-items:center; min-height:34px; padding:0 10px; border-bottom:1px solid var(--row-line); }
.subnav-head strong { font-size:11px; font-weight:600; }
.subnav-items { display:flex; flex-direction:column; gap:2px; padding:5px; }
.subnav-item { display:flex; align-items:center; gap:7px; width:100%; min-height:31px; padding:0 8px; border-radius:6px; color:var(--ink-2); font-size:11px; text-align:left; }
.subnav-item span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.subnav-item b { margin-left:auto; min-width:17px; padding:1px 4px; border-radius:4px; background:var(--surface-3); color:var(--ink-3); font-size:9px; font-weight:500; text-align:center; }
.subnav-item:hover { background:var(--surface-2); color:var(--ink); }
.subnav-item[aria-pressed=true] { color:var(--brand-ink); background:var(--brand-tint); font-weight:500; }
.subnav-item[aria-pressed=true] b { color:var(--brand-ink); background:var(--surface); }
.subnav-foot { margin-top:auto; padding:7px; border-top:1px solid var(--row-line); }
.subnav-foot-action { width:100%; padding:5px 7px; border:1px solid var(--row-line); border-radius:6px; background:var(--surface); color:var(--ink-2); font-size:10px; text-align:left; }
.subnav-foot-action:hover { color:var(--ink); border-color:var(--line-strong); }
.user-name { color:var(--ink-2); font-size:12px; }
.user-role { color:var(--ink-3); font-size:10px; padding:2px 6px; border-radius:var(--pill); background:var(--surface-3); }
.mobile-menu { display:none; border:1px solid var(--row-line); border-radius:8px; width:30px; height:30px; color:var(--ink-2); }
.shell { display:grid; grid-template-columns:216px minmax(0,1fr); min-height:calc(100dvh - var(--topbar-h)); }
.sidebar { position:sticky; top:var(--topbar-h); height:calc(100dvh - var(--topbar-h)); display:flex; flex-direction:column; padding:17px 11px 12px; background:var(--surface); border-right:1px solid var(--row-line); overflow:auto; }
.side-nav { display:flex; flex-direction:column; gap:3px; }
.side-nav a { display:flex; align-items:center; gap:10px; min-height:38px; padding:0 11px; color:var(--ink-2); border-radius:9px; font-size:12px; transition:background 130ms,color 130ms; }
.side-nav a:hover { background:var(--surface-2); color:var(--ink); }
.side-nav a[aria-current=page],.side-link[aria-current=page] { background:var(--brand-tint); color:var(--brand-ink); font-weight:500; }
.nav-glyph { width:17px; color:var(--ink-3); font-size:14px; text-align:center; }
.side-nav a[aria-current=page] .nav-glyph { color:var(--brand-ink); }
.side-nav a b { min-width:18px; margin-left:auto; padding:2px 5px; border-radius:var(--pill); background:var(--brand-tint); color:var(--brand-ink); font-size:10px; font-weight:500; text-align:center; }
.side-section { margin-top:24px; padding-top:16px; border-top:1px solid var(--row-line); }
.side-label { color:var(--ink-3); font-size:10px; letter-spacing:.05em; margin:0 10px 7px; }
.side-link { display:flex; align-items:center; min-height:31px; padding:0 11px; border-radius:8px; color:var(--ink-3); font-size:11px; }
.side-link:hover { background:var(--surface-2); color:var(--ink-2); }
.side-link span { margin-left:auto; color:var(--ink-3); font-size:10px; }
.side-status { display:flex; gap:8px; align-items:flex-start; margin-top:auto; padding:11px; border:1px solid var(--row-line); border-radius:10px; background:var(--surface-2); }
.status-dot { flex:none; width:6px; height:6px; margin-top:4px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px var(--green-tint); }
.side-status div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.side-status strong { font-size:10px; font-weight:600; }
.side-status small { color:var(--ink-3); font-size:10px; line-height:1.35; }
.side-foot { padding:11px 4px 0; color:var(--ink-3); font-size:10px; }
.nav-scrim { position:fixed; inset:var(--topbar-h) 0 0; z-index:21; background:rgba(29,29,31,.2); }
#workspace { width:100%; min-height:calc(100dvh - var(--topbar-h)); margin:0; padding:3px 2px; outline:none; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-direction:row; padding:0; min-height:30px; }
.page-head--actions { justify-content:flex-end; }
.page-head .head-actions { margin-left:auto; }
.page-head h1 { color:var(--ink); font-size:14px; line-height:1.3; font-weight:600; letter-spacing:-.015em; }
.page-desc { color:var(--ink-3); font-size:12px; margin-top:4px; }
.eyebrow { color:var(--ink-3); font-size:10px; font-weight:600; letter-spacing:.08em; margin-bottom:5px; }
.head-actions { display:flex; align-items:center; gap:8px; flex:none; flex-wrap:wrap; }
.work-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.work-stat { display:flex; flex-direction:column; align-items:flex-start; min-height:76px; padding:11px 14px; background:var(--surface); border:1px solid var(--row-line); border-radius:10px; box-shadow:var(--shadow); text-align:left; transition:transform 140ms,border-color 140ms; }
.work-stat:hover { transform:translateY(-1px); border-color:var(--line-strong); }
.work-stat span { color:var(--ink-3); font-size:11px; }
.work-stat b { margin-top:5px; color:var(--ink); font-size:24px; line-height:1; font-weight:600; font-variant-numeric:tabular-nums; }
.work-stat small { margin-top:auto; color:var(--ink-3); font-size:10px; }
.work-layout { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(330px,.72fr); gap:8px; align-items:stretch; min-height:calc(100dvh - 202px); }
.task-list-panel { display:flex; flex-direction:column; min-height:0; }
.task-rows { flex:1; overflow:auto; min-height:350px; }
.task-row { display:flex; align-items:flex-start; gap:10px; width:100%; padding:14px 15px; border-bottom:1px solid var(--row-line); text-align:left; transition:background 130ms; }
.task-row:last-child { border-bottom:0; }
.task-row:hover { background:var(--surface-2); }
.task-row[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.task-mark { width:3px; align-self:stretch; min-height:36px; border-radius:3px; background:var(--line); flex:none; }
.task-mark.high { background:var(--red); }
.task-mark.medium { background:#d89b1b; }
.task-copy { display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }
.row-top { display:flex; align-items:center; gap:7px; min-width:0; flex-wrap:wrap; }
.row-top strong { color:var(--ink); font-size:12px; font-weight:600; }
.row-date { color:var(--ink-3); font-size:10px; margin-left:auto; white-space:nowrap; }
.task-sub { color:var(--ink-3); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-row > .badge { flex:none; }
.task-detail { display:flex; flex-direction:column; min-height:0; }
.detail-header { padding:17px 18px 15px; border-bottom:1px solid var(--row-line); }
.detail-header h2 { color:var(--ink); font-size:16px; font-weight:600; margin:8px 0 5px; letter-spacing:-.02em; }
.detail-header .amount { font-size:28px; font-weight:600; letter-spacing:-.035em; margin-top:13px; font-variant-numeric:tabular-nums; }
.detail-tabs { display:flex; gap:2px; padding:0 12px; min-height:42px; border-bottom:1px solid var(--row-line); overflow-x:auto; }
.detail-tabs button { position:relative; min-height:42px; padding:0 9px; color:var(--ink-3); font-size:11px; white-space:nowrap; }
.detail-tabs button[aria-selected=true] { color:var(--ink); font-weight:600; }
.detail-tabs button[aria-selected=true]::after { content:""; position:absolute; left:8px; right:8px; bottom:-1px; height:2px; background:var(--brand); border-radius:2px 2px 0 0; }
.detail-content { flex:1; min-height:0; overflow:auto; padding:16px 18px; }
.detail-section { padding-bottom:15px; margin-bottom:15px; border-bottom:1px solid var(--row-line); }
.detail-section:last-child { border-bottom:0; margin-bottom:0; padding-bottom:0; }
.detail-section h3,.mini-heading { color:var(--ink); font-size:12px; font-weight:600; margin-bottom:9px; }
.body-copy { color:var(--ink-2); font-size:12px; line-height:1.65; }
.evidence-box { display:flex; gap:8px; align-items:flex-start; padding:10px 11px; background:var(--surface-2); border-radius:9px; color:var(--ink-2); font-size:11px; line-height:1.55; }
.evidence-icon { display:grid; place-items:center; flex:none; width:16px; height:16px; border-radius:50%; color:var(--surface); background:var(--green); font-size:10px; font-weight:600; }
.muted-note { color:var(--ink-3); font-size:10px; line-height:1.55; margin-top:8px; }
.linked-object { display:flex; align-items:center; gap:8px; padding:10px; border-radius:9px; background:var(--surface-2); }
.linked-object strong { font-size:11px; font-weight:500; }
.linked-object .text-link { margin-left:auto; }
.detail-actions { display:flex; justify-content:flex-end; gap:7px; padding:11px 16px; border-top:1px solid var(--row-line); background:var(--surface); flex-wrap:wrap; }
.type-badge { display:inline-flex; align-items:center; padding:2px 7px; border-radius:var(--pill); background:var(--surface-3); color:var(--ink-3); font-size:10px; font-weight:500; white-space:nowrap; }
.type-badge.approval { background:var(--brand-tint); color:var(--brand-ink); }
.type-badge.order { background:var(--green-tint); color:var(--green); }
.type-badge.finance { background:#f1edff; color:#6544b8; }
.type-badge.case { background:var(--warn-tint); color:var(--warn); }
.type-badge.people { background:var(--surface-3); color:var(--muted); }
.type-badge.review { background:var(--red-tint); color:var(--red); }
.empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:200px; padding:25px; color:var(--ink-3); font-size:12px; }
.empty-symbol { display:grid; place-items:center; width:36px; height:36px; background:var(--surface-3); border-radius:50%; color:var(--ink-3); font-size:16px; }
.empty-list { padding:38px 18px; color:var(--ink-3); font-size:11px; text-align:center; }

.business-layout { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(350px,.88fr); gap:8px; min-height:calc(100dvh - 82px); }
.order-view-tabs { align-self:flex-start; padding:3px; border:1px solid var(--row-line); border-radius:var(--pill); background:var(--surface); }
.order-view-tabs button { padding:6px 12px; border-radius:var(--pill); color:var(--ink-3); font-size:11px; }
.order-view-tabs button[aria-pressed=true] { color:var(--brand-ink); background:var(--brand-tint); font-weight:500; }
.order-page { --order-table-max:calc(100dvh - 474px); }
.order-page.timeline-collapsed { --order-table-max:calc(100dvh - 200px); }
.order-workbench { display:flex; flex-direction:column; height:auto; min-height:0; }
.order-table-scroll { flex:0 1 auto; max-height:var(--order-table-max); overflow:auto; min-height:0; }
.order-list-table { width:100%; min-width:900px; border-collapse:separate; border-spacing:0; font-size:10px; }
.order-list-table th,.order-list-table td { border-bottom:1px solid var(--row-line); padding:7px 9px; text-align:left; vertical-align:middle; }
.order-list-table thead th { position:sticky; z-index:2; background:var(--surface-2); color:var(--ink-3); font-size:9px; font-weight:500; white-space:nowrap; }
.order-list-table thead tr:first-child th { top:0; height:30px; }
.th-caption { margin-right:3px; }
.th-filter { position:relative; display:inline-block; vertical-align:middle; }
.th-filter summary { display:inline-grid; place-items:center; width:14px; height:14px; padding:0; border-radius:3px; color:var(--ink-3); cursor:pointer; font-size:9px; line-height:1; list-style:none; }
.th-filter summary::-webkit-details-marker { display:none; }
.th-filter summary:hover { color:var(--ink); background:var(--surface-3); }
.th-filter.is-active summary { color:var(--brand-ink); background:var(--brand-tint); }
.th-filter[open] summary { color:var(--brand-ink); background:var(--brand-tint); }
.th-filter-pop { position:absolute; z-index:30; top:calc(100% + 5px); left:0; width:176px; padding:8px; border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:0 8px 28px rgba(0,0,0,.14); text-align:left; white-space:normal; }
.th-filter-pop::before { content:""; position:absolute; top:-4px; left:6px; width:7px; height:7px; background:var(--surface); border-left:1px solid var(--line); border-top:1px solid var(--line); transform:rotate(45deg); }
.th-filter-pop .col-filter { width:100%; min-width:0; }
.col-filter { width:100%; min-width:42px; height:23px; padding:2px 5px; border:1px solid var(--row-line); border-radius:5px; background:var(--surface); color:var(--ink); font-size:9px; }
.col-filter:focus { border-color:var(--brand); outline:none; box-shadow:0 0 0 2px var(--brand-tint); }
.col-filter::placeholder { color:var(--ink-3); }
.filter-clear { color:var(--brand-ink); font-size:9px; white-space:nowrap; }
.filter-clear:hover { text-decoration:underline; }
.order-list-table td strong { display:block; color:var(--ink); font-size:10px; font-weight:500; }
.order-list-table td small { display:block; margin-top:2px; color:var(--ink-3); font-size:9px; white-space:nowrap; }
.order-list-table td.num { text-align:right; font-variant-numeric:tabular-nums; }
.order-list-table td:nth-child(4),.order-list-table td:nth-child(5) { white-space:nowrap; }
.order-list-row { cursor:pointer; }
.order-list-row:hover td { background:var(--surface-2); }
.order-list-row.is-selected td { background:var(--brand-tint); }
.order-list-table .overdue { color:var(--red); }
.order-lines-panel { display:flex; flex-direction:column; height:auto; min-height:0; }
.order-wide-scroll { flex:0 1 auto; max-height:var(--order-table-max); overflow:auto; min-height:0; }
.order-wide-table { width:max-content; border-collapse:separate; border-spacing:0; font-size:9px; font-variant-numeric:tabular-nums; }
.order-wide-table th,.order-wide-table td { border-right:1px solid var(--row-line); border-bottom:1px solid var(--row-line); padding:4px 6px; text-align:left; white-space:nowrap; }
.order-wide-table thead th { position:sticky; z-index:2; background:var(--surface-2); color:var(--ink-3); font-size:8px; font-weight:500; text-align:center; }
.order-wide-table thead tr:first-child th { top:0; height:22px; }
.order-wide-table thead tr:nth-child(2) th { top:22px; height:25px; }
.order-wide-table tbody tr:nth-child(even) td { background:var(--surface-2); }
.order-wide-table tbody tr:hover td { background:var(--brand-tint); }
.order-wide-table td { height:28px; color:var(--ink-2); }
.order-wide-table td.is-overdue { color:var(--red); }
.order-wide-table .num { text-align:right; }
.order-wide-table .sticky-order { position:sticky; left:0; z-index:3; min-width:76px; background:var(--surface); box-shadow:1px 0 0 var(--row-line); }
.order-wide-table thead .sticky-order { z-index:4; background:var(--surface-2); }
.order-wide-table tbody tr:nth-child(even) .sticky-order { background:var(--surface-2); }
.order-wide-table tbody tr:hover .sticky-order { background:var(--brand-tint); }
.business-list-panel,.object-detail-panel { display:flex; flex-direction:column; min-height:0; }
.object-table { flex:1; overflow:auto; }
.ledger-table { flex:1; overflow:auto; }
.ledger-head,.ledger-row { display:grid; grid-template-columns:minmax(190px,1.35fr) minmax(112px,.82fr) minmax(78px,.58fr) minmax(105px,.78fr); gap:10px; align-items:center; padding:0 15px; }
.ledger-head { position:sticky; top:0; z-index:1; min-height:33px; background:var(--surface-2); color:var(--ink-3); font-size:10px; }
.ledger-row { width:100%; min-height:74px; border-top:1px solid var(--row-line); text-align:left; }
.ledger-row:hover { background:var(--surface-2); }
.ledger-row[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.ledger-sbu,.ledger-progress,.ledger-amount { display:flex; flex-direction:column; align-items:flex-start; gap:3px; min-width:0; }
.ledger-sbu strong,.ledger-progress strong,.ledger-amount strong { font-size:11px; font-weight:500; white-space:nowrap; }
.ledger-progress small,.ledger-amount small { color:var(--ink-3); font-size:10px; white-space:nowrap; }
.ledger-sbu .badge { padding:1px 6px; }
.ledger-node { display:flex; flex-direction:column; align-items:flex-start; gap:3px; min-width:0; }
.ledger-node strong { font-size:11px; font-weight:500; white-space:nowrap; }
.ledger-node strong.overdue { color:var(--red); }
.ledger-node strong.today { color:var(--warn); }
.ledger-node small { color:var(--ink-3); font-size:10px; white-space:nowrap; }
.ledger-node .badge { padding:1px 6px; }
.node-monitor-bar { display:flex; align-items:center; gap:10px; padding:7px 12px; border-bottom:1px solid var(--row-line); background:var(--surface-2); min-width:0; }
.node-monitor-title { flex:none; color:var(--ink-2); font-size:10px; font-weight:600; white-space:nowrap; }
.node-strip { display:flex; align-items:center; gap:3px; flex-wrap:wrap; min-width:0; }
.node-chip { display:inline-flex; align-items:center; gap:4px; min-height:25px; padding:3px 7px; border:1px solid var(--row-line); border-radius:6px; background:var(--surface); color:var(--ink-3); font-size:10px; white-space:nowrap; }
.node-chip span { min-width:14px; padding:0 3px; border-radius:4px; background:var(--surface-3); color:var(--ink-3); text-align:center; font-variant-numeric:tabular-nums; }
.node-chip:hover { color:var(--ink); border-color:var(--line-strong); }
.node-chip[aria-pressed=true] { color:var(--brand-ink); border-color:var(--brand); background:var(--brand-tint); }
.node-chip[aria-pressed=true] span { color:var(--brand-ink); background:var(--surface); }
.node-chip.is-overdue { color:var(--red); border-color:var(--red); background:var(--red-tint); }
.node-chip.is-overdue span { color:var(--red); background:var(--surface); }
.milestone-summary { display:flex; align-items:baseline; gap:6px; margin-bottom:8px; }
.milestone-summary strong { color:var(--ink); font-size:18px; line-height:1; font-weight:600; font-variant-numeric:tabular-nums; }
.milestone-summary span { color:var(--ink-2); font-size:10px; }
.milestone-summary .muted { margin-left:auto; }
.milestone-table { border:1px solid var(--row-line); border-radius:9px; overflow:hidden; }
.milestone-head,.milestone-row { display:grid; grid-template-columns:minmax(90px,1.2fr) 82px 82px 62px; gap:7px; align-items:center; padding:0 9px; }
.milestone-head { min-height:28px; background:var(--surface-2); color:var(--ink-3); font-size:9px; }
.milestone-row { min-height:29px; border-top:1px solid var(--row-line); font-size:10px; }
.milestone-row strong { font-weight:500; color:var(--ink); }
.milestone-row time { color:var(--ink-2); font-variant-numeric:tabular-nums; }
.milestone-state { justify-self:start; padding:1px 5px; border-radius:5px; background:var(--surface-3); color:var(--ink-3); font-size:9px; white-space:nowrap; }
.milestone-row.done .milestone-state { color:var(--green); background:var(--green-tint); }
.milestone-row.overdue .milestone-state { color:var(--red); background:var(--red-tint); }
.milestone-row.today .milestone-state { color:var(--warn); background:var(--warn-tint); }
.milestone-row.due7 .milestone-state { color:var(--pending); background:var(--brand-tint); }
.milestone-row.unscheduled .milestone-state { color:var(--warn); background:var(--warn-tint); }
.timeline-panel { border-bottom:1px solid var(--row-line); background:var(--surface); }
.timeline-toolbar { display:flex; align-items:center; gap:9px; flex-wrap:wrap; padding:5px 10px; border-bottom:1px solid var(--row-line); background:var(--surface-2); }
.timeline-heading { display:flex; align-items:center; gap:6px; min-width:0; }
.timeline-heading strong { font-size:11px; font-weight:600; white-space:nowrap; }
.timeline-heading span { color:var(--ink-3); font-size:9px; white-space:nowrap; }
.timeline-overdue { color:var(--red); font-weight:600; }
.timeline-legend { display:flex; align-items:center; gap:7px; margin-left:auto; font-size:9px; color:var(--ink-3); }
.timeline-legend span { display:inline-flex; align-items:center; gap:3px; }
.timeline-legend span::before { content:""; width:7px; height:7px; border-radius:2px; background:var(--surface-3); }
.timeline-legend .is-overdue::before { background:rgba(192,57,43,.72); }
.timeline-legend .is-plan::before { background:rgba(224,152,42,.72); }
.timeline-nav { display:flex; align-items:center; gap:7px; color:var(--ink-3); font-size:9px; white-space:nowrap; }
.timeline-toggle { min-height:20px; padding:1px 6px; border:1px solid var(--row-line); border-radius:5px; background:var(--surface); color:var(--ink-3); font-size:9px; }
.timeline-toggle:hover { color:var(--ink); border-color:var(--line-strong); }
.timeline-collapsed-bar { display:flex; align-items:center; gap:10px; min-height:32px; padding:4px 10px; background:var(--surface-2); }
.timeline-collapsed-main { display:flex; align-items:center; gap:8px; min-width:0; color:var(--ink-2); font-size:9px; }
.timeline-collapsed-main strong { color:var(--ink); font-size:11px; white-space:nowrap; }
.timeline-collapsed-main span { color:var(--ink-3); }
.timeline-collapsed-filter { display:flex; align-items:center; gap:6px; color:var(--brand-ink); font-size:9px; white-space:nowrap; }
.timeline-collapsed-filter button { color:var(--brand-ink); font-size:9px; text-decoration:underline; }
.timeline-active { display:flex; align-items:center; gap:8px; padding:4px 10px; color:var(--brand-ink); background:var(--brand-tint); font-size:9px; border-bottom:1px solid var(--row-line); }
.timeline-active .text-link { margin-left:auto; }
.timeline-scroll { overflow:auto; max-height:290px; }
.timeline-table { border-collapse:separate; border-spacing:0; width:max-content; table-layout:fixed; }
.timeline-table th,.timeline-table td { border-right:1px solid #f0f3f8; border-bottom:1px solid #f0f3f8; padding:0; text-align:center; }
.timeline-table thead th { position:sticky; z-index:2; background:var(--surface-2); }
.timeline-month-row th { top:0; height:17px; color:var(--ink-3); font-size:9px; font-weight:500; }
.timeline-day-row th { top:17px; height:19px; }
.timeline-table thead th:last-child,.timeline-table tbody td:last-child { border-right:0; }
.timeline-table tbody tr:last-child th,.timeline-table tbody tr:last-child td { border-bottom:0; }
.timeline-table thead th button { width:25px; min-height:19px; color:var(--ink-3); font-size:9px; font-variant-numeric:tabular-nums; }
.timeline-table thead th.is-today button { color:var(--warn); font-weight:700; }
.timeline-table th.is-weekend,.timeline-table td.is-weekend { background:rgba(0,0,0,.018); }
.timeline-table th.is-today,.timeline-table td.is-today { background:var(--warn-tint); }
.timeline-lane-head { position:sticky; left:0; z-index:4; width:88px; min-width:88px; background:var(--surface); text-align:left!important; }
.timeline-table thead .timeline-lane-head { z-index:5; background:var(--surface-2); }
.timeline-lane-head button { display:flex; align-items:center; gap:4px; width:100%; min-height:24px; padding:0 5px; color:var(--ink-2); font-size:9px; text-align:left; white-space:nowrap; }
.timeline-lane-head button span { margin-left:auto; min-width:13px; padding:0 2px; border-radius:3px; background:var(--surface-3); color:var(--ink-3); text-align:center; font-size:8px; }
.timeline-lane-head button[aria-pressed=true] { color:var(--brand-ink); }
.timeline-lane-head button[aria-pressed=true] span { color:var(--brand-ink); background:var(--brand-tint); }
.timeline-table td { width:25px; min-width:25px; height:26px; }
.tl-cell { display:grid; place-items:center; width:23px; height:23px; border-radius:3px; font-size:9px; font-weight:600; }
.tl-cell b { font-weight:600; }
.tl-cell.is-selected { outline:2px solid var(--ink); outline-offset:-1px; }
.tl-empty { display:none; }
.object-head,.object-row { display:grid; grid-template-columns:minmax(220px,1.45fr) minmax(100px,.75fr) 78px 62px; gap:10px; align-items:center; padding:0 15px; }
.object-head { position:sticky; top:0; z-index:1; min-height:33px; background:var(--surface-2); color:var(--ink-3); font-size:10px; }
.object-row { width:100%; min-height:68px; border-top:1px solid var(--row-line); text-align:left; }
.object-row:hover { background:var(--surface-2); }
.object-row[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.object-main { display:flex; flex-direction:column; gap:3px; min-width:0; }
.object-main .row-top { flex-wrap:nowrap; }
.object-main .row-top strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.object-ref { color:var(--ink-3); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 15px; }
.fact-grid > div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.fact-grid span { color:var(--ink-3); font-size:10px; }
.fact-grid strong { color:var(--ink); font-size:12px; font-weight:500; overflow-wrap:anywhere; }
.detail-divider { height:1px; background:var(--row-line); margin:16px 0; }
.timeline { display:flex; flex-direction:column; }
.timeline-row { position:relative; display:flex; gap:11px; min-height:43px; }
.timeline-row:not(:last-child)::before { content:""; position:absolute; top:12px; bottom:0; left:4px; width:1px; background:var(--row-line); }
.timeline-dot { position:relative; z-index:1; width:9px; height:9px; margin-top:4px; flex:none; border-radius:50%; background:var(--line); }
.timeline-row.done .timeline-dot { background:var(--green); }
.timeline-row.active .timeline-dot { background:var(--brand); box-shadow:0 0 0 4px var(--brand-tint); }
.timeline-copy { display:flex; flex-direction:column; gap:2px; padding-bottom:10px; }
.timeline-copy strong { font-size:11px; font-weight:500; }
.timeline-copy span { color:var(--ink-3); font-size:10px; }
.relation-list { display:flex; flex-direction:column; gap:7px; }
.related-object { display:flex; align-items:center; gap:8px; min-width:0; padding:9px 10px; background:var(--surface-2); border-radius:8px; font-size:11px; }
.related-object strong { white-space:nowrap; }
.related-object > span:not(.type-badge) { color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.related-object .text-link { margin-left:auto; }

.wizard-steps { display:flex; align-items:center; gap:3px; padding:3px; border-radius:var(--pill); background:var(--surface); border:1px solid var(--row-line); align-self:flex-start; }
.wizard-steps span { display:inline-flex; align-items:center; gap:6px; padding:6px 11px; color:var(--ink-3); font-size:11px; border-radius:var(--pill); }
.wizard-steps span.is-active { background:var(--brand-tint); color:var(--brand-ink); font-weight:500; }
.wizard-steps span.is-done { color:var(--green); }
.wizard-steps b { display:grid; place-items:center; width:17px; height:17px; border-radius:50%; background:var(--surface-3); color:var(--ink-3); font-size:10px; font-weight:600; }
.wizard-steps span.is-active b { background:var(--brand); color:var(--surface); }
.wizard-steps span.is-done b { background:var(--green-tint); color:var(--green); }
.template-select-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.select-template { display:flex; flex-direction:column; align-items:flex-start; gap:7px; min-height:140px; padding:16px; border:1px solid var(--row-line); border-radius:10px; background:var(--surface); text-align:left; box-shadow:var(--shadow); transition:border-color 140ms,transform 140ms; }
.select-template:hover { border-color:var(--brand); transform:translateY(-1px); }
.select-template strong { font-size:13px; font-weight:600; }
.select-template > span:not(.row-top) { color:var(--ink-3); font-size:11px; }
.select-template small { margin-top:auto; color:var(--ink-3); font-size:10px; }
.select-template.is-disabled { opacity:.58; cursor:not-allowed; }
.request-foot { border-top:0; }
.request-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:8px; align-items:start; }
.request-form-panel { padding-bottom:0; }
.form { display:grid; grid-template-columns:1fr 1fr; gap:13px 15px; }
.form label { display:flex; flex-direction:column; gap:5px; color:var(--ink-2); font-size:11px; min-width:0; }
.form label.full { grid-column:1/-1; }
.form input,.form select,.form textarea { width:100%; min-width:0; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:12px; }
.form input:focus,.form select:focus,.form textarea:focus { border-color:var(--brand); outline:0; box-shadow:0 0 0 3px var(--brand-tint); }
.form input[readonly] { background:var(--surface-2); color:var(--ink-3); }
.request-form { padding:16px 18px 18px; }
.form-actions { display:flex; gap:7px; justify-content:flex-end; padding-top:4px; }
.attachment-row { display:flex; align-items:center; gap:8px; padding:9px 10px; border:1px dashed var(--line); border-radius:8px; color:var(--ink-2); font-size:11px; }
.attachment-row small { margin-left:auto; }
.request-context .panel-body { padding:16px; }
.boundary-list { display:flex; flex-direction:column; gap:8px; margin:13px 0; color:var(--ink-2); font-size:11px; }
.boundary-list span { display:flex; align-items:center; gap:7px; }
.boundary-list i { width:5px; height:5px; border-radius:50%; background:var(--green); flex:none; }
.preview-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr); gap:8px; align-items:start; }
.preview-facts { display:flex; flex-direction:column; gap:11px; }
.preview-facts > div { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:9px; border-bottom:1px solid var(--row-line); }
.preview-facts span { color:var(--ink-3); font-size:10px; flex:none; }
.preview-facts strong { color:var(--ink); font-size:11px; font-weight:500; text-align:right; overflow-wrap:anywhere; }
.check-list { display:flex; flex-direction:column; gap:9px; margin:0; padding:0; list-style:none; color:var(--ink-2); font-size:11px; }
.check-list li { display:flex; gap:7px; align-items:flex-start; }
.check-list span { display:grid; place-items:center; flex:none; width:16px; height:16px; border-radius:50%; background:var(--green-tint); color:var(--green); font-size:10px; font-weight:600; }
.preview-actions { display:flex; justify-content:flex-end; gap:7px; }
.success-card { display:flex; flex-direction:column; align-items:center; max-width:620px; margin:42px auto; padding:32px; text-align:center; }
.success-mark { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:var(--green-tint); color:var(--green); font-size:24px; margin-bottom:14px; }
.success-card h1 { font-size:16px; font-weight:600; }
.success-card .body-copy { max-width:480px; margin-top:7px; }
.success-facts { display:flex; gap:14px; flex-wrap:wrap; justify-content:center; margin:18px 0; color:var(--ink-3); font-size:10px; }
.success-facts span { padding:5px 8px; border-radius:var(--pill); background:var(--surface-2); }
.success-card .actions { justify-content:center; }

.finance-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.summary-card { display:flex; flex-direction:column; padding:14px 16px; }
.summary-card span { color:var(--ink-3); font-size:10px; }
.summary-card strong { margin-top:5px; font-size:24px; font-weight:600; font-variant-numeric:tabular-nums; }
.summary-card small { margin-top:auto; color:var(--ink-3); font-size:10px; }
.finance-layout { display:grid; grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr); gap:8px; min-height:calc(100dvh - 280px); }
.finance-list,.finance-detail { display:flex; flex-direction:column; min-height:0; }
.cash-rows { overflow:auto; }
.cash-row { display:flex; align-items:center; gap:10px; width:100%; min-height:80px; padding:13px 15px; border-bottom:1px solid var(--row-line); text-align:left; }
.cash-row:hover { background:var(--surface-2); }
.cash-row[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.cash-main { display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }
.cash-amount { display:flex; flex-direction:column; align-items:flex-end; gap:2px; flex:none; }
.cash-amount b { font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }
.cash-amount small { color:var(--ink-3); font-size:10px; }
.wide-select { width:100%; }
.candidate-card { display:flex; align-items:center; gap:8px; padding:10px; margin-top:9px; border-radius:8px; background:var(--surface-2); font-size:11px; }
.candidate-card span:last-child { color:var(--ink-3); font-size:10px; margin-left:auto; }
.allocation-form { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.allocation-form label { display:flex; flex-direction:column; gap:4px; color:var(--ink-2); font-size:10px; flex:1; }
.allocation-form input { border:1px solid var(--line); border-radius:8px; padding:8px; font-size:12px; min-width:130px; }
.allocation-form small { color:var(--ink-3); font-size:10px; }

/* D18 资金三视图：流水对账 / 日记账导入 / 单据导入 */
.finance-views { margin-bottom:2px; }
.recon-layout { display:grid; grid-template-columns:minmax(0,1.32fr) minmax(0,1fr) minmax(0,.94fr); gap:8px; min-height:calc(100dvh - 300px); }
.recon-list,.recon-mid,.recon-diff,.import-main,.import-history { display:flex; flex-direction:column; min-height:0; }
.recon-rows,.diff-rows,.batch-rows { overflow:auto; }
.recon-row { display:flex; align-items:center; gap:10px; width:100%; min-height:74px; padding:12px 14px; border-bottom:1px solid var(--row-line); text-align:left; }
.recon-row:hover { background:var(--surface-2); }
.recon-row[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.recon-main { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.recon-main strong { font-size:11px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recon-amount { display:flex; flex-direction:column; align-items:flex-end; gap:3px; flex:none; font-variant-numeric:tabular-nums; }
.recon-amount b { font-size:12px; font-weight:600; color:var(--green); }
.recon-amount.is-out b { color:var(--ink); }
.recon-amount small { font-size:10px; color:var(--ink-3); }
.amount.is-out { color:var(--ink); }
.diff-row { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border-bottom:1px solid var(--row-line); }
.diff-row strong { font-size:11px; font-weight:600; }
.import-layout { display:grid; grid-template-columns:minmax(0,1.62fr) minmax(280px,.86fr); gap:8px; min-height:calc(100dvh - 300px); }
.drop-zone { display:flex; flex-direction:column; align-items:center; gap:9px; padding:30px 20px; border:1px dashed var(--line-strong); border-radius:var(--radius); background:var(--surface-2); text-align:center; }
.drop-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--brand-tint); color:var(--brand); font-size:15px; }
.drop-zone strong { font-size:12px; }
.drop-zone .task-sub { max-width:420px; }
.drop-zone .btn { margin-top:4px; }
.import-result { margin-top:16px; display:flex; flex-direction:column; gap:12px; }
.import-result .row-top { display:flex; align-items:center; gap:9px; justify-content:space-between; }
.import-result h3 { font-size:12px; font-weight:600; }
.import-table { width:100%; border-collapse:collapse; font-size:11px; }
.import-table th,.import-table td { padding:8px 10px; border-bottom:1px solid var(--row-line); text-align:left; }
.import-table td.num { text-align:right; font-variant-numeric:tabular-nums; }
.import-table .mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:10px; }
.import-check { display:flex; flex-direction:column; border:1px solid var(--row-line); border-radius:var(--radius-sm); overflow:hidden; }
.check-row { display:flex; align-items:center; gap:10px; padding:8px 11px; font-size:11px; border-bottom:1px solid var(--row-line); }
.check-row:last-child { border-bottom:0; }
.check-row.is-warn { background:var(--warn-tint); color:var(--warn); }
.check-id { flex:none; min-width:22px; font-size:10px; font-weight:600; color:var(--ink-3); }
.check-row.is-warn .check-id { color:var(--warn); }
.check-state { margin-left:auto; font-size:10px; color:var(--ink-3); white-space:nowrap; }
.check-row.is-warn .check-state { color:var(--warn); }
.batch-row { display:flex; flex-direction:column; gap:3px; padding:12px 14px; border-bottom:1px solid var(--row-line); }
.batch-row strong { font-size:11px; font-weight:600; }
.warn-text { color:var(--warn); }
@media (max-width:1180px) {
  .recon-layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-height:0; }
  .recon-mid { min-height:380px; }
  .recon-diff { grid-column:1/-1; }
  .import-layout { grid-template-columns:1fr; min-height:0; }
  .import-history { min-height:280px; }
}

.form-error { color:var(--red); background:var(--red-tint); border-radius:8px; padding:8px 10px; margin:10px 0; font-size:10px; }

.review-tabs { align-self:flex-start; padding:3px; border:1px solid var(--row-line); background:var(--surface); border-radius:var(--pill); }
.review-layout { display:grid; grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr); gap:8px; min-height:calc(100dvh - 150px); }
.review-list,.evidence-panel { display:flex; flex-direction:column; min-height:0; }
.review-row { display:flex; flex-direction:column; gap:5px; padding:14px 16px; border-bottom:1px solid var(--row-line); text-align:left; }
.review-row:hover { background:var(--surface-2); }
.review-row[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.review-row strong { color:var(--ink); font-size:12px; font-weight:500; }
.evidence-list { display:flex; flex-direction:column; }
.evidence-item { display:flex; gap:9px; align-items:flex-start; padding:11px 0; border-bottom:1px solid var(--row-line); }
.evidence-item .evidence-icon { background:var(--green); }
.evidence-item .evidence-icon:is(:only-child) { background:var(--green); }
.evidence-item strong { font-size:11px; font-weight:500; line-height:1.5; }
.amount-review { padding-bottom:0; }
.amount-row { display:flex; align-items:center; gap:9px; flex-wrap:wrap; min-height:56px; padding:10px 16px; border-bottom:1px solid var(--row-line); font-size:11px; }
.amount-row strong { font-weight:500; }
.amount-row .muted { margin-left:auto; }
.history-list { display:flex; flex-direction:column; }
.history-row { display:grid; grid-template-columns:55px 70px 90px minmax(0,1fr); gap:8px; padding:12px 16px; border-bottom:1px solid var(--row-line); font-size:11px; }
.history-row time { color:var(--ink-3); font-variant-numeric:tabular-nums; }
.history-row strong { font-weight:500; }
.history-row .muted { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.admin-tabs { display:flex; align-items:center; gap:3px; align-self:flex-start; padding:3px; border:1px solid var(--row-line); border-radius:var(--pill); background:var(--surface); }
.admin-tabs > .btn { margin-left:10px; }
.admin-tabs button { padding:6px 12px; border-radius:var(--pill); color:var(--ink-3); font-size:11px; }
.admin-tabs button[aria-pressed=true] { color:var(--brand-ink); background:var(--brand-tint); font-weight:500; }
.admin-layout,.people-layout,.mapping-layout { display:grid; grid-template-columns:minmax(300px,.74fr) minmax(0,1.26fr); gap:8px; align-items:stretch; }
.app-list,.app-detail,.people-list,.staff-detail,.mapping-list,.mapping-detail { min-height:0; display:flex; flex-direction:column; }
.app-rows,.staff-list-v3 { overflow:auto; }
.app-row,.staff-row { display:flex; align-items:center; gap:9px; width:100%; min-height:65px; padding:11px 14px; border-bottom:1px solid var(--row-line); text-align:left; }
.app-row:hover,.staff-row:hover { background:var(--surface-2); }
.app-row[aria-selected=true],.staff-row[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.app-icon { display:grid; place-items:center; flex:none; width:27px; height:27px; border-radius:8px; background:var(--surface-3); color:var(--ink-2); font-size:10px; font-weight:600; }
.app-icon.shared { background:var(--green-tint); color:var(--green); }
.app-icon.gateway { background:var(--brand); color:var(--surface); }
.app-main,.staff-copy { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.app-main strong,.staff-copy strong { font-size:11px; font-weight:500; }
.app-main small,.staff-copy small { color:var(--ink-3); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.avatar.large { width:31px; height:31px; font-size:12px; }
.staff-pending { color:var(--ink-3); font-size:10px; white-space:nowrap; }
.inline-section-head { display:flex; align-items:center; gap:7px; min-height:20px; }
.inline-section-head h3 { margin:0; }
.inline-section-head .text-link { margin-left:auto; }
.mapping-empty { display:flex; flex-direction:column; gap:4px; padding:10px 11px; border:1px solid var(--row-line); border-radius:9px; background:var(--surface-2); }
.mapping-empty strong { color:var(--ink); font-size:11px; font-weight:500; }
.mapping-empty span { color:var(--ink-3); font-size:10px; line-height:1.5; }
.sbu-candidates { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-bottom:10px; }
.sbu-chip { display:inline-flex; align-items:center; min-height:24px; padding:2px 8px; border:1px solid var(--row-line); border-radius:7px; background:var(--surface-2); color:var(--ink); font-size:11px; font-weight:500; }
.sbu-choice-field { border:0; padding:0; margin:0; }
.sbu-choice-field legend { color:var(--ink-2); font-size:10px; margin-bottom:6px; }
.sbu-choice-grid { display:flex; flex-wrap:wrap; gap:6px; }
.sbu-choice { display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:4px 9px; border:1px solid var(--row-line); border-radius:8px; background:var(--surface); font-size:11px; }
.sbu-choice:has(input:checked) { border-color:var(--brand); background:var(--brand-tint); color:var(--brand-ink); }
.sbu-choice input { accent-color:var(--brand); }
.loan-head { display:flex; align-items:center; justify-content:space-between; margin-top:12px; padding-top:11px; border-top:1px solid var(--row-line); }
.loan-head h4 { margin:0; color:var(--ink); font-size:11px; font-weight:600; }
.loan-list { display:flex; flex-direction:column; }
.loan-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--row-line); }
.loan-copy { display:flex; flex-direction:column; gap:1px; min-width:0; }
.loan-copy strong { font-size:10px; font-weight:500; }
.loan-copy small { color:var(--ink-3); font-size:10px; }
.participant-block { margin-top:12px; }
.participant-list { display:flex; flex-direction:column; }
.participant-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--row-line); }
.participant-person { display:flex; flex-direction:column; gap:1px; min-width:0; }
.participant-person strong { font-size:11px; font-weight:500; }
.participant-person small { color:var(--ink-3); font-size:10px; }
.participant-sbu { margin-left:auto; }
.line-summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:9px; color:var(--ink-2); font-size:10px; }
.line-summary span { white-space:nowrap; }
.line-summary strong { color:var(--ink); font-size:13px; font-variant-numeric:tabular-nums; }
.order-line-scroll { overflow:auto; border:1px solid var(--row-line); border-radius:9px; }
.order-line-table { width:max-content; min-width:760px; border-collapse:separate; border-spacing:0; table-layout:fixed; }
.order-line-table th,.order-line-table td { border-right:1px solid var(--row-line); border-bottom:1px solid var(--row-line); padding:7px 8px; text-align:left; vertical-align:top; }
.order-line-table th:last-child,.order-line-table td:last-child { border-right:0; }
.order-line-table tbody tr:last-child td { border-bottom:0; }
.order-line-table thead th { position:sticky; top:0; z-index:1; background:var(--surface-2); color:var(--ink-3); font-size:9px; font-weight:500; white-space:nowrap; }
.order-line-table th:nth-child(1) { width:150px; }
.order-line-table th:nth-child(2) { width:112px; }
.order-line-table th:nth-child(3) { width:58px; }
.order-line-table th:nth-child(4),.order-line-table th:nth-child(5) { width:86px; }
.order-line-table th:nth-child(6) { width:126px; }
.order-line-table th:nth-child(7) { width:86px; }
.order-line-table th:nth-child(8) { width:88px; }
.order-line-table td { color:var(--ink-2); font-size:10px; font-variant-numeric:tabular-nums; }
.order-line-table td strong { display:block; color:var(--ink); font-size:10px; font-weight:500; }
.order-line-table td small { display:block; margin-top:2px; color:var(--ink-3); font-size:9px; }
.order-line-table td.num { text-align:right; }
.order-line-table tbody tr:hover { background:var(--surface-2); }
.line-product { display:flex; align-items:flex-start; gap:5px; }
.line-no { display:inline-grid; place-items:center; flex:none; width:20px; height:20px; border-radius:5px; background:var(--surface-3); color:var(--ink-3); font-size:9px; }
.handoff-task { display:flex; align-items:center; gap:8px; padding:9px 0; border-bottom:1px solid var(--row-line); font-size:11px; }
.handoff-task > span:not(.type-badge) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.handoff-task .muted { margin-left:auto; }
.mapping-row { display:flex; flex-direction:column; gap:4px; width:100%; padding:13px 15px; border-bottom:1px solid var(--row-line); text-align:left; }
.mapping-row:hover { background:var(--surface-2); }
.mapping-row[aria-selected=true] { background:var(--brand-tint); box-shadow:inset 2px 0 var(--brand); }
.mapping-diff { display:grid; grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr); align-items:center; gap:8px; padding:10px; background:var(--surface-2); border-radius:10px; }
.mapping-diff div { display:flex; flex-direction:column; gap:3px; }
.mapping-diff span { color:var(--ink-3); font-size:10px; }
.mapping-diff strong { color:var(--ink-2); font-size:11px; font-weight:500; }
.diff-arrow { color:var(--brand-ink); font-size:16px; text-align:center; }
.source-grid-v3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.source-card-v3 { display:flex; flex-direction:column; min-height:138px; padding:14px; }
.source-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.source-head h2 { font-size:11px; font-weight:600; }
.source-scope { margin-top:8px; font-size:13px; font-weight:500; }
.source-card-v3 p { color:var(--ink-3); font-size:10px; margin-top:3px; }
.source-foot { display:flex; justify-content:space-between; gap:8px; margin-top:auto; padding-top:11px; border-top:1px solid var(--row-line); color:var(--ink-3); font-size:10px; }
.source-foot time { font-variant-numeric:tabular-nums; }

.dialog.search-dialog { width:min(560px,100%); }
.global-search-input { width:100%; margin-bottom:15px; }
.search-results { min-height:45px; }
.search-hint { color:var(--ink-3); font-size:11px; padding:8px 2px; }
.search-group { color:var(--ink-3); font-size:10px; font-weight:600; padding:10px 0 5px; }
.search-result { display:flex; align-items:center; gap:9px; width:100%; padding:10px 4px; border-bottom:1px solid var(--row-line); text-align:left; }
.search-result:hover { background:var(--surface-2); }
.search-kind { display:grid; place-items:center; flex:none; width:26px; height:26px; border-radius:7px; background:var(--brand-tint); color:var(--brand-ink); font-size:10px; font-weight:600; }
.search-result > span:not(.search-kind) { display:flex; flex-direction:column; gap:2px; min-width:0; }
.search-result strong { font-size:11px; font-weight:500; }
.search-result small { color:var(--ink-3); font-size:10px; }
.search-result .right { margin-left:auto; color:var(--ink-3); }
.dialog-footer { display:flex; justify-content:flex-end; gap:7px; padding:12px 20px; border-top:1px solid var(--row-line); }
.dialog-footer .btn { min-width:90px; }
.dialog .notice { margin-top:12px; }
.approval-workspace { height:calc(100dvh - 134px); min-height:480px; gap:8px; }
.approval-template-groups { display:flex; flex-direction:column; gap:13px; }
.approval-template-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.approval-template-card { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-height:151px; padding:16px; border:1px solid var(--row-line); border-radius:10px; background:var(--surface); box-shadow:var(--shadow); text-align:left; transition:transform 150ms,border-color 150ms; }
.approval-template-card:hover { transform:translateY(-1px); border-color:var(--brand); }
.approval-template-card strong { font-size:13px; font-weight:600; }
.approval-template-card > span:not(.row-top):not(.approval-template-count) { color:var(--ink-3); font-size:11px; }
.approval-template-card small { margin-top:auto; color:var(--ink-3); font-size:10px; }
.approval-template-count { display:flex; align-items:baseline; gap:5px; margin-top:8px; color:var(--brand-ink); font-size:10px; }
.approval-template-count b { color:var(--ink); font-size:24px; line-height:1; font-weight:600; }
.approval-template-count span { color:var(--ink-3); }
.approval-workspace .approval-list { max-height:none; }

/* 验收工单（管理端） */
.wo-top { display:flex; flex-direction:column; gap:2px; padding:5px 8px; }
.wo-top-line { display:flex; align-items:center; gap:7px; min-width:0; font-size:11px; }
.wo-no { font-size:12px; font-weight:600; letter-spacing:.2px; white-space:nowrap; }
.wo-ref { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink-2); }
.wo-actions { display:flex; align-items:center; gap:3px; margin-left:auto; flex:none; }
.wo-meta { color:var(--ink-3); gap:13px; flex-wrap:wrap; }
.wo-meta b { color:var(--ink); font-weight:500; }
.wo-meta .right { margin-left:auto; }
.btn.sm { height:23px; min-height:23px; padding:0 8px; border-radius:6px; font-size:11px; }
.wo-body { display:grid; grid-template-columns:minmax(0,1fr) 372px; gap:3px; align-items:start; }
.wo-side { display:flex; flex-direction:column; gap:3px; min-width:0; }
.wo-sec-head { display:flex; align-items:center; gap:7px; min-height:26px; padding:3px 8px; border-bottom:1px solid var(--row-line); color:var(--ink-3); font-size:11px; }
.wo-sec-head strong { color:var(--ink); font-size:11px; font-weight:600; }
.wo-sec-head .right { margin-left:auto; white-space:nowrap; }
.wo-table-scroll { overflow:auto; }
.wo-table { width:100%; border-collapse:collapse; font-size:11px; }
.wo-table thead th { position:sticky; top:0; z-index:2; padding:4px 8px; border-bottom:1px solid var(--row-line); background:var(--surface-2); color:var(--ink-3); font-weight:500; text-align:left; white-space:nowrap; }
.wo-table td { padding:4px 8px; border-bottom:1px solid var(--row-line); vertical-align:top; }
.wo-table td strong,.wo-table td small { display:block; }
.wo-table td small { color:var(--ink-3); font-size:10px; font-weight:400; }
.wo-table tbody tr:last-child td { border-bottom:0; }
.wo-row { cursor:pointer; }
.wo-row:hover td { background:var(--surface-2); }
.wo-row.is-selected td { background:var(--brand-tint); }
.wo-group td { display:flex; align-items:baseline; gap:8px; padding:3px 8px; border-bottom:1px solid var(--row-line); background:var(--surface-3); font-size:11px; }
.wo-group span { color:var(--ink-2); }
.wo-group small { margin-left:auto; color:var(--ink-3); font-size:10px; }
.wo-group-action { flex:none; margin-left:2px; }
.wo-batch-table { width:100%; border-collapse:collapse; font-size:11px; }
.wo-batch-table th { padding:4px 6px; border-bottom:1px solid var(--row-line); color:var(--ink-3); font-weight:500; text-align:left; white-space:nowrap; }
.wo-batch-table td { padding:4px 6px; border-bottom:1px solid var(--row-line); vertical-align:top; }
.wo-batch-table td small { display:block; color:var(--ink-3); font-size:10px; }
.wo-batch-table select { padding:4px 6px; font-size:11px; }
.wo-progress { display:inline-flex; align-items:center; gap:5px; font-variant-numeric:tabular-nums; }
.wo-progress i { display:block; width:44px; height:4px; border-radius:2px; background:var(--row-line); overflow:hidden; }
.wo-progress i b { display:block; height:100%; background:var(--brand); }
.wo-item-table { width:100%; border-collapse:collapse; font-size:11px; }
.wo-item-table th { padding:4px 8px; border-bottom:1px solid var(--row-line); background:var(--surface-2); color:var(--ink-3); font-weight:500; text-align:left; white-space:nowrap; }
.wo-item-table td { padding:4px 8px; border-bottom:1px solid var(--row-line); vertical-align:top; }
.wo-item-table tr:last-child td { border-bottom:0; }
.wo-item-table tr.is-fail td { background:var(--red-tint); }
.wo-spec { color:var(--ink-3); }
.wo-photos { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:4px; }
.wo-photo { display:flex; flex-direction:column; gap:2px; min-width:0; text-align:left; }
.wo-photo-box { display:grid; place-items:center; aspect-ratio:4/3; padding:3px; border:1px solid var(--line); border-radius:4px; background:repeating-linear-gradient(45deg,#f3f3f6 0 6px,#e9e9ee 6px 12px); color:var(--ink-3); font-size:9px; line-height:1.3; text-align:center; }
.wo-photo small { overflow:hidden; color:var(--ink-3); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.wo-photo:hover .wo-photo-box { border-color:var(--brand); }
.wo-photo-large { display:grid; place-items:center; height:240px; border:1px solid var(--line); border-radius:6px; background:repeating-linear-gradient(45deg,#f3f3f6 0 8px,#e9e9ee 8px 16px); color:var(--ink-3); font-size:12px; }
.wo-rect { padding:5px 8px; border-bottom:1px solid var(--row-line); font-size:11px; }
.wo-rect:last-child { border-bottom:0; }
.wo-rect .row-top { gap:6px; margin-bottom:2px; }
.wo-rect p { margin:2px 0; }
.wo-rect small { color:var(--ink-3); font-size:10px; }
.wo-empty { padding:8px; color:var(--ink-3); font-size:11px; }
.wo-report { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:5px 8px; font-size:11px; }
.wo-facts { display:grid; grid-template-columns:auto 1fr; gap:1px 8px; }
.wo-facts span { color:var(--ink-3); font-size:10px; }
.wo-facts strong { font-size:11px; font-weight:500; }
@media(max-width:1180px) {
 .wo-body { grid-template-columns:1fr; }
 .wo-photos { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:1180px) {
 .work-layout,.business-layout,.finance-layout,.review-layout,.admin-layout,.people-layout,.mapping-layout { grid-template-columns:minmax(0,1fr) minmax(300px,.72fr); }
 .source-grid-v3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
 .topbar { height:auto; min-height:var(--topbar-h); flex-wrap:wrap; padding:8px 14px; gap:5px 12px; }
 .top-nav { order:3; width:100%; overflow-x:auto; padding-bottom:2px; }
 .top-nav a { height:29px; padding:0 8px; font-size:11px; }
 .topbar-end { margin-left:auto; }
 .side-nav a { min-height:36px; }
 .sidebar { position:fixed; z-index:24; top:var(--topbar-h); left:0; width:236px; transform:translateX(-102%); transition:transform 160ms; box-shadow:12px 0 30px rgba(0,0,0,.08); }
 .sidebar.is-open { transform:translateX(0); }
 .shell { grid-template-columns:1fr; }
 #workspace { padding:3px 2px; }
 .page-head { align-items:flex-start; flex-wrap:wrap; }
 .work-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .work-layout,.business-layout,.finance-layout,.review-layout,.admin-layout,.people-layout,.mapping-layout { grid-template-columns:1fr; min-height:0; }
 .task-list-panel,.approval-master { max-height:55vh; }
 .task-detail,.object-detail-panel,.finance-detail,.evidence-panel,.app-detail,.staff-detail,.mapping-detail { min-height:380px; }
 .request-layout,.preview-grid { grid-template-columns:1fr; }
 .approval-workspace { height:auto; min-height:0; }
}
@media(max-width:600px) {
 .topbar-inner { gap:8px; }
 .topbar-end { gap:5px; }
 .demo-label { display:none; }
 .top-new { padding:5px 8px; font-size:10px; }
 .user-role,.user-name { display:none; }
 .page-head h1 { font-size:14px; }
 .work-stats { gap:7px; }
 .work-stat { min-height:82px; padding:10px 12px; }
.work-stat b { font-size:24px; }
 .segments { max-width:100%; overflow:auto; }
 .toolbar { padding:9px 10px; gap:6px; }
 .object-head,.object-row { grid-template-columns:minmax(170px,1.5fr) 75px 65px; padding:0 10px; }
 .object-head span:nth-child(2),.object-row > span:nth-child(2) { display:none; }
 .object-head span:nth-child(4),.object-row > span:nth-child(4) { display:none; }
 .template-select-grid { grid-template-columns:1fr; }
 .form { grid-template-columns:1fr; }
 .form label.full { grid-column:auto; }
 .finance-summary { grid-template-columns:1fr 1fr; }
 .finance-summary .summary-card:last-child { grid-column:auto; }
 .history-row { grid-template-columns:43px 55px minmax(0,1fr); }
 .history-row .muted { grid-column:1/-1; }
 .source-grid-v3 { grid-template-columns:1fr; }
 .approval-template-grid { grid-template-columns:1fr 1fr; }
 .dialog { max-height:calc(100dvh - 24px); }
}
@media(max-width:430px) {
 .brand { font-size:12px; }
 .module-tabs { overflow:auto; }
 .sidebar { width:245px; }
 .head-actions { width:100%; justify-content:space-between; }
 .head-actions .freshness { order:2; }
 .head-actions .btn { order:1; }
 .wizard-steps span { padding:5px 7px; font-size:10px; }
 .wizard-steps span::after { display:none; }
 .preview-facts > div { flex-direction:column; gap:3px; }
 .preview-facts strong { text-align:left; }
}

/* 构建标记：固定左下角，不参与布局、不拦事件，方便肉眼确认是否拿到新版本 */
.build-tag{position:fixed;left:8px;bottom:4px;font:10px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);opacity:.5;pointer-events:none;z-index:5;letter-spacing:.02em}
