/* Selected direction 3: charcoal navigation, emerald actions, task queues.
   Presentation only: permissions, financial calculations and save API stay authoritative. */
:root{--green:#128269;--deep:#16212c;--ink:#17212e;--muted:#6e7a8a;--line:#e5eaf0;--bg:#fff;--surface:#fff;--workbench-action:#128269;--workbench-action-hover:#0b6c55;--workbench-selection:#128269;--workbench-grid-line:#e5eaf0;--cds-text-primary:#17212e;--cds-text-secondary:#657386;--cds-border:#e5eaf0;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
body{color:var(--ink);font-size:14px;background:#fff}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}span.icon{display:inline-block;width:18px;height:18px;flex:0 0 auto;background:currentColor;mask:var(--icon-url) center/contain no-repeat;-webkit-mask:var(--icon-url) center/contain no-repeat;vertical-align:middle}
.shell{--nav-width:208px}.shell .sidebar{background:#171e26;color:#c1cad5;border:0;padding:28px 12px 16px}.shell .brand{font-size:21px;color:#fff;padding:0 10px;gap:10px}.shell .brand-mark,.password-login .brand-mark,.login-story .brand-mark{background:transparent;color:inherit;border-radius:0;width:29px;height:34px}.brand-mark .icon{width:29px;height:29px}.shell .brand small{display:none}.shell .workspace-label{margin:34px 12px 12px;color:#8695a5;font-size:11px;letter-spacing:.06em}.shell .workspace-label span{background:#28323e;color:#b4c2cc}.shell nav{gap:7px}.shell .nav-item{height:46px;font-size:14px;color:#c1cad5;padding:0 14px;border-radius:7px;gap:12px}.shell .nav-item .icon{width:20px;height:20px}.shell .nav-item.active{color:#dcfff3;background:#1c4540;font-weight:600;box-shadow:inset 3px 0 #2bbf9e}.shell .nav-item.active:before{display:none}.shell .nav-item:hover{background:#25323c;color:#fff}.shell .nav-item small{color:#b9e7d9;background:#26554d;font-size:11px}.shell .local-note{color:#aab6c3;font-size:11px;line-height:1.8;margin:16px 12px}.shell .local-note small{color:#8494a5}.shell .profile{border-color:#303945;color:#e7edf4;padding:18px 8px 0;gap:10px}.shell .profile .avatar{background:#334452;color:#e8f2f6;width:36px;height:36px}.shell .profile small{color:#a3b2c0;font-size:11px;line-height:1.8;white-space:normal}.shell .topbar{height:44px;min-height:44px;padding:0 28px;border-bottom:1px solid #f1f3f5;background:white}.shell .breadcrumb{font-size:12px;color:#7b8796}.shell .scope,.shell .top-right .quiet{font-size:12px;color:#697789}.shell .main-content{padding:0 28px 28px}.shell h1{font-size:28px;color:#111b28;letter-spacing:-.6px;font-weight:650}.shell .page-heading{padding:26px 0 22px;min-height:106px}.shell .page-heading p{display:block;color:#758292;font-size:13px;margin-top:9px}.shell .heading-actions{gap:10px;padding:0}.shell .save-status{font-size:12px;color:#128269}.shell .heading-actions .save-status{display:inline-flex}.primary,.sheet-mode .heading-actions .primary{min-height:36px;border-radius:7px;font-size:13px;padding:0 16px;background:var(--green);box-shadow:none}.secondary{min-height:36px;border-radius:7px;border-color:#dce3eb;color:#344253;padding:0 13px;background:white;font-size:13px}.quiet,.text-button{font-size:13px}.text-button{color:#0d8066}.icon-button{width:32px;height:32px;border-radius:7px}.quiet:hover,.icon-button:hover{background:#f0f5f4;color:#106e59}.primary:hover{background:#0b6c55}.primary:focus-visible,.secondary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid #128269;outline-offset:3px}.badge{border-radius:5px;font-size:12px;padding:3px 7px;line-height:1.5}.badge.green{color:#08735b;background:#e5f6ef}.badge.red{color:#b64748;background:#fff0f0}.badge.blue{color:#48627c;background:#edf2f7}.badge.gray{color:#6b7787;background:#f0f2f5}.badge.amber{color:#8b641b;background:#fff6e5}.person-dot{background:#edf3f1;color:#547368}.duty-chip{background:#f3f6f5;color:#3d6b5b;border-color:#dfe8e4;padding:3px 7px;border-radius:4px;font-size:11px}
/* Shared table, filter, dialog and account rhythm. */
.panel,.metric{border-color:#e3e9ee;border-radius:9px;box-shadow:none}.panel-heading{padding:20px 22px 16px}.panel-heading h2{font-size:16px;color:#253345}.panel-heading p,.panel-caption,.chart-foot{font-size:12px;color:#7b8797;line-height:1.7}.panel-heading small{font-size:12px}.simple-table{font-size:13px}.simple-table th{font-size:12px;background:#f7f9fa;color:#6d7989;font-weight:500}.simple-table th,.simple-table td{padding:15px 16px;border-color:#e8edf1}.simple-table td{color:#344253}.simple-table tbody tr:hover td{background:#f8fbfa}.simple-table .phone,.strong-number{font-variant-numeric:tabular-nums;font-weight:600;color:#172c26}.simple-table td .text-button{margin-right:10px;white-space:nowrap}.page-accounts .simple-table td:last-child{min-width:218px}.page-accounts .simple-table td:nth-child(5){max-width:220px;white-space:normal;line-height:1.8}.simple-scroll{scrollbar-color:#bfcac9 #f5f7f6;max-width:100%}.notice-banner.neutral{padding:14px 16px;border:0;border-left:3px solid #b9dbcf;background:#f4f8f6;color:#677d72;border-radius:0 6px 6px 0;font-size:12px;line-height:1.8;margin-bottom:20px}.page-note{font-size:12px;line-height:1.8;margin:18px 0;color:#83907e}.toolbar,.sheet-mode .toolbar{padding:12px 16px;min-height:60px;gap:10px;border-color:#e8edf1;background:#fff}.filter-left{gap:10px;flex-wrap:wrap}.search-box,.sheet-mode .search-box{height:36px;width:265px;background:white;border:1px solid #dfe5ec;border-radius:7px}.search-box input,.sheet-mode .search-box input{font-size:13px}.search-box kbd{display:none}.toolbar select,.sheet-mode .toolbar select{height:36px;font-size:13px;border-radius:7px;background:white;border-color:#dfe5ec;padding:0 28px 0 10px}.search-box:focus-within{border-color:#128269;box-shadow:0 0 0 2px #12826918}.sheet-footer{padding:12px 16px;font-size:12px;color:#7b8794}.empty-state{padding:64px 24px}.empty-state h3{color:#42564e}.empty-state p{font-size:13px;color:#7b8794}.channel-cards{gap:16px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.channel-card{padding:22px}.channel-card-head{gap:10px}.channel-card-head h3{font-size:15px}.channel-card p{font-size:13px;color:#7a8794;line-height:1.8}.mini-icon.green{background:#e6f5ee;color:#128269}.mini-icon.blue{background:#eef2f8;color:#657996}.mini-icon{border-radius:8px}
.metrics{gap:16px;margin:0 0 22px}.metric{padding:22px;min-height:134px}.metric.featured{border-color:#c7e6da;background:#edf8f3}.metric.featured .metric-label,.metric.featured .icon,.metric.featured>strong{color:#0b7259}.metric>strong{font-size:30px;letter-spacing:-.5px;font-weight:600;margin:14px 0 10px;font-variant-numeric:tabular-nums}.metric-label{font-size:13px;color:#657587}.metric>span{font-size:12px;color:#7d8a97}.dashboard-charts{gap:22px;margin-bottom:22px;grid-template-columns:1.5fr 1fr}.trend-chart{max-height:260px}.trend-chart polyline,.trend-chart circle{stroke:#16856c}.trend-chart path{fill:#edf8f3}.trend-chart circle{fill:#16856c}.stage-row>div{background:#edf3f0}.stage-row>div>i{background:#3fa68a}.stage-row{margin-bottom:17px}.stage-row>span{font-size:12px;width:70px}.stage-row b{font-variant-numeric:tabular-nums}.statistics-filters{padding:14px 16px;background:#f8faf9;border:1px solid #e6ece9;border-radius:9px;gap:12px;margin-bottom:18px}.statistics-filters label{font-size:12px}.statistics-filters select,.statistics-filters .smart-dates select{height:35px;border-radius:6px;border-color:#dfe6e3}.smart-dates{flex-wrap:wrap}.date-caption{font-size:12px;color:#7c8897}.statistics-tabs{margin-bottom:22px;border-color:#e5eae8;gap:12px}.statistics-tabs button{font-size:13px;padding:11px 16px;color:#74817d}.statistics-tabs button.selected{background:none;color:#0c785d;border-color:#16856c;font-weight:600}.statistics-table th,.statistics-table td{min-width:84px;padding:14px 10px;text-align:right;white-space:nowrap}.statistics-table th:first-child,.statistics-table td:first-child{position:sticky;left:0;z-index:1;background:#f7faf8;text-align:left;min-width:132px}.statistics-note{color:#849087;font-size:12px;padding:13px 16px;line-height:1.8;border-top:1px solid #edf1ee}.statistics-filters>.muted{margin-left:auto}
.modal-overlay{background:#101d2b66;backdrop-filter:blur(3px)}.modal{border-radius:12px;border-color:#dfe6e4;box-shadow:0 20px 80px #0d1c3326}.modal>header{padding:24px 26px}.modal>header h2{font-size:21px;font-weight:600;color:#1a2936}.modal>header p{font-size:13px;line-height:1.7;margin-top:7px}.modal-body{padding:24px 26px}.modal-footer{padding:16px 26px;background:#f8faf9;gap:10px}.modal-footer>.muted{font-size:12px}.form-grid{gap:20px 18px}.form-field>label,legend,.checkbox-label{font-size:13px}.form-field input:not([type=checkbox]),.form-field select,.form-field textarea{border-radius:7px;border-color:#d9e2e1;min-height:39px;font-size:14px;padding:9px 11px}.form-field textarea{min-height:90px;line-height:1.7}.form-field input:disabled,.form-field select:disabled,.form-field textarea:disabled{background:#f3f6f5;color:#8a9590}.checkbox-label input,.check-options input,.column-options input{accent-color:#128269}.modal:has(#customer-form){border-radius:12px 0 0 12px;max-width:800px}.detail-summary{background:#edf7f2;color:#39735d;padding:15px}.form-section-title{color:#276c54}.correction-original{background:#f4f8f6;border-color:#d4e4dd}.account-choice:hover,.account-choice.current{background:#edf8f3;border-color:#b1d8c8}.password-login{background:#f3f6f5}.password-login>.panel{padding:36px;width:min(460px,100%);border-radius:12px;box-shadow:0 14px 50px #162e2210}.password-login .brand{color:#17262d}.password-login .brand-mark{color:#128269}.password-login h1{font-size:27px}.login-story{background:#171e26}.login-accounts{background:#fff}.login-kicker{color:#62bea2}.login-story>p,.login-note{color:#afc4be}.login-story h1{font-size:43px}.login-note small{color:#7e9c91}#toast{background:#213c32;border-radius:8px;padding:12px 20px;font-size:13px}#toast.error{background:#963e3e}
/* Customer workspace preserves the spreadsheet engine and all keyboard operations. */
.shell.sheet-mode .main-content{padding:0 24px 18px}.shell.sheet-mode .page-heading{min-height:99px;padding:22px 0}.shell.sheet-mode .page-heading p{display:block}.sheet-mode .sheet-card{border:1px solid #e3e9ed;border-radius:9px}.sheet-mode .top-tabs{padding:0 16px;gap:12px;min-height:52px;border-color:#e5eaf0}.sheet-mode .top-tabs button{height:52px;font-size:14px;padding:0 12px;gap:8px;color:#617080}.sheet-mode .top-tabs button.selected{color:#0c785d;border-color:#128269}.sheet-mode .top-tabs .icon{width:17px;height:17px}.sheet-mode .sheet-tab-end{font-size:11px;color:#8a969f}.customer-status-tag{font-size:12px;border-radius:6px;padding:6px 10px}.customer-status-tag.selected{background:#e4f4ee;color:#0b785c;border-color:#d1e9df}.customer-status-tag.selected span{background:#d1eadd;color:#16684f}.reception-queue-note{background:#f6faf8;color:#6b8075;border-color:#e5ede8;font-size:12px;padding:11px 16px}.sheet-tools{background:#f8faf9;border-color:#e5eae7;min-height:42px}.sheet-tool.text-tool{font-size:12px}.sheet-tool:hover{background:#e8f2ec;color:#14745b}.sheet-tools select{font-size:11px}.formula-bar{background:#fff;border-color:#e3e9e5;height:34px;min-height:34px}.formula-bar input{font-size:13px}.spreadsheet .data-grid .letter-row th{background:#f7f9f8;color:#8b9792}.spreadsheet .data-grid .field-row th{background:#f2f6f4;color:#516c5f;font-size:12px}.spreadsheet .data-grid th,.spreadsheet .data-grid td{border-color:#e5ebe7}.spreadsheet .data-grid td{height:36px;font-size:13px;color:#2e3e36}.spreadsheet .data-grid td.readonly{background:#f8faf9;color:#7d8b84}.spreadsheet .data-grid td.range-selected{background:#edf8f2!important}.spreadsheet .data-grid td.active-cell{outline-color:#128269!important}.spreadsheet .data-grid td.active-cell:after{background:#128269}.spreadsheet .data-grid td.draft-cell:before{border-top-color:#128269}.spreadsheet .data-grid td.editing input,.spreadsheet .data-grid td.editing select,.spreadsheet .data-grid td.editing textarea{border-color:#128269;font-size:13px;height:35px;min-height:35px}.spreadsheet .cell-check.checked{background:#128269;border-color:#128269}.spreadsheet .cell-check{width:16px;height:16px;border-radius:4px}.spreadsheet .data-grid .selected-header{background:#d9eee3!important;color:#17664d!important}.group-cell-link,.group-date-link,.recharge-cell{color:#137d63}.spreadsheet-status{font-size:11px;border-color:#e5eae7;padding:9px 14px;min-height:34px}.draft-key{border-top-color:#128269}.draft-status{color:#168163}.draft-status.pending{color:#a56d1c}
/* Selected image: secondary queue rail + open, two-line customer records. */
.sheet-mode .group-workspace{border:0;border-radius:0}.group-workspace-body{display:flex;flex:1;min-height:0}.queue-sidebar{width:172px;flex:0 0 172px;border-right:1px solid #e7ecf0;background:#f7f9fa;padding:24px 10px}.queue-sidebar h2{font-size:14px;color:#405267;font-weight:600;margin:0 12px 21px}.queue-sidebar .customer-status-tags{display:flex;flex-direction:column;gap:8px;align-items:stretch}.queue-sidebar .customer-status-tag{width:100%;justify-content:space-between;min-height:44px;padding:10px 12px;border:0;color:#647080;font-size:13px;white-space:normal;text-align:left}.queue-sidebar .customer-status-tag span{background:transparent;color:inherit;padding:0;font-size:12px;flex-shrink:0}.queue-sidebar .customer-status-tag.selected{color:#08745c;background:#e0f3ec;font-weight:600;box-shadow:inset 3px 0 #13856a}.queue-sidebar .customer-status-tag:nth-child(4){border-top:1px solid #e0e7e8;margin-top:12px;padding-top:20px;border-radius:0;min-height:56px}.queue-content{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 22px 4px}.queue-heading h2{font-size:21px;color:#182737;font-weight:600}.queue-heading p{font-size:12px;color:#8492a0;margin:8px 0 0}.queue-heading p strong{font-weight:400}.presentation-switch{display:flex;border:1px solid #e1e7e8;border-radius:7px;padding:3px;gap:2px;flex-shrink:0}.presentation-switch button{display:flex;align-items:center;gap:6px;padding:6px 9px;border:0;border-radius:4px;background:transparent;color:#798793;font-size:12px}.presentation-switch button .icon{width:15px;height:15px}.presentation-switch button.selected{background:#edf5f1;color:#10775b}.queue-content>.toolbar{padding:14px 22px}.queue-content .filter-left{flex:1;min-width:0}.queue-content .search-box{width:240px}.queue-content .exit-expert-filter{padding:12px 22px;background:#fbfcfb;border-color:#e6eeea}.list-tools .sheet-tools{min-height:34px;padding:2px 18px;background:white;border-bottom:1px solid #e9eeeb}.list-tools .sheet-tools .tool-cluster:nth-child(2),.list-tools .sheet-tools .tool-cluster:nth-child(3){display:none}.list-tools .formula-bar{display:none}.list-tools .sheet-tools-spacer{display:block}.list-tools .draft-status{display:inline;font-size:11px}.list-tools .sheet-tools .sheet-tool{height:24px;min-width:24px}.list-tools .sheet-error{font-size:12px}.sheet-mode .grid-scroll.task-scroll{min-height:150px;display:block}.spreadsheet .data-grid.task-list{display:block;width:100%;table-layout:auto}.task-list tbody{display:block}.spreadsheet .task-list tr{display:grid;grid-template-columns:106px minmax(70px,1fr) minmax(70px,1fr) minmax(78px,1fr) 116px 84px 94px;grid-template-areas:"phone ownerId operatorId channelId expertId addedExpert abnormalLeft" "status joinedOn progress device lossAmount lossAmount lossAmount" ". note note note note note note";gap:14px 10px;padding:24px 22px;border-bottom:1px solid #e7edf0;align-items:start}.spreadsheet .task-list .rownum{display:none}.spreadsheet .task-list td{display:flex;align-items:center;gap:7px;position:relative!important;left:auto!important;min-width:0;border:0;background:transparent!important;height:auto!important;min-height:27px;padding:1px 2px;border-radius:4px;overflow:visible;white-space:normal;font-size:13px;line-height:1.6}.spreadsheet .task-list tr:hover{background:#fcfefd}.spreadsheet .task-list tr:hover td{background:transparent!important}.task-label{font-size:11px;color:#8795a5;flex-shrink:0}.task-value{min-width:0;display:inline-flex;align-items:center;gap:5px;overflow-wrap:anywhere}.task-edit-icon{width:13px!important;height:13px!important;color:#7f9e91;opacity:0}.task-list td.editable:hover .task-edit-icon{opacity:1}.task-list td.editable{cursor:pointer}.task-list td.readonly{color:#445465!important}.task-list td[data-col=phone] .group-cell-link{font-size:18px;font-weight:650;color:#182834;padding:0;font-variant-numeric:tabular-nums}.task-list td[data-col=status] .badge{font-size:11px;border-radius:4px;padding:3px 6px}.task-list td[data-col=expertId]{flex-direction:column;align-items:stretch;gap:5px;grid-row:1 / span 2}.task-list td[data-col=expertId] .task-value{border:1px solid #dce5e3;border-radius:5px;padding:5px 8px;justify-content:space-between;background:white;min-height:34px}.task-list td[data-col=expertId] .task-edit-icon{opacity:1}.task-list td[data-col=addedExpert],.task-list td[data-col=abnormalLeft]{flex-direction:column;align-items:center;gap:10px}.task-list td[data-col=abnormalLeft] .task-label{color:#b65055}.task-list td[data-col=abnormalLeft]{border:1px solid #efd3d5;padding:7px 3px;border-radius:6px;grid-row:1 / span 2;min-height:68px}.task-list td[data-col=lossAmount]{grid-column:5 / 7}.task-list td[data-col=note]{padding-top:5px;align-items:baseline;min-height:35px}.task-list td[data-col=note] .task-value{line-height:1.8;white-space:pre-wrap}.task-list .channel-pill{font-size:12px;color:#526a61}.task-list .person-dot{display:none}.spreadsheet .task-list td.active-cell{outline:1px solid #b3d8c9!important;outline-offset:3px;background:#f5faf7!important}.spreadsheet .task-list td.active-cell:after{display:none}.spreadsheet .task-list td.editing input,.spreadsheet .task-list td.editing select,.spreadsheet .task-list td.editing textarea{width:100%;min-width:0;height:36px;border:1px solid #128269;border-radius:5px;font-size:13px;padding:5px 8px;box-shadow:0 0 0 3px #1282690d}.spreadsheet .task-list td.editing textarea{min-height:80px;height:80px;resize:vertical}.task-empty{padding:70px 24px;text-align:center;color:#97a59d}.task-empty>.icon{width:30px;height:30px;color:#599e82}.task-empty h3{font-size:16px;color:#516e60;font-weight:500;margin:16px 0 10px}.task-empty p{font-size:13px}.table-presentation .queue-sidebar{width:155px;flex-basis:155px}
@media(min-width:1600px){.shell{--nav-width:226px}.queue-sidebar{width:188px;flex-basis:188px}.spreadsheet .task-list tr{grid-template-columns:120px repeat(3,minmax(85px,1fr)) 140px 104px 104px;gap:16px 16px;padding:27px}.task-label{font-size:12px}.spreadsheet .task-list td{font-size:14px}.shell .main-content{padding-left:32px;padding-right:32px}}
@media(max-width:1250px){.shell{--nav-width:190px}.shell .main-content,.shell.sheet-mode .main-content{padding-left:18px;padding-right:18px}.queue-sidebar{width:152px;flex-basis:152px}.queue-content .toolbar{padding:12px 14px}.queue-heading{padding-left:14px;padding-right:14px}.queue-content .search-box{width:185px}.queue-content .filter-left{gap:6px}.spreadsheet .task-list tr{padding:20px 14px;grid-template-columns:100px repeat(3,minmax(60px,1fr));grid-template-areas:"phone ownerId operatorId channelId" "status joinedOn progress device" ". expertId addedExpert abnormalLeft" ". lossAmount lossAmount lossAmount" ". note note note";gap:10px}.task-list td[data-col=expertId],.task-list td[data-col=abnormalLeft]{grid-row:auto}.task-list td[data-col=expertId]{flex-direction:row}.task-list td[data-col=expertId] .task-value{flex:1}.task-list td[data-col=lossAmount]{grid-column:auto}.task-list td[data-col=addedExpert],.task-list td[data-col=abnormalLeft]{flex-direction:row;min-height:36px;gap:7px;justify-content:center}.metrics{gap:12px}.metric{padding:18px}.metric>strong{font-size:26px}.statistics-filters>.muted{margin-left:0}}
@media(max-width:1000px){.shell{--nav-width:60px}.shell .sidebar{padding:20px 6px 14px}.shell .brand{padding:0}.shell nav{margin-top:20px}.shell .nav-item{justify-content:center;padding:0;height:44px}.shell .profile{justify-content:center;padding-left:0;padding-right:0}.shell .page-heading{padding:20px 0}.shell .page-heading h1{font-size:25px}.shell .topbar{padding:0 16px}.shell .nav-item>.icon{display:block}.shell .brand-mark{display:flex}.shell .main-content,.shell.sheet-mode .main-content{padding-left:14px;padding-right:14px}.shell .heading-actions .save-status{display:none}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-charts{grid-template-columns:1fr}.sheet-mode .top-tabs{gap:2px;padding:0 8px}.sheet-mode .top-tabs button{padding:0 9px;font-size:13px}.sheet-mode .sheet-tab-end{display:none}.queue-sidebar{width:142px;flex-basis:142px}.queue-sidebar .customer-status-tag{font-size:12px;padding:10px 8px}.queue-heading h2{font-size:19px}}
@media(max-width:700px){.shell h1,.shell .page-heading h1{font-size:23px}.shell .page-heading,.shell.sheet-mode .page-heading{padding:18px 0;min-height:82px;gap:8px}.shell .page-heading p{font-size:11px;max-width:230px}.shell .topbar{min-height:38px;height:38px}.shell .top-right .quiet{font-size:0;padding:4px}.shell .top-right .quiet .icon{font-size:14px}.shell .heading-actions .primary,.shell .heading-actions .secondary{font-size:12px;min-height:33px;padding:0 10px}.shell .main-content,.shell.sheet-mode .main-content{padding:0 10px 12px}.sheet-mode .top-tabs{overflow-x:auto;min-height:45px}.sheet-mode .top-tabs button{height:45px;white-space:nowrap;font-size:12px;padding:0 9px;flex-shrink:0}.sheet-mode .top-tabs .icon{display:none}.group-workspace-body{flex-direction:column}.queue-sidebar,.table-presentation .queue-sidebar{width:auto;flex:0 0 auto;border-right:0;border-bottom:1px solid #e5eae8;padding:8px;background:#f8faf9}.queue-sidebar h2{display:none}.queue-sidebar .customer-status-tags{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:4px}.queue-sidebar .customer-status-tag{width:auto;flex-shrink:0;min-height:34px;white-space:nowrap;gap:7px;padding:6px 9px}.queue-sidebar .customer-status-tag:nth-child(4){border:0;margin:0;padding:6px 9px;min-height:34px}.queue-heading{padding:15px 10px 0}.queue-heading h2{font-size:17px}.queue-content .toolbar{padding:10px}.queue-content .search-box{width:100%}.queue-content .filter-left{flex-wrap:wrap}.queue-content .filter-right{align-self:flex-end}.queue-content .toolbar select{max-width:135px;height:32px}.queue-content .toolbar .search-box{height:34px}.spreadsheet .task-list tr{grid-template-columns:1fr 1fr;grid-template-areas:"phone status" "ownerId operatorId" "channelId joinedOn" "progress device" "lossAmount lossAmount" "expertId addedExpert" "abnormalLeft abnormalLeft" "note note";gap:9px 14px;padding:18px 12px}.task-list td[data-col=abnormalLeft]{justify-self:start;min-height:33px;padding:4px 10px}.task-list td[data-col=addedExpert]{justify-content:flex-start}.task-list td[data-col=phone] .group-cell-link{font-size:17px}.task-label{font-size:11px}.task-list td[data-col=note]{gap:10px}.queue-content{min-height:0}.list-tools .sheet-tools{padding:2px 8px}.spreadsheet-status>span:first-child{display:none}.spreadsheet-status{font-size:10px}.statistics-filters{padding:12px;gap:9px}.statistics-filters label{flex:1}.statistics-filters select{min-width:0;max-width:145px}.statistics-filters>.muted{display:none}.metrics .metric{padding:16px 12px;min-height:115px}.metric>strong{font-size:22px}.metric-label{font-size:12px}.metric>span{font-size:11px}.notice-banner.neutral{font-size:11px;padding:12px;line-height:1.7}.modal>header,.modal-body{padding:20px}.modal-footer{padding:14px 20px}.form-grid{gap:16px 12px}.channel-cards{grid-template-columns:1fr}.password-login>.panel{padding:26px}.shell.nav-collapsed{--nav-width:60px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(min-width:1251px){
 .task-list td[data-col=expertId]{grid-row:auto;flex-direction:row;align-items:center;gap:5px}
 .task-list td[data-col=expertId] .task-value{flex:1;padding:4px 7px;min-height:32px}
 .task-list td[data-col=addedExpert],.task-list td[data-col=abnormalLeft]{flex-direction:row;align-items:center;justify-content:center;gap:7px;min-height:32px;grid-row:auto}
 .task-list td[data-col=abnormalLeft]{padding:5px 4px}
 .task-list td[data-col=abnormalLeft] .task-value{flex-wrap:wrap}
 .spreadsheet .task-list tr{padding-top:22px;padding-bottom:22px;row-gap:12px}
}
/* QA refinement: match the selected mock's readable type and reduce chrome. */
@media(min-width:1251px){
 .shell{--nav-width:232px}.shell .nav-item{font-size:15px;height:48px}.shell .brand{font-size:22px}.shell .nav-item .icon{width:22px;height:22px}
 .queue-sidebar{width:182px;flex-basis:182px}.queue-sidebar h2{font-size:15px}.queue-sidebar .customer-status-tag{font-size:14px;min-height:46px}
 .shell.sheet-mode .page-heading{min-height:82px;padding:17px 0}.shell.sheet-mode .page-heading p{display:none}.shell.sheet-mode .topbar{height:36px;min-height:36px}
 .sheet-mode .top-tabs button{font-size:15px}.queue-heading{padding-top:17px;padding-bottom:0}.queue-heading h2{font-size:23px}
 .queue-content>.toolbar{padding-top:10px;padding-bottom:10px;min-height:54px}.queue-heading p{margin-top:5px}
 .spreadsheet .task-list tr{grid-template-columns:110px minmax(68px,1fr) minmax(68px,1fr) minmax(90px,1fr) 125px 94px 106px;gap:9px 12px;padding:18px 22px}
 .spreadsheet .task-list td{font-size:14px}.task-label{font-size:12px}.task-list td[data-col=phone] .group-cell-link{font-size:20px}.task-list td[data-col=status] .badge{font-size:12px}
 .task-list .channel-pill{font-size:14px}.task-list td[data-col=note]{min-height:31px}.task-list td[data-col=note] .task-value{font-size:14px}.task-list td[data-col=lossAmount]{font-variant-numeric:tabular-nums}
 .task-list td[data-col=expertId] .task-value{font-size:13px}.task-list .task-edit-icon{opacity:.65}
 .group-workspace .list-tools .sheet-tools{min-height:30px}.group-workspace .list-tools .draft-status{font-size:11px}
}
/* An expanded note occupies its own row instead of covering the next customer. */
.spreadsheet .task-list td.editing textarea{position:relative;top:auto;left:auto;display:block;flex:1;width:100%;max-width:100%;min-height:88px;height:88px}
.spreadsheet .task-list td.editing[data-col=note]{min-height:88px;align-items:flex-start}
.spreadsheet .task-list td.editing[data-col=note] .task-label{padding-top:8px}
.task-list td[data-col=joinedOn]{flex-wrap:wrap;row-gap:0}
.task-list td[data-col=joinedOn] .task-value{white-space:nowrap;overflow-wrap:normal}
.modal-body>.form-field+.form-field{margin-top:18px}
.spreadsheet .data-grid td.draft-cell:before{border-top-color:#128269}
.recharge-summary{background:#edf8f3;border-color:#cce4d9}.recharge-summary strong{color:#0e785c}

/* Keep the complete summary ahead of the overview cards and charts. */
.statistics-summary{margin-bottom:22px}

/* Statistics option 2: quantities left, money right, breakdown below. */
.statistics-group-tabs{display:flex;gap:8px;overflow-x:auto;margin:0 0 20px;padding:2px 0 5px}
.statistics-group-tabs button{flex-shrink:0;border:1px solid #dfe7e3;border-radius:7px;padding:9px 20px;background:#fff;color:#63756c;font-size:14px}
.statistics-group-tabs button.selected{background:#e5f4ed;color:#0b755b;border-color:#9cccb9;font-weight:600}
.statistics-group-tabs button:focus-visible{outline:2px solid #128269;outline-offset:2px}
.statistics-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;margin-bottom:24px}
.statistics-split>.panel{min-width:0;padding:24px}
.statistics-split .panel-heading{padding:0;margin:0 0 22px;align-items:flex-start;gap:12px}
.statistics-split .panel-heading h2,.statistics-detail h2{font-size:18px}
.statistics-split .panel-heading p{font-size:12px;margin-top:7px;color:#7a8881}
.quantity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.quantity-item{padding:20px 16px;border:1px solid #e6ece8;border-radius:8px;background:#fafcfb}
.quantity-item>span{display:block;font-size:13px;color:#66796e}
.quantity-item>strong{display:block;font-size:29px;font-weight:600;margin-top:12px;font-variant-numeric:tabular-nums}
.cohort-summary{display:flex;gap:24px;padding:20px 0;border-bottom:1px solid #e8eeea;margin-bottom:22px}
.cohort-summary>div{display:flex;gap:14px;align-items:center;font-size:13px;color:#62756a}
.cohort-summary strong{font-size:20px;color:#243b2f}
.rate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rate-item{display:flex;flex-direction:column;gap:12px;min-width:0;padding:15px 12px;border-radius:8px;background:#edf7f2}
.rate-item>span{font-size:13px;color:#456e5b}.rate-item strong{font-size:25px;color:#0e765b;font-weight:600;white-space:nowrap}.rate-item small{font-size:11px;line-height:1.7;color:#74897d}
.split-note{font-size:12px;line-height:1.9;color:#7a8c80;margin:20px 0 0}
.split-money-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.split-money-grid .metric{border:1px solid #e1e8e4;border-radius:8px;padding:16px;min-height:112px}
.split-money-grid .metric.featured{background:#edf8f3;border-color:#c7e6da}
.split-money-grid .metric>strong{font-size:26px;margin:10px 0 6px}
.split-trend{margin-top:20px}.split-trend h3{font-size:14px;font-weight:600;margin:0 0 6px}.split-trend h3 span{font-size:11px;font-weight:400;color:#819087;margin-left:10px}
.split-trend .trend-chart{width:100%;max-height:180px;display:block}
.statistics-detail>.panel-heading{padding:22px 22px 0;margin-bottom:12px}.statistics-detail .panel-heading p{font-size:12px;color:#819087;margin-top:6px}
.statistics-detail>.statistics-tabs{padding:0 14px;margin-bottom:0}.statistics-detail .statistics-note{margin-bottom:0}
@media(max-width:1150px){.statistics-split{grid-template-columns:1fr}.statistics-split>.panel{padding:20px}.split-trend .trend-chart{max-height:220px}}
@media(max-width:600px){.statistics-split{gap:16px}.statistics-split>.panel{padding:16px}.quantity-grid{gap:8px}.quantity-item{padding:14px 10px}.quantity-item>strong{font-size:25px}.quantity-item>span{font-size:12px}.rate-grid{grid-template-columns:1fr}.rate-item{display:grid;grid-template-columns:1fr auto;align-items:center;padding:12px}.rate-item small{grid-column:1 / -1}.rate-item strong{font-size:23px}.split-money-grid{grid-template-columns:1fr}.cohort-summary{gap:18px}.statistics-group-tabs button{padding:8px 14px}.statistics-split .badge{white-space:nowrap}.split-trend h3 span{display:block;margin:6px 0 0}}

/* Registration import: inspect rows before any customer is created. */
#import-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#import-form legend { margin-bottom: 16px; font-weight: 600; }
#import-text { width: 100%; font-variant-numeric: tabular-nums; resize: vertical; }
.import-source-heading, .import-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; flex-wrap: wrap; }
.import-source-heading a { display: inline-flex; align-items: center; gap: 6px; }
.import-file input { flex: 1; min-width: 180px; }
.import-counts { display: flex; gap: 24px; flex-wrap: wrap; padding: 16px; background: #f0f7f4; border-radius: 8px; margin: 16px 0 12px; }
.import-counts b { margin-left: 6px; font-size: 18px; }
.import-preview-table { max-height: 280px; overflow: auto; border: 1px solid var(--border, #dce5e9); border-radius: 8px; }
.import-preview-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.import-preview-table td, .import-preview-table th { padding: 10px 12px; border-bottom: 1px solid #e8eeec; }
.import-preview-table th { position: sticky; top: 0; background: #f7faf8; }
.import-phone { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 240px; }
.import-invalid { color: #b42318; }
.import-duplicate { color: #75817c; }
.import-warning { margin-top: 16px; color: #855400; }
#import-form [hidden] { display: none !important; }
#import-fields .form-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
#import-text { border: 1px solid #dce5e9; border-radius: 8px; padding: 12px; background: #fff; font: 14px/1.7 ui-monospace, monospace; color: #24332e; }
#import-text:focus { outline: 2px solid #b8e3d5; border-color: #14866c; }
.import-batch-summary { padding: 12px 0; color: #52675e; line-height: 1.8; }
@media (max-width: 700px) { #import-fields .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.import-batch-summary { margin: 0; padding: 4px 0; }
.task-list td[data-col=phone] .group-cell-link { white-space: normal; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; }

/* Recoverable cleanup of practice customers. */
.danger-button { border: 1px solid #b42318; border-radius: 7px; background: #b42318; color: white; padding: 10px 16px; cursor: pointer; font: inherit; }
.danger-button:disabled { opacity: .45; cursor: default; }
.danger-text { color: #b42318; }
.cleanup-search-label { display: block; margin-bottom: 8px; }
#cleanup-search { width: 100%; border: 1px solid #dce5e9; border-radius: 7px; padding: 10px 12px; font: inherit; }
.cleanup-selection { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 20px 0 12px; }
.cleanup-table { max-height: 360px; overflow: auto; border: 1px solid #dce5e9; border-radius: 8px; }
.cleanup-table table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.cleanup-table th { position: sticky; top: 0; background: #f4f8f6; }
.cleanup-table td, .cleanup-table th { padding: 10px 12px; border-bottom: 1px solid #e8eeec; white-space: nowrap; }
.cleanup-phone-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 180px; overflow: auto; margin-top: 16px; }
.cleanup-phone-list span { padding: 4px 8px; background: #f1f6f3; border-radius: 5px; font-variant-numeric: tabular-nums; }

/* Compact dialogs: one clear action, short guidance, stable scrolling. */
.modal { width: 480px; max-height: min(90vh, 860px); }
.modal.wide { width: 800px; }
.modal>header { padding: 20px 24px 16px; flex-shrink: 0; }
.modal>header h2 { font-size: 18px; line-height: 1.5; }
.modal>header p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; }
.modal-body { padding: 20px 24px; overscroll-behavior: contain; }
.modal-body>.muted { font-size: 12px; line-height: 1.7; }
.modal-footer { padding: 12px 24px; background: #fff; gap: 8px; }
.modal-footer button { min-height: 36px; }
.modal .form-grid { gap: 16px; }
.modal .form-field textarea { min-height: 72px; }
.modal .form-error:not([hidden]) { flex-basis: 100%; margin: 0 0 8px; }
.dialog-help { margin-top: 10px; font-size: 12px; color: #687b73; line-height: 1.7; }
.dialog-help summary { cursor: pointer; width: fit-content; }
.dialog-help p { margin: 8px 0 0; }
#import-text { min-height: 130px; }
.import-file { padding: 12px; background: #f6f9f7; border-radius: 8px; }
.import-file label { font-size: 12px; }
.cleanup-impact { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; margin: 0 0 16px; padding: 16px; background: #f5f8f6; border-radius: 8px; }
.cleanup-impact dt { font-size: 12px; color: #6b7b73; }
.cleanup-impact dd { margin: 7px 0 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
@media(max-width:600px) {
 .modal>header, .modal-body { padding: 16px; }
 .modal-footer { padding: 12px 16px; }
 .modal:has(#customer-form) { width: 100%; border-radius: 0; }
 .cleanup-impact { padding: 12px; gap: 8px; }
 .cleanup-impact dd { font-size: 16px; }
}
