:root{
  --bg:#f4f6fc;--surface:#ffffff;--surface-soft:#f7f9ff;--surface-tint:#eef2fb;
  --ink:#17233b;--text-secondary:#465775;--muted:#62718b;
  --line:#dce3f0;--line-strong:#a8b6d0;
  --accent:#505be8;--accent-hover:#404bc9;--accent-soft:#eef0ff;
  --blue:#3676ea;--blue-soft:#b9ceff;--cyan:#54d6f6;
  --nav-bg:#10182d;--nav-hover:#1b2743;--nav-active:#252f59;
  --warning:#8b590e;--warning-soft:#fff5e3;--danger:#b63c52;--danger-soft:#fff0f3;
  /* Keep the existing semantic class API while using the new AI palette. */
  --green:var(--accent);--green-soft:var(--accent-soft);--amber:var(--warning);--amber-soft:var(--warning-soft);--red:var(--danger);
  --radius:13px;--font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select,summary{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;font-weight:650}h2{font-size:18px;font-weight:650}h3{font-size:16px;font-weight:600}p{line-height:1.8}small{font-size:12px}button{border:0;background:transparent}.app-shell{display:flex;min-height:100vh}.sidebar{width:224px;background:var(--surface-tint);border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:34px 20px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font-size:22px;font-weight:650;padding-left:9px}.brand-mark{width:40px;height:40px;background:var(--green);color:var(--surface);border-radius:12px;display:grid;place-items:center;font-size:28px;font-weight:400;position:relative}.brand-mark span{position:absolute;right:7px;top:2px;color:var(--cyan)}.brand-caption{display:block;font-size:11px;font-weight:400;letter-spacing:2px;margin-top:4px;color:var(--muted)}.workspace-label{font-size:11px;color:var(--muted);margin:38px 10px 13px;letter-spacing:1px}nav{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:9px;text-decoration:none;color:var(--text-secondary);white-space:nowrap}.nav-icon{width:19px;height:19px;display:inline-flex}.nav-icon svg{width:100%;height:100%}.nav-item:hover{background:var(--surface-tint)}.nav-item.active{background:var(--green);color:var(--surface)}.nav-count{margin-left:auto;font-size:11px;background:#ffffff20;border-radius:5px;padding:2px 5px}.sidebar-note{margin:auto 11px 24px;color:var(--text-secondary);font-size:12px;padding-top:42px}.sidebar-note p{margin-top:10px;font-size:11px;color:var(--muted)}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--cyan);margin-right:5px}.sidebar-profile{border-top:1px solid var(--line);padding:20px 8px 0;display:flex;align-items:center;gap:10px;font-size:12px}.avatar{width:32px;height:32px;display:grid;place-items:center;background:var(--line);border-radius:50%;font-size:12px}.sidebar-profile small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.main-shell{margin-left:224px;width:calc(100% - 224px)}.topbar{height:75px;padding:0 44px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.sync-controls{display:flex;gap:12px;align-items:center}.icon-button{width:29px;height:29px;font-size:21px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.icon-button:hover{color:var(--green);border-color:var(--line-strong)}main{padding:38px 44px 30px;max-width:1550px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:1.2px;color:var(--muted);margin-bottom:12px}.subheading{margin-top:12px;color:var(--muted);font-size:13px;line-height:1.8}.date-badge{text-align:right;white-space:nowrap;font-size:13px;line-height:1.9;color:var(--muted)}.date-badge strong{display:block;color:var(--ink);font-size:17px;font-weight:500}.summary-strip{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:30px;padding:23px 12px}.stat{padding:0 22px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat-top{display:flex;align-items:center;gap:12px}.stat-number{font-size:26px;font-weight:550;letter-spacing:-1px;font-variant-numeric:tabular-nums}.stat-label{font-size:12px;color:var(--muted)}.stat-note{font-size:11px;color:var(--muted);margin-top:8px}.daily-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:27px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:12px}.section-heading span{font-size:11px;color:var(--muted)}.section-caption{font-size:12px;color:var(--muted);margin-top:-5px;margin-bottom:16px;line-height:1.7}.action-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:23px 24px;margin-bottom:13px}.action-card:first-child{border-top:3px solid var(--green);padding-top:21px}.action-meta{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.action-customer{font-weight:600;color:var(--green);font-size:12px}.action-number{margin-left:auto;color:var(--muted);font-variant-numeric:tabular-nums}.action-card h3{font-size:17px;line-height:1.65;margin-bottom:13px}.action-fields{display:grid;grid-template-columns:50px 1fr;gap:8px 10px;font-size:12px;line-height:1.75}.action-fields dt{color:var(--muted)}.action-fields dd{margin:0;color:var(--text-secondary)}.action-fields strong{font-weight:500;color:var(--ink)}.action-footer{display:flex;gap:8px;margin-top:18px;align-items:center;flex-wrap:wrap}.button{border:1px solid var(--line);border-radius:7px;padding:8px 12px;font-size:11px;background:var(--surface);line-height:1.4}.button:hover{background:var(--surface-soft)}.button.primary{background:var(--green);border-color:var(--green);color:var(--surface)}.button.primary:hover{background:var(--accent-hover)}.text-button{font-size:11px;color:var(--muted);padding:7px}.text-button:hover{color:var(--green)}.pill{display:inline-block;white-space:nowrap;font-size:10px;padding:4px 7px;border-radius:5px;background:var(--surface-tint);color:var(--text-secondary);line-height:1.2}.pill.green{background:var(--green-soft);color:var(--accent)}.pill.amber{background:var(--amber-soft);color:var(--amber)}.pill.red{background:var(--danger-soft);color:var(--red)}.side-section{margin-bottom:26px}.side-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:0 19px}.compact-action{padding:18px 0;border-bottom:1px solid var(--line)}.compact-action:last-child{border-bottom:0}.compact-action h3{font-size:13px;line-height:1.8;margin-top:7px;margin-bottom:7px}.compact-action p{font-size:11px;color:var(--muted)}.compact-action .action-footer{margin-top:9px}.note-panel{border:1px dashed var(--line);border-radius:10px;padding:16px 18px;color:var(--muted);font-size:12px;line-height:1.8;background:var(--surface-tint)}.note-panel strong{display:block;font-weight:550;color:var(--text-secondary);margin-bottom:5px}.agent-prep{margin-top:25px;border-top:1px solid var(--line);padding-top:20px}.agent-prep summary{cursor:pointer;font-size:13px;color:var(--text-secondary)}.agent-prep summary span{font-size:11px;color:var(--muted);margin-left:8px}.empty-state{background:var(--surface);border:1px dashed var(--line);border-radius:12px;padding:30px 20px;text-align:center;color:var(--muted);font-size:12px;line-height:1.8}.empty-state strong{display:block;color:var(--text-secondary);font-weight:500;margin-bottom:6px}.filters{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}.search-field{min-width:220px;flex:1;max-width:430px}.search-field,select{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:10px 12px;color:var(--text-secondary);font-size:12px}input::placeholder{color:var(--muted)}.list-table{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.list-head,.list-row{display:grid;grid-template-columns:minmax(180px,1.2fr) 110px 78px minmax(220px,1.8fr) 30px;align-items:center;gap:18px;padding:18px 20px}.list-head{padding-top:12px;padding-bottom:12px;background:var(--surface-tint);color:var(--muted);font-size:11px}.list-row{border-top:1px solid var(--line);text-align:left;width:100%;font-size:12px}.list-row:hover{background:var(--surface-soft)}.list-row strong{display:block;font-size:13px;margin-bottom:5px;font-weight:550}.list-row small{color:var(--muted);font-size:10px;line-height:1.7;display:block}.row-next{color:var(--text-secondary);font-size:12px;line-height:1.75}.arrow{font-size:19px;color:var(--muted)}.result-count{font-size:11px;color:var(--muted);margin-bottom:13px}.channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.channel-card{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.channel-card h3{margin-bottom:15px;line-height:1.7}.channel-card p{font-size:12px;color:var(--muted);margin-bottom:13px}.channel-card .next-box{background:var(--surface-soft);padding:11px 13px;border-radius:7px;color:var(--text-secondary);font-size:12px;line-height:1.8}.channel-card .action-footer{margin-top:16px}.record-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:16px;padding:24px}.record-header{display:flex;justify-content:space-between;gap:14px;margin-bottom:13px}.record-header p{color:var(--muted);font-size:12px;margin-top:6px}.record-amount{font-size:23px;font-weight:500;white-space:nowrap}.payment-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;border-top:1px solid var(--line);padding:13px 0;gap:15px;font-size:12px;color:var(--text-secondary)}.payment-grid.header{color:var(--muted);font-size:11px}.timeline{padding:4px 0}.timeline-item{position:relative;padding:0 0 25px 25px;border-left:1px solid var(--line);margin-left:5px}.timeline-item:before{content:'';position:absolute;left:-4px;top:5px;width:7px;height:7px;background:var(--line-strong);border-radius:50%}.timeline-item:last-child{padding-bottom:0}.timeline-item h3{font-size:13px;line-height:1.8}.timeline-item p{font-size:12px;color:var(--muted);margin-top:6px}.timeline-meta{color:var(--muted);font-size:10px;margin-bottom:6px}.source{font-size:10px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere;margin-top:8px}.source a{color:var(--muted);text-underline-offset:3px}footer{padding:20px 44px 26px;color:var(--muted);font-size:10px;max-width:1550px;margin:auto}dialog{border:0;border-radius:16px;padding:0;width:min(780px,calc(100vw - 32px));max-height:90vh;box-shadow:0 24px 110px #10172e30;background:var(--bg);color:var(--ink)}dialog::backdrop{background:#10172e66;backdrop-filter:blur(3px)}.dialog-head{position:sticky;top:0;background:var(--bg);padding:25px 30px 18px;border-bottom:1px solid var(--line);z-index:2;display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.dialog-head h2{font-size:23px;margin:8px 0 0}.close-button{font-size:23px;line-height:1;width:30px;height:30px;border-radius:50%;background:var(--surface-tint)}.dialog-body{padding:24px 30px 30px}.dialog-section{margin-bottom:25px}.dialog-section h3{font-size:13px;color:var(--muted);margin-bottom:12px}.dialog-section>p{font-size:13px;color:var(--text-secondary)}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:22px}.detail-metric{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:14px;font-size:12px}.detail-metric small{display:block;color:var(--muted);margin-bottom:8px}.steps{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:0 0 24px}.step{text-align:center;font-size:10px;color:var(--muted);line-height:1.5}.step-dot{background:var(--surface-tint);height:5px;border-radius:5px;margin-bottom:9px}.step.current{color:var(--green);font-weight:600}.step.current .step-dot{background:var(--green)}.step.past .step-dot{background:var(--blue-soft)}.detail-rule{padding:12px 15px;border-left:3px solid var(--line-strong);background:var(--surface);margin-bottom:8px;font-size:12px;line-height:1.8}.detail-rule strong{display:block;font-weight:500;color:var(--text-secondary)}.dialog-section .action-card{padding:17px}.dialog-section .action-card h3{color:var(--ink);font-size:15px}.loading{padding:70px;text-align:center;color:var(--muted)}#connection-error{background:var(--warning-soft);color:var(--warning);padding:14px 44px;font-size:12px;line-height:1.8}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:var(--nav-bg);color:var(--surface);border-radius:9px;box-shadow:0 8px 28px #10172e25;padding:12px 20px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:10;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}.copy-fallback{width:100%;height:170px;padding:12px;font-family:var(--font);border:1px solid var(--line);border-radius:8px;resize:vertical}.log-detail{margin-top:12px;font-size:11px;color:var(--muted)}.log-detail summary{cursor:pointer}.log-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 var(--font);background:var(--surface-soft);border-radius:6px;padding:12px}.mini-spacer{margin-top:17px}.page-actions{display:flex;gap:8px}
@media(min-width:1600px){main{padding-top:46px}.daily-grid{gap:35px}.action-card{padding:26px 28px}}
@media(max-width:1150px){.sidebar{width:190px;padding-left:14px;padding-right:14px}.main-shell{margin-left:190px;width:calc(100% - 190px)}main{padding:28px}.topbar{padding:0 28px}.daily-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:18px}.stat{padding:0 13px}.list-head,.list-row{grid-template-columns:minmax(140px,1fr) 90px 70px minmax(170px,1.3fr) 18px;gap:10px;padding-left:16px;padding-right:16px}}
@media(max-width:950px){.daily-grid{grid-template-columns:1fr}.daily-side{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.daily-side .note-panel{grid-column:1/-1}.channel-grid{grid-template-columns:1fr}.list-head,.list-row{grid-template-columns:minmax(130px,1fr) 90px 70px 20px}.row-next{grid-column:1/-1}.list-head .row-next{display:none}.list-row .arrow{grid-column:4;grid-row:1}.list-row .row-next{margin-top:4px;padding-top:10px;border-top:1px dashed var(--line)}}
@media(max-width:700px){.sidebar{position:static;width:100%;padding:18px 18px 10px;display:block;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:19px;padding:0}.brand-mark{height:34px;width:34px;font-size:24px}.brand-caption{font-size:9px;letter-spacing:1.5px}.workspace-label{position:absolute;right:20px;top:24px;margin:0;font-size:9px}.sidebar-note,.sidebar-profile{display:none}nav{flex-direction:row;overflow-x:auto;gap:5px;margin-top:19px;padding-bottom:3px}.nav-item{font-size:11px;gap:6px;padding:10px 11px}.nav-icon{width:14px;height:14px}.nav-count{display:none}.app-shell{display:block}.main-shell{margin:0;width:100%}.topbar{height:48px;padding:0 20px;font-size:10px}.sync-controls{gap:6px}#sync-status{font-size:9px}.icon-button{height:25px;width:25px;font-size:17px}main{padding:27px 19px 20px}.page-heading{margin-bottom:23px;align-items:flex-start;gap:10px}h1{font-size:26px}.subheading{font-size:11px;margin-top:10px}.eyebrow{font-size:9px;margin-bottom:8px}.date-badge{font-size:10px;padding-top:18px}.date-badge strong{font-size:12px}.summary-strip{grid-template-columns:repeat(2,1fr);padding:6px 0;margin-bottom:27px}.stat{padding:14px 18px}.stat:nth-child(2){border:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.stat-number{font-size:23px}.stat-label{font-size:11px}.stat-note{font-size:9px;margin-top:5px}.daily-side{display:block}.section-heading h2{font-size:17px}.action-card{padding:20px}.action-card:first-child{padding-top:18px}.action-card h3{font-size:16px}.action-fields{font-size:11px;grid-template-columns:43px 1fr;gap:7px}.section-caption{font-size:11px}.side-section{margin-bottom:24px}.filters{gap:8px}.search-field{max-width:none;min-width:100%;}select{flex:1;min-width:0;font-size:11px}.list-head{display:none}.list-row{grid-template-columns:1fr auto auto 15px;padding:18px 15px;gap:8px}.list-row:first-child{border-top:0}.list-row strong{font-size:12px}.list-row small{font-size:9px}.list-row .pill{font-size:9px;padding:4px 5px}.list-row .stage-text{font-size:10px}.row-next{font-size:11px}.record-card,.channel-card{padding:20px}.record-amount{font-size:18px}.record-header{align-items:flex-start}.record-header h3{font-size:14px}.payment-grid{gap:7px;font-size:10px}.payment-grid.header{font-size:9px}.dialog-head{padding:22px 20px 17px}.dialog-head h2{font-size:19px}.dialog-body{padding:22px 20px}.detail-grid{gap:6px}.detail-metric{font-size:10px;padding:11px 9px}.detail-metric small{font-size:9px}.steps{gap:4px}.step{font-size:9px}.dialog-section>p{font-size:12px}footer{padding:12px 20px 24px;font-size:9px}#connection-error{padding:12px 20px}.loading{padding:60px 15px}.page-actions .button{font-size:10px;padding:7px}.log-detail pre{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

[hidden]{display:none!important}.auth-screen{min-height:100vh;background:var(--bg)}.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(350px,1fr) minmax(420px,1fr)}.auth-intro{background:var(--surface-tint);padding:54px 10%;display:flex;flex-direction:column;justify-content:space-between;border-right:1px solid var(--line)}.auth-intro .brand{padding:0;width:max-content}.auth-statement{padding:70px 0 85px;max-width:470px}.auth-statement .eyebrow{letter-spacing:2px;color:var(--muted);margin-bottom:24px}.auth-statement h1{font-size:42px;line-height:1.55;letter-spacing:-1.3px;font-weight:550;color:var(--ink)}.auth-statement>p{font-size:14px;line-height:2;color:var(--muted);margin-top:25px}.auth-flow{display:flex;align-items:center;gap:16px;font-size:11px;color:var(--muted);margin-top:44px}.auth-flow i{font-style:normal;color:var(--muted)}.auth-flow span{padding:8px 12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:6px}.auth-local{color:var(--muted);font-size:11px;line-height:1.8}.auth-panel{display:flex;align-items:center;justify-content:center;padding:50px 40px}.auth-panel-inner{width:100%;max-width:360px}.auth-panel .eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted);margin-bottom:13px}.auth-panel h2{font-size:27px;font-weight:550;letter-spacing:-.6px}.auth-caption{font-size:12px;color:var(--muted);line-height:1.9;margin:14px 0 30px}.form-label{display:block;font-size:12px;color:var(--text-secondary);margin:18px 0 9px}.auth-panel input,.account-actions+input,#account-form input{width:100%;border:1px solid var(--line);border-radius:8px;padding:12px 13px;background:var(--surface);color:var(--ink);min-height:44px;font-size:13px;outline-color:var(--accent)}.auth-panel input::placeholder{font-size:12px;color:var(--muted)}.password-wrap{position:relative}.password-wrap input{padding-right:57px!important}.password-toggle{position:absolute;right:3px;top:3px;bottom:3px;padding:0 12px;font-size:11px;color:var(--muted);border-radius:6px}.password-toggle:hover{background:var(--surface-tint)}.field-hint{font-size:10px;color:var(--muted);margin-top:8px;line-height:1.8}.form-error{min-height:20px;font-size:11px;color:var(--danger);line-height:1.8;margin-top:17px;margin-bottom:10px;overflow-wrap:anywhere}.auth-submit{width:100%;padding:13px!important;font-size:13px!important;margin-top:3px;border-radius:8px}.auth-footnote{color:var(--muted);font-size:10px;line-height:1.9;margin-top:23px;text-align:center}.auth-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px;color:var(--muted);font-size:12px}.auth-error-card{max-width:390px;margin:auto;min-height:100vh;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:32px;gap:19px}.auth-error-card h2{font-size:23px;font-weight:550}.auth-error-card p{font-size:12px;color:var(--muted);line-height:1.9}.auth-error-card .button{margin-top:7px}.account-button{border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:11px;color:var(--text-secondary);max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-button:hover{background:var(--surface-tint)}#account-dialog{max-width:460px}#account-form{margin-top:-8px}.account-actions{display:flex;gap:9px;margin-top:15px}.account-actions .button{padding:10px 16px}.auth-disabled-note{padding:15px;background:var(--surface-tint);border-radius:8px;color:var(--muted);font-size:12px;line-height:1.9;margin-top:25px}
@media(max-width:950px){.auth-intro{padding:40px 9%}.auth-statement h1{font-size:34px}.auth-layout{grid-template-columns:minmax(300px,1fr) minmax(370px,1fr)}.auth-panel{padding:40px 30px}.topbar{gap:10px}.sync-controls{gap:7px}}
@media(max-width:700px){.auth-layout{display:block}.auth-intro{padding:28px 25px 23px;border-right:0;border-bottom:1px solid var(--line)}.auth-intro .brand{font-size:20px}.auth-statement{padding:30px 0 3px;max-width:none}.auth-statement .eyebrow,.auth-statement>p,.auth-flow,.auth-local{display:none}.auth-statement h1{font-size:23px;line-height:1.6;letter-spacing:-.6px}.auth-statement h1 br{display:none}.auth-panel{padding:34px 25px 45px}.auth-panel-inner{max-width:410px}.auth-panel h2{font-size:25px}.auth-caption{margin-bottom:25px}.auth-panel input,#account-form input{font-size:16px}.auth-footnote{font-size:9px}.account-button{font-size:9px;max-width:80px;padding:5px 7px}.topbar #breadcrumb{display:none}.sync-controls{width:100%;justify-content:flex-end}.sync-controls #sync-status{margin-right:auto}.topbar .text-button{font-size:10px}.auth-error-card{max-width:390px}.auth-loading{min-height:100dvh}}

/* Business collaboration views */
.sidebar{width:218px;padding:28px 16px 20px}.main-shell{margin-left:218px;width:calc(100% - 218px)}.nav-item{padding:11px 12px;font-size:13px}.workspace-label{margin-top:30px}.sidebar-note{padding-top:22px;margin-bottom:20px}.sidebar-profile{padding-top:14px}.topbar{height:64px;padding:0 32px}main{padding:30px 32px;max-width:1600px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:30px}.page-heading .subheading{margin-top:8px}.eyebrow{font-size:10px;margin-bottom:9px}.heading-actions{display:flex;align-items:center;gap:14px}.edition-label{font-size:11px;color:var(--muted)}.mode-switch{font-size:11px;border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:7px 10px;white-space:nowrap}.mode-switch[aria-pressed=true]{background:var(--green);color:var(--surface)}.business-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.business-toolbar>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.scope-caption{font-size:11px;color:var(--muted);line-height:1.7}.filter-label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:9px}.filter-label select{padding:7px 10px}.business-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:22px}.business-kpi{display:flex;flex-direction:column;justify-content:space-between;min-height:126px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;text-decoration:none}.business-kpi:hover{border-color:var(--line-strong)}.business-kpi:first-child{background:var(--green);border-color:var(--green);color:var(--surface)}.business-kpi>span{font-size:12px;color:var(--muted)}.business-kpi:first-child>span,.business-kpi:first-child>small{color:#d7e1ff}.business-kpi strong{font-size:28px;font-weight:600;letter-spacing:-.5px;line-height:1.5;overflow-wrap:anywhere}.business-kpi small{font-size:10px;color:var(--muted);line-height:1.7}.business-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;margin-bottom:20px}.business-panel{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}.business-panel .section-heading{margin-bottom:14px}.business-panel h2{font-size:16px}.business-panel .section-caption{font-size:11px}.wide-panel{margin-bottom:20px}.pipeline-bars{display:flex;flex-direction:column;gap:16px;margin-top:23px}.pipeline-step{text-decoration:none}.pipeline-step>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:7px}.pipeline-step strong{font-size:16px;font-weight:600}.bar-track{height:8px;background:var(--surface-soft);border-radius:10px;overflow:hidden}.bar-track span{display:block;background:var(--blue);height:100%;border-radius:10px}.pipeline-step:nth-child(n+4) .bar-track span{background:var(--green)}.overview-project{padding:14px 0;border-top:1px solid var(--line)}.overview-project h3{font-size:15px;line-height:1.7}.overview-project p{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.9}.overview-project-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px;color:var(--muted);font-size:11px}.business-table-wrap{overflow-x:auto;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px}.business-panel>.business-table-wrap{border:0;border-radius:0}.business-table{border-collapse:collapse;width:100%;text-align:left;min-width:750px;font-size:12px;line-height:1.7}.business-table th{font-weight:400;background:var(--surface-soft);color:var(--muted);font-size:10px;padding:11px 14px;white-space:nowrap}.business-table td{padding:16px 14px;vertical-align:top;border-bottom:1px solid var(--line);min-width:110px}.business-table td:first-child{min-width:180px;max-width:280px}.business-table td:last-child{min-width:75px;width:75px}.business-table tr:last-child td{border:0}.business-table td strong{display:block;font-size:12px;font-weight:550}.business-table td small{display:block;color:var(--muted);font-size:10px;margin-top:5px;max-width:280px;line-height:1.8;overflow-wrap:anywhere}.business-table .table-money{white-space:nowrap}.channel-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 13px}.channel-overview>div{background:var(--surface-soft);padding:12px;border-radius:8px}.channel-overview strong{display:block;font-size:23px;font-weight:550}.channel-overview span{color:var(--muted);font-size:10px}.compact-channel{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}.compact-channel strong{font-size:12px;font-weight:550}.compact-channel small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.business-change{border-top:1px solid var(--line);padding:11px 0}.business-change small{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.business-change strong{font-size:12px;font-weight:550;line-height:1.7}.business-change p{font-size:11px;color:var(--muted);margin-top:3px}.attention-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.attention-item{padding:14px;background:var(--warning-soft);border-radius:8px}.attention-item strong{font-size:12px;font-weight:550}.attention-item p{font-size:11px;color:var(--muted);margin-top:8px;line-height:1.8}.data-footnote{font-size:10px;color:var(--muted);line-height:1.9;margin:18px 0 0;grid-column:1/-1}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.project-card h2{font-size:18px;line-height:1.8}.project-subtitle{font-size:11px;color:var(--muted);margin-top:6px}.project-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}.project-status-grid>div{padding:11px;background:var(--surface-soft);border-radius:7px}.project-status-grid small{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.project-status-grid strong{font-size:12px;font-weight:500}.project-next{border-top:1px solid var(--line);padding-top:16px}.project-next>small{font-size:10px;color:var(--muted)}.project-next p{font-size:12px;line-height:1.9;margin:9px 0;color:var(--text-secondary)}.project-next>span{font-size:10px;color:var(--muted)}.milestone-empty{padding:12px;background:var(--surface-soft);color:var(--muted);font-size:10px;line-height:1.8;border-radius:7px;margin-top:16px}.project-blocker{border-left:3px solid var(--warning);padding:10px 12px;margin-top:16px;background:var(--warning-soft);font-size:11px;color:var(--text-secondary);line-height:1.9}.project-blocker strong{display:block;font-size:10px;font-weight:500;margin-bottom:5px}.milestones{padding:0;list-style:none;margin:17px 0}.milestones li{padding:13px 0;border-top:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap;align-items:center}.milestones strong{font-size:12px;font-weight:500}.milestones small{font-size:10px;color:var(--muted);margin-left:auto}.milestones p{width:100%;font-size:11px;color:var(--muted)}.channel-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;border-top:1px solid var(--line);padding:14px 0}.channel-metrics strong{display:block;font-weight:550;font-size:18px}.channel-metrics small{color:var(--muted);font-size:9px;display:block;margin-top:5px}.integration-status{padding:24px;background:var(--surface-tint);border:1px solid var(--line);border-radius:12px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.integration-status h2{margin:13px 0 10px;font-size:19px}.integration-status p{font-size:12px;max-width:650px;color:var(--muted);line-height:1.9}.change-list>div{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.change-list strong{font-weight:550}.change-list p{font-size:11px;margin-top:6px}.presentation-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--surface-tint);border:1px solid var(--line);color:var(--muted);font-size:10px;padding:10px 14px;border-radius:8px;margin-bottom:16px;line-height:1.7}.presentation-banner>span{font-weight:600;color:var(--text-secondary)}.presentation-banner .text-button{margin-left:auto;font-size:10px}.presenting .sidebar-profile,.presenting #account-button,.presenting #logout{display:none}.finance-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}footer{padding-left:32px}.business-panel .empty-state{padding:24px 14px}.business-panel .section-heading select{padding:5px 8px;font-size:10px}
@media(min-width:1700px){main{padding-top:36px}.business-kpi{padding:21px;min-height:136px}.business-kpi strong{font-size:31px}.business-panel{padding:25px}}
@media(max-width:1150px){.sidebar{width:190px}.main-shell{margin-left:190px;width:calc(100% - 190px)}main{padding:26px 24px}.topbar{padding:0 24px}.business-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.business-kpi{min-height:116px}.business-grid{gap:16px}.business-panel{padding:18px}.project-grid{grid-template-columns:1fr}.scope-caption{font-size:10px}}
@media(max-width:950px){.business-grid{grid-template-columns:1fr}.business-kpis{gap:10px}.heading-actions{flex-direction:column;align-items:flex-end;gap:6px}.channel-grid{grid-template-columns:1fr}.business-table{min-width:700px}}
@media(max-width:700px){.sidebar{width:100%;position:static;padding:18px 18px 10px}.main-shell{margin:0;width:100%}.sidebar .brand{font-size:20px}.sidebar .workspace-label{margin-top:0}.nav-item{font-size:11px;padding:10px}.sidebar-note,.sidebar-profile{display:none}.topbar{height:auto;min-height:50px;padding:10px 18px}.sync-controls{flex-wrap:wrap;gap:8px}.mode-switch{font-size:10px;padding:6px 8px}main{padding:24px 18px}.page-heading h1{font-size:26px}.business-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.business-kpi{padding:15px;min-height:111px}.business-kpi strong{font-size:25px}.business-kpi small{font-size:9px}.business-toolbar{gap:12px}.business-toolbar>div{gap:7px}.business-toolbar .filter-label{width:100%;justify-content:space-between}.business-grid{gap:16px}.attention-grid{grid-template-columns:1fr}.business-panel{padding:18px}.integration-status{display:block;padding:19px}.integration-status>.pill{margin-top:15px}.integration-status h2{font-size:17px}.project-status-grid{gap:6px}.project-status-grid>div{padding:10px}.project-status-grid strong{font-size:11px}.presentation-banner .text-button{margin-left:0}.channel-metrics strong{font-size:16px}.heading-actions .edition-label{display:none}.heading-actions .button{font-size:10px}.data-footnote{font-size:9px}footer{padding:16px 18px}.filters .filter-label{width:100%}.business-panel .section-heading{gap:8px}.business-panel h2{font-size:16px}}
@media print{.sidebar,.topbar,footer,.heading-actions,.presentation-banner,.business-toolbar select,.business-panel .text-button{display:none!important}.main-shell{margin:0;width:100%}main{padding:0;max-width:none}.business-panel,.business-kpi{break-inside:avoid}.business-table-wrap{overflow:visible}.business-table{min-width:0;font-size:10px}.business-kpis{grid-template-columns:repeat(5,1fr)}.business-kpi{padding:10px;min-height:100px}.business-kpi strong{font-size:22px}.business-grid{grid-template-columns:1fr 1fr}body{-webkit-print-color-adjust:exact;print-color-adjust:exact}.business-table td{min-width:0;padding:9px}.business-table td:first-child{min-width:0}.business-table td:last-child{display:none}}

.business-table .text-button{white-space:nowrap;padding:5px 0}.business-table td:last-child{min-width:83px;width:83px}

/* Member management follows the existing restrained business layout. */
#access-dialog { width:min(920px,calc(100vw - 24px));max-width:920px; }
#activation-dialog { width:min(520px,calc(100vw - 24px)); }
.access-section {border-top:1px solid var(--line,var(--surface-tint));padding-top:22px;margin-top:24px;}
.access-form {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0;}
.access-form input {flex:1;min-width:160px;}
.access-form input,.access-form select,#activation-code {padding:10px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;}
#activation-code {width:100%;box-sizing:border-box;}
.access-table {overflow-x:auto;}
.access-table table {width:100%;border-collapse:collapse;}
.access-table th,.access-table td {padding:12px 8px;border-bottom:1px solid var(--surface-tint);text-align:left;vertical-align:top;}
.access-table small {display:block;color:var(--text-secondary);margin-top:4px;}
.access-secret {background:var(--surface-soft);border:1px solid var(--line-strong);border-radius:12px;padding:18px;overflow-wrap:anywhere;}
.access-secret textarea {min-height:78px;width:100%;box-sizing:border-box;}
.access-security {max-height:200px;overflow:auto;font-size:12px;color:var(--text-secondary);overflow-wrap:anywhere;}
.access-help {margin-top:18px;font-size:13px;line-height:1.7;}
.danger {color:var(--danger);}
@media(max-width:600px){.access-form{align-items:stretch;flex-direction:column}.access-table td{min-width:100px}.access-body{padding:18px}.sync-controls{flex-wrap:wrap}.access-table th{white-space:nowrap}}

/* Focused work view. */
.focus-caption{margin:6px 0 0;font-size:12px;line-height:1.6;color:var(--text-secondary)}
.section-count{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:5px;background:var(--green-soft);color:var(--green)!important;font-size:12px!important;vertical-align:middle}
.collaboration-item{padding:16px 18px;border:1px solid var(--line);border-radius:9px;background:var(--warning-soft);min-width:0}
.collaboration-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap;line-height:1.7}
.collaboration-title strong{font-size:13px;font-weight:600}
.collaboration-reason{font-size:12px;line-height:1.8;color:var(--text-secondary);margin-top:10px}
.collaboration-next{font-size:12px;line-height:1.8;color:var(--text-secondary);margin-top:10px}
.collaboration-next>span{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}
.collaboration-decision{font-size:12px;margin-top:8px;color:var(--text-secondary)}
.collaboration-meta{display:flex;gap:6px 16px;flex-wrap:wrap;font-size:11px;color:var(--text-secondary);margin-top:12px;line-height:1.7}
.collaboration-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}
.collaboration-more{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.collaboration-more summary{cursor:pointer;color:var(--green);font-size:12px;padding:3px 0}
.collaboration-more .attention-grid{margin-top:14px}
.focus-table{table-layout:fixed;min-width:900px}
.focus-table th:nth-child(1){width:17%}.focus-table th:nth-child(2){width:28%}.focus-table th:nth-child(3){width:27%}.focus-table th:nth-child(4){width:13%}.focus-table th:nth-child(5){width:15%}
.focus-table .focus-customer-heading th{padding:13px 14px;background:var(--surface-soft);color:var(--ink);white-space:normal;border-top:1px solid var(--line);font-size:12px;line-height:1.8}
.focus-customer-heading strong{font-size:14px;font-weight:600;margin-right:12px}
.focus-customer-heading span{font-size:11px;color:var(--text-secondary);font-weight:400}
.focus-customer-heading .focus-amount{display:block;font-size:11px;margin-top:3px;color:var(--text-secondary)}
.focus-table td{min-width:0!important;width:auto!important;padding:15px 14px;overflow-wrap:anywhere;font-size:12px;line-height:1.8}
.focus-table td:first-child{max-width:none}.focus-table td small{color:var(--text-secondary);font-size:11px;line-height:1.7}
.focus-table .focus-text{display:block;line-height:1.85}
.focus-table .focus-date{margin-top:9px;color:var(--text-secondary)}
.focus-table .agent-update-button{white-space:normal;text-align:left;line-height:1.6;padding:7px 9px}
.focus-table .pill{margin-top:6px}
.focus-table tbody:last-child tr:last-child td{border-bottom:0}
.delivery-pipeline{align-items:start}
.delivery-pipeline .pipeline-bars{gap:10px;margin-top:14px}
.delivery-pipeline .bar-track{height:5px}
.agent-update-body .update-steps{display:flex;gap:25px;flex-wrap:wrap;font-size:12px;color:var(--text-secondary);line-height:1.8;margin:0 0 23px;padding-left:19px}
.agent-update-body .agent-prompt{height:260px;font:12px/1.85 var(--font);color:var(--ink);background:var(--surface);padding:15px}
.update-help,.update-status{font-size:12px;line-height:1.8;margin-top:10px;color:var(--text-secondary)}
.update-status{color:var(--green);min-height:22px}
.update-receipt{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}
.update-receipt h3{font-size:13px;margin-bottom:8px}
.update-receipt p{font-size:12px;color:var(--text-secondary)}
.update-receipt small{display:block;overflow-wrap:anywhere;font-size:11px;line-height:1.8;color:var(--muted);margin-top:5px}
.presenting .focus-table th:nth-child(1){width:24%}.presenting .focus-table th:nth-child(2){width:45%}.presenting .focus-table th:nth-child(3){width:19%}.presenting .focus-table th:nth-child(4){width:12%}
@media(max-width:1150px) and (min-width:701px){.collaboration-panel .attention-grid{grid-template-columns:1fr}.focus-table{min-width:850px}}
@media(max-width:700px){
  .focus-table-wrap{overflow:visible}.focus-table{min-width:0;table-layout:auto;display:block}.focus-table thead{display:none}.focus-table tbody,.focus-table tr,.focus-table td,.focus-table th{display:block;width:100%!important}
  .focus-table .focus-customer-heading th{padding:13px 12px}.focus-table .focus-opportunity{padding:14px 12px;border-bottom:1px solid var(--line)}
  .focus-table .focus-opportunity td{padding:6px 0;border:0!important}.focus-table .focus-opportunity td:before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.focus-table .focus-opportunity td:first-child:before,.focus-table .focus-opportunity td:last-child:before{display:none}
  .focus-table .focus-opportunity td:first-child strong{font-size:14px}.focus-table .focus-opportunity td:first-child .text-button{padding:3px 0}.focus-table .focus-opportunity td:last-child .button{width:100%;text-align:center;margin-top:4px}
  .focus-table .focus-opportunity td[data-label="负责人 / 状态"]>span{margin-right:10px}.focus-table .focus-opportunity td[data-label="负责人 / 状态"] small{display:inline;margin-right:8px}
  .collaboration-item{padding:14px}.collaboration-actions{flex-wrap:wrap}.collaboration-meta{gap:6px 12px}.agent-update-body .update-steps{display:block}.agent-update-body .update-steps li+li{margin-top:7px}.agent-update-body .agent-prompt{height:230px}
}
@media print{.agent-update-button,.collaboration-actions{display:none!important}.focus-table{min-width:0;table-layout:auto}.focus-table td:last-child,.focus-table thead th:last-child{display:none}.collaboration-more:not([open]){display:none}.focus-table th{white-space:normal}}

.focus-more{font-size:11px;margin-top:6px;color:var(--green)}.focus-more summary{cursor:pointer;line-height:1.7}.focus-more p{font-size:12px;line-height:1.85;margin-top:8px;color:var(--ink);overflow-wrap:anywhere}

/* AI workspace color system: dark navigation, cool surfaces, indigo actions. */
::selection{background:#dce3ff;color:#17233b}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sidebar{background:var(--nav-bg);border-color:#283452;color:#e9efff}
.sidebar .brand{color:#f4f7ff}.brand-mark{background:var(--accent);color:#fff}.brand-mark span{color:var(--cyan)}
.sidebar .brand-caption,.sidebar .workspace-label{color:#a4b3cf}
.sidebar .nav-item{color:#bac7df}.sidebar .nav-item:hover{background:var(--nav-hover);color:#fff}
.sidebar .nav-item.active{background:var(--nav-active);color:#fff;box-shadow:inset 3px 0 0 var(--cyan)}
.sidebar .nav-item:focus-visible{outline-color:var(--cyan)}
.sidebar-note{color:#c1cde4}.sidebar-note p,.sidebar-profile small{color:#a4b3cf}
.sidebar-profile{border-color:#2a3651;color:#e8eeff}.sidebar-profile .avatar{background:#28365b;color:#c5d4ff}
.sidebar .status-dot{background:var(--cyan)}
.topbar{background:#ffffffd9;border-color:var(--line)}
.button.primary,.mode-switch[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.button.primary:hover,.mode-switch[aria-pressed=true]:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.button:hover,.account-button:hover,.icon-button:hover{background:var(--accent-soft);border-color:#bbc5ff}
.button:disabled:hover{background:var(--surface)}.button.primary:disabled:hover{background:var(--accent)}
.agent-update-button{color:var(--accent);border-color:#c8ceff;background:#f7f8ff}
.agent-update-button.primary{color:#fff;background:var(--accent)}
.business-kpi:first-child{background:#19274b;border-color:#273b65;color:#fff}
.business-kpi:first-child strong{color:#91e5ff}.business-kpi:first-child>span,.business-kpi:first-child>small{color:#d0dcf6}
.business-kpi:hover{border-color:#a8b5ff}.business-panel,.record-card,.channel-card{box-shadow:0 2px 8px #15265203}
.pill.green{background:var(--accent-soft);color:var(--accent)}
.collaboration-item{background:#f7f9ff;border-color:#dfe5f7}
.collaboration-reason,.collaboration-decision{color:var(--text-secondary)}
.collaboration-next{color:#354b76}.collaboration-next>span,.collaboration-meta{color:var(--muted)}
.focus-table .focus-customer-heading th{background:#eef2fc}
.focus-table .focus-customer-heading strong{color:#2b4175}.focus-table .focus-customer-heading span{color:#536582}
.business-table th{background:#f0f3fb;color:#586983}.business-table td small{color:var(--muted)}
.business-table tbody tr:hover td{background:#fafbff}
.bar-track{background:#eaf0fc}.bar-track span{background:var(--blue)}.pipeline-step:nth-child(n+4) .bar-track span{background:var(--accent)}
.integration-status,.presentation-banner{background:#eef2ff;border-color:#d9e0ff;color:#536589}
.presentation-banner>span{color:#424fbc}.integration-status p{color:#536589}
.access-secret{background:#f0f4ff;border-color:#c4d2fa}.access-security,.access-table small{color:var(--muted)}
.auth-intro{background:var(--nav-bg);border-color:#273452;color:#eef3ff}
.auth-intro .brand,.auth-statement h1{color:#f1f5ff}.auth-intro .brand-caption{color:#a8b8d7}
.auth-statement .eyebrow{color:#8aa5ff}.auth-statement>p,.auth-flow,.auth-local{color:#b6c4e1}
.auth-flow span{background:#1a2846;border-color:#334466;color:#dce6ff}.auth-flow i{color:var(--cyan)}
.auth-panel input:focus,#account-form input:focus,.access-form input:focus{border-color:var(--accent)}
.auth-panel input::placeholder,input::placeholder{color:#697992}
.auth-intro :focus-visible{outline-color:var(--cyan)}
dialog{box-shadow:0 24px 110px #10172e30}dialog::backdrop{background:#10172e66}
#toast{background:var(--nav-bg);box-shadow:0 8px 28px #10172e25;color:#f1f5ff}
@media(max-width:700px){.sidebar,.auth-intro{border-bottom-color:#293755}}
@media print{.business-panel,.record-card,.channel-card{box-shadow:none}.business-kpi:first-child{background:#eef2ff;color:var(--ink)}.business-kpi:first-child strong{color:var(--accent)}.business-kpi:first-child>span,.business-kpi:first-child>small{color:var(--text-secondary)}}
