:root{--canvas:#edf1f5;--canvas-deep:#e4eaf0;--surface:#fafcfef5;--surface-solid:#fafcfe;--surface-muted:#f2f5f8;--ink:#162031;--ink-soft:#516074;--ink-faint:#7b8797;--accent:#0f766e;--accent-strong:#0b5c56;--accent-soft:#e0f2f1;--green:#17745d;--green-soft:#e2f2ed;--amber:#9a6514;--amber-soft:#f7edda;--red:#b43d45;--red-soft:#f8e7e9;--violet:#6457d6;--violet-soft:#eceafb;--line:#233a561f;--line-strong:#233a5633;--shadow-soft:0 18px 48px #32435817, 0 2px 8px #3243580a;--shadow-float:0 28px 80px #2d3d5229, 0 8px 22px #2d3d5214;--ease:cubic-bezier(.32, .72, 0, 1);--rail:280px;--control-md:42px;--control-sm:34px;--radius-card:24px;--radius-inner:14px;--brand-navy:#1a2b4a;--brand-navy-soft:#243b64;--brand-navy-deep:#1e3255;--brand-blue:var(--accent);--brand-blue-light:#14b8a6;--brand-blue-soft:var(--accent-soft);--brand-amber:var(--amber);--brand-amber-soft:var(--amber-soft);--brand-amber-border:#fde68a;--brand-red:var(--red);--brand-red-soft:var(--red-soft);--brand-red-border:#fecaca;--brand-green:var(--green);--brand-green-soft:var(--green-soft);--brand-green-border:#a7f3d0;--brand-cyan:#0ea5b8;--surface-0:var(--canvas);--surface-1:var(--surface-solid);--surface-2:var(--surface-muted);--border-soft:#233a5614;--border-strong:var(--line);--border-color:var(--line);--text-primary:var(--ink);--text-secondary:var(--ink-soft);--text-muted:var(--ink-faint);--text-invert:#f5f7fb;--radius-sm:.5rem;--radius-md:.875rem;--radius-lg:1.25rem;--shadow-sm:0 1px 3px #0f172a14;--shadow-md:0 1px 3px #0f172a14, 0 4px 12px #0f172a0f;--shadow-lg:0 24px 64px #0f172a47;--font-sans:"Plus Jakarta Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono:"JetBrains Mono", "SF Mono", Consolas, Menlo, monospace;--topbar-height:56px;--transition-fast:.15s ease;--transition-base:.2s ease;--work-gradient:linear-gradient(135deg, #0f766e, #14b8a6);--agent-gradient:linear-gradient(135deg, #1e3a5f, #334155)}*{box-sizing:border-box}html,body,#root{height:100%}body{font-family:var(--font-sans);background:radial-gradient(circle at 6% 8%, #0f766e14, transparent 26rem), radial-gradient(circle at 92% 88%, #4c8e780f, transparent 28rem), var(--surface-0);color:var(--text-primary);-webkit-font-smoothing:antialiased;margin:0}button{font-family:inherit}a{color:inherit;text-decoration:none}.app-shell{flex-direction:column;gap:0;height:100dvh;min-height:100dvh;padding:0;display:flex;overflow:hidden}.app-shell.is-tripane{gap:0;padding:0}.topbar{z-index:30;color:#f4f7fc;background:linear-gradient(135deg,#14242a 0%,#1a3330 55%,#0f766e 140%);border-bottom:1px solid #0f242a73;border-radius:0;flex:none;align-items:center;gap:16px;width:100%;min-height:56px;padding:0 clamp(14px,2vw,24px);display:flex;position:sticky;top:0;box-shadow:0 8px 24px #0f242a47}.topbar-brand{white-space:nowrap;flex:none;align-items:center;gap:10px;display:flex}.topbar-brand .brand-mark,.brand-mark{color:#fff;background:linear-gradient(145deg,#14b8a6,#0f766e);border-radius:11px;place-items:center;width:34px;height:34px;display:grid;box-shadow:inset 0 1px 1px #ffffff47,0 6px 14px #0f766e59}.topbar-brand-copy{flex-direction:column;line-height:1.2;display:flex}.topbar-brand-copy strong{letter-spacing:-.02em;color:#fff;font-size:13.5px;font-weight:700}.topbar-brand-copy span{color:#e8effa9e;letter-spacing:.02em;font-size:9px}.topbar-nav{scrollbar-width:none;flex:1;align-items:center;gap:4px;min-width:0;display:flex;overflow-x:auto}.topbar-nav::-webkit-scrollbar{display:none}.topbar-nav-item{border-radius:9px;flex:none;align-items:center;gap:4px;min-width:0;display:inline-flex}.workspace-switcher{min-width:0;position:relative}.workspace-switcher-trigger{color:#e8effae0;cursor:pointer;background:#ffffff14;border:0;border-radius:8px;align-items:center;gap:4px;max-width:220px;min-height:28px;padding:0 8px;font-size:12px;font-weight:650;display:inline-flex}.workspace-switcher-trigger span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.workspace-switcher-trigger:hover,.workspace-switcher-trigger.open{color:#fff;background:#ffffff24}.workspace-kb-name{cursor:default}.workspace-kb-name:hover{color:#e8effae0;background:#ffffff14}.workspace-switcher-menu{z-index:40;background:#fff;border-radius:14px;outline:1px solid #233a5614;padding:8px;position:fixed;box-shadow:0 18px 40px #14242a2e}.workspace-switcher-list{max-height:280px;margin:0;padding:0;list-style:none;overflow:auto}.workspace-switcher-list button{width:100%;min-height:36px;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;padding:0 10px;display:flex}.workspace-switcher-list button:hover,.workspace-switcher-list button.active{background:var(--accent-soft)}.workspace-switcher-item-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;display:block;overflow:hidden}.workspace-switcher-empty{color:var(--ink-faint);padding:10px;font-size:12px}.workspace-switcher-back{color:var(--accent-strong);border-radius:10px;margin-top:6px;padding:8px 10px;font-size:12px;font-weight:650;display:block}.workspace-switcher-back:hover{background:var(--accent-soft)}.topbar-link{color:#e8effaad;letter-spacing:-.01em;white-space:nowrap;min-height:32px;transition:color .2s var(--ease);background:0 0;border-radius:9px;flex:none;align-items:center;gap:6px;padding:0 11px;font-size:12.5px;font-weight:600;display:inline-flex;position:relative}.topbar-link:hover{color:#fff}.topbar-link.active{color:#fff;font-weight:700}.topbar-user{flex:none;align-items:center;gap:9px;margin-left:2px;padding-left:4px;display:flex}.topbar-utility-tray{border-right:1px solid #e8effa24;align-items:center;gap:4px;margin-right:4px;padding-right:8px;display:inline-flex}.topbar-utility-btn{color:#e8effac7;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:999px;align-items:center;gap:0;max-width:34px;height:34px;padding:0 9px;transition:max-width .22s,gap .22s,color .2s,background .2s;display:inline-flex;position:relative;overflow:visible}.topbar-utility-icon-wrap{flex:none;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex;position:relative}.topbar-utility-icon-wrap svg{flex:none}.topbar-utility-badge{z-index:1;color:#fff;pointer-events:none;background:#e11d48;border-radius:999px;justify-content:center;align-items:center;min-width:14px;height:14px;padding:0 3px;font-size:9px;font-weight:700;line-height:1;display:inline-flex;position:absolute;top:-7px;right:-9px;box-shadow:0 0 0 1.5px #14242af2}.topbar-utility-label{opacity:0;letter-spacing:.01em;max-width:0;font-size:11px;font-weight:650;transition:max-width .22s,opacity .18s,margin .22s;overflow:hidden}.topbar-utility-btn:hover,.topbar-utility-btn:focus-visible,.topbar-utility-btn.is-open{color:#fff;background:#ffffff1f;outline:none;gap:6px;max-width:120px}.topbar-utility-btn:hover .topbar-utility-label,.topbar-utility-btn:focus-visible .topbar-utility-label,.topbar-utility-btn.is-open .topbar-utility-label{opacity:1;max-width:72px}.topbar-utility-panel{z-index:80;max-height:min(420px,100vh - 72px);color:var(--ink,#1f2a37);background:#fff;border:1px solid #233a561a;border-radius:14px;flex-direction:column;display:flex;position:fixed;overflow:hidden;box-shadow:0 18px 40px #0f242a2e,0 2px 8px #0f242a14}.topbar-utility-panel-head{border-bottom:1px solid #233a5614;justify-content:space-between;align-items:center;gap:10px;padding:12px 12px 10px 14px;display:flex}.topbar-utility-panel-head>div{flex-direction:column;gap:2px;min-width:0;display:flex}.topbar-utility-panel-head strong{font-size:13px;font-weight:700}.topbar-utility-panel-head span{color:var(--text-muted,#6b7c8f);font-size:11px}.topbar-utility-panel-close{width:28px;height:28px;color:var(--ink-soft,#5b6b7c)}.topbar-utility-panel-close:hover{color:var(--ink,#1f2a37);background:#0f766e14;transform:none}.topbar-utility-panel-body{flex:1;min-height:0;padding:16px 14px 18px;overflow:auto}.topbar-utility-empty{text-align:center;min-height:160px;color:var(--text-muted,#6b7c8f);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px;display:flex}.topbar-utility-empty svg{color:var(--accent,#0f766e);opacity:.85}.topbar-utility-empty strong{color:var(--ink,#1f2a37);font-size:13px;font-weight:650}.topbar-utility-empty p{max-width:240px;margin:0;font-size:12px;line-height:1.55}.topbar-utility-panel-todo .topbar-utility-panel-body,.topbar-utility-panel-calendar .topbar-utility-panel-body,.topbar-utility-panel-schedule .topbar-utility-panel-body{padding:10px 12px 14px}.agenda-schedule-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.agenda-schedule-row{background:#f7fafb;border:1px solid #233a5614;border-radius:12px;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:12px;display:grid}.agenda-schedule-row.is-enabled{background:#0f766e0d;border-color:#0f766e29}.agenda-schedule-copy{flex-direction:column;gap:6px;min-width:0;display:flex}.agenda-schedule-title-row{flex-wrap:wrap;align-items:center;gap:6px 8px;display:flex}.agenda-schedule-title-row strong{font-size:12.5px;font-weight:700;line-height:1.35}.agenda-schedule-cadence{color:#0f766e;background:#0f766e1a;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:650}.agenda-schedule-trigger{border-radius:999px;align-items:center;gap:3px;padding:2px 7px;font-size:10px;font-weight:700;display:inline-flex}.agenda-schedule-trigger.is-recurring{color:#b45309;background:#f59e0b29}.agenda-schedule-trigger.is-once{color:#475569;background:#64748b24}.agenda-schedule-copy p{color:var(--text-muted,#6b7c8f);margin:0;font-size:12px;line-height:1.55}.agenda-schedule-hint{color:#b45309;background:#f59e0b1a;border-radius:8px;margin:0;padding:6px 8px;font-size:11px;line-height:1.45}.agenda-schedule-hint.is-once{color:#64748b;background:#64748b1a}.agenda-schedule-row.is-recurring.is-enabled{box-shadow:inset 3px 0 #f59e0b}.agenda-switch{cursor:pointer;background:#64748b59;border:0;border-radius:999px;flex:none;width:40px;height:22px;margin-top:2px;padding:2px;transition:background .18s}.agenda-switch-knob{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .18s;display:block;transform:translate(0);box-shadow:0 1px 3px #0f242a40}.agenda-switch.is-on{background:#0f766e}.agenda-switch.is-on .agenda-switch-knob{transform:translate(18px)}.agenda-todo-list,.agenda-event-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.agenda-todo-row,.agenda-event-row{text-align:left;cursor:pointer;width:100%;color:inherit;background:#f7fafb;border:1px solid #233a5614;border-radius:12px;align-items:flex-start;gap:10px;padding:10px;transition:background .18s,border-color .18s;display:flex}.agenda-todo-row:hover:not(:disabled),.agenda-event-row:hover:not(:disabled){background:#0f766e0f;border-color:#0f766e38}.agenda-todo-row:disabled,.agenda-event-row:disabled{cursor:default;opacity:.85}.agenda-todo-badge{color:#0f766e;background:#0f766e1a;border-radius:999px;flex:none;margin-top:1px;padding:2px 7px;font-size:10px;font-weight:650}.agenda-todo-row.status-in_progress .agenda-todo-badge{color:#b45309;background:#f59e0b24}.agenda-todo-row.status-done .agenda-todo-badge,.agenda-todo-row.status-completed .agenda-todo-badge{color:#64748b;background:#64748b1f}.agenda-todo-copy,.agenda-event-copy{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.agenda-todo-copy strong,.agenda-event-copy strong{font-size:12.5px;font-weight:650;line-height:1.4}.agenda-todo-copy small,.agenda-event-copy small{color:var(--text-muted,#6b7c8f);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.agenda-todo-go{color:var(--accent,#0f766e);opacity:.7;flex:none;margin-top:2px}.agenda-calendar{flex-direction:column;gap:10px;display:flex}.agenda-calendar-nav{justify-content:space-between;align-items:center;gap:8px;display:flex}.agenda-calendar-nav strong{font-size:13px;font-weight:700}.agenda-calendar-nav .icon-button{width:28px;height:28px;color:var(--ink-soft,#5b6b7c)}.agenda-calendar-nav .icon-button:hover{color:var(--ink,#1f2a37);background:#0f766e14;transform:none}.agenda-calendar-weekdays,.agenda-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;display:grid}.agenda-calendar-weekdays span{text-align:center;color:var(--text-muted,#6b7c8f);padding:2px 0;font-size:10px}.agenda-cal-cell{aspect-ratio:1;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;font-size:12px;font-weight:600;display:grid;position:relative}.agenda-cal-cell.is-empty{pointer-events:none}.agenda-cal-cell:hover:not(.is-empty){background:#0f766e14}.agenda-cal-cell.is-today{box-shadow:inset 0 0 0 1px #0f766e59}.agenda-cal-cell.is-selected{color:#fff;background:#0f766e}.agenda-cal-cell.has-event:after{content:"";background:#f59e0b;border-radius:50%;width:4px;height:4px;position:absolute;bottom:5px}.agenda-cal-cell.is-selected.has-event:after{background:#fff}.agenda-day-section{border-top:1px solid #233a5614;flex-direction:column;gap:8px;padding-top:4px;display:flex}.agenda-day-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.agenda-day-head strong{font-size:12.5px}.agenda-day-head span,.agenda-day-empty{color:var(--text-muted,#6b7c8f);font-size:11px}.agenda-day-empty{margin:0;padding:8px 2px 4px}.agenda-event-time{color:var(--accent,#0f766e);flex:0 0 42px;margin-top:1px;font-size:11px;font-weight:650}.avatar{color:#fff;background:linear-gradient(145deg,#2dd4bf,#0f766e);border-radius:50%;place-items:center;width:32px;height:32px;font-size:11px;font-weight:700;display:grid;box-shadow:inset 0 1px #ffffff38}.topbar-user-copy{flex-direction:column;max-width:140px;line-height:1.25;display:flex}.topbar-user-copy strong,.topbar-user-copy span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.topbar-user-copy strong{color:#fff;font-size:11px}.topbar-user-copy span{color:#e8effa94;text-transform:uppercase;letter-spacing:.06em;font-size:9px}.topbar-user .icon-button{color:#e8effac7}.topbar-user .icon-button:hover{color:#fff;background:#ffffff1f}.workspace{flex-direction:column;flex:1;min-width:0;min-height:0;padding:14px clamp(14px,2vw,22px) 18px;display:flex;overflow:hidden}.app-shell.is-tripane .workspace{padding:10px}.route-stage{background:#f5f8fbad;border-radius:28px;outline:1px solid #233a5612;flex-direction:column;flex:1;min-width:0;min-height:0;padding:14px clamp(16px,2.1vw,32px) 40px;display:flex;overflow:auto;box-shadow:inset 0 1px #ffffffe6}.route-stage.is-tripane{box-shadow:none;background:0 0;border-radius:0;outline:0;padding:0;overflow:hidden}.search-box{min-height:var(--control-md);min-width:0;color:var(--ink-soft);background:#f5f7fa;border-radius:999px;outline:1px solid #233a561c;align-items:center;gap:8px;padding:0 14px;display:flex}.search-box:focus-within{background:#fff;outline:2px solid #0f766e59}.search-box svg{color:var(--ink-faint);flex:none}.search-box input{min-width:0;color:var(--ink);background:0 0;border:0;outline:0;flex:1;font-size:12px}.search-box input::placeholder{color:#7b8797}.text-link{color:var(--accent);cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;font-size:11px;font-weight:650;display:inline-flex}.page{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.page-header{border-bottom:1px solid var(--border-soft);background:var(--surface-1);flex:none;align-items:center;gap:12px;padding:16px 24px;display:flex}.page-title{font-size:18px;font-weight:600}.page-header-spacer{flex:1}.page-body{flex:1;min-height:0;padding:20px 24px;overflow:auto}.btn{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface-1);color:var(--text-primary);cursor:pointer;transition:var(--transition-fast);align-items:center;gap:6px;padding:8px 14px;font-size:13px;font-weight:500;display:inline-flex}.btn:hover{border-color:var(--brand-blue);color:var(--brand-blue)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--brand-blue);border-color:var(--brand-blue);color:#fff}.btn-primary:hover{background:var(--accent-strong);color:#fff}.btn-ghost{background:0 0;border-color:#0000}.btn-sm{padding:5px 10px;font-size:12px}.icon-btn{border-radius:var(--radius-sm);width:30px;height:30px;color:var(--text-secondary);cursor:pointer;transition:var(--transition-fast);background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}.icon-btn:hover{background:var(--surface-2);color:var(--text-primary)}.segmented-tabs,.view-switch{background:var(--surface-muted);border-radius:999px;padding:3px;display:inline-flex}.segmented-tabs button,.view-switch button{color:var(--ink-faint);cursor:pointer;background:0 0;border:0;border-radius:999px;padding:7px 13px;font-size:10px}.segmented-tabs button.active,.view-switch button.active{color:var(--accent);background:#fff;box-shadow:0 4px 12px #32435814}.graph-workbench .segmented-tabs{margin-bottom:19px}.card{background:var(--surface-1);border:1px solid var(--border-soft);border-radius:var(--radius-md);box-shadow:var(--shadow-sm)}.entity-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;display:grid}.entity-card{cursor:pointer;transition:var(--transition-fast);padding:16px}.entity-card:hover{border-color:var(--brand-blue);box-shadow:var(--shadow-md);transform:translateY(-1px)}.entity-card-title{text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px;font-size:15px;font-weight:600;overflow:hidden}.entity-card-meta{color:var(--text-muted);gap:10px;font-size:12px;display:flex}.entity-card-new{border:1.5px dashed var(--border-strong);color:var(--text-secondary);justify-content:center;align-items:center;gap:8px;min-height:92px;display:flex}.entity-card-new:hover{border-color:var(--brand-blue);color:var(--brand-blue)}.case-list-body{padding:20px 24px;overflow:auto}.case-card-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.case-card{flex-direction:column;gap:10px;min-height:168px;padding:18px;display:flex}.case-card-top{align-items:center;gap:8px;display:flex}.case-card-icon{background:var(--brand-blue-soft);width:40px;height:40px;color:var(--brand-blue);border-radius:10px;flex:none;justify-content:center;align-items:center;display:flex}.case-card-actions{align-items:center;gap:2px;margin-left:auto;display:inline-flex}.case-card-download,.case-card-delete{opacity:.55}.case-card:hover .case-card-download,.case-card:hover .case-card-delete{opacity:1}.case-card-actions .auth-download-wrap{display:inline-flex}.case-card-actions .auth-download-error{display:none}.auth-download-wrap{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.auth-download-error{color:var(--brand-red,#b43d45);max-width:240px;font-size:11px}.case-card-title{white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:2.7em;margin:0;line-height:1.35;display:-webkit-box}.case-card-subject{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px;overflow:hidden}.case-card-meta{flex-wrap:wrap;gap:8px 12px}.case-card-footer{color:var(--text-muted);margin-top:auto;padding-top:4px;font-size:12px}.search-box{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-1);align-items:center;gap:6px;min-width:220px;padding:6px 10px;display:flex}.search-box input{background:0 0;border:none;outline:none;flex:1;font-size:13px}.badge{white-space:nowrap;border:1px solid #0000;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;font-weight:600;display:inline-flex}.badge-registered{background:var(--surface-2);color:var(--text-secondary);border-color:var(--border-soft)}.badge-ocr_done{background:var(--brand-blue-soft);color:#1d6fd6;border-color:#bfdbfe}.badge-classified{color:#4338ca;background:#eef2ff;border-color:#e0e7ff}.badge-structured{color:#0e7490;background:#ecfeff;border-color:#cffafe}.badge-analyzed{background:var(--brand-green-soft);color:#15803d;border-color:var(--brand-green-border)}.badge-queued{background:var(--surface-2);color:var(--text-secondary);border-color:var(--border-soft)}.badge-running{background:var(--brand-blue-soft);color:var(--brand-blue);border-color:#bfdbfe}.badge-completed{background:var(--brand-green-soft);color:var(--brand-green);border-color:var(--brand-green-border)}.badge-error{background:var(--brand-red-soft);color:var(--brand-red);border-color:var(--brand-red-border)}.badge-not_configured{background:var(--brand-amber-soft);color:var(--brand-amber);border-color:var(--brand-amber-border)}.workbench{background:var(--border-soft);flex:1;grid-template-columns:minmax(300px,318px) 1fr minmax(320px,400px);gap:1px;min-height:0;display:grid;overflow:hidden}.workbench-col{background:var(--surface-1);flex-direction:column;min-height:0;display:flex;overflow:hidden}.workbench-col-header{border-bottom:1px solid var(--border-soft);color:var(--text-secondary);flex:none;padding:12px 14px;font-size:13px;font-weight:600}.workbench-col-body{flex:1;min-height:0;overflow:auto}.workbench-col-body:has(.doc-preview-docx){flex-direction:column;display:flex;overflow:hidden}.tree-item{cursor:pointer;color:var(--text-secondary);align-items:center;gap:6px;padding:7px 14px;font-size:13px;display:flex}.tree-item:hover{background:var(--surface-2)}.tree-item.active{background:var(--brand-blue-soft);color:var(--brand-blue);font-weight:600}.tree-group-label{letter-spacing:.04em;color:var(--text-muted);padding:10px 14px 4px;font-size:11px}.dossier-pane{background:radial-gradient(circle at 12% -8%, #0f766e14, transparent 42%), linear-gradient(180deg, #f7fafb 0%, var(--surface-1) 38%)}.dossier-shell{border:1px solid color-mix(in srgb, var(--accent) 10%, var(--border-soft));background:color-mix(in srgb, var(--surface-1) 88%, white);border-radius:16px;flex-direction:column;height:100%;min-height:0;margin:8px;display:flex;overflow:hidden;box-shadow:inset 0 1px #ffffffbf,0 10px 28px #3243580d}.dossier-header{border-bottom:1px solid color-mix(in srgb, var(--line) 55%, transparent);background:linear-gradient(#ffffffb8,#ffffff47);flex-direction:column;flex:none;gap:12px;padding:14px 14px 12px;display:flex}.dossier-header-top{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.dossier-title-block{min-width:0}.dossier-eyebrow{letter-spacing:.14em;text-transform:uppercase;color:color-mix(in srgb, var(--accent) 72%, var(--ink-faint));margin-bottom:4px;font-size:10px;font-weight:600;display:inline-block}.dossier-title-row{align-items:center;gap:8px;min-width:0;display:flex}.dossier-title{letter-spacing:-.02em;color:var(--ink);margin:0;font-size:15px;font-weight:600;line-height:1.2}.dossier-total{font-variant-numeric:tabular-nums;min-width:1.4rem;height:1.4rem;color:var(--accent-strong);background:var(--accent-soft);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:11px;font-weight:600;display:inline-flex}.dossier-search{background:color-mix(in srgb, var(--canvas) 82%, white);width:100%;min-width:0;color:var(--ink-faint);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);transition:box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);border:1px solid #0000;border-radius:12px;align-items:center;gap:8px;padding:8px 10px;display:flex}.dossier-search:focus-within{color:var(--ink-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent), 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);background:#fff}.dossier-search input{min-width:0;color:var(--ink);background:0 0;border:none;outline:none;flex:1;font-size:12.5px}.dossier-search input::placeholder{color:var(--ink-faint)}.dossier-search-clear{color:var(--accent);cursor:pointer;background:0 0;border:none;margin:0;padding:0;font-size:11px;font-weight:600}.dossier-body{scrollbar-gutter:stable;flex:1;min-height:0;padding:8px 8px 12px;overflow:auto}.dossier-tree{flex-direction:column;gap:6px;display:flex}.dossier-node.is-root{background:color-mix(in srgb, var(--surface-muted) 55%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--line) 35%, transparent);border-radius:12px;padding:3px}.dossier-node.is-root.is-empty{opacity:.58}.dossier-node.is-empty:not(.is-root)>.dossier-folder{opacity:.62}.dossier-folder,.dossier-file{--depth:0;text-align:left;width:100%;font:inherit;cursor:pointer;padding:6px 8px 6px calc(8px + var(--depth) * 13px);color:var(--ink-soft);transition:background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);background:0 0;border:none;border-radius:9px;align-items:center;gap:7px;margin:0;display:flex;position:relative}.dossier-folder:hover,.dossier-file:hover{background:color-mix(in srgb, white 70%, var(--accent-soft));color:var(--ink)}.dossier-folder:focus-visible,.dossier-file:focus-visible{outline:2px solid color-mix(in srgb, var(--accent) 50%, transparent);outline-offset:1px}.dossier-folder.is-root{color:var(--ink);padding-top:7px;padding-bottom:7px;font-size:12.5px;font-weight:600}.dossier-folder:not(.is-root){color:var(--ink);font-size:12.5px;font-weight:500}.dossier-rail{top:2px;bottom:2px;left:calc(8px + (var(--depth) - 1) * 13px + 5px);background:color-mix(in srgb, var(--line) 80%, transparent);pointer-events:none;width:1px;position:absolute}.dossier-chevron{width:12px;color:var(--ink-faint);flex:0 0 12px;display:inline-flex}.dossier-folder-mark,.dossier-file-mark{border-radius:7px;flex:0 0 22px;justify-content:center;align-items:center;width:22px;height:22px;display:inline-flex}.dossier-folder-mark{color:var(--accent-strong);background:color-mix(in srgb, var(--accent-soft) 80%, white)}.dossier-folder-name,.dossier-file-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;line-height:1.3;overflow:hidden}.dossier-folder-name{flex:1}.dossier-count{font-variant-numeric:tabular-nums;min-width:1.2rem;color:var(--ink-faint);background:color-mix(in srgb, white 55%, var(--surface-muted));box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--line) 45%, transparent);border-radius:999px;flex:none;padding:1px 6px;font-size:10.5px;font-weight:600;line-height:1.45}.dossier-file{align-items:flex-start;padding-top:7px;padding-bottom:7px}.dossier-file.is-active{background:linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 88%, white), #e8f7f4);color:var(--accent-strong);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent)}.dossier-file-copy{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.dossier-file-name{color:var(--ink);font-size:12.5px;font-weight:500}.dossier-file.is-active .dossier-file-name{color:var(--accent-strong);font-weight:600}.dossier-file-meta{color:var(--ink-faint);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:4px 6px;font-size:10.5px;font-weight:500;display:flex}.dossier-file.is-active .dossier-file-meta{color:color-mix(in srgb, var(--accent-strong) 70%, var(--ink-faint))}.dossier-file-mark.tone-pdf{color:#b45309;background:#fff7ed}.dossier-file-mark.tone-xlsx{color:#15803d;background:#ecfdf3}.dossier-file-mark.tone-docx{color:#1d4ed8;background:#eff6ff}.dossier-file-mark.tone-file{color:var(--ink-faint);background:var(--surface-muted)}.dossier-children{animation:dossier-reveal .18s var(--ease);flex-direction:column;gap:1px;display:flex}@keyframes dossier-reveal{0%{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.dossier-folder,.dossier-file,.dossier-search,.dossier-children{transition:none;animation:none}}.field-section{margin-bottom:22px}.field-section-title{border-bottom:1px solid var(--border-soft);margin-bottom:10px;padding-bottom:6px;font-size:14px;font-weight:700}.field-group{border:1px solid var(--border-soft);border-radius:var(--radius-md);background:var(--surface-1);margin-bottom:10px;padding:12px 14px}.field-group-header{color:var(--text-secondary);margin-bottom:8px;font-size:13px;font-weight:600}.field-row{border-bottom:1px dashed var(--border-soft);cursor:pointer;gap:10px;padding:6px 0;font-size:13px;display:flex}.field-row:last-child{border-bottom:none}.field-row:hover{background:var(--surface-2)}.field-row-edit{cursor:default;align-items:flex-start}.field-row-edit:hover{background:0 0}.field-label{color:var(--text-secondary);flex:0 0 88px;padding-top:6px;line-height:1.5}.field-value{word-break:break-word;flex:1;min-width:0;line-height:1.5}.field-input{box-sizing:border-box;border:1px solid var(--border-soft);background:var(--surface-0,#fff);width:100%;color:var(--text-primary);font:inherit;border-radius:6px;padding:5px 8px;font-size:12.5px;line-height:1.45}.field-input:focus{border-color:var(--accent,#0f766e);box-shadow:0 0 0 2px color-mix(in srgb, var(--accent,#0f766e) 18%, transparent);outline:none}.field-input-textarea{resize:vertical;white-space:pre-wrap;min-height:64px}.material-detail-panel{flex-direction:column;gap:12px;height:100%;min-height:0;padding:12px 16px 20px;display:flex}.material-detail-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.material-detail-title{color:var(--ink-soft);font-size:12px;font-weight:650}.material-detail-location{color:var(--text-muted);margin-top:4px;font-size:11px;line-height:1.45}.material-detail-body{flex:1;min-height:0;overflow:auto}.field-option-chip{border:1px solid var(--border-soft);background:var(--surface-1);color:var(--text-secondary);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:6px;align-items:center;gap:6px;padding:5px 10px;font-size:12.5px;display:inline-flex}.field-option-chip:has(input:checked){border-color:color-mix(in srgb, var(--accent,#0f766e) 45%, var(--border-soft));color:var(--text-primary);background:color-mix(in srgb, var(--accent,#0f766e) 8%, var(--surface-1))}.field-option-chip input{margin:0}.field-save-status{color:var(--text-muted);flex-shrink:0;padding-top:1px;font-size:11px;line-height:1.4}.field-save-status.is-error{color:var(--danger,#c0392b);text-align:right;max-width:160px}.doc-preview-pdf{align-items:stretch;padding:0;overflow:hidden}.doc-preview-docx{background:#eef2f6;flex:1;align-items:stretch;width:100%;height:100%;min-height:0;padding:0;overflow:hidden}.docx-editor-host{background:#eef2f6;flex-direction:column;flex:1;width:100%;height:100%;min-height:420px;display:flex;position:relative;overflow:hidden}.doc-cards-panel{flex-direction:column;gap:10px;height:100%;min-height:0;padding:12px 14px 16px;display:flex}.doc-cards-toolbar{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:8px;display:flex}.doc-cards-toolbar-label{color:var(--ink-soft,var(--text-muted));font-size:12px;font-weight:650}.doc-cards-count,.doc-cards-pairs{color:var(--text-muted);font-size:11px}.doc-cards-list{flex-direction:column;flex:1;gap:8px;min-height:0;padding-right:2px;display:flex;overflow:auto}.doc-card{border:1px solid var(--border-soft);background:var(--surface-1,#fff);border-radius:10px;flex-direction:column;flex-shrink:0;align-items:stretch;width:100%;transition:border-color .18s,box-shadow .18s,background .18s;display:flex;overflow:hidden;box-shadow:0 1px 2px #0f172a0a}.doc-card:hover{border-color:color-mix(in srgb, var(--brand-red,#c00000) 28%, var(--border-soft));box-shadow:0 2px 10px #0f172a0f}.doc-card.is-active{border-color:var(--brand-red,#c00000);background:color-mix(in srgb, var(--brand-red,#c00000) 5%, #fff);box-shadow:0 0 0 1px color-mix(in srgb, var(--brand-red,#c00000) 18%, transparent)}.doc-card-head{cursor:pointer;text-align:left;width:100%;font:inherit;color:inherit;background:0 0;border:none;align-items:center;gap:8px;padding:11px 12px;display:flex}.doc-card.is-active .doc-card-head,.doc-card.is-open .doc-card-head{background:color-mix(in srgb, var(--brand-red,#c00000) 6%, transparent)}.doc-card-head-text{min-width:0;color:var(--text-primary);word-break:break-word;flex:1;font-size:13px;font-weight:650;line-height:1.45}.doc-card-badge{font-variant-numeric:tabular-nums;color:var(--text-muted);background:var(--surface-2,#f3f4f6);border-radius:999px;flex-shrink:0;padding:2px 8px;font-size:11px}.doc-card-chevron{border-bottom:2px solid #94a3b8;border-right:2px solid #94a3b8;flex-shrink:0;width:8px;height:8px;transition:transform .18s cubic-bezier(.16,1,.3,1);transform:rotate(-45deg)}.doc-card-panel{border-top:1px dashed color-mix(in srgb, var(--border-soft) 80%, transparent);flex-direction:column;gap:10px;padding:0 12px 12px;animation:.18s doc-card-expand;display:flex}@keyframes doc-card-expand{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.doc-card-panel{animation:none}.doc-card-chevron{transition:none}}.doc-card-block{flex-direction:column;gap:4px;padding-top:8px;display:flex}.doc-card-block-label{letter-spacing:.06em;color:#64748b;text-transform:uppercase;font-size:10px;font-weight:700}.doc-card-block-text{color:var(--text-secondary,#475569);white-space:pre-wrap;word-break:break-word;margin:0;font-size:12.5px;line-height:1.6}.doc-card-block-text--quote{color:var(--text-primary);background:var(--surface-2,#f8fafc);border:1px solid var(--border-soft);border-radius:6px;padding:8px 10px}.doc-card-source-item{border:1px solid var(--border-soft);cursor:pointer;text-align:left;width:100%;font:inherit;color:inherit;background:#fff;border-radius:6px;flex-direction:column;align-items:flex-start;gap:2px;padding:7px 9px;transition:border-color .15s,background .15s;display:flex}.doc-card-source-item:hover:not(:disabled){border-color:color-mix(in srgb, var(--brand-red,#c00000) 35%, var(--border-soft));background:color-mix(in srgb, var(--brand-red,#c00000) 4%, #fff)}.doc-card-source-item:disabled{opacity:.5;cursor:not-allowed}.doc-card-footer{justify-content:flex-end;padding-top:4px;display:flex}.doc-card-back-btn{appearance:none;border:1px solid color-mix(in srgb, var(--brand-red,#c00000) 45%, var(--border-soft));background:color-mix(in srgb, var(--brand-red,#c00000) 8%, #fff);color:var(--brand-red,#c00000);cursor:pointer;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:650;transition:background .15s,border-color .15s}.doc-card-back-btn:hover:not(:disabled){background:color-mix(in srgb, var(--brand-red,#c00000) 14%, #fff);border-color:var(--brand-red,#c00000)}.doc-card-back-btn:disabled{opacity:.45;cursor:not-allowed}.modal-overlay:has(.modal-panel-pdf){z-index:200;justify-content:stretch;align-items:stretch;padding:8px;overflow:hidden}.modal-panel.modal-panel-pdf{flex-direction:column;gap:8px;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:10px 12px 8px;display:flex;overflow:hidden}.modal-panel-pdf .modal-head{flex-shrink:0;margin-bottom:0}.modal-panel-pdf .modal-title{margin-bottom:0}.artifact-trace-dialog{flex-direction:column;flex:1;gap:8px;min-height:0;display:flex}.artifact-trace-step-body pre{white-space:pre-wrap;background:#fff;flex:1;min-height:0;margin:0;padding:12px 14px;font-size:13px;line-height:1.55;overflow:auto}.pdf-source-modal{background:#edf0f3;flex-direction:column;flex:1;min-height:0;padding:4px 0 8px;display:flex;position:relative;overflow:auto}.pdf-source-modal:has(.pdf-viewer-embed){overflow:hidden}.pdf-source-status{text-align:center;color:var(--text-muted,#6b7c93);padding:24px;font-size:13px}.pdf-source-status.is-error{color:var(--brand-red,#c00000)}.pdf-viewer-embed{flex-direction:column;flex:1;align-items:stretch;gap:8px;min-width:0;min-height:0;padding:0 8px 8px;display:flex}.pdf-viewer-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;padding:0 4px;display:flex}.pdf-zoom-controls{flex-wrap:wrap;align-items:center;gap:4px;display:inline-flex}.pdf-zoom-btn{appearance:none;color:var(--ink-soft,#475569);cursor:pointer;background:#fff;border:1px solid #233a5624;border-radius:6px;padding:3px 8px;font-size:11px;font-weight:600}.pdf-zoom-btn.is-active{color:var(--accent-strong,#0f766e);background:#0f766e14;border-color:#0f766e59}.pdf-zoom-current{color:var(--muted,#6b7c93);padding-left:4px;font-size:11px}.pdf-viewer-meta{min-width:160px;color:var(--muted,#6b7c93);flex:1;padding:0 4px;font-size:12px}.pdf-hl-box{pointer-events:none;z-index:2;background:#ffd60a6b;border-radius:3px;outline:3px solid #e6a200f2;position:absolute;box-shadow:0 0 0 1px #ffffff8c}.pdf-hl-box-close{pointer-events:auto;color:#fff;cursor:pointer;transform-origin:0 0;z-index:3;background:#b91c1c;border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;padding:0;font-size:15px;font-weight:700;line-height:1;display:flex;position:absolute;top:-8px;left:-8px;box-shadow:0 1px 4px #0006}.pdf-hl-box-close:hover,.pdf-hl-box-close:focus-visible{background:#b91c1c;outline:none}.pdf-source-pages{box-sizing:border-box;flex-direction:column;flex:1;align-items:center;gap:16px;width:100%;min-height:0;max-height:none;padding:4px 8px 12px;display:flex;overflow:auto}.pdf-source-page-wrap.is-pending{opacity:.72}.pdf-source-page-placeholder{width:100%;height:100%;min-height:480px;color:var(--muted,#6b7c93);background:#f8fafc;border:1px dashed #233a561f;justify-content:center;align-items:center;font-size:13px;display:flex}.pdf-source-page-wrap{background:#fff;margin:0 auto;line-height:0;position:relative;overflow:visible;box-shadow:0 2px 12px #0f172a1f}.pdf-source-page-wrap.is-focus{outline-offset:3px;outline:2px solid #0f766e73}.pdf-source-page-label{z-index:3;color:#fff;pointer-events:none;background:#0f172aa6;border-radius:999px;padding:2px 8px;font-size:11px;line-height:1.4;position:absolute;bottom:8px;right:8px}.pdf-viewer-note{color:#b45309;margin-top:6px;font-size:12px}.artifact-trace-md{white-space:pre-wrap;word-break:break-word;background:#fff;flex:1;min-height:0;margin:0;padding:12px 14px;font-size:13px;line-height:1.55;overflow:auto}.artifact-trace-md mark.raw-hl{color:inherit;background:#facc1566;border-radius:2px;padding:0 2px}.sd-block-flash{outline-offset:2px;outline:2px solid #c000008c;transition:outline-color .8s}.word-like-redlines{--sd-tracked-changes-insert-border-width:0px;--sd-tracked-changes-insert-background:transparent;--sd-tracked-changes-insert-text:#c00000;--sd-tracked-changes-insert-decoration-line:underline;--sd-tracked-changes-insert-decoration-thickness:1.5px;--sd-tracked-changes-insert-underline-offset:2px;--sd-tracked-changes-delete-border-width:0px;--sd-tracked-changes-delete-background:transparent;--sd-tracked-changes-delete-text:#c00000;--sd-tracked-changes-delete-decoration-thickness:1.5px;--sd-ui-comments-insert-text:#c00000;--sd-ui-comments-delete-text:#c00000}.word-like-redlines .track-insert-dec.highlighted,.word-like-redlines .track-insert-dec.highlighted *{color:var(--sd-tracked-changes-insert-text)!important;-webkit-text-fill-color:var(--sd-tracked-changes-insert-text)!important}.word-like-redlines .track-delete-dec.highlighted,.word-like-redlines .track-delete-dec.highlighted *{color:var(--sd-tracked-changes-delete-text)!important;-webkit-text-fill-color:var(--sd-tracked-changes-delete-text)!important}.docx-editor-error{color:#b91c1c;background:#fef2f2;border-radius:6px;flex:none;margin:8px 12px 0;padding:8px 10px;font-size:12px}.doc-preview canvas{background:#fff;display:block}.doc-page-wrap{box-shadow:var(--shadow-md);margin-bottom:12px;line-height:0;display:inline-block;position:relative}.spin{animation:1s linear infinite doc-spin}@keyframes doc-spin{to{transform:rotate(360deg)}}.highlight-box{pointer-events:none;box-sizing:border-box;z-index:2;background:#f59e0b2e;border:2px solid #f59e0b;border-radius:2px;position:absolute}.highlight-box.is-active{animation:1.1s ease-out highlight-pulse}@keyframes highlight-pulse{0%{box-shadow:0 0 #f59e0b8c}to{box-shadow:0 0 0 10px #f59e0b00}}.doc-pager{color:var(--text-secondary);align-items:center;gap:10px;padding:8px 0;font-size:12px;display:flex;position:sticky;bottom:0}.pipeline-steps{border-bottom:1px solid var(--border-soft);flex-wrap:wrap;gap:8px;padding:12px 14px;display:flex}.pipeline-log{min-height:0;font-family:var(--font-mono);color:#cbd5e1;background:#0d1526;flex:1;padding:10px 14px;font-size:12px;overflow:auto}.pipeline-log-line{white-space:pre-wrap;word-break:break-all;padding:2px 0}.pipeline-log-line.event-thinking{color:#94a3b8;font-style:italic}.pipeline-log-line.event-tool{color:#38bdf8}.pipeline-log-line.event-error{color:#f87171}.pipeline-log-line.event-status{color:#4ade80}.chat-shell{flex:1;grid-template-columns:260px 1fr;min-height:0;display:grid;overflow:hidden}.chat-sidebar{border-right:1px solid var(--border-soft);background:var(--surface-1);flex-direction:column;min-height:0;display:flex}.chat-mode-toggle{gap:6px;padding:10px;display:flex}.chat-mode-toggle button{flex:1}.chat-session-item{cursor:pointer;border-left:2px solid #0000;flex-direction:column;gap:4px;padding:10px 14px;display:flex}.chat-session-item:hover{background:var(--surface-2)}.chat-session-item.active{background:var(--brand-blue-soft);border-left-color:var(--brand-blue)}.chat-session-item.pinned{background:#fff7ed}.chat-session-title{align-items:center;gap:6px;font-size:13px;font-weight:600;display:flex}.chat-session-sub{color:var(--text-muted);font-size:11px}.tag{border-radius:4px;align-items:center;padding:1px 6px;font-size:10px;font-weight:700;display:inline-flex}.tag-build{background:var(--brand-amber-soft);color:var(--brand-amber);border:1px solid var(--brand-amber-border)}.tag-query{background:var(--brand-blue-soft);color:var(--brand-blue);border:1px solid #bfdbfe}.chat-main{flex-direction:column;min-height:0;display:flex}.chat-messages{flex:1;min-height:0;padding:16px 20px;overflow:auto}.chat-message{max-width:720px;margin-bottom:16px}.chat-message.role-user{margin-left:auto}.chat-bubble{border-radius:var(--radius-md);white-space:pre-wrap;padding:10px 14px;font-size:14px;line-height:1.6}.role-user .chat-bubble{background:var(--brand-blue);color:#fff}.role-assistant .chat-bubble{background:var(--surface-2);color:var(--text-primary)}.chat-thinking{color:var(--text-muted);margin-bottom:4px;font-size:12px;font-style:italic}.chat-tool{color:var(--brand-cyan);font-size:12px;font-family:var(--font-mono);margin-bottom:4px}.chat-composer{background:#fff;border-top:0;border-radius:22px;outline:1px solid #233a5617;flex:none;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin:12px 16px 16px;padding:7px;display:grid;box-shadow:0 10px 32px #32435814}.chat-composer textarea{resize:none;width:100%;min-width:0;max-height:140px;color:var(--ink);background:0 0;border:0;outline:0;padding:9px 8px;font-family:inherit;font-size:13px;line-height:1.5}.chat-composer textarea:focus{outline:none}.chat-composer .btn{white-space:nowrap;flex-shrink:0;align-self:end}.graph-workbench{flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.graph-toolbar{border-bottom:1px solid #233a5612;justify-content:space-between;align-items:center;gap:14px;min-height:59px;padding:0 16px;display:flex}.graph-toolbar>div:first-child strong,.graph-toolbar>div:first-child span{display:block}.graph-toolbar strong{font-size:11px}.graph-toolbar span{color:var(--ink-faint);margin-top:3px;font-size:9px}.graph-toolbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;display:flex}.graph-view-switch{flex:none}.graph-canvas{background:#f4f7fb;flex:680px;width:100%;min-width:1px;height:680px;min-height:680px;position:relative;overflow:hidden}.graph-canvas:before{content:"";z-index:0;pointer-events:none;opacity:.44;background-image:linear-gradient(#2d436012 1px,#0000 1px),linear-gradient(90deg,#2d436012 1px,#0000 1px);background-size:44px 44px;position:absolute;inset:0}.graph-flow-frame{z-index:1;width:100%;height:100%;position:absolute;inset:0}.graph-flow-frame>.react-flow{width:100%!important;height:100%!important}.react-flow__node{will-change:transform}.react-flow__node.graph-node-shell-dot:hover{filter:none}.react-flow__node:hover{filter:drop-shadow(0 12px 22px #254e8429)}.react-flow__node.graph-zone-frame-shell:hover,.react-flow__node.graph-zone-shell:hover{filter:none}.graph-node-shell{box-shadow:none!important;background:0 0!important;border:0!important;overflow:visible!important}.graph-node-shell-dot{overflow:visible!important}.graph-node-shell.is-dim{opacity:.25;transition:opacity .15s}.graph-node-shell.is-cited,.graph-node-shell.is-neighbor{opacity:1;z-index:2}.graph-node-shell.is-cited .graph-node-card{box-shadow:0 0 0 2px #0f766e73,0 12px 28px #263f5e2e}.graph-node-shell-dot.is-cited .graph-free-orb{box-shadow:0 0 0 3px #0f766e59, 0 2px 6px color-mix(in srgb, var(--node-accent,#3a6fd8) 28%, transparent)}.knowledge-edge.is-dim,.fact-relation-edge.is-dim{opacity:.08}.knowledge-edge.is-cited path,.fact-relation-edge.is-cited path{stroke:#0f766eb8;stroke-width:1.6px}.graph-node-card{--node-accent:#3a6fd8;--node-soft:#3a6fd81a;border:1.5px solid var(--node-accent);color:#172033;text-align:center;background:linear-gradient(#fffffff5,#f8fbfee0);border-radius:16px;place-items:center;width:300px;height:100px;padding:14px 32px;font-size:20px;font-weight:720;line-height:1.35;animation:.48s cubic-bezier(.2,.8,.2,1) both graphNodeEnter,7.5s ease-in-out infinite graphNodeFloat;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 1px 1px #ffffffe6,0 9px 22px #263f5e17}.graph-node-card:before{content:"";background:var(--node-accent);width:10px;height:10px;box-shadow:0 0 0 6px var(--node-soft);border-radius:50%;position:absolute;top:50%;left:16px;transform:translateY(-50%)}.graph-node-card span{-webkit-line-clamp:2;overflow-wrap:anywhere;text-align:center;-webkit-box-orient:vertical;width:100%;min-width:0;max-width:100%;display:-webkit-box;overflow:hidden}.graph-zone-frame-shell{margin:0;pointer-events:none!important;z-index:-2!important;padding:0!important;overflow:hidden!important}.graph-zone-frame{box-sizing:border-box;border:1.5px solid color-mix(in srgb, var(--zone-accent,#6e6e73) 42%, transparent);background:linear-gradient(180deg, color-mix(in srgb, var(--zone-accent,#6e6e73) 7%, transparent), transparent 42%), #ffffff6b;border-radius:18px;flex-direction:column;align-items:stretch;width:100%;height:100%;display:flex;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff8c}.graph-zone-frame-title{box-sizing:border-box;text-align:center;background:#ffffffc7;border-radius:12px;flex:none;place-items:center;width:calc(100% - 24px);max-width:100%;height:44px;margin:12px 12px 0;display:grid;overflow:hidden;box-shadow:inset 0 0 0 1px #233a5614}.graph-zone-frame-title strong{text-align:center;letter-spacing:.04em;white-space:nowrap;width:100%;margin:0;padding:0 10px;font-size:18px;font-weight:750;line-height:1.2;display:block}.graph-zone-frame-entity,.graph-zone-frame-ontology{--zone-accent:#3a6fd8}.graph-zone-frame-attribute{--zone-accent:#c4783a}.graph-zone-frame-scenario{--zone-accent:#2a9a8d}.graph-zone-frame-material{--zone-accent:#6e6e73}.graph-zone-frame-subject{--zone-accent:#3a6fd8}.graph-zone-frame-event{--zone-accent:#2a9a8d}.graph-zone-frame-object{--zone-accent:#c4783a}.graph-zone-frame-conflict{--zone-accent:#c94550}.graph-zone-frame-title.graph-zone-entity strong,.graph-zone-frame-title.graph-zone-ontology strong,.graph-zone-frame-title.graph-zone-subject strong{color:#3a6fd8}.graph-zone-frame-title.graph-zone-attribute strong,.graph-zone-frame-title.graph-zone-conflict strong{color:#c94550}.graph-zone-frame-title.graph-zone-scenario strong,.graph-zone-frame-title.graph-zone-event strong{color:#2a9a8d}.graph-zone-frame-title.graph-zone-object strong{color:#c4783a}.graph-zone-frame-title.graph-zone-material strong{color:#6e6e73}.graph-node-entity{--node-accent:#c4783a;--node-soft:#c4783a1f}.graph-node-ontology,.graph-node-concept,.graph-node-topic{--node-accent:#3a6fd8;--node-soft:#3a6fd81f}.graph-node-attribute,.graph-node-rule,.graph-node-norm,.graph-node-principle,.graph-node-exception{--node-accent:#c94550;--node-soft:#c945501f}.graph-node-scenario,.graph-node-procedure,.graph-node-workflow{--node-accent:#2a9a8d;--node-soft:#2a9a8d1f}.graph-node-raw,.graph-node-source,.graph-node-file,.graph-node-material{--node-accent:#6e6e73;--node-soft:#6e6e731f}.graph-node-subject{--node-accent:#3a6fd8;--node-soft:#3a6fd81f}.graph-node-event{--node-accent:#2a9a8d;--node-soft:#2a9a8d1f}.graph-node-object{--node-accent:#c4783a;--node-soft:#c4783a1f}.graph-node-conflict{--node-accent:#c94550;--node-soft:#c945501f}.graph-free-node{flex-direction:column;align-items:center;gap:6px;animation:.36s cubic-bezier(.2,.8,.2,1) both graphNodeEnter;display:flex;position:relative;overflow:visible}.graph-free-node.graph-node-entity{--node-accent:#c4783a;--node-soft:#c4783a2e}.graph-free-node.graph-node-ontology,.graph-free-node.graph-node-concept,.graph-free-node.graph-node-topic{--node-accent:#3a6fd8;--node-soft:#3a6fd82e}.graph-free-node.graph-node-attribute,.graph-free-node.graph-node-rule,.graph-free-node.graph-node-norm{--node-accent:#c94550;--node-soft:#c945502e}.graph-free-node.graph-node-scenario,.graph-free-node.graph-node-procedure,.graph-free-node.graph-node-workflow,.graph-free-node.graph-node-event{--node-accent:#2a9a8d;--node-soft:#2a9a8d2e}.graph-free-node.graph-node-material{--node-accent:#6e6e73;--node-soft:#6e6e732e}.graph-free-node.graph-node-subject{--node-accent:#3a6fd8;--node-soft:#3a6fd82e}.graph-free-node.graph-node-object{--node-accent:#c4783a;--node-soft:#c4783a2e}.graph-free-node.graph-node-conflict{--node-accent:#c94550;--node-soft:#c945502e}.graph-free-orb{box-sizing:border-box;color:#fffffff5;background:linear-gradient(145deg, color-mix(in srgb, var(--node-accent,#3a6fd8) 72%, #fff), var(--node-accent,#3a6fd8));border:1.5px solid color-mix(in srgb, var(--node-accent,#3a6fd8) 55%, #1a1a1a);box-shadow:0 0 0 2px color-mix(in srgb, var(--node-accent,#3a6fd8) 22%, transparent), 0 2px 6px color-mix(in srgb, var(--node-accent,#3a6fd8) 28%, transparent), inset 0 1px 0 #ffffff59;border-radius:50%;place-items:center;display:grid}.graph-free-icon{-webkit-user-select:none;user-select:none;pointer-events:none;text-shadow:0 1px 1px #0003;font-weight:600;line-height:1}.graph-free-label{color:#3a3a3c;text-align:center;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;background:#ffffffeb;border-radius:8px;max-width:min(148px,220%);padding:2px 8px;font-size:11px;font-weight:600;line-height:1.25;overflow:hidden;box-shadow:0 1px 2px #0000000f}.graph-free-node .graph-node-handle{pointer-events:none;opacity:0!important;border:0!important;width:1px!important;min-width:0!important;height:1px!important;min-height:0!important}.graph-node-handle{opacity:.72;background:var(--node-accent)!important;border:1px solid #fffc!important;width:9px!important;height:9px!important}.graph-legend{z-index:4;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffffe0;border-radius:12px;flex-wrap:wrap;gap:8px;max-width:calc(100% - 24px);padding:10px 12px;display:flex;position:absolute;top:12px;left:12px;box-shadow:0 5px 18px #32435814}.graph-legend>span{color:var(--ink-soft);align-items:center;gap:6px;font-size:14px;display:flex}.graph-legend>span strong{color:var(--ink);font-size:14px}.graph-legend-dot{background:#3a6fd8;border-radius:50%;width:9px;height:9px;display:inline-block}.graph-legend-entity{background:#c4783a}.graph-legend-ontology,.graph-legend-concept,.graph-legend-topic{background:#3a6fd8}.graph-legend-attribute,.graph-legend-rule,.graph-legend-norm,.graph-legend-principle,.graph-legend-exception{background:#c94550}.graph-legend-scenario,.graph-legend-procedure,.graph-legend-workflow{background:#2a9a8d}.graph-legend-raw,.graph-legend-source,.graph-legend-file,.graph-legend-material{background:#6e6e73}.graph-legend-subject{background:#3a6fd8}.graph-legend-event{background:#2a9a8d}.graph-legend-object{background:#c4783a}.graph-legend-conflict{background:#c94550}.knowledge-edge path{stroke:#41556e5c;stroke-width:1.5px}.knowledge-edge-free path{stroke:#41556e6b;stroke-width:1px}.knowledge-edge-dynamic path{stroke-dasharray:10 12;animation:9s linear infinite graphEdgeFlow}.react-flow__edge-text{fill:#52647b;font-size:9px}.react-flow__edge-textbg{fill:#f7f9fbeb}.react-flow__controls{overflow:hidden;box-shadow:var(--shadow-soft)!important;border:0!important;border-radius:13px!important}.react-flow__controls button{border:0!important;border-bottom:1px solid #233a5612!important}.react-flow__minimap{box-shadow:var(--shadow-soft);overflow:hidden;border-radius:14px!important}@keyframes graphNodeEnter{0%{opacity:0;filter:blur(2px);scale:.88}to{opacity:1;filter:blur();scale:1}}@keyframes graphNodeFloat{0%,to{translate:0}50%{translate:0 -3px}}@keyframes graphEdgeFlow{to{stroke-dashoffset:-44px}}.graph-inspector{z-index:5;width:min(310px,100% - 28px);box-shadow:var(--shadow-float);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#fcfdfef0;border-radius:21px;outline:1px solid #233a5617;padding:20px;position:absolute;top:74px;right:14px}.graph-inspector>.icon-button{position:absolute;top:10px;right:10px}.graph-inspector>span{color:var(--ink-faint);text-transform:uppercase;letter-spacing:.1em;font-size:9px}.graph-inspector h3{margin-top:9px;font-size:18px}.graph-inspector p{color:var(--ink-soft);margin-top:10px;font-size:10px;line-height:1.7}.graph-inspector dl{margin:15px 0 0}.graph-inspector dl div{border-top:1px solid #233a5612;justify-content:space-between;gap:10px;padding:8px 0;font-size:9px;display:flex}.graph-inspector dt{color:var(--ink-faint)}.graph-inspector dd{text-align:right;overflow-wrap:anywhere;margin:0}.graph-inspector-links{flex-direction:column;gap:8px;margin:12px 0 0;padding:0;list-style:none;display:flex}.graph-inspector-links li{flex-direction:column;gap:2px;display:flex}.graph-inspector-links small{color:var(--ink-faint);font-size:10px}.graph-inspector-links strong{font-size:12px}.graph-inspector-links li.is-empty{color:var(--ink-faint);font-size:12px}.graph-chat-form{align-items:flex-end;gap:9px;display:flex}.graph-chat-form textarea{resize:vertical;flex:1;padding:12px}.agent-output{color:var(--accent);background:var(--accent-soft);border-radius:16px;grid-template-columns:auto minmax(0,1fr);gap:10px;margin-top:15px;padding:15px;display:grid}.agent-output pre{color:var(--ink-soft);white-space:pre-wrap;margin:0;font-size:10px;line-height:1.7}.icon-button{width:34px;height:34px;color:var(--ink-soft);cursor:pointer;transition:transform .4s var(--ease), color .4s var(--ease), background .4s var(--ease);background:0 0;border:0;border-radius:50%;place-items:center;display:inline-grid}.icon-button:hover{color:var(--ink);background:#ffffffd1;transform:scale(1.05)}.form-stack{flex-direction:column;gap:15px;display:flex}.form-stack .field{color:var(--ink-soft);flex-direction:column;gap:6px;font-size:12px;display:flex}.form-stack .field input,.form-stack .field select,.form-stack .field textarea{font:inherit;background:#fff;border:1px solid #233a561f;border-radius:12px;padding:10px 12px}.form-grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.field-error{color:var(--red);margin:0;font-size:12px}.empty-state{color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:60px 20px;font-size:13px;display:flex}.modal-overlay{z-index:200;background:#0a0f1e80;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-panel{background:var(--surface-1);border-radius:var(--radius-lg);width:520px;max-width:calc(100vw - 40px);max-height:calc(100vh - 48px);box-shadow:var(--shadow-lg);padding:20px;overflow:auto}.modal-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.modal-title{flex:1;min-width:0;margin-bottom:0;font-size:16px;font-weight:700}.modal-close{width:32px;height:32px;color:var(--text-secondary,#5b6b7c);cursor:pointer;background:0 0;border:0;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.modal-close:hover,.modal-close:focus-visible{color:var(--text-primary,#1f2a37);background:#0f172a12;outline:none}.form-field{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.form-field label{color:var(--text-secondary);font-size:12px;font-weight:600}.form-field input,.form-field textarea{border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:8px 10px;font-family:inherit;font-size:13px}.form-field input:focus,.form-field textarea:focus{border-color:var(--brand-blue);outline:none}.modal-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.modal-panel-batch-dl{flex-direction:column;width:min(640px,92vw);max-height:85vh;display:flex}.batch-dl-tree{flex-direction:column;gap:8px;min-height:200px;display:flex}.batch-dl-toolbar{gap:8px;display:flex}.batch-dl-scroll{border:1px solid var(--border-soft);background:var(--surface-1,#fff);border-radius:8px;max-height:360px;padding:8px 0;overflow:auto}.batch-dl-row{cursor:pointer;align-items:center;gap:8px;padding:6px 12px 6px 8px;font-size:13px;display:flex}.batch-dl-row:hover{background:#00000008}.batch-dl-expander{color:inherit;cursor:pointer;background:0 0;border:none;padding:0;display:inline-flex}.batch-dl-count{color:var(--text-muted,#888);margin-left:auto;font-size:12px}.batch-dl-file-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.batch-dl-empty,.batch-dl-loading{text-align:center;color:var(--text-muted,#888);justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.batch-dl-tree.is-busy{opacity:.72;pointer-events:none}.batch-dl-progress{border:1px solid var(--border-soft);background:var(--surface-1,#fff);border-radius:8px;flex-direction:column;gap:8px;margin-top:12px;padding:10px 12px;display:flex}.batch-dl-progress-meta{justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;display:flex}.batch-dl-progress-meta strong{font-size:13px;font-weight:600}.batch-dl-progress-meta span{color:var(--text-muted,#888);white-space:nowrap}.batch-dl-progress .fact-upload-track{height:6px}.topbar-user{border-left:1px solid #ffffff29;align-items:center;gap:10px;padding-left:14px;display:flex}.topbar-user-name{color:#f5f7fbd9;white-space:nowrap;font-size:13px}.btn-lg{border-radius:var(--radius-md);padding:12px 22px;font-size:15px}.auth-page{background:radial-gradient(circle at 18% 20%,#14b8a638,#0000 22rem),radial-gradient(circle at 88% 78%,#0f766e2e,#0000 24rem),linear-gradient(145deg,#14242a,#0c1719 70%);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-card{width:400px;max-width:100%;box-shadow:var(--shadow-lg);background:#fcfdfef5;border-radius:18px;outline:1px solid #ffffff59;padding:32px}.auth-brand{color:var(--text-secondary);align-items:center;gap:10px;margin-bottom:20px;font-size:13px;font-weight:600;display:inline-flex}.auth-title{letter-spacing:-.02em;margin:0 0 6px;font-size:22px;font-weight:700}.auth-subtitle{color:var(--text-muted);margin:0 0 24px;font-size:13px}.auth-error{color:var(--brand-red);background:var(--brand-red-soft);border:1px solid var(--brand-red-border);border-radius:var(--radius-sm);margin-bottom:14px;padding:8px 10px;font-size:12px}.auth-switch{text-align:center;color:var(--text-muted);margin-top:20px;font-size:13px}.auth-switch a{color:var(--brand-blue);font-weight:600}.agent-panel{flex:1;grid-template-columns:260px 1fr;min-width:0;min-height:0;display:grid;overflow:hidden}.agent-sessions{border-right:1px solid var(--border-soft);background:var(--surface-1);flex-direction:column;min-height:0;display:flex}.agent-sessions-head{border-bottom:1px solid var(--border-soft);justify-content:space-between;align-items:center;padding:12px 14px;font-size:13px;display:flex}.agent-session-list{flex:1;overflow-y:auto}.agent-session-row{cursor:pointer;border-left:2px solid #0000;align-items:center;gap:8px;padding:10px 12px;display:flex}.agent-session-row:hover{background:var(--surface-2)}.agent-session-row.active{background:var(--accent-soft);border-left-color:var(--accent)}.agent-session-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.agent-session-main strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.agent-session-main small{color:var(--text-muted);font-size:11px}.agent-main{background:var(--surface-solid);flex-direction:column;min-width:0;min-height:0;display:flex}.agent-main-head{border-bottom:1px solid var(--border-soft);align-items:center;gap:12px;padding:14px 20px;display:flex}.agent-main-head p{color:var(--text-muted);margin:2px 0 0;font-size:12px}.agent-avatar{color:#fff;background:var(--agent-gradient);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.agent-messages{flex-direction:column;flex:1;gap:14px;padding:20px 24px;display:flex;overflow-y:auto}.agent-msg{max-width:720px;display:flex}.agent-msg-user{align-self:flex-end}.agent-msg-assistant{align-self:flex-start}.agent-msg-bubble{border-radius:var(--radius-md);white-space:pre-wrap;border:1px solid var(--border-soft);background:var(--surface-1);box-shadow:var(--shadow-sm);padding:12px 14px;font-size:14px;line-height:1.65}.agent-msg-user .agent-msg-bubble{background:var(--accent-soft);border-color:#0f766e33}.agent-compose{border-top:1px solid var(--border-soft);background:var(--surface-1);flex-direction:column;gap:10px;padding:12px 20px 16px;display:flex}.agent-prompt-chips{flex-wrap:wrap;gap:6px;display:flex}.agent-chip{color:var(--accent);cursor:pointer;background:#0f766e14;border:1px solid #0f766e33;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:500}.agent-chip:hover{background:#0f766e24}.agent-upload-row{align-items:center;gap:10px;display:flex}.agent-upload-hint{color:var(--text-muted);font-size:12px}.agent-input-row{align-items:flex-end;gap:10px;display:flex}.agent-input-row textarea{resize:vertical;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-solid);flex:1;min-height:56px;padding:10px 12px;font-family:inherit;font-size:13px}.agent-input-row textarea:focus{border-color:var(--accent);outline:none}@media (width<=900px){.agent-panel{grid-template-columns:1fr}.agent-sessions{display:none}}.kb-workspace-page{flex-direction:column;flex:1;width:100%;min-width:0;min-height:0;display:flex;overflow:hidden}.kb-workspace-header{flex:none;grid-template-columns:auto minmax(240px,1fr);align-items:center;gap:18px;min-height:72px;padding:8px 4px 14px;display:grid}.back-link{color:var(--ink-faint);transition:color .35s var(--ease);align-items:center;gap:6px;font-size:11px;font-weight:650;display:inline-flex}.back-link:hover{color:var(--accent)}.kb-title-lockup{align-items:center;gap:13px;min-width:0;display:flex}.kb-title-icon{width:48px;height:48px;color:var(--accent);background:var(--accent-soft);border-radius:17px;flex-shrink:0;place-items:center;display:grid}.kb-title-lockup h1{overflow-wrap:anywhere;letter-spacing:-.045em;color:var(--ink);margin:0;font-size:24px;line-height:1.18}.kb-title-lockup p{text-overflow:ellipsis;white-space:nowrap;color:var(--ink-faint);margin:4px 0 0;font-size:10px;overflow:hidden}.kb-workspace-main{flex:1;grid-template-columns:168px minmax(0,1fr);align-items:stretch;gap:14px;min-width:0;min-height:0;display:grid}.workspace-rail{min-width:0;min-height:0;box-shadow:inset 0 1px 0 #ffffffe6, var(--shadow-soft);background:#fafcfed6;border-radius:22px;outline:1px solid #233a561a;flex-direction:column;gap:4px;padding:12px 10px;display:flex;overflow-y:auto}.workspace-rail-kicker{color:var(--ink-faint);font:650 10px var(--font-mono);letter-spacing:.12em;text-transform:uppercase;padding:2px 10px 10px;display:block}.workspace-rail-link{width:100%;min-height:42px;color:var(--ink-soft);text-align:left;cursor:pointer;transition:transform .45s var(--ease), color .45s var(--ease), background .45s var(--ease);background:0 0;border:0;border-radius:14px;align-items:center;gap:10px;padding:0 12px;font-size:13px;font-weight:600;display:flex}.workspace-rail-link:hover{color:var(--ink);background:#ffffffbd;transform:translate(2px)}.workspace-rail-link.active{color:var(--accent-strong);background:#fff;box-shadow:inset 0 1px #ffffffe6,0 7px 18px #32435814}.workspace-body,.kb-stage{background:#fafcfed9;border-radius:25px;outline:1px solid #233a5614;flex-direction:column;width:100%;min-width:0;min-height:0;display:flex;overflow:hidden;box-shadow:inset 0 1px 1px #fffffff2}.workspace-body-overview{box-shadow:none;background:0 0;outline:0;padding:2px 0 8px;overflow:auto}.kb-overview{flex-direction:column;gap:14px;display:flex}.overview-graph{min-width:0}.overview-graph .graph-workbench{background:#fff;border-radius:18px;height:100%;min-height:0;overflow:hidden;box-shadow:inset 0 0 0 1px #233a5614}.overview-stat-grid{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.overview-stat-card{background:#fafcfeeb;border-radius:20px;outline:1px solid #233a5614;padding:18px 20px;box-shadow:inset 0 1px 1px #fffffff2}.overview-stat-label,.overview-stat-value{display:block}.overview-stat-label{color:var(--ink-faint);letter-spacing:.06em;font-size:10px}.overview-stat-value{letter-spacing:-.05em;color:var(--ink);margin-top:12px;font-size:28px}.overview-columns{grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:14px;display:grid}.overview-panel{background:#fafcfef0;border-radius:22px;outline:1px solid #233a5614;padding:20px;box-shadow:inset 0 1px 1px #fffffff2}.overview-section-head{justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:16px;display:flex}.overview-section-head h2{margin:0;font-size:15px}.overview-section-head p{color:var(--ink-faint);margin:5px 0 0;font-size:11px;line-height:1.55}.text-link{color:var(--accent);cursor:pointer;background:0 0;border:0;font-size:11px;font-weight:650}.overview-file-list{grid-template-columns:1fr 1fr;gap:6px;display:grid}.overview-file-list button{min-width:0;color:var(--ink-soft);text-align:left;cursor:pointer;background:#f2f5f8cc;border:0;border-radius:12px;align-items:center;gap:8px;padding:10px 12px;font-size:11px;display:flex}.overview-file-list button:hover{color:var(--accent-strong);background:#fff;box-shadow:0 6px 16px #3243580f}.overview-file-list span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overview-shortcut-list{flex-direction:column;gap:6px;display:flex}.overview-shortcut-list>button,.overview-shortcut-static{width:100%;color:var(--ink-soft);text-align:left;cursor:pointer;background:#f2f5f8b8;border:0;border-radius:14px;align-items:flex-start;gap:10px;padding:12px;display:flex}.overview-shortcut-list>button:hover{color:var(--ink);background:#fff;box-shadow:0 6px 16px #3243580f}.overview-shortcut-list strong,.overview-shortcut-static strong{color:var(--ink);font-size:12px;display:block}.overview-shortcut-list small,.overview-shortcut-static small{color:var(--ink-faint);margin-top:3px;font-size:10px;display:block}.overview-shortcut-static{cursor:default;opacity:.9}.kb-stage-graph{min-height:650px}.wiki-link{color:var(--accent,#2a5bab);font:inherit;text-underline-offset:2px;cursor:pointer;background:0 0;border:0;padding:0;font-weight:650;-webkit-text-decoration:underline #2a5bab59;text-decoration:underline #2a5bab59}.wiki-link:hover{color:#17458f;text-decoration-color:#17458f8c}.message-content .wiki-link.ref-link{color:var(--accent,#2a5bab);border-bottom:1px dashed var(--accent,#2a5bab);text-decoration:none}.message-content .wiki-link.ref-link:hover{color:#17458f}.build-chat-workbench .chat-messages,.chat-workbench .chat-messages,.project-agent-workbench .chat-messages,.kb-chat-messages{background:#fff;flex-direction:column;flex:1;gap:18px;min-height:0;padding:28px;display:flex;overflow-y:auto}.chat-messages-shell{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.chat-messages-shell>.chat-messages{flex:1;min-height:0}.chat-scroll-jump{z-index:6;color:#243447;cursor:pointer;background:#fff;border:1px solid #233a561f;border-radius:999px;justify-content:center;align-items:center;width:36px;height:36px;margin:0;padding:0;display:inline-flex;position:absolute;top:10px;left:50%;transform:translate(-50%);box-shadow:0 6px 18px #0f172a1f}.chat-scroll-jump:hover{background:#f7f9fc;border-color:#233a5638}.chat-scroll-jump:focus-visible{outline-offset:2px;outline:2px solid #2563eb73}.build-chat-workbench .message,.chat-workbench .message,.project-agent-workbench .message,.kb-chat-messages .message{gap:10px;width:min(100%,860px);max-width:none;margin:0;display:flex}.build-chat-workbench .message-user,.chat-workbench .message-user,.project-agent-workbench .message-user,.kb-chat-messages .message-user{flex-direction:row-reverse;align-self:flex-end}.message-avatar{width:31px;height:31px;color:var(--accent);background:var(--accent-soft);border-radius:11px;flex-shrink:0;place-items:center;font-size:9px;font-weight:700;display:grid}.message-user .message-avatar{color:#fff;background:#33465f}.build-chat-workbench .message-content,.chat-workbench .message-content,.project-agent-workbench .message-content,.kb-chat-messages .message-content{background:#fff;border-radius:16px;width:fit-content;min-width:0;max-width:min(760px,100% - 42px);padding:12px 14px;box-shadow:inset 0 0 0 1px #233a5612}.build-chat-workbench .message-user .message-content,.chat-workbench .message-user .message-content,.project-agent-workbench .message-user .message-content,.kb-chat-messages .message-user .message-content{background:linear-gradient(135deg,#f1f5f9,#0f766e1a)}.message-content p,.message-content li{margin:.4em 0;font-size:12px;line-height:1.7}.message-content>:first-child{margin-top:0}.message-content>:last-child{margin-bottom:0}.message-content ul,.message-content ol{margin:.4em 0;padding-left:1.4em}.message-content h1,.message-content h2,.message-content h3{margin:12px 0 7px;font-size:13px}.message-content h1:first-child,.message-content h2:first-child,.message-content h3:first-child{margin-top:2px}.message-content a{color:var(--accent);-webkit-text-decoration:underline #0f766e59;text-decoration:underline #0f766e59}.message-content hr{border:0;border-top:1px solid #233a5617;margin:12px 0}.message-content blockquote{color:var(--ink-soft);border-left:3px solid #0f766e4d;margin:8px 0;padding:4px 12px}.message-content code{background:var(--surface-muted);border-radius:5px;padding:2px 5px;font-size:11px}.message-content pre{background:#1c2636;border-radius:12px;margin:8px 0;padding:11px 13px;overflow-x:auto}.message-content pre code{color:#d9e2f0;background:0 0;padding:0;font-size:11px;line-height:1.65}.message-content table{border-collapse:collapse;border-radius:10px;width:100%;margin:10px 0;font-size:11px;overflow:hidden;box-shadow:inset 0 0 0 1px #233a5617}.message-content th,.message-content td{text-align:left;border-bottom:1px solid #233a5614;padding:7px 10px}.message-content th{color:var(--ink-soft);background:#233a560d;font-weight:700}.message-content tr:last-child td{border-bottom:0}.message-content tbody tr:nth-child(2n){background:#233a5605}.tool-chip{color:var(--accent);background:var(--accent-soft);border-radius:999px;align-items:center;gap:5px;margin-bottom:8px;padding:4px 10px;font-size:9px;font-weight:650;display:inline-flex}.thinking{background:#fff;border-radius:12px;margin:0 0 10px;overflow:hidden;box-shadow:inset 0 0 0 1px #233a5614}.thinking summary,.thinking-head{color:var(--ink-faint);background:var(--surface-muted);align-items:center;gap:6px;padding:8px 12px;font-size:10px;font-weight:650;line-height:1.4;display:flex}.thinking[open] summary,.thinking-open .thinking-head{border-bottom:1px solid #233a5612}.thinking pre{white-space:pre-wrap;color:var(--ink-faint);font-size:10px;line-height:1.65;font-family:var(--font-mono);background:#fff;margin:0;padding:10px 12px;overflow-x:auto}.build-message-files{flex-wrap:wrap;gap:5px;margin-top:9px;display:flex}.stream-viewer{flex-direction:column;gap:8px;display:flex}.stream-viewer-text{font-size:13px;line-height:1.65}.stream-viewer-tool{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.stream-viewer-tool-input{color:var(--ink-faint);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:10px;overflow:hidden}.stream-viewer-banner{border-radius:8px;padding:6px 10px;font-size:11px;font-weight:650}.stream-viewer-banner.is-success{color:#166534;background:#22c55e1f}.stream-viewer-banner.is-error{color:#b91c1c;background:#ef44441a}.build-message-files span{max-width:260px;color:var(--accent);background:var(--accent-soft);text-overflow:ellipsis;white-space:nowrap;border-radius:8px;align-items:center;gap:5px;padding:5px 8px;font-size:10px;display:inline-flex;overflow:hidden}.project-agent-workbench{background:#fff;flex:1;height:100%;min-height:0;overflow:hidden}.chat-upload-notice{color:var(--green);background:var(--green-soft);border-radius:10px;margin:0 16px 8px;padding:8px 10px;font-size:12px;line-height:1.45}.chat-upload-notice.is-error{color:var(--red);background:var(--red-soft)}@keyframes fact-upload-pulse{0%{transform:translate(-120%)}to{transform:translate(320%)}}.fact-upload-retry{align-items:center;gap:4px;min-height:28px;padding:0 8px;font-size:11px;display:inline-flex}.create-mount-note{background:#f3faf8;border:1px solid #d7ece7;border-radius:10px;margin:0 0 14px;padding:10px 12px}.create-mount-note p{color:#475569;margin:0;font-size:12px;line-height:1.5}.skill-chip-row{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.skill-chip{color:#0f766e;background:#fff;border:1px solid #cfe8e2;border-radius:999px;padding:2px 8px;font-size:11px}.build-chat-workbench,.chat-workbench,.file-workbench,.versions-workbench{flex:1;min-height:0;display:flex;overflow:hidden}.file-upload-notice{color:#0f766e;background:#ecfdf5;border-radius:10px;margin:8px 12px 0;padding:8px 10px;font-size:12px;line-height:1.45}.file-upload-error{color:var(--red);background:var(--red-soft)}.file-tree-list{padding:9px}.knowledge-catalog-section>summary::-webkit-details-marker{display:none}.knowledge-catalog-group>summary::-webkit-details-marker{display:none}.knowledge-catalog-section>summary strong{font-size:13px;display:block}.knowledge-catalog-section>summary>b{min-width:25px;color:var(--ink-soft);text-align:center;background:#e7ecf2e6;border-radius:999px;padding:3px 6px;font-size:11px;font-weight:650}.knowledge-catalog-files .file-row strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650;display:block;overflow:hidden}.hierarchy-toggle{width:18px;height:24px;color:var(--ink-faint);place-items:center;padding:0;display:grid}.editor-toolbar>div:first-child strong,.editor-toolbar>div:first-child span{display:block}.editor-toolbar>div:first-child span{color:var(--ink-faint);margin-top:3px;font-size:12px}.editor-document{flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.file-workbench .markdown-preview{color:var(--ink);flex:1;padding:28px clamp(20px,4vw,56px);line-height:1.75;overflow-y:auto}.file-workbench .markdown-preview h1{letter-spacing:-.03em;margin:0 0 20px;font-size:26px}.file-workbench .markdown-preview h2{margin:24px 0 12px;font-size:18px}.file-workbench .markdown-preview h3{margin:18px 0 10px}.file-workbench .markdown-preview p,.file-workbench .markdown-preview li{font-size:13px}.file-workbench .markdown-preview table{border-collapse:collapse;width:100%;font-size:12px}.file-workbench .markdown-preview th,.file-workbench .markdown-preview td{text-align:left;border-bottom:1px solid #233a5614;padding:8px}.file-workbench .markdown-preview code{background:var(--surface-muted);border-radius:5px;padding:2px 5px}.modal-desc{color:var(--ink-faint);margin:0 0 14px;font-size:12px;line-height:1.5}.materials-workbench .materials-preview{flex:1;min-height:0;overflow:auto}.materials-workbench .markdown-preview{color:var(--text-primary);padding:16px 18px;font-size:14px;line-height:1.7}.materials-raw-view{white-space:pre-wrap;min-height:100%;margin:0}.editor-actions{align-items:center;gap:8px;display:flex}.editor-error{color:var(--brand-red);background:var(--brand-red-soft);border-radius:10px;margin:0 16px 12px;padding:8px 10px;font-size:12px}@media (width<=1100px){.editor-content-grid{grid-template-columns:1fr}.file-relations{border-top:1px solid #233a5614;border-left:0;max-height:280px}}.build-chat-workbench{display:flex}.build-chat-workbench .chat-stage,.chat-workbench .chat-stage,.editor-stage,.diff-stage{flex-direction:column;flex:1;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.chat-workbench,.file-workbench,.versions-workbench{grid-template-columns:300px minmax(0,1fr);display:grid}.file-sidebar,.session-sidebar,.commit-list{border-right:1px solid var(--line);background:#f3f6f9;flex-direction:column;min-width:0;min-height:0;display:flex}.file-sidebar-head,.session-sidebar-head,.commit-list-head,.build-chat-toolbar,.editor-toolbar,.diff-toolbar{border-bottom:1px solid var(--line);background:#ffffffb8;flex:none;justify-content:space-between;align-items:center;gap:10px;min-height:48px;padding:0 14px;display:flex}.file-sidebar-head strong,.session-sidebar-head strong,.commit-list-head strong,.build-chat-toolbar,.editor-toolbar strong,.diff-toolbar strong{color:var(--ink);font-size:12px;font-weight:650}.file-sidebar-head strong span,.diff-toolbar span,.editor-notice{color:var(--ink-faint);margin-left:8px;font-size:12px;font-weight:500}.file-sidebar-body,.session-sidebar-body,.commit-list-body{flex:1;min-height:0;overflow-y:auto}.session-row-wrap{border-radius:12px;align-items:stretch;display:flex;position:relative}.session-row-wrap:hover{background:#ffffff8c}.session-row-wrap.active,.commit-row.active,.file-row.active{color:var(--accent);background:#fff;box-shadow:0 5px 14px #3243580e}.session-row-wrap.active .session-row strong,.file-row.active span{color:var(--accent-strong)}.build-attachment-queue{gap:6px;width:min(920px,100% - 32px);margin:0 auto -3px;padding:5px 1px;display:flex;overflow-x:auto}.build-attachment-queue>span{max-width:280px;min-height:30px;color:var(--ink-soft);background:var(--surface-muted);border-radius:10px;outline:1px solid #233a5612;flex:none;grid-template-columns:minmax(0,1fr) 22px;align-items:center;gap:6px;padding:3px 4px 3px 9px;display:grid}.build-attachment-queue b{text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:600;overflow:hidden}.build-attachment-queue button{width:22px;height:22px;color:var(--ink-faint);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;display:grid}.build-attachment-queue button:hover{color:var(--red);background:var(--red-soft)}.kb-stage .chat-composer,.build-chat-workbench .chat-composer,.chat-workbench .chat-composer{box-sizing:border-box;background:#fff;border:0;border-radius:22px;outline:1px solid #233a5617;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:12px 16px 16px;padding:7px;display:grid;box-shadow:0 10px 32px #32435814}.kb-stage .chat-composer textarea,.build-chat-workbench .chat-composer textarea,.chat-workbench .chat-composer textarea{resize:none;width:100%;min-width:0;min-height:40px;max-height:140px;color:var(--ink);background:0 0;border:0;outline:0;padding:9px 8px;font-family:inherit;font-size:13px;line-height:1.5}.composer-attach{width:39px;height:39px;color:var(--ink-soft);background:var(--surface-muted);cursor:pointer;border:0;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.composer-attach:hover:not(:disabled){color:var(--accent-strong);background:var(--accent-soft)}.composer-attach:disabled{opacity:.4;cursor:not-allowed}.agent-session-composer{box-sizing:border-box;background:linear-gradient(#fafcfe00 0%,#f5f8fceb 28%,#f3f6fa 100%);border-top:1px solid #233a5612;flex-direction:column;flex-shrink:0;gap:8px;width:100%;margin:0;padding:10px 14px 14px;display:flex;overflow:visible}.agent-composer-attachments{gap:6px;padding:0 2px 2px;display:flex;overflow-x:auto}.agent-composer-attachments>span{max-width:280px;min-height:30px;color:var(--ink-soft);background:#fff;border-radius:10px;outline:1px solid #233a5614;flex:none;grid-template-columns:auto minmax(0,1fr) 22px;align-items:center;gap:6px;padding:3px 4px 3px 9px;display:grid}.agent-composer-attachments b{text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;overflow:hidden}.agent-composer-attachments button{width:22px;height:22px;color:var(--ink-faint);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;display:grid}.agent-composer-attachments button:hover{color:var(--red);background:var(--red-soft)}.agent-composer-shell{box-sizing:border-box;background:#fff;border-radius:18px;outline:1px solid #233a561a;flex-direction:column;gap:8px;width:100%;padding:12px 14px;display:flex;overflow:visible;box-shadow:0 8px 28px #32435812}.agent-composer-shell textarea{resize:none;width:100%;min-height:52px;max-height:160px;color:var(--ink);background:0 0;border:0;outline:0;padding:2px 2px 4px;font-family:inherit;font-size:13px;line-height:1.55;display:block}.agent-composer-shell textarea::placeholder{color:#7b8797}.agent-composer-toolbar{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.agent-composer-controls{flex-wrap:nowrap;flex:auto;align-items:center;gap:6px;min-width:0;display:flex}.agent-mode-dropdown{z-index:5;flex:0 auto;min-width:0;position:relative}.agent-mode-trigger{min-width:0;max-width:148px;min-height:36px;color:var(--ink-soft);background:var(--surface-muted);cursor:pointer;border:0;border-radius:12px;outline:1px solid #233a5614;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;padding:4px 8px 4px 5px;transition:background .2s,outline-color .2s,box-shadow .2s;display:inline-grid}.agent-mode-trigger:hover:not(:disabled),.agent-mode-dropdown.open .agent-mode-trigger{background:#fff;outline-color:#0f766e47;box-shadow:0 4px 14px #32435814}.agent-mode-trigger:disabled{opacity:.45;cursor:default}.agent-mode-trigger.is-static{pointer-events:none;box-shadow:none;cursor:default}.agent-mode-icon{width:26px;height:26px;color:var(--accent);background:var(--accent-soft);border-radius:9px;place-items:center;display:grid}.agent-mode-copy{text-align:left;flex-direction:column;align-items:flex-start;gap:1px;min-width:0;display:flex}.agent-mode-copy strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--ink);font-size:11px;font-weight:700;line-height:1.2;overflow:hidden}.agent-mode-copy small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--ink-faint);font-size:10px;line-height:1.2;overflow:hidden}.agent-mode-caret{color:var(--ink-faint);transition:transform .2s}.agent-mode-dropdown.open .agent-mode-caret{transform:rotate(180deg)}.agent-mode-menu{background:#fff;border-radius:14px;outline:1px solid #233a561a;min-width:196px;margin:0;padding:6px;list-style:none;position:absolute;bottom:calc(100% + 8px);left:0;box-shadow:0 14px 36px #32435824}.agent-mode-menu button{width:100%;min-height:40px;color:var(--ink-soft);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:10px;grid-template-columns:auto minmax(0,1fr) 18px;align-items:center;gap:8px;padding:6px 8px;display:grid}.agent-mode-menu button:hover{background:var(--surface-muted)}.agent-mode-menu button.active{color:var(--accent-strong);background:var(--accent-soft)}.agent-mode-menu button.active .agent-mode-icon{color:#fff;background:var(--accent)}.agent-model-select{flex:96px;min-width:0;max-width:148px}.agent-model-select select{width:100%;min-width:0;max-width:100%;min-height:36px;color:var(--ink-soft);background:var(--surface-muted);border:0;border-radius:12px;outline:1px solid #233a5614;padding:0 10px;font-family:inherit;font-size:12px}.agent-composer-actions{flex:none;align-items:center;gap:6px;margin-left:0;display:flex}.agent-composer-actions .composer-attach{border-radius:12px;width:36px;height:36px}.token-usage-ring{width:28px;height:28px;color:var(--ink-faint);border-radius:50%;place-items:center;display:grid}.token-usage-ring svg{display:block}.token-usage-track{stroke:#233a561f}.token-usage-progress{stroke:#0f766e;transition:stroke-dashoffset .35s}.token-usage-ring.tone-warn .token-usage-progress{stroke:#c4922a}.token-usage-ring.tone-critical .token-usage-progress{stroke:#c05b63}.chat-workbench .chat-composer.build-chat-composer,.build-chat-workbench .chat-composer.build-chat-composer,.project-agent-workbench .chat-composer.build-chat-composer{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.build-chat-workbench .build-chat-composer{width:min(920px,100% - 32px);margin:12px auto 16px}.project-agent-workbench .chat-composer.build-chat-composer{width:auto;margin:12px 16px 16px}.project-agent-workbench .build-attachment-queue,.chat-workbench .build-attachment-queue{width:auto;margin:0 16px 4px}.project-agent-workbench .chat-messages .empty-state{flex:1;min-height:200px}.build-chat-toolbar{flex-wrap:wrap}.build-chat-toolbar .btn{flex-shrink:0}.chat-composer input[type=file]{display:none}.session-row-wrap .session-row{flex:1;min-width:0}.commit-row,.file-row{align-items:center;gap:6px;width:100%;display:flex}.session-row,.commit-row,.file-row{text-align:left;cursor:pointer;color:inherit;background:0 0;border:0;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}.session-row span,.commit-row span{flex-direction:column;gap:2px;min-width:0;display:flex}.session-row strong,.commit-row strong,.file-row span{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.session-row small,.commit-row small{color:var(--text-muted);font-size:11px}.file-section{padding:8px 0}.file-section-label,.file-group-label{color:var(--text-muted);padding:6px 12px;font-size:11px;font-weight:650}.file-section-label small{margin-left:6px}.code-editor,.diff-view{resize:none;min-height:0;font-family:var(--font-mono);background:var(--surface-solid);color:var(--text-primary);white-space:pre-wrap;border:0;flex:1;margin:0;padding:16px 18px;font-size:12px;line-height:1.6;overflow:auto}.kb-chat-error,.chat-error{color:var(--brand-red);background:var(--brand-red-soft);border-radius:10px;margin:0 16px;padding:8px 10px;font-size:12px}.kb-stage-graph>.graph-workbench{height:100%;min-height:650px}@media (width<=1100px){.overview-stat-grid{grid-template-columns:repeat(2,1fr)}.overview-columns{grid-template-columns:1fr}}@media (width<=960px){.kb-workspace-page{padding:0}.kb-workspace-header{grid-template-columns:1fr;align-items:flex-start;padding:8px 0 10px}.kb-workspace-main{grid-template-columns:1fr;gap:10px}.workspace-rail{border-radius:16px;flex-flow:row;padding:8px;overflow:auto hidden}.workspace-rail-kicker{display:none}.workspace-rail-link{flex:none;min-height:38px;padding:0 12px}.workspace-rail-link:hover{transform:none}.chat-workbench,.file-workbench,.versions-workbench{grid-template-columns:1fr}.file-sidebar,.session-sidebar,.commit-list{border-bottom:1px solid #233a5614;border-right:0;max-height:200px}.kb-stage .chat-composer,.chat-workbench .chat-composer{grid-template-columns:minmax(0,1fr);margin:10px 12px 12px}.kb-stage .chat-composer .btn,.chat-workbench .chat-composer .btn{justify-content:center;width:100%}.build-chat-composer,.kb-stage .build-chat-composer,.build-chat-workbench .build-chat-composer,.chat-workbench .chat-composer.build-chat-composer,.project-agent-workbench .chat-composer.build-chat-composer{grid-template-columns:auto minmax(0,1fr);width:calc(100% - 24px);margin:12px 12px 16px}.build-chat-composer .btn,.chat-workbench .chat-composer.build-chat-composer .btn{grid-column:1/-1;justify-content:center;width:100%}.build-attachment-queue,.project-agent-workbench .build-attachment-queue{width:calc(100% - 24px);margin-left:12px;margin-right:12px}.graph-canvas{height:560px;min-height:560px}.graph-toolbar,.graph-toolbar-actions{align-items:flex-start}.overview-file-list{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.workspace-rail-link,.graph-node-card,.graph-free-node,.knowledge-edge-dynamic path{transition:none;animation:none}}.fact-upload-panel{flex-direction:column;gap:8px;width:100%;margin:0;padding:10px 0 0;display:flex}.fact-upload-summary{color:var(--ink-soft);font-size:10px;line-height:1.45}.fact-upload-list{flex-direction:column;gap:6px;display:flex}.fact-upload-row{background:var(--surface-muted);border-radius:12px;outline:1px solid #233a5612;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 10px;padding:8px 10px;display:grid}.fact-upload-row.is-failed{background:var(--red-soft);outline-color:#b03e3e38}.fact-upload-row.is-done{outline-color:#2e7d5a2e}.fact-upload-row>svg{color:var(--ink-faint)}.fact-upload-meta{flex-direction:column;gap:5px;min-width:0;display:flex}.fact-upload-meta strong{text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:650;overflow:hidden}.fact-upload-meta small{color:var(--ink-faint);font-size:9px}.fact-upload-meta small.is-error{color:var(--red)}.fact-upload-track{background:#233a5614;border-radius:999px;height:3px;overflow:hidden}.fact-upload-track>i{border-radius:inherit;background:var(--accent);height:100%;transition:width .18s;display:block}.fact-upload-track.is-indeterminate>i{animation:1.1s ease-in-out infinite fact-upload-pulse;width:36%!important}.fact-upload-actions{align-items:center;gap:6px;display:flex}.fact-upload-status{text-align:right;min-width:42px;color:var(--ink-faint);font-size:9px;font-weight:650}.fact-upload-row.is-done .fact-upload-status{color:var(--green)}.fact-upload-row.is-failed .fact-upload-status{color:var(--red)}.fact-upload-row.is-active .fact-upload-status{color:var(--accent)}.knowledge-catalog-section{background:#ffffff94;border-radius:13px;margin-bottom:7px;overflow:hidden;box-shadow:inset 0 0 0 1px #233a5612}.knowledge-catalog-section>summary{cursor:pointer;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:48px;padding:7px 9px;list-style:none;display:grid}.knowledge-catalog-section>summary::-webkit-details-marker{display:none}.knowledge-catalog-group>summary::-webkit-details-marker{display:none}.knowledge-catalog-section>summary:hover{background:#ffffffb8}.knowledge-catalog-mark{width:29px;height:29px;color:var(--accent);background:var(--accent-soft);border-radius:9px;place-items:center;display:grid}.knowledge-catalog-norm .knowledge-catalog-mark{color:#8b6417;background:#f4ead2}.knowledge-catalog-scenario .knowledge-catalog-mark{color:var(--green);background:var(--green-soft)}.knowledge-catalog-source .knowledge-catalog-mark{color:var(--ink-faint);background:#e8edf2}.knowledge-catalog-section>summary>span:nth-child(2){min-width:0}.knowledge-catalog-section>summary strong,.knowledge-catalog-section>summary small{display:block}.knowledge-catalog-section>summary strong{font-size:10px}.knowledge-catalog-section>summary small{text-overflow:ellipsis;white-space:nowrap;color:var(--ink-faint);margin-top:2px;font-size:9px;overflow:hidden}.knowledge-catalog-section>summary>b{min-width:25px;color:var(--ink-soft);text-align:center;background:#e7ecf2e6;border-radius:999px;padding:3px 6px;font-size:9px}.knowledge-catalog-groups{padding:0 7px 8px}.knowledge-catalog-group{border-top:1px solid #233a560f}.knowledge-catalog-group>summary{min-height:30px;color:var(--ink-soft);cursor:pointer;align-items:center;gap:7px;padding:4px 5px;list-style:none;display:flex}.knowledge-catalog-group>summary>span{flex:1;font-size:9px;font-weight:700}.knowledge-catalog-group>summary>small{color:var(--ink-faint);font-size:9px}.knowledge-catalog-files{border-left:1px solid #233a5614;padding-left:6px}.knowledge-catalog-files .file-row{align-items:flex-start;min-height:44px;padding:7px 8px}.knowledge-catalog-files .file-row>svg{flex:none;margin-top:2px}.knowledge-catalog-files .file-row>span{flex:1;min-width:0}.knowledge-catalog-files .file-row strong,.knowledge-catalog-files .file-row small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.knowledge-catalog-files .file-row strong{font-size:9px;font-weight:650}.knowledge-catalog-files .file-row small{color:var(--ink-faint);margin-top:3px;font-size:9px}.knowledge-catalog-files>p{color:var(--ink-faint);margin:0;padding:7px 9px 9px;font-size:9px}.hierarchy-tree{padding:4px 2px 8px}.hierarchy-root-row{min-height:28px;color:var(--ink-soft);align-items:center;gap:6px;padding:2px 6px;font-size:10px;display:flex}.hierarchy-root-row strong{font-size:10px}.hierarchy-root-row small{color:var(--ink-faint);margin-left:auto;font-size:9px}.hierarchy-children{border-left:1px solid #233a5617;margin-left:10px;padding-left:6px}.hierarchy-node{margin:1px 0}.hierarchy-row{border-radius:8px;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:2px;min-height:30px;display:grid}.hierarchy-row.active{background:var(--accent-soft)}.hierarchy-toggle,.hierarchy-label{color:inherit;cursor:pointer;background:0 0;border:0}.hierarchy-toggle{width:18px;height:24px;color:var(--ink-faint);place-items:center;display:grid}.hierarchy-toggle svg{transition:transform .18s var(--ease)}.hierarchy-toggle svg.expanded{transform:rotate(90deg)}.hierarchy-toggle-spacer{width:18px;height:24px}.hierarchy-label{text-align:left;border-radius:8px;align-items:center;gap:6px;min-width:0;padding:4px 6px;display:flex}.hierarchy-label:hover{background:#ffffffb3}.hierarchy-label:disabled{cursor:default;opacity:.85}.hierarchy-label span{text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:650;overflow:hidden}.knowledge-catalog-entity .knowledge-catalog-mark{color:#3d5a80;background:#dce6f0}.knowledge-catalog-ontology .knowledge-catalog-mark{color:var(--accent);background:var(--accent-soft)}.knowledge-catalog-attribute .knowledge-catalog-mark{color:#8b6417;background:#f4ead2}.knowledge-catalog-material .knowledge-catalog-mark{color:var(--ink-faint);background:#e8edf2}.knowledge-catalog-template .knowledge-catalog-mark{color:#6b4f2a;background:#f3e8d8}.sidebar-empty{color:var(--ink-faint);text-align:center;padding:18px;font-size:9px}.editor-stage,.chat-stage,.diff-stage{flex-direction:column;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.editor-toolbar,.chat-toolbar,.diff-toolbar,.graph-toolbar{border-bottom:1px solid #233a5612;flex-shrink:0;justify-content:space-between;align-items:center;gap:14px;min-height:48px;padding:0 16px;display:flex}.editor-toolbar strong,.chat-toolbar strong{color:var(--ink);font-size:13px;font-weight:650;display:block}.editor-toolbar span,.chat-toolbar span{color:var(--ink-faint);margin-top:3px;font-size:9px;display:block}.editor-actions,.chat-toolbar>div:last-child{align-items:center;gap:7px;display:flex}.editor-content-grid{flex:1;grid-template-columns:minmax(0,1fr) 268px;min-height:0;display:grid}.editor-document{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.editor-document.materials-preview{flex:1;min-height:0}.code-editor{resize:none;color:#26354a;background:#fbfcfe;border:0;outline:0;flex:1;width:100%;padding:23px 26px;font:12px/1.75 JetBrains Mono Variable,monospace;overflow:auto}.markdown-preview{color:#26354a;flex:1;min-height:0;padding:32px clamp(24px,6vw,84px);line-height:1.75;overflow-y:auto}.markdown-preview h1{letter-spacing:-.04em;margin:0 0 24px;font-size:29px}.markdown-preview h2{margin:28px 0 12px;font-size:19px}.markdown-preview h3{margin:20px 0 10px}.markdown-preview p,.markdown-preview li{font-size:12px}.markdown-preview table{border-collapse:collapse;width:100%;font-size:10px}.markdown-preview th,.markdown-preview td{text-align:left;border-bottom:1px solid #233a5614;padding:8px}.markdown-preview code{background:var(--surface-muted);border-radius:5px;padding:2px 5px}.editor-md-selection,.md-selection-root{flex-direction:column;flex:1;height:100%;min-height:0;display:flex;position:relative;overflow:hidden}.editor-md-selection>.markdown-preview,.md-selection-root>.markdown-preview{-webkit-overflow-scrolling:touch;flex:1;min-height:0;overflow-y:auto}.markdown-wysiwyg{cursor:text;outline:none}.markdown-wysiwyg:focus{outline:none;box-shadow:inset 0 0 0 1px #0f766e2e}.markdown-wysiwyg:empty:before{content:attr(data-placeholder);color:var(--ink-faint)}textarea.markdown-preview.markdown-preview-edit,.markdown-preview-edit{box-sizing:border-box;resize:none;color:#26354a;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;tab-size:2;-webkit-overflow-scrolling:touch;background:#fbfcfe;border:0;outline:none;flex:auto;align-self:stretch;width:100%;height:100%;min-height:0;padding:32px clamp(24px,6vw,84px);font:13px/1.75 ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden auto}.knowledge-agent-pane .agent-session-composer{padding:8px 10px}.knowledge-agent-pane .agent-composer-shell{padding:10px 12px}.knowledge-agent-pane .agent-composer-toolbar{flex-wrap:nowrap;align-items:center;gap:6px}.knowledge-agent-pane .agent-composer-controls{flex-wrap:nowrap;flex:1;gap:6px;min-width:0}.knowledge-agent-pane .agent-mode-dropdown{flex:0 auto;min-width:0}.knowledge-agent-pane .agent-mode-trigger{gap:6px;max-width:100%;min-height:32px;padding:2px 8px 2px 4px}.knowledge-agent-pane .agent-mode-copy small{display:none}.knowledge-agent-pane .agent-mode-icon{width:24px;height:24px}.knowledge-agent-pane .agent-model-select{flex:auto;min-width:0}.knowledge-agent-pane .agent-model-select select{width:100%;max-width:148px;min-height:32px;padding:0 8px;font-size:10px}.knowledge-agent-pane .agent-composer-actions{flex:none;gap:6px;margin-left:0}.knowledge-agent-pane .agent-composer-actions .btn-sm{min-height:32px;padding:0 10px}.knowledge-agent-pane .agent-composer-submit-label{display:none}.knowledge-agent-pane .agent-composer-actions .composer-attach{width:32px;height:32px}.md-selection-insert{z-index:6;pointer-events:auto;background:#1f2a37;border-radius:10px;align-items:center;gap:4px;padding:4px;display:flex;position:absolute;transform:none;box-shadow:0 10px 28px #14243447}.md-selection-insert button{color:#f5f7fb;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:8px;align-items:center;gap:6px;min-height:28px;padding:0 10px;font-size:12px;font-weight:600;display:inline-flex}.md-selection-insert button:hover{background:#ffffff1a}.kb-explorer-section-single{flex:1}.knowledge-catalog-inline-action{margin-left:auto}.kb-chat-drop-active{position:relative}.kb-chat-drop-hint{z-index:5;color:var(--accent-strong);pointer-events:none;background:#f5faf9eb;border:1.5px dashed #0f766e73;border-radius:16px;place-items:center;font-size:13px;font-weight:650;display:grid;position:absolute;inset:10px}.agent-session-composer.drop-active{outline-offset:-2px;outline:2px solid #0f766e59}.agent-composer-contexts .context-selection b{max-width:180px}.file-relations{background:#f1f5f9b8;border-left:1px solid #233a5614;min-width:0;padding:14px;overflow-y:auto}.file-relations>header{justify-content:space-between;align-items:center;padding:2px 2px 12px;display:flex}.file-relations>header>span{align-items:center;gap:7px;font-size:10px;font-weight:750;display:flex}.file-relations>header>small{min-width:24px;color:var(--accent);background:var(--accent-soft);text-align:center;border-radius:999px;padding:3px 6px;font-size:9px}.relation-current{background:#fff;border-radius:14px;margin-bottom:10px;padding:12px;box-shadow:inset 0 0 0 1px #233a5612}.relation-current>span{color:var(--violet);background:var(--violet-soft);border-radius:6px;padding:3px 6px;font-size:9px;display:inline-flex}.relation-current strong{overflow-wrap:anywhere;margin-top:8px;font-size:10px;display:block}.relation-current p{color:var(--ink-faint);margin-top:5px;font-size:9px;line-height:1.55}.relation-hint,.relation-empty{color:var(--ink-faint);padding:10px 4px;font-size:9px;line-height:1.55}.relation-error{color:var(--red)}.relation-list{flex-direction:column;gap:5px;display:flex}.relation-list button{width:100%;color:var(--ink);text-align:left;cursor:pointer;background:#ffffffc7;border:0;border-radius:11px;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:7px;padding:8px;display:grid}.relation-list button:hover:not(:disabled){background:#fff;box-shadow:0 5px 14px #3243580f}.relation-list button:disabled{cursor:default;opacity:.58}.relation-list button>span:last-child{min-width:0}.relation-list small,.relation-list strong{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.relation-list small{color:var(--ink-faint);font-size:9px}.relation-list strong{margin-top:3px;font-size:9px}.relation-direction{width:25px;height:25px;color:var(--accent);background:var(--accent-soft);border-radius:8px;place-items:center;display:grid}.relation-in,.relation-parent{color:var(--violet);background:var(--violet-soft)}.frontmatter-summary{border-top:1px solid #233a5614;margin-top:14px;padding-top:12px}.frontmatter-summary>span{color:var(--ink-faint);font-size:9px;font-weight:700}.frontmatter-summary p{grid-template-columns:72px minmax(0,1fr);gap:7px;margin-top:7px;display:grid}.frontmatter-summary small{color:var(--ink-faint);font-size:9px}.frontmatter-summary strong{overflow-wrap:anywhere;font-size:9px;font-weight:600}.editor-error,.chat-error{color:var(--red);background:var(--red-soft);padding:9px 14px;font-size:9px}.kb-stage-files>.file-workbench,.kb-stage-versions>.versions-workbench,.kb-stage-agent>.chat-workbench{flex:1;height:100%;min-height:0}@media (width<=960px){.editor-content-grid{grid-template-columns:1fr}.file-relations{border-top:1px solid #233a5614;border-left:0;max-height:300px}.file-workbench,.chat-workbench,.versions-workbench{grid-template-columns:1fr}.file-sidebar,.session-sidebar,.commit-list{border-bottom:1px solid #233a5614;border-right:0;max-height:210px;overflow-y:auto}}.kb-tripane{flex:1;gap:8px;min-height:0;display:flex;overflow:hidden}.kb-tripane-no-agent .kb-tripane-center{flex:auto}.kb-tripane-left,.kb-tripane-right{align-self:stretch;min-width:0;min-height:0}.kb-tripane-left .resizable-pane-body{background:#dde4eb73;border-radius:22px;outline:1px solid #233a5612;flex-direction:column;gap:10px;min-width:0;height:100%;min-height:0;padding:14px 10px;display:flex;overflow:hidden}.kb-tripane-center,.kb-tripane-right .resizable-pane-body{background:#fafcfee6;border-radius:25px;outline:1px solid #233a5614;flex-direction:column;min-width:0;min-height:0;display:flex;box-shadow:inset 0 1px 1px #fffffff2}.kb-tripane-right .resizable-pane-body{height:100%;padding:0;overflow:hidden}.kb-tripane-right .resizable-pane-body>*{flex:1;height:100%;min-height:0}.kb-tripane-center{flex:1;padding:16px;overflow:hidden auto}.kb-tripane-center>.file-workbench,.kb-tripane-center>.chat-workbench,.kb-tripane-center>.versions-workbench,.kb-tripane-center>.explore-workbench,.kb-tripane-center>.kb-overview,.kb-tripane-center>.fact-module-panel,.kb-tripane-center>.case-doc-stage{flex:1;height:100%;min-height:0;max-height:none}.kb-tripane-center>.file-workbench,.kb-tripane-center>.chat-workbench,.kb-tripane-center>.versions-workbench,.kb-tripane-center>.explore-workbench{border-radius:18px;outline:1px solid #233a5612}.kb-tripane-center .kb-overview{flex-direction:column;gap:0;display:flex;overflow:hidden}.kb-tripane-center .overview-graph{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.kb-tripane-center .overview-graph .graph-workbench,.kb-tripane-center .overview-graph .fact-relation{flex:1;height:100%;min-height:0}.kb-tripane-center .overview-graph .graph-workbench .graph-canvas,.kb-ask-graph-pane .graph-canvas{flex:auto;height:auto;min-height:0}.kb-tripane-center.kb-stage-ask,.kb-tripane-center.kb-stage-explore{padding:0;overflow:hidden}.kb-tripane-center.kb-stage-ask>.chat-workbench,.kb-tripane-center.kb-stage-explore>.explore-workbench{border-radius:inherit;outline:none;height:100%;min-height:0;max-height:none}.chat-workbench.chat-workbench-embed{flex-direction:column;grid-template-columns:none!important;display:flex!important}.chat-workbench.chat-workbench-embed .chat-stage{flex:1;width:100%;min-width:0;min-height:0}.kb-ask-graph-pane{border-radius:inherit;flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.kb-ask-graph-pane>.graph-workbench,.kb-ask-graph-pane>.file-workbench,.kb-ask-graph-pane>.editor-stage{flex:1;height:100%;min-height:0}.resizable-pane{min-width:0;min-height:0;display:flex;position:relative}.kb-tripane>.resizable-pane{height:100%}.resizable-pane-body{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.resizable-pane-handle{z-index:4;cursor:col-resize;touch-action:none;flex:none;justify-content:center;align-items:center;width:14px;margin:0 -7px;display:flex;position:relative}.resizable-pane-handle:focus-visible{outline:none}.resizable-pane-grip{width:16px;height:38px;color:var(--ink-faint);opacity:0;background:0 0;border-radius:8px;place-items:center;transition:opacity .2s,background .2s,color .2s;display:grid}.resizable-pane-handle:hover .resizable-pane-grip,.resizable-pane-handle:focus-visible .resizable-pane-grip{opacity:1;color:var(--ink-soft);background:#233a561a}.kb-explorer{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.kb-explorer-head{flex:none;min-width:0;padding:2px 2px 8px}.kb-explorer-tabs{overscroll-behavior-x:contain;scrollbar-width:none;align-items:center;gap:2px;min-width:0;display:flex;overflow:auto hidden}.kb-explorer-tabs::-webkit-scrollbar{display:none}.kb-explorer-tab{min-height:32px;color:var(--ink-faint);cursor:pointer;transition:color .2s var(--ease), background .2s var(--ease), box-shadow .22s var(--ease), gap .22s var(--ease);background:0 0;border:0;border-radius:11px;flex:none;align-items:center;gap:0;padding:0 8px;display:inline-flex}.kb-explorer-tab:hover{color:var(--ink-soft);background:#ffffff8c}.kb-explorer-tab.active{color:var(--accent-strong);background:#fff;gap:6px;box-shadow:0 5px 14px #32435812}.kb-explorer-tab svg{flex:none}.kb-explorer-tab-meta{opacity:0;transition:grid-template-columns .22s cubic-bezier(.32, .72, 0, 1), opacity .18s var(--ease);grid-template-columns:0fr;display:grid}.kb-explorer-tab.active .kb-explorer-tab-meta{opacity:1;grid-template-columns:1fr}.kb-explorer-tab-meta-inner{white-space:nowrap;align-items:center;gap:5px;min-width:0;display:inline-flex;overflow:hidden}.kb-explorer-tab-meta-inner strong{font-size:12px;font-weight:650}.kb-explorer-tab-meta-inner b{min-width:18px;color:var(--accent-strong);background:var(--accent-soft);text-align:center;border-radius:999px;padding:1px 5px;font-size:9px;font-weight:650}.kb-explorer-search{min-height:34px;margin-bottom:8px}.kb-explorer-body{flex:1;min-height:0;overflow-y:auto}.kb-explorer-body .knowledge-catalog-section:first-child{margin-top:0}.ask-session-list{flex-direction:column;height:100%;min-height:0;display:flex}.ask-session-list-head{flex:none;justify-content:space-between;align-items:center;min-height:40px;padding:4px 6px 10px;display:flex}.ask-session-list-head strong{font-size:12px}.ask-session-list-body{flex-direction:column;flex:1;gap:2px;min-height:0;display:flex;overflow-y:auto}.session-row-delete{width:24px;height:24px;color:var(--ink-faint);opacity:0;cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;display:grid}.session-row-wrap:hover .session-row-delete,.session-row-wrap.active .session-row-delete{opacity:1}.session-row-delete:hover{color:var(--red);background:var(--red-soft)}.explore-workbench{background:#fff;flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.explore-toolbar span{align-items:center;gap:4px;display:inline-flex}.explore-open-link{color:var(--ink-soft);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;font-size:12px;text-decoration:none;display:inline-flex}.explore-open-link:hover{color:var(--accent)}.explore-preview{flex:1;min-height:0;position:relative;overflow:auto}.explore-iframe-shell{flex-direction:column;height:100%;min-height:0;display:flex}.explore-iframe-shell iframe{background:#fff;border:0;flex:1;width:100%;min-height:0}.explore-structured{max-width:72ch;padding:24px 28px 40px}.explore-structured h3{margin:0 0 12px;font-size:18px}.explore-structured p,.explore-structured li{color:var(--ink-soft);font-size:13px;line-height:1.7}.explore-kv{flex-direction:column;gap:8px;margin:16px 0;display:flex}.explore-kv-row{grid-template-columns:120px minmax(0,1fr);gap:10px;display:grid}.explore-kv-row dt{color:var(--ink-faint);font-size:11px}.explore-kv-row dd{margin:0;font-size:12px}.explore-table-wrap{margin:16px 0;overflow:auto}.explore-table-wrap table{border-collapse:collapse;width:100%;font-size:12px}.explore-table-wrap th,.explore-table-wrap td{text-align:left;border-bottom:1px solid #233a5614;padding:8px 10px}.explore-source-list .file-row span{flex-direction:column;align-items:flex-start;gap:2px;min-width:0;display:flex}.explore-source-meta{color:var(--ink-faint);font-size:11px;font-weight:400}.kb-explorer-head-title{min-width:0;color:var(--ink);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:4px 2px;display:inline-flex}.kb-explorer-head-title.active{color:var(--accent-strong)}.kb-explorer-icon-btn{width:28px;height:28px;color:var(--ink-soft);cursor:pointer;transition:color .2s var(--ease), background .2s var(--ease);background:0 0;border:0;border-radius:9px;place-items:center;display:inline-grid}.kb-explorer-icon-btn:hover{color:var(--ink);background:#ffffffe0}.kb-explorer-icon-btn.active{color:var(--accent-strong);background:var(--accent-soft)}.kb-versions-nav-list .commit-nav-row{align-items:flex-start;min-height:48px}.kb-versions-nav-list .commit-nav-row>span{white-space:normal;flex-direction:column;gap:2px;display:flex}.kb-versions-nav-list .commit-nav-row strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650;display:block;overflow:hidden}.kb-versions-nav-list .commit-nav-row small{color:var(--ink-faint);font-size:10px}.versions-workbench-diff-only{grid-template-columns:minmax(0,1fr)!important}.kb-explorer-search{min-height:34px;margin:0 0 8px}.kb-explorer-head strong{align-items:center;gap:6px;font-size:11px;font-weight:700;display:inline-flex}.kb-explorer-head strong span{min-width:20px;color:var(--ink-soft);text-align:center;background:#e7ecf2f2;border-radius:999px;padding:2px 6px;font-size:9px}.kb-explorer-actions{flex-shrink:0;align-items:center;gap:2px;display:flex}.kb-explorer-body{flex:1;min-height:0;padding:6px;overflow:hidden auto}.kb-explorer-body .file-row{width:100%;min-height:34px;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:8px;padding:6px 8px;display:flex}.kb-explorer-body .file-row:hover{background:#fffc}.kb-explorer-body .file-row.active{background:var(--accent-soft);color:var(--accent-strong)}.kb-explorer-body .file-row span{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:11px;overflow:hidden}.kb-explorer-notice{flex-shrink:0;margin:0;padding:0 4px}.kb-tripane-center{min-width:0;min-height:0}.kb-tripane-center.kb-stage-overview{box-shadow:none;background:0 0;outline:0;padding:2px;overflow:auto}.kb-tripane-center>.file-workbench,.kb-tripane-center>.materials-workbench,.kb-tripane-center>.templates-workbench,.kb-tripane-center>.versions-workbench,.kb-tripane-center>.kb-overview{flex:1;height:100%;min-height:0}.templates-preview{background:#f3f5f8;flex-direction:column;padding:0;display:flex;position:relative;overflow:hidden}.templates-docx-preview,.templates-docx-preview .md-selection-root,.templates-docx-preview .docx-editor-host{flex:1;height:100%;min-height:0}.file-workbench-editor-only{flex-direction:column;height:100%;min-height:0;display:flex;grid-template-columns:1fr!important}.chat-workbench.is-build-only{border-radius:inherit;flex-direction:column;height:100%;min-height:0;max-height:none;grid-template-columns:minmax(0,1fr)!important;display:flex!important}.agent-mode-trigger.is-static{pointer-events:none;box-shadow:none}.kb-tripane-right{background:#fafcfef5}.kb-tripane-right>.knowledge-agent-pane{flex-direction:column;flex:1;grid-template-columns:none;height:100%;min-height:0;display:flex}.knowledge-agent-pane.chat-workbench{flex-direction:column;grid-template-columns:none;display:flex;position:relative}.kb-chat-pane-head{background:#ffffffb8;border-bottom:1px solid #233a5614;flex-shrink:0;justify-content:space-between;align-items:center;gap:10px;min-height:52px;padding:8px 12px;display:flex;position:relative}.kb-chat-pane-title{min-width:0;color:var(--ink);align-items:center;gap:8px;display:flex}.kb-chat-pane-title strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700;overflow:hidden}.kb-chat-pane-actions{flex-shrink:0;align-items:center;gap:6px;display:flex}.kb-chat-pane-actions .btn.active{color:var(--accent-strong);background:var(--accent-soft)}.kb-chat-pane-mode-tag{color:var(--accent-strong);background:var(--accent-soft);border-radius:8px;padding:4px 8px;font-size:10px;font-weight:700}.kb-chat-history-panel{z-index:20;background:#fff;border-radius:16px;outline:1px solid #233a561a;flex-direction:column;max-height:min(420px,55vh);display:flex;position:absolute;top:calc(100% + 4px);left:10px;right:10px;overflow:hidden;box-shadow:0 16px 40px #32435829}.kb-chat-history-head{border-bottom:1px solid #233a5612;justify-content:space-between;align-items:center;gap:8px;min-height:40px;padding:0 10px;display:flex}.kb-chat-history-head strong{font-size:11px}.kb-chat-history-body{flex:1;min-height:0;padding:6px;overflow-y:auto}.kb-chat-history-body .session-row-wrap{border-radius:10px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px;display:grid}.kb-chat-history-body .session-row-wrap.active{background:var(--accent-soft)}.kb-chat-history-body .session-row-wrap.is-running{outline:1px solid #1f5eff2e}.session-row-meta{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.session-row-actions{flex-shrink:0;align-items:center;gap:4px;padding-right:2px;display:inline-flex}.session-status-badge{letter-spacing:.01em;white-space:nowrap;border:1px solid #0000;border-radius:999px;align-items:center;gap:4px;height:18px;padding:0 6px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.session-status-badge:before{content:"";background:currentColor;border-radius:50%;width:5px;height:5px}.session-status-badge.tone-running{color:var(--brand-blue,#2563eb);background:var(--brand-blue-soft,#eff6ff);border-color:#bfdbfe}.session-status-badge.tone-running:before{animation:1.4s ease-out infinite session-status-pulse;box-shadow:0 0}.session-status-badge.tone-completed{color:var(--brand-green,#15803d);background:var(--brand-green-soft,#ecfdf3);border-color:var(--brand-green-border,#bbf7d0)}.session-status-badge.tone-error{color:var(--brand-red,#b91c1c);background:var(--brand-red-soft,#fef2f2);border-color:var(--brand-red-border,#fecaca)}.session-status-badge.tone-queued{color:var(--text-secondary,#64748b);background:var(--surface-2,#f1f5f9);border-color:var(--border-soft,#e2e8f0)}@keyframes session-status-pulse{0%{box-shadow:0 0 #2563eb73}70%{box-shadow:0 0 0 5px #2563eb00}to{box-shadow:0 0 #2563eb00}}@media (prefers-reduced-motion:reduce){.session-status-badge.tone-running:before{animation:none}}.knowledge-agent-pane>.chat-stage{flex:1;min-height:0}@media (width<=960px){.kb-tripane{flex-direction:column;overflow:auto}.kb-tripane-left,.kb-tripane-center,.kb-tripane-right{min-height:240px}.kb-tripane-left .resizable-pane-handle,.kb-tripane-right .resizable-pane-handle{display:none}}.fact-project-page{background:radial-gradient(circle at 6% 0%, #0f766e0e, transparent 26rem), radial-gradient(circle at 100% 100%, #0f766e0a, transparent 24rem), var(--canvas)}.chat-workbench.project-agent-pane.is-compact{flex-direction:column;height:100%;min-height:0;position:relative;overflow:hidden;grid-template-columns:none!important;display:flex!important}.chat-workbench.is-compact .chat-stage{flex:1;width:100%;min-width:0;position:relative;overflow:hidden}.project-agent-pane .chat-toolbar.project-agent-toolbar{z-index:6;border-bottom:1px solid #233a5612;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:0 12px;display:flex;position:relative;overflow:visible}.project-agent-toolbar-title{min-width:0}.project-agent-toolbar-title strong{color:var(--ink);font-size:13px;font-weight:650;display:block}.project-agent-toolbar-title span{text-overflow:ellipsis;white-space:nowrap;color:var(--ink-faint);margin-top:3px;font-size:10px;display:block;overflow:hidden}.project-agent-toolbar-actions{flex-shrink:0;align-items:center;gap:2px;display:flex;position:relative}.project-agent-head-btn{width:30px;height:30px;color:var(--ink-faint);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.project-agent-head-btn:hover,.project-agent-head-btn.is-active{color:var(--ink);background:#233a560f}.project-agent-head-btn:disabled{cursor:not-allowed;opacity:.5}.project-agent-history-popover{z-index:20;background:#fff;border:1px solid #233a561f;border-radius:14px;flex-direction:column;width:min(320px,100vw - 48px);max-height:min(420px,58vh);display:flex;position:absolute;top:calc(100% + 8px);right:0;overflow:hidden;box-shadow:0 16px 40px #32435829}.project-agent-history-popover-head{border-bottom:1px solid #233a5614;flex:none;padding:12px 14px 8px;font-size:13px;font-weight:650}.project-agent-history-popover-list{flex:1;min-height:0;padding:6px;overflow-y:auto}.project-agent-history-empty{color:var(--ink-faint);padding:22px 10px;font-size:12.5px;line-height:1.65}.project-agent-history-item{text-align:left;width:100%;color:var(--ink);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:12px;margin-bottom:2px;padding:10px}.project-agent-history-item:hover{background:#233a560a}.project-agent-history-item.active{background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 28%, transparent)}.project-agent-history-item-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;font-weight:650;line-height:1.4;display:-webkit-box;overflow:hidden}.project-agent-history-item-meta{color:var(--ink-faint);justify-content:space-between;gap:8px;margin-top:5px;font-size:11px;display:flex}.project-agent-history-item-del{color:var(--ink-faint);cursor:pointer;background:0 0;border:0;padding:0;font-size:11px}.project-agent-history-item-del:hover{color:var(--red,#c2410c)}.project-agent-history-item-del:disabled{cursor:not-allowed;opacity:.5}.kb-tripane-center.kb-stage-execution,.kb-tripane-center.kb-stage-material,.kb-tripane-center.kb-stage-doc,.kb-tripane-center.kb-stage-relations,.kb-tripane-center.kb-stage-timeline,.kb-tripane-center.kb-stage-progress{padding:0;overflow:hidden}.kb-tripane-center.kb-stage-execution>.kb-overview,.kb-tripane-center.kb-stage-material>.kb-overview,.kb-tripane-center.kb-stage-relations>.kb-overview,.kb-tripane-center.kb-stage-doc>.case-doc-stage,.kb-tripane-center.kb-stage-timeline>.fact-module-panel,.kb-tripane-center.kb-stage-progress>.case-progress-panel{flex-direction:column;flex:auto;height:auto;min-height:0;display:flex;overflow:hidden}.fact-module-panel,.case-doc-stage{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.case-doc-toolbar{border-bottom:1px solid #233a5612;flex-shrink:0;align-items:center;gap:10px;min-height:48px;padding:0 12px;display:flex}.case-doc-toolbar strong{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:13px;font-weight:650;overflow:hidden}.case-doc-toolbar .btn.is-active{color:var(--accent-strong);background:var(--accent-soft)}.case-doc-toolbar .auth-download-wrap{flex-shrink:0}.case-center-toolbar{background:#ffffffb8;border-bottom:1px solid #233a5612;flex-shrink:0;align-items:center;gap:10px;min-height:44px;padding:0 12px;display:flex}.case-center-toolbar strong{flex:1;min-width:0;font-size:13px;font-weight:650}.case-doc-body{flex:1;min-height:0;display:flex;overflow:hidden}.case-doc-preview{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.case-doc-preview>.doc-preview{flex:1;height:100%;min-height:0}.case-fields-inspector{background:#fafcfef5;border-left:1px solid #233a5614;flex-direction:column;flex:0 0 min(340px,42%);min-width:240px;min-height:0;display:flex;overflow:hidden}.case-fields-inspector>.doc-cards-panel,.case-fields-inspector>.material-detail-panel{flex:1;height:100%;min-height:0}.kb-tripane-right.is-fields .resizable-pane-body{position:relative}.case-right-fields,.case-right-chat{flex-direction:column;flex:1;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.case-right-chat.is-hidden{display:none}.case-right-chat>*{flex:1;height:100%;min-height:0}.case-right-fields-toolbar{background:#fafcfef5;border-bottom:1px solid #233a5612;flex-shrink:0;justify-content:space-between;align-items:center;gap:10px;min-height:48px;padding:8px 12px;display:flex}.case-right-fields-toolbar>div{flex-direction:column;gap:2px;min-width:0;display:flex}.case-right-fields-toolbar strong{color:var(--text,#1f2a37);font-size:13px;font-weight:650}.case-right-fields-toolbar span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--muted,#6b7c93);font-size:11px;overflow:hidden}.case-right-fields-body{background:#fafcfef5;flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.case-right-fields-body>.doc-cards-panel,.case-right-fields-body>.material-detail-panel,.case-right-fields-body>.artifact-trace-panel,.case-right-fields-body>.conflict-events-panel{flex:1;height:100%;min-height:0}.artifact-trace-panel,.conflict-events-panel{background:#fafcfe80;flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.artifact-trace-panel>.doc-cards-toolbar,.conflict-events-panel>.doc-cards-toolbar{flex-shrink:0}.artifact-trace-scroll,.conflict-events-scroll{overscroll-behavior:contain;flex:1;min-height:0;overflow:auto}.artifact-trace-scroll>.doc-cards-list{height:auto;min-height:min-content;overflow:visible}.conflict-events-section{margin-top:12px;padding:0 12px 8px}.conflict-events-section h3{color:var(--muted,#6b7c93);margin:0 0 8px;font-size:12px;font-weight:600}.conflict-card .doc-card-badge{color:#c94550;background:#c945501f}.conflict-meta{color:var(--muted,#6b7c93);word-break:break-all;margin:0;font-size:11px}.conflict-link-list{margin:0;padding-left:18px;font-size:12.5px;line-height:1.6}.conflict-kind{color:#c94550;background:#c945501a;border-radius:4px;margin-right:6px;padding:0 5px;font-size:10px;display:inline-block}.conflict-edge-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.conflict-edge-list li{background:var(--surface-muted,#f6f8fb);border-radius:10px;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:10px 12px;font-size:12.5px;display:grid}.conflict-edge-list small{color:var(--muted,#6b7c93);margin-bottom:2px;font-size:10px;display:block}.conflict-edge-rel{color:#c94550;font-size:11px;font-weight:600}.artifact-trace-dialog-head{flex-direction:column;flex-shrink:0;gap:2px;margin:0;font-size:13px;display:flex}.artifact-trace-dialog-head span{color:var(--muted,#6b7c93);word-break:break-all;font-size:12px}.artifact-trace-cite-tabs{flex-wrap:wrap;flex-shrink:0;gap:8px;margin:0;display:flex}.artifact-trace-cite-tabs button{cursor:pointer;background:#fff;border:1px solid #233a5624;border-radius:10px;flex-direction:column;align-items:flex-start;gap:2px;max-width:220px;padding:7px 12px;font-size:12px;display:inline-flex}.artifact-trace-cite-tabs button small{color:var(--muted,#6b7c93);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;overflow:hidden}.artifact-trace-cite-tabs button.active{color:#1d4ed8;background:#2563eb14;border-color:#2563eb73;font-weight:650}.artifact-trace-file-tabs{flex-wrap:wrap;flex-shrink:0;gap:8px;margin:0;display:flex}.artifact-trace-file-tabs button{cursor:pointer;background:#fff;border:1px solid #0f766e2e;border-radius:10px;flex-direction:column;align-items:flex-start;gap:2px;max-width:240px;padding:7px 12px;font-size:12px;display:inline-flex}.artifact-trace-file-tabs button small{color:var(--muted,#6b7c93);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;overflow:hidden}.artifact-trace-file-tabs button.active{color:#0f766e;background:#0d94881a;border-color:#0d948880;font-weight:650}.artifact-trace-field-miss{color:#475569;background:#64748b1a;border:1px solid #64748b47;border-radius:10px;flex-shrink:0;margin:0;padding:8px 12px;font-size:12px;line-height:1.5}.artifact-trace-reason{background:#f59e0b1a;border:1px solid #f59e0b47;border-radius:10px;flex-shrink:0;max-height:16vh;margin:0;padding:8px 12px;overflow:auto}.artifact-trace-reason b{color:#92400e;margin-bottom:4px;font-size:12px;display:block}.artifact-trace-reason p{color:#78350f;white-space:pre-wrap;margin:0;font-size:13px;line-height:1.55}.artifact-trace-steps{flex-wrap:wrap;flex-shrink:0;gap:8px;margin:0;display:flex}.artifact-trace-steps button{cursor:pointer;background:#fff;border:1px solid #233a5624;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:12px;display:inline-flex}.artifact-trace-steps button.active{color:#0f766e;background:#0f766e14;border-color:#0f766e73;font-weight:650}.artifact-trace-steps b{background:#233a5614;border-radius:50%;justify-content:center;align-items:center;width:18px;height:18px;font-size:11px;display:inline-flex}.artifact-trace-step-path{color:var(--muted,#6b7c93);word-break:break-all;flex-shrink:0;margin:0;font-size:11px}.artifact-trace-step-body{background:#edf0f3;border:1px solid #233a5614;border-radius:10px;flex-direction:column;flex:1;min-height:0;max-height:none;display:flex;overflow:hidden}.artifact-trace-step-body pre{white-space:pre-wrap;flex:1;min-height:0;margin:0;padding:12px 14px;font-size:13px;line-height:1.55;overflow:auto}.doc-preview-docx.is-cite{background:#eef2f6;flex-direction:column;padding:0;display:flex}.artifact-reader-canvas{flex-direction:column;flex:1;width:100%;min-height:0;display:flex;position:relative}.artifact-reader-toolbar{background:#fff;border-bottom:1px solid #233a5614;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:12px;padding:8px 12px;display:flex}.artifact-mode{background:var(--surface-muted,#f0f3f7);border-radius:8px;gap:2px;padding:2px;display:inline-flex}.artifact-mode button{font:inherit;cursor:pointer;color:var(--muted,#6b7c93);background:0 0;border:0;border-radius:6px;align-items:center;gap:4px;padding:5px 10px;font-size:12px;display:inline-flex}.artifact-mode button.active{color:var(--ink,#1f2a37);background:#fff;box-shadow:0 1px 2px #233a5614}.artifact-mode button:disabled{opacity:.45;cursor:not-allowed}.artifact-rev{color:var(--muted,#6b7c93);align-items:center;gap:6px;font-size:12px;display:inline-flex}.artifact-rev select{max-width:220px;font:inherit;font-size:12px}.artifact-rev-label{color:var(--muted,#6b7c93);font-size:12px}.artifact-trace-status{z-index:25;align-items:center;gap:8px;min-width:0;display:inline-flex;position:relative}.artifact-unanchored-menu{z-index:26;position:relative}.artifact-unanchored-toggle{appearance:none;color:#b45309;cursor:pointer;background:#f59e0b14;border:1px solid #f59e0b59;border-radius:6px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;font-weight:600;display:inline-flex}.artifact-unanchored-toggle svg.is-open{transform:rotate(180deg)}.artifact-unanchored-panel{z-index:40;background:#fff;border:1px solid #233a561f;border-radius:8px;min-width:240px;max-width:min(360px,70vw);max-height:220px;padding:4px;position:absolute;top:calc(100% + 6px);left:0;overflow:auto;box-shadow:0 8px 24px #233a561f}.artifact-unanchored-item{appearance:none;text-align:left;width:100%;color:var(--ink-soft,#475569);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:8px 10px;font-size:12px;line-height:1.35;display:block}.artifact-unanchored-item:hover{color:var(--accent-strong,#0f766e);background:#0f766e14}.artifact-zoom,.artifact-zoom-controls{flex-wrap:wrap;align-items:center;gap:4px;display:inline-flex}.artifact-reader-toolbar>[data-testid=artifact-docx-review]{margin-left:auto}.artifact-zoom-btn{appearance:none;color:var(--ink-soft,#475569);cursor:pointer;background:#fff;border:1px solid #233a5624;border-radius:6px;align-items:center;gap:4px;padding:3px 8px;font-size:11px;font-weight:600;display:inline-flex}.artifact-zoom-btn.is-active{color:var(--accent-strong,#0f766e);background:#0f766e14;border-color:#0f766e59}.artifact-zoom-current{color:var(--muted,#6b7c93);min-width:4.5em;font-size:11px}.artifact-reader-canvas.is-review{z-index:70;background:#eef2f6;position:fixed;inset:0}.artifact-reader-body{flex:1;min-height:0;display:flex;overflow:hidden}.artifact-reader-body.is-compare .artifact-reader-doc{flex:auto}.artifact-reader-doc{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.artifact-reader-doc>.docx-editor-host{flex:1;min-height:0}.artifact-hl-layer{pointer-events:none;z-index:4;position:absolute;top:0;left:0}.is-native-trace .artifact-hl-layer{z-index:12}.artifact-hl{pointer-events:auto;cursor:pointer;overflow-anchor:none;background:#2a5bab24;border:0;border-radius:3px;margin:0;padding:0;position:absolute;box-shadow:inset 0 -2px #2a5bab73}.artifact-hl-missing{box-shadow:none;background:#b478141f;border-bottom:2px dashed #b47814d9}.artifact-hl-changed,.artifact-hl-insert{box-shadow:none;background:0 0;border-bottom:2px solid #c62828;border-radius:0}.artifact-hl-cite{background:#ffeb3b6b;box-shadow:inset 0 -1px #e6be008c}.artifact-hl.is-active.artifact-hl-cite{outline-offset:1px;background:#ffeb3b94;outline:1px solid #c8a000a6}.artifact-hl.is-active{outline-offset:1px;outline:1px solid #c628288c}.artifact-reader-canvas.is-native-trace .docx-editor-host [data-artifact-trace="1"],.artifact-reader-canvas.is-native-trace .docx-editor-host [data-highlight=yellow]{cursor:pointer}.artifact-edit-warning-backdrop{z-index:12000;background:#0f172a73;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.artifact-edit-warning-dialog{background:#fff;border-radius:12px;width:min(420px,100%);padding:20px 22px;box-shadow:0 18px 48px #0f172a2e}.artifact-edit-warning-dialog h3{color:var(--text-primary,#1a2332);margin:0 0 10px;font-size:16px}.artifact-edit-warning-dialog p{color:var(--text-secondary,#4b5b6c);margin:0 0 16px;font-size:14px;line-height:1.55}.artifact-edit-warning-dialog .artifact-zoom-btn{justify-content:center;width:100%}.artifact-reader-changes{background:var(--surface-muted,#f6f8fb);border-left:1px solid #233a5614;flex:0 0 240px;padding:12px 14px;overflow:auto}.artifact-reader-changes.is-collapsed{flex:0 0 36px;padding:8px 4px;overflow:hidden}.artifact-changes-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.artifact-reader-changes h3{margin:0;font-size:12px}.artifact-reader-changes.is-collapsed h3{display:none}.artifact-reader-changes .sidebar-note,.artifact-reader-changes .sidebar-empty{color:var(--muted,#6b7c93);margin:0 0 8px;font-size:11px}.artifact-reader-changes .artifact-diff-op{text-align:left;cursor:pointer;width:100%;font:inherit;background:#fff;border:0;border-radius:10px;margin:0 0 8px;padding:8px 10px;display:block}.artifact-reader-changes .artifact-diff-op.is-active{box-shadow:0 0 0 2px var(--accent,#2a5bab)}.artifact-diff-op .old{color:var(--red,#b42318);margin:4px 0 0;font-size:12px;text-decoration:line-through}.artifact-diff-op .new{margin:4px 0 0;font-size:12px}.case-explorer.kb-explorer{flex:1;gap:0;height:100%;min-height:0}.case-explorer .kb-explorer-body,.case-explorer-body{flex:1;min-height:0;padding:4px 2px 10px;overflow:hidden auto}.fact-project-page .kb-tripane-center.kb-stage-execution,.fact-project-page .kb-tripane-center.kb-stage-material,.fact-project-page .kb-tripane-center.kb-stage-relations{flex-direction:column;min-height:0;padding:0;display:flex;overflow:hidden}.fact-project-page .kb-overview,.fact-project-page .overview-graph,.fact-project-page .overview-graph .graph-workbench{flex-direction:column;flex:auto;height:auto;min-height:0;display:flex;overflow:hidden}.fact-project-page .kb-overview>.case-center-toolbar{flex:none}.fact-project-page .overview-graph .graph-canvas{flex:auto;width:100%;min-width:1px;min-height:0;height:auto!important}.fact-module-state{flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;display:flex}.fact-module-toolbar{border-bottom:1px solid #233a5612;justify-content:space-between;align-items:center;gap:12px;min-height:58px;padding:12px 16px;display:flex}.fact-module-toolbar strong,.fact-module-toolbar span{display:block}.fact-module-toolbar strong{font-size:12px}.fact-module-toolbar span{color:var(--ink-faint);margin-top:3px;font-size:9px}.fact-timeline{flex-direction:column;min-height:0;display:flex}.fact-timeline-list{flex:1;min-height:0;margin:0;padding:18px 20px 28px;list-style:none;overflow-y:auto}.fact-timeline-item{grid-template-columns:18px minmax(0,1fr);gap:12px;padding-bottom:18px;display:grid}.fact-timeline-item:last-child{padding-bottom:0}.fact-timeline-rail{justify-content:center;display:flex;position:relative}.fact-timeline-rail>i{background:var(--green);width:9px;height:9px;box-shadow:0 0 0 4px var(--green-soft);z-index:1;border-radius:50%;margin-top:6px}.fact-timeline-item.is-undated .fact-timeline-rail>i{background:#9aa8b8;box-shadow:0 0 0 4px #e8edf2}.fact-timeline-rail>b{background:#233a561f;width:1px;position:absolute;top:18px;bottom:-18px}.fact-timeline-item article{background:#fff;border-radius:14px;min-width:0;padding:12px 14px;box-shadow:inset 0 0 0 1px #233a5612}.fact-timeline-meta{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.fact-timeline-meta time{color:var(--ink-soft);letter-spacing:.01em;font-size:11px;font-weight:700}.fact-timeline-badge{background:var(--surface-muted);color:var(--ink-soft);border-radius:999px;padding:2px 7px;font-size:9px;font-weight:650;display:inline-flex}.fact-timeline-badge.tone-success{color:var(--green);background:var(--green-soft)}.fact-timeline-badge.tone-warning{color:var(--amber);background:var(--amber-soft)}.fact-timeline-item h3{letter-spacing:-.01em;margin:0;font-size:13px;line-height:1.55}.fact-timeline-action{color:var(--ink-soft);margin:8px 0 0;font-size:11px;line-height:1.65}.fact-timeline-chips{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.fact-timeline-chips>span{max-width:100%;color:var(--ink-faint);background:var(--surface-muted);border-radius:999px;align-items:center;gap:4px;padding:4px 8px;font-size:9px;line-height:1.4;display:inline-flex}.fact-relation{flex-direction:column;flex:1;height:100%;min-height:0;display:flex}.fact-relation-body{flex:1;grid-template-columns:minmax(0,1fr) minmax(220px,280px);min-height:0;display:grid}.fact-relation-canvas{background:#f4f7fb;min-width:0;min-height:0;position:relative}.fact-relation-canvas>.react-flow{width:100%;height:100%}.fact-relation-legend{z-index:4;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffffe6;border-radius:12px;flex-wrap:wrap;gap:8px;padding:7px 9px;display:flex;position:absolute;top:12px;left:12px;box-shadow:0 5px 18px #32435814}.fact-relation-legend>span{color:var(--ink-soft);align-items:center;gap:5px;font-size:9px;display:inline-flex}.fact-relation-legend i{background:#2f6bb3;border-radius:50%;width:8px;height:8px}.fact-relation-legend i.is-object{background:#8b6417}.fact-relation-legend i.is-event{background:#238766}.fact-relation-legend i.is-co{background:#6457c8}.fact-relation-shell{box-shadow:none!important;background:0 0!important;border:0!important}.fact-relation-node{background:linear-gradient(#fffffff5,#f8fbfee6);border:1.4px solid #2f6bb3;border-radius:12px;flex-direction:column;justify-content:center;gap:3px;width:168px;min-height:54px;padding:8px 12px;display:flex;box-shadow:0 8px 18px #263f5e14}.fact-relation-node strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:10px;font-weight:720;line-height:1.35;display:-webkit-box;overflow:hidden}.fact-relation-node small{color:var(--ink-faint);font-size:9px}.fact-relation-node-subject{border-color:#2f6bb3}.fact-relation-node-object{border-color:#8b6417}.fact-relation-node-event{border-color:#238766}.fact-relation-handle{background:#7f93ab!important;border:1px solid #ffffffd9!important;width:7px!important;height:7px!important}.fact-relation-edge path{stroke:#41556e5c;stroke-width:1.2px}.fact-relation-edge-coInvolve path{stroke:#6457c873;stroke-dasharray:5 4}.fact-relation-inspector{background:#f1f5f9b8;border-left:1px solid #233a5614;min-width:0;padding:16px;overflow-y:auto}.fact-relation-inspector>span{color:var(--ink-faint);letter-spacing:.08em;text-transform:uppercase;font-size:9px}.fact-relation-inspector h3{letter-spacing:-.02em;margin:8px 0 0;font-size:16px}.fact-relation-inspector>p{color:var(--ink-soft);margin-top:10px;font-size:10px;line-height:1.7}.fact-relation-inspector dl{margin:14px 0 0}.fact-relation-inspector dl div{border-top:1px solid #233a5612;justify-content:space-between;gap:10px;padding:8px 0;font-size:9px;display:flex}.fact-relation-inspector dt{color:var(--ink-faint)}.fact-relation-inspector dd{margin:0}.fact-relation-inspector ul{flex-direction:column;gap:6px;margin:12px 0 0;padding:0;list-style:none;display:flex}.fact-relation-inspector li{background:#ffffffd9;border-radius:11px;padding:8px 10px;box-shadow:inset 0 0 0 1px #233a560f}.fact-relation-inspector li small,.fact-relation-inspector li strong{display:block}.fact-relation-inspector li small{color:var(--ink-faint);font-size:9px}.fact-relation-inspector li strong{margin-top:3px;font-size:10px}.fact-relation-inspector li.is-empty{color:var(--ink-faint);font-size:9px}.case-explorer .dossier-tree{flex-direction:column;gap:2px;display:flex}.case-explorer .dossier-node.is-root{box-shadow:none;background:0 0;border-radius:0;padding:0}.case-explorer .dossier-node.is-empty>.dossier-folder{opacity:.55}.case-explorer .dossier-folder,.case-explorer .dossier-file{--depth:0;width:100%;color:var(--ink);text-align:left;font:inherit;cursor:pointer;box-shadow:none;transition:background .18s var(--ease), color .18s var(--ease);background:0 0;border:0;border-radius:11px;outline:0;align-items:center;margin:0;display:grid;position:relative;transform:none}.case-explorer .dossier-folder{min-height:34px;padding:4px 8px 4px calc(6px + var(--depth,0) * 12px);grid-template-columns:10px 18px 26px minmax(0,1fr) auto;gap:2px}.case-explorer .dossier-file{min-height:38px;padding:5px 8px 5px calc(6px + var(--depth,0) * 12px);grid-template-columns:10px 26px minmax(0,1fr);align-items:center;gap:4px}.case-explorer .dossier-folder.is-root{background:#ffffff7a;outline:1px solid #233a560d;grid-template-columns:18px 26px minmax(0,1fr) auto;min-height:36px;margin-top:4px;padding:6px 8px;font-size:12px;font-weight:650}.case-explorer .dossier-folder:not(.is-root){font-size:12px;font-weight:650}.case-explorer .dossier-folder:hover,.case-explorer .dossier-file:hover{color:var(--ink);background:#ffffffc7}.case-explorer .dossier-file.is-active{color:var(--accent-strong);background:#fff;outline:1px solid #0f766e29;box-shadow:0 4px 12px #32435812}.case-explorer .dossier-rail{pointer-events:none;background:#233a561f;border-radius:999px;justify-self:center;width:2px;height:14px;position:static;top:auto;bottom:auto;left:auto}.case-explorer .dossier-file.is-active .dossier-rail{background:var(--accent)}.case-explorer .dossier-chevron{width:auto;color:var(--ink-faint);flex:none;place-items:center;display:grid}.case-explorer .dossier-folder-mark,.case-explorer .dossier-file-mark{width:24px;height:24px;color:var(--ink-soft);background:#e7ecf2e6;border-radius:8px;flex:none;place-items:center;display:grid}.case-explorer .dossier-folder-mark{color:var(--accent-strong);background:color-mix(in srgb, var(--accent-soft) 80%, white)}.case-explorer .dossier-file-mark.tone-pdf{color:#b45309;background:#fef3c7}.case-explorer .dossier-file-mark.tone-docx{color:#1d4ed8;background:#dbeafe}.case-explorer .dossier-file-mark.tone-xlsx{color:#15803d;background:#dcfce7}.case-explorer .dossier-file-mark.tone-image{color:#0f766e;background:#ccfbf1}.case-explorer .dossier-file-mark.tone-json{color:#a16207;background:#fef9c3}.case-explorer .dossier-file-mark.tone-file{color:var(--ink-faint);background:var(--surface-muted)}.case-explorer .dossier-folder-name,.case-explorer .dossier-file-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:inherit;flex:none;font-size:12px;font-weight:650;line-height:1.3;overflow:hidden}.case-explorer .dossier-count{min-width:20px;color:var(--ink-faint);box-shadow:none;text-align:center;background:#e7ecf2d9;border-radius:999px;flex:none;padding:2px 6px;font-size:10px}.case-explorer .dossier-file-copy{flex-direction:column;flex:none;gap:2px;min-width:0;display:flex}.case-explorer .dossier-file-meta{font-size:inherit;font-weight:inherit;color:inherit;flex-wrap:wrap;gap:4px;display:flex}.case-explorer .dossier-file-meta>span{color:var(--ink-faint);background:#e7ecf2bf;border-radius:5px;padding:1px 5px;font-size:9px;font-weight:650}.case-explorer .dossier-file.is-active .dossier-file-name{color:var(--accent-strong);font-weight:650}.case-explorer .dossier-file.is-active .dossier-file-meta{color:inherit}.case-explorer .dossier-children{border-left:1px solid #233a5612;flex-direction:column;gap:1px;margin:0 0 0 8px;padding:0 0 0 6px;animation:none;display:flex}.doc-preview{background:linear-gradient(#f6f8fbf2,#eef2f7fa);flex-direction:column;align-items:stretch;height:100%;padding:0;display:flex;position:relative;overflow:auto}.doc-preview-pdf{overflow:hidden}.doc-pdf-scroll{flex-direction:column;flex:1;align-items:center;gap:12px;width:100%;min-height:0;padding:12px;display:flex;overflow:auto}.doc-preview-docx{background:#eef2f6;overflow:hidden}.doc-preview-stack{flex-direction:column;height:100%;min-height:0;display:flex}.doc-preview-stack>.doc-preview{flex:1;min-height:0}.doc-preview-image{background:#eef2f6;overflow:hidden}.doc-image-scroll{flex:1;justify-content:center;align-items:center;min-height:0;padding:16px;display:flex;overflow:auto}.doc-image-view{object-fit:contain;background:#fff;border-radius:4px;max-width:100%;max-height:100%;box-shadow:0 1px 4px #0f172a1f}.doc-preview-excel{background:#f8fafc;overflow:hidden}.excel-sheet-tabs{flex-wrap:wrap;flex-shrink:0;gap:6px;padding:10px 12px 0;display:flex}.excel-sheet-tab{border:1px solid var(--line,#d7dee8);color:var(--ink-muted,#64748b);cursor:pointer;background:#fff;border-radius:8px;padding:4px 10px;font-size:12px}.excel-sheet-tab.is-active{color:#15803d;background:#dcfce7;border-color:#15803d;font-weight:600}.excel-sheet-name{color:var(--ink-muted,#64748b);flex-shrink:0;padding:10px 14px 0;font-size:12px}.excel-table-wrap{flex:1;min-height:0;padding:10px 12px 14px;overflow:auto}.excel-table{border-collapse:collapse;background:#fff;width:max-content;min-width:100%;font-size:12.5px}.excel-table th,.excel-table td{text-align:left;white-space:nowrap;text-overflow:ellipsis;border:1px solid #e2e8f0;max-width:320px;padding:6px 10px;overflow:hidden}.excel-table th{z-index:1;background:#f1f5f9;font-weight:650;position:sticky;top:0}.excel-table tr:nth-child(2n) td{background:#fafbfc}.excel-preview-note{color:var(--ink-faint,#94a3b8);flex-shrink:0;padding:6px 12px 10px;font-size:12px}.doc-preview-json{padding:12px 14px 18px;overflow:auto}.json-preview-body{color:#e2e8f0;white-space:pre-wrap;word-break:break-word;background:#0f172a;border-radius:10px;margin:0;padding:12px 14px;font-size:12.5px;line-height:1.55;overflow:auto}.trace-source-preview{flex:1;height:100%;min-height:0;max-height:none}.doc-preview-empty{color:var(--ink-faint);margin:auto;font-size:13px}.docx-editor-error{color:var(--red,#b03e3e);background:var(--red-soft,#fce8e8);border-radius:10px;flex-shrink:0;margin:10px 12px 0;padding:8px 12px;font-size:12px}.docx-editor-host{flex-direction:column;flex:1;width:100%;height:100%;min-height:0;display:flex;position:relative;overflow:hidden}.docx-editor-host>div,.docx-editor-host .docx-editor,.docx-editor-host [class*=DocxEditor]{flex:1;min-height:0}.md-selection-root{flex-direction:column;flex:1;height:100%;min-height:0;display:flex;position:relative}.word-selection-insert{z-index:8}.doc-cards-panel,.material-detail-panel{background:#fafcfe80;flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.doc-cards-toolbar,.material-detail-head{background:#ffffffb8;border-bottom:1px solid #233a5612;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:10px;min-height:48px;padding:10px 14px;display:flex}.material-detail-banner{color:#8a6d3b;background:#eab3081f;border:1px solid #eab30847;border-radius:8px;flex-shrink:0;margin:10px 14px 0;padding:8px 12px;font-size:12px;line-height:1.5}.doc-cards-toolbar-label,.material-detail-title{color:var(--ink);font-size:12px;font-weight:750}.material-detail-location{color:var(--ink-faint);margin-top:3px;font-size:10px}.doc-cards-count,.doc-cards-pairs{color:var(--ink-faint);margin-left:auto;font-size:11px;font-weight:600}.doc-cards-pairs{color:var(--accent-strong);background:var(--accent-soft);border-radius:999px;margin-left:0;padding:3px 8px}.doc-cards-list,.material-detail-body{flex-direction:column;flex:1;gap:8px;min-height:0;padding:12px;display:flex;overflow-y:auto}.doc-card{transition:outline-color .2s var(--ease), box-shadow .2s var(--ease);background:#ffffffe0;border:0;border-radius:14px;outline:1px solid #233a5614;overflow:hidden}.doc-card.is-active,.doc-card.is-open{outline-color:#0f766e47;box-shadow:0 8px 20px #3243580f}.doc-card-head{width:100%;min-height:44px;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:10px 12px;display:grid}.doc-card-head-text{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650;overflow:hidden}.doc-card-badge{color:var(--accent-strong);background:var(--accent-soft);border-radius:999px;padding:2px 7px;font-size:10px;font-weight:700}.doc-card-chevron{border-right:1.5px solid var(--ink-faint);border-bottom:1.5px solid var(--ink-faint);width:8px;height:8px;transition:transform .2s var(--ease);transform:rotate(45deg)}.doc-card.is-open .doc-card-chevron{transform:rotate(-135deg)}.doc-card-panel{flex-direction:column;gap:10px;padding:0 12px 12px;display:flex}.doc-card-block{background:#f1f5f9d9;border-radius:12px;padding:10px 12px}.doc-card-block-label{color:var(--ink-faint);margin-bottom:6px;font-size:10px;font-weight:700}.doc-card-block-text{color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:12px;line-height:1.65}.doc-card-block-text--quote{border-left:2px solid #0f766e59;padding-left:10px}.doc-card-source-list{flex-direction:column;gap:6px;display:flex}.doc-card-source-item{text-align:left;cursor:pointer;background:#fff;border:0;border-radius:10px;flex-direction:column;gap:3px;width:100%;padding:8px 10px;display:flex}.doc-card-source-item:hover{background:var(--accent-soft)}.doc-card-source-field{color:var(--ink);font-size:11px;font-weight:650}.doc-card-source-meta{color:var(--ink-faint);font-size:10px}.doc-card-footer{justify-content:flex-end;display:flex}.doc-card-back-btn{min-height:30px;color:var(--accent-strong);background:var(--accent-soft);cursor:pointer;border:0;border-radius:8px;padding:0 12px;font-size:11px;font-weight:650}.field-option-row{flex-wrap:wrap;gap:8px;margin-bottom:10px;display:flex}.field-option-chip{cursor:pointer;background:#ffffffe0;border-radius:10px;outline:1px solid #233a5614;align-items:center;gap:6px;min-height:32px;padding:0 10px;font-size:12px;display:inline-flex}.field-row-edit{align-items:flex-start}.field-input,.field-input-textarea{width:100%;color:var(--ink);font:inherit;resize:vertical;background:#fff;border:0;border-radius:10px;outline:1px solid #233a561a;padding:8px 10px;font-size:12px}.field-input:focus,.field-input-textarea:focus{outline-color:#0f766e73}.field-save-status{color:var(--ink-faint);margin-top:4px;font-size:10px;display:inline-block}.field-save-status.is-saving{color:var(--accent)}.field-save-status.is-saved{color:var(--green,#2e7d5a)}.field-save-status.is-error{color:var(--red,#b03e3e)}.field-page-count-hint{color:var(--ink-faint,#6b7280);align-items:center;gap:8px;margin-top:6px;font-size:12px;display:flex}.field-page-count-hint .btn{flex:none}.pdf-source-modal{min-height:0}.project-agent-pane .agent-session-composer{padding:8px 10px}.project-agent-pane .agent-composer-shell{padding:10px 12px}.project-agent-pane .agent-composer-toolbar{flex-wrap:nowrap;gap:6px}.project-agent-pane .agent-composer-submit-label{display:none}@media (width<=960px){.kb-tripane{flex-direction:column;overflow:auto}.kb-tripane-left,.kb-tripane-right,.resizable-pane.kb-tripane-left,.resizable-pane.kb-tripane-right{min-height:240px;flex:none!important;width:100%!important}.kb-tripane-left .resizable-pane-handle,.kb-tripane-right .resizable-pane-handle{display:none}.kb-tripane-center{min-height:280px}.case-doc-body{flex-direction:column}.case-fields-inspector{border-top:1px solid #233a5614;border-left:0;flex:0 0 min(42vh,320px);min-width:0}.fact-relation-body{grid-template-columns:1fr}.fact-relation-canvas{min-height:360px}.fact-relation-inspector{border-top:1px solid #233a5614;border-left:0}}.case-toolbox-list{flex-direction:column;gap:6px;margin:0;padding:10px 12px 18px;list-style:none;display:flex}.case-toolbox-item{text-align:left;width:100%;color:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:10px;padding:10px;display:grid}.case-toolbox-item:hover{background:#233a560a}.case-toolbox-item.is-active{background:#233a560f;border-color:#233a561a}.case-toolbox-item-icon{width:28px;height:28px;color:var(--ink-muted,#4a5d73);background:#233a560f;border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.case-toolbox-item-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.case-toolbox-item-copy strong{font-size:12px;font-weight:600}.case-toolbox-item-copy small{color:var(--ink-faint);font-size:10px;line-height:1.35}.case-toolbox-panel,.case-tool-panel{flex-direction:column;height:100%;min-height:0;display:flex}.lpr-calculator-body,.meeting-tool-body{flex:1;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:0;min-height:0;display:grid;overflow:hidden}.interest-calc-form{border-right:1px solid #233a5612;flex-direction:column;align-items:stretch;gap:12px;min-width:0;min-height:0;padding:14px 16px 24px;display:flex;overflow:hidden auto}.interest-calc-form>.interest-mod,.interest-calc-form>.lpr-submit,.interest-calc-form>.lpr-msg{flex:none}.interest-calc-hero{background:linear-gradient(135deg,#233a560a,#0000 55%),linear-gradient(#ffffffb3,#0000);border-bottom:1px solid #233a5612;flex:none;justify-content:space-between;align-items:flex-end;gap:16px;padding:18px 20px 16px;display:flex}.interest-calc-kicker{color:var(--ink-faint);letter-spacing:.08em;text-transform:uppercase;margin:0 0 4px;font-size:10px}.interest-calc-hero h2{letter-spacing:-.02em;margin:0;font-size:20px;font-weight:650}.interest-calc-hero-copy p:last-child{max-width:46ch;color:var(--ink-muted,#4a5d73);margin:6px 0 0;font-size:12px;line-height:1.45}.interest-calc-hero-stat{width:48px;height:48px;color:var(--ink-muted,#4a5d73);background:#233a5614;border-radius:14px;flex:none;justify-content:center;align-items:center;display:inline-flex}.interest-mod{background:#ffffffb8;border:1px solid #233a5614;border-radius:12px;flex-direction:column;gap:10px;min-width:0;height:auto;padding:12px;display:flex;overflow:visible}.interest-mod-head{flex-direction:column;gap:2px;display:flex}.interest-mod-head strong{font-size:12px;font-weight:650}.interest-mod-head span{color:var(--ink-faint);font-size:10px;line-height:1.35}.interest-formula{flex:none;margin-top:2px}.interest-compound-row{flex-direction:column;flex:none;gap:8px;display:flex}.interest-check{color:var(--ink-muted,#4a5d73);align-items:center;gap:8px;font-size:12px;display:inline-flex}.interest-principal-actions{flex-wrap:wrap;gap:8px;display:flex}.interest-principal-card{background:#233a5605;min-width:0}.interest-principal-fields{grid-template-columns:1fr;gap:8px;min-width:0;display:grid}.interest-principal-fields .lpr-field,.interest-mod>.lpr-field{flex:none;min-width:0}.interest-radio-set{flex-wrap:wrap;flex:none;gap:8px 14px;min-width:0;display:flex}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.interest-calc-result{background:radial-gradient(at 100% 0,#233a560d,#0000 45%),#fff;flex-direction:column;gap:12px;min-height:0;padding:16px 18px 24px;display:flex;overflow:auto}.interest-result-banner{background:linear-gradient(135deg,#233a560f,#233a5604);border:1px solid #233a5614;border-radius:14px;justify-content:space-between;align-items:flex-end;gap:16px;padding:16px;display:flex}.interest-result-banner h3{letter-spacing:-.02em;margin:0;font-size:18px}.interest-result-banner p{color:var(--ink-faint);margin:4px 0 0;font-size:11px}.interest-result-total{text-align:right}.interest-result-total span{color:var(--ink-faint);margin-bottom:4px;font-size:10px;display:block}.interest-result-total strong{font-variant-numeric:tabular-nums;letter-spacing:-.03em;font-size:24px}.interest-calc-result .lpr-result-head h4{margin:0;font-size:12px;font-weight:650}.lpr-calculator-form,.meeting-tool-form{border-right:1px solid #233a5612;flex-direction:column;gap:12px;min-height:0;padding:16px 18px 24px;display:flex;overflow:auto}.lpr-calculator-result,.meeting-tool-list{min-height:0;padding:16px 18px 24px;overflow:auto}.lpr-date-row{grid-template-columns:1fr;gap:10px;display:grid}.lpr-result-range{color:var(--ink-faint);margin:0 0 10px;font-size:11px}.lpr-field{flex-direction:column;gap:6px;min-width:0;font-size:12px;display:flex}.lpr-field>span{color:var(--ink-muted,#4a5d73);font-weight:500}.lpr-field input,.meeting-tool-form input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:34px;font:inherit;background:#fff;border:1px solid #233a561f;border-radius:8px;padding:0 10px}.lpr-field input[type=date]{appearance:none}.lpr-field small,.lpr-upload small{color:var(--ink-faint);font-size:10px;line-height:1.4}.lpr-fieldset{border:1px solid #233a5614;border-radius:10px;flex-wrap:wrap;gap:10px 16px;margin:0;padding:10px 12px;display:flex}.lpr-fieldset legend{color:var(--ink-muted,#4a5d73);padding:0 4px;font-size:11px}.lpr-radio{align-items:center;gap:6px;font-size:12px;display:inline-flex}.lpr-upload{background:#233a5608;border-radius:10px;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;font-size:12px;display:flex}.lpr-items{flex-direction:column;gap:10px;display:flex}.lpr-items,.interest-calc-form{min-width:0}.lpr-item{border:1px solid #233a5614;border-radius:10px;flex-direction:column;gap:10px;min-width:0;padding:12px;display:flex;position:relative}.lpr-item header{justify-content:space-between;align-items:center;gap:8px;display:flex}.lpr-item header strong{font-size:12px}.lpr-submit{justify-content:center;width:100%}.lpr-msg{color:var(--ink-muted,#4a5d73);margin:0;font-size:12px}.lpr-msg.is-error{color:#b42318}.lpr-result-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.lpr-result-head h3,.meeting-tool-list h3{margin:0;font-size:13px}.lpr-result-table-wrap{border:1px solid #233a5614;border-radius:10px;overflow:auto}.lpr-result-table{border-collapse:collapse;width:100%;font-size:12px}.lpr-result-table th,.lpr-result-table td{white-space:nowrap;border-bottom:1px solid #233a560f;padding:8px 10px}.lpr-result-table th{text-align:left;background:#233a5608;font-weight:600}.lpr-result-table .is-num,.lpr-result-table th.is-num{text-align:right;font-variant-numeric:tabular-nums}.lpr-result-table .is-empty{text-align:center;color:var(--ink-faint);padding:28px 12px}.lpr-result-table tfoot td{background:#233a5608;font-weight:600}.lpr-result-table .is-total-label{text-align:right}.meeting-tool-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.meeting-tool-empty{color:var(--ink-faint);margin:0;font-size:12px}.meeting-transcript-field textarea{min-height:220px;font:inherit;resize:vertical;background:#fff;border:1px solid #233a561f;border-radius:8px;padding:10px 12px;line-height:1.5}.meeting-minutes-output{white-space:pre-wrap;word-break:break-word;background:#233a5605;border:1px solid #233a5614;border-radius:10px;margin:0;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.55}.meeting-tool-with-history{grid-template-columns:minmax(200px,240px) minmax(240px,320px) minmax(0,1fr)}.meeting-history-pane{border-right:1px solid #233a5612;flex-direction:column;gap:10px;min-height:0;padding:14px 12px 20px;display:flex;overflow:auto}.meeting-history-head{align-items:center;gap:6px;padding:0 4px;font-size:12px;display:flex}.meeting-history-head strong{flex:1}.meeting-history-head b{color:var(--ink-faint);font-size:11px;font-weight:600}.meeting-history-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.meeting-history-item{text-align:left;width:100%;color:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;flex-direction:column;gap:2px;padding:10px;display:flex}.meeting-history-item:hover{background:#233a560a}.meeting-history-item.is-active{background:#233a560f;border-color:#233a561a}.meeting-history-item strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.meeting-history-item span,.meeting-history-item small{color:var(--ink-faint);font-size:10px}@media (width<=1100px){.meeting-tool-with-history{grid-template-columns:1fr}.meeting-history-pane{border-bottom:1px solid #233a5612;border-right:0;max-height:200px}}.meeting-live-badge{color:#b42318;font-variant-numeric:tabular-nums;background:#b4231814;border-radius:999px;align-items:center;gap:8px;padding:4px 10px;font-size:12px;display:inline-flex}.meeting-live-badge>i{background:#b42318;border-radius:50%;width:8px;height:8px;animation:1.2s ease-out infinite meeting-pulse}@keyframes meeting-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:.35;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){.meeting-live-badge>i{animation:none}}.meeting-record-btn,.meeting-stop-btn{justify-content:center;width:100%;min-height:44px}.meeting-stop-btn{color:#fff;background:#b42318;border:none}.meeting-stop-btn:hover{filter:brightness(.95)}.meeting-ended-actions{flex-direction:column;gap:10px;display:flex}.meeting-submit-check{color:var(--ink-muted,#4a5d73);align-items:center;gap:8px;font-size:12px;display:inline-flex}.meeting-submit-check input{width:14px;height:14px}.meeting-record-meta{color:var(--ink-faint);font-size:11px}.meeting-record-log{background:#233a5605;border:1px solid #233a5614;border-radius:10px;max-height:280px;padding:12px 14px;overflow:auto}.meeting-record-log ul{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.meeting-record-log li{grid-template-columns:54px minmax(0,1fr);gap:10px;font-size:12px;line-height:1.45;display:grid}.meeting-record-log time{color:var(--ink-faint);font-variant-numeric:tabular-nums}.meeting-record-log li.is-interim span{color:var(--ink-faint);font-style:italic}.meeting-minutes-block .meeting-minutes-output{max-height:320px;overflow:auto}.meeting-tool-list ul{flex-direction:column;gap:8px;margin:12px 0 0;padding:0;list-style:none;display:flex}.meeting-tool-list li{border:1px solid #233a5614;border-radius:10px;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;display:grid}.meeting-tool-card-icon{background:#233a560f;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.meeting-tool-card-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.meeting-tool-card-copy strong{font-size:12px}.meeting-tool-card-copy span,.meeting-tool-card-copy small{color:var(--ink-faint);font-size:11px}@media (width<=980px){.lpr-calculator-body,.meeting-tool-body{grid-template-columns:1fr}.lpr-calculator-form,.meeting-tool-form{border-bottom:1px solid #233a5612;border-right:0}}.artifact-trace-measuring{z-index:6;pointer-events:auto;background:#ffffff8c;justify-content:center;align-items:center;animation:.16s ease-out artifact-trace-measuring-in;display:flex;position:absolute;inset:0}.artifact-trace-measuring-hint{color:#5a6472;background:#ffffffeb;border-radius:999px;align-items:center;gap:8px;padding:8px 16px;font-size:13px;display:inline-flex;box-shadow:0 2px 10px #00000014}.artifact-trace-measuring-hint:before{content:"";border:2px solid #2a5bab40;border-top-color:#2a5bab;border-radius:50%;width:12px;height:12px;animation:.8s linear infinite artifact-trace-spin}@keyframes artifact-trace-spin{to{transform:rotate(360deg)}}@keyframes artifact-trace-measuring-in{0%{opacity:0}to{opacity:1}}.proj-progress-modal .proj-progress-wrap{margin-top:4px}.proj-progress-modal-hint{color:var(--text-muted);margin:0 0 12px;font-size:12px;line-height:1.5}.proj-progress-wrap{flex-direction:column;width:100%;min-height:0;display:flex}.proj-progress-pct-bar{text-align:center;color:var(--text-muted);flex-shrink:0;margin-bottom:10px;font-size:12px}.proj-progress-pct-bar strong{color:var(--ink);font-size:14px}.proj-progress-legend{flex-wrap:wrap;justify-content:center;gap:16px;margin-bottom:12px;display:flex}.proj-legend-item{color:var(--text-muted);align-items:center;gap:6px;font-size:11px;font-weight:600;display:inline-flex}.proj-legend-dot{border-radius:50%;width:10px;height:10px;display:inline-block;box-shadow:0 0 0 2px #ffffffe6,0 1px 3px #00000026}.proj-legend-dot.done{background:#22c55e}.proj-legend-dot.active{background:#f97316}.proj-legend-dot.pending{background:#ef4444}.proj-h-scroll{flex:1;min-height:0;padding-bottom:4px;overflow:auto}.proj-h-board{min-width:max(100%,720px);padding:4px 8px 8px}.proj-h-primary-row,.proj-h-sub-row{align-items:flex-start;gap:0;display:flex}.proj-h-col{flex:1 1 0;min-width:108px;max-width:180px;padding:0 2px}.proj-h-col-subs{border-top:1px dashed var(--line);min-height:48px;margin-top:6px;padding-top:8px}.proj-h-seg{align-items:flex-start;width:100%;display:flex}.proj-h-line{background:#e2e8f0;border-radius:2px;flex:1;height:3px;margin-top:11px}.proj-h-seg-first .proj-h-line-in,.proj-h-seg-last .proj-h-line-out{visibility:hidden}.proj-h-seg-done .proj-h-line-in,.proj-h-seg-done .proj-h-line-out{opacity:.85;background:#22c55e}.proj-h-seg-active .proj-h-line-in{opacity:.9;background:#f97316}.proj-h-seg-active .proj-h-line-out{background:#e2e8f0}.proj-h-step-wrap{z-index:1;flex-direction:column;flex-shrink:0;align-items:center;gap:4px;display:flex}.proj-h-step{border-radius:var(--radius-sm,8px);text-align:center;background:0 0;border:none;flex-direction:column;flex-shrink:0;align-items:center;gap:4px;width:100%;max-width:120px;margin:0;padding:4px 6px 8px;display:flex}.proj-h-step-label{color:var(--ink);word-break:break-all;font-size:11px;font-weight:700;line-height:1.25}.proj-h-status-row{justify-content:center;width:100%;display:flex}.proj-v-dot{z-index:1;background:#fff;border:2px solid #cbd5e1;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;display:flex;position:relative}.proj-v-light{background:#eab308;border-radius:50%;width:10px;height:10px;display:block}.proj-h-step-done .proj-v-dot{background:#f0fdf4;border-color:#22c55e}.proj-h-step-done .proj-v-light{background:#22c55e}.proj-h-step-active .proj-v-dot{background:#fff7ed;border-color:#f97316;box-shadow:0 0 0 3px #f973162e}.proj-h-step-active .proj-v-light{background:#f97316}.proj-h-step-pending .proj-v-dot{background:#fff5f5;border-color:#ef4444}.proj-h-step-pending .proj-v-light{background:#ef4444}.proj-h-subs{border-left:2px solid #e2e8f0;margin:0;padding:0 4px 0 10px;list-style:none}.proj-h-sub-item{margin:0;padding:0}.proj-h-sub-head{align-items:flex-start;gap:4px;display:flex}.proj-h-sub-head .proj-v-sub{flex:1;min-width:0}.proj-h-sub-status-row{flex-shrink:0;justify-content:flex-start;padding-left:0;display:flex}.proj-v-sub{text-align:left;background:0 0;border:none;border-radius:6px;align-items:flex-start;gap:6px;width:100%;padding:5px 4px;display:flex}.proj-v-sub-dot{background:#fff;border:1.5px solid #cbd5e1;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:12px;height:12px;margin-top:2px;display:flex}.proj-v-sub-dot .proj-v-light{width:5px;height:5px}.proj-v-sub-done .proj-v-sub-dot{background:#f0fdf4;border-color:#22c55e}.proj-v-sub-done .proj-v-light{background:#22c55e}.proj-v-sub-active .proj-v-sub-dot{background:#fff7ed;border-color:#f97316}.proj-v-sub-active .proj-v-light{background:#f97316}.proj-v-sub-pending .proj-v-sub-dot{background:#fff5f5;border-color:#ef4444}.proj-v-sub-pending .proj-v-light{background:#ef4444}.proj-v-sub-label{color:#475569;word-break:break-all;flex:1;min-width:0;font-size:11px;font-weight:600;line-height:1.35}.proj-status-picker{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:999px;flex-shrink:0;padding:2px 8px;font-size:10px;font-weight:700;line-height:1.4}.proj-status-picker:hover{box-shadow:0 1px 4px #00000014}.proj-status-picker:disabled{opacity:.55;cursor:not-allowed}.proj-status-picker-done{color:#16a34a;background:#f0fdf4;border-color:#bbf7d0}.proj-status-picker-active{color:#ea580c;background:#fff7ed;border-color:#fed7aa}.proj-status-picker-pending{color:#dc2626;background:#fff5f5;border-color:#fecaca}.proj-progress-stats{border-top:1px solid var(--line);grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-top:14px;padding-top:12px;display:grid}.proj-stat{background:var(--surface-muted);border-radius:12px;padding:10px 12px}.proj-stat-label{color:var(--text-muted);margin-bottom:4px;font-size:11px;display:block}.proj-stat-value{color:var(--ink);font-size:15px;font-weight:600;display:block}.docx-toolbar,.excel-toolbar{flex:none}.kb-stage-progress{flex-direction:column;min-height:0;display:flex;overflow:hidden}.case-progress-panel{flex-direction:column;flex:1;width:100%;min-height:0;padding:16px 24px 24px;display:flex;overflow:auto}.case-progress-panel>.proj-progress-wrap{flex:auto;width:100%;max-width:none}.case-progress-header{flex-shrink:0;margin-bottom:12px}.case-progress-header strong{margin-bottom:4px;font-size:15px;display:block}.case-progress-header p{color:var(--text-muted);margin:0;font-size:12px}
