
:root{--red:#be2634;--ink:#202329;--muted:#72757d;--line:#e8e8ec;--bg:#f6f6f8}*{box-sizing:border-box}body{margin:0;font:14px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg)}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #df8992;outline-offset:2px}button{border:0;background:none;color:inherit}header{padding:18px 20px 14px;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;justify-content:space-between}.logo{font-size:25px;font-weight:900;letter-spacing:-1.6px;color:var(--red);font-style:italic}.avatar{width:38px;height:38px;background:#f4e9eb;border-radius:50%;display:grid;place-items:center;font-weight:700;color:var(--red)}.event{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#777;margin-top:3px}.meta{display:flex;justify-content:space-between;margin-top:17px;font-size:12px;color:var(--muted)}.green{color:#27805a}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#319065;margin-right:5px}main{padding:22px 18px 180px;max-width:700px;margin:auto}h1{font-size:26px;letter-spacing:-.9px;margin:0 0 4px}h2{font-size:17px;letter-spacing:-.3px;margin:0}p{margin:0;color:var(--muted)}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.search{margin:20px 0 14px;display:flex;gap:10px;align-items:center;border:1px solid var(--line);background:white;border-radius:12px;padding:0 14px}.search input{width:100%;height:46px;border:0;outline:none;background:none}.tabs{display:flex;gap:8px;margin-bottom:18px;overflow:auto}.chip{padding:10px 15px;white-space:nowrap;border-radius:9px;background:white;border:1px solid var(--line);font-size:12px;font-weight:600}.chip.active{background:var(--ink);color:white;border-color:var(--ink)}.count{font-size:12px;color:var(--muted);margin-bottom:12px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.product{border:1px solid var(--line);border-radius:14px;background:white;padding:14px;min-height:184px;display:flex;flex-direction:column}.tile{height:40px;width:40px;border-radius:11px;display:grid;place-items:center;background:#f5edf0;color:#ad5b6b;margin-bottom:12px}.tile svg{width:23px;height:23px}.sku{font-size:10px;letter-spacing:.7px;color:var(--muted);margin-bottom:3px}.name{font-weight:650;font-size:13px;line-height:1.4;min-height:37px}.stock{font-size:11px;color:var(--muted);margin:6px 0 12px}.price{font-size:15px;font-weight:750}.add{background:#fbeef0;color:var(--red);border-radius:9px;width:44px;height:44px;font-size:24px}.product .row{margin-top:auto}.dock{position:fixed;bottom:78px;left:14px;right:14px;max-width:664px;margin:auto;padding:15px 17px;background:var(--red);border-radius:14px;color:white;display:flex;align-items:center;justify-content:space-between;box-shadow:0 8px 22px #9e26352a}.dock small{display:block;opacity:.8;font-size:11px}.dock strong{font-size:17px}.dock span{font-weight:650}nav{position:fixed;bottom:0;left:0;right:0;height:72px;background:white;border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:8px 8px 12px}nav button{width:25%;font-size:10px;color:#83858d;display:flex;flex-direction:column;align-items:center;gap:5px}nav svg{width:22px;height:22px}nav .active{color:var(--red);font-weight:700}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:18px;margin:16px 0}.caption{font-size:10px;letter-spacing:1.5px;font-weight:750;color:var(--muted);margin-bottom:14px}.methods{display:flex;gap:8px;margin-top:14px}.method{flex:1;border:1px solid var(--line);border-radius:10px;min-height:68px;font-size:12px;display:grid;place-items:center;padding:10px;gap:4px}.method svg{width:22px;height:22px}.method.active{border-color:var(--red);background:#fff4f5;color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}label{display:block;font-size:12px;font-weight:600;margin:17px 0 7px}.field{width:100%;border:1px solid var(--line);border-radius:10px;padding:13px;font-weight:650;font-size:18px}.hint{font-size:11px;color:var(--muted);margin-top:10px}.summary{padding:13px 0;border-bottom:1px solid var(--line)}.summary:last-child{border:0}.qty{font-size:12px;color:var(--muted);margin-top:5px}.metric{font-size:32px;font-weight:750;letter-spacing:-1px;margin:5px 0}.metricgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metricgrid .panel{margin:0;padding:16px}.submetric{font-size:23px;font-weight:750}.chart{height:95px;display:flex;align-items:end;gap:14px;border-bottom:1px solid var(--line);padding:0 10px}.bar{flex:1;background:#efc8ce;border-radius:5px 5px 0 0}.bar:nth-child(4){background:var(--red)}.times{display:flex;justify-content:space-around;font-size:10px;color:var(--muted);margin-top:8px}.badge{background:#edf6f0;color:#35815c;padding:4px 8px;border-radius:5px;font-size:10px;font-weight:600}.inventory{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);align-items:center}.inventory .tile{margin:0;flex-shrink:0}.inventory .detail{flex:1}.inventory strong{font-size:13px}.smallbtn{border:1px solid var(--line);border-radius:8px;padding:10px;font-size:11px;font-weight:650;min-height:44px}.banner{padding:10px 14px;background:#fff1dc;color:#8e651f;border-radius:9px;font-size:11px;margin:16px 0}.back{color:var(--muted);padding:0 0 16px;min-height:44px;font-size:12px}.notice{position:fixed;top:12px;left:20px;right:20px;background:#202329;color:white;padding:14px;border-radius:10px;z-index:10;display:none}.primary{background:var(--red);color:white;padding:12px 14px;border-radius:9px;font-size:12px;min-height:44px}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.preview{font-size:10px;color:#8d6a35;background:#fff3dc;padding:3px 7px;border-radius:5px;letter-spacing:.3px} @media(min-width:750px){main{padding-top:30px}header .brand,header .meta{max-width:664px;margin-left:auto;margin-right:auto}.grid{grid-template-columns:repeat(3,1fr)}nav{gap:45px;justify-content:center}nav button{max-width:110px}}
header{padding:0;border:0;background:white}.brand{padding:13px 20px 12px}.logo-img{width:113px;height:auto;display:block}.brandlabel{font-size:8px;letter-spacing:2px;color:#756e73;margin-top:5px;font-weight:650}.avatar{background:#f7eeee;border:1px solid #eadadd;width:40px;height:40px;font-size:12px}.identity{display:flex;align-items:center;gap:9px}.identity strong{font-size:12px}.identity small{display:block;font-size:10px;color:var(--muted)}.eventstrip{background:#aa1e30;color:white;padding:9px 20px;position:relative;overflow:hidden}.eventstrip:after{content:"";position:absolute;right:-25px;top:-60px;width:180px;height:180px;border:22px solid #ffffff08;border-radius:50%;pointer-events:none}.eventstrip .row{position:relative;z-index:1}.eyebrow{display:none}.eventtitle{font-size:13px;font-weight:650;letter-spacing:-.3px}.eventyear{color:#f5c8ce;font-weight:400}.eventpill{font-size:9px;border:1px solid #ffffff45;padding:4px 7px;border-radius:6px;white-space:nowrap}@media(min-width:750px){header .brand,.eventstrip>.row{max-width:664px;margin:auto}}.tile{width:46px;height:46px;border-radius:13px;border:1px solid #00000006;margin-bottom:13px}.tile svg{width:27px;height:27px;stroke-width:1.6}.category-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.category-name{font-size:9px;color:#77717a;padding-top:5px;letter-spacing:.2px}.product{min-height:209px}.bundle-label{font-size:9px;color:#795ba0;background:#f2ecfa;padding:3px 7px;border-radius:5px}.product .name{min-height:37px}.product .stock{font-size:10px}.tile.gelato{background:#fbf0df;color:#a87b35}.tile.drink{background:#eaf2e6;color:#65854e}.tile.syrup{background:#fff0e4;color:#b47b48}.tile.seasoning{background:#f6eae6;color:#a36f59}.tile.topping{background:#eaf1f4;color:#608799}.tile.bundle{background:#f1eafa;color:#8464a9}
body{background:#f6f5f5}.grid{gap:12px;align-items:stretch}.product{position:relative;min-height:212px;padding:0;border:1px solid #e6e1e3;border-radius:16px;background:#fff;box-shadow:0 3px 10px #38202b04;overflow:hidden;display:flex;flex-direction:column}.card-main{padding:15px 14px 11px;flex:1}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:11px;min-height:20px}.product .sku{margin:0;font-size:10px;letter-spacing:.6px;color:#716870;font-weight:600}.size-tag{font-size:9px;background:#f5f2f3;color:#776b72;border-radius:5px;padding:3px 6px;white-space:nowrap}.product .name{font-size:14px;letter-spacing:-.2px;line-height:1.45;font-weight:650;min-height:41px;margin:0 0 12px;overflow-wrap:anywhere}.availability{font-size:10px;color:#517760;display:flex;align-items:center;gap:4px}.availability:before{content:'';width:4px;height:4px;border-radius:50%;background:#5c8c6b;display:inline-block}.product-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;background:#fcfafb;padding:10px 12px;border-top:1px solid #f0eaed}.price-label{font-size:8px;color:#7e737a;letter-spacing:.6px;display:block;margin-bottom:2px}.product .price{font-size:17px;font-weight:750;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.product .add{background:#f9e9ed;color:#b5223b;border:1px solid #f4dce3;width:44px;height:44px;border-radius:11px;font-size:25px}.product.chosen{border-color:#cb8595;box-shadow:0 0 0 1px #d697a54a}.chosen .product-footer{background:#fff3f6}.counter{display:flex;align-items:center;background:white;border:1px solid #ead1d9;border-radius:9px;overflow:hidden;height:44px}.counter button{width:30px;height:44px;font-size:20px;padding:0;color:#b5223b}.counter b{min-width:18px;font-size:12px;text-align:center}.package-label{display:inline-block;color:#76538d;background:#f3ecf8;font-size:8px;padding:3px 6px;border-radius:5px;font-weight:650}.bundle-copy{font-size:10px;line-height:1.5;color:#776c78;margin:-4px 0 9px}.bundle-card{border-top:3px solid #bba0ca}.bundle-card .card-main{padding-top:13px}.bundle-card .name{min-height:0;margin-bottom:8px}.count{display:flex;align-items:center;justify-content:space-between;margin-top:2px;margin-bottom:13px;font-size:10px}.count strong{font-size:14px;color:#302b30}.tabs{margin-bottom:17px}.search input{font-size:16px;min-width:0}.dock{bottom:calc(80px + env(safe-area-inset-bottom));z-index:20}.dock>span{font-size:13px}.dock strong{font-size:19px}.dock small{font-size:10px}nav{height:calc(72px + env(safe-area-inset-bottom));padding-bottom:calc(12px + env(safe-area-inset-bottom));z-index:21}main{padding-bottom:210px}.product .add:active,.counter button:active{background:#efd2db}button{transition:background-color .12s ease}button:focus-visible{outline:3px solid #99445c;outline-offset:3px}.notice{z-index:50}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.product{min-height:257px}.card-main{padding:14px 13px 10px}.product .name{font-size:14px;min-height:41px;margin-bottom:8px}.card-category{font-size:9px;color:#786d75;margin-bottom:8px}.product-footer{display:block;padding:10px 12px 12px}.price-label{font-size:9px;margin-bottom:2px}.product .price{font-size:21px;letter-spacing:-.6px;display:block;white-space:nowrap}.product .add{width:100%;height:44px;font-size:12px;font-weight:650;margin-top:10px;background:#f9e9ed}.counter{margin-top:10px;width:100%;justify-content:space-between}.counter button{width:44px;height:44px}.counter b{font-size:14px}.category-filter{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px}.category-filter label{margin:0;font-size:11px;color:#716670}.category-filter select{font:inherit;font-size:12px;max-width:205px;padding:10px 30px 10px 12px;border:1px solid #e4dce0;border-radius:9px;background:white;color:#40363e;min-height:44px}.sample-note{background:#fff4de;color:#82602a;border-radius:8px;padding:9px 11px;margin:0 0 13px;font-size:10px}.card-main .availability{margin-top:auto}.card-main{display:flex;flex-direction:column}.bundle-card .name{min-height:0}.tabs{margin-bottom:12px}.price-label{letter-spacing:.3px}main{padding-bottom:220px}
.card-meta{align-items:flex-start}.size-tag{font-size:9px;padding:4px 6px;max-width:90px;white-space:normal;text-align:right;line-height:1.3}.card-category{font-size:11px;color:#746873;margin-top:0;margin-bottom:10px}.availability{font-size:10px;color:#3c6d50;line-height:1.5}.availability:before{display:none}.product .name{margin-bottom:6px}.product{min-height:260px}.package-label{font-size:9px;padding:4px 7px}
.grid{align-items:stretch}.section-heading{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding:8px 1px 0;margin-top:8px}.section-heading h2{font-size:15px}.section-heading span{font-size:10px;color:#766c74}.bundle-wide{grid-column:1/-1;min-height:0;border-top:1px solid #e6dce9;border-left:3px solid #b99ac9;border-radius:15px}.bundle-wide .card-main{padding:16px 16px 13px}.bundle-wide .name{font-size:17px;min-height:0;margin:0}.bundle-wide .card-meta{margin-bottom:8px}.bundle-caption{margin:13px 0 7px;font-size:10px;font-weight:650;color:#776b78}.bundle-items{list-style:none;margin:0;padding:0}.bundle-items li{display:flex;align-items:baseline;gap:9px;padding:7px 0;font-size:12px;color:#423943;border-bottom:1px solid #f2edf3}.bundle-items li:last-child{border:0}.bundle-items .units{color:#79558d;font-size:11px;font-weight:700;white-space:nowrap}.bundle-items .weight{color:#817481;font-size:10px;white-space:nowrap}.bundle-wide .availability{margin-top:12px;font-size:11px}.bundle-wide .product-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;gap:16px}.bundle-wide .add{margin:0;width:124px;background:#f0e8f5;border-color:#e7d9ed;color:#79518d}.bundle-wide .counter{margin:0;width:124px;flex-shrink:0}.bundle-wide .price{font-size:22px}.bundle-wide .price-label{font-size:10px}.catalog-end{grid-column:1/-1;text-align:center;font-size:10px;color:#857b82;padding:14px}main{padding-bottom:220px}

.full{width:100%;margin-top:14px;min-height:46px}.login-card{max-width:400px;margin:30px auto;background:white;border:1px solid var(--line);padding:24px;border-radius:16px}.login-card p{margin-top:8px}.field{font-size:16px;min-width:0}.form-error{color:#a71d32;margin-top:12px;font-size:12px}button:disabled{opacity:.45;cursor:not-allowed}.confirm{display:flex;gap:9px;align-items:center;line-height:1.5}.confirm input{width:20px;height:20px;flex-shrink:0}.summary strong{font-size:13px}.summary .row>strong:first-child{min-width:0;overflow-wrap:anywhere}.inline-qty{display:flex;gap:6px;align-items:center}.inline-qty button{min-width:44px;min-height:44px;background:#f7edf0;border-radius:7px}.date-range{display:grid;grid-template-columns:1fr 1fr;gap:12px}.revenue{background:#28272c;color:white}.revenue .caption{color:#d8ced4}.inventory-row{display:flex;justify-content:space-between;gap:12px}.inventory-row>div:first-child{min-width:0}.inventory-row strong{font-size:13px;overflow-wrap:anywhere}.inventory-actions{display:flex;flex-direction:column;gap:7px}.receipt pre{white-space:pre-wrap;font:13px/1.7 monospace;margin:0;overflow-wrap:anywhere}.success{text-align:center}.modal-head{display:flex;justify-content:flex-end;margin-bottom:12px}dialog{border:0;border-radius:18px;width:min(92vw,520px);max-height:85dvh;padding:22px;overflow:auto;box-shadow:0 15px 60px #24132140}dialog::backdrop{background:#22152277}.counter{height:44px}.counter button{min-width:36px}.bundle-wide .add,.bundle-wide .counter{min-width:124px}.bundle-items li>span{min-width:0;overflow-wrap:anywhere}.name{overflow-wrap:anywhere}.size-tag{max-width:85px}.category-filter{display:none}.notice{z-index:100}nav button{width:20%;min-height:48px}main{padding-bottom:230px}.search input{font-size:16px}@media(max-width:760px){dialog{width:100%;max-width:none;max-height:88dvh;margin:auto 0 0;border-radius:18px 18px 0 0;padding-bottom:calc(24px + env(safe-area-inset-bottom))}}@media print{body>*{display:none!important}body main{display:block!important;padding:0}main>*{display:none!important}main .receipt{display:block!important;border:0;padding:0;margin:0}body>header,nav,#action{display:none!important}@page{margin:3mm}}

/* Camera stays inside the existing responsive dialog. */
.scan-launch{font-size:17px;min-height:56px;margin-bottom:8px}
#scan-video{display:block;width:100%;height:min(46dvh,360px);min-height:150px;object-fit:contain;background:#171717;border-radius:12px}
#scan-status{margin-top:14px;min-height:66px;padding:12px;border-radius:10px;background:#f4f1f2;color:var(--ink);font-size:15px;overflow-wrap:anywhere}
#scan-status[data-state="success"]{background:#e7f5ec;color:#1b6139}
#scan-status[data-state="error"]{background:#fff0e8;color:#913b1d}

/* Compact real-catalog phone layout */
.catalog-intro{display:flex;align-items:baseline;justify-content:space-between}.catalog-intro h1{font-size:24px;margin:0}.catalog-intro span{font-size:11px;color:#756b73}main{padding-top:17px}.brand{padding-top:10px;padding-bottom:10px}.brandlabel{font-size:7px}.logo-img{width:105px}.eventstrip{padding-top:8px;padding-bottom:8px}.search{margin-top:14px;margin-bottom:10px}.search input{height:44px}.tabs{margin-bottom:12px}.chip{min-height:42px}.count{margin-bottom:9px}.grid{gap:10px}.product{min-height:0;border-radius:13px}.card-main{padding:12px 11px 10px}.card-meta{min-height:25px;gap:4px;margin-bottom:7px;align-items:flex-start}.size-tag{font-size:9px;max-width:70px;text-align:right;padding:3px 5px}.product .name{font-size:13px;line-height:1.4;min-height:55px;margin-bottom:7px}.card-category{font-size:10px;margin-bottom:7px}.availability{font-size:10px;line-height:1.5}.product-footer{padding:9px 10px 10px}.product .price{font-size:19px}.product .add{margin-top:8px}.counter{margin-top:8px}.bundle-wide .name{min-height:0;font-size:17px}.dock:disabled{opacity:1;background:#f0e7ea;color:#74666d}.dock{background:#b91e31}.section-heading{margin-top:5px}nav{box-shadow:0 -4px 16px #30202b08}@media(max-width:420px){.sku{font-size:9px!important}.bundle-wide .card-main{padding:14px}.bundle-items li{font-size:11px}}

.bundle-wide .card-main{padding:12px 14px 10px}.bundle-wide .card-meta{margin-bottom:5px;min-height:20px}.bundle-wide .name{font-size:16px;margin-bottom:7px}.bundle-items li{padding:5px 0;font-size:12px;gap:8px}.bundle-items .weight{font-size:11px}.bundle-wide .availability{margin-top:9px}.bundle-wide .product-footer{padding:10px 14px}.bundle-wide .price{font-size:21px}

/* Natural-height single cards; no reserved title space. */
.product:not(.bundle-wide){align-self:start}.product:not(.bundle-wide) .card-main{flex:none}.product:not(.bundle-wide) .name{min-height:0;margin-bottom:7px}.product:not(.bundle-wide) .availability{margin-top:0}

/* Checkout: payment first, restrained sections, explicit review. */
.checkout-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.checkout-eyebrow{font-size:9px;letter-spacing:1.5px;color:#88737d;font-weight:650}.checkout-heading h1{margin-top:4px;font-size:28px}.checkout-step{font-size:11px;color:#9c6c7c;background:#f5e9ee;border-radius:8px;padding:7px 10px}.back{font-size:12px;min-height:40px;padding-bottom:10px}.payment-panel,.order-review{padding:17px;border:1px solid #e9e0e4;border-radius:16px;margin:0 0 16px;box-shadow:0 4px 15px #47273404}.section-title{display:flex;align-items:center;gap:9px}.section-title h2{font-size:15px;letter-spacing:-.3px}.section-number{font-size:10px;color:#a45f74;background:#f9eef2;border-radius:7px;min-width:26px;height:26px;display:grid;place-items:center}.methods{margin-top:16px;gap:8px}.method{position:relative;min-height:78px;padding:11px 8px;display:flex;flex-direction:column;justify-content:center;gap:7px;border-color:#e7e0e4;border-radius:11px;font-size:12px;font-weight:600;background:#fdfcfc}.method.active{background:#fff2f5;border-color:#c25c78;box-shadow:inset 0 0 0 1px #c25c78;color:#a62043}.method-symbol{font-size:19px;font-weight:600;line-height:1}.method-check{position:absolute;top:5px;right:7px;font-size:9px}.cash-entry{margin-top:19px;padding-top:16px;border-top:1px solid #f0e9ec}.cash-entry label{margin:0 0 9px;font-size:12px;color:#62565e;font-weight:600}.cash-field{border:1px solid #ddd0d7;border-radius:11px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#fcfafb}.cash-field:focus-within{border-color:#bc5673;box-shadow:0 0 0 3px #f5e3ea}.cash-field>span{font-size:14px;color:#8c7180}.cash-field input{border:0;background:transparent;outline:none;width:100%;min-width:0;padding:14px 0;font:700 27px/1.2 -apple-system,BlinkMacSystemFont,sans-serif;color:#30242c;font-variant-numeric:tabular-nums}.change-row{display:flex;justify-content:space-between;align-items:center;background:#f0f6f2;color:#52705d;border-radius:9px;padding:12px;margin-top:10px;font-size:12px}.change-row strong{font-size:16px;color:#315b40}.review-count{margin-left:auto;font-size:10px;color:#85727e}.review-item{padding:16px 0;border-bottom:1px solid #eee6ea}.review-item-head{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.review-item-head>strong:first-child{font-size:13px;line-height:1.5;min-width:0;overflow-wrap:anywhere;font-weight:650}.review-item-head .line-total{white-space:nowrap;font-size:13px;font-weight:650}.review-meta{font-size:10px;color:#8b7b85;margin-top:4px}.review-item-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:9px;gap:8px}.review-item-bottom>span{font-size:11px;color:#80707a}.inline-qty{gap:0;border:1px solid #eadce2;border-radius:9px;overflow:hidden;background:#fff8fa}.inline-qty button{background:none;border-radius:0;min-width:40px;min-height:40px;color:#a33454;font-size:18px}.inline-qty b{font-size:12px;min-width:24px;text-align:center}.review-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:17px;font-size:12px;font-weight:600}.review-total strong{font-size:23px;letter-spacing:-.6px}.checkout-note{text-align:center;font-size:10px;line-height:1.7;color:#8c7e86;margin:18px 10px}.manual-payment{margin-top:16px;padding-top:4px}.manual-payment .confirm{font-size:12px;align-items:flex-start}.manual-payment small{font-size:10px;font-weight:400;color:#84717d}.manual-payment .hint{font-size:10px;margin-top:12px}

.review-count{font-size:10px;white-space:nowrap}.order-review .section-title{flex-wrap:wrap;row-gap:7px}.order-review .review-count{margin-left:35px;flex-basis:100%}.review-item{padding:17px 0}.review-item-head>strong:first-child{font-size:14px}.subtotal-block{text-align:right;flex-shrink:0}.subtotal-block>span{display:block;font-size:9px;color:#84727c;margin-bottom:3px}.subtotal-block strong{display:block;font-size:15px!important}.review-meta{font-size:11px;color:#74646e;margin-top:5px}.review-item-bottom>span{font-size:12px;color:#6d5965}.manual-payment .confirm{border:1px solid #e4d7dd;background:#fcf8fa;border-radius:11px;padding:13px;min-height:65px;margin:10px 0 0;cursor:pointer}.manual-payment .confirm:has(input:checked){background:#edf6f0;border-color:#9ebda9}.manual-payment .confirm input{accent-color:#a82449;margin-top:2px}.manual-payment .confirm small{display:block;margin-top:5px;font-size:10px;color:#77646f}.dock.await-confirmation{opacity:1;background:#eee5e9;color:#77606c;box-shadow:none}.dock.await-confirmation span{font-size:12px}.review-total{background:#faf5f7;margin:0 -17px -17px;padding:17px;border-radius:0 0 16px 16px}.checkout-note{color:#786772}

/* Order review: readable receipt rhythm, scoped to checkout. */
.order-review{border-color:#e3dce0;box-shadow:none}
.order-review .section-title{padding-bottom:15px;border-bottom:1px solid var(--line);gap:9px}
.order-review .section-title h2{font-size:16px;color:var(--ink)}
.order-review .review-count{font-size:11px;color:#71646c;line-height:1.5}
.order-review .review-item{padding:18px 0;border-bottom:1px dashed #e5dce1}
.order-review .review-item:last-of-type{border-bottom:0}
.order-review .review-item-head{gap:16px}
.order-review .review-item-head>strong:first-child{font-size:15px;line-height:1.45;font-weight:650;letter-spacing:-.15px}
.order-review .subtotal-block{padding-top:1px}
.order-review .subtotal-block>span{font-size:10px;color:#776972;margin-bottom:4px}
.order-review .subtotal-block .line-total{font-size:16px!important;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.order-review .review-meta{font-size:12px;color:#776972;margin-top:6px}
.order-review .review-item-bottom{margin-top:14px;gap:12px}
.order-review .review-item-bottom>span{font-size:12px;color:#66575f;font-variant-numeric:tabular-nums}
.order-review .inline-qty{flex-shrink:0;border:1px solid #e3d5db;border-radius:10px;background:#fff;gap:0;overflow:hidden}
.order-review .inline-qty button{min-width:44px;min-height:44px;background:#faf6f8;border-radius:0;color:var(--red);font-size:21px}
.order-review .inline-qty b{min-width:34px;font-size:14px;font-variant-numeric:tabular-nums;text-align:center}
.order-review .inline-qty button:hover:not(:disabled){background:#f4e7ec}
.order-review .review-total{margin-top:3px;padding:20px 17px;background:#f7f0f3;border-top:1px solid #e9dfe4;align-items:baseline}
.order-review .review-total>span{font-size:13px;color:#594550}
.order-review .review-total>strong{font-size:clamp(23px,6.8vw,30px);color:#922039;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.8px}
@media(max-width:360px){.order-review{padding:14px}.order-review .review-item-head{gap:10px}.order-review .review-item-head>strong:first-child{font-size:14px}.order-review .subtotal-block .line-total{font-size:14px!important}.order-review .review-total{margin-left:-14px;margin-right:-14px;margin-bottom:-14px;padding:18px 14px;gap:8px}.order-review .review-total>span{font-size:12px}}

/* Muted brand red distinguishes unavailable checkout without hiding the action. */
.dock:disabled,.dock.await-confirmation{opacity:1;background:#fbe9ec;color:#9b3548;border:1px solid #edc4cc;box-shadow:none;cursor:not-allowed}
.dock:disabled span,.dock:disabled strong,.dock:disabled small{color:inherit;opacity:1}

.dock.await-confirmation:not(:disabled){cursor:pointer}
.manual-payment .confirm.needs-confirmation{border-color:#be2634;background:#fff0f2;box-shadow:0 0 0 3px #be26341a}
.manual-payment .confirm.needs-confirmation small{color:#9b2439;font-weight:600}

@media print{body>main#app{display:block!important;padding:0;margin:0;width:58mm;max-width:58mm}#app>*{display:none!important}#app>.receipt{display:block!important;border:0;padding:0;margin:0;box-shadow:none;background:#fff}}

.review-components{margin-top:12px;padding:10px 12px;background:#faf7f9;border-radius:8px;font-size:12px;color:#66545f}.review-components>span{font-size:10px;font-weight:650}.review-components ul{margin:5px 0 0;padding-left:17px}.review-components li{padding:3px 0;overflow-wrap:anywhere}.review-components small{color:#7b6c75}
.identity[hidden]{display:none}
/* Report range uses a separate native dialog, isolated from product modals. */
.report-range{margin-top:20px}.report-range>span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.range-trigger{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:48px;padding:12px 14px;border:1px solid #ddd0d7;border-radius:11px;background:white;text-align:left}.range-trigger strong{font-weight:600;font-size:14px}.range-dialog{width:min(96vw,400px);padding:16px;max-height:90dvh}.range-dialog h2{font-size:18px}.range-month{display:flex;justify-content:space-between;align-items:center;margin:12px 0 8px}.range-month button{width:44px;height:44px;border-radius:8px;background:#faf5f7;font-size:20px}.range-grid{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:0}.range-grid>span{text-align:center;font-size:11px;color:#67545f;padding:8px 0}.range-day{height:44px;min-width:44px;font-variant-numeric:tabular-nums;border-radius:7px}.range-day:hover{background:#f6e0e5}.range-day.in-range{background:#f9e9ed;border-radius:0;color:#922039}.range-day.endpoint{background:var(--red);color:white;font-weight:700}.range-day[aria-current]{text-decoration:underline;text-underline-offset:4px}.range-status{min-height:44px;padding:12px 0;font-size:12px;color:#594550}.range-dialog .smallbtn,.range-dialog .primary{min-width:80px;min-height:44px}.range-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}@media(max-width:360px){.range-dialog{padding:6px}.range-dialog .hint,.range-dialog h2{padding-inline:6px}}

/* Date filter: field-like trigger with a brand-colored expanded state. */
.report-range>span{font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:700;color:#77646f}
.range-trigger{padding:12px 14px;justify-content:flex-start;min-height:68px;border-color:#e3dce0;border-radius:12px;gap:12px}
.range-calendar-icon{width:23px;height:23px;flex-shrink:0;fill:none;stroke:#9c5365;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.range-trigger-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.range-trigger-copy strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere;color:#392d34}
.range-trigger-copy small{font-size:11px;color:#80707a;line-height:1.4}
.range-chevron{width:18px;height:18px;flex-shrink:0;fill:none;stroke:#8d7884;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.range-trigger[aria-expanded="true"]{border-color:var(--red);box-shadow:0 0 0 2px #be26340d;background:#fffafb}
.range-trigger[aria-expanded="true"] .range-chevron{transform:rotate(180deg);stroke:var(--red)}
/* Anchored, in-flow calendar directly below its date field. */
.report-range .range-dialog{position:static;inset:auto;width:100%;max-width:none;max-height:none;margin:8px 0 0;padding:14px;border:1px solid #e4d7dd;border-radius:12px;box-shadow:0 6px 20px #30202b0a;overflow:visible}
.report-range .range-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.report-range .range-day{min-width:0;min-height:44px}
@media(max-width:360px){.report-range .range-dialog{padding:8px}}

/* Only the shared product/stock dialog: header and actions never scroll over fields. */
#modal{padding:0;overflow:hidden;max-height:calc(var(--modal-height,100dvh) - 24px);top:var(--modal-top,0px);bottom:auto;margin:12px auto}
#modal[open]{display:flex;flex-direction:column}
#modal .modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;margin:0;padding:12px 18px;border-bottom:1px solid var(--line);background:white}
#modal .modal-head h2{min-width:0;overflow-wrap:anywhere}
#modal .modal-close{min-width:44px;min-height:44px;flex-shrink:0;border-radius:9px;font-size:28px;line-height:1;color:var(--muted)}
#modal .modal-close:hover{background:#f7edf0;color:var(--ink)}
#modal .modal-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:6px 22px 22px;scroll-padding-block:16px}
#modal .modal-body input{scroll-margin-block:16px}
#modal .modal-footer{flex-shrink:0;padding:12px 22px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white}
#modal .modal-footer .full{margin:0}
@media(max-width:760px){#modal{width:100%;max-height:calc(var(--modal-height,100dvh) - 12px);margin:0;top:auto;bottom:calc(100% - var(--modal-top,0px) - var(--modal-height,100dvh));border-radius:18px 18px 0 0}#modal .modal-head{padding-top:max(8px,env(safe-area-inset-top))}#modal .modal-body{padding-bottom:calc(22px + env(safe-area-inset-bottom))}}

body.login-page{height:100dvh;display:flex;flex-direction:column;overflow:hidden}body.login-page header{flex-shrink:0}body.login-page main{flex:1;min-height:0;width:100%;padding:16px 18px;display:flex;align-items:center;justify-content:center;overflow:auto}body.login-page .login-card{width:100%;margin:0;padding:24px}body.login-page nav{display:none}
