.seller-workspace{
  --seller-accent:var(--brand);
  --seller-bg:var(--paper);
  --seller-surface:var(--surface);
  --seller-ink:var(--ink);
  --seller-muted:var(--muted);
  --seller-line:var(--line);
  color:var(--seller-ink);
  background:var(--seller-bg);
  min-height:60vh;
}
.seller-workspace[data-seller-theme="dark"]{
  --seller-bg:#171d1a;
  --seller-surface:#222b26;
  --seller-ink:#eef3ed;
  --seller-muted:#a9b5ad;
  --seller-line:#39463f;
}
.seller-workspace[data-seller-theme="color"]{
  --seller-bg:#f3f5ef;
  --seller-surface:#fff;
  --seller-ink:#172b24;
  --seller-muted:#75817a;
}
.seller-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.seller-header h1{font-size:30px;line-height:1.12;margin:0}
.seller-header p{margin:7px 0 0;color:var(--seller-muted);font-size:13px}
.seller-theme-controls{display:flex;align-items:end;gap:9px;flex-wrap:wrap}
.seller-theme-controls .field{min-width:120px}
.seller-theme-controls .field label{color:var(--seller-muted)}
.seller-theme-controls input,.seller-theme-controls select,.seller-order input,.seller-order select,.seller-order textarea,.seller-create input,.seller-create select{background:var(--seller-surface);color:var(--seller-ink);border-color:var(--seller-line)}
.seller-theme-controls input[type=color]{height:38px;min-width:48px;padding:4px}
.seller-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--seller-line);background:var(--seller-surface);margin-bottom:18px}
.seller-metric{padding:14px 17px;border-right:1px solid var(--seller-line)}
.seller-metric:last-child{border:0}
.seller-metric span{display:block;color:var(--seller-muted);font-size:11px}
.seller-metric strong{display:block;margin-top:5px;font-size:21px}
.seller-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:21px 0 12px}
.seller-section-title h2{font-size:17px;margin:0}
.seller-order-list{display:grid;gap:12px}
.seller-order{background:var(--seller-surface);border:1px solid var(--seller-line);padding:16px;min-width:0}
.seller-order-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.seller-order-head h3{margin:0;font-size:15px}
.seller-order-head p,.seller-order-meta{margin:5px 0 0;color:var(--seller-muted);font-size:12px;overflow-wrap:anywhere}
.seller-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.seller-badge{background:color-mix(in srgb,var(--seller-accent) 12%,var(--seller-surface));color:var(--seller-accent);padding:5px 8px;font-size:10px;font-weight:700;white-space:nowrap}
.seller-badge.is-canceled{background:#fbe9e7;color:#a13932}
.seller-order-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.seller-order details{border-top:1px solid var(--seller-line);margin-top:13px;padding-top:11px}
.seller-order summary{cursor:pointer;color:var(--seller-accent);font-size:12px;font-weight:700}
.seller-order .form-grid{margin-top:12px}
.seller-private-note{border-top:1px solid var(--seller-line);margin-top:13px;padding-top:13px}
.seller-private-note h4{font-size:12px;margin:0 0 9px}
.seller-private-note .form-grid{margin:0}
.seller-private-note textarea{min-height:62px}
.seller-item-edit{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;gap:7px;align-items:end;margin:7px 0}
.seller-customer-feedback{border-top:1px solid var(--seller-line);margin-top:13px;padding-top:13px}
.seller-customer-feedback h4{font-size:12px;margin:0 0 7px}
.order-schedule{display:block;color:var(--muted);font-size:11px;margin:8px 0}
.checkout-schedule{display:grid;gap:7px;margin:16px 0 10px;padding:12px;background:var(--pale);border:1px solid var(--line);border-radius:5px}
.checkout-schedule label{font-size:12px;font-weight:700;color:var(--ink)}
.checkout-schedule select,.checkout-schedule input{width:100%;min-width:0;padding:10px 11px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:5px}
.legal-reading{border-top:1px solid var(--line);padding-top:10px;margin-top:8px}
.legal-reading summary{cursor:pointer;font-size:12px;font-weight:700;color:var(--brand)}
.legal-reading section{max-height:180px;overflow:auto;padding:8px 4px;color:var(--muted);font-size:11px;line-height:1.55}
.legal-reading h3{margin:8px 0 4px;color:var(--ink);font-size:12px}
.legal-reading p{margin:4px 0 8px}
.legal-accept{display:flex;align-items:flex-start;gap:8px;margin-top:8px;font-size:12px;line-height:1.45}
.legal-accept input{flex:0 0 auto;margin:2px 0 0}
.delivery-settings{margin:20px 0}
.delivery-settings>h2{font-size:17px;margin:0 0 12px}
.delivery-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.delivery-settings .panel{min-width:0}
.delivery-settings .panel p{font-size:12px;color:var(--muted);line-height:1.5}
.delivery-setting-list{display:grid;gap:8px}
.delivery-setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:10px 0}
.delivery-setting-row>div{min-width:0;overflow-wrap:anywhere}
.delivery-setting-row strong,.delivery-setting-row small{display:block}
.delivery-setting-row strong{font-size:12px}
.delivery-setting-row small{font-size:11px;color:var(--muted);margin-top:4px}
.seller-order .permanent-delete{margin-left:auto;background:transparent;color:#b6423e;border:1px solid currentColor}
html[data-theme="midnight"] .checkout-schedule{background:#26354b;border-color:var(--line)}
html[data-theme="midnight"] .checkout-schedule select,html[data-theme="midnight"] .checkout-schedule input{color-scheme:dark;background:#1b2638;color:var(--ink);border-color:var(--line)}
.seller-stars{color:#bd791b;letter-spacing:1px;font-size:14px}
.seller-order .primary-btn{background:var(--seller-accent)}
.seller-order .small-btn{background:color-mix(in srgb,var(--seller-accent) 9%,var(--seller-surface));color:var(--seller-ink)}
.seller-order button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.seller-create{background:var(--seller-surface);border:1px solid var(--seller-line);padding:17px;margin-bottom:19px}
.seller-create h2{font-size:16px;margin:0 0 13px}
.seller-empty{padding:24px;text-align:center;border:1px dashed var(--seller-line);color:var(--seller-muted);font-size:13px}
.review-form{display:grid;grid-template-columns:minmax(125px,.35fr) minmax(0,1fr) auto;align-items:end;gap:8px;margin:12px 0 15px;padding:13px;background:var(--pale)}
.review-form .field{min-width:0}
.review-form .field label{color:var(--muted)}
.review-summary{padding:10px 0;color:var(--muted);font-size:12px}
.image-import-preview{display:block;width:88px;height:88px;object-fit:cover;border:1px solid var(--line);border-radius:4px;margin-top:8px}
.image-import-help{font-size:11px;color:var(--muted)}
.account-search{max-width:420px;margin:0 0 16px}
.account-role{min-width:132px}
.account-owner{font-size:10px;font-weight:700;color:var(--brand)}
.category-admin-list{display:grid;gap:8px}
.category-admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);background:var(--surface)}
.owner-warning{padding:12px 14px;margin-bottom:16px;border-left:3px solid #d38b4c;background:#fff2dc;color:#67461f;font-size:12px;line-height:1.55}
html[data-theme="midnight"] .owner-warning{background:#3a3023;color:#f0d7b1}
html[data-theme="midnight"] .category-admin-row{background:var(--surface);border-color:var(--line)}
@media(max-width:720px){.category-admin-row{align-items:flex-start;flex-direction:column}.account-role{min-width:0;width:100%}}
.sidebar{position:static;height:auto;min-height:calc(100vh - 74px);overflow:visible;align-self:stretch}
.sidebar-scroll{flex:1 0 auto;min-height:0;overflow:visible;display:grid;align-content:start;gap:24px}
.admin-item.account-row{grid-template-columns:minmax(0,1fr) auto;gap:16px}
.account-row>div:first-child{min-width:0;overflow-wrap:anywhere}
.account-row .item-actions{justify-content:flex-end;align-items:center;flex-wrap:wrap}
.account-row .item-actions button{white-space:nowrap}
.modal{max-height:calc(100dvh - 36px);overflow-y:auto;width:min(580px,100%)}
.sidebar .side-bottom{margin-top:auto;flex:0 0 auto}
.product-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left}
.product-open:hover h3{color:var(--brand)}
.product-image-open{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent}
.product-image-open .product-image{width:100%;height:100%;object-fit:cover}
.product-image-wrap .tag{z-index:1;pointer-events:none}
.product-image-wrap .quick-add{z-index:2}
.product-rating{display:flex;align-items:center;gap:5px;color:#a86a13;font-size:11px;margin:6px 0}
.product-rating .seller-stars{font-size:12px}
.product-detail-image{width:100%;max-height:min(42vh,360px);object-fit:cover;border-radius:4px;background:var(--pale)}
.product-detail-meta{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;margin:10px 0}
.product-detail-description{color:var(--muted);line-height:1.7;font-size:13px}
.product-review-list{display:grid;gap:10px;margin-top:12px;max-height:230px;overflow:auto}
.product-review{border-top:1px solid var(--line);padding-top:10px}
.product-review-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.product-review-head strong{font-size:12px}
.product-review time{font-size:10px;color:var(--muted)}
.product-review p{font-size:12px;line-height:1.6;color:var(--muted);margin:7px 0 0}
.product-review-form{display:grid;gap:10px;margin:12px 0}
.product-review-form .field textarea{min-height:70px}
.product-review-empty{font-size:12px;color:var(--muted);padding:10px 0}
.seller-order-head+details{margin-top:13px}
@media(max-width:720px){
  .sidebar{position:static;height:auto;min-height:0;overflow:visible}
  .sidebar-scroll{overflow:visible}
  .admin-item.account-row{grid-template-columns:minmax(0,1fr)}
  .account-row .item-actions{grid-column:1;justify-content:flex-start}
  .mobile-nav{gap:0;justify-content:space-between}
  .mobile-nav .nav-link{flex:1 1 0;min-width:0;padding:5px 2px}
  .mobile-nav .nav-label{white-space:nowrap}
  .seller-header{display:grid}
  .seller-header h1{font-size:26px}
  .seller-theme-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .seller-theme-controls .field{min-width:0}
  .seller-metric{padding:11px 9px}
  .seller-metric strong{font-size:17px}
  .seller-order{padding:13px}
  .seller-order-head{display:grid}
  .seller-badges{justify-content:flex-start}
  .seller-order .form-grid{grid-template-columns:minmax(0,1fr)}
  .seller-order .field.full{grid-column:auto}
  .seller-item-edit{grid-template-columns:minmax(0,1fr) 72px}
  .seller-item-edit button{grid-column:1/-1}
  .seller-create .form-grid{grid-template-columns:minmax(0,1fr)}
  .seller-create .field.full{grid-column:auto}
  .delivery-settings-grid{grid-template-columns:minmax(0,1fr)}
  .delivery-setting-row{align-items:flex-start}
  .review-form{grid-template-columns:minmax(0,1fr)}
}