:root{--ink:#18271f;--muted:#6d766e;--paper:#f5f6f1;--line:#dfe4d9;--green:#d8ebbb;--accent:#c5e297;--white:#fff;--danger:#a73928;font-family:Inter,Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.55}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{border:1px solid var(--ink);background:var(--ink);color:white;border-radius:8px;padding:12px 19px;font-weight:600;cursor:pointer;display:inline-flex;gap:12px;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;min-height:46px}button:hover,.button:hover{background:#304734;text-decoration:none}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:transparent;color:var(--ink);border-color:#cfd7c8}.secondary:hover{background:#e8edde}.text-button{border:0;background:none;color:inherit;padding:6px 0;min-height:36px;font-size:13px}.text-button:hover{background:none;text-decoration:underline}.danger{color:var(--danger)}input,select,textarea{border:1px solid #ccd4c5;border-radius:7px;background:white;padding:12px 14px;width:100%;color:var(--ink);min-width:0}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #97bc6c;outline-offset:2px}input[readonly]{background:#f0f2eb}label{display:block;font-weight:600;font-size:13px;margin-bottom:7px}label span,.optional{font-weight:400;color:var(--muted);font-size:12px;margin-left:8px}.check{display:flex;align-items:center;gap:8px;white-space:nowrap;font-weight:400;margin:0}.check input,input[type=checkbox],input[type=radio]{width:17px;height:17px;accent-color:var(--ink);flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:46px;line-height:1.12;letter-spacing:-1.8px;margin-bottom:12px;font-weight:600}h2{font-size:20px;font-weight:600;letter-spacing:-.4px;margin-bottom:16px}h3{font-size:19px;line-height:1.3;letter-spacing:-.3px;margin:6px 0 10px}p{margin-bottom:16px}.muted{color:var(--muted)}.small,.hint{font-size:12px}.hint{color:var(--muted);margin:8px 0 0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--muted);margin-bottom:14px}.title-dot{color:#87ad59}.topbar{background:var(--ink);color:#fff;min-height:91px;display:flex;align-items:center;gap:46px;padding:20px max(28px,calc((100vw - 1300px)/2));}.brand{display:flex;flex-direction:column;gap:10px;width:163px;flex-shrink:0}.brand img{width:160px;filter:brightness(0) invert(1)}.brand span{font-size:8px;letter-spacing:3.3px;color:#bcc5b9}.topbar nav{display:flex;gap:26px;flex:1}.topbar nav a{font-size:13px;color:#aebcad;padding:14px 0;white-space:nowrap}.topbar nav a.active{color:#e1f1c9;border-bottom:2px solid #c5e297}.account{display:flex;align-items:center;gap:20px;font-size:12px;color:#cad4c5}.account form{margin:0}.container{max-width:1300px;padding:44px 28px 70px;margin:auto;min-height:calc(100vh - 160px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.page-heading p:last-child{margin-bottom:0}.stats{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr;background:#eaf0e1;border:1px solid #dce4d3;border-radius:10px;margin-bottom:32px;padding:24px 28px}.stats>div{display:flex;flex-direction:column;gap:3px;padding:0 24px;border-right:1px solid #ced9c3;font-size:12px;color:var(--muted)}.stats>div:first-child{padding-left:0}.stats>div:last-child{border:0;padding-right:0}.stats .stat-note{flex-direction:row;align-items:center;justify-content:flex-end;font-size:11px;gap:10px}.stat-value{font-size:32px;line-height:1.2;letter-spacing:-1px;color:var(--ink)}.status-dot{width:7px;height:7px;background:#698e40;border-radius:50%;flex-shrink:0}.inventory-tools{margin-bottom:32px}.search-form{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto auto;gap:10px}.search-form>.check{grid-column:1/-1;font-size:12px;margin-top:3px}.tool-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.tool-row form{margin:0}.quiet-link{margin-left:auto;font-size:12px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.section-heading h2{margin:0}.count{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:1px 8px;font-size:11px;vertical-align:middle;margin-left:8px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white;transition:transform .15s,box-shadow .15s}.product-card:hover{transform:translateY(-3px);box-shadow:0 8px 26px #18271f0a}.product-image{height:190px;position:relative;background:#eaece5;border-bottom:1px solid var(--line)}.product-image>a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.product-image img{width:100%;height:100%;object-fit:contain;padding:12px}.image-placeholder{font-size:58px;font-weight:600;color:#c1cbbb;letter-spacing:-5px}.image-placeholder span{font-size:38px;vertical-align:top}.select-item{position:absolute;z-index:1;left:12px;top:12px;display:flex;align-items:center;justify-content:center;background:white;border-radius:4px;padding:4px;margin:0}.badge{display:inline-flex;border:1px solid #e1e5da;background:#f2f3ee;border-radius:5px;padding:4px 8px;font-size:10px;color:#58654e;font-weight:600;white-space:nowrap}.image-badge{position:absolute;bottom:12px;left:12px;background:#ffffffeb}.badge.green{background:#dfedcc;color:#38571f;border-color:#c5dda7}.product-info{padding:19px}.description-preview{font-size:12px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:37px}.card-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0e8;padding-top:13px}.barcode-text{font-family:Consolas,'Courier New',monospace;font-size:12px;letter-spacing:.4px}.related-tag{font-size:11px;color:#497029;margin:12px 0 0}.selection-bar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:24px}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:28px;margin-bottom:24px}.empty{padding:66px 24px;text-align:center;border:1px dashed #cbd6bf;border-radius:12px;background:#ffffff66}.empty p{color:var(--muted)}.empty-symbol{font-size:38px;color:#88a66f;margin-bottom:12px}.notice{padding:16px 20px;border:1px solid #d3dcc7;border-radius:8px;background:#ecf2e2;margin-bottom:24px;font-size:13px}.notice.error{background:#fff0eb;border-color:#e4c3b8;color:#893322}.notice.success{background:#e1efcf;border-color:#bfd99e}.notice a{text-decoration:underline}.back-link{display:inline-block;color:var(--muted);font-size:12px;margin-bottom:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;gap:12px;justify-content:flex-end}.stack{display:flex;flex-direction:column;gap:12px}.stack>label{margin-bottom:-6px}.stack>.panel{margin-bottom:12px}.editor{max-width:960px}.inline{display:flex;gap:12px;align-items:center}.inline input{flex:1}.inline .small{white-space:nowrap}.photo-editor{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:24px}.photo-editor>div{width:150px}.photo-editor img{height:130px;width:150px;object-fit:contain;background:var(--paper);border-radius:7px;margin-bottom:12px}.photo-editor .check{margin:7px 0}.upload-zone{padding:30px;border:1px dashed #b9c6af;border-radius:8px;text-align:center;background:#f9faf6;display:flex;flex-direction:column;gap:8px;cursor:pointer}.upload-zone input{max-width:400px;margin:10px auto 0;background:white}.upload-zone span{margin:0}.chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.chip{padding:7px 12px;border-radius:20px;background:#e9f1dd;display:flex;gap:8px;align-items:center;font-size:12px;font-weight:400}.related-results{display:flex;flex-direction:column;gap:5px;margin-top:10px}.related-results button{justify-content:space-between;background:#f4f6ef;color:var(--ink);border:1px solid var(--line);font-size:13px;text-align:left;white-space:normal}.detail-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:26px}.photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}.photo-gallery>a:first-child{grid-column:1/-1}.photo-gallery img{width:100%;height:130px;object-fit:contain;background:#f5f6f1;border-radius:7px}.photo-gallery .primary-image{height:400px}.large-placeholder{grid-column:1/-1;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:90px;color:#bac6af;background:var(--paper);border-radius:7px}.large-placeholder span{font-size:13px;letter-spacing:0;color:var(--muted)}.large-barcode{font-size:27px;font-family:Consolas,'Courier New',monospace;letter-spacing:2px}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}hr{border:0;border-top:1px solid var(--line);margin:24px 0}dl{display:grid;grid-template-columns:90px 1fr;font-size:12px;gap:12px;margin:24px 0}dt{color:var(--muted)}dd{margin:0}.relation-link{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid var(--line)}.relation-link:last-child{border-bottom:0}.relation-link small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.history>div{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;gap:12px}.history small{color:var(--muted);text-align:right}.category-row{display:flex;gap:20px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.category-row>.inline{flex:1}.category-row:last-child{border:0}.sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.sheet-card{display:flex;gap:24px;align-items:center;margin:0}.sheet-card:hover{border-color:#9daf8e;text-decoration:none}.sheet-card h2{margin:10px 0 5px}.sheet-card p{font-size:12px;margin:6px 0}.sheet-card>span{margin-left:auto}.sheet-preview{width:95px;height:134px;background:#f5f6f1;border:1px solid #cdd7c3;box-shadow:3px 3px 0 #e8ebdf;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:9px;flex-shrink:0}.sheet-preview i{background:repeating-linear-gradient(90deg,#75836b 0px,#75836b 1px,transparent 1px,transparent 3px);border-top:3px solid #c2d6ae}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{color:var(--muted);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:1px;padding:0 14px 15px}td{padding:14px;border-top:1px solid var(--line);font-size:13px}td a{text-decoration:underline}.align-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.narrow{max-width:720px}.wide{width:100%}.footer{border-top:1px solid var(--line);padding:20px 28px;display:flex;justify-content:space-between;color:var(--muted);font-size:10px;letter-spacing:.4px}.login-main{min-height:calc(100vh - 153px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;background:radial-gradient(ellipse at 30% 20%,#e2ebd6,transparent 65%)}.login-card{width:100%;max-width:440px;background:#fff;padding:38px;border:1px solid var(--line);border-radius:12px}.login-card h1{font-size:42px}.login-card>.small{margin:22px 0 0;text-align:center}.login-mark{background:var(--ink);color:var(--green);width:52px;height:52px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:600;margin-bottom:28px}.login-mark span{font-size:20px;align-self:flex-start;margin-top:5px}.login-card .muted{font-size:13px}.login-card form{margin-top:26px}.login-card form button{margin-top:10px}.pagination{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:30px 0}.pagination a{padding:6px 12px;border:1px solid var(--line);border-radius:5px}.pagination .current{background:var(--ink);color:white}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(540px,calc(100vw - 24px));color:var(--ink)}dialog::backdrop{background:#0e1a13aa}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}.dialog-heading h2{font-size:26px}.icon-button{background:none;border:0;color:var(--ink);font-size:30px;padding:0 8px;min-height:32px}.icon-button:hover{background:var(--paper)}#scanner-video{width:100%;max-height:300px;background:#172921;border-radius:8px;margin-bottom:16px}#scan-form{margin-top:20px}#scan-result{margin-top:20px}#scan-result a{display:block;text-decoration:underline;margin-top:8px}.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}[hidden]{display:none!important}
@media(min-width:1500px){.container{padding-top:55px}.product-image{height:215px}}
@media(max-width:1100px){.topbar{gap:25px}.topbar nav{gap:16px}.account>span{display:none}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stats .stat-note{display:none}.stats{grid-template-columns:repeat(3,1fr)}.stats>div:nth-child(3){border:0}.search-form{grid-template-columns:minmax(180px,1fr) 155px auto auto}.sheet-card{gap:15px}.sheet-preview{width:75px;height:110px}}
@media(max-width:780px){h1{font-size:36px}.topbar{flex-wrap:wrap;padding:20px;gap:18px}.topbar nav{order:3;flex-basis:100%;overflow-x:auto;gap:26px}.topbar nav a{padding:8px 0}.brand{margin-right:auto}.account{margin-left:auto}.container{padding:28px 18px 45px}.page-heading{align-items:flex-start;gap:18px}.page-heading>.button,.page-heading>form button{font-size:12px;padding:10px 14px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.search-form{grid-template-columns:1fr 1fr}.search-form>input[type=search]{grid-column:1/-1}.search-form select{grid-column:1/-1}.search-form .check{margin-top:7px}.tool-row{gap:8px}.tool-row button{font-size:12px;padding:10px 12px}.quiet-link{margin-left:0}.stats{padding:20px}.stats>div{padding:0 14px;font-size:10px}.stat-value{font-size:26px}.section-heading>.small{display:none}.product-info{padding:15px}.product-image{height:165px}h3{font-size:17px}.sheet-grid{grid-template-columns:1fr}.form-grid,.detail-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.panel{padding:22px}.photo-gallery .primary-image{height:300px}.large-placeholder{min-height:260px}.detail-grid{gap:0}.selection-bar{align-items:flex-start}.selection-bar button{font-size:12px}.footer{padding:18px;gap:20px}.history>div{align-items:flex-start}.history small{max-width:45%}.category-row{gap:12px}.category-row .inline{flex-wrap:wrap}.category-row .inline input{flex-basis:100%}.align-bottom{align-items:center}.login-card{padding:30px}.login-card h1{font-size:38px}}
@media(max-width:420px){.page-heading{flex-wrap:wrap}.product-grid{gap:10px}.product-info{padding:12px}.product-image{height:145px}.product-info .small{font-size:10px}.barcode-text{font-size:10px}.stats{padding:16px 12px}.stats>div{padding:0 10px}.stats .stat-value{font-size:24px}.tool-row{align-items:stretch}.tool-row>form{flex:1}.tool-row>form button{width:100%}.large-barcode{font-size:23px}.sheet-preview{width:65px;height:94px}.sheet-card{padding:18px}.login-main{padding:25px 18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

[hidden]{display:none!important}#inline-category{padding:12px;background:var(--bg,#f4f3ed);border-radius:8px;margin-top:8px}#inline-category .inline input{min-width:0}#inline-category .inline{flex-wrap:wrap}#scanner-video{background:#111;object-fit:contain;min-height:180px}#camera-options{margin:12px 0}#manual-entry{margin-top:20px}#manual-entry summary{cursor:pointer;padding:8px 0}#scanner{max-height:90dvh;overflow:auto}#scan-result a{display:block;margin-top:12px}

.permissions{border:1px solid #d9ded8;border-radius:12px;padding:20px}.permission-option{display:flex;gap:12px;align-items:flex-start;margin:14px 0}.permission-option input{width:auto;margin-top:4px}.permission-option small{display:block;font-weight:400;line-height:1.5;margin-top:4px}.permissions legend{font-weight:700;padding:0 8px}

.category-picker{border:1px solid #d9ded8;border-radius:8px;margin:0;padding:12px;min-width:0}.category-picker legend{font-weight:600;padding:0 4px}#category-options{max-height:220px;overflow:auto;display:grid;gap:8px}#category-options .check{margin:0;padding:5px 0}.image-badge{max-width:90%;white-space:normal}

.intake-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}.intake-photos figure{margin:0}.intake-photos img{width:100%;height:220px;object-fit:contain;background:#f4f3ed;border-radius:8px}.intake-photos figcaption{font-size:.85rem;margin-top:8px;overflow-wrap:anywhere}.preserve-lines a{overflow-wrap:anywhere}details.panel>summary{cursor:pointer;font-weight:600}
.price-editor,.price-box,.price-card{background:#f3f8ea;border-color:#cbdcb8}.price-box{border:1px solid #cbdcb8;border-radius:8px;padding:18px}.price-value{font-size:18px;font-weight:600;line-height:1.45}.price-value a{font-size:12px;font-weight:500;display:block;margin-top:8px;text-decoration:underline}

.codex-request{max-width:900px}.codex-request-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}.codex-request-heading>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.codex-request-heading a{text-decoration:underline;overflow-wrap:anywhere}.codex-request-heading small{color:var(--muted)}.codex-request .preserve-lines{overflow-wrap:anywhere}.codex-close-form{border-top:1px solid var(--line);padding-top:16px}.codex-close-form textarea{margin-top:8px}.codex-outcome{background:#f1f6e8;border-radius:6px;padding:12px}

.photo-chooser{margin-top:16px;min-width:0}.photo-source-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.photo-source-actions button,.photo-source-actions .button{white-space:normal;text-align:center;font-size:12px;padding:9px 12px;min-height:42px}.photo-source-file{position:relative;cursor:pointer}.photo-source-file input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;padding:0;border:0}.photo-source-file:focus-within{outline:3px solid #97bc6c;outline-offset:2px}.cloud-connections{display:flex;flex-wrap:wrap;gap:12px}.cloud-link-row{margin-top:18px}.cloud-link-row .inline{flex-wrap:wrap}.cloud-link-row .inline input{min-width:220px}.staged-photos{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.staged-photo{width:120px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fafbf8;text-align:center}.staged-photo img{width:100%;height:90px;object-fit:contain}.staged-photo button{margin-top:5px}.photo-camera-dialog,.cloud-photo-dialog{width:min(680px,calc(100vw - 20px));max-height:92dvh;overflow:auto}.photo-camera-frame{overflow:hidden;background:#111;border-radius:9px;margin:12px 0}.photo-camera-frame video,.photo-camera-frame img{display:block;width:100%;max-height:55dvh;object-fit:contain;transform-origin:center}.camera-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.camera-controls label{font-size:12px}.camera-controls input[type=range]{padding:0;margin:8px 0;accent-color:#698e40}.camera-controls span{display:block}.cloud-files{display:flex;flex-direction:column;gap:7px;max-height:55dvh;overflow:auto}.cloud-file{justify-content:flex-start;text-align:left;white-space:normal;overflow-wrap:anywhere;background:#f7f9f4;color:var(--ink);border-color:var(--line)}.cloud-file:hover{background:#e7efdc}
@media(max-width:600px){.camera-controls{grid-template-columns:1fr}.photo-source-actions>*{flex:1 1 145px}.cloud-link-row .inline>*{flex:1 1 100%}.photo-camera-dialog,.cloud-photo-dialog{padding:18px}}

#new-sheet form{max-width:650px}#new-sheet form button{margin-top:17px}.selection-bar select{max-width:360px}#product-layout{margin:2px 0 12px}@media(max-width:700px){.selection-bar select{max-width:none}}

.sheet-preview i{position:relative}.sheet-preview.split-2-v1 i:after,.sheet-preview.split-6-v1 i:after,.sheet-preview.split-6-distinct-v1 i:after,.sheet-preview.split-6-v2 i:after,.sheet-preview.split-6-distinct-v2 i:after{content:'';position:absolute;left:0;right:0;top:50%;border-top:1px solid #9bab91}.sheet-preview.split-3-v1 i:before,.sheet-preview.split-6-v1 i:before,.sheet-preview.split-6-distinct-v1 i:before,.sheet-preview.split-6-v2 i:before,.sheet-preview.split-6-distinct-v2 i:before{content:'';position:absolute;top:0;bottom:0;left:33.333%;width:33.333%;border-left:1px solid #9bab91;border-right:1px solid #9bab91}
