/* Source: layout.css */
/* Retain v1.2 feature components, then restore the user's original visual system. */
/* Source: workbench.css */
/* Source: style.css */
:root{--ink:#263b35;--text:#46554f;--muted:#78827d;--line:#e5e8e2;--paper:#f7f8f4;--surface:#fff;--brand:#245b4d;--brand-dark:#174c43;--brand-pale:#edf3ee;--danger:#a6503c;--success:#3c7059;--radius:10px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);font-size:14px;font-synthesis:none;font-variant-numeric:tabular-nums}*{box-sizing:border-box}body{margin:0;background:var(--paper);line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #93b6a5;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #c3d7cc;border-color:var(--brand)}h1,h2,h3,p{margin:0}h1,h2,h3,b,strong{color:var(--ink)}h1{font-size:30px;line-height:1.3;font-weight:650;margin:8px 0}h2{font-size:17px;font-weight:600}h3{font-size:15px;font-weight:600}small{font-size:12px}svg{flex-shrink:0}button svg{vertical-align:middle}button{transition:background-color .12s,border-color .12s}button:hover{filter:none}.skip{position:absolute;left:-9999px}.skip:focus{top:8px;left:8px;z-index:100;background:white;padding:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.boot{padding:80px;text-align:center}.sidebar{width:224px;position:fixed;top:0;bottom:0;left:0;border-right:1px solid var(--line);background:#f1f3ec;display:flex;flex-direction:column;padding:32px 16px 16px;z-index:30}.brand{display:flex;align-items:center;gap:12px;margin:0 12px 32px}.brand>span{font-size:24px;color:var(--ink);font-weight:650;line-height:1.25}.brand small{display:block;font-weight:400;font-size:10px;color:#728078;margin-top:5px}.workspace-label{display:flex;gap:8px;align-items:center;border:1px solid #dfe4d9;border-radius:8px;padding:12px 8px;font-size:12px;color:var(--ink);background:#f9faf7;margin-bottom:28px}.workspace-label small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.workspace-avatar{display:grid;place-items:center;background:#e6eadf;color:#64745b;width:28px;height:28px;flex-shrink:0;border-radius:5px}.nav-label{font-size:10px;color:#8a938a;margin:0 12px 12px}.nav-item{border:0;display:flex;width:100%;padding:12px;gap:12px;align-items:center;border-radius:7px;background:transparent;text-align:left;margin-bottom:4px;font-size:13px;color:#69766d}.nav-item:hover{background:#e7ece2}.nav-item.active{background:#e0e9df;color:var(--brand-dark);font-weight:600}.nav-item.active::before{content:'';height:15px;width:3px;background:var(--brand);border-radius:2px;margin-left:-12px;margin-right:-3px}.nav-count{font-size:10px;margin-left:auto;min-width:20px;text-align:center;border:1px solid #d0dccf;border-radius:4px;line-height:18px}.lower-label{margin-top:28px}.sidebar-bottom{margin-top:auto;padding-top:32px}.connection{font-size:10px;color:#788576;display:flex;align-items:center;gap:6px;padding:12px}.connection>span{width:5px;height:5px;background:#7a9376;border-radius:50%}.profile{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;border-top:1px solid #dde4d8;background:transparent;padding:16px 4px 12px}.profile span:nth-child(2){flex:1}.profile b{font-size:12px;font-weight:500}.profile small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.version{display:block;color:#a2aa9d;font-size:9px;padding-left:8px}.avatar{display:inline-grid;place-items:center;flex-shrink:0;width:34px;height:34px;background:#edf0e7;border:1px solid #e1e7dc;border-radius:50%;font-weight:500;color:#758368;font-size:13px}.avatar.dark{background:#dfe8dc;color:var(--brand);width:32px;height:32px}.main-shell{margin-left:224px}.topbar{min-height:68px;padding:16px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fdfefb}.breadcrumbs{display:flex;align-items:center;gap:12px;font-size:12px;color:#8b948e}.breadcrumbs b{font-weight:500;color:#57665c}.breadcrumbs i{font-style:normal;color:#c1c8bf}.topbar-actions{display:flex;align-items:center;gap:20px;font-size:12px}.mode-tag{font-size:10px;color:#6a7569;border:1px solid #dfe5da;border-radius:4px;padding:2px 7px}.text-button{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;padding:0;color:var(--brand);font-size:12px;text-align:left}.text-button:hover{color:var(--brand-dark);text-decoration:underline}.text-button b{font-weight:500}.mobile-toggle{display:none!important}main{max-width:1580px;margin:auto;padding:24px 40px 0}.mode-banner{display:flex;align-items:center;gap:8px;justify-content:space-between;background:#eeeee4;border:1px solid #e4e6d7;border-radius:5px;padding:8px 12px;font-size:11px;color:#7c7d68;margin-bottom:28px}.mode-banner>span{display:flex;align-items:center;gap:6px}.mode-banner>.text-button{font-size:11px;white-space:nowrap}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:32px}.page-heading p{color:var(--muted);font-size:12px}.eyebrow{font-family:Arial,sans-serif;font-size:9px;letter-spacing:1.7px;color:#8d978e;font-weight:500}.heading-actions{display:flex;gap:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border:1px solid #dce2d8;background:var(--surface);padding:8px 16px;border-radius:6px;font-size:12px;white-space:nowrap;color:#53644f;font-weight:500}.button:hover{background:#f2f5ef;border-color:#aebfa9}.button.primary{background:var(--brand-dark);color:#fff;border-color:var(--brand-dark)}.button.primary:hover{background:#226451}.button.small{font-size:11px;min-height:30px;padding:5px 10px}.button.ghost{background:transparent;border-color:#d9e1d3}.full{width:100%}.icon-button{display:inline-grid;place-items:center;width:30px;height:30px;border:0;background:transparent;border-radius:5px;color:#7a8a79}.icon-button:hover{background:#edf2e8}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.segmented{display:flex;gap:4px;flex-wrap:wrap;border:1px solid var(--line);border-radius:7px;padding:4px;background:#f0f2ed}.segmented button{border:0;background:transparent;padding:6px 14px;color:#828b80;font-size:12px;border-radius:4px}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 3px #314b3610;font-weight:500}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;background:#fdfefa;padding:6px 12px;width:288px;color:#9da69a;min-height:36px}.search input{min-width:0;width:100%;padding:0;background:transparent;border:0;font-size:11px;height:24px;color:var(--ink);outline:none}.search kbd{white-space:nowrap;font-family:inherit;font-size:9px;color:#a6afa1;border:1px solid #e6ebe0;padding:0 4px;border-radius:3px}.overview-note{display:flex;justify-content:space-between;font-size:10px;color:#8c9589;margin:20px 0 16px}.overview-note span:first-child{display:flex;align-items:center;gap:6px}.metrics{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px 0;margin-bottom:24px}.metric{padding:0 28px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric>span{font-size:11px;color:#7a8677}.metric strong{display:block;font-weight:500;font-size:34px;line-height:1.4;margin:8px 0;color:#263d32;letter-spacing:-1px}.metric strong small{font-size:11px;font-weight:400;margin-left:8px;letter-spacing:0;color:#8c9789}.metric strong.amount{font-size:30px;line-height:1.6}.metric p{font-size:10px;color:#91988c}.metrics.three{grid-template-columns:1fr 1fr 1.4fr}.danger-text{color:var(--danger)!important}.muted-text{color:var(--muted)}.overview-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:24px;margin-bottom:24px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:24px;min-width:0}.overview-grid .panel{margin-bottom:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 24px 20px}.panel-heading .eyebrow{display:block;font-size:8px;margin-bottom:4px}.panel-heading p{font-size:11px;color:var(--muted);margin-top:4px}.panel-heading>.text-button{font-size:11px}.task-row{display:flex;align-items:center;gap:16px;padding:16px 24px;border-top:1px solid #edf0e8}.date-box{min-width:46px;text-align:center;color:#7c8976;background:#f5f7f1;border:1px solid #e7ecdf;border-radius:5px;padding:6px 4px}.date-box b{font-size:12px;color:inherit;font-weight:500}.date-box small{display:block;font-size:9px}.date-box.late{color:#a97b59;background:#fbf5ef;border-color:#f0e5d8}.task-info{flex:1;min-width:0}.task-info .text-button{font-size:12px;gap:0;color:#334d3b;display:block}.task-info .muted-text{font-size:10px}.task-info p{font-size:11px;color:#6c7c67;margin:4px 0}.task-info small{font-size:9px;color:#7d8d75}.task-info small>span{color:#a1aa9b}.task-end{text-align:right;display:grid;gap:8px;justify-items:end}.badge{display:inline-block;font-size:9px;line-height:18px;padding:0 6px;background:#f2f4ef;border:1px solid #e3e7dd;border-radius:4px;color:#7a8970;white-space:nowrap}.badge.success{background:#eef5eb;border-color:#dfead8;color:#58784e}.badge.muted{color:#949c91;background:#f3f4f0}.panel-foot{display:flex;align-items:center;gap:6px;padding:12px 24px;color:#a0aa98;border-top:1px solid #edf0e8;font-size:9px}.brand-row{display:flex;align-items:center;gap:12px;justify-content:space-between;background:transparent;border:0;border-top:1px solid #edf0e8;padding:24px;width:100%;text-align:left}.brand-row:hover{background:#fafcf7}.brand-word{font-family:Arial,sans-serif;font-size:21px;letter-spacing:.3px;font-weight:700;color:#52614e;flex:1}.brand-word small{display:block;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-weight:400;letter-spacing:0;font-size:10px;color:#8d9985;margin-top:2px}.brand-row>div:nth-child(2){text-align:right}.brand-row b{font-size:17px;font-weight:500}.brand-row b small{font-size:9px;font-weight:400;color:#95a18c}.brand-row p{font-size:9px;margin-top:4px;color:#8a9880}.brand-row>svg{color:#b6bfaf}.quiet-note{font-size:11px;color:#87917e;line-height:1.8}.brand-panel>.quiet-note{margin:0;padding:20px 24px;background:#fbfcf8;border-top:1px solid #edf0e8}.table-scroll{width:100%;overflow-x:hidden}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:11px}th{position:sticky;top:0;font-size:10px;font-weight:400;color:#8b9584;background:#fafbf7;padding:12px 20px;border-top:1px solid #edf0e8;border-bottom:1px solid #edf0e8}td{padding:16px 20px;border-bottom:1px solid #edf0e8;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fdfefb}td small{display:block;font-size:9px;color:#a1aa98;margin-top:3px}.customer-link{color:var(--ink);gap:10px;font-size:12px}.customer-link small{color:#939f8a;margin-top:2px;font-size:9px}.shop-progress{display:flex;gap:5px}.shop-chip{display:flex;align-items:center;gap:8px;font-size:9px;color:#b0b7a9;border:1px solid #e8ebe3;border-radius:3px;padding:3px 6px;background:#fafbf8}.shop-chip.available{color:#89967e;border-color:#e0e8d8;background:#f6f8f1}.shop-chip.won{background:#eef3e8;color:#5f7e51;border-color:#d9e5cf}.stage-dot{width:5px;height:5px;display:inline-block;background:#acbaa1;border-radius:50%;margin-right:6px}.number{font-variant-numeric:tabular-nums}.right{text-align:right}.page-footer{padding:24px 0;margin-top:12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:9px;color:#a7b09e}.filter-line{display:flex;align-items:center;justify-content:space-between;margin:24px 0 16px;font-size:11px;gap:12px}.tabs{display:flex;gap:20px}.tabs button{border:0;border-bottom:2px solid transparent;padding:8px 0;background:transparent;font-size:12px;color:#8d9984}.tabs button.active{color:var(--brand);border-color:var(--brand);font-weight:500}.page-note{font-size:11px;color:#9aa48e;margin-bottom:24px}.empty{padding:48px 24px;text-align:center;color:#9aaa8b}.empty svg{margin-bottom:12px}.empty h3{font-weight:500}.empty p{font-size:12px;margin:8px 0 16px}.kanban{display:grid;grid-template-columns:repeat(5,minmax(200px,1fr));gap:16px;overflow-x:auto;padding-bottom:20px;align-items:start}.kanban-column{padding:12px;border:1px solid #e5e9df;border-radius:8px;background:#f0f2ec;min-height:220px}.kanban-column h2{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;margin:4px 0 16px}.kanban-column h2>span:last-child{margin-left:auto;color:#95a18b;font-size:10px}.status-dot{width:6px;height:6px;background:#a9b2a0;border-radius:50%}.status-dot.green{background:#6e9561}.deal-card{display:block;width:100%;text-align:left;padding:16px;background:white;border:1px solid #e2e7da;border-radius:7px;margin-bottom:12px}.deal-card:hover{border-color:#b7c7ab}.deal-store{font-size:9px;color:#89997e}.deal-card h3{font-size:14px;margin:8px 0 2px}.deal-card p{font-size:10px;color:#a0ab94}.deal-bottom{border-top:1px solid #f0f3ea;display:flex;justify-content:space-between;padding-top:12px;margin-top:16px;font-size:10px}.deal-bottom b{font-weight:500}.deal-card>small{font-size:9px;display:block;color:#a0ab94;margin-top:8px}.kanban-empty{text-align:center;font-size:11px;color:#a5af9a;padding:40px 0}.padded{padding:24px}.settings-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.settings-grid .panel{margin-bottom:24px}.rule-row{display:grid;grid-template-columns:1fr 130px 80px;gap:16px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line);align-items:center}.rule-row p{font-size:11px;color:var(--muted);margin-top:4px}.rule-row label{font-size:10px}.role-intro{font-size:11px;color:var(--muted);line-height:2;margin-bottom:20px}.settings-footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding-bottom:20px}.member-row{display:flex;align-items:center;gap:12px;padding-top:20px}.member-row>div{flex:1}.member-row small{display:block;font-size:10px;color:var(--muted)}.decision-hero{padding:32px 36px;background:#e7eee1;border:1px solid #dce5d3;border-radius:10px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px}.decision-hero h2{font-size:28px;font-weight:500;margin:12px 0}.decision-hero p{font-size:12px;line-height:1.9;color:#839376}.decision-seal{border:1px solid #b6c9a6;color:#7c956a;border-radius:50%;padding:20px;text-align:center;font-size:11px;white-space:nowrap}.decision-seal b{font-size:14px;color:#5b794c}.selected-row{background:#f7faf3}.arena-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.arena-grid p{font-size:12px;line-height:1.9;color:#87967b;margin:16px 0}.clean-list{list-style:none;margin:16px 0 0;padding:0;font-size:12px;line-height:2.3;color:#87967b}.clean-list li::before{content:'✓';margin-right:8px;color:#70915e}dialog{border:1px solid #dfe6d8;border-radius:12px;padding:0;width:min(720px,calc(100% - 32px));max-height:90vh;overflow:auto;color:var(--text);background:#fff;box-shadow:0 24px 100px #24422b28}dialog::backdrop{background:#233b3255;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.dialog-head h2{font-size:20px}.dialog-head p{font-size:11px;color:var(--muted);margin-top:6px}.dialog-head>.icon-button{flex-shrink:0}label{display:block;font-size:12px;color:#65725c}input,select,textarea{display:block;width:100%;min-height:38px;padding:8px 12px;background:#fff;border:1px solid #dce4d4;border-radius:5px;color:var(--ink);font-size:13px;margin-top:6px}input::placeholder,textarea::placeholder{color:#b1b8a9;font-size:11px}textarea{resize:vertical;line-height:1.7}label em{font-style:normal;color:#a7785c}form>label{margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.form-grid .wide{grid-column:1/-1}.field-help{font-size:11px;color:#9ca68f;align-self:center;padding-top:20px}fieldset{border:1px solid var(--line);border-radius:7px;margin:16px 0;padding:16px}legend{font-size:12px;color:#596c4d;padding:0 8px}.checkboxes{display:flex;gap:24px;margin-bottom:16px}.checkboxes label,.check-line{display:flex;align-items:center;gap:8px;font-size:12px}input[type=checkbox]{width:15px;height:15px;min-height:0;margin:0;accent-color:var(--brand)}fieldset small{font-size:10px;color:#9da88f;display:block;margin-top:8px}.check-line{margin-top:16px}.form-error{font-size:12px;color:var(--danger);margin:16px 0}.form-error:empty{display:none}.form-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.detail-body{padding:24px}.detail-summary{display:flex;justify-content:space-between;align-items:center;gap:12px}.detail-phone{font-size:22px;color:var(--ink)}.detail-summary p{font-size:11px;color:var(--muted);margin-top:4px}.stage-track{display:flex;justify-content:space-between;margin:28px 0;gap:4px}.stage-track>span{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px;color:#a8b19d;flex:1;border-top:2px solid #edf0e8;padding-top:8px}.stage-track>span.reached{border-color:#99b28a;color:#6c875b}.stage-track i{width:6px;height:6px;background:#dde6d4;border-radius:50%}.stage-track .reached i{background:#819e6e}.detail-body h3{margin:28px 0 12px}.detail-shops{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.detail-shop{text-align:left;background:#fafcf7;border:1px solid #e0e8d8;border-radius:6px;padding:16px}.detail-shop>span:first-child{display:block;font-size:12px;margin-bottom:8px}.detail-shop small{display:block;font-size:10px;color:#9da98f;margin-top:8px}.detail-task{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;padding:12px 0;border-bottom:1px solid var(--line)}.detail-task small{display:block;color:#9ca88f;font-size:10px;margin-top:4px}.timeline article{border-left:2px solid #dce8d3;padding:0 0 20px 16px}.timeline p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.timeline small{color:#9ca88f;font-size:10px}.detail-consent{background:#f7f9f3;border:1px solid #e5ebdc;padding:16px;margin-top:24px;border-radius:6px;font-size:11px}.detail-consent p{color:#8d9b80;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.inline-warning{padding:12px;background:#faf2e9;color:#a88362;font-size:12px;border-radius:5px}.auth-tabs{padding:12px 24px 0}.invite-box{padding:16px;background:#f2f6ec;border:1px solid #dce6d3;border-radius:6px;margin-top:16px;font-size:12px}.invite-box code{display:block;padding:12px 0;overflow-wrap:anywhere;user-select:all;font-size:13px}.invite-box small{color:var(--muted)}.toast{position:fixed;bottom:32px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:var(--brand-dark);color:#fff;border-radius:7px;padding:12px 24px;font-size:12px;max-width:calc(100vw - 32px);transition:transform .15s,opacity .15s;box-shadow:0 8px 30px #24422b20}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1800px){main{padding-top:32px}.overview-grid{grid-template-columns:1.8fr 1fr}}
@media(max-width:1200px){.sidebar{width:200px}.main-shell{margin-left:200px}main{padding:24px 24px 0}.topbar{padding:16px 24px}.metric{padding:0 20px}.metric strong.amount{font-size:25px;line-height:1.9}.overview-grid{gap:16px;grid-template-columns:1.5fr 1fr}.task-row{padding:16px;gap:12px}.task-info .muted-text{display:none}.panel-heading{padding:20px}.brand-row{padding:24px 20px}.rule-row{grid-template-columns:1fr 110px 60px;gap:8px}.settings-grid{grid-template-columns:1fr}.search{width:240px}}
@media(max-width:900px){.sidebar{width:184px;padding:24px 12px 12px}.main-shell{margin-left:184px}.brand{margin-left:8px}.brand small{font-size:9px}.nav-item{padding:10px}.overview-grid{grid-template-columns:1fr}.brand-panel .brand-row{padding:16px 20px}.brand-panel>.quiet-note{padding:16px 20px}.metrics{grid-template-columns:1fr 1fr;row-gap:24px}.metrics .metric:nth-child(2){border-right:0}.metrics .metric:nth-child(3){border-top:1px solid var(--line);padding-top:20px}.metrics .metric:nth-child(4){border-top:1px solid var(--line);padding-top:20px}.metrics.three{grid-template-columns:1fr 1fr}.metrics.three .metric:last-child{grid-column:1/-1}.toolbar{align-items:stretch;flex-direction:column}.search{width:100%}.segmented button{flex:1;white-space:nowrap;padding:6px 8px}.overview-note span:last-child{display:none}.mode-banner{align-items:flex-start}.mode-banner>.text-button{display:none}.page-heading{align-items:flex-start}.page-heading p{max-width:200px}.arena-grid{grid-template-columns:1fr}.topbar-actions{gap:12px}.topbar-actions>.mode-tag{display:none}.page-footer{gap:12px;flex-direction:column}.decision-hero{padding:24px}.decision-hero h2{font-size:24px}}
@media(max-width:640px){.sidebar{transform:translateX(-100%);width:224px;box-shadow:16px 0 70px #30422d22;transition:transform .15s}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.mobile-toggle{display:inline-grid!important}.topbar{padding:12px 16px;min-height:56px;position:sticky;top:0;z-index:20}.breadcrumbs{gap:6px}.breadcrumbs>span,.breadcrumbs>i{display:none}.topbar-actions .text-button{font-size:10px}main{padding:16px 16px 0}.mode-banner{font-size:9px;margin-bottom:20px;padding:8px}.mode-banner>span{display:inline}.mode-banner>span>svg{vertical-align:middle;margin-right:4px}.mode-banner>span:last-child:not(:first-child){display:none}.page-heading{margin-bottom:24px;gap:8px}.page-heading h1{font-size:26px}.page-heading .eyebrow{font-size:8px}.page-heading p{font-size:10px;max-width:220px}.heading-actions{padding-top:20px;gap:6px}.heading-actions .button{padding:7px 10px;font-size:10px}.heading-actions .button>svg{width:13px}.heading-actions .button:not(.primary){display:none}.toolbar{margin-bottom:16px;gap:12px}.segmented{gap:2px}.segmented button{font-size:10px;padding:6px 7px}.metrics{padding:20px 0;margin-bottom:16px;border-radius:8px}.metric{padding:0 20px}.metric strong{font-size:30px}.metric strong.amount{font-size:25px}.metric>span,.metric p{font-size:10px}.overview-grid{margin-bottom:16px;gap:16px}.panel{margin-bottom:16px;border-radius:8px}.panel-heading{padding:20px 16px}.panel-heading h2{font-size:16px}.panel-heading>.text-button{font-size:10px}.task-row{gap:10px;padding:16px 12px}.date-box{min-width:42px}.task-info .text-button{font-size:12px}.task-info p{font-size:10px}.task-info small{font-size:9px}.task-end .button{font-size:9px;padding:4px 7px;min-height:28px}.task-end .badge{font-size:8px}.task-end .button svg{display:none}.task-end{gap:6px}.panel-foot{padding:12px;font-size:8px}.filter-line{align-items:flex-start;flex-direction:column;gap:12px}.tabs{gap:20px;max-width:100%;overflow-x:auto}.tabs button{font-size:11px;white-space:nowrap}.page-note{font-size:10px}.table-scroll table{font-size:10px}th,td{padding:12px}.rule-row{grid-template-columns:1fr 115px 60px;gap:8px}.rule-row p{font-size:10px}.padded,.detail-body{padding:20px 16px}.settings-grid{gap:0}.settings-footer{flex-direction:column;gap:12px}.decision-hero h2{font-size:21px}.decision-hero p{font-size:10px}.decision-hero{padding:20px}.decision-seal{padding:12px;font-size:9px}.decision-seal b{font-size:11px}.arena-grid{gap:0}.clean-list{font-size:11px}.form-grid{gap:16px}.form-grid>label{font-size:11px}.form-grid .wide{grid-column:1/-1}.field-help{font-size:10px}.form-footer{gap:8px}.form-footer .button{font-size:11px;padding:8px 12px}.detail-summary{align-items:flex-start}.detail-summary .button{font-size:10px;padding:6px 8px}.detail-phone{font-size:20px}.detail-shops{gap:6px}.detail-shop{padding:12px 8px}.detail-shop>span:first-child{font-size:11px}.detail-shop small{font-size:9px}.detail-task{font-size:10px}.detail-task .badge{font-size:8px}.stage-track>span{font-size:9px}.dialog-head{padding:20px 16px}.dialog-head h2{font-size:18px}.dialog-head p{font-size:10px}.toast{bottom:20px;font-size:11px;padding:12px 16px;min-width:220px;text-align:center}.auth-tabs{padding:12px 16px 0}.topbar-actions{gap:8px}dialog{max-height:92dvh}.rule-row label input,.rule-row label select{padding:6px;font-size:11px}.page-footer{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(min-width:641px){.nav-label{font-size:11px}.nav-item{font-size:14px}.workspace-label{font-size:13px}.workspace-label small,.profile small,.connection{font-size:11px}.topbar-actions,.breadcrumbs{font-size:13px}.mode-banner{font-size:12px}.mode-banner>.text-button{font-size:12px}.page-heading p{font-size:13px}.button{font-size:13px}.segmented button{font-size:13px}.search input{font-size:12px}.overview-note{font-size:11px}.metric>span{font-size:12px}.metric p{font-size:11px}.panel-heading p{font-size:12px}.panel-heading>.text-button{font-size:12px}.task-info .text-button{font-size:13px}.task-info p{font-size:12px}.task-info small{font-size:11px}.task-info .muted-text{font-size:11px}.task-end .button{font-size:12px}.badge{font-size:11px}.date-box small{font-size:10px}.panel-foot{font-size:11px}.brand-word small{font-size:12px}.brand-row p{font-size:11px}.brand-row b small{font-size:11px}.quiet-note{font-size:12px}table{font-size:12px}th{font-size:11px}td small,.customer-link small{font-size:11px}.customer-link{font-size:13px}.shop-chip{font-size:10px}.page-note{font-size:12px}.deal-store,.deal-card>small{font-size:11px}.deal-card p,.deal-bottom{font-size:12px}.page-footer{font-size:11px}.form-grid>label,.padded>label{font-size:13px}.field-help,fieldset small{font-size:12px}.role-intro{font-size:12px}.decision-hero p{font-size:13px}.dialog-head p{font-size:12px}.detail-task,.timeline p{font-size:13px}.timeline small{font-size:11px}.detail-shop small{font-size:11px}.detail-consent{font-size:12px}}

:root{--ink:#233c34;--text:#3f514b;--muted:#67766f;--line:#e1e7e3;--paper:#f7f9f8;--brand:#245b4d;--brand-dark:#174c43;--brand-pale:#edf4f0;--danger:#984631;--radius:8px;font-size:15px}
[hidden]{display:none!important}
body{background:var(--paper);color:var(--text);line-height:1.6}button,input,select,textarea{font-family:inherit}button,a,input,select,textarea{touch-action:manipulation}h1,h2,h3{text-wrap:balance}h1{font-size:30px;font-weight:600;line-height:1.4;margin:0 0 8px}h2{font-size:18px;font-weight:600}h3{font-size:16px}small{font-size:12px}p{max-width:75ch}.button{min-height:44px;padding:10px 16px;font-size:14px;gap:8px;border-radius:7px}.button.small{font-size:13px;min-height:40px;padding:8px 12px}.text-button{font-size:13px;min-height:32px;line-height:1.6}.text-button:hover{text-decoration:none;color:var(--brand-dark)}.button.primary{font-weight:500}.icon-button{width:40px;height:40px}.badge{font-size:12px;line-height:24px;padding:0 8px}.avatar{width:36px;height:36px;font-size:14px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.skip{z-index:70}.skip:focus{background:white}
.app-header{background:#fff;border-bottom:1px solid var(--line)}.header-inner{max-width:1200px;margin:auto;min-height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:24px}.app-header .brand{display:flex;align-items:center;gap:10px;margin:0;white-space:nowrap}.app-header .brand b{font-size:22px;font-weight:650}.app-header .brand>span{font-size:12px;font-weight:400;color:var(--muted);padding-left:12px;border-left:1px solid var(--line);line-height:1.4}.header-tools{display:flex;align-items:center;gap:24px}.header-tools>.text-button{gap:6px;color:var(--muted);font-size:12px}.account-button{border:1px solid var(--line);border-radius:6px;padding:8px 12px;background:#fff;min-height:40px;font-size:13px;color:var(--ink);white-space:nowrap}.account-button:hover{background:var(--paper)}.desktop-nav{display:flex;align-self:stretch;gap:32px}.main-nav-item{border:0;border-bottom:2px solid transparent;background:transparent;display:flex;align-items:center;gap:8px;color:var(--muted);padding:0 4px;font-size:14px;white-space:nowrap}.main-nav-item.active{border-bottom-color:var(--brand-dark);color:var(--brand-dark);font-weight:600}.desktop-nav .main-nav-item svg{display:none}.mobile-nav{display:none}main{max-width:1152px;padding:28px 36px 0;margin:auto}.workspace-line{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:12px;color:var(--muted)}.workspace-line>.text-button{font-size:12px}.demo-notice{font-size:12px;margin:0 0 32px;color:#58675f;max-width:none;padding:10px 12px;background:#edf2ee;border-radius:5px}.page-heading{align-items:center;margin:32px 0 28px;gap:24px}.page-heading p{font-size:14px;color:var(--muted)}.heading-actions{padding:0;gap:12px}.toolbar{gap:16px;margin-bottom:24px;display:flex;justify-content:space-between;align-items:center}.scope-label{display:flex;align-items:center;gap:8px;min-width:160px;color:var(--text)}.scope-label select{border:0;margin:0;padding:8px 24px 8px 0;min-height:44px;width:auto;background:transparent;font-size:14px;font-weight:500;color:var(--ink)}.search{width:300px;min-height:44px;background:#fff;border:1px solid var(--line);padding:8px 12px;gap:10px}.search input{font-size:13px;line-height:24px;height:24px;margin:0}.search input::placeholder{font-size:13px;color:#68796f}.getting-started{display:flex;align-items:center;gap:32px;background:transparent;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:28px;font-size:13px}.getting-started b{font-weight:500}.getting-started ol{display:flex;gap:28px;margin:0;padding-left:18px;color:var(--muted)}.getting-started li{padding-left:3px;white-space:nowrap}.daily-list{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.list-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px}.list-heading h2{display:flex;align-items:center;gap:12px}.list-heading h2>span{font-size:14px;font-weight:400;color:var(--muted);background:var(--paper);padding:0 8px;border-radius:4px}.list-heading p{font-size:13px;color:var(--muted);margin-top:4px}.list-heading>.text-button{font-size:13px;white-space:nowrap}.tabs{gap:24px}.tabs button{font-size:14px;min-height:44px;padding:8px 0;color:var(--muted)}.tabs button.active{color:var(--brand-dark)}.task-tabs{padding:0 24px}.simple-task{display:grid;grid-template-columns:1.1fr 1.5fr 96px auto;align-items:center;gap:24px;padding:24px;border-top:1px solid #e9eeeb}.person-name{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;font-size:16px;color:var(--ink);font-weight:500;line-height:1.8}.person-name svg{color:#7c8c83}.person-name:hover{color:var(--brand)}.task-person p{font-size:13px;color:var(--muted);margin-top:4px}.task-person p>span{display:block}.task-purpose p{font-size:14px;color:var(--ink);margin:5px 0}.store-label{font-size:12px;color:#5e7266}.task-purpose small{font-size:12px;color:var(--muted)}.task-deadline{font-size:13px;color:var(--text);text-align:right}.task-deadline small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.task-deadline.late{color:var(--danger)}.task-deadline.late small{color:var(--danger)}.simple-task>.button{min-width:116px;font-size:13px}.list-more{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;background:var(--paper);border:0;border-top:1px solid var(--line);padding:16px;font-size:13px;color:var(--brand-dark)}.upcoming{margin-top:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent}.upcoming>summary{cursor:pointer;padding:20px 0;font-size:14px;color:var(--ink);list-style-position:inside}.upcoming>summary span{color:var(--muted);margin-left:12px;font-size:13px}.upcoming>.simple-task{background:#fff;padding:20px}.upcoming>.text-button{margin:16px 0}.page-note{display:flex;align-items:flex-start;gap:8px;line-height:1.8;font-size:12px;color:var(--muted);margin:20px 0 32px}.page-note svg{margin-top:3px}.empty{padding:56px 24px;color:var(--muted)}.empty h3{color:var(--ink);font-weight:500;font-size:17px}.empty p{font-size:14px;margin:8px auto 20px;color:var(--muted);max-width:45ch}.empty-mark{display:inline-flex;color:var(--brand);margin-bottom:12px}.filter-line{font-size:13px;color:var(--muted);margin:0 0 16px;display:flex;justify-content:space-between;align-items:center}.client-list{border-top:1px solid var(--line)}.client-row{display:grid;grid-template-columns:1.3fr 1fr 1.5fr auto;gap:20px;padding:24px 0;border-bottom:1px solid var(--line);align-items:center}.client-row .customer-link{font-size:16px;gap:12px}.client-row .customer-link b{font-weight:500}.client-row .customer-link small{font-size:13px;color:var(--muted);display:block;margin-top:4px;white-space:normal}.client-phone{margin:8px 0 0 48px;font-size:12px;color:var(--muted)}.client-stage{font-size:14px;color:var(--text)}.client-stage>small{display:block;font-size:12px;color:var(--muted);margin-top:6px}.client-services{display:flex;gap:20px;font-size:12px}.service-state{color:var(--text);white-space:nowrap}.service-state small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.service-state.off{color:#626f68}.service-state.off small{color:#626f68}.business-summary{display:grid;grid-template-columns:1fr 1fr 1.5fr;padding:28px 0 36px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:32px;gap:24px}.business-summary span{font-size:14px;color:var(--muted)}.business-summary strong{display:block;font-size:30px;font-weight:500;color:var(--ink);margin-top:8px;line-height:1.5}.business-summary strong small{font-size:14px;font-weight:400;color:var(--muted)}.business-stores{background:white;border:1px solid var(--line);border-radius:8px}.business-store{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;align-items:center;gap:20px;padding:24px;border-top:1px solid var(--line);font-size:14px}.business-store>b,.business-store>strong{font-weight:500}.business-store>span{color:var(--muted);font-size:13px}.business-store>strong{text-align:right}.business-links{display:flex;gap:32px;margin:32px 0}.business-links>button{border:0;border-bottom:1px solid var(--line);padding:0 0 24px;display:flex;align-items:center;justify-content:space-between;text-align:left;background:transparent;flex:1;gap:16px}.business-links>button>span{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px 12px}.business-links b{font-size:16px;font-weight:500}.business-links small{grid-column:2;font-size:13px;color:var(--muted)}.business-links>button>svg{color:var(--brand)}.page-footer{font-size:12px;color:var(--muted);padding:24px 0 32px;margin:40px 0 0;display:flex;justify-content:space-between;align-items:center;gap:16px}.page-footer>.text-button{font-size:12px}.utility-links{padding:8px 24px 24px}.utility-links>button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);padding:24px 0}.utility-links b{font-size:15px;font-weight:500}.utility-links small{display:block;font-size:13px;color:var(--muted);margin-top:4px}.help-steps{padding:8px 32px 0 52px;margin:0}.help-steps li{padding:16px 0 12px 4px}.help-steps b{font-size:16px;font-weight:500}.help-steps p{font-size:14px;color:var(--muted);margin-top:8px}.optional{font-size:12px;color:var(--muted);font-weight:400;margin-left:6px}.form-more{border-bottom:1px solid var(--line);padding-bottom:16px;margin-top:24px}.form-more summary{font-size:13px;color:var(--text);cursor:pointer;min-height:44px;padding:10px 0}.form-more>label{margin-top:16px}.consent-entry{padding-top:8px}.consent-entry[hidden]{display:none}.checkboxes{margin:16px 0 8px;gap:24px}.checkboxes label{min-height:40px;font-size:14px}.checkboxes input,.check-line input{width:18px;height:18px;flex-shrink:0}fieldset>.field-help{padding:0;font-size:13px;color:var(--muted)}input,select,textarea{font-size:15px;min-height:44px;line-height:1.5;color:var(--ink);border-color:#ccd7cf;margin-top:8px}input::placeholder,textarea::placeholder{font-size:13px;color:#63756b}label{font-size:14px;color:var(--text)}label em{font-size:11px;font-style:normal;margin-left:4px;color:var(--muted)}legend{font-size:14px;color:var(--ink)}.form-grid{gap:20px}.padded{padding:24px}.padded>label{font-size:14px}.quiet-note,.field-help{font-size:13px;color:var(--muted)}.form-error{font-size:14px;color:var(--danger)}.form-footer{position:sticky;bottom:0;background:white;padding:16px 0 0;margin-top:20px}.form-footer .button{font-size:14px;padding:10px 20px}.dialog-head h2{font-size:20px}.dialog-head p{font-size:13px;color:var(--muted);margin-top:6px}.auth-tabs{gap:24px}.detail-phone{font-size:24px}.detail-summary p{font-size:13px;color:var(--muted)}.detail-shops{gap:12px}.detail-shop{padding:16px;background:var(--paper);border-color:var(--line)}.detail-shop>span:first-child{font-size:14px}.detail-shop small{font-size:12px;color:var(--muted)}.stage-track>span{font-size:12px;color:var(--muted)}.stage-track>span.reached{color:var(--brand)}.detail-task,.timeline p{font-size:14px}.detail-task small,.timeline small{font-size:12px;color:var(--muted)}.detail-consent{font-size:13px;background:var(--paper);border-color:var(--line)}.detail-consent p{color:var(--muted)}.toast{font-size:14px;line-height:1.6;padding:12px 20px;box-shadow:none}.panel{border-color:var(--line);border-radius:8px}.panel-heading h2{font-size:17px}.panel-heading p{font-size:13px;color:var(--muted)}.rule-row label{font-size:13px}.rule-row p{font-size:13px;color:var(--muted)}.role-intro{font-size:13px}.member-row small,.settings-footer{font-size:12px;color:var(--muted)}table{font-size:14px}th{font-size:12px;color:var(--muted)}td small{font-size:12px;color:var(--muted)}.customer-link small{font-size:12px;color:var(--muted)}.task-info p{font-size:14px}.task-info small,.task-info .muted-text{font-size:12px}.task-info .text-button{font-size:14px}.date-box b{font-size:13px}.date-box small{font-size:11px}.kanban{grid-template-columns:repeat(5,minmax(200px,1fr))}.kanban-column h2{font-size:14px}.deal-store{font-size:12px}.deal-card h3{font-size:16px}.deal-card p,.deal-bottom,.deal-card>small{font-size:12px;color:var(--muted)}.decision-hero h2{font-size:24px}.decision-hero p,.arena-grid p,.clean-list{font-size:14px;color:var(--muted)}.settings-grid{grid-template-columns:1.4fr 1fr}
@media(max-width:1000px){.header-inner{padding:0 24px;gap:16px}.app-header .brand>span{display:none}.header-tools{gap:16px}.desktop-nav{gap:24px}main{padding:24px 24px 0}.getting-started{gap:24px}.getting-started ol{gap:20px;font-size:12px}.simple-task{grid-template-columns:1fr 1.4fr 72px auto;gap:16px}.simple-task>.button{min-width:100px;padding:8px 12px}.client-row{grid-template-columns:1.3fr 1fr auto;gap:16px}.client-services{grid-column:1/3;grid-row:2}.client-row>.button{grid-column:3;grid-row:1/3}.client-phone{margin-left:48px}.settings-grid{grid-template-columns:1fr}.rule-row{grid-template-columns:1fr 140px 80px}}
@media(max-width:760px){.header-inner{min-height:64px;padding:0 20px}.header-tools>.text-button{font-size:12px}.desktop-nav{display:none}.mobile-nav{position:fixed;display:flex;justify-content:space-around;align-items:stretch;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid var(--line);padding:8px 12px max(8px,env(safe-area-inset-bottom));min-height:68px}.mobile-nav .main-nav-item{border:0;flex:1;flex-direction:column;gap:2px;justify-content:center;padding:4px 0;font-size:12px;min-height:48px}.mobile-nav .main-nav-item.active{background:var(--brand-pale);border-radius:6px;color:var(--brand-dark)}main{padding:24px 20px 84px}.workspace-line{font-size:12px;gap:8px}.workspace-line>.text-button{font-size:12px}.page-heading{margin:28px 0 24px;gap:12px}h1{font-size:26px}.page-heading p{font-size:13px;max-width:40ch}.heading-actions{padding:0}.heading-actions .button{font-size:13px;min-height:44px;padding:10px 12px}.getting-started{align-items:flex-start;flex-direction:column;gap:8px;padding:20px 0;margin-bottom:24px}.getting-started ol{gap:24px;font-size:13px;flex-wrap:wrap;row-gap:4px}.simple-task{grid-template-columns:1fr auto;gap:12px 20px;padding:20px}.task-person{grid-column:1;grid-row:1}.task-person p>span{display:inline}.task-deadline{grid-column:2;grid-row:1;align-self:start}.task-purpose{grid-column:1;grid-row:2}.simple-task>.button{grid-column:2;grid-row:2;align-self:end;min-width:110px;min-height:44px}.task-purpose p{font-size:14px}.task-purpose small{font-size:12px}.list-heading{padding:20px;gap:12px}.list-heading p{font-size:12px}.task-tabs{padding:0 20px}.client-row{grid-template-columns:1fr auto;padding:20px 0;gap:16px}.client-identity{grid-column:1;grid-row:1}.client-stage{grid-column:2;grid-row:1;align-self:start;text-align:right;font-size:13px;max-width:160px}.client-services{grid-column:1;grid-row:2;gap:20px}.client-row>.button{grid-column:2;grid-row:2;font-size:12px;padding:8px 12px}.client-stage>small{font-size:12px}.client-phone{margin-top:6px}.client-row .avatar{width:32px;height:32px}.client-row .customer-link{gap:10px}.client-phone{margin-left:42px}.business-summary{grid-template-columns:1fr 1fr;gap:24px;padding:24px 0}.business-summary>div:last-child{grid-column:1/-1}.business-summary strong{font-size:28px}.business-store{grid-template-columns:1fr 1fr;gap:8px 20px;padding:20px}.business-store>strong{grid-column:2;grid-row:1}.business-store>span:last-of-type{text-align:right}.business-links{flex-direction:column;gap:24px}.business-links>button{padding-bottom:20px}.page-footer{margin-top:32px;align-items:flex-start;gap:12px;flex-direction:column;font-size:12px}.filter-line{align-items:center;flex-direction:row}.filter-line .tabs{gap:20px}.tabs button{font-size:13px}.demo-notice{font-size:12px;line-height:1.8;margin-bottom:24px}.toolbar{flex-direction:row;gap:12px;align-items:center}.scope-label{min-width:0;gap:4px}.scope-label svg{display:none}.scope-label select{font-size:13px;max-width:130px;padding-right:8px}.search{width:100%;max-width:300px}.search input{font-size:13px}.search input::placeholder{font-size:12px}.export-button{display:none}.rule-row{grid-template-columns:1fr 120px 64px}.rule-row label input,.rule-row label select{font-size:13px;padding:8px}.panel-heading{padding:20px}.padded,.detail-body{padding:20px}.dialog-head{padding:20px}.dialog-head h2{font-size:20px}.dialog-head p{font-size:13px}.form-grid>label{font-size:14px}.form-grid{gap:20px}.field-help{font-size:13px}.detail-phone{font-size:22px}.detail-task,.timeline p{font-size:14px}.detail-shops{grid-template-columns:1fr}.detail-shop{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:16px}.detail-shop>span:first-child{margin:0;font-size:14px}.detail-shop small{grid-column:1/-1;margin:0;font-size:12px}.stage-track>span{font-size:11px}.stage-track{gap:6px}.detail-summary .button{font-size:13px;padding:8px 12px}.detail-summary p{font-size:12px}.form-footer .button{font-size:14px;padding:10px 16px}.form-footer{gap:12px}.form-grid input,.form-grid select,textarea,.padded>label input{font-size:16px}.quiet-note,.check-line{font-size:13px}.settings-footer{font-size:12px}.form-grid .wide{grid-column:1/-1}.toast{font-size:13px;bottom:90px}.page-note{font-size:12px}.task-row{padding:16px;gap:12px}.task-info p{font-size:13px}.task-info .text-button{font-size:14px}.task-info small{font-size:12px}.task-end .button{font-size:12px;min-height:40px}.task-end .badge{font-size:11px}.task-info .muted-text{display:none}.decision-hero{padding:24px}.decision-hero h2{font-size:22px}.decision-hero p,.arena-grid p,.clean-list{font-size:13px}.arena-grid{grid-template-columns:1fr}.page-footer .text-button{min-height:40px}}
@media(max-width:440px){.header-tools{gap:12px}.header-tools>.text-button{gap:0;min-height:40px}.header-tools>.text-button>svg{display:none}.header-tools>.text-button>span{font-size:12px}.account-button{padding:8px 10px;font-size:12px}.app-header .brand b{font-size:20px}.app-header .brand img{width:28px;height:28px}.app-header .brand{gap:8px}.header-inner{padding:0 16px}.page-heading{align-items:flex-start}h1{font-size:24px}.page-heading>div:first-child{flex:1}.page-heading p{font-size:13px;max-width:17ch}.heading-actions{padding-top:0}.heading-actions .button{padding:10px 12px;font-size:13px}.heading-actions .button svg{width:16px}.getting-started ol{gap:8px 24px;display:flex;flex-wrap:wrap;padding-left:18px;font-size:12px}.getting-started li{padding:0}.simple-task{padding:20px 16px;column-gap:12px}.simple-task>.button{min-width:100px;padding:8px 10px;font-size:13px}.task-purpose p{font-size:13px}.task-purpose .store-label{font-size:12px}.task-purpose small{font-size:12px}.list-heading{padding:20px 16px}.list-heading h2{font-size:17px;gap:8px}.list-heading>.text-button{font-size:12px}.task-tabs{padding:0 16px;gap:24px}.client-services{gap:12px}.service-state,.service-state small{font-size:11px}.client-stage{font-size:13px;max-width:130px}.client-stage small{font-size:11px}.client-row>.button{font-size:12px;padding:8px 10px}.client-row .customer-link small{font-size:12px}.client-row .customer-link{font-size:15px}.filter-line .tabs{gap:16px}.filter-line>span{font-size:12px;white-space:nowrap}.toolbar{gap:12px}.search{padding:8px 10px;gap:6px}.search svg{width:16px}.scope-label select{max-width:116px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:1}.checkboxes{gap:20px}.form-grid>label{font-size:14px}.padded,.detail-body{padding:20px}.dialog-head{padding:20px}.stage-track{flex-wrap:wrap}.stage-track>span{min-width:45px}.rule-row{grid-template-columns:1fr 110px 60px;gap:8px}.rule-row p{font-size:12px}.detail-summary{flex-direction:column;gap:12px}.detail-summary .button{align-self:flex-start}.help-steps{padding-left:40px;padding-right:24px}.utility-links{padding-left:20px;padding-right:20px}.business-summary span{font-size:13px}.business-summary strong{font-size:26px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:760px){main{padding-top:16px}.workspace-line{margin-bottom:8px}.demo-notice{padding:8px 12px;margin-bottom:20px}.page-heading{margin:20px 0}.page-heading p{max-width:none}.getting-started{padding:12px 0;margin-bottom:20px}.getting-started>p{display:none}.heading-actions .button.export-button{display:inline-flex;font-size:12px;padding:10px}.export-button svg{display:none}.toolbar{margin-bottom:20px}.list-heading{padding-top:20px;padding-bottom:16px}.list-heading p{font-size:12px}}

/* Task selection stays within the existing list and pagination. */
.task-checkbox{flex:0 0 16px;width:16px;height:16px;accent-color:var(--brand);align-self:center}.task-bulk-bar{position:sticky;top:8px;z-index:15;display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#fff;padding:12px 16px;border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 14px #263b3512;margin-bottom:16px}.task-row[data-overdue="true"] .date-box{background:#fff0ef;color:#ae433d;border-radius:8px}.task-row[data-overdue="true"] .task-end>.badge{font-size:10px;background:#f4f5f6;color:#7b8187}.task-group-details{font-size:12px;margin:8px 0}.task-group-details summary{cursor:pointer;color:var(--brand)}.task-group-details p{white-space:normal!important}.task-workspace .task-info{min-width:0;flex:1}.task-workspace .task-row{display:flex;align-items:center;gap:16px}@media(max-width:640px){.task-workspace .task-row{flex-wrap:wrap;gap:10px}.task-workspace .task-end{margin-left:auto}.task-bulk-bar{top:4px}}

/* Source: assistant.css */
.original-link{color:var(--brand-dark);font-size:13px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px;display:inline-flex;align-items:center;min-height:44px}
.header-inner{max-width:1320px}.desktop-nav{gap:24px}.header-tools{gap:16px}.app-header .brand>span{display:none}
.sync-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.sync-status.failed{color:var(--danger)}
.pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:24px 0;font-size:13px}.pagination button:disabled{opacity:.5;cursor:default}
.cohort-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:24px}.cohort-bar label{display:flex;align-items:center;gap:12px;white-space:nowrap}.cohort-bar select{margin:0;width:auto;background:white}.cohort-bar p{font-size:12px;color:var(--muted)}
.business-summary{grid-template-columns:1fr 1fr 1fr 1.4fr}
.assistant-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid var(--line);padding:24px 0 32px}.assistant-mark{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--brand-dark);margin-bottom:12px}.assistant-intro h2{font-size:22px;margin-bottom:8px}.assistant-intro p{font-size:14px;color:var(--muted)}.assistant-role{font-size:12px;color:var(--muted);white-space:nowrap}
.assistant-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:32px;align-items:start}.assistant-compose{padding:24px;border:1px solid var(--line);border-radius:8px;background:white}.assistant-choices{border:0;margin:0 0 20px;padding:0}.assistant-choices legend{padding:0;margin-bottom:12px;font-weight:600}.assistant-choice{display:flex;gap:12px;align-items:flex-start;margin:0 0 12px;padding:16px;border:1px solid var(--line);border-radius:6px;cursor:pointer}.assistant-choice.selected{border-color:var(--brand);background:var(--brand-pale)}.assistant-choice input{width:18px;min-height:18px;flex-shrink:0;margin:3px 0 0}.assistant-choice b{font-size:14px;font-weight:600}.assistant-choice small{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin-top:4px}.assistant-customer{display:block;margin-bottom:20px}.assistant-scope{font-size:13px;margin:16px 0;color:var(--ink)}.assistant-consent{margin:20px 0;align-items:flex-start}.assistant-consent input{margin-top:3px}.assistant-compose .full{width:100%;justify-content:center}.assistant-note{font-size:12px!important;color:var(--muted);margin-top:16px;line-height:1.8}.assistant-output{background:#fff;border:1px solid var(--line);border-radius:8px;min-width:0}.assistant-output .list-heading{border-bottom:1px solid var(--line);align-items:flex-start}.assistant-output .list-heading .button{flex-shrink:0;font-size:12px}.assistant-answer{padding:24px;min-height:380px;font-size:14px;line-height:1.9;overflow-wrap:anywhere}.ai-text{white-space:pre-wrap}.assistant-placeholder{color:var(--muted);padding:24px 8px}.assistant-placeholder>svg{color:var(--brand)}.assistant-placeholder h3{color:var(--ink);margin:16px 0 8px}.assistant-placeholder ul{padding-left:20px;margin-top:24px;line-height:2.2}.assistant-demo{padding:12px;background:var(--paper);font-size:13px;margin:16px 0}.ai-loading{color:var(--muted);padding:24px 0}
@media(max-width:1100px){.header-tools{gap:12px}.desktop-nav{gap:20px}.assistant-layout{grid-template-columns:320px minmax(0,1fr);gap:24px}}
@media(max-width:760px){.header-inner{flex-wrap:wrap;padding-top:8px;padding-bottom:8px;gap:8px 16px}.header-tools{gap:12px;flex:1;justify-content:flex-end}.header-tools>.text-button{min-height:44px}.header-tools .original-link{font-size:12px}.sync-status{font-size:12px;max-width:70%;gap:4px;text-align:right}.cohort-bar{align-items:flex-start;flex-direction:column;gap:12px}.cohort-bar label{font-size:13px}.business-summary{grid-template-columns:1fr 1fr}.business-summary>div:last-child{grid-column:auto}.business-summary strong{font-size:24px}.assistant-intro{align-items:flex-start;padding:20px 0 24px;gap:12px}.assistant-intro h2{font-size:20px}.assistant-role{display:none}.assistant-layout{grid-template-columns:1fr;gap:24px}.assistant-compose{padding:20px}.assistant-answer{min-height:240px;padding:20px}.assistant-placeholder{padding:12px 0}.assistant-choice{padding:12px}.assistant-choice input{min-height:18px}.pagination{gap:12px}.pagination .button{font-size:13px;padding:8px 12px}.pagination span{font-size:12px}.page-footer{padding-bottom:24px}.assistant-customer select{font-size:16px}}
@media(max-width:440px){.header-inner{padding-left:16px;padding-right:16px}.header-tools{gap:10px}.header-tools>.text-button>span{font-size:11px}.header-tools .original-link{font-size:11px}.header-tools .account-button{font-size:11px;padding:8px}.app-header .brand{gap:6px}.app-header .brand b{font-size:18px}.app-header .brand img{width:24px;height:24px}.desktop-nav{display:none}.assistant-output .list-heading{gap:12px;padding:20px}.assistant-output .list-heading p{font-size:12px}}

.reminder-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;font-size:13px;margin:0 0 24px;padding:16px 0;border-bottom:1px solid var(--line)}.reminder-bar>span{color:var(--muted)}.reminder-bar>button{border:0;background:none;color:var(--brand-dark);padding:4px 0;min-height:36px;display:inline-flex;align-items:center;gap:8px}.reminder-bar>button:first-of-type{color:var(--danger)}@media(max-width:440px){.reminder-bar{gap:8px 20px}.task-tabs{gap:16px}}

/* Source: style.css */
:root{--ink:#263b35;--text:#46554f;--muted:#78827d;--line:#e5e8e2;--paper:#f7f8f4;--surface:#fff;--brand:#245b4d;--brand-dark:#174c43;--brand-pale:#edf3ee;--danger:#a6503c;--success:#3c7059;--radius:10px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);font-size:14px;font-synthesis:none;font-variant-numeric:tabular-nums}*{box-sizing:border-box}body{margin:0;background:var(--paper);line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #93b6a5;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #c3d7cc;border-color:var(--brand)}h1,h2,h3,p{margin:0}h1,h2,h3,b,strong{color:var(--ink)}h1{font-size:30px;line-height:1.3;font-weight:650;margin:8px 0}h2{font-size:17px;font-weight:600}h3{font-size:15px;font-weight:600}small{font-size:12px}svg{flex-shrink:0}button svg{vertical-align:middle}button{transition:background-color .12s,border-color .12s}button:hover{filter:none}.skip{position:absolute;left:-9999px}.skip:focus{top:8px;left:8px;z-index:100;background:white;padding:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.boot{padding:80px;text-align:center}.sidebar{width:224px;position:fixed;top:0;bottom:0;left:0;border-right:1px solid var(--line);background:#f1f3ec;display:flex;flex-direction:column;padding:32px 16px 16px;z-index:30}.brand{display:flex;align-items:center;gap:12px;margin:0 12px 32px}.brand>span{font-size:24px;color:var(--ink);font-weight:650;line-height:1.25}.brand small{display:block;font-weight:400;font-size:10px;color:#728078;margin-top:5px}.workspace-label{display:flex;gap:8px;align-items:center;border:1px solid #dfe4d9;border-radius:8px;padding:12px 8px;font-size:12px;color:var(--ink);background:#f9faf7;margin-bottom:28px}.workspace-label small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.workspace-avatar{display:grid;place-items:center;background:#e6eadf;color:#64745b;width:28px;height:28px;flex-shrink:0;border-radius:5px}.nav-label{font-size:10px;color:#8a938a;margin:0 12px 12px}.nav-item{border:0;display:flex;width:100%;padding:12px;gap:12px;align-items:center;border-radius:7px;background:transparent;text-align:left;margin-bottom:4px;font-size:13px;color:#69766d}.nav-item:hover{background:#e7ece2}.nav-item.active{background:#e0e9df;color:var(--brand-dark);font-weight:600}.nav-item.active::before{content:'';height:15px;width:3px;background:var(--brand);border-radius:2px;margin-left:-12px;margin-right:-3px}.nav-count{font-size:10px;margin-left:auto;min-width:20px;text-align:center;border:1px solid #d0dccf;border-radius:4px;line-height:18px}.lower-label{margin-top:28px}.sidebar-bottom{margin-top:auto;padding-top:32px}.connection{font-size:10px;color:#788576;display:flex;align-items:center;gap:6px;padding:12px}.connection>span{width:5px;height:5px;background:#7a9376;border-radius:50%}.profile{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;border-top:1px solid #dde4d8;background:transparent;padding:16px 4px 12px}.profile span:nth-child(2){flex:1}.profile b{font-size:12px;font-weight:500}.profile small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.version{display:block;color:#a2aa9d;font-size:9px;padding-left:8px}.avatar{display:inline-grid;place-items:center;flex-shrink:0;width:34px;height:34px;background:#edf0e7;border:1px solid #e1e7dc;border-radius:50%;font-weight:500;color:#758368;font-size:13px}.avatar.dark{background:#dfe8dc;color:var(--brand);width:32px;height:32px}.main-shell{margin-left:224px}.topbar{min-height:68px;padding:16px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fdfefb}.breadcrumbs{display:flex;align-items:center;gap:12px;font-size:12px;color:#8b948e}.breadcrumbs b{font-weight:500;color:#57665c}.breadcrumbs i{font-style:normal;color:#c1c8bf}.topbar-actions{display:flex;align-items:center;gap:20px;font-size:12px}.mode-tag{font-size:10px;color:#6a7569;border:1px solid #dfe5da;border-radius:4px;padding:2px 7px}.text-button{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;padding:0;color:var(--brand);font-size:12px;text-align:left}.text-button:hover{color:var(--brand-dark);text-decoration:underline}.text-button b{font-weight:500}.mobile-toggle{display:none!important}main{max-width:1580px;margin:auto;padding:24px 40px 0}.mode-banner{display:flex;align-items:center;gap:8px;justify-content:space-between;background:#eeeee4;border:1px solid #e4e6d7;border-radius:5px;padding:8px 12px;font-size:11px;color:#7c7d68;margin-bottom:28px}.mode-banner>span{display:flex;align-items:center;gap:6px}.mode-banner>.text-button{font-size:11px;white-space:nowrap}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:32px}.page-heading p{color:var(--muted);font-size:12px}.eyebrow{font-family:Arial,sans-serif;font-size:9px;letter-spacing:1.7px;color:#8d978e;font-weight:500}.heading-actions{display:flex;gap:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border:1px solid #dce2d8;background:var(--surface);padding:8px 16px;border-radius:6px;font-size:12px;white-space:nowrap;color:#53644f;font-weight:500}.button:hover{background:#f2f5ef;border-color:#aebfa9}.button.primary{background:var(--brand-dark);color:#fff;border-color:var(--brand-dark)}.button.primary:hover{background:#226451}.button.small{font-size:11px;min-height:30px;padding:5px 10px}.button.ghost{background:transparent;border-color:#d9e1d3}.full{width:100%}.icon-button{display:inline-grid;place-items:center;width:30px;height:30px;border:0;background:transparent;border-radius:5px;color:#7a8a79}.icon-button:hover{background:#edf2e8}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.segmented{display:flex;gap:4px;flex-wrap:wrap;border:1px solid var(--line);border-radius:7px;padding:4px;background:#f0f2ed}.segmented button{border:0;background:transparent;padding:6px 14px;color:#828b80;font-size:12px;border-radius:4px}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 3px #314b3610;font-weight:500}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;background:#fdfefa;padding:6px 12px;width:288px;color:#9da69a;min-height:36px}.search input{min-width:0;width:100%;padding:0;background:transparent;border:0;font-size:11px;height:24px;color:var(--ink);outline:none}.search kbd{white-space:nowrap;font-family:inherit;font-size:9px;color:#a6afa1;border:1px solid #e6ebe0;padding:0 4px;border-radius:3px}.overview-note{display:flex;justify-content:space-between;font-size:10px;color:#8c9589;margin:20px 0 16px}.overview-note span:first-child{display:flex;align-items:center;gap:6px}.metrics{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px 0;margin-bottom:24px}.metric{padding:0 28px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric>span{font-size:11px;color:#7a8677}.metric strong{display:block;font-weight:500;font-size:34px;line-height:1.4;margin:8px 0;color:#263d32;letter-spacing:-1px}.metric strong small{font-size:11px;font-weight:400;margin-left:8px;letter-spacing:0;color:#8c9789}.metric strong.amount{font-size:30px;line-height:1.6}.metric p{font-size:10px;color:#91988c}.metrics.three{grid-template-columns:1fr 1fr 1.4fr}.danger-text{color:var(--danger)!important}.muted-text{color:var(--muted)}.overview-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:24px;margin-bottom:24px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:24px;min-width:0}.overview-grid .panel{margin-bottom:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 24px 20px}.panel-heading .eyebrow{display:block;font-size:8px;margin-bottom:4px}.panel-heading p{font-size:11px;color:var(--muted);margin-top:4px}.panel-heading>.text-button{font-size:11px}.task-row{display:flex;align-items:center;gap:16px;padding:16px 24px;border-top:1px solid #edf0e8}.date-box{min-width:46px;text-align:center;color:#7c8976;background:#f5f7f1;border:1px solid #e7ecdf;border-radius:5px;padding:6px 4px}.date-box b{font-size:12px;color:inherit;font-weight:500}.date-box small{display:block;font-size:9px}.date-box.late{color:#a97b59;background:#fbf5ef;border-color:#f0e5d8}.task-info{flex:1;min-width:0}.task-info .text-button{font-size:12px;gap:0;color:#334d3b;display:block}.task-info .muted-text{font-size:10px}.task-info p{font-size:11px;color:#6c7c67;margin:4px 0}.task-info small{font-size:9px;color:#7d8d75}.task-info small>span{color:#a1aa9b}.task-end{text-align:right;display:grid;gap:8px;justify-items:end}.badge{display:inline-block;font-size:9px;line-height:18px;padding:0 6px;background:#f2f4ef;border:1px solid #e3e7dd;border-radius:4px;color:#7a8970;white-space:nowrap}.badge.success{background:#eef5eb;border-color:#dfead8;color:#58784e}.badge.muted{color:#949c91;background:#f3f4f0}.panel-foot{display:flex;align-items:center;gap:6px;padding:12px 24px;color:#a0aa98;border-top:1px solid #edf0e8;font-size:9px}.brand-row{display:flex;align-items:center;gap:12px;justify-content:space-between;background:transparent;border:0;border-top:1px solid #edf0e8;padding:24px;width:100%;text-align:left}.brand-row:hover{background:#fafcf7}.brand-word{font-family:Arial,sans-serif;font-size:21px;letter-spacing:.3px;font-weight:700;color:#52614e;flex:1}.brand-word small{display:block;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-weight:400;letter-spacing:0;font-size:10px;color:#8d9985;margin-top:2px}.brand-row>div:nth-child(2){text-align:right}.brand-row b{font-size:17px;font-weight:500}.brand-row b small{font-size:9px;font-weight:400;color:#95a18c}.brand-row p{font-size:9px;margin-top:4px;color:#8a9880}.brand-row>svg{color:#b6bfaf}.quiet-note{font-size:11px;color:#87917e;line-height:1.8}.brand-panel>.quiet-note{margin:0;padding:20px 24px;background:#fbfcf8;border-top:1px solid #edf0e8}.table-scroll{width:100%;overflow-x:hidden}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:11px}th{position:sticky;top:0;font-size:10px;font-weight:400;color:#8b9584;background:#fafbf7;padding:12px 20px;border-top:1px solid #edf0e8;border-bottom:1px solid #edf0e8}td{padding:16px 20px;border-bottom:1px solid #edf0e8;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fdfefb}td small{display:block;font-size:9px;color:#a1aa98;margin-top:3px}.customer-link{color:var(--ink);gap:10px;font-size:12px}.customer-link small{color:#939f8a;margin-top:2px;font-size:9px}.shop-progress{display:flex;gap:5px}.shop-chip{display:flex;align-items:center;gap:8px;font-size:9px;color:#b0b7a9;border:1px solid #e8ebe3;border-radius:3px;padding:3px 6px;background:#fafbf8}.shop-chip.available{color:#89967e;border-color:#e0e8d8;background:#f6f8f1}.shop-chip.won{background:#eef3e8;color:#5f7e51;border-color:#d9e5cf}.stage-dot{width:5px;height:5px;display:inline-block;background:#acbaa1;border-radius:50%;margin-right:6px}.number{font-variant-numeric:tabular-nums}.right{text-align:right}.page-footer{padding:24px 0;margin-top:12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:9px;color:#a7b09e}.filter-line{display:flex;align-items:center;justify-content:space-between;margin:24px 0 16px;font-size:11px;gap:12px}.tabs{display:flex;gap:20px}.tabs button{border:0;border-bottom:2px solid transparent;padding:8px 0;background:transparent;font-size:12px;color:#8d9984}.tabs button.active{color:var(--brand);border-color:var(--brand);font-weight:500}.page-note{font-size:11px;color:#9aa48e;margin-bottom:24px}.empty{padding:48px 24px;text-align:center;color:#9aaa8b}.empty svg{margin-bottom:12px}.empty h3{font-weight:500}.empty p{font-size:12px;margin:8px 0 16px}.kanban{display:grid;grid-template-columns:repeat(5,minmax(200px,1fr));gap:16px;overflow-x:auto;padding-bottom:20px;align-items:start}.kanban-column{padding:12px;border:1px solid #e5e9df;border-radius:8px;background:#f0f2ec;min-height:220px}.kanban-column h2{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;margin:4px 0 16px}.kanban-column h2>span:last-child{margin-left:auto;color:#95a18b;font-size:10px}.status-dot{width:6px;height:6px;background:#a9b2a0;border-radius:50%}.status-dot.green{background:#6e9561}.deal-card{display:block;width:100%;text-align:left;padding:16px;background:white;border:1px solid #e2e7da;border-radius:7px;margin-bottom:12px}.deal-card:hover{border-color:#b7c7ab}.deal-store{font-size:9px;color:#89997e}.deal-card h3{font-size:14px;margin:8px 0 2px}.deal-card p{font-size:10px;color:#a0ab94}.deal-bottom{border-top:1px solid #f0f3ea;display:flex;justify-content:space-between;padding-top:12px;margin-top:16px;font-size:10px}.deal-bottom b{font-weight:500}.deal-card>small{font-size:9px;display:block;color:#a0ab94;margin-top:8px}.kanban-empty{text-align:center;font-size:11px;color:#a5af9a;padding:40px 0}.padded{padding:24px}.settings-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.settings-grid .panel{margin-bottom:24px}.rule-row{display:grid;grid-template-columns:1fr 130px 80px;gap:16px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line);align-items:center}.rule-row p{font-size:11px;color:var(--muted);margin-top:4px}.rule-row label{font-size:10px}.role-intro{font-size:11px;color:var(--muted);line-height:2;margin-bottom:20px}.settings-footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding-bottom:20px}.member-row{display:flex;align-items:center;gap:12px;padding-top:20px}.member-row>div{flex:1}.member-row small{display:block;font-size:10px;color:var(--muted)}.decision-hero{padding:32px 36px;background:#e7eee1;border:1px solid #dce5d3;border-radius:10px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px}.decision-hero h2{font-size:28px;font-weight:500;margin:12px 0}.decision-hero p{font-size:12px;line-height:1.9;color:#839376}.decision-seal{border:1px solid #b6c9a6;color:#7c956a;border-radius:50%;padding:20px;text-align:center;font-size:11px;white-space:nowrap}.decision-seal b{font-size:14px;color:#5b794c}.selected-row{background:#f7faf3}.arena-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.arena-grid p{font-size:12px;line-height:1.9;color:#87967b;margin:16px 0}.clean-list{list-style:none;margin:16px 0 0;padding:0;font-size:12px;line-height:2.3;color:#87967b}.clean-list li::before{content:'✓';margin-right:8px;color:#70915e}dialog{border:1px solid #dfe6d8;border-radius:12px;padding:0;width:min(720px,calc(100% - 32px));max-height:90vh;overflow:auto;color:var(--text);background:#fff;box-shadow:0 24px 100px #24422b28}dialog::backdrop{background:#233b3255;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.dialog-head h2{font-size:20px}.dialog-head p{font-size:11px;color:var(--muted);margin-top:6px}.dialog-head>.icon-button{flex-shrink:0}label{display:block;font-size:12px;color:#65725c}input,select,textarea{display:block;width:100%;min-height:38px;padding:8px 12px;background:#fff;border:1px solid #dce4d4;border-radius:5px;color:var(--ink);font-size:13px;margin-top:6px}input::placeholder,textarea::placeholder{color:#b1b8a9;font-size:11px}textarea{resize:vertical;line-height:1.7}label em{font-style:normal;color:#a7785c}form>label{margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.form-grid .wide{grid-column:1/-1}.field-help{font-size:11px;color:#9ca68f;align-self:center;padding-top:20px}fieldset{border:1px solid var(--line);border-radius:7px;margin:16px 0;padding:16px}legend{font-size:12px;color:#596c4d;padding:0 8px}.checkboxes{display:flex;gap:24px;margin-bottom:16px}.checkboxes label,.check-line{display:flex;align-items:center;gap:8px;font-size:12px}input[type=checkbox]{width:15px;height:15px;min-height:0;margin:0;accent-color:var(--brand)}fieldset small{font-size:10px;color:#9da88f;display:block;margin-top:8px}.check-line{margin-top:16px}.form-error{font-size:12px;color:var(--danger);margin:16px 0}.form-error:empty{display:none}.form-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.detail-body{padding:24px}.detail-summary{display:flex;justify-content:space-between;align-items:center;gap:12px}.detail-phone{font-size:22px;color:var(--ink)}.detail-summary p{font-size:11px;color:var(--muted);margin-top:4px}.stage-track{display:flex;justify-content:space-between;margin:28px 0;gap:4px}.stage-track>span{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px;color:#a8b19d;flex:1;border-top:2px solid #edf0e8;padding-top:8px}.stage-track>span.reached{border-color:#99b28a;color:#6c875b}.stage-track i{width:6px;height:6px;background:#dde6d4;border-radius:50%}.stage-track .reached i{background:#819e6e}.detail-body h3{margin:28px 0 12px}.detail-shops{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.detail-shop{text-align:left;background:#fafcf7;border:1px solid #e0e8d8;border-radius:6px;padding:16px}.detail-shop>span:first-child{display:block;font-size:12px;margin-bottom:8px}.detail-shop small{display:block;font-size:10px;color:#9da98f;margin-top:8px}.detail-task{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;padding:12px 0;border-bottom:1px solid var(--line)}.detail-task small{display:block;color:#9ca88f;font-size:10px;margin-top:4px}.timeline article{border-left:2px solid #dce8d3;padding:0 0 20px 16px}.timeline p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.timeline small{color:#9ca88f;font-size:10px}.detail-consent{background:#f7f9f3;border:1px solid #e5ebdc;padding:16px;margin-top:24px;border-radius:6px;font-size:11px}.detail-consent p{color:#8d9b80;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.inline-warning{padding:12px;background:#faf2e9;color:#a88362;font-size:12px;border-radius:5px}.auth-tabs{padding:12px 24px 0}.invite-box{padding:16px;background:#f2f6ec;border:1px solid #dce6d3;border-radius:6px;margin-top:16px;font-size:12px}.invite-box code{display:block;padding:12px 0;overflow-wrap:anywhere;user-select:all;font-size:13px}.invite-box small{color:var(--muted)}.toast{position:fixed;bottom:32px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:var(--brand-dark);color:#fff;border-radius:7px;padding:12px 24px;font-size:12px;max-width:calc(100vw - 32px);transition:transform .15s,opacity .15s;box-shadow:0 8px 30px #24422b20}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1800px){main{padding-top:32px}.overview-grid{grid-template-columns:1.8fr 1fr}}
@media(max-width:1200px){.sidebar{width:200px}.main-shell{margin-left:200px}main{padding:24px 24px 0}.topbar{padding:16px 24px}.metric{padding:0 20px}.metric strong.amount{font-size:25px;line-height:1.9}.overview-grid{gap:16px;grid-template-columns:1.5fr 1fr}.task-row{padding:16px;gap:12px}.task-info .muted-text{display:none}.panel-heading{padding:20px}.brand-row{padding:24px 20px}.rule-row{grid-template-columns:1fr 110px 60px;gap:8px}.settings-grid{grid-template-columns:1fr}.search{width:240px}}
@media(max-width:900px){.sidebar{width:184px;padding:24px 12px 12px}.main-shell{margin-left:184px}.brand{margin-left:8px}.brand small{font-size:9px}.nav-item{padding:10px}.overview-grid{grid-template-columns:1fr}.brand-panel .brand-row{padding:16px 20px}.brand-panel>.quiet-note{padding:16px 20px}.metrics{grid-template-columns:1fr 1fr;row-gap:24px}.metrics .metric:nth-child(2){border-right:0}.metrics .metric:nth-child(3){border-top:1px solid var(--line);padding-top:20px}.metrics .metric:nth-child(4){border-top:1px solid var(--line);padding-top:20px}.metrics.three{grid-template-columns:1fr 1fr}.metrics.three .metric:last-child{grid-column:1/-1}.toolbar{align-items:stretch;flex-direction:column}.search{width:100%}.segmented button{flex:1;white-space:nowrap;padding:6px 8px}.overview-note span:last-child{display:none}.mode-banner{align-items:flex-start}.mode-banner>.text-button{display:none}.page-heading{align-items:flex-start}.page-heading p{max-width:200px}.arena-grid{grid-template-columns:1fr}.topbar-actions{gap:12px}.topbar-actions>.mode-tag{display:none}.page-footer{gap:12px;flex-direction:column}.decision-hero{padding:24px}.decision-hero h2{font-size:24px}}
@media(max-width:640px){.sidebar{transform:translateX(-100%);width:224px;box-shadow:16px 0 70px #30422d22;transition:transform .15s}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.mobile-toggle{display:inline-grid!important}.topbar{padding:12px 16px;min-height:56px;position:sticky;top:0;z-index:20}.breadcrumbs{gap:6px}.breadcrumbs>span,.breadcrumbs>i{display:none}.topbar-actions .text-button{font-size:10px}main{padding:16px 16px 0}.mode-banner{font-size:9px;margin-bottom:20px;padding:8px}.mode-banner>span{display:inline}.mode-banner>span>svg{vertical-align:middle;margin-right:4px}.mode-banner>span:last-child:not(:first-child){display:none}.page-heading{margin-bottom:24px;gap:8px}.page-heading h1{font-size:26px}.page-heading .eyebrow{font-size:8px}.page-heading p{font-size:10px;max-width:220px}.heading-actions{padding-top:20px;gap:6px}.heading-actions .button{padding:7px 10px;font-size:10px}.heading-actions .button>svg{width:13px}.heading-actions .button:not(.primary){display:none}.toolbar{margin-bottom:16px;gap:12px}.segmented{gap:2px}.segmented button{font-size:10px;padding:6px 7px}.metrics{padding:20px 0;margin-bottom:16px;border-radius:8px}.metric{padding:0 20px}.metric strong{font-size:30px}.metric strong.amount{font-size:25px}.metric>span,.metric p{font-size:10px}.overview-grid{margin-bottom:16px;gap:16px}.panel{margin-bottom:16px;border-radius:8px}.panel-heading{padding:20px 16px}.panel-heading h2{font-size:16px}.panel-heading>.text-button{font-size:10px}.task-row{gap:10px;padding:16px 12px}.date-box{min-width:42px}.task-info .text-button{font-size:12px}.task-info p{font-size:10px}.task-info small{font-size:9px}.task-end .button{font-size:9px;padding:4px 7px;min-height:28px}.task-end .badge{font-size:8px}.task-end .button svg{display:none}.task-end{gap:6px}.panel-foot{padding:12px;font-size:8px}.filter-line{align-items:flex-start;flex-direction:column;gap:12px}.tabs{gap:20px;max-width:100%;overflow-x:auto}.tabs button{font-size:11px;white-space:nowrap}.page-note{font-size:10px}.table-scroll table{font-size:10px}th,td{padding:12px}.rule-row{grid-template-columns:1fr 115px 60px;gap:8px}.rule-row p{font-size:10px}.padded,.detail-body{padding:20px 16px}.settings-grid{gap:0}.settings-footer{flex-direction:column;gap:12px}.decision-hero h2{font-size:21px}.decision-hero p{font-size:10px}.decision-hero{padding:20px}.decision-seal{padding:12px;font-size:9px}.decision-seal b{font-size:11px}.arena-grid{gap:0}.clean-list{font-size:11px}.form-grid{gap:16px}.form-grid>label{font-size:11px}.form-grid .wide{grid-column:1/-1}.field-help{font-size:10px}.form-footer{gap:8px}.form-footer .button{font-size:11px;padding:8px 12px}.detail-summary{align-items:flex-start}.detail-summary .button{font-size:10px;padding:6px 8px}.detail-phone{font-size:20px}.detail-shops{gap:6px}.detail-shop{padding:12px 8px}.detail-shop>span:first-child{font-size:11px}.detail-shop small{font-size:9px}.detail-task{font-size:10px}.detail-task .badge{font-size:8px}.stage-track>span{font-size:9px}.dialog-head{padding:20px 16px}.dialog-head h2{font-size:18px}.dialog-head p{font-size:10px}.toast{bottom:20px;font-size:11px;padding:12px 16px;min-width:220px;text-align:center}.auth-tabs{padding:12px 16px 0}.topbar-actions{gap:8px}dialog{max-height:92dvh}.rule-row label input,.rule-row label select{padding:6px;font-size:11px}.page-footer{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(min-width:641px){.nav-label{font-size:11px}.nav-item{font-size:14px}.workspace-label{font-size:13px}.workspace-label small,.profile small,.connection{font-size:11px}.topbar-actions,.breadcrumbs{font-size:13px}.mode-banner{font-size:12px}.mode-banner>.text-button{font-size:12px}.page-heading p{font-size:13px}.button{font-size:13px}.segmented button{font-size:13px}.search input{font-size:12px}.overview-note{font-size:11px}.metric>span{font-size:12px}.metric p{font-size:11px}.panel-heading p{font-size:12px}.panel-heading>.text-button{font-size:12px}.task-info .text-button{font-size:13px}.task-info p{font-size:12px}.task-info small{font-size:11px}.task-info .muted-text{font-size:11px}.task-end .button{font-size:12px}.badge{font-size:11px}.date-box small{font-size:10px}.panel-foot{font-size:11px}.brand-word small{font-size:12px}.brand-row p{font-size:11px}.brand-row b small{font-size:11px}.quiet-note{font-size:12px}table{font-size:12px}th{font-size:11px}td small,.customer-link small{font-size:11px}.customer-link{font-size:13px}.shop-chip{font-size:10px}.page-note{font-size:12px}.deal-store,.deal-card>small{font-size:11px}.deal-card p,.deal-bottom{font-size:12px}.page-footer{font-size:11px}.form-grid>label,.padded>label{font-size:13px}.field-help,fieldset small{font-size:12px}.role-intro{font-size:12px}.decision-hero p{font-size:13px}.dialog-head p{font-size:12px}.detail-task,.timeline p{font-size:13px}.timeline small{font-size:11px}.detail-shop small{font-size:11px}.detail-consent{font-size:12px}}


[hidden]{display:none!important}
.sidebar-navigation{min-height:0;overflow:auto;scrollbar-width:thin}
.sidebar-navigation>.nav-label{display:block;margin-top:0}
.sidebar-navigation>.lower-label{margin-top:24px}
.sidebar .brand{flex-shrink:0}.sidebar .workspace-label{flex-shrink:0}
.sidebar-bottom{padding-top:20px}.sidebar-help{font-size:11px;margin:0 8px 8px;min-height:28px}.sidebar .original-link{font-size:12px;text-decoration:none;gap:8px;padding:0 8px;min-height:32px}.sidebar .original-link:hover{text-decoration:underline}.sidebar .version{padding-top:4px}
.topbar .original-link{font-size:12px;text-decoration:none;min-height:32px}.topbar .original-link:hover{text-decoration:underline}
.dashboard-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-4px 0 20px;font-size:12px;color:var(--muted)}.dashboard-actions>div{display:flex;align-items:center;gap:24px}.dashboard-actions .text-button{font-size:12px;min-height:28px}
.sync-warning{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid #ead5c9;background:#fbf4ef;border-radius:6px;color:var(--danger);font-size:12px;margin:0 0 24px}
.pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:20px 0}.pagination span{font-size:12px;color:var(--muted)}
.assistant-intro{padding-top:20px}.assistant-compose{background:#fff}.assistant-layout{grid-template-columns:340px minmax(0,1fr);gap:24px}.assistant-output .list-heading{padding:24px}.assistant-answer{min-height:420px}.assistant-choices legend{font-size:14px}.assistant-choices .assistant-choice{margin:0 0 12px}.assistant-consent{align-items:flex-start}.assistant-consent input{flex-shrink:0;min-height:18px;margin-top:3px}.assistant-compose .button{min-height:40px}.assistant-customer select{width:100%}.assistant-note{font-size:12px!important}.assistant-output .button{min-height:36px}.cohort-bar{margin:0}.business-summary{grid-template-columns:1fr 1fr 1fr 1.4fr;background:white;padding:24px;border:1px solid var(--line);border-radius:10px}.business-summary strong{font-size:30px}.business-summary>div:last-child{grid-column:auto}
.getting-started{margin-top:0}.simple-task .button{min-height:38px}.simple-task{padding:20px 24px}.task-tabs{padding:0 24px}.daily-list .list-heading{padding:24px}.reminder-bar{margin-bottom:20px}
.page-footer .original-link{font-size:11px;min-height:28px}.drawer-backdrop{display:none}
@media(max-width:1100px){.assistant-layout{grid-template-columns:300px minmax(0,1fr)}.topbar-actions{gap:16px}.topbar .header-ai{display:none}}
@media(max-width:900px){.assistant-layout{grid-template-columns:1fr}.assistant-answer{min-height:260px}.business-summary{grid-template-columns:1fr 1fr}.dashboard-actions{align-items:flex-start}.dashboard-actions>div{gap:16px}}
@media(max-width:640px){
 .sidebar{z-index:50}.drawer-backdrop{display:block;position:fixed;inset:0;z-index:40;background:#20372d55;border:0}.sidebar-navigation .nav-item{min-height:44px;font-size:14px}.sidebar-navigation .nav-label{font-size:12px}.sidebar-bottom .original-link{min-height:44px}.sidebar .brand small,.workspace-label small,.profile small{font-size:11px}
 .topbar-actions .original-link{font-size:11px;min-height:40px}.topbar-actions .mode-tag{display:none}.topbar-actions .text-button{font-size:11px;min-height:40px}.topbar-actions{gap:12px}.topbar .breadcrumbs b{font-size:13px}
 .dashboard-actions{flex-wrap:wrap;gap:8px;margin-bottom:16px;font-size:12px}.dashboard-actions>div{justify-content:space-between;width:100%;gap:16px}.dashboard-actions .text-button{min-height:36px;font-size:12px}
 .mode-banner{font-size:11px;line-height:1.7}.page-heading p{font-size:12px;max-width:30ch}.page-heading h1{font-size:26px}.page-heading .eyebrow{font-size:9px}.heading-actions .button{min-height:40px;font-size:12px;padding:8px 12px}.heading-actions .button.export-button{display:inline-flex}.toolbar{align-items:stretch}.search{max-width:none;width:100%;min-height:42px}.search input{font-size:16px}.segmented{overflow:auto}.segmented button{font-size:12px;min-height:40px;white-space:nowrap}
 .metric>span,.metric p{font-size:11px}.task-info p{font-size:12px}.task-info small{font-size:11px}.task-info .text-button{font-size:13px}.task-end .button{font-size:11px;min-height:36px}.task-end .badge{font-size:10px}.panel-foot{font-size:10px}.tabs button{font-size:12px;min-height:40px}.table-scroll table{font-size:12px}.table-scroll{overflow-x:hidden}.page-note{font-size:12px}.page-footer{font-size:10px;gap:12px;flex-wrap:wrap}.page-footer .original-link{min-height:40px}
 .assistant-intro h2{font-size:20px}.assistant-layout{grid-template-columns:1fr}.assistant-choice small,.assistant-note{font-size:12px}.assistant-answer{font-size:14px;min-height:240px}.assistant-customer select,.padded input,.padded textarea,.padded select{font-size:16px}.assistant-output .list-heading{padding:20px}.assistant-compose .button{min-height:44px}.assistant-intro p{font-size:13px}
 .simple-task{padding:20px 16px}.simple-task .button{min-height:44px}.task-tabs{padding:0 16px;gap:16px}.task-purpose p{font-size:13px}.form-grid label,fieldset legend{font-size:13px}.detail-task,.timeline p{font-size:13px}.quiet-note,.field-help{font-size:12px}.form-footer .button{min-height:44px;font-size:13px}.business-summary{padding:20px;gap:20px}.business-summary strong{font-size:25px}.pagination{gap:12px}.pagination .button{min-height:40px}.sync-warning{font-size:12px}
}

/* Source: theme-gray.css */
/* Single color contract for the enhanced UI. /original/ does not load this file. */
:root {
  color-scheme: light;
  --paper: #f7f7f7;
  --surface: #ffffff;
  --surface-subtle: #fafafa;
  --surface-hover: #f6f6f6;
  --surface-selected: #f0f0f0;
  --ink: #1f2329;
  --text: #4e535c;
  --muted: #8f959e;
  --control-text: #646a73;
  --line: #ebebeb;
  --control-border: #dedede;
  --brand: #4e535c;
  --brand-dark: #1f2329;
  --brand-pale: #f4f4f4;
  --danger: #a43b37;
  --success: #3b6854;
  --radius: 12px;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Workspace and consistent elevated white surfaces. */
body, .main-shell { background: var(--paper); color: var(--text); }
.sidebar, .topbar, .app-header, .mobile-nav { background: var(--surface); border-color: var(--line); }
.metrics, .panel, .workspace-label, .daily-list, .business-summary,
.business-stores, .assistant-compose, .assistant-output, .kanban-column,
.deal-card, .decision-hero, .client-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.detail-shop, .detail-consent, .invite-box, .assistant-choice, fieldset {
  background: var(--surface);
  border-color: var(--line);
  border-radius: var(--radius);
}
.panel-foot, .brand-panel>.quiet-note, .dialog-head, .form-footer,
.upcoming>.simple-task, th { background: var(--surface); }
.panel-foot, .brand-panel>.quiet-note { border-radius: 0 0 var(--radius) var(--radius); }
.panel>.table-scroll:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.mode-banner, .demo-notice, .assistant-demo {
  background: var(--surface-subtle); border-color: var(--line); color: var(--control-text);
}
.workspace-avatar, .avatar, .avatar.dark {
  background: var(--brand-pale); border-color: var(--line); color: var(--control-text);
}
.sidebar .profile, .nav-count, .mode-tag, .search kbd { border-color: var(--line); }
.connection>span { background: #92979d; }

/* Neutral selection, hover and keyboard focus, without green or bright blue fills. */
.nav-item, .segmented button, .icon-button, .tabs button { color: var(--control-text); }
.nav-item:hover, .icon-button:hover, .brand-row:hover, tbody tr:hover,
.client-row:hover, .account-button:hover { background: var(--surface-hover); }
.nav-item.active { background: var(--surface-selected); color: var(--ink); }
.nav-item.active::before { background: #747a83; }
.segmented { background: var(--brand-pale); border-color: var(--line); }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.tabs button.active, .main-nav-item.active { color: var(--ink); border-color: #747a83; }
.mobile-nav .main-nav-item.active, .assistant-choice.selected, .selected-row {
  background: var(--brand-pale); color: var(--ink); border-color: #c7c7c7;
}
.button, .button.ghost, .account-button {
  background: var(--surface); border-color: var(--control-border); color: var(--text);
}
.button.primary { background: #f2f2f2; border-color: #dedede; color: var(--ink); }
.button:hover, .button.primary:hover, .button.ghost:hover {
  background: #eaeaea; border-color: #c7c7c7; color: var(--ink);
}
.button:active, .button.primary:active { background: #e3e3e3; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible { outline: 2px solid #747a83; outline-offset: 3px; }
input:focus, textarea:focus, select:focus { outline-color: #747a83; border-color: #92979d; }
input[type=checkbox], input[type=radio] { accent-color: #646a73; }
.search, input, select, textarea { background: var(--surface); border-color: var(--control-border); color: var(--ink); }
input::placeholder, textarea::placeholder, .search input::placeholder { color: #747a83; opacity: 1; }
.search input { background: transparent; border: 0; }

/* All page headings, numbers and body copy share the same hierarchy. */
h1, h2, h3, b, strong, .metric strong, .brand-word, .task-info .text-button,
.breadcrumbs b, legend, .person-name { color: var(--ink); }
.task-info p, label, .store-label, .service-state, .service-state.off,
.decision-seal, .decision-seal b { color: var(--text); }
.brand small, .nav-label, .connection, .version, .breadcrumbs, .breadcrumbs i,
.mode-tag, .nav-count, .eyebrow, .overview-note, .metric>span, .metric p,
.metric strong small, .task-info small, .task-info small>span, .panel-foot,
.brand-word small, .brand-row b small, .brand-row p, .brand-row>svg,
.quiet-note, th, td small, .customer-link small, .page-footer, .page-note,
.empty, .deal-store, .deal-card p, .deal-card>small, .deal-bottom,
.kanban-column h2>span:last-child, .kanban-empty, .decision-hero p,
.arena-grid p, .clean-list, .field-help, fieldset small, .detail-shop small,
.detail-task small, .timeline small, .detail-consent p, .service-state.off small {
  color: var(--muted);
}
.icon-button, .search, .search kbd, .person-name svg { color: var(--control-text); }
.text-button, .original-link, .clean-list li::before { color: var(--brand); }
.text-button:hover { color: var(--ink); }

/* Status is carried by labels and restrained text, never a yellow/green surface. */
.date-box, .date-box.late, .badge, .badge.success, .badge.muted,
.shop-chip, .shop-chip.available, .shop-chip.won {
  background: var(--surface-subtle); border-color: var(--line); color: var(--control-text);
}
.date-box.late { color: var(--danger); }
.badge.success, .shop-chip.won { color: var(--success); }
.stage-dot, .status-dot { background: #aeb2b8; }
.status-dot.green { background: var(--success); }
.stage-track>span { border-color: var(--line); color: var(--muted); }
.stage-track>span.reached { border-color: #aeb2b8; color: var(--control-text); }
.stage-track i { background: #e4e4e4; }
.stage-track .reached i { background: #92979d; }
.sync-warning, .inline-warning { background: var(--surface-subtle); border: 1px solid var(--line); color: var(--danger); }
label em { color: var(--danger); }

/* Remove hardcoded warm dividers, tinted overlays and shadows from the legacy layer. */
.task-row, .simple-task, .panel-foot, .brand-panel>.quiet-note,
.brand-row, th, td, .deal-bottom, .timeline article, .decision-seal {
  border-color: var(--line);
}
.deal-card:hover { border-color: #c7c7c7; }
dialog { border-color: var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 16px 64px rgba(0,0,0,0.12); }
dialog::backdrop, .drawer-backdrop { background: rgba(31,35,41,0.28); }
.toast { background: var(--ink); color: #fff; box-shadow: var(--card-shadow); }
@media(max-width:640px) { .sidebar { box-shadow: 8px 0 32px rgba(0,0,0,0.08); } }

/* Source: layout-refinement.css */
/* Enhanced workspace layout. Loaded after the shared color contract. */
:root {
  --space-section: 32px;
  --space-card: 32px;
  --space-grid: 24px;
  --row-line: #f1f5f9;
  --control-radius: 8px;
}

/* Keep the familiar sidebar and dashboard, with a consistent spacing rhythm. */
.sidebar { width: 232px; padding: 28px 16px 20px; }
.main-shell { margin-left: 232px; min-width: 0; }
.topbar { min-height: 72px; padding: 18px 40px; }
main { max-width: 1520px; margin: 0 auto; padding: 32px 40px 0; }
.page-heading { margin-bottom: 32px; align-items: center; gap: 24px; }
.page-heading h1 { margin: 8px 0 12px; font-size: 28px; letter-spacing: -.4px; }
.page-heading p { font-size: 14px; line-height: 1.7; color: #8f959e; }
.heading-actions { padding-top: 0; gap: 12px; flex-wrap: wrap; }
.toolbar { gap: 24px; margin-bottom: 28px; }
.mode-banner { margin-bottom: 32px; padding: 12px 16px; border-radius: 8px; }
.mode-banner.demo-banner { background: #f0f9ff; border-color: #e0f2fe; color: #475569; }
.overview-note { margin-bottom: 16px; gap: 16px; line-height: 1.6; }
.overview-grid { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: var(--space-grid); margin-bottom: var(--space-section); }
.settings-grid, .arena-grid { gap: var(--space-grid); }
.dashboard-actions { margin: 0 0 24px; }
.panel { margin-bottom: var(--space-section); }
.panel-heading, .daily-list .list-heading, .business-stores .list-heading,
.assistant-output .list-heading { padding: 28px var(--space-card) 24px; gap: 20px; }
.panel-heading h2, .list-heading h2 { font-size: 17px; line-height: 1.5; }
.panel-heading p, .list-heading p { margin-top: 8px; line-height: 1.7; font-size: 13px; }
.panel-heading .eyebrow { margin-bottom: 8px; }
.padded, .detail-body, .assistant-compose { padding: var(--space-card); }
.panel.padded>h2, .panel.padded>h3 { margin-bottom: 16px; }
.panel.padded>h3:not(:first-child) { margin-top: 28px; }
.panel.padded>p { line-height: 1.85; margin-bottom: 16px; }
.panel-foot, .brand-panel>.quiet-note { padding: 20px var(--space-card); line-height: 1.8; }
.page-footer { margin-top: 40px; padding: 24px 0; }

/* Independent KPI cards: small labels, prominent numbers, no vertical rules. */
.metrics, .business-summary {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px;
  padding: 0; margin-bottom: var(--space-section); background: transparent;
  border: 0; border-radius: 0; box-shadow: none;
}
.metrics.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.metrics .metric, .business-summary>div {
  min-width: 0; padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--card-shadow);
}
.metrics .metric>span, .business-summary>div>span {
  display: block; font-size: 14px; font-weight: 500; line-height: 1.5; color: #64748b;
}
.metrics .metric strong, .metrics .metric strong.amount, .business-summary strong {
  display: block; margin: 16px 0 12px; font-size: 32px; font-weight: 650;
  line-height: 1.2; letter-spacing: -.8px; overflow-wrap: anywhere; color: #0f172a;
}
.metrics .metric strong small, .business-summary strong small {
  margin-left: 8px; font-size: 12px; font-weight: 400; letter-spacing: 0;
}
.metrics .metric p { font-size: 12px; line-height: 1.6; margin: 0; }
.business-summary>div:last-child { grid-column: auto; }

/* Tables stay inside their own horizontal scroll area on smaller screens. */
.panel:has(>.table-scroll) { border: 0; }
.table-scroll { border: 0; padding: 0 24px 16px; }
.table-scroll table { width: 100%; min-width: 0; border: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table-scroll th { height: 56px; padding: 16px; border: 0; border-bottom: 1px solid var(--row-line); font-size: 12px; font-weight: 500; }
.table-scroll td { height: 80px; padding: 18px 16px; border: 0; border-bottom: 1px solid var(--row-line); line-height: 1.6; }
.table-scroll td small { margin-top: 6px; font-size: 12px; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll .customer-link { gap: 14px; font-size: 14px; text-decoration: none; }
.customer-link>span:last-child { min-width: 0; }
.customer-link b { font-weight: 600; }
.customer-link small { display: block; font-size: 12px; line-height: 1.6; margin-top: 5px; }
.customer-link .avatar, .client-row .customer-link .avatar {
  width: 44px; height: 44px; font-size: 16px; font-weight: 600;
  background: var(--brand-pale); color: var(--brand); border: 0;
}
.shop-progress { gap: 8px; flex-wrap: wrap; }
.shop-chip, .shop-chip.available, .shop-chip.won, .badge, .badge.success, .badge.muted {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 4px 10px; min-height: 26px; border: 0; border-radius: 999px;
  font-size: 11px; font-weight: 500; line-height: 1.5; background: var(--brand-pale);
}
.client-list { border: 0; padding: 0 24px; }
.client-row { padding: 24px 8px; min-height: 96px; gap: 24px; border-color: var(--row-line); }
.service-state { border-radius: 999px; padding: 8px 12px; background: var(--brand-pale); }
.filter-line { margin: 0 0 24px; gap: 20px; font-size: 12px; }
.tabs { gap: 28px; }
.tabs button { min-height: 40px; padding: 10px 0; font-size: 13px; }

/* Quiet column backgrounds separate the board from its white customer cards. */
.kanban { grid-template-columns: repeat(5,minmax(248px,1fr)); gap: 20px; padding: 4px 4px 24px; align-items: stretch; }
.kanban-column { min-width: 0; min-height: 360px; padding: 20px 16px; border: 0; border-radius: 16px; background: #f8fafc; box-shadow: none; }
.kanban-column h2 { padding: 4px 8px; margin: 0 0 20px; font-size: 13px; font-weight: 600; }
.kanban-column h2>span:last-child { min-width: 24px; padding: 2px 7px; text-align: center; border-radius: 999px; background: #fff; font-size: 11px; }
.deal-card { padding: 24px; margin-bottom: 16px; border: 1px solid rgba(0,0,0,.025); border-radius: 12px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.04); }
.deal-card:hover { border-color: #dedede; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.deal-store { display: inline-block; margin-bottom: 4px; font-size: 12px; }
.deal-card h3 { margin: 10px 0 8px; font-size: 16px; font-weight: 600; }
.deal-card p { font-size: 12px; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.deal-bottom { margin-top: 24px; padding-top: 16px; gap: 12px; font-size: 12px; border-color: var(--row-line); }
.deal-card>small { margin-top: 12px; font-size: 11px; line-height: 1.6; }

/* Consistent controls; reserve an outline for focus rather than idle borders. */
.button, .button.small, .button.ghost, .button.primary, .account-button,
.task-end .button, .simple-task .button, .heading-actions .button,
.assistant-compose .button, .assistant-output .button, .form-footer .button {
  height: 36px; min-height: 36px; padding: 0 14px; border-radius: var(--control-radius);
  font-size: 13px; line-height: 1.4; border: 1px solid transparent;
}
.button:not(.primary), .button.ghost, .account-button { background: var(--brand-pale); }
.button:hover, .button.ghost:hover, .button.primary:hover { border-color: transparent; }
.icon-button { width: 36px; height: 36px; border-radius: var(--control-radius); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  min-height: 40px; padding: 10px 12px; border: 1px solid transparent;
  border-radius: var(--control-radius); background: #f6f6f6; font-size: 14px;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.7; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  border-color: var(--brand); background: #fff; outline: 2px solid rgba(78,83,92,.1); outline-offset: 1px;
}
.search { width: 300px; min-height: 40px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: var(--control-radius); background: #fff; }
.search input { min-height: 38px!important; height: 38px; margin: 0; padding: 0!important; border: 0!important; background: transparent!important; outline: none!important; font-size: 13px; }
.search:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 2px rgba(78,83,92,.1); }
input[type=search], #customer-phone-form input[name=phone] { background: #fff; }
.segmented { padding: 4px; border: 0; border-radius: 10px; }
.segmented button { min-height: 32px; padding: 6px 12px; border-radius: 7px; }

/* Rounded, inset navigation selection instead of a full-width heavy block. */
.sidebar-navigation { padding: 0 4px; }
.sidebar-navigation .nav-item { width: 100%; min-height: 44px; padding: 10px 12px; margin-bottom: 6px; border-left: 3px solid transparent; border-radius: 0; font-size: 13px; }
.sidebar-navigation .nav-item.active, .sidebar-navigation .nav-item.active:hover { background: transparent; border-left: 3px solid var(--brand); font-weight: 700; color: #0f172a; }
.sidebar-navigation .nav-item.active::before { display: none; }
.sidebar-navigation .nav-label { margin: 8px 12px 16px; font-size: 11px; }
.sidebar-navigation .lower-label { margin-top: 28px; }
.workspace-label { padding: 14px 12px; margin-bottom: 28px; box-shadow: none; }
.workspace-avatar { width: 32px; height: 32px; border-radius: 8px; }

/* Followups, business and dialogs use the same content gutters. */
.task-row { padding: 24px var(--space-card); gap: 20px; border-color: var(--row-line); }
.panel.agenda { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.agenda .panel-heading { padding: 0 0 20px; }
.followup-list { display: grid; gap: 12px; }
.followup-list>.task-row { margin: 0; padding: 24px; background: #fff; border: 0; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.followup-list .date-box, .followup-list .date-box.late { background: #eff6ff; color: #1e40af; border: 0; border-radius: 6px; }
.agenda>.panel-foot { padding: 16px 0 0; background: transparent; border: 0; }
.task-info .text-button { font-size: 14px; line-height: 1.6; }
.task-info p { margin: 8px 0; font-size: 13px; line-height: 1.7; }
.task-info small { font-size: 12px; }
.date-box { min-width: 48px; padding: 10px 8px; border: 0; border-radius: 8px; }
.task-end { gap: 12px; flex-shrink: 0; }
.brand-row { padding: 28px var(--space-card); border-color: var(--row-line); }
.brand-row .brand-word { display: block; font-size: 18px; font-weight: 700; line-height: 1.5; }
.brand-row .brand-alias { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.brand-row .brand-opportunities { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; font-size: 13px; color: #64748b; }
.brand-opportunities b { font-size: 16px; font-weight: 600; }
.brand-results { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.brand-results b { font-size: 24px; font-weight: 650; }
.brand-results>span { font-size: 12px; color: var(--muted); }
.simple-task { padding: 24px var(--space-card); gap: 24px; border-color: var(--row-line); }
.task-tabs { padding: 0 var(--space-card); }
.business-store { padding: 28px var(--space-card); border-color: var(--row-line); }
.business-links { gap: 24px; margin: 32px 0; }
.business-links>button { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--card-shadow); }
.cohort-bar { margin-bottom: 24px; gap: 24px; }
.assistant-layout { gap: 24px; }
.assistant-answer { padding: var(--space-card); }
.assistant-choice { padding: 20px; }
.assistant-choices .assistant-choice { margin-bottom: 16px; }
.assistant-choice small { line-height: 1.8; margin-top: 8px; }
.dialog-head { padding: 28px 32px; }
.form-grid { gap: 24px; }
.detail-shop { padding: 24px; }
.detail-consent, .invite-box { padding: 24px; }
.rule-row { padding: 20px 0; gap: 16px; }

@media(max-width:1280px) {
  :root { --space-card: 24px; }
  main { padding: 28px 28px 0; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .metrics, .business-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .metrics .metric, .business-summary>div { padding: 24px; }
}
@media(max-width:900px) {
  .sidebar { width: 208px; }
  .main-shell { margin-left: 208px; }
  main { padding: 24px 24px 0; }
  .topbar { padding: 16px 24px; }
  .assistant-layout { grid-template-columns: 1fr; }
  .toolbar, .cohort-bar { flex-wrap: wrap; }
  .search { width: 100%; max-width: none; }
  .task-row { gap: 16px; }
  .task-info .muted-text { display: none; }
}
@media(max-width:640px) {
  :root { --space-card: 24px; --space-section: 24px; --space-grid: 20px; }
  .sidebar { width: 240px; padding: 24px 16px; }
  .main-shell { margin-left: 0; }
  main { padding: 24px 16px 0; }
  .topbar { padding: 12px 16px; min-height: 64px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 14px; }
  .heading-actions { flex-shrink: 0; gap: 8px; }
  .heading-actions .button.export-button { display: inline-flex; }
  .toolbar { gap: 16px; margin-bottom: 24px; }
  .metrics, .metrics.three, .business-summary { grid-template-columns: 1fr; gap: 16px; }
  .metrics .metric, .business-summary>div { padding: 24px; }
  .metrics .metric strong, .metrics .metric strong.amount, .business-summary strong { font-size: 32px; letter-spacing: -.6px; }
  .metrics .metric p { font-size: 11px; }
  .panel-heading, .daily-list .list-heading, .business-stores .list-heading,
  .assistant-output .list-heading { padding: 24px; flex-wrap: wrap; gap: 12px; }
  .panel-heading>.text-button { min-height: 36px; }
  .table-scroll { padding: 0 8px 12px; }
  .table-scroll th { padding: 16px; }
  .table-scroll td { padding: 18px 16px; }
  .table-scroll table { font-size: 13px; }
  .filter-line { gap: 12px; }
  .tabs { gap: 24px; }
  .task-row { flex-wrap: wrap; align-items: flex-start; padding: 24px; gap: 16px; }
  .agenda .panel-heading { padding: 0 0 20px; }
  .task-info { min-width: 150px; }
  .task-end { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
  .task-end .badge { margin-right: auto; }
  .simple-task { gap: 16px; }
  .business-store { padding: 24px; }
  .business-links { flex-direction: column; }
  .button, .button.small, .button.ghost, .button.primary, .account-button,
  .task-end .button, .simple-task .button, .heading-actions .button,
  .assistant-compose .button, .assistant-output .button, .form-footer .button,
  .pagination .button { height: 44px; min-height: 44px; padding: 0 12px; font-size: 13px; }
  .icon-button { width: 44px; height: 44px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 44px; font-size: 16px; }
  .search { min-height: 44px; }
  .search input { min-height: 42px!important; height: 42px; font-size: 16px; }
  .segmented { width: 100%; }
  .segmented button { min-height: 36px; }
  .kanban { grid-template-columns: repeat(5,minmax(260px,82vw)); gap: 16px; }
  .client-list { padding: 0 16px; }
  .client-row { padding: 24px 8px; gap: 16px; }
  .dialog-head { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail-shops { grid-template-columns: 1fr; }
  .detail-shop { padding: 24px; }
  .cohort-bar label { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { button { transition: none; } }

/* Source: experience.css */
/* v1.4: soft elevation and AI workspace, retaining the approved centered width. */
:root {
  --paper: #f4f6f8;
  --brand: #4263bc;
  --brand-dark: #304d9d;
  --brand-pale: #edf2ff;
  --radius: 16px;
  --space-card: 24px;
  --space-grid: 24px;
  --card-shadow: 0 8px 24px rgba(149,157,165,.1);
}
.metrics, .metrics.three, .business-summary, .overview-grid, .settings-grid,
.arena-grid, .business-links { gap: 24px; }
.metrics .metric, .business-summary>div, .panel, .daily-list, .business-stores,
.assistant-compose, .assistant-output, .client-list, .business-links>button,
.followup-list>.task-row, .deal-card { border-radius: 16px; box-shadow: var(--card-shadow); }
.metrics .metric, .business-summary>div, .padded, .assistant-compose, .deal-card { padding: 24px; }
.panel-heading, .daily-list .list-heading, .business-stores .list-heading,
.assistant-output .list-heading, .brand-row { padding: 24px; }
.panel.agenda { background: transparent; border: 0; box-shadow: none; }
.agenda .panel-heading { padding: 0 0 20px; }
.followup-list { gap: 24px; }
.followup-list>.task-row { padding: 24px; }

/* Rounded tinted navigation, with no leading stripe or layout shift. */
.sidebar-navigation .nav-item { border: 0; border-radius: 8px; padding: 10px 16px; }
.sidebar-navigation .nav-item.active, .sidebar-navigation .nav-item.active:hover {
  border: 0; background: #e8f0fe; color: #3659ad; font-weight: 650;
}
.sidebar-navigation .nav-item.active::before { display: none; }
.sidebar-navigation .nav-item:hover { background: #f2f5fb; }
.button.primary { background: #e8f0fe; border-color: transparent; color: #3659ad; }
.button.primary:hover { background: #dce7fc; border-color: transparent; color: #294a9b; }

/* Separate white table rows with eight pixels of visible page background. */
.panel:has(>.table-scroll) { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.panel:has(>.table-scroll)>.panel-heading { padding: 0 0 20px; }
.table-scroll { padding: 0 4px 16px; }
.table-scroll table { border-collapse: separate; border-spacing: 0 8px; background: transparent; }
.table-scroll th { background: transparent; border: 0; font-size: 11px; color: #8794a5; height: 44px; padding: 12px 20px; }
.table-scroll td { background: #fff; border: 0; padding: 18px 20px; height: 80px; }
.table-scroll tbody tr { box-shadow: 0 4px 14px rgba(149,157,165,.07); }
.table-scroll tbody tr:hover td { background: #fbfcff; }
.table-scroll td:first-child { border-radius: 16px 0 0 16px; padding-left: 24px; }
.table-scroll td:last-child { border-radius: 0 16px 16px 0; padding-right: 24px; }
.table-scroll .selected-row td { background: #edf2ff; }
.panel:has(>.task-row) { display: grid; gap: 24px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.panel>.task-row { background: #fff; border: 0; border-radius: 16px; padding: 24px; box-shadow: var(--card-shadow); }

/* Consistent, subtle brand coding in tables and opportunity cards. */
.shop-chip, .shop-chip.available, .shop-chip.won, .deal-store { border-radius: 999px; border: 0; }
.shop-chip[data-shop="大金空调"], .deal-store[data-shop="大金空调"] { background: #edf4ff; color: #355d9f; }
.shop-chip[data-shop="皮阿诺"], .deal-store[data-shop="皮阿诺"] { background: #edf7f1; color: #367252; }
.shop-chip[data-shop="老板电器"], .deal-store[data-shop="老板电器"] { background: #f2effb; color: #6c529d; }
.shop-chip:not(.available):not(.won) { opacity: .6; }
.deal-store { padding: 4px 9px; font-size: 11px; }
.kanban { gap: 24px; }
.kanban-column { background: #eef1f5; border-radius: 16px; padding: 24px 16px; box-shadow: none; }
.deal-card { margin-bottom: 24px; background: #fff; border-color: rgba(255,255,255,.8); }
.deal-card:hover { border-color: #c9d6f1; box-shadow: 0 12px 28px rgba(125,145,178,.16); }

/* Horizontal AI scenes first, followed by scope and authorization controls. */
.assistant-intro { padding: 24px 0; border: 0; }
.assistant-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.assistant-compose { border: 1px solid #e8edf4; }
.assistant-choices { margin: 0 0 24px; }
.assistant-choices legend { font-size: 14px; margin-bottom: 16px; }
.assistant-choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.assistant-choices .assistant-choice {
  position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr);
  gap: 16px; align-items: start; padding: 24px; margin: 0; border-radius: 16px;
  background: #fff; border: 1px solid #e6ebf2; box-shadow: 0 4px 12px rgba(149,157,165,.07);
}
.choice-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #f0f4ff; border-radius: 12px; color: #5975bc; }
.assistant-choice input { position: absolute; top: 16px; right: 16px; width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: #5975bc; }
.choice-copy { padding-top: 2px; padding-right: 8px; }
.assistant-choice b { display: block; font-size: 15px; line-height: 1.6; }
.assistant-choice small { margin-top: 8px; font-size: 12px; line-height: 1.8; color: #707e91; }
.assistant-choices .assistant-choice.selected { border-color: #8ba5e4; background: #f6f8ff; box-shadow: 0 4px 16px rgba(95,126,195,.12); }
.assistant-choice.selected .choice-icon { background: #e5edff; color: #4263bc; }
.assistant-choice:has(input:focus-visible) { outline: 2px solid #5975bc; outline-offset: 3px; }
.assistant-controls { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); gap: 32px; padding-top: 24px; border-top: 1px solid #eef1f5; }
.assistant-inputs { min-width: 0; }
.assistant-customer { margin-bottom: 16px; font-size: 13px; }
.assistant-scope { font-size: 12px; color: #68788d; margin-bottom: 0; }
.assistant-actions .quiet-note { font-size: 12px; line-height: 1.8; color: #68788d; }
.assistant-consent { margin: 16px 0; font-size: 12px; line-height: 1.7; }
.assistant-actions .button.full { width: auto; min-width: 180px; height: 40px; padding: 0 20px; }
.assistant-actions .assistant-note { margin-top: 12px; font-size: 11px!important; color: #7c8798; }
.assistant-demo { background: #f4f7ff; padding: 12px 16px; border-radius: 8px; }

/* A quiet blue/violet workspace gives the empty state a clear visual center. */
.assistant-output {
  background: linear-gradient(135deg,#f3f8ff 0%,#f7f7ff 52%,#faf5ff 100%);
  border: 1px solid #e6eaf7; overflow: hidden;
}
.assistant-output .list-heading { background: transparent; border-bottom-color: rgba(109,131,180,.1); }
.assistant-answer { padding: 24px; min-height: 340px; }
.assistant-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 292px; padding: 24px; }
.assistant-orb { position: relative; isolation: isolate; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: linear-gradient(140deg,#eef4ff,#ede8ff); color: #6b75c8; margin-bottom: 24px; }
.assistant-orb::before { content: ''; position: absolute; z-index: -1; inset: -16px; border-radius: 50%; background: radial-gradient(circle,rgba(133,144,231,.25),rgba(133,144,231,0) 70%); animation: ai-breathe 3.6s ease-in-out infinite; }
.assistant-orb svg { filter: drop-shadow(0 3px 8px rgba(106,112,198,.2)); }
.assistant-placeholder h3 { font-size: 20px; font-weight: 550; line-height: 1.6; color: #43506b; margin: 0 0 12px; }
.assistant-placeholder p { max-width: 56ch; font-size: 13px; line-height: 1.8; color: #748099; }
.assistant-prompt-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.assistant-prompt-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid #dce3f4; border-radius: 999px; background: #fff; color: #4263bc; font-size: 12px; cursor: pointer; }
.assistant-prompt-tag:hover { background: #edf2ff; border-color: #a3b5df; }
.assistant-prompt-tag:focus-visible { outline: 2px solid #4263bc; outline-offset: 3px; }
@media(pointer:coarse) { .assistant-prompt-tag { min-height: 44px; } }
.ai-text { background: rgba(255,255,255,.88); padding: 24px; border-radius: 16px; color: #354156; line-height: 1.9; }
.ai-loading { padding: 0; }
@keyframes ai-breathe { 0%,100% { transform: scale(.88); opacity: .55; } 50% { transform: scale(1.12); opacity: 1; } }
@media(max-width:1100px) {
  .assistant-choices .assistant-choice { grid-template-columns: 1fr; }
  .choice-copy { padding-right: 0; }
}
@media(max-width:760px) {
  .assistant-choice-grid { grid-template-columns: 1fr; gap: 16px; }
  .assistant-choices .assistant-choice { grid-template-columns: 44px minmax(0,1fr); }
  .assistant-controls { grid-template-columns: 1fr; gap: 24px; }
  .assistant-actions .button.full { width: 100%; height: 44px; }
  .assistant-placeholder { padding: 24px 0; }
  .assistant-placeholder h3 { font-size: 18px; }
  .assistant-orb { width: 72px; height: 72px; border-radius: 22px; }
}
@media(prefers-reduced-motion:reduce) { .assistant-orb::before { animation: none; transform: none; opacity: .7; } }

/* v1.5: quick actions and a free question form share a focused floating card. */
.assistant-layout .assistant-compose { padding: 0; border: 0; background: transparent; box-shadow: none; }
.assistant-workbench, .assistant-controls { padding: 24px; border: 1px solid #e8edf4; border-radius: 16px; background: #fff; box-shadow: var(--card-shadow); }
.assistant-controls { margin-top: 24px; }
.assistant-choice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.assistant-choices .assistant-choice { min-height: 128px; }
.assistant-question-label { display: block; margin: 28px 0 12px; font-size: 14px; font-weight: 550; color: #4e5d74; }
.assistant-prompt { display: flex; align-items: flex-end; gap: 16px; padding: 16px; border: 1px solid #dfe6f3; border-radius: 12px; background: #f8faff; }
.assistant-prompt:focus-within { border-color: #839cd8; box-shadow: 0 0 0 3px rgba(89,117,188,.1); background: #fff; }
.assistant-prompt textarea { flex: 1; min-width: 0; min-height: 92px; width: auto; margin: 0; padding: 4px; resize: vertical; border: 0; border-radius: 0; background: transparent; font-size: 15px; line-height: 1.8; }
.assistant-prompt textarea:focus { border: 0; outline: none; background: transparent; }
.assistant-prompt textarea::placeholder { font-size: 14px; color: #8a97aa; }
.assistant-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 18px; flex-shrink: 0; border: 0; border-radius: 10px; background: #526fbd; color: #fff; font-size: 14px; }
.assistant-send:hover { background: #425fae; }
.assistant-prompt-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: 11px; color: #8491a4; line-height: 1.6; }
.ai-thinking-dots { display: flex; align-items: center; gap: 8px; height: 24px; margin-bottom: 16px; }
.ai-thinking-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #8393cc; animation: ai-dot 1.2s ease-in-out infinite; }
.ai-thinking-dots i:nth-child(2) { animation-delay: .15s; }
.ai-thinking-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%,70%,100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-5px); opacity: 1; } }
@media(max-width:760px) {
  .assistant-choice-grid { grid-template-columns: 1fr; gap: 16px; }
  .assistant-choices .assistant-choice { min-height: 0; }
  .assistant-prompt { gap: 8px; padding: 12px; }
  .assistant-prompt textarea { font-size: 16px; }
  .assistant-send { min-height: 44px; padding: 10px 12px; }
  .assistant-send span { display: none; }
}
@media(prefers-reduced-motion:reduce) { .ai-thinking-dots i { animation: none; opacity: .75; } }

/* Source: customers.css */
/* Customer assets P0 only. Scope prevents changing overview, AI, and legacy tables. */
.customer-assets { --customer-idle: #c3cad4; --customer-active: #5e82c7; --customer-done: #449477; --customer-error: #ce606b; }
.customer-filters { padding: 24px; background: #fff; border: 1px solid #e8edf4; border-radius: 16px; box-shadow: var(--card-shadow); }
.customer-filter-primary { display: grid; grid-template-columns: minmax(240px,2fr) repeat(3,minmax(120px,1fr)) auto; gap: 16px; align-items: end; }
.customer-assets label { margin: 0; color: #5d6b7e; font-size: 12px; font-weight: 500; }
.customer-assets input, .customer-assets select { min-height: 38px; height: 38px; margin-top: 8px; padding: 8px 12px; font-size: 13px; background: #f6f8fb; border: 1px solid transparent; border-radius: 8px; }
.customer-assets input:focus, .customer-assets select:focus { outline: 2px solid #a4b9e6; outline-offset: 1px; }
.customer-search>span { display: flex; gap: 8px; align-items: center; border: 1px solid #e5e7eb; border-radius: 8px; margin-top: 8px; padding-left: 12px; background: #fff; }
.customer-assets .customer-search input { margin: 0; width: 100%; min-width: 0; background: #fff; }
.customer-search:focus-within { outline: 2px solid #a4b9e6; }
.customer-assets .customer-search input:focus { outline: none; }
.customer-advanced-toggle { height: 38px; }
.customer-filter-advanced { display: grid; grid-template-columns: minmax(160px,1fr) repeat(2,minmax(180px,1fr)) minmax(160px,1fr); gap: 16px; align-items: end; padding-top: 20px; }
.customer-filter-advanced[hidden] { display: none; }
.customer-filter-advanced p { font-size: 12px; line-height: 1.6; color: #788598; margin: 0 0 8px; }
.customer-filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; border-top: 1px solid #eff2f6; padding-top: 16px; }
.customer-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #788598; }
.customer-filter-chips button { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; overflow-wrap: anywhere; border: 1px solid #e1e9f6; background: #f1f5fc; color: #536d9d; padding: 5px 10px; border-radius: 6px; font-size: 12px; }
.customer-filter-summary>.text-button { white-space: nowrap; }
.customer-rules { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: #637389; font-size: 12px; margin: 20px 0; }
.customer-rules strong { color: #45546a; font-weight: 600; }
.customer-results { min-width: 0; }
.customer-result-heading { display: flex; align-items: end; gap: 12px; margin-bottom: 12px; }
.customer-result-heading>div { flex: 1; }
.customer-result-heading h2 { font-size: 17px; color: #334155; font-weight: 600; }
.customer-result-heading h2>span { margin-left: 12px; font-weight: 400; font-size: 12px; color: #728096; }
.customer-result-heading p { font-size: 12px; color: #778599; margin: 8px 0 0; line-height: 1.7; }
.customer-assets .customer-result-heading select { width: 140px; }
.customer-assets .customer-table-scroll { padding: 0 0 12px; border-radius: 12px; max-height: none; overflow-x: hidden; overflow-y: visible; overscroll-behavior: auto; scrollbar-gutter: auto; }
.customer-assets .customer-table { min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0 8px; margin: 0; font-size: 13px; }
.customer-assets .customer-table th { position: sticky; top: 0; z-index: 3; height: 48px; padding: 12px 16px; font-size: 12px; background: #f4f6f8; border: 0; color: #758297; box-shadow: 0 1px 0 #e7ebf1; }
.customer-table th>button { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: transparent; border: 0; color: inherit; text-align: left; font-size: 12px; padding: 0 8px 0 0; }
.customer-table th[aria-sort=ascending]>button, .customer-table th[aria-sort=descending]>button { color: #4265a4; font-weight: 600; }
.customer-column-resize { position: absolute; width: 12px; top: 8px; bottom: 8px; right: -3px; z-index: 5; cursor: col-resize; touch-action: none; border-right: 2px solid transparent; }
.customer-column-resize:hover, .customer-column-resize:focus-visible { border-right-color: #8ba7da; outline: none; }
.customer-resizing, .customer-resizing * { cursor: col-resize!important; user-select: none!important; }
.customer-assets .customer-table td { padding: 16px; height: 96px; border: 0; background: #fff; vertical-align: middle; line-height: 1.65; overflow: hidden; }
.customer-assets .customer-table td:first-child { border-radius: 12px 0 0 12px; padding-left: 20px; }
.customer-assets .customer-table td:last-child { border-radius: 0 12px 12px 0; padding-right: 16px; }
/* Align nearby rows below the 48px sticky heading plus its 6px row gaps. */
.customer-assets .customer-table tbody tr { box-shadow: 0 3px 12px rgba(149,157,165,.06); }
.customer-assets .customer-table td small { display: block; color: #7d8999; margin-top: 4px; font-size: 11px; }
.customer-assets .customer-table tbody tr:hover td { background: #f9fbff; }
.customer-truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.customer-identity { display: flex; gap: 12px; align-items: center; min-width: 0; min-height: 44px; }
.customer-identity>.avatar { flex: 0 0 36px; width: 36px; height: 36px; font-size: 14px; }
.customer-identity>div { min-width: 0; }
.customer-name-line { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
.customer-name { max-width: 100%; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; padding: 0; background: transparent; color: #334155; font-weight: 600; font-size: 13px; }
.customer-phone { color: #7c8799; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.customer-progress-button { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 0; color: #52667f; }
.customer-progress-button b { font-size: 13px; font-weight: 500; }
.customer-progress-track { display: flex; gap: 4px; margin-top: 8px; width: 104px; }
.customer-progress-track i { height: 5px; flex: 1; border-radius: 4px; background: var(--customer-idle); }
.customer-progress-track i.active { background: var(--customer-active); }.customer-progress-track i.done { background: var(--customer-done); }.customer-progress-track i.error { background: var(--customer-error); }
.customer-progress-button small { display: flex!important; align-items: center; }
.customer-assets .customer-table .customer-overdue { color: #b75260; }
.customer-contact-state { background: #edf4fc; color: #4a6f9e; padding: 4px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.customer-contact-state.paused { background: #fff0f1; color: #b45762; }
.customer-row-actions, .customer-extra-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.customer-action { min-height: 36px; line-height: 20px; border: 0; border-radius: 6px; background: transparent; padding: 8px 6px; font-size: 12px; color: #526fa8; text-decoration: none; }
.customer-action:hover:not(:disabled) { background: #edf2ff; text-decoration: none; }.customer-action:disabled { color: #939cac; text-decoration: none; cursor: not-allowed; }
.customer-assets .customer-more { display: none; }
.customer-pagination { display: flex; gap: 16px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: #6d7a8d; }
.customer-pagination>span { margin-right: auto; }.customer-pagination label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.customer-assets .customer-pagination select, .customer-assets .customer-pagination input { margin: 0; width: 84px; background: #fff; }.customer-assets .customer-pagination input { width: 56px; }
.customer-assets .customer-empty { padding: 40px 24px!important; text-align: left; }.customer-empty h3 { font-size: 16px; }.customer-empty p { margin: 12px 0; color: #788598; }
.customer-field-notes { font-size: 12px; color: #7e8a9b; margin-top: 20px; line-height: 1.7; }
.customer-progress-detail>p { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; }.customer-progress-detail>p>span:last-child { margin-left: auto; }
.customer-state-dot { width: 8px; height: 8px; border-radius: 50%; background: #c3cad4; }.customer-state-dot.active { background: #5e82c7; }.customer-state-dot.done { background: #449477; }.customer-state-dot.error { background: #ce606b; }
@media(max-width:1200px) { .customer-filter-primary { grid-template-columns: minmax(220px,2fr) repeat(2,minmax(140px,1fr)); }.customer-filter-primary>.customer-search { grid-column: span 2; }.customer-filter-advanced { grid-template-columns: repeat(3,minmax(0,1fr)); }.customer-filter-advanced p { grid-column: 1/-1; } }
@media(max-width:1100px) { .customer-row-actions { gap: 12px; } }
@media(max-width:760px) { .customer-filters { padding: 16px; }.customer-filter-primary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.customer-filter-primary>.customer-search { grid-column: 1/-1; }.customer-filter-advanced { grid-template-columns: 1fr; }.customer-result-heading { flex-wrap: wrap; }.customer-result-heading>div { flex: 1 0 100%; }.customer-assets .customer-table-scroll { max-height: none; }.customer-rules { display: block; line-height: 1.8; }.customer-rules svg { vertical-align: middle; }.customer-pagination { gap: 12px; justify-content: flex-start; }.customer-pagination>span { flex-basis: 100%; }.customer-assets .customer-pagination input,.customer-assets .customer-pagination select { min-height: 44px; }.customer-assets .customer-action { min-height: 44px; }.customer-assets .customer-table td { height: 96px; } }

/* P1 additions: retain P0 data behavior and isolate this table from legacy tables. */
.customer-assets { container: customer-assets / inline-size; width: 100%; min-width: 0; max-width: 100%; }
.main-shell:has(.customer-assets) .page-heading { margin: 24px 0 20px; }
.customer-overview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.customer-overview article { padding: 16px 20px; background: #fff; border: 1px solid #e8edf4; border-radius: 12px; box-shadow: 0 4px 16px rgba(149,157,165,.06); min-width: 0; }
.customer-overview article>span { display: block; font-size: 12px; color: #6c7a8c; }
.customer-overview strong { display: block; font-size: 26px; font-weight: 600; line-height: 1.35; margin: 8px 0; color: #334155; font-variant-numeric: tabular-nums; }
.customer-overview small { display: block; font-size: 11px; color: #8792a2; line-height: 1.6; }
.customer-main-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.customer-main-actions>div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.customer-main-actions>label { display: flex; align-items: center; gap: 8px; }
.customer-assets .customer-main-actions select { margin: 0; width: 160px; background: #fff; }
.customer-overview-scope { font-size: 11px; color: #8792a2; line-height: 1.6; margin: 12px 0 20px; }
.customer-view-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.customer-view-bar label { display: flex; align-items: center; gap: 8px; }
.customer-assets .customer-view-bar select { width: 220px; margin: 0; background: #fff; }
.customer-view-bar small { font-size: 11px; color: #8792a2; margin-left: auto; }
.customer-policy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 16px 0; color: #66758a; font-size: 12px; }
.customer-help { margin-left: auto; }
.customer-help>summary { cursor: pointer; color: #5973a3; font-size: 12px; }
.customer-help[open] { width: 100%; }
.customer-help>div { margin-top: 12px; background: #fff; border: 1px solid #e8edf4; border-radius: 8px; padding: 16px; line-height: 1.8; }
.customer-help p+p { margin-top: 8px; }
.customer-result-heading { align-items: center; }
.customer-bulk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; padding: 12px 16px; border: 1px solid #e6edf7; border-radius: 8px; background: #f0f4fa; font-size: 12px; color: #60728d; }
.customer-bulk-bar[hidden] { display: none; }
.customer-bulk-bar>span { margin-right: auto; }
.customer-assets .customer-bulk-bar>.button:not(:disabled) { background: #fff; border-color: #d3dff4; color: #4263bc; }
.customer-assets .customer-bulk-bar>.button { min-height: 32px; height: 32px; padding: 0 12px; font-size: 12px; }
.customer-assets input.customer-selection { width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: #5976b6; cursor: pointer; flex: 0 0 16px; }
.customer-assets .customer-table-scroll { position: relative; isolation: isolate; width: 100%; max-width: 100%; min-width: 0; border-radius: 12px; }
.customer-assets .customer-table { width: 100%; max-width: 100%; border-spacing: 0 6px; }
.customer-assets .customer-table td { height: 80px; padding: 12px 16px; }
.customer-assets .customer-table th { background: #f4f6f8; z-index: 4; }
.customer-assets .customer-table tbody tr:hover td { background: #f9fbff; }
.customer-assets .customer-table tr.customer-row-selected td { background: #f1f5fc; }
.customer-assets .customer-table time { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: left; }
.customer-row-actions { display: block; width: 100%; min-width: 0; }
.customer-action-content, .customer-extra-actions { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.customer-pagination[hidden] { display: none; }
.customer-error { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px; margin: 16px 0; color: #98525f; background: #fff5f6; border: 1px solid #f1dfe3; border-radius: 12px; font-size: 13px; }
.customer-error small { display: block; margin-top: 4px; font-size: 12px; }
.customer-assets .customer-loading { padding: 32px 24px; text-align: left; background: #fff; }
.customer-loading p { font-size: 13px; color: #708098; margin: 12px 0; }
.customer-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #e3e9f3; border-top-color: #7490c3; border-radius: 50%; animation: customer-spin 1s linear infinite; }
.customer-skeleton { width: 80%; height: 16px; background: #eef2f7; border-radius: 4px; margin-top: 16px; }
.customer-skeleton:last-child { width: 55%; }
@keyframes customer-spin { to { transform: rotate(360deg); } }
.customer-mobile-cards { display: none; }
.customer-mobile-card { min-width: 0; padding: 16px; background: #fff; border: 1px solid #e8edf4; border-radius: 12px; box-shadow: 0 4px 16px rgba(149,157,165,.06); }
.customer-card-heading { display: flex; align-items: center; gap: 12px; }
.customer-card-heading .customer-identity { flex: 1; min-width: 0; }
.customer-mobile-card .customer-identity>div { flex: 1; }
.customer-mobile-card .customer-identity small { display: block; color: #7c899b; font-size: 12px; margin-top: 4px; white-space: normal; overflow-wrap: anywhere; }
.customer-mobile-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 16px 0; }
.customer-mobile-card dl>div { min-width: 0; }
.customer-mobile-card dt { font-size: 11px; color: #8290a3; margin-bottom: 4px; }
.customer-mobile-card dd { font-size: 13px; color: #43536c; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.customer-mobile-card dd small { display: block; font-size: 11px; color: #8792a2; margin-top: 4px; }
.customer-mobile-card time { font-variant-numeric: tabular-nums; }
.customer-card-extra { border-top: 1px solid #edf1f7; padding-top: 12px; }
.customer-card-extra summary { font-size: 12px; color: #738298; cursor: pointer; }
.customer-card-actions { border-top: 1px solid #edf1f7; margin-top: 12px; padding-top: 8px; }
.customer-card-actions .customer-action-content { justify-content: space-between; }
.customer-phone-result { margin-top: 20px; border-top: 1px solid #e8edf4; padding-top: 16px; font-size: 13px; }
.customer-phone-result>p { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.customer-batch-preview ul { list-style: none; max-height: 260px; overflow: auto; padding: 0; margin: 16px 0; }
.customer-batch-preview li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf1f7; font-size: 13px; }
.customer-batch-preview li small { color: #8190a3; font-size: 12px; }
@container customer-assets (max-width: 1000px) {
 .customer-overview { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }

 .customer-view-bar small { width: 100%; margin-left: 0; }
}
@container customer-assets (max-width: 680px) {
 .customer-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .customer-overview article { padding: 12px 16px; }
 .customer-overview strong { font-size: 24px; }
 .customer-mobile-cards { grid-template-columns: minmax(0,1fr); }
 .customer-filter-primary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .customer-filter-primary>.customer-search { grid-column: 1/-1; }
 .customer-filter-advanced { grid-template-columns: minmax(0,1fr); }
 .customer-filter-summary { align-items: flex-start; }
 .customer-bulk-bar { gap: 8px; }
 .customer-bulk-bar>span { width: 100%; }
 .customer-help { margin-left: 0; }
}
/* Media fallback for browsers without container-query support. */
@media(max-width:1100px) { .customer-overview { grid-template-columns: repeat(3,minmax(0,1fr)); }.customer-view-bar small { margin-left: 0; } }
@media(max-width:640px) { .customer-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.customer-overview article { padding: 12px; }.customer-main-actions { align-items: stretch; }.customer-assets .customer-main-actions>label { width: 100%; }.customer-main-actions>div { gap: 8px; }.customer-view-bar { gap: 8px; }.customer-assets .customer-view-bar select { width: 180px; }.customer-bulk-bar { gap: 8px; }.customer-bulk-bar>span { width: 100%; }.customer-assets .customer-bulk-bar>.button:not(:disabled) { background: #fff; border-color: #d3dff4; color: #4263bc; }
.customer-assets .customer-bulk-bar>.button { min-height: 40px; height: 40px; }.customer-mobile-card .customer-action { min-height: 40px; } }
@media(prefers-reduced-motion:reduce) { .customer-spinner { animation: none; } }

/* Store identity uses the same brand palette as the overview and kanban. */
.customer-shop-tag.shop-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 500; line-height: 1.6; white-space: nowrap; opacity: 1; }

/* Customer density refinement: people, urgency, and scanning alignment. */
.customer-owner-group { display: flex; align-items: center; gap: 6px; min-width: 0; text-align: left; }
.customer-owner-preview { display: grid; gap: 4px; flex: 1; min-width: 0; }
.customer-owner-person { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: #43536c; }
.customer-owner-avatar.shop-chip { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; flex: 0 0 22px; border-radius: 50%; font-size: 10px; font-weight: 600; }
.customer-owner-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-owner-more { flex: 0 0 auto; min-width: 30px; min-height: 30px; padding: 3px 5px; border: 1px solid #dce5f2; background: #f1f5fb; color: #526fa8; font-size: 11px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.customer-owner-more:hover, .customer-owner-more:focus-visible { background: #e7eef9; outline-color: #8099c6; }
.customer-owner-popover { display: none; position: fixed; inset: auto; margin: 0; width: 280px; max-width: calc(100vw - 24px); max-height: min(340px,calc(100dvh - 24px)); padding: 16px; border: 1px solid #e2e8f1; border-radius: 12px; background: #fff; color: #43536c; box-shadow: 0 10px 36px #24365026; overflow: auto; z-index: 90; text-align: left; font-size: 12px; line-height: 1.6; }
.customer-owner-popover:popover-open { display: block; }
.customer-owner-popover[data-owner-open=true] { display: block; }
.customer-owner-popover>b { display: block; margin-bottom: 12px; font-size: 12px; color: #334155; }
.customer-owner-popover>.customer-owner-person { margin-top: 8px; }
.customer-owner-popover .customer-shop-tag { margin-left: auto; }
.customer-assets .customer-table small.customer-overdue-tag, .customer-mobile-card small.customer-overdue-tag { display: inline-block; padding: 2px 7px; border-radius: 5px; background: #fff0f1; color: #b83d50; font-weight: 600; font-size: 11px; }
.customer-assets .customer-table .customer-overdue, .customer-mobile-card .customer-overdue { color: #b83d50; font-weight: 600; }
.customer-assets .customer-table [data-customer-cell=identity], .customer-assets .customer-table [data-customer-cell=stage], .customer-assets .customer-table [data-customer-cell=owners] { text-align: left; }
.customer-assets .customer-table [data-customer-cell=last], .customer-assets .customer-table [data-customer-cell=next], .customer-assets .customer-table [data-customer-cell=last] time, .customer-assets .customer-table [data-customer-cell=next] time { text-align: right; font-variant-numeric: tabular-nums; }
.customer-assets .customer-table [data-customer-cell=last]>button, .customer-assets .customer-table [data-customer-cell=next]>button { justify-content: flex-end; text-align: right; }
.customer-assets .customer-table [data-customer-cell=progress] { text-align: center; font-variant-numeric: tabular-nums; }
.customer-assets .customer-table [data-customer-cell=progress]>button { text-align: center; }
.customer-assets .customer-table [data-customer-cell=progress] .customer-progress-track { margin-left: auto; margin-right: auto; }
.customer-intent-more { margin-top: 6px; font-size: 11px; color: #7d8999; }
.customer-intent-more summary { cursor: pointer; }
.customer-intent-more>small { white-space: normal; }
@media(max-width:1100px) { .customer-owner-more { min-height: 36px; min-width: 36px; } }

/* Only completed segments reveal their store color; detail dots identify stores. */
.customer-progress-track i[data-shop] { background: #e2e5ea; }
.customer-progress-track i.done[data-shop="大金空调"], .customer-state-dot[data-shop="大金空调"] { background: #5e82c7; }
.customer-progress-track i.done[data-shop="皮阿诺"], .customer-state-dot[data-shop="皮阿诺"] { background: #449477; }
.customer-progress-track i.done[data-shop="老板电器"], .customer-state-dot[data-shop="老板电器"] { background: #8d6bb7; }

/* The full owner list is a body-level, on-demand popover, never cell content. */
.customer-owner-popover .customer-owner-person { flex-wrap: wrap; }
.customer-owner-popover .customer-owner-name { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.customer-results>.customer-pagination { position: static; box-sizing: border-box; margin: 16px 0 0; padding: 16px 0; border-top: 1px solid #e8edf4; }

/* Source: overview.css */
/* Overview-only refinements. Other workspaces keep their current layout. */
.overview-page { min-width: 0; width: 100%; }
.overview-page .metrics { margin-bottom: 28px; }
.overview-page .metrics .metric { min-width: 0; max-width: 100%; padding: 24px; }
.overview-page .metrics .metric>strong, .overview-page .metrics .metric>strong.amount {
 display: block; width: 100%; max-width: 100%; min-width: 0; margin: 20px 0 14px;
 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal;
 font-size: clamp(26px,2.3vw,32px); line-height: 1.25; font-variant-numeric: tabular-nums;
}
.overview-page .metrics .metric>p { overflow-wrap: anywhere; line-height: 1.75; }
.overview-page .dashboard-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 24px; }
.overview-page .dashboard-actions>div { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.overview-page .overview-grid { grid-template-columns: minmax(0,1.65fr) minmax(300px,1fr); align-items: start; gap: 24px; margin-bottom: 40px; }
.overview-page .overview-grid>.panel { min-width: 0; }
.overview-page .agenda .panel-heading { padding: 0 0 20px; min-width: 0; gap: 16px; }
.overview-page .panel-heading>.text-button { flex-shrink: 0; white-space: nowrap; }
.overview-page .followup-list { display: grid; gap: 16px; }
.overview-page .followup-list>.task-row {
 display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center;
 column-gap: 20px; row-gap: 16px; padding: 28px 24px; min-width: 0; border: 0; line-height: 1.75;
}
.overview-page .task-row .date-box { min-width: 0; width: 52px; padding: 8px 4px; text-align: center; font-variant-numeric: tabular-nums; }
.overview-page .task-info { min-width: 0; }
.overview-page .task-info>.text-button { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; line-height: 1.65; }
.overview-page .task-info>.text-button b { font-size: 14px; }
.overview-page .task-info>.text-button .muted-text { font-size: 12px; }
.overview-page .task-info>p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin: 6px 0; font-size: 13px; line-height: 1.75; }
.overview-page .task-info>small { display: block; min-width: 0; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.overview-page .task-end { display: flex; flex-direction: column; align-items: flex-end; justify-self: end; width: auto; min-width: 112px; margin-left: 4px; gap: 10px; text-align: right; }
.overview-page .task-end .button { min-width: 112px; white-space: nowrap; }
.overview-page .task-end .badge { margin: 0; }
.overview-page .agenda .panel-foot { padding: 16px 0 0; font-size: 11px; line-height: 1.7; }
/* A single panel owns all three brand rows at every viewport width. */
.overview-page .brand-panel { display: block; background: #fff; border: 1px solid #e5e8ed; border-radius: 12px; box-shadow: 0 2px 8px #0f172a05; overflow: hidden; }
.overview-page .brand-panel .panel-heading { padding: 16px; border-bottom: 1px solid #edf0f3; }
.overview-page .brand-panel .brand-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto) 16px; align-items: center; gap: 16px; width: 100%; min-width: 0; padding: 12px 16px; margin: 0; height: auto; min-height: 0; border: 0; border-bottom: 1px solid #edf0f3; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.overview-page .brand-panel .brand-row:hover { background: #f8fafc; }
.overview-page .brand-panel .brand-identity { min-width: 0; }
.overview-page .brand-panel .brand-word { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: .5px; color: #334155; }
.overview-page .brand-panel .brand-alias { display: block; font-size: 12px; line-height: 1.4; color: #8b95a3; margin-top: 3px; letter-spacing: 0; }
.overview-page .brand-panel .brand-results { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 3px; margin: 0; min-width: 0; text-align: right; color: #7d899a; font-size: 12px; grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums; }
.overview-page .brand-panel .brand-opportunities { display: flex; justify-content: flex-end; align-items: baseline; gap: 4px; margin: 0; white-space: nowrap; }
.overview-page .brand-panel .brand-opportunities>b { font-size: 24px; font-weight: 600; line-height: 1.2; color: #334155; }
.overview-page .brand-panel .brand-wins { font-size: 12px; line-height: 1.4; white-space: nowrap; }
.overview-page .brand-panel .brand-wins>b { font-size: inherit; font-weight: 500; }
.overview-page .brand-panel .brand-row>svg { grid-column: 3; grid-row: 1; color: #9aa4b2; }
.overview-page .brand-panel>.quiet-note { margin: 0; padding: 12px 16px; font-size: 12px; color: #929ba7; line-height: 1.6; }
.overview-page>.panel { margin-bottom: 40px; }
.overview-page .table-scroll { max-width: 100%; min-width: 0; overflow-x: hidden; padding: 0 0 12px; }
.overview-page .overview-preview-table { table-layout: fixed; width: 100%; min-width: 0; }
.overview-page .overview-preview-table th, .overview-page .overview-preview-table td { text-align: left; }
.overview-page .overview-preview-table th.overview-progress-column, .overview-page .overview-preview-table td.overview-progress-column { min-width: 0; width: 25%; }
.overview-page .overview-progress-column .shop-progress { display: flex; gap: 6px; flex-wrap: wrap; white-space: normal; min-width: 0; }
.overview-page .overview-progress-column .shop-chip { flex: 0 0 auto; min-width: 0; padding: 4px 8px; }
.overview-page .overview-preview-table .number, .overview-page .overview-preview-table .overview-number-column { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.overview-page .overview-preview-table .customer-link { display: flex; min-width: 0; width: 100%; text-align: left; }
.overview-page .overview-preview-table .customer-link>.avatar { flex-shrink: 0; }
.overview-page .overview-preview-table .customer-link>span:last-child { flex: 1; min-width: 0; }
.overview-page .overview-preview-table .customer-link b, .overview-page .overview-preview-table .customer-link small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Keep the four tasks reachable; shorten header whitespace, not task content. */
@media(min-width:1100px) and (max-height:850px) {
 .main-shell:has(.overview-page) .topbar { min-height: 56px; padding-top: 12px; padding-bottom: 12px; }
 .main-shell:has(.overview-page) main { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 24px; padding-top: 20px; }
 .main-shell:has(.overview-page) main>.mode-banner, .main-shell:has(.overview-page) main>.inline-warning, .main-shell:has(.overview-page) main>.sync-warning, .main-shell:has(.overview-page) #page-content, .main-shell:has(.overview-page) main>.page-footer { grid-column: 1/-1; min-width: 0; }
 .main-shell:has(.overview-page) .mode-banner { margin-bottom: 12px; padding: 8px 12px; }
 .main-shell:has(.overview-page) .page-heading { grid-column: 1; margin: 12px 0 20px; min-width: 0; gap: 16px; }
 .main-shell:has(.overview-page) .page-heading h1 { margin: 4px 0 6px; }
 .main-shell:has(.overview-page) .page-heading p { font-size: 13px; }
 .main-shell:has(.overview-page) .toolbar { grid-column: 2; align-self: center; flex-direction: column; align-items: flex-end; gap: 8px; margin: 12px 0 20px; }
 .main-shell:has(.overview-page) .toolbar .search { max-width: 100%; }
 .overview-page .overview-note { margin: 0 0 12px; }
 .overview-page .metrics .metric { padding: 20px; }
 .overview-page .metrics .metric>strong, .overview-page .metrics .metric>strong.amount { font-size: 28px; margin: 16px 0 12px; }
 .overview-page .dashboard-actions { margin-bottom: 20px; }
}
@media(max-width:1099px) {
 .overview-page .overview-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
 .overview-page .metrics .metric { padding: 20px; }
}
@media(max-width:640px) {
 .overview-page .metrics, .overview-page .overview-grid { gap: 16px; }
 .overview-page .metrics .metric { padding: 20px 16px; }
 .overview-page .metrics .metric>strong, .overview-page .metrics .metric>strong.amount { font-size: 26px; margin: 16px 0 12px; }
 .overview-page .followup-list>.task-row { grid-template-columns: 48px minmax(0,1fr); gap: 16px; padding: 24px 20px; }
 .overview-page .task-row .date-box { width: 48px; }
 .overview-page .task-end { grid-column: 2; width: 100%; min-width: 0; margin-left: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
 .overview-page .task-end .button { min-height: 44px; }
 .overview-page .dashboard-actions { align-items: flex-start; }
 .overview-page .dashboard-actions>div { gap: 12px 16px; }
}

/* Source: opportunities.css */
/* Scoped to the actual opportunities route; business analytics stays intact. */
.opportunity-board-page { --board-column-gap: 16px; width: 100%; container: opportunity-board / inline-size; min-width: 0; max-width: 100%; }
.opportunity-board-page .board-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 12px; }
.opportunity-board-page .board-toolbar>div { display: grid; gap: 8px; min-width: 0; }
.opportunity-board-page .board-toolbar b { font-size: 15px; font-weight: 600; }
.opportunity-board-page .board-toolbar span { font-size: 12px; color: #64748b; }
.opportunity-board-page .board-toolbar label { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #64748b; }
.opportunity-board-page .board-toolbar select { min-height: 36px; width: 176px; border-radius: 8px; }
.opportunity-board-page .board-hint, .opportunity-board-page .board-help { margin: 0 0 20px; color: #64748b; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.opportunity-board-page .board-help { margin-top: 16px; }
.opportunity-board-page .board-clear { margin-bottom: 16px; }
.opportunity-board-page .opportunity-board-scroll { width: 100%; max-width: 100%; min-width: 0; height: auto; max-height: none; overflow-x: hidden; }
/* Each heading belongs to its cards, so wrapping cannot misalign stages. */
.opportunity-board-page .opportunity-board-track { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--board-column-gap); width: 100%; min-width: 0; }
.opportunity-board-page .opportunity-column { box-sizing: border-box; flex: 1 1 0; min-width: 0; max-width: 100%; }
.opportunity-board-page .opportunity-column { min-height: 0; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 12px; }
.opportunity-board-page .opportunity-column-head { display: block; padding: 12px; min-width: 0; position: sticky; top: 0; z-index: 1; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 10px; }
.opportunity-board-page .opportunity-column-head h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.5; color: #334155; text-align: left; }
.opportunity-board-page .opportunity-column-head h2>span { padding: 1px 8px; flex-shrink: 0; border-radius: 999px; background: #e4e9f0; color: #64748b; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.opportunity-board-page .opportunity-column-body { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 12px; }
.opportunity-board-page .opportunity-card { min-width: 0; width: 100%; box-sizing: border-box; max-width: 100%; background: #fff; border: 1px solid #e8ecf2; border-radius: 12px; box-shadow: 0 2px 6px rgba(15,23,42,.04); }
.opportunity-board-page .opportunity-card:hover, .opportunity-board-page .opportunity-card:focus-within { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(15,23,42,.07); }
.opportunity-board-page .opportunity-card-main { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; min-width: 0; padding: 20px 16px; box-sizing: border-box; border: 0; border-radius: 12px; background: transparent; text-align: left; color: #334155; }
.opportunity-board-page .deal-store { align-self: flex-start; max-width: 100%; margin: 0 0 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.opportunity-board-page .opportunity-card h3 { min-width: 0; width: 100%; margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; line-height: 1.5; color: #1f2937; text-align: left; }
.opportunity-board-page .opportunity-card-main>p { min-width: 0; width: 100%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.75; color: #64748b; text-align: left; }
.opportunity-board-page .opportunity-card-value { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; margin-top: 24px; font-size: 11px; color: #64748b; }
.opportunity-board-page .opportunity-card-value>span { flex-shrink: 0; }
.opportunity-board-page .opportunity-card-value>strong { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: #334155; text-align: right; font-variant-numeric: tabular-nums; }
.opportunity-board-page .opportunity-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 12px; opacity: 0; pointer-events: none; }
.opportunity-board-page .opportunity-card:hover .opportunity-card-actions, .opportunity-board-page .opportunity-card:focus-within .opportunity-card-actions { opacity: 1; pointer-events: auto; }
.opportunity-board-page .opportunity-card-actions .text-button { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0; font-size: 11px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.opportunity-board-page button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.opportunity-board-page .opportunity-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 24px 8px; color: #64748b; overflow-wrap: anywhere; }
.opportunity-board-page .opportunity-empty>svg { color: #94a3b8; }
.opportunity-board-page .opportunity-empty h3 { margin: 0; font-size: 13px; color: #475569; line-height: 1.6; font-weight: 500; }
.opportunity-board-page .opportunity-empty p { margin: 0; font-size: 12px; line-height: 1.8; }
.opportunity-board-page .opportunity-empty .text-button { margin-top: 4px; min-height: 36px; font-size: 12px; }
@media(hover:none), (pointer:coarse) {
 .opportunity-board-page .opportunity-card-actions { opacity: 1; pointer-events: auto; }
 .opportunity-board-page .opportunity-card-actions .text-button { min-height: 44px; }
}
@media(max-width:640px) {
 .opportunity-board-page { --board-column-gap: 16px; }
 .opportunity-board-page .board-toolbar { align-items: flex-start; }
 .opportunity-board-page .board-toolbar label { width: 100%; justify-content: space-between; }
 .opportunity-board-page .board-toolbar select { min-height: 44px; }
 .opportunity-board-page .opportunity-card-actions { opacity: 1; pointer-events: auto; }
 .opportunity-board-page .opportunity-card-actions .text-button { min-height: 44px; }
}

/* Wrap whole stages together, including their own heading. Final rows fill out. */
@container opportunity-board (max-width: 1100px) {
 .opportunity-board-page .opportunity-column { flex-basis: calc(33.333333% - 10.666667px); }
}
@container opportunity-board (max-width: 760px) {
 .opportunity-board-page .opportunity-column { flex-basis: calc(50% - 8px); }
}
@container opportunity-board (max-width: 480px) {
 .opportunity-board-page .opportunity-column { flex-basis: 100%; }
}
@supports not (container-type: inline-size) {
 @media(max-width:1400px) { .opportunity-board-page .opportunity-column { flex-basis: calc(33.333333% - 10.666667px); } }
 @media(max-width:1000px) { .opportunity-board-page .opportunity-column { flex-basis: calc(50% - 8px); } }
 @media(max-width:640px) { .opportunity-board-page .opportunity-column { flex-basis: 100%; } }
}
/* Clip is not a scroll container, so stage headings can follow document scroll. */
@supports (overflow: clip) {
 .opportunity-board-page .opportunity-board-scroll { overflow: clip; }
}

/* Source: pagination.css */
.list-pagination { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 24px 0 32px; min-width: 0; width: 100%; padding: 16px 0; font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.list-pagination>span { margin-right: auto; white-space: nowrap; }
.list-pagination label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.list-pagination input, .list-pagination select { min-height: 36px; height: 36px; margin: 0; padding: 6px 8px; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; color: #334155; font-size: 12px; font-variant-numeric: tabular-nums; }
.list-pagination input { width: 60px; text-align: center; }
.list-pagination select { width: 88px; }
.list-pagination .button { min-height: 36px; padding: 6px 12px; white-space: nowrap; }
.task-workspace { min-width: 0; }
.task-workspace>.panel { display: grid; gap: 20px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.task-workspace .task-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 20px 24px; padding: 28px 24px; min-width: 0; border: 0; background: #fff; border-radius: 16px; box-shadow: var(--card-shadow); }
.task-workspace .task-info { min-width: 0; line-height: 1.8; }
.task-workspace .task-info>.text-button { display: block; width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.task-workspace .task-info p { margin: 8px 0; line-height: 1.8; overflow-wrap: anywhere; }
.task-workspace .task-info small { display: block; overflow-wrap: anywhere; line-height: 1.8; }
.task-workspace .task-end { display: flex; flex-direction: column; align-self: center; align-items: flex-end; justify-content: center; gap: 10px; min-width: 112px; }
.task-workspace .task-end .button { min-width: 112px; white-space: nowrap; }
.task-workspace .date-box { width: 52px; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
.table-scroll { max-width: 100%; min-width: 0; }
.today-workspace .simple-task { padding: 28px 24px; align-items: center; gap: 20px; }
.today-workspace .task-person, .today-workspace .task-purpose { min-width: 0; overflow-wrap: anywhere; }
.today-workspace .person-name { max-width: 100%; overflow-wrap: anywhere; }
.today-workspace .simple-task>.button { align-self: center; }
@media(max-width:640px) {
 .list-pagination { justify-content: flex-start; gap: 12px; }
 .list-pagination>span { flex-basis: 100%; }
 .list-pagination .button, .list-pagination input, .list-pagination select { min-height: 44px; height: 44px; }
 .task-workspace .task-row { grid-template-columns: 44px minmax(0,1fr); gap: 16px; padding: 24px 20px; }
 .task-workspace .date-box { width: 44px; }
 .task-workspace .task-end { grid-column: 1/-1; flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; width: 100%; gap: 12px; }
 .task-workspace .task-end .badge { margin: 0; }
 .task-workspace .task-end .button { min-height: 44px; }
}

/* Source: arena.css */
/* Standalone mechanism comparison; the original content stays visible. */
.arena-page { display: grid; gap: 24px; min-width: 0; max-width: 100%; }
.arena-page .panel { margin: 0; }
.arena-page .decision-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin: 0; padding: 28px; border: 1px solid #dde5f1; border-radius: 16px; background: #edf2ff; color: #475569; }
.arena-page .decision-hero>div { flex: 1 1 280px; min-width: 0; }
.arena-page .decision-hero h2 { margin: 12px 0; color: #253655; font-size: 24px; line-height: 1.5; }
.arena-page .decision-hero p, .arena-page .padded p { font-size: 14px; line-height: 1.9; color: #475569; overflow-wrap: anywhere; }
.arena-page .decision-seal { flex-shrink: 0; min-width: 96px; border-color: #c4d2ee; background: #fff; color: #4263bc; text-align: center; }
.arena-page .decision-seal b { color: inherit; }
.arena-page .eyebrow { color: #64748b; }
.arena-page .panel-heading { align-items: flex-start; }
.arena-page .panel-heading h2 { font-size: 18px; line-height: 1.6; }
.arena-page .panel-heading p { color: #64748b; font-size: 13px; line-height: 1.8; }
.arena-page .table-scroll { max-width: 100%; min-width: 0; overflow-x: hidden; }
.arena-page table { width: 100%; min-width: 0; table-layout: fixed; font-size: 13px; }
.arena-page th, .arena-page td { white-space: normal; overflow-wrap: anywhere; text-align: left; line-height: 1.8; }
.arena-page th { color: #64748b; }
.arena-page th:first-child { width: 24%; }
.arena-page th:last-child { width: 18%; }
.arena-page .arena-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.arena-page .padded h3 { margin-bottom: 16px; font-size: 16px; }
.arena-page .padded p+p { margin-top: 12px; }
.arena-page .clean-list { padding-left: 20px; font-size: 14px; line-height: 1.9; color: #475569; }
.arena-page .clean-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.arena-page .badge { max-width: 100%; margin-top: 12px; white-space: normal; font-size: 12px; }
.arena-page .arena-history { min-width: 0; margin: 0; }
.arena-page .arena-history>summary { padding: 16px 0; font-size: 13px; color: #64748b; cursor: pointer; }
.arena-page .arena-history .panel { margin-bottom: 24px; }
@media(max-width:760px) {
 .arena-page .arena-grid { grid-template-columns: minmax(0,1fr); }
 .arena-page .decision-hero { padding: 24px; }
 .arena-page .decision-hero h2 { font-size: 21px; }
}

/* Source: commercial.css */
/* Small shared feedback and page-level refinements; existing layout is retained. */
#toast { position: fixed; inset: 24px 24px auto auto; margin: 0; width: max-content; max-width: min(440px,calc(100vw - 32px)); height: auto; padding: 14px 20px; border: 1px solid #d7e7de; border-left: 3px solid #449477; border-radius: 10px; background: #fff; color: #334155; box-shadow: 0 8px 28px #2230471f; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; z-index: 1001; transform: translateY(-8px); pointer-events: none; }
#toast.show { transform: translateY(0); }
#toast[data-tone=error] { border-color: #efd5da; border-left-color: #c75264; color: #9d3447; }
#toast[data-tone=info] { border-color: #d7e0f3; border-left-color: #5e82c7; }
.empty-state { display: flex; flex-wrap: wrap; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 32px 24px; text-align: center; color: #64748b; }
.empty-state>svg { color: #94a3b8; }
.empty-state h3 { margin: 0; color: #475569; font-size: 14px; line-height: 1.7; }
.empty-state p { margin: 0; max-width: 58ch; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.empty-state>.button { margin-top: 4px; }
.customer-empty .empty-state { padding: 8px 0; }
.customer-assets .customer-extra-actions { gap: 0; }
.customer-assets .customer-extra-actions>.customer-action { border-left: 1px solid #e5eaf1; border-radius: 0; }
.customer-assets .customer-extra-actions { border-left: 1px solid #e5eaf1; }
.customer-assets .customer-extra-actions>.customer-action:first-child { border-left: 0; }
.customer-assets .customer-action[data-action=customer-followups] { background: #edf3fc; border-radius: 6px; margin-left: 4px; }
.customer-assets .customer-identity>button.avatar { padding: 0; cursor: pointer; }
.customer-assets .customer-name-more { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 28px; padding: 0; border: 0; background: transparent; color: #748299; border-radius: 4px; }
.customer-assets .customer-name-more svg { transform: rotate(90deg); }
.customer-assets .customer-name-more:hover { background: #edf2fa; color: #4263bc; }
.customer-assets .customer-table [data-customer-cell=source] .customer-shop-tag, .customer-assets .customer-source-tag { background: #f0f2f5; color: #657184; }
.customer-assets .customer-action:disabled, .customer-assets .customer-bulk-bar .button:disabled { opacity: .5; }
.customer-bulk-bar.is-idle { padding: 8px 12px; background: #f7f8fa; border-color: #edf0f4; }
.overview-page .metric.has-overdue { border-color: #efccd2; background: #fffafb; }
.overview-page .metric.has-overdue>strong, .overview-page .metric.has-overdue .overdue-warning { color: #b83d50; font-weight: 650; }
.overview-page .metric .overdue-warning { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.analytics-page { min-width: 0; max-width: 100%; }
.analytics-page .business-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.analytics-page .business-summary>div, .analytics-page .business-stores, .analytics-page .business-links>button { min-width: 0; }
.analytics-page .business-summary strong, .analytics-page .business-store strong { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.analytics-page .business-store { display: grid; grid-template-columns: minmax(100px,1fr) repeat(3,minmax(0,1fr)); gap: 16px; }
.analytics-page .business-store>* { min-width: 0; overflow-wrap: anywhere; }
.analytics-page .cohort-bar { flex-wrap: wrap; }
.opportunity-board-page .empty-state { align-items: flex-start; text-align: left; }
.opportunity-board-page .opportunity-column.drop-target, .opportunity-board-page .opportunity-column-head.drop-target { border-color: #8ba5df; background: #eef3ff; }
.opportunity-board-page .opportunity-card.is-dragging { opacity: .45; }
.opportunity-board-page .board-drag-handle { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 16px; border: 0; border-bottom: 1px solid #eef1f5; background: transparent; border-radius: 12px 12px 0 0; color: #8290a2; cursor: grab; font-size: 11px; line-height: 20px; text-align: left; }
.opportunity-board-page .board-drag-handle:active { cursor: grabbing; }
@media(max-width:760px) {
 #toast { top: 16px; right: 16px; }
 .analytics-page .business-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .analytics-page .business-store { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .customer-assets .customer-name-more { width: 32px; height: 36px; }
}
@media(prefers-reduced-motion:reduce) { #toast { transition: none; } }

.customer-assets .customer-table tbody tr[data-customer-id] { cursor: pointer; }
.customer-assets .customer-table tbody tr[data-customer-id]:focus-visible { outline: 2px solid #8ba5df; outline-offset: -2px; }

.customer-assets .customer-result-heading>label { min-width: 0; }
.customer-assets .customer-result-heading select { width: 240px; max-width: 100%; }

.analytics-page .business-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:760px) { .analytics-page .business-links { grid-template-columns: minmax(0,1fr); } }

/* Source: table-fit.css */
/* Shrink the actual content items, not the page proportions. */
#page-content, .customer-results { min-width: 0; max-width: 100%; }
/* Tables use the existing page width. Content grows downwards, never sideways. */
.table-scroll, .overview-page .table-scroll, .arena-page .table-scroll,
.customer-assets .customer-table-scroll {
 box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0;
 overflow-x: hidden; padding-left: 0; padding-right: 0;
}
table, .table-scroll table, .overview-page .overview-preview-table,
.arena-page table, .customer-assets .customer-table {
 box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%;
 table-layout: fixed; white-space: normal;
}
th, td, .table-scroll th, .table-scroll td,
.customer-assets .customer-table th, .customer-assets .customer-table td {
 box-sizing: border-box; min-width: 0; max-width: 100%;
 padding: 12px clamp(4px,.6vw,12px); white-space: normal;
 word-break: break-all; overflow-wrap: anywhere;
}
/* Keep the vertical header; no cell floats over adjacent columns. */
td, .customer-assets .customer-table td { position: static; left: auto; right: auto; overflow: visible; height: auto; }
th, .customer-assets .customer-table th { left: auto; right: auto; }
.table-scroll td:first-child, .table-scroll td:last-child,
.customer-assets .customer-table td:first-child, .customer-assets .customer-table td:last-child {
 padding-left: clamp(4px,.6vw,12px); padding-right: clamp(4px,.6vw,12px);
}
table button, table .badge, table .shop-chip, table .customer-link,
.customer-assets .customer-table .customer-truncate, .customer-assets .customer-table time,
.customer-assets .customer-table .customer-contact-state, .customer-assets .customer-table .customer-shop-tag {
 box-sizing: border-box; min-width: 0; max-width: 100%; white-space: normal;
 word-break: break-all; overflow-wrap: anywhere;
}
table .customer-link { flex-wrap: wrap; }
table .customer-link>span:last-child { flex: 1 1 80px; max-width: 100%; min-width: 0; }
table .shop-progress { min-width: 0; max-width: 100%; flex-wrap: wrap; }
table .shop-chip { flex-wrap: wrap; gap: 4px; }
.customer-assets .customer-table-scroll { display: block; }
.customer-assets .customer-table .customer-select-cell { padding: 12px 3px; text-align: center; }
.customer-assets .customer-table th>button { align-items: flex-start; gap: 2px; padding-right: 0; }
.customer-assets .customer-table .customer-identity { flex-wrap: wrap; gap: 6px; }
.customer-assets .customer-table .customer-identity>div { flex: 1 1 80px; max-width: 100%; }
.customer-assets .customer-table .customer-name, .customer-assets .customer-table .customer-phone {
 white-space: normal; word-break: break-all; overflow-wrap: anywhere;
}
.customer-assets .customer-table .customer-progress-track { width: 100%; max-width: 104px; min-width: 0; }
.customer-assets .customer-table .customer-owner-group,
.customer-assets .customer-table .customer-owner-person { flex-wrap: wrap; max-width: 100%; gap: 4px; }
.customer-assets .customer-table .customer-owner-preview { flex: 1 1 60px; max-width: 100%; }
.customer-assets .customer-table .customer-owner-name { white-space: normal; overflow-wrap: anywhere; }
.customer-assets .customer-table .customer-row-actions,
.customer-assets .customer-table .customer-action-content,
.customer-assets .customer-table .customer-extra-actions {
 width: 100%; min-width: 0; max-width: 100%; white-space: normal;
 display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.customer-assets .customer-table .customer-extra-actions { width: auto; flex: 1 1 100%; border-left: 0; }
.customer-assets .customer-table .customer-action {
 display: inline-flex; align-items: center; justify-content: flex-start;
 min-width: 0; max-width: 100%; height: auto; min-height: 36px;
 padding: 6px 4px; line-height: 1.6; white-space: normal;
 word-break: break-all; overflow-wrap: anywhere;
}
.customer-assets .customer-table .customer-action[data-action=customer-followups] { margin-left: 0; }
.customer-assets .customer-table .customer-more { display: none; }
/* Every data column and its actions stay visible at all viewport widths. */
.customer-assets .customer-mobile-cards { display: none; }
.customer-assets .customer-table .avatar { flex-shrink: 1; max-width: 100%; }
.customer-assets .customer-table .customer-owner-more { flex: 0 1 auto; min-width: 0; }

/* Paged customers flow with the document, without a nested scroll well/gutter. */
.customer-assets .customer-table-scroll { max-height: none; scrollbar-gutter: auto; scroll-snap-type: none; }
.customer-assets .customer-table .customer-action-content { align-items: stretch; }
.customer-assets .customer-table .customer-action { flex: 0 1 auto; }
/* Keep document-sticky headers without creating an unscrollable inner viewport. */
@supports (overflow: clip) {
 .customer-assets .customer-table-scroll { overflow: clip; }
}

/* Source: scrollbars.css */
/* Firefox uses its native thin variant; WebKit/Blink use the exact 6px rail. */
* { scrollbar-width: thin; scrollbar-color: #ccc transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc9; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* Modern Chromium otherwise gives scrollbar-width precedence over the pseudos. */
@supports selector(::-webkit-scrollbar) {
 * { scrollbar-width: auto; scrollbar-color: auto; }
}

/* Source: settings.css */
.settings-page { min-width: 0; width: 100%; max-width: 100%; }
.settings-page .settings-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 24px; align-items: start; }
.settings-page .settings-grid>.panel { min-width: 0; margin-bottom: 24px; }
.settings-page .rule-row { grid-template-columns: minmax(0,1fr) minmax(0,140px) minmax(0,88px); gap: 16px; }
.settings-page .rule-row>div, .settings-page label { min-width: 0; overflow-wrap: anywhere; }
.settings-page .rule-row input, .settings-page .rule-row select { min-width: 0; max-width: 100%; }
.settings-page .settings-rule-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e8edf4; }
.settings-page .settings-rule-actions small { color: #79869a; font-size: 12px; line-height: 1.7; }
.settings-page .settings-rule-actions .button { flex: 0 0 auto; }
.settings-page .settings-members-content { display: flex; flex-direction: column; gap: 28px; }
.settings-page .settings-members-content>section { min-width: 0; }
.settings-page .settings-members-content h3 { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: #475569; }
.settings-page .settings-permissions, .settings-page .settings-member-list, .settings-page .settings-workspace-action { padding-top: 24px; border-top: 1px solid #e8edf4; }
.settings-page .role-intro { margin: 0; line-height: 1.9; }
.settings-page #invite-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; }
.settings-page #invite-form label { flex: 1 1 140px; }
.settings-page #invite-form .form-error { flex-basis: 100%; order: 1; margin: 0; }
.settings-page #invite-form>.button { flex: 0 1 auto; }
.settings-page .settings-invite>.quiet-note { margin: 12px 0 0; line-height: 1.8; }
.settings-page .member-row { min-width: 0; padding: 16px 0; gap: 12px; }
.settings-page .member-row>div { min-width: 0; overflow-wrap: anywhere; }
.settings-page .member-row .avatar { flex: 0 0 36px; }
.settings-page .member-row>.text-button { flex-shrink: 0; }
.settings-page .list-pagination { box-sizing: border-box; margin: 16px 0 0; padding: 16px 0; border-top: 1px solid #e8edf4; gap: 12px; }
.settings-page .settings-audit>.list-pagination { padding-left: 20px; padding-right: 20px; }
.settings-page .settings-workspace-action>.button { width: auto; max-width: 100%; min-height: 40px; padding: 8px 20px; }
.settings-page .invite-box { min-width: 0; margin-top: 16px; overflow-wrap: anywhere; }
.settings-page .settings-audit-table { width: 100%; table-layout: fixed; }
.settings-page .settings-audit-table th, .settings-page .settings-audit-table td { padding: 12px; white-space: normal; overflow-wrap: anywhere; }
.settings-page .settings-audit-table .number { font-variant-numeric: tabular-nums; }
@media(max-width:1100px) { .settings-page .settings-grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width:640px) {
 .settings-page .rule-row { grid-template-columns: minmax(0,1fr) minmax(0,88px); }
 .settings-page .rule-row>div { grid-column: 1/-1; }
 .settings-page .settings-rule-actions { align-items: flex-start; }
 .settings-page .settings-rule-actions small { flex-basis: 100%; }
 .settings-page .settings-audit-table th, .settings-page .settings-audit-table td { padding: 12px 4px; }
 .settings-page .settings-workspace-action>.button { min-height: 44px; }
}

/* Source: density.css */
/* Shared density policy. Loaded last so route and mobile rules cannot restore tall rows. */
:root{--space-card:16px;--space-grid:16px;--row-padding:12px;--row-gap:12px}
#page-content .panel,#page-content .daily-list,#page-content .business-stores{height:auto;min-height:0}
#page-content .padded,#page-content .assistant-workbench,#page-content .assistant-controls{padding:16px}
#page-content .panel-heading,#page-content .list-heading{padding:12px 16px;min-height:0;height:auto}
#page-content .metrics,#page-content .overview-grid,#page-content .settings-grid,#page-content .arena-grid,#page-content .business-links{gap:16px;align-items:start}
#page-content .metric,#page-content .business-summary>div,#page-content .customer-overview article{height:auto;min-height:0;padding:12px 16px}
#page-content .followup-list,#page-content .panel:has(>.task-row),#page-content .customer-mobile-list{gap:var(--row-gap);align-content:start;grid-auto-rows:auto}
#page-content .task-row,#page-content .simple-task,#page-content .member-row,#page-content .client-row,#page-content .detail-task{
 display:flex;align-items:center;min-height:0;height:auto;padding-top:var(--row-padding);padding-bottom:var(--row-padding);margin-top:0;margin-bottom:0;gap:12px;align-self:start;box-sizing:border-box
}
#page-content .task-row{padding-left:16px;padding-right:16px}
#page-content .task-info{min-width:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);column-gap:16px;row-gap:2px;align-items:center}
#page-content .task-info>.text-button{grid-column:1;grid-row:1;min-width:0;max-width:100%;font-size:14px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;padding:0}
#page-content .task-info>p{grid-column:2;grid-row:1 / 3;align-self:center;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.4}
#page-content .task-info>small{grid-column:1;grid-row:2;font-size:12px;line-height:1.4;color:#78827d}
#page-content .task-info>.task-group-details{grid-column:1/-1;grid-row:3;margin:4px 0 0}
#page-content .task-group-details p{margin:4px 0;line-height:1.4}
#page-content .task-end{display:flex;flex-direction:row;align-items:center;gap:8px;flex:0 0 auto}
#page-content .date-box{height:auto;min-height:0;padding:6px 8px;align-self:center;line-height:1.3}
#page-content .date-box b,#page-content .date-box small{font-size:12px;line-height:1.3}
#page-content .task-checkbox,#page-content .customer-selection{align-self:center;vertical-align:middle;margin-top:0;margin-bottom:0}
/* Tables retain native column alignment; flex on tr would break percentage columns. */
#page-content table{height:auto;border-spacing:0 8px}
#page-content table tr,#page-content table th,#page-content table td{height:auto;min-height:0;vertical-align:middle}
#page-content table th,#page-content table td,#page-content .customer-assets .customer-table td{padding-top:12px;padding-bottom:12px;line-height:1.4}
#page-content .customer-identity,#page-content .customer-owner-preview,#page-content .customer-actions{align-items:center}
#page-content .customer-identity{gap:8px}
#page-content .customer-table small{line-height:1.4;margin-top:2px}
#page-content .customer-action{padding-top:4px;padding-bottom:4px;min-height:28px;height:auto;line-height:1.4}
#page-content .customer-mobile-card{height:auto;min-height:0;padding:12px 16px;margin-bottom:8px}
#page-content .opportunity-column-body{gap:8px;padding:8px;align-content:start}
#page-content .opportunity-card,#page-content .deal-card{height:auto;min-height:0;margin-bottom:0;align-self:start}
#page-content .opportunity-card-main,#page-content .deal-card{height:auto;min-height:0;padding:12px 16px}
#page-content .opportunity-card .deal-store{margin-bottom:8px}
#page-content .opportunity-card h3{margin-bottom:4px;font-size:14px;line-height:1.4}
#page-content .opportunity-card-main>p{line-height:1.4}
#page-content .opportunity-card-value{margin-top:8px;gap:4px;line-height:1.4}
#page-content .opportunity-card-actions{padding:8px 12px;gap:8px}
#page-content .settings-members-content{gap:12px}
#page-content .settings-permissions,#page-content .settings-member-list,#page-content .settings-workspace-action{padding-top:12px}
#page-content .settings-rule-actions{margin-top:12px;padding-top:12px}
#page-content .settings-members-content h3{margin-bottom:8px}
#page-content .settings-page .rule-row{height:auto;min-height:0;padding-top:12px;padding-bottom:12px;align-items:center}
#page-content .empty-state,#page-content .customer-loading{min-height:0;height:auto;padding:16px;gap:8px}
#page-content .assistant-placeholder,#page-content .assistant-answer{min-height:0;height:auto;padding:16px}
#page-content .assistant-choice{min-height:0;height:auto;padding:12px 16px}
#page-content h2,#page-content .list-heading h2,#page-content .panel-heading h2{font-size:16px;line-height:1.4}
#page-content h3{font-size:14px;line-height:1.4}
#page-content .page-note{margin:12px 0;font-size:12px}
@media(max-width:760px){
 #page-content .task-info{grid-template-columns:minmax(0,1fr)}
 #page-content .task-info>p{grid-column:1;grid-row:2}
 #page-content .task-info>small{grid-row:3}
 #page-content .task-info>.task-group-details{grid-row:4}
 #page-content .task-row{flex-wrap:wrap;align-items:center}
 #page-content .task-end{margin-left:auto}
}

#page-content .business-store{height:auto;min-height:0;padding-top:12px;padding-bottom:12px}
#page-content .task-checkbox{flex:0 0 16px;width:16px;min-width:16px;height:16px;min-height:16px;padding:0;margin:0;align-self:center}
/* Overview pairs share the same header, stretch height and bottom footer contract. */
#page-content .overview-page .overview-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:stretch;gap:16px}
#page-content .overview-page .overview-grid>.panel{display:flex;flex-direction:column;align-self:stretch;height:auto;min-height:0;background:#fff;border:1px solid #e5e8ed;border-radius:12px;overflow:hidden}
#page-content .overview-page .overview-grid>.panel>.panel-heading{padding:12px 16px;margin:0;border-bottom:1px solid #edf0f3;align-items:center;flex:0 0 auto;gap:12px}
#page-content .overview-page .overview-grid .panel-heading .eyebrow{display:block;margin:0;font-size:10px;line-height:16px}
#page-content .overview-page .overview-grid .panel-heading h2{margin:0;font-size:16px;line-height:24px}
#page-content .overview-page .agenda>.followup-list{padding:12px 16px;flex:1}
#page-content .overview-page .agenda>.panel-foot,#page-content .overview-page .brand-panel>.quiet-note{margin-top:auto;margin-bottom:0;padding:12px 16px;border-top:1px solid #edf0f3;font-size:12px;line-height:1.6}
#page-content .overview-page .brand-panel .brand-row{flex:0 0 auto}
#page-content .overview-page .brand-panel .brand-row:first-of-type{margin-top:0}
.task-new-button{background:transparent!important;border:1px solid #dce3ec!important;color:#64748b!important;box-shadow:none!important}
.task-create-form{display:grid;gap:16px}.task-create-form>label{margin:0}.task-create-form input,.task-create-form select,.task-create-form textarea{margin-top:6px}.task-create-form textarea{min-height:64px;resize:vertical}.task-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.task-form-grid>label{margin:0;min-width:0}.task-form-footer{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #edf0f3;padding-top:12px}.task-customer-picker{position:relative}.task-customer-options{max-height:220px;overflow:auto;border:1px solid #dde4ed;border-radius:8px;margin-top:6px}.task-customer-options>button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #edf0f3;background:#fff;text-align:left}.task-customer-options>button:hover,.task-customer-options>button:focus-visible{background:#f0f4fc}.task-customer-options span,.task-selected-customer span{font-size:12px;color:#7d8794}.task-selected-customer{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #dce6f4;background:#f6f9ff;border-radius:8px;margin-top:8px}.task-priority-high{display:inline-block;color:#b83d50;background:#fff0f1;border-radius:4px;padding:1px 5px;font-size:11px;font-weight:600}
@media(max-width:1099px){#page-content .overview-page .overview-grid{grid-template-columns:minmax(0,1fr)}#page-content .overview-page .brand-panel .brand-row:first-of-type{margin-top:0}}
@media(max-width:640px){.task-form-grid{grid-template-columns:minmax(0,1fr)}}

/* Explicit feedback and task hierarchy; keep compact row geometry. */
#toast{opacity:0;visibility:hidden;display:block}
#toast.show{opacity:1;visibility:visible;transform:none}
#toast[popover]:not(:popover-open){display:none}
#page-content .overview-page .metrics .metric p.overdue-warning,
#page-content .overview-page .metrics .metric p.overdue-warning .overdue-count{color:#c53645}
#page-content .overview-page .overdue-count{font-weight:750}
#page-content .task-info .task-action-customer{display:inline;padding:0;font-size:14px;line-height:inherit;vertical-align:baseline}
#page-content .task-info .task-action-customer b{font-weight:700}
#page-content .customer-progress-symbols{display:flex;flex-direction:column;gap:3px;width:100%}
#page-content .customer-store-status{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:1.4}
#page-content .customer-store-name{color:#88909b;font-weight:400;overflow-wrap:anywhere}
#page-content .progress-symbol{font-style:normal;font-size:14px;font-weight:650;background:none;width:auto;height:auto;color:#a5abb4}
#page-content .progress-symbol.done{color:#278654}
#page-content .progress-symbol.active{color:#4389d5;font-size:11px}

/* Shared alignment contract for task rows, ledger columns and paired panels. */
#page-content .task-row{display:grid;grid-template-columns:16px minmax(140px,.9fr) 78px minmax(0,1.5fr) 174px;grid-template-rows:auto auto;gap:2px 12px;align-items:center}
#page-content .task-row:not(:has(>.task-checkbox)){grid-template-columns:0 minmax(140px,.9fr) 78px minmax(0,1.5fr) 174px;column-gap:10px}
#page-content .task-row>.task-checkbox{grid-column:1;grid-row:1 / 3}
#page-content .task-row>.task-identity{grid-column:2;grid-row:1 / 3;display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding:0;text-align:left}
#page-content .task-identity .avatar{width:32px;height:32px;flex:0 0 32px;font-size:13px}
#page-content .task-identity-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
#page-content .task-identity-copy b{font-size:14px;font-weight:700;line-height:20px}
#page-content .task-identity-copy small{font-size:12px;line-height:17px;color:#88909b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#page-content .task-row>.date-box{grid-column:3;grid-row:1 / 3;margin:0;min-width:0}
#page-content .task-row>.task-info{display:contents}
#page-content .task-row>.task-info>p{grid-column:4;grid-row:1;margin:0;align-self:end;line-height:20px}
#page-content .task-row>.task-info>small{grid-column:4;grid-row:2;align-self:start;line-height:17px}
#page-content .task-row>.task-info>.task-group-details{grid-column:2/-1;grid-row:3;min-width:0}
#page-content .task-row>.task-end{grid-column:5;grid-row:1 / 3;justify-content:flex-end;min-width:0;flex-wrap:wrap}
#page-content .progress-symbol.done[data-shop="大金空调"],#page-content .progress-symbol.active[data-shop="大金空调"]{color:#cf5057}
#page-content .progress-symbol.done[data-shop="皮阿诺"],#page-content .progress-symbol.active[data-shop="皮阿诺"]{color:#8d6bb7}
#page-content .progress-symbol.done[data-shop="老板电器"],#page-content .progress-symbol.active[data-shop="老板电器"]{color:#449477}
#page-content .customer-state-dot[data-shop="大金空调"]{background:#cf5057}
#page-content .customer-state-dot[data-shop="皮阿诺"]{background:#8d6bb7}
#page-content .customer-state-dot[data-shop="老板电器"]{background:#449477}
#page-content .referral-table{display:table;width:100%;table-layout:fixed;border-collapse:collapse}
#page-content .referral-table thead{display:table-header-group}
#page-content .referral-table tbody{display:table-row-group}
#page-content .referral-table tr{display:table-row;height:auto}
#page-content .referral-table th,#page-content .referral-table td{display:table-cell;vertical-align:middle;text-align:left;padding:12px 10px;line-height:20px;border-bottom:1px solid #edf0f3}
#page-content .referral-table th:last-child,#page-content .referral-table td:last-child{ text-align:right;font-variant-numeric:tabular-nums}
#page-content .referral-table td>small{display:block;line-height:17px;margin-top:2px}
#page-content .settings-grid,#page-content .arena-grid{align-items:stretch}
#page-content .settings-grid>.panel,#page-content .arena-grid>.panel{align-self:stretch;height:auto;min-height:0;display:flex;flex-direction:column;margin-bottom:0;background:#fff}
#page-content .settings-grid{margin-bottom:16px}
#page-content .settings-members-content{flex:1;display:flex;flex-direction:column}
#page-content .settings-members-content>.settings-workspace-action{margin-top:auto;flex:0 0 auto}
#page-content .settings-rules>form{flex:1;display:flex;flex-direction:column}
#page-content .settings-rule-actions{margin-top:auto}
@media(max-width:760px){
 #page-content .task-row,#page-content .task-row:not(:has(>.task-checkbox)){grid-template-columns:16px minmax(0,1fr) 78px;gap:8px 10px}
 #page-content .task-row>.task-checkbox{grid-column:1;grid-row:1}
 #page-content .task-row>.task-identity{grid-column:2;grid-row:1}
 #page-content .task-row>.date-box{grid-column:3;grid-row:1}
 #page-content .task-row>.task-info>p{grid-column:2/-1;grid-row:2;white-space:normal;overflow-wrap:anywhere}
 #page-content .task-row>.task-info>small{grid-column:2/-1;grid-row:3}
 #page-content .task-row>.task-end{grid-column:2/-1;grid-row:4;justify-content:flex-end;margin-left:0}
 #page-content .task-row>.task-info>.task-group-details{grid-column:2/-1;grid-row:5}
 #page-content .referral-table th,#page-content .referral-table td{padding:12px 4px}
}
#page-content .referral-table .customer-link{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:8px;text-align:left}
#page-content .referral-table .customer-link>.avatar{flex:0 0 32px;width:32px;height:32px}
#page-content .referral-table .customer-link>span:last-child{display:block;flex:1;min-width:0}
#page-content .referral-table .customer-link small{display:block;margin-top:2px;line-height:17px}

/* Compact content stays at the top; only the footer absorbs spare panel space. */
#page-content .overview-page .brand-panel .brand-row{padding:12px 16px;align-items:center;gap:12px}
#page-content .overview-page .brand-panel .brand-identity,#page-content .overview-page .brand-panel .brand-results{margin:0;align-self:center}
#page-content .overview-page .brand-panel .brand-results{gap:2px}
#page-content .overview-page .brand-panel .brand-alias{margin-top:2px}
#page-content .customer-owner-group{display:inline-flex;align-items:center;justify-content:flex-start;gap:4px;width:max-content;max-width:100%;vertical-align:middle}
#page-content .customer-owner-preview{display:grid;gap:4px;flex:0 1 auto;min-width:0;width:max-content}
#page-content .customer-owner-person{display:flex;align-items:center;gap:4px;min-width:0}
#page-content .customer-owner-more{margin:0;flex:0 0 auto;min-width:24px;min-height:24px;padding:2px 4px;border-radius:5px}
.customer-owner-popover>.customer-owner-person{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:4px;margin-top:8px}
.customer-owner-popover .customer-owner-avatar{grid-column:1;width:22px;height:22px}
.customer-owner-popover .customer-owner-name{grid-column:2;line-height:20px;overflow-wrap:anywhere}
.customer-owner-popover .customer-shop-tag{grid-column:3;margin-left:4px;white-space:nowrap}
#page-content .referral-table th:first-child,#page-content .referral-table td:first-child{padding-left:24px}
#page-content .referral-table th:last-child,#page-content .referral-table td:last-child{padding-right:24px}
@media(hover:hover) and (pointer:fine){
 #page-content .customer-assets[data-selection-mode=false] .customer-selection:not(:checked){opacity:0;transition:opacity .12s}
 #page-content .customer-assets[data-selection-mode=false] tr:hover .customer-selection,
 #page-content .customer-assets[data-selection-mode=false] tr:focus-within .customer-selection,
 #page-content .customer-assets[data-selection-mode=false] .customer-mobile-card:hover .customer-selection,
 #page-content .customer-assets[data-selection-mode=false] .customer-mobile-card:focus-within .customer-selection,
 #page-content .customer-assets[data-selection-mode=false] .customer-selection:focus-visible{opacity:1}
}
@media(max-width:640px){
 #page-content .referral-table th:first-child,#page-content .referral-table td:first-child{padding-left:12px}
 #page-content .referral-table th:last-child,#page-content .referral-table td:last-child{padding-right:12px}
}

/* Selection replaces default tools; clearing restores the retained filter state. */
#page-content .customer-assets[data-selection-mode=true] .customer-result-heading>label,
#page-content .customer-assets[data-selection-mode=true] #customer-direction{display:none}
#page-content .customer-toolbar>.customer-bulk-bar{margin:0 0 16px;padding:16px;min-height:64px}
#page-content .customer-select-cell{padding-left:8px;padding-right:10px}
#page-content .customer-table td.customer-identity-cell{padding-left:12px}
