/* Compact operational surfaces; full-size controls remain in forms and dialogs. */
.cm-workspace .cm-workspace-header{min-height:64px;padding-block:10px}
.cm-workspace .cm-workspace-inner{padding:20px 28px 0}
.cm-workspace .cm-workspace-heading{padding-bottom:16px}
.cm-workspace .cm-workspace-heading>.eyebrow{display:none}
.cm-workspace .cm-workspace-heading h1{font-size:25px;line-height:1.3;margin:0}
.cm-workspace .cm-workspace-heading .lead{font-size:13px;line-height:1.6;margin:6px 0 0;max-width:820px}
.cm-workspace .workspace-head{margin-bottom:18px}
.cm-workspace .cm-workspace-footer{margin-top:24px}
.cm-workspace .compact-field{max-width:none}
.cm-workspace .cm-compact-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.cm-workspace .cm-compact-toolbar>.field:first-child{flex:1;min-width:160px}
.cm-workspace .cm-compact-toolbar>.field:nth-child(2){flex:0 1 180px}
.cm-workspace .cm-compact-toolbar .button,.cm-workspace .cm-compact-toolbar .button-secondary{padding-inline:15px}
.cm-workspace .cm-live-status:empty{display:none}
.cm-workspace .cm-live-status{margin:4px 0;font-size:11px;min-height:0}
.cm-workspace .support-count-row{margin:0 0 8px;line-height:1.4;gap:12px;font-size:11px}
.cm-workspace .support-count-row p{margin:0;font-size:11px}
.cm-workspace .cm-compact-table{table-layout:auto!important;min-width:0}
.cm-workspace .cm-compact-table th{padding:10px 14px;font-size:10px;font-weight:600;letter-spacing:0;white-space:nowrap;width:auto!important}
.cm-workspace .cm-compact-table td{padding:10px 14px;vertical-align:middle;font-size:12px;line-height:1.5;min-width:0;white-space:nowrap}
.cm-workspace .cm-compact-table td strong{font-size:12px;font-weight:600}
.cm-workspace .cm-compact-table td small{display:block;font-size:10px;color:#718174;margin-top:2px}
.cm-workspace .cm-compact-table .cm-email{display:block;max-width:36ch;white-space:normal;overflow-wrap:anywhere;line-height:1.5;text-align:start}
.cm-workspace .cm-compact-table .status-pill{padding:3px 7px;font-size:10px;line-height:1.4;min-height:0;border-radius:4px;gap:4px;white-space:nowrap}
.cm-workspace .cm-compact-table .status-dot{width:5px;height:5px;flex:0 0 5px}
.cm-workspace .cm-actions-column{width:88px!important;text-align:end}
.cm-row-tools{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.cm-workspace .cm-icon-button,.cm-workspace .cm-compact-table .copy-config-button{width:32px;min-width:32px;height:32px;min-height:32px;flex:0 0 32px;padding:7px;border-radius:5px}
.cm-workspace .cm-icon-button .cm-icon,.cm-workspace .copy-config-button .cm-icon{width:16px;height:16px;flex-basis:16px}
.cm-workspace .manual-access-form{margin:0;min-width:0}
.cm-workspace .manual-access-toggle{padding:0;min-width:0;min-height:30px;gap:0;margin:0;display:inline-flex;align-items:center}
.cm-workspace .manual-access-toggle>span{width:34px;height:20px}
.cm-workspace .manual-access-toggle>span:after{width:14px;height:14px;top:3px}
.cm-workspace .seller-admin-summary{gap:12px;padding-bottom:0;margin-bottom:18px}
.cm-workspace .seller-admin-summary>article{padding:12px 16px;gap:4px;border-radius:6px;min-height:0;box-shadow:none}
.cm-workspace .seller-admin-summary>article>span{font-size:11px}
.cm-workspace .seller-admin-summary strong{font-size:23px}
.cm-workspace .cm-add-seller{display:block;border:0;border-radius:0;padding:0;margin-bottom:18px}
.cm-add-seller>summary{cursor:pointer;color:var(--teal);font-size:13px;font-weight:650;padding:8px 0}
.cm-add-seller>.seller-muted{font-size:12px;margin:8px 0}
.cm-add-seller .seller-search-form{max-width:680px}
.cm-workspace .cm-add-seller .seller-search-form .field{max-width:none}
.cm-admin-dialog{width:min(650px,calc(100vw - 32px));max-height:calc(100svh - 48px);border:1px solid var(--line);border-radius:8px;padding:28px;background:#fff;box-shadow:0 20px 80px #182c2b33;overflow:auto;color:var(--ink)}
.cm-admin-dialog::backdrop{background:#132b294d;backdrop-filter:blur(2px)}
.cm-admin-dialog h2{font-size:20px;line-height:1.5;padding-inline-end:24px;overflow-wrap:anywhere;margin-bottom:18px}
.cm-admin-dialog .seller-muted{font-size:12px}
.cm-modal-close{position:absolute;inset-inline-end:12px;top:12px;width:34px;height:34px;display:grid;place-items:center;padding:7px;background:#f3f7f4;border:1px solid var(--line);border-radius:5px}
.cm-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid var(--line)}
.cm-detail-facts dt{font-size:11px;color:#718174;margin-bottom:4px}
.cm-detail-facts dd{font-size:13px;margin:0;overflow-wrap:anywhere}
.cm-management-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cm-management-actions form{margin:0}
.cm-admin-dialog .seller-update-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:center}
.cm-admin-dialog .seller-update-form>small{grid-column:1/-1;line-height:1.7;font-size:12px}
.cm-admin-dialog .seller-update-form>button{justify-self:start}
.cm-admin-dialog .seller-price-editor{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.cm-admin-dialog .seller-price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.cm-admin-dialog .seller-price-fields small{font-size:11px}
.cm-workspace .seller-account-bar{padding-bottom:16px;gap:28px;margin-bottom:12px}
.cm-workspace .seller-account-bar>div>span{font-size:11px}
.cm-workspace .seller-account-bar>div>strong{font-size:23px}
.cm-workspace .seller-page-content{padding-top:12px}
.seller-calendar-note{font-size:10px;color:#718174;margin:8px 0 0;line-height:1.6}
.cm-workspace .seller-search{flex-wrap:wrap;gap:10px;margin:0 0 12px}
.customer-filter-tabs{display:flex;align-items:center;gap:5px;border:0;margin:0;padding:0;flex:1 1 100%;min-width:0;overflow-x:auto}
.customer-filter-option{position:relative;margin:0;flex:0 0 auto;cursor:pointer}
.customer-filter-option input{position:absolute;opacity:0;width:1px;height:1px}
.customer-filter-option>span{display:flex;align-items:center;gap:8px;white-space:nowrap;padding:8px 11px;border-radius:5px;font-size:12px;color:#64796a;border:1px solid transparent}
.customer-filter-option b{font-size:10px;font-weight:600;padding:1px 5px;border-radius:3px;background:#eaf0eb;color:#5a7561;min-width:20px;text-align:center}
.customer-filter-option input:checked+span{background:#e7f4ed;color:#176747;border-color:#cce5d6;font-weight:650}
.customer-filter-option input:focus-visible+span{outline:2px solid var(--teal);outline-offset:2px}
.customer-history-link{display:inline;background:none;border:0;padding:0;color:#176d60;font-size:12px;font-weight:650;line-height:1.5;text-align:start;overflow-wrap:anywhere;max-width:100%;min-height:0;white-space:normal}
.customer-history-link:hover{text-decoration:underline;text-underline-offset:3px}
.cm-workspace .seller-customer-table th,.cm-workspace .seller-customer-table td{padding:11px 13px}
.cm-workspace .seller-customer-table td strong{font-size:12px}
.cm-workspace .seller-customer-table small,.cm-workspace .seller-customer-table .seller-identity>span{font-size:10px}
.seller-customer-table .seller-status{font-size:10px;padding:3px 7px;border-radius:4px;line-height:1.5;white-space:nowrap}
.customer-history-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100svh - 48px)}
.customer-history-dialog [data-history-customer]{font-size:19px;overflow-wrap:anywhere}
.customer-timeline{list-style:none;margin:20px 0 0;padding:0;max-height:55svh;overflow:auto}
.customer-timeline>li{position:relative;border-inline-start:2px solid #dbe9e1;padding:0 0 22px 20px;margin-inline-start:5px}
html[dir=rtl] .customer-timeline>li{padding:0 20px 22px 0}
.customer-timeline>li:before{content:'';position:absolute;inset-inline-start:-5px;top:5px;width:8px;height:8px;border-radius:2px;background:var(--teal)}
.customer-timeline>li[data-event-kind=refunded]:before{background:#c49237}
.customer-timeline>li>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.customer-timeline strong{font-size:13px}
.customer-timeline time{font-size:11px;color:#718174;white-space:nowrap}
.customer-timeline p{font-size:12px;margin:6px 0;color:#617564;white-space:pre-wrap;overflow-wrap:anywhere}
.customer-timeline small{display:block;font-size:11px;color:#718174;margin-top:4px}
.customer-timeline bdi{font-size:12px;font-weight:650}
.cm-workspace .report-view-switcher{padding:4px;gap:4px;margin-bottom:12px;border-radius:6px;box-shadow:none}
.cm-workspace .report-view-tab{min-height:40px;padding:10px 14px;display:block;text-align:center;font-size:12px;border-radius:4px}
.cm-workspace .report-view-tab small{display:none}
.cm-workspace .report-filter-panel{margin-bottom:18px;border-radius:6px;box-shadow:none}
.cm-workspace .report-filter-panel>summary{padding:12px 16px;min-height:44px}
.cm-workspace .report-section-heading{margin:0 0 14px;gap:16px}
.cm-workspace .report-section-heading h3{font-size:16px;margin:0 0 4px}
.cm-workspace .report-section-heading p{font-size:12px;margin:0;color:#718174}
.cm-workspace .report-section-block{padding-block:20px}
.cm-workspace .report-metric-grid{gap:12px}
.cm-workspace .report-metric-grid .metric-tile{padding:16px;min-height:96px;box-shadow:none;border-radius:6px;border-top-width:2px}
.cm-workspace .report-metric-grid .metric-tile strong{font-size:27px}
.cm-workspace .metric-tile>span,.cm-workspace .metric-tile>small{font-size:11px}
.cm-workspace .report-primary-charts,.cm-workspace .report-secondary-charts{gap:16px}
.cm-workspace .chart-card{padding:20px;border:1px solid var(--line);box-shadow:none;border-radius:8px;min-height:330px;overflow:hidden}
.cm-workspace .chart-head{align-items:flex-start;gap:14px;margin-bottom:8px}
.cm-workspace .chart-head h2{font-size:17px;line-height:1.4;margin:0 0 4px}
.cm-workspace .chart-head p{font-size:11px;color:#718174;margin:0;line-height:1.6}
.cm-workspace .chart-head>span{border:0;background:transparent;color:#718174;font-size:10px;padding:0;white-space:nowrap}
.cm-workspace .chart-canvas{position:relative;height:270px;min-height:270px;width:100%}
.cm-workspace .chart-canvas>canvas{max-width:100%;outline-offset:2px}
.chart-period-controls{display:flex;gap:3px;border:1px solid var(--line);border-radius:5px;padding:3px;background:#fff;flex:0 0 auto}
.chart-period-controls button{border:0;background:transparent;color:#718174;padding:6px 10px;min-height:30px;font-size:11px;border-radius:3px;white-space:nowrap}
.chart-period-controls button[aria-pressed=true]{background:#e8f4ef;color:#176747;font-weight:650}
.cm-workspace .report-signal{padding:13px;box-shadow:none;border-radius:6px}
.cm-workspace .report-signal strong{font-size:23px}
.cm-workspace .report-signal small,.cm-workspace .report-signal span{font-size:10px}
.cm-mobile-only{display:none!important}
.cm-subnav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 18px;border-bottom:1px solid var(--line);padding-bottom:10px}
.cm-subnav a{display:flex;align-items:center;gap:8px;font-size:12px;padding:9px 12px;border-radius:5px;color:#607767}
.cm-subnav a:hover,.cm-subnav a[aria-current]{color:#176747;background:#e7f4ed}
.cm-workspace .cm-admin-customer-search{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,.55fr) minmax(145px,.4fr) auto}
.cm-workspace .cm-admin-customer-search .field{min-width:0;margin:0}
.cm-admin-customer-search .customer-filter-tabs{grid-column:1/-1;flex-wrap:wrap;overflow:visible}
.cm-admin-customers-index{min-width:0}
.cm-admin-customers-index .user-table-wrap{max-width:100%;overflow-x:auto}
.cm-workspace .cm-admin-customer-table .cm-email{max-width:30ch}
.cm-customer-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.cm-customer-detail-heading>div{min-width:0}
.cm-customer-detail-heading h2{font-size:20px;line-height:1.5;overflow-wrap:anywhere;margin:0}
.cm-customer-detail-heading p{margin:4px 0 0;font-size:12px}
.cm-customer-detail-heading>button{flex-shrink:0}
.cm-admin-customer-detail>.cm-detail-facts{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1100px}
.cm-admin-subscription-action{display:flex;align-items:flex-end;gap:12px;max-width:680px;margin:28px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.cm-admin-subscription-action>.field{flex:1;margin:0;min-width:0}
@media(max-width:1100px){
 .cm-workspace .plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:761px) and (max-width:1100px){
 .cm-workspace .cm-admin-customer-search{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cm-admin-customer-search>.field:first-child{grid-column:1/-1}
 .cm-admin-customer-search>button{justify-self:start}
}
@media(max-width:760px){
 .cm-workspace .cm-workspace-inner{padding:18px 15px 74px}
 .cm-workspace .cm-workspace-heading{padding-bottom:14px}
 .cm-workspace .cm-workspace-heading h1{font-size:22px}
 .cm-workspace .cm-workspace-header{min-height:64px;height:64px}
 .cm-workspace .cm-workspace-heading .lead{font-size:12px}
 .cm-workspace .cm-compact-toolbar{flex-wrap:wrap;gap:8px}
 .cm-workspace .cm-compact-toolbar>.field:first-child{flex:1 1 100%}
 .cm-workspace .cm-compact-toolbar>.field:nth-child(2){flex:1;min-width:130px}
 .cm-workspace .cm-compact-toolbar .button,.cm-workspace .cm-compact-toolbar .button-secondary{font-size:12px;padding-inline:12px}
 .cm-workspace .cm-compact-table th,.cm-workspace .cm-compact-table td{padding:10px 8px}
 .cm-workspace .cm-compact-table .cm-email{font-size:11px;max-width:none}
 .cm-workspace .cm-compact-table{width:100%;table-layout:fixed!important}
 .cm-workspace .cm-compact-table .cm-icon-button,.cm-workspace .cm-compact-table .copy-config-button{width:40px;min-width:40px;flex-basis:40px;height:40px;min-height:40px}
 .cm-workspace .cm-user-list .cm-compact-table th:nth-child(3),.cm-workspace .cm-user-list .cm-compact-table td:nth-child(3),.cm-workspace .cm-user-list .cm-compact-table th:nth-child(4),.cm-workspace .cm-user-list .cm-compact-table td:nth-child(4),.cm-workspace .cm-user-list .cm-compact-table th:nth-child(5),.cm-workspace .cm-user-list .cm-compact-table td:nth-child(5){display:none}
 .cm-workspace .cm-user-list .cm-compact-table th:first-child{width:48%!important}
 .cm-workspace .cm-user-list .cm-compact-table th:last-child{width:28%!important}
 .cm-workspace .cm-user-list .copy-config-button{display:none}
 .cm-workspace .seller-admin-table th:nth-child(3),.cm-workspace .seller-admin-table td:nth-child(3){display:none}
 .cm-workspace .seller-admin-table th:first-child{width:43%!important}
 .cm-workspace .seller-admin-table th:last-child{width:16%!important}
 .cm-workspace .seller-admin-table td{font-size:11px;white-space:normal;overflow-wrap:anywhere}
 .cm-workspace .seller-admin-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .cm-workspace .seller-admin-summary>article{padding:10px;gap:3px}
 .cm-workspace .seller-admin-summary>article>span{font-size:9px}
 .cm-workspace .seller-admin-summary strong{font-size:20px}
 .cm-admin-dialog{padding:24px 20px;max-height:calc(100svh - 24px)}
 .cm-admin-dialog h2{font-size:17px}
 .cm-admin-dialog .seller-update-form{grid-template-columns:minmax(0,1fr)}
 .cm-admin-dialog .seller-price-fields{gap:10px}
 .cm-detail-facts{gap:14px}
 .cm-workspace .seller-account-bar{gap:15px;padding-bottom:12px}
 .cm-workspace .seller-account-bar>div>strong{font-size:21px}
 .customer-filter-option>span{font-size:11px;padding:9px 8px;gap:5px;min-height:40px}
 .customer-filter-tabs{gap:2px;flex-wrap:wrap;overflow:visible}
 .cm-workspace .seller-search .seller-search-input{flex:1;min-width:160px}
 .cm-workspace .seller-customer-table{table-layout:fixed;min-width:0;width:100%}
 .cm-workspace .seller-customer-table th,.cm-workspace .seller-customer-table td{padding:10px 8px}
 .cm-workspace .seller-customer-table th:first-child{width:48%}
 .cm-workspace .seller-customer-table th:last-child{width:18%}
 .cm-workspace .seller-customer-table th:nth-child(3),.cm-workspace .seller-customer-table td:nth-child(3),.cm-workspace .seller-customer-table th:nth-child(4),.cm-workspace .seller-customer-table td:nth-child(4){display:none}
 .cm-workspace .seller-customer-table [data-guest-delivery]{display:none}
 .cm-workspace .seller-customer-table .seller-row-buttons .button-secondary{width:40px;height:40px;min-height:40px}
 .customer-history-link{font-size:11px}
 .cm-mobile-only{display:block!important}
 .customer-timeline>li>div{align-items:flex-start;flex-wrap:wrap;gap:4px}
 .customer-timeline time{font-size:10px}
 .cm-workspace .report-section-block{padding-block:16px}
 .cm-workspace .chart-card{padding:16px 12px;min-height:310px}
 .cm-workspace .chart-canvas{height:250px;min-height:250px}
 .cm-workspace .chart-head h2{font-size:15px}
 .cm-workspace .report-section-heading{flex-wrap:wrap;gap:10px}
 .chart-period-controls button{padding:8px 10px;min-height:36px}
 .cm-workspace .report-view-tab{padding:10px 6px;min-height:42px;font-size:11px}
 .cm-workspace .cm-admin-customer-search{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cm-admin-customer-search>.field:first-child{grid-column:1/-1}
 .cm-workspace .cm-admin-customer-table th:nth-child(2),.cm-workspace .cm-admin-customer-table td:nth-child(2),.cm-workspace .cm-admin-customer-table th:nth-child(4),.cm-workspace .cm-admin-customer-table td:nth-child(4),.cm-workspace .cm-admin-customer-table th:nth-child(5),.cm-workspace .cm-admin-customer-table td:nth-child(5){display:none}
 .cm-workspace .cm-admin-customer-table th:first-child{width:48%!important}
 .cm-workspace .cm-admin-customer-table th:last-child{width:18%!important}
 .cm-customer-detail-heading{align-items:flex-start;flex-wrap:wrap}
 .cm-customer-detail-heading h2{font-size:18px}
 .cm-admin-customer-detail>.cm-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cm-admin-subscription-action{flex-wrap:wrap}
 .cm-admin-subscription-action>.field{flex:1 1 100%}
}
.cm-workspace .monthly-quota {
 display:grid;
 grid-template-columns:minmax(0,1fr);
 gap:10px;
 padding:18px 20px;
 min-width:0;
}
.cm-workspace .monthly-quota h3 {margin:0;font-size:18px;line-height:1.5;overflow-wrap:normal}
.monthly-quota-facts {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;min-width:0}
.monthly-quota-facts>strong {font-size:16px;line-height:1.5}
.cm-workspace .monthly-quota small {text-align:start;white-space:normal;line-height:1.6}
.monthly-quota details {min-width:0;border-top:1px solid var(--soft-line);padding-top:4px}
.monthly-quota summary {cursor:pointer;padding-block:10px;min-height:44px;line-height:1.5;color:var(--ink);font-weight:700}
.monthly-quota summary:focus-visible {outline:2px solid var(--brand);outline-offset:2px}
.cm-workspace .monthly-quota details p {margin:0 0 4px;max-width:90ch;font-size:13px;line-height:1.8;overflow-wrap:break-word}
