:root{--ink:#203e34;--green:#214b3d;--green-light:#e8eee6;--cream:#faf7ef;--line:#deded2;--muted:#6e766e;--rust:#ad5939;--gold:#c18b32;--white:#fffefa;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:10px 15px;background:var(--white);color:var(--ink);font-weight:600;font-size:14px;text-decoration:none;cursor:pointer;line-height:1.3}button:hover,.button:hover{border-color:var(--green);background:#f0f2e9}button:disabled{opacity:.45;cursor:default}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#153a2d;color:white}.danger{background:#a23e2b;color:white;border-color:#a23e2b}.quiet{background:transparent;border-color:transparent}.danger.quiet{color:#a23e2b;background:transparent}.quiet:hover{background:var(--green-light)}input,select,textarea{width:100%;border:1px solid #cdcec2;border-radius:8px;padding:11px 12px;min-height:46px;background:var(--white);color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #214b3d15}input[type=checkbox]{width:21px;height:21px;min-height:21px;accent-color:var(--green);flex-shrink:0}input[type=file]{padding:10px;max-width:100%;font-size:13px}input[type=file]::file-selector-button{padding:9px;border:0;border-radius:5px;background:var(--green-light);color:var(--ink);margin-right:10px}label{display:block;font-size:14px;font-weight:600}label>span:first-child{display:block;margin-bottom:7px}form>label{margin:15px 0}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,2.7vw,36px);letter-spacing:-1.1px;line-height:1.15;margin-bottom:12px;font-weight:700}h2{font-size:20px;letter-spacing:-.35px;line-height:1.35}h3{font-size:17px}p{line-height:1.65}hr{border:0;border-top:1px solid var(--line);margin:28px 0}.muted{color:var(--muted)}.small{font-size:12px}.wide{grid-column:1/-1}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.8px;margin-bottom:12px;color:var(--rust)}.sidebar{width:224px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);background:#f4efdf;padding:24px 18px;display:flex;flex-direction:column;z-index:10}.brand{display:block;max-width:190px;margin-bottom:14px}.brand img{display:block;width:100%;height:auto;mix-blend-mode:multiply}.private-label{font-size:9px;letter-spacing:2px;color:var(--muted);text-align:center;margin:10px 0 35px}.sidebar nav{display:grid;gap:9px}.sidebar nav a{display:flex;align-items:center;text-decoration:none;padding:14px 15px;border-radius:9px;gap:13px;font-size:14px}.sidebar nav a span{font-size:23px;line-height:1}.sidebar nav a.active{background:var(--green);color:white}.sidebar nav a:hover:not(.active){background:#e8e5d5}.sidebar-bottom{display:flex;flex-direction:column;align-items:start;margin-top:auto;gap:8px;padding:15px 8px}.sidebar-bottom>a{font-size:14px;text-decoration:none;padding:12px 8px}.sidebar-bottom button{font-size:12px}.mobile-nav{display:none}main#main{max-width:1700px;margin-left:224px;padding:40px clamp(24px,3vw,54px) 50px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-title p{margin-bottom:0;font-size:14px}.page-title .eyebrow{margin-bottom:9px;font-size:10px}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.stock-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:24px}.stock-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted);padding:12px 18px}.stock-tabs .chosen{color:var(--green);border-bottom-color:var(--green)}.filters{display:grid;grid-template-columns:minmax(230px,2.3fr) repeat(4,minmax(90px,1fr));gap:12px;align-items:end}.filters label{font-size:11px;color:var(--muted)}.filters input,.filters select{font-size:13px}.list-bar{display:flex;align-items:center;justify-content:space-between;margin:19px 0 14px;font-size:12px;color:var(--muted)}.list-bar button{font-size:12px;min-height:38px;padding:8px 12px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product-card{border:1px solid var(--line);border-radius:12px;background:var(--white);overflow:hidden;transition:box-shadow .15s,border-color .15s;min-width:0}.product-card:hover{border-color:#acb7a8;box-shadow:0 5px 18px #213e320b}.card-photo{position:relative;background:#eee9dd;height:230px;padding:9px}.card-photo>a{height:100%;display:flex;align-items:center;justify-content:center}.card-photo img{width:100%;height:100%;object-fit:contain}.select-label{position:absolute;top:10px;left:10px;background:#fffefae6;border-radius:6px;padding:4px;height:29px;display:flex}.select-label input{margin:0}.card-content{padding:15px}.card-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:4px}.card-meta span{font-size:10px;color:var(--muted);letter-spacing:1px}.card-meta strong{font-size:17px;white-space:nowrap}.card-title{font-size:14px;line-height:1.5;font-weight:650;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px}.card-title:hover{text-decoration:underline}.card-size{font-size:11px;color:var(--muted);margin:8px 0 13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.location{border-top:1px solid #eeeee4;margin:0;padding-top:11px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unassigned{color:#a16f32}.no-photo{color:var(--muted);font-size:14px}.sold-badge,.badge{display:inline-flex;border-radius:30px;background:var(--green-light);color:var(--green);font-size:11px;font-weight:700;padding:7px 12px}.sold-badge{position:absolute;bottom:10px;right:10px;background:#efe0d6;color:#88472e}.badge.sold{background:#f3e1d7;color:#8e472d}.pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:30px;font-size:12px}.empty{text-align:center;padding:65px 15px;border:1px dashed #c6cabc;border-radius:13px;margin:20px 0;color:var(--muted)}.empty h2{color:var(--ink)}.panel{background:var(--white);border:1px solid var(--line);border-radius:13px;padding:25px;min-width:0}.detail-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:36px;align-items:start}.gallery-main{height:560px;max-height:72vh;background:#ede9de;border-radius:14px;display:flex;align-items:center;justify-content:center;padding:16px}.gallery-main img{width:100%;height:100%;object-fit:contain}.gallery-thumbs{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap}.gallery-thumbs button{width:76px;height:90px;padding:4px;background:#ede9de}.gallery-thumbs img{width:100%;height:100%;object-fit:contain}.price-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px}.price-row>strong{font-size:32px;letter-spacing:-1px}.facts{margin:20px 0}.facts>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);font-size:13px;padding:12px 0}.facts dt{color:var(--muted)}.facts dd{margin:0;text-align:right;max-width:65%;overflow-wrap:anywhere}.description{white-space:pre-wrap;line-height:1.7;font-size:14px;margin:22px 0}.qr-panel{display:flex;align-items:center;gap:20px;margin:25px 0}.qr-panel p{font-size:12px;margin:10px 0}.qr{width:132px;flex-shrink:0;background:white;border:1px solid var(--line);border-radius:8px;padding:2px}.qr svg{display:block;width:100%;height:auto}.notice{background:#f4ecdb;border:1px solid #e7d9bb;border-radius:9px;padding:14px 16px;font-size:13px;line-height:1.6;margin:18px 0;color:#725629}.notice.subtle{font-size:12px;border:0;background:#f4efdf}.editor{display:grid;grid-template-columns:.8fr 1.4fr;gap:24px;align-items:start}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid>label:first-child{grid-column:1/-1}.form-grid p{margin:0}.save-bar{border-top:1px solid var(--line);padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.save-bar p{font-size:12px}.photo-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.photo-edit{background:#f1ece0;padding:7px;border-radius:9px;min-width:0}.photo-edit img{width:100%;height:160px;object-fit:contain}.photo-edit>span{display:block;font-size:11px;text-align:center;margin:7px}.photo-edit>div{display:flex;justify-content:center;gap:3px}.photo-edit button{padding:6px;min-width:34px;min-height:34px}.upload-box{border:1px dashed #acb4a5;border-radius:9px;text-align:center;padding:16px;margin:20px 0 12px}.upload-box input{margin-top:10px;font-size:11px}.location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.location-card{padding:25px;border:1px solid var(--line);border-radius:13px;background:var(--white)}.location-card h2{margin:18px 0 12px}.location-card h2 a{text-decoration:none}.location-card p{font-size:13px;color:var(--muted)}.location-icon{display:block;font-size:36px;color:var(--gold);margin-bottom:10px}.organize-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:start}.destination{background:#f0ead9;border-radius:12px;padding:22px 24px;margin-bottom:20px}.destination.selected{background:var(--green);color:white}.destination>span{font-size:10px;letter-spacing:1.5px}.destination h2{margin:8px 0;font-size:23px}.destination p{margin:0;font-size:12px}.select-location{margin:15px 0}.camera-box{position:relative;aspect-ratio:4/3;background:#182c25;border-radius:12px;overflow:hidden;display:grid;place-items:center;margin:16px 0;color:#fff}.camera-box video{position:absolute;width:100%;height:100%;object-fit:cover}#camera-placeholder{text-align:center;z-index:2;padding:20px}#camera-placeholder[hidden]{display:none}.scan-symbol{font-size:80px;line-height:1}.camera-box p{font-size:13px}.scan-frame{width:57%;aspect-ratio:1;border:2px solid #d6d9b3;border-radius:12px;z-index:1;box-shadow:0 0 0 150px #0003;pointer-events:none}.scan-result{margin-top:24px;border-top:1px solid var(--line);padding-top:22px}.scan-result img{display:block;width:100%;height:190px;object-fit:contain;margin-bottom:16px;background:#eee9dd;border-radius:8px}.scan-result h3{margin:12px 0 6px}.scan-result p{font-size:13px;margin-bottom:7px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-grid section>p{font-size:13px}.settings-grid form>label{margin-bottom:20px}.settings-logo{width:180px;height:auto;mix-blend-mode:multiply}.install-help{display:grid;grid-template-columns:1fr 1fr;gap:30px}.install-help p{font-size:13px}.auth{max-width:440px;margin:5vh auto;padding:24px}.auth>img{width:100%;max-width:330px;display:block;margin:0 auto 30px;mix-blend-mode:multiply}.auth h1{font-size:28px}.auth .eyebrow{font-size:10px}.auth .primary{width:100%;margin:10px 0 18px}.auth>p:last-child{text-align:center}.loading{text-align:center;padding:20vh 20px;color:var(--muted)}.offline{position:sticky;top:0;z-index:50;background:#97542e;color:white;text-align:center;font-size:13px;padding:10px 15px}.offline[hidden]{display:none}#toast{position:fixed;bottom:28px;left:calc(50% + 112px);transform:translateX(-50%);background:var(--green);color:white;box-shadow:0 8px 30px #1a302d30;border-radius:10px;padding:14px 22px;font-size:14px;line-height:1.5;max-width:min(640px,85vw);width:max-content;z-index:110}#toast.error{background:#983f2b}dialog{border:1px solid var(--line);border-radius:15px;padding:28px;background:var(--cream);color:var(--ink);max-width:min(850px,95vw);max-height:92vh;width:580px;box-shadow:0 20px 80px #142e3433}dialog::backdrop{background:#132a2377;backdrop-filter:blur(3px)}dialog h2{font-size:23px}dialog p{font-size:14px}dialog:has(.labels),dialog:has(.import-rows){width:850px}dialog>.actions,dialog form>.actions{margin-top:24px}details{border-bottom:1px solid var(--line);padding:15px 0;font-size:13px}summary{cursor:pointer;font-weight:650;line-height:1.6}.import-rows{max-height:54vh;overflow:auto;padding-right:8px}.check{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.6;margin:16px 0}.check>span:first-child{margin:0}.import-diff{margin:20px 0}.import-diff .check{margin-bottom:8px}.diff-values{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:12px;font-weight:400}.diff-values>span{white-space:pre-wrap;overflow-wrap:anywhere;background:#fffefa;border:1px solid var(--line);border-radius:7px;padding:12px;max-height:180px;overflow:auto}.diff-values small{display:block;font-size:9px;letter-spacing:1px;color:var(--muted);margin-bottom:8px}.labels{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}.label{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #aaa;background:#fff;color:#000;border-radius:4px;text-align:center;padding:7px;break-inside:avoid;page-break-inside:avoid;overflow:hidden}.label-qr{width:36mm;height:36mm;flex-shrink:0}.label-qr svg{width:100%;height:100%;display:block}.label strong{font-size:13px;letter-spacing:.8px;margin:3px 0 5px}.label>span{font-size:10px;line-height:1.3;max-width:100%;overflow-wrap:anywhere;display:block;height:28px;overflow:hidden}[hidden]{display:none!important}:focus-visible{outline:3px solid #c68f34;outline-offset:3px}
@media(min-width:1550px){.product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1200px){.sidebar{width:190px;padding:20px 13px}main#main{margin-left:190px;padding:30px 26px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.filters{grid-template-columns:repeat(4,1fr)}.filters .search{grid-column:1/-1}.editor{grid-template-columns:.8fr 1.2fr}.form-grid{gap:16px}.page-title{align-items:start}.page-title>.actions{justify-content:flex-end}.location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qr-panel{gap:12px}.qr-panel button{padding:9px;font-size:12px}#toast{left:calc(50% + 95px)}}
@media(max-width:900px){.sidebar{width:164px;padding:20px 10px}.sidebar nav a{padding:12px 9px;gap:9px;font-size:12px}.sidebar nav a span{font-size:20px}.private-label{font-size:8px;letter-spacing:1px}main#main{margin-left:164px;padding:25px 22px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card-photo{height:225px}.detail-layout,.editor{grid-template-columns:1fr;gap:22px}.gallery-main{height:470px}.photo-editor{grid-template-columns:repeat(3,minmax(0,1fr))}.organize-layout{grid-template-columns:1fr}.settings-grid{gap:18px;grid-template-columns:1fr}.settings-grid .wide{grid-column:auto}.page-title{gap:12px;flex-wrap:wrap}.page-title>.actions{justify-content:start}.filters{grid-template-columns:repeat(2,1fr)}.location-grid{grid-template-columns:1fr}.camera-box{max-height:440px}.panel{padding:22px}#toast{left:calc(50% + 82px)}}
@media(max-width:600px){.sidebar{display:none}main#main{margin-left:0;padding:25px 16px 108px}.mobile-nav{display:flex;align-items:stretch;justify-content:space-around;position:fixed;inset:auto 0 0;z-index:20;background:#f9f5e9ed;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:8px 4px calc(8px + env(safe-area-inset-bottom))}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-decoration:none;font-size:10px;color:var(--muted);border-radius:8px;min-width:50px;padding:4px 6px}.mobile-nav a span{font-size:25px;line-height:1}.mobile-nav a.active{background:var(--green-light);color:var(--green)}.page-title{margin-bottom:22px}.page-title h1{font-size:29px}.page-title .eyebrow{font-size:9px}.page-title p{font-size:12px}.page-title>.actions{width:100%}.page-title>.actions button,.page-title>.actions .button{font-size:12px;min-height:42px;padding:10px 13px}.filters{gap:11px}.filters input,.filters select{font-size:12px}.list-bar{font-size:11px;gap:8px;align-items:flex-start}.list-bar .actions{justify-content:flex-end;gap:0}.list-bar button{font-size:10px;padding:8px}.product-grid{gap:12px}.card-photo{height:200px;padding:6px}.card-content{padding:11px}.card-meta{align-items:center;flex-wrap:wrap;gap:4px}.card-meta span{font-size:9px}.card-meta strong{font-size:15px}.card-title{font-size:12px;line-height:1.5;min-height:36px}.card-size,.location{font-size:10px}.card-size{margin:7px 0 10px}.product-card{border-radius:10px}.stock-tabs{margin-bottom:18px}.stock-tabs button{font-size:13px;padding:11px 15px}.pagination{gap:12px;font-size:11px}.pagination button{font-size:12px;padding:9px 12px}.detail-layout{gap:22px}.gallery-main{height:430px;max-height:65vh}.detail-info .actions button{font-size:12px}.qr-panel{flex-wrap:wrap}.qr{width:120px}.qr-panel>div:nth-child(2){flex:1;min-width:140px}.form-grid{grid-template-columns:1fr}.form-grid>.wide{grid-column:auto}.editor .panel{padding:18px}.photo-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-edit img{height:150px}.save-bar{flex-wrap:wrap}.save-bar button{width:100%}.save-bar p{font-size:11px}.settings-grid .panel{padding:20px}.install-help{grid-template-columns:1fr;gap:10px}.organize-layout{gap:20px}.destination{padding:20px}.destination h2{font-size:21px}.camera-box{aspect-ratio:1.15}.scan-result img{height:240px}.auth{margin:2vh auto;padding:24px}.auth>img{max-width:290px;margin-bottom:24px}.auth h1{font-size:26px}#toast{left:50%;bottom:100px;max-width:92vw;font-size:13px;padding:12px 16px}dialog{padding:21px;max-width:calc(100vw - 20px);max-height:89vh}.labels{grid-template-columns:repeat(2,1fr);gap:7px}.label-qr{width:32mm;height:32mm}.diff-values{grid-template-columns:1fr}.label strong{font-size:11px}.label>span{font-size:9px}.panel h2{font-size:19px}.offline{font-size:12px}.select-label{top:7px;left:7px}}
@media(max-width:370px){.card-photo{height:170px}.card-content{padding:9px}.card-meta span{font-size:8px}.labels{grid-template-columns:1fr}}
@media print{@page{size:A4;margin:10mm}html,body{background:#fff;margin:0;padding:0}body>*{display:none!important}#dialog{display:block!important;position:static!important;max-width:none;width:auto;max-height:none;height:auto;overflow:visible;padding:0;margin:0;border:0;box-shadow:none;background:white}#dialog>*:not(#labels){display:none!important}#dialog::backdrop{display:none}#labels{display:grid!important;grid-template-columns:repeat(3,60mm);grid-auto-rows:65mm;gap:4mm;margin:0;padding:0;overflow:visible}.label{border:1px dashed #bbb;border-radius:0;width:60mm;height:65mm;padding:2mm;break-inside:avoid}.label-qr{width:36mm;height:36mm}.label strong{font-size:11pt}.label>span{font-size:8pt;height:9mm;width:54mm;color:#000}#toast{display:none!important}}
/* v2: access management, deletion and product photos on printed labels. */
.sold-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:17px}.sold-tools:empty{display:none}.device-header{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}.device-header>div{flex:1;min-width:240px}.device-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-top:1px solid var(--line)}.device-card p{margin:10px 0 0}.remember-choice{align-items:center}.remember-choice>span{margin:0}.label-visual{display:flex;align-items:center;justify-content:center;gap:2mm;width:100%}.label-photo,.label-no-photo{width:18mm;height:35mm;object-fit:contain;flex-shrink:0;background:#fff}.label-no-photo{font-size:8px;display:flex;align-items:center;justify-content:center}.label-visual .label-qr{width:36mm;height:36mm}.label{min-height:65mm}
@media(max-width:600px){.device-card{align-items:flex-start;flex-direction:column;gap:12px}.label-visual{gap:1mm}.label-visual .label-qr{width:66%;height:auto;aspect-ratio:1}.label-photo,.label-no-photo{width:30%;height:29mm}}
@media print{.label-visual{gap:1mm;width:56mm;height:36mm}.label-visual .label-qr{width:36mm;height:36mm}.label-photo,.label-no-photo{width:18mm;height:35mm;object-fit:contain}.label{height:65mm;min-height:65mm}.label-photo{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* v2.1: prevent automatic focus zoom on phones and tablets, including landscape
   touch devices. Keep pinch zoom and the default accessible viewport intact. */
@media screen and (max-width: 1024px), screen and (any-pointer: coarse) {
 input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
 select,
 textarea {
  font-size: 16px !important;
 }
}
