/* AWEBO Design Studio — dedicated professional dark workspace */
.brand-studio{--accent:#7B41E7;--accent-hover:#6530D4;--studio-bg:var(--bg,#070708);--studio-panel:var(--surface,#111216);--studio-panel-2:var(--surface-soft,#181920);--studio-panel-3:var(--surface-strong,#20222b);--studio-line:var(--line,#292b35);--studio-line-strong:var(--line-strong,#3d4050);--studio-text:var(--ink,#f4f4f6);--studio-muted:var(--muted,#a4a7b5);--studio-accent:#7B41E7;--studio-accent:var(--accent,#7B41E7);--studio-accent-hover:var(--accent-hover,#6530D4);position:fixed!important;inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:0!important;margin:0!important;border:none!important;border-radius:0!important;background:var(--studio-bg)!important;color:var(--studio-text)!important;overflow:hidden!important;box-shadow:none!important;z-index:950!important;font:13px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:is([data-theme="day"], .awebo-day-theme) .brand-studio,
[data-theme="day"] .brand-studio,
.brand-studio[data-theme="day"],
html[data-theme="day"] .brand-studio,
body[data-theme="day"] .brand-studio,
body.brand-studio-route[data-theme="day"] .brand-studio {
  --studio-bg: var(--bg, #F6F1EB);
  --studio-panel: var(--surface, #FFFFFF);
  --studio-panel-2: var(--surface-soft, #F5F4F0);
  --studio-panel-3: var(--surface-strong, #EBE8E1);
  --studio-line: var(--line, #DED5CE);
  --studio-line-strong: var(--line-strong, #C9BDB5);
  --studio-text: var(--ink, #171312);
  --studio-muted: var(--muted, #6E625D);
  --studio-accent: #7B41E7;
  --studio-accent-hover: #6530D4;
}
.brand-studio::backdrop{display:none!important;background:transparent!important;backdrop-filter:none!important}.brand-studio *{box-sizing:border-box}.brand-studio [hidden]{display:none!important}
/* Restrict document scroll-lock strictly to when the full-screen Design Studio editor is open */
body.design-studio-open,
body:has(dialog.brand-studio[open]) {
  overflow: hidden !important;
}
/* Keep every workspace pane scrollable without exposing native gray scrollbars. */
.brand-studio,.brand-studio *{scrollbar-width:none;-ms-overflow-style:none}.brand-studio::-webkit-scrollbar,.brand-studio *::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
.brand-studio button{min-height:36px;padding:8px 12px;border:1px solid var(--studio-line);border-radius:8px;background:var(--studio-panel-2);color:var(--studio-text);font:inherit;font-weight:650;cursor:pointer;transition:all .14s ease}.brand-studio button:hover{background:var(--studio-panel-3);border-color:var(--studio-line-strong)}.brand-studio button.active,.brand-studio [data-apply]{background:var(--studio-accent);border-color:var(--studio-accent);color:#fff}.brand-studio button:disabled{opacity:.45;cursor:not-allowed;color:var(--studio-muted);background:var(--studio-panel);border-color:var(--studio-line)}
.brand-studio input:not([type=checkbox]):not([type=file]):not([type=color]):not([type=range]),.brand-studio select,.brand-studio textarea{display:block;width:100%;min-width:0;padding:9px 10px;border:1px solid var(--studio-line);border-radius:8px;background:var(--studio-panel);color:var(--studio-text);font:inherit}.brand-studio input[type=range]{accent-color:var(--studio-accent)}.brand-studio label{display:block;margin-bottom:12px;color:var(--studio-muted);font-size:11px;font-weight:650}.brand-studio h2,.brand-studio h3{margin:0;color:var(--studio-text);letter-spacing:-.02em}.brand-studio h3{margin-bottom:10px;font-size:11px;color:var(--studio-text);font-weight:750;text-transform:uppercase;letter-spacing:.08em}
.studio-heading{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;height:58px;padding:0 16px;border-bottom:1px solid var(--studio-line);background:var(--studio-panel);color:var(--studio-text)}
.studio-back-btn{display:flex;align-items:center;gap:7px;padding:7px 12px;background:transparent!important;border:1px solid var(--studio-line)!important;border-radius:8px!important;color:var(--studio-text)!important;font-size:12px!important;font-weight:650!important;cursor:pointer}
.studio-back-btn:hover{background:var(--studio-panel-2)!important;border-color:var(--studio-line-strong)!important}
.studio-header-title{display:flex;align-items:center;gap:10px;margin-right:auto}
.studio-header-title h2{font-size:17px!important;font-weight:760!important;color:var(--studio-text)!important}
.studio-header-title h2 span{color:var(--studio-accent)}
.studio-header-tag{display:inline-block;padding:2px 8px;border-radius:5px;background:rgba(123,65,231,.16);border:1px solid rgba(123,65,231,.35);color:var(--studio-accent);font-size:11px;font-weight:600}
.studio-header-actions{display:flex;align-items:center;gap:8px}
.studio-header-actions button[data-draft]{padding:8px 14px!important;border-radius:8px!important;background:var(--studio-panel-2)!important;border:1px solid var(--studio-line)!important;color:var(--studio-text)!important;font-size:12px!important;font-weight:650!important}
.studio-header-actions button[data-draft]:hover{background:var(--studio-panel-3)!important;border-color:var(--studio-line-strong)!important;color:var(--studio-text)!important}
.studio-header-actions button[data-apply]{padding:8px 18px!important;border-radius:8px!important;background:var(--studio-accent)!important;border:1px solid var(--studio-accent)!important;color:#fff!important;font-size:12px!important;font-weight:700!important;box-shadow:0 2px 10px rgba(123,65,231,.35)!important}
.studio-header-actions button[data-apply]:hover{background:var(--studio-accent-hover)!important;border-color:var(--studio-accent-hover)!important}

/* Studio Header Export PNG Action & Anchored Dropdown */
.studio-header-export-wrap {
  position: relative;
  display: inline-flex;
}
.studio-header-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 13px !important;
  border-radius: 8px !important;
  background: var(--studio-panel-2, #181920) !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  color: var(--studio-text, #f5f4ef) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 140ms ease !important;
  box-shadow: none !important;
}
.studio-header-export-btn:hover,
.studio-header-export-btn.is-active,
.studio-header-export-btn[aria-expanded="true"] {
  background: var(--studio-panel-3, #22232c) !important;
  border-color: var(--studio-line-strong, #3a3d4c) !important;
  color: #ffffff !important;
}
.studio-header-export-btn .studio-caret {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  color: var(--studio-muted, #9496a1);
  transition: transform 140ms ease;
}
.studio-header-export-btn[aria-expanded="true"] .studio-caret {
  transform: rotate(180deg);
}

.studio-export-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 215px;
  max-width: 270px;
  background: var(--studio-panel-2, #181920);
  border: 1px solid var(--studio-line, #292b35);
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  padding: 6px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: studioDropdownFadeIn 130ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes studioDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.studio-export-dropdown[hidden] {
  display: none !important;
}
.studio-export-dropdown-header {
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--studio-muted, #9496a1);
  padding: 5px 8px 5px;
  border-bottom: 1px solid var(--studio-line, #292b35);
  margin-bottom: 3px;
}
.studio-export-zone-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.studio-export-menu-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  color: var(--studio-text, #f5f4ef) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: background 120ms ease, color 120ms ease !important;
  box-shadow: none !important;
}
.studio-export-menu-item:hover:not([disabled]),
.studio-export-menu-item:focus:not([disabled]) {
  background: var(--studio-panel-3, #22232c) !important;
  color: #ffffff !important;
  outline: none !important;
}
.studio-export-menu-item[disabled] {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}
.studio-export-meta-pill {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--studio-muted, #9496a1);
}
.studio-export-menu-item:hover:not([disabled]) .studio-export-meta-pill {
  color: #f5f4ef;
  background: rgba(123, 65, 231, 0.25);
}
.studio-export-menu-item[disabled] .studio-export-meta-pill {
  background: transparent;
  color: var(--studio-muted, #9496a1);
}
.studio-nav-horizontal{display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 16px;border-bottom:1px solid var(--studio-line);background:var(--studio-panel);user-select:none;z-index:9}
.studio-nav-horizontal .studio-nav-primary,.studio-nav-horizontal .studio-nav-secondary{display:flex;flex-direction:row;align-items:center;gap:6px;border:none;padding:0}
.studio-nav-horizontal button{display:inline-flex;flex-direction:row;align-items:center;gap:6px;height:32px;min-height:32px;padding:0 10px!important;border-radius:8px!important;border:1px solid transparent!important;background:transparent!important;color:var(--studio-muted)!important;font-size:11.5px;font-weight:600;cursor:pointer;transition:all .14s ease;white-space:nowrap;box-shadow:none!important}
.studio-nav-horizontal button:hover{background:var(--studio-panel-2)!important;color:var(--studio-text)!important;border-color:var(--studio-line)!important}
.studio-nav button.active,.studio-nav-horizontal button.active{background:rgba(123,65,231,.16)!important;border-color:rgba(123,65,231,.45)!important;color:var(--studio-text)!important}
.studio-nav-horizontal .studio-nav-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:inherit}
.studio-nav-horizontal .studio-nav-label{display:inline;font-size:11.5px;line-height:1}
.studio-nav-horizontal .studio-nav-badge{display:inline-block;padding:1px 5px;border-radius:4px;font-size:9px;font-weight:700;text-transform:uppercase;background:rgba(123,65,231,.18);color:var(--studio-accent)}
.studio-nav{display:flex;flex-direction:row;justify-content:space-between;gap:6px;padding:6px 16px;border-bottom:1px solid var(--studio-line);background:var(--studio-panel);user-select:none}
.studio-nav-primary,.studio-nav-secondary{display:flex;flex-direction:row;align-items:center;gap:6px}
.studio-layout{display:grid;grid-template-columns:310px minmax(0,1fr);height:calc(100dvh - 58px - 44px);overflow:hidden}
.studio-sidebar{display:flex;flex-direction:column;height:100%;overflow-y:auto;overflow-x:hidden;padding:16px 14px;border-right:1px solid var(--studio-line);background:var(--studio-panel);color:var(--studio-text)}
.studio-tab-content{flex:1 0 auto}
.studio-tab-content>section{margin-bottom:8px}
.studio-tab-content>section[hidden]{display:none!important}
.studio-drop{display:flex!important;min-height:140px;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:16px!important;border:1px dashed #3c3e35!important;border-radius:12px!important;background:#141512!important;text-align:center;cursor:pointer;outline:none!important;transition:all .15s ease!important}
.studio-drop:hover{border-color:var(--studio-accent)!important;background:#1a1b16!important}
.studio-drop.over{border-color:var(--studio-accent)!important;background:rgba(123,65,231,.14)!important}
.studio-drop-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:rgba(123,65,231,.14);color:#a97bf9}
.studio-drop strong{font-size:11px;color:#fff;line-height:1.4}
.studio-drop small{font-size:9px;color:var(--studio-muted)}
.studio-hint{margin:8px 0;color:var(--studio-muted);font-size:11px;line-height:1.5}
.studio-layer-section{padding-top:4px}
#studio-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;max-height:420px;overflow-y:auto;padding-right:2px}
#studio-assets button{min-width:0;padding:5px;font-size:8px;overflow:hidden}
#studio-assets img{width:100%;height:54px;object-fit:contain;background:#121310;border:1px solid #282924;border-radius:5px}
#studio-assets span{display:none!important}
.studio-asset-item{position:relative!important;display:flex!important;flex-direction:column!important;width:100%!important}
.studio-asset-item .studio-asset-thumb-btn,#studio-assets button.studio-asset-thumb-btn{position:relative!important;width:100%!important;aspect-ratio:1/1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:6px 4px!important;border:1px solid #2d2f28!important;border-radius:8px!important;background:#181916!important;overflow:hidden!important;cursor:pointer!important;transition:all .14s ease!important}
.studio-asset-item .studio-asset-thumb-btn:hover{background:#252721!important;border-color:var(--studio-accent)!important}
.studio-asset-delete,.studio-asset-delete-btn{position:absolute!important;top:4px!important;right:4px!important;width:22px!important;height:22px!important;min-height:auto!important;padding:0!important;border-radius:50%!important;background:rgba(20,21,18,.94)!important;border:1px solid #4a4c40!important;color:#ffffff!important;font-size:13px!important;font-weight:700!important;display:grid!important;place-items:center!important;cursor:pointer!important;z-index:5!important;opacity:1!important;box-shadow:0 1px 4px rgba(0,0,0,.5)!important;transition:all .14s ease!important}
.studio-asset-delete:hover,.studio-asset-delete-btn:hover{background:#b83b35!important;border-color:#b83b35!important;color:#ffffff!important}
.studio-inspector{display:flex;flex-direction:column;height:100%;overflow-y:auto;overflow-x:hidden;padding:16px 14px;border-left:1px solid var(--studio-line);background:var(--studio-panel);gap:14px}
.studio-inspector-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid var(--studio-line)}
.studio-inspector-head h3{margin:0;font-size:11px;font-weight:750;letter-spacing:.08em;color:#e2e1d8;text-transform:uppercase}
.studio-inspector-count{display:inline-block;padding:2px 7px;border-radius:999px;background:#23251e;border:1px solid #36382f;color:#c9c7be;font-size:10px;font-weight:700}
.studio-inspector-title{margin:0 0 8px;font-size:11px;font-weight:700;color:#cfd0c7;text-transform:uppercase;letter-spacing:.05em}
.studio-inspector-size-row{display:flex;flex-direction:column;gap:6px;margin-top:12px;font-size:11px;font-weight:600;color:#c9c7be}
.studio-inspector-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 14px;border:1px dashed #34362d;border-radius:12px;background:#131411;gap:10px}
.studio-inspector-empty-icon{width:36px;height:36px;display:grid;place-items:center;color:#6b6e61;border-radius:50%;background:#1b1c17}
.studio-inspector-empty strong{color:#e2e1d8;font-size:12px}
.studio-inspector-selected{display:flex;flex-direction:column;gap:12px}
.studio-inspector-layer-header{display:flex;flex-direction:column;gap:4px;padding:9px;border-radius:8px;background:#131411;border:1px solid #292b23}
.studio-inspector-badge{align-self:flex-start;padding:2px 6px;border-radius:4px;background:rgba(123,65,231,.18);border:1px solid rgba(123,65,231,.4);color:#d0b8ff;font-size:9.5px;font-weight:700;text-transform:uppercase}
.studio-inspector-elem-name{color:#ffffff;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-inspector-zone-name{color:var(--studio-muted);font-size:10px}
.studio-inspector-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.studio-inspector-stat{display:flex;flex-direction:column;gap:2px;padding:6px 8px;border-radius:6px;background:#131411;border:1px solid #23251e}
.studio-inspector-stat .stat-label{font-size:9px;color:var(--studio-muted)}
.studio-inspector-stat .stat-val{font-size:11px;font-weight:700;color:#ffffff}
.studio-inspector-control-group{display:flex;flex-direction:column;gap:6px}
.studio-inspector-group-label{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#9b9d92}
.studio-inspector-btn-row{display:flex;flex-wrap:wrap;gap:5px}
.studio-inspector-btn{flex:1 1 calc(50% - 5px);min-height:30px!important;padding:5px 8px!important;font-size:10.5px!important;border-radius:6px!important}
.studio-inspector-danger-group{margin-top:6px}
.studio-inspector-delete-btn{width:100%;min-height:32px!important;padding:6px 10px!important;border-radius:7px!important;background:#241617!important;border:1px solid #5a2727!important;color:#ff9898!important;font-size:11px!important;font-weight:700!important;cursor:pointer}
.studio-inspector-delete-btn:hover{background:#3b1b1c!important;border-color:#7f3133!important;color:#ffffff!important}
.studio-layer{display:flex;align-items:center;gap:3px;margin:5px 0;padding:3px;border:1px solid var(--studio-line);border-radius:8px;background:#141512;transition:all .14s ease}
.studio-layer.active{border-color:var(--studio-accent);background:rgba(123,65,231,.14)}
.studio-layer button{min-width:24px;min-height:26px;padding:2px 4px;border:0;background:transparent;font-size:10px;color:#dcdad2}
.studio-layer button:hover{background:#23251e;color:#fff}
.studio-layer button:first-child{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.studio-layer small{display:block;color:var(--studio-muted);font-size:9px}

.studio-ai-status-card{padding:12px;border-radius:10px;background:#131411;border:1px solid #2c2e26;margin-bottom:12px}
.studio-ai-badge{display:inline-block;padding:2px 7px;border-radius:4px;background:#23251e;border:1px solid #3c3e34;color:#dcdad2;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:7px}
.studio-ai-status-card p{margin:0;color:var(--studio-muted);font-size:11px;line-height:1.5}
.studio-ai-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.studio-ai-tags span{padding:3px 7px;border-radius:5px;background:#191a16;border:1px solid #2c2e26;color:#a6a89c;font-size:9.5px}
.studio-product-info-box{padding:12px;border-radius:10px;background:#131411;border:1px solid #2c2e26;margin-bottom:12px}
.studio-product-info-row{display:flex;justify-content:space-between;align-items:center;padding:5px 0;font-size:11px;border-bottom:1px solid #1f211b}
.studio-product-info-row:last-child{border-bottom:none}
.studio-product-info-row span{color:var(--studio-muted)}
.studio-product-info-row strong{color:#ffffff}
.studio-product-color-group{margin-top:10px}
.studio-product-color-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.studio-product-chip{padding:5px 10px!important;min-height:auto!important;border-radius:7px!important;font-size:10.5px!important;background:#191b16!important;border:1px solid #30322a!important;color:#e2e1d8!important}
.studio-product-chip:hover{background:#23251e!important;border-color:#484a3e!important}
.studio-product-chip.active{background:var(--studio-accent)!important;border-color:var(--studio-accent)!important;color:#fff!important}
.studio-mockup-grid{display:flex;flex-direction:column;gap:10px}
.studio-mockup-card{padding:10px;border-radius:9px;background:#131411;border:1px solid #2c2e26;display:flex;flex-direction:column;gap:7px}
.studio-mockup-card-header{display:flex;justify-content:space-between;align-items:center;font-size:10.5px;font-weight:700;color:#ffffff;text-transform:uppercase;letter-spacing:.04em}
.studio-mockup-preview-wrap{display:flex;align-items:center;justify-content:center;height:140px;background:#bdbdb6;border-radius:7px;overflow:hidden;position:relative}
.studio-mockup-preview-wrap canvas{max-width:100%;max-height:100%;object-fit:contain}
.studio-mockup-actions{display:flex;gap:5px}
.studio-mockup-actions button{flex:1;min-height:28px!important;padding:4px 6px!important;font-size:10px!important;font-weight:650!important}
.studio-help-card,
.studio-help-list{display:flex!important;flex-direction:column!important;gap:14px!important}
.studio-help-item{padding:13px 15px!important;border-radius:9px!important;background:var(--studio-panel-2,#181920)!important;border:1px solid var(--studio-line,#292b35)!important;box-sizing:border-box!important;transition:border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1)!important}
.studio-help-item:hover{border-color:rgba(123,65,231,.45)!important;background:#1c1a26!important;box-shadow:0 4px 14px rgba(123,65,231,.12)!important}
.studio-help-item strong{display:block!important;font-size:12px!important;font-weight:700!important;color:#ffffff!important;margin-bottom:5px!important;letter-spacing:-0.01em!important}
.studio-help-item p{margin:0!important;font-size:11px!important;color:var(--studio-muted,#9496a1)!important;line-height:1.5!important}
.studio-help-item b{color:#f4f4f6!important;font-weight:650!important}
.studio-help-mascot-wrap{display:flex!important;justify-content:center!important;align-items:center!important;padding:20px 0 10px!important;margin-top:10px!important;pointer-events:none!important;user-select:none!important}
.studio-help-mascot{display:block!important;height:96px!important;width:auto!important;max-width:100px!important;object-fit:contain!important;opacity:0.88!important;filter:drop-shadow(0 4px 12px rgba(0,0,0,0.25))!important;pointer-events:none!important;transition:opacity .2s ease!important}
.studio-settings-list{display:flex;flex-direction:column;gap:7px}
.studio-setting-row{display:flex;justify-content:space-between;align-items:center;padding:9px 11px;border-radius:8px;background:#131411;border:1px solid #282a22;font-size:11px}
.studio-setting-row span{color:var(--studio-text);font-weight:600}
.studio-setting-row button{min-height:28px!important;padding:4px 9px!important;font-size:10.5px!important}
.studio-work{min-width:0;height:100%;overflow:hidden;display:flex;flex-direction:column;padding:12px 16px 14px;background:var(--studio-bg)}
.studio-stage{position:relative;flex:1;min-height:0;overflow:hidden;border:1px solid #c9bee0;border-radius:12px;background:#DAD0ED}
.studio-stage-top{position:absolute;z-index:3;left:12px;right:12px;top:12px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}
.studio-stage-top>div{display:flex;gap:5px;pointer-events:auto}
.studio-stage-top>span{display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:rgba(15,15,14,.86);font-size:9px}
.studio-stage-top i{display:block;width:16px;height:16px;border:2px solid var(--studio-accent);border-radius:50%;background:#fff}
.studio-canvas-scroll{display:grid;place-items:center;width:100%;height:100%;padding:48px 16px 16px;overflow:hidden!important}
.studio-canvas-scroll canvas{display:block;width:min(100%,68dvh,680px);max-width:100%;height:auto;aspect-ratio:1;touch-action:none;cursor:move;transform-origin:var(--studio-zoom-origin, 50% 50%);transform:scale(var(--studio-zoom, 1));transition:transform .22s cubic-bezier(.16, 1, .3, 1);will-change:transform}
.studio-bottom-bar{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:8px 12px;border:1px solid var(--studio-line);border-radius:10px;background:var(--studio-panel);user-select:none;flex-shrink:0}
.studio-toolbar{display:flex;align-items:center;gap:2px;overflow-x:auto}
.studio-toolbar button{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:46px;height:38px;padding:2px 6px!important;border:1px solid transparent!important;border-radius:6px!important;background:transparent!important;color:var(--studio-text)!important;font-size:9.5px;font-weight:600;cursor:pointer;transition:all .14s ease;box-shadow:none!important}
.studio-toolbar button:hover:not(:disabled){background:var(--studio-panel-2)!important;border-color:var(--studio-line)!important}
.studio-toolbar button:disabled{opacity:.35!important;cursor:not-allowed!important}
.studio-toolbar b{display:flex;min-height:18px;align-items:center;justify-content:center;font-size:15px;font-weight:400;color:inherit;line-height:1}
.studio-toolbar span{display:block;font-size:8.5px;color:var(--studio-muted);line-height:1;margin-top:2px}
.studio-compact-controls{display:flex;align-items:center;gap:14px;flex-shrink:0}
.studio-compact-control{display:inline-flex;align-items:center;gap:7px;margin:0!important;font-size:11px;font-weight:650;color:var(--studio-muted);cursor:default}
.studio-compact-control span{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--studio-muted);white-space:nowrap}
.studio-compact-control input[type=range]{width:75px;accent-color:var(--studio-accent);cursor:pointer}
.studio-compact-control input[type=range]:disabled{opacity:.35;cursor:not-allowed}
.studio-compact-hierarchy{display:flex;align-items:center;gap:5px}
.studio-compact-btn{display:inline-flex;align-items:center;gap:4px;height:30px;min-height:30px!important;padding:0 9px!important;border-radius:6px!important;background:var(--studio-panel-2)!important;border:1px solid var(--studio-line)!important;color:var(--studio-text)!important;font-size:10.5px!important;font-weight:600;cursor:pointer;transition:all .14s ease}
.studio-compact-btn:hover:not(:disabled){background:var(--studio-panel-3)!important;border-color:var(--studio-line-strong)!important}
.studio-compact-btn:disabled{opacity:.35!important;cursor:not-allowed!important}
.studio-compact-btn svg{width:13px;height:13px;stroke:currentColor;flex-shrink:0}
.studio-zones{display:flex;gap:6px;margin-top:10px;overflow:auto}
.studio-zones button{flex:1;min-width:78px;padding:6px;font-size:17px}
.studio-zones span{display:block;margin-top:1px;font-size:8px;color:var(--studio-muted);font-weight:600}
.studio-zones button:hover span{color:#f5f4ef}
.studio-work>#studio-message{min-height:18px;margin:2px 0 0;color:var(--studio-accent,#7B41E7);font-size:10px}.studio-work>#studio-message.error{color:#ef4444}
.brand-studio #studio-text button{width:100%;margin-bottom:8px}
.product-mockup{width:100%;height:100%;object-fit:contain}
.studio-back-preview{display:block;max-width:160px;margin:14px 0;border-radius:10px}
.studio-product-setup{display:flex;align-items:center;gap:14px;margin:14px 0;padding:12px;border:1px solid var(--line,#30322d);border-radius:12px}
.studio-mini-shirt{display:grid;place-items:center;width:110px;height:126px;flex-shrink:0;border-radius:9px;background:#f3f2ee;overflow:hidden}
.studio-mini-shirt img{width:100%;height:100%;object-fit:contain;display:block}
@media(max-width:980px){.studio-layout{grid-template-columns:64px 260px minmax(0,1fr)}.studio-sidebar{padding:14px 10px}.studio-work{padding:0 8px 8px}}
@media(max-width:720px){.brand-studio{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;border:0!important;border-radius:0!important}.studio-heading{height:auto;min-height:56px;flex-wrap:wrap;padding:8px 12px}.studio-heading h2{flex:1;min-width:160px;font-size:16px!important}.studio-heading [data-draft],.studio-heading [data-apply]{order:5;flex:1}.studio-layout{display:flex;height:auto;min-height:calc(100dvh - 80px);flex-wrap:wrap;overflow-y:auto}.studio-work{order:1;width:100%;height:auto;min-height:380px}.studio-nav{order:2;width:100%;flex-direction:row;justify-content:center;border-right:0;border-top:1px solid var(--studio-line);border-bottom:1px solid var(--studio-line);padding:6px 4px}.studio-nav-primary{flex-direction:row;flex:1}.studio-nav-secondary{flex-direction:row;border-top:0;padding-top:0;border-left:1px solid var(--studio-line);padding-left:6px}.studio-nav button{flex:1;min-height:44px}.studio-sidebar{order:3;width:100%;border-right:0;height:auto;min-height:300px}.studio-stage{min-height:360px}.studio-canvas-scroll{min-height:340px;padding-top:44px}.studio-canvas-scroll canvas{width:min(100%,44dvh,380px)}#studio-assets{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* One transparent artwork layer, previewed over any selected shirt color. */
.studio-shirt-color-control{display:flex!important;align-items:center;gap:7px;margin:0!important;padding:5px 7px 5px 10px;border-radius:999px;background:rgba(15,15,14,.86);color:#fff!important;pointer-events:auto;font-size:9px!important;text-transform:uppercase;letter-spacing:.05em}
.studio-shirt-color-control select{width:auto!important;min-width:105px!important;padding:5px 24px 5px 8px!important;border-radius:999px!important;font-size:9px!important}
.studio-shirt-color-control i{display:block;width:16px;height:16px;flex:0 0 16px;border:2px solid var(--studio-accent);border-radius:50%}

/* Accessible High-Contrast Design Studio Theme Guards */
body.brand-studio-route .brand-studio button,
.brand-studio button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  background: var(--studio-panel-2) !important;
  color: var(--studio-text) !important;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
body.brand-studio-route .brand-studio button:hover,
.brand-studio button:hover {
  background: #292a26 !important;
  border-color: #484a42 !important;
  color: #fff !important;
}
body.brand-studio-route .brand-studio button.active,
body.brand-studio-route .brand-studio [data-apply],
.brand-studio button.active,
.brand-studio [data-apply] {
  background: var(--studio-accent) !important;
  border-color: var(--studio-accent) !important;
  color: #fff !important;
}
body.brand-studio-route .brand-studio button:disabled,
.brand-studio button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  color: #72746b !important;
  background: #191a17 !important;
  border-color: #272824 !important;
  box-shadow: none !important;
}

/* Editing controls toolbar (Center, Flip, Crop, Rotate, Duplicate, Delete, Undo, Redo, Grid, Zoom) */
body.brand-studio-route .brand-studio .studio-toolbar button,
.brand-studio .studio-toolbar button {
  display: flex !important;
  min-width: 44px !important;
  min-height: 38px !important;
  height: 38px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  border-radius: 8px !important;
  background: var(--studio-panel-2, #181920) !important;
  color: var(--studio-text, #f4f4f6) !important;
  font-size: 9px !important;
  font-weight: 650 !important;
  padding: 3px 6px !important;
  box-shadow: none !important;
  transform: none !important;
  flex-shrink: 0 !important;
}
body.brand-studio-route .brand-studio .studio-toolbar button:hover:not(:disabled),
.brand-studio .studio-toolbar button:hover:not(:disabled) {
  background: var(--studio-panel-3, #20222b) !important;
  border-color: var(--studio-line-strong, #3d4050) !important;
  color: var(--studio-text, #ffffff) !important;
}
body.brand-studio-route .brand-studio .studio-toolbar button.active,
.brand-studio .studio-toolbar button.active {
  background: var(--studio-accent, #7B41E7) !important;
  border-color: var(--studio-accent, #7B41E7) !important;
  color: #ffffff !important;
}
body.brand-studio-route .brand-studio .studio-toolbar button.active b,
.brand-studio .studio-toolbar button.active b,
body.brand-studio-route .brand-studio .studio-toolbar button.active span,
.brand-studio .studio-toolbar button.active span {
  color: #ffffff !important;
}
body.brand-studio-route .brand-studio .studio-toolbar button:disabled,
.brand-studio .studio-toolbar button:disabled {
  opacity: 0.35 !important;
  background: var(--studio-panel, #111216) !important;
  border-color: var(--studio-line, #292b35) !important;
  color: var(--studio-muted, #6E625D) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
}
body.brand-studio-route .brand-studio .studio-toolbar button b,
.brand-studio .studio-toolbar b {
  display: flex !important;
  min-height: 18px !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: inherit !important;
  line-height: 1 !important;
}
body.brand-studio-route .brand-studio .studio-toolbar button:disabled b,
.brand-studio .studio-toolbar button:disabled b {
  color: var(--studio-muted, #6E625D) !important;
}
body.brand-studio-route .brand-studio .studio-toolbar button span,
.brand-studio .studio-toolbar button span {
  display: block !important;
  color: var(--studio-muted, #a4a7b5) !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
body.brand-studio-route .brand-studio .studio-toolbar button:disabled span,
.brand-studio .studio-toolbar button:disabled span {
  color: var(--studio-muted, #6E625D) !important;
}

/* Accessible high-contrast typography */
body.brand-studio-route .brand-studio h2,
.brand-studio h2 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 19px !important;
  font-weight: 760 !important;
  letter-spacing: -.02em !important;
}
body.brand-studio-route .brand-studio h3,
.brand-studio h3 {
  margin: 0 0 12px 0 !important;
  color: var(--studio-text, #f5f4ef) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}
body.brand-studio-route .brand-studio label,
.brand-studio label {
  color: var(--studio-text, #dedcd3) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}
body.brand-studio-route .brand-studio .studio-hint,
.brand-studio .studio-hint {
  color: var(--studio-muted, #b8baaf) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

/* Crisp Product Color control & inputs */
body.brand-studio-route .brand-studio .studio-shirt-color-control,
.brand-studio .studio-shirt-color-control {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 5px 8px 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(18, 19, 16, 0.94) !important;
  border: 1px solid #3c3e37 !important;
  color: #f5f4ef !important;
  pointer-events: auto !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
body.brand-studio-route .brand-studio .studio-shirt-color-control select,
.brand-studio .studio-shirt-color-control select {
  width: auto !important;
  min-width: 110px !important;
  padding: 5px 28px 5px 12px !important;
  border-radius: 999px !important;
  background-color: #141512 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 10px 10px !important;
  color: #ffffff !important;
  border: 1px solid #4a4c42 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  outline: none !important;
  text-align: center !important;
  text-align-last: center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
body.brand-studio-route .brand-studio .studio-shirt-color-control select:focus,
.brand-studio .studio-shirt-color-control select:focus {
  border-color: var(--studio-accent, #7B41E7) !important;
  box-shadow: 0 0 0 2px rgba(123, 65, 231, 0.35) !important;
}
body.brand-studio-route .brand-studio .studio-shirt-color-control select option,
.brand-studio .studio-shirt-color-control select option {
  background: #141512 !important;
  color: #ffffff !important;
  text-align: center !important;
}

/* Day Mode Contrast for Studio Controls */
[data-theme="day"] body.brand-studio-route .brand-studio .studio-shirt-color-control,
[data-theme="day"] .brand-studio .studio-shirt-color-control {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #d4d2da !important;
  color: #181916 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="day"] body.brand-studio-route .brand-studio .studio-shirt-color-control select,
[data-theme="day"] .brand-studio .studio-shirt-color-control select {
  background-color: #f3f2f6 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23181916' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  color: #181916 !important;
  border-color: #cccad3 !important;
}
[data-theme="day"] body.brand-studio-route .brand-studio .studio-shirt-color-control select option,
[data-theme="day"] .brand-studio .studio-shirt-color-control select option {
  background: #ffffff !important;
  color: #181916 !important;
}

/* Typography & Text Controls UX */
.studio-text-controls{display:flex;flex-direction:column;gap:12px}
.studio-text-field-group{display:flex;flex-direction:column;gap:5px;margin-bottom:0}
.studio-text-label{font-size:10px;font-weight:700;color:#c9c7be;text-transform:uppercase;letter-spacing:.05em}

/* Stepper for Font Size */
.studio-size-stepper-row{display:flex;align-items:center;gap:6px}
.studio-stepper-btn{
  width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;
  border-radius:6px!important;background:#1e1f1c!important;border:1px solid #2d2f28!important;
  color:#f4f4f6!important;font-size:15px!important;font-weight:700!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  cursor:pointer!important;transition:all .12s ease!important;
}
.studio-stepper-btn:hover{background:#282a24!important;border-color:#3f4238!important}
.studio-stepper-input{
  width:64px!important;height:32px!important;min-height:32px!important;padding:0 6px!important;
  text-align:center!important;border-radius:6px!important;background:#141512!important;
  border:1px solid #2d2f28!important;color:#ffffff!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;
  font-weight:700!important;font-size:13px!important;
}

/* Color Picker Row & Quick Colors */
.studio-color-picker-row{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:8px;background:#141512;border:1px solid #2d2f28}
.studio-color-picker-swatch{position:relative;width:26px;height:26px;flex:0 0 26px;cursor:pointer;border-radius:50%;display:grid;place-items:center;overflow:hidden}
.studio-color-picker-swatch input[type=color],
.brand-studio input[type=color],
body.brand-studio-route .brand-studio input[type=color]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;margin:0!important;padding:0!important;border:none!important;z-index:3!important;-webkit-appearance:none!important;appearance:none!important}
.studio-color-dot{display:block;width:24px;height:24px;border-radius:50%;border:2px solid #5a5c50;box-shadow:0 1px 4px rgba(0,0,0,.5);pointer-events:none;transition:transform .14s ease,border-color .14s ease}
.studio-color-picker-swatch:hover .studio-color-dot{border-color:var(--studio-accent);transform:scale(1.08)}
.studio-color-hex-input{
  width:72px!important;height:28px!important;min-height:28px!important;padding:0 6px!important;
  text-align:center!important;border-radius:6px!important;background:#1b1c18!important;
  border:1px solid #33362c!important;color:#ffffff!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;
  font-weight:700!important;font-size:11.5px!important;text-transform:uppercase!important;
}
.studio-quick-colors{display:flex;gap:5px;align-items:center;margin-left:auto}
.studio-quick-color-btn{
  width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;
  border-radius:50%!important;border:1.5px solid rgba(255,255,255,0.25)!important;
  cursor:pointer!important;transition:transform .12s ease, outline .12s ease!important;
}
.studio-quick-color-btn:hover{transform:scale(1.15)!important}
.studio-quick-color-btn.is-active{
  outline:2px solid var(--studio-accent, #7B41E7)!important;
  outline-offset:2px!important;
}

/* Style & Alignment Controls */
.studio-text-format-bar{display:flex;align-items:center;justify-content:space-between;gap:8px}
.studio-text-style-group{display:flex;align-items:center;gap:6px}
.studio-text-align-group{display:flex;align-items:center;gap:4px}
.studio-format-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;
  border-radius:6px!important;background:#1e1f1c!important;border:1px solid #2d2f28!important;
  color:#dcdad2!important;font-size:13px!important;cursor:pointer!important;transition:all .12s ease!important;
}
.studio-format-btn:hover{background:#282a24!important;border-color:#3f4238!important;color:#ffffff!important}
.studio-format-btn.is-active{
  background:rgba(123,65,231,.22)!important;border-color:var(--studio-accent, #7B41E7)!important;
  color:var(--studio-accent, #7B41E7)!important;
}

.studio-toggle-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:7px;background:#141512;border:1px solid #2d2f28;color:#dcdad2;font-size:11px;font-weight:600;cursor:pointer;user-select:none}
.studio-toggle-chip input{margin:0;accent-color:var(--studio-accent)}
.studio-text-btn-row{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.studio-add-text-btn{width:100%;min-height:38px!important;background:var(--studio-accent)!important;border-color:var(--studio-accent)!important;color:#fff!important;font-weight:700!important;font-size:12px!important;border-radius:8px!important;box-shadow:0 2px 8px rgba(123,65,231,.3)!important}
.studio-add-text-btn:hover{background:var(--studio-accent-hover)!important;border-color:var(--studio-accent-hover)!important}
.studio-edit-text-btn{width:100%;min-height:34px!important;border-radius:8px!important}

/* Cross-Product Catalog Design */
.studio-cross-catalog-section{margin-top:14px;padding-top:12px;border-top:1px solid var(--studio-line)}
.studio-cross-catalog-section h4{margin:0 0 6px;font-size:11px;font-weight:750;color:#e2e1d8;text-transform:uppercase;letter-spacing:.05em}
.studio-cross-catalog-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.studio-cross-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:#131411;border:1px solid #282924}
.studio-cross-visual{width:42px;height:42px;border-radius:6px;background:#1a1b16;display:grid;place-items:center;overflow:hidden;flex-shrink:0}
.studio-cross-visual img{width:100%;height:100%;object-fit:contain}
.studio-cross-placeholder{display:grid;place-items:center;color:#666}
.studio-cross-meta{flex:1;min-width:0}
.studio-cross-meta strong{display:block;font-size:11.5px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-cross-meta small{font-size:10px;color:var(--studio-muted)}
.studio-cross-actions{display:flex;gap:5px;flex-shrink:0}
.studio-cross-actions button{min-height:26px!important;padding:3px 8px!important;font-size:10px!important}
.studio-cross-add-btn{background:var(--studio-accent)!important;border-color:var(--studio-accent)!important;color:#fff!important}

/* Product Variant Builder Cover Color Section */
.variant-cover-color-section{margin:10px 0;padding:10px 12px;border-radius:8px;background:rgba(255,255,255,.03);border:1px solid var(--line,#282924)}
.variant-cover-color-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:650;color:#fff}
.variant-cover-color-select{min-width:130px;padding:6px 12px;border-radius:6px;background:var(--panel,#181916);border:1px solid var(--line,#3c3e35);color:#fff;font-weight:600}
.variant-cover-color-hint{display:block;margin-top:4px;font-size:11px;color:var(--muted,#8c9092)}
body.brand-studio-route .brand-studio select,
body.brand-studio-route .brand-studio input:not([type=checkbox]):not([type=file]):not([type=color]):not([type=range]),
.brand-studio select,
.brand-studio input:not([type=checkbox]):not([type=file]):not([type=color]):not([type=range]) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid var(--studio-line) !important;
  border-radius: 8px !important;
  background: #121310 !important;
  color: #ffffff !important;
  font: inherit !important;
}
body.brand-studio-route .brand-studio input[type="file"],
.brand-studio input[type="file"],
#studio-files {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
body.brand-studio-route .brand-studio select option,
.brand-studio select option {
  background: #181916 !important;
  color: #ffffff !important;
}

/* Stage top zone buttons (Front, Back, Neck) */
body.brand-studio-route .brand-studio #studio-stage-zone-buttons button,
[data-theme="day"] .brand-studio #studio-stage-zone-buttons button,
.brand-studio #studio-stage-zone-buttons button {
  min-height: 32px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  background: rgba(18, 19, 16, 0.92) !important;
  border: 1px solid #3c3e37 !important;
  color: #dcdad2 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer !important;
}
body.brand-studio-route .brand-studio #studio-stage-zone-buttons button:hover,
[data-theme="day"] .brand-studio #studio-stage-zone-buttons button:hover,
.brand-studio #studio-stage-zone-buttons button:hover {
  background: #2a2c26 !important;
  border-color: #55574c !important;
  color: #ffffff !important;
}
body.brand-studio-route .brand-studio #studio-stage-zone-buttons button.active,
[data-theme="day"] .brand-studio #studio-stage-zone-buttons button.active,
.brand-studio #studio-stage-zone-buttons button.active {
  background: var(--studio-accent, #7B41E7) !important;
  border-color: var(--studio-accent, #7B41E7) !important;
  color: #ffffff !important;
}

/* Bottom print zone selector chips (Front, Back, Neck) */
body.brand-studio-route .brand-studio .studio-zones,
[data-theme="day"] .brand-studio .studio-zones,
.brand-studio .studio-zones {
  display: flex !important;
  gap: 6px !important;
  margin-top: 10px !important;
  overflow: auto !important;
}
body.brand-studio-route .brand-studio .studio-zones button,
[data-theme="day"] .brand-studio .studio-zones button,
.brand-studio .studio-zones button {
  flex: 1 !important;
  min-width: 78px !important;
  padding: 6px 10px !important;
  font-size: 15px !important;
  background: #181916 !important;
  border: 1px solid #30322b !important;
  border-radius: 8px !important;
  color: #dcdad2 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transform: none !important;
}
body.brand-studio-route .brand-studio .studio-zones button:hover,
[data-theme="day"] .brand-studio .studio-zones button:hover,
.brand-studio .studio-zones button:hover {
  background: #252721 !important;
  border-color: #484a3f !important;
  color: #ffffff !important;
}
body.brand-studio-route .brand-studio .studio-zones button.active,
[data-theme="day"] .brand-studio .studio-zones button.active,
.brand-studio .studio-zones button.active {
  background: var(--studio-accent, #7B41E7) !important;
  border-color: var(--studio-accent, #7B41E7) !important;
  color: #ffffff !important;
}
body.brand-studio-route .brand-studio .studio-zones button span,
[data-theme="day"] .brand-studio .studio-zones button span,
.brand-studio .studio-zones button span {
  display: block !important;
  margin-top: 1px !important;
  font-size: 9px !important;
  color: var(--studio-muted, #b8baaf) !important;
  font-weight: 650 !important;
}
body.brand-studio-route .brand-studio .studio-zones button.active span,
[data-theme="day"] .brand-studio .studio-zones button.active span,
.brand-studio .studio-zones button.active span {
  color: #ffffff !important;
}

/* Upload Artwork section dark controls enforcement */
body.brand-studio-route .brand-studio #studio-upload,
[data-theme="day"] .brand-studio #studio-upload,
.brand-studio #studio-upload {
  background: transparent !important;
  color: var(--studio-text, #f5f4ef) !important;
}

body.brand-studio-route .brand-studio label.studio-drop,
.brand-studio label.studio-drop,
.brand-studio .studio-drop {
  display: flex !important;
  min-height: 150px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 9px !important;
  padding: 16px !important;
  border: 1px dashed var(--studio-line-strong, #44463d) !important;
  border-radius: 12px !important;
  background: var(--studio-panel-2, #151613) !important;
  color: var(--studio-text, #f5f4ef) !important;
  text-align: center !important;
  font-size: 22px !important;
  cursor: pointer !important;
  outline: none !important;
  transition: border-color .16s ease, background .16s ease !important;
}
body.brand-studio-route .brand-studio label.studio-drop:hover,
body.brand-studio-route .brand-studio label.studio-drop:focus,
body.brand-studio-route .brand-studio label.studio-drop:focus-visible,
.brand-studio label.studio-drop:hover,
.brand-studio label.studio-drop:focus,
.brand-studio label.studio-drop:focus-visible {
  background: var(--studio-panel-3, #1d1e19) !important;
  border-color: var(--studio-accent, #5a5c50) !important;
  color: var(--studio-text, #ffffff) !important;
}
body.brand-studio-route .brand-studio label.studio-drop.over,
.brand-studio label.studio-drop.over {
  border-color: var(--studio-accent, #7B41E7) !important;
  background: rgba(123, 65, 231, 0.16) !important;
}
body.brand-studio-route .brand-studio label.studio-drop strong,
.brand-studio label.studio-drop strong {
  font-size: 11px !important;
  color: var(--studio-text, #ffffff) !important;
  line-height: 1.4 !important;
}
body.brand-studio-route .brand-studio label.studio-drop small,
.brand-studio label.studio-drop small {
  font-size: 9px !important;
  color: var(--studio-muted, #b8baaf) !important;
}

body.brand-studio-route .brand-studio #studio-search,
body.brand-studio-route .brand-studio input#studio-search,
.brand-studio #studio-search {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid var(--studio-line, #383a33) !important;
  border-radius: 8px !important;
  background: var(--studio-panel, #121310) !important;
  color: var(--studio-text, #ffffff) !important;
  font: inherit !important;
  font-size: 12px !important;
  box-shadow: none !important;
}
body.brand-studio-route .brand-studio #studio-search:focus,
.brand-studio #studio-search:focus {
  border-color: var(--studio-accent, #7B41E7) !important;
  box-shadow: 0 0 0 2px rgba(123, 65, 231, 0.25) !important;
  outline: none !important;
}
body.brand-studio-route .brand-studio #studio-search::placeholder,
.brand-studio #studio-search::placeholder {
  color: var(--studio-muted, #85877d) !important;
  opacity: 1 !important;
}

body.brand-studio-route .brand-studio #studio-assets,
.brand-studio #studio-assets {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 10px !important;
  max-height: 420px !important;
  overflow-y: auto !important;
  padding-right: 2px !important;
}
body.brand-studio-route .brand-studio #studio-assets button,
.brand-studio #studio-assets button {
  min-width: 0 !important;
  min-height: auto !important;
  padding: 5px !important;
  border: 1px solid var(--studio-line, #2d2f28) !important;
  border-radius: 8px !important;
  background: var(--studio-panel, #181916) !important;
  color: var(--studio-text, #f5f4ef) !important;
  font-size: 8px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transform: none !important;
}
body.brand-studio-route .brand-studio #studio-assets button:hover,
.brand-studio #studio-assets button:hover {
  background: var(--studio-panel-2, #252721) !important;
  border-color: var(--studio-accent, #484a40) !important;
  color: var(--studio-text, #ffffff) !important;
}
body.brand-studio-route .brand-studio #studio-assets img,
.brand-studio #studio-assets img {
  width: 100% !important;
  height: 54px !important;
  object-fit: contain !important;
  background: var(--studio-panel-2, #121310) !important;
  border: 1px solid var(--studio-line, #242520) !important;
  border-radius: 5px !important;
  display: block !important;
}
body.brand-studio-route .brand-studio #studio-assets span,
.brand-studio #studio-assets span {
  display: none !important;
}

/* ========================================================
   STUDIO UX ENHANCEMENTS — 3-STATE GARMENTS, GALLERY, AI
   ======================================================== */

/* Stage Mode Banner (Original / Preview / Batch) */
.studio-mode-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
.studio-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 11.5px;
  gap: 12px;
}
.studio-banner-content.preview {
  background: #1c1824;
  border: 1px solid #8d5cf6;
  color: #f5f4ef;
}
.studio-banner-content.batch {
  background: #16181f;
  border: 1px solid #5b7fff;
  color: #f5f4ef;
}
.studio-banner-info {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}
.studio-banner-info strong {
  color: #ffffff;
  font-weight: 700;
}
.studio-banner-info small {
  color: var(--studio-muted, #a6a89c);
  margin-left: 4px;
}
.studio-banner-pill {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.studio-banner-pill.preview {
  background: rgba(123, 65, 231, 0.25);
  border: 1px solid rgba(123, 65, 231, 0.6);
  color: #d8c2ff;
}
.studio-banner-pill.batch {
  background: rgba(47, 128, 237, 0.22);
  border: 1px solid rgba(47, 128, 237, 0.55);
  color: #9eccff;
}
.studio-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.studio-return-original-btn {
  min-height: 28px !important;
  padding: 4px 12px !important;
  border-radius: 7px !important;
  background: #242520 !important;
  border: 1px solid #4a4c42 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  cursor: pointer;
  transition: all .14s ease;
}
.studio-return-original-btn:hover {
  background: #32342c !important;
  border-color: #636657 !important;
}
.studio-add-from-preview-btn {
  min-height: 28px !important;
  padding: 4px 12px !important;
  border-radius: 7px !important;
  background: var(--studio-accent, #7B41E7) !important;
  border: 1px solid var(--studio-accent, #7B41E7) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

/* Compact Cross-Product Catalog Cards & Visual Swatches */
.studio-cross-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #141512;
  border: 1px solid #282a22;
  transition: all .14s ease;
}
.studio-cross-card:hover {
  border-color: #3e4034;
  background: #191b16;
}
.studio-cross-card.is-active {
  border-color: var(--studio-accent, #7B41E7);
  background: rgba(123, 65, 231, 0.08);
}
.studio-cross-card.is-previewing {
  border-color: #8d5cf6;
  background: rgba(141, 92, 246, 0.12);
}
.studio-cross-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: #1d1e19;
  border: 1px solid #2d2f26;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.studio-cross-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.studio-cross-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.studio-cross-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.studio-cross-card-title-row strong {
  font-size: 11.5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-card-badge {
  padding: 1.5px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.studio-card-badge.original {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f0eee6;
}
.studio-card-badge.batch {
  background: rgba(123, 65, 231, 0.2);
  border: 1px solid rgba(123, 65, 231, 0.5);
  color: #d0b8ff;
}
.studio-cross-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
}
.studio-swatch-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.studio-cross-card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.studio-cross-btn {
  min-height: 28px !important;
  padding: 4px 9px !important;
  font-size: 10.5px !important;
  font-weight: 650 !important;
  border-radius: 7px !important;
  cursor: pointer;
}
.studio-cross-btn.primary {
  background: var(--studio-accent, #7B41E7) !important;
  border-color: var(--studio-accent, #7B41E7) !important;
  color: #ffffff !important;
}
.studio-cross-btn.secondary {
  background: #21221c !important;
  border-color: #3a3c32 !important;
  color: #dcdad2 !important;
}
.studio-cross-btn.secondary:hover {
  background: #2b2d24 !important;
  border-color: #4e5043 !important;
  color: #ffffff !important;
}
.studio-cross-btn.active {
  background: rgba(123, 65, 231, 0.25) !important;
  border-color: rgba(123, 65, 231, 0.6) !important;
  color: #d0b8ff !important;
  cursor: default !important;
  opacity: 1 !important;
}

/* Product Info Status Badges */
.studio-badge-original, .studio-badge-batch, .studio-badge-preview {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.studio-badge-original {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.studio-badge-batch {
  background: rgba(123, 65, 231, 0.22);
  border: 1px solid rgba(123, 65, 231, 0.55);
  color: #d8c2ff;
}
.studio-badge-preview {
  background: rgba(255, 170, 0, 0.2);
  border: 1px solid rgba(255, 170, 0, 0.5);
  color: #ffd07a;
}

/* Preview Garment Color Chips */
.studio-product-color-section {
  margin: 12px 0;
}
.studio-product-color-section h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
  color: #e2e1d8;
  text-transform: uppercase;
}
.studio-product-color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.studio-product-color-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 28px !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  background: #141512 !important;
  border: 1px solid #2d2f26 !important;
  color: #dcdad2 !important;
  font-size: 10.5px !important;
  cursor: pointer !important;
  transition: all .14s ease !important;
}
.studio-product-color-chip:hover {
  background: #20221b !important;
  border-color: #44473a !important;
  color: #ffffff !important;
}
.studio-product-color-chip.is-active {
  border-color: var(--studio-accent, #7B41E7) !important;
  background: rgba(123, 65, 231, 0.2) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}
.studio-product-chip-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Product Image Gallery Management */
.studio-product-gallery-card {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #131411;
  border: 1px solid #282a22;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.studio-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.studio-gallery-header h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
  color: #e2e1d8;
  text-transform: uppercase;
}
.studio-gallery-counter {
  padding: 2px 7px;
  border-radius: 999px;
  background: #1f201b;
  border: 1px solid #36382f;
  color: #c9c7be;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.studio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}
.studio-gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #181915;
  border: 1px solid #2c2e26;
  overflow: hidden;
  transition: all .14s ease;
}
.studio-gallery-item.is-cover {
  border-color: var(--studio-accent, #7B41E7);
  box-shadow: 0 0 0 1px var(--studio-accent, #7B41E7);
}
.studio-gallery-thumb {
  position: relative;
  width: 100%;
  height: 80px;
  background: #121310;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.studio-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.studio-gallery-cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--studio-accent, #7B41E7);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.studio-gallery-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 4px;
  background: #131411;
  border-top: 1px solid #22241d;
}
.studio-gallery-item-actions button {
  min-height: 22px !important;
  min-width: 22px !important;
  padding: 2px 5px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  background: #1f201b !important;
  border: 1px solid #36382f !important;
  color: #dedcd2 !important;
}
.studio-gallery-item-actions button:hover {
  background: #2b2c25 !important;
  border-color: #4f5144 !important;
  color: #ffffff !important;
}
.studio-gallery-make-cover {
  margin-right: auto;
  color: #cfb3ff !important;
  font-size: 9px !important;
}
.studio-gallery-delete:hover {
  background: #b83b35 !important;
  border-color: #b83b35 !important;
  color: #ffffff !important;
}
.studio-gallery-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.studio-gallery-upload-btn, .studio-gallery-mockup-btn {
  flex: 1;
  min-height: 32px !important;
  padding: 6px 10px !important;
  border-radius: 7px !important;
  font-size: 10.5px !important;
  font-weight: 650 !important;
  text-align: center;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #1b1c17 !important;
  border: 1px solid #36382f !important;
  color: #ffffff !important;
  transition: all .14s ease;
}
.studio-gallery-upload-btn:hover, .studio-gallery-mockup-btn:hover {
  background: #252620 !important;
  border-color: #4b4d40 !important;
}

/* AI Design Panel */
.studio-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.studio-section-head h3 {
  margin: 0 !important;
}
.studio-help-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22241e;
  border: 1px solid #383a31;
  color: #a6a89c;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
}
.studio-help-icon:hover {
  background: #2c2e26;
  color: #ffffff;
  border-color: var(--studio-accent, #7B41E7);
}
.studio-ai-card {
  padding: 12px;
  border-radius: 10px;
  background: #131411;
  border: 1px solid #282a22;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.studio-ai-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #c9c7be;
}
.studio-ai-label textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: #10110e;
  border: 1px solid #2d2f26;
  color: #7b7d72;
  font: inherit;
  font-size: 12px;
  resize: none;
  cursor: not-allowed;
}
.studio-ai-btn {
  width: 100%;
  min-height: 36px !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}
.studio-ai-status-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.studio-ai-status-pill {
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 4px;
  background: #24211b;
  border: 1px solid #4a3e26;
  color: #ffbe53;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.studio-ai-status-row small {
  color: var(--studio-muted, #a6a89c);
  font-size: 10px;
  line-height: 1.45;
}
.studio-ai-styles {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #131411;
  border: 1px solid #262820;
}
.studio-ai-styles-title {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9b9d92;
  margin-bottom: 6px;
}

/* Mockup Panel Card Polish */
.studio-mockup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.studio-mockup-meta strong {
  font-size: 11.5px;
  color: #ffffff;
}
.studio-mockup-pill {
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(123, 65, 231, 0.18);
  border: 1px solid rgba(123, 65, 231, 0.45);
  color: #d0b8ff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.studio-mockup-add-gallery-btn {
  background: #1c1d18 !important;
  border-color: #383a31 !important;
  color: #dcdad2 !important;
}
.studio-mockup-add-gallery-btn:hover {
  background: #272822 !important;
  border-color: #4f5144 !important;
  color: #ffffff !important;
}

/* Day Mode High-Contrast Rules */
[data-theme="day"] .studio-banner-content.preview {
  background: #f4eeff;
  border-color: #a780f7;
  color: #231b34;
}
[data-theme="day"] .studio-banner-content.batch {
  background: #eef4ff;
  border-color: #7aa7ff;
  color: #172642;
}
[data-theme="day"] .studio-banner-info strong {
  color: #151613;
}
[data-theme="day"] .studio-return-original-btn {
  background: #ffffff !important;
  border-color: #cccad3 !important;
  color: #151613 !important;
}
[data-theme="day"] .studio-return-original-btn:hover {
  background: #f1f0f5 !important;
}
[data-theme="day"] .studio-cross-card {
  background: #ffffff;
  border-color: #dcd9e4;
}
[data-theme="day"] .studio-cross-card:hover {
  background: #f8f7fb;
  border-color: #c4c0d2;
}
[data-theme="day"] .studio-cross-card.is-active {
  background: #f3ecff;
  border-color: var(--studio-accent, #7B41E7);
}
[data-theme="day"] .studio-cross-card.is-previewing {
  background: #f1e9ff;
  border-color: #8d5cf6;
}
[data-theme="day"] .studio-cross-card-thumb {
  background: #edeaf5;
  border-color: #d8d4e4;
}
[data-theme="day"] .studio-cross-card-title-row strong {
  color: #151613;
}
[data-theme="day"] .studio-cross-btn.secondary {
  background: #edeaf5 !important;
  border-color: #cdc9db !important;
  color: #24252a !important;
}
[data-theme="day"] .studio-product-gallery-card {
  background: #ffffff;
  border-color: #dcd9e4;
}
[data-theme="day"] .studio-gallery-header h4 {
  color: #151613;
}
[data-theme="day"] .studio-gallery-item {
  background: #f7f6fa;
  border-color: #dcd9e4;
}
[data-theme="day"] .studio-gallery-thumb {
  background: #edeaf5;
}
[data-theme="day"] .studio-gallery-upload-btn,
[data-theme="day"] .studio-gallery-mockup-btn {
  background: #ffffff !important;
  border-color: #cdc9db !important;
  color: #151613 !important;
}
[data-theme="day"] .studio-ai-card,
[data-theme="day"] .studio-ai-styles {
  background: #ffffff;
  border-color: #dcd9e4;
}
[data-theme="day"] .studio-ai-label textarea {
  background: #f5f4f8;
  border-color: #dcd9e4;
}

/* Stage Surface: fixed Lavender Mist #DAD0ED in BOTH Day and Night */
[data-theme="day"] .brand-studio .studio-stage,
[data-theme="day"] .studio-stage,
.brand-studio .studio-stage,
.studio-stage {
  background: #DAD0ED !important;
  border-color: #c9bee0 !important;
}
.studio-canvas-scroll canvas {
  background: transparent !important;
}

/* Visual Product Suggestion Grid */
.studio-cross-catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.studio-suggestion-card {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.studio-suggestion-card.is-selected {
  border-color: var(--studio-accent, #7B41E7) !important;
  background: rgba(123, 65, 231, 0.12) !important;
  box-shadow: 0 0 0 1.5px var(--studio-accent, #7B41E7);
}
.studio-suggestion-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #191b15;
  border: 1px solid #2a2c24;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.studio-suggestion-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.studio-card-check {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--studio-accent, #7B41E7);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.studio-suggestion-zones {
  font-size: 9.5px;
  color: #9c9a8f;
  margin-top: 2px;
}
.studio-suggestion-action-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 12px;
  padding: 10px;
  border-radius: 8px;
  background: #141512;
  border: 1px solid #282a22;
}
.studio-add-selected-btn {
  width: 100% !important;
  min-height: 34px !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  letter-spacing: .02em;
}
.studio-suggestion-note {
  font-size: 9.5px;
  color: #a8a79d;
  line-height: 1.3;
}
.studio-suggestion-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 650;
  color: #dcdad2;
}
.studio-suggestion-check {
  width: 15px;
  height: 15px;
  accent-color: var(--studio-accent, #7B41E7);
  cursor: pointer;
}

/* AI Commercial Photography / Mockups */
.studio-mockup-scene-card {
  padding: 12px;
  border-radius: 10px;
  background: #131411;
  border: 1px solid #282a22;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.studio-mockup-scene-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.studio-mockup-ref-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(123, 65, 231, 0.15);
  border: 1px solid rgba(123, 65, 231, 0.4);
  color: #cfb3ff;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.studio-mockup-prompt-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #e2e1d8;
}
#studio-mockup-prompt {
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  background: #181915;
  border: 1px solid #32352b;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.4;
  resize: vertical;
  min-height: 64px;
  font-family: inherit;
}
#studio-mockup-prompt:focus {
  outline: none;
  border-color: var(--studio-accent, #7B41E7);
  box-shadow: 0 0 0 1px var(--studio-accent, #7B41E7);
}
.studio-prompt-presets {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.studio-presets-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #8c8e82;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.studio-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.studio-prompt-chip {
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: #1b1c17 !important;
  border: 1px solid #2d2f26 !important;
  color: #b5b3a8 !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all .12s ease;
}
.studio-prompt-chip:hover {
  background: #252720 !important;
  border-color: #4a4d3e !important;
  color: #ffffff !important;
}
.studio-feathers-quote-row {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 7px;
  background: #1a1c16;
  border: 1px solid #2c2e25;
  font-size: 10.5px;
}
.studio-feathers-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e8c766;
  font-weight: 600;
  font-size: 10.5px;
}
.studio-mockup-generate-btn {
  width: 100% !important;
  opacity: 0.65;
  cursor: not-allowed !important;
}

/* Inspector Opacity Row & Polish */
.studio-inspector-empty {
  padding: 16px 12px;
  text-align: center;
}
.studio-inspector-empty-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1a1c16;
  color: #8c8e82;
}

/* Day Mode Additional Overrides */
[data-theme="day"] .studio-suggestion-action-bar,
[data-theme="day"] .studio-mockup-scene-card,
[data-theme="day"] .studio-feathers-quote-row {
  background: #ffffff;
  border-color: #dcd9e4;
}
[data-theme="day"] #studio-mockup-prompt {
  background: #f5f4f8;
  border-color: #dcd9e4;
  color: #151613;
}
[data-theme="day"] .studio-prompt-chip {
  background: #f0edf7 !important;
  border-color: #dcd9e4 !important;
  color: #24252a !important;
}
[data-theme="day"] .studio-feathers-pill {
  color: #8c6800;
}

/* Bare Circular Color Swatches (No enclosing black container) */
.studio-stage-color-swatches {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.studio-canvas-swatch,
.brand-studio .studio-canvas-swatch,
[data-theme="day"] .brand-studio .studio-canvas-swatch {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  min-height: 0 !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  outline: none !important;
  transition: transform 0.14s ease !important;
}
.studio-canvas-swatch:hover,
.brand-studio .studio-canvas-swatch:hover {
  transform: scale(1.15) !important;
  background: transparent !important;
  border: none !important;
}
.studio-canvas-swatch:focus-visible {
  outline: 2px solid var(--studio-accent, #7B41E7) !important;
  outline-offset: 2px !important;
}
.studio-canvas-swatch.is-active,
.brand-studio .studio-canvas-swatch.is-active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.studio-canvas-swatch-dot {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(0, 0, 0, 0.22) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
  box-sizing: border-box !important;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease !important;
}
.studio-canvas-swatch.is-active .studio-canvas-swatch-dot {
  box-shadow: 0 0 0 2px #DAD0ED, 0 0 0 4px var(--studio-accent, #7B41E7) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Tool Rail Coming Soon Badge */
.studio-nav-badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 1.5px 4px;
  border-radius: 4px;
  background: rgba(123, 65, 231, 0.18);
  border: 1px solid rgba(123, 65, 231, 0.4);
  color: #d0b8ff;
  line-height: 1;
  margin-top: 2px;
}
[data-theme="day"] .studio-nav-badge {
  background: rgba(123, 65, 231, 0.1);
  border-color: rgba(123, 65, 231, 0.3);
  color: #6a34c9;
}

/* Suggestion Card Selected State */
.studio-selected-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--studio-accent, #7B41E7);
  background: rgba(123, 65, 231, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
[data-theme="day"] .studio-selected-tag {
  background: rgba(123, 65, 231, 0.1);
  color: #632ecb;
}

/* Universal Form Controls in Brand Studio - Dark (Default) */
.brand-studio input[type="text"],
.brand-studio input[type="search"],
.brand-studio input:not([type]),
.brand-studio .studio-input,
.brand-studio textarea,
.brand-studio .studio-textarea,
.brand-studio select,
.brand-studio .studio-select {
  background: #141512 !important;
  border: 1px solid #282a22 !important;
  color: #f5f4ef !important;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  box-sizing: border-box;
}

.brand-studio input[type="text"]:focus,
.brand-studio input[type="search"]:focus,
.brand-studio input:not([type]):focus,
.brand-studio .studio-input:focus,
.brand-studio textarea:focus,
.brand-studio .studio-textarea:focus,
.brand-studio select:focus,
.brand-studio .studio-select:focus {
  border-color: var(--studio-accent, #7B41E7) !important;
  box-shadow: 0 0 0 2px rgba(123, 65, 231, 0.25) !important;
  outline: none !important;
}

/* Day Mode Overrides for Universal Form Controls */
[data-theme="day"] .brand-studio input[type="text"],
[data-theme="day"] .brand-studio input[type="search"],
[data-theme="day"] .brand-studio input:not([type]),
[data-theme="day"] .brand-studio .studio-input,
[data-theme="day"] .brand-studio textarea,
[data-theme="day"] .brand-studio .studio-textarea,
[data-theme="day"] .brand-studio select,
[data-theme="day"] .brand-studio .studio-select {
  background: #ffffff !important;
  border: 1px solid #dcdad2 !important;
  color: #181916 !important;
}

/* Media Library Gallery Groups */
.studio-gallery-group {
  margin-bottom: 10px;
  border-radius: 8px;
  background: #141512;
  border: 1px solid #282a22;
  overflow: hidden;
}
[data-theme="day"] .studio-gallery-group {
  background: #ffffff;
  border-color: #dcdad2;
}
.studio-gallery-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #dfddd4;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.14s ease;
}
[data-theme="day"] .studio-gallery-group-title {
  color: #2a2c26;
  background: #fbfbf9;
}
.studio-gallery-group-title:hover {
  background: rgba(255, 255, 255, 0.05);
}
.studio-gallery-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #252720;
  border: 1px solid #36382e;
  font-size: 10px;
  font-weight: 700;
  color: #b5b3aa;
}
[data-theme="day"] .studio-gallery-badge {
  background: #eae8e1;
  border-color: #d2d0c7;
  color: #55574f;
}
.studio-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
}
.studio-media-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #1a1c17;
  border: 1px solid #2f3127;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
[data-theme="day"] .studio-media-thumb {
  background: #f5f4ef;
  border-color: #dcdad2;
}
.studio-media-thumb:hover {
  border-color: var(--studio-accent, #7B41E7);
  transform: translateY(-1px);
}
.studio-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.studio-gallery-empty-hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #8c8a81;
  padding: 8px 4px;
  margin: 0;
  text-align: center;
}
[data-theme="day"] .studio-gallery-empty-hint {
  color: #7a786f;
}

/* Settings Workspace Preferences & Actions */
.studio-setting-action-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-top: 1px solid var(--studio-line, #292b35) !important;
  margin-top: 8px !important;
}
.studio-setting-action-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.studio-setting-action-text span {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--studio-text, #f4f4f6) !important;
}
.studio-setting-action-text .studio-hint {
  font-size: 11px !important;
  margin: 0 !important;
  color: var(--studio-muted, #a4a7b5) !important;
}
#studio-reset-layout-btn {
  font-size: 11px !important;
  font-weight: 650 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  background: var(--studio-panel-2, #181920) !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  color: var(--studio-text, #f4f4f6) !important;
  transition: all 0.14s ease !important;
}
#studio-reset-layout-btn:hover {
  background: var(--studio-panel-3, #20222b) !important;
  border-color: var(--studio-line-strong, #3d4050) !important;
  color: #ffffff !important;
}

/* Settings Utility Section */
.studio-settings-utility {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--studio-line);
}
.studio-settings-utility h4 {
  font-size: 12px;
  margin: 0 0 4px;
  color: #e5e3db;
}
[data-theme="day"] .studio-settings-utility h4 {
  color: #1a1c18;
}

/* Accessible Theme Toggle & Tooltips */
.studio-theme-toggle-btn {
  font-size: 11px !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.studio-info-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--studio-accent, #7B41E7);
  cursor: help;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(123, 65, 231, 0.12);
}
.studio-upload-tech-info {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--studio-line);
  color: var(--studio-muted);
  font-size: 10px;
  text-align: center;
}

/* Tool Headings Hierarchy & Subtle Purple Accent */
.brand-studio h3.studio-tool-title,
.brand-studio .studio-section-head h3,
.brand-studio #studio-upload > h3:first-child,
.brand-studio #studio-text > h3:first-child,
.brand-studio #studio-help > h3:first-child,
.brand-studio #studio-help .studio-tool-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: #f5f4ef !important;
  margin: 0 0 12px 0 !important;
}
.brand-studio h3.studio-tool-title::before,
.brand-studio .studio-section-head h3::before,
.brand-studio #studio-upload > h3:first-child::before,
.brand-studio #studio-text > h3:first-child::before,
.brand-studio #studio-help > h3:first-child::before,
.brand-studio #studio-help .studio-tool-title::before {
  content: "" !important;
  display: inline-block !important;
  width: 4px !important;
  height: 13px !important;
  border-radius: 2px !important;
  background: var(--studio-accent, #7B41E7) !important;
  flex-shrink: 0 !important;
}
[data-theme="day"] .brand-studio h3.studio-tool-title,
[data-theme="day"] .brand-studio .studio-section-head h3,
[data-theme="day"] .brand-studio #studio-upload > h3:first-child,
[data-theme="day"] .brand-studio #studio-text > h3:first-child,
[data-theme="day"] .brand-studio #studio-help > h3:first-child,
[data-theme="day"] .brand-studio #studio-help .studio-tool-title {
  color: #1a1a1e !important;
}

.brand-studio #studio-help .studio-tool-title {
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

/* Product Info Tooltip & Interactive Popover */
.studio-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.studio-info-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: rgba(123, 65, 231, 0.12) !important;
  color: #bfa8f5 !important;
  border: 1px solid rgba(123, 65, 231, 0.3) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.studio-info-btn:hover,
.studio-info-btn:focus-visible {
  background: rgba(123, 65, 231, 0.22) !important;
  color: #ffffff !important;
  border-color: var(--studio-accent, #7B41E7) !important;
  outline: none !important;
}
.studio-info-icon {
  font-size: 12px;
  line-height: 1;
}
.studio-info-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: #181915;
  border: 1px solid #36382f;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.studio-info-popover.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.studio-info-popover-title {
  font-size: 11.5px;
  font-weight: 750;
  color: #f5f4ef;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.studio-info-popover-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--studio-accent, #7B41E7);
}
.studio-info-popover-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  line-height: 1.45;
  color: #cfceca;
}
.studio-info-popover-list li {
  position: relative;
  padding-left: 10px;
}
.studio-info-popover-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--studio-accent, #7B41E7);
  font-weight: bold;
}
.studio-info-popover-list strong {
  color: #f0eeea;
  font-weight: 700;
}

/* Day Mode Harmonization */
[data-theme="day"] .studio-stage-color-swatches {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="day"] .studio-canvas-swatch-dot {
  border-color: rgba(0, 0, 0, 0.25);
}
[data-theme="day"] .studio-info-btn {
  background: #ede8fa !important;
  color: #632ecb !important;
  border-color: #d6caed !important;
}
[data-theme="day"] .studio-info-btn:hover,
[data-theme="day"] .studio-info-btn:focus-visible {
  background: #e3dbf7 !important;
  color: #4b1fa3 !important;
  border-color: #7B41E7 !important;
}
[data-theme="day"] .studio-info-popover {
  background: #ffffff !important;
  border-color: #ded8eb !important;
  box-shadow: 0 10px 30px rgba(123, 65, 231, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="day"] .studio-info-popover-title {
  color: #1a1a1e !important;
}
[data-theme="day"] .studio-info-popover-list {
  color: #44444a !important;
}
[data-theme="day"] .studio-info-popover-list strong {
  color: #18191e !important;
}
[data-theme="day"] .studio-info-tooltip {
  background: #ede8fa;
  color: #632ecb;
}

/* ==========================================================================
   AWEBO Design Studio Modal + Responsive UX Updates
   ========================================================================== */

/* Universal Header & Day Mode Contrast */
:is([data-theme="day"], [data-theme="day"] body, body.awebo-day-theme) .brand-studio .studio-header-title h2,
[data-theme="day"] .brand-studio .studio-header-title h2,
body.brand-studio-route[data-theme="day"] .brand-studio .studio-header-title h2,
[data-theme="day"] body.brand-studio-route .brand-studio .studio-header-title h2,
[data-theme="day"] body.brand-studio-route .brand-studio h2 {
  color: #121316 !important;
}
:is([data-theme="day"], [data-theme="day"] body, body.awebo-day-theme) .brand-studio .studio-header-title h2 span,
[data-theme="day"] .brand-studio .studio-header-title h2 span,
body.brand-studio-route[data-theme="day"] .brand-studio .studio-header-title h2 span,
[data-theme="day"] body.brand-studio-route .brand-studio .studio-header-title h2 span {
  color: #6530D4 !important;
}
:is([data-theme="day"], [data-theme="day"] body, body.awebo-day-theme) .brand-studio .studio-header-tag,
[data-theme="day"] .brand-studio .studio-header-tag {
  background: rgba(123, 65, 231, 0.10) !important;
  border-color: rgba(123, 65, 231, 0.28) !important;
  color: #6530D4 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-heading,
[data-theme="day"] .brand-studio .studio-heading {
  background: #ffffff !important;
  border-bottom-color: #DED5CE !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-back-btn,
[data-theme="day"] .brand-studio .studio-back-btn,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-close-x,
[data-theme="day"] .brand-studio .studio-close-x {
  color: #121316 !important;
  border-color: #DED5CE !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-back-btn:hover,
[data-theme="day"] .brand-studio .studio-back-btn:hover {
  background: #EEE6DE !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-close-x:hover,
[data-theme="day"] .brand-studio .studio-close-x:hover {
  background: rgba(123, 65, 231, 0.10) !important;
  color: #6530D4 !important;
  border-color: rgba(123, 65, 231, 0.28) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal,
[data-theme="day"] .brand-studio .studio-nav-horizontal {
  background: #ffffff !important;
  border-bottom-color: #DED5CE !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal button,
[data-theme="day"] .brand-studio .studio-nav-horizontal button {
  color: #6E625D !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal button:hover,
[data-theme="day"] .brand-studio .studio-nav-horizontal button:hover {
  background: #EEE6DE !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal button.active,
[data-theme="day"] .brand-studio .studio-nav-horizontal button.active {
  background: rgba(123, 65, 231, 0.12) !important;
  border-color: rgba(123, 65, 231, 0.35) !important;
  color: #6530D4 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-sidebar,
[data-theme="day"] .brand-studio .studio-sidebar {
  background: #ffffff !important;
  border-right-color: #DED5CE !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio input:not([type=checkbox]):not([type=file]):not([type=color]):not([type=range]),
:is([data-theme="day"], .awebo-day-theme) .brand-studio select,
:is([data-theme="day"], .awebo-day-theme) .brand-studio textarea,
[data-theme="day"] .brand-studio input:not([type=checkbox]):not([type=file]):not([type=color]):not([type=range]),
[data-theme="day"] .brand-studio select,
[data-theme="day"] .brand-studio textarea {
  background: #ffffff !important;
  border-color: #DED5CE !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-suggestion-action-bar,
[data-theme="day"] .brand-studio .studio-suggestion-action-bar {
  background: #FBF9F6 !important;
  border-color: #DED5CE !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-suggestion-thumb,
[data-theme="day"] .brand-studio .studio-suggestion-thumb {
  background: #EEE6DE !important;
  border-color: #DED5CE !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-suggestion-card,
[data-theme="day"] .brand-studio .studio-suggestion-card {
  background: #ffffff !important;
  border-color: #DED5CE !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-cross-catalog-head h4,
[data-theme="day"] .brand-studio .studio-cross-catalog-head h4 {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-work,
[data-theme="day"] .brand-studio .studio-work {
  background: #F6F1EB !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-bottom-bar,
[data-theme="day"] .brand-studio .studio-bottom-bar {
  background: #ffffff !important;
  border-color: #DED5CE !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button,
[data-theme="day"] .brand-studio .studio-toolbar button {
  background: #FBF9F6 !important;
  border-color: #DED5CE !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button b,
[data-theme="day"] .brand-studio .studio-toolbar button b {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button span,
[data-theme="day"] .brand-studio .studio-toolbar button span {
  color: #6E625D !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button:hover:not(:disabled),
[data-theme="day"] .brand-studio .studio-toolbar button:hover:not(:disabled) {
  background: #EEE6DE !important;
  border-color: #C9BDB5 !important;
  color: #000000 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-compact-btn,
[data-theme="day"] .brand-studio .studio-compact-btn {
  background: #FBF9F6 !important;
  border-color: #DED5CE !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-compact-btn:hover:not(:disabled),
[data-theme="day"] .brand-studio .studio-compact-btn:hover:not(:disabled) {
  background: #EEE6DE !important;
  border-color: #C9BDB5 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-compact-control span,
[data-theme="day"] .brand-studio .studio-compact-control span {
  color: #6E625D !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-info-popover,
[data-theme="day"] .brand-studio .studio-info-popover {
  background: #ffffff !important;
  border-color: #DED5CE !important;
  box-shadow: 0 10px 30px rgba(68, 48, 45, 0.12) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-info-popover-title,
[data-theme="day"] .brand-studio .studio-info-popover-title {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-info-popover-list,
[data-theme="day"] .brand-studio .studio-info-popover-list {
  color: #6E625D !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-info-popover-list strong,
[data-theme="day"] .brand-studio .studio-info-popover-list strong {
  color: #121316 !important;
}

/* Close X button in header */
.studio-close-x {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  background: transparent !important;
  color: var(--studio-muted, #a4a7b5) !important;
  cursor: pointer !important;
  margin-left: 6px !important;
  transition: all 0.14s ease !important;
}
.studio-close-x:hover {
  background: rgba(123, 65, 231, 0.14) !important;
  color: #ffffff !important;
  border-color: rgba(123, 65, 231, 0.40) !important;
}

/* Dimming Backdrop for Brand Studio */
.brand-studio-backdrop {
  position: fixed;
  inset: 0;
  top: var(--header, 74px);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 940;
}
@media (max-width: 768px) {
  .brand-studio-backdrop {
    display: none !important;
  }
}

/* Desktop Modal Dimensions: ~92vw x 88vh centered beneath persistent universal header */
@media (min-width: 769px) {
  .brand-studio {
    position: fixed !important;
    top: calc(var(--header, 74px) + 2vh) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    width: 92vw !important;
    max-width: 1440px !important;
    height: 88vh !important;
    max-height: calc(100vh - var(--header, 74px) - 4vh) !important;
    border-radius: 16px !important;
    border: 1px solid var(--studio-line-strong, #3d4050) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72) !important;
    z-index: 950 !important;
  }
  .studio-layout {
    height: calc(88vh - 58px) !important;
    max-height: calc(100vh - var(--header, 74px) - 4vh - 58px) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Compact Left Icon Rail (Desktop) */
  .brand-studio #studio-icon-rail,
  .brand-studio .studio-nav-horizontal {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-right: 1px solid var(--studio-line, #292b35) !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    background: var(--studio-panel, #111216) !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
    user-select: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .brand-studio #studio-icon-rail .studio-nav-top,
  .brand-studio .studio-nav-horizontal .studio-nav-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 6px 8px !important;
    border-bottom: 1px solid var(--studio-line, #292b35) !important;
    margin-bottom: 6px !important;
  }
  .brand-studio #studio-icon-rail .studio-nav-primary,
  .brand-studio .studio-nav-horizontal .studio-nav-primary {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 6px !important;
    border: none !important;
  }
  .brand-studio #studio-icon-rail .studio-nav-secondary,
  .brand-studio .studio-nav-horizontal .studio-nav-secondary {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 6px 0 !important;
    border: none !important;
    border-top: 1px solid var(--studio-line, #292b35) !important;
    margin-top: auto !important;
  }
  .brand-studio #studio-icon-rail .studio-nav-bottom,
  .brand-studio .studio-nav-horizontal .studio-nav-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 8px 6px 0 !important;
    border-top: 1px solid var(--studio-line, #292b35) !important;
    margin-top: 6px !important;
  }
  .brand-studio #studio-icon-rail button,
  .brand-studio .studio-nav-horizontal button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--studio-muted, #a4a7b5) !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
    position: relative !important;
  }
  .brand-studio #studio-icon-rail button:hover,
  .brand-studio .studio-nav-horizontal button:hover {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--studio-text, #f4f4f6) !important;
  }
  .brand-studio #studio-icon-rail button.active,
  .brand-studio .studio-nav-horizontal button.active {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--studio-accent, #7B41E7) !important;
    box-shadow: none !important; /* box-shadow: inset 2.5px 0 0 var(--studio-accent, #7B41E7) rgba(123, 65, 231, 0.16) !important */
  }
  .brand-studio #studio-icon-rail button[data-tab="ai"],
  .brand-studio #studio-icon-rail button[data-tab="mockup"],
  .brand-studio .studio-nav-horizontal button[data-tab="ai"],
  .brand-studio .studio-nav-horizontal button[data-tab="mockup"] {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
  }
  .brand-studio #studio-icon-rail .studio-nav-icon,
  .brand-studio .studio-nav-horizontal .studio-nav-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
  }
  .brand-studio #studio-icon-rail .studio-nav-icon svg,
  .brand-studio .studio-nav-horizontal .studio-nav-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .brand-studio #studio-icon-rail .studio-nav-label,
  .brand-studio #studio-icon-rail .studio-nav-badge,
  .brand-studio .studio-nav-horizontal .studio-nav-label,
  .brand-studio .studio-nav-horizontal .studio-nav-badge {
    display: none !important;
  }

  /* Contextual Tool Panel (Desktop Resizable) */
  .brand-studio .studio-sidebar {
    width: var(--studio-sidebar-w, 300px) !important;
    min-width: 240px !important;
    max-width: 520px !important;
    flex-shrink: 0 !important;
    height: 100% !important;
    border-right: 1px solid var(--studio-line, #292b35) !important;
    background: var(--studio-panel, #111216) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: opacity 0.15s ease !important;
  }
  .brand-studio .studio-sidebar.is-collapsed,
  .brand-studio.sidebar-collapsed .studio-sidebar {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
  }

  /* Draggable Vertical Divider */
  .brand-studio .studio-resizer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 10px !important;
    margin: 0 -5px !important;
    position: relative !important;
    z-index: 20 !important;
    cursor: col-resize !important;
    flex-shrink: 0 !important;
    user-select: none !important;
    touch-action: none !important;
    background: transparent !important;
    outline: none !important;
  }
  .brand-studio .studio-resizer.is-collapsed,
  .brand-studio.sidebar-collapsed .studio-resizer,
  .brand-studio .studio-sidebar.is-collapsed + .studio-resizer {
    display: none !important;
    width: 0 !important;
  }
  .brand-studio.sidebar-collapsed .studio-work {
    flex: 1 1 0% !important;
    width: calc(100% - 52px) !important;
    min-width: 0 !important;
  }
  .studio-nav-toggle-btn.collapsed .studio-toggle-icon,
  .brand-studio.sidebar-collapsed #studio-panel-toggle .studio-toggle-icon {
    transform: rotate(180deg);
  }
  .brand-studio .studio-resizer-line {
    width: 2px !important;
    height: 100% !important;
    background: var(--studio-line, #292b35) !important;
    border-radius: 1px !important;
    transition: background 0.15s ease, box-shadow 0.15s ease !important;
    pointer-events: none !important;
  }
  .brand-studio .studio-resizer:hover .studio-resizer-line,
  .brand-studio .studio-resizer:focus-visible .studio-resizer-line,
  .brand-studio .studio-resizer.is-dragging .studio-resizer-line {
    background: var(--studio-accent, #7B41E7) !important;
    box-shadow: 0 0 8px rgba(123, 65, 231, 0.6) !important;
  }

  /* Canvas Work Area */
  .brand-studio .studio-work {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
  }
}

/* Day Mode Contrast for Desktop Icon Rail and Resizable Panel */
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-icon-rail,
[data-theme="day"] .brand-studio #studio-icon-rail,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal,
[data-theme="day"] .brand-studio .studio-nav-horizontal {
  background: #f8f9fc !important;
  border-right-color: #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-icon-rail .studio-nav-top,
[data-theme="day"] .brand-studio #studio-icon-rail .studio-nav-top,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal .studio-nav-top,
[data-theme="day"] .brand-studio .studio-nav-horizontal .studio-nav-top {
  border-bottom-color: #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-icon-rail .studio-nav-secondary,
[data-theme="day"] .brand-studio #studio-icon-rail .studio-nav-secondary,
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-icon-rail .studio-nav-bottom,
[data-theme="day"] .brand-studio #studio-icon-rail .studio-nav-bottom,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal .studio-nav-secondary,
[data-theme="day"] .brand-studio .studio-nav-horizontal .studio-nav-secondary,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal .studio-nav-bottom,
[data-theme="day"] .brand-studio .studio-nav-horizontal .studio-nav-bottom {
  border-top-color: #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-icon-rail button,
[data-theme="day"] .brand-studio #studio-icon-rail button,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal button,
[data-theme="day"] .brand-studio .studio-nav-horizontal button {
  color: #585b6d !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-icon-rail button:hover,
[data-theme="day"] .brand-studio #studio-icon-rail button:hover,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal button:hover,
[data-theme="day"] .brand-studio .studio-nav-horizontal button:hover {
  background: transparent !important;
  color: #121316 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-icon-rail button.active,
[data-theme="day"] .brand-studio #studio-icon-rail button.active,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-nav-horizontal button.active,
[data-theme="day"] .brand-studio .studio-nav-horizontal button.active {
  background: transparent !important;
  border-color: transparent !important;
  color: #6530D4 !important;
  box-shadow: none !important; /* box-shadow: inset 2.5px 0 0 #6530D4 !important */
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-resizer-line,
[data-theme="day"] .brand-studio .studio-resizer-line {
  background: #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-resizer:hover .studio-resizer-line,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-resizer:focus-visible .studio-resizer-line,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-resizer.is-dragging .studio-resizer-line,
[data-theme="day"] .brand-studio .studio-resizer:hover .studio-resizer-line,
[data-theme="day"] .brand-studio .studio-resizer:focus-visible .studio-resizer-line,
[data-theme="day"] .brand-studio .studio-resizer.is-dragging .studio-resizer-line {
  background: #6530D4 !important;
  box-shadow: 0 0 8px rgba(101, 48, 212, 0.45) !important;
}

/* Document Drag Prevention */
body.studio-resizing,
body.studio-resizing * {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: col-resize !important;
}

/* Mobile Isolation */
@media (max-width: 768px) {
  .studio-resizer,
  .brand-studio .studio-resizer,
  #studio-panel-toggle,
  .studio-nav-bottom {
    display: none !important;
  }
}

:is([data-theme="day"], .awebo-day-theme) .brand-studio {
  border-color: #c2c4d1 !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18) !important;
}

/* Bottom Bar Views & Garment Colors Grouping */
.studio-bottom-views-colors-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 0 0 8px 0 !important;
  border-bottom: 1px solid var(--studio-line, #292b35) !important;
  background: transparent !important;
  width: 100% !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-bottom-views-colors-row,
[data-theme="day"] .studio-bottom-views-colors-row {
  background: transparent !important;
  border-color: #DED5CE !important;
}

/* Desktop Canvas Overlay Placement for Views & Colors */
@media (min-width: 769px) {
  .studio-stage {
    position: relative !important;
  }
  .studio-stage .studio-bottom-views-colors-row,
  .studio-bottom-views-colors-row.studio-canvas-overlays {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    display: block !important;
    z-index: 10 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  .studio-bottom-views-colors-row #studio-stage-zone-buttons {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 6px !important;
  }
  .studio-bottom-views-colors-row #studio-canvas-colors {
    position: absolute !important;
    bottom: 14px !important;
    right: 14px !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .studio-bottom-bar {
    padding: 8px 12px !important;
    border-top: 1px solid var(--studio-line, #292b35) !important;
    background: var(--studio-panel, #111216) !important;
  }
  .brand-studio .studio-toolbar button {
    min-width: 44px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 3px 6px !important;
    border-radius: 8px !important;
    background: var(--studio-panel-2, #181920) !important;
    border: 1px solid var(--studio-line, #292b35) !important;
    color: var(--studio-text, #f4f4f6) !important;
    gap: 1px !important;
  }
  .brand-studio .studio-toolbar button:hover:not(:disabled) {
    background: var(--studio-panel-3, #20222b) !important;
    border-color: var(--studio-line-strong, #3d4050) !important;
    color: #ffffff !important;
  }
  .brand-studio .studio-toolbar button.active {
    background: var(--studio-accent, #7B41E7) !important;
    border-color: var(--studio-accent, #7B41E7) !important;
    color: #ffffff !important;
  }
  .brand-studio .studio-toolbar button:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
  }
}

.studio-bottom-tools-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  overflow: visible !important;
}
.studio-stage-zone-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.studio-stage-zone-buttons button {
  min-height: 26px !important;
  height: 26px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  color: #2c2e26 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.12s ease !important;
  cursor: pointer !important;
}
.studio-stage-zone-buttons button:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #000000 !important;
}
.studio-stage-zone-buttons button.active {
  background: #ffffff !important;
  border-color: var(--studio-accent, #7B41E7) !important;
  color: var(--studio-accent, #7B41E7) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-stage-zone-buttons button,
[data-theme="day"] .studio-stage-zone-buttons button {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-stage-zone-buttons button:hover,
[data-theme="day"] .studio-stage-zone-buttons button:hover {
  background: #ffffff !important;
  color: #000000 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-stage-zone-buttons button.active,
[data-theme="day"] .studio-stage-zone-buttons button.active {
  background: #ffffff !important;
  border-color: var(--studio-accent, #6530D4) !important;
  color: var(--studio-accent, #6530D4) !important;
}
.studio-bottom-bar .studio-stage-color-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  padding: 0;
  margin: 0;
}

/* Anchored Popovers for Size and Opacity */
.studio-popover-anchor,
#studio-size-control,
#studio-opacity-row {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}
#studio-tool-size,
#studio-tool-opacity,
.studio-tool-popover-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  background: var(--studio-panel-2, #181920) !important;
  color: var(--studio-text, #f4f4f6) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  transition: all 0.14s ease !important;
  box-sizing: border-box !important;
}
#studio-tool-size svg,
#studio-tool-opacity svg,
.studio-tool-popover-btn svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
  display: block !important;
}
#studio-tool-size span,
#studio-tool-opacity span,
.studio-tool-popover-btn span {
  display: inline-block !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
.studio-tool-popover-btn:hover:not(:disabled) {
  background: var(--studio-panel-3, #20222b) !important;
  border-color: var(--studio-line-strong, #3d4050) !important;
}
.studio-tool-popover-btn[aria-expanded="true"] {
  border-color: var(--studio-accent, #7B41E7) !important;
  color: var(--studio-accent, #7B41E7) !important;
}
.studio-tool-popover-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

#studio-clear-zone-btn,
.studio-clear-zone-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 11px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  background: var(--studio-panel-2, #181920) !important;
  color: var(--studio-text, #f4f4f6) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  transition: all 0.14s ease !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}
#studio-clear-zone-btn svg,
.studio-clear-zone-btn svg {
  width: 13px !important;
  height: 13px !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
  display: block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}
#studio-clear-zone-btn span,
.studio-clear-zone-btn span {
  display: inline-block !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  margin: 0 !important;
}
#studio-clear-zone-btn:hover:not(:disabled),
.studio-clear-zone-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #f87171 !important;
}

.studio-anchored-popover {
  position: absolute !important;
  bottom: calc(100% + 10px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 30 !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  padding: 10px 14px 12px !important;
  border-radius: 10px !important;
  background: var(--studio-panel, #111216) !important;
  border: 1px solid var(--studio-line-strong, #3d4050) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
  color: var(--studio-text, #f4f4f6) !important;
  box-sizing: border-box !important;
}
.studio-anchored-popover::after {
  content: '' !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border-width: 6px !important;
  border-style: solid !important;
  border-color: var(--studio-panel, #111216) transparent transparent transparent !important;
}
.studio-popover-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
}
.studio-popover-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--studio-muted, #a4a7b5) !important;
}
.studio-popover-value {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--studio-text, #f4f4f6) !important;
  font-variant-numeric: tabular-nums !important;
}
.studio-popover-body {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.studio-popover-body input[type="range"] {
  flex: 1 !important;
  accent-color: var(--studio-accent, #7B41E7) !important;
  cursor: pointer !important;
  margin: 0 !important;
}
.studio-popover-step-btn {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  background: var(--studio-panel-2, #181920) !important;
  color: var(--studio-text, #f4f4f6) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}
.studio-popover-step-btn:hover {
  background: var(--studio-panel-3, #20222b) !important;
  border-color: var(--studio-line-strong, #3d4050) !important;
}

/* Layers Section */
.studio-layers-title {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--studio-muted, #a4a7b5) !important;
  margin-right: 4px !important;
  user-select: none !important;
}
.studio-layer-arrow-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  background: var(--studio-panel-2, #181920) !important;
  color: var(--studio-text, #f4f4f6) !important;
  cursor: pointer !important;
  transition: all 0.14s ease !important;
}
.studio-layer-arrow-btn:hover:not(:disabled) {
  background: var(--studio-panel-3, #20222b) !important;
  border-color: var(--studio-line-strong, #3d4050) !important;
}
.studio-layer-arrow-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Format buttons (B / I) in sidebar */
.studio-format-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  background: var(--studio-panel-2, #181920) !important;
  color: var(--studio-text, #f4f4f6) !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.14s ease !important;
}
.studio-format-btn:hover {
  background: var(--studio-panel-3, #20222b) !important;
  border-color: var(--studio-line-strong, #3d4050) !important;
}
.studio-format-btn.is-active {
  background: rgba(123, 65, 231, 0.2) !important;
  border-color: var(--studio-accent, #7B41E7) !important;
  color: var(--studio-accent, #7B41E7) !important;
}

/* Solid info icon (i) button */
.studio-info-btn-solid {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--studio-panel-2, #181920) !important;
  border: 1px solid var(--studio-line, #292b35) !important;
  color: var(--studio-muted, #a4a7b5) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.14s ease !important;
}
.studio-info-btn-solid:hover,
.studio-info-btn-solid[aria-expanded="true"] {
  background: var(--studio-accent, #7B41E7) !important;
  border-color: var(--studio-accent, #7B41E7) !important;
  color: #ffffff !important;
}

/* Day Mode Visual Consistency Overrides */
:is([data-theme="day"], .awebo-day-theme) .brand-studio label.studio-drop,
[data-theme="day"] .brand-studio label.studio-drop,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-drop,
[data-theme="day"] .brand-studio .studio-drop {
  background: #ffffff !important;
  border: 1px dashed var(--line-strong, #c8cad6) !important;
  color: var(--ink, #121316) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio label.studio-drop:hover,
:is([data-theme="day"], .awebo-day-theme) .brand-studio label.studio-drop:focus,
:is([data-theme="day"], .awebo-day-theme) .brand-studio label.studio-drop:focus-visible,
[data-theme="day"] .brand-studio label.studio-drop:hover,
[data-theme="day"] .brand-studio label.studio-drop:focus,
[data-theme="day"] .brand-studio label.studio-drop:focus-visible {
  background: #f4f5f8 !important;
  border-color: var(--studio-accent, #6530D4) !important;
  color: #000000 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio label.studio-drop strong,
[data-theme="day"] .brand-studio label.studio-drop strong {
  color: var(--ink, #121316) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio label.studio-drop small,
[data-theme="day"] .brand-studio label.studio-drop small {
  color: var(--muted, #585b6d) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-drop-icon,
[data-theme="day"] .brand-studio .studio-drop-icon {
  background: rgba(101, 48, 212, 0.12) !important;
  color: #6530D4 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-search,
[data-theme="day"] .brand-studio #studio-search {
  background: #ffffff !important;
  border: 1px solid var(--line, #dedfe6) !important;
  color: var(--ink, #121316) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-search:focus,
[data-theme="day"] .brand-studio #studio-search:focus {
  background: #ffffff !important;
  border-color: var(--studio-accent, #6530D4) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-assets img,
[data-theme="day"] .brand-studio #studio-assets img,
:is([data-theme="day"], .awebo-day-theme) body.brand-studio-route .brand-studio #studio-assets img,
[data-theme="day"] body.brand-studio-route .brand-studio #studio-assets img {
  background: var(--surface-soft, #f4f5f8) !important;
  border-color: var(--line, #dedfe6) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-assets button,
[data-theme="day"] .brand-studio #studio-assets button {
  background: #ffffff !important;
  border-color: var(--line, #dedfe6) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-bottom-bar,
[data-theme="day"] .brand-studio .studio-bottom-bar,
:is([data-theme="day"], .awebo-day-theme) .studio-bottom-bar,
[data-theme="day"] .studio-bottom-bar {
  background: #ffffff !important;
  border-top-color: #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button,
[data-theme="day"] .brand-studio .studio-toolbar button {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button b,
[data-theme="day"] .brand-studio .studio-toolbar button b {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button span,
[data-theme="day"] .brand-studio .studio-toolbar button span {
  color: #585b6d !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button:hover:not(:disabled),
[data-theme="day"] .brand-studio .studio-toolbar button:hover:not(:disabled) {
  background: #e9ebf2 !important;
  border-color: #c8cad6 !important;
  color: #000000 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button.active,
[data-theme="day"] .brand-studio .studio-toolbar button.active {
  background: var(--studio-accent, #7B41E7) !important;
  border-color: var(--studio-accent, #7B41E7) !important;
  color: #ffffff !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button.active b,
[data-theme="day"] .brand-studio .studio-toolbar button.active b,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button.active span,
[data-theme="day"] .brand-studio .studio-toolbar button.active span {
  color: #ffffff !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button:disabled,
[data-theme="day"] .brand-studio .studio-toolbar button:disabled {
  opacity: 0.35 !important;
  background: #f0f2f5 !important;
  border-color: #e2e4ea !important;
  color: #8c8f9d !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button:disabled b,
[data-theme="day"] .brand-studio .studio-toolbar button:disabled b,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toolbar button:disabled span,
[data-theme="day"] .brand-studio .studio-toolbar button:disabled span {
  color: #8c8f9d !important;
}
:is([data-theme="day"], .awebo-day-theme) #studio-tool-size,
:is([data-theme="day"], .awebo-day-theme) #studio-tool-opacity,
:is([data-theme="day"], .awebo-day-theme) .studio-tool-popover-btn,
[data-theme="day"] #studio-tool-size,
[data-theme="day"] #studio-tool-opacity,
[data-theme="day"] .studio-tool-popover-btn {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-clear-zone-btn,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-clear-zone-btn,
[data-theme="day"] .brand-studio #studio-clear-zone-btn,
[data-theme="day"] .brand-studio .studio-clear-zone-btn {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 11px !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-clear-zone-btn:hover:not(:disabled),
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-clear-zone-btn:hover:not(:disabled),
[data-theme="day"] .brand-studio #studio-clear-zone-btn:hover:not(:disabled),
[data-theme="day"] .brand-studio .studio-clear-zone-btn:hover:not(:disabled) {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-tool-popover-btn:hover:not(:disabled),
[data-theme="day"] .studio-tool-popover-btn:hover:not(:disabled) {
  background: #e9ebf2 !important;
  border-color: #c8cad6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-tool-popover-btn[aria-expanded="true"],
[data-theme="day"] .studio-tool-popover-btn[aria-expanded="true"] {
  border-color: #6530D4 !important;
  color: #6530D4 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-anchored-popover,
[data-theme="day"] .studio-anchored-popover {
  background: #ffffff !important;
  border-color: #c8cad6 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-anchored-popover::after,
[data-theme="day"] .studio-anchored-popover::after {
  border-color: #ffffff transparent transparent transparent !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-popover-title,
[data-theme="day"] .studio-popover-title {
  color: #585b6d !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-popover-value,
[data-theme="day"] .studio-popover-value {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-popover-step-btn,
[data-theme="day"] .studio-popover-step-btn {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-popover-step-btn:hover,
[data-theme="day"] .studio-popover-step-btn:hover {
  background: #e9ebf2 !important;
  border-color: #c8cad6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-layer-arrow-btn,
[data-theme="day"] .studio-layer-arrow-btn {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-layer-arrow-btn:hover:not(:disabled),
[data-theme="day"] .studio-layer-arrow-btn:hover:not(:disabled) {
  background: #e9ebf2 !important;
  border-color: #c8cad6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-layers-title,
[data-theme="day"] .studio-layers-title {
  color: #585b6d !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-format-btn,
[data-theme="day"] .studio-format-btn {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-format-btn:hover,
[data-theme="day"] .studio-format-btn:hover {
  background: #e9ebf2 !important;
  border-color: #c8cad6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-format-btn.is-active,
[data-theme="day"] .studio-format-btn.is-active {
  background: rgba(101, 48, 212, 0.12) !important;
  border-color: #6530D4 !important;
  color: #6530D4 !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-info-btn-solid,
[data-theme="day"] .studio-info-btn-solid {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
  color: #585b6d !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-info-btn-solid:hover,
:is([data-theme="day"], .awebo-day-theme) .studio-info-btn-solid[aria-expanded="true"],
[data-theme="day"] .studio-info-btn-solid:hover,
[data-theme="day"] .studio-info-btn-solid[aria-expanded="true"] {
  background: #6530D4 !important;
  border-color: #6530D4 !important;
  color: #ffffff !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-upload-tech-info small,
[data-theme="day"] .studio-upload-tech-info small {
  color: #585b6d !important;
}

/* Universal Profile & Header Stacking Context Preservation */
:root:root .site-header,
:root .site-header,
body.design-studio-open .site-header,
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}
:root:root .site-header .account-control,
:root .site-header .account-control,
.site-header .account-control {
  position: relative !important;
  z-index: 1001 !important;
}
:root:root .site-header .account-dropdown,
:root .site-header .account-dropdown,
.site-header .account-dropdown,
.account-dropdown {
  position: absolute !important;
  z-index: 1002 !important;
}

/* Day Mode Contrast & Theme Refinement across Studio Panels */
/* 1. Upload Panel */
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-asset-delete,
[data-theme="day"] .brand-studio .studio-asset-delete {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-asset-delete:hover,
[data-theme="day"] .brand-studio .studio-asset-delete:hover {
  background: #e03e3e !important;
  border-color: #e03e3e !important;
  color: #ffffff !important;
}

/* 2. Text Panel & Input Fields */
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-text-label,
[data-theme="day"] .brand-studio .studio-text-label,
:is([data-theme="day"], .awebo-day-theme) .brand-studio label,
[data-theme="day"] .brand-studio label {
  color: #121316 !important;
  font-weight: 750 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-copy,
[data-theme="day"] .brand-studio #studio-copy,
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-font,
[data-theme="day"] .brand-studio #studio-font,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-input,
[data-theme="day"] .brand-studio .studio-input,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-select,
[data-theme="day"] .brand-studio .studio-select,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-tab-content input:not([type=checkbox]):not([type=file]):not([type=color]):not([type=range]),
[data-theme="day"] .brand-studio .studio-tab-content input:not([type=checkbox]):not([type=file]):not([type=color]):not([type=range]),
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-tab-content select,
[data-theme="day"] .brand-studio .studio-tab-content select,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-tab-content textarea,
[data-theme="day"] .brand-studio .studio-tab-content textarea {
  background: #ffffff !important;
  border: 1px solid #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-copy::placeholder,
[data-theme="day"] .brand-studio #studio-copy::placeholder,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-tab-content input::placeholder,
[data-theme="day"] .brand-studio .studio-tab-content input::placeholder {
  color: #8e90a0 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-color-picker-row,
[data-theme="day"] .brand-studio .studio-color-picker-row {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-stepper-btn,
[data-theme="day"] .brand-studio .studio-stepper-btn {
  background: #f0f1f5 !important;
  border-color: #d0d2dc !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-stepper-btn:hover,
[data-theme="day"] .brand-studio .studio-stepper-btn:hover {
  background: #e4e6ee !important;
  border-color: #b8bac8 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-stepper-input,
[data-theme="day"] .brand-studio .studio-stepper-input {
  background: #ffffff !important;
  border-color: #d0d2dc !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-color-hex-input,
[data-theme="day"] .brand-studio .studio-color-hex-input {
  background: #ffffff !important;
  border-color: #d0d2dc !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-color-hex,
[data-theme="day"] .brand-studio .studio-color-hex {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-color-dot,
[data-theme="day"] .brand-studio .studio-color-dot {
  border-color: #c8cad6 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-quick-color-btn,
[data-theme="day"] .brand-studio .studio-quick-color-btn {
  border-color: #c8cad6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-format-btn,
[data-theme="day"] .brand-studio .studio-format-btn {
  background: #f0f1f5 !important;
  border-color: #d0d2dc !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-format-btn:hover,
[data-theme="day"] .brand-studio .studio-format-btn:hover {
  background: #e4e6ee !important;
  border-color: #b8bac8 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-format-btn.is-active,
[data-theme="day"] .brand-studio .studio-format-btn.is-active {
  background: rgba(123, 65, 231, 0.14) !important;
  border-color: #6530D4 !important;
  color: #6530D4 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-toggle-chip,
[data-theme="day"] .brand-studio .studio-toggle-chip {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-edit-text,
[data-theme="day"] .brand-studio #studio-edit-text {
  background: #ffffff !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-edit-text:disabled,
[data-theme="day"] .brand-studio #studio-edit-text:disabled {
  opacity: 0.45 !important;
  background: #f4f5f8 !important;
  color: #8e90a0 !important;
}

/* 3. Product Panel, Headings & Helper Text */
:is([data-theme="day"], .awebo-day-theme) .brand-studio h3,
[data-theme="day"] .brand-studio h3,
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-upload h3,
[data-theme="day"] .brand-studio #studio-upload h3,
:is([data-theme="day"], .awebo-day-theme) .brand-studio h4,
[data-theme="day"] .brand-studio h4 {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-hint,
[data-theme="day"] .brand-studio .studio-hint,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .help,
[data-theme="day"] .brand-studio .help,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-cross-catalog-head .studio-hint,
[data-theme="day"] .brand-studio .studio-cross-catalog-head .studio-hint,
:is([data-theme="day"], .awebo-day-theme) .brand-studio small,
[data-theme="day"] .brand-studio small,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-gallery-empty-hint,
[data-theme="day"] .brand-studio .studio-gallery-empty-hint {
  color: #585b6d !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-product-info-box,
[data-theme="day"] .brand-studio .studio-product-info-box {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-product-info-row span,
[data-theme="day"] .brand-studio .studio-product-info-row span {
  color: #585b6d !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-product-info-row strong,
[data-theme="day"] .brand-studio .studio-product-info-row strong {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-product-chip,
[data-theme="day"] .brand-studio .studio-product-chip {
  background: #f4f5f8 !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-cross-item,
[data-theme="day"] .brand-studio .studio-cross-item,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-suggestion-card,
[data-theme="day"] .brand-studio .studio-suggestion-card {
  background: #ffffff !important;
  border-color: #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-cross-meta strong,
[data-theme="day"] .brand-studio .studio-cross-meta strong {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-ai-card,
[data-theme="day"] .brand-studio .studio-ai-card,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-ai-status-card,
[data-theme="day"] .brand-studio .studio-ai-status-card,
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-ai-prompt,
[data-theme="day"] .brand-studio #studio-ai-prompt,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-mockup-scene-card,
[data-theme="day"] .brand-studio .studio-mockup-scene-card,
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-mockup-prompt,
[data-theme="day"] .brand-studio #studio-mockup-prompt {
  background: #ffffff !important;
  border: 1px solid #dedfe6 !important;
  color: #121316 !important;
}

/* 4. Help Panel */
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-help-item,
[data-theme="day"] .brand-studio .studio-help-item {
  background: #f8f9fc !important;
  border: 1px solid #dedfe6 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-help-item:hover,
[data-theme="day"] .brand-studio .studio-help-item:hover {
  border-color: rgba(123, 65, 231, 0.45) !important;
  background: #f4f0fd !important;
  box-shadow: 0 3px 12px rgba(123, 65, 231, 0.12) !important;
}

/* Header Export PNG Action & Dropdown - Day Mode */
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-header-export-btn,
[data-theme="day"] .brand-studio .studio-header-export-btn {
  background: #ffffff !important;
  border: 1px solid #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-header-export-btn:hover,
[data-theme="day"] .brand-studio .studio-header-export-btn:hover {
  background: #f4f5f8 !important;
  border-color: #cbccd4 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-export-dropdown,
[data-theme="day"] .brand-studio .studio-export-dropdown {
  background: #ffffff !important;
  border: 1px solid #dedfe6 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-export-dropdown-header,
[data-theme="day"] .brand-studio .studio-export-dropdown-header {
  color: #6c7080 !important;
  border-bottom-color: #ededf2 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-export-menu-item,
[data-theme="day"] .brand-studio .studio-export-menu-item {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-export-menu-item:hover:not([disabled]),
[data-theme="day"] .brand-studio .studio-export-menu-item:hover:not([disabled]) {
  background: #f3f0fd !important;
  color: #6530d4 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-export-meta-pill,
[data-theme="day"] .brand-studio .studio-export-meta-pill {
  background: #f0f1f5 !important;
  color: #6c7080 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-help-item strong,
[data-theme="day"] .brand-studio .studio-help-item strong {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-help-item p,
[data-theme="day"] .brand-studio .studio-help-item p {
  color: #4a4d5a !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-help-item b,
[data-theme="day"] .brand-studio .studio-help-item b {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-help-mascot,
[data-theme="day"] .brand-studio .studio-help-mascot {
  filter: drop-shadow(0 4px 10px rgba(101, 48, 212, 0.12)) !important;
  opacity: 0.92 !important;
}

/* 5. Settings Panel */
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-setting-row,
[data-theme="day"] .brand-studio .studio-setting-row {
  background: #f8f9fc !important;
  border: 1px solid #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-setting-row span,
[data-theme="day"] .brand-studio .studio-setting-row span {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-setting-row button,
[data-theme="day"] .brand-studio .studio-setting-row button {
  background: #ffffff !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-setting-row button:hover,
[data-theme="day"] .brand-studio .studio-setting-row button:hover {
  background: #f0f2f7 !important;
  border-color: #c8cad6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-settings-utility h4,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-settings-danger h4,
[data-theme="day"] .brand-studio .studio-settings-utility h4,
[data-theme="day"] .brand-studio .studio-settings-danger h4 {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-mockup-card,
[data-theme="day"] .brand-studio .studio-mockup-card {
  background: #f8f9fc !important;
  border: 1px solid #dedfe6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-mockup-card-header,
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-mockup-meta strong,
[data-theme="day"] .brand-studio .studio-mockup-card-header,
[data-theme="day"] .brand-studio .studio-mockup-meta strong {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-mockup-pill,
[data-theme="day"] .brand-studio .studio-mockup-pill {
  background: rgba(101, 48, 212, 0.1) !important;
  color: #6530D4 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-mockup-actions button,
[data-theme="day"] .brand-studio .studio-mockup-actions button {
  background: #ffffff !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-mockup-actions button:hover,
[data-theme="day"] .brand-studio .studio-mockup-actions button:hover {
  background: #f0f2f7 !important;
  border-color: #c8cad6 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-clear-zone-btn,
[data-theme="day"] .brand-studio #studio-clear-zone-btn {
  background: #ffffff !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-clear-zone-btn:hover,
[data-theme="day"] .brand-studio #studio-clear-zone-btn:hover {
  background: #fbebee !important;
  border-color: #e03e3e !important;
  color: #e03e3e !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-reset-layout-btn,
[data-theme="day"] .brand-studio #studio-reset-layout-btn {
  background: #ffffff !important;
  border-color: #dedfe6 !important;
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio #studio-reset-layout-btn:hover,
[data-theme="day"] .brand-studio #studio-reset-layout-btn:hover {
  background: #f0f2f7 !important;
  border-color: #c8cad6 !important;
  color: #000000 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-setting-action-text span,
[data-theme="day"] .brand-studio .studio-setting-action-text span {
  color: #121316 !important;
}
:is([data-theme="day"], .awebo-day-theme) .brand-studio .studio-setting-action-text .studio-hint,
[data-theme="day"] .brand-studio .studio-setting-action-text .studio-hint {
  color: #585b6d !important;
}



/* Discard Unsaved Changes Dialog */
.studio-discard-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: studioFadeIn 0.15s ease;
}
.studio-discard-card {
  width: min(90%, 380px);
  padding: 24px;
  background: var(--studio-panel, #111216);
  border: 1px solid var(--studio-line-strong, #3d4050);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
:is([data-theme="day"], .awebo-day-theme) .studio-discard-card,
[data-theme="day"] .studio-discard-card {
  background: #ffffff !important;
  border-color: #c2c4d1 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}
.studio-discard-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(123, 65, 231, 0.14);
}
.studio-discard-card h3 {
  font-size: 16px !important;
  font-weight: 750 !important;
  margin: 0 0 8px !important;
  color: var(--studio-text, #f4f4f6) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
:is([data-theme="day"], .awebo-day-theme) .studio-discard-card h3,
[data-theme="day"] .studio-discard-card h3 {
  color: #121316 !important;
}
.studio-discard-message {
  font-size: 13px;
  color: var(--studio-muted, #a4a7b5);
  margin: 0 0 20px;
  line-height: 1.45;
}
.studio-discard-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.studio-discard-actions button {
  flex: 1;
  min-height: 38px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 8px;
}
.studio-discard-btn {
  background: #E03E3E !important;
  border-color: #E03E3E !important;
  color: #ffffff !important;
}
.studio-discard-btn:hover {
  background: #c93030 !important;
  border-color: #c93030 !important;
}

/* Mobile Rotation Hint */
.studio-rotate-hint {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(123, 65, 231, 0.18);
  border-bottom: 1px solid rgba(123, 65, 231, 0.35);
  color: var(--studio-accent, #7B41E7);
  font-size: 11px;
  font-weight: 650;
  z-index: 20;
}
.studio-rotate-dismiss {
  min-height: auto !important;
  padding: 0 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--studio-accent, #7B41E7) !important;
  font-size: 18px !important;
  cursor: pointer;
  line-height: 1;
}

/* Mobile Responsive: Full-Screen */
@media (max-width: 768px) {
  .brand-studio {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 9999 !important;
  }
}

/* Mobile Portrait: Simple Mode */
@media (max-width: 768px) and (orientation: portrait) {
  .studio-rotate-hint {
    display: flex;
  }
  .studio-layout {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 58px - 44px);
    overflow-y: auto;
  }
  .studio-work {
    order: 1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 100%;
    min-height: 380px;
  }
  .studio-stage {
    min-height: 300px;
  }
  .studio-canvas-scroll {
    min-height: 280px;
  }
  .studio-canvas-scroll canvas {
    width: min(92vw, 360px);
    height: min(92vw, 360px);
  }
  .studio-bottom-views-colors-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 10px;
  }
  .studio-sidebar {
    order: 2;
    width: 100%;
    border-right: 0;
    border-top: 1px solid var(--studio-line, #292b35);
    min-height: 280px;
  }
}

/* Mobile Landscape: Full Mode */
@media (max-width: 900px) and (orientation: landscape) {
  .studio-rotate-hint {
    display: none !important;
  }
  .studio-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    height: calc(100dvh - 48px - 36px);
    overflow: hidden;
  }
  .studio-heading {
    height: 48px;
    padding: 0 12px;
  }
  .studio-nav-horizontal {
    height: 36px;
    padding: 0 10px;
  }
  .studio-nav-horizontal button {
    height: 28px;
    min-height: 28px;
    font-size: 11px;
    padding: 0 6px !important;
  }
  .studio-sidebar {
    padding: 10px 8px;
  }
  .studio-bottom-views-colors-row {
    padding: 4px 10px;
  }
  .studio-stage {
    min-height: 200px;
  }
  .studio-canvas-scroll canvas {
    width: min(52dvh, 320px);
    height: min(52dvh, 320px);
  }
}

/* Hyperrealistic Preview Zoom Modal (Add Products Editor) */
dialog.studio-real-zoom-dialog {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0;
  width: min(92vw, 860px);
  max-width: 92vw;
  max-height: 92dvh;
  background: #14121b;
  color: #f4f2fa;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
dialog.studio-real-zoom-dialog::backdrop {
  background: rgba(10, 8, 18, 0.72);
  backdrop-filter: blur(6px);
}
[data-theme="day"] dialog.studio-real-zoom-dialog {
  background: #ffffff;
  color: #171426;
  border-color: rgba(23, 20, 38, 0.12);
}
.studio-real-zoom-shell {
  display: flex;
  flex-direction: column;
  height: min(86dvh, 760px);
}
.studio-real-zoom-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="day"] .studio-real-zoom-header {
  border-bottom-color: rgba(23, 20, 38, 0.1);
}
.studio-real-zoom-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}
.studio-real-zoom-title strong {
  font-size: 14px;
  font-weight: 700;
}
.studio-real-zoom-color {
  font-size: 12px;
  opacity: 0.72;
}
.studio-real-zoom-controls-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.studio-real-zoom-sides,
.studio-real-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="day"] .studio-real-zoom-sides,
[data-theme="day"] .studio-real-zoom-controls {
  background: rgba(23, 20, 38, 0.06);
}
.studio-real-zoom-status {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(123, 65, 231, 0.14);
  border: 1px solid rgba(123, 65, 231, 0.35);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  max-width: 85%;
}
.studio-rz-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.studio-rz-btn.is-active {
  background: #7b41e7;
  color: #ffffff;
}
.studio-real-zoom-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.studio-rz-edit {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
}
.studio-rz-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[data-theme="day"] .studio-rz-close {
  border-color: rgba(23, 20, 38, 0.14);
  background: rgba(23, 20, 38, 0.05);
}
.studio-real-zoom-stage {
  flex: 1 1 auto;
  min-height: 260px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9e8f0;
  user-select: none;
  touch-action: none;
}
[data-theme="night"] .studio-real-zoom-stage {
  background: #0d0c12;
}
.studio-real-zoom-stage.is-zoomed {
  cursor: grab;
}
.studio-real-zoom-stage.is-dragging {
  cursor: grabbing;
}
.studio-real-zoom-img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  pointer-events: none;
}
.studio-real-zoom-stage.is-dragging .studio-real-zoom-img {
  transition: none;
}
.studio-real-zoom-footer {
  padding: 8px 16px;
  font-size: 11.5px;
  opacity: 0.72;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
[data-theme="day"] .studio-real-zoom-footer {
  border-top-color: rgba(23, 20, 38, 0.08);
}
@media (max-width: 640px) {
  dialog.studio-real-zoom-dialog {
    width: 96vw;
    max-width: 96vw;
  }
  .studio-real-zoom-header {
    padding: 10px 12px;
  }
  .studio-real-zoom-controls {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}


/* AWEBO MY UPLOADS - SINGLE TILE */

.brand-studio #studio-assets {
  --asset-check-a: #202129;
  --asset-check-b: #2c2d36;
  gap: 12px 9px !important;
  align-items: start !important;
}

:is([data-theme="day"], .awebo-day-theme)
.brand-studio #studio-assets {
  --asset-check-a: #ffffff;
  --asset-check-b: #eeeeF2;
}

body.brand-studio-route .brand-studio
#studio-assets .studio-asset-item,
.brand-studio #studio-assets .studio-asset-item {
  min-width: 0 !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.brand-studio-route .brand-studio
#studio-assets .studio-asset-item .studio-asset-thumb-btn,
.brand-studio
#studio-assets .studio-asset-item .studio-asset-thumb-btn {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid var(--studio-line) !important;
  border-radius: 7px !important;
  background:
    repeating-conic-gradient(
      var(--asset-check-a) 0% 25%,
      var(--asset-check-b) 0% 50%
    ) 0 0 / 18px 18px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
}

body.brand-studio-route .brand-studio
#studio-assets .studio-asset-item .studio-asset-thumb-btn:hover,
.brand-studio
#studio-assets .studio-asset-item .studio-asset-thumb-btn:hover {
  border-color: var(--studio-accent) !important;
}

body.brand-studio-route .brand-studio
#studio-assets .studio-asset-item .studio-asset-thumb-btn img,
.brand-studio
#studio-assets .studio-asset-item .studio-asset-thumb-btn img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}

.brand-studio #studio-assets .studio-asset-name {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--studio-text);
}

.brand-studio #studio-assets .studio-asset-dimensions {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--studio-muted);
}

body.brand-studio-route .brand-studio
#studio-assets .studio-asset-item .studio-asset-delete,
.brand-studio
#studio-assets .studio-asset-item .studio-asset-delete {
  top: 5px !important;
  right: 5px !important;
  width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--studio-panel) !important;
  color: var(--studio-text) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  z-index: 5 !important;
  transition:
    transform .15s ease,
    background-color .15s ease !important;
}

body.brand-studio-route .brand-studio
#studio-assets .studio-asset-item .studio-asset-delete:hover,
.brand-studio
#studio-assets .studio-asset-item .studio-asset-delete:hover {
  transform: scale(1.15) !important;
  background: #c43c42 !important;
  border-color: #c43c42 !important;
  color: #ffffff !important;
}

.brand-studio #studio-assets button:focus-visible {
  outline: 2px solid var(--studio-accent) !important;
  outline-offset: -2px;
}
