:root {
    --ink: #0a0a0a;
    --s1: #111111;
    --s2: #171717;
    --s3: #262626;
    --s4: #333333;
    --paper: #f0efeb;
    --titanium: #a3a3a3;
    --mist: #525252;
    --ember: #dc2626;
    --ember-glow: #ef4444;
    --ember-dim: #991b1b;
    --green: #16a34a;
    --green-dim: #166534;
    --amber: #d97706;
    --amber-dim: #92400e;
    --font-display: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
    --font-body: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "SF Mono", "Cascadia Code", "Consolas", "Fira Code", monospace;
    --radius: 2px;
    --site-header-height: 56px;
    --mobile-nav-scroll-offset: 8rem;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    line-height: 1.6;
  }

  body { background: var(--ink); min-height: 100vh; }

  :focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  }

  /* ── Header ── */
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: var(--site-header-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--s3);
  }

  .header-left { display: flex; align-items: center; gap: 1rem; }

  .wordmark {
    display: inline-flex; align-items: center; flex: none;
    color: var(--paper); text-decoration: none; user-select: none;
    transition: color 0.2s;
  }
  .wordmark:hover { color: var(--ember); }

  .commerce-back {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    min-height: 2rem; padding: 0.45rem 0.72rem;
    border: 1px solid var(--s4); border-radius: 999px;
    background: rgba(255,255,255,0.04); color: var(--paper);
    font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.08em; white-space: nowrap; text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
  }
  .commerce-back:hover {
    border-color: var(--ember); background: var(--ember-dim); color: #fff;
  }
  .brand-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
  .brand-logo { display: block; width: auto; height: auto; fill: currentColor; }
  .brand-logo--header { width: clamp(6rem, 25vw, 8rem); }

  .zone-label {
    font-family: var(--font-mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--titanium);
  }

  .header-right { display: flex; align-items: center; gap: 0.5rem; }

  .mode-btn {
    background: none; border: 1px solid var(--s3);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--titanium); cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
  }
  .mode-btn:hover { color: var(--paper); border-color: var(--mist); }
  .mode-btn.active { color: var(--paper); border-color: var(--ember); }

  .btn-logout {
    background: none; border: 1px solid var(--ember-dim);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--ember); cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .btn-logout:hover { background: var(--ember-dim); color: #fff; }

  /* ── Views ── */
  .view { display: none; }
  .view.active { display: block; }

  /* ════════════════════════════════════════════
     LOGIN
     ════════════════════════════════════════════ */

  .login-view {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    position: relative;
  }

  .login-card {
    width: 100%; max-width: 380px;
    background: var(--s1); border: 1px solid var(--s3);
    position: relative;
  }

  .login-card::before, .login-card::after {
    content: ''; position: absolute; z-index: 2;
    width: 14px; height: 14px; pointer-events: none;
  }
  .login-card::before { top: 10px; left: 10px; border-left: 1px solid rgba(220,38,38,0.5); border-top: 1px solid rgba(220,38,38,0.5); }
  .login-card::after { bottom: 10px; right: 10px; border-right: 1px solid rgba(220,38,38,0.5); border-bottom: 1px solid rgba(220,38,38,0.5); }

  .login-header {
    padding: 2rem 2rem 0;
    text-align: center;
  }

  .login-header .login-logo {
    min-height: 3.2rem; display: flex; align-items: center; justify-content: center;
    color: var(--paper); user-select: none;
  }
  .brand-logo--login { width: clamp(9rem, 45vw, 12rem); }

  .login-header .login-subtitle {
    margin-top: 0.5rem;
    font-family: var(--font-mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--titanium);
  }

  .login-ember-rule {
    width: 32px; height: 2px; background: var(--ember);
    margin: 1.25rem auto; opacity: 0.5;
  }

  .login-body { padding: 0 2rem 2rem; }

  .login-form { display: flex; flex-direction: column; gap: 1rem; }

  .login-field { display: flex; flex-direction: column; gap: 0.3rem; }

  .login-field label {
    font-family: var(--font-mono); font-size: 0.55rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--titanium);
  }

  .login-field input {
    background: var(--s2); border: 1px solid var(--s3);
    color: var(--paper); padding: 0.65rem 0.8rem;
    font-family: var(--font-body); font-size: 0.9rem;
    transition: border-color 0.2s;
  }
  .login-field input:focus { border-color: var(--ember); outline: none; }
  .login-field input::placeholder { color: var(--mist); }

  .login-email-display {
    background: var(--s2); border: 1px solid var(--s3);
    color: var(--paper); padding: 0.65rem 0.8rem;
    font-family: var(--font-mono); font-size: 0.78rem;
    letter-spacing: 0.04em; word-break: break-all;
  }

  .otp-request {
    width: 100%; padding: 0.65rem 0.8rem;
    border: 1px solid var(--s4); background: transparent;
    color: var(--paper); cursor: pointer;
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.12em; transition: border-color 0.2s, color 0.2s;
  }
  .otp-request:hover:not(:disabled) { border-color: var(--ember); color: var(--ember-glow); }
  .otp-request:disabled { color: var(--mist); cursor: not-allowed; opacity: 0.7; }

  .login-error {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: var(--ember); text-align: center;
    min-height: 1.2em;
    letter-spacing: 0.04em;
  }

  .login-lockout {
    font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--amber); text-align: center;
    padding: 0.6rem;
    background: rgba(217,119,6,0.08);
    border: 1px solid rgba(217,119,6,0.2);
  }

  .login-submit {
    width: 100%; padding: 0.7rem;
    background: var(--ember); border: none; color: #fff;
    font-family: var(--font-mono); font-size: 0.65rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    cursor: pointer; transition: background 0.2s;
  }
  .login-submit:hover { background: var(--ember-glow); }
  .login-submit:disabled {
    background: var(--s4); color: var(--mist); cursor: not-allowed;
  }

  .login-footer {
    padding: 1rem 2rem; border-top: 1px solid var(--s3);
    text-align: center;
  }
  .login-footer a {
    font-family: var(--font-mono); font-size: 0.55rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--titanium); text-decoration: none;
    transition: color 0.2s;
  }
  .login-footer a:hover { color: var(--paper); }

  .session-bar {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: var(--font-mono); font-size: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--mist);
  }
  .session-bar .session-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); flex-shrink: 0;
  }
  .session-bar .session-user { color: var(--titanium); }
  .session-bar .session-timer { color: var(--mist); }

  /* ════════════════════════════════════════════
     STOREFRONT
     ════════════════════════════════════════════ */

  .hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--ink);
    padding: 7.5rem clamp(1rem, 4vw, 2.5rem) 4rem;
  }
  .hero-container { position: relative; max-width: 1200px; margin: 0 auto; }

  .eyebrow {
    font-family: var(--font-mono); font-size: 0.65rem;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--ember); display: block; margin-bottom: 1rem;
  }

  .hero h1 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.25rem, 4vw, 3rem);
    line-height: 1; letter-spacing: -0.02em; color: var(--paper);
    text-wrap: balance;
  }

  .hero-intro {
    margin-top: 1.25rem; max-width: 34rem;
    font-size: 0.9rem; line-height: 1.75; color: var(--titanium);
  }

  .ember-rule { width: 40px; height: 2px; background: var(--ember); margin: 1.5rem 0; opacity: 0.6; }

  .carbon-grain {
    position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
    background-image:
      repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
      repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255,255,255,0.04) 2px, rgba(255,255,255,0.04) 4px);
  }

  .store-body {
    position: relative; background: var(--s1);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  }
  .store-container { max-width: 1800px; margin: 0 auto; }

  .store-layout { display: grid; gap: 3rem; }
  @media (min-width: 1024px) { .store-layout { grid-template-columns: 220px 1fr; } }

  /* Sidebar */
  .sidebar { display: none; }
  @media (min-width: 1024px) {
    .sidebar {
      display: flex; flex-direction: column; gap: 0.2rem;
      position: sticky; top: 5rem; align-self: start;
    }
  }

  .sidebar-btn {
    background: none; border: none; border-left: 2px solid transparent;
    padding: 0.45rem 0.7rem; text-align: left;
    font-family: var(--font-mono); font-size: 1.2rem; line-height: 1.35;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--titanium); cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
  }
  .sidebar-btn:hover { color: var(--paper); }
  .sidebar-btn.active { color: var(--paper); border-left-color: var(--ember); }

  .sidebar-item { display: flex; align-items: center; gap: 0.2rem; }

  .acc-toggle {
    background: none; border: none; padding: 0.4rem; cursor: pointer;
    color: var(--titanium); font-family: var(--font-mono); font-size: 0.55rem;
    transition: color 0.2s, transform 0.2s; line-height: 1;
  }
  .acc-toggle:hover { color: var(--paper); }
  .acc-toggle.open { transform: rotate(90deg); }

  .sub-nav {
    margin-left: 0.7rem; border-left: 1px solid var(--s3);
    padding-left: 0.7rem; display: flex; flex-direction: column; gap: 0.15rem;
    overflow: hidden; max-height: 0; transition: max-height 0.3s ease;
  }
  .sub-nav.open { max-height: 600px; }

  .sub-nav a {
    display: block; padding: 0.3rem 0;
    font-family: var(--font-mono); font-size: 1.1rem; line-height: 1.35;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--titanium); text-decoration: none;
    transition: color 0.2s;
  }
  .sub-nav a:hover { color: var(--paper); }

  /* Mobile category dropdown and chips */
  .mobile-category-nav {
    display: block;
    position: sticky;
    top: var(--site-header-height);
    z-index: 190;
    align-self: start;
    margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem));
    background: rgba(17, 17, 17, 0.96);
    border-bottom: 1px solid var(--s3);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .chip-row {
    display: flex; gap: 0.5rem; overflow-x: auto;
    padding: 0 0 0.75rem;
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-right: clamp(1rem, 4vw, 2.5rem);
    scrollbar-width: none;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  @media (max-width: 1023px) {
    html {
      scroll-behavior: auto;
      scroll-padding-top: var(--mobile-nav-scroll-offset);
    }

    .chip-row {
      padding-top: 0.65rem;
      padding-bottom: 0.65rem;
      -webkit-overflow-scrolling: touch;
    }

    .cat-section,
    .subcat {
      scroll-margin-top: var(--mobile-nav-scroll-offset);
    }
  }
  @media (min-width: 1024px) { .mobile-category-nav { display: none; } }

  .chip {
    flex-shrink: 0; background: none; border: 1px solid var(--s3);
    padding: 0.45rem 0.9rem;
    font-family: var(--font-mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--titanium); cursor: pointer;
    transition: color 0.2s, border-color 0.2s; white-space: nowrap;
  }
  .chip:hover { color: var(--paper); }
  .chip.active { color: var(--paper); border-color: var(--ember); }

  .mobile-dropdown-toggle {
    display: inline-flex; align-items: center; gap: 0.55rem;
  }

  .mobile-dropdown-arrow {
    display: inline-block; color: var(--titanium);
    font-size: 0.72rem; line-height: 1;
    transition: transform 0.2s ease, color 0.2s;
  }
  .mobile-dropdown-toggle[aria-expanded="true"] .mobile-dropdown-arrow {
    color: var(--paper); transform: rotate(180deg);
  }

  .mobile-submenu {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--site-header-height) - 4.5rem);
    overflow-y: auto; overscroll-behavior: contain;
    padding: 0.55rem clamp(1rem, 4vw, 2.5rem) 0.8rem;
    background: rgba(17, 17, 17, 0.985);
    border-bottom: 1px solid var(--s3);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.42);
    -webkit-overflow-scrolling: touch;
  }
  .mobile-submenu[hidden] { display: none; }

  .mobile-submenu a {
    display: flex; align-items: center;
    min-height: 44px; padding: 0.55rem 0.8rem;
    border-left: 2px solid transparent;
    font-family: var(--font-mono); font-size: 0.78rem;
    line-height: 1.35; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--titanium); text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  .mobile-submenu a:hover,
  .mobile-submenu a:focus-visible,
  .mobile-submenu a.active {
    color: var(--paper); border-left-color: var(--ember);
    background: rgba(255, 255, 255, 0.035);
  }
  .mobile-submenu .mobile-submenu-all {
    color: var(--paper); border-bottom: 1px solid var(--s3);
  }

  /* Single product view opened from a LINE share link */
  .single-product-mode .hero,
  .single-product-mode .mobile-category-nav,
  .single-product-mode .sidebar {
    display: none !important;
  }
  .single-product-mode .store-body {
    min-height: 100vh;
    padding-top: calc(var(--site-header-height) + 2.25rem);
  }
  .single-product-mode .store-layout { display: block; }

  .single-product-shell {
    width: 100%; max-width: 34rem; margin: 0 auto;
  }
  .single-product-toolbar {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--s3);
  }
  .single-product-kicker {
    margin: 0 0 0.35rem;
    font-family: var(--font-mono); font-size: 0.58rem;
    line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ember);
  }
  .single-product-toolbar h1,
  .single-product-not-found h1 {
    font-family: var(--font-display); font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 900; line-height: 1.15; color: var(--paper);
  }
  .single-product-back {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
    flex: none; padding: 0.55rem 0.8rem; border: 1px solid var(--s3);
    font-family: var(--font-mono); font-size: 0.58rem;
    line-height: 1.35; letter-spacing: 0.08em; color: var(--titanium);
    text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  .single-product-back:hover,
  .single-product-back:focus-visible {
    color: var(--paper); border-color: var(--ember); background: rgba(220, 38, 38, 0.08);
  }
  .single-product-card { margin-top: 1rem; }
  .single-product-card .model-card:hover { transform: none; }
  .single-product-not-found {
    padding: clamp(1.5rem, 6vw, 2.5rem); border: 1px solid var(--s3);
    background: var(--s2);
  }
  .single-product-not-found > p:not(.single-product-kicker) {
    margin: 0.75rem 0 1.5rem; color: var(--titanium);
    font-size: 0.8rem; line-height: 1.7;
  }
  @media (max-width: 520px) {
    .single-product-mode .store-body {
      padding-top: calc(var(--site-header-height) + 1.25rem);
    }
    .single-product-toolbar { align-items: stretch; flex-direction: column; }
    .single-product-back { width: 100%; }
  }

  /* Category / subcategory */
  .cat-section { scroll-margin-top: 6rem; }
  .cat-section + .cat-section { margin-top: 4rem; }

  .cat-section h2 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    text-transform: uppercase; letter-spacing: 0.02em;
    color: var(--paper); line-height: 1.15;
  }

  .cat-desc {
    margin-top: 0.6rem; max-width: 38rem;
    font-size: 0.8rem; line-height: 1.7; color: var(--titanium);
  }

  .subcat { margin-top: 2.5rem; scroll-margin-top: 6rem; }

  .subcat h3 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-transform: uppercase; letter-spacing: 0.02em;
    color: var(--paper);
  }

  .subcat-desc {
    margin-top: 0.4rem; font-size: 0.75rem;
    color: var(--titanium); max-width: 34rem;
  }

  .subcat-empty {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--border);
    color: var(--titanium);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }

  /* Custom process */
  .process-list {
    list-style: none; margin: 1.5rem 0 0; padding: 0;
    max-width: 52rem; border-top: 1px solid var(--s3);
  }
  .process-step {
    display: grid; grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 1rem; align-items: start; padding: 1rem 0;
    border-bottom: 1px solid var(--s3);
  }
  .process-step-number {
    width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
    border: 1px solid rgba(220,38,38,0.45); background: var(--ember-dim);
    color: var(--paper); font-family: var(--font-mono); font-size: 0.7rem;
    font-weight: 700; letter-spacing: 0.08em;
  }
  .process-step-copy { min-width: 0; padding-top: 0.15rem; }
  .process-step h3 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--paper);
  }
  .process-step p {
    margin-top: 0.35rem; font-size: 0.75rem; line-height: 1.6;
    color: var(--titanium);
  }

  /* Model grid */
  .model-grid {
    margin-top: 1rem; display: grid; gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  @media (min-width: 1200px) { .model-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

  /* Single finish/color chart */
  .color-chart-single {
    margin-top: 1.5rem; display: grid; place-items: center;
  }
  .color-chart-button {
    position: relative; width: min(100%, 720px); padding: 0;
    border: 1px solid var(--s3); background: #000; color: #fff;
    overflow: hidden; cursor: zoom-in;
    box-shadow: 0 20px 55px rgba(0,0,0,0.35);
    transition: border-color 0.25s, transform 0.25s;
  }
  .color-chart-button:hover {
    border-color: rgba(220,38,38,0.55); transform: translateY(-2px);
  }
  .color-chart-button:focus-visible {
    outline: 2px solid var(--ember); outline-offset: 3px;
  }
  .color-chart-button img {
    display: block; width: 100%; height: auto; object-fit: contain;
  }
  .color-chart-zoom {
    position: absolute; right: 0.75rem; bottom: 0.75rem;
    padding: 0.45rem 0.7rem; border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.72); color: #fff;
    font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.06em; pointer-events: none;
  }

  /* Model card */
  .model-card {
    position: relative; border: 1px solid var(--s3);
    background: var(--s2); overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
  }
  .model-card:hover { border-color: rgba(220,38,38,0.45); transform: translateY(-2px); }
  .model-card:focus { outline: none; }
  .model-card.shared-product {
    border-color: rgba(6, 199, 85, 0.8);
    box-shadow: 0 0 0 1px rgba(6, 199, 85, 0.18), 0 16px 34px rgba(0, 0, 0, 0.35);
  }
  .model-card.product-selected {
    border-color: #06c755;
    box-shadow: 0 0 0 2px rgba(6, 199, 85, 0.28), 0 14px 30px rgba(0, 0, 0, 0.34);
  }

  .model-card::before, .model-card::after {
    content: ''; position: absolute; z-index: 2;
    width: 10px; height: 10px; pointer-events: none;
  }
  .model-card::before { top: 6px; left: 6px; border-left: 1px solid rgba(220,38,38,0.6); border-top: 1px solid rgba(220,38,38,0.6); }
  .model-card::after { top: 6px; right: 6px; border-right: 1px solid rgba(220,38,38,0.6); border-top: 1px solid rgba(220,38,38,0.6); }

  .card-underline {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--ember);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.45s ease;
  }
  .model-card:hover .card-underline { transform: scaleX(1); }

  .card-img {
    aspect-ratio: 1; overflow: hidden; position: relative;
    background-color: var(--s2);
    background-image:
      repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,255,255,0.02) 4px, rgba(255,255,255,0.02) 8px),
      repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,255,255,0.03) 4px, rgba(255,255,255,0.03) 8px);
  }
  .card-img-button {
    width: 100%; height: 100%; padding: 0; border: 0;
    display: block; position: relative; overflow: hidden;
    background: transparent; color: inherit; cursor: zoom-in; touch-action: pan-y;
  }
  .card-img-button:focus-visible { outline: 2px solid var(--ember); outline-offset: -3px; }
  .card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: scale(0.9); transform-origin: center;
    transition: transform 0.25s ease;
  }
  .card-img-button:hover img,
  .card-img-button:focus-visible img { transform: scale(0.94); }
  .card-img.has-gallery .card-img-button img { object-fit: contain; }
  .product-gallery-nav {
    position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
    width: 2.2rem; height: 2.7rem; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,0.5); border-radius: 0;
    background: rgba(0,0,0,0.68); color: #fff;
    font-size: 1.55rem; line-height: 1; cursor: pointer;
  }
  .product-gallery-prev { left: 0.45rem; }
  .product-gallery-next { right: 0.45rem; }
  .product-gallery-nav:hover,
  .product-gallery-nav:focus-visible { border-color: var(--ember); background: var(--ember); }
  .product-gallery-counter {
    position: absolute; z-index: 3; top: 0.5rem; right: 0.5rem;
    padding: 0.28rem 0.48rem; border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.72); color: #fff;
    font-family: var(--font-mono); font-size: 0.64rem; line-height: 1;
  }
  .product-gallery-thumbs {
    position: absolute; z-index: 3; left: 50%; bottom: 0.45rem;
    transform: translateX(-50%); display: flex; gap: 0.3rem;
    max-width: calc(100% - 1rem); padding: 0.28rem;
    background: rgba(0,0,0,0.68); overflow-x: auto; scrollbar-width: none;
  }
  .product-gallery-thumbs::-webkit-scrollbar { display: none; }
  .product-gallery-thumb {
    flex: 0 0 auto; width: 2rem; height: 2rem; padding: 0;
    border: 1px solid rgba(255,255,255,0.42); background: #111;
    cursor: pointer; opacity: 0.72;
  }
  .product-gallery-thumb[aria-current="true"] { border-color: var(--ember); opacity: 1; }
  .card-img .product-gallery-thumb img {
    width: 100%; height: 100%; object-fit: cover; transform: none;
  }
  .card-img.has-gallery .card-img-zoom { bottom: 3.3rem; }
  .multi-select-mode .product-gallery-nav,
  .multi-select-mode .product-gallery-counter,
  .multi-select-mode .product-gallery-thumbs { display: none; }
  @media (max-width: 579px) {
    .product-gallery-nav { width: 1.9rem; height: 2.4rem; font-size: 1.35rem; }
    .product-gallery-prev { left: 0.25rem; }
    .product-gallery-next { right: 0.25rem; }
    .product-gallery-thumb { width: 1.72rem; height: 1.72rem; }
    .product-gallery-counter { top: 0.35rem; right: 0.35rem; font-size: 0.58rem; }
    .card-img.has-gallery .card-img-zoom { bottom: 2.95rem; }
  }
  .product-select-button {
    position: absolute; z-index: 4; top: 0.55rem; left: 0.55rem;
    min-height: 36px; display: none; align-items: center; gap: 0.35rem;
    padding: 0.38rem 0.55rem; border: 1px solid rgba(255,255,255,0.72);
    border-radius: 999px; background: rgba(0,0,0,0.78); color: #fff;
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
    cursor: pointer; touch-action: manipulation;
  }
  .multi-select-mode .product-select-button { display: inline-flex; }
  .product-select-button[aria-pressed="true"] { background: #06c755; border-color: #06c755; }
  .product-select-check {
    width: 1.1rem; height: 1.1rem; display: inline-grid; place-items: center;
    border: 1px solid currentColor; border-radius: 50%; font-size: 0.7rem;
  }
  .multi-select-mode .card-img-button { cursor: pointer; }
  .multi-select-mode .card-img-zoom { display: none; }
  .card-img-zoom {
    position: absolute; right: 0.55rem; bottom: 0.55rem;
    width: 1.65rem; height: 1.65rem; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,0.45); border-radius: 50%;
    background: rgba(0,0,0,0.62); color: #fff;
    font-size: 0.9rem; line-height: 1; pointer-events: none;
  }
  .card-img .ph {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.16em; color: var(--mist);
  }

  body.image-lightbox-open { overflow: hidden; }
  .image-lightbox[hidden] { display: none; }
  .image-lightbox {
    position: fixed; inset: 0; z-index: 1200;
    display: grid; place-items: center; padding: 1rem;
    background: rgba(0,0,0,0.88); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity 0.18s ease;
  }
  .image-lightbox.open { opacity: 1; }
  .image-lightbox-panel {
    position: relative; display: grid; place-items: center;
    width: min(82vw, 1100px); height: min(80vh, 850px);
  }
  .image-lightbox-image {
    max-width: 88%; max-height: 88%; object-fit: contain;
    display: block; box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  }
  .image-lightbox-close {
    position: absolute; z-index: 2; top: 0; right: 0;
    width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%; background: rgba(0,0,0,0.75); color: #fff;
    font-size: 1.6rem; line-height: 1; cursor: pointer;
  }
  .image-lightbox-close:hover,
  .image-lightbox-close:focus-visible { background: var(--ember); border-color: var(--ember); }
  @media (max-width: 579px) {
    .image-lightbox-panel {
      width: 90vw; height: 72vh;
    }
    .image-lightbox-image {
      max-width: 90%; max-height: 90%;
    }
  }

  .card-body { flex: 1; display: flex; flex-direction: column; }

  .product-fields { display: grid; height: 100%; }

  .product-field {
    display: grid; gap: 0.65rem; align-items: start;
    padding: 0.72rem 1rem; border-bottom: 1px solid var(--s3);
  }
  .product-field:last-child { border-bottom: 0; }
  .product-field-identity { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); }
  .product-field-core,
  .product-field-fitment { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .product-pair { display: grid; gap: 0.16rem; min-width: 0; align-content: start; }

  .product-label {
    padding-top: 0.12rem;
    font-family: var(--font-mono); font-size: 0.64rem;
    line-height: 1.35; text-transform: uppercase; letter-spacing: 0.13em;
    color: var(--mist);
  }

  .product-value {
    min-width: 0;
    font-family: var(--font-mono); font-size: 0.86rem;
    line-height: 1.5; color: var(--titanium);
    overflow-wrap: anywhere;
  }

  .product-pair-type .product-value {
    font-family: var(--font-display); font-size: 1.22rem;
    font-weight: 700; line-height: 1.25; letter-spacing: 0.02em;
    text-transform: uppercase; color: var(--paper);
  }

  .product-pair-category .product-value,
  .product-pair-size .product-value,
  .product-pair-price .product-value {
    font-weight: 700;
  }

  .product-field-fitment .product-value {
    font-size: 0.78rem; line-height: 1.4; font-weight: 600;
    color: var(--titanium); overflow-wrap: anywhere;
  }

  .product-pair-price .product-value { color: var(--ember-glow); font-weight: 700; }

  .line-share-row {
    padding: 0.8rem 1rem 0.95rem;
    border-top: 1px solid var(--s3);
    background: rgba(10, 10, 10, 0.22);
  }

  .product-video-row {
    display: flex; align-items: center; justify-content: space-between; gap: 0.7rem;
    padding: 0.65rem 1rem; border-top: 1px solid var(--s3);
    background: rgba(255,255,255,0.015);
  }
  .product-video-link {
    min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.45rem 0.7rem; border: 1px solid rgba(220,38,38,0.55);
    color: #ff8b8b; font-family: var(--font-mono); font-size: 0.62rem;
    font-weight: 700; letter-spacing: 0.06em; text-decoration: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
  }
  .product-video-link:hover,
  .product-video-link:focus-visible { color: #fff; background: var(--ember); border-color: var(--ember); }

  .line-share-button {
    width: 100%; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(6, 199, 85, 0.62);
    background: rgba(6, 199, 85, 0.1); color: #60e69a;
    font-family: var(--font-mono); font-size: 0.62rem;
    font-weight: 700; line-height: 1.3; letter-spacing: 0.08em;
    cursor: pointer; touch-action: manipulation;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
  }
  .line-share-button:hover,
  .line-share-button:focus-visible {
    color: #fff; background: #06c755; border-color: #06c755;
  }

  .line-share-symbol {
    display: inline-grid; place-items: center;
    width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: #06c755; color: #fff; font-size: 0.72rem; line-height: 1;
  }
  .line-share-button:hover .line-share-symbol,
  .line-share-button:focus-visible .line-share-symbol {
    background: #fff; color: #06c755;
  }

  .multi-select-launch {
    position: fixed; z-index: 850; right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    min-width: 94px; min-height: 48px; display: inline-flex; align-items: center;
    justify-content: center; gap: 0.5rem; padding: 0.7rem 1rem;
    border: 1px solid rgba(6,199,85,0.78); border-radius: 999px;
    background: rgba(10,10,10,0.94); color: #7cf2ac;
    box-shadow: 0 12px 32px rgba(0,0,0,0.48);
    font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700;
    cursor: pointer; touch-action: manipulation;
  }
  .multi-select-launch:hover,
  .multi-select-launch:focus-visible { color: #fff; background: #06c755; }
  .multi-select-launch[hidden],
  .single-product-mode .multi-select-launch,
  .single-product-mode .multi-select-bar { display: none; }

  .multi-select-bar {
    position: fixed; z-index: 860; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateX(-50%); width: min(calc(100% - 2rem), 560px);
    min-height: 62px; display: flex; align-items: center; gap: 0.65rem;
    padding: 0.65rem; border: 1px solid var(--s3); border-radius: 0.8rem;
    background: rgba(10,10,10,0.96); box-shadow: 0 18px 48px rgba(0,0,0,0.58);
    backdrop-filter: blur(12px);
  }
  .multi-select-bar[hidden] { display: none; }
  .multi-select-bar strong {
    flex: 1; padding-left: 0.35rem; color: var(--paper);
    font-family: var(--font-mono); font-size: 0.74rem;
  }
  .multi-select-cancel,
  .multi-line-share-button {
    min-height: 42px; padding: 0.55rem 0.8rem; border: 1px solid var(--s3);
    background: transparent; color: var(--titanium); font-family: var(--font-mono);
    font-size: 0.67rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
  }
  .multi-line-share-button {
    display: inline-flex; align-items: center; gap: 0.45rem;
    border-color: rgba(6,199,85,0.68); color: #75eda8;
    background: rgba(6,199,85,0.1);
  }
  .multi-line-share-button:hover,
  .multi-line-share-button:focus-visible { color: #fff; background: #06c755; }
  .multi-line-share-button:disabled { opacity: 0.42; cursor: not-allowed; }
  .multi-product-grid { margin-top: 1.25rem; }

  @media (max-width: 420px) {
    .multi-select-bar { width: calc(100% - 1rem); bottom: 0.5rem; gap: 0.4rem; padding: 0.5rem; }
    .multi-select-bar strong { font-size: 0.68rem; }
    .multi-select-cancel,
    .multi-line-share-button { padding-inline: 0.6rem; }
  }

  @media (max-width: 579px), (min-width: 1200px) {
    .model-grid .product-field {
      gap: 0.25rem;
      padding: 0.5rem 0.55rem;
    }
    .model-grid .product-label {
      padding-top: 0;
      font-size: 0.56rem;
      letter-spacing: 0.09em;
    }
    .model-grid .product-value { font-size: 0.7rem; line-height: 1.35; }
    .model-grid .product-pair-type .product-value { font-size: 1.02rem; }
    .model-grid .product-field-fitment .product-value { font-size: 0.66rem; }
    .model-grid .line-share-row { padding: 0.5rem; }
    .model-grid .product-video-row { padding: 0.5rem 0.55rem; }
    .model-grid .line-share-button {
      min-height: 36px;
      padding: 0.4rem;
    }
  }

  .card-tag {
    font-family: var(--font-mono); font-size: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.16em;
    padding: 0.2rem 0.5rem;
  }
  .card-tag.dev { color: var(--amber); background: rgba(217,119,6,0.1); }
  .card-tag.available { color: var(--green); background: rgba(22,163,74,0.1); }
  .card-tag.discontinued { color: var(--mist); background: rgba(82,82,82,0.1); }

  /* ════════════════════════════════════════════
     ADMIN
     ════════════════════════════════════════════ */

  .admin-view { padding: 56px 0 0; }

  .admin-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
    padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--s3); background: var(--s1);
  }

  .admin-bar h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.1rem; text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

  .admin-search-row {
    display: grid;
    grid-template-columns: auto minmax(220px, 520px) 1fr;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--s3);
    background: #0d0d0d;
  }

  .admin-search-row > label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--paper);
    white-space: nowrap;
  }

  .admin-search-control {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid var(--s3);
    background: var(--s2);
  }

  .admin-search-control:focus-within { border-color: var(--ember); }
  .admin-search-icon { padding-left: 0.75rem; color: var(--ember-glow); font-size: 1.15rem; }

  .admin-search-control input {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.78rem;
  }

  .admin-search-control input::placeholder { color: var(--mist); }
  .admin-search-control input::-webkit-search-cancel-button { display: none; }

  .admin-search-clear {
    min-height: 34px;
    margin-right: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--s3);
    background: transparent;
    color: var(--titanium);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    cursor: pointer;
  }

  .admin-search-clear:hover,
  .admin-search-clear:focus-visible { border-color: var(--ember); color: var(--paper); }

  .admin-search-status {
    margin: 0;
    color: var(--mist);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    line-height: 1.5;
  }

  @media (max-width: 720px) {
    .admin-search-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .admin-search-control { width: 100%; }
  }

  .btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border: none;
    font-family: var(--font-mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    cursor: pointer; transition: background 0.2s, color 0.2s;
  }
  .btn-primary { background: var(--ember); color: #fff; }
  .btn-primary:hover { background: var(--ember-glow); }
  .btn:disabled { opacity: 0.55; cursor: wait; pointer-events: none; }
  .btn-ghost { background: none; border: 1px solid var(--s3); color: var(--titanium); }
  .btn-ghost:hover { color: var(--paper); border-color: var(--mist); }
  .btn-danger { background: none; border: 1px solid var(--ember-dim); color: var(--ember); }
  .btn-danger:hover { background: var(--ember-dim); color: #fff; }
  .btn-small { padding: 0.35rem 0.65rem; font-size: 0.55rem; }

  /* Admin table */
  .admin-table-wrap {
    overflow-x: auto; padding: 0 clamp(1rem, 4vw, 2.5rem);
  }

  .admin-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.8rem; font-variant-numeric: tabular-nums;
  }

  .admin-table th {
    position: sticky; top: 0;
    background: var(--s1); border-bottom: 1px solid var(--s3);
    padding: 0.8rem 0.75rem; text-align: left;
    font-family: var(--font-mono); font-size: 0.55rem;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--titanium); white-space: nowrap;
  }

  .admin-table td {
    padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--s3);
    vertical-align: middle;
  }

  .admin-table tr:hover td { background: rgba(255,255,255,0.02); }

  .admin-table .thumb {
    width: 48px; height: 48px; object-fit: cover;
    border: 1px solid var(--s3);
  }
  .admin-table .thumb-ph {
    width: 48px; height: 48px;
    background: var(--s2); border: 1px solid var(--s3);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.4rem;
    color: var(--mist); text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .admin-table .model-code {
    font-family: var(--font-mono); font-weight: 600;
    font-size: 0.85rem; letter-spacing: 0.02em;
  }

  .admin-table .cell-actions { display: flex; gap: 0.35rem; white-space: nowrap; }

  .admin-empty {
    padding: 4rem 2rem; text-align: center; color: var(--mist);
    font-family: var(--font-mono); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.14em;
  }

  /* ── Modal ── */
  .modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    justify-content: center; align-items: flex-start;
    padding: 4rem 1rem 2rem; overflow-y: auto;
  }
  .modal-overlay.open { display: flex; }

  .modal {
    background: var(--s1); border: 1px solid var(--s3);
    width: 100%; max-width: 640px;
    position: relative;
  }

  .modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--s3);
  }
  .modal-header h3 {
    font-family: var(--font-display); font-weight: 800;
    font-size: 1rem; text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .modal-close {
    background: none; border: none; color: var(--titanium);
    font-size: 1.2rem; cursor: pointer; padding: 0.25rem;
    line-height: 1;
  }
  .modal-close:hover { color: var(--paper); }

  .modal-body { padding: 1.5rem; }

  .form-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
  }
  @media (min-width: 480px) { .form-grid { grid-template-columns: 1fr 1fr; } }

  .form-group { display: flex; flex-direction: column; gap: 0.3rem; }
  .form-group.full { grid-column: 1 / -1; }

  .form-group label {
    font-family: var(--font-mono); font-size: 0.55rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--titanium);
  }
  .form-help {
    display: block; margin-top: 0.08rem; color: var(--mist);
    font-family: var(--font-mono); font-size: 0.58rem; line-height: 1.5;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    background: var(--s2); border: 1px solid var(--s3);
    color: var(--paper); padding: 0.55rem 0.7rem;
    font-family: var(--font-body); font-size: 0.85rem;
    transition: border-color 0.2s;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--ember); outline: none;
  }

  .form-group textarea { resize: vertical; min-height: 72px; }
  .form-group select { cursor: pointer; }

  .img-upload-area {
    border: 1px dashed var(--s4); background: var(--s2);
    padding: 1.5rem; text-align: center; cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
  }
  .img-upload-area:hover { border-color: var(--mist); }
  .img-upload-area .upload-label {
    font-family: var(--font-mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--mist);
  }
  .img-upload-area input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
  }
  .img-upload-area .preview-thumb {
    max-width: 120px; max-height: 120px; margin: 0.5rem auto 0;
    display: block; border: 1px solid var(--s3);
  }

  .modal-footer {
    display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem; border-top: 1px solid var(--s3);
  }

  .cloud-save-status {
    margin-right: auto;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    line-height: 1.5;
  }
  .cloud-save-status.error { color: var(--ember-glow); }

  @media (max-width: 520px) {
    .cloud-save-status { width: 100%; margin-right: 0; }
  }

  /* Specs sub-grid */
  .specs-grid {
    display: grid; gap: 0.6rem;
    grid-template-columns: 1fr 1fr;
  }
  @media (min-width: 480px) { .specs-grid { grid-template-columns: 1fr 1fr 1fr; } }

  /* ── Delete confirm ── */
  .confirm-overlay {
    display: none; position: fixed; inset: 0; z-index: 400;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
    padding: 2rem;
  }
  .confirm-overlay.open { display: flex; }
  .confirm-box {
    background: var(--s1); border: 1px solid var(--s3);
    padding: 2rem; max-width: 400px; width: 100%; text-align: center;
  }
  .confirm-box p { font-size: 0.9rem; margin-bottom: 1.5rem; color: var(--titanium); }
  .confirm-box strong { color: var(--paper); }
  .confirm-actions { display: flex; gap: 0.5rem; justify-content: center; }

  /* ── Stats bar ── */
  .stats-row {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--s3);
  }
  .stat-item {
    display: flex; flex-direction: column; gap: 0.15rem;
  }
  .stat-val {
    font-family: var(--font-mono); font-size: 1.5rem;
    font-weight: 700; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .stat-label {
    font-family: var(--font-mono); font-size: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--titanium);
  }

  /* ── Toast ── */
  .toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
    background: var(--s2); border: 1px solid var(--s3);
    padding: 0.7rem 1.2rem;
    font-family: var(--font-mono); font-size: 0.65rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--green); opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
  }
  .toast.show { opacity: 1; transform: translateY(0); }
  .toast.error { color: var(--ember); }

  /* ── Password change modal ── */
  @media (max-width: 480px) {
    .site-header { padding-left: 0.75rem; padding-right: 0.75rem; }
    .header-left, .header-right { min-width: 0; }
    .header-left { gap: 0.4rem; }
    .header-right { gap: 0.3rem; }
    .zone-label, .session-bar { display: none !important; }
    .commerce-back { width: 5.2rem; }
    .mode-btn, .btn-logout { padding: 0.4rem 0.5rem; font-size: 0.55rem; letter-spacing: 0.08em; }
  }
