:root{color-scheme:light;--ink:#171717;--muted:#66686b;--bg:#f5f5f7;--surface:#fff;--line:#e0e1e5;--green:#18181a;--soft:#e9eaed;--danger:#943e32;--focus:#535862;--radius:18px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid var(--focus);outline-offset:1px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 18px;border-radius:12px;border:1px solid transparent;background:var(--green);color:#fff;font-weight:750;line-height:1.2;text-align:center;text-decoration:none}button:hover,.button:hover{filter:brightness(.97);text-decoration:none}.secondary{background:#fff;color:var(--green);border-color:var(--line)}.danger{background:#fff;color:var(--danger);border-color:#e7c8c1}.small{min-height:42px;padding:9px 12px;font-size:.88rem}.full{width:100%}.icon{width:24px;height:24px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.header{background:#17171a;color:white;min-height:74px}.header-inner{max-width:1140px;margin:auto;min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 24px}.brand{display:flex;align-items:center;gap:11px;min-width:0;color:#fff;font-weight:800;text-decoration:none}.brand:hover{text-decoration:none}.brand img{width:42px;height:42px;object-fit:contain;background:white;border-radius:10px}.brand div{min-width:0;overflow-wrap:anywhere}.brand small{display:block;font-size:.7rem;letter-spacing:.09em;text-transform:uppercase;color:#d5d6db;font-weight:650;margin-top:2px}.header-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}.header .button,.header button{background:#303034;border-color:#595b60;color:white}.testbar{background:#f3e6cc;color:#664c28;font-size:12px;letter-spacing:.02em;text-align:center;padding:8px 14px;font-weight:700}.container{max-width:1140px;margin:0 auto;padding:30px 24px 75px}.narrow{max-width:650px;margin:auto}.welcome{padding:7px 0 24px}.eyebrow{font-size:.76rem;letter-spacing:.13em;color:#687a72;font-weight:800;text-transform:uppercase;margin:0 0 8px}h1{font-size:clamp(1.7rem,3.5vw,2.4rem);line-height:1.12;margin:0 0 10px;letter-spacing:-.045em}h2{font-size:1.35rem;margin:0 0 16px;letter-spacing:-.025em}h3{font-size:1.04rem;margin:0 0 8px;overflow-wrap:anywhere}p{line-height:1.5;margin:0 0 12px}.muted,.help{color:var(--muted)}.help{font-size:.86rem;line-height:1.45;margin:0}.panel{border:1px solid var(--line);border-radius:var(--radius);padding:24px;background:white;margin-bottom:18px}.panel:last-child{margin-bottom:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.section-head h1,.section-head h2{margin:0}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stack{display:grid;gap:12px}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}.tile{display:flex;flex-direction:column;text-align:left;align-items:flex-start;justify-content:space-between;padding:26px;border:1px solid var(--line);border-radius:20px;background:white;color:var(--ink);min-height:178px;gap:18px;box-shadow:0 3px 8px #172b2910}.tile:first-child{background:var(--green);color:white;border-color:var(--green)}.tile .tile-icon{width:54px;height:54px;background:var(--soft);border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--green)}.tile:first-child .tile-icon{background:#355d50;color:#fff}.tile .tile-icon .icon{width:31px;height:31px}.tile strong{font-size:1.4rem;display:block;letter-spacing:-.035em;line-height:1.15}.tile small{display:block;margin-top:6px;font-weight:500;font-size:.88rem;color:var(--muted);line-height:1.4}.tile:first-child small{color:#d4e4da}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 24px}.metric{background:white;border:1px solid var(--line);padding:18px;border-radius:14px;min-width:0}.metric span{color:var(--muted);font-size:.83rem}.metric strong{display:block;font-size:1.65rem;line-height:1.15;margin-top:6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.metric strong.text-value{font-size:1rem}.badge{display:inline-block;max-width:100%;padding:5px 9px;background:#edf0ec;color:#4e5a54;border-radius:7px;font-size:.76rem;font-weight:700}.badge.active{color:#24583d;background:#e5f1e3}.badge.warn{color:#8a4d26;background:#f8ecd8}.badge.off{color:#8a3b33;background:#f5e2dd}.list{display:grid;gap:12px}.firm-card,.order-card,.product-row{border:1px solid var(--line);border-radius:15px;padding:16px;background:white}.firm-head{display:flex;align-items:center;gap:12px;margin-bottom:13px}.avatar{display:flex;align-items:center;justify-content:center;border-radius:12px;width:48px;height:48px;flex:none;background:var(--soft);color:var(--green);font-weight:800;font-size:1.12rem;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:contain;background:#fff}.firm-info{flex:1;min-width:0}.firm-info h3{margin:0}.firm-card .detail-grid{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0;margin-bottom:13px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail-grid span{display:block;font-size:.77rem;color:var(--muted)}.detail-grid strong{font-size:.92rem;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:.91rem;font-weight:700;min-width:0}.field input,.field select,.field textarea,.search input,.search select{border:1px solid #ced0d5;background:white;min-height:48px;width:100%;border-radius:11px;padding:11px 13px;font-weight:500}.field input[type=file]{font-size:.82rem;line-height:1.4;padding:10px 8px}.field input[type=file]::file-selector-button{background:var(--soft);color:var(--green);border:0;border-radius:7px;padding:9px;font:inherit;font-weight:700;margin-right:6px}.field textarea{min-height:90px;resize:vertical}.field .help{font-weight:400}.span2{grid-column:1/-1}.form-title{display:flex;align-items:center;gap:10px;margin-bottom:18px}.step{width:34px;height:34px;background:var(--soft);border-radius:11px;display:flex;align-items:center;justify-content:center;font-weight:800}.form-title h2{margin:0}.form-actions{display:flex;gap:10px;margin-top:24px;justify-content:flex-end;flex-wrap:wrap}.form-actions .button,.form-actions button{flex:1;max-width:300px}.size-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.size-row{display:grid;gap:5px;min-width:0}.size-row input{min-width:0;width:100%;text-align:center;border:1px solid #ced0d5;border-radius:9px;padding:10px 3px;min-height:43px}.size-row input:first-child{font-weight:750}.size-row .delete-size{background:transparent;color:var(--muted);border:none;padding:5px;min-height:30px;font-size:.8rem}.photo-slot{display:grid;gap:10px;border:1px dashed #c8cbd0;padding:12px;border-radius:12px;min-width:0}.photo-slot img{display:block;width:100%;height:170px;object-fit:contain;background:#f0f1f3;border-radius:9px}.photo-slot .placeholder{min-height:100px;display:flex;align-items:center;justify-content:center;color:#66686d;flex-direction:column;gap:8px;background:#f5f5f7;border-radius:9px}.photo-slot .icon{width:33px;height:33px}.notice{padding:13px 16px;border:1px solid #dfd1b6;background:#fbf5e8;color:#6a512e;border-radius:12px;font-size:.9rem;line-height:1.5;margin-bottom:16px}.notice.ok{background:#e9f2e9;border-color:#c7dfc5;color:#275f37}.empty{text-align:center;padding:38px 18px;background:#fff;border:1px dashed #c9cbd0;border-radius:15px;color:var(--muted)}.empty strong{display:block;font-size:1.2rem;color:var(--ink);margin-bottom:8px}.breadcrumbs{margin:0 0 16px;color:var(--muted);font-size:.88rem}.back{display:inline-flex;align-items:center;gap:6px;background:transparent;border:0;color:var(--green);font-weight:750;padding:0;min-height:36px}.product-row{display:grid;grid-template-columns:94px minmax(0,1fr) auto;gap:16px;align-items:center}.thumb{width:94px;height:104px;object-fit:cover;background:#eeeef0;border-radius:11px}.placeholder.thumb{display:flex;align-items:center;justify-content:center;color:#77797e}.product-row h3{margin:4px 0 5px}.product-row .meta{font-size:.84rem;color:var(--muted)}.price{font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.catalog-intro{margin:0 0 18px}.search{display:flex;gap:10px;margin-bottom:16px}.search input{flex:1;min-width:0}.search select{width:min(220px,42%)}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product-card{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:white;display:flex;flex-direction:column;min-width:0}.product-card .product-photo{width:100%;aspect-ratio:5/6;object-fit:cover;display:block;background:#eeedf0}.product-card .placeholder{display:flex;align-items:center;justify-content:center;color:var(--muted)}.product-content{padding:15px;display:flex;flex-direction:column;flex:1;gap:8px}.product-code{font-size:.73rem;letter-spacing:.08em;color:var(--muted);font-weight:750}.product-content h3{font-size:1.12rem;margin:0}.product-content .price{font-size:1.32rem}.product-content .price small{font-size:.73rem;color:var(--muted);font-weight:500}.product-content .button,.product-content button{margin-top:auto}.size-note{font-size:.82rem;color:var(--muted);line-height:1.4}.cart-dock{position:sticky;bottom:16px;margin-top:22px;display:flex;justify-content:center;z-index:2}.cart-dock button{min-width:min(100%,360px);box-shadow:0 5px 18px #11111122;min-height:56px}.cart-row{display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:14px 0}.cart-row:first-child{padding-top:0}.cart-row:last-child{border:0;padding-bottom:0}.cart-row .thumb{width:68px;height:82px}.counter{display:flex;align-items:center;gap:8px}.counter button{width:40px;height:42px;min-height:42px;padding:8px;font-size:1.25rem}.counter strong{min-width:20px;text-align:center}.totals{display:grid;gap:9px}.total-row{display:flex;justify-content:space-between;gap:12px;font-size:.92rem}.total-row:last-child{padding-top:13px;margin-top:3px;border-top:1px solid var(--line);font-size:1.25rem;font-weight:800}.order-card>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:12px;align-items:center}.order-card>summary::-webkit-details-marker{display:none}.order-card[open]>summary{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:14px}.order-card>summary h3{margin:5px 0}.order-card .order-meta{display:grid;gap:5px;font-size:.91rem}.order-lines{padding-left:18px;font-size:.9rem;line-height:1.6}.receipt{border:1px solid var(--line);border-radius:15px;padding:20px;background:#fff;margin-bottom:14px;overflow-wrap:anywhere}.receipt h2{margin-top:10px}.dialog{border:1px solid var(--line);border-radius:20px;background:white;max-width:min(500px,calc(100% - 30px));width:100%;padding:24px;color:var(--ink);box-shadow:0 20px 70px #17171733}.dialog::backdrop{background:#17171766}.dialog h2{margin-bottom:12px}.credentials{background:#f3f3f5;border:1px solid #d0d1d5;padding:14px;border-radius:12px;margin:14px 0;overflow-wrap:anywhere;user-select:all}.credentials code{display:block;font-size:1rem;margin:4px 0 12px;color:var(--ink)}.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:10;max-width:calc(100% - 28px);width:max-content;background:#202024;color:white;padding:13px 19px;border-radius:13px;box-shadow:0 8px 24px #17171722;font-weight:650;font-size:.9rem;line-height:1.4}.toast.error{background:#8d392f}.toast[hidden]{display:none}.login-wrap{max-width:480px;margin:24px auto}.login-wrap .panel{padding:30px}.divider{height:1px;background:var(--line);margin:18px 0}.footer-note{text-align:center;color:var(--muted);font-size:.8rem;margin-top:20px}.nav-links{display:flex;gap:10px;flex-wrap:wrap}.nav-links button{flex:1}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:850px){.tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.tile{min-height:200px}.platform-list{grid-template-columns:repeat(2,minmax(0,1fr))}.container{padding-top:36px}.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.header-inner{padding:10px 14px;min-height:66px;gap:7px}.header{min-height:66px}.brand{gap:8px;font-size:.94rem}.brand img{width:37px;height:37px}.brand small{font-size:.61rem}.header-actions{gap:5px}.header-actions .small{font-size:.8rem;padding:8px 9px;min-height:38px}.container{padding:22px 14px 58px}.panel{padding:16px;border-radius:15px}.section-head{gap:9px}.section-head button,.section-head .button{font-size:.82rem;padding:10px 11px}.tiles{gap:10px}.tile{padding:17px;min-height:154px;border-radius:16px;gap:12px}.tile .tile-icon{width:45px;height:45px}.tile .tile-icon .icon{width:26px;height:26px}.tile strong{font-size:1.14rem}.tile small{font-size:.78rem}.metrics{gap:7px}.metric{padding:12px 10px;border-radius:12px}.metric span{font-size:.72rem}.metric strong{font-size:1.35rem}.metric strong.text-value{font-size:.82rem}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-content{padding:11px;gap:6px}.product-content h3{font-size:.97rem}.product-content .price{font-size:1.05rem}.product-content .price small{font-size:.65rem}.product-content .button,.product-content button{font-size:.85rem;padding:10px 6px}.product-code{font-size:.67rem}.size-note{font-size:.75rem}.form-grid{grid-template-columns:1fr;gap:14px}.size-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.product-row{grid-template-columns:66px minmax(0,1fr);gap:11px}.product-row .thumb{width:66px;height:84px}.product-row .edit-action{grid-column:2;justify-self:start}.cart-row{grid-template-columns:55px minmax(0,1fr);gap:10px}.cart-row .thumb{width:55px;height:66px}.cart-row .counter{grid-column:2;justify-self:start}.form-actions .button,.form-actions button{max-width:none}.form-actions{flex-direction:column-reverse}.search{gap:6px}.search input,.search select{padding:10px 8px;font-size:.86rem}.search select{width:41%}.login-wrap{margin:8px auto}.login-wrap .panel{padding:22px}.welcome{padding-bottom:18px}.order-card{padding:13px}.firm-card .actions button,.firm-card .actions a{flex:1}.detail-grid{font-size:.82rem}.photo-slot img{height:145px}.header .hide-mobile{display:none}}

/* SERICEP v0.3: light silver surfaces, restrained typography, large controls */
.header{background:linear-gradient(115deg,#151517,#2e3034)}.brand{letter-spacing:.025em}.panel,.tile,.firm-card,.order-card{box-shadow:0 4px 18px #12121206}.tile{background:linear-gradient(145deg,#ffffff,#f1f1f4)}.tile .tile-icon{background:linear-gradient(145deg,#fff,#d8d9de);color:#202024}.testbar{background:#e8e9ed;color:#494b52}.notice:not(.ok){background:#f5f5f7;border-color:#d4d5da;color:#4b4d53}.payment-options{border:0;padding:0;margin:0 0 20px;min-width:0}.payment-options legend{font-size:1.2rem;font-weight:780;padding:0;margin-bottom:10px}.payment-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 12px;border:1px solid var(--line);border-radius:12px;margin-top:9px;background:#fff;cursor:pointer;min-height:64px}.payment-choice span{min-width:0;display:grid;gap:4px}.payment-choice small{font-size:.82rem;line-height:1.4;color:var(--muted)}.payment-choice.unavailable{background:#f5f5f7;cursor:default}.payment-choice input{accent-color:#242427;flex:none;width:21px;height:21px}.payment-choice .switch{appearance:none;width:48px;height:28px;border-radius:18px;background:#cccdd2;border:1px solid #bfc1c7;position:relative;margin:0;cursor:pointer}.payment-choice .switch::after{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002}.payment-choice .switch:checked{background:#242427;border-color:#242427}.payment-choice .switch:checked::after{left:23px}.payment-choice .switch:disabled{opacity:.5;cursor:not-allowed}.payment-choice:has(input:checked){border-color:#96989e}.optional{margin-top:12px;color:#44464d}.optional summary{min-height:40px;cursor:pointer;font-weight:650;font-size:.9rem}.optional .field{margin-top:8px}.payment-options.span2{margin-top:10px;margin-bottom:0}.payment-choice:focus-within{outline:2px solid #777b85;outline-offset:2px}
/* v0.4 - white, black and silver. Status is also communicated in words. */
[hidden]{display:none!important}
:root{--bg:#f6f6f7;--ink:#151517;--soft:#ececef;--green:#171719;--danger:#38383e}
.testbar{background:#ececef;color:#44444a;border-bottom:1px solid #d9d9df}
.eyebrow{color:#63636a}.tile:first-child .tile-icon{background:#36363b}.tile:first-child small{color:#dedee4}
.badge,.badge.active,.badge.warn,.badge.off{color:#34343b;background:#ececef}
.badge.off{border:1px dashed #aaa}.badge.warn{border:1px solid #bcbcc3}
.notice,.notice.ok{background:#f1f1f4;border-color:#d8d8df;color:#35353c}
.danger{border-color:#bcbcc3;color:#292930}.toast.error{background:#34343a;color:#fff}
.header{background:linear-gradient(120deg,#141417,#33333a)}
.tile{box-shadow:0 4px 18px #11111107}.tile:hover{border-color:#a7a7b0}
.wizard-progress{display:flex;gap:7px;margin:0 0 20px}.wizard-progress span{flex:1;font-size:.8rem;padding:12px 7px;text-align:center;background:#e8e8ec;border-radius:10px;color:#65656d;font-weight:650}
.wizard-progress span.current{background:#19191c;color:#fff}.wizard-nav{display:flex;justify-content:space-between;gap:12px;margin-top:18px}.wizard-nav button{min-width:120px}
#product-form [data-form-step]{scroll-margin-top:20px}fieldset{min-width:0}#invoice-fields{border:0;padding:14px 0}#invoice-fields:disabled{opacity:.45}.check-row{display:flex;gap:10px;align-items:center;padding:15px 0;font-size:.92rem}.check-row input{width:20px;height:20px}
.detail-photos{display:flex;gap:12px;overflow:auto;margin-bottom:16px}.detail-photo{max-width:100%;width:100%;max-height:330px;object-fit:contain;flex:1;min-width:0;background:#f6f6f7;border-radius:14px}.detail-photos:has(img+img) .detail-photo{width:48%}
.series-box{border:1px solid #d6d6dc;border-radius:12px;background:linear-gradient(120deg,#f2f2f5,#fff);padding:16px;margin:12px 0}.series-box strong{font-size:1.15rem}.series-box p{margin:8px 0 0;line-height:1.65}
.dialog{max-height:90dvh;overflow:auto}.dialog h2{padding-right:8px}.dialog .full{margin-top:16px}.dialog .price{font-size:1.4rem}.share-text{width:100%;min-height:140px;border:1px solid #d5d5dc;padding:14px;border-radius:12px;resize:vertical;font:inherit;line-height:1.5;margin-bottom:16px}
.section-tools{margin:0 0 18px}.edit-action{display:grid;gap:8px}.app-footer{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;border-top:1px solid #dedee4;padding:20px 18px 90px;color:#73737b;font-size:.8rem}
.order-alert,.connection-state{padding:12px 24px;background:#29292d;color:white;display:flex;justify-content:center;align-items:center;gap:18px;font-size:.9rem}.order-alert button{background:white;color:#18181b}.connection-state{background:#e8e8ec;color:#25252b}
.offline-panel{margin-top:15vh}.order-lines li{padding-bottom:12px}.order-lines small{font-size:.78rem;color:#606068}.product-content>.secondary{margin-top:0}
@media(max-width:600px){.header-inner{padding:12px 15px;flex-wrap:wrap}.header-actions{margin-left:auto;max-width:100%}.header .brand{max-width:100%}.container{padding:24px 16px 85px}.tiles{gap:10px}.tile{min-height:160px;padding:20px}.tile strong{font-size:1.25rem}.wizard-progress span{font-size:.74rem;padding:12px 5px}.metrics{gap:7px}.metric{padding:12px 10px}.metric strong{font-size:1.12rem}.metric span{font-size:.75rem}.dialog{max-width:calc(100vw - 24px);width:580px;padding:20px}.order-alert{flex-wrap:wrap;padding:12px 16px}.edit-action{grid-column:1/-1;grid-template-columns:1fr 1fr}.app-footer{padding-bottom:95px}.form-actions button{max-width:none}.section-tools .small{flex:1}.print-order .totals{width:100%}}
@media print{@page{size:A4;margin:15mm}body>*{display:none!important}body>dialog[open]{display:block!important;position:static;max-width:none;width:auto;max-height:none;border:0;padding:0;margin:0;overflow:visible;box-shadow:none}dialog::backdrop{display:none}.no-print{display:none!important}.print-order{font-size:11pt}.print-order .notice{font-size:10pt}.print-order h2{font-size:22pt}.print-order .totals{break-inside:avoid}.print-order a{display:none!important}}
@media(max-width:600px){.detail-photo{max-height:205px}.series-box{padding:12px;margin:10px 0}#dialog:has(#detail-quantity) [data-act=detail-add]{position:sticky;bottom:0;box-shadow:0 -8px 18px #ffffffee}#dialog:has(#detail-quantity) .detail-photos{margin-bottom:10px}}

/* v0.5 clarity: restrained monochrome controls with comfortable touch targets. */
.filter-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.filter-tabs button{min-height:44px}
.product-tools{min-width:100px}.product-tools summary{cursor:pointer;padding:10px 6px;font-size:14px;text-align:center}
.product-tools[open]{display:grid;gap:8px}.product-tools button{display:block;width:100%;margin-top:6px}
.edit-action{flex-wrap:wrap;align-items:center}.setup-card>summary{display:flex;justify-content:space-between;cursor:pointer;gap:12px;align-items:center;min-height:44px}.setup-card>summary strong{font-size:17px}
.setup-steps{display:grid;gap:10px;margin:12px 0}.setup-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #ececec;padding-top:12px}.setup-row>strong{flex:1;font-size:14px;min-width:120px}.setup-check .icon{width:20px;height:20px}
.draft-status{font-size:13px;line-height:1.5;background:#f4f4f4;color:#363636;padding:12px;border-radius:10px}.draft-reminder{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.stock-history{margin-top:20px;border-top:1px solid #ddd;padding-top:16px}.stock-history summary{cursor:pointer;line-height:1.5}.stock-event{border-top:1px solid #eee;padding:12px 0;overflow-wrap:anywhere}.stock-event p{margin:6px 0}.product-tools .button,.product-tools button{white-space:normal}
.badge.shipment-status{display:inline-flex;align-items:center;gap:8px;background:#e8f5ec;color:#176534;border:1px solid #b6dfc2}
.shipment-status .icon{flex:none;width:21px;height:21px;stroke-width:3}
.badge.shipment-confirmation{display:flex;justify-content:center;width:100%;padding:15px 12px;border-radius:12px;font-size:1rem;font-weight:750;line-height:1.4;text-align:center}
button.shipping-action{background:#176534;border-color:#176534;color:#fff;gap:8px}
button.shipping-action:hover{background:#11532a;border-color:#11532a}
.shipping-details{margin-top:16px;border-top:1px solid var(--line);padding-top:8px}
.shipping-details>summary{display:list-item;list-style:disclosure-closed;cursor:pointer;min-height:44px;padding:12px 0;font-size:.9rem;font-weight:650}
.shipping-details[open]>summary{list-style:disclosure-open;border:0;margin:0;padding-bottom:12px}
.shipping-details .notice{margin:0 0 12px}
@media(max-width:480px){.edit-action{display:flex;gap:8px;width:100%}.edit-action>button{flex:1}.product-tools{flex-basis:100%;min-width:0}.product-tools[open] button{min-height:44px}.setup-row .help{max-width:100px}.draft-reminder .actions{width:100%}.draft-reminder .actions>button{flex:1}}

.mfa-secret{overflow-wrap:anywhere;user-select:all}.mfa-codes{display:grid;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.mfa-codes code{font-size:1rem;user-select:all}
.bulk-wrap{max-width:900px;margin:0 auto}.bulk-wrap h1{max-width:22ch}.bulk-wrap .panel{margin-top:18px}.bulk-wrap input,.bulk-wrap select,.bulk-wrap textarea{min-width:0;width:100%}.bulk-wrap input[type=file]{font-size:.85rem;padding:12px 0}.bulk-photo-input{margin-top:20px}.bulk-row details{margin-top:16px}.bulk-row summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:650}.bulk-errors{padding:16px 16px 16px 35px;border:1px solid #ac3333;border-radius:12px;background:#fff4f3;color:#802020;line-height:1.8}.bulk-errors li{overflow-wrap:anywhere}.bulk-preview li{line-height:1.8;overflow-wrap:anywhere}.bulk-footer{position:sticky;bottom:8px;background:#fff;padding:12px;border:1px solid #ddd;border-radius:12px}.bulk-wrap button{min-height:44px}.bulk-row h3{margin:0}.bulk-wrap .notice{overflow-wrap:anywhere}.bulk-wrap textarea{min-height:90px}@media(max-width:600px){.bulk-wrap .form-grid{grid-template-columns:1fr}.bulk-wrap .section-head{align-items:flex-start;gap:12px}.bulk-wrap .actions{flex-wrap:wrap}.bulk-wrap .panel{padding:16px}.bulk-wrap .section-head .actions>button{flex:1}.bulk-wrap h1{font-size:1.8rem}}
.bulk-photos{display:flex;gap:8px;margin-top:10px}.bulk-thumbnail{width:76px;height:96px;object-fit:contain;background:#f5f5f5;border:1px solid #ddd;border-radius:8px}

/* Platform identity; tenant names and subtitles keep their existing layout. */
.platform-brand small{text-transform:none;letter-spacing:0;line-height:1.45;max-width:32ch}
.catalog-qr{display:flex;justify-content:center;margin:16px auto;background:#fff;max-width:280px}.catalog-qr svg{display:block;width:100%;height:auto}.qr-link{min-height:64px;overflow-wrap:anywhere}

.favorite-unavailable{list-style:none;padding:0}.favorite-unavailable li{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}

/* Explicit product color groups, preserving independent product identity. */
.color-choices{border:0;padding:0;margin:18px 0;min-width:0}.color-choices legend{font-weight:600;margin-bottom:8px}.color-choices>div{display:flex;flex-wrap:wrap;gap:8px}.color-choices button{white-space:normal;overflow-wrap:anywhere;max-width:100%;min-height:44px}.color-choices button[aria-pressed="true"]{background:#111;color:#fff;border-color:#111}

.saved-list{margin-top:16px;overflow-wrap:anywhere}.saved-list-items{padding:0;list-style:none;display:grid;gap:16px}.saved-list-items li{display:grid;gap:4px;overflow-wrap:anywhere}.saved-list-items span{font-size:.9rem}.list-warning{font-weight:600}.saved-list .actions{flex-wrap:wrap}

.selection-options{max-height:45vh;overflow-y:auto;margin-bottom:18px}.selection-row{display:flex;align-items:center;gap:12px;padding:12px 0;cursor:pointer}.selection-row input{flex:0 0 22px;width:22px;height:22px;accent-color:#111}.selection-row>span{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.selection-row>span>span{font-size:.85rem;color:#656565}.selected-catalog{margin:16px 0}.selected-catalog p{margin-top:0}

/* Compact catalogue discovery controls; no change to product cards. */
.catalog-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin-top:12px}
.catalog-tools .field{min-width:0;margin:0}.catalog-tools select{width:100%;min-width:0}
.catalog-stock-toggle{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.catalog-stock-toggle input{width:20px;height:20px;accent-color:#111;flex-shrink:0}
.catalog-result-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
@media(max-width:600px){.catalog-tools{grid-template-columns:minmax(0,1fr)}.catalog-stock-toggle{justify-self:start}}

.insights-filter{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:20px 0}.insights-filter .field{flex:1;min-width:160px;margin:0}.insights-filter button{min-height:44px}.insights-range{font-weight:600}.insights-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.insights-filter .field,.insights-filter button{width:100%;flex-basis:100%}.insights-metrics{grid-template-columns:minmax(0,1fr)}}

.order-filters{display:flex;flex-wrap:wrap;align-items:end}.order-filters>input{flex:2 1 220px}.order-filters>select{flex:1 1 170px;width:auto}.order-filters>.field{flex:1 1 165px}.order-filters>.field select{width:100%}.order-filter-summary{margin:0 0 16px}@media(max-width:600px){.order-filters>input,.order-filters>select,.order-filters>.field,.order-filters>button{flex:1 1 100%;width:100%}}
.product-summary-total{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between}.product-insight-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;overflow-wrap:anywhere}.product-insight-row>div{min-width:0}.product-insight-row .help{margin:5px 0 0}.product-insight-values{display:flex;flex-direction:column;gap:5px;text-align:right;flex-shrink:0}.product-insight-values span{font-size:13px;color:var(--muted)}@media(max-width:600px){.product-insight-row{align-items:flex-start;flex-direction:column;gap:8px}.product-insight-values{text-align:left;flex-shrink:1}.product-summary-total{flex-direction:column}}
@media(max-width:600px){.product-section-head{display:block}.product-section-head .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.product-section-head .actions button{width:100%;min-width:0}}

.customer-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}.customer-amounts>div{display:flex;flex-direction:column;gap:6px}.customer-amounts span{font-size:13px;color:var(--muted)}.customer-amounts strong{overflow-wrap:anywhere}@media(max-width:600px){.customer-amounts{grid-template-columns:1fr;gap:12px}.customer-amounts>div{flex-direction:row;justify-content:space-between;gap:12px}}

.legal-consent{display:grid;gap:1rem;margin:1rem 0}.legal-consent label{display:flex;align-items:flex-start;gap:.7rem;font-size:1rem;line-height:1.6}.legal-consent input[type=checkbox]{width:1.2rem;min-width:1.2rem;height:1.2rem;min-height:1.2rem;padding:0;flex:none;margin:.3rem 0 0;accent-color:#171717}.legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;padding:1.5rem;font-size:.875rem}.legal-links a,.legal-consent a{text-decoration:underline;color:inherit}.legal-page{max-width:900px;margin:auto;padding:1rem}.legal-page h2{font-size:1.2rem;margin-top:1.8rem}.legal-page p{font-size:1rem;line-height:1.75;overflow-wrap:anywhere}

/* Simple product entry and catalogue sharing. */
.store-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.store-primary-actions button{min-height:64px;font-size:1.15rem}
.store-secondary-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.store-secondary-actions .tile,.store-secondary-actions .tile:first-child{background:white;color:var(--ink);min-height:130px;padding:20px;box-shadow:none}.store-secondary-actions .tile:first-child small{color:var(--muted)}.store-secondary-actions .tile .tile-icon,.store-secondary-actions .tile:first-child .tile-icon{background:var(--soft);color:var(--ink);width:40px;height:40px}.store-secondary-actions .tile strong{font-size:1.15rem}
.product-basics{display:grid;gap:18px}.product-basics .photo-slot .placeholder{min-height:72px}.product-basics .photo-slot img{height:155px;object-fit:contain}.product-summary{padding:14px;background:var(--bg);border-radius:12px;display:grid;gap:6px}.product-options{margin:0;border-top:1px solid var(--line);padding-top:14px}.product-options>summary{font-weight:700;min-height:44px;cursor:pointer}.product-options[open]>summary{margin-bottom:12px}.product-options .size-grid{margin-bottom:12px}.simple-save-actions{display:grid;gap:10px}.simple-save-actions button{width:100%}.simple-product-form .draft-status{margin-top:14px}.share-more{margin:18px 0}.share-more summary{min-height:44px;cursor:pointer}.share-more .actions{margin-bottom:12px}
@media(max-width:600px){.store-primary-actions{grid-template-columns:1fr;gap:10px}.store-primary-actions button{min-height:56px}.store-secondary-actions{grid-template-columns:1fr}.store-secondary-actions .tile{flex-direction:row;align-items:center;justify-content:flex-start;min-height:86px;padding:16px;gap:14px}.product-basics{gap:14px}.simple-product-form .form-grid{gap:12px}}

#subscription-notice summary{cursor:pointer;font-weight:700;min-height:28px}#subscription-notice details[open]>summary{margin-bottom:12px}.catalog-account-tools{margin:12px 0}.catalog-account-tools summary,.cart-list-options summary{cursor:pointer;min-height:44px;font-weight:650}.catalog-account-tools .actions,.cart-list-options .actions{padding:10px 0}.cart-row .counter{flex-wrap:wrap}.cart-row .counter [data-act=remove-cart]{width:auto;font-size:.8rem}.product-basics .form-grid .field input[type=number]{font-variant-numeric:tabular-nums}

/* Merchant manual stock controls: touch friendly, series-based, explicit save. */
.stock-stepper{display:grid;grid-template-columns:56px minmax(0,1fr) 56px;gap:10px;align-items:center}.stock-stepper button{min-height:56px;font-size:26px;line-height:1}.stock-stepper input{min-width:0;width:100%;min-height:56px;text-align:center;font-size:22px;font-weight:700}.stock-stepper button:disabled{opacity:.4;cursor:not-allowed}

.inline-stock-form{margin-top:12px;max-width:340px}.inline-stock-form label{font-size:12px;font-weight:700}.inline-stock-controls{display:grid;grid-template-columns:44px minmax(55px,1fr) 44px auto;gap:6px;margin-top:5px}.inline-stock-controls button{min-height:44px;padding:6px;font-size:22px}.inline-stock-controls .inline-stock-save{font-size:12px;padding:6px 10px}.inline-stock-controls input{min-width:0;width:100%;text-align:center;padding:6px;font-size:17px;font-weight:700}.inline-stock-controls button:disabled{opacity:.4;cursor:not-allowed}.inline-stock-info{margin:6px 0 0;font-size:11px}.inline-stock-untracked{margin-top:10px}@media(max-width:480px){.inline-stock-controls{grid-template-columns:44px minmax(0,1fr) 44px}.inline-stock-save{grid-column:1/-1}}

.product-more{margin:0 0 20px}.product-more>summary{cursor:pointer;min-height:44px;display:list-item;width:fit-content;font-weight:600;padding:10px 0}.product-more .actions{margin:8px 0 12px}.product-more .help{margin-bottom:8px}
@media(max-width:600px){.product-more .actions{display:grid;grid-template-columns:1fr}.product-more .actions button{width:100%}}

.product-select-photo{display:flex;flex-direction:column;gap:8px}.product-select-label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:.85rem;cursor:pointer}.product-select-label input{width:20px;height:20px;accent-color:var(--ink);margin:0}.product-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}.product-selection-bar [hidden]{display:none!important}.product-delete{font-weight:500}@media(max-width:600px){.product-selection-bar .actions{width:100%}}

/* Compact sales and customer accounts; stock steppers remain unchanged. */
.sale-draft-line{border-bottom:1px solid var(--line);padding:12px 0}.sale-draft-quantity{display:flex;align-items:center;gap:8px;margin-top:8px}.sale-draft-quantity input{min-width:0;max-width:76px;text-align:center}.sale-draft-quantity button{min-width:44px;min-height:44px}.ledger-totals{display:grid;gap:14px}.ledger-totals>div,.balance-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.ledger-totals strong,.balance-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}.balance-row{padding:12px;background:#f6f3fa;border-radius:8px}.balance-row strong{color:#7044a0}.ledger-entry{padding:16px 0;border-bottom:1px solid var(--line)}.ledger-entry>div{display:flex;justify-content:space-between;gap:12px}.ledger-entry p{margin:6px 0}.sale-slip{max-width:72mm;margin:auto;font-size:12px}.sale-slip h2,.sale-slip h3{text-align:center}.sale-slip .order-lines{padding-left:16px}.sale-slip .total-row{gap:8px}.sale-slip .balance-row{background:none;color:#111}.sale-slip-logo{display:block;width:32px;height:32px;margin:0 auto 8px}@media print{body:has(.sale-slip) .sale-slip{width:72mm;max-width:72mm;color:black}body:has(.sale-slip) .balance-row strong{color:black}body:has(.sale-slip) .sale-slip h2{font-size:14pt}body:has(.sale-slip) .sale-slip h3{font-size:10pt}body:has(.sale-slip) .order-lines li{break-inside:avoid}body:has(.sale-slip) dialog{width:72mm!important}}

.receipt-quantities{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:12px 0;margin:12px 0}.sale-slip .receipt-quantities{font-size:12px}

.ledger-balance{display:grid;gap:6px;padding:16px;background:#f5f3f9;border-radius:12px;margin:14px 0}.ledger-balance strong{font-size:28px;line-height:1.2}.ledger-totals{margin:14px 0}.ledger-totals+.full{margin-bottom:8px}

@media screen{.sale-slip{max-width:100%;font-size:16px}.sale-slip .order-lines{font-size:15px}.sale-slip .help{font-size:13px}}.sale-slip-brand{text-align:center}

/* Compact merchant receipt. Print sizing lives in receipt-print.css. */
.sale-slip{color:#111;font-family:Arial,Helvetica,sans-serif;line-height:1.25}.receipt-header{text-align:center;margin:0 0 10px}.receipt-brandline{display:flex;justify-content:center;align-items:center;gap:6px;font-size:10px;letter-spacing:.3px}.receipt-brandline .sale-slip-logo{display:block;width:26px;height:26px;margin:0}.receipt-header h2{font-size:18px;margin:7px 0 4px}.receipt-header p{margin:0;font-size:12px;font-weight:700}.receipt-meta{font-size:11px;line-height:1.5;border-top:1px solid #aaa;padding-top:8px}.receipt-customer{font-size:12px;line-height:1.4;padding:7px 0;border-bottom:1px solid #aaa}.sale-slip .receipt-section{font-size:12px;text-align:left;margin:12px 0 5px}.receipt-currency{font-size:10px;margin:0 0 5px}.receipt-items{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.receipt-items th,.receipt-items td{padding:6px 2px;vertical-align:top;text-align:right;overflow-wrap:anywhere;border:0;background:none;color:inherit;line-height:1.3}.receipt-items th:first-child,.receipt-items td:first-child{text-align:left}.receipt-items th{font-size:10px;font-weight:700;border-bottom:1px solid #aaa;overflow-wrap:normal;word-break:normal}.receipt-items th:nth-child(2),.receipt-items th:nth-child(3),.receipt-items td:not(:first-child){white-space:nowrap}.receipt-items th small{display:block;font-size:9px;font-weight:400;margin-top:2px}.receipt-items td{font-variant-numeric:tabular-nums}.receipt-items th:nth-child(2),.receipt-items td:nth-child(2){text-align:center}.receipt-items td:nth-child(3),.receipt-items th:nth-child(3){text-align:center}.receipt-items td small{display:block;font-size:10px;margin-top:2px}.receipt-product-col{width:32%}.receipt-quantity-col{width:15%}.receipt-unit-col{width:12%}.receipt-price-col{width:20%}.receipt-amount-col{width:21%}.receipt-count{border-top:1px solid #aaa;border-bottom:1px solid #aaa;padding:7px 0;margin:5px 0;font-size:12px}.receipt-row{display:flex;justify-content:space-between;gap:8px;padding:3px 0;font-size:12px;line-height:1.25}.receipt-row>:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.receipt-emphasis{font-weight:700}.receipt-payments{width:100%;border-collapse:collapse;font-size:10px;margin-bottom:6px}.receipt-payments td{padding:4px 2px;border:0;vertical-align:top}.receipt-payments td:first-child{width:43%;padding-left:0}.receipt-payments td:last-child{text-align:right;white-space:nowrap}.receipt-footer{text-align:center;font-size:9px;line-height:1.3;border-top:1px solid #aaa;margin-top:8px;padding-top:7px}.receipt-status{font-weight:700;text-align:center}
/* Confirmed outcomes use one small green check; warnings remain distinct. */
.toast.success::before,.success-heading::before,.success-status::before,.notice.ok::before{content:'✓';display:inline-block;color:#167445;background:#e6f4eb;border-radius:50%;width:1.35em;height:1.35em;line-height:1.35em;text-align:center;font-weight:700;margin-right:.5em;vertical-align:baseline;flex:none}
.success-heading{display:flex;align-items:center}
.currency-toolbar{display:flex;justify-content:flex-end;margin:0 0 16px}.currency-toolbar label{display:flex;align-items:center;gap:10px;font-size:13px;color:#555}.currency-toolbar select{width:auto;min-width:86px;padding:8px 12px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#111}.currency-toolbar select:focus-visible{outline:2px solid #7351a5;outline-offset:2px}@media print{.currency-toolbar{display:none}}

.fx-note{font-size:12px;color:#666;line-height:1.6;margin:4px 0 18px}.pricing-settings{margin-bottom:20px}.pricing-settings select{max-width:100%}

/* USD is the accounting currency; TRY is a smaller reference below it. */
.sale-slip .receipt-try { display:block; font-size:.86em; font-weight:500; color:#000; margin-top:2px; line-height:1.25; }
.sale-slip .receipt-fx-note { font-size:11px; line-height:1.4; margin:4px 0; color:#000; }
@media print { .sale-slip .receipt-try { font-size:7.5pt!important; font-weight:500!important; color:#000!important; opacity:1!important; } .sale-slip .receipt-fx-note { font-size:8pt!important; color:#000!important; opacity:1!important; } }

/* Keep product descriptions out of the narrow thermal price columns. */
.sale-slip .receipt-item-heading { display:none; }
@media print {
 .receipt-product-col { width:16%!important; }
 .receipt-quantity-col { width:13%!important; }
 .receipt-unit-col { width:12%!important; }
 .receipt-price-col { width:28%!important; }
 .receipt-amount-col { width:31%!important; }
 .sale-slip .receipt-item-heading { display:table-row!important; }
 .receipt-item-heading td { padding:7px 1px 2px!important; font-size:8.5pt!important; font-weight:600!important; border-top:0.3pt solid #aaa!important; white-space:normal!important; }
 .receipt-item-values .receipt-product-name { display:none!important; }
 .receipt-item-values td { padding-top:2px!important; padding-bottom:7px!important; }
 .receipt-item-values td small { margin-top:0!important; }
 .receipt-item-values td:nth-child(4),.receipt-item-values td:nth-child(5) { padding-left:4px!important; font-size:8pt!important; white-space:nowrap!important; overflow-wrap:normal!important; font-variant-numeric:tabular-nums!important; }
 .receipt-item-values .receipt-try { white-space:normal!important; }
 .receipt-items th:nth-child(4),.receipt-items th:nth-child(5) { padding-left:4px!important; }
}
