@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700&family=Plus+Jakarta+Sans:wght@400;500;600;650;700;750;800&display=swap');
:root{--ink:#142844;--muted:#596a80;--navy:#142844;--orange:#ff8a3d;--page:#f7f9fc;--line:#dfe5ed;--white:#fff;--soft:#edf2f8;--red:#ad4141;--amber:#8d611c;--shadow:0 15px 50px #14284409;font-family:'Inter',sans-serif;color:var(--ink);font-size:14px;line-height:1.5;background:var(--page);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #bd4e08;outline-offset:3px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-family:'Plus Jakarta Sans',sans-serif}h1{font-size:clamp(26px,3vw,35px);line-height:1.2;letter-spacing:-1.2px;font-weight:750}h2{font-size:22px;letter-spacing:-.7px}h3{font-size:17px;letter-spacing:-.35px}h4{font-size:14px}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.skip-link{position:fixed;left:10px;top:-70px;background:#fff;padding:12px;z-index:100}.skip-link:focus{top:10px}.app-shell{display:flex;min-height:100vh}.sidebar{width:234px;flex-shrink:0;padding:30px 20px 18px;display:flex;flex-direction:column;background:var(--navy);color:#ffffff;position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;font-family:'Plus Jakarta Sans',sans-serif;font-size:20px;letter-spacing:-.7px;font-weight:750}.brand small{display:block;font-family:'Inter',sans-serif;font-size:8px;letter-spacing:2px;font-weight:500;color:#bbc9da;margin-top:3px}.brand-icon{width:42px;height:42px;display:block;flex-shrink:0}.brand-icon img{display:block;width:100%;height:100%}.brand-name{line-height:1.2}.brand-name b{color:var(--orange);font-weight:inherit}.store-switch{border:1px solid #ffffff20;background:#ffffff06;border-radius:12px;padding:12px 10px;display:flex;gap:8px;align-items:center;font-size:11px;margin:33px 0 30px}.store-switch small{display:block;color:#bbc9da;font-size:10px;margin-top:2px}.store-avatar{background:#ffffff13;border-radius:8px;padding:8px 10px;font-weight:600}.connected-dot{margin-left:auto;width:6px;height:6px;border-radius:50%;background:#ff8a3d}.nav-label{font-size:9px;letter-spacing:1.7px;color:#a9b9cf;padding:0 12px;margin-bottom:12px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar nav a{display:flex;gap:12px;align-items:center;padding:13px 12px;border-radius:9px;color:#c9d4e4;font-size:13px;transition:background .15s}.sidebar nav a:hover{background:#ffffff0c}.sidebar nav a.active{background:var(--orange);color:var(--navy);font-weight:650}.nav-tag{margin-left:auto;font-size:10px;opacity:.55}.side-bottom{margin-top:auto;padding-top:42px}.side-tip{border:1px solid #ffffff1c;background:#ffffff06;padding:18px 15px;border-radius:13px}.side-tip>.icon{color:var(--orange);margin-bottom:12px}.side-tip strong{font-family:'Plus Jakarta Sans';font-size:18px;line-height:1.4;letter-spacing:-.5px;display:block}.side-tip p{font-size:11px;color:#bbc9da;margin:11px 0 13px}.text-button{border:0;padding:4px 0;background:none;color:var(--navy);font-weight:600;font-size:12px;display:inline-flex;align-items:center;gap:16px}.text-button.light{color:var(--orange)}.version{font-size:8px;letter-spacing:1.7px;color:#a9b9cf;margin:23px 5px 0;display:flex;justify-content:space-between}.version span{color:#ff8a3d}.workspace{flex:1;min-width:0}.topbar{height:80px;border-bottom:1px solid var(--line);background:#ffffff85;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:12px}.breadcrumbs{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:12px}.breadcrumbs strong{font-weight:500;color:var(--ink)}.breadcrumbs span{opacity:.5}.top-actions{display:flex;gap:16px;align-items:center}.demo-badge{font-size:10px;letter-spacing:.3px;background:#edf2f8;color:#455974;border:1px solid #dbe4ef;border-radius:30px;padding:6px 10px;white-space:nowrap;display:flex;align-items:center;gap:6px}.demo-badge span{background:#677e9e;width:5px;height:5px;border-radius:50%}.icon-btn{border:1px solid var(--line);background:white;color:var(--ink);width:34px;height:34px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.help-btn{border-radius:50%;width:25px;height:25px;font-size:12px;color:#596a80}.owner-avatar{border-radius:50%;width:33px;height:33px;background:#ffe0c9;border:3px solid #fff;display:grid;place-items:center;font-size:10px;font-weight:600}.demo-strip{display:flex;gap:8px;align-items:center;padding:10px 36px;color:#596a80;background:#edf2f8;border-bottom:1px solid #dfe5ed;font-size:11px}.demo-strip .icon{width:14px;height:14px}.demo-strip strong{font-weight:600}main{padding:32px 36px 18px;max-width:1600px;margin:auto;min-height:calc(100vh - 180px)}.page-footer{padding:22px 36px;color:#596a80;font-size:10px;display:flex;justify-content:space-between;gap:12px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;color:#77533d;font-size:9px;font-weight:600;margin-bottom:8px}.subtitle{color:var(--muted);font-size:12px;margin-top:9px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:11px 16px;min-height:42px;background:white;color:var(--ink);font-weight:550;font-size:12px;white-space:nowrap;transition:transform .12s,background .12s}.button:hover{background:#edf2f8}.button:active{transform:translateY(1px)}.button.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.button.primary:hover{background:#233f62}.button.lime{background:var(--orange);border-color:var(--orange);color:var(--navy)}.button.danger{border-color:#efcccc;color:var(--red);background:#fff6f4}.button.small{padding:7px 10px;min-height:34px;font-size:11px}.button.full{width:100%}.button .icon{width:17px;height:17px}.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:25px;align-items:start}.hero-card{background:#fff3e8;border:1px solid #f5d6be;border-radius:14px;min-height:158px;padding:24px 25px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.hero-card h2{font-size:25px;max-width:280px;font-weight:700;line-height:1.25;letter-spacing:-.9px}.hero-card p{font-size:11px;color:#596a80;margin-top:10px;max-width:240px}.hero-art{width:155px;height:115px;position:relative;flex-shrink:0;margin-left:10px}.hero-art:before{content:'';position:absolute;border-radius:50%;width:140px;height:140px;top:0;background:#ffe0c9}.paper-bag{position:absolute;background:#bf985f;width:83px;height:85px;left:29px;bottom:-13px;border-radius:3px 3px 12px 12px;transform:rotate(-9deg);box-shadow:8px 5px 0 #b68c53}.paper-bag:before{content:'';position:absolute;width:32px;height:25px;border:4px solid #8c6539;border-bottom:0;border-radius:22px 22px 0 0;top:-19px;left:23px}.paper-bag:after{content:'SG';position:absolute;color:#6c653d;font-size:23px;font-family:'Plus Jakarta Sans';font-weight:800;top:33px;left:23px;letter-spacing:-3px}.fruit{position:absolute;font-size:49px;top:-7px;left:55px;transform:rotate(15deg);filter:drop-shadow(2px 3px 1px #0001)}.fruit.bread{top:4px;left:5px;transform:rotate(-26deg);font-size:57px}.sparkle{position:absolute;font-size:22px;top:8px;right:0;color:#bd4e08}.search-wrap{position:relative;margin-bottom:16px}.search-wrap>.icon{position:absolute;left:15px;top:13px;width:17px;color:#596a80}.search-wrap input{padding:12px 15px 12px 43px;width:100%;border:1px solid var(--line);background:white;border-radius:10px;color:var(--ink);outline-offset:0;font-size:12px}.search-wrap input::placeholder{color:#6a788a}.category-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:24px}.category{border:1px solid #dfe5ed;border-radius:7px;padding:7px 12px;background:transparent;font-size:11px;color:#596a80;min-height:33px}.category.active{background:var(--navy);border-color:var(--navy);color:white}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-title h3{font-size:15px}.section-title span{font-size:10px;color:var(--muted)}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.product-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;transition:border-color .15s;min-width:0}.product-card:hover{border-color:#a4b4ca}.product-art{border-radius:8px;height:105px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.product-art:before{content:'';position:absolute;bottom:13px;width:58px;height:10px;background:#00000008;border-radius:50%;filter:blur(2px)}.product-art .emoji{font-size:52px;position:relative;filter:drop-shadow(1px 5px 2px #0000000b);transform:rotate(-7deg)}.product-art.blue{background:#eef2f5}.product-art.sand{background:#f6f1e7}.product-art.sage{background:#edf2f8}.product-art.peach{background:#f8eee5}.product-art.lilac{background:#f1edf5}.product-info{padding:12px 3px 3px}.product-info h4{font-family:'Inter';font-size:12px;font-weight:550;line-height:1.3;word-break:break-word}.product-unit{color:#596a80;font-size:10px;margin:4px 0 12px}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px}.price{font-size:13px;font-weight:650;white-space:nowrap}.add-btn{width:29px;height:29px;background:#edf2f8;border:1px solid #dbe4ef;border-radius:7px;color:#314e72;display:grid;place-items:center;font-size:18px}.stock-out{position:absolute;right:6px;top:6px;font-size:9px;padding:3px 5px;background:#fff;border-radius:4px;color:var(--red)}.basket-panel{background:white;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);position:sticky;top:22px;overflow:hidden}.basket-head{padding:20px 20px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.basket-head h3{font-size:16px}.count-badge{background:#edf2f8;color:#455974;border-radius:6px;font-size:10px;padding:3px 7px}.basket-body{padding:0 20px}.empty-basket{text-align:center;padding:37px 0 28px}.empty-icon{margin:0 auto 15px;background:#edf2f8;border:1px solid #dfe5ed;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;color:#677e9e}.empty-icon .icon{width:24px;height:24px}.empty-basket h4{font-size:12px}.empty-basket p{color:var(--muted);font-size:11px;max-width:190px;margin:8px auto 17px}.basket-line{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:16px 0;border-bottom:1px solid #edf2f8}.basket-emoji{width:34px;height:38px;background:#f4f6fa;border-radius:6px;display:grid;place-items:center;font-size:23px}.basket-name{font-size:11px;font-weight:550}.basket-unit{font-size:9px;color:var(--muted);margin:2px 0 7px}.qty-control{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden;height:25px}.qty-control button{width:24px;height:25px;border:0;background:#f7f9fc;color:var(--ink);font-size:14px}.qty-control span{width:25px;text-align:center;font-size:10px}.basket-line .price{font-size:11px;align-self:center}.basket-summary{padding:18px 20px 20px}.summary-row{display:flex;justify-content:space-between;margin:7px 0;color:var(--muted);font-size:11px}.summary-row strong{font-weight:500;color:var(--ink)}.summary-row.total{border-top:1px dashed var(--line);padding-top:14px;margin-top:15px;color:var(--ink);font-size:15px;font-weight:600}.summary-row.total strong{font-size:19px;font-family:'Plus Jakarta Sans';font-weight:750;letter-spacing:-.6px}.checkout-btn{margin-top:13px;min-height:46px;justify-content:space-between}.payment-note{font-size:9px;color:#596a80;text-align:center;margin:12px 0 0;display:flex;align-items:center;justify-content:center;gap:4px}.payment-note .icon{width:12px;height:12px}.sample-note{margin:18px 0 0;color:#596a80;font-size:10px;display:flex;gap:5px;align-items:center}.sample-note .icon{width:13px;height:13px}.section-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:23px;margin-bottom:20px}.section-card .subtitle{margin-top:5px}.two-col{display:grid;grid-template-columns:1.08fr 1fr;gap:24px;align-items:start}.state-empty{text-align:center;padding:35px 15px;color:var(--muted);font-size:12px}.state-empty .icon{width:35px;height:35px;color:#677e9e;margin-bottom:13px}.state-empty strong{display:block;color:var(--ink);font-size:14px;margin-bottom:7px}.field{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:550;margin:15px 0}.field input,.field select{border:1px solid #d0dae6;border-radius:8px;padding:11px 12px;min-width:0;color:var(--ink);background:white;font-size:14px;min-height:43px}.field small{font-size:10px;font-weight:400;color:var(--muted)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-row .field{margin:8px 0}.inline-input{display:flex;gap:8px;align-items:end}.inline-input .field{flex:1;min-width:0;margin-bottom:0}.inline-input>.button{margin-bottom:0}.divider-label{display:flex;align-items:center;gap:12px;font-size:10px;color:#596a80;margin:20px 0}.divider-label:before,.divider-label:after{content:'';height:1px;background:var(--line);flex:1}.notice{padding:12px 14px;border-radius:8px;background:#edf3fb;border:1px solid #d6e2f1;color:#314e72;font-size:11px;margin:14px 0;line-height:1.6}.notice.error{background:#fff3f0;color:#9d4336;border-color:#f1d8d1}.notice.warning{background:#fff7e8;color:#866127;border-color:#eee0c4}.notice.info{background:#eef4f5;border-color:#dde8eb;color:#4c717c}.check-label{display:flex;align-items:flex-start;gap:9px;font-size:12px;padding:16px 0}.check-label input{width:18px;height:18px;accent-color:var(--navy);flex-shrink:0;margin-top:1px}.receipt-line{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}.receipt-line small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.receipt-line>span:last-child{white-space:nowrap}.receipt-top{text-align:center;padding:5px 0 20px}.success-mark{background:#eaf2db;border:1px solid #d7e4bd;border-radius:50%;width:58px;height:58px;display:grid;place-items:center;color:#5a7b36;margin:0 auto 14px}.success-mark .icon{width:26px;height:26px}.receipt-top p{font-size:12px;color:var(--muted);margin-top:7px}.receipt-code{background:#f4f6fa;border:1px dashed #d0dae6;border-radius:10px;text-align:center;padding:18px;margin:18px 0}.receipt-code img{display:block;max-width:145px;width:145px;height:145px;margin:0 auto 12px;border:8px solid white;background:white;image-rendering:pixelated}.receipt-code strong{display:block;font-size:17px;letter-spacing:1.3px}.receipt-code small{font-size:10px;color:var(--muted)}.button-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.button-row>.button{flex:1}.status-pill{display:inline-flex;padding:4px 7px;border-radius:5px;background:#edf6f0;color:#356346;font-size:9px;font-weight:550;white-space:nowrap}.status-pill.pending{background:#fff3d9;color:#956d24}.status-pill.failed,.status-pill.cancelled{background:#faeae7;color:#a75647}.status-pill.refunded{background:#eeedf6;color:#82729f}.order-row{display:flex;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}.order-row:last-child{border:0}.order-row .order-id{font-size:11px;font-weight:550}.order-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.order-end{text-align:right}.order-end .price{font-size:12px;display:block;margin-bottom:5px}.panel-tabs{display:flex;gap:4px;margin-bottom:23px;border-bottom:1px solid var(--line)}.panel-tabs button{background:transparent;border:0;padding:11px 15px;color:var(--muted);font-size:12px;border-bottom:2px solid transparent}.panel-tabs button.active{color:var(--navy);border-color:var(--navy);font-weight:600}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:23px}.stat{padding:21px;background:white;border:1px solid var(--line);border-radius:12px}.stat-label{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:7px}.stat-label .icon{width:15px;height:15px}.stat-value{font-family:'Plus Jakarta Sans';font-size:29px;letter-spacing:-1px;font-weight:650;margin-top:13px}.stat small{font-size:10px;color:#596a80;display:block;margin-top:5px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px;min-width:530px}.data-table th{font-weight:500;font-size:10px;text-align:left;color:var(--muted);border-bottom:1px solid var(--line);padding:0 12px 14px}.data-table td{padding:15px 12px;border-bottom:1px solid var(--line)}.data-table tr:last-child td{border-bottom:0}.data-table td:first-child{font-weight:500}.data-table td small{display:block;font-size:10px;color:#596a80;margin-top:3px;font-weight:400}.data-table .numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.activity{padding:12px 0;border-bottom:1px solid var(--line);font-size:11px;display:flex;justify-content:space-between;gap:12px}.activity:last-child{border:0}.activity small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.activity time{font-size:10px;color:var(--muted);white-space:nowrap}.sync-line{display:flex;gap:8px;align-items:center;font-size:11px;color:#596a80;margin:16px 0}.sync-line .icon{width:15px;height:15px}.qr-fallback{padding:12px;font-size:11px;color:var(--muted)}.payment-choice{display:flex;gap:12px;margin:16px 0}.payment-choice label{display:flex;align-items:center;gap:9px;flex:1;padding:13px;border:1px solid var(--line);border-radius:9px;font-size:12px}.payment-choice label:has(input:checked){background:#fff3e8;border-color:#ff8a3d}.payment-choice input{accent-color:var(--navy);width:15px;height:15px}.scan-video{width:100%;border-radius:10px;aspect-ratio:4/3;background:#101d31;object-fit:cover}.scan-frame{position:relative}.scanner-label{position:absolute;bottom:12px;left:12px;right:12px;color:#fff;background:#0008;border-radius:6px;text-align:center;font-size:11px;padding:6px}.demo-code-list{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.demo-code-list button{font-size:11px;text-align:left;white-space:normal;padding:10px}.demo-code-list small{display:block;color:var(--muted);font-size:9px}dialog{padding:0;border:1px solid var(--line);border-radius:16px;width:min(94vw,470px);max-height:88dvh;color:var(--ink);background:white;box-shadow:0 30px 90px #14284435;overflow:auto}dialog::backdrop{background:#14284470;backdrop-filter:blur(3px)}.modal-head{padding:21px 23px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-head h2{font-size:19px}.modal-head>.icon-btn{width:28px;height:28px;border:0;background:#f4f6fa}.modal-body{padding:15px 23px 25px}.modal-body>p{font-size:12px;color:var(--muted)}.modal-body .step-list{display:grid;gap:18px;margin:22px 0}.step{display:flex;gap:12px;font-size:12px}.step-number{background:#fff3e8;color:#85400f;border-radius:7px;width:27px;height:27px;flex-shrink:0;display:grid;place-items:center;font-size:11px}.step small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.modal-body .basket-body{padding:0}.modal-body .basket-summary{padding:18px 0 0}.warning-line{color:#a47424;font-size:11px;margin:8px 0}.error-text{color:var(--red);font-size:12px;margin:12px 0}.text-muted{color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--navy);color:#fff;border:1px solid #ffffff20;border-radius:10px;padding:12px 20px;font-size:12px;box-shadow:0 10px 30px #0002;z-index:1000;opacity:0;pointer-events:none;transition:.18s;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}#mobile-cart{display:none}.search-empty{grid-column:1/-1;padding:45px 15px;text-align:center;color:var(--muted)}.privacy-note{font-size:10px;color:#596a80;margin-top:13px}.date-label{font-size:10px;color:#596a80;letter-spacing:.4px}.catalogue-hint{font-size:11px;color:var(--muted);margin-bottom:17px}.local-error{background:#fff4e8;color:#a75d1d;border:1px solid #eed9bc;border-radius:8px;padding:14px;font-size:12px;margin-bottom:20px}
@media(min-width:1500px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-art{height:130px}.shop-layout{grid-template-columns:minmax(0,1fr) 340px}}
@media(max-width:1180px){.sidebar{width:200px;padding:25px 14px 18px}.brand{font-size:18px}.store-switch{font-size:10px}.topbar{padding:0 26px}main{padding:28px 26px 16px}.demo-strip{padding:10px 26px}.shop-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-card{padding:23px 20px}.hero-art{width:112px;transform:scale(.85);transform-origin:right center;margin-left:0}.hero-card h2{font-size:23px}.basket-body{padding:0 16px}.basket-summary{padding:18px 16px}.basket-head{padding:18px 16px}.page-head{gap:12px}}
@media(max-width:900px){.sidebar{width:76px;padding:24px 12px}.brand>span:nth-child(2),.store-switch,.nav-label,.nav-tag,.side-bottom{display:none}.brand{justify-content:center}.sidebar nav{margin-top:35px}.sidebar nav a{font-size:0;justify-content:center;padding:14px 10px}.sidebar nav .icon{width:22px;height:22px}.topbar{height:68px}.shop-layout{grid-template-columns:minmax(0,1fr) 270px}.hero-art{display:none}.hero-card{min-height:145px}.hero-card h2{max-width:100%}.two-col{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:17px}.stat-value{font-size:24px}}
@media(max-width:700px){.app-shell{display:block}.sidebar{width:100%;height:auto;position:static;padding:17px 20px 0;display:block}.brand{justify-content:flex-start}.brand>span:nth-child(2){display:block}.brand small{font-size:7px}.brand-icon{width:34px;height:34px;font-size:20px;border-radius:9px}.sidebar nav{margin-top:17px;flex-direction:row;gap:4px;justify-content:space-between}.sidebar nav a{font-size:11px;flex:1;padding:12px 8px;border-radius:8px 8px 0 0;gap:7px;white-space:nowrap}.sidebar nav a.active{background:var(--page);color:var(--navy)}.sidebar nav .icon{width:16px;height:16px}.topbar{padding:0 20px;height:57px}.breadcrumbs{font-size:10px;gap:8px}.top-actions{gap:9px}.owner-avatar{display:none}.help-btn{width:23px;height:23px}.demo-badge{font-size:9px;padding:5px 7px}.demo-strip{padding:10px 20px;font-size:10px;align-items:flex-start}.demo-strip .icon{margin-top:2px;flex-shrink:0}main{padding:25px 20px 15px}.page-head{margin-bottom:20px;align-items:flex-start;gap:10px}.page-head h1{font-size:26px;letter-spacing:-.8px}.page-head>.button{padding:10px;min-width:42px}.page-head .scan-label{display:none}.subtitle{font-size:11px;max-width:300px}.eyebrow{font-size:8px;margin-bottom:7px}.shop-layout{display:block}.basket-panel{display:none}.hero-card{min-height:133px;padding:19px;margin-bottom:21px}.hero-card h2{font-size:23px;max-width:210px}.hero-card p{font-size:10px;max-width:200px}.hero-art{display:block;width:106px;transform:scale(.77);transform-origin:right center}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-art{height:115px}.product-info h4{font-size:13px}.product-unit{font-size:11px}.price{font-size:14px}.add-btn{width:34px;height:34px}.category{min-height:35px;padding:7px 11px}.category-row{gap:6px;margin-bottom:22px}.search-wrap input{font-size:14px;padding-top:13px;padding-bottom:13px}.search-wrap>.icon{top:15px}.page-footer{padding:25px 20px 100px;font-size:9px}.stats{grid-template-columns:1fr 1fr}.stat:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}.stat:last-child small{display:none}.stat:last-child .stat-value{margin-top:0}.stat-value{font-size:25px}.section-card{padding:19px}.two-col{gap:0}.panel-tabs button{padding:11px 13px}.section-title{gap:8px;align-items:flex-start}.inline-actions{gap:6px}.inline-actions .button{font-size:10px;padding:8px 10px}.data-table{font-size:11px}.data-table td{padding:13px 8px}.data-table th{padding:0 8px 12px}#mobile-cart:not(:empty){display:block;position:fixed;bottom:0;left:0;right:0;padding:12px 20px max(12px,env(safe-area-inset-bottom));background:#f7f9fced;backdrop-filter:blur(8px);border-top:1px solid #dfe5ed;z-index:20}#mobile-cart .button{width:100%;justify-content:space-between;min-height:48px;font-size:13px}#mobile-cart small{font-size:11px;color:#c9d4e4;margin-left:7px}#toast{bottom:90px}.form-row{gap:10px}.field input{font-size:16px}.inline-input{flex-wrap:wrap}.inline-input .field{min-width:180px}.modal-head{padding:18px 20px 0}.modal-body{padding:14px 20px 22px}.payment-choice{gap:8px}.payment-choice label{padding:12px 10px;font-size:11px}}
@media(max-width:370px){.sidebar{padding:16px 14px 0}.topbar{padding:0 14px}.demo-strip{padding:9px 14px}main{padding:24px 14px}.hero-art{display:none}.product-art{height:100px}.product-card{padding:8px}.product-info{padding-top:10px}.form-row{grid-template-columns:1fr}.stats{gap:8px}.stat{padding:15px}.stat-label{font-size:10px}.stat-value{font-size:22px}.breadcrumbs{gap:5px}.help-btn{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.hero-card{display:none}.product-info .add-btn{width:44px;height:44px}.qty-control{height:42px}.qty-control button{width:40px;height:42px}.qty-control span{width:27px}.category{min-height:40px}.product-grid{margin-top:0}}
@media print{body>*{display:none!important}body>dialog[open]{display:block!important;position:static;width:100%;max-height:none;border:0;box-shadow:none}dialog .modal-head .icon-btn,dialog .button-row{display:none}.modal-body{padding:15px}}
.gate-print-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #dce4eb;padding:12px 0}.gate-print-row small{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Shared-store additions */
[hidden]{display:none!important}.role-pill{padding:8px 12px;border-radius:20px;background:#edf2f8;color:#314e72;font-size:12px}.muted{display:block;color:#596a80;font-size:11px;margin-top:5px}.action-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.action-stack{display:grid;gap:10px;margin:18px 0}.manager-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:12px;margin-bottom:14px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat-card{background:white;border:1px solid var(--line,#dfe5ed);border-radius:16px;padding:22px}.stat-card span,.stat-card small{display:block;color:#596a80;font-size:12px}.stat-card strong{display:block;font-size:28px;color:#142844;margin:10px 0}.steps{padding-left:23px;line-height:1.8}.steps li{margin-bottom:14px}.section-card p{line-height:1.65;color:#596a80}.section-card h3{margin:0 0 14px}.section-card h4{margin:18px 0 8px}.section-card form .field{margin-bottom:15px}.field select{width:100%;background:#fff;border:1px solid #d0dae6;border-radius:9px;padding:12px;color:#142844;font:inherit}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.readiness-row{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #e8edf4;font-size:13px}.readiness-row strong{text-align:right;color:#9b6b27;font-size:12px}.readiness-row .ready{color:#2e7350}.code-label{font:11px monospace;overflow-wrap:anywhere;color:#596a80}.receipt-token{font:11px monospace;overflow-wrap:anywhere;display:block;max-width:100%;padding:15px;background:#f4f6fa;text-align:left}.qr-receipt{text-align:center;margin:20px 0;padding:18px;border:1px dashed #bac8db;border-radius:12px}.qr-receipt img{max-width:230px;width:100%;height:auto;image-rendering:pixelated}.qr-receipt strong{display:block;margin-top:12px}.qr-receipt p{font-size:12px;color:#596a80}.qr-receipt summary{cursor:pointer;font-size:12px;padding:10px}.receipt-meta{display:flex;gap:10px;align-items:center;margin-bottom:15px;font-size:11px;color:#596a80}.camera-wrap{background:#edf2f8;border-radius:12px;overflow:hidden;margin:16px 0;text-align:center}.camera-wrap video{width:100%;max-height:240px;object-fit:cover}.camera-wrap #camera-note{padding:15px;font-size:12px}.activity-row{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #e8edf4}.activity-row strong{font-size:13px}.activity-row p{margin:5px 0;font-size:11px;overflow-wrap:anywhere}.activity-row small{color:#596a80;font-size:11px}.activity-dot{width:7px;height:7px;background:#ff8a3d;border-radius:50%;margin-top:5px;flex-shrink:0}.empty-state{text-align:center;padding:45px 25px;background:white;border-radius:16px}.empty-state p{color:#596a80}.working button{cursor:progress}.working [data-action="place-order"],.working [data-action="sandbox-pay"],.working [data-action="clear"]{pointer-events:none;opacity:.6}.status-pill.cancelled,.status-pill.refunded{background:#f0ece8;color:#7d655b}.status-pill.pending{background:#fff3d5;color:#976e23}.notice strong{margin-right:5px}.table-wrap table td{overflow-wrap:anywhere}.table-wrap table{min-width:580px}.section-title .action-row{justify-content:flex-end}.section-card{overflow:hidden}.check-label{display:flex;gap:10px;align-items:flex-start;margin:18px 0;font-size:13px;line-height:1.6}.check-label input{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:#142844}.empty-icon{display:inline-flex;align-items:center;justify-content:center;background:#edf2f8;border-radius:50%;width:55px;height:55px}.button{justify-content:center}a.button{text-decoration:none}details{margin-top:10px}.privacy-note{font-size:12px;color:#596a80;line-height:1.6}.notice{line-height:1.6}.two-col{align-items:start}
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.stats-grid{gap:10px}.stat-card{padding:16px}.stat-card strong{font-size:24px}.form-row{grid-template-columns:1fr}.action-row .button{flex:1;white-space:nowrap}.section-title{align-items:flex-start;gap:16px;flex-direction:column}.readiness-row{font-size:12px}.manager-tabs{margin-top:-8px}.top-actions .owner-avatar{display:none}.receipt-meta{flex-wrap:wrap}}
@media(max-width:700px){.sidebar nav{width:100%;min-width:0}.sidebar nav a{flex:1 1 0;min-width:0;flex-direction:column;gap:5px;white-space:normal;padding:10px 3px;font-size:10px;text-align:center;line-height:1.4}.sidebar nav .icon{flex-shrink:0}.product-grid>.section-card{grid-column:1/-1}}

/* Camera is the primary shopping action on every screen size. */
.shop-heading{margin-bottom:20px}.scan-start{background:#fff3e8;border:1px solid #f5d6be;border-radius:16px;padding:24px;margin-bottom:14px}.scan-start-icon{display:inline-flex;background:var(--navy);color:var(--orange);padding:12px;border-radius:12px;margin-bottom:14px}.scan-start-icon .icon{width:26px;height:26px}.scan-start h2{font-size:23px}.scan-start p{color:#52617a;font-size:14px;line-height:1.6;margin:9px 0 18px;max-width:480px}.scan-start .button{font-size:16px;min-height:54px}.scan-start small{display:block;color:#52617a;text-align:center;font-size:12px;margin-top:12px}.browse-toggle{margin-bottom:20px;min-height:46px}.manual-scan{margin-top:20px}.manual-scan summary{cursor:pointer;font-size:14px;padding:8px 0}.scan-success{text-align:center;padding:10px 0 20px}.scan-success-icon{display:inline-flex;background:#fff3e8;border-radius:50%;color:var(--navy);padding:13px;margin-bottom:14px}.scan-success h3{font-size:23px}.scan-success p{margin:8px 0;color:var(--muted)}.scan-success strong{font-size:14px}.mobile-shop-actions{display:flex;gap:10px}
@media(max-width:700px){.shop-heading h1{font-size:30px}.scan-start{padding:20px}.scan-start-icon{display:none}.scan-start h2{font-size:21px}.scan-start p{font-size:13px}.scan-start small{font-size:11px}#mobile-cart .mobile-scan{width:auto;min-width:92px;justify-content:center}#mobile-cart .mobile-basket{flex:1;min-width:0;gap:8px}#mobile-cart .mobile-basket .icon{display:none}#mobile-cart .mobile-basket small{margin-left:4px}.mobile-basket strong{white-space:nowrap}}

.camera-view{position:relative;background:#101d31;min-height:180px}.camera-wrap .camera-view video{display:block;width:100%;height:280px;max-height:38vh;object-fit:contain}.camera-guide{position:absolute;inset:26% 8%;border:2px solid #ffb06e;border-radius:10px;pointer-events:none}.camera-wrap #camera-note{line-height:1.5;min-height:64px}.camera-wrap+.button{margin-bottom:10px}

.scanner-status{padding:12px 14px;margin:14px 0;background:#edf2f8;border-radius:10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.scanner-status[data-state="error"]{background:#fff3f0;color:#9d4336;border:1px solid #f1d8d1}.camera-wrap .camera-view video{height:210px;max-height:29vh}.scanned-barcode{display:block;font:600 22px monospace;overflow-wrap:anywhere;margin:16px 0;color:var(--navy)}

.entrance-qr{text-align:center;background:white;padding:8px;margin:14px 0}.entrance-qr img{display:block;width:min(100%,270px);height:auto;margin:auto;image-rendering:pixelated}.entrance-card .field input{font-size:12px}.staff-entry{max-width:650px}.staff-entry>.role-pill{display:inline-block;margin:10px 0}.staff-account{display:flex;gap:18px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;margin-top:24px;font-size:13px}.staff-account a{color:var(--navy)}

.exception-row{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid #dfe5ed}.exception-row p{margin:4px 0}.exception-row code,pre{overflow-wrap:anywhere;white-space:pre-wrap}.audit-detail{padding:15px 0;border-bottom:1px solid #dfe5ed}.audit-detail pre{font-size:12px;max-height:260px;overflow:auto}textarea{font:inherit;min-height:130px;width:100%;padding:14px;border:1px solid #d0dae6;border-radius:12px}.manager-tabs{flex-wrap:wrap}.stats-grid .stat-card strong{font-size:28px}.form-row{align-items:end}.section-card form{max-width:760px}.section-card h4{margin-top:24px}@media(max-width:640px){.exception-row{align-items:flex-start;flex-direction:column}.stats-grid{grid-template-columns:1fr 1fr}.stats-grid .stat-card strong{font-size:23px}.manager-tabs{gap:7px}.manager-tabs button{padding:9px 13px}.form-row{display:flex;flex-direction:column;align-items:stretch}}

/* Scan Pay Go identity: navy anchors the workspace; orange leads shopping. */
.brand{font-size:19px;letter-spacing:-.65px}.brand small{font-size:8px;letter-spacing:1.8px;margin-top:6px}
.scan-start{border-top:4px solid var(--orange);box-shadow:0 8px 28px #14284404}
.scan-start .button.primary{background:var(--orange);border-color:var(--orange);color:var(--navy);font-weight:700}
.scan-start .button.primary:hover,.button.lime:hover{background:#ff9d5c;border-color:#ff9d5c}
.scan-start-icon{background:var(--navy);color:var(--orange)}
.basket-head{border-top:4px solid var(--navy)}
.eyebrow{font-weight:700}.page-head h1{font-weight:800}
.brand:focus-visible,.sidebar a:focus-visible,.sidebar button:focus-visible{outline-color:#ffb06e}
textarea:focus-visible,summary:focus-visible{outline:3px solid #bd4e08;outline-offset:3px}
.scan-success-icon{background:#eaf3ee;color:#246447}
.page-footer a{text-decoration:underline;text-underline-offset:3px}
@media(min-width:701px) and (max-width:900px){.brand-name{display:none!important}}
@media(max-width:700px){.brand{font-size:20px}.brand-icon{width:40px;height:40px}.brand small{font-size:8px}.sidebar nav a.active{box-shadow:inset 0 3px var(--orange)}.scan-start{border-radius:14px}}

/* Plain-language store assistant: three priorities first, details on demand. */
.smart-home>h3{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:.4rem}
.smart-card{padding:18px 0;border-top:1px solid var(--border,#dfe3e9);display:flex;gap:16px;align-items:flex-start;justify-content:space-between;overflow-wrap:anywhere}
.smart-card h4{font-size:1.05rem;margin:0 0 6px}.smart-card p{margin:6px 0;line-height:1.55}.smart-card .button{flex-shrink:0;white-space:normal}
.smart-more,.smart-report{margin:18px 0}.smart-more summary,.smart-report>summary{cursor:pointer;font-weight:600;padding:12px 0}.smart-report>summary{padding:20px;background:#fff;border:1px solid #dfe3e9;border-radius:14px}
.smart-questions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.smart-questions .button{white-space:normal}
.budget-line{padding-bottom:14px}.budget-line p{font-weight:600;margin:0 0 10px}.budget-line small{display:block;font-size:.8rem;font-weight:400;color:#596a80}.budget-warning{color:#9a4214}
@media(max-width:600px){.smart-card{display:block}.smart-card .button{margin-top:12px;width:100%}.smart-questions .button{flex:1 1 140px}.smart-home{padding:22px}.smart-report .section-card{padding:20px}}
/* Short task screens; navy/orange identity retained. */
[hidden]{display:none!important}.today-tools{margin:0 0 24px}.more-tools{padding:16px;background:var(--surface,#fff);border:1px solid #ddd;border-radius:16px}.setup-steps{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 28px}.setup-steps .button{font-size:14px;min-height:44px;padding:10px 14px}.health-list{margin:20px 0}.health-list>div{padding:14px 0;border-bottom:1px solid #e2e6eb}.health-list dt{font-weight:700}.health-list dd{margin:6px 0;color:#596a80}.help-code{font:700 22px ui-monospace,monospace;letter-spacing:.08em}.help-item{border-bottom:1px solid #ddd;padding:12px 0}.field-error{display:block;color:#ad3027;font-size:14px;margin:6px 0}.field [aria-invalid=true]{border-color:#ad3027}.section-card>summary{font-weight:700;cursor:pointer;min-height:44px}.section-card>summary+.section-card{margin-top:20px}
@media(max-width:650px){.setup-steps{display:grid;grid-template-columns:1fr 1fr}.setup-steps .button{text-align:left;white-space:normal}.today-tools .button{flex:1;min-width:120px}.manager-tabs>.button{min-height:44px}.help-item{display:block}}
/* Continuous exit desk: keep the scanner stable while only the check changes. */
.gate-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:24px;align-items:start}
.gate-main{min-width:0}.gate-camera{background:#102b3a;border-radius:14px;overflow:hidden;margin-bottom:14px}.gate-camera video{display:block;width:100%;height:190px;object-fit:cover}.gate-camera p{color:#fff;padding:12px 16px;margin:0;font-size:14px}
#gate-result{margin-top:20px}.exit-payment{display:flex;flex-direction:column;gap:4px;padding:14px 16px;background:#eef4f8;border-radius:12px}.exit-payment span{font-size:14px}.exit-test{background:#fff4dc}.exit-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:18px}.exit-total>strong{font-size:30px}.exit-total>span{font-size:15px;color:#53636b}.exit-store{font-size:14px;color:#53636b}.exit-items{list-style:none;padding:0;margin:16px 0}.exit-items li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e1e7e9}.exit-items small{display:block;color:#53636b;margin-top:3px}.exit-items b{font-size:26px;white-space:nowrap}.exit-cleared{background:#e0f4e6;color:#17472c}.gate-main [hidden]{display:none!important}.receipt-ready{margin-top:0;background:#fff;border:2px solid #183f49}.receipt-ready #receipt-qr img{width:min(260px,100%);height:auto;image-rendering:pixelated}.receipt-ready>strong{font-size:20px}
@media(max-width:760px){.gate-layout{grid-template-columns:1fr;gap:12px}.gate-camera video{height:145px}.exit-total{align-items:flex-start;flex-direction:column;gap:2px}.gate-main .action-row{flex-wrap:wrap}.gate-main .action-row>.button{flex:1 1 150px}}

/* Guided exit checks */
.pack-size{display:block;font-size:1.15rem;color:var(--navy,#102f44);margin:.35rem 0}.check-progress{padding:1rem;border-radius:12px;background:#eaf2fa}.exit-items li.item-matched{border-left:4px solid #357568;padding-left:.75rem}.exit-items li>span{min-width:0;overflow-wrap:anywhere}.exit-items li>b{font-size:.8rem;max-width:6rem;text-align:right}.exit-items small{display:block}.exit-items .button{margin-top:.5rem}.gate-main .manual-scan{margin:1rem 0}.gate-main details form{margin-top:1rem}
.exit-items .pack-size{font-size:1.15rem;white-space:normal}

/* Product registration keeps essential details visible on a phone. */
.product-intro{margin:0 0 18px;color:var(--muted)}
.product-barcode-step{padding:16px;border:1px solid var(--border,#d9e0e4);border-radius:16px;margin-bottom:20px;background:var(--surface,#fff)}
.product-barcode-step>.button{margin-bottom:14px}.product-barcode-step .field{margin-bottom:8px}
.product-photo-option summary,.product-extra summary{cursor:pointer;padding:12px 0;font-weight:600}
.product-extra{margin:8px 0 18px;border-top:1px solid var(--border,#d9e0e4);border-bottom:1px solid var(--border,#d9e0e4)}
.product-save-actions{display:grid;gap:10px}.product-barcode-step video{max-height:240px}

/* Scanner controls stay close to a larger, uncropped camera preview. */
.camera-controls{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}.camera-controls .button{flex:1;min-height:44px;padding:10px}.camera-controls [aria-pressed="true"]{background:var(--navy);color:white}.camera-wrap .camera-view video{height:280px;max-height:36dvh;object-fit:contain}

.scan-sound{margin:8px 0;min-height:44px;font-size:13px}.scan-sound[aria-pressed="false"]{color:var(--muted);background:transparent}
:root { --store-card-border: #dce4ec; }
.store-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; margin:0 0 22px; border:1px solid var(--store-card-border); border-radius:16px; background:#fff; }
.store-tools > div:first-child { min-width:0; }
.store-tools strong,.store-tools span { display:block; overflow-wrap:anywhere; }
.store-tools span { font-size:13px; color:#64748b; margin-top:4px; }
.store-tools .action-row { margin:0; flex-wrap:wrap; }
.stores-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:14px; margin-top:16px; }
.store-card { padding:18px; border:1px solid var(--store-card-border); border-radius:12px; min-width:0; overflow-wrap:anywhere; }
.store-card h4 { font-size:18px; margin:12px 0 6px; }
.store-card p { font-size:14px; }
#easy-store-form .field { margin-bottom:16px; }
@media(max-width:700px) { .store-tools { align-items:stretch; flex-direction:column; padding:16px; } .store-tools .action-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; } .store-tools .action-row > :first-child { grid-column:1 / -1; } .store-tools .button { padding:11px 8px; font-size:13px; } }
.next-step { display:flex; align-items:center; justify-content:space-between; gap:20px; border-left:4px solid var(--orange); }
.next-step p { margin-top:8px; }
.simple-more { margin-top:18px; border-top:1px solid var(--line); padding-top:14px; }
.simple-more > summary { cursor:pointer; font-weight:600; padding:4px 0; }
.simple-more[open] > summary { margin-bottom:14px; }
.simple-product-list,.simple-team-list { margin:12px 0; }
.simple-product-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.simple-product-row > div,.simple-team-row > div { min-width:0; }
.simple-product-row strong,.simple-product-row span,.simple-product-row small,.simple-team-row strong,.simple-team-row span { display:block; overflow-wrap:anywhere; }
.simple-product-row span,.simple-team-row span { color:var(--muted); font-size:13px; margin-top:3px; }
.simple-product-row small { color:var(--muted); font-size:11px; margin-top:4px; }
.simple-team-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }
.simple-team-row .action-row { margin:0; flex-shrink:0; }
#staff-add-form { max-width:520px; margin-top:16px; }
#staff-add-form .field,#guided-setup-form .field { margin-top:14px; }
.staff-login > .button { margin-top:12px; }
.staff-login > p { margin:12px 0; }
.setup-steps { gap:8px; flex-wrap:wrap; }
.setup-steps .button { min-height:44px; }
.budget-line details { margin:0; }
.budget-line summary { color:var(--muted); font-size:12px; cursor:pointer; }
@media(max-width:600px) {
 .next-step { flex-direction:column; align-items:stretch; gap:14px; }
 .simple-product-row { gap:10px; grid-template-columns:minmax(0,1fr) auto; }
 .simple-product-row > .button { grid-column:1/-1; justify-self:start; min-width:100px; }
 .simple-team-row { align-items:stretch; flex-direction:column; gap:10px; }
 .simple-team-row .action-row { justify-content:flex-start; }
 .setup-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .setup-steps .button { white-space:normal; font-size:12px; padding:10px 8px; }
 #guided-setup-form > .action-row { flex-wrap:wrap; }
 #guided-setup-form > .action-row .button { white-space:normal; min-height:44px; }
}

/* Compact everyday screens; details stay available without filling the page. */
.shop-heading,.manage-heading { margin-bottom:16px; align-items:center; }
.shop-heading h1 { font-size:30px; }
.checkout-context { margin:-4px 0 16px; color:var(--muted); font-size:13px; }
.checkout-context summary { cursor:pointer; padding:8px 0; }
.checkout-context p { padding:4px 0 8px; max-width:520px; }
.scan-start p { margin:0 0 16px; font-size:15px; }
.shop-secondary { display:flex; gap:10px; margin:12px 0 18px; }
.shop-secondary .button { flex:1; min-height:44px; margin:0; }
.store-tools { padding:0; margin:0 0 16px; border:0; border-radius:0; background:none; gap:8px; }
.store-tools .action-row { gap:8px; }
.store-tools .store-selector { justify-content:flex-start; }
.next-step { padding:16px 18px; gap:12px; }
.next-step .eyebrow { display:block; margin-bottom:4px; }
.next-step h3 { margin:0; font-size:17px; }
.next-step p { font-size:13px; }
.next-step .button { flex-shrink:0; min-height:44px; }
.attention-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.attention-heading h3 { font-size:20px; margin:0; }
.smart-home .record-mode { margin:6px 0 14px; }
.smart-priority { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; border-top:1px solid var(--line); padding:10px 0; }
.smart-priority details { min-width:0; }
.smart-priority summary { cursor:pointer; padding:10px 0; font-size:14px; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.smart-priority .button { min-height:44px; font-size:12px; margin:0; }
.priority-detail { padding:2px 0 8px; font-size:13px; overflow-wrap:anywhere; }
.priority-detail h4 { font-size:13px; margin:0 0 6px; }
.smart-home .action-row { margin-top:8px; }
.smart-home .action-row .button { min-height:44px; }
.smart-home .smart-more { margin:4px 0; }
.smart-home>.smart-more>summary { font-size:13px; min-height:44px; }
.smart-home .coverage { margin:8px 0 -6px; }
.smart-home .coverage>summary { color:var(--muted); font-weight:500; }
.empty-checks { margin:16px 0; }
.smart-ask { padding:0; }
.smart-ask>summary { padding:16px 20px; min-height:56px; }
.smart-ask[open] { padding:0 20px 20px; }
.smart-ask[open]>summary { margin:0 -20px; }
.smart-report { margin:12px 0; }
.smart-report>summary { padding:16px 20px; }
details>summary:focus-visible { outline:3px solid #bd4e08; outline-offset:3px; }

@media(max-width:700px) {
 .sidebar { padding:12px 16px 0; }
 .brand { font-size:19px; gap:9px; }
 .brand-icon { width:32px; height:32px; }
 .brand small { display:none; }
 .sidebar nav { margin-top:10px; gap:3px; }
 .sidebar nav a { font-size:11px; padding:9px 2px; gap:4px; line-height:1.25; min-height:48px; }
 .topbar { height:auto; min-height:48px; padding:8px 16px; }
 .breadcrumbs { font-size:11px; min-width:0; }
 .breadcrumbs .store-name { opacity:1; overflow-wrap:anywhere; }
 .breadcrumbs>span:nth-child(2),.breadcrumbs #route-label { display:none; }
 .top-actions { flex-shrink:0; gap:8px; }
 .demo-strip { padding:8px 16px; font-size:11px; }
 main { padding:16px; min-height:0; }
 .page-head { margin-bottom:14px; }
 .shop-heading h1,.manage-heading h1 { font-size:26px; }
 .manage-heading .button { min-height:44px; padding:8px 10px; }
 .checkout-context { margin:-6px 0 10px; font-size:12px; }
 .scan-start { padding:18px; margin-bottom:12px; }
 .scan-start p { font-size:14px; margin-bottom:14px; }
 .scan-start small { font-size:12px; margin-top:10px; }
 .shop-secondary { gap:8px; margin:10px 0 14px; }
 .shop-secondary .button { font-size:13px; padding:10px; white-space:normal; }
 .store-tools { display:flex; flex-direction:column; align-items:stretch; padding:0; margin-bottom:12px; gap:8px; }
 .store-tools .store-selector { align-self:flex-start; min-height:44px; padding:8px 12px; }
 .store-tools .action-row { display:grid; grid-template-columns:1fr 1fr; }
 .store-tools .action-row>:first-child { grid-column:auto; }
 .store-tools .button { font-size:12px; min-height:44px; padding:8px; white-space:normal; }
 .manager-tabs { gap:6px; margin:0 0 12px; padding:0; }
 .manager-tabs:not(.more-tools) { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); overflow:visible; }
 .manager-tabs button { font-size:12px; min-height:44px; padding:8px 4px; }
 .section-card { padding:16px; margin-bottom:12px; }
 .next-step { flex-direction:row; align-items:center; gap:12px; padding:14px; }
 .next-step h3 { font-size:16px; margin:0; }
 .next-step .button { padding:9px 12px; }
 .attention-heading h3 { font-size:18px; margin:0; }
 .smart-priority { gap:8px; }
 .smart-home .record-mode { font-size:12px; margin-bottom:10px; }
 .smart-ask { padding:0; }
 .smart-ask>summary { padding:15px 16px; }
 .smart-ask[open] { padding:0 16px 16px; }
 .smart-ask[open]>summary { margin:0 -16px; }
 .smart-report>summary { padding:15px 16px; }
 .page-footer { padding:18px 16px 24px; font-size:10px; }
 body.shopping-route .page-footer { padding-bottom:100px; }
 #mobile-cart:not(:empty) { padding:10px 16px max(10px,env(safe-area-inset-bottom)); }
}
@media(max-width:360px) {
 .sidebar nav a { font-size:10px; }
 .next-step { flex-wrap:wrap; }
 .manager-tabs button { font-size:11px; }
}

/* The team is a compact directory. Invitation and access forms open on demand. */
.team-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.team-heading h3 { margin:0; font-size:20px; }
.team-heading .button { min-height:44px; flex-shrink:0; }
.team-panel .team-count { margin:8px 0 12px; }
.team-panel .simple-team-list { margin:0; }
.team-panel .simple-team-row { flex-direction:row; align-items:center; gap:12px; padding:14px 0; }
.team-panel .simple-team-row strong { font-size:14px; line-height:1.45; }
.team-panel .simple-team-row span { font-size:12px; margin-top:3px; }
.team-panel .simple-team-row>.button { min-height:44px; flex-shrink:0; font-size:12px; }
.team-footer { margin-top:14px; }
.team-footer .button { min-height:44px; }
.member-identity { overflow-wrap:anywhere; }
.member-identity strong { display:block; font-size:16px; }
.member-identity p { margin-top:4px; color:var(--muted); font-size:13px; }
.member-identity+.button { margin-top:18px; }
#staff-add-form { max-width:none; margin-top:16px; }
#staff-add-form input,#staff-add-form select,#team-access-form select { font-size:16px; }
#team-access-form .field { margin:12px 0; }
#team-access-form .privacy-note { margin-bottom:14px; }
@media(max-width:700px) {
 .team-heading h3 { font-size:18px; }
 .team-heading .button { padding:9px 12px; }
 .team-panel .simple-team-row { padding:12px 0; gap:10px; }
 .team-panel .simple-team-row>.button { padding:8px 10px; }
}

/* Setup: one current step and a tightly spaced, individually editable checklist. */
.setup-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.setup-heading h3 { font-size:20px; margin:0; }
.setup-progress { font-size:12px; color:var(--muted); white-space:nowrap; }
.setup-navigation { margin:0 0 16px; border:1px solid var(--line); border-radius:10px; }
.setup-navigation>summary { cursor:pointer; padding:14px; font-weight:650; font-size:14px; }
.setup-navigation>summary small,.setup-checks>summary small { display:block; margin:3px 0 0 16px; font-size:12px; font-weight:400; color:var(--muted); }
.setup-navigation .setup-steps { margin:0; padding:0 12px 12px; gap:8px; }
.setup-navigation .setup-steps .button { font-size:12px; min-height:44px; }
.setup-next { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:-4px 0 14px; color:var(--muted); font-size:12px; }
.setup-next .button { min-height:44px; }
.setup-panel #guided-setup-form { max-width:none; }
.setup-panel #guided-setup-form .check-label { margin:0; padding:10px 0; min-height:44px; font-size:13px; line-height:1.5; }
.setup-panel #guided-setup-form .check-label input { margin:1px 0 0; }
.setup-panel #guided-setup-form .field { margin:14px 0; }
.setup-panel #guided-setup-form .field input,.setup-panel #guided-setup-form .field select { font-size:16px; }
.practice-start { margin-bottom:16px; }
.practice-start .privacy-note { margin-top:8px; }
.setup-checks { border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.setup-checks>summary { cursor:pointer; padding:12px 0; font-size:14px; font-weight:650; min-height:44px; }
.setup-checks fieldset { border:0; margin:0; padding:0 0 10px; min-width:0; }
.setup-checks legend { font-size:12px; color:var(--muted); margin:0 0 6px; padding:0; }
.setup-panel .simple-more { margin-top:12px; padding-top:8px; }
.setup-panel .simple-more>summary { min-height:44px; padding:10px 0; font-size:13px; }
.setup-panel .simple-more[open]>summary { margin-bottom:8px; }
.setup-panel .practice-help { border-top:0; margin-top:0; padding-top:0; }
.setup-panel .steps { margin:8px 0; padding-left:22px; font-size:13px; }
.setup-panel .steps li { margin-bottom:8px; }
.setup-actions { margin-top:18px; }
.setup-main-actions { display:flex; gap:8px; }
.setup-main-actions>.button { min-height:44px; white-space:normal; }
.setup-main-actions>.primary { flex:1; }
.setup-save-later { display:flex; width:100%; border:0; background:transparent; min-height:44px; margin-top:6px; color:var(--muted); }
@media(max-width:700px) {
 .setup-heading h3 { font-size:18px; }
 .setup-navigation>summary { padding:12px; }
 .setup-navigation .setup-steps { grid-template-columns:minmax(0,1fr); }
 .setup-navigation .setup-steps .button { justify-content:flex-start; padding:10px 12px; }
}

/* Exit desk: show the current check first, with secondary tools closed. */
.gate-heading { margin-bottom:16px; }
.gate-heading .subtitle { margin-top:7px; max-width:none; font-size:13px; }
.gate-camera p { padding:16px; font-size:13px; }
.gate-camera video[hidden] { display:none; }
.gate-main .gate-camera-actions { display:flex; flex-wrap:wrap; gap:8px; }
.gate-main .gate-camera-actions>.button { flex:1; min-height:44px; font-size:13px; padding:10px; }
.gate-main .manual-scan { margin:12px 0; }
.gate-main .manual-scan>summary { min-height:44px; padding:10px 0; font-size:13px; }
.gate-main #gate-result { margin-top:12px; }
.gate-main #gate-result>.button { min-height:44px; }
.gate-tool.section-card { padding:0; margin-bottom:12px; }
.gate-tool>summary,.gate-tool>details>summary { padding:16px; cursor:pointer; font-size:14px; font-weight:650; min-height:52px; }
.gate-tool summary small { display:block; margin:4px 0 0 16px; font-size:12px; color:var(--muted); font-weight:400; }
.gate-tool-body { padding:0 16px 16px; }
.gate-tool-body p { font-size:13px; margin:10px 0; }
.gate-tool-body .button { min-height:44px; }
.gate-guide { margin-top:10px; border-top:1px solid var(--line); }
.gate-guide>summary,#gate-report-panel>summary { cursor:pointer; padding:12px 0; min-height:44px; font-size:13px; }
.gate-latest-receipt { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.gate-latest-receipt strong { font-size:14px; }
.gate-latest-receipt small { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.gate-latest-receipt>.button { flex-shrink:0; }
.gate-rule { margin:12px 0; font-size:12px; }
@media(max-width:760px) {
 .gate-main { margin-bottom:0; }
 .gate-latest-receipt { align-items:flex-start; flex-direction:column; }
 .gate-tools .action-row { display:flex; flex-wrap:wrap; }
 .gate-tools .action-row .button { white-space:normal; }
}

/* Compact shopper scanner: one instruction, a live preview and optional controls. */
.scanner-dialog .modal-head { position:sticky; top:0; z-index:2; padding:12px 16px; background:white; border-bottom:1px solid var(--line); }
.scanner-dialog .modal-head h2 { margin:0; font-size:20px; }
.scanner-dialog .modal-head>.icon-btn { width:44px; height:44px; flex-shrink:0; }
.scanner-dialog .modal-body { padding:12px 16px 16px; }
.scanner-panel { display:grid; gap:8px; }
.scanner-panel [hidden] { display:none!important; }
.scanner-panel .scanner-status { margin:0; padding:10px 12px; font-size:13px; }
.scanner-panel .camera-wrap { margin:0; }
.scanner-panel .camera-view { min-height:0; }
.scanner-panel .camera-view video { height:clamp(160px,26dvh,240px); max-height:none; object-fit:cover; object-position:50% 50%; }
.scanner-panel .button { min-height:44px; padding:10px 12px; }
.scanner-panel .manual-scan { margin:0; }
.scanner-panel details>summary { min-height:44px; padding:10px 0; font-size:14px; cursor:pointer; }
.scanner-panel .scanner-options .camera-controls { margin:0 0 8px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.scanner-panel .scan-sound { margin:0; }
.scanner-panel .scanner-options .privacy-note { margin:8px 0; font-size:12px; }
.scanner-panel .manual-scan .field { margin:0 0 10px; }
.scanner-dialog #modal-error:empty { display:none; }

/* Product directory: pack and availability stay visible; full details open in Edit. */
.products-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.products-heading h3 { margin:0; font-size:20px; }
.products-heading .button { min-height:44px; padding:10px 12px; }
.products-panel .product-search { margin:14px 0 0; font-size:13px; }
.products-panel .product-search input { font-size:16px; }
.products-panel .product-count { margin:10px 0 4px; font-size:12px; }
.products-panel .simple-product-list { margin:0; }
.products-panel .simple-product-row { grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:12px 0; }
.products-panel .simple-product-row strong { font-size:14px; line-height:1.4; }
.products-panel .product-summary>span { font-size:12px; margin-top:4px; }
.products-panel .product-stock { display:inline; margin:0; font-size:inherit; }
.products-panel .product-stock.empty { color:#9d4336; font-weight:600; }
.products-panel .product-visibility { color:#9d4336; }
.products-panel .product-actions { display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
.products-panel .product-actions>strong { white-space:nowrap; }
.products-panel .product-actions>.button { min-height:44px; min-width:56px; padding:8px 12px; font-size:12px; }
.products-panel [data-action="products-more"] { min-height:44px; margin-top:12px; }

/* Compact product form with manual barcode entry and optional scanning controls. */
.product-dialog .modal-head { position:sticky; top:0; z-index:3; padding:12px 16px; background:white; border-bottom:1px solid var(--line); }
.product-dialog .modal-head h2 { margin:0; font-size:20px; }
.product-dialog .modal-head>.icon-btn { width:44px; height:44px; flex-shrink:0; }
.product-dialog .modal-body { padding:12px 16px 0; }
.product-dialog #product-form { margin:0; max-width:none; }
.product-dialog #product-form .field { min-width:0; margin:10px 0; gap:4px; font-size:12px; }
.product-dialog #product-form .field input,.product-dialog #product-form .field select { width:100%; min-height:44px; padding:9px 10px; font-size:16px; }
.product-dialog .product-barcode-step { border:0; border-radius:0; padding:0; margin:0; }
.product-dialog .product-barcode-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; }
.product-dialog #product-form .product-barcode-entry .field { margin:0; }
.product-dialog .product-barcode-entry>.button { min-height:44px; min-width:64px; padding:10px 12px; }
.product-dialog .product-photo-option>summary,.product-dialog .product-extra>summary,.product-dialog .product-camera-options>summary { min-height:44px; padding:11px 0; font-size:12px; cursor:pointer; }
.product-dialog .product-scan-alternatives { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.product-dialog .product-scan-alternatives>.button { width:auto; min-height:44px; margin:0; font-size:12px; }
.product-dialog #product-form .product-price-stock { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:end; }
.product-dialog .product-extra { margin:4px 0 8px; }
.product-dialog #product-form .privacy-note { margin:8px 0; font-size:12px; line-height:1.5; }
.product-dialog #product-form .check-label { margin:8px 0; padding:8px 0; min-height:44px; }
.product-dialog .product-save-actions { position:sticky; bottom:0; z-index:2; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px 0 12px; background:white; border-top:1px solid var(--line); }
.product-dialog .product-save-actions>.button { min-height:44px; padding:10px 8px; font-size:12px; }
.product-dialog .product-save-actions>.button:only-child { grid-column:1/-1; }
.product-name-pack { min-width:0; }
.product-dialog #modal-error:empty { display:none; }
.product-dialog #modal-error:not(:empty) { padding:10px 0 16px; }

/* Assistance has one empty state; active requests retain their separate queues. */
.assistance-heading { display:flex; flex-direction:row; align-items:center; gap:12px; margin-bottom:8px; }
.assistance-heading h1 { margin:0; font-size:clamp(24px,5vw,32px); }
.assistance-heading>.button { flex-shrink:0; min-height:44px; padding:10px 12px; font-size:13px; }
.assistance-view .privacy-note { font-size:12px; line-height:1.5; }
.assistance-refresh-note { margin:0 0 14px; }
.assistance-counts { display:flex; flex-wrap:wrap; gap:8px 12px; margin:0 0 14px; font-size:12px; color:var(--muted); }
.assistance-counts>span { padding:6px 10px; background:#eaf1f8; border-radius:7px; }
.assistance-view .assistance-empty { padding:20px 16px; }
.assistance-empty h2 { margin:0 0 8px; font-size:18px; }
.assistance-empty p { margin:0; font-size:14px; line-height:1.5; }
.assistance-group>h2 { margin:18px 0 10px; font-size:18px; }
.assistance-request-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.assistance-request-heading>div { min-width:0; }
.assistance-request-heading h3 { margin:0; font-size:15px; overflow-wrap:anywhere; }
.assistance-request-heading p { margin:4px 0 0; font-size:12px; line-height:1.5; }
.assistance-request-heading>.button { flex-shrink:0; max-width:42%; min-height:44px; padding:9px 12px; font-size:12px; }
.assistance-request .assistance-request-note { margin:12px 0 8px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.assistance-request .privacy-note { margin:8px 0 0; overflow-wrap:anywhere; }
.assistance-request .notice { margin:10px 0 0; padding:10px; font-size:13px; }
.assistance-clearance-note { margin:12px 0; }
.assistance-guidance>summary { min-height:44px; padding:10px 0; font-size:14px; cursor:pointer; }
.assistance-guidance ol { margin:8px 0 0; padding-left:20px; font-size:13px; line-height:1.6; }
.assistance-guidance li+li { margin-top:8px; }

/* Check status and recovery tools fit a short phone view. */
.health-panel h3 { font-size:20px; margin-bottom:12px; }
.health-panel .health-list { margin:0 0 14px; }
.health-panel .health-list>div { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); align-items:start; gap:12px; padding:12px 0; }
.health-panel .health-list dt { font-size:13px; font-weight:600; line-height:1.45; }
.health-panel .health-list dd { min-width:0; margin:0; font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.health-state { display:block; font-size:13px; font-weight:600; color:var(--ink); }
.health-state.needs-attention { color:#925017; }
.health-time { display:block; margin-top:3px; font-size:12px; color:var(--muted); }
.health-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.health-panel .button { min-height:44px; font-size:13px; padding:10px 12px; }
.health-panel .privacy-note { margin:8px 0; font-size:12px; line-height:1.5; }
.health-panel .health-schedule-note { margin:10px 0 12px; }
.health-details { margin:0; border-top:1px solid var(--line); }
.health-details>summary { min-height:44px; padding:12px 0; font-size:13px; font-weight:600; cursor:pointer; }
.health-downloads { display:grid; gap:8px; margin:0 0 8px; }
.health-panel .health-alerts { padding:12px; margin:0 0 12px; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }

/* Audit prioritises unresolved issues and limits the initial history list. */
.audit-view .section-card h3 { font-size:20px; margin-bottom:10px; }
.audit-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.audit-heading .audit-count { font-size:14px; color:var(--muted); }
.audit-issue-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.audit-issue-row>div { min-width:0; }
.audit-issue-row strong,.audit-issue-evidence>summary { font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.audit-view .audit-issue-row p { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:5px 0 0; font-size:12px; line-height:1.5; }
.audit-issue-owner { min-width:0; overflow-wrap:anywhere; color:var(--muted); }
.audit-issue-status { display:inline-block; border-radius:5px; padding:2px 6px; }
.audit-issue-status.unresolved { color:#805b18; background:#fff3d9; }
.audit-issue-status.resolved { color:var(--muted); background:#f1f3f6; }
.audit-issue-evidence { margin:0; }
.audit-issue-evidence>summary { min-height:44px; padding:8px 0; font-weight:650; cursor:pointer; }
.audit-issue-evidence p { overflow-wrap:anywhere; }
.audit-issue-row>.button { min-height:44px; min-width:56px; padding:8px 10px; font-size:12px; }
.audit-resolved,.audit-more-issues { margin-top:8px; }
.audit-resolved>summary,.audit-more-issues>summary { min-height:44px; padding:11px 0; font-size:13px; font-weight:600; cursor:pointer; }
.audit-history .audit-search { margin:12px 0; gap:5px; font-size:12px; }
.audit-search input { min-height:44px; font-size:16px; padding:10px 12px; }
.audit-view .privacy-note { font-size:12px; line-height:1.5; }
.audit-view .audit-result-count { margin:10px 0 4px; }
.audit-view .audit-detail { margin:0; padding:0; }
.audit-view .audit-detail>summary { min-height:44px; padding:12px 0; font-size:14px; cursor:pointer; }
.audit-detail>summary>strong { font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.audit-detail>summary>span { display:block; margin:4px 0 0 15px; font-size:12px; color:var(--muted); }
.audit-record-body { padding:0 0 12px 15px; }
.audit-view .audit-record-body p { margin:6px 0; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.audit-view .audit-record-values h4 { margin:12px 0 4px; font-size:12px; }
.audit-view .audit-record-values pre { margin:0; padding:10px; background:#f7f8fb; border-radius:6px; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.audit-history [data-action="audit-more"] { min-height:44px; margin-top:12px; font-size:13px; }
.audit-view .audit-scope { margin-top:14px; }

/* Stock tools show current attention first and keep long reports on demand. */
.inventory-view .section-card h3 { font-size:20px; margin-bottom:10px; }
.inventory-view .section-card p { margin:6px 0; font-size:13px; line-height:1.5; }
.inventory-view .section-card .privacy-note { font-size:12px; }
.inventory-view .inventory-warning { color:#925017; }
.inventory-count { display:inline-block; margin-left:6px; font-size:14px; font-weight:600; color:var(--muted); }
.inventory-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; }
.inventory-view .button { min-height:44px; font-size:12px; padding:9px 12px; }
.inventory-disclosure { margin-top:8px; border-top:1px solid var(--line); }
.inventory-disclosure>summary,.inventory-movement-detail>summary { min-height:44px; padding:11px 0; font-size:13px; cursor:pointer; }
.inventory-stock-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:12px 0; border-top:1px solid var(--line); }
.inventory-stock-row>div:first-child>strong,.inventory-history-row>strong { display:block; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.inventory-stock-row span,.inventory-history-row>span { display:block; font-size:12px; line-height:1.5; color:var(--muted); margin-top:3px; }
.inventory-stock-row b { font-weight:600; }
.inventory-suggestion { text-align:right; align-self:center; }
.inventory-suggestion>strong { font-size:18px; }
.inventory-suggestion>span { margin:0; font-size:11px; }
.inventory-history-row { padding:10px 0; border-top:1px solid var(--line); }
.inventory-batch-row { padding:12px 0; border-top:1px solid var(--line); }
.inventory-batch-row>strong { font-size:14px; overflow-wrap:anywhere; }
.inventory-batch-row>.button { margin-top:6px; }
.inventory-view>.section-card>summary { min-height:44px; font-size:16px; }
.inventory-section-note { display:block; margin-top:5px; font-weight:400; font-size:12px; line-height:1.5; color:var(--muted); }
.inventory-details-body { padding-top:12px; }
.inventory-view .inventory-period { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; }
.inventory-view .inventory-period .field { min-width:0; margin:0; font-size:12px; gap:4px; }
.inventory-view .inventory-period input { display:block; width:100%; max-width:100%; min-width:0; min-height:44px; padding:8px; font-size:14px; }
.inventory-period>.button { grid-column:1/-1; }
.inventory-view .summary-row { gap:12px; margin:10px 0; font-size:13px; }
.inventory-view .summary-row>strong { white-space:nowrap; }
.inventory-movement-row { padding:12px 0; border-top:1px solid var(--line); }
.inventory-movement-heading { display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.inventory-movement-heading>strong:first-child { min-width:0; overflow-wrap:anywhere; }
.inventory-movement-heading>strong:last-child { white-space:nowrap; }
.inventory-movement-detail { margin:0; }
.inventory-movement-detail p { overflow-wrap:anywhere; }
@media(max-width:360px) { .inventory-view .inventory-period { grid-template-columns:minmax(0,1fr); } }

/* Purchases stay tabular on wide screens and read as complete entries on phones. */
.purchases-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.purchases-heading h3 { margin:0; font-size:20px; }
.purchases-heading .button { min-height:44px; }
.orders-table { width:100%; border-collapse:collapse; }
.orders-table th { text-align:left; color:var(--muted); font-size:12px; padding:10px 8px; border-bottom:1px solid var(--line); }
.orders-table td { padding:12px 8px; border-bottom:1px solid var(--line); font-size:14px; }
.orders-table .order-total { white-space:nowrap; font-variant-numeric:tabular-nums; }
.orders-table .order-exit { display:block; margin-top:4px; font-size:12px; }
.orders-table .order-timezone { display:none; }
.orders-table .order-action .button { min-height:44px; }
.orders-table .status-pill { max-width:100%; white-space:normal; overflow-wrap:anywhere; line-height:1.4; }
.orders-table .status-pill:is(.paid_review,.payment_review,.manual_review,.refund_pending,.refund_review) { background:#fff3d9; color:#805b18; }
@media(max-width:999px) {
 .orders-table-wrap { overflow:visible; }
 .orders-table-wrap .orders-table { display:block; min-width:0; width:100%; }
 .orders-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .orders-table tbody { display:block; }
 .orders-table tbody>tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; padding:14px 0; border-bottom:1px solid var(--line); }
 .orders-table-wrap .orders-table td { display:block; min-width:0; padding:0; border:0; }
 .orders-table .order-reference { grid-column:1; grid-row:1; }
 .orders-table .order-reference strong { font-size:13px; overflow-wrap:anywhere; }
 .orders-table-wrap .orders-table .order-date { grid-column:1; grid-row:2; color:var(--muted); font-size:12px; }
 .orders-table .order-timezone { display:inline; }
 .orders-table .order-total { grid-column:2; grid-row:1; text-align:right; font-weight:700; }
 .orders-table .order-status { grid-column:1; grid-row:3; }
 .orders-table .status-pill { font-size:11px; }
 .orders-table .order-action { grid-column:2; grid-row:2/4; align-self:center; justify-self:end; }
 .orders-table .order-action .button { min-width:56px; padding:8px 12px; font-size:12px; }
 .orders-table .orders-empty>td { grid-column:1/-1; }
}

/* The same short journeys use the available desktop space without stretching forms. */
@media screen and (min-width:701px) {
 main { max-width:1440px; padding-top:24px; }
 .topbar { height:64px; }
 .breadcrumbs { min-width:0; }
 .breadcrumbs .store-name { min-width:0; overflow-wrap:anywhere; }
 .top-actions { flex-shrink:0; }
 .page-head { margin-bottom:20px; }
 .shop-heading h1,.manage-heading h1,.gate-heading h1 { font-size:30px; }
 .manage-heading .button,.manager-tabs .button,.manager-tabs .category { min-height:44px; font-size:13px; }
 .manager-tabs { padding-bottom:0; gap:8px; }
 .manager-tabs.more-tools { padding:10px; margin-bottom:20px; }
 .store-tools .button { min-height:44px; }
 .two-col { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .two-col>* { min-width:0; }
 .shop-layout { grid-template-columns:minmax(0,1fr) minmax(280px,340px); gap:24px; }
 .shop-layout>section { min-width:0; }
 .scan-start { padding:24px; }
 .scan-start .button { max-width:480px; }
 .scan-start small { text-align:left; }
 .shop-secondary { justify-content:flex-start; }
 .shop-secondary .button { flex:0 1 220px; white-space:normal; }
 .basket-panel { max-height:calc(100dvh - 44px); overflow:auto; }
 .basket-name { font-size:13px; }
 .basket-unit { font-size:12px; }
 .basket-line .price,.basket-summary .summary-row { font-size:13px; }
 .qty-control { height:36px; }
 .qty-control button { width:34px; height:36px; }
 .qty-control span { width:28px; font-size:12px; }
 .today-view { max-width:1120px; }
 .today-view .smart-home { padding:20px 24px; }
 .today-view .next-step { padding:16px 24px; }
 .team-panel { max-width:1040px; }
 .setup-view,.health-panel { max-width:860px; }
 .setup-actions { max-width:440px; }
 .setup-panel .setup-main-actions { justify-content:flex-start; }
 .products-panel .product-search { max-width:600px; }
 .products-panel .product-actions { flex-direction:row; align-items:center; gap:24px; }
 .products-panel .product-actions>strong { min-width:90px; text-align:right; font-size:15px; font-variant-numeric:tabular-nums; }
 .products-panel .simple-product-row { gap:24px; padding:12px 0; }
 .products-panel [data-action="products-more"],.audit-history [data-action="audit-more"] { width:auto; min-width:160px; }
 .gate-layout { grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr); }
 .gate-camera video { height:clamp(220px,34dvh,360px); }
 .gate-tools { min-width:0; }
 .scanner-dialog { width:min(90vw,680px); }
 .scanner-dialog .modal-head,.product-dialog .modal-head { padding:16px 24px; }
 .scanner-dialog .modal-body { padding:16px 24px 24px; }
 .scanner-panel .camera-view video { height:clamp(220px,38dvh,360px); }
 .product-dialog { width:min(90vw,720px); }
 .product-dialog .modal-body { padding:16px 24px 0; }
 .product-dialog .product-name-pack { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:16px; }
 .product-dialog #product-form .product-price-stock { gap:16px; }
 .product-dialog .product-save-actions { padding:14px 0 16px; }
 .product-dialog .product-save-actions>.button { font-size:14px; }
 .health-panel .health-actions { max-width:460px; }
 .health-panel .health-downloads { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .health-panel .health-downloads>.button:only-child { grid-column:1/-1; }
 .assistance-empty,.assistance-guidance { max-width:900px; }
 .assistance-group { min-width:0; }
 .assistance-group>h2 { margin-top:0; }
 .assistance-request { padding:20px; }
 .assistance-request-heading>.button { white-space:normal; }
}

@media screen and (min-width:1000px) {
 .orders-table-wrap .orders-table { min-width:0; table-layout:fixed; }
 .orders-table .order-reference { width:25%; }
 .orders-table .order-date { width:21%; }
 .orders-table .order-total { width:16%; }
 .orders-table .order-status { width:26%; }
 .orders-table .order-action { width:12%; text-align:right; }
 .orders-table .status-pill { font-size:12px; }

 .today-view { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
 .today-view>.section-card,.today-view>.smart-report { margin:0; min-width:0; }
 .today-view>section,.today-view>.smart-ask[open],.today-view>.smart-report[open] { grid-column:1/-1; }
 .today-view>.smart-ask>summary,.today-view>.smart-report>summary { min-height:60px; }
 .products-panel .product-summary { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); align-items:center; column-gap:24px; }
 .products-panel .product-summary>span { margin-top:0; }
 .products-panel .product-summary>.product-visibility { grid-column:1/-1; margin-top:4px; }
 .health-panel .health-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px; }
 .health-panel .health-list>div { grid-template-columns:1fr; gap:6px; }
}

@media screen and (min-width:1200px) {
 .sidebar { width:220px; padding:24px 16px; }
 .sidebar nav a { min-height:48px; font-size:14px; }
 .inventory-view,.audit-view,.assistance-queues { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
 .inventory-view>.section-card,.audit-view>.section-card { margin:0; min-width:0; }
 .inventory-view>.inventory-tools { grid-column:1/-1; }
 .inventory-tools .inventory-actions { max-width:460px; }
 .inventory-view .inventory-period { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .audit-view { grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); }
 .assistance-queues>:only-child { grid-column:1/-1; width:100%; max-width:900px; }
 .assistance-queues .assistance-request { margin-bottom:14px; }
 .audit-record-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; }
 .audit-record-values>h4 { grid-row:1; }
 .audit-record-values>pre { grid-row:2; min-width:0; }
}

/* POS connection: the same owner controls remain usable on phones and desktop. */
.pos-state{display:inline-block;padding:.4rem .65rem;border-radius:.5rem;background:var(--soft,#eaf1f8);font-size:.85rem;font-weight:600}
.pos-facts{display:grid;gap:1rem;margin:1.2rem 0}.pos-facts div{min-width:0}.pos-facts dt,.pos-change dt{color:var(--muted,#596b7c);font-size:.9rem}.pos-facts dd{margin:.25rem 0 0;overflow-wrap:anywhere}
.pos-run{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-top:1px solid var(--line,#dce2e6)}.pos-run p{margin:.25rem 0}.pos-run>div{min-width:0}.pos-run strong{overflow-wrap:anywhere}
.pos-history{margin-top:1.5rem}.pos-change{border-top:1px solid var(--line,#dce2e6);padding:1rem 0}.pos-change h4{margin:.25rem 0}.pos-change dl{display:grid;gap:.5rem}.pos-change dd{margin:0;overflow-wrap:anywhere}.pos-panel input[readonly]{font-size:.9rem}.pos-panel .section-title{flex-wrap:wrap}
@media(min-width:701px){.pos-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-change dl{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.5rem}}

.rfid-panel .rfid-badge{padding:.35rem .65rem;border-radius:.5rem;background:#fff0df;color:#70421c;font-size:.85rem;font-weight:600}.rfid-facts{display:grid;gap:1rem;margin:1rem 0}.rfid-facts dt{color:var(--muted);font-size:.9rem}.rfid-facts dd{margin:.25rem 0 0;overflow-wrap:anywhere}.rfid-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-top:1px solid var(--line)}.rfid-row>div{min-width:0}.rfid-row p{margin:.25rem 0}.rfid-row>span{flex-shrink:0;font-size:.85rem}.rfid-epc{overflow-wrap:anywhere;font-family:monospace;font-size:.85rem}.rfid-panel a{text-decoration:underline}.rfid-results{margin:1rem 0}.rfid-panel .section-title{flex-wrap:wrap;gap:.5rem}#rfid-capture pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:701px){.rfid-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.rfid-panel{max-width:1000px}}

.scan-success .scanned-pack{font-size:24px;font-weight:800;color:var(--navy);margin:12px 0}
