/* Nasher Studio: one responsive identity, from the approved Studio/Mobile prototypes.
 * Existing application state classes (.hidden, .flex, disabled) remain authoritative.
 */
@font-face {font-family:Nasher;src:url("/static/fonts/nasher-regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap;}
@font-face {font-family:Nasher;src:url("/static/fonts/nasher-semibold.ttf") format("truetype");font-style:normal;font-weight:600 900;font-display:swap;}
:root {--studio-brand:#6547cc;--studio-dark:#5135af;--studio-soft:#efebff;--studio-bg:#f7f7fa;--studio-ink:#26213c;--studio-muted:#686276;--studio-line:#e9e7ef;--studio-sidebar:92px;--font-sans:Nasher,system-ui,sans-serif;--font-num:Nasher,system-ui,sans-serif;--color-brand:#6547cc;--primary:#6547cc;--background:#f7f7fa;}
body[data-studio-page] {font-family:var(--font-sans);background:var(--studio-bg);color:var(--studio-ink);line-height:1.75;-webkit-font-smoothing:antialiased;}
body[data-studio-page] *,body[data-studio-page] *::before,body[data-studio-page] *::after {box-sizing:border-box;}
/* Visibility transitions override even an !important authority mask until their
 * endpoint. Freeze private Studio presentation immediately, never the overlay. */
body[data-studio-page=dashboard][data-nasher-authority-pending="true"] > :not(#nasher-authority-status),
body[data-studio-page=dashboard][data-nasher-authority-pending="true"] > :not(#nasher-authority-status) * {transition:none!important;animation:none!important;}
body[data-studio-page] :where(input,select,textarea,button) {font-family:inherit;}
body[data-studio-page] :where(button,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),[role=button]) {min-height:44px;}
body[data-studio-page] :where(button,[role=button]) {min-width:44px;}
body[data-studio-page] :where(nav,footer) a[href] {min-height:44px;display:inline-flex;align-items:center;}
body[data-studio-page] label:has(>input[type=checkbox],>input[type=radio]) {display:inline-flex;align-items:center;gap:8px;min-width:44px;min-height:44px;}
body[data-studio-page] :where(input[type=checkbox],input[type=radio]) {accent-color:var(--studio-brand);}
body[data-studio-page] :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {border-color:var(--studio-line);border-radius:10px;max-width:100%;}
body[data-studio-page] :where(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--studio-brand);outline-offset:3px;}
/* This non-interactive landmark keeps programmatic focus, not an app-wide frame. */
body[data-studio-page] #studioMain:focus,body[data-studio-page] #studioMain:focus-visible {outline:0;}
body[data-studio-page] .font-num {font-family:var(--font-num);font-variant-numeric:tabular-nums;}
body[data-studio-page] :where(h1,h2,h3,p,label) {overflow-wrap:anywhere;}
body[data-studio-page] :where(.bg-white,.bg-white\/95) {border-color:var(--studio-line);}
body[data-studio-page] :where(.bg-indigo-600,.bg-sky-600,.bg-blue-600) {background:var(--studio-brand);}
body[data-studio-page] :where(.text-indigo-600,.text-indigo-700,.text-sky-600,.text-sky-700,.text-blue-600) {color:var(--studio-brand);}
body[data-studio-page] :where(.bg-indigo-50,.bg-sky-50,.bg-purple-50) {background:var(--studio-soft);}
body[data-studio-page] :where(.border-indigo-200,.border-sky-200,.border-purple-200) {border-color:#ddd3f5;}
body[data-studio-page] :where(.text-slate-900,.text-slate-800) {color:var(--studio-ink);}
body[data-studio-page] :where(.text-slate-500,.text-slate-600) {color:var(--studio-muted);}
body[data-studio-page] :where(.bg-slate-50,.bg-slate-50\/80) {background:var(--studio-bg);}
body[data-studio-page] :where(.shadow-xl,.shadow-lg) {box-shadow:0 12px 36px #26213c0c;}
.studio-skip {position:fixed;top:8px;inset-inline-start:12px;transform:translateY(-180%);z-index:10000;background:white;color:var(--studio-brand);padding:12px 20px;border-radius:10px;}
.studio-skip:focus {transform:none;}
.studio-brand {display:flex;gap:12px;align-items:center;color:var(--studio-ink);text-decoration:none;font-weight:700;font-size:20px;padding:8px;}
.studio-logo-icon {display:block;width:48px;height:48px;object-fit:contain;flex-shrink:0;}
.studio-logo-full {display:block;object-fit:contain;flex-shrink:0;}
.studio-sidebar .studio-brand {padding:0;justify-content:center;}
.studio-sidebar .studio-sections {gap:4px;margin-top:26px;}
.studio-sidebar .studio-sections :where(button,a) {position:relative;flex-direction:column;justify-content:center;gap:5px;min-height:64px;padding:9px 0;text-align:center;font-size:10px;line-height:1.45;}
.studio-sidebar .studio-sections svg {width:23px;height:23px;}
.studio-sidebar #navScheduleIndicator {position:absolute;inset-block-start:8px;inset-inline-end:9px;}
.studio-sidebar .studio-sidebar-caption {display:none;}
#studioHeaderSearch:empty {display:none;}
#studioHeaderSearch #studioSearchControl>label {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
#studioHeaderSearch #searchInput {background:var(--studio-bg);}
#studioOperationalStatus {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
#studioLiveNotices:empty {display:none;}
#studioLiveNotices>p:empty {display:none;}
#studioLiveNotices {max-width:100%;}
.studio-view-switch {display:flex;border:1px solid var(--studio-line);border-radius:11px;overflow:hidden;background:white;}
.studio-view-switch button {border:0;background:transparent;color:var(--studio-muted);}
.studio-view-switch button[aria-pressed=true] {background:var(--studio-soft);color:var(--studio-brand);}
.studio-view-switch svg {width:20px;height:20px;margin:auto;}
#studioFilters {width:min(540px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--studio-line);border-radius:22px;padding:18px;color:var(--studio-ink);}
#studioFilters::backdrop {background:#26213c70;}
#studioFiltersBody {display:grid;gap:16px;margin-top:18px;}
#studioFiltersBody>div {min-width:0;}
#studioFiltersBody :where(input,select) {width:100%;}
#studioFiltersBody #studioQuickFilters {gap:8px;}
#studioFiltersBody #advancedFilterPanel {background:var(--studio-bg);}
.studio-prep-explanation summary {color:var(--studio-brand);font-size:12px;cursor:pointer;min-height:28px;}
.studio-empty-link {width:min(560px,calc(100% - 32px));margin:10vh auto;padding:36px;background:white;border:1px solid var(--studio-line);border-radius:22px;text-align:center;box-shadow:0 12px 36px #26213c08;}
.studio-empty-link .studio-logo-full {margin:0 auto 22px;}
.studio-empty-link-code {display:block;color:var(--studio-brand);font-size:13px;font-weight:700;letter-spacing:3px;}
.studio-empty-link h1 {font-size:27px;line-height:1.8;margin:10px 0;}
.studio-empty-link p {font-size:15px;color:var(--studio-muted);}
.studio-empty-link-return {display:inline-flex;align-items:center;min-height:44px;margin-top:26px;padding:10px 24px;border-radius:12px;background:var(--studio-brand);color:white;text-decoration:none;}
body[data-studio-page=catalog-link-incomplete] {display:flow-root;margin:0;min-height:100vh;}
.studio-sidebar {position:fixed;inset-block:0;inset-inline-start:0;width:var(--studio-sidebar);padding:24px 12px;background:white;border-inline-end:1px solid var(--studio-line);z-index:35;overflow-y:auto;}
.studio-sections {display:grid;gap:6px;margin-top:26px;}
.studio-sections :where(button,a) {display:flex;align-items:center;gap:11px;width:100%;min-height:48px;justify-content:flex-start;text-align:start;border:0;border-radius:10px;background:transparent;color:var(--studio-muted);font-size:12px;font-weight:500;padding:11px 12px;box-shadow:none;text-decoration:none;}
.studio-sections :where(button,a):hover {background:var(--studio-bg);color:var(--studio-ink);}
.studio-sections [aria-current=page] {background:var(--studio-soft);color:var(--studio-brand);font-weight:700;}
.studio-sections svg {width:18px;height:18px;flex-shrink:0;}
.studio-sidebar .studio-sidebar-caption {font-size:11px;color:var(--studio-muted);border-top:1px solid var(--studio-line);padding:18px 8px;margin-top:26px;}
.studio-topbar {margin-inline-start:var(--studio-sidebar);position:relative;top:auto;background:white;border-bottom:1px solid var(--studio-line);box-shadow:none;}
.studio-topbar .dashboard-header-row {max-width:none;min-height:75px;padding:12px 37px;gap:20px;flex-wrap:wrap;}
.studio-topbar .dashboard-store-identity .studio-logo-icon {width:40px;height:40px;}
.studio-topbar .dashboard-store-heading p {display:none;}
.studio-topbar .dashboard-store-heading h1 {max-width:180px;}
#studioHeaderSearch {min-width:180px;flex:1;max-width:430px;}
.studio-topbar #activeChannelModeBadge {max-width:150px;white-space:normal;text-align:center;}
.studio-topbar .dashboard-store-heading {flex-wrap:wrap;gap:8px;}
.studio-topbar .dashboard-store-heading h1 {font-size:15px;}
.studio-topbar .dashboard-store-heading p {font-size:11px;}
.studio-topbar .dashboard-channel-switcher {margin-inline-start:auto;background:var(--studio-bg);padding:6px 10px;border-color:var(--studio-line);box-shadow:none;}
.studio-topbar #activeChannelDropdown {max-width:240px;font-size:12px;}
.studio-topbar .dashboard-account-actions {gap:8px;}
.studio-topbar #navPlanBadge {font-family:var(--font-sans);font-size:10px;line-height:1.7;white-space:normal;max-width:160px;padding:4px 10px;}
.studio-heading {margin-inline-start:var(--studio-sidebar);padding:31px 37px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.studio-heading h2 {font-size:32px;font-weight:700;line-height:1.6;}
.studio-heading p {font-size:14px;color:var(--studio-muted);margin-top:4px;}
.studio-heading #studioOperationalStatus {flex-basis:100%;}
.studio-heading #studioOperationalStatus:not(:has(#botStatusBadge)):not(:has(#previewConflictNotice:not(.hidden),#publishStatusMsg:not(:empty))) {display:none;}
#studioOperationalStatus #botStatusBadge {font-size:11px;}
#studioLiveNotices :where(p,div) {margin:0;}
.studio-heading-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.studio-heading-actions>button {border-radius:10px;min-height:44px;padding:10px 15px;font-size:12px;}
.studio-heading-actions>button:first-child {background:var(--studio-brand);color:white;}
.studio-catalog-bar {margin-inline-start:var(--studio-sidebar);padding:14px 37px 0;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;}
.studio-catalog-label {font-size:13px;font-weight:700;color:var(--studio-ink);}
#studioMenu .studio-catalog-bar {margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid var(--studio-line);}
.studio-preview>summary {display:list-item;cursor:pointer;min-height:44px;padding:12px 16px;background:white;border:1px solid var(--studio-line);border-radius:14px;font-size:13px;font-weight:600;}
.studio-preview[open]>summary {margin-bottom:12px;}
.studio-preview>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.studio-preview>summary::after {content:'⌄';font-size:18px;}
.studio-preview[open]>summary::after {content:'⌃';}
#studioPreviewAvailability {color:var(--studio-muted);font-size:11px;font-weight:400;}
.studio-secondary {grid-column:1/-1;}
.studio-catalog-bar .dashboard-catalog-links {display:flex;flex-wrap:wrap;gap:10px;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;overflow:visible;}
.studio-catalog-bar .dashboard-catalog-links>div {min-width:0;background:white;border:1px solid var(--studio-line);border-radius:13px;padding:2px 6px;gap:4px;}
.studio-catalog-bar .dashboard-catalog-links>span {display:none;}
.studio-catalog-bar .dashboard-catalog-links a {min-height:44px;font-size:12px;}
.studio-catalog-bar .dashboard-catalog-links button {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:4px 10px;font-size:12px;font-weight:700;color:var(--studio-brand);}
.studio-workspace {margin:0;margin-inline-start:var(--studio-sidebar);width:auto;max-width:none;padding:22px 37px 32px;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start;}
.studio-workspace>div {grid-column:auto;min-width:0;}
.studio-products>#studioToolbar {padding:0;border:0;background:transparent;box-shadow:none;gap:16px;}
#studioPrimaryFilters {display:flex;align-items:end;gap:12px;}
#studioPrimaryFilters>div {flex:0 1 260px;min-width:0;}
#studioFilterActions {order:-1;align-items:center;border:0;padding:0 0 12px;border-bottom:1px solid var(--studio-line);}
#studioQuickFilters {gap:8px;}
#studioQuickFilters>span {display:none;}
#studioQuickFilters>button {background:transparent;border:0;border-radius:0;color:var(--studio-muted);font-size:13px;padding:9px 12px;box-shadow:none;}
#studioQuickFilters>button.bg-slate-900 {color:var(--studio-brand);box-shadow:inset 0 -2px var(--studio-brand);font-weight:700;}
.studio-filter-buttons {flex-wrap:wrap;}
#productsCounter {font-size:12px;}
.studio-products>div:has(>#productsList) {background:transparent;border:0;box-shadow:none;overflow:visible;}
.studio-products>div:has(>#productsList)>div:first-child {background:transparent;border:0;padding:0 0 15px;}
.studio-products>div:has(>#productsList)>div:first-child>div {display:none;}
#productsList {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-height:none;overflow:visible;}
#productsList>div:not(.studio-product-card) {grid-column:1 / -1;border:1px solid var(--studio-line);border-radius:15px;background:white;}
#productsList .studio-product-card {display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:0;background:white;border:0;border-radius:18px;overflow:visible;position:relative;cursor:default;min-width:0;box-shadow:0 3px 8px #27213d08;}
#productsList .studio-product-card.border-r-4 {border:2px solid var(--studio-brand);}
.studio-product-summary {display:flex;flex-direction:column;gap:0;align-items:stretch;}
.studio-product-check {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;display:grid;place-items:center;justify-content:center;width:44px;height:44px;background:#ffffffed;border:1px solid var(--studio-line);border-radius:10px;cursor:pointer;}
.studio-product-check:focus-within {outline:3px solid var(--studio-brand);outline-offset:2px;}
.studio-product-check input {width:20px;height:20px;}
.studio-product-photo {width:100%;height:235px;border-radius:0;border:0;background:#f0edf6;}
.studio-product-photo img {object-fit:contain;width:100%;height:100%;}
.studio-product-summary>div:last-child {padding:18px 20px 0;}
.studio-product-summary>div:last-child>div:nth-child(2) {flex-wrap:wrap;gap:12px 4px;}
.studio-product-title {width:100%;text-align:start;font-size:13px;font-weight:700;color:var(--studio-ink);white-space:normal;line-height:1.8;}
.studio-product-details {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;padding:8px 20px 18px;}
#productsList[data-view=list] {grid-template-columns:minmax(0,1fr);gap:12px;}
#productsList[data-view=list] .studio-product-card {flex-direction:row;align-items:center;padding:12px;gap:16px;}
#productsList[data-view=list] .studio-product-summary {flex:1;min-width:0;flex-direction:row;align-items:center;gap:14px;}
#productsList[data-view=list] .studio-product-check {position:static;background:transparent;flex-shrink:0;}
#productsList[data-view=list] .studio-product-photo {width:90px;height:90px;border-radius:12px;flex-shrink:0;}
#productsList[data-view=list] .studio-product-summary>div:last-child {padding:0;}
#productsList[data-view=list] .studio-product-details {padding:0;min-width:250px;}
#productsList[data-view=list] .studio-product-details>div:last-child {border:0;margin:0;padding:0;width:auto;}
#productsList[data-view=list] .studio-product-details>div:first-child {text-align:start;}
.studio-product-details>div:last-child {width:100%;border-top:1px solid var(--studio-line);padding-top:8px;margin-top:5px;justify-content:flex-end;}
.studio-product-details>div:first-child>div:first-child {font-size:18px;font-weight:700;}
.studio-product-details>div:first-child>div:last-child {font-size:11px;}
.studio-preview>div {position:static;border-color:var(--studio-line);box-shadow:none;}
.studio-preview>div>div:first-child {background:#302642;border-color:#302642;}
.studio-preview #noImagePlaceholder {min-height:180px;}
.studio-preview textarea {font-size:13px;line-height:1.9;}
.studio-mobile-nav {display:none;}
.studio-mobile-toggle {display:none;}
body[data-studio-page=superadmin] .studio-admin-main {margin:0;margin-inline-start:var(--studio-sidebar);max-width:none;width:auto;}
#studioMenu {width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 32px);border:1px solid var(--studio-line);border-radius:18px;padding:18px;background:white;color:var(--studio-ink);}
#studioMenu::backdrop {background:#26213c70;}
.studio-menu-title {display:flex;align-items:center;justify-content:space-between;font-size:18px;font-weight:700;}
.studio-menu-title button {border:1px solid var(--studio-line);border-radius:10px;font-size:13px;}
.studio-dialog-hint:empty {display:none;}
.studio-dialog-hint:not(:empty) {padding:12px 18px;background:#fff8e9;color:#9b5e11;font-size:12px;border-top:1px solid #eadbbd;}
#studioMenu .studio-sections {margin-top:12px;}
.studio-menu-account-actions {display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--studio-line);margin-top:16px;padding-top:16px;}
.studio-menu-account-actions button,.studio-menu-account-actions a {display:flex;align-items:center;gap:6px;padding:10px 12px;font-size:12px;border-radius:10px;}
.studio-menu-account-actions span {display:inline;}
/* FS-042: repeated decorative icons share CSS masks, not eight SVG nodes/card.
   Keep every native control, label and 44px target; no merchant content is moved. */
.studio-product-card .btn-copy-sku::before,
.studio-product-card .btn-row-edit::before,
.studio-product-card .btn-row-more::before {content:"";display:block;flex:none;background:currentColor;pointer-events:none;-webkit-mask:var(--products-action-icon) center/contain no-repeat;mask:var(--products-action-icon) center/contain no-repeat;}
.studio-product-card .btn-copy-sku {--products-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.6'%3E%3Cpath%20d='M8%208h13v13H8zM16%208V3H3v13h5'/%3E%3C/svg%3E");}
.studio-product-card .btn-copy-sku::before {width:17px;height:17px;}
.studio-product-card .btn-copy-sku:not(:empty)::before {display:none;}
.studio-product-card .btn-row-edit {--products-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.6'%3E%3Cpath%20d='M14%204l6%206M3%2021l5-1L21%207l-5-5L3%2015z'/%3E%3C/svg%3E");}
.studio-product-card .btn-row-edit::before {width:18px;height:18px;}
.studio-product-card .btn-row-more {--products-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='12'%20cy='5'%20r='1.7'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='1.7'/%3E%3Ccircle%20cx='12'%20cy='19'%20r='1.7'/%3E%3C/svg%3E");}
.studio-product-card .btn-row-more::before {width:21px;height:21px;}
/* FS-042: page-sized owner lists; both navigations keep native RTL/tab order. */
.products-paging-controls {display:flex;flex-direction:column;gap:6px;min-width:0;}
.products-paging-controls:has(.products-pager[hidden]) {display:none;}
.products-list-heading {font-size:15px;font-weight:700;scroll-margin-top:24px;margin:0;}
.products-list-heading:focus {outline:3px solid var(--studio-brand);outline-offset:5px;border-radius:4px;}
.products-pager {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;min-width:0;padding:12px;border:1px solid var(--studio-line);border-radius:14px;background:white;font-size:12px;}
.products-pager[hidden],.products-paging-retry[hidden],.products-paging-status[hidden] {display:none;}
.products-pager-navigation,.products-page-numbers {display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:0;}
.products-pager :where(button,select),.products-paging-retry {min-width:44px;min-height:44px;padding:8px;border:1px solid var(--studio-line);border-radius:9px;background:white;color:var(--studio-ink);font-size:12px;}
.products-pager label {display:flex;align-items:center;gap:8px;min-width:0;}
.products-pager [aria-current=page] {background:var(--studio-brand);color:white;border-color:var(--studio-brand);opacity:1;}
.products-pager :disabled:not([aria-current=page]) {color:var(--studio-muted);background:var(--studio-bg);opacity:.65;cursor:not-allowed;}
.products-page-label,.products-page-jump {display:none!important;}
.products-page-range {font-variant-numeric:tabular-nums;color:var(--studio-muted);}
.products-paging-live,.products-paging-status {font-size:12px;line-height:1.9;margin:0;color:var(--studio-muted);}
.products-paging-live:empty {display:none;}
.products-paging-status {color:#9b5e11;background:#fff8e9;border:1px solid #eadbbd;padding:10px;border-radius:10px;}
body[data-studio-page=dashboard][data-nasher-authority-pending=true] .products-pager {pointer-events:none;}
@media(max-width:600px) {
 .products-pager-navigation {display:flex;justify-content:flex-start;flex-wrap:nowrap;}
 .products-page-numbers {display:none;}
 .products-page-jump {display:flex!important;gap:0!important;font-size:0!important;}
 .products-page-jump select {font-size:12px;}
 .products-page-range {display:none;}
 .studio-products:has(.products-pager:not([hidden])) {gap:6px;}
 .products-list-heading {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
 .products-list-heading:focus {position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;}
 .products-pager {flex-wrap:nowrap;gap:8px;padding:0 8px;}
 .products-pager :where(button,select) {box-sizing:border-box;height:44px;line-height:1.4;padding-block:4px;}
 .products-pager label {font-size:11px;white-space:nowrap;}
 .studio-products:has(.products-pager:not([hidden])) #studioListMeta {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center;}
 .studio-products:has(.products-pager:not([hidden])) #studioListMeta>label {min-height:44px;white-space:nowrap;}
 .studio-products:has(.products-pager:not([hidden])) #studioListMeta #productsCounter {min-width:0;margin:0;line-height:1.3;text-align:center;}
}
/* The existing grid/mobile/list rules give this box explicit width and height.
   Contain image arrivals inside that box without changing card/menu geometry. */
.studio-products:has(.products-pager:not([hidden])) #productsList .studio-product-photo {contain:strict;}
@media(min-width:1080px) {
 /* Keep every current-page node; auto remembers its real rendered block size.
    442px is the measured grid fallback, not a fixed height; focus/menu paint opts out. */
 .studio-products:has(.products-pager:not([hidden])) #productsList[data-view=grid]>.studio-product-card {contain:layout style;content-visibility:auto;contain-intrinsic-block-size:auto 442px;}
 .studio-products:has(.products-pager:not([hidden])) #productsList[data-view=grid]>.studio-product-card:focus-within,
 .studio-products:has(.products-pager:not([hidden])) #productsList[data-view=grid]>.studio-product-card:has(.studio-product-menu[open]) {content-visibility:visible;}
}
/* All existing operational dialogs share the same surface; their scroll/focus contracts stay intact. */
body[data-studio-page] :where([role=dialog],dialog) {font-family:var(--font-sans);color:var(--studio-ink);}
body[data-studio-page] :where([role=dialog],dialog) :where(h2,h3) {font-weight:700;}
body[data-studio-page] :where([role=dialog],dialog) :where(input,textarea,select) {font-size:14px;line-height:1.8;}
body[data-studio-page] :where([role=dialog],dialog) :where(.bg-slate-900,.bg-gray-900) {background:#302642;}
body[data-studio-page] [class~="fixed"][class~="inset-0"]>div[class~="bg-white"] {border-radius:18px;border-color:var(--studio-line);box-shadow:0 20px 60px #26213c20;}
body[data-studio-page] [class~="fixed"][class~="inset-0"] :where(label,p) {line-height:1.9;}
/* Public pages, authentication and catalogs use the same local typography and palette. */
body[data-studio-page=landing] {background:var(--studio-bg);background-image:none;}
body[data-studio-page=landing]>header {background:white;box-shadow:none;border-color:var(--studio-line);}
body[data-studio-page=landing] section {scroll-margin-top:100px;}
body[data-studio-page=landing] :where(.bg-gradient-to-r,.bg-gradient-to-br) {background-image:none;}
body[data-studio-page=landing] [class~="from-sky-600"] {background:var(--studio-brand);}
body[data-studio-page=landing] [class~="text-transparent"] {color:var(--studio-brand);background:none;-webkit-text-fill-color:currentColor;}
body[data-studio-page=landing] [class~="shadow-xl"] {box-shadow:0 20px 60px #6547cc12;}
.studio-landing-hero {padding:48px 0;background:var(--studio-bg);}
.studio-hero-layout {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:42px;align-items:center;max-width:1240px;}
.studio-hero-copy {min-width:0;}
.studio-hero-copy h1 {font-size:39px;line-height:1.6;letter-spacing:0;font-weight:700;}
.studio-hero-copy>p {font-size:14px;line-height:2.1;color:var(--studio-muted);margin-block:20px 26px;}
.studio-hero-copy>div:has(>a[href="/register"]) {align-items:stretch;gap:10px;margin-bottom:28px;}
.studio-hero-copy>div:has(>a[href="/register"]) a {font-size:12px;padding:13px 16px;width:auto;}
.studio-hero-copy>div:first-child {margin-bottom:22px;}
.studio-hero-copy>div:last-child {font-size:11px;gap:12px;justify-content:flex-start;}
.studio-hero-art {background:white;border:12px solid #eae4f8;border-radius:26px;box-shadow:0 20px 50px #6547cc0e;padding:22px;transform:rotate(-2deg);min-width:0;}
.studio-art-heading {display:flex;gap:10px;align-items:center;font-size:14px;padding-bottom:20px;border-bottom:1px solid var(--studio-line);}
.studio-art-heading>span:last-child {font-size:10px;color:var(--studio-muted);margin-inline-start:auto;}
.studio-art-heading .studio-logo-full {width:44px;height:49px;}
.studio-art-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px;}
.studio-art-grid>div {border:1px solid var(--studio-line);border-radius:12px;overflow:hidden;background:white;padding-bottom:10px;}
.studio-art-product {display:block;height:145px;background:#efe8f7;position:relative;}
.studio-art-product::before {content:"";position:absolute;inset:28px 24px 22px;border-radius:18px;background:#9c83c3;box-shadow:7px 8px 0 #6547cc12;}
.studio-art-box {background:#e7efeb;}.studio-art-box::before {background:#7d9d8b;border-radius:10px;inset:38px 17px 28px;transform:rotate(-8deg);}
.studio-art-bottle {background:#f4e9e3;}.studio-art-bottle::before {background:#cfa88f;border-radius:7px 7px 20px 20px;inset:22px 35px;}
.studio-art-grid i {display:block;height:7px;background:#ece8f2;border-radius:4px;margin:12px 10px 0;}.studio-art-grid i:last-child {width:45%;background:#ded4f4;}
.studio-hero-art figcaption {font-size:12px;color:var(--studio-brand);background:var(--studio-soft);padding:12px;border-radius:9px;margin-top:20px;}
.studio-hero-art>a {display:block;font-size:11px;margin-top:15px;color:var(--studio-muted);min-height:44px;padding:10px 0;}
.studio-auth-layout {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:36px;width:min(100%,1020px);margin:auto;}
.studio-auth-main {max-width:none;}
.studio-auth-aside {margin-top:34px;padding:36px 28px;background:var(--studio-soft);border:1px solid #e2d9f7;border-radius:20px;position:sticky;top:30px;}
.studio-auth-aside h2 {font-size:27px;line-height:1.7;font-weight:700;margin-top:22px;}
.studio-auth-aside p {font-size:13px;color:var(--studio-muted);line-height:2;margin-top:14px;}
.studio-auth-aside ul {list-style:none;font-size:13px;display:grid;gap:16px;margin-block:25px;}
.studio-auth-aside li {padding:10px 0;border-bottom:1px solid #dfd7f3;}
.studio-auth-aside a {display:inline-flex;align-items:center;min-height:44px;color:var(--studio-brand);font-size:12px;}
body[data-studio-page=login],body[data-studio-page=register] {background:radial-gradient(ellipse at 90% 10%,#efebff 0,transparent 50%),var(--studio-bg);padding-block:40px 96px;}
body[data-studio-page=login] .shadow-xl,body[data-studio-page=register] .shadow-xl {box-shadow:0 10px 45px #6547cc08;border-radius:20px;border-color:var(--studio-line);}
body[data-studio-page=login] #btnSubmit {background:var(--studio-brand);}
body[data-studio-page=register] [id^=planCard] {border-radius:15px;}
body[data-studio-page=email-confirm],body[data-studio-page=reset-password] {margin:0;padding:40px 18px;min-height:100dvh;background:var(--studio-bg);}
body[data-studio-page=email-confirm] .container,body[data-studio-page=reset-password] .container {max-width:520px;margin:4vh auto;background:white;color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:20px;padding:30px;box-shadow:0 12px 40px #6547cc08;}
body[data-studio-page=email-confirm] h1,body[data-studio-page=reset-password] h1 {font-size:26px;color:var(--studio-ink);}
body[data-studio-page=email-confirm] .btn,body[data-studio-page=reset-password] .btn {background:var(--studio-brand);color:white;border-radius:10px;}
body[data-studio-page=email-confirm] .form-group input,body[data-studio-page=reset-password] .form-group input {background:white;color:var(--studio-ink);border:1px solid var(--studio-line);}
body[data-studio-page=email-confirm] p,body[data-studio-page=reset-password] p {color:var(--studio-muted);}
body[data-studio-page=email-confirm] .support-box,body[data-studio-page=reset-password] .support-box {background:var(--studio-soft);color:var(--studio-ink);border-color:var(--studio-line);}
body[data-studio-page=wholesale-unlock] main,body[data-studio-page=offline] main {background:white;color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:20px;padding:30px;max-width:520px;margin:8vh auto;}
body[data-studio-page=wholesale-unlock] button,body[data-studio-page=offline] button {background:var(--studio-brand);color:white;border-radius:10px;}
body[data-studio-page=catalog]>header {background:var(--studio-soft);color:var(--studio-ink);border-bottom:1px solid #ddd3f5;box-shadow:none;}
body[data-studio-page=catalog]>header :where(.text-white,.text-slate-200,.text-slate-300) {color:var(--studio-ink);}
body[data-studio-page=catalog] #headerWhatsAppBtn {color:white;}
body[data-studio-page=catalog] .studio-catalog-notice {background:white;color:var(--studio-muted);border-color:var(--studio-line);}
body[data-studio-page=catalog] .studio-catalog-notice :where(.text-slate-300,.text-slate-400) {color:var(--studio-muted);}
body[data-studio-page=catalog] .studio-catalog-notice :where(.text-emerald-300,.text-amber-300) {color:var(--studio-dark);background:var(--studio-soft);border-color:#ddd3f5;}
body[data-studio-page=catalog] #productGrid {grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
body[data-studio-page=catalog] .product-card {border:1px solid var(--studio-line);border-radius:16px;box-shadow:none;}
body[data-studio-page=catalog] .product-card .card-zoom-img {object-fit:contain;}
body[data-studio-page=catalog] :where(.bg-emerald-600,.bg-emerald-500) {background:var(--studio-brand);}
body[data-studio-page=superadmin]>header,body[data-studio-page=merchant-detail]>header {background:white;box-shadow:none;border-color:var(--studio-line);}
body[data-studio-page=superadmin] main,body[data-studio-page=merchant-detail] main {max-width:1440px;padding:28px;}
body[data-studio-page=superadmin] [id^=tabBtn-] {border-radius:10px;font-size:12px;min-height:48px;}
body[data-studio-page=superadmin] :where(#searchContainer,#searchBox) {max-width:100%;}
body[data-studio-page=superadmin] [id^=tabContent-] {border-radius:16px;}
body[data-studio-page=superadmin] table,body[data-studio-page=merchant-detail] table {font-size:12px;}
body[data-studio-page=superadmin] :where(th,td),body[data-studio-page=merchant-detail] :where(th,td) {padding-block:14px;}
body[data-studio-page=superadmin] th,body[data-studio-page=merchant-detail] th {background:var(--studio-bg);color:var(--studio-muted);}
body[data-studio-page=merchant-detail] [role=tablist] {gap:6px;flex-wrap:wrap;}
body[data-studio-page=merchant-detail] [role=tab] {min-height:44px;border-radius:9px;}
.studio-detail-tabs {gap:6px;background:white;padding:8px;border:1px solid var(--studio-line);border-radius:13px;}
.studio-detail-tabs button {border:0;border-radius:9px;}
.studio-detail-tabs [aria-current=page] {background:var(--studio-soft);color:var(--studio-brand);}
@media (max-width:1279px) {.studio-topbar .dashboard-channel-switcher {margin-inline-start:0;}.studio-topbar .dashboard-header-row {gap:12px;}}
@media (min-width:1550px) {#productsList {grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (min-width:640px) and (max-width:1079px) {#productsList {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:1079px) {
  body[data-studio-page=landing]>header nav {display:none;}
  .studio-sidebar {display:none;}.studio-topbar,.studio-heading,.studio-catalog-bar,.studio-workspace {margin-inline-start:0;}
  .studio-mobile-toggle {display:inline-flex;align-items:center;padding:8px 12px;border:1px solid var(--studio-line);border-radius:10px;color:var(--studio-brand);background:var(--studio-soft);}
  body[data-studio-page=superadmin] .studio-admin-main {margin-inline-start:0;}
  body[data-studio-page=dashboard] {padding-bottom:calc(84px + env(safe-area-inset-bottom));}
  .studio-topbar .dashboard-header-row {padding:12px 17px;}.studio-heading {padding:24px 17px 0;}.studio-catalog-bar {padding:16px 17px 0;}.studio-workspace {padding:18px 17px;}
  #studioHeaderSearch {display:none;}
  .studio-desktop-title {display:none;}
  #studioFilterActions {order:0;border:0;padding:0;}
  #studioSearchControl>label {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
  #studioPrimaryFilters {display:block;}
  #studioFilterActions .studio-filter-buttons {width:100%;justify-content:space-between;gap:6px;}
  #studioFilterActions #productsCounter {font-size:11px;}
  #studioFilters {margin:auto auto 0;max-height:calc(100dvh - 32px);border-radius:22px 22px 0 0;width:100%;padding-bottom:calc(18px + env(safe-area-inset-bottom));}
  #studioMenu {margin:auto auto 0;max-height:calc(100dvh - 32px);border-radius:22px 22px 0 0;width:100%;padding-bottom:calc(18px + env(safe-area-inset-bottom));}
  #studioMenu .studio-sections {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  #studioMenu .studio-sections :where(button,a) {padding:10px;gap:8px;font-size:12px;}
  #studioMenu .studio-catalog-bar {flex-direction:column;align-items:stretch;}
  #studioMenu .studio-catalog-bar .dashboard-catalog-links {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}
  #studioMenu .studio-catalog-bar .dashboard-catalog-links>div {justify-content:space-between;}
  #studioMenu .studio-catalog-bar .dashboard-catalog-links a {flex:1;}
  .studio-empty-link {margin:8vh auto;padding:28px 22px;}
  .studio-empty-link h1 {font-size:24px;}
  #preparationModal>div>div:first-child {position:relative;padding:14px 16px;}
  #preparationModal>div>div:first-child>div {width:calc(100% - 48px);}
  #preparationModal #btnPrepClose {position:absolute;inset-inline-end:12px;inset-block-start:12px;}
  .studio-prep-explanation summary {min-height:44px;display:list-item;padding-block:9px;}
  #preparationModal>div>div:nth-child(2) {padding:12px 16px;gap:10px;}
  #preparationModal>div>div:nth-child(2)>div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px;}
  #preparationModal>div>div:nth-child(2) button {padding-inline:8px;font-size:11px;justify-content:center;}
  #preparationModal :where(#prepStatsBanner,#prepTransferStatus,#prepOpResult,#prepStorageNotice,#prepCleanupNotice) {padding-inline:16px;}
  #preparationModal #prepStatsBanner {font-size:11px;}
  #preparationModal #prepStatsBanner>div:first-child {gap:10px;}
  #preparationModal #prepWorkspaceBody {padding:16px;}
  #productsList[data-view=list] .studio-product-card {gap:10px;flex-wrap:wrap;padding:12px;}
  #productsList[data-view=list] .studio-product-summary {gap:8px;flex-basis:100%;}
  #productsList[data-view=list] .studio-product-photo {width:64px;height:64px;}
  #productsList[data-view=list] .studio-product-details {min-width:0;width:100%;padding-inline-start:52px;}
  #productsList[data-view=list] .studio-product-details>div:last-child {width:100%;}
  .studio-mobile-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset-inline:0;bottom:0;padding:7px 12px calc(7px + env(safe-area-inset-bottom));z-index:40;background:white;border-top:1px solid var(--studio-line);box-shadow:0 -5px 24px #26213c05;}
  .studio-mobile-nav :where(button,a) {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;font-size:11px;border-radius:10px;color:var(--studio-muted);text-decoration:none;gap:2px;}
  .studio-mobile-nav [aria-current=page] {color:var(--studio-brand);background:var(--studio-soft);}.studio-mobile-nav svg {width:20px;height:20px;}
  body[data-studio-page=dashboard] > #pwa-update-banner {bottom:calc(86px + env(safe-area-inset-bottom, 0px));max-height:calc(100dvh - 120px);overflow:auto;}
}
@media (max-width:639px) {
  .studio-demo-chrome {flex-wrap:wrap;gap:12px;}
  .studio-demo-address {min-width:0;flex-basis:100%;order:3;margin-inline:0;}
  .studio-demo-address>span {overflow-wrap:anywhere;min-width:0;}
  .studio-admin-summary {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .studio-admin-summary>div {padding:12px;min-width:0;}
  .studio-admin-summary>div>div:first-child {gap:5px;flex-wrap:wrap;}
  .studio-admin-summary>div>div:nth-child(2) {font-size:23px;}
  body[data-studio-page=landing]>header>div {height:auto;min-height:80px;flex-wrap:wrap;gap:12px;padding-block:12px;}
  body[data-studio-page=landing]>header>div>a {min-width:0;gap:8px;}
  body[data-studio-page=landing]>header>div>div:last-child {width:100%;justify-content:flex-start;flex-wrap:wrap;gap:8px;}
  body[data-studio-page=landing]>header a[href="/login"],body[data-studio-page=landing]>header a[href="/register"],body[data-studio-page=landing]>header a[href="/dashboard"] {min-height:44px;display:inline-flex;align-items:center;max-width:100%;overflow-wrap:anywhere;}
  .studio-hero-layout,.studio-auth-layout {grid-template-columns:minmax(0,1fr);gap:24px;}.studio-landing-hero {padding:28px 0 40px;}.studio-hero-copy h1 {font-size:31px;}.studio-hero-copy>div:has(>a[href="/register"]) {flex-direction:column;}.studio-hero-art {padding:14px;transform:none;border-width:8px;}.studio-art-product {height:116px;}.studio-art-product::before {inset:24px 16px;}.studio-art-bottle::before {inset:18px 28px;}.studio-auth-aside {position:static;margin-top:0;padding:24px;}.studio-auth-aside h2 {font-size:23px;}
  .studio-topbar .dashboard-header-row {align-items:center;gap:8px;}.studio-topbar .dashboard-store-identity {width:100%;}.studio-topbar .dashboard-store-heading {flex:1;justify-content:space-between;}.studio-topbar .dashboard-channel-switcher {flex:1;min-width:0;padding:3px 8px;}.studio-topbar #activeChannelDropdown {min-width:0;max-width:none;flex:1;width:100%;font-size:11px;}.studio-topbar #activeChannelModeBadge {max-width:95px;font-size:9px;}.studio-topbar .dashboard-account-actions {width:100%;flex-wrap:wrap;}
  .studio-heading {gap:10px;}.studio-heading h2 {font-size:25px;}.studio-heading p {font-size:13px;}.studio-heading-actions {width:100%;}.studio-heading-actions>button {flex:1;white-space:normal;padding:9px;font-size:12px;}
  .studio-heading-actions #studioRefresh {flex:0 0 44px;padding:8px;justify-content:center;}
  #studioRefresh>span {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
  .studio-catalog-bar .dashboard-catalog-links {gap:10px;}.studio-catalog-bar .dashboard-catalog-links>div {padding:5px;}.studio-catalog-bar .dashboard-catalog-links a {padding:4px;font-size:11px;gap:4px;}
  .studio-workspace {padding:18px 17px;gap:20px;}#productsList {gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));}.studio-product-photo {height:160px;}.studio-product-summary>div:last-child {padding:10px 10px 0;}.studio-product-details {padding:6px 10px 12px;}.studio-product-summary>div:last-child>div:nth-child(2) {font-size:10px;}.studio-product-title {font-size:12px;}.studio-product-details>div:last-child {gap:0;}.studio-product-details>div:first-child>div:first-child {font-size:16px;}
  .studio-products>#studioToolbar {padding:0;gap:12px;}.studio-preview>div>div {padding-inline:14px;}
  .studio-products #studioPrimaryFilters {display:block;}
  .studio-products #studioPrimaryFilters>div {min-width:0;}
  body[data-studio-page] :where(input:not([type=checkbox]):not([type=radio]),textarea,select) {font-size:16px;}
  body[data-studio-page=superadmin]>header>div,body[data-studio-page=merchant-detail]>header>div {flex-wrap:wrap;gap:12px;}.studio-admin-heading {font-size:18px;}
  body[data-studio-page=superadmin] main,body[data-studio-page=merchant-detail] main {padding:18px 14px;}
  body[data-studio-page=catalog] #productGrid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  body[data-studio-page=catalog] .product-card {min-width:0;}body[data-studio-page=catalog] .product-card>div:last-child {padding:12px;}
  .studio-catalog-identity {padding-block:20px;}
  .studio-catalog-identity>div {gap:16px;}
  .studio-catalog-filters>div>div:first-child>div:last-child {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}
  .studio-catalog-filters select {width:100%;min-width:0;}
  .studio-catalog-filters>div>div:first-child>div:last-child>div {min-width:0;}
  .studio-catalog-filters>div>div:first-child>div:last-child>div:has(>svg) {grid-column:1 / -1;}
  #multiCartFloatingBar {bottom:calc(12px + env(safe-area-inset-bottom));}
  #multiCartFloatingBar>div:first-child {flex-wrap:wrap;}
  #multiCartFloatingBar>div:first-child>div {min-width:0;width:100%;}
  #multiCartFloatingBar>div:first-child>div:last-child {justify-content:flex-end;}
  #multiCartFloatingBar button {white-space:normal;}
}
@media (max-width:359px) {#productsList,body[data-studio-page=catalog] #productGrid {grid-template-columns:minmax(0,1fr);}}
/* Native product dialog adapters retain every original field and action. */
body[data-studio-page=dashboard] .studio-product-overlay:not(.hidden) {display:contents!important;}
.studio-product-dialog {position:fixed;inset:0;margin:auto;padding:0;width:min(720px,calc(100vw - 30px));max-width:none;max-height:90vh;border:1px solid #e0e7ee;border-radius:22px;background:white;color:var(--studio-ink);box-shadow:0 24px 100px #0005;overflow:hidden;}
.studio-product-dialog[open] {display:flex;flex-direction:column;}
.studio-product-dialog:not([open]) {display:none;}
.studio-product-dialog::backdrop {background:#10243a88;backdrop-filter:blur(4px);}
.studio-product-dialog-head {position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:21px 25px;background:white;border-bottom:1px solid #e0e7ee;flex-shrink:0;}
.studio-product-dialog-head h2 {margin:0;font-size:21px;font-weight:700;line-height:1.6;}
.studio-product-dialog-head .studio-eyebrow {font-size:12px;margin:0 0 4px;}
body[data-studio-page=dashboard] .studio-product-dialog-close {display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid #e0e7ee;border-radius:50%;color:var(--studio-muted);background:white;font-size:25px;font-weight:400;line-height:1;}
.studio-product-dialog-body {padding:25px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;scroll-padding-block:18px;}
.studio-product-dialog-body>:where(.p-6,.p-5) {padding:0;background:transparent;overflow:visible;max-height:none;}
.studio-product-dialog-body>div.sticky {position:static;box-shadow:none;border:0;border-radius:0;}
.studio-product-dialog-body :where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,textarea) {width:100%;padding:10px 12px;border:1px solid #e0e7ee;border-radius:11px;background:white;font-size:14px;line-height:1.75;}
.studio-product-dialog-body label {font-size:13px;font-weight:650;line-height:1.75;}
.studio-product-dialog-body p {font-size:12px;}
.studio-product-dialog-body .grid {gap:17px;}
.studio-product-dialog-foot {position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:18px 25px;background:white;border-top:1px solid #e0e7ee;flex-shrink:0;}
body[data-studio-page=dashboard] .studio-product-dialog-foot>button {display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 17px;border:1px solid #e0e7ee;border-radius:11px;font-size:14px;font-weight:650;min-height:44px;box-shadow:none;}
body[data-studio-page=dashboard] .studio-product-dialog-foot>.studio-product-dialog-primary {background:var(--studio-brand);border-color:var(--studio-brand);color:white;}
.studio-product-dialog-primary svg {width:19px;height:19px;}
.studio-product-dialog-primary[aria-busy=true] svg {display:none;}
.studio-product-dialog-primary[aria-busy=true]::before {content:"";width:18px;height:18px;border:2px solid #ffffff66;border-top-color:white;border-radius:50%;animation:studio-spin .7s linear infinite;}
@keyframes studio-spin {to {transform:rotate(360deg);}}
.studio-product-dialog-foot>button[disabled],.studio-product-dialog-close[disabled] {opacity:.55;cursor:wait;}
.studio-product-dialog-hint {padding:12px;background:var(--studio-soft);border-radius:11px;color:var(--studio-ink);}
.studio-product-dialog-dirty {padding:16px;border:1px solid #e0d9f6;border-radius:13px;background:var(--studio-soft);margin-top:16px;}
.studio-product-dialog-dirty p {font-size:14px;margin-bottom:12px;}
.studio-product-dialog-dirty button {border:1px solid #d8d0ed;border-radius:10px;background:white;padding:8px 13px;font-size:13px;margin-inline-end:8px;}
.studio-product-dialog-dirty .studio-product-dialog-discard {background:var(--studio-brand);color:white;}
.studio-product-dialog-dirty button[disabled] {opacity:.55;cursor:wait;}
.studio-product-dialog :where(.studio-product-dialog-dirty,.studio-product-dialog-hint,[hidden])[hidden] {display:none!important;}
.studio-product-dialog .studio-local-images {display:inline-flex;align-items:center;justify-content:center;border:1px solid #e0e7ee;border-radius:11px;background:white;padding:9px 15px;min-height:44px;font-size:14px;font-weight:650;color:var(--studio-ink);}
.studio-file-input {position:absolute;width:1px!important;height:1px!important;min-height:0!important;clip-path:inset(50%);overflow:hidden;opacity:0;}
.studio-local-images-area {border:0!important;background:transparent!important;padding:0!important;text-align:start;cursor:default;}
.studio-local-images-area>svg,.studio-local-images-area>p:first-of-type {display:none;}
#newProductImagePreviews,#editExistingImagesGrid,#editNewImagesPreviewGrid {display:flex;gap:12px;overflow-x:auto;padding-block:8px;}
#newProductImagePreviews>div,#editExistingImagesGrid>div,#editNewImagesPreviewGrid>div {flex:0 0 88px;width:88px;height:88px;border-radius:12px;}
#editExistingImagesGrid>div.col-span-full {flex:1;height:auto;}
#studioPublishPreviewModalSurface .studio-product-dialog-body #mainPreviewImage {max-height:260px;object-fit:contain;}
#studioPublishPreviewModalSurface .studio-product-dialog-body #captionEditor {min-height:160px;}
#studioPublishPreviewModalSurface .studio-product-dialog-body>.studio-live-notices {margin-top:12px;}
#studioListMeta>#productsCounter {display:block!important;}
@media (max-width:639px) {
  .studio-product-dialog {width:calc(100vw - 30px);border-radius:18px;max-height:90dvh;}
  .studio-product-dialog-head {padding:17px 18px;}.studio-product-dialog-head h2 {font-size:18px;}
  .studio-product-dialog-body {padding:18px;}.studio-product-dialog-body .grid {grid-template-columns:1fr;}
  .studio-product-dialog-foot {padding:16px 18px;flex-wrap:wrap;}
  .studio-product-dialog-foot>button {flex:1;min-width:0;}
}
/* Data-backed overview: no mock schedules, storage totals or analytics. */
.studio-overview:not(.hidden) {display:flex;flex-direction:column;gap:22px;}
.studio-overview-hidden {display:none!important;}
.studio-overview-notice {margin:0;color:var(--studio-muted);font-size:12px;line-height:1.8;}
.studio-overview-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;}
body[data-studio-page=dashboard] .studio-overview-stats>button {display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:9px;border:0;border-radius:18px;background:#eeebf5;padding:23px 21px;color:var(--studio-ink);min-height:144px;}
.studio-overview-stats>button>span {color:var(--studio-muted);font-size:13px;}
.studio-overview-stats strong {font-size:31px;font-weight:700;line-height:1.2;}
.studio-overview-stats small {font-size:11px;color:var(--studio-muted);}
.studio-overview-panels {display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:22px;align-items:start;}
.studio-overview-main,.studio-overview-side {display:flex;flex-direction:column;gap:18px;min-width:0;}
.studio-overview-callout {background:#30264d;color:white;border-radius:18px;padding:26px 25px;}
.studio-overview-callout .studio-overview-tag {display:inline-block;background:#ffffff12;border-radius:7px;padding:3px 9px;font-size:11px;font-weight:650;}
.studio-overview-callout h3 {font-size:22px;line-height:1.65;margin:13px 0 8px;font-weight:700;}
.studio-overview-callout p {font-size:13px;line-height:1.9;margin:0 0 18px;color:#e3dbf8;}
body[data-studio-page=dashboard] .studio-overview-callout>button {display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:11px;background:white;color:#30264d;padding:9px 16px;font-weight:650;min-height:44px;}
.studio-overview-callout svg {width:20px;height:20px;}
.studio-overview-panel {border:1px solid #e0e7ee;border-radius:18px;padding:22px 24px;background:white;}
.studio-overview-panel h3 {font-size:20px;font-weight:700;line-height:1.6;margin:0 0 15px;}
.studio-overview-panel p {font-size:12px;color:var(--studio-muted);line-height:1.9;margin:3px 0;}
.studio-overview-next {display:flex;align-items:center;gap:13px;padding:18px 0;border-top:1px solid #e0e7ee;}
.studio-overview-next>div {flex:1;min-width:0;}.studio-overview-next strong {font-size:14px;font-weight:650;}
.studio-overview-step {background:var(--studio-soft);color:var(--studio-brand);border-radius:9px;display:grid;place-items:center;width:33px;height:33px;flex-shrink:0;font-weight:650;}
body[data-studio-page=dashboard] .studio-overview-next>button,.studio-overview-panel-head>button {background:white;border:1px solid #e0e7ee;border-radius:10px;padding:8px 12px;min-height:44px;color:var(--studio-ink);font-size:13px;font-weight:650;}
.studio-overview-panel-head {display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;}.studio-overview-panel-head h3 {margin:0;}
#studioOverviewChannels {list-style:none;padding:0;margin:0 0 12px;}
#studioOverviewChannels li {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #e0e7ee;font-size:14px;}
.studio-overview-channel-status {font-size:11px;color:var(--studio-brand);background:var(--studio-soft);padding:3px 8px;border-radius:7px;white-space:nowrap;}
.studio-overview-shortcuts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body[data-studio-page=dashboard] .studio-overview-shortcuts>button {border:1px solid #e0e7ee;border-radius:10px;background:white;color:var(--studio-ink);padding:10px;min-height:44px;font-size:13px;font-weight:650;}
body[data-studio-page=dashboard] .studio-mobile-nav {grid-template-columns:repeat(5,minmax(0,1fr));}
#studioPublishPreviewModalSurface .studio-product-dialog-primary {white-space:nowrap;}
#studioPublishPreviewModalSurface .studio-product-dialog-foot>button {min-width:0;}
@media(max-width:639px) {
  .studio-overview:not(.hidden) {gap:17px;}.studio-overview-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
  body[data-studio-page=dashboard] .studio-overview-stats>button {padding:18px 15px;min-height:135px;}
  .studio-overview-stats strong {font-size:29px;}.studio-overview-stats small {font-size:10px;}
  .studio-overview-panels {grid-template-columns:1fr;gap:17px;}.studio-overview-callout {padding:23px 20px;}.studio-overview-callout h3 {font-size:21px;}
  .studio-overview-panel {padding:18px;}.studio-overview-panel h3 {font-size:18px;}.studio-overview-next {gap:10px;}
}
/* Batch 2 product surfaces, scoped away from public catalogs and billing. */
body[data-studio-page=dashboard] {font-size:16px;}
.studio-eyebrow {color:var(--studio-brand);font-size:12px;font-weight:650;margin-bottom:5px;}
#studioQuickFilters {display:flex;flex-wrap:nowrap;gap:22px;overflow-x:auto;max-width:100%;border-bottom:1px solid var(--studio-line);padding:0;margin:0 0 10px;}
#studioQuickFilters>button {flex-shrink:0;padding:10px 2px 13px;font-size:14px;font-weight:650;white-space:nowrap;min-height:48px;gap:7px;}
#studioQuickFilters>button[aria-selected=true] {color:var(--studio-brand);box-shadow:inset 0 -2px var(--studio-brand);}
.studio-tab-count {font-size:11px;border-radius:6px;background:#eae6f3;padding:0 5px;color:var(--studio-muted);}
.studio-tab-count[hidden] {display:none;}
#studioToolbar {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;}
#studioPrimaryFilters {gap:12px;}
#studioPrimaryFilters>div {flex:0 1 210px;}
#studioPrimaryFilters>div>label {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
#studioToolbar :where(input,select) {background:white;font-size:14px;}
#studioFilterActions {order:0;padding:0;border:0;}
#advancedFilterPanel {grid-column:1/-1;}
.studio-filter-buttons>button {font-size:13px;}
#studioListMeta {gap:14px;}
#studioListMeta>div:first-of-type {display:none;}
#studioListMeta #productsCounter {margin-inline:auto;font-size:13px;font-weight:400;}
#studioListMeta #btnCatalogTrash {display:inline-flex;gap:8px;align-items:center;background:transparent;box-shadow:none;border:0;font-size:13px;color:var(--studio-ink);padding-inline:4px;}
#btnCatalogTrash svg {width:19px;height:19px;}
#productsList .studio-product-card.border-r-4 {border:0;}
#productsList .studio-product-card.studio-selected {outline:2px solid var(--studio-brand);outline-offset:0;}
#productsList .studio-product-photo {position:relative;border-radius:18px 18px 0 0;overflow:hidden;background:#efedf5;}
#productsList .studio-product-photo img {display:block;object-fit:cover;}
.studio-product-placeholder {display:grid;place-content:center;justify-items:center;gap:8px;height:100%;color:#91899d;font-size:12px;}
.studio-product-placeholder svg {width:40px;height:40px;}
.studio-product-status {position:absolute;inset-inline-end:14px;top:14px;z-index:1;padding:4px 9px;border-radius:7px;font-size:11px;font-weight:650;background:#efebff;color:#6547cc;max-width:calc(100% - 68px);}
.studio-product-status[data-status=published] {background:#e4f5ed;color:#237754;}
.studio-product-status[data-status=warning] {background:#fff4dd;color:#886123;}
.studio-product-status[data-status=danger] {background:#fde9e9;color:#a04141;}
.studio-product-check {top:8px;inset-inline-start:8px;background:#ffffffc7;border:0;border-radius:9px;}
#productsList .studio-product-body {padding:18px 20px;}
#productsList .studio-product-title {font-size:16px;line-height:1.65;min-height:0;font-weight:700;margin:0;}
.studio-product-meta {display:flex;align-items:center;gap:5px;color:var(--studio-muted);font-size:12px;flex-wrap:wrap;margin-top:8px;}
.studio-product-meta .sku-selectable {user-select:text;overflow-wrap:anywhere;max-width:100%;}
/* FS-062: the copy button is always visible, inline right after the code. The 44x44 box is the touch target; the 8px
   transparent border keeps the painted chip at 28x28 and the negative margins keep the row about 28px tall, so the
   target reaches into the 12px row gap (set on the .studio-product-summary rule near the top) and never over the title, the price line, the checkbox or the photo. */
.studio-product-meta .btn-copy-sku {display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:44px;height:44px;margin-block:-8px;padding:0;border:8px solid transparent;border-radius:20px;background-color:transparent;background-clip:padding-box;color:var(--studio-muted);opacity:1;cursor:pointer;}
.studio-product-meta .btn-copy-sku:active {background-color:var(--studio-line);color:var(--studio-brand);border-color:transparent;}
.studio-product-meta .btn-copy-sku:focus-visible {outline:2px solid var(--studio-brand);outline-offset:-6px;color:var(--studio-brand);}
@media (hover:hover) {.studio-product-meta .btn-copy-sku:hover {background-color:var(--studio-soft);color:var(--studio-brand);border-color:transparent;}}
.studio-product-meta .btn-copy-sku svg {width:17px;height:17px;flex:none;pointer-events:none;}
/* The copy chip now separates the code from the category; a decorative "·" would dangle at the end of a wrapped line. */
.studio-product-meta>span[aria-hidden=true] {display:none;}
.studio-product-metrics {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;}
.studio-product-price {font-size:18px;font-weight:750;}
.studio-product-price small {font-size:13px;}
.studio-product-stock {font-size:13px;color:var(--studio-muted);}
.studio-product-conflict {font-size:12px;color:#886123;margin-top:8px;}
#productsList .studio-product-details {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 18px;border-top:1px solid var(--studio-line);margin-top:auto;}
.studio-product-details>button {display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--studio-line);border-radius:9px;font-size:13px;padding:6px 10px;background:white;color:var(--studio-ink);}
.studio-product-details>button:hover {background:var(--studio-soft);color:var(--studio-brand);}
.studio-product-details>button svg {width:18px;height:18px;}
.studio-product-menu {position:relative;}
.studio-product-menu summary {display:grid;place-items:center;list-style:none;width:44px;height:44px;border-radius:9px;color:var(--studio-muted);cursor:pointer;}
.studio-product-menu summary::-webkit-details-marker {display:none;}
.studio-product-menu summary svg {width:21px;height:21px;}
.studio-product-menu[open] summary {background:var(--studio-soft);color:var(--studio-brand);}
.studio-product-menu-items {position:absolute;bottom:48px;inset-inline-end:0;z-index:12;width:144px;padding:6px;background:white;border:1px solid var(--studio-line);border-radius:12px;box-shadow:0 12px 32px #26213c20;}
.studio-product-menu-items button {display:block;width:100%;text-align:start;min-height:44px;padding:8px 12px;border:0;border-radius:8px;font-size:14px;}
.studio-product-menu-items button:hover {background:var(--studio-bg);}
.studio-product-menu-items .btn-row-delete {color:#b64747;}
#productsList[data-view=list] .studio-product-card {padding:12px 16px;border:1px solid var(--studio-line);border-radius:14px;gap:16px;box-shadow:none;}
#productsList[data-view=list] .studio-product-summary {display:grid;grid-template-columns:44px 80px minmax(0,1fr);flex:1;align-items:center;}
#productsList[data-view=list] .studio-product-photo {width:80px;height:80px;border-radius:10px;}
#productsList[data-view=list] .studio-product-photo .studio-product-status {top:4px;inset-inline-end:4px;max-width:none;font-size:8px;padding:2px 4px;}
#productsList[data-view=list] .studio-product-body {padding:0;}
#productsList[data-view=list] .studio-product-title {font-size:14px;}
#productsList[data-view=list] .studio-product-details {width:auto;min-width:0;border:0;padding:0;margin:0;}
#productsList[data-view=list] .studio-product-metrics {margin-top:8px;justify-content:flex-start;gap:18px;}
#batchBar:not(.hidden) {position:sticky;bottom:20px;order:10;z-index:20;background:#282239;border:0;border-radius:17px;padding:12px 18px;box-shadow:0 12px 32px #26213c20;}
#batchBar button {font-size:13px;}
#batchBar button[data-csp-onclick="publishSelectedBatch()"] {background:var(--studio-brand);}
@media (max-width:1079px) {
  #studioToolbar {display:flex;flex-direction:column;align-items:stretch;}
  #studioQuickFilters {gap:18px;margin-bottom:0;}
  #studioQuickFilters>button {font-size:12px;}
  #studioFilterActions .studio-filter-buttons {justify-content:flex-start;}
  #studioFilterActions .studio-view-switch {margin-inline-start:auto;order:2;}
  #studioListMeta {gap:6px;flex-wrap:wrap;}
  #studioListMeta>label {font-size:12px;}
  #studioListMeta #productsCounter {font-size:11px;}
  #studioListMeta #btnCatalogTrash {font-size:11px;}
  #batchBar:not(.hidden) {bottom:calc(82px + env(safe-area-inset-bottom));flex-wrap:wrap;padding:12px;gap:6px;}
  #batchBar>div:last-child {flex-wrap:wrap;gap:6px;}
  #batchBar button {font-size:12px;padding-inline:10px;}
}
@media (max-width:639px) {
  .studio-heading h2 {font-size:25px;}
  .studio-heading .studio-eyebrow {display:none;}
  .studio-heading p {margin-top:0;}
  .studio-workspace {padding-top:10px;gap:16px;}
  #productsList .studio-product-card {border:1px solid var(--studio-line);border-radius:22px;box-shadow:none;}
  #productsList .studio-product-photo {height:160px;border-radius:22px 22px 0 0;}
  #productsList .studio-product-body {padding:13px;}
  #productsList .studio-product-title {font-size:13px;}
  .studio-product-meta {font-size:10px;gap:4px;}
  .studio-product-metrics {flex-wrap:wrap;gap:3px;margin-top:9px;}
  .studio-product-price {font-size:16px;}.studio-product-price small {font-size:11px;}.studio-product-stock {font-size:11px;}
  .studio-product-status {inset-inline-end:8px;top:10px;max-width:calc(100% - 53px);font-size:9px;padding:3px 5px;}
  #productsList .studio-product-details {display:grid;grid-template-columns:minmax(0,1fr) 44px;padding:7px 10px;gap:4px;}
  .studio-product-details>.btn-row-preview {grid-column:1/-1;grid-row:2;}
  .studio-product-details>button {font-size:11px;padding:4px 8px;}
  .studio-product-details>.studio-product-menu {grid-column:2;grid-row:1;}
  #productsList[data-view=list] .studio-product-card {padding:10px;}
  #productsList[data-view=list] .studio-product-summary {grid-template-columns:44px 64px minmax(0,1fr);gap:8px;}
  #productsList[data-view=list] .studio-product-photo {width:64px;height:64px;}
  #productsList[data-view=list] .studio-product-body {padding:0;}
  #productsList[data-view=list] .studio-product-details {display:flex;flex-wrap:wrap;justify-content:flex-end;width:100%;padding-inline-start:0;}
  #productsList[data-view=list] .studio-product-title {font-size:13px;}
}
/* FS-033b: only the confirmed open-wholesale status, not other Studio notices. */
#wholesaleAccessStatus.wholesale-access-warning {color:#92400e;background:#fffbeb;border:1px solid #f59e0b;border-radius:10px;padding:12px;font-size:14px;line-height:1.8;}
@media (prefers-reduced-motion:reduce) {body[data-studio-page] *,body[data-studio-page] *::before,body[data-studio-page] *::after {scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}}

/* FS-002: logout-only presentation; the authority hide-all mask is unchanged. */
html:has(body > #nasher-authority-status[data-logout-state]),body:has(> #nasher-authority-status[data-logout-state]) {overflow:hidden!important;scrollbar-width:none!important;}
#nasher-authority-status[data-logout-state],#nasher-authority-status[data-logout-state] * {transition:none!important;animation:none!important;}
#nasher-authority-status[data-logout-state] {grid-template-columns:minmax(0,420px);gap:12px;text-align:center;color:#6547cc;font-family:var(--font-sans,system-ui,sans-serif);}
#nasher-authority-status[data-logout-state] [role=status] {margin:0 0 12px;font-size:22px;font-weight:600;line-height:1.8;overflow-wrap:anywhere;}
#nasher-authority-status[data-logout-state=pending] [role=status]::before {content:"";display:block;width:44px;height:44px;margin:0 auto 24px;border:4px solid #e4ddf7;border-top-color:#6547cc;border-radius:50%;animation:nasher-logout-turn .9s linear infinite;}
#nasher-authority-status[data-logout-state] button {min-width:44px;min-height:48px;margin-top:0;padding:12px 20px;border:1px solid #6547cc;border-radius:12px;background:white;color:#6547cc;line-height:1.5;}
#nasher-authority-status[data-logout-state] button:last-of-type {background:#6547cc;color:white;}
#nasher-authority-status[data-logout-state] button:disabled {opacity:.6;cursor:wait;}
#nasher-authority-status[data-logout-state] :focus-visible {outline:3px solid #6547cc;outline-offset:4px;}
@keyframes nasher-logout-turn {to {transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce) {#nasher-authority-status[data-logout-state=pending] [role=status]::before {animation:none!important;}}
/* FS-019: shared text-only dialog and the preparation explanation, no shell overrides. */
.nasher-dialog {box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-block-size:calc(100dvh - 24px);padding:0;border:1px solid var(--studio-line);border-radius:22px;background:#fff;color:var(--studio-ink);font-family:var(--font-sans);line-height:1.75;text-align:start;overflow:hidden;box-shadow:0 24px 80px #26213c33;}
.nasher-dialog[open] {display:flex;flex-direction:column;}
.nasher-dialog::backdrop {background:#17122b99;}
.nasher-dialog :where(h2,p,ul) {margin:0;overflow-wrap:anywhere;}
.nasher-dialog-header {flex:none;box-sizing:border-box;max-height:35vh;max-block-size:35dvh;overflow:auto;padding:20px 24px 14px;border-bottom:1px solid var(--studio-line);background:var(--studio-bg);}
.nasher-dialog-header h2 {font-size:19px;font-weight:700;}
.nasher-dialog-header p {font-size:13px;color:var(--studio-muted);margin-top:5px;}
.nasher-dialog-form {display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0;}
.nasher-dialog-content {padding:18px 24px;overflow:auto;overscroll-behavior:contain;min-height:0;}
.nasher-dialog :where(.nasher-dialog-header,.nasher-dialog-form,.nasher-dialog-content) {scroll-behavior:auto;}
.nasher-dialog-content:focus-visible {outline:3px solid var(--studio-brand);outline-offset:-4px;}
.nasher-dialog-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;}
.nasher-dialog-field {min-width:0;}
.nasher-dialog-field label {display:flex;align-items:center;min-height:44px;min-width:44px;font-size:13px;font-weight:700;margin-bottom:5px;}
.nasher-dialog-field :where(input,textarea,select) {display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:44px;min-height:44px;border:1px solid #bcb5cb;border-radius:10px;background:#fff;color:var(--studio-ink);padding:9px 12px;font:inherit;font-size:15px;}
#nasherDialog .nasher-dialog-field :where(input,textarea,select) {border-color:#8a819b;}
#nasherDialog .nasher-dialog-field [aria-invalid=true] {border:2px solid #a43d0b;}
.nasher-dialog-help,.nasher-dialog-error {font-size:12px;line-height:1.6;}
.nasher-dialog-help {color:var(--studio-muted);margin-top:4px!important;}
.nasher-dialog-error {color:#97420c;margin-top:4px!important;}
.nasher-dialog-status {font-size:13px;color:#6a380d;font-weight:600;}
.nasher-dialog-status:not(:empty) {padding:10px 12px;margin-bottom:14px;background:#fff7e8;border:1px solid #ebd7b6;border-radius:10px;}
.nasher-dialog-items {list-style:none;padding:0;margin:10px 0 16px!important;}
.nasher-dialog-items li {padding:10px 0;border-bottom:1px solid var(--studio-line);font-size:14px;overflow-wrap:anywhere;}
.nasher-dialog-items bdi {font-variant-numeric:tabular-nums;font-weight:700;}
.nasher-dialog-footer {flex:none;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:14px 24px;border-top:1px solid var(--studio-line);background:#fff;}
.nasher-dialog-footer button {min-width:44px;min-height:44px;max-width:100%;padding:10px 20px;border:1px solid var(--studio-line);border-radius:12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;}
.nasher-dialog-cancel {background:#fff;color:var(--studio-ink);}
.nasher-dialog-submit {background:var(--studio-brand);color:#fff;}
.nasher-dialog-danger .nasher-dialog-submit {background:#a92832;}
.nasher-dialog :where(button,input,select,textarea):focus-visible {outline:3px solid var(--studio-brand);outline-offset:3px;}
.nasher-dialog [hidden] {display:none!important;}
.nasher-dialog button:disabled {opacity:.55;cursor:not-allowed;}
.prep-approve-explanation {flex:none;padding:8px 20px;border-bottom:1px solid var(--studio-line);font-size:12px;background:#fff;}
.prep-approve-explanation p {margin:0;color:#75410b;}
.prep-approve-explanation button {min-width:44px;min-height:44px;padding:7px 12px;margin-top:5px;border:1px solid #cec1e8;border-radius:10px;color:var(--studio-dark);font-weight:700;}
.prep-approve-explanation button[hidden] {display:none;}
.prep-readiness-summary {margin:0 0 14px;padding:12px 14px;background:#fff8eb;border:1px solid #ecdcb9;border-radius:12px;font-size:12px;line-height:1.9;color:#684317;}
@media (max-width:639px) {
  .nasher-dialog {border-radius:16px;}
  .nasher-dialog-header {padding:14px 16px 10px;}
  .nasher-dialog-header h2 {font-size:17px;}
  .nasher-dialog-content {padding:12px 16px;}
  .nasher-dialog-fields {grid-template-columns:minmax(0,1fr);gap:10px;}
  .nasher-dialog-footer {padding:10px 16px;gap:8px;}
  .nasher-dialog-footer button {flex:1;padding-inline:10px;}
}
@media (max-height:420px) {
  .nasher-dialog[open] {display:block;overflow:auto;scroll-padding-block-end:88px;}
  .nasher-dialog-form {display:block;overflow:visible;}
  .nasher-dialog-content {overflow:visible;}
  .nasher-dialog-footer {position:sticky;bottom:0;}
}
/* FS-004: entitlement presentation never replaces the existing authority guard. */
body[data-studio-page=dashboard] :where(#scheduleModal,#batchBar) button:disabled {opacity:.55;cursor:not-allowed;filter:grayscale(.35);transition-property:background-color,color,border-color;}
@media (max-width:639px) {
  .studio-stack-table:not(.hidden),.studio-stack-table tbody {display:block;width:100%;min-width:0;}
  body[data-studio-page] table.studio-stack-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
  #billingHistoryTable td:nth-child(1)::before {content:"رقم المرجع";}
  #billingHistoryTable td:nth-child(2)::before {content:"الخطة";}
  #billingHistoryTable td:nth-child(3)::before {content:"المبلغ";}
  #billingHistoryTable td:nth-child(4)::before {content:"الوسيلة";}
  #billingHistoryTable td:nth-child(5)::before {content:"الحالة";}
  #billingHistoryTable td:nth-child(6)::before {content:"التاريخ";}
  .studio-stack-table tbody tr {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:14px;border-bottom:1px solid var(--studio-line);}
  .studio-stack-table td {display:block;min-width:0;padding:0;text-align:start;white-space:normal;overflow-wrap:anywhere;}
  .studio-stack-table td::before {content:attr(data-label);display:block;margin-bottom:3px;color:var(--studio-muted);font:600 11px/1.7 var(--font-sans);}
  .studio-stack-table td[colspan]::before {display:none;}
  .studio-stack-table td :where(div,a,strong,span,label) {min-width:0;max-width:100%;overflow-wrap:anywhere;}
  .studio-stack-table td :where(button,input,select) {min-height:44px;max-width:100%;}
  #manPlanSelect,#manMethodSelect {min-width:0;max-width:100%;text-overflow:ellipsis;}
  /* Keep native phone form text at 16px; reclaim the nested billing padding. */
  #billingModal>div>.custom-scroll {padding-inline:8px;}
  #manPlanSelect {width:100%;padding-inline:4px;}
}
/* FS-005: only the desktop header changes; DOM and keyboard order stay intact. */
@media (min-width:1080px) {
  .studio-topbar .dashboard-header-row {flex-wrap:nowrap;gap:12px;padding-inline:24px;}
  .studio-topbar .dashboard-store-heading h1 {max-width:130px;}
  .studio-topbar #studioHeaderSearch {min-width:170px;}
  .studio-topbar .dashboard-channel-switcher {background:transparent;border-color:transparent;box-shadow:none;padding:0;gap:6px;}
  .studio-topbar #activeChannelDropdown {max-width:150px;min-height:44px;border-color:var(--studio-line);box-shadow:none;}
  .studio-topbar [data-csp-onclick="handleAdminLogout()"] {background:transparent;border-color:var(--studio-line);}
  .studio-topbar #btnBillingUpgrade {background-image:none;background-color:var(--studio-soft);color:var(--studio-brand);border:1px solid var(--studio-line);box-shadow:none;min-width:44px;min-height:44px;}
  .studio-topbar #btnBillingUpgrade:hover {background-color:#e6e0fb;}
  .studio-topbar #btnBillingUpgrade svg {color:inherit;}
}
