.customer-shell,.customer-dialog{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:14px;line-height:1.5;color:#f5f3ed;color-scheme:dark}
.customer-shell{min-height:100vh;display:flex;flex-direction:column;background:#0d0d0d}
.customer-shell *,.customer-dialog *{box-sizing:border-box}
.customer-shell button,.customer-shell input,.customer-shell select,.customer-dialog button,.customer-dialog input,.customer-dialog select{font:inherit}
.customer-shell [hidden],.customer-dialog [hidden]{display:none!important}
.customer-shell p,.customer-shell h2,.customer-dialog p{margin:0}
.customer-shell a,.customer-dialog a{color:inherit;text-decoration:none}
.cp-icon{display:inline-block;vertical-align:middle;flex-shrink:0}
.customer-shell .cp-header{border-bottom:1px solid #2e2e2e;background:rgb(18 18 20/.6);position:static}
.cp-header-inner{max-width:1024px;width:100%;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px}
.cp-logo{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;background:#7c3aed;color:#fff;flex-shrink:0}
.cp-brand{line-height:1.25}.cp-brand>div{font-weight:600;font-size:14px}.cp-brand small{display:block;font-size:11px;color:#a39e92}
.customer-shell .cp-nav{display:flex;gap:4px;flex:initial;order:initial;flex-basis:auto;overflow:visible;align-items:initial}
.customer-shell .cp-nav a{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:6px 12px;font-size:14px;line-height:20px;font-weight:500;color:#c2bdb0;white-space:nowrap;transition:color .15s,background-color .15s}
.customer-shell .cp-nav a:hover{color:#f5f3ed;background:transparent}.customer-shell .cp-nav a.cp-active{background:#3a3a3a;color:#f5f3ed}
.cp-header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.customer-shell .cp-main{width:100%;max-width:1024px;flex:1;margin:0 auto;padding:16px 12px;min-width:0}
.cp-stack{display:flex;flex-direction:column;gap:16px}
.cp-card{border:1px solid #2e2e2e;border-radius:12px;background:#121214;box-shadow:0 1px 3px 0 rgb(0 0 0/.3),0 1px 2px -1px rgb(0 0 0/.3)}
.cp-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #2e2e2e;padding:12px 16px}
.customer-shell .cp-card-head h2{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;line-height:20px;color:#f5f3ed}
.cp-subtitle{font-size:11px;line-height:16.5px;color:#a39e92}
.cp-card-body{padding:16px}.cp-overflow{overflow:hidden}
.cp-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap}
.customer-shell .cp-btn,.customer-dialog .cp-btn{border:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;border-radius:8px;background:transparent;color:#d8d3c6;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;transition:background-color .15s,color .15s;cursor:pointer}
.customer-shell .cp-btn:hover,.customer-dialog .cp-btn:hover{background:#2e2e2e;color:#f5f3ed}
.customer-shell .cp-btn.cp-primary,.customer-dialog .cp-btn.cp-primary{background:#7c3aed;color:#fff}
.customer-shell .cp-btn.cp-primary:hover,.customer-dialog .cp-btn.cp-primary:hover{background:#8b5cf6}
.customer-shell .cp-btn.cp-primary:active,.customer-dialog .cp-btn.cp-primary:active{background:#6d28d9}
.customer-shell .cp-btn.cp-small,.customer-dialog .cp-btn.cp-small{padding:4px 10px;font-size:12px;line-height:16px}
.customer-shell .cp-btn:disabled,.customer-dialog .cp-btn:disabled{opacity:.5;cursor:not-allowed}
.customer-shell .cp-btn.cp-danger,.customer-dialog .cp-btn.cp-danger{color:#fda4af}
.cp-btn:focus-visible{outline:2px solid rgb(139 92 246/.6);outline-offset:2px}
.cp-badge{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;border-radius:6px;padding:2px 8px;font-size:12px;line-height:16px;font-weight:500;background:#2e2e2e;color:#d8d3c6}
.cp-badge.cp-green{background:#10b9811a;color:#34d399}.cp-badge.cp-amber{background:#f59e0b1a;color:#fbbf24}.cp-badge.cp-purple{background:#a78bfa1a;color:#a78bfa}.cp-badge.cp-red{background:#f43f5e1a;color:#fb7185}
.cp-text-green{color:#6ee7b7}.cp-text-amber{color:#fcd34d}.cp-text-red{color:#fda4af}.cp-text-purple{color:#c4b5fd}.cp-muted{color:#a39e92}.cp-small-text{font-size:12px!important;line-height:16px}.cp-tiny{font-size:11px;line-height:16.5px}
.customer-shell .cp-field,.customer-dialog .cp-field{display:block;width:100%;height:auto;min-height:0;border:1px solid #3a3a3a;border-radius:8px;background:#0d0d0d;padding:8px 12px;font-size:14px;line-height:20px;color:#f5f3ed}
.cp-field::placeholder{color:#a39e92}.cp-field:focus{outline:2px solid rgb(139 92 246/.45);outline-offset:0}.cp-field:disabled{opacity:.5;cursor:not-allowed}
.customer-shell .cp-field.cp-compact,.customer-dialog .cp-field.cp-compact{padding-top:4px;padding-bottom:4px}
.cp-label{display:block;margin:0 0 4px;font-size:12px;line-height:16px;font-weight:500;color:#c2bdb0}
.cp-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.cp-label-row .cp-label{margin:0}
.cp-hint{font-size:11px;line-height:16.5px;color:#a39e92;margin-top:2px!important}.cp-hint a{color:#c4b5fd}.cp-hint a:hover{text-decoration:underline}.cp-hint.cp-text-red{color:#fda4af}.cp-hint.cp-text-green{color:#6ee7b7}.cp-hint.cp-text-amber{color:#fcd34d}
.cp-stats{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 16px;font-size:14px;line-height:20px}
.cp-stats strong{font-weight:600}.cp-stats>.cp-btn:last-child{margin-left:auto}
.cp-cost-label{display:flex;align-items:center;gap:4px;font-size:11px;color:#a39e92;white-space:nowrap}
.customer-shell .cp-w96{width:96px}.customer-shell .cp-w128{width:128px}.customer-shell .cp-w144{width:144px}.customer-shell .cp-w240{width:240px}
.cp-order-tabs{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #2e2e2e;padding:12px 16px}
.cp-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0 16px 12px}
.cp-order-card>.cp-card-head .cp-subtitle{line-height:24px}
.customer-shell .cp-filters .cp-field.cp-compact{padding-top:8px;padding-bottom:8px}
.cp-order-connections{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border-top:1px solid #2e2e2e;padding:8px 16px}
.cp-order-connections>span{display:flex;align-items:center;gap:4px;margin-right:4px;font-size:11px;line-height:16.5px;color:#a39e92}
.customer-shell .cp-connection-filter-button{border:1px solid #3a3a3a;border-radius:6px;padding:4px 8px;background:transparent;color:#c2bdb0;font-size:11px;line-height:16.5px;transition:color .15s,background-color .15s}
.customer-shell .cp-connection-filter-button:hover{color:#e9e5da}.customer-shell .cp-connection-filter-button.cp-selected{border-color:rgb(139 92 246/.6);background:rgb(139 92 246/.15);color:#ddd6fe}
.cp-empty-wrap{padding:24px}.cp-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:56px 0;text-align:center}
.cp-empty-icon{padding:12px;border-radius:999px;background:#2e2e2e;color:#a39e92;display:grid;place-items:center}
.cp-empty p{font-size:14px;line-height:20px;font-weight:500;color:#e9e5da}.cp-empty p.cp-empty-desc{font-size:12px;line-height:16px;font-weight:400;margin-top:4px;color:#a39e92}
.cp-order{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:8px 16px;border-top:1px solid #2e2e2e}
.cp-order:hover{background:rgb(46 46 46/.2)}.cp-order-account{min-width:200px;flex:1}.cp-order-account>.cp-btn{padding:0!important;font-size:14px!important;text-align:left;justify-content:flex-start;color:#f5f3ed;font-weight:500;background:transparent!important}.cp-order-account>.cp-btn:hover{color:#c4b5fd}
.cp-order-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:2px;font-size:11px;line-height:16.5px;color:#a39e92}.cp-order-status{width:144px;flex-shrink:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.cp-order-countdown{width:100%;font-size:11px;line-height:16.5px}.cp-order-cost{text-align:right;font-size:11px;line-height:1.25}.cp-order-expanded{width:100%;display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid #2e2e2e;padding-top:8px;font-size:11px}
.cp-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px;border-top:1px solid #2e2e2e;font-size:11px;color:#a39e92}
.cp-connection-list{display:flex;flex-direction:column;gap:8px}.cp-connection{border:1px solid #3a3a3a;border-radius:6px;padding:8px 12px}.cp-disabled-row{border-color:#2e2e2e;opacity:.7}.cp-connection-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}.cp-connection-top>strong{font-size:14px;font-weight:600}.cp-connection-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.cp-connection-meta{margin-top:4px;display:flex;flex-wrap:wrap;gap:2px 16px;font-size:11px;line-height:16.5px;color:#a39e92;overflow-wrap:anywhere}
.cp-announcements{position:relative}#customer-notice{position:absolute;right:0;top:100%;z-index:40;margin-top:8px;width:min(92vw,384px);border:1px solid #3a3a3a;border-radius:12px;background:#121214;box-shadow:0 10px 30px -5px rgb(0 0 0/.5);overflow:hidden}.cp-notice-head{padding:8px 12px;border-bottom:1px solid #2e2e2e;font-weight:600}.cp-notice-empty{padding:32px 16px;text-align:center;font-size:12px;color:#a39e92}
dialog.customer-dialog{position:fixed;inset:0;transform:none;margin:0;width:100%;height:100%;max-width:none;max-height:none;padding:16px;overflow-y:auto;border:0;border-radius:0;background:transparent;color:#f5f3ed;box-shadow:none}
dialog.customer-dialog .cp-dialog-card{margin:8vh auto 0;width:100%;max-width:512px;border:1px solid #2e2e2e;border-radius:12px;background:#121214;box-shadow:0 10px 30px -5px rgb(0 0 0/.5);overflow:hidden}
dialog.customer-dialog::backdrop{background:rgb(0 0 0/.6);backdrop-filter:blur(4px)}
.customer-dialog .dialog-head{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2e2e2e;gap:12px}.customer-dialog .dialog-head h2{font-size:16px;line-height:24px;font-weight:600;margin:0}.customer-dialog .dialog-content{padding:16px}.customer-dialog .dialog-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:12px 16px;border-top:1px solid #2e2e2e}.customer-dialog .dialog-error:empty{display:none}.customer-dialog .dialog-error{font-size:12px;padding:0 16px 12px;color:#fda4af}.cp-close{padding:0;border:0;background:transparent;color:#a39e92;display:grid;place-items:center;cursor:pointer}.cp-close:hover{color:#e9e5da}
.cp-form-stack{display:flex;flex-direction:column;gap:16px}.cp-form-stack-sm{display:flex;flex-direction:column;gap:8px}.cp-inset{border:1px solid #3a3a3a;border-radius:6px;padding:8px 12px}.cp-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cp-check{display:flex;align-items:center;gap:8px;font-size:14px;color:#d8d3c6}.cp-check input,.cp-groups input{margin:0;accent-color:#7c3aed}.cp-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.cp-groups{display:flex;flex-wrap:wrap;gap:2px 16px;border:1px solid #3a3a3a;border-radius:6px;padding:8px}.cp-groups label{display:flex;align-items:center;gap:6px;font-size:14px;color:#e9e5da}
.cp-table-scroll{overflow-x:auto}.customer-shell .cp-table{width:100%;border-collapse:collapse;font-size:14px;line-height:20px}.customer-shell .cp-table th{font-size:11px;line-height:16.5px;font-weight:400;color:#a39e92;background:transparent;padding:8px 12px;border-bottom:1px solid #2e2e2e;text-align:right}.customer-shell .cp-table td{padding:10px 12px;border-bottom:1px solid #2e2e2e;text-align:right}.customer-shell .cp-table th:first-child,.customer-shell .cp-table td:first-child{padding-left:16px;text-align:left}.cp-table small{display:block;font-size:11px;color:#a39e92}.cp-quota-table{min-width:720px}.cp-no-products{padding:20px}.cp-usage-note{padding:8px 16px;border-bottom:1px solid #2e2e2e;font-size:11px;line-height:16.5px;color:#a39e92}.cp-usage-row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 16px;padding:12px 16px;border-bottom:1px solid #2e2e2e}.cp-usage-email{min-width:240px;flex:1}.cp-usage-email strong{font-size:14px;font-weight:500}
.cp-inline{display:flex;align-items:center;gap:8px}.cp-wrap{flex-wrap:wrap}.cp-spaced{margin-top:12px!important}.customer-shell .cp-auto{width:auto}.cp-grow{flex:1;min-width:192px}.cp-order-form-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}.cp-product-picker{min-width:190px;flex:1}.cp-target-picker{min-width:170px;flex:1}.cp-rule-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}.customer-shell .cp-rule-query{max-width:320px}.cp-rule-form{display:grid;align-items:end;gap:8px;border:1px solid rgb(139 92 246/.4);border-radius:6px;background:rgb(139 92 246/.05);padding:12px}
.cp-customer-stack{gap:12px}.customer-shell .cp-customer-table{min-width:720px}.customer-shell .cp-customer-table th,.customer-shell .cp-customer-table td{text-align:left;padding:8px 12px;vertical-align:top}.customer-shell .cp-customer-table th:last-child,.customer-shell .cp-customer-table td:last-child{text-align:right}.cp-customer-actions{display:flex;justify-content:flex-end;align-items:center;gap:4px}.cp-access-code{overflow-wrap:anywhere;padding:12px;background:#0d0d0d;border:1px solid #3a3a3a;border-radius:6px;margin:12px 0!important;font-size:16px}
.customer-shell.customer-shop{display:block;max-width:1024px;margin:0 auto;padding:24px 16px;font-size:16px;line-height:24px}
.customer-shell.customer-shop>*+*{margin-top:20px}
.cp-shop-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.customer-shop .cp-shop-header h1{font-size:20px;line-height:28px;font-weight:600;margin:0}
.customer-shop .cp-shop-message{border:1px solid #8b5cf6;border-radius:4px;padding:12px;font-size:14px;line-height:20px}
.customer-shop .cp-shop-closed{font-size:16px;line-height:24px}
.customer-shop .cp-shop-empty-products{padding:24px 0;text-align:center;font-size:14px;line-height:20px;color:#c2bdb0}
.cp-shop-tabs,.cp-shop-actions{display:flex;flex-wrap:wrap;gap:8px}
.cp-shop-tab-count{margin-left:8px;font-size:12px;line-height:16px;opacity:.7}
.cp-shop-products{display:grid;grid-template-columns:1fr;gap:12px}
.cp-shop-section{padding:16px}
.customer-shop .cp-shop-section>*+*{margin-top:12px}
.customer-shop .cp-shop-section h2{font-size:16px;line-height:24px;font-weight:600;margin:0}
.customer-shop .cp-shop-price{font-size:24px;line-height:32px}
.cp-shop-price span{margin-left:8px;font-size:12px;line-height:16px;color:#c2bdb0}
.customer-shop .cp-shop-text,.customer-shop .cp-shop-declaration,.customer-shop .cp-shop-check{font-size:14px;line-height:20px}
.customer-shop .cp-shop-declaration{white-space:pre-wrap;color:#d8d3c6}
.cp-shop-bold{font-weight:600}.cp-shop-ink400{color:#c2bdb0}
.customer-shop .cp-shop-muted{font-size:12px;line-height:16px;color:#c2bdb0}
.cp-shop-check{display:flex;align-items:flex-start;gap:8px}.cp-shop-check input{margin:3px 0 0;accent-color:#7c3aed}
.customer-shop .cp-shop-lookup{font-size:12px;line-height:16px}
.customer-shop .cp-shop-order,.customer-shop .cp-shop-batch{display:block;width:100%;border:1px solid #3a3a3a;border-radius:4px;padding:12px;background:transparent;text-align:left;font-size:14px;line-height:20px;color:#f5f3ed}
.cp-shop-order span{font-size:12px;line-height:16px;color:#c2bdb0}.cp-shop-validities{font-size:14px;line-height:20px;margin-bottom:0;padding-left:20px}.cp-shop-validities>li+li{margin-top:4px}
@media(min-width:640px){.cp-shop-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.cp-shop-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:640px){.cp-header-inner{padding-left:16px;padding-right:16px}.customer-shell .cp-nav{margin-left:16px}.customer-shell .cp-main{padding:20px 16px}.cp-order-countdown{width:160px}.cp-rule-form{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-span-all{grid-column:1/-1}}
@media(min-width:1024px){.cp-rule-form{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:639px){.cp-card-head{flex-wrap:wrap}.cp-connection-actions{margin-left:0;flex-wrap:wrap}.customer-shell .cp-nav{max-width:100%;flex-wrap:wrap}.cp-cost-label{flex-wrap:wrap}.cp-filters .cp-w240{width:100%}.cp-two{grid-template-columns:1fr}}

/* Real order consumption and progress detail. */
.cp-order-cost{min-width:142px;line-height:1.45}.cp-order-status{width:156px}.cp-order-countdown strong{font-weight:600}
dialog.customer-order-dialog .cp-dialog-card{max-width:768px;margin-top:2vh}.customer-order-dialog .dialog-head{padding:18px 24px}.customer-order-dialog .dialog-head h2{font-size:20px}.customer-order-dialog .dialog-content{padding:22px 24px}.customer-order-dialog .dialog-footer{padding:12px 24px}
.cp-order-detail{font-size:16px;line-height:1.5}.cp-detail-summary,.cp-detail-metrics,.cp-detail-timeline{display:flex;flex-direction:column;gap:14px}.cp-detail-row{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#c2bdb0}.cp-detail-row>div{color:#e9e5da;text-align:right}.cp-detail-row>div.cp-text-green{color:#6ee7b7}.cp-detail-email{overflow-wrap:anywhere;font-weight:600;min-width:0}.cp-detail-row>span,.cp-detail-row>label{flex-shrink:0}.cp-detail-row .cp-badge{font-size:14px;padding:3px 10px}.cp-detail-row strong{font-size:18px;font-weight:500}.cp-detail-row small{font-size:12px}
.cp-detail-progress{border-top:1px solid #2e2e2e;border-bottom:1px solid #2e2e2e;margin:20px 0;display:flex;align-items:center;gap:6px;padding:20px 0}.cp-detail-progress>span{width:36px;height:8px;border-radius:99px;background:#3a3a3a}.cp-detail-progress>span.cp-progress-done{background:#8b5cf6}.cp-detail-progress>small{font-size:12px;color:#a39e92;margin-left:6px}.cp-detail-cost{display:flex;align-items:center;gap:12px}.cp-detail-cost .cp-field{width:168px;text-align:right}.cp-detail-timeline{border-top:1px solid #2e2e2e;border-bottom:1px solid #2e2e2e;padding:18px 0;margin:20px 0 16px;gap:4px;font-size:14px}.cp-detail-privacy{font-size:12px}
@media(max-width:639px){.customer-order-dialog .dialog-content{padding:16px}.customer-order-dialog .dialog-head{padding:14px 16px}.cp-order-detail{font-size:14px}.cp-detail-row{gap:12px;align-items:flex-start}.cp-detail-cost .cp-field{width:112px}.cp-detail-progress>span{width:26px}.cp-detail-progress{flex-wrap:wrap}.cp-order-status{width:auto}.cp-order-cost{margin-left:auto}}
.cp-cancellation-note{padding:14px 16px;border:1px solid #725521;background:#2a2010;border-radius:8px;color:#efd085;font-size:13px}.cp-cancellation-note p{margin:7px 0 0;line-height:1.7}

/* Real replenish rules: compact reference layout, without inactive sample controls. */
.cp-rule-heading,.cp-rule-summary,.cp-rule-bottom,.cp-rule-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}.cp-rule-row{padding:14px 12px;border:1px solid #3a3a3a;border-radius:8px;margin-bottom:10px}.cp-rule-disabled{background:#101012}.cp-rule-heading>strong{font-size:14px;overflow-wrap:anywhere}.cp-rule-actions{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}.cp-rule-summary{margin-top:8px;color:#a39e92;font-size:12px;line-height:1.6}.cp-rule-bottom{margin-top:8px;justify-content:space-between}.cp-rule-form-actions{margin-top:8px}.cp-rule-divider{border-top:1px solid #3a3a3a;padding-top:12px;margin-top:6px;color:#c4b5fd;font-size:12px}.cp-rule-form>.cp-span-all{grid-column:1/-1}.cp-order-status .cp-badge{white-space:normal}.cp-order-status{width:190px}.cp-rule-form input[type=checkbox]{accent-color:#7c3aed}
@media(max-width:639px){.cp-rule-actions{margin-left:0}.cp-rule-bottom{align-items:flex-start}.cp-rule-summary{gap:4px 12px}.cp-order-status{width:auto}}

.cp-rule-drag-handle{border:1px solid #3a3a3a;border-radius:5px;background:transparent;color:#a39e92;font-size:20px;line-height:20px;padding:1px 6px;cursor:grab}.cp-rule-drag-handle:active{cursor:grabbing}.cp-rule-drag-handle:focus-visible{outline:2px solid #8b5cf6;outline-offset:2px}.cp-rule-row.cp-rule-drop-before{border-top:3px solid #a78bfa}.cp-rule-row.cp-rule-drop-after{border-bottom:3px solid #a78bfa}

/* Purchase stays inside the current signed-in workbench. */
dialog.customer-shop-dialog .cp-dialog-card{max-width:1100px;margin:2vh auto}.customer-shop-dialog .dialog-content{padding:8px 20px 20px}.customer-shop-dialog .customer-shell.customer-shop{padding:0;max-width:none}.customer-shop-dialog .cp-shop-products{margin-top:0}.customer-shop-dialog .cp-shop-section{min-width:0}.customer-shop-dialog .cp-shop-lookup{overflow-wrap:anywhere}
@media(max-width:639px){.customer-shop-dialog .dialog-content{padding:8px 12px 16px}.customer-shop-dialog .cp-shop-products{grid-template-columns:1fr}}

.cp-rule-logs{display:flex;flex-direction:column;gap:6px;max-height:60vh;overflow:auto}.cp-rule-log{display:flex;gap:8px;align-items:baseline;font-size:12px;line-height:18px}.cp-rule-log>span:last-child{flex:1;word-break:break-all}
.cp-usage-windows{display:flex;flex-direction:column;gap:3px;margin-top:4px}.cp-usage-chips{display:flex;flex-wrap:wrap;gap:4px}.cp-usage-chips span{border-radius:4px;background:#f1f3f4;color:#6b7280;font-size:10px;line-height:15px;padding:1px 6px;white-space:nowrap}
.cp-usage-row{display:flex;align-items:center;gap:6px;font-size:11px}.cp-usage-label{width:30px;text-align:center;border-radius:4px;font-size:11px;font-weight:600;padding:1px 0}.cp-usage-five{background:#e0e7ff;color:#4338ca}.cp-usage-seven{background:#d1fae5;color:#047857}
.cp-usage-bar{width:44px;height:6px;border-radius:999px;background:#e5e7eb;overflow:hidden;flex-shrink:0}.cp-usage-fill{display:block;height:100%}.cp-usage-green{background:#22c55e}.cp-usage-amber{background:#f59e0b}.cp-usage-red{background:#ef4444}.cp-usage-gray{background:#d1d5db}
.cp-usage-percent{width:34px;text-align:right;font-weight:600;color:#4b5563}.cp-usage-text-amber{color:#b45309}.cp-usage-text-red{color:#dc2626}.cp-usage-reset{color:#9ca3af;font-size:11px;white-space:nowrap}.cp-order-cost{min-width:230px}

/* Order rows: one fixed column grid so every row lines up (account / status / countdown / usage / action). */
#customer-order-rows .cp-order{display:grid;grid-template-columns:minmax(220px,1fr) 160px 140px minmax(370px,1.15fr) 92px;align-items:center;column-gap:20px;row-gap:8px;padding:14px 20px}
#customer-order-rows .cp-order>*{width:auto;min-width:0;margin:0;flex:none}
#customer-order-rows .cp-order-account>button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
#customer-order-rows .cp-order-meta{margin-top:4px}
#customer-order-rows .cp-order-status{align-items:flex-start}
#customer-order-rows .cp-order-countdown{font-size:12px;line-height:18px}
#customer-order-rows .cp-order-cost{text-align:left;min-width:0}
#customer-order-rows .cp-order-action{justify-self:end}
#customer-order-rows .cp-order-expanded{grid-column:1/-1}
.cp-order-spend{display:flex;gap:14px;font-size:12px;line-height:18px;color:#78858a;margin-bottom:2px}
.cp-uw-row{display:flex;align-items:center;gap:6px;font-size:11px;line-height:16px}
.cp-uw-bar{-webkit-appearance:none;appearance:none;width:44px;height:6px;border:0;border-radius:999px;background:#e5e7eb;overflow:hidden;flex-shrink:0}
.cp-uw-bar::-webkit-progress-bar{background:#e5e7eb;border-radius:999px}
.cp-uw-bar::-webkit-progress-value{border-radius:999px}
.cp-uw-green::-webkit-progress-value{background:#22c55e}.cp-uw-green::-moz-progress-bar{background:#22c55e}
.cp-uw-amber::-webkit-progress-value{background:#f59e0b}.cp-uw-amber::-moz-progress-bar{background:#f59e0b}
.cp-uw-red::-webkit-progress-value{background:#ef4444}.cp-uw-red::-moz-progress-bar{background:#ef4444}
.cp-uw-gray::-webkit-progress-value{background:#d1d5db}.cp-uw-gray::-moz-progress-bar{background:#d1d5db}
.cp-connection-filter-button.cp-selected,.cp-connection-filter-button.cp-selected .cp-muted{color:#fff!important}
@media(max-width:1400px){#customer-order-rows .cp-order{grid-template-columns:minmax(0,1fr) 170px minmax(330px,1fr) 84px}#customer-order-rows .cp-order-account{grid-column:1;grid-row:1/3}#customer-order-rows .cp-order-status{grid-column:2;grid-row:1;align-self:end}#customer-order-rows .cp-order-countdown{grid-column:2;grid-row:2;align-self:start}#customer-order-rows .cp-order-cost{grid-column:3;grid-row:1/3}#customer-order-rows .cp-order-action{grid-column:4;grid-row:1/3}#customer-order-rows .cp-order-expanded{grid-row:3}}
@media(max-width:860px){#customer-order-rows .cp-order{grid-template-columns:minmax(0,1fr) auto;padding:12px 14px}#customer-order-rows .cp-order>*{grid-row:auto!important}#customer-order-rows .cp-order-account{grid-column:1/-1}#customer-order-rows .cp-order-status{grid-column:1;align-self:center}#customer-order-rows .cp-order-countdown{grid-column:2;align-self:center}#customer-order-rows .cp-order-cost{grid-column:1/-1}#customer-order-rows .cp-order-action{grid-column:1/-1;justify-self:start}#customer-order-rows .cp-order-expanded{grid-row:auto}}
