:root{--ink:#171d30;--muted:#8390a4;--line:#e9edf4;--paper:#f7f8fc;--white:#fff;--blue:#6265f5;--dark:#101729;--shadow:0 10px 32px rgba(28,36,62,.055);--radius:21px;color-scheme:light}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;line-height:1.45;min-height:100vh;margin:0;-webkit-tap-highlight-color:transparent}
button,input,textarea,select{font:inherit}button{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(98,101,245,.35);outline-offset:2px}
svg.lucide{width:20px;height:20px;stroke-width:2;flex-shrink:0}
.app-shell{min-height:100vh;display:flex}
.desktop-sidebar{display:none}
.app-content{min-width:0;flex:1;position:relative}
.app-header{height:78px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 22px;background:#fff;border-bottom:1px solid #edf0f6;position:sticky;top:0;z-index:12}
.mobile-logo{display:flex;align-items:center;gap:9px;color:#1e2639;font-weight:820;letter-spacing:-.7px;font-size:23px}
.brand-symbol{height:36px;width:36px;display:inline-grid;place-items:center;background:var(--blue);color:#fff;border-radius:11px;box-shadow:0 6px 16px rgba(98,101,245,.22);flex-shrink:0}
.brand-symbol svg{height:21px;width:21px;stroke-width:2.5}
.brand-dot{color:var(--blue)}
.header-title{display:none;font-size:13px;font-weight:670;color:var(--muted)}
.header-actions{display:flex;align-items:center;gap:8px}
.icon-button{width:39px;height:39px;display:grid;place-items:center;border:1px solid var(--line);background:#fff;border-radius:13px;color:#626c82}
.icon-button svg{width:18px;height:18px}
.icon-button:hover,.icon-button:focus-visible{color:var(--blue);border-color:#c4c7ff}
.main-content{max-width:1160px;margin:0 auto;padding:26px 20px 125px;min-height:calc(100vh - 78px)}
.hero{border-radius:26px;background:radial-gradient(circle at 80% 15%,rgba(124,131,245,.5),transparent 33%),linear-gradient(110deg,#151c36 0%,#242759 58%,#4448a1 100%);color:white;min-height:228px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;padding:30px 29px;isolation:isolate}
.hero:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(255,255,255,.12);border-radius:100%;right:-124px;top:-134px;box-shadow:0 0 0 40px rgba(255,255,255,.018),0 0 0 85px rgba(255,255,255,.022);pointer-events:none}
.hero-content{position:relative;z-index:2;max-width:480px}
.hero-kicker{font-size:10px;letter-spacing:2.4px;font-weight:800;color:#b5b8fc;margin-bottom:12px;display:flex;align-items:center;gap:8px}
.hero-kicker:before{content:"";width:6px;height:6px;border-radius:50%;background:#87e2d4}
.hero h1{letter-spacing:-1.1px;font-weight:820;line-height:1.13;font-size:clamp(25px,4vw,38px);margin:0 0 12px}
.hero p{margin:0;color:#c5c7e1;font-size:13px;max-width:320px;line-height:1.6}
.hero-buttons{display:flex;gap:9px;align-items:center;margin-top:23px;flex-wrap:wrap}
.ks-primary{background:var(--blue)!important;color:#fff!important;border:1px solid var(--blue)!important;border-radius:12px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:9px;font-weight:730!important;font-size:13px!important;padding:12px 17px!important;box-shadow:0 5px 14px rgba(98,101,245,.16);min-height:45px}
.ks-primary:hover{background:#5052db!important;border-color:#5052db!important}
.ks-primary svg{height:17px;width:17px}
.hero .ks-primary{background:#fff!important;color:#272d53!important;border-color:white!important;box-shadow:0 8px 20px #090c2d35}
.hero .ks-primary:hover{background:#f1f2ff!important}
.hero-secondary{border:1px solid #ffffff48;background:#ffffff12;color:#fff;padding:11px 16px;border-radius:12px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:7px;min-height:45px}
.hero-secondary svg{width:17px;height:17px}
.hero-secondary:hover{background:#ffffff24}
.hero-graphic{display:none;position:relative;z-index:1;align-items:center;justify-content:center;width:265px;height:185px;flex:none;transform:rotate(8deg)}
.hero-graphic .mockcard{width:173px;height:154px;background:linear-gradient(150deg,#fff,#ededff);border-radius:17px;padding:17px;box-shadow:0 16px 36px #05082a48;display:flex;flex-direction:column;justify-content:space-between;transform:translateY(5px)}
.mockcard-top{display:flex;align-items:center;justify-content:space-between;color:#8a8fad;font-size:9px;letter-spacing:1px;font-weight:750}
.mockcard-top span:first-child{width:26px;height:26px;border-radius:8px;background:#e9e8ff;display:grid;place-items:center;color:#6865ec}
.mockcard-top svg{width:14px;height:14px}
.mock-bars{height:73px;display:flex;gap:2px;align-items:stretch;justify-content:center;padding:7px 1px}
.mock-bars span{background:#202743;min-width:2px;border-radius:1px}
.mock-bars span:nth-child(5n){background:#555de8}
.mockcard-bottom{color:#a5aabd;font-size:9px;font-weight:800;letter-spacing:2px;text-align:center}
.hero-floating-icon{position:absolute;border-radius:12px;width:47px;height:47px;display:grid;place-items:center;box-shadow:0 8px 20px #0a0f3b45;color:#242352;background:#b8fff0;left:10px;bottom:5px;transform:rotate(-13deg)}
.hero-floating-icon svg{height:24px;width:24px}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin:17px 0 31px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px 13px;display:flex;align-items:center;gap:11px;min-width:0}
.stat-icon{height:39px;width:39px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:#f0efff;color:#6c6bee}
.stat-icon.mint{background:#e5f9f4;color:#05a88a}.stat-icon.amber{background:#fff4e5;color:#e6a02e}
.stat-icon svg{height:19px;width:19px}
.stat-data{min-width:0}.stat-value{font-size:21px;line-height:1;font-weight:820;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
.stat-label{font-size:10px;letter-spacing:.15px;color:#8b95a5;font-weight:670;margin-top:5px;white-space:nowrap}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:25px 0 15px}
.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:850;color:#888ea5;margin-bottom:4px}
.section-title{font-size:21px;font-weight:800;letter-spacing:-.65px;margin:0}
.section-subtitle{font-size:12px;color:var(--muted);margin-top:4px}
.add-link{background:#fff;border:1px solid #e5e9f0;border-radius:11px;padding:10px 12px;font-size:12px;color:#4d4fe5;display:flex;align-items:center;gap:7px;font-weight:790;white-space:nowrap}
.add-link svg{width:16px;height:16px}.add-link:hover{background:#efefff}
.bag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bag-card{min-width:0;display:flex;flex-direction:column;justify-content:space-between;text-align:left;border:1px solid #eaedf4;background:white;border-radius:21px;padding:16px;min-height:187px;position:relative;box-shadow:0 4px 19px #171d3005;transition:transform .18s,box-shadow .18s,border-color .18s;cursor:pointer}
.bag-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#d8dbfb}
.bag-top{display:flex;align-items:start;justify-content:space-between;gap:10px}
.bag-symbol{width:47px;height:47px;border-radius:15px;display:grid;place-items:center;background:var(--bag-bg);color:var(--bag);position:relative}
.bag-symbol svg{height:23px;width:23px;stroke-width:2.1}
.bag-more{height:33px;width:33px;border-radius:10px;display:grid;place-items:center;background:#f7f8fb;color:#96a0b2;border:0;flex-shrink:0}
.bag-more svg{width:18px;height:18px}.bag-more:hover{color:var(--blue);background:#f0efff}
.bag-details{margin-top:18px;min-width:0}.bag-name{font-size:15px;font-weight:800;letter-spacing:-.25px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.bag-meta{font-size:12px;color:#94a0ae;margin-top:4px}.bag-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:15px;color:var(--bag)}
.bag-bottom svg{width:17px;height:17px}.bag-tiny-indicator{width:23px;height:4px;border-radius:10px;background:var(--bag-bg);display:block}
.create-card{border:1.5px dashed #d6daf0;background:linear-gradient(140deg,#f9f9ff,#fbfcff);align-items:center;justify-content:center;text-align:center;gap:10px;box-shadow:none}
.create-card:hover{background:#f5f4ff;border-color:#a7a9eb}.create-plus{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:#eeedff;color:var(--blue)}
.create-plus svg{width:22px;height:22px}.create-title{font-size:14px;font-weight:800;margin-top:4px}.create-hint{font-size:11px;color:#9ca4b9;line-height:1.45}
.recent-section{margin-top:31px}.recent-list{display:flex;flex-direction:column;gap:10px}
.code-row{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e9ecf3;border-radius:16px;padding:13px 14px;width:100%;text-align:left;cursor:pointer;min-width:0;transition:background .15s,border-color .15s}
.code-row:hover{border-color:#d8d9fc;background:#fefeff}
.code-thumbnail{height:46px;width:46px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;color:#656af0;background:#eeefff}
.code-thumbnail.barcode{background:#e8f8f4;color:#0aaa8d}.code-thumbnail svg{width:24px;height:24px}
.code-row-text{flex:1;min-width:0}.code-row-name{font-weight:780;color:#263048;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.code-row-value{color:#96a0af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;font-size:11px;max-width:100%}
.code-row-side{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex-shrink:0}
.code-pill{font-size:9px;letter-spacing:.25px;font-weight:810;border-radius:7px;padding:4px 7px;color:#676ae9;background:#efefff}
.code-pill.barcode{color:#079e88;background:#e6f7f3}
.code-arrow{color:#b6bfca}.code-arrow svg{width:15px;height:15px}
.page-head{margin-bottom:23px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.page-kicker{font-size:10px;color:var(--blue);letter-spacing:1.7px;font-weight:840;margin-bottom:8px}
.page-title{font-size:clamp(27px,4vw,33px);font-weight:850;letter-spacing:-1.05px;line-height:1.18;margin:0}
.page-subtitle{font-size:13px;color:#8b96a7;line-height:1.6;margin:8px 0 0}
.search-box{height:48px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;gap:11px;border-radius:13px;padding:0 15px;margin:18px 0 14px}
.search-box svg{color:#a2adbd;width:19px;height:19px}.search-box input{border:none;outline:none;flex:1;min-width:0;background:transparent;color:var(--ink);font-size:16px}
.search-box input::placeholder{color:#a5adba}.search-box input:focus-visible{outline:none}
.filter-row{display:flex;gap:8px;overflow-x:auto;padding:2px 0 13px;scrollbar-width:none}.filter-row::-webkit-scrollbar{display:none}
.filter-chip{font-size:12px;white-space:nowrap;background:#fff;border:1px solid #e7eaf2;border-radius:25px;padding:8px 15px;color:#7e8a9b;font-weight:700}
.filter-chip.selected{color:#fff;background:var(--dark);border-color:var(--dark)}
.back-button{background:transparent;border:0;display:inline-flex;align-items:center;gap:8px;color:#8b95a8;font-weight:730;font-size:12px;padding:8px 0;margin:0 0 13px}
.back-button svg{width:16px;height:16px}.bag-page-banner{border-radius:22px;display:flex;gap:16px;align-items:center;padding:19px;background:var(--bag-bg);margin-bottom:21px}
.bag-page-banner .bag-symbol{height:58px;width:58px;background:white;color:var(--bag);border-radius:19px}
.bag-page-banner-title{font-size:20px;font-weight:850;letter-spacing:-.5px}.bag-page-banner-count{font-size:12px;color:#6b7790;margin-top:3px}
.bag-page-banner .bag-banner-edit{margin-left:auto;background:white;border:none;display:grid;place-items:center;border-radius:12px;color:#78839c;width:39px;height:39px;flex-shrink:0}
.bag-banner-edit svg{height:17px;width:17px}
.bag-slideshow-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #e1e5f0;border-radius:12px;background:#fff;color:var(--bag,var(--blue));flex-shrink:0}
.bag-slideshow-button svg{width:20px;height:20px}.bag-slideshow-button:hover{background:#f5f5ff}.bag-slideshow-button:disabled{opacity:.4;cursor:default}
.bag-banner-actions{display:flex;gap:6px;margin-left:auto;flex-shrink:0;align-items:center}
.bag-page-banner>div:not(.bag-banner-actions){min-width:0;overflow-wrap:anywhere}
.bag-page-banner .bag-symbol{flex-shrink:0}.bag-page-banner{flex-wrap:wrap}
.empty-state{background:#fff;border-radius:20px;padding:40px 21px;text-align:center;border:1px dashed #e0e5ee;display:flex;flex-direction:column;align-items:center}
.empty-state-icon{width:69px;height:69px;display:grid;place-items:center;background:#f0efff;color:var(--blue);border-radius:20px;margin-bottom:18px}
.empty-state-icon svg{width:30px;height:30px}.empty-state h3{font-size:18px;font-weight:800;letter-spacing:-.5px;margin:0 0 7px}
.empty-state p{font-size:12px;line-height:1.65;color:#97a2b3;max-width:270px;margin-bottom:19px}
.secondary-hint{font-size:12px;line-height:1.6;color:#9aa3b0;margin-top:14px}
.settings-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:24px}
.settings-card{border:1px solid var(--line);border-radius:19px;background:#fff;padding:20px}
.settings-card-header{display:flex;gap:13px;align-items:start;margin-bottom:14px}.setting-icon{height:41px;width:41px;background:#f0efff;color:var(--blue);border-radius:12px;display:grid;place-items:center;flex-shrink:0}
.setting-icon svg{width:20px;height:20px}.settings-card h3{font-size:15px;font-weight:830;margin:0 0 4px}.settings-card p{font-size:12px;color:#8e99aa;line-height:1.65;margin:0}
.ks-outline{border:1px solid #e2e6ef!important;background:#fff!important;border-radius:12px!important;font-weight:730!important;font-size:12px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px!important;color:#555f75!important}
.ks-outline:hover{background:#f7f8fd!important;border-color:#d1d3fa!important}.ks-outline svg{width:16px;height:16px}
.settings-controls{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.settings-stats{color:#8a95a7;font-size:11px;margin-top:12px}
.danger-outline{color:#d85366!important}.danger-outline:hover{background:#fff4f6!important;border-color:#f0bbc4!important}
.install-steps{display:flex;flex-direction:column;gap:10px;margin-top:18px}.install-step{display:flex;gap:11px;align-items:center;font-size:12px;color:#6f7a8b}
.step-num{height:26px;width:26px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:#eeefff;color:var(--blue);font-weight:820;font-size:11px}
.ks-dialog{border:0;box-shadow:0 22px 90px #0e183152;border-radius:24px;padding:0;width:min(95vw,500px);max-height:min(92dvh,900px);background:#fff;color:var(--ink);overflow-y:auto;overscroll-behavior:contain}
.ks-dialog::backdrop{background:rgba(13,19,35,.57);backdrop-filter:blur(4px)}
.small-dialog{width:min(94vw,440px)}.display-dialog{width:min(95vw,460px)}.scan-dialog{width:min(95vw,520px)}
.dialog-content{padding:25px 25px 23px}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}
.dialog-eyebrow{font-size:10px;letter-spacing:1.55px;font-weight:820;color:#8a8ef1}
.dialog-x{display:grid;place-items:center;width:31px;height:31px;border:0;border-radius:10px;background:#f6f7fb;color:#8b96a8}
.dialog-x svg{width:18px;height:18px}.dialog-title{font-size:25px;letter-spacing:-.9px;font-weight:850;margin:0 0 5px}.dialog-intro{font-size:12px;color:#96a0b0;margin:0 0 23px}
.form-label{font-size:12px;font-weight:760;color:#566073;margin-bottom:8px;display:block}.color-label{margin-top:19px}
.field-hint{font-weight:520;color:#a6aebd;margin-left:3px}.ks-input{border:1px solid #e5e9f0!important;min-height:45px;border-radius:11px!important;font-size:16px!important;color:#263047!important;padding:11px 13px!important;box-shadow:none!important}
.ks-input:focus{border-color:#999af6!important;box-shadow:0 0 0 3px #686af21d!important}.ks-input::placeholder{color:#b0b7c3!important}
.ks-textarea{resize:vertical;min-height:77px}.field-footnote{display:block;font-size:10px;color:#9da6b4;margin-top:7px;line-height:1.55}
.form-section{margin-top:16px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-row>div{min-width:0}
.color-options{display:flex;gap:11px;flex-wrap:wrap}.color-button{height:37px;width:37px;border-radius:12px;background:var(--swatch);border:3px solid transparent;box-shadow:inset 0 0 0 1px #00000009;display:grid;place-items:center;color:#fff}
.color-button[aria-pressed="true"]{outline:2px solid var(--swatch);outline-offset:3px}.color-button svg{width:17px;height:17px;stroke-width:3}
.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:28px}.ks-secondary{border-radius:12px!important;color:#7f8796!important;background:#f3f5f9!important;font-size:12px!important;font-weight:750!important;padding:11px 15px!important;min-height:45px}
.camera-shell{border-radius:17px;background:#101729;aspect-ratio:1.23;position:relative;overflow:hidden;isolation:isolate}
/* The decoder scans native video pixels (not this CSS-sized preview).
   The centered guide is only a visual positioning aid. */
#camera-reader{width:100%;height:100%;position:absolute;inset:0;z-index:1;overflow:hidden}
#camera-reader video{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important}
#camera-reader canvas{display:none!important}#camera-reader img{max-width:100%}
#camera-reader__dashboard{display:none!important}
.camera-guide{position:absolute;inset:0;z-index:3;display:none;place-items:center;pointer-events:none}
.camera-shell.is-live .camera-guide{display:grid}
.camera-target{position:relative;width:min(88%,410px);height: min(38%,124px);border:1px solid rgba(255,255,255,.38);border-radius:15px;box-shadow:0 0 0 200vmax rgba(10,15,29,.24)}
.camera-shell.is-qr-mode .camera-target{width:min(64%,215px);height:auto;aspect-ratio:1}
.scan-mode-tabs{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:6px;background:#f1f3fa;border-radius:12px;padding:5px;margin:0 0 13px}
.scan-mode-btn{min-height:39px;border:0;background:transparent;color:#78839a;border-radius:9px;font-size:12px;font-weight:740;display:flex;align-items:center;justify-content:center;gap:6px;padding:6px}
.scan-mode-btn.active{background:#fff;color:#5455c8;box-shadow:0 2px 9px #20294f14}
.scan-mode-btn svg{height:15px;width:15px}
.scan-live-status{text-align:center;font-size:11px;color:#657188;margin:9px 0 12px;min-height:17px}
.scan-camera-row,.scan-zoom-row{display:flex;align-items:center;gap:12px;margin:9px 0 12px;font-size:12px;color:#5e677c}
.scan-camera-row label{white-space:nowrap;font-weight:700}
.scan-camera-row select{min-width:0;max-width:100%;flex:1;min-height:39px!important;padding:6px 12px!important}
.scan-zoom-row label{white-space:nowrap;font-weight:700}
.scan-zoom-row input{flex:1;width:50%;accent-color:#6865ef;min-height:34px}
.scan-zoom-row strong{color:#5a5cca;margin-left:3px}
.scan-torch{width:100%;margin:2px 0 10px}
/* [hidden] must win over the scanner utility display rules. */
.scan-camera-row[hidden],.scan-zoom-row[hidden],.scan-torch[hidden]{display:none!important}
.camera-corner{position:absolute;width:30px;height:30px;border-color:#fff;border-style:solid;border-width:0;filter:drop-shadow(0 1px 2px #0005)}
.camera-corner.top-left{top:-2px;left:-2px;border-left-width:4px;border-top-width:4px;border-top-left-radius:14px}
.camera-corner.top-right{top:-2px;right:-2px;border-right-width:4px;border-top-width:4px;border-top-right-radius:14px}
.camera-corner.bottom-left{bottom:-2px;left:-2px;border-left-width:4px;border-bottom-width:4px;border-bottom-left-radius:14px}
.camera-corner.bottom-right{bottom:-2px;right:-2px;border-right-width:4px;border-bottom-width:4px;border-bottom-right-radius:14px}
.camera-placeholder{display:flex;align-items:center;flex-direction:column;justify-content:center;color:#f0f2ff;position:absolute;inset:0;gap:13px;z-index:2;font-size:12px}
.camera-placeholder-icon{height:71px;width:71px;background:#ffffff18;display:grid;place-items:center;border:1px solid #ffffff30;border-radius:19px}
.camera-placeholder-icon svg{width:35px;height:35px;color:#b9bbff}
.camera-shell.is-live .camera-placeholder{display:none}.scanner-hint{display:flex;align-items:center;gap:8px;color:#97a2b0;font-size:11px;margin:12px 1px 19px}.scanner-hint svg{width:14px;height:14px}
.scan-start{min-height:49px}.split-label{display:flex;align-items:center;gap:13px;justify-content:center;color:#a7afbe;font-size:11px;margin:18px 0}
.split-label:before,.split-label:after{content:"";height:1px;background:#e9edf3;flex:1}.scan-alternatives{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.display-subtitle{font-size:12px;color:#96a1b1;margin-top:1px;margin-bottom:20px}
.slideshow-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.slideshow-controls[hidden]{display:none}.slideshow-controls .btn{width:48px;min-height:44px;padding:10px}
.slideshow-controls>span{font-size:13px;font-weight:700;color:#4a5366}
.code-artwork{background:#fff;min-height:265px;padding:28px 18px;border:1px solid #e9ecf4;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:17px;box-shadow:0 6px 20px #11172e05}
.code-artwork-canvas{width:100%;display:grid;place-items:center;overflow:hidden}.code-artwork-canvas canvas{max-width:100%;height:auto!important;image-rendering:pixelated}
.code-artwork-canvas svg{max-width:100%;height:auto;max-height:180px}.code-artwork-fallback{font-size:13px;color:#8a94a6;text-align:center}
.code-note{font-size:11px;color:#8f8ba4;min-height:12px;margin:12px 2px;text-align:center}
.code-value-block{background:#f7f8fc;border-radius:12px;padding:12px 13px;margin:15px 0}
.code-value-block>span{font-size:9px;font-weight:820;letter-spacing:1.5px;color:#9ea7b7;display:block;margin-bottom:7px}.mono-value{font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#4a5366;overflow-wrap:anywhere;max-height:95px;overflow:auto}
.code-artwork .code-value-block{background:transparent;width:100%;min-width:0;margin:18px 0 0;padding:0;text-align:center}
.code-artwork .code-value-block>span{color:#657086;font-size:10px}
.code-artwork .mono-value{font-size:clamp(16px,4.5vw,20px);font-weight:650;line-height:1.5;color:#171d30;user-select:text}
.display-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.display-action-grid .ks-outline{min-height:46px}
.muted-actions{margin-top:5px}.ks-text-button{display:inline-flex!important;gap:7px;align-items:center;justify-content:center;color:#78869a!important;font-size:12px!important;font-weight:720!important;border:0!important;padding:13px!important}
.ks-text-button svg{width:16px;height:16px}.ks-text-button.destructive{color:#e47585!important}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:18;min-height:calc(72px + env(safe-area-inset-bottom));padding:8px 6px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;align-items:center;background:#fff;border-top:1px solid #e9edf3;box-shadow:0 -4px 24px #1f29450c}
.bottom-link{border:none;background:transparent;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#a2acb9;font-size:10px;font-weight:710;padding:5px 0;min-height:48px}
.bottom-link svg{height:21px;width:21px}.bottom-link.active{color:var(--blue)}.bottom-scan{width:51px;height:51px;border:0;border-radius:17px;display:grid;place-items:center;justify-self:center;color:#fff;background:var(--blue);box-shadow:0 6px 19px #6265f540;transform:translateY(-5px)}.bottom-scan svg{height:25px;width:25px}
.ks-toast{position:fixed;z-index:100;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;border-radius:12px;background:#1e2740;color:#fff;font-size:12px;font-weight:690;padding:12px 17px;box-shadow:0 8px 30px #10172940;max-width:min(90vw,360px);text-align:center}
.ks-toast.visible{opacity:1;transform:translate(-50%,0)}.ks-toast.error{background:#b84759}.noscript{position:fixed;inset:0;background:white;z-index:1000;display:grid;place-items:center;padding:20px;text-align:center}
@media(min-width:600px){.app-header{padding:0 34px}.header-title{display:block}.main-content{padding:33px 34px 120px}.hero{padding:34px 38px;min-height:254px}.hero-graphic{display:flex}.bag-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.bag-card{min-height:195px;padding:19px}.stats-grid{gap:15px}.stat-card{padding:20px}.stat-value{font-size:26px}.stat-label{font-size:11px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.desktop-sidebar{width:236px;flex:none;background:#fff;border-right:1px solid #edf0f6;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;padding:31px 17px 25px}.sidebar-brand{display:flex;align-items:center;gap:11px;margin:0 7px 55px;color:#1a2234;text-decoration:none;font-size:25px;font-weight:850;letter-spacing:-.8px}.sidebar-brand .brand-symbol{height:39px;width:39px;border-radius:12px}.sidebar-caption{font-size:10px;letter-spacing:1.8px;font-weight:850;color:#a8b0bd;margin:0 14px 14px}.side-nav{display:flex;flex-direction:column;gap:7px}.side-link{height:46px;display:flex;align-items:center;gap:13px;border:none;border-radius:12px;background:transparent;padding:0 15px;color:#8792a5;font-size:13px;font-weight:730;text-align:left}.side-link svg{width:19px;height:19px}.side-link.active{color:#5c5df0;background:#efefff}.side-link:hover{background:#f5f5ff}.sidebar-bottom{margin:auto 10px 0;border-top:1px solid #eceff5;padding:22px 0 0;color:#708197;font-size:10px;font-weight:750}.sidebar-bottom-sub{display:block;margin:7px 0 0 13px;font-size:10px;color:#a8b0bf;font-weight:520}.privacy-indicator{display:inline-block;height:6px;width:6px;border-radius:100%;background:#2cc8a8;margin-right:5px;vertical-align:middle}.mobile-logo,.bottom-nav{display:none}.app-header{height:76px;padding:0 45px}.main-content{padding:35px 45px 80px}.bag-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-graphic{width:270px}.stat-card{padding:19px 22px}.bag-card{min-height:198px}.ks-toast{bottom:25px}}
@media(min-width:1250px){.bag-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero{min-height:254px}}
@media(max-width:380px){.main-content{padding:20px 14px 115px}.hero{padding:25px 22px}.hero h1{font-size:26px}.hero-buttons{gap:8px}.hero .ks-primary,.hero-secondary{font-size:11px!important;padding:10px!important}.stat-card{padding:12px 9px;gap:7px}.stat-icon{width:30px;height:30px;border-radius:10px}.stat-icon svg{height:15px;width:15px}.stat-value{font-size:18px}.stat-label{font-size:9px}.bag-grid{gap:9px}.bag-card{padding:13px;min-height:175px}.dialog-content{padding:20px 18px}.scan-alternatives .ks-outline{font-size:11px!important;padding:8px 6px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* v3 — optional online grocery enrichment, retaining the existing PWA design. */
.product-fields[hidden],.display-product[hidden],[hidden].product-thumb-fallback{display:none!important}
.product-fields{border:1px solid #e8eafb;background:#fbfbff;border-radius:15px;padding:15px 15px 12px;margin-top:17px}
.product-lookup-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.product-lookup-header h3{font-size:14px;font-weight:830;margin:4px 0 0;color:#252c44}
.product-lookup-kicker{color:#7372c6;font-size:9px;letter-spacing:1.2px;font-weight:850}
.product-lookup-header .ks-outline{font-size:11px!important;padding:7px 10px!important;white-space:nowrap;min-height:38px}
.product-lookup-header button:disabled{opacity:.5}
.product-lookup-status{font-size:11px;color:#7a8698;line-height:1.5;margin-bottom:12px;min-height:15px}
.product-lookup-status[data-status="found"]{color:#158b73}.product-lookup-status[data-status="error"]{color:#b65366}.product-lookup-status[data-status="loading"]{color:#6264df}
.product-edit-grid{display:grid;grid-template-columns:102px minmax(0,1fr);gap:13px;align-items:stretch}
.product-image-preview{height:148px;border-radius:13px;border:1px solid #e8eaf1;background:#fff;display:grid;place-items:center;overflow:hidden}
.product-image-preview img{width:100%;height:100%;object-fit:contain;padding:7px}
.product-image-preview img[hidden],#product-preview-placeholder[hidden]{display:none!important}
.product-image-preview svg{height:28px;width:28px;color:#9ca6b7}
.product-edit-fields{display:flex;flex-direction:column;min-width:0;gap:0}
.product-edit-fields .form-label{margin-bottom:5px}.product-edit-fields .ks-input{min-height:41px!important}
.product-edit-fields #product-brand{margin-bottom:12px}
.product-image-url-label{margin:13px 0 6px}.product-source{font-size:10px;color:#8792a4;margin-top:8px}
.product-source a,.product-credit a{display:inline-flex;gap:3px;align-items:center;color:#6565d2;text-decoration:underline;text-underline-offset:2px}
.product-source svg,.product-credit svg{width:12px;height:12px}
.product-lookup-footnote{font-size:10px;color:#9ba3b2;line-height:1.6;margin:9px 0 0}
.code-thumbnail{overflow:hidden;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.code-thumbnail .product-thumb-image{display:block;box-sizing:border-box;min-height:0;min-width:0;height:100%;width:100%;object-fit:contain;object-position:center;border-radius:0;background:#fff;padding:4px}
.product-thumb-fallback{display:grid;place-items:center;width:100%;height:100%}
.display-product{display:flex;align-items:center;gap:12px;border:1px solid #eceefa;background:#fafbff;padding:10px;border-radius:13px;margin:15px 0}
.display-product-image{width:75px;height:78px;flex:none;border-radius:9px;background:#fff;border:1px solid #eceef3;padding:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;overflow:hidden;color:#8a8afa}
.display-product-image:not(:disabled){cursor:zoom-in}.display-product-image:not(:disabled):hover{border-color:var(--blue)}
.display-product-image img{width:100%;height:100%;object-fit:contain;padding:5px}
.product-image-dialog{width:min(94vw,calc(92vh - 90px),760px);width:min(94vw,calc(92dvh - 90px),760px)}
.product-image-content{padding:16px}.product-image-header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.product-image-header h2{flex:1;min-width:0;font-size:16px;font-weight:800;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-image-header .dialog-x{flex-shrink:0;width:44px;height:44px}
.product-image-stage{aspect-ratio:1/1;width:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;background:#fff;overflow:hidden;border-radius:12px}
.product-image-stage img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.product-image-stage img[hidden],#product-image-status[hidden]{display:none}
#product-image-status{font-size:14px;color:#657086;padding:16px;text-align:center;margin:0}
.display-product-copy{min-width:0}.display-product-name{font-weight:800;font-size:13px;color:#263047;line-height:1.35}
.display-product-meta{font-size:11px;color:#7b869a;margin-top:5px}.product-credit{font-size:10px;margin-top:7px}
@media(max-width:380px){.product-fields{padding:12px}.product-edit-grid{grid-template-columns:83px minmax(0,1fr);gap:10px}.product-image-preview{height:143px}}
