/* Store personalization integration with production auth, 13/11/2026 */
.st-test-pill{display:inline-flex;align-items:center;gap:5px;background:#fff4db;color:#8b5200;border:1px solid #f6dc9f;border-radius:99px;padding:3px 8px;font:750 10px/1.4 system-ui,sans-serif;white-space:nowrap}
#st-launch{display:flex;align-items:center;justify-content:center;gap:7px;width:calc(100% - 22px);margin:8px 11px 12px;min-height:44px;background:#edf3ff;color:#1428a0;border:1px solid #bed4f8;border-radius:11px;font-size:12px;font-weight:800;cursor:pointer}
@media(min-width:1024px){#st-launch{display:flex}}
#st-overlay{position:fixed;inset:0;z-index:25000;display:flex;align-items:center;justify-content:center;background:rgba(14,29,59,.63);padding:12px;font-family:Inter,system-ui,sans-serif}
#st-overlay[hidden]{display:none!important}
#st-dialog{background:#fff;color:#182a42;border-radius:20px;width:min(950px,100%);max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 15px 70px #07152a60}
#st-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(110deg,#f3f7ff,#fff);padding:17px 20px;border-bottom:1px solid #e4eaf4}
#st-dialog header h2{font-size:18px;font-weight:900;color:#14265a;margin:0}#st-dialog header p{font-size:11px;color:#64748b;margin:3px 0 0}
#st-close{font-size:24px;color:#37455f;background:transparent;border:0;min-width:44px;min-height:44px;cursor:pointer}
.st-body{padding:16px 20px 22px}.st-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.st-nav button{background:#f1f5fa;color:#43516a;border:1px solid #e3e9f1;border-radius:10px;padding:9px 12px;min-height:44px;font-weight:800;cursor:pointer;font-size:12px}.st-nav button[aria-selected="true"]{background:#1428a0;color:#fff;border-color:#1428a0}
.st-note{background:#fff9e9;color:#764c04;border:1px solid #f5d993;border-radius:12px;padding:10px 12px;font-size:12px;line-height:1.55;margin-bottom:12px}
.st-muted{font-size:12px;color:#64748b;line-height:1.5}.st-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.st-grid label,.st-full-field{font-size:12px;font-weight:750;display:flex;flex-direction:column;gap:5px}.st-grid input,.st-full-field input,.st-filter,.st-dialog-input{min-height:42px;min-width:0;width:100%;padding:9px 10px;border:1px solid #ccd5e4;border-radius:10px;background:#fff;color:#1b2a45;font:500 13px system-ui,sans-serif}.st-grid input:focus,.st-full-field input:focus,.st-dialog-input:focus{outline:2px solid #8db9ff;outline-offset:1px}
.st-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}.st-btn{border:0;background:#1428a0;color:#fff;padding:11px 16px;min-height:44px;border-radius:11px;font:800 12px system-ui,sans-serif;cursor:pointer}.st-btn.light{background:#e9effa;color:#1428a0}.st-btn.danger{background:#fff1f2;color:#ba2742}.st-btn:disabled{opacity:.5;cursor:not-allowed}
.st-status{font-size:12px;min-height:19px;color:#37734a;margin-top:8px}.st-status.error{color:#bc2943}
.st-logo-preview{width:86px;height:86px;border-radius:16px;background:#f3f7fc;object-fit:contain;border:1px solid #e0e6f0;padding:7px}
.st-tablewrap{overflow:auto;max-height:51dvh;border:1px solid #dce3ee;border-radius:12px;margin-top:12px}
.st-price-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;min-width:840px}
.st-price-table th{position:sticky;top:0;z-index:1;background:#eaf0fd;color:#16317a;padding:11px 9px;text-align:left;white-space:nowrap}.st-price-table td{padding:8px 9px;border-top:1px solid #e8edf4;vertical-align:middle}.st-price-table tr:nth-child(even){background:#f8fafc}.st-price-table input{border:1px solid #d4deeb;border-radius:7px;min-height:36px;padding:7px;width:115px;max-width:100%;font-size:12px;color:#16263d;background:#fff}.st-price-table input[type=date]{width:128px}.st-price-table .st-price-name{font-weight:800;white-space:nowrap;max-width:195px}.st-price-table small{display:block;color:#64748b;font-size:10px;margin-top:2px}.st-counter{font-size:11px;color:#64748b}
.st-bulk-row{background:#f5f8ff;padding:12px;border-radius:12px;margin-top:12px}.st-bulk-row textarea{width:100%;min-height:80px;border-radius:9px;padding:10px;border:1px solid #d6dfee;font:12px/1.5 monospace;background:#fff;color:#111827}
.st-authtab{margin:8px 0 12px}.st-authtab button{padding:11px;min-height:44px;border:1px solid #d2ddf0;background:#f1f5ff;border-radius:10px;color:#1428a0;font-weight:800;cursor:pointer;margin-right:8px}
.st-private{color:#a16207;font-size:11px;margin-top:12px}
.st-sale-price{color:#086cf0;font-weight:900;font-size:16px;line-height:1.2}.st-old-price{color:#94a3b8;text-decoration:line-through;font-weight:550;font-size:11px;margin-right:6px}.st-discount-rate{display:inline-block;color:#086cf0;font-size:11px;font-weight:850}
.st-price-caption{font-size:10px;font-weight:700;color:#64748b;display:block;margin-top:3px}
.st-price-label{line-height:1.4}.st-price-label .st-sale-price{display:block;margin-bottom:3px}
.st-detail-price .st-sale-price{font-size:22px}.st-brand-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}.st-brand-image[src=""]{display:none}
.st-brand-name{text-overflow:ellipsis;overflow:hidden;max-width:165px;white-space:nowrap}
.st-demo-entry{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0 3px}.st-demo-entry button{flex:1;min-height:44px;border:1px solid #a6bce9;color:#1428a0;font-weight:900;background:#f0f5ff;border-radius:10px;cursor:pointer;font-size:11px}

[data-theme="dark"] #st-dialog{background:#172133;color:#eaf0ff}[data-theme="dark"] #st-dialog header{background:#1f2c43;border-color:#334155}[data-theme="dark"] #st-dialog header h2{color:#e3eaff}[data-theme="dark"] .st-grid input,[data-theme="dark"] .st-dialog-input,[data-theme="dark"] .st-price-table input,[data-theme="dark"] .st-bulk-row textarea{background:#22304b;color:#fff;border-color:#40506b}[data-theme="dark"] .st-price-table tr:nth-child(even){background:#212b3c}[data-theme="dark"] .st-price-table th{background:#25385a;color:#dbeafe}
@media(max-width:600px){#st-dialog header{padding:12px}#st-dialog header h2{font-size:15px}.st-body{padding:12px}.st-grid{grid-template-columns:1fr}.st-nav button{flex:1;font-size:11px;padding:7px}.st-price-table{min-width:840px}.st-brand-name{max-width:118px}}

/* V3: one shop-price field per variant; clear automatic discount preview. */
.st-price-table .st-price-hint{font-size:10px;font-weight:700;color:#1428a0;white-space:nowrap;margin-top:4px;min-height:13px}

/* V4: one-owner TEST; show Samsung and shop badges distinctly. */
/* Existing Supabase team controls remain available. */
.st-shop-badge .catalog-hot-sale-pill{background:#eaf2ff;color:#1646a3}
.cd-hot-sale-switch,.st-hot-sale-detail{background:#fff7e5;border:1px solid #ffd59a;border-radius:10px;padding:10px;margin:9px 0;color:#754708;font-size:12px;line-height:1.55}
.cd-hot-sale-switch button,.st-hot-sale-detail button{background:#1428a0;color:#fff;border:0;border-radius:7px;min-height:36px;padding:7px 10px;font-weight:800;cursor:pointer;margin-left:6px}
@media(max-width:600px){.cd-hot-sale-switch button,.st-hot-sale-detail button{margin-left:0;margin-top:5px;display:block;width:100%;min-height:44px}}

/* V5: Samsung blue for shop prices; inventory by storage variant. */
.st-price-table select.st-stock-select{display:block;min-width:124px;width:100%;min-height:38px;padding:7px 6px;border:1px solid #cad6e9;border-radius:8px;background:#fff;color:#14265a;font:750 11px/1.4 system-ui,sans-serif}
.st-inventory-badge{display:inline-flex;align-items:center;margin-top:5px;max-width:max-content;padding:4px 9px;border-radius:7px;font:800 11px/1.4 system-ui,sans-serif;vertical-align:middle}
.st-stock-out{background:#fff1db;color:#905000;border:1px solid #f4d5a5}
.st-stock-off{background:#edf0f6;color:#4b5563;border:1px solid #d3dae6}
.st-price-table tr:has(.st-stock-select option[value="out_of_stock"]:checked){background:#fffaf0}
.st-price-table tr:has(.st-stock-select option[value="not_sold"]:checked){background:#f2f4f8;opacity:.82}
[data-theme="dark"] .st-price-table select.st-stock-select{background:#22304b;color:#fff;border-color:#40506b}
[data-theme="dark"] .st-sale-price,[data-theme="dark"] .st-discount-rate{color:#91b5ff}

#products-grid-container > div:has(.st-stock-out){opacity:.88}
#products-grid-container > div:has(.st-stock-out) .w-20{filter:grayscale(1);opacity:.55}
#products-grid-container > div:has(.st-stock-out) .st-stock-out{box-shadow:0 0 0 1px rgba(244,213,165,.35) inset}

/* V8: Sidebar order — Products / Needs / Compare / Checkout / Store & Prices / Settings / Shop / Sign out. */
#desktop-sidebar {overflow-y:auto}
#desktop-sidebar #desktop-nav.shell-desktop-nav{flex:0 0 auto;overflow:visible;min-height:0}
#desktop-nav #st-launch{width:100%;margin:5px 0;padding:12px 16px;min-height:44px;justify-content:flex-start;text-align:left;gap:12px;background:#edf3ff;color:#1428a0;border:1px solid #bed4f8;border-radius:14px;font-weight:800;font-size:13px;box-shadow:none}
#desktop-nav #st-launch:hover{background:#e3eeff!important}
#desktop-sidebar .settings-open:not(.settings-open-mobile){margin:6px 12px 12px;width:calc(100% - 24px);min-height:44px}
#desktop-sidebar #shop-account-meta{display:none}


/* V9 — Unified desktop sidebar: equal-sized navigation items, consistent spacing. */
@media (min-width:1024px) {
  #desktop-sidebar { box-sizing:border-box; }
  #desktop-sidebar #desktop-nav.shell-desktop-nav {
    display:grid!important;
    grid-template-columns:minmax(0, 1fr);
    gap:8px!important;
    padding:14px!important;
    margin:0!important;
    min-height:0;
    flex:0 0 auto;
    overflow:visible;
  }
  #desktop-sidebar #desktop-nav > button,
  #desktop-sidebar > .settings-open:not(.settings-open-mobile) {
    box-sizing:border-box!important;
    width:100%!important;
    min-height:52px!important;
    height:52px!important;
    margin:0!important;
    padding:0 14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:14px!important;
    border:1px solid transparent!important;
    border-radius:15px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#465a78!important;
    font:700 12.5px/1.25 Inter,system-ui,sans-serif!important;
    text-align:left!important;
    white-space:normal;
    cursor:pointer;
  }
  #desktop-sidebar #desktop-nav > button i {
    flex:0 0 24px;
    width:24px;
    text-align:center;
    font-size:18px!important;
  }
  #desktop-sidebar #desktop-nav > button:hover,
  #desktop-sidebar > .settings-open:not(.settings-open-mobile):hover {
    background:rgba(255,255,255,.72)!important;
    color:#1428a0!important;
    border-color:#dbe7fa!important;
  }
  #desktop-sidebar #desktop-nav > button.bg-\[\#EEF2FF\],
  body:has(#st-overlay:not([hidden])) #desktop-sidebar #desktop-nav #st-launch {
    background:#eaf3ff!important;
    border-color:#bbd5fa!important;
    color:#086cf0!important;
    box-shadow:inset 0 0 0 1px rgba(8,108,240,.035)!important;
  }
  #desktop-sidebar #desktop-nav > button.bg-\[\#EEF2FF\]::before { display:none!important; }
  #desktop-sidebar #desktop-nav #st-launch {
    flex:0 0 auto!important;
    /* The store menu is a peer of the four main tabs, not a separate banner. */
    letter-spacing:0!important;
  }
  #desktop-sidebar > .settings-open:not(.settings-open-mobile) {
    width:calc(100% - 28px)!important;
    margin:0 14px 8px!important;
    flex:0 0 auto;
  }
  #desktop-sidebar #shop-account-desktop.is-ready {
    box-sizing:border-box;
    width:calc(100% - 28px);
    margin:0 14px 14px!important;
    padding:9px 11px;
    min-height:54px;
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:7px;
    border:1px solid #dbe7f4;
    border-radius:15px;
    background:rgba(255,255,255,.82);
    box-shadow:none;
  }
  #desktop-sidebar #shop-account-name {
    min-width:0;
    flex:1 1 auto;
    font-size:11px;
    line-height:1.3;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  #desktop-sidebar #shop-account-desktop .shop-account-logout {
    box-sizing:border-box;
    width:auto;
    min-width:84px;
    min-height:36px;
    margin:0;
    padding:7px 8px;
    flex:0 0 auto;
    background:#f6f9ff;
    color:#1428a0;
    font-size:9px;
    border:1px solid #dce6f6;
    border-radius:10px;
  }
  #desktop-sidebar #shop-account-desktop .shop-account-logout:hover {
    color:#a52636;
    background:#fff5f5;
    border-color:#fecaca;
  }
}
@media (min-width:1024px) and (max-width:1100px) {
  #desktop-sidebar #shop-account-desktop.is-ready{padding:8px 9px;gap:4px;}
  #desktop-sidebar #shop-account-name{font-size:10px;}
  #desktop-sidebar #shop-account-desktop .shop-account-logout{min-width:78px;font-size:8px;}
}
@media (min-width:1024px) {
  html[data-theme="dark"] #desktop-sidebar #desktop-nav > button,
  html[data-theme="dark"] #desktop-sidebar > .settings-open:not(.settings-open-mobile) {color:#cbd5e1!important;}
  html[data-theme="dark"] #desktop-sidebar #desktop-nav > button.bg-\[\#EEF2FF\],
  html[data-theme="dark"] body:has(#st-overlay:not([hidden])) #desktop-sidebar #desktop-nav #st-launch {
    background:#233e62!important;border-color:#365a80!important;color:#b2d8ff!important;
  }
  html[data-theme="dark"] #desktop-sidebar #shop-account-desktop.is-ready {
    background:#1e293b;border-color:#334155;
  }
  html[data-theme="dark"] #desktop-sidebar #shop-account-desktop .shop-account-logout {
    background:#253850;border-color:#405875;color:#a6ceff;
  }
}


/* V10 / 13-11-2026 — single typography and subtle dividers for desktop sidebar. */
@media(min-width:1024px){
  #desktop-sidebar {--st-nav-rule:#d5e6fa;}
  #desktop-sidebar #desktop-nav.shell-desktop-nav{
    display:flex!important; flex-direction:column!important; gap:0!important;
    padding:12px 14px 8px!important; margin:0!important; border:0!important;
  }
  #desktop-sidebar #desktop-nav > button.st-sidebar-item,
  #desktop-sidebar #desktop-nav > button#st-launch,
  #desktop-sidebar #desktop-nav > button.settings-open{
    width:100%!important;height:53px!important;min-height:53px!important;flex:0 0 53px!important;
    margin:0!important;padding:0 12px!important;gap:12px!important;
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    background:transparent!important;border:1px solid transparent!important;border-radius:12px!important;
    box-shadow:none!important;text-align:left!important;
    color:#3b5273!important;
    font:700 13px/1.25 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
    letter-spacing:0!important; white-space:nowrap!important;cursor:pointer;position:relative;
  }
  #desktop-sidebar #desktop-nav > button.st-sidebar-item > span{
    flex:1; min-width:0;overflow:hidden;text-overflow:ellipsis;
    font:inherit!important;color:inherit!important;
  }
  #desktop-sidebar #desktop-nav > button.st-sidebar-item .st-nav-svg{
    box-sizing:content-box;display:block; flex:0 0 20px; width:20px;height:20px;
    color:#6d86a8;stroke-width:1.7;
  }
  #desktop-sidebar #desktop-nav > button.st-sidebar-item:not(:last-child)::after{
    content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:1px;
    background:var(--st-nav-rule);pointer-events:none;opacity:.95;
  }
  #desktop-sidebar #desktop-nav > button.st-sidebar-item.is-active,
  body:has(#st-overlay:not([hidden])) #desktop-sidebar #desktop-nav #st-launch{
    background:linear-gradient(90deg,#e5f0ff,#f3f8ff)!important;
    border-color:#bfd8fa!important;box-shadow:inset 0 0 0 1px rgba(75,140,230,.04)!important;
    color:#086cf0!important;font-weight:800!important;
  }
  #desktop-sidebar #desktop-nav > button.st-sidebar-item.is-active .st-nav-svg,
  body:has(#st-overlay:not([hidden])) #desktop-sidebar #desktop-nav #st-launch .st-nav-svg{
    color:#086cf0!important;
  }
  #desktop-sidebar #desktop-nav > button.st-sidebar-item:hover:not(.is-active){
    background:#ffffffad!important;color:#1428a0!important;
  }
  #desktop-sidebar #desktop-nav > button.st-sidebar-item:focus-visible,
  #galaxy-ai-sidebar-launcher:focus-visible{outline:2px solid #2685f4;outline-offset:2px;}
  #desktop-sidebar #shop-account-desktop.is-ready{
    min-height:56px;margin:6px 14px 0!important;border-color:#d5e6fa;
  }
  #desktop-sidebar #shop-account-name {font:750 12px/1.3 Inter,system-ui,sans-serif!important;}
  #desktop-sidebar #shop-account-desktop .shop-account-logout{
    font:750 11px/1.25 Inter,system-ui,sans-serif!important;
    min-width:86px;min-height:38px;
  }
  #st-sidebar-ai-slot{
    display:flex; margin:auto 14px 16px; padding-top:14px;
    border-top:1px solid var(--st-nav-rule);
  }
  #galaxy-ai-sidebar-launcher{
    display:flex; align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:50px;
    padding:12px 14px;border:1px solid #c6d9fc;border-radius:13px;
    color:#fff;background:linear-gradient(120deg,#0b6ff2,#1428a0);cursor:pointer;
    box-shadow:0 7px 20px rgba(20,40,160,.12);
    font:800 13px/1.3 Inter,system-ui,sans-serif;
  }
  #galaxy-ai-sidebar-launcher svg{flex:0 0 20px}
  #galaxy-ai-sidebar-launcher .st-ai-chevron{margin-left:auto;font-size:16px;opacity:.85}
  #galaxy-ai-sidebar-launcher:hover{background:linear-gradient(120deg,#0a64df,#10218a)}
  #galaxy-ai-launcher{display:none!important;}
  /* When AI is open, its entire drawer takes the left rail's space; it never covers product cards. */
  body:has(#galaxy-ai-panel.is-open) #desktop-sidebar{
    width:340px!important;min-width:340px!important;flex:0 0 340px!important;
  }
  body:has(#galaxy-ai-panel.is-open) #main-shell{
    margin-right:0!important; margin-left:0!important;min-width:0;
  }
  #galaxy-ai-panel.is-open{
    left:0!important;right:auto!important;top:0!important;bottom:0!important;
    width:340px!important;max-width:none!important;height:100dvh!important;
    border-radius:0!important;box-shadow:12px 0 40px rgba(27,64,110,.13)!important;
    border-right:1px solid #d5e6fa!important;
  }
}
@media(min-width:1024px) and (max-height:730px){
  #desktop-sidebar #desktop-nav.shell-desktop-nav{padding-top:8px!important;}
  #desktop-sidebar #desktop-nav > button.st-sidebar-item{height:47px!important;min-height:47px!important;flex-basis:47px!important;}
  #st-sidebar-ai-slot{margin-top:12px;}
}
@media(max-width:1023px){#st-sidebar-ai-slot{display:none!important;}}
@media(min-width:1024px){
  html[data-theme="dark"] #desktop-sidebar{--st-nav-rule:#345070;}
  html[data-theme="dark"] #desktop-sidebar #desktop-nav > button.st-sidebar-item{color:#d1def1!important;}
  html[data-theme="dark"] #desktop-sidebar #desktop-nav > button.st-sidebar-item .st-nav-svg{color:#b0c6e4;}
  html[data-theme="dark"] #desktop-sidebar #desktop-nav > button.st-sidebar-item.is-active,
  html[data-theme="dark"] body:has(#st-overlay:not([hidden])) #desktop-sidebar #desktop-nav #st-launch{
    color:#b9dbff!important;background:#253e61!important;border-color:#486a91!important;
  }
  html[data-theme="dark"] #desktop-sidebar #desktop-nav > button.st-sidebar-item.is-active .st-nav-svg{color:#b9dbff;}
  html[data-theme="dark"] #desktop-sidebar #shop-account-desktop.is-ready{border-color:#345070;}
  html[data-theme="dark"] #st-sidebar-ai-slot{border-color:#345070;}
  html[data-theme="dark"] #galaxy-ai-panel.is-open{border-color:#345070!important;}
}

/* V11 — first-class local store sign-in; equal-height tabs and tidy account form. */
#shop-login-form #st-auth-inline { width:100%; }
#shop-login-form .st-authtab {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px;padding:4px;background:#f1f5fb;border-radius:13px;}
#shop-login-form .st-authtab button {margin:0;min-height:42px;border:1px solid transparent;border-radius:10px;background:transparent;color:#64748b;font:800 13px/1.2 Inter,system-ui,sans-serif;}
#shop-login-form .st-authtab button[aria-selected="true"] {background:white;border-color:#cfddf1;color:#1428a0;box-shadow:0 2px 8px rgba(20,40,160,.07);}
#shop-login-form .st-auth-fields {display:grid;grid-template-columns:1fr;gap:13px;}
#shop-login-form .st-auth-fields label {display:flex;flex-direction:column;gap:6px;font:750 12px/1.45 Inter,system-ui,sans-serif;color:#243655;}
#shop-login-form .st-auth-fields input,#shop-login-form .st-auth-fields select {box-sizing:border-box;width:100%;height:45px;min-width:0;padding:0 12px;border:1px solid #cddbef;border-radius:11px;background:#fafcff;font:500 13px Inter,system-ui,sans-serif;color:#122b5c;}
#shop-login-form .st-auth-fields input:focus,#shop-login-form .st-auth-fields select:focus {outline:2px solid #90bdff;outline-offset:1px;}
#shop-login-form .st-remember {display:flex;align-items:center;gap:9px;margin:14px 0 4px;font:600 12px Inter,system-ui,sans-serif;color:#465a78;cursor:pointer;}
#shop-login-form .st-remember input {width:16px;height:16px;accent-color:#1428a0;}
#shop-login-form .st-auth-submit {display:block;width:100%;height:46px;margin-top:14px;font-size:13px;letter-spacing:.01em;}
#shop-login-form .st-inline-status {min-height:0;font-size:12px;margin-top:8px;color:#64748b;}
#shop-login-form .st-inline-status.error {color:#be123c;}
#shop-auth-overlay:has(#st-auth-inline:not(:empty)) .shop-guest-entry {margin-top:14px;padding-top:14px;}
#shop-auth-overlay:has(#st-auth-inline:not(:empty)) .shop-guest-button {min-height:44px;background:#f3f7fd;border:1px solid #d7e3f5;color:#1428a0;font-size:12px;}
#shop-auth-overlay:has(#st-auth-inline:not(:empty)) .shop-guest-button:hover {background:#e9f1ff;}
@media(max-width:520px){#shop-login-form .st-auth-fields{gap:11px}#shop-login-form .st-authtab{margin-bottom:14px}}

/* V12 Google sign-in alternative; no production Supabase writes. */
#shop-auth-overlay .st-google-entry{margin:14px 0 0;width:100%}
#shop-auth-overlay .st-google-button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:48px;padding:9px 15px;background:#fff;color:#334155;border:1px solid #d7e3f5;border-radius:13px;font:800 13px/1.3 Inter,system-ui,sans-serif;cursor:pointer;transition:background .15s,box-shadow .15s}
#shop-auth-overlay .st-google-button:hover{background:#f8fbff;box-shadow:0 3px 15px rgba(20,40,160,.08)}
#shop-auth-overlay .st-google-button:disabled{opacity:.62;cursor:wait}
#shop-auth-overlay .st-google-button svg{flex:none}
#shop-auth-overlay:has(.st-google-entry) .shop-guest-entry{margin-top:12px;padding-top:12px}
html[data-theme="dark"] #shop-auth-overlay .st-google-button{background:#182439;color:#e4efff;border-color:#3a4b68}

/* V13 13/11/2026 – Guest card layout and shop sign-in remediation.
   Shared shop data/discount computation is untouched. */
@media (min-width:1024px){
  body.shop-auth-guest #desktop-sidebar #shop-account-desktop.is-ready{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    justify-content:flex-start!important;box-sizing:border-box!important;
    width:calc(100% - 28px)!important;min-width:0!important;
    min-height:0!important;height:auto!important;max-height:none!important;
    margin:8px 14px 8px!important;padding:13px 12px!important;gap:5px!important;
    border:1px solid #cddff8!important;border-radius:14px!important;
    background:#fff!important;
  }
  body.shop-auth-guest #desktop-sidebar #shop-account-name{
    display:block!important;flex:none!important;width:100%!important;min-width:0!important;
    margin:0!important;font:800 13px/1.45 Inter,system-ui,sans-serif!important;
    color:#1428a0!important;white-space:nowrap!important;overflow:hidden!important;
    text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal!important;
  }
  body.shop-auth-guest #desktop-sidebar #shop-account-meta{
    display:block!important;flex:none!important;width:100%!important;min-width:0!important;
    margin:0!important;font:500 11px/1.45 Inter,system-ui,sans-serif!important;
    color:#64748b!important;white-space:normal!important;overflow-wrap:normal!important;
  }
  body.shop-auth-guest #desktop-sidebar #shop-account-desktop .shop-account-logout{
    display:block!important;flex:none!important;box-sizing:border-box!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    min-height:40px!important;height:auto!important;margin:7px 0 0!important;
    padding:9px 10px!important;white-space:normal!important;
    font:800 11px/1.35 Inter,system-ui,sans-serif!important;
    color:#1428a0!important;background:#edf4ff!important;
    border:1px solid #c8dcfa!important;border-radius:10px!important;
  }
  html[data-theme="dark"] body.shop-auth-guest #desktop-sidebar #shop-account-desktop.is-ready{
    background:#1e293b!important;border-color:#3b5574!important;
  }
  html[data-theme="dark"] body.shop-auth-guest #desktop-sidebar #shop-account-name{color:#d0e2ff!important}
  html[data-theme="dark"] body.shop-auth-guest #desktop-sidebar #shop-account-meta{color:#b9c9db!important}
}
/* On phones the exit control has visible text, instead of a mystery account icon. */
@media (max-width:1023px){
  body.shop-auth-guest #shop-account-mobile.is-ready{
    display:inline-flex!important;align-items:center;justify-content:center;gap:3px;
    flex:0 0 auto!important;width:auto!important;min-width:88px!important;max-width:113px!important;
    height:38px!important;padding:0 7px!important;
    border-radius:11px!important;font:800 11px/1.2 Inter,system-ui,sans-serif!important;
    white-space:nowrap!important;color:#1428a0!important;background:#edf4ff!important;
    border:1px solid #b7cff6!important;
  }
  html[data-theme="dark"] body.shop-auth-guest #shop-account-mobile.is-ready{
    background:#243f63!important;color:#eaf1ff!important;border-color:#547ba8!important;
  }
}
/* Defensive form styling if a sign-in modal is ever invoked from a legacy entry. */
#st-dialog:has(.st-authtab){width:min(480px,100%)!important;}
#st-dialog:has(.st-authtab) .st-body{padding:20px 22px 24px;}
#st-dialog .st-authtab{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:0 0 18px;padding:4px;background:#f1f5fb;border-radius:13px;}
#st-dialog .st-authtab button{margin:0;border:1px solid transparent;border-radius:10px;min-height:44px;padding:11px 8px;background:transparent;color:#64748b;font:800 13px/1.2 Inter,system-ui,sans-serif;}
#st-dialog .st-authtab button[aria-selected="true"]{background:#fff;border-color:#cfddf1;color:#1428a0;}
#st-dialog .st-auth-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;}
#st-dialog .st-auth-fields label{display:flex;flex-direction:column;gap:6px;min-width:0;font:750 12px/1.45 Inter,system-ui,sans-serif;}
#st-dialog .st-auth-fields input,#st-dialog .st-auth-fields select{box-sizing:border-box;width:100%;min-width:0;height:45px;padding:0 12px;border:1px solid #cddbef;border-radius:11px;background:#fafcff;color:#122b5c;font:500 13px Inter,system-ui,sans-serif;}
#st-dialog .st-remember{display:flex;align-items:center;gap:8px;margin:14px 0 4px;font:600 12px/1.5 Inter,system-ui,sans-serif;}
#st-dialog .st-remember input{width:16px;height:16px;accent-color:#1428a0;flex:none;}
#st-dialog .st-auth-submit{display:block;width:100%;min-height:46px;margin-top:14px;font:800 13px Inter,system-ui,sans-serif;}
#st-dialog #st-inline-status{font:600 12px/1.5 Inter,system-ui,sans-serif;color:#64748b;margin-top:8px;}
@media(max-width:520px){#st-dialog:has(.st-authtab) .st-body{padding:16px 14px 20px}}

/* V14 · Approved LOGIN form only — 13/11/2026.
 * Layout / visual changes are scoped to the full-page sign-in overlay.
 * Keep the existing username, password, remember-account and Google OAuth handlers.
 */
#shop-auth-overlay{
  box-sizing:border-box; padding:clamp(12px,2.5vw,28px)!important;
  background:linear-gradient(145deg,#f7faff 0%,#edf4ff 100%)!important;
}
#shop-auth-overlay .shop-auth-card{
  box-sizing:border-box; width:min(100%,450px)!important;
  max-height:calc(100dvh - 24px)!important; overflow-y:auto;
  border:1px solid #dae5f5!important; border-radius:25px!important;
  padding:clamp(20px,3.2vw,32px)!important;
  background:#fff!important;box-shadow:0 18px 55px rgba(24,65,142,.12)!important;
  color:#112653; scrollbar-width:thin;
}
#shop-auth-overlay .shop-auth-brand{display:flex; align-items:center; gap:13px; margin:0 0 26px; min-width:0}
#shop-auth-overlay .shop-auth-brand>div:last-child{flex:1;min-width:0}
#shop-auth-overlay .shop-auth-logo.app-mascot-logo{width:65px!important;height:65px!important;flex:none}
#shop-auth-overlay .shop-auth-title{font:900 clamp(17px,4.65vw,21px)/1.18 Inter,system-ui,sans-serif; letter-spacing:-.035em;color:#102657;white-space:normal}
#shop-auth-overlay .shop-auth-subtitle{margin-top:5px;font:800 clamp(9px,2.45vw,11px)/1.35 Inter,system-ui,sans-serif;letter-spacing:.055em;color:#8096b4}
#shop-auth-overlay #shop-login-form{margin:0;min-width:0;}
#shop-auth-overlay #shop-login-form .st-authtab{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;
  margin:0 0 22px; padding:5px; background:#edf2fb; border-radius:17px;
}
#shop-auth-overlay #shop-login-form .st-authtab button{
  min-height:50px;padding:10px 4px;border-radius:13px;cursor:pointer;
  color:#65768e;font:900 15px/1.2 Inter,system-ui,sans-serif;
}
#shop-auth-overlay #shop-login-form .st-authtab button[aria-selected=true]{background:#fff;color:#1428a0;border:1px solid #cfddf4;box-shadow:0 2px 6px rgba(20,40,160,.08)}
#shop-auth-overlay #shop-login-form .st-auth-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:17px}
#shop-auth-overlay #shop-login-form .st-auth-fields label{display:flex;flex-direction:column;gap:8px;min-width:0;font:800 13px/1.4 Inter,system-ui,sans-serif;color:#102657}
#shop-auth-overlay #shop-login-form .st-auth-fields input,
#shop-auth-overlay #shop-login-form .st-auth-fields select{
  width:100%;min-width:0;box-sizing:border-box;height:52px;
  padding:0 15px;border:1px solid #cbd9ee;border-radius:14px;
  background:#fafcff;color:#142758;font:500 14px/1.35 Inter,system-ui,sans-serif;
  outline:none;
}
#shop-auth-overlay #shop-login-form .st-auth-fields input::placeholder{color:#8c9ab1}
#shop-auth-overlay #shop-login-form .st-auth-fields input:focus,
#shop-auth-overlay #shop-login-form .st-auth-fields select:focus{border-color:#7aa7fb;box-shadow:0 0 0 3px rgba(70,132,239,.12);background:#fff}
#shop-auth-overlay #shop-login-form .st-remember{display:flex;align-items:center;gap:10px;min-width:0;margin:19px 0 0;font:500 12px/1.55 Inter,system-ui,sans-serif;color:#4b6286;cursor:pointer}
#shop-auth-overlay #shop-login-form .st-remember input{flex:none;width:19px;height:19px;accent-color:#1428a0}
#shop-auth-overlay #shop-login-form .st-auth-submit{
  display:block;width:100%;min-height:55px;height:auto;padding:15px 18px;
  margin:20px 0 0;border-radius:14px;background:#1428a0;
  color:#fff;font:900 15px/1.25 Inter,system-ui,sans-serif;
  letter-spacing:.025em;box-shadow:0 9px 20px rgba(20,40,160,.12)
}
#shop-auth-overlay #shop-login-form .st-auth-submit:hover{background:#10218e}
#shop-auth-overlay #shop-login-form .st-inline-status:not(:empty){margin:10px 0 0;font:600 12px/1.5 Inter,system-ui,sans-serif}
#shop-auth-overlay #shop-login-form .st-inline-status:empty{display:none}
#shop-auth-overlay .st-google-entry{
  margin:20px 0 0!important;padding:19px 0 0;
  border-top:1px solid #e0e8f4;
}
#shop-auth-overlay .st-google-button{
  display:flex;align-items:center;justify-content:center;gap:12px;
  width:100%;min-height:53px; padding:12px 15px;
  border:1px solid #d7e2f3;border-radius:14px;
  background:#fff;color:#68758b;font:900 13px/1.3 Inter,system-ui,sans-serif;
  box-shadow:0 3px 10px rgba(20,40,160,.045);cursor:pointer;
}
#shop-auth-overlay .st-google-button svg{width:21px;height:21px;flex:none}
#shop-auth-overlay .shop-guest-entry{
  margin:16px 0 0!important;padding:0!important;border:0!important;
}
#shop-auth-overlay .shop-guest-button{
  width:100%;min-height:53px;padding:12px 10px;border:1px solid #c9d9f7;
  border-radius:14px;background:#eef3fd;color:#1428a0;
  font:850 14px/1.3 Inter,system-ui,sans-serif;cursor:pointer;
}
#shop-auth-overlay .shop-guest-button:hover{background:#e6efff}
/* Only the actual login form shows Google / Guest. Onboarding and loading
   screens have their own actions, never duplicate sign-in buttons. */
#shop-auth-overlay:has(#shop-login-form[hidden]) .st-google-entry,
#shop-auth-overlay:has(#shop-login-form[hidden]) .shop-guest-entry{display:none!important}
@media(max-width:520px){
  #shop-auth-overlay .shop-auth-card{padding:24px 20px!important;border-radius:23px!important}
  #shop-auth-overlay .shop-auth-brand{gap:10px;margin-bottom:23px}
  #shop-auth-overlay .shop-auth-logo.app-mascot-logo{width:60px!important;height:60px!important}
  #shop-auth-overlay #shop-login-form .st-authtab{margin-bottom:19px}
  #shop-auth-overlay #shop-login-form .st-authtab button{min-height:48px;font-size:14px}
  #shop-auth-overlay #shop-login-form .st-auth-fields{gap:15px}
  #shop-auth-overlay #shop-login-form .st-auth-fields input,
  #shop-auth-overlay #shop-login-form .st-auth-fields select{height:50px}
  #shop-auth-overlay #shop-login-form .st-auth-submit{min-height:52px;margin-top:17px}
  #shop-auth-overlay .st-google-entry{margin-top:16px!important;padding-top:16px}
  #shop-auth-overlay .shop-guest-entry{margin-top:13px!important}
}
@media(max-width:375px){
  #shop-auth-overlay .shop-auth-card{padding:19px 17px!important}
  #shop-auth-overlay .shop-auth-title{font-size:16px}
  #shop-auth-overlay .shop-auth-subtitle{font-size:9px}
  #shop-auth-overlay .shop-auth-logo.app-mascot-logo{width:53px!important;height:53px!important}
  #shop-auth-overlay #shop-login-form .st-remember{font-size:11px}
}
@media(prefers-reduced-motion:reduce){#shop-auth-overlay .st-google-button{transition:none}}

/* Integrated: one official login form; no local test account or ShopTest Google client. */
#shop-auth-overlay .shop-auth-card{max-width:520px!important;width:calc(100% - 16px)!important}
#shop-login-form .st-authtab{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:5px;background:#f0f4fb;border-radius:16px;margin:3px 0 20px;gap:6px}
#shop-login-form .st-authtab button{border:1px solid transparent;border-radius:12px;background:transparent;color:#63728d;min-height:49px;margin:0;font-size:14px;font-weight:800;cursor:pointer}
#shop-login-form .st-authtab button[aria-selected="true"]{background:#fff;color:#1428a0;border-color:#c6d9f3;box-shadow:0 2px 6px rgba(20,40,160,.08)}
#shop-login-form .shop-auth-field{display:flex;flex-direction:column;gap:7px;margin:0 0 16px;font-weight:750;color:#142a59}
#shop-login-form .shop-auth-input{min-height:51px;height:51px;width:100%;box-sizing:border-box;border:1px solid #d0dcf1;border-radius:13px;background:#f9fbff;padding:12px 14px;color:#172b51;font-size:14px}
#shop-login-form .shop-auth-submit{width:100%;min-height:51px;margin-top:13px;border-radius:13px}
#shop-login-form .st-remember{display:flex;align-items:center;gap:9px;margin:2px 0 16px;color:#4c617e;font-size:13px}
#shop-login-form .st-remember input{width:18px;height:18px;accent-color:#1428a0}
#shop-login-form .st-google-divider{height:1px;background:#dbe6f4;margin:18px 0 17px}
#shop-login-form .shop-google-button{display:flex;width:100%;min-height:51px;border:1px solid #d6dfed;border-radius:13px;background:#fff;align-items:center;justify-content:center;gap:9px;cursor:pointer;font-size:13px}
#shop-auth-overlay .shop-guest-entry{border-top:0;margin-top:12px;padding-top:0}
#shop-auth-overlay .shop-guest-button{width:100%;border-radius:12px;min-height:50px;display:flex;align-items:center;justify-content:center}
#shop-auth-overlay .shop-guest-entry p{display:none}
@media(max-width:430px){#shop-auth-overlay .shop-auth-card{padding:22px 18px!important}#shop-login-form .st-authtab button{font-size:13px}}
/* Current production member management remains available to owner. */
#shop-account-team{display:initial!important}
#shop-account-team:not(.is-visible){display:none!important}

/* V17: compact permanent shop pricing; management lives in Settings. */
.st-simple-info{font:500 12px/1.55 Inter,system-ui,sans-serif;background:#edf5ff;color:#24466e;border:1px solid #d5e5fa;border-radius:12px;padding:10px 13px;margin-bottom:14px}
.st-price-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.st-price-toolbar .st-filter{flex:1 1 230px;min-width:0;width:auto}
.st-upload-csv{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border-radius:11px;background:#e9effa;color:#1428a0;font:800 12px system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.st-price-table{min-width:610px}
.st-price-table .st-rrp{white-space:nowrap;color:#4a5e7d;font-weight:700}
.st-bulk-row summary{font:800 12px system-ui,sans-serif;cursor:pointer;color:#1428a0}
.st-bulk-row[open] summary{margin-bottom:10px}
.settings-shop-group{padding-top:12px!important;border-top:1px solid #d6e4f6!important}
.settings-shop-group .settings-shop-hint{font-size:12px;margin:0 0 12px!important;color:#64748b}
.settings-shop-group .settings-choices button{font-size:13px;line-height:1.3;min-height:58px}
@media(max-width:600px){.st-price-table{min-width:610px}.st-price-toolbar .st-btn,.st-price-toolbar .st-upload-csv{flex:1 1 auto}.settings-shop-group .settings-choices button{font-size:12px}}
html[data-theme="dark"] .st-simple-info{background:#1e3455;color:#d0e3ff;border-color:#466184}
html[data-theme="dark"] .st-upload-csv{background:#243c60;color:#d0e4ff}

.st-csv-help{font-size:11px;color:#64748b;line-height:1.4;margin:0 0 7px}
