:root{--canvas:#08121f;--sidebar:#091725;--surface:#0d1b2a;--raised:#13263a;--hover:#19344d;--border:#20384d;--border-subtle:#193246;--text:#eaf2fa;--secondary:#a6b9cc;--primary:#4678f5;--success:#16c9a0;--warning:#e9ae56;--danger:#ef6474;--purple:#9975f4;--radius-sm:4px;--radius-md:8px;--radius-lg:12px;--motion-hover:140ms;--motion-overlay:180ms;--font-body:13px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
:root[data-theme=light]{--canvas:#f4f7fb;--sidebar:#f8faff;--surface:#fff;--raised:#eaf0f7;--hover:#e1eaf5;--border:#cbd8e6;--border-subtle:#d7e1ec;--text:#17283b;--secondary:#526477;--muted:#526477;--primary:#315fd4;--success:#087f68;--warning:#95600b;--danger:#be344d;--purple:#714bd1}
body{font-size:var(--user-text-size,13px)}button,a,input,select,textarea{transition:background-color var(--motion-hover),border-color var(--motion-hover),color var(--motion-hover)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.ux-money{white-space:nowrap;font-variant-numeric:tabular-nums;display:inline-block;vertical-align:baseline}
.ux-skip{position:fixed;top:-60px;left:8px;z-index:200;background:var(--primary);color:white;padding:10px 16px;border-radius:6px}.ux-skip:focus{top:8px}.navigation-rail>button{position:relative}.rail-counter{position:absolute;bottom:0;right:0;background:var(--primary);color:white;font-size:10px;line-height:16px;min-width:16px;padding:0 3px;border-radius:8px;font-style:normal}.uxcrm-mark{width:36px;height:36px}.brand small{font-size:11px}.actions,.thread-tools,.thread-tools>.actions{gap:8px;flex-wrap:wrap}
.context-search-field input{padding-left:34px}.context-search-field>svg{width:16px;height:16px}.header-title h1{flex-shrink:0}.smart-popover .smart-menu-row{min-height:36px}.smart-popover .v4-item-menu{min-width:0}
.ux-messages{display:flex;flex-direction:column;gap:10px;min-height:220px;flex:1;overflow:auto}.ux-messages .message{max-width:85%;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--raised);align-self:flex-start}.ux-messages .message.outbound{align-self:flex-end;background:color-mix(in srgb,var(--primary) 14%,var(--surface))}.ux-messages .message.internal-note{align-self:stretch;max-width:100%;border:1px dashed var(--warning);background:color-mix(in srgb,var(--warning) 10%,var(--surface));color:var(--text)}.ux-messages .message>header{font-size:11px;font-weight:600;color:var(--secondary);margin-bottom:5px}.ux-messages .message.internal-note>header{color:var(--warning)}.ux-messages .message p{margin:0}.inbox-layout{height:calc(100dvh - 130px);min-height:450px}.inbox-layout>#thread-content{display:flex;flex-direction:column;min-height:0;overflow:hidden}.inbox-layout .messages{max-height:none}.notification-row>span{flex:1;min-width:0}.notification-row strong{font-size:12px;font-weight:500}.notification-row small{display:block;font-size:11px;color:var(--secondary);margin-top:4px}.notification-row .badge{font-size:10px}
.order-card-v4 .payment-card-values strong,.order-card-v4 .line-total strong,.order-card-v4 .dock-total-primary>strong{white-space:nowrap;overflow-wrap:normal}.order-card-v4 .customer-statistics small,.order-card-v4 .customer-statistics>span,.order-card-v4 .dock-total-economics{font-size:11px}.order-card-v4 .customer-statistics>span{min-width:0;overflow:hidden}.order-card-v4 .card-carrier strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-card-v4 .card-contact-row,.order-card-v4 .card-delivery-row{font-size:12px}.order-card-v4 .payment-card-values.long-money{display:flex;flex-direction:column;gap:3px}.order-card-v4 .payment-card-values.long-money>div{display:flex;justify-content:space-between;align-items:center;gap:5px}.order-card-v4 .payment-card-values.long-money strong{font-size:15px}.order-card-v4 .dock-total-economics>span{white-space:nowrap}.order-card-v4 .dock-total.long-money .dock-total-primary>strong{font-size:15px;white-space:nowrap}
html[data-theme=light] .order-card-v4 .order-readiness li.passed>button>small{color:#08705a}html[data-theme=light] .order-card-v4 .order-readiness li>button>small{color:#80560b}html[data-theme=light] .order-readiness li>button>svg{color:#08705a}html[data-theme=light] .order-card-v4 .card-payment .payment-card-notice{background:#edeafa;color:#3a2a67}html[data-theme=light] .status-selector{background:color-mix(in srgb,var(--status) 10%,white);color:color-mix(in srgb,var(--status) 60%,#17283b)}
@media(max-width:520px){.inbox-layout{height:auto;display:block}.inbox-layout>#thread-content{min-height:500px}.ux-messages .message{max-width:95%}.order-card-v4 .card-contact-row{font-size:13px}button.icon-button,.card-icon{min-width:32px;min-height:32px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms;transition-duration:.01ms;scroll-behavior:auto}}html[data-motion=reduced] *,html[data-motion=reduced] *::before{animation:none;transition:none}
/* Operational queue accents follow status meaning, without recoloring entire rows. */
.orders-refined .queue-tabs button{--queue:var(--info);border:1px solid color-mix(in srgb,var(--queue) 32%,var(--border-subtle));border-radius:8px;padding:8px 10px;color:var(--text-primary);font-size:13px;min-height:38px}.orders-refined .queue-tabs button[data-queue=new]{--queue:var(--ai-accent)}.orders-refined .queue-tabs button[data-queue=processing]{--queue:var(--warning)}.orders-refined .queue-tabs button[data-queue=picking]{--queue:var(--ai-accent)}.orders-refined .queue-tabs button[data-queue=ready]{--queue:var(--primary)}.orders-refined .queue-tabs button[data-queue=transit]{--queue:var(--info)}.orders-refined .queue-tabs button[data-queue=completed]{--queue:var(--success)}.orders-refined .queue-tabs button[data-queue=blocked]{--queue:var(--danger)}.orders-refined .queue-tabs button[data-queue=returned]{--queue:var(--text-muted)}.orders-refined .queue-tabs button>span{background:color-mix(in srgb,var(--queue) 27%,var(--surface));color:var(--text-primary);padding:3px 6px;border-radius:6px;font-size:12px}.orders-refined .queue-tabs button.active{background:color-mix(in srgb,var(--queue) 22%,var(--surface));border-color:var(--queue);box-shadow:inset 0 -2px 0 var(--queue)}.orders-refined .orders-grid-row .col-number,.orders-refined .orders-grid-row .select-cell,.orders-refined .orders-grid-row .actions-cell{background:var(--surface)}.orders-refined .orders-grid-row.selected .col-number,.orders-refined .orders-grid-row.selected .select-cell,.orders-refined .orders-grid-row.selected .actions-cell{background:var(--surface-raised)}.orders-refined .orders-grid-row .col-payment .badge{font-size:12px;max-width:100%}.ux-orders-page-size{display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap}.ux-orders-page-size select{height:32px;padding:4px}.ux-orders-total{display:flex;gap:14px;margin-left:auto;white-space:nowrap}.ux-orders-total>span{display:grid;gap:3px}.ux-orders-total small{font-size:11px;color:var(--text-secondary)}.ux-orders-total strong{font-size:16px}.orders-refined .table-pagination{gap:14px}.orders-refined .table-pagination>div{margin-left:auto}.orders-refined .queue-tabs{padding-top:4px;padding-bottom:5px}
@media(max-width:1100px){.ux-orders-total{gap:7px}.ux-orders-total strong{font-size:14px}.ux-orders-page-size{gap:4px}.orders-refined .table-pagination{gap:8px}.orders-refined .queue-tabs button{padding:7px 9px}}
:root{--text-primary:var(--text);--text-secondary:var(--secondary);--text-muted:var(--muted);--surface-raised:var(--raised);--surface-hover:var(--hover);--border-default:var(--border);--ai-accent:var(--purple);--info:#4195d8}
:root[data-theme=light]{--info:#226fa7}
.um-kpi{display:block;position:relative}.um-kpi-icon{float:left;margin:0 9px 7px 0;width:34px;height:34px}.um-kpi>div>span{padding-top:5px;min-height:34px;font-size:13px}.um-kpi strong{clear:both;margin-top:10px;font-size:22px;white-space:nowrap;overflow-wrap:normal}.um-kpi small{font-size:12px}.um-kpi-icon svg{width:23px;height:23px}.um-provider-logo.tone-blue,.um-provider-logo.tone-purple{font-size:25px}
@media(max-width:760px){.um-kpi strong{font-size:19px}.um-kpi>div>span{font-size:12px}.um-kpi small{font-size:11px}.um-kpi-icon{width:28px;height:28px;margin-right:6px}}
@media(min-width:521px){.orders-refined[style*="--actions-width:40px"] .orders-grid-row .actions-cell>button:not(:last-child){display:none}}
.orders-refined .col-payment .badge{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orders-refined .col-payment .badge>i{display:inline-block;margin-right:4px}
.orders-refined[style*="--actions-width:40px"] .orders-grid-header .actions-cell{overflow:hidden;font-size:0}.orders-refined[style*="--actions-width:40px"] .orders-grid-header .actions-cell:after{content:'⋯';font-size:16px}
.settings-data-actions{display:grid;gap:18px;margin:15px 0}.settings-danger-area{border:1px solid color-mix(in srgb,var(--danger) 40%,var(--border-subtle));border-left:3px solid var(--danger);padding:12px;border-radius:8px}.settings-danger-area h3{margin:0 0 8px;font-size:14px}.settings-danger-area p{color:var(--secondary);max-width:680px;font-size:13px;line-height:1.5}.settings-danger-area .destructive{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 45%,var(--border-subtle))}
.customer-profile{display:grid;gap:16px;min-width:0}.customer-profile>.panel{margin:0;min-width:0;padding:12px}.customer-profile-contact{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.customer-profile-contact h2{font-size:18px;margin:0 0 5px}.customer-profile-contact p{font-size:12px;margin:0;color:var(--secondary)}.customer-profile-contact .actions{display:flex;align-items:center;gap:8px}.customer-profile-metrics{display:flex;gap:12px;flex-wrap:wrap}.customer-profile-metrics>span{padding:10px 12px;background:var(--raised);border-radius:8px;font-size:19px;font-weight:600;font-variant-numeric:tabular-nums}.customer-profile-metrics small{display:block;font-size:12px;font-weight:400;color:var(--secondary);margin-top:5px}.customer-profile .numeric{text-align:right;white-space:nowrap}.customer-profile .data-table td{height:44px}.customer-profile-thread{margin:8px 0 12px}.customer-profile-thread>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.customer-profile-thread>article{padding:9px;margin-top:7px;border:1px solid var(--border-subtle);border-radius:6px}.customer-profile-thread>article.internal-note{border:1px dashed var(--warning);background:color-mix(in srgb,var(--warning) 8%,var(--surface))}.customer-profile-thread small{font-size:12px;color:var(--secondary)}.customer-profile-thread p{margin:5px 0 0;font-size:13px;line-height:1.5}.customer-profile footer{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:520px){.customer-profile-contact .actions{align-items:flex-start;flex-direction:column}.customer-profile-metrics>span{font-size:17px}.customer-profile .data-table-wrap{overflow:auto}.customer-profile .data-table{min-width:530px}}
.customer-profile-contact .button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:6px;padding:7px 9px;font-size:13px;text-decoration:none;color:var(--text);white-space:nowrap}.customer-profile-contact svg{width:16px;height:16px;flex:none}.customer-profile .empty-state{padding:14px}.customer-profile .empty-state h3{font-size:13px}.customer-profile .empty-state>svg{width:26px;height:26px}.customer-profile th:nth-child(3){text-align:right}

.application-shell.has-persistence-banner{grid-template-rows:var(--topbar) auto minmax(0,1fr)}.has-persistence-banner>.navigation-rail,.has-persistence-banner>.context-navigation{grid-row:1/4}.has-persistence-banner>.page-content{grid-row:3}.persistence-banner{grid-column:3;grid-row:2;display:flex;align-items:center;gap:10px;padding:6px 14px;min-width:0;background:color-mix(in srgb,var(--warning) 12%,var(--surface));color:var(--text);border-bottom:1px solid var(--warning);font-size:12px}.persistence-banner>span{min-width:0;flex:1}.persistence-banner small{color:var(--secondary)}.persistence-banner>button{flex-shrink:0;font-size:12px}.persistence-banner .icon-button{min-width:28px;width:28px;height:28px}
@media(max-width:700px){.persistence-banner{flex-wrap:wrap;padding:7px 10px;gap:5px}.persistence-banner>span{flex-basis:100%}.persistence-banner small{display:block}}
