.customers-workbench{min-width:0;min-height:0;color:var(--foreground);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-soft);flex:1;grid-template-columns:minmax(320px,390px) minmax(0,1fr);display:grid;position:relative;overflow:hidden}.customer-list-pane,.customer-detail-pane{background:var(--surface);min-width:0;min-height:0}.customer-list-pane{border-inline-end:1px solid var(--border);flex-direction:column;display:flex}.customer-list-toolbar{border-block-end:1px solid var(--border);gap:10px;padding:16px;display:grid}.customer-list-toolbar p{color:var(--muted);margin:0;font-size:12px;font-weight:500}.customer-list-toolbar p strong{color:var(--foreground);font-weight:700}.customer-search{height:40px;color:var(--muted);background:var(--surface-muted);border-radius:var(--radius-control);transition:border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);border:1px solid #0000;align-items:center;gap:9px;padding-inline:12px;display:flex}.customer-search:focus-within{background:var(--surface);border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.customer-search input{width:100%;min-width:0;color:var(--foreground);background:0 0;border:0;outline:0;font-size:13px}.customer-search input::placeholder{color:var(--color-muted-soft)}.customer-list-scroll,.customer-detail-content{min-height:0;overflow-y:auto}.customer-list-scroll{flex:1}.customer-list{margin:0;padding:0;list-style:none}.customer-list>li+li{border-block-start:1px solid var(--color-rule-soft)}.customer-list-item{width:100%;color:var(--foreground);text-align:start;cursor:pointer;transition:background-color var(--dur-micro) var(--ease-out);background:0 0;border:0;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:11px;padding:13px 14px 13px 16px;display:grid;position:relative}.customer-list-item:before{content:"";background:0 0;border-radius:0 4px 4px 0;width:3px;position:absolute;inset:8px auto 8px 0}.customer-list-item:hover{background:var(--hover)}.customer-list-item.is-active{background:var(--primary-soft)}.customer-list-item.is-active:before{background:var(--primary)}.customer-avatar{color:var(--primary);background:var(--primary-soft);border:1px solid var(--border);border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid;position:relative;overflow:hidden}.customer-avatar img{z-index:1;object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.customer-avatar--list{width:38px;height:38px;font-size:13px}.customer-avatar--profile{width:54px;height:54px;font-size:18px}.customer-list-item__body,.customer-list-item__topline,.customer-list-item__meta{min-width:0}.customer-list-item__topline,.customer-list-item__meta{justify-content:space-between;align-items:center;gap:8px;display:flex}.customer-list-item__topline strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;overflow:hidden}.customer-list-item__topline time,.customer-list-item__meta{color:var(--muted);font-size:11px}.customer-list-item__topline time{flex:none}.customer-list-item__meta{margin-block-start:5px}.customer-list-item__meta>span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.customer-list-item__meta .is-missing{color:var(--color-amber-strong)}.customer-tag{max-width:130px;color:var(--primary-strong);background:var(--primary-soft);border-radius:var(--radius-pill);text-overflow:ellipsis;white-space:nowrap;align-items:center;padding:3px 8px;font-size:10px;font-weight:700;line-height:1.2;display:inline-flex;overflow:hidden}.customer-pagination{min-height:52px;color:var(--muted);border-block-start:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding-inline:16px;font-size:11px;display:flex}.customer-pagination>div{gap:6px;display:flex}.customer-pagination button,.customer-sheet__header>button{width:32px;height:32px;color:var(--foreground-soft);background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:8px;place-items:center;display:grid}.customer-pagination button:hover:not(:disabled),.customer-sheet__header>button:hover:not(:disabled){color:var(--primary);background:var(--primary-soft)}.customer-pagination button:disabled{opacity:.4;cursor:default}.customer-pane-state,.customer-detail-state,.customer-tab-state,.customer-list-empty,.customer-tab-empty,.customer-detail-empty{color:var(--muted);justify-content:center;align-items:center;gap:9px;font-size:13px;display:flex}.customer-pane-state{min-height:120px;padding:24px}.customer-detail-state,.customer-detail-empty{min-height:100%}.customer-list-empty,.customer-tab-empty,.customer-detail-empty{text-align:center;flex-direction:column;padding:40px 24px}.customer-list-empty strong,.customer-tab-empty strong,.customer-detail-empty strong{color:var(--foreground);font-size:13px}.customer-list-empty span,.customer-tab-empty span,.customer-detail-empty span{max-width:300px;line-height:1.5}.customer-pane-state.is-error,.customer-detail-state.is-error,.customer-tab-state.is-error,.customer-form-error{color:var(--color-red-strong)}.customer-loading-dot{background:var(--primary);width:7px;height:7px;animation:customer-pulse .9s var(--ease-in-out) infinite alternate;border-radius:50%;flex:none}@keyframes customer-pulse{0%{opacity:.3;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.customer-detail-pane{flex-direction:column;display:flex}.customer-profile-header{border-block-end:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;min-height:88px;padding:16px 20px;display:flex}.customer-profile-identity{align-items:center;gap:13px;min-width:0;display:flex}.customer-profile-identity>div{min-width:0}.customer-profile-name{align-items:center;gap:8px;min-width:0;display:flex}.customer-profile-name h2{letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:18px;font-weight:800;overflow:hidden}.customer-tag-select{max-width:150px;height:28px;color:var(--primary-strong);background-color:var(--primary-soft);border-radius:var(--radius-pill);cursor:pointer;border:1px solid #0000;outline:0;padding-inline:8px 26px;font-size:10px;font-weight:700}.customer-tag-select:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.customer-tag-select:disabled{opacity:.55;cursor:wait}.customer-profile-identity p{color:var(--muted);gap:5px;margin:4px 0 0;font-size:12px;display:flex}.customer-inline-error{color:var(--color-red-strong);margin-block-start:4px;font-size:10px;font-weight:600;display:block}.customer-button{min-height:36px;color:var(--foreground-soft);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control);white-space:nowrap;cursor:pointer;justify-content:center;align-items:center;gap:7px;padding-inline:13px;font-size:12px;font-weight:700;display:inline-flex}.customer-button:hover:not(:disabled){color:var(--primary);background:var(--primary-soft);border-color:var(--primary)}.customer-button.is-primary{color:var(--color-accent-ink);background:var(--primary);border-color:var(--primary)}.customer-button.is-primary:hover:not(:disabled){color:var(--color-accent-ink);background:var(--primary-strong)}.customer-button:disabled{opacity:.55;cursor:default}.customer-profile-stats{border-block-end:1px solid var(--border);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.customer-profile-stats article{gap:5px;min-width:0;padding:14px 20px;display:grid}.customer-profile-stats article+article{border-inline-start:1px solid var(--color-rule-soft)}.customer-profile-stats span{color:var(--muted);letter-spacing:.05em;text-transform:uppercase;font-size:10px;font-weight:700}.customer-profile-stats strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:800;overflow:hidden}.customer-detail-tabs{border-block-end:1px solid var(--border);gap:22px;padding-inline:20px;display:flex}.customer-detail-tabs button{min-height:46px;color:var(--muted);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px;font-weight:700;position:relative}.customer-detail-tabs button:after{content:"";background:0 0;height:2px;position:absolute;inset:auto 0 -1px}.customer-detail-tabs button:hover,.customer-detail-tabs button.is-active{color:var(--primary)}.customer-detail-tabs button.is-active:after{background:var(--primary)}.customer-detail-content{flex:1}.customer-overview{gap:16px;padding:20px;display:grid}.customer-section{border:1px solid var(--border);border-radius:var(--radius-control)}.customer-section__heading{border-block-end:1px solid var(--color-rule-soft);justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.customer-section__heading h3,.customer-section__heading p{margin:0}.customer-section__heading h3{font-size:13px;font-weight:800}.customer-section__heading p{color:var(--muted);margin-block-start:3px;font-size:11px}.customer-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:0;display:grid}.customer-info-item{min-width:0;padding:15px 16px}.customer-info-item:nth-child(2n){border-inline-start:1px solid var(--color-rule-soft)}.customer-info-item:nth-child(n+3){border-block-start:1px solid var(--color-rule-soft)}.customer-info-item dt{color:var(--muted);align-items:center;gap:7px;font-size:11px;font-weight:700;display:flex}.customer-info-item dd{overflow-wrap:anywhere;margin:8px 0 0;font-size:13px;font-weight:650;line-height:1.5}.customer-info-item dd button{color:var(--primary);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px;font-weight:700}.customer-note{color:var(--foreground-soft);white-space:pre-wrap;margin:0;padding:16px;font-size:13px;line-height:1.65}.customer-empty-action{width:calc(100% - 32px);color:var(--muted);text-align:start;background:var(--surface-muted);border:1px dashed var(--border);border-radius:var(--radius-control);cursor:pointer;align-items:center;gap:11px;margin:16px;padding:13px;display:flex}.customer-empty-action:hover{color:var(--primary);border-color:var(--primary)}.customer-empty-action span{gap:2px;font-size:11px;display:grid}.customer-empty-action strong{color:var(--foreground);font-size:12px}.customer-tab-state,.customer-tab-empty{min-height:220px;padding:24px}.customer-orders-table-wrap{overflow-x:auto}.customer-orders-table{border-collapse:collapse;text-align:start;width:100%;font-size:12px}.customer-orders-table th{color:var(--muted);background:var(--surface-muted);border-block-end:1px solid var(--border);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;padding:12px 16px;font-size:10px;font-weight:700}.customer-orders-table td{color:var(--foreground-soft);border-block-end:1px solid var(--color-rule-soft);white-space:nowrap;padding:14px 16px}.customer-orders-table tbody tr:hover{background:var(--hover)}.customer-orders-table td strong,.customer-orders-table td.is-money{color:var(--foreground);font-weight:750}.customer-orders-table td:first-child strong{color:var(--primary);font-family:var(--font-mono)}.customer-orders-table td:last-child a{width:30px;height:30px;color:var(--muted);border-radius:50%;place-items:center;display:grid}.customer-orders-table td:last-child a:hover{color:var(--primary);background:var(--primary-soft)}.customer-timeline{margin:0;padding:8px 20px 20px;list-style:none}.customer-timeline li{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;min-width:0;padding-block:16px;display:grid;position:relative}.customer-timeline li+li{border-block-start:1px solid var(--color-rule-soft)}.customer-timeline__marker{width:32px;height:32px;color:var(--primary);background:var(--primary-soft);border-radius:50%;place-items:center;display:grid}.customer-timeline strong,.customer-timeline p,.customer-timeline time{margin:0}.customer-timeline strong{font-size:12px}.customer-timeline p,.customer-timeline time{color:var(--muted);font-size:11px}.customer-timeline p{margin-block-start:4px}.customer-sheet-layer{z-index:var(--z-modal);justify-content:flex-end;display:flex;position:fixed;inset:0}.customer-sheet-backdrop{background:var(--color-overlay);cursor:default;border:0;width:100%;height:100%;padding:0;position:absolute;inset:0}.customer-sheet{z-index:1;background:var(--surface);width:min(560px,100%);height:100%;box-shadow:var(--shadow-strong);animation:customer-sheet-in var(--dur-short) var(--ease-out);flex-direction:column;display:flex;position:relative}@keyframes customer-sheet-in{0%{opacity:0;transform:translate(32px)}to{opacity:1;transform:translate(0)}}.customer-sheet__header{border-block-end:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:16px;padding:20px;display:flex}.customer-sheet__header h2,.customer-sheet__header p{margin:0}.customer-sheet__header h2{letter-spacing:-.02em;font-size:18px;font-weight:800}.customer-sheet__header p{color:var(--muted);margin-block-start:4px;font-size:12px}.customer-sheet__form{flex-direction:column;flex:1;min-height:0;display:flex}.customer-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-height:0;padding:20px;display:grid;overflow-y:auto}.customer-field{align-content:start;gap:7px;display:grid}.customer-field--wide{grid-column:1/-1}.customer-field>span{color:var(--foreground-soft);font-size:11px;font-weight:700}.customer-field input,.customer-field textarea{width:100%;color:var(--foreground);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control);transition:border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);outline:0;font-size:13px}.customer-field input{height:40px;padding-inline:11px}.customer-field textarea{resize:vertical;min-height:96px;padding:11px}.customer-field input:focus,.customer-field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.customer-field input::placeholder,.customer-field textarea::placeholder{color:var(--color-muted-soft)}.customer-form-error{background:var(--color-red-soft);border-radius:var(--radius-control);margin:0 20px;padding:10px 12px;font-size:12px}.customer-sheet__footer{border-block-start:1px solid var(--border);justify-content:flex-end;gap:8px;margin-block-start:auto;padding:16px 20px;display:flex}@media (max-width:1180px){.customers-workbench{grid-template-columns:320px minmax(0,1fr)}.customer-profile-stats article,.customer-profile-header,.customer-overview{padding-inline:16px}.customer-info-grid{grid-template-columns:1fr}.customer-info-item:nth-child(2n){border-inline-start:0}.customer-info-item:nth-child(n+2){border-block-start:1px solid var(--color-rule-soft)}}@media (prefers-reduced-motion:reduce){.customer-loading-dot,.customer-sheet{animation:none}}
