:root{--ink:#14231d;--muted:#6f7e76;--line:#e5ebe7;--paper:#f5f7f4;--card:#fff;--green:#176b4b;--mint:#dff4e9;--amber:#a06413;--amber-bg:#fff3d8;--shadow:0 14px 38px rgba(31,55,44,.07)}*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:Inter,PingFang SC,Microsoft YaHei,sans-serif}a,button{font:inherit}.app-shell,.dashboard{min-height:100vh}.dashboard{display:grid;grid-template-columns:72px 1fr}.rail{position:-webkit-sticky;position:sticky;top:0;height:100vh;background:#11251d;display:flex;flex-direction:column;align-items:center;padding:20px 0;gap:12px}.brand{width:40px;height:40px;background:#e7f6ee;color:var(--green);place-items:center;font-family:Georgia,serif;font-size:24px;font-weight:700;margin-bottom:22px}.brand,.rail-item{border-radius:12px;display:grid}.rail-item{color:#91a79e;text-decoration:none;width:42px;height:42px;place-items:center;font-size:20px}.rail-item.active,.rail-item:hover{background:#244238;color:#fff}.rail-spacer{flex:1 1}.avatar{width:36px;height:36px;border-radius:50%;background:#cfe6dc;color:#244238;display:grid;place-items:center;font-weight:700}.workspace{padding:32px 42px 56px;max-width:1600px;width:100%;margin:auto}.topbar{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:#709080;margin:0 0 7px}.topbar h1{font-size:32px;line-height:1;margin:0;letter-spacing:-.04em}.top-actions{display:flex;gap:12px;align-items:center}.range-switch{display:flex;background:#e9eeeb;padding:4px;border-radius:11px}.range-switch button{border:0;background:transparent;color:var(--muted);padding:8px 14px;border-radius:8px;cursor:pointer}.range-switch button.selected{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(20,35,29,.08);font-weight:700}.refresh,.status-panel button{border:1px solid #cfdbd5;background:#fff;color:var(--ink);padding:10px 16px;border-radius:10px;cursor:pointer}.refresh:disabled{opacity:.55}.freshness{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:#fff;padding:13px 16px;border-radius:14px;margin-bottom:16px}.freshness .status-dot{width:9px;height:9px;border-radius:50%;background:#38a36f;box-shadow:0 0 0 5px #e5f6ed}.freshness.degraded{border-color:#efd9ad;background:#fffaf0}.freshness.degraded .status-dot{background:#d98b24;box-shadow:0 0 0 5px #fff0d1}.freshness div{display:flex;flex-direction:column;gap:2px}.freshness small,.insight-list small,.metric small,.panel-heading span{color:var(--muted);font-size:12px}.warning{margin-left:auto;color:var(--amber);font-size:12px}.metric-grid{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:14px;gap:14px;margin-bottom:14px}.metric{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:19px 20px;box-shadow:0 7px 20px rgba(31,55,44,.035)}.metric>span{font-size:13px;color:var(--muted)}.metric strong{display:block;font-size:27px;letter-spacing:-.04em;margin:13px 0 7px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.75fr);grid-gap:14px;gap:14px}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow)}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start}.panel-heading h2{margin:0;font-size:18px}.panel-heading a{color:var(--green);font-size:13px;text-decoration:none}.trend-panel{min-height:370px}.chart{height:260px;display:flex;align-items:flex-end;gap:8px;padding:38px 6px 0;border-bottom:1px solid var(--line);margin-top:20px;background:repeating-linear-gradient(180deg,transparent 0,transparent 64px,#edf1ee 65px)}.bar-cell{height:100%;flex:1 1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:12px}.bar{width:min(32px,70%);background:linear-gradient(180deg,#4ca878,#1e7652);border-radius:6px 6px 2px 2px;transition:height .25s}.bar-value{margin-bottom:5px}.bar-cell time,.bar-value{font-size:10px;color:var(--muted)}.bar-cell time{margin-top:8px;white-space:nowrap}.agent-panel{background:#16392d;color:#fff}.agent-panel .agent-copy,.agent-panel .eyebrow{color:#aac4b9}.live-pill{background:#285342;color:#d9f6e8!important;padding:5px 9px;border-radius:999px}.agent-orbit{width:138px;height:138px;margin:28px auto 20px;border:1px solid #497062;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 18px #1c4436,inset 0 0 0 19px #355c4d}.agent-orbit div{text-align:center}.agent-orbit strong{display:block;font-size:32px}.agent-orbit span{font-size:12px;color:#aac4b9}.agent-copy{font-size:13px;line-height:1.7}.primary-link{display:flex;justify-content:space-between;color:#13372a;background:#dff4e9;text-decoration:none;padding:13px 15px;border-radius:11px;font-weight:700;margin-top:20px}.insight-panel{grid-column:1/-1}.insight-list{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;gap:10px;margin-top:18px}.insight-list a{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:13px}.insight-list a>span:last-child{margin-left:auto;color:var(--green)}.insight-list div{display:flex;flex-direction:column;min-width:0;gap:4px}.insight-list small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.signal-icon{width:32px;height:32px;border-radius:9px;background:var(--mint);color:var(--green);display:grid;place-items:center}.inline-empty{color:var(--muted);padding:34px 0;text-align:center}.status-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:80px 24px;text-align:center}.status-panel>span{font-size:34px;color:#85a294}.status-panel h2{margin:14px 0 8px}.status-panel p{color:var(--muted)}.skeleton{background:linear-gradient(90deg,#e9eeeb,#f5f7f4,#e9eeeb);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:14px}.skeleton.wide{height:58px;margin-bottom:16px}.skeleton.card{height:132px}.chart-placeholder{height:380px}@keyframes shimmer{to{background-position:-200% 0}}@media(max-width:1000px){.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.insight-panel{grid-column:auto}.workspace{padding:26px 22px}.topbar{align-items:flex-start;gap:20px;flex-direction:column}}@media(max-width:640px){.dashboard{grid-template-columns:1fr}.rail{display:none}.insight-list,.metric-grid{grid-template-columns:1fr}.top-actions{width:100%;flex-wrap:wrap}.range-switch,.range-switch button{flex:1 1}.workspace{padding:22px 14px}.warning{display:none}}:root{--qf-bg0:#0a1420;--qf-bg1:#0f1d2e;--qf-bg2:#152840;--qf-bg3:#1a3050;--qf-rail:#081019;--qf-line:rgba(169,191,211,0.14);--qf-line2:rgba(169,191,211,0.28);--qf-ink:#ecf4fc;--qf-dim:#a9bfd3;--qf-faint:#7e96ad;--qf-amber:#ffb224;--qf-teal:#2fd6b5;--qf-coral:#ff6b5e;--qf-blue:#5eb0ff;--qf-violet:#b48cff;--qf-display:"Barlow Condensed","Arial Narrow",sans-serif;--qf-mono:"IBM Plex Mono",ui-monospace,monospace;--qf-body:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;--qf-fs-xs:10px;--qf-fs-sm:11px;--qf-fs-md:12px;--qf-fs-body:13.5px;--qf-fs-lg:16px;--qf-fs-title:22px;--qf-sp-1:6px;--qf-sp-2:10px;--qf-sp-3:14px;--qf-sp-4:20px;--qf-sp-5:28px;--qf-radius-sm:4px;--qf-radius-md:6px;--qf-radius-lg:8px;--qf-radius-xl:12px;--qf-duration-fast:150ms;--qf-duration-normal:200ms;--qf-duration-slow:350ms;--qf-modal-sm:400px;--qf-modal-md:600px;--qf-modal-lg:900px;--qf-modal-xl:960px}.dashboard{display:block;min-height:0}.dashboard>.rail{display:none}.dashboard>.workspace{max-width:none;margin:0;padding:0}.dashboard>.workspace>.topbar{position:static;padding:0;margin:0 0 20px;background:transparent;border:0}.dashboard>.workspace>.topbar h1{color:var(--qf-ink);font-family:var(--qf-display);font-size:22px;letter-spacing:.5px}.dashboard>.workspace>.topbar .eyebrow{color:var(--qf-faint)}@media(max-width:1023px){.dashboard>.workspace{padding:0}}.dashboard .freshness,.dashboard .metric,.dashboard .panel,.dashboard .status-panel{background:var(--qf-bg1);border-color:var(--qf-line);color:var(--qf-ink);box-shadow:none}.dashboard .metric small,.dashboard .metric>span,.dashboard .panel-heading span,.dashboard .status-panel p{color:var(--qf-dim)}.dashboard .range-switch,.dashboard .refresh,.dashboard .status-panel button{border-color:var(--qf-line2);background:var(--qf-bg2);color:var(--qf-ink)}.dashboard .range-switch button{color:var(--qf-dim)}.dashboard .range-switch button.selected{background:var(--qf-amber);color:#1a1206}.dashboard .freshness.degraded{background:rgba(255,178,36,.06);border-color:rgba(255,178,36,.35)}.dashboard .skeleton{background:linear-gradient(90deg,var(--qf-bg1),var(--qf-bg2),var(--qf-bg1));background-size:200% 100%}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.dashboard .history-filters input,.dashboard .history-filters select{border-color:var(--qf-line2);background:var(--qf-bg1);color:var(--qf-ink)}.dashboard .approval-table,.dashboard .history-list,.dashboard .timeline-panel{border-color:var(--qf-line);background:var(--qf-bg1);color:var(--qf-ink)}.dashboard .approval-row,.dashboard .history-list button{border-color:var(--qf-line);background:transparent;color:var(--qf-ink)}.dashboard .history-list button.selected,.dashboard .history-list button:hover{background:var(--qf-bg2)}.dashboard .approval-row small,.dashboard .history-list small,.dashboard .history-list time,.dashboard .timeline-panel small,.dashboard .timeline-panel time{color:var(--qf-faint)}.dashboard .timeline-panel .inline-empty{color:var(--qf-dim)}.dashboard .approval-row.header{background:var(--qf-bg0);color:var(--qf-faint)}.dashboard .approval-row button{border-color:var(--qf-line2);background:var(--qf-bg2);color:var(--qf-ink)}.approval-center{--approval-amber:#b36b16;--approval-violet:#7454bd;--approval-teal:#16836b;--approval-blue:#356aa0;--approval-coral:#b84d45;display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;overflow:hidden;grid-gap:18px;gap:18px}.approval-center>*{min-width:0;width:100%;max-width:100%}.approval-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.approval-page-header h1{margin:5px 0;font-size:28px}.approval-page-header p:last-child{margin:0;color:var(--qf-dim)}.approval-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:12px;gap:12px}.approval-kpi{position:relative;overflow:hidden;min-width:0;padding:17px 18px;border:1px solid var(--qf-line);border-radius:12px;box-shadow:none}.approval-kpi:before{position:absolute;inset:0 auto 0 0;width:3px;background:currentColor;content:""}.approval-kpi span{display:block;color:var(--qf-dim);font-size:12px}.approval-kpi strong{display:block;margin-top:8px;color:inherit;font-size:25px}.approval-kpi small{display:block;margin-top:5px;color:var(--qf-dim);font-size:10px}.approval-kpi.amber{color:var(--approval-amber)}.approval-kpi.violet{color:var(--approval-violet)}.approval-kpi.teal{color:var(--approval-teal)}.approval-kpi.blue{color:var(--approval-blue)}.approval-kpi.coral{color:var(--approval-coral)}.mode-summary{display:flex;align-items:center;gap:12px;color:var(--qf-dim);font-size:11px}.mode-summary span:nth-child(2){margin-left:auto}.readiness{padding:5px 9px;border-radius:999px;background:#2fd6b51c;color:var(--qf-teal);font-weight:700}.readiness.degraded,.readiness.unknown{background:#ffb74a1c;color:var(--approval-amber)}.inbox-tabs{display:flex;width:max-content;max-width:100%;gap:4px;padding:4px;border:1px solid var(--qf-line);border-radius:9px;background:var(--qf-bg0);overflow-x:auto}.inbox-tabs button{display:flex;align-items:center;gap:7px;border:0;border-radius:6px;padding:8px 13px;background:transparent;color:var(--qf-dim);font-weight:700;white-space:nowrap}.inbox-tabs button[aria-pressed=true]{background:var(--qf-bg1);color:var(--qf-ink);box-shadow:0 1px 4px #10251b18}.inbox-tabs span{padding:1px 6px;border-radius:9px;background:var(--qf-bg2);font-size:10px}.approval-toolbar{display:flex;gap:10px}.approval-toolbar input,.approval-toolbar select{min-height:40px;border:1px solid var(--qf-line);border-radius:8px;padding:0 12px;background:var(--qf-bg1);color:var(--qf-ink)}.approval-toolbar input{min-width:240px;margin-left:auto}.approval-detail,.approval-table{overflow:hidden;border:1px solid var(--qf-line);border-radius:12px}.approval-row{display:grid;width:100%;grid-template-columns:112px 90px 76px 58px minmax(190px,1fr) 92px 74px 48px;align-items:center;grid-gap:10px;gap:10px;border:0;border-top:1px solid var(--qf-line);padding:12px 14px;color:var(--qf-ink);text-align:left}.approval-row:not(.header){cursor:pointer}.approval-row:not(.header):hover{background:var(--qf-bg2)}.approval-row.done{opacity:.55}.approval-row.header{border-top:0;background:var(--qf-bg0);font-weight:800}.approval-row time,.approval-row.header{color:var(--qf-dim);font-size:11px}.approval-row .summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.approval-row strong{color:var(--qf-teal)}.risk{width:max-content;border-radius:5px;padding:4px 8px;background:var(--qf-bg2);font-size:11px}.risk.P0{background:#ff7a6624;color:var(--qf-coral)}.risk.P1{background:#ffb74a1c;color:var(--qf-amber)}.risk.P2{background:#62a8ff1c;color:var(--qf-blue)}.approval-empty{display:grid;place-items:center;grid-gap:8px;gap:8px;padding:36px;color:var(--qf-dim)}.approval-empty svg{width:34px;fill:none;stroke:currentColor;stroke-width:1.5}.approval-draft-card{margin:12px;border:1px solid var(--qf-line);border-left:3px solid var(--approval-violet);border-radius:9px;padding:13px 15px;background:var(--qf-bg1)}.approval-draft-card.done{opacity:.55}.approval-draft-card header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.approval-draft-card header>span{border-radius:4px;padding:3px 8px;background:#b58cff18;color:var(--qf-violet);font-size:10px;font-weight:800}.approval-draft-card header time{color:var(--qf-dim);font-size:11px}.approval-draft-card header strong{margin-left:auto;font-size:11px}.approval-draft-card>p{color:var(--qf-dim);font-size:11px}.approval-draft-card pre,.draft-unavailable{white-space:pre-wrap;border-left:2px solid var(--approval-violet);border-radius:5px;padding:11px 13px;background:var(--qf-bg0);color:var(--qf-ink);font:12px/1.65 var(--font-sans)}.draft-unavailable{color:var(--approval-amber)}.approval-draft-card footer{display:flex;justify-content:flex-end;margin-top:10px}.approval-draft-card button{border:0;border-radius:7px;padding:8px 12px;background:var(--qf-teal);color:#07140f;font-weight:700}.approval-drawer-mask{position:fixed;z-index:80;inset:0;display:flex;justify-content:flex-end;background:#07130d66}.approval-detail{width:480px;max-width:100%;height:100%;overflow:auto;border-radius:0;padding:22px}.approval-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.approval-detail h2{margin:5px 0 12px;font-size:17px}.approval-detail header button{border:0;background:transparent;color:var(--qf-dim);font-size:22px}.approval-detail dl{display:grid;grid-gap:8px;gap:8px;margin:0}.approval-detail dl div{display:grid;grid-template-columns:82px minmax(0,1fr);grid-gap:8px;gap:8px;padding-bottom:8px;border-bottom:1px solid var(--qf-line)}.approval-detail dt{color:var(--qf-dim);font-size:11px}.approval-detail dd{margin:0;overflow-wrap:anywhere;font-size:12px}.approval-detail h3{margin:16px 0 7px;font-size:13px}.approval-detail p{margin:4px 0;color:var(--qf-dim);font-size:12px;line-height:1.55}.decision-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:14px;gap:14px;align-items:end;padding:16px;border:1px solid var(--qf-line);border-radius:12px;background:var(--qf-bg1)}.decision-actions label{display:grid;grid-gap:7px;gap:7px;font-size:12px;font-weight:700}.decision-actions textarea{min-height:68px;resize:vertical;border:1px solid var(--qf-line);border-radius:8px;padding:10px;font:inherit}.decision-actions>div{display:flex;gap:8px}.decision-actions button,.receipt-state button{border:0;border-radius:8px;padding:10px 14px;background:var(--qf-teal);color:#07140f;font-weight:700}.decision-actions button:nth-child(2){background:var(--approval-coral)}.decision-actions button:disabled{background:var(--qf-bg2);color:var(--qf-faint)}.receipt-state{display:flex;align-items:center;gap:12px;padding:12px 15px;border-radius:10px;background:#2fd6b514;color:var(--qf-teal)}.receipt-state span{flex:1 1;font-size:12px}.receipt-state.locked{background:#ffb74a1c;color:var(--qf-amber)}@media(max-width:1100px){.approval-kpis{grid-template-columns:repeat(3,1fr)}.approval-table{overflow-x:auto}.approval-row{min-width:850px}}@media(max-width:1180px){.approval-detail{width:100%}}@media(max-width:600px){.approval-center{gap:14px}.approval-page-header{align-items:flex-start}.approval-page-header h1{font-size:23px}.approval-kpis{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.approval-kpi{min-width:145px;scroll-snap-align:start}.mode-summary{align-items:flex-start;flex-direction:column}.mode-summary span:nth-child(2){margin-left:0}.approval-toolbar{display:grid;grid-template-columns:1fr 1fr}.approval-toolbar input{grid-column:1/-1;min-width:0;width:100%;margin:0}.approval-row{min-width:790px}.approval-draft-card{min-width:340px}.approval-detail{padding:18px}.decision-actions{grid-template-columns:1fr}.decision-actions>div{overflow-x:auto}.decision-actions button{min-height:44px;white-space:nowrap}.receipt-state{align-items:flex-start;flex-wrap:wrap}.receipt-state span{flex-basis:70%}}.approval-center{font-size:13.5px;color:var(--qf-ink)}.approval-page-header h1{font-family:var(--qf-display);font-size:22px;font-weight:700}.approval-kpi{padding:16px 18px;border-radius:8px;background:var(--qf-bg1)}.approval-kpi:before{inset:0 0 auto;width:auto;height:2px}.approval-toolbar button,.approval-toolbar input,.approval-toolbar select{min-height:32px;border:1px solid var(--qf-line2);border-radius:5px;padding:0 10px;background:var(--qf-bg0);color:var(--qf-ink)}.approval-detail,.approval-table{border-radius:8px;background:var(--qf-bg1);box-shadow:none}.approval-row{background:var(--qf-bg1)}.approval-drawer-mask{background:#050b12b8}.approval-detail{box-shadow:-16px 0 44px #0008}.decision-actions{border-radius:8px;background:var(--qf-bg0)}.decision-actions textarea{border:1px solid var(--qf-line2);background:var(--qf-bg1);color:var(--qf-ink)}.approval-center :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--qf-blue);outline-offset:2px}@media(max-width:1180px){.approval-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.approval-detail{width:100%}}@media(max-width:600px){.approval-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.approval-kpi{min-width:0}.approval-toolbar :is(select,input,button),.inbox-tabs button{min-height:44px}}.history-page{--bg1:var(--qf-bg1);--card-bg:var(--qf-bg1);--card-border:var(--qf-line);--card-r:var(--qf-radius-lg);--line:var(--qf-line);--line2:var(--qf-line2);--ink:var(--qf-ink);--dim:var(--qf-dim);--faint:var(--qf-faint);--amber:var(--qf-amber);--teal:var(--qf-teal);--coral:var(--qf-coral);--blue:var(--qf-blue);--violet:var(--qf-violet);--disp:var(--qf-display);--mono:var(--qf-mono);--body:var(--qf-body);--hist-green:var(--qf-teal);--hist-muted:var(--qf-faint);color:var(--qf-ink);font-family:var(--qf-body);font-size:13.5px;display:flex;flex-direction:column;gap:0;min-width:0}.history-page .freshness.degraded{background:rgba(255,178,36,.08);border-color:rgba(255,178,36,.4);color:var(--amber);overflow-wrap:anywhere}.history-reach-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:0;gap:0;border:1px solid var(--line);border-radius:8px;background:var(--card-bg);overflow:hidden;margin-bottom:12px}.history-reach-stats article{padding:12px;text-align:center;border-right:1px solid var(--line)}.history-reach-stats article:last-child{border-right:0}.history-reach-stats span{display:block;color:var(--hist-muted);font-size:11px}.history-reach-stats strong{display:block;font-size:22px;margin-top:3px}.history-archive-note{display:flex;justify-content:space-between;color:var(--hist-muted);font-size:12px;gap:8px;margin-top:12px}.history-skeleton td{padding:16px}.history-skeleton span{display:block;height:16px;border-radius:5px;background:linear-gradient(90deg,var(--qf-bg0),var(--qf-bg2),var(--qf-bg0));background-size:200% 100%;animation:history-shimmer 1.2s infinite}@keyframes history-shimmer{to{background-position:-200% 0}}.history-drawer-mask{position:fixed;inset:0;background:rgba(5,10,18,.6);z-index:80;display:flex;justify-content:flex-end}.history-drawer-mask .history-detail{position:static;width:480px;height:100%;border-radius:0;padding:22px;overflow:auto;box-shadow:-16px 0 44px rgba(0,0,0,.45)}.history-detail header button{border:0;background:none;font-size:24px}@media (max-width:600px){.history-reach-stats{grid-template-columns:repeat(2,1fr)}.history-table-card table{min-width:820px}.history-archive-note{align-items:flex-start;flex-direction:column;gap:4px}.history-drawer-mask .history-detail{padding:16px}}.history-header{margin-bottom:12px}.history-header h1{font-family:var(--disp);font-size:22px;font-weight:700;letter-spacing:.5px;line-height:1.2;margin:0}.history-header p{margin:0;color:var(--hist-muted);font-size:12px;line-height:1.4}.history-crumb{font-size:12px;display:flex;align-items:center;gap:6px;margin-bottom:4px!important}.history-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px;margin-bottom:10px}.history-kpis article{--kc:var(--blue,#5eb0ff);background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--card-r);padding:11px 14px 9px;position:relative;overflow:hidden}.history-kpis article:after{content:"";position:absolute;inset:0 0 auto;height:2px;background:var(--kc)}.history-kpis article:nth-child(2){--kc:var(--teal,#2fd6b5)}.history-kpis article:nth-child(3){--kc:var(--amber,#ffb224)}.history-kpis article:nth-child(4){--kc:var(--coral,#ff6b5e)}.history-kpis span{display:block;color:var(--hist-muted);font-size:12px}.history-kpis strong{display:block;font-family:var(--disp);font-size:28px;line-height:1.2;margin:4px 0 3px}.hist-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.hist-toolbar select,.history-search input,.history-trace-filter input{height:32px;border:1px solid var(--line);border-radius:6px;background:var(--bg1);color:var(--dim);padding:7px 12px;font-size:12.5px}.history-trace-filter input{width:150px}.history-trace{display:block;margin-top:4px;color:var(--hist-muted);font-size:11px;overflow-wrap:anywhere}.history-trace.trace-degraded{color:var(--amber)}.history-trace-detail{display:grid;grid-gap:6px;gap:6px}.history-trace-detail span{display:block}.history-search{display:flex;align-items:center;position:relative;margin-left:auto}.history-search:before{content:"🔍";position:absolute;left:10px;font-size:12px;pointer-events:none;z-index:1}.history-search input{padding-left:30px;width:220px}.history-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.75fr);grid-gap:14px;gap:14px;align-items:start}.history-detail,.history-table-card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--card-r);overflow:hidden}.history-table-card{min-width:0}.history-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.history-table-card table{width:100%;border-collapse:collapse;min-width:920px}.history-table-card td,.history-table-card th{padding:var(--sp-sm,8px);border-bottom:1px solid var(--line);text-align:left;font-size:12px}.history-table-card th{color:var(--hist-muted);font-size:var(--fs-xs,11px);font-weight:400;letter-spacing:1px;white-space:nowrap}.history-table-card tr{cursor:pointer}.history-table-card tr.selected,.history-table-card tr:hover{background:rgba(94,176,255,.06)}.history-table-card td strong{display:block}.history-source{font-family:var(--mono);font-size:11px}.history-source.source-AI{color:var(--teal)}.history-source.source-人工{color:var(--amber)}.history-faint{color:var(--faint)}.history-detail a,.history-table-card td button{border:0;background:none;color:var(--hist-green);font-weight:650;text-decoration:none}.history-status{display:inline-flex;align-items:center;gap:5px;border-radius:var(--r-sm,3px);padding:3px 9px;font-family:var(--mono);font-size:var(--fs-xs,11px);line-height:1.4}.history-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.history-status.approved,.history-status.completed,.history-status.sent,.history-status.succeeded{background:rgba(47,214,181,.07);border:1px solid rgba(47,214,181,.45);color:var(--teal)}.history-status.pending{background:rgba(255,178,36,.07);border:1px solid rgba(255,178,36,.45);color:var(--amber)}.history-status.failed,.history-status.rejected{background:rgba(255,107,94,.07);border:1px solid rgba(255,107,94,.45);color:var(--coral)}.history-status.compensated,.history-status.read,.history-status.withdrawn{background:rgba(169,191,211,.07);border:1px solid var(--line2);color:var(--dim)}.history-page .risk{border-radius:4px;padding:2px 7px;font-family:var(--mono);font-size:11px}.history-page .risk.r-P0{color:var(--coral);background:rgba(255,107,94,.09)}.history-page .risk.r-P1{color:var(--amber);background:rgba(255,178,36,.09)}.history-page .risk.r-P2{color:var(--blue);background:rgba(94,176,255,.09)}.history-detail{padding:20px 24px;position:-webkit-sticky;position:sticky;top:16px}.history-detail .d-hd{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid var(--line)}.history-detail .d-hd p{margin:0;color:var(--hist-muted);font-size:12px}.history-detail h2{font-size:18px;margin:5px 0 12px}.history-detail .d-bd{padding-top:16px}.history-detail .d-ft{display:flex;justify-content:flex-end;padding-top:14px;border-top:1px solid var(--line)}.history-detail .d-ft button{border:1px solid var(--line2);border-radius:6px;background:var(--bg1);color:var(--ink);padding:7px 14px}.history-detail dl{display:grid;grid-template-columns:76px 1fr;grid-gap:9px;gap:9px;font-size:12px}.history-detail .d-sec{margin-bottom:16px}.history-detail dt{color:var(--hist-muted)}.history-detail dd{margin:0;min-width:0}.history-detail dd span{display:block}.history-detail code{overflow-wrap:anywhere}.history-detail ol{list-style:none;padding:12px 0 0;margin:0}.history-detail li{display:grid;grid-template-columns:12px 1fr;grid-gap:10px;gap:10px;min-height:72px;position:relative}.history-detail li i{width:9px;height:9px;border-radius:50%;background:var(--hist-green);margin-top:4px}.history-detail li:not(:last-child):before{content:"";position:absolute;left:4px;top:16px;bottom:4px;border-left:1px solid #bad4c7}.history-detail li div{display:flex;flex-direction:column;gap:3px}.history-detail li small,.history-detail li time{color:var(--hist-muted);font-size:11px}.history-pagination{display:flex;justify-content:space-between;align-items:center;color:var(--hist-muted);font-size:12px}.history-pagination div{display:flex;align-items:center;gap:8px}.history-pagination button{border:1px solid var(--line);background:var(--bg1);color:var(--ink);border-radius:6px;padding:6px 10px}.history-page :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--blue);outline-offset:2px}@media (prefers-reduced-motion:reduce){.history-skeleton span{animation:none}}.history-pagination button:disabled{opacity:.45}.history-empty{padding:28px;text-align:center;color:var(--hist-muted)}@media (max-width:1180px){.history-kpis{grid-template-columns:repeat(2,1fr)}.history-workspace{grid-template-columns:1fr}.history-detail{position:static}.history-drawer-mask .history-detail{width:100%}.history-search{margin-left:0;flex:1 1}.history-search input{width:100%}}@media (max-width:600px){.history-header{align-items:flex-start}.history-header h1{font-size:22px}.history-kpis{grid-template-columns:repeat(2,1fr);gap:8px}.history-kpis article{padding:12px}.history-kpis strong{font-size:22px}.hist-toolbar label{flex-grow:1;flex-shrink:1;flex-basis:calc(50% - 6px)}.hist-toolbar select{width:100%}.history-search{flex-basis:100%}.hist-toolbar select,.history-detail button,.history-pagination button,.history-search input{min-height:44px}.history-table-card table{min-width:820px}.history-detail{padding:14px}.history-pagination{align-items:flex-start;flex-direction:column}.history-pagination div{width:100%;justify-content:space-between}}:where(a,button,input,select,textarea,[role=button]):focus-visible{outline:3px solid #2f80ed;outline-offset:2px}:where(a,button,input,select,textarea,img,svg,table){max-width:100%}:where(p,span,small,code,td,th,label){overflow-wrap:anywhere}@media(max-width:1100px){:where(.workspace,.page,main){min-width:0}:where(table){display:block;overflow-x:auto}}@media(prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}