nav{display:flex;align-items:center;gap:20px}
nav a{text-decoration:none;font-size:13px}
.test-banner{display:flex;gap:18px;padding:12px 16px;border:1px solid var(--theme-border,#cbd5e1);border-radius:12px;color:var(--theme-accent,#2563eb);font-size:11px;letter-spacing:1px;background:var(--theme-surface-alt,#eef3f9)}
.test-banner span{letter-spacing:0}
.gallery-hero{display:flex;align-items:center;justify-content:space-between;padding:40px 0 32px}
.gallery-hero h1{font-size:40px;line-height:1.25;letter-spacing:-1.2px}
.hero-cubes{position:relative;width:220px;height:170px;background:var(--theme-surface-alt,#eef3f9);border-radius:14px;transform:none}
.hero-cubes i,.hero-cubes b{position:absolute;width:62px;height:62px;box-shadow:12px 12px 0 var(--theme-border,#cbd5e1);background:var(--theme-surface,#fff);left:48px;top:36px}
.hero-cubes b{width:44px;height:44px;left:126px;top:94px;background:var(--theme-accent,#2563eb);box-shadow:8px 8px 0 var(--theme-border,#cbd5e1)}
.hero-cubes span{position:absolute;right:30px;top:17px;font-size:36px;color:var(--theme-accent,#2563eb)}
.toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid var(--theme-border,#cbd5e1);padding-bottom:20px}
.tabs{display:flex;align-items:center;gap:18px}
.tabs span{font-size:12px;color:var(--theme-muted,#52637a)}
.selected{background:var(--theme-primary,#2563eb);color:var(--theme-on-primary,#fff)}
.search{display:flex;align-items:center;gap:8px}
.search input{border:1px solid var(--theme-border,#cbd5e1);border-radius:10px;padding:12px;background:var(--theme-surface,#fff);width:210px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:24px 0}
.product-card{padding:0;display:block;text-align:left;background:var(--theme-surface,#fff);border:1px solid var(--theme-border,#cbd5e1);border-radius:12px;overflow:hidden}
.product-card img{width:100%;height:200px;object-fit:contain;background:var(--theme-surface-alt,#eef3f9);display:block}
.product-card .body{padding:18px}
.product-card h2{margin:0 0 10px;font-size:16px}
.product-card .meta{display:flex;justify-content:space-between;align-items:center;font-size:12px}
.product-card strong{font-size:15px}
.empty-state{text-align:center;padding:60px 16px 70px;background:var(--theme-surface,#fff);border:1px dashed var(--theme-border,#cbd5e1);border-radius:14px;margin:24px 0}
.empty-art{font-size:66px;color:var(--theme-muted,#52637a)}
.empty-art span{font-size:26px;vertical-align:top}
.empty-state h2{font-size:20px}
.create-link{display:inline-block;margin-top:10px;text-decoration:none;font-size:13px}
.seller{margin-top:45px}
.seller summary{font-size:14px}
.seller summary span{font-size:11px;color:var(--theme-muted,#52637a);margin-left:12px}
.seller form{max-width:680px}
.seller form>label,.form-pair label{display:flex;flex-direction:column;gap:8px;margin:15px 0;font-size:12px}
.seller input:not([type=checkbox]),.seller select,.seller textarea{padding:12px;border:1px solid var(--theme-border,#cbd5e1);border-radius:10px;background:var(--theme-input,#fff);width:100%}
.form-pair{display:grid;grid-template-columns:2fr 1fr;gap:18px}
.consent{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:8px;font-size:12px;line-height:1.7}
.consent input{width:auto;margin:4px 0 0;padding:0;flex:0 0 auto}
#sourcePreview{width:100%;max-height:270px;object-fit:contain;background:var(--theme-surface-alt,#eef3f9)}
#galleryStatus:empty,#publishStatus:empty,#purchaseStatus:empty{display:none}
#productDialog{width:min(930px,94vw);max-width:930px;padding:28px}
.close{position:absolute;right:12px;top:10px}
.product-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:30px}
.product-visual,.product-info{min-width:0}
#adminEdit,#adminDelete{display:block;margin-top:14px}
#adminEdit{color:var(--theme-accent,#2563eb)}
#adminDelete{color:var(--theme-error,#b42336)}
#adminEditNote{margin:7px 0 0;color:var(--theme-muted,#52637a)}
#deleteStatus:empty{display:none}
.product-visual{background:var(--theme-surface-alt,#eef3f9);border-radius:12px;align-self:center;padding:12px}
.product-visual img{width:100%;display:block}
.product-visual p{text-align:center;font-size:11px}
.product-info{padding:25px 0}
.product-info h2{font-size:25px;margin:12px 0 18px}
.product-info>strong{display:block;font-size:26px;margin:24px 0}
.product-info .primary{width:100%;margin-top:14px}
#detailDescription{white-space:pre-wrap}
.error{color:var(--theme-error,#b42336)!important}
[hidden]{display:none!important}
@media(max-width:720px){.gallery-hero h1{font-size:32px}
.hero-cubes{display:none}
.gallery-grid{grid-template-columns:repeat(2,1fr)}
.toolbar{align-items:flex-start;flex-direction:column}
.product-layout{grid-template-columns:1fr}
.product-card img{height:160px}
.form-pair{grid-template-columns:1fr}
.test-banner{flex-direction:column;gap:5px}
nav{gap:8px}
}
@media(max-width:420px){.gallery-grid{grid-template-columns:1fr}
}

#productDialog{max-height:90vh;overflow:auto}

#reportDialog{width:min(540px,94vw)}
#reportForm label{display:block;font-size:12px;margin:18px 0}
#reportForm input,#reportForm textarea{display:block;width:100%;margin-top:8px;border:1px solid var(--theme-border,#cbd5e1);border-radius:10px;padding:12px}
#reportForm textarea{min-height:130px}



.rights-review{margin-top:20px;border-top:1px solid var(--theme-border,#cbd5e1);padding-top:12px}
.rights-review summary{cursor:pointer;font-weight:700}
.rights-review form{display:grid;gap:12px;margin-top:12px}
.rights-review label{display:grid;gap:6px}
.rights-review textarea{width:100%;min-height:90px}
.rights-review select{width:100%}


/* Gallery controls retain distinct, readable states in either theme. */
.product-card{color:var(--theme-text,#172b4d);box-shadow:none;transition:border-color .15s ease}

.product-card:hover:not(:disabled){border-color:var(--theme-accent,#2563eb)}

.product-card .body{background:var(--theme-surface,#fff)}

.product-card .meta,.product-visual p{color:var(--theme-muted,#52637a)}

.search input,.seller input:not([type=checkbox]),.seller select,.seller textarea,#reportForm input,#reportForm textarea{background:var(--theme-input,#fff);color:var(--theme-text,#172b4d)}

.gallery-hero p{color:var(--theme-muted,#52637a)}

#productDialog,#reportDialog{background:var(--theme-surface,#fff);color:var(--theme-text,#172b4d);border:1px solid var(--theme-border,#cbd5e1);border-radius:14px}

button:disabled,button:disabled:hover{opacity:1;cursor:not-allowed;background:var(--theme-surface-alt,#eef3f9);color:var(--theme-muted,#52637a);border-color:var(--theme-border,#cbd5e1);box-shadow:none}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--theme-focus,#2563eb);outline-offset:3px}

@media(max-width:720px){#productDialog{padding:24px 18px}
.gallery-hero{padding:28px 0 24px}
.tabs{gap:10px;flex-wrap:wrap}
.search{width:100%}
.search input{min-width:0;flex:1}
.gallery-grid{gap:14px}
}
