/* Profit Hub appearance. All colors are presentation-only; print invoices keep their own palette. */
@font-face{font-family:Vazirmatn;src:url('fonts/Vazirmatn.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
:root{--ui-surface:var(--panel);--ui-soft:var(--panel2);--ui-text:var(--ink,#e7fffb);--ui-shadow:0 10px 35px #0002;--tone-positive:#5eead4;--tone-danger:#fda4af;--tone-blue:#93c5fd;--tone-purple:#c4b5fd;--tone-amber:#fcd34d;--tone-warning:#fbbf24;--chart-revenue:#5eead4;--chart-cost:#fbbf24;--chart-profit:#10b981;--chart-grid:rgba(148,163,184,.12);--chart-fill:rgba(94,234,212,.08)}
body{font-family:Vazirmatn,Tahoma,sans-serif}button,input,select,textarea{font-family:inherit}
:where(button,a,summary,input,select,textarea):focus-visible{outline:2px solid var(--teal);outline-offset:3px}
input[type=checkbox],input[type=radio]{accent-color:var(--teal);width:auto;flex-shrink:0}
.grid>*{min-width:0}.table-wrap{max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin}
.heading p,.alert,.card>p{line-height:1.9}.heading h1{line-height:1.6}.actions{row-gap:10px}
button:disabled{cursor:not-allowed}summary{cursor:pointer}input::placeholder,textarea::placeholder{opacity:1}
:root[data-theme=light]{color-scheme:light;--bg:#f4f7fa;--panel:#fff;--panel2:#f1f5f8;--line:#dbe4ea;--ink:#172e3a;--muted:#526977;--teal:#007568;--green:#087b52;--danger:#b52d49;--warn:#8a5709;--ok:#087b52;--emerald:#087b52;--ui-surface:#fff;--ui-soft:#f1f5f8;--ui-text:#172e3a;--ui-shadow:0 4px 20px rgba(32,56,72,.045);--nav-bg:#fff;--nav-menu:#fff;--nav-text:#425b69;--nav-hover:#e8f5f1;--tone-positive:#007b69;--tone-danger:#b52d49;--tone-blue:#2563b5;--tone-purple:#7450ad;--tone-amber:#9b6500;--tone-warning:#946000;--chart-revenue:#2563b5;--chart-cost:#b16a00;--chart-profit:#008575;--chart-grid:#e5ebf0;--chart-fill:rgba(37,99,181,.045)}
:root[data-theme=light] body{background:var(--bg);color:var(--ink)}
:root[data-theme=light] main{margin-top:30px}
:root[data-theme=light] .heading{margin-bottom:24px;padding-inline-start:16px;border-inline-start:3px solid var(--teal)}
:root[data-theme=light] .heading h1{color:var(--ink);font-size:26px;font-weight:800}
:root[data-theme=light] .heading p{color:var(--muted);font-size:13px;margin-top:4px}
:root[data-theme=light] .card{background:var(--ui-surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--ui-shadow)}
:root[data-theme=light] .card h2{color:var(--ink);line-height:1.8}
:root[data-theme=light] .card .card{box-shadow:none;background:var(--ui-soft)}
:root[data-theme=light] label{color:#344e5c;font-weight:500}
:root[data-theme=light] input,:root[data-theme=light] select,:root[data-theme=light] textarea{color:var(--ink);background:#fff;border:1px solid #c3d1da;border-radius:9px;box-shadow:0 1px 2px #17364705;min-height:42px}
:root[data-theme=light] input::placeholder,:root[data-theme=light] textarea::placeholder{color:#6b7f8b}
:root[data-theme=light] input:focus,:root[data-theme=light] select:focus,:root[data-theme=light] textarea:focus{border-color:#168e7c;box-shadow:0 0 0 3px #168e7c1c}
:root[data-theme=light] input[readonly]{background:#f1f5f8}
:root[data-theme=light] input[type=checkbox],:root[data-theme=light] input[type=radio]{min-height:0;box-shadow:none}
:root[data-theme=light] button,:root[data-theme=light] .button{background:#007d6c;color:white;border:1px solid #007d6c;box-shadow:0 2px 3px #007d6c12;font-weight:600}
:root[data-theme=light] button:hover:not(:disabled),:root[data-theme=light] .button:hover{background:#006859;border-color:#006859;color:#fff}
:root[data-theme=light] button.secondary,:root[data-theme=light] .button.secondary,:root[data-theme=light] .muted-button{background:#fff;color:#285b55;border:1px solid #bcd2cb;box-shadow:none}
:root[data-theme=light] button.secondary:hover,:root[data-theme=light] .button.secondary:hover,:root[data-theme=light] .muted-button:hover{background:#eaf5f0;border-color:#85b5a8;color:#155747}
:root[data-theme=light] .muted{color:var(--muted)}
:root[data-theme=light] .alert{border-radius:10px;box-shadow:none}
:root[data-theme=light] .success,:root[data-theme=light] .good,:root[data-theme=light] .on{color:#176742;background:#eaf6ef;border-color:#b8dcc9}
:root[data-theme=light] .warn,:root[data-theme=light] .warning{color:#805213;background:#fff6e6;border-color:#ebd1a0}
:root[data-theme=light] .error,:root[data-theme=light] .off{color:#a32b40;background:#fff0f2;border-color:#edbdc7}
:root[data-theme=light] th{color:#425c6b;background:#f2f6f8;border-bottom:1px solid #d4e0e7;font-weight:600}
:root[data-theme=light] td{color:#263f4c;border-bottom-color:#e5ecf1}
:root[data-theme=light] tbody tr:hover{background:#f6faf9}
:root[data-theme=light] .empty{color:var(--muted);background:#f8fafb}
:root[data-theme=light] .badge{font-size:11px;font-weight:500}
:root[data-theme=light] .table-wrap{scrollbar-color:#b9cbd3 #f3f7f9}
:root[data-theme=light] .nav{border-bottom:1px solid var(--line);box-shadow:0 2px 12px #20384806}
:root[data-theme=light] .theme-toggle{background:#f3f7f8;color:#345461;border-color:#d6e2e7;box-shadow:none}
:root[data-theme=light] .theme-toggle:hover{background:#e9f3f1;color:#176350;border-color:#bdd7ce}
:root[data-theme=light] .nav-menu{box-shadow:0 16px 42px #183b4924}
:root[data-theme=light] .jalali-dialog{color:var(--ink);background:#fff;border-color:#bdcfd7;box-shadow:0 12px 50px #183b492e;font-family:Vazirmatn,Tahoma,sans-serif}
:root[data-theme=light] .jalali-dialog .j-grid>span{color:#607783;padding:5px 0}
:root[data-theme=light] .jalali-dialog button{min-height:34px;padding:3px}
/* Dashboard: stronger values, restrained backgrounds, distinct semantic accents. */
:root[data-theme=light] .fin-card{background:linear-gradient(135deg,var(--fin-tint),transparent 70%),#fff;border-color:var(--line);min-height:190px;padding:23px 22px 19px}
:root[data-theme=light] .fin-card::before{opacity:1;height:3px;right:0;left:0;background:var(--fin-accent)}
:root[data-theme=light] .fin-card::after{display:none}
:root[data-theme=light] .fin-label{font-size:12px;color:#425e6b;font-weight:600}
:root[data-theme=light] .fin-amount{margin-top:18px}
:root[data-theme=light] .fin-amount strong{font-size:clamp(22px,2vw,29px)}
:root[data-theme=light] .fin-amount small,:root[data-theme=light] .fin-note,:root[data-theme=light] .fin-period{color:#5b7180}
:root[data-theme=light] .fin-icon{width:38px;height:38px;border-radius:11px}
:root[data-theme=light] .fin-pill{font-size:11px}
:root[data-theme=light] .fin-track{background:#e9eff3}
:root[data-theme=light] .volume-stat{background:#f2f6fa;border:1px solid #e0e8ee}
:root[data-theme=light] .volume-icon{color:var(--teal);background:#e8f5f0}
:root[data-theme=light] .volume-stat span,:root[data-theme=light] .volume-period,:root[data-theme=light] .volume-legend,:root[data-theme=light] .volume-empty{color:#526e7c}
:root[data-theme=light] .volume-chart text{fill:#526e7c}
:root[data-theme=light] .fx-unit{background:#f0f5f7;border-color:#d9e4ea;color:#526977}
:root[data-theme=light] .fx-code,:root[data-theme=light] .fx-value small,:root[data-theme=light] .fx-time,:root[data-theme=light] .fx-date{color:#526977}
:root[data-theme=light] .fx-row{border-color:#e3eaef}
:root[data-theme=light] .fx-time time{color:var(--teal)}
:root[data-theme=light] .fx-unavailable{color:var(--warn)}
:root[data-theme=light] .trend-count{background:#edf6f2;border-color:#d3e7de;color:#276753}
:root[data-theme=light] .trend-profit.is-positive,:root[data-theme=light] .orders-table .order-profit.is-positive{color:#116840;background:#eaf5ee;font-weight:600}
:root[data-theme=light] .trend-profit.is-negative,:root[data-theme=light] .orders-table .order-profit.is-negative{color:#a52e45;background:#ffedf1}
:root[data-theme=light] .trend-page{color:#375b69;background:#fff;border-color:#ccdce3}
:root[data-theme=light] .trend-page.is-current{background:#007d6c;color:#fff;border-color:#007d6c}
:root[data-theme=light] .trend-page.is-disabled{opacity:.55}
/* Orders and gateway notifications retain distinct status meanings. */
:root[data-theme=light] .order-status{background:#edf1f5;color:#475d6e;border-color:#c7d3de}
:root[data-theme=light] .order-status-processing{background:#e5f5ed;color:#146744;border-color:#a4d4bd}
:root[data-theme=light] .order-status-completed{background:#e3f4f2;color:#086d65;border-color:#9fd6cd}
:root[data-theme=light] .order-status-pending,:root[data-theme=light] .order-status-on_hold{background:#fff3dc;color:#835312;border-color:#e4c690}
:root[data-theme=light] .order-status-cancelled,:root[data-theme=light] .order-status-failed{background:#ffedf0;color:#aa2946;border-color:#e7b2be}
:root[data-theme=light] .order-status-refunded{background:#eaf2ff;color:#255fa7;border-color:#acc7eb}
:root[data-theme=light] .orders-table tbody tr:nth-child(even){background:#f8fafc}
:root[data-theme=light] .orders-table tbody tr:hover{background:#edf6f3}
:root[data-theme=light] .customer-card,:root[data-theme=light] .customer-note{background:#f8fafc}
:root[data-theme=light] .document-notice{color:#805213;background:#fff6e6;border-color:#ebd1a0}
:root[data-theme=light] .gateway-alert{background:#fff8eb;border-color:#e8cd9a;border-inline-start-color:#bd841b}
:root[data-theme=light] .gateway-alert--danger{background:#fff2f4;border-color:#ecc2cb;border-inline-start-color:#b43f58}
:root[data-theme=light] .gateway-alert a,:root[data-theme=light] .gateway-alerts-heading>a{color:#007366;font-weight:500}
:root[data-theme=light] .gateway-alert button{color:#526977;background:#fff;border-color:#ccd8df;box-shadow:none}
:root[data-theme=light] .gateway-alert-new{color:#fff;background:#007d6c}
:root[data-theme=light] .gateway-alerts-empty{color:var(--muted)}
:root[data-theme=light] .results button,:root[data-theme=light] #stock-product-results button{color:var(--ink);background:#f8fafb;border-color:var(--line)}
:root[data-theme=light] .results button:hover,:root[data-theme=light] #stock-product-results button:hover,:root[data-theme=light] #stock-product-results button.is-active{color:#155747;background:#e9f5ef;border-color:#a8cebd}
:root[data-theme=light] .catalog-danger{color:var(--danger)!important;border-color:#e7b5c2!important}
@media(max-width:600px){:root[data-theme=light] main{margin-top:22px}:root[data-theme=light] .heading h1{font-size:22px}:root[data-theme=light] .card{border-radius:12px}:root[data-theme=light] .fin-card{min-height:180px}.heading p{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Procurement has a separate component palette, including dialogs and mobile cards. */
:root[data-theme=light] .procurement-app{--p-bg:#fff;--p-line:#dce6ea;--p-soft:#526f7b;--p-text:#203d48;--p-accent:#007a68}
:root[data-theme=light] .procurement-app input,:root[data-theme=light] .procurement-app select,:root[data-theme=light] .procurement-app textarea{background:#fff;border-color:#c2d3d9;color:var(--p-text);font-size:13px}
:root[data-theme=light] .procurement-app label{color:#405f6a;font-size:12px}
:root[data-theme=light] .proc-hero h1{color:#173d43;font-size:30px}
:root[data-theme=light] .proc-live{background:#e9f6ef;color:#256d4c;border-color:#c1dfd0;font-size:11px}
:root[data-theme=light] .proc-live:before{background:#16895e;box-shadow:none}
:root[data-theme=light] .proc-link{color:#007363!important}
:root[data-theme=light] .proc-tabs>a{font-size:13px}
:root[data-theme=light] .proc-tabs>a>span{color:#315f51;background:#e3f0e9}
:root[data-theme=light] .proc-flow{color:#526e78}
:root[data-theme=light] .proc-flow .active{color:#176e57;font-weight:600}
:root[data-theme=light] .proc-flow i{background:#bdcfd2}
:root[data-theme=light] .proc-metric{background:#fff;border-color:#dce6ea;box-shadow:var(--ui-shadow);padding:22px 18px}
:root[data-theme=light] .proc-metric[href]:hover{border-color:#8abcae}
:root[data-theme=light] .metric-icon{background:#ebf1f4;color:#446270}
:root[data-theme=light] .metric-red .metric-icon{background:#fff0ed;color:#aa4835}
:root[data-theme=light] .metric-teal .metric-icon{background:#e3f4ed;color:#087351}
:root[data-theme=light] .metric-blue .metric-icon{background:#eaf2fb;color:#286393}
:root[data-theme=light] .metric-amber .metric-icon{background:#fff4df;color:#88600f}
:root[data-theme=light] .proc-metric>div>span{color:#4e6a76;font-size:12px}
:root[data-theme=light] .proc-metric p{color:#5b7580;font-size:11px}
:root[data-theme=light] .proc-panel{background:#fff;border-color:#dce6ea;box-shadow:var(--ui-shadow)}
:root[data-theme=light] .proc-search svg{color:#5d7882}
:root[data-theme=light] .procurement-app .proc-primary{background:#007d6c;border-color:#007d6c;color:#fff;box-shadow:0 3px 8px #007d6c15}
:root[data-theme=light] .procurement-app .proc-primary:hover:not(:disabled){background:#006555;border-color:#006555;color:#fff}
:root[data-theme=light] .procurement-app .proc-secondary{background:#f5faf7;border-color:#bed6ca;color:#245b46;box-shadow:none}
:root[data-theme=light] .procurement-app .proc-secondary:hover{background:#e7f2eb;border-color:#97bca8;color:#185138}
:root[data-theme=light] .procurement-app .proc-danger{background:#fff1f1;color:#a1393b;border-color:#e3babb;box-shadow:none}
:root[data-theme=light] .procurement-app .proc-danger:hover{background:#ffe3e4;color:#8e2731}
:root[data-theme=light] .proc-settings>summary{color:#355e51;font-size:12px}
:root[data-theme=light] .proc-settings summary small,:root[data-theme=light] .proc-settings-grid small{color:#5b737b;font-size:11px}
:root[data-theme=light] .proc-unit-input{background:#f6faf9;border-color:#c2d3d9}
:root[data-theme=light] .proc-unit-input span{color:#546f79}
:root[data-theme=light] .proc-unit-input input{border:0;box-shadow:none}
:root[data-theme=light] .proc-notice{background:#fff7e7;border-color:#ead2a2;color:#805b1f;font-size:12px;line-height:1.9}
:root[data-theme=light] .proc-section-title h2 span,:root[data-theme=light] .proc-list-heading h2 span{background:#eaf2f4;color:#496775;font-size:11px}
:root[data-theme=light] .proc-section-title p,:root[data-theme=light] .proc-list-heading p{color:#587680;font-size:11px}
:root[data-theme=light] .proc-sort{color:#4c6b78!important;font-size:11px!important}
:root[data-theme=light] .proc-sort select{background:#fff!important;font-size:11px!important}
:root[data-theme=light] .proc-chips a{color:#4b6874!important;background:#fff;border-color:#d1dfe4;font-size:11px;padding:7px 10px}
:root[data-theme=light] .proc-chips a span{color:#5b7580;font-size:10px}
:root[data-theme=light] .proc-chips a.selected{color:#11644f!important;background:#e5f3eb;border-color:#8ebda5;font-weight:600}
:root[data-theme=light] .proc-chips a.selected span{color:#236c52}
:root[data-theme=light] .proc-chips a.chip-urgent{color:#a34b34!important}
:root[data-theme=light] .proc-chips a.chip-urgent.selected{background:#fff0ea;color:#9c3c26!important;border-color:#d7a591}
:root[data-theme=light] .proc-selection-tools{background:#f4f8fa;color:#526f7b;font-size:11px}
:root[data-theme=light] .proc-selection-tools button{background:transparent;color:#2f6856;border:0;box-shadow:none;font-size:11px}
:root[data-theme=light] .proc-selection-tools button+button{color:#536f7a}
:root[data-theme=light] .proc-selection-tools [data-select-all-results]{background:#e9f5ee;color:#24694d;border:1px solid #b5d8c5}
:root[data-theme=light] .proc-table th,:root[data-theme=light] .proc-inventory-table th,:root[data-theme=light] .proc-order-body th{background:#f0f5f8;color:#425f6c;font-size:11px;border-color:#dce6ea}
:root[data-theme=light] .proc-inventory-table th a{color:#335c6b!important}
:root[data-theme=light] .proc-table th small{color:#526f7b;font-size:10px}
:root[data-theme=light] .proc-table td{color:#294753;border-color:#e2ebef;font-size:12px}
:root[data-theme=light] .proc-table tbody tr:hover{background:#f6faf8}
:root[data-theme=light] .proc-table tr.is-selected{background:#edf8f1;box-shadow:inset -3px 0 0 #15895d}
:root[data-theme=light] .proc-table td[data-label]:before{color:#526f7b;font-size:10px}
:root[data-theme=light] .proc-table tbody>tr{border-bottom-color:#dce6ea}
:root[data-theme=light] .proc-table td[data-label="قیمت واحد (تومان)"]{border-top-color:#dce6ea}
:root[data-theme=light] .proc-product-name{color:#243f4a;font-size:12px;font-weight:500}
:root[data-theme=light] .proc-code{color:#526f7d;font-size:10px}
:root[data-theme=light] .proc-status{background:#edf2f5;color:#516975;font-size:10px;padding:4px 7px}
:root[data-theme=light] .status-urgent{background:#fff0e9;color:#9c432c}
:root[data-theme=light] .status-unknown{background:#fff4da;color:#815b0d}
:root[data-theme=light] .status-normal{background:#e5f4e9;color:#24653c}
:root[data-theme=light] .status-idle,:root[data-theme=light] .status-quiet{background:#edf1f4;color:#526976}
:root[data-theme=light] .proc-incoming{color:#266c96;font-size:10px}
:root[data-theme=light] .proc-cell-note{color:#58727f;font-size:10px}
:root[data-theme=light] .positive{color:#24653c}
:root[data-theme=light] .negative{color:#a44532}
:root[data-theme=light] .proc-unknown{color:#805b18}
:root[data-theme=light] .proc-coverage small{color:#58727f}
:root[data-theme=light] .proc-coverage.is-urgent{color:#a14b31}
:root[data-theme=light] .proc-gauge,:root[data-theme=light] .proc-budget-track{background:#e1e9ed}
:root[data-theme=light] .proc-gauge i,:root[data-theme=light] .proc-budget-track i{background:#208458}
:root[data-theme=light] .proc-gauge.is-urgent i,:root[data-theme=light] .proc-budget-track.over i{background:#bd6a38}
:root[data-theme=light] .proc-stepper{background:#fff;border-color:#c3d5dc}
:root[data-theme=light] .proc-stepper button{background:#f4f8f9;color:#3e6a59;border:0;box-shadow:none}
:root[data-theme=light] .proc-stepper input{border:0;box-shadow:none;border-radius:0}
:root[data-theme=light] .proc-stepper button:hover{background:#dfeee5;color:#245c43}
:root[data-theme=light] .procurement-app .proc-icon-button{background:transparent;color:#52757d;border-color:transparent;box-shadow:none}
:root[data-theme=light] .procurement-app .proc-icon-button:hover{background:#ebf5ef;color:#176848;border-color:#b7d3c4}
:root[data-theme=light] .proc-table-wrap,:root[data-theme=light] .proc-basket{scrollbar-color:#b6cbd2 #f1f6f8}
:root[data-theme=light] .proc-pagination{color:#4e6c78;font-size:11px}
:root[data-theme=light] .proc-pagination a{color:#365f52!important;background:#fff;border-color:#c4d9cf}
:root[data-theme=light] .proc-method{color:#57727f;font-size:11px}
:root[data-theme=light] .proc-method summary{color:#365f52}
:root[data-theme=light] .proc-basket{box-shadow:0 6px 24px #193c4510}
:root[data-theme=light] .proc-basket-title>svg{color:#237b55}
:root[data-theme=light] .proc-basket-title>span{background:#e4f3e9;color:#236a47}
:root[data-theme=light] .proc-basket header p{color:#5d7682;font-size:11px;line-height:1.9}
:root[data-theme=light] .proc-cart-empty>svg{color:#78979f}
:root[data-theme=light] .proc-cart-empty strong{color:#3a5b67}
:root[data-theme=light] .proc-cart-empty span{color:#587580;font-size:11px}
:root[data-theme=light] .proc-cart-item{border-color:#dce6ea}
:root[data-theme=light] .proc-cart-item-info{color:#58727c;font-size:10px}
:root[data-theme=light] .proc-cart-item-info strong{color:#264d3d;font-size:11px}
:root[data-theme=light] .proc-cart-item-info strong small{color:#5d7682;font-size:10px}
:root[data-theme=light] .proc-cart-tools button{color:#52706c;background:transparent;border:0;box-shadow:none;font-size:10px}
:root[data-theme=light] .proc-basket-fields h3{color:#254e3e;font-size:12px}
:root[data-theme=light] .proc-basket-fields h3>span{background:#e6f2eb;color:#236647}
:root[data-theme=light] .proc-basket-fields label em{color:#a44732}
:root[data-theme=light] .proc-basket-fields label small{color:#5b7580;font-size:10px}
:root[data-theme=light] .proc-basket-fields .proc-supplier-hint{color:#24724e;background:transparent;border:0;box-shadow:none;font-size:10px}
:root[data-theme=light] .proc-optional{color:#406955;font-size:11px}
:root[data-theme=light] .proc-help{color:#57747f;font-size:11px}
:root[data-theme=light] .proc-help.over{color:#9d5b25}
:root[data-theme=light] .proc-basket-footer{background:#f0f8f3}
:root[data-theme=light] .proc-total>span{color:#3f6651;font-size:11px}
:root[data-theme=light] .proc-total>strong{color:#15583b}
:root[data-theme=light] .proc-total small{color:#537566}
:root[data-theme=light] .proc-footnote{color:#567568;font-size:10px}
:root[data-theme=light] .proc-form-error{color:#a23536;font-size:11px}
:root[data-theme=light] .proc-dialog{color:#233f4a;background:#fff;border-color:#c6d8dd;box-shadow:0 30px 100px #193c4540}
:root[data-theme=light] .proc-dialog::backdrop{background:#142c4260;backdrop-filter:blur(3px)}
:root[data-theme=light] .proc-detail-stats>div{background:#f2f7f8;border-color:#d4e2e5}
:root[data-theme=light] .proc-detail-stats span,:root[data-theme=light] .proc-offers small{color:#526f7b;font-size:11px}
:root[data-theme=light] .proc-toast{background:#164f3b;color:#fff;border-color:#4e8a70}
:root[data-theme=light] .proc-empty{color:#587580}
:root[data-theme=light] .proc-empty>svg{color:#698d98}
:root[data-theme=light] .proc-empty h3{color:#35545f}
:root[data-theme=light] .proc-order-icon{background:#edf6f0;border-color:#c8ddcf;color:#397451}
:root[data-theme=light] .proc-order-identity>span,:root[data-theme=light] .proc-order-identity small,:root[data-theme=light] .proc-order-delivery>span,:root[data-theme=light] .proc-order-value small,:root[data-theme=light] .proc-order-state>small{color:#57747f;font-size:11px}
:root[data-theme=light] .proc-late{color:#a75032;font-size:10px}
:root[data-theme=light] .proc-order-chevron{color:#5b7981}
:root[data-theme=light] .proc-order[open]>summary{background:#f4f8fa}
:root[data-theme=light] .proc-step-flow li{color:#5b7580;font-size:11px}
:root[data-theme=light] .proc-step-flow li>span{background:#e9eff3;color:#536f7d}
:root[data-theme=light] .proc-step-flow li.done{color:#236448}
:root[data-theme=light] .proc-step-flow li.done>span{background:#ddefe2;color:#246345}
:root[data-theme=light] .proc-order-notes p{color:#536f7b;font-size:11px}
:root[data-theme=light] .proc-order-notes b,:root[data-theme=light] .proc-history b{color:#284f3c}
:root[data-theme=light] .proc-receipt{background:#f2f8f4;border-color:#c7dece}
:root[data-theme=light] .proc-receipt h3{color:#285c40}
:root[data-theme=light] .proc-receipt>div>p{color:#5a786a;font-size:11px}
:root[data-theme=light] .proc-invoice-links a{background:#eaf5ee;border-color:#bcd6c4;color:#286345}
:root[data-theme=light] .proc-history summary{color:#426d57}
:root[data-theme=light] .proc-history p{color:#57727c;font-size:10px}
:root[data-theme=light] .proc-mobile-cart:not([hidden]){background:#fff;border-color:#9dc6b0;box-shadow:0 6px 25px #183d3426}
:root[data-theme=light] .proc-mobile-cart>span{color:#4e6d5f}
:root[data-theme=light] .proc-mobile-cart>span strong{color:#205c3e}
:root[data-theme=light] .proc-mobile-cart button{background:#007d6c;color:#fff;border-color:#007d6c}
/* Login uses the same persisted palette without the application menu. */
.login-page{overflow-y:auto;padding-block:80px 32px}.login-page .shell{margin:0 auto}.login-page .login-theme{position:absolute;top:20px;left:20px;width:auto;display:inline-flex;gap:8px;align-items:center;min-height:40px;padding:9px 13px;border:1px solid var(--line);color:var(--teal);background:var(--panel);box-shadow:none;font-size:12px}.login-page .login-theme:hover{transform:none}.login-page .login-theme svg{flex:none}
:root[data-theme=light] .login-page:before,:root[data-theme=light] .login-page:after{border-color:#dbe8e5;box-shadow:none}
:root[data-theme=light] .login-page .card{padding:32px;border-radius:20px;box-shadow:0 15px 50px #193c4510}
:root[data-theme=light] .login-page .brand h1{color:#203e48}
:root[data-theme=light] .login-page .alert{background:#fff0f2;color:#a32b40;border-color:#edbdc7}
:root[data-theme=light] .login-page .footer{color:#5e7681}
@media(max-width:500px){:root[data-theme=light] .login-page .card{padding:24px}}
.appearance-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.appearance-heading h2{margin-bottom:6px}.appearance-heading p{font-size:12px;margin:0;line-height:1.9}.appearance-tag{font-size:11px;padding:5px 10px;border:1px solid var(--line);border-radius:20px;color:var(--teal);white-space:nowrap}.appearance-preview{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px 20px;margin-top:20px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;font-size:12px}.appearance-preview strong{color:var(--teal);font-size:24px;font-variant-numeric:tabular-nums}.appearance-preview small{font-size:11px;font-weight:400;color:var(--muted)}.appearance-status{font-size:11px;margin:12px 0 0;min-height:22px}
@media(max-width:550px){.appearance-heading{flex-wrap:wrap}.appearance-preview{flex-wrap:wrap;gap:12px}}

/* Keep long purchase totals on one line on narrow screens. */
@media(max-width:760px){
 :root .proc-metric{display:block;position:relative;padding:16px 12px}
 :root .proc-metric .metric-icon{position:absolute;top:12px;left:12px;width:28px;height:28px}
 :root .proc-metric>div>span{display:block;padding-inline-end:32px;min-height:36px;font-size:11px;line-height:1.8}
 :root .proc-metric .metric-money{white-space:nowrap;overflow-wrap:normal;font-size:clamp(14px,4.1vw,18px);line-height:1.8;letter-spacing:-.4px}
 :root .proc-metric .metric-money small{display:block;margin:0;line-height:1.8;font-size:10px}
 :root .proc-metric p{font-size:10px;line-height:1.9}
}
