:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263c33;background:#f2f3f4;line-height:1.5;font-synthesis:none;--green:#305c45;--line:#ddd}*{box-sizing:border-box}body{margin:0}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:#fff}.wordmark{font-size:27px;font-weight:800;letter-spacing:-1px;color:var(--green);text-decoration:none}.wordmark span{font-size:20px;font-weight:400;letter-spacing:0}.local-badge{font-size:12px;border:1px solid #ddd;border-radius:30px;padding:6px 12px;color:#496342;background:#eee}main{max-width:1440px;margin:auto;padding:48px 5vw 0}.intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#6b795d;margin:0 0 10px}h1{font-size:clamp(30px,4vw,48px);font-weight:650;letter-spacing:-1.8px;line-height:1.15;margin:0 0 14px}p{margin:0 0 16px}.intro p:last-child{color:#6d786f;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:11px 17px;font-weight:600;white-space:nowrap}button:disabled{opacity:.45;cursor:default}.primary{background:#fff;color:var(--green);border:1px solid #d5d5d5}.primary:hover{background:#eee}.secondary{background:#fff;color:#35523e;border:1px solid #ddd}.text-button{color:var(--green);background:transparent;font-size:13px;padding:8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:30px}.stats div{padding:20px 24px;border-right:1px solid var(--line)}.stats div:last-child{border:0}.stats span{display:block;color:#6d786f;font-size:13px}.stats strong{font-size:32px;letter-spacing:-1px;font-weight:600}.toolbar{display:flex;gap:14px;align-items:flex-end;margin-bottom:24px}.toolbar .search{flex:1}.toolbar label{font-size:12px;color:#647160}.toolbar input,.toolbar select{margin-top:5px}.toolbar button{height:45px}input,select,textarea{width:100%;border:1px solid #d5d5d5;background:#fff;color:#263c33;border-radius:7px;padding:10px 12px;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #888}label{display:block;font-size:13px;font-weight:550;margin-bottom:15px}.toolbar label{margin-bottom:0}label input,label select,label textarea{display:block;margin-top:6px}.hint{font-size:12px;color:#73806c;margin:12px 0 20px}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.product-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.preview{height:210px;background:#f0f0f0;display:flex;align-items:center;justify-content:center;color:#89927c;font-size:13px}.preview img{width:100%;height:100%;object-fit:contain;padding:12px}.card-content{padding:20px}.card-top{display:flex;justify-content:space-between;gap:8px}.kind{font-size:11px;color:#79816e;text-transform:uppercase;letter-spacing:1px}.status{font-size:11px;border-radius:20px;padding:2px 9px;background:#eee;color:#3a663c}.status.reserved{background:#eee;color:#806023}.status.sold{background:#eee;color:#72766c}.product-card h2{font-size:19px;letter-spacing:-.4px;margin:10px 0 4px}.price{font-weight:650;margin-bottom:14px}.channels{display:flex;gap:6px;flex-wrap:wrap}.channels span{font-size:10px;padding:4px 7px;border:1px solid #ddd;border-radius:4px;color:#66745e}.stock{font-size:12px;margin:15px 0 4px}.location{font-size:12px;color:#7d856f;margin-bottom:18px}.actions{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}footer{border-top:1px solid var(--line);margin-top:40px;padding:22px 0;font-size:11px;color:#7b826e}.empty{text-align:center;padding:75px 20px;color:#748064;border:1px dashed #ccc;border-radius:12px}.error,.success{padding:12px 16px;border-radius:7px;margin-bottom:20px;font-size:14px;white-space:normal}.error{background:#f5f5f5;color:#873c2d}.success{background:#eee;color:#365b38}dialog{border:1px solid var(--line);border-radius:14px;width:min(700px,calc(100% - 28px));max-height:90vh;padding:28px;color:#263c33;background:#fff}dialog::backdrop{background:#0006;backdrop-filter:blur(2px)}dialog h2{margin:0 0 22px;font-size:26px;letter-spacing:-.6px}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}.close{font-size:26px;background:transparent;padding:0 8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}fieldset{border:1px solid var(--line);border-radius:8px;padding:12px 16px}legend{font-size:13px}.check{display:flex;gap:8px;align-items:center;margin:5px 0}.check input{width:auto;margin:0}.image-list{display:flex;gap:12px;overflow:auto}.image-list figure{min-width:130px;width:130px;margin:0 0 16px;border:1px solid var(--line);padding:8px;border-radius:7px}.image-list img{height:100px;width:100%;object-fit:contain}.image-list figcaption{font-size:10px}#image-section{border-top:1px solid var(--line);margin-top:25px;padding-top:10px}.job-controls{display:flex;align-items:center;gap:14px;margin-top:20px}#jobs{font-size:12px;padding-left:18px}#sale-dialog{max-width:460px}[hidden]{display:none!important}@media(min-width:1450px){.products{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:950px){.products{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{flex-wrap:wrap}.toolbar .search{flex-basis:100%}}@media(max-width:600px){header{height:70px;padding:0 20px}.wordmark{font-size:22px}.wordmark span{font-size:16px}.local-badge{font-size:10px}main{padding:30px 20px 0}.intro{align-items:flex-start;flex-direction:column}h1{letter-spacing:-1px}.stats{grid-template-columns:1fr}.stats div{padding:15px;border-right:0;border-bottom:1px solid var(--line)}.stats span{font-size:11px}.products{grid-template-columns:1fr}.toolbar label:not(.search){flex:1}.toolbar button{width:100%}.form-grid{grid-template-columns:1fr}.job-controls{align-items:stretch;flex-direction:column}.preview{height:240px}}

.test-checkout{max-width:700px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:32px}

.login-main{max-width:570px;padding-top:60px}.login-main h1{font-size:40px}

@media(min-width:601px){.login-page{min-height:100vh;min-height:100svh;display:grid;grid-template-rows:minmax(60px,2fr) auto minmax(40px,3fr)}.login-page .login-main{grid-row:2;width:100%;padding-top:0;margin:0 auto}}

.login-main>.eyebrow,.login-main>h1{text-align:center}

.login-page{background:#f2f3f4;min-height:100vh;min-height:100svh}

.login-page :is(#login-form,#sms-form)>.primary{background:#fff;color:var(--green);border:1px solid #d5d5d5}.login-page :is(#login-form,#sms-form)>.primary:hover{background:#f7f8f7}

.login-page a,.login-page .text-button{color:#1763b5}.login-page a:hover,.login-page .text-button:hover{color:#104985;text-decoration:underline}

.login-page :is(#login-form,#sms-form)>label{color:#666}

.login-page :is(#login-form,#sms-form) input{background:#fff}

.login-page :is(#login-form,#sms-form){background:#fafbfc;border-color:#e1e4e7;padding:32px}

.login-page :is(#login-form,#sms-form){margin-bottom:12px}.login-page #send-sms-code{display:block;margin:0 auto 24px}

.login-main>.eyebrow{font-size:14px;margin-bottom:15px}

@media(min-width:768px){.sms-error-followup{display:block}}

.stats .stat-clickable{padding:0}.stat-link{display:block;padding:20px 24px;color:inherit;text-decoration:none}.stat-link[href] strong{color:#1763b5}.stat-link[href]:hover{background:#f5f5f5;text-decoration:underline}.stat-link:focus-visible{outline:2px solid #1763b5;outline-offset:-3px}@media(max-width:600px){.stat-link{padding:15px}}

.inventory-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}

.inventory-guidance{margin-bottom:28px;font-size:14px;color:#5f6662}.inventory-guidance h2{font-size:16px;margin:0 0 8px}.inventory-guidance ul{margin:0;padding-left:20px}.inventory-guidance li+li{margin-top:6px}

.batch-dialog{width:min(1120px,calc(100% - 28px))}.batch-dialog section{margin-top:24px}.batch-dialog h3{margin:0 0 12px}.batch-list-row,.batch-job{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #ddd}.batch-dropzone{border:2px dashed #bbb;border-radius:10px;background:#f5f5f5;padding:24px}.batch-dropzone.is-dragging{border-color:#1763b5}.batch-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-bottom:16px}.batch-photo{border:1px solid #ddd;border-radius:8px;padding:10px;background:#fafafa}.batch-photo img{width:100%;height:140px;object-fit:contain;background:#eee}.batch-photo .hint{overflow-wrap:anywhere}.batch-warning{font-size:12px;color:#805316}.batch-group{border:1px solid #ddd;border-radius:10px;padding:20px;margin-bottom:20px;background:#fafafa}.batch-group h4{font-size:20px;margin:0 0 16px}.batch-group .actions{justify-content:flex-start;margin-top:14px}.batch-variant{display:inline-block;width:180px;margin:16px 12px 0 0}.batch-variant img{width:180px;height:160px;object-fit:contain}.batch-variant figcaption{font-size:12px}.batch-photo-editor{width:min(960px,calc(100% - 28px))}#batch-photo-canvas{max-width:100%;height:auto;max-height:65vh;object-fit:contain;touch-action:none}.error-text{color:#873c2d;font-size:13px}

.batch-group-preview{display:block;width:100%;height:200px;object-fit:contain;background:#eee;border-radius:8px;margin-bottom:20px}

.photo-link{display:inline-block;text-decoration:none;padding:12px 18px;border:1px solid #d5d5d5;border-radius:8px;background:white;color:var(--green);font-weight:700}.phone-photo-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.phone-only{display:none}.photo-mode>main{display:none}.photo-mode .phone-only{display:block}.photo-mode .batch-dialog{width:100%;max-width:760px;height:100dvh;max-height:100dvh;margin:0 auto;border:0;border-radius:0;box-sizing:border-box;padding:24px 20px;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}.photo-mode #batch-defaults>label:first-child,.photo-mode #batch-defaults>label:has(textarea),.photo-mode #batch-defaults .form-grid>label:nth-child(n+4),.photo-mode #batch-options,.photo-mode #batch-defaults>.actions{display:none}.photo-mode .show-advanced #batch-defaults>label,.photo-mode .show-advanced #batch-defaults .form-grid>label,.photo-mode .show-advanced #batch-options{display:block}.photo-mode #batch-defaults .form-grid{grid-template-columns:1fr}.photo-mode .batch-dropzone{display:none}.photo-mode .batch-dialog>.dialog-heading h2{font-size:24px}.photo-mode :is(#batch-pending,#batch-photos){grid-template-columns:repeat(2,minmax(0,1fr))}.photo-mode .phone-photo-actions>button{flex:1;min-height:54px}.photo-mode #batch-upload-start{width:100%;min-height:54px}.photo-mode .install-help{font-size:13px;color:#666}@media(display-mode:standalone){.install-help{display:none!important}}@media(max-width:600px){.batch-dialog{box-sizing:border-box;padding:18px}.batch-group{padding:14px}.batch-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-photo{min-width:0}.batch-photo button{width:100%}input,select,textarea{font-size:16px}.photo-mode .batch-dialog .form-grid{grid-template-columns:1fr}}

/* Inventory rows: keep each photograph beside its item, including on phones. */
#products[data-view="rows"].products{grid-template-columns:minmax(0,1fr);gap:14px}
#products[data-view="rows"] .product-card{display:grid;grid-template-columns:184px minmax(0,1fr);align-items:center}
#products[data-view="rows"] .preview{width:160px;height:160px;margin:12px;border-radius:8px}
#products[data-view="rows"] .card-content{min-width:0;padding:16px 20px 16px 8px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;align-items:start}
#products[data-view="rows"] .card-top{grid-column:1/-1;justify-content:flex-start;gap:16px}
#products[data-view="rows"] h2{grid-column:1;overflow-wrap:anywhere;margin:8px 0}
#products[data-view="rows"] .price{grid-column:2;grid-row:2;margin:8px 0;white-space:nowrap}
#products[data-view="rows"] .channels,#products[data-view="rows"] .stock,#products[data-view="rows"] .location{grid-column:1}
#products[data-view="rows"] .stock{margin:8px 0 4px}
#products[data-view="rows"] .location{margin:0;overflow-wrap:anywhere}
#products[data-view="rows"] .actions{grid-column:2;grid-row:3/6;align-self:end;margin-top:12px}
@media(max-width:600px){#products[data-view="rows"] .product-card{grid-template-columns:108px minmax(0,1fr);align-items:start}#products[data-view="rows"] .preview{width:92px;height:112px;margin:12px 8px}#products[data-view="rows"] .preview img{padding:6px}#products[data-view="rows"] .card-content{padding:12px 12px 14px 4px;grid-template-columns:minmax(0,1fr);column-gap:0}#products[data-view="rows"] .card-top{flex-wrap:wrap;gap:6px}#products[data-view="rows"] h2{font-size:17px;margin:8px 0 4px}#products[data-view="rows"] .price,#products[data-view="rows"] .actions{grid-column:1;grid-row:auto;margin:4px 0 8px}#products[data-view="rows"] .stock{font-size:12px}#products[data-view="rows"] .actions{justify-content:flex-start;margin:12px 0 0}}

.view-controls{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 20px}.view-controls button{background:#fff;color:#555;border:1px solid #ddd;font-size:14px;min-height:44px}.view-controls button[aria-pressed="true"]{background:#e3e5e7;border-color:#999;color:#263c33;box-shadow:inset 0 0 0 1px #999}.view-controls button:focus-visible,#products .preview:focus-visible{outline:3px solid #1763b5;outline-offset:3px}
#products .preview{border:0;padding:0;font-weight:400;white-space:normal;border-radius:0}#products .preview:hover{background:#e8e8e8}
#products[data-view="cards"] .preview{width:100%;height:auto;aspect-ratio:1}#products[data-view="cards"] .preview img{display:block;padding:0;object-fit:cover}
#products[data-view="photos"]{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
#products[data-view="photos"] .product-card{border-radius:2px;min-width:0}
#products[data-view="photos"] .preview{width:100%;height:auto;aspect-ratio:1;display:flex;background:#fff}
#products[data-view="photos"] .preview img{padding:6px}
#products[data-view="photos"] .card-content{display:none}
@media(max-width:600px){#products[data-view="photos"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

.toolbar .search{min-width:220px}.toolbar{flex-wrap:wrap}.toolbar>label:not(.search){min-width:110px}

.product-parties{margin:12px 0 0;font-size:13px}.product-parties>div{display:flex;gap:6px;align-items:baseline}.product-parties dt{color:#66706b;flex:none}.product-parties dt::after{content:":"}.product-parties dd{margin:0;overflow-wrap:anywhere;font-weight:550}#products[data-view="rows"] .product-parties{grid-column:1}#products[data-view="rows"] .actions{grid-row:3/7}.party-fields{margin:20px 0}.party-fields .hint{margin-bottom:0}@media(max-width:600px){#products[data-view="rows"] .actions{grid-row:auto}.product-parties>div{flex-wrap:wrap;gap:0 6px}.photo-mode #batch-defaults .form-grid>label:nth-child(4){display:block}}
.photo-mode #batch-defaults .form-grid>label:nth-child(4){display:block}

.batch-photo-pick{display:block;position:relative;width:100%;padding:0;border:2px solid transparent;border-radius:8px;background:#eee;overflow:hidden;min-height:140px}.batch-photo-pick img{display:block;height:150px!important;width:100%;object-fit:contain}.batch-photo-pick[aria-pressed="true"]{border-color:#1763b5;box-shadow:0 0 0 2px #1763b5}.batch-photo-check{position:absolute;top:6px;right:6px;background:white;color:#1763b5;border-radius:18px;padding:4px 9px;font-size:13px}.batch-photo-pick[aria-pressed="true"] .batch-photo-check{background:#1763b5;color:white}.batch-group-badge{font-size:13px;font-weight:650;margin:8px 0}.batch-selection-tools{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;background:#f4f5f6;border:1px solid #ddd;border-radius:10px;margin:12px 0}.batch-selection-tools>p{margin:0;flex:1;font-size:14px}.batch-selection-tools>details{flex-basis:100%;font-size:13px}.batch-selection-tools summary{cursor:pointer;padding:8px 0}.batch-selection-tools details label{margin:8px 0}.batch-feedback{position:fixed;z-index:20;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(680px,calc(100% - 24px));display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #9aa5b0;border-radius:10px;background:#f3f6fa;color:#263c33;box-shadow:0 5px 22px #0003;font-size:15px}.batch-feedback[data-kind="error"]{background:#fff4f0;border-color:#bd8272;color:#8c3825}.batch-feedback a{color:#1763b5;white-space:nowrap}.batch-feedback button{padding:4px 8px;background:transparent;margin-left:auto;font-size:24px}.batch-dialog #batch-workspace{padding-bottom:110px}@media(max-width:600px){.batch-selection-tools>button{font-size:13px;padding:10px}.batch-feedback{flex-wrap:wrap;gap:6px;font-size:14px}.batch-feedback>span{flex:1;min-width:200px}.batch-photo-pick img{height:135px!important}}

.pwa-refresh-footer{width:100%;margin-top:28px;padding-top:20px;border-top:1px solid #ddd;text-align:center}.pwa-refresh-footer button{min-height:48px}.inventory-footer>.pwa-refresh-footer{flex-basis:100%}
.batch-dialog>.pwa-refresh-footer{padding-bottom:calc(100px + env(safe-area-inset-bottom))}

#products .seller-summary{grid-column:1/-1;margin:0 0 10px;font-size:15px;font-weight:700;color:#263c33;overflow-wrap:anywhere}#products[data-view="rows"] .seller-summary{grid-column:1/-1}#products[data-view="rows"] .price{grid-row:3}#products[data-view="rows"] .actions{grid-row:4/8}@media(max-width:600px){#products[data-view="rows"] .price,#products[data-view="rows"] .actions{grid-row:auto}#products .seller-summary{font-size:14px}}

.photo-size-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-left:auto}.photo-size-controls label{margin:0;font-size:13px}.photo-size-controls input{width:130px;min-width:80px;padding:0;accent-color:#1763b5}.photo-size-controls output{font-size:13px;min-width:65px}.photo-size-controls button{min-width:44px}#products[data-photo-size="0"]{--photo-columns:5}#products[data-photo-size="1"]{--photo-columns:4}#products[data-photo-size="2"]{--photo-columns:3}#products[data-photo-size="3"]{--photo-columns:2}#products[data-photo-size="4"]{--photo-columns:1}#products[data-view="photos"]{grid-template-columns:repeat(var(--photo-columns,5),minmax(0,1fr))}@media(max-width:600px){.photo-size-controls{flex-basis:100%;margin:8px 0 0}.photo-size-controls input{flex:1}.photo-size-controls label{flex-basis:100%}}

.source-intake-card{padding:18px;border:1px solid #ddd;background:#f6f6f6;border-radius:10px;margin:14px 0}.source-intake-card h4{margin:0 0 12px;font-size:16px}.source-intake-card dl{margin:0 0 12px;font-size:14px}.source-intake-card dl>div{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:5px}.source-intake-card dt{font-weight:650}.source-intake-card dt::after{content:":"}.source-intake-card dd{margin:0;overflow-wrap:anywhere}.source-intake-notes{white-space:pre-wrap;overflow-wrap:anywhere}.source-intake-entry{padding:12px 0;border-bottom:1px solid #ddd}.source-intake-entry summary{cursor:pointer;font-weight:600;font-size:14px}.source-intake-entry>.text-button{display:block;text-align:left;white-space:normal}

.commission-summary{font-size:12px;color:#62676b;margin:12px 0}.commission-summary p{margin:3px 0}.commission-summary small{display:block;color:#73777a}#products[data-view=rows] .commission-summary{grid-column:1}@media(min-width:601px){#products[data-view=rows] .actions{grid-row:4/9}}

.todo-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px 22px;margin:0 0 24px}.todo-panel h2{font-size:16px;margin:0 0 8px}.todo-panel a{font-weight:600;color:#1763b5}.location-todos-page{max-width:1100px}.location-todos-page>.intro{margin-top:24px;margin-bottom:14px}.location-todo-row{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;padding:20px;background:white;border:1px solid var(--line);border-radius:2px;margin:16px 0}.location-todo-image{width:160px;height:160px;display:flex;align-items:center;justify-content:center;background:#fff;color:#68716b}.location-todo-image img{width:100%;height:100%;object-fit:contain}.location-todo-form h2{font-size:19px;line-height:1.35;margin:0 0 12px}.location-todo-form label{margin:0 0 12px}.location-todo-controls{display:flex;gap:12px;align-items:center}.location-picker{flex:1;min-width:0}.location-todo-form .error{margin:12px 0 0}#location-feedback{padding:12px 16px;background:#fff;border:1px solid #ddd;border-radius:2px}@media(max-width:600px){.location-todo-row{grid-template-columns:92px minmax(0,1fr);gap:12px;padding:12px}.location-todo-image{width:92px;height:112px}.location-todo-controls{align-items:stretch;flex-direction:column}.location-todo-form h2{font-size:16px}.location-todos-page .intro{align-items:flex-start;flex-direction:column;gap:8px}.location-todos-page h1{font-size:30px}}

.location-delete{color:#943d2d;margin-top:8px;padding-left:0}

.photo-mode #batch-defaults .form-grid>label:has([name=owner_name]),.photo-mode #batch-defaults .form-grid>label:has([name=seller_name]),.photo-mode #batch-defaults .form-grid>label:has([name=location]){display:block}

.photo-mode .upload-intro #batch-status,.photo-mode .upload-intro .dialog-heading h2{display:none}.photo-mode .upload-intro #batch-workspace>:not(#batch-upload):not(.phone-photo-actions):not(:where(.batch-dropzone)){display:none!important}.photo-mode .upload-intro #batch-upload>:not(.phone-photo-actions):not(#batch-photo-help){display:none!important}.photo-mode .upload-intro .dialog-heading{justify-content:flex-end}.photo-mode .upload-intro .phone-photo-actions{margin-top:0}.photo-mode .upload-intro #batch-photo-help{line-height:1.6;margin:18px 0}

.photo-mode .batch-dialog{position:static;width:100%;max-width:1200px;height:auto;min-height:100svh;max-height:none;margin:0 auto;padding:40px 48px;background:transparent;overflow:visible;box-shadow:none}.photo-mode .batch-dialog>.dialog-heading{justify-content:flex-start;gap:24px;margin-bottom:28px}.photo-mode .batch-dialog .photo-back{color:#1763b5;font-size:15px;font-weight:550;text-decoration:none}.photo-mode .batch-dialog .photo-back:hover{text-decoration:underline}.photo-mode #batch-workspace>p.phone-only:first-child{display:none}.photo-mode .upload-intro .phone-photo-actions,.photo-mode .upload-intro #batch-upload{max-width:820px}.photo-mode .upload-intro #batch-photo-help{font-size:14px;color:#62676b}@media(min-width:801px){.photo-mode #batch-defaults .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-mode #batch-defaults>label,.photo-mode #batch-defaults .form-grid>label,.photo-mode #batch-options{display:block}.photo-mode #batch-defaults>.actions{display:flex}.photo-mode #batch-more-details,.photo-mode .install-help{display:none}}@media(max-width:800px){.photo-mode .batch-dialog{padding:24px 20px;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}.photo-mode .batch-dialog>.dialog-heading{margin-bottom:24px}.photo-mode .phone-photo-actions{flex-direction:column}.photo-mode .phone-photo-actions>button{width:100%}}

.photo-mode .batch-dialog>.dialog-heading{justify-content:flex-end}.photo-mode .photo-back-text{display:none}.photo-mode .photo-close-icon{display:block}.photo-mode .batch-dialog .photo-back{display:flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:32px;line-height:1;color:#263c33}.photo-mode .batch-dialog .photo-back:hover{text-decoration:none;background:#e8e8e8;border-radius:6px}

.photo-mode #batch-to-list{display:none}

/* Guided photo intake: selection, upload/owner, grouping, item review. */
.photo-mode :is(#batch-pending,#batch-photos){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.photo-mode #batch-pending .batch-photo{position:relative;padding:0;overflow:hidden;border-radius:2px;background:white;aspect-ratio:1}
.photo-mode #batch-pending img{display:block;width:100%;height:100%;object-fit:contain;background:white}
.photo-mode #batch-pending .pending-remove{position:absolute;right:8px;top:8px;width:28px;height:28px;min-height:28px;padding:0;border:1px solid #ddd;border-radius:4px;background:rgba(255,255,255,.94);box-shadow:0 1px 5px #0003;color:#333;font-size:26px;line-height:1}
@media(hover:hover) and (pointer:fine){.photo-mode #batch-pending .pending-remove{opacity:0}.photo-mode #batch-pending .batch-photo:hover .pending-remove,.photo-mode #batch-pending .batch-photo:focus-within .pending-remove{opacity:1}}
@media(min-width:801px){.photo-mode :is(#batch-pending,#batch-photos){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1100px){.photo-mode :is(#batch-pending,#batch-photos){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1450px){.photo-mode .batch-dialog{max-width:1600px}.photo-mode :is(#batch-pending,#batch-photos){grid-template-columns:repeat(5,minmax(0,1fr))}}
.photo-mode .upload-intro.has-pending #batch-workspace>#batch-pending,.photo-mode .upload-intro.has-pending #batch-upload>#batch-upload-start,.photo-mode .upload-intro.has-pending #batch-upload>#batch-upload-progress{display:grid!important}
.photo-mode #batch-dialog[data-stage=choose] #batch-defaults,.photo-mode #batch-dialog[data-stage=choose] #batch-job-section,.photo-mode #batch-dialog[data-stage=choose] #batch-upload~section,.photo-mode #batch-more-details{display:none!important}
.photo-mode #batch-dialog:not([data-stage=choose]) #batch-defaults{display:block!important}
.photo-mode #batch-defaults>*,.photo-mode #batch-defaults .form-grid>*{display:none!important}
.photo-mode #batch-defaults>.form-grid:has(.guided-owner){display:block!important}
.photo-mode #batch-defaults .guided-owner,.photo-mode #batch-defaults>#batch-owner-status{display:block!important;max-width:540px}
.photo-mode #batch-dialog[data-stage=processing] #batch-upload~section:not(#batch-job-section):not(:has(>#batch-photos)){display:none!important}
.photo-mode #batch-dialog[data-stage=processing] section:has(>#batch-photos)>:not(h3):not(#batch-photos),.photo-mode #batch-dialog[data-stage=processing] #batch-photos .batch-photo>:not(.batch-photo-pick):not(:where(.batch-image-frame)),.photo-mode #batch-dialog[data-stage=processing] .batch-photo-check{display:none!important}
.photo-mode #batch-dialog[data-stage=processing] #batch-photos .batch-photo-pick{opacity:1}
.photo-mode #batch-dialog[data-stage=grouping] #batch-groups,.photo-mode #batch-dialog[data-stage=grouping] #batch-approve-all,.photo-mode #batch-dialog[data-stage=grouping] #batch-review-back{display:none!important}
.photo-mode #batch-dialog[data-stage=review] section:has(>#batch-photos){display:none}
.photo-mode #batch-dialog:not([data-stage=choose]) .phone-photo-actions{display:none}
.photo-mode .batch-owner-fields>label:has([name=location]){display:block!important}
.photo-mode #batch-dialog[data-stage=processing] .dialog-heading h2,.photo-mode #batch-dialog[data-stage=processing] #batch-status{display:block}

.photo-mode .group-extra{margin:12px 0 20px}.photo-mode .group-extra summary{cursor:pointer;margin-bottom:12px}

@media(min-width:801px){.photo-mode .upload-intro .phone-photo-actions,.photo-mode .upload-intro #batch-upload{margin-left:auto;margin-right:auto}}

.preview:has(.image-retry-hint){position:relative}.image-retry-hint{position:absolute;inset:auto 8px 8px;padding:8px;background:#fff;color:#555;font-size:13px;text-align:center}

.photo-mode #batch-dialog>.dialog-heading #batch-heading{display:none}

.photo-mode #batch-defaults>#batch-owner-status:empty{display:none!important}

.photo-mode #batch-dialog:not([data-stage=choose]) #batch-upload>h3,.photo-mode #batch-dialog:not([data-stage=choose]) #batch-photo-help{display:none!important}

.photo-mode #batch-dialog[data-stage=grouping] section:has(>#batch-groups){display:none}.grouped-summary-card{display:flex;gap:20px;align-items:center;padding:16px;margin:12px 0;background:white;border:1px solid #ddd;border-radius:2px}.grouped-summary-card img{width:110px;height:110px;object-fit:contain}.grouped-summary-card p{margin:6px 0 12px}

#batch-completed-uploads{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}#batch-completed-uploads[hidden]{display:none}.completed-upload{display:grid;grid-template-columns:24px 72px;align-items:center;gap:4px 8px;padding:8px;background:#fff;border:1px solid #ddd;border-radius:2px}.completed-upload img{width:72px;height:72px;object-fit:contain}.completed-upload-check{font-size:28px;font-weight:800;color:#305c45}.completed-upload-label{grid-column:1/-1;font-size:11px;color:#555;text-align:center}

.brand-field{position:relative}.brand-suggestions{position:absolute;top:100%;left:0;right:0;z-index:20;max-height:260px;overflow:auto;padding:4px;background:white;border:1px solid #bbb;border-radius:4px;box-shadow:0 5px 14px #0002}.brand-suggestions[hidden]{display:none}.brand-suggestions button{display:block;width:100%;border:0;border-radius:2px;text-align:left;padding:10px 12px;background:white;color:#263c33}.brand-suggestions button:hover,.brand-suggestions [aria-selected=true]{background:#eee}

.batch-group-gallery .primary-photo-choice{display:block;width:100%;padding:0;border:2px solid transparent;border-radius:2px;background:white}.batch-group-gallery .primary-photo-choice[aria-pressed=true]{border-color:#1763b5}.batch-group-gallery .primary-photo-choice:focus-visible{outline:3px solid #1763b5;outline-offset:2px}.batch-group-gallery figcaption{overflow-wrap:anywhere;margin-top:6px}.batch-group-gallery figure:has([aria-pressed=true]) figcaption{font-weight:700;color:#1763b5}

.material-picker{grid-column:1/-1;border:1px solid #ddd;border-radius:4px;padding:14px;min-width:0}.material-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.material-choices label{display:flex;align-items:center;gap:8px;font-weight:400;cursor:pointer}.material-choices input[type=checkbox]{width:20px;height:20px;min-height:0;margin:0;padding:0;flex-shrink:0}.material-picker details{margin-top:16px}.material-picker summary{cursor:pointer}.material-picker details>input{margin:12px 0;max-width:360px}.material-picker .error-text:empty{display:none}
/* Drag-and-drop intake is available only in a desktop browser. */
.photo-mode .batch-dropzone:not([hidden]){display:flex;align-items:center;justify-content:center;min-height:140px;box-sizing:border-box;max-width:820px;margin:0 auto 20px;background:#fff;border:2px dashed #b9bec3;border-radius:2px;color:#62676b;cursor:pointer;text-align:center}
.photo-mode .batch-dropzone input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.photo-mode .batch-dropzone:focus-within,.photo-mode .batch-dropzone.is-dragging{border-color:#1763b5;background:#eef5fc}
.photo-mode #batch-dialog:not([data-stage=choose]) .batch-dropzone{display:none}
.customer-field{position:relative}.customer-suggestions{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:300px;overflow:auto;margin-top:6px;padding:5px;background:#fff;border:1px solid #d5d8dc;border-radius:6px;box-shadow:0 8px 24px #0002}.customer-option{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;min-height:58px;padding:10px 12px;border:0;border-radius:3px;background:#fff;text-align:left;color:#263c33}.customer-option strong{font-size:14px}.customer-option span{font-size:12px;color:#70757a;font-weight:400}.customer-option:hover,.customer-option[aria-selected=true]{background:#edf4fc}
.customers-mode>main{display:none}.customer-page{max-width:1100px;margin:0 auto;padding:40px 32px;min-height:100svh}.customer-page .close{text-decoration:none;min-width:44px;min-height:44px;text-align:center}.customer-page #customer-list>p{padding:14px 16px;margin:10px 0;background:white;border:1px solid #ddd;border-radius:2px}.customer-page #customer-list small{display:block;color:#70757a}.customer-page #customer-form{padding:24px;background:white;border:1px solid #ddd;margin-top:24px}.customer-page #customer-search{background:white}@media(max-width:600px){.customer-page{padding:24px 20px}.customer-page .actions{align-items:stretch;flex-direction:column}}
.customer-todo{margin:24px 0;padding:18px 20px;background:white;border:1px solid #ddd;border-radius:2px}.customer-todo h3{margin:0 0 8px}.customer-city-row{padding:20px;margin:12px 0;background:white;border:1px solid #ddd;border-radius:2px}.customer-city-row input{max-width:540px}.customer-city-row p:empty{display:none}
.quick-rotate{min-width:44px;min-height:44px;padding:4px 10px;font-size:24px;line-height:1}.photo-mode #batch-pending .quick-rotate{position:absolute;bottom:8px;right:8px;width:44px;background:#fffffff2;border:1px solid #ddd;box-shadow:0 1px 4px #0002}.completed-upload .quick-rotate{grid-column:1/-1;justify-self:end}
.customer-page .remove-customer{display:block;margin-top:12px;color:#a03624;padding:8px 0}

.photo-mode #batch-defaults .guided-location{display:block!important;max-width:540px}
@media(min-width:801px){.photo-mode #batch-defaults>.form-grid:has(.guided-owner){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.photo-mode #batch-defaults .guided-owner,.photo-mode #batch-defaults .guided-location{max-width:none}}
.batch-discard{color:#a03624;margin-top:28px}.photo-mode #batch-dialog[data-stage=processing] .batch-discard{display:none}
.photo-mode section:has(>#batch-photos)>:is(h3,p.hint),.photo-mode section:has(>#batch-photos)>#batch-status{text-align:center}.photo-mode .batch-grouping-actions{justify-content:center}

.batch-image-frame{position:relative}.batch-image-frame>.quick-rotate{position:absolute;bottom:6px;right:6px;z-index:1;width:44px!important;background:#fffffff2;border:1px solid #ddd;box-shadow:0 1px 4px #0002}.completed-upload .batch-image-frame>.quick-rotate{min-width:32px;min-height:32px;width:32px!important;padding:2px;font-size:22px;bottom:2px;right:2px}
.completed-upload{grid-template-columns:72px}.completed-upload-check{position:absolute;top:3px;left:3px;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#fffffff2;box-shadow:0 1px 4px #0002;font-size:21px;line-height:1;pointer-events:none}
@media(min-width:1000px){.batch-group-preview{height:360px}.batch-group-gallery{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.batch-group-gallery .batch-photo img{height:220px}.batch-group-gallery .primary-photo-choice{min-height:224px}}
.batch-group.batch-group-complete{display:grid;grid-template-columns:64px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 16px;align-items:center;padding:12px 16px;min-height:88px}.batch-group-complete .batch-group-preview{grid-column:1;grid-row:1/3;width:64px;height:64px;margin:0;border-radius:2px}.batch-group-complete h4{grid-column:2;grid-row:1;font-size:16px;margin:0}.batch-group-complete .saved-group-status{grid-column:2;grid-row:2;font-size:12px;color:#53715e}.batch-group-complete>button{grid-column:3;grid-row:1/3}@media(max-width:600px){.batch-group.batch-group-complete{gap:2px 10px;padding:10px}.batch-group-complete>button{font-size:12px;padding:8px}.batch-group-complete h4{font-size:14px}}
.product-card{position:relative}.inventory-rotate{position:absolute;top:12px;left:12px;z-index:2;width:44px;height:44px;padding:0;background:#fffffff2;font-size:26px;border:1px solid #ddd;box-shadow:0 1px 5px #0002;opacity:0;visibility:hidden;transform:translateY(5px);transition:opacity .18s,transform .18s,visibility 0s .18s}.inventory-rotate:focus-visible,.product-card:has(.preview:focus-visible)>.inventory-rotate{opacity:1;visibility:visible;transform:none;transition-delay:0s}@media(hover:hover) and (pointer:fine){.product-card:has(.preview:hover)>.inventory-rotate,.inventory-rotate:hover,.inventory-rotate:focus-visible{opacity:1;visibility:visible;transform:none;transition-delay:1s,1s,1s}.inventory-rotate:hover,.inventory-rotate:focus-visible{transition-delay:0s}}
.batch-image-frame>.uploaded-remove{position:absolute;top:6px;right:6px;left:auto;z-index:2;width:28px!important;height:28px;min-height:28px;padding:0;border:1px solid #ddd;border-radius:4px;background:#fffffff2;color:#a03624;font-size:20px;line-height:1;box-shadow:0 1px 4px #0002}.completed-upload .uploaded-remove{top:2px;right:2px;left:auto;width:26px!important;min-height:26px;font-size:20px}
.product-storefront-links{display:flex;flex-wrap:wrap;gap:10px 20px;margin:16px 0 24px}.product-storefront-links a{color:#1763b5}#product-form>#product-storefront-links+section{margin-top:20px}#product-form #image-list{margin-bottom:18px}#product-form #image-list figure{width:170px;min-width:170px}#product-form #image-list img{height:150px}
#business-use-history{margin:24px 0;padding:16px;border:1px solid #ddd;border-radius:2px}#business-use-history summary{cursor:pointer;font-weight:600}#business-use-history small{display:block;color:#70757a}#business-use-dialog{max-width:520px}
html.inventory-night,html.inventory-night body{background:#000}.inventory-night body{color:#ccc}.inventory-night :is(.product-card,.stats,.todo-panel,dialog){color:#263c33}.inventory-night .toolbar>label,.inventory-night main>.hint,.inventory-night .inventory-guidance,.inventory-night .intro p,.inventory-night .inventory-footer{color:#bbb}.inventory-night .intro .text-button,.inventory-night footer .text-button,.inventory-night #all-products-link{color:#8fc4ff}

#products[data-view="photos"] .product-card:not(:has(img[data-image-loaded])){background:transparent;border-color:transparent}
#products[data-view="photos"] .product-card:not(:has(img[data-image-loaded])) .preview{background:transparent}
#products[data-view="photos"] .preview img:not([data-image-loaded]){opacity:0}

.inventory-night #products[data-view="photos"] .product-card{border:0}
.inventory-night #products[data-view="photos"] .preview img{padding:0}

.inventory-night .todo-panel{background:#000;color:#ccc;border-color:#444}
.inventory-night .todo-panel a{color:#8fc4ff}

.inventory-night .stats{background:#000;color:#ccc;border-color:#444}
.inventory-night .stats div{border-color:#444}
.inventory-night .stats span{color:#bbb}
.inventory-night .stats .stat-link[href] strong{color:#8fc4ff}
.inventory-night .stats .stat-link[href]:hover{background:#161616}

#show-customers{text-decoration:none}

.batch-ai-progress{padding:20px;background:#fff;border:1px solid #ccc;border-left:5px solid #1763b5;border-radius:4px;margin-bottom:16px}
.batch-ai-progress strong{display:flex;align-items:center;gap:12px;font-size:20px}
.batch-ai-progress strong::before{content:"";flex:none;width:18px;height:18px;border:3px solid #ddd;border-top-color:#1763b5;border-radius:50%;animation:batch-ai-spin 1s linear infinite}
.batch-ai-progress p{margin:12px 0 0;line-height:1.5}
@keyframes batch-ai-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.batch-ai-progress strong::before{animation:none}}

.price-input-wrap{display:block;position:relative;width:100%;max-width:10em}
.price-input-wrap input{width:100%;min-width:0;padding-right:34px;box-sizing:border-box}
.price-input-currency{position:absolute;top:50%;transform:translateY(-50%);color:#666;font-weight:400;pointer-events:none;user-select:none;-webkit-user-select:none;white-space:nowrap}

.group-photo-dropzone{border:2px dashed #bbb;padding:20px;text-align:center;background:#fff;margin:16px 0;cursor:pointer}
.group-photo-dropzone.is-dragging,.group-photo-dropzone:focus-visible{border-color:#1763b5;background:#edf4fc}
@media(hover:none),(pointer:coarse){.group-photo-dropzone{display:none}}

.batch-preview-frame{display:flex;align-items:center;justify-content:center;height:200px;background:#eee;border-radius:8px;overflow:hidden;margin-bottom:16px}.batch-preview-frame .batch-group-preview{display:block;flex:none;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;background:transparent;margin-bottom:0}.batch-group-complete .batch-preview-frame{display:none}@media(min-width:1000px){.batch-preview-frame{height:360px}}

.batch-job-failure{padding:16px;border:1px solid #dab28b;border-radius:4px;background:#fff9f0;width:100%;overflow-wrap:anywhere}.batch-job-failure p{margin:8px 0}.batch-job-failure details{margin:12px 0}

#products[data-view="cards"] .preview img[data-image-role="market_listing"]{object-fit:contain}

.identical-quantity .hint{display:block;margin:4px 0 8px}.identical-quantity input{max-width:6em;padding-left:6px;padding-right:2px}

.batch-image-frame:has(>.uploaded-remove) .batch-photo-check{left:6px;right:auto}.uploaded-remove:hover{background:#fff1ed;border-color:#c99a8c}

.batch-variant[hidden]{display:none}

/* Select photos to split a pending item without changing its main image. */
.is-splitting .batch-group-gallery .quick-rotate,.is-splitting .batch-group-gallery .uploaded-remove{display:none}
.primary-photo-choice.split-selected{outline:3px solid #1769c2;outline-offset:2px;position:relative}
.primary-photo-choice.split-selected::after{content:"✓";position:absolute;top:8px;right:8px;background:#1769c2;color:white;padding:3px 7px;border-radius:4px}

/* Review imagery: one clear preview beside the source photos on wide screens. */
.batch-review-media{display:grid;gap:20px;margin-bottom:16px;align-items:start}
.batch-review-media .batch-preview-frame{width:100%;height:auto;aspect-ratio:1;background:transparent;border-radius:2px;margin:0;position:relative}
.batch-review-media .batch-preview-frame .batch-group-preview{max-width:100%;max-height:100%;border-radius:2px}
.batch-review-originals{min-width:0}
.batch-review-originals>.hint:empty{display:none}
.batch-review-originals>.actions{margin:0 0 12px}
@media(min-width:1000px){
 .batch-review-media{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:24px}
 .batch-review-originals .batch-group-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .batch-review-originals .batch-group-gallery .batch-photo{padding:6px}
 .batch-review-originals .batch-group-gallery .primary-photo-choice{min-height:0;aspect-ratio:1}
 .batch-review-originals .batch-group-gallery .batch-photo img{width:100%;height:100%;aspect-ratio:1;object-fit:contain}
}

.intake-basics{display:grid;gap:20px;max-width:700px;margin-bottom:24px}
#batch-workspace.intake-needs-basics>:not(#batch-defaults):not(#batch-to-list){display:none!important}

.editor-image-frame{position:relative;overflow:hidden;height:150px;display:flex;align-items:center;justify-content:center}
#product-form .editor-image-frame img{max-width:100%;max-height:100%;object-fit:contain}
.editor-image-rotate{position:absolute;right:4px;bottom:4px;z-index:2;width:34px;height:34px;padding:0;font-size:23px;line-height:1;border-radius:4px;background:#fffffff2;box-shadow:0 1px 4px #0002}

.sales-material{margin:0 0 12px;font-size:14px}.sales-place-choices{align-self:start;margin:0 0 15px}.sales-place-choices .check{gap:9px;margin:7px 0}.sales-place-choices input{width:18px;height:18px;flex:none;padding:0}.sales-both{display:inline-block;margin-top:6px;padding:0;border:0;border-radius:0;background:transparent;color:#1763b5;text-decoration:underline;font-size:13px}.sales-both:hover{color:#124a86}.sales-both:focus-visible{outline:2px solid #1763b5;outline-offset:4px}

.product-size{margin:0 0 8px;font-size:14px;font-weight:600}

#image-list .editor-image-upload{flex:0 0 170px;min-height:210px;margin:0 0 16px;border:1px dashed #aaa;border-radius:7px;background:#fafafa;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;text-align:center}#image-list .editor-image-upload .upload-plus{font-size:32px;font-weight:400}#image-list .editor-image-upload small{font-size:12px;font-weight:400}#image-list .editor-image-upload:hover,#image-list .editor-image-upload.is-dragging{border-color:#1763b5;background:#eff6ff}

#product-form .product-editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 0 20px}#product-form .product-editor-heading .product-storefront-links{margin:0;flex:1;padding-top:4px}#product-form .product-editor-heading #close-editor{margin-left:auto;flex:none;line-height:1;padding:0 4px}

.product-infrequent{border:1px solid var(--line);border-radius:7px;padding:14px 16px;margin:12px 0 20px}.product-infrequent>summary{cursor:pointer;font-weight:600}.product-infrequent[open]>summary{margin-bottom:18px}

.product-page-mode>header,.product-page-mode>main,.product-page-mode>footer{display:none}.product-page-mode #editor{display:block;box-sizing:border-box;width:min(100%,1000px);margin:0 auto;padding:28px;min-height:100svh;background:#fff;border:0;border-radius:0;color:#263c33}.product-page-mode{background:#f2f3f4}@media(max-width:600px){.product-page-mode #editor{padding:20px 16px;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}}

/* Row photographs meet all three outer edges of the card. */
#products[data-view="rows"] .product-card{align-items:stretch}
#products[data-view="rows"] .preview{position:relative;align-self:stretch;width:100%;height:auto;min-height:160px;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}
#products[data-view="rows"] .preview img{position:absolute;inset:0;width:100%;height:100%;padding:0;object-fit:cover}
#products[data-view="rows"] .card-content{padding-left:20px}
@media(max-width:600px){#products[data-view="rows"] .preview{min-height:112px}#products[data-view="rows"] .card-content{padding-left:12px}}
#products[data-view="rows"] .seller-summary{display:none}

.product-card .actions a.secondary{display:inline-block;padding:12px 17px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#365d49;font-weight:650;text-decoration:none}

#image-list figure.is-selected{border-color:#1763b5;box-shadow:inset 0 0 0 1px #1763b5}#image-list .image-selection-badge{display:flex;align-items:center;gap:5px;background:#edf5ff;color:#145399;border-radius:4px;padding:7px 8px;margin:8px 0;font-size:12px;font-weight:650;line-height:1.4}#image-list .image-select-action{width:100%;padding:8px;margin:8px 0;border:1px solid #ccd5df;border-radius:4px;background:#fff;color:#1763b5;font-size:12px;line-height:1.4;text-align:left}#image-list .image-select-action:hover{background:#edf5ff;border-color:#1763b5}#image-list .image-label-choice{font-size:12px;margin-top:10px}

#image-list .image-label-toggle{position:absolute;top:5px;right:5px;width:32px;height:32px;padding:6px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #d4d9df;border-radius:5px;color:#44515d;box-shadow:0 1px 4px #0002;opacity:0;transition:opacity .15s ease}#image-list figure:hover .image-label-toggle,#image-list figure:focus-within .image-label-toggle,#image-list .image-label-toggle.is-label{opacity:1}#image-list .image-label-toggle.is-label{background:#e4f0ff;border-color:#1763b5;color:#145399}#image-list .image-label-toggle:focus-visible{outline:2px solid #1763b5;outline-offset:2px}@media(hover:none),(pointer:coarse){#image-list .image-label-toggle{opacity:1}}
#image-list .editor-image-rotate{opacity:0;transition:opacity .15s ease}
#image-list .editor-image-frame:hover .editor-image-rotate,#image-list .editor-image-frame:focus-within .editor-image-rotate{opacity:1}
@media(hover:none),(pointer:coarse){#image-list .editor-image-rotate{opacity:1}}

#image-list>#product-pending{display:contents}#image-list .pending-image{border:1px dashed #1763b5;background:#f4f8ff}#image-list .pending-image figcaption{color:#1763b5;font-weight:600;margin:8px 0}
#product-form .party-fields{border:0;padding:0;border-radius:0;margin:20px 0}
#product-form .party-fields>legend{display:none}

.batch-photo-pick{cursor:pointer}.batch-photo-pick img{cursor:grab;-webkit-user-drag:element}.batch-photo-pick:focus-visible{outline:2px solid #1763b5;outline-offset:2px}

.card-location-editor{grid-column:1;position:relative;margin:12px 0;max-width:290px}.card-location-editor label{margin:0;font-size:12px}.card-location-editor input{margin:5px 0 0;font-size:13px;padding:9px 10px}.card-location-status{display:block;font-size:12px;margin-top:5px;color:#66736c}.card-location-editor .text-button{font-size:12px;padding:4px 0}

#product-form .product-owner-location{align-items:start;margin:18px 0 0}#product-form .product-owner-location .party-fields{margin:0;min-width:0}
.batch-image-frame>.quick-crop{position:absolute;bottom:6px;left:6px;z-index:2;display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:6px;background:#fffffff2;border:1px solid #ddd;box-shadow:0 1px 4px #0002;opacity:0;pointer-events:none;transition:opacity 120ms ease-out}
.batch-image-frame:hover>.quick-crop,.batch-image-frame:focus-within>.quick-crop,.batch-image-frame>.quick-crop:focus-visible{opacity:1;pointer-events:auto}
.is-splitting .batch-group-gallery .quick-crop{display:none}
@media(hover:none),(pointer:coarse){.batch-image-frame>.quick-crop{opacity:1;pointer-events:auto}}
#batch-photo-canvas{touch-action:none}

#image-list .image-remove{position:absolute;top:5px;left:5px;width:32px;height:32px;padding:6px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #ded5d3;border-radius:5px;color:#a63121;box-shadow:0 1px 4px #0002;opacity:0;transition:opacity .15s ease}#image-list figure:hover .image-remove,#image-list figure:focus-within .image-remove{opacity:1}#image-list .image-remove:focus-visible{outline:2px solid #1763b5;outline-offset:2px}@media(hover:none),(pointer:coarse){#image-list .image-remove{opacity:1}}

.pending-group-tools{grid-column:1/-1;text-align:center}.pending-group-select{position:absolute;left:6px;bottom:6px;padding:5px 9px}.pending-group-badge{position:absolute;left:6px;top:6px;padding:5px 8px;font-size:.8rem;background:#e4f0ff;color:#145399}#batch-pending .batch-photo.is-selected{outline:2px solid #1763b5}

#batch-pending .pending-group-select,#batch-pending .pending-group-badge{width:auto;min-height:32px}#batch-pending .pending-group-badge{max-width:calc(100% - 48px)}

.card-price-display{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;padding:0;text-align:left;cursor:text}.card-price-display:hover{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}.card-price .price-input-wrap{font-size:1rem;max-width:10em}.card-price .error-text{display:block;font-size:.8rem;font-weight:400}.card-price [hidden]{display:none!important}

#sales-rows .location-todo-row{position:relative}#sales-rows .sales-remove{position:absolute;right:10px;top:10px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:6px;border:1px solid #ded5d3;border-radius:5px;background:#fff;color:#a63121;opacity:0;transition:opacity .15s ease}#sales-rows article:hover .sales-remove,#sales-rows article:focus-within .sales-remove{opacity:1}@media(hover:none),(pointer:coarse){#sales-rows .sales-remove{opacity:1}}

.batch-image-frame>.batch-label-toggle{position:absolute;top:6px;right:42px;z-index:3;display:flex;align-items:center;gap:4px;width:auto!important;min-height:30px;height:30px;padding:5px 7px;border:1px solid #d4d9df;border-radius:5px;background:#fffffff2;color:#44515d;box-shadow:0 1px 4px #0002;opacity:0;pointer-events:none;transition:opacity .15s ease}.batch-label-toggle span{display:none}.batch-image-frame:hover>.batch-label-toggle,.batch-image-frame:focus-within>.batch-label-toggle,.batch-image-frame>.batch-label-toggle.is-label{opacity:1;pointer-events:auto}.batch-image-frame>.batch-label-toggle.is-label{background:#e4f0ff;border-color:#1763b5;color:#145399}.batch-label-toggle.is-label span{display:inline;font-size:11px;font-weight:600}.batch-label-toggle:focus-visible{outline:2px solid #1763b5;outline-offset:2px}@media(hover:none),(pointer:coarse){.batch-image-frame>.batch-label-toggle{opacity:1;pointer-events:auto}}

.customer-balance,.customer-earnings{margin:24px 0;padding:20px;border:1px solid #ddd;border-radius:6px;background:white}.customer-balance-views{display:flex;gap:8px}.customer-balance-views [aria-pressed=true]{background:#e4f0ff;border-color:#1763b5;color:#145399}.customer-balance-amount{font-size:2rem;font-weight:700;margin:16px 0}.customer-card-link{font-weight:600}

.sale-approval-review{margin:16px 0;padding:14px;border:1px solid #b7cbe2;background:#f5f9fe;border-radius:4px}.sale-approval-review p{margin:8px 0;white-space:pre-line}.sale-approval-review button{margin-top:8px}

#products[data-view="rows"] .sale-approval-review{grid-column:1/-1}

.editor-image-crop{position:absolute;left:5px;bottom:5px;z-index:2;width:34px;height:34px;padding:0;font-size:24px;border-radius:4px;background:#fff;opacity:0;transition:opacity .15s} .editor-image-frame:hover .editor-image-crop,.editor-image-frame:focus-within .editor-image-crop{opacity:1}@media(hover:none),(pointer:coarse){.editor-image-crop{opacity:1}} .product-crop-dialog{max-width: min(96vw,1050px);padding:20px;border:1px solid #ddd;border-radius:6px}.product-crop-dialog canvas{display:block;max-width:100%;max-height:65vh;width:auto;height:auto;touch-action:none;cursor:crosshair;margin:16px auto}.product-crop-dialog::backdrop{background:#0009}

.editor-image-crop{display:flex;align-items:center;justify-content:center}
.rental-fields{margin:20px 0}.rental-fields [hidden]{display:none!important}.rental-fields input[type=number]{max-width:10em}.rental-summary{font-weight:600}
