/* NovaShop design system — shared by merchant studio, customer auth and storefronts. */
:root {
  color-scheme: light;
  --canvas: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --surface-raised: #ffffff;
  --ink: #17191d;
  --ink-soft: #555b65;
  --muted: #89909b;
  --line: #e7e9ed;
  --accent: #24262a;
  --accent-ink: #ffffff;
  --accent-soft: #eeeeef;
  --success: #27765c;
  --warning: #ad6b18;
  --danger: #b44949;
  --shadow-sm: 0 2px 10px #17202b08;
  --shadow-md: 0 18px 55px #17202b0d;
  --shadow-lg: 0 32px 90px #10182024;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #101114;
  --surface: #17191d;
  --surface-soft: #1d2025;
  --surface-raised: #202329;
  --ink: #f3f3f1;
  --ink-soft: #c1c3c7;
  --muted: #92969e;
  --line: #2d3036;
  --accent: #f2f1ed;
  --accent-ink: #17191d;
  --accent-soft: #292c31;
  --success: #83c4a6;
  --warning: #e2b777;
  --danger: #ef9c98;
  --shadow-sm: 0 2px 12px #0003;
  --shadow-md: 0 18px 55px #0003;
  --shadow-lg: 0 32px 90px #0008;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; background: var(--canvas); }
body,
body.bg-\[\#f7f8fa\] {
  background: var(--canvas) !important;
  color: var(--ink) !important;
  font-family: "DM Sans", sans-serif;
  transition: background-color .22s ease, color .22s ease;
}
body, button, input, select, textarea { font-family: "DM Sans", sans-serif; }
button, input, select, textarea { color: inherit; }
button { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--success) 46%, transparent);
  outline-offset: 3px;
}
a { color: inherit; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-160%); padding: 11px 16px; border-radius: 9px; background: var(--ink); color: var(--surface); }
.skip-link:focus { transform: translateY(0); }

/* Merchant shell and navigation */
.sidebar {
  width: 254px;
  padding: 25px 17px 16px;
  background: var(--surface) !important;
  border-right: 1px solid var(--line) !important;
  box-shadow: 5px 0 30px #10182004;
  z-index: 20;
}
.brand { padding: 0 8px 23px; color: var(--ink); letter-spacing: -1.2px; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--ink); color: var(--surface); }
.brand-light { color: var(--muted); }
.shop-switch { padding: 11px; margin-bottom: 23px; border-color: var(--line); background: var(--surface-soft); border-radius: 13px; }
.shop-avatar { border-radius: 10px; background: var(--accent-soft); color: var(--ink); }
.nav-label { padding-left: 12px; color: var(--muted); font-size: 9px; letter-spacing: 1.5px; }
.nav-label-space { padding-top: 22px; }
.nav-link {
  min-height: 42px;
  margin: 3px 0;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--ink-soft) !important;
  font-size: 12px;
  font-weight: 600;
}
.nav-link:hover { background: var(--surface-soft); color: var(--ink) !important; transform: translateX(2px); }
.nav-link.active { background: var(--accent); color: var(--accent-ink) !important; box-shadow: var(--shadow-sm); }
.nav-link.active i { color: inherit; }
.nav-link .nav-count { background: var(--surface); color: var(--ink); border-radius: 20px; }
.sidebar-bottom { padding-top: 16px; }
.help-card { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.help-card b { color: var(--ink); }
.help-card small { color: var(--muted); }
.help-icon { background: var(--accent-soft); color: var(--ink); border-radius: 10px; }
.profile { margin-top: 12px; padding: 12px 5px 4px; border-top: 1px solid var(--line); }
.profile b { color: var(--ink); }
.profile small { color: var(--muted); }
.profile-avatar, .top-avatar { background: var(--accent-soft); color: var(--ink); }
.main-area { margin-left: 254px; min-height: 100vh; background: var(--canvas); }
.topbar {
  height: 70px;
  padding: 0 clamp(18px, 4vw, 54px);
  background: color-mix(in srgb, var(--surface) 90%, transparent) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(18px);
  z-index: 15;
}
.breadcrumb { color: var(--muted); font-size: 11px; }
.breadcrumb b { color: var(--ink); font-weight: 700; }
.breadcrumb i { color: var(--muted); font-size: 8px; }
.top-actions { gap: 10px; }
.icon-btn, .theme-toggle, .mobile-menu {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.icon-btn { width: 38px; height: 38px; border-radius: 12px; }
.icon-btn:hover, .theme-toggle:hover, .mobile-menu:hover { background: var(--surface-soft); color: var(--ink); border-color: var(--muted); }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.theme-toggle i { font-size: 13px; }
.notification-panel { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-lg); }
.notification-panel-head, .notification-item { border-color: var(--line); }
.notification-panel-head b, .notification-copy b { color: var(--ink); }
.notification-copy p, .notification-copy small, .notification-panel-head small { color: var(--muted); }
.notification-item.unread { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.page-wrap { max-width: 1500px; padding: 34px clamp(18px, 4vw, 54px) 60px; }
footer { color: var(--muted); }

/* Shared dashboard surfaces, page headings, charts and tables */
h1, h2, h3, .brand { color: var(--ink); }
.page-heading { align-items: end; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -1.3px; line-height: 1.12; }
.eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.heading-sub { margin-top: 9px; color: var(--muted) !important; font-size: 12px; line-height: 1.65; }
.card, .table-card, .panel { border: 1px solid var(--line) !important; border-radius: var(--radius-md) !important; background: var(--surface) !important; box-shadow: var(--shadow-sm); color: var(--ink); }
.panel { padding: 22px; }
.panel-heading { color: var(--ink); }
.panel-heading h2, .panel h2 { color: var(--ink); font-size: 15px; font-weight: 750; letter-spacing: -.3px; }
.panel-subtitle, .stat-foot, .muted, .text-slate-400, .text-slate-500 { color: var(--muted) !important; }
.stat-grid { gap: 13px; margin-bottom: 18px; }
.stat-card { min-height: 124px; padding: 18px 19px; border-radius: 15px !important; }
.stat-label { color: var(--muted); font-size: 10px; font-weight: 650; }
.stat-number { margin-top: 11px; color: var(--ink); font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; letter-spacing: -1.1px; }
.stat-foot { margin-top: 5px; font-size: 10px; }
.stat-icon { width: 32px; height: 32px; border-radius: 11px; background: var(--accent-soft); color: var(--ink); }
.content-grid { gap: 15px; margin-bottom: 17px; }
.chart-wrap { min-height: 220px; }
.chart-wrap canvas { max-width: 100%; }
.chart-key { color: var(--muted); }
.overview-row { border-color: var(--line); }
.overview-name, .overview-amount { color: var(--ink); }
.overview-meta { color: var(--muted); }
.product-emoji { background: var(--surface-soft); border-radius: 11px; }
.table-card { overflow: hidden; margin-bottom: 18px; }
.table-scroll { overflow-x: auto; }
.data-table { color: var(--ink-soft); }
.data-table thead { background: var(--surface-soft); }
.data-table th { color: var(--muted); font-size: 9px; letter-spacing: .09em; }
.data-table th, .data-table td { border-color: var(--line) !important; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface)); }
.data-table .strong, .strong { color: var(--ink); }
.order-document-action { min-height: 34px; gap: 7px; padding: 0 9px; font-size: 10px; white-space: nowrap; }
.search-row { gap: 10px; margin: 0 0 15px; }
.search-input, input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea {
  border-color: var(--line);
  background-color: var(--surface);
  color: var(--ink);
}
.search-input { min-height: 42px; border-radius: 12px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.field label { color: var(--ink-soft); }
.field input, .field textarea, .field select { min-height: 42px; border-radius: 10px; }
.slug-input { border-color: var(--line); background: var(--surface-soft); }
.slug-input input { background: transparent !important; }
.color-field { color: var(--muted); }
.color-field input { border-color: var(--line); background: var(--surface); }
.order-status { border-color: var(--line); background: var(--surface); color: var(--ink-soft); }
.status { border-radius: 99px; }
.empty { padding: 36px 20px; color: var(--muted); }
.empty i { color: var(--muted); }
.button {
  min-height: 39px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.button:hover { border-color: var(--muted); background: var(--surface-soft); transform: translateY(-1px); }
.button-dark { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button-dark:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 88%, var(--surface)); color: var(--accent-ink); }
.button:disabled, button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.accounting-note, .team-security-note { border-color: var(--line); background: var(--surface-soft); color: var(--ink-soft); }
.team-security-note i { color: var(--success); }
.coupon-code { color: var(--success); }
.low-stock, .stock-warning { color: var(--warning) !important; }

/* Auth pages and modal system */
.auth-screen { position: relative; min-height: 100vh; padding: 34px 18px; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 52%), var(--canvas); }
.auth-theme-control { position: absolute; top: 20px; right: 22px; }
.auth-brand { color: var(--ink); }
.auth-card { border-color: var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-md); }
.auth-tabs { background: var(--surface-soft); }
.auth-tabs button { color: var(--muted); }
.auth-tabs button.selected { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-card h1 { color: var(--ink); font-size: 24px; }
.auth-card > p { color: var(--muted); }
.auth-card form label { color: var(--ink-soft); }
.auth-card input { border-color: var(--line); background: var(--surface); color: var(--ink); }
.auth-foot { border-color: var(--line); color: var(--muted); }
.auth-copy { color: var(--muted); }
.auth-error { border-color: color-mix(in srgb, var(--danger) 22%, var(--line)); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); }
.modal-backdrop { padding: 18px; background: #090b10a8; backdrop-filter: blur(8px); z-index: 80; }
.modal { width: min(560px, 100%); max-height: min(90vh, 900px); overflow: auto; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.modal h2 { color: var(--ink); font-size: 21px; letter-spacing: -.6px; }
.modal p, .checkout-summary { color: var(--muted); }
.modal-actions { gap: 9px; }
.quantity button:not(.remove-item) { border-color: var(--line); background: var(--surface); color: var(--ink); }
.cart-line { border-color: var(--line); }
.cart-total { color: var(--ink-soft); }
.cart-total b { color: var(--ink); }
.promo-inline input { border-color: var(--line); background: var(--surface); color: var(--ink); }
.toast { background: var(--ink); color: var(--surface); box-shadow: var(--shadow-lg); }

/* Store design editor */
.store-settings, .team-form { max-width: 1100px; }
.store-settings .panel-heading, .team-form .panel-heading { margin-bottom: 21px; }
.design-section { margin: 22px 0 11px; padding-top: 20px; border-top: 1px solid var(--line); }
.design-section h3 { margin-bottom: 5px; color: var(--ink); font-size: 13px; font-weight: 800; }
.design-section > p { margin-bottom: 14px; color: var(--muted); font-size: 11px; }
.store-theme-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.store-theme-choice { position: relative; display: block; cursor: pointer; }
.store-theme-choice input { position: absolute; inset: 9px auto auto 9px; z-index: 2; width: 16px; height: 16px; accent-color: var(--ink); }
.store-theme-choice > span { display: flex; min-height: 104px; flex-direction: column; justify-content: end; gap: 3px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); color: var(--ink); box-shadow: var(--shadow-sm); }
.store-theme-choice > span::before { content: ""; display: block; width: 100%; height: 31px; margin: 0 0 7px; border-radius: 8px; background: linear-gradient(135deg, #f1eee7 0 62%, #c7a469 62%); }
.store-theme-choice[data-theme-choice="atelier"] > span::before { background: linear-gradient(135deg, #eadfc8 0 55%, #7c694d 55%); }
.store-theme-choice[data-theme-choice="minimal"] > span::before { background: linear-gradient(135deg, #f8f8f7 0 70%, #24262a 70%); }
.store-theme-choice[data-theme-choice="nocturne"] > span::before { background: linear-gradient(135deg, #17191d 0 62%, #b4935d 62%); }
.store-theme-choice b { font-size: 11px; }
.store-theme-choice small { color: var(--muted); font-size: 9px; }
.store-theme-choice:has(input:checked) > span { border-color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 10%, transparent); }
.store-preview { --preview-accent: #24262a; min-height: 190px; overflow: hidden; margin: 18px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.store-preview-bar { height: 28px; padding: 8px 13px; background: var(--surface); border-bottom: 1px solid var(--line); }
.store-preview-bar i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--muted); }
.store-preview-body { min-height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px; background: linear-gradient(105deg, color-mix(in srgb, var(--preview-accent) 14%, var(--surface)), var(--surface)); }
.store-preview-copy small { color: var(--preview-accent); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.store-preview-copy strong { display: block; margin: 6px 0; color: var(--ink); font: 800 23px Manrope, sans-serif; letter-spacing: -.8px; }
.store-preview-copy p { margin: 0; color: var(--muted); font-size: 10px; }
.store-preview-art { width: 100px; height: 100px; flex: 0 0 100px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--preview-secondary, #c9a86a), var(--preview-accent)); color: #fff; font-size: 28px; }
.store-preview.preview-dark { background: #15171b; }
.store-preview.preview-dark .store-preview-body { background: linear-gradient(105deg, #24262a, #15171b); }
.store-preview.preview-dark .store-preview-copy strong { color: #f3f3f1; }
.store-preview.preview-dark .store-preview-copy p { color: #aaaeb5; }

/* Customer-facing storefront */
.storefront {
  --store-primary: var(--shop-primary, #24262a);
  --store-secondary: var(--shop-secondary, #c9a86a);
  min-height: 100vh;
  padding: 0 0 90px;
  background: var(--shop-surface, var(--canvas));
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.store-announcement { min-height: 34px; display: flex; align-items: center; justify-content: center; padding: 7px 18px; background: var(--store-primary); color: var(--accent-ink); text-align: center; font-size: 10px; letter-spacing: .04em; }
html[data-theme="dark"] .storefront { background: #101114 !important; color: #f3f3f1; }
.storefront .store-header {
  position: sticky;
  top: 0;
  z-index: 30;
  max-width: none;
  min-height: 78px;
  margin: 0;
  padding: 12px clamp(18px, 5vw, 76px);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
}
html[data-theme="dark"] .storefront .store-header { background: #15171beF; border-color: #ffffff14; }
.storefront .store-brand { gap: 11px; color: var(--ink); font-size: 16px; letter-spacing: -.5px; }
.store-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.store-brand-copy small { margin-top: 4px; color: var(--muted); font: 600 8px "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.storefront .store-brand-mark { width: 38px; height: 38px; border-radius: 13px; background: var(--store-primary); color: var(--accent-ink); }
.storefront .store-brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.store-nav { display: flex; align-items: center; gap: clamp(12px, 2.3vw, 31px); margin-left: auto; margin-right: clamp(16px, 3vw, 44px); }
.store-nav a { color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 700; transition: color .15s ease; }
.store-nav a:hover { color: var(--ink); }
.store-header-actions { display: flex; align-items: center; gap: 8px; }
.store-header-actions .theme-toggle { min-width: 38px; justify-content: center; padding: 0 10px; }
.store-account-button, .store-cart-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 10px; font-weight: 750; cursor: pointer; }
.store-cart-button { border-color: var(--store-primary); background: var(--store-primary); color: var(--accent-ink); }
.store-cart-button:hover, .store-account-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.store-search-wrap { position: relative; display: flex; align-items: center; }
.store-search-wrap > i { position: absolute; left: 13px; z-index: 1; color: var(--muted); font-size: 10px; }
.store-search { padding-left: 33px; }
.storefront .store-hero-custom {
  position: relative;
  isolation: isolate;
  max-width: 1360px;
  min-height: clamp(410px, 48vw, 620px);
  margin: 24px auto 70px;
  padding: clamp(42px, 8vw, 105px) clamp(25px, 8vw, 115px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--store-primary) 96%, #000), #202126 76%, color-mix(in srgb, var(--store-secondary) 48%, #252221));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-md);
}
.store-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.store-hero-custom::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, #111318dd, #1113188a 50%, #11131810); }
.store-hero-copy { width: min(690px, 72%); max-width: 690px; text-shadow: 0 1px 20px #0004; }
.store-hero-copy .store-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 19px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.store-hero-copy .store-eyebrow::before { width: 25px; height: 1px; content: ""; background: var(--store-secondary); }
.store-hero-copy h1 { margin: 0; color: #fff; font: 800 clamp(39px, 7vw, 82px)/.98 Manrope, sans-serif; letter-spacing: -.065em; }
.store-hero-copy h2 { max-width: 550px; margin: 17px 0 0; color: #fff; font: 500 clamp(16px, 2.4vw, 24px)/1.4 "DM Sans", sans-serif; letter-spacing: -.02em; }
.store-hero-copy p { max-width: 510px; margin: 17px 0 0; color: #ffffffc9; font-size: 13px; line-height: 1.75; }
.store-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.store-hero-cta { min-height: 45px; display: inline-flex; align-items: center; gap: 9px; padding: 0 17px; border: 1px solid #ffffffa6; border-radius: 999px; background: #fff; color: #17191d; text-decoration: none; font-size: 10px; font-weight: 800; text-shadow: none; }
.store-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #0003; }
.store-hero-cta.secondary { background: #ffffff12; color: #fff; backdrop-filter: blur(8px); }
.store-hero-seal { position: absolute; right: clamp(24px, 8vw, 120px); bottom: clamp(25px, 6vw, 75px); width: clamp(95px, 12vw, 155px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #ffffff77; border-radius: 50%; background: #ffffff13; color: #fff; text-align: center; backdrop-filter: blur(8px); }
.store-hero-seal span { max-width: 80%; font: 700 9px/1.5 "DM Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.storefront .store-about { max-width: 1000px; margin: -20px auto 78px; padding: 0 26px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 35px; align-items: start; text-align: left; }
.store-about-label { color: var(--store-primary); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.store-about h2 { margin: 8px 0 0; color: var(--ink); font: 750 clamp(22px, 3vw, 32px)/1.15 Manrope, sans-serif; letter-spacing: -.05em; }
.store-about p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.9; white-space: pre-line; }
.store-collection { max-width: 1360px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 76px); scroll-margin-top: 100px; }
.store-collection-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.storefront .store-section-kicker { color: var(--store-primary); font-size: 9px; letter-spacing: .18em; }
.store-section-heading { margin: 0; }
.store-section-heading h2 { margin: 7px 0 0; color: var(--ink); font: 800 clamp(27px, 4vw, 45px)/1.05 Manrope, sans-serif; letter-spacing: -.06em; }
.store-section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.store-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.store-categories { display: flex; flex-wrap: wrap; gap: 7px; }
.store-filter { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 750; cursor: pointer; }
.store-filter:hover, .store-filter.active { border-color: var(--store-primary); background: var(--store-primary); color: var(--accent-ink); }
.store-search { width: min(240px, 35vw); min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 10px; }
.storefront .store-grid { max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.storefront .store-product { overflow: hidden; border: 1px solid var(--line) !important; border-radius: 18px !important; background: var(--surface) !important; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.storefront .store-product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.storefront .store-product-art { height: clamp(190px, 23vw, 300px); background: var(--surface-soft); }
.storefront .store-product-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.storefront .store-product:hover .store-product-art img { transform: scale(1.035); }
.store-product-art .product-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: var(--store-primary); font-size: 42px; }
.storefront .store-product-info { padding: 17px; }
.store-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.storefront .store-product-info h3 { margin: 9px 0 5px; color: var(--ink); font: 750 15px Manrope, sans-serif; letter-spacing: -.03em; }
.storefront .store-product-info p { min-height: 34px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.storefront .store-product-bottom { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.storefront .store-product-bottom > span { color: var(--ink); font-size: 14px; font-weight: 800; }
.storefront .store-product-bottom del { margin-right: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.storefront .store-product-bottom .button-dark { min-height: 34px; border: 0; border-radius: 999px; background: var(--store-primary); color: var(--accent-ink); }
.store-empty { grid-column: 1 / -1; padding: 55px 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.store-promises { max-width: 1360px; margin: 70px auto 0; padding: 24px clamp(18px, 5vw, 76px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.store-promise { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.store-promise i { color: var(--store-primary); }
.store-footer { max-width: 1360px; margin: 0 auto; padding: 32px clamp(18px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; color: var(--muted); }
.store-footer a { color: var(--ink-soft); text-decoration: none; font-size: 10px; }
.store-footer a:hover { color: var(--store-primary); }
.store-footer-links { display: flex; flex-wrap: wrap; gap: 17px; }
.store-account-link { padding: 0; border: 0; background: transparent; color: var(--ink-soft); font-size: 10px; cursor: pointer; }
.store-account-link:hover { color: var(--store-primary); }
.store-cart { position: fixed; right: 22px; bottom: 22px; z-index: 35; }
.storefront .store-cart { border: 0; border-radius: 999px; background: var(--store-primary); color: var(--accent-ink); box-shadow: var(--shadow-lg); }

/* Storefront art direction presets */
.storefront.theme-atelier .store-hero-custom { border-radius: 2px; }
.storefront.theme-atelier .store-hero-copy h1, .storefront.theme-atelier .store-about h2, .storefront.theme-atelier .store-section-heading h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.04em; }
.storefront.theme-atelier .store-product { border-radius: 3px !important; }
.storefront.theme-atelier .store-product-bottom .button-dark { border-radius: 4px; }
.storefront.theme-minimal .store-hero-custom { min-height: 390px; border-radius: 12px; box-shadow: none; }
.storefront.theme-minimal .store-hero-copy h1 { font-size: clamp(36px, 5vw, 62px); }
.storefront.theme-minimal .store-product { border-radius: 8px !important; box-shadow: none; }
.storefront.theme-minimal .store-product:hover { transform: none; box-shadow: none; }
.storefront.theme-nocturne { --shop-surface: #111216; }
.storefront.theme-nocturne .store-hero-custom { border: 1px solid color-mix(in srgb, var(--store-secondary) 42%, transparent); background: linear-gradient(120deg, #111216, #202126 70%, color-mix(in srgb, var(--store-secondary) 34%, #15161a)); }
.storefront.theme-nocturne .store-announcement { background: #c9a86a; color: #17191d; }
.storefront.theme-nocturne .store-product { border-color: #ffffff15 !important; }

/* Customer account surfaces */
.customer-auth-modal { width: min(500px, 100%); }
.customer-auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.customer-auth-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--store-primary, var(--ink)); color: var(--accent-ink); }
.customer-auth-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.customer-auth-modal h2 { margin: 0 0 5px; }
.customer-auth-modal .auth-tabs { margin: 16px 0 20px; }
.customer-auth-note { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--muted); font-size: 9px; line-height: 1.6; }
.account-modal { width: min(760px, 100%); }
.account-modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.account-modal-head h2 { margin: 3px 0; }
.account-modal-head p { margin: 0; font-size: 10px; }
.account-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 15px; background: var(--accent-soft); color: var(--ink); font-weight: 800; }
.customer-order-list { display: grid; gap: 10px; max-height: 48vh; overflow: auto; }
.customer-order { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.customer-order-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.customer-order-head b { color: var(--ink); font-size: 11px; }
.customer-order-head small { color: var(--muted); font-size: 9px; }
.customer-order-items { display: grid; gap: 5px; margin: 12px 0; color: var(--ink-soft); font-size: 10px; }
.customer-order-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-size: 11px; font-weight: 800; }
.customer-account-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.customer-password-form { display: grid; gap: 11px; margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.store-cart-modal { width: min(620px, 100%); }
.store-load-error { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; text-align: center; }
.store-load-error > span { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-size: 20px; }
.store-load-error h1 { margin: 20px 0 7px; color: var(--ink); font: 800 clamp(23px, 4vw, 32px) Manrope, sans-serif; letter-spacing: -.05em; }
.store-load-error p { max-width: 460px; margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* Toasts and cross-page details */
.product-thumb { border-color: var(--line); }
.store-image-preview, .banner-image-preview, .modal-image-preview { border-color: var(--line); background: var(--surface-soft); }
.image-option label { color: var(--ink-soft); }
.period { color: var(--muted); }
.text-green-700 { color: var(--success) !important; }
.text-red-500 { color: var(--danger) !important; }

/* Readability pass — strengthen hierarchy and use the storefront's available width. */
.nav-link { font-size: 13px; }
.heading-sub { font-size: 13px; }
.stat-label { font-size: 11px; }
.stat-foot { font-size: 11px; }
.data-table th { font-size: 10px; }
.button { font-size: 12px; }
.storefront {
  --store-on-primary: var(--shop-on-primary, #fff);
  --store-on-secondary: var(--shop-on-secondary, #17191d);
  font-size: 15px;
}
body:has(.storefront) .main-area { margin-left: 0; }
#app.page-wrap:has(.storefront) { width: 100%; max-width: none; margin: 0; padding: 0; }
.store-announcement { min-height: 42px; font-size: 12px; font-weight: 650; letter-spacing: .045em; color: var(--store-on-primary); }
.storefront .store-header { min-height: 86px; padding: 14px clamp(22px, 5vw, 82px); }
.storefront .store-brand { gap: 13px; font-size: 19px; }
.storefront .store-brand-mark { width: 46px; height: 46px; border-radius: 15px; background: var(--store-primary); color: var(--store-on-primary); font-size: 17px; }
.storefront .store-brand img { width: 46px; height: 46px; }
.store-brand-copy small { font-size: 9px; }
.store-nav { gap: clamp(18px, 2.5vw, 38px); }
.store-nav a { font-size: 12px; }
.store-header-actions { gap: 10px; }
.store-header-actions .theme-toggle { width: auto; min-width: 42px; min-height: 44px; gap: 8px; padding: 0 14px; font-size: 12px; }
.store-account-button, .store-cart-button { min-height: 46px; gap: 9px; padding: 0 17px; font-size: 12px; }
.store-cart-button { border-color: var(--store-primary); background: var(--store-primary); color: var(--store-on-primary); }
.storefront .store-hero-custom { width: calc(100% - clamp(28px, 6vw, 100px)); max-width: 1500px; min-height: clamp(460px, 52vw, 690px); margin: 28px auto 88px; padding: clamp(48px, 8vw, 116px) clamp(30px, 8vw, 130px); border-radius: 30px; }
.store-hero-copy { width: min(760px, 76%); max-width: 760px; }
.store-hero-copy .store-eyebrow { gap: 11px; margin-bottom: 23px; font-size: 11px; letter-spacing: .2em; }
.store-hero-copy h1 { font-size: clamp(52px, 7.2vw, 100px); }
.store-hero-copy h2 { max-width: 640px; margin-top: 21px; font-size: clamp(21px, 2.6vw, 30px); }
.store-hero-copy p { max-width: 570px; margin-top: 19px; font-size: 15px; line-height: 1.8; }
.store-hero-actions { gap: 12px; margin-top: 31px; }
.store-hero-cta { min-height: 52px; gap: 11px; padding: 0 21px; font-size: 12px; }
.store-hero-seal { width: clamp(118px, 12vw, 170px); }
.store-hero-seal span { font-size: 10px; }
.storefront .store-about { max-width: 1120px; margin: -15px auto 96px; padding: 0 28px; gap: clamp(32px, 7vw, 92px); }
.store-about-label { font-size: 11px; }
.store-about h2 { font-size: clamp(26px, 3.2vw, 38px); }
.store-about p { font-size: 15px; line-height: 1.85; }
.store-collection { max-width: 1500px; padding: 0 clamp(22px, 6vw, 92px); scroll-margin-top: 110px; }
.store-collection-head { margin-bottom: 29px; }
.storefront .store-section-kicker { font-size: 11px; letter-spacing: .19em; }
.store-section-heading h2 { font-size: clamp(32px, 4.2vw, 52px); }
.store-section-heading p { margin-top: 11px; font-size: 14px; }
.store-product-meta { font-size: 10px; }
.store-controls { gap: 20px; margin-bottom: 22px; }
.store-categories { gap: 9px; }
.store-filter { min-height: 40px; padding: 0 16px; font-size: 11px; }
.store-filter:hover, .store-filter.active { border-color: var(--store-primary); background: var(--store-primary); color: var(--store-on-primary); }
.store-search { width: min(330px, 35vw); min-height: 44px; padding: 0 16px 0 38px; font-size: 12px; }
.store-search-wrap > i { left: 15px; font-size: 12px; }
.storefront .store-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.storefront .store-product { border-radius: 22px !important; }
.storefront .store-product-art { height: clamp(250px, 25vw, 360px); }
.storefront .store-product-info { padding: 21px; }
.store-product-meta { font-size: 10px; }
.storefront .store-product-info h3 { margin: 11px 0 7px; font-size: 19px; }
.storefront .store-product-info p { min-height: 43px; font-size: 13px; line-height: 1.7; }
.storefront .store-product-bottom { margin-top: 17px; padding-top: 15px; }
.storefront .store-product-bottom > span { font-size: 17px; }
.storefront .store-product-bottom del { font-size: 12px; }
.storefront .store-product-bottom .button-dark { min-height: 42px; padding: 0 17px; background: var(--store-primary); color: var(--store-on-primary); font-size: 11px; }
.store-empty { padding: 68px 24px; font-size: 14px; }
.store-promises { max-width: 1500px; margin-top: 88px; padding: 29px clamp(22px, 6vw, 92px); }
.store-promise { gap: 12px; font-size: 12px; }
.store-footer { max-width: 1500px; padding: 38px clamp(22px, 6vw, 92px); font-size: 12px; }
.store-footer a, .store-account-link { font-size: 12px; }
.storefront .store-cart { background: var(--store-primary); color: var(--store-on-primary); font-size: 12px; }
.storefront.theme-nocturne .store-announcement { background: var(--store-secondary); color: var(--store-on-secondary); }

@media (max-width: 1050px) {
  .storefront .store-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
  .store-nav { gap: 14px; margin-right: 15px; }
  .store-theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-105%); transition: transform .24s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .topbar { height: 62px; padding: 0 15px; }
  .mobile-menu { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; }
  .breadcrumb { max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-actions { gap: 6px; }
  .top-avatar, #top-store-action { display: none !important; }
  .theme-toggle { width: 38px; min-height: 36px; justify-content: center; padding: 0; }
  .theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .page-wrap { padding: 25px 16px 44px; }
  .page-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 21px; }
  .page-heading > :last-child:not(:first-child) { max-width: 100%; }
  .page-heading > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .panel { padding: 17px; }
  .storefront .store-header { min-height: 72px; padding: 11px 18px; }
  .store-nav { display: none; }
  .store-brand-copy small { display: none; }
  .store-account-button { width: 42px; min-height: 42px; padding: 0; font-size: 0; }
  .store-account-button i { font-size: 13px; }
  .store-header-actions { gap: 6px; }
  .store-header-actions .theme-toggle { width: 42px; min-height: 42px; }
  .store-hero-custom { width: calc(100% - 28px); min-height: 470px !important; margin: 15px auto 58px !important; padding: 42px 28px !important; border-radius: 22px !important; }
  .store-hero-copy { width: 100%; max-width: 100%; }
  .store-hero-copy h1 { font-size: clamp(42px, 10vw, 68px); }
  .store-hero-copy p { max-width: 90%; font-size: 13px; }
  .store-hero-seal { right: 20px; bottom: 20px; width: 88px; }
  .store-hero-seal span { font-size: 8px; }
  .storefront .store-about { grid-template-columns: 1fr; gap: 14px; margin: 0 auto 52px; padding: 0 20px; }
  .store-collection { padding: 0 22px; }
  .store-collection-head { align-items: start; flex-direction: column; }
  .store-controls { align-items: stretch; flex-direction: column-reverse; }
  .store-search { width: 100%; }
  .storefront .store-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 15px; }
  .storefront .store-product-art { height: clamp(190px, 35vw, 280px); }
  .storefront .store-product-info { padding: 16px; }
  .storefront .store-product-info h3 { font-size: 16px; }
  .storefront .store-product-info p { min-height: 0; }
  .storefront .store-product-bottom { align-items: start; flex-direction: column; gap: 9px; }
  .storefront .store-product-bottom .button-dark { width: 100%; justify-content: center; }
  .store-promises { grid-template-columns: 1fr; gap: 14px; margin-top: 46px; }
  .store-footer { align-items: start; flex-direction: column; }
}
@media (max-width: 430px) {
  .stat-card { min-height: 112px; padding: 14px; }
  .stat-number { font-size: 23px; }
  .store-theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storefront .store-product-bottom > span { font-size: 15px; }
  .storefront .store-product-bottom .button-dark { padding: 9px 12px; font-size: 11px; }
  .store-hero-actions { flex-direction: column; align-items: start; }
  .store-hero-cta { min-height: 46px; }
}
@media (max-width: 520px) {
  .storefront .store-grid { grid-template-columns: 1fr; }
  .storefront .store-product-art { height: 260px; }
  .storefront .store-product-info { padding: 18px; }
  .storefront .store-product-info h3 { font-size: 18px; }
  .storefront .store-product-info p { font-size: 13px; }
  .storefront .store-hero-custom { min-height: 490px !important; padding: 38px 23px !important; }
  .store-hero-copy p { max-width: 100%; }
  .store-hero-seal { width: 74px; }
  .store-hero-seal span { font-size: 7px; }
  .store-account-button { display: inline-flex; }
  .store-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Multi-store switcher, help center and chart range controls. */
.shop-switch { width: 100%; text-align: left; cursor: pointer; color: var(--ink); }
.shop-switch-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.shop-switch-copy #shop-name { color: var(--ink); font-size: 12px; }
.shop-switch-copy #shop-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.shop-switch:hover { border-color: var(--muted); background: var(--surface); box-shadow: var(--shadow-sm); }
.help-card { width: calc(100% - 4px); color: var(--ink); text-align: left; cursor: pointer; }
.help-card:hover, .help-card.active-help { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.help-card span:nth-child(2) { min-width: 0; }
.help-card small { font-size: 10px; }
.shop-switch-modal { width: min(620px, 100%); }
.shop-modal-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.shop-modal-heading h2, .shop-create-modal h2 { margin: 2px 0 6px; font: 800 24px Manrope, sans-serif; letter-spacing: -.05em; }
.shop-modal-heading p, .shop-create-modal > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.shop-list { display: grid; gap: 8px; max-height: min(55vh, 460px); overflow-y: auto; }
.shop-choice-row { min-width: 0; display: flex; align-items: stretch; gap: 8px; }
.shop-choice-row > .shop-choice { flex: 1; }
.shop-choice { width: 100%; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.shop-choice:hover { border-color: var(--muted); background: var(--surface-soft); }
.shop-choice.active { border-color: var(--ink); background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.shop-choice-row.archived .shop-choice { cursor: default; background: var(--surface-soft); }
.shop-choice-mark { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--surface); font-weight: 800; }
.shop-choice-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.shop-choice-copy b { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.shop-choice-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.shop-choice > i { color: var(--muted); font-size: 12px; }
.shop-current { padding: 5px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--ink-soft); font-size: 9px; font-weight: 750; white-space: nowrap; }
.shop-row-action { width: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.shop-row-action:hover { border-color: var(--muted); background: var(--surface-soft); }
.shop-row-action.archive:hover { border-color: var(--danger); color: var(--danger); }
.shop-row-action.restore:hover { border-color: var(--success); color: var(--success); }
.archived-shop-section { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.archived-shop-section h3 { margin: 0 0 4px; color: var(--ink); font-size: 13px; font-weight: 800; }
.archived-shop-section p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.shop-create-action { width: 100%; justify-content: center; margin-top: 15px; }
.shop-create-note { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--muted); font-size: 10px; line-height: 1.6; }
.shop-create-note i { color: var(--success); }
.shop-create-modal { width: min(500px, 100%); }
.shop-create-modal .field { margin-top: 20px; }
.chart-toolbar { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 11px; }
.chart-toolbar h2 { margin: 0; color: var(--ink); font: 800 17px Manrope, sans-serif; letter-spacing: -.4px; }
.chart-toolbar .panel-subtitle { margin-top: 6px; font-size: 11px; }
.chart-toolbar-actions { display: flex; align-items: center; gap: 15px; }
.chart-range-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.chart-range { min-height: 31px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; cursor: pointer; }
.chart-range:hover { color: var(--ink); }
.chart-range.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.chart-range:disabled { opacity: .55; cursor: wait; }
.sales-chart-panel .chart-wrap { min-height: 245px; }
.sales-chart-panel .chart-wrap canvas { display: block; width: 100%; height: 245px; }
.chart-key { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.chart-key i { color: var(--success); font-size: 8px; }
.help-center-hero { display: grid; grid-template-columns: 1fr minmax(260px, 390px); gap: 25px; align-items: center; margin: 0 0 18px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse at 95% 0%, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 45%), var(--surface); box-shadow: var(--shadow-sm); }
.help-center-hero h2 { margin: 5px 0 7px; color: var(--ink); font: 800 clamp(23px, 3vw, 34px)/1.1 Manrope, sans-serif; letter-spacing: -.055em; }
.help-center-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.help-search { position: relative; display: flex; align-items: center; }
.help-search i { position: absolute; left: 14px; color: var(--muted); }
.help-search input { width: 100%; min-height: 47px; padding: 0 15px 0 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 12px; }
.help-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 34px; }
.help-topic-card { position: relative; min-height: 150px; display: flex; flex-direction: column; align-items: start; gap: 7px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.help-topic-card:hover { transform: translateY(-2px); border-color: var(--muted); box-shadow: var(--shadow-sm); }
.help-topic-card > span { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 11px; background: var(--accent-soft); color: var(--ink); }
.help-topic-card > b { color: var(--ink); font-size: 12px; }
.help-topic-card > small { color: var(--muted); font-size: 10px; }
.help-topic-card > i { position: absolute; top: 24px; right: 17px; color: var(--muted); font-size: 11px; }
.help-faq-layout { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.5fr); gap: clamp(25px, 5vw, 65px); align-items: start; }
.help-faq-intro h2 { margin: 8px 0 10px; color: var(--ink); font: 800 clamp(23px, 3vw, 32px)/1.1 Manrope, sans-serif; letter-spacing: -.05em; }
.help-faq-intro > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.help-support-card { display: flex; align-items: start; gap: 11px; margin-top: 22px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.help-support-card > span { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--ink); }
.help-support-card b { color: var(--ink); font-size: 11px; }
.help-support-card p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.help-articles { display: grid; gap: 9px; }
.help-article { padding: 0 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.help-article[hidden] { display: none; }
.help-article summary { position: relative; padding: 16px 28px 16px 0; color: var(--ink); font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
.help-article summary::-webkit-details-marker { display: none; }
.help-article summary::after { position: absolute; right: 2px; content: "+"; color: var(--muted); font-size: 19px; font-weight: 400; }
.help-article[open] summary::after { content: "−"; }
.help-article p { margin: 0 0 12px; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.help-article .button { min-height: 34px; margin: 0 0 15px; font-size: 10px; }
.help-no-results { padding: 30px 18px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 1050px) {
  .help-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .chart-toolbar { align-items: stretch; flex-direction: column; }
  .chart-toolbar-actions { align-items: start; flex-direction: column-reverse; gap: 10px; }
  .chart-range-tabs { width: 100%; }
  .chart-range { flex: 1; }
  .help-center-hero { grid-template-columns: 1fr; }
  .help-faq-layout { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 430px) {
  .help-topic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .help-topic-card { min-height: 140px; padding: 13px; }
  .shop-current { display: none; }
  .shop-choice { padding: 11px; }
  .shop-choice-copy small { font-size: 9px; }
}
