    :root {
      --bg: #f3f4f6;
      --panel: #ffffff;
      --text: #111827;
      --muted: #667085;
      --line: #d9dee8;
      --accent: #f7931e;
      --accent-2: #111827;
      --danger: #b42318;
      --soft: #fff4e6;
      --ink: #09090b;
      --shadow: 0 18px 46px rgba(15, 23, 42, .1);
      --header-bg: linear-gradient(135deg, #050505 0%, #111827 58%, #2b1a08 100%);
      --header-text: #ffffff;
      --header-muted: #f4d7a9;
      --field-bg: #ffffff;
      --subtle-panel: #f9fafb;
      --ghost-bg: #eef0f4;
      --ghost-text: #1f2937;
      --tab-bg: rgba(255,255,255,.12);
      --tab-text: #ffffff;
      --tab-hover: rgba(255,255,255,.2);
      --active-tab-bg: #f7931e;
      --active-tab-text: #111111;
      --hero-bg: linear-gradient(135deg, rgba(5,5,5,.98) 0%, rgba(17,24,39,.95) 58%, rgba(247,147,30,.86) 100%);
      --hero-text: #ffffff;
      --hero-muted: #f3d7ad;
      --product-art-bg: linear-gradient(135deg, #050505 0%, #050505 50%, #f7931e 50%, #f7931e 100%);
}

.checkout-coupon-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #e7d5b4;
  border-radius: 16px;
  background: #fffaf0;
}

.checkout-coupon-card p {
  margin: 3px 0 0;
}

.checkout-coupon-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.checkout-coupon-input input {
  text-transform: uppercase;
}

.coupon-applied-row,
.coupon-admin-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #166534;
}

.coupon-admin-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #e8dbc3;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-align: left;
}

.coupon-admin-row.active {
  border-color: #bd7d19;
  box-shadow: 0 0 0 2px rgba(189, 125, 25, 0.12);
}

.coupon-admin-row span:first-child {
  display: grid;
  gap: 3px;
}

.coupon-admin-row small,
.coupon-admin-form small {
  display: block;
  color: #746b5c;
}

.coupon-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}

.coupon-check input {
  width: auto;
}

.coupon-admin-summary {
  color: inherit;
  padding: 12px 0;
  border-top: 1px solid #eadfca;
}

@media (max-width: 640px) {
  .checkout-coupon-input,
  .coupon-admin-row {
    grid-template-columns: 1fr;
  }

  .checkout-coupon-input button {
    width: 100%;
  }

  .coupon-applied-row,
  .coupon-admin-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

    body[data-theme="clean-light"] {
      --bg: #f7f8fb;
      --panel: #ffffff;
      --text: #18202f;
      --muted: #667085;
      --line: #d9dee8;
      --accent: #0e9384;
      --accent-2: #2563eb;
      --soft: #e9fbf7;
      --header-bg: linear-gradient(135deg, #ffffff 0%, #f3f7fb 58%, #e7f7f4 100%);
      --header-text: #111827;
      --header-muted: #526071;
      --field-bg: #ffffff;
      --subtle-panel: #f8fafc;
      --ghost-bg: #eef2f7;
      --ghost-text: #223047;
      --tab-bg: #e9edf4;
      --tab-text: #1f2937;
      --tab-hover: #dde5ef;
      --active-tab-bg: #0e9384;
      --active-tab-text: #ffffff;
      --hero-bg: linear-gradient(135deg, #ffffff 0%, #f4f8fb 58%, #e8faf5 100%);
      --hero-text: #111827;
      --hero-muted: #4b5563;
      --product-art-bg: linear-gradient(135deg, #111827 0%, #111827 48%, #0e9384 48%, #0e9384 100%);
    }

    body[data-theme="premium-blue"] {
      --bg: #eef4fb;
      --panel: #ffffff;
      --text: #111827;
      --muted: #5d6b82;
      --line: #cad6e6;
      --accent: #0f5f9f;
      --accent-2: #5b21b6;
      --soft: #e6f2ff;
      --header-bg: linear-gradient(135deg, #071526 0%, #123d68 62%, #0f5f9f 100%);
      --header-text: #ffffff;
      --header-muted: #c7d7ea;
      --field-bg: #ffffff;
      --subtle-panel: #f5f9fe;
      --ghost-bg: #e4ebf5;
      --ghost-text: #1c2c44;
      --tab-bg: rgba(255,255,255,.14);
      --tab-text: #ffffff;
      --tab-hover: rgba(255,255,255,.24);
      --active-tab-bg: #ffffff;
      --active-tab-text: #0b2541;
      --hero-bg: linear-gradient(135deg, rgba(7,21,38,.96) 0%, rgba(18,61,104,.92) 62%, rgba(15,95,159,.9) 100%);
      --hero-text: #ffffff;
      --hero-muted: #c7d7ea;
      --product-art-bg: linear-gradient(135deg, #071526 0%, #071526 45%, #0f5f9f 45%, #0f5f9f 100%);
    }

    body[data-theme="gold-black"] {
      --bg: #f5f2ea;
      --panel: #ffffff;
      --text: #15110a;
      --muted: #675f51;
      --line: #ded6c5;
      --accent: #b7791f;
      --accent-2: #111827;
      --soft: #fff7df;
      --header-bg: linear-gradient(135deg, #090909 0%, #1b1710 58%, #b7791f 100%);
      --header-text: #ffffff;
      --header-muted: #f1dca8;
      --field-bg: #fffdf8;
      --subtle-panel: #fffbf1;
      --ghost-bg: #efe6d4;
      --ghost-text: #2c2417;
      --tab-bg: rgba(255,255,255,.13);
      --tab-text: #ffffff;
      --tab-hover: rgba(255,255,255,.23);
      --active-tab-bg: #fbbf24;
      --active-tab-text: #111111;
      --hero-bg: linear-gradient(135deg, rgba(9,9,9,.97) 0%, rgba(27,23,16,.94) 58%, rgba(183,121,31,.9) 100%);
      --hero-text: #ffffff;
      --hero-muted: #f1dca8;
      --product-art-bg: linear-gradient(135deg, #090909 0%, #090909 48%, #fbbf24 48%, #fbbf24 100%);
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: Arial, "Tahoma", sans-serif;
      color: var(--text);
      background: var(--bg);
    }

    header {
      background: var(--header-bg);
      color: var(--header-text);
      border-bottom: 1px solid rgba(247,147,30,.55);
      box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
    }

    .bar {
      max-width: 1660px;
      margin: 0 auto;
      padding: 18px 20px;
      display: flex;
      gap: 18px;
      align-items: center;
      justify-content: space-between;
      flex-wrap: nowrap;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 0 1 360px;
    }

    .brand {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .brand strong {
      font-size: 20px;
      line-height: 1.2;
    }

    .brand span {
      color: var(--header-muted);
      font-size: 13px;
    }

    nav {
      display: flex;
      gap: 8px;
      flex-wrap: nowrap;
      justify-content: flex-end;
      max-width: 100%;
      min-width: 0;
      flex: 1 1 auto;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: thin;
    }

    .nav-area {
      display: flex;
      flex-direction: row-reverse;
      gap: 10px;
      align-items: center;
      justify-content: flex-start;
      flex: 1 1 auto;
      min-width: 0;
      max-width: 100%;
    }

    .header-auth {
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
      flex: 0 0 auto;
    }

    .cart-button {
      position: relative;
      width: 44px;
      height: 44px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.35);
      border-radius: 999px;
      background: rgba(255,255,255,.14);
      color: var(--header-text);
      font-size: 22px;
      font-weight: 900;
      cursor: pointer;
    }

    .cart-count {
      position: absolute;
      top: -6px;
      right: -6px;
      min-width: 22px;
      height: 22px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: #ef4444;
      color: #fff;
      font-size: 12px;
      line-height: 1;
      border: 2px solid rgba(255,255,255,.9);
    }

    .header-user {
      color: #d1d5db;
      font-size: 13px;
      font-weight: 700;
    }

    .header-credit {
      display: none;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.14);
      color: var(--header-text);
      border: 1px solid rgba(255,255,255,.28);
      font-weight: 800;
      white-space: nowrap;
    }

    .header-credit.show { display: inline-flex; }

    .header-credit span {
      display: inline-grid;
      place-items: center;
      min-width: 28px;
      height: 28px;
      border-radius: 999px;
      background: var(--active-tab-bg);
      color: var(--active-tab-text);
      padding: 0 8px;
    }

    .profile-menu-wrap {
      position: relative;
      display: none;
    }

    .profile-menu-wrap.show { display: block; }

    .profile-button {
      width: 46px;
      height: 46px;
      min-height: 46px;
      padding: 0;
      border-radius: 999px;
      border: 2px solid rgba(255,255,255,.36);
      background: var(--accent);
      color: var(--hero-text);
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 10px 24px rgba(15, 118, 110, .28);
    }

    .profile-dropdown {
      position: absolute;
      top: 58px;
      left: 0;
      z-index: 20;
      width: min(280px, calc(100vw - 24px));
      max-width: calc(100vw - 24px);
      display: none;
      padding: 10px;
      background: #fff;
      color: var(--text);
      border: 1px solid var(--line);
      border-radius: 10px;
      box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    }

    .profile-dropdown::before {
      content: "";
      position: absolute;
      top: -7px;
      left: 18px;
      width: 14px;
      height: 14px;
      transform: rotate(45deg);
      background: #fff;
      border-left: 1px solid var(--line);
      border-top: 1px solid var(--line);
    }

    .profile-dropdown.show { display: block; }

    .app-loading {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: none;
      place-items: center;
      padding: 20px;
      background: rgba(17, 17, 17, .46);
      backdrop-filter: blur(5px);
    }

    .app-loading.show { display: grid; }

    .app-loading-card {
      width: min(360px, 100%);
      display: grid;
      justify-items: center;
      gap: 12px;
      padding: 24px;
      border-radius: 16px;
      background: #fff;
      color: var(--text);
      box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
      text-align: center;
    }

    .app-loading-spinner {
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: 4px solid #f2dfc2;
      border-top-color: var(--accent);
      animation: spin .82s linear infinite;
    }

    .app-loading-card strong {
      font-size: 19px;
    }

    .app-loading-card span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .profile-summary {
      padding: 10px 10px 12px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 6px;
    }

    .profile-summary strong,
    .profile-summary span {
      display: block;
    }

    .profile-summary span {
      color: var(--muted);
      font-size: 13px;
      margin-top: 3px;
    }

    .profile-menu-item {
      width: 100%;
      min-height: 38px;
      border: 0;
      border-radius: 7px;
      padding: 0 10px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      text-align: left;
      background: transparent;
      color: #1f2937;
      font-weight: 700;
      cursor: pointer;
    }

    .profile-menu-item:hover { background: #f3f4f6; }

    .profile-menu-item.danger-text { color: var(--danger); }

    .tab-btn {
      flex: 0 0 auto;
      white-space: nowrap;
    }

    .form-band {
      margin-top: 16px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
    }

    .warehouse-list {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }

    .warehouse-card {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-start;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .warehouse-card strong {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

    .warehouse-card-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .credit-panel {
      margin: 14px 0 16px;
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
    }

    .credit-panel-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
    }

    .credit-balance-big {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      background: var(--soft);
      color: var(--accent);
      font-weight: 900;
    }

    .credit-lines {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .credit-line {
      min-height: 76px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
    }

    .credit-line strong {
      display: block;
      margin-bottom: 4px;
    }

    .save-status {
      display: none;
      margin-top: 12px;
      padding: 10px 12px;
      border-radius: 7px;
      background: #ecfdf3;
      color: #067647;
      font-weight: 700;
    }

    .save-status.show { display: block; }

    .tag {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      padding: 3px 9px;
      border-radius: 999px;
      background: #eef2ff;
      color: #3730a3;
      font-size: 12px;
      font-weight: 800;
      text-decoration: none;
    }

    .tag.success {
      background: #ecfdf3;
      color: #067647;
    }

    .tag.warning {
      background: #fff7ed;
      color: #b54708;
    }

    .check-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 12px;
      font-weight: 700;
      color: #1f2937;
    }

    .check-row input {
      width: 18px;
      min-height: 18px;
      accent-color: var(--accent);
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 50;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(15, 23, 42, .48);
    }

    .modal-backdrop.show { display: flex; }

    .modal-box {
      width: min(420px, 100%);
      background: #fff;
      border-radius: 10px;
      padding: 22px;
      box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
      text-align: center;
    }

    .modal-box h3 {
      margin: 0 0 8px;
      font-size: 24px;
    }

    .modal-box p {
      margin: 0 0 18px;
      color: var(--muted);
    }

    .password-field {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: stretch;
    }

    .password-field input { min-width: 0; }

    .password-toggle {
      min-width: 68px;
      border: 1px solid var(--border);
      border-radius: 7px;
      background: var(--panel);
      color: var(--text);
      font-weight: 700;
      cursor: pointer;
    }

    .full-button {
      width: 100%;
      margin-top: 14px;
    }

    .auth-panel {
      max-width: 540px;
      margin: 0 auto 22px;
      border-radius: 18px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
    }

    .auth-panel > .panel-body { padding: clamp(22px, 5vw, 34px); }

    .auth-heading { text-align: center; }

    .auth-heading h2 {
      margin: 6px 0 8px;
      font-size: clamp(28px, 7vw, 36px);
    }

    .auth-heading p { margin: 0; }

    .auth-kicker {
      color: var(--accent-2);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .18em;
    }

    .auth-mode-switch {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
      margin: 22px 0;
      padding: 4px;
      border-radius: 12px;
      background: var(--ghost-bg);
    }

    .auth-mode-button {
      min-height: 44px;
      border: 0;
      border-radius: 9px;
      background: transparent;
      color: var(--muted);
      font-weight: 800;
      cursor: pointer;
    }

    .auth-mode-button.active {
      background: #fff;
      color: var(--text);
      box-shadow: 0 4px 12px rgba(15, 23, 42, .09);
    }

    .register-step > h3 {
      margin: 16px 0 6px;
      text-align: center;
      font-size: 22px;
    }

    .register-step > p { text-align: center; }

    .auth-welcome-mark {
      display: grid;
      place-items: center;
      width: 68px;
      height: 68px;
      margin: 4px auto 0;
      border-radius: 20px;
      background: linear-gradient(145deg, #15100a, #30200c);
      color: #ffc642;
      font-size: 24px;
      font-weight: 950;
      box-shadow: 0 12px 26px rgba(15, 10, 4, .18);
    }

    .google-mark {
      display: grid;
      place-items: center;
      width: 26px;
      height: 26px;
      flex: 0 0 26px;
      border-radius: 50%;
      background: #fff;
      color: #4285f4;
      font-family: Arial, sans-serif;
      font-size: 19px;
      font-weight: 900;
      box-shadow: inset 0 0 0 1px #e5e7eb;
    }

    .auth-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 18px 0 8px;
      color: var(--muted);
      font-size: 13px;
    }

    .auth-divider::before,
    .auth-divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .account-setup-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin-top: 18px;
    }

    .account-setup-card {
      display: grid;
      align-content: start;
      gap: 12px;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--subtle-panel);
    }

    .account-setup-card h3 { margin: 0 0 4px; }
    .account-setup-card p { margin: 0; }

    .account-setup-icon {
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: #fff;
      color: #2563eb;
      font-size: 22px;
      font-weight: 900;
      box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
    }

    .account-setup-icon.line-icon {
      width: auto;
      padding: 0 10px;
      border-radius: 12px;
      background: #06c755;
      color: #fff;
      font-size: 13px;
    }

    .line-link-instructions {
      display: grid;
      gap: 10px;
      padding: 14px;
      border-radius: 10px;
      background: #fff;
      border: 1px dashed var(--accent);
    }

    .line-link-instructions > strong {
      font-size: 34px;
      letter-spacing: .16em;
      color: var(--accent-2);
    }

    .button-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      border-radius: 7px;
      padding: 0 14px;
      font-weight: 700;
      text-decoration: none;
    }

    .account-setup-modal-box { width: min(520px, 100%); }

    .account-setup-actions {
      display: grid;
      gap: 10px;
    }

    button, input, textarea, select {
      font: inherit;
    }

    .tab-btn, .primary, .secondary, .ghost, .danger {
      border: 0;
      cursor: pointer;
      min-height: 42px;
      border-radius: 7px;
      padding: 0 14px;
      font-weight: 700;
      touch-action: manipulation;
    }

    .tab-btn {
      background: var(--tab-bg);
      color: var(--tab-text);
    }

    .tab-btn:hover { background: var(--tab-hover); }
    .tab-btn.active { background: var(--active-tab-bg); color: var(--active-tab-text); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
    .admin-only { display: none; }
    .admin-only.show { display: inline-flex; }
    .primary {
      background: var(--accent);
      color: #111111;
      box-shadow: 0 8px 20px rgba(247,147,30,.18);
    }
    .secondary { background: var(--accent-2); color: #fff; }
    .ghost { background: var(--ghost-bg); color: var(--ghost-text); }
    .danger { background: #fee4e2; color: var(--danger); }
    button:disabled { opacity: .55; cursor: not-allowed; }

    main {
      max-width: 1440px;
      margin: 0 auto;
      padding: 22px 20px 42px;
    }

    .section { display: none; }
    .section.active { display: block; }

    .grid {
      display: grid;
      grid-template-columns: minmax(280px, 390px) 1fr;
      gap: 18px;
      align-items: start;
    }

    .front-panel-layout {
      grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
      gap: 20px;
    }

    .front-panel-intro {
      margin-bottom: 16px;
      padding: 18px 20px;
      border: 1px solid rgba(247,147,30,.22);
      border-radius: 8px;
      background: linear-gradient(135deg, #111827 0%, #0b0b0c 58%, #2b1a08 100%);
      color: #fff;
      box-shadow: var(--shadow);
    }

    .front-panel-intro h2 {
      margin: 4px 0 6px;
      font-size: 28px;
      line-height: 1.15;
    }

    .front-panel-intro p {
      margin: 0;
      color: #f5d9b0;
      max-width: 760px;
      line-height: 1.65;
    }

    .front-panel-facts {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 16px;
    }

    .front-panel-form {
      position: sticky;
      top: 16px;
    }

    .front-panel-step {
      margin-top: 16px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
    }

    .front-panel-size-board {
      margin-top: 12px;
      padding: 16px;
      border: 1px solid rgba(15, 23, 42, .2);
      border-radius: 28px;
      background: linear-gradient(180deg, #f4f2ed 0%, #e4e2dc 100%);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
    }

    .front-panel-size-group {
      display: grid;
      gap: 10px;
      margin-bottom: 16px;
    }

    .front-panel-size-group:last-child {
      margin-bottom: 0;
    }

    .front-panel-size-title {
      display: block;
      text-align: center;
      font-size: 23px;
      font-weight: 900;
      line-height: 1.1;
      color: #111;
    }

    .front-panel-inline-fields {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr);
      gap: 8px;
      align-items: end;
    }

    .front-panel-inline-fields .multiply {
      align-self: center;
      padding-top: 20px;
      font-weight: 900;
      font-size: 18px;
    }

    .front-panel-compact-input label {
      margin: 0 0 4px;
      text-align: center;
      font-size: 12px;
      line-height: 1.2;
    }

    .front-panel-compact-input input {
      min-height: 38px;
      text-align: center;
      font-size: 18px;
      font-weight: 800;
      background: #fffaf3;
    }

    .front-panel-meta-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 12px;
    }

    .front-panel-thickness-row {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
      gap: 10px;
      margin-top: 12px;
      align-items: end;
    }

    .front-panel-thickness-row label {
      margin: 0 0 4px;
      text-align: center;
      font-size: 12px;
      line-height: 1.2;
    }

    .front-panel-thickness-row select {
      width: 100%;
      min-height: 46px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 0 12px;
      background: #fffaf3;
      color: var(--text);
      font-size: 18px;
      font-weight: 900;
    }

    .front-panel-meta-pill {
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      text-align: center;
    }

    .front-panel-meta-pill span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .front-panel-meta-pill strong {
      display: block;
      margin-top: 2px;
      font-size: 18px;
    }

    .front-panel-hole-board {
      display: grid;
      gap: 12px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: #fffdf7;
    }

    .front-panel-hole-board .settings-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .front-panel-hole-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      align-items: end;
    }

    .front-panel-hole-grid label {
      margin: 0 0 4px;
      text-align: center;
      font-size: 12px;
      line-height: 1.2;
    }

    .front-panel-hole-grid input {
      min-height: 44px;
      text-align: center;
      font-size: 18px;
      font-weight: 800;
      background: #fffaf3;
    }

    .front-panel-action-board {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 12px;
      padding: 12px;
      border: 1px solid rgba(15, 23, 42, .2);
      border-radius: 28px;
      background: #fffdf7;
    }

    .front-panel-action-board button {
      width: 100%;
      justify-content: center;
      min-height: 50px;
    }

    .front-panel-step:first-of-type {
      margin-top: 0;
    }

    .front-panel-step h3 {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      font-size: 17px;
    }

    .front-panel-step h3 span {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      display: inline-grid;
      place-items: center;
      background: var(--accent);
      color: #111;
      font-size: 14px;
      font-weight: 900;
      flex: 0 0 auto;
    }

    .front-panel-help {
      margin: 12px 0 0;
      padding: 12px;
      border-radius: 8px;
      background: #fff;
      color: var(--muted);
      line-height: 1.55;
      border: 1px dashed #d8dde7;
    }

    .front-panel-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 14px;
    }

    .front-panel-preview-panel .panel-body {
      display: grid;
      gap: 16px;
    }

    .front-panel-preview-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line);
    }

    .front-panel-preview-head h2 {
      margin-bottom: 6px;
    }

    .front-panel-size-badge {
      border-radius: 999px;
      background: var(--soft);
      color: #111;
      padding: 8px 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .front-panel-preview-stage {
      padding: 18px;
      border: 1px solid rgba(247,147,30,.28);
      border-radius: 30px;
      background:
        linear-gradient(90deg, rgba(17,24,39,.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(17,24,39,.045) 1px, transparent 1px),
        #ffffff;
      background-size: 28px 28px;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), var(--shadow);
    }

    .front-panel-preview-toolbar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .front-panel-preview-toolbar button {
      min-height: 36px;
      padding: 0 12px;
    }

    .front-panel-zoom-label {
      min-width: 58px;
      text-align: center;
      font-weight: 900;
      color: var(--ink);
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.82);
      padding: 7px 10px;
    }

    .front-panel-preview {
      position: relative;
      width: 100%;
      height: clamp(260px, 42vw, 540px);
      border: 1px solid var(--line);
      border-radius: 22px;
      overflow: hidden;
      background: #fff;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
      cursor: grab;
      touch-action: none;
      user-select: none;
    }

    .front-panel-preview.is-dragging {
      cursor: grabbing;
    }

    .front-panel-preview-canvas {
      position: absolute;
      left: 50%;
      top: 50%;
      transform-origin: center center;
      will-change: transform;
    }

    .front-panel-preview-canvas svg {
      display: block;
      width: 100% !important;
      height: 100% !important;
      max-width: none !important;
      max-height: none !important;
      pointer-events: auto;
    }

    .plate-small-mode-toggle {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      padding: 11px 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      color: var(--ink);
      text-align: left;
    }

    .plate-small-mode-toggle small { display: block; margin-top: 2px; color: var(--muted); font-weight: 600; }
    .plate-small-mode-check { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; border: 2px solid #8d8d8d; border-radius: 6px; color: transparent; font-weight: 900; }
    .plate-small-mode-toggle.active { border-color: #bd7c18; background: #fff8e7; }
    .plate-small-mode-toggle.active .plate-small-mode-check { border-color: #bd7c18; background: #bd7c18; color: #fff; }
    #plateTopHoles:disabled,
    #plateSideHoles:disabled { background: #eeeae1; color: #888; cursor: not-allowed; }

    .front-panel-artwork { cursor: move; pointer-events: all; touch-action: none; }
    .front-panel-artwork.is-selected { outline: 2px dashed #f7931e; outline-offset: 3px; }

    .front-panel-engraving-tools {
      display: grid;
      gap: 12px;
      padding: 16px;
      margin-bottom: 16px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: #fffaf0;
    }

    .front-panel-engraving-tools h3 { margin: 0 0 4px; }
    .front-panel-engraving-tools p { margin: 0; }
    .front-panel-engraving-actions,
    .front-panel-artwork-editor-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .front-panel-artwork-warnings {
      padding: 10px 12px;
      border-radius: 12px;
      background: #eefbf4;
      color: #176b42;
      font-size: 14px;
    }

    .front-panel-artwork-warnings.has-warning { background: #fff1e8; color: #9a3412; }
    .front-panel-artwork-warnings ul { margin: 6px 0 0; padding-left: 22px; }

    .front-panel-artwork-editor {
      display: none;
      gap: 12px;
      margin-top: 14px;
      padding: 16px;
      border: 1px solid rgba(247,147,30,.35);
      border-radius: 18px;
      background: #fff;
      box-shadow: var(--shadow);
    }

    .front-panel-artwork-editor.show { display: grid; }
    .front-panel-artwork-editor-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .front-panel-artwork-editor-head h3 { margin: 0; }
    .front-panel-artwork-editor-head .ghost { min-height: 36px; padding: 4px 12px; }
    .front-panel-artwork-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .front-panel-size-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .front-panel-size-control > span { margin-right: auto; font-weight: 800; }
    .front-panel-size-control button { min-width: 42px; }
    .front-panel-size-control strong { min-width: 92px; text-align: center; }

    .front-panel-tool-modal .modal-box { width: min(720px, 100%); max-height: 86vh; overflow: auto; text-align: left; }
    .front-panel-logo-library,
    .front-panel-concept-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
    .front-panel-logo-choice,
    .front-panel-concept-choice { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
    .front-panel-logo-choice span { height: 100px; display: grid; place-items: center; overflow: hidden; background: #f7f7f7; }
    .front-panel-logo-choice svg { width: 100%; height: 100%; }
    .front-panel-concept-choice img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; filter: grayscale(1); background: #f7f7f7; }
    .front-panel-tool-modal textarea { width: 100%; margin-bottom: 10px; }

    .front-panel-system-fields {
      display: none;
    }

    .front-panel-summary-grid {
      display: none;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .front-panel-summary-card {
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      min-width: 0;
    }

    .front-panel-summary-card span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .front-panel-summary-card strong {
      display: block;
      font-size: 18px;
      line-height: 1.2;
    }

    .plate-layout {
      grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
      gap: 14px;
    }

    #plateDesigner .front-panel-form .panel-body {
      padding: 14px;
    }

    #plateDesigner .front-panel-step {
      padding: 12px;
    }

    #plateDesigner label {
      margin-top: 8px;
      margin-bottom: 4px;
    }

    #plateDesigner input,
    #plateDesigner select {
      min-height: 38px;
      padding: 7px 9px;
    }

    #plateDesigner .front-panel-form .settings-grid {
      gap: 8px;
    }

    #plateDesigner .plate-compact-grid,
    #plateDesigner .plate-hole-grid {
      grid-template-columns: repeat(2, minmax(92px, 112px));
      align-items: end;
    }

    #plateDesigner .plate-compact-grid input,
    #plateDesigner .plate-hole-grid input {
      width: 100%;
      max-width: 112px;
      text-align: center;
    }

    .plate-toolbar {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 10px;
    }

    .plate-tool-btn {
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      font-weight: 900;
      cursor: pointer;
    }

    .plate-tool-btn:hover {
      border-color: var(--accent);
      background: var(--soft);
    }

    .plate-object-dock {
      display: grid;
      gap: 8px;
      margin-bottom: 12px;
    }

    .plate-object-title {
      font-size: 17px;
      font-weight: 900;
    }

    .plate-palette-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 2px 1px 5px;
      scrollbar-width: thin;
    }

    .plate-palette-tab {
      flex: 0 0 auto;
      min-height: 40px;
      padding: 0 15px;
      border: 1px solid #dfd1b7;
      border-radius: 999px;
      background: #fffaf0;
      color: var(--text);
      font-weight: 900;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease, transform .18s ease;
    }

    .plate-palette-tab.active {
      background: linear-gradient(135deg, #d99a2b, #b86f0d);
      border-color: #b86f0d;
      color: #191106;
      box-shadow: 0 5px 14px rgba(134, 78, 7, .2);
    }

    .plate-palette-families {
      min-height: 34px;
      display: flex;
      align-items: center;
      gap: 7px;
      overflow-x: auto;
      padding: 3px 1px 7px;
      scrollbar-width: thin;
    }

    .plate-family-tab {
      flex: 0 0 auto;
      min-height: 32px;
      padding: 0 12px;
      border: 1px solid #d8c8ad;
      border-radius: 8px;
      background: #f5ecdc;
      color: #4c3a23;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .plate-family-tab.active {
      border-color: #77501d;
      background: #302316;
      color: #fff7e8;
    }

    .plate-palette-strip {
      min-height: 154px;
      display: flex;
      align-items: stretch;
      gap: 12px;
      overflow-x: auto;
      padding: 14px;
      border: 1px solid rgba(199, 139, 43, .5);
      border-radius: 16px;
      background:
        radial-gradient(circle at top right, rgba(209, 146, 42, .2), transparent 32%),
        linear-gradient(135deg, #17120c, #2a1f13);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(61, 39, 13, .12);
      scrollbar-color: #b97918 #302316;
      scrollbar-width: thin;
    }

    .plate-palette-item {
      flex: 0 0 158px;
      min-height: 172px;
      position: relative;
      display: grid;
      grid-template-rows: 78px auto auto 34px;
      align-content: start;
      gap: 5px;
      padding: 9px;
      border: 1px solid rgba(218, 196, 158, .9);
      border-radius: 13px;
      background: linear-gradient(180deg, #fffdf8, #f4ead8);
      color: #24180c;
      cursor: grab;
      touch-action: manipulation;
      box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .plate-palette-item:hover,
    .plate-palette-item:focus-visible {
      border-color: #d5962e;
      box-shadow: 0 8px 20px rgba(0, 0, 0, .28), 0 0 0 2px rgba(213, 150, 46, .24);
      transform: translateY(-2px);
      outline: none;
    }

    .plate-palette-item:active {
      cursor: grabbing;
      transform: translateY(0) scale(.98);
    }

    .plate-palette-preview {
      display: grid;
      place-items: center;
      min-width: 0;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 9px;
      background: #101820;
    }

    .plate-palette-preview svg {
      width: 142px;
      height: 72px;
      display: block;
    }

    .plate-palette-name,
    .plate-palette-size {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-align: center;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .plate-palette-name {
      font-size: 14px;
      font-weight: 900;
      line-height: 1.3;
    }

    .plate-palette-size {
      color: #806c52;
      font-size: 11px;
      font-weight: 700;
    }

    .plate-palette-favorite {
      width: 32px;
      height: 32px;
      position: absolute;
      z-index: 2;
      top: 13px;
      right: 13px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid rgba(255, 255, 255, .28);
      border-radius: 50%;
      background: rgba(9, 14, 20, .82);
      color: #fff;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
    }

    .plate-palette-favorite.active {
      border-color: #f1b646;
      color: #ffc44f;
    }

    .plate-palette-add {
      width: 100%;
      min-height: 34px;
      padding: 0 8px;
      border: 1px solid #c47e18;
      border-radius: 8px;
      background: linear-gradient(135deg, #d99a2b, #b86f0d);
      color: #1c1206;
      font-weight: 900;
      cursor: pointer;
    }

    .plate-palette-empty {
      min-width: min(460px, 85vw);
      align-self: center;
      padding: 22px;
      border: 1px dashed rgba(255, 231, 191, .35);
      border-radius: 12px;
      color: #f6e7cd;
      text-align: center;
      font-weight: 800;
    }

    @media (max-width: 640px) {
      .plate-palette-strip {
        min-height: 142px;
        gap: 10px;
        padding: 11px;
      }

      .plate-palette-item {
        flex-basis: 138px;
        min-height: 164px;
        grid-template-rows: 70px auto auto 34px;
        padding: 8px;
      }

      .plate-palette-preview svg {
        width: 122px;
        height: 64px;
      }
    }

    .plate-stage {
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background:
        linear-gradient(90deg, rgba(17,24,39,.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(17,24,39,.055) 1px, transparent 1px),
        #ffffff;
      background-size: 24px 24px;
      overflow: auto;
    }

    .plate-canvas {
      width: 100%;
      min-height: 390px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #ffffff;
      padding: 12px;
      box-sizing: border-box;
      overflow: hidden;
      touch-action: none;
    }

    .plate-canvas svg {
      width: 100%;
      height: 100%;
      display: block;
      border-radius: 6px;
    }

    .plate-editor-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
      align-items: start;
    }

    .plate-inspector-grid {
      grid-template-columns: repeat(3, minmax(86px, 120px));
      gap: 8px;
    }

    .plate-selected-panel {
      display: grid;
      grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr) auto;
      gap: 12px;
      align-items: end;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
    }

    .plate-selected-panel h3 {
      margin-bottom: 4px;
    }

    .plate-layer-list {
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }

    .plate-layer-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .plate-layer-item.active {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(247,147,30,.16);
    }

    .plate-layer-item button {
      min-height: 34px;
      padding: 6px 10px;
    }

    .plate-library-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .plate-library-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      overflow: hidden;
    }

    .plate-library-preview {
      aspect-ratio: 16 / 9;
      border-bottom: 1px solid var(--line);
      background: #111827;
    }

    .plate-library-preview svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .library-filter-bar {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 16px 0;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
    }

    .library-filter-bar button.active {
      background: var(--accent);
      color: #fff;
    }

    .work-library-grid,
    .cart-list {
      display: grid;
      gap: 12px;
    }

    .work-card,
    .cart-item {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      gap: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 12px;
    }

    .work-card:hover,
    .cart-item:hover {
      border-color: rgba(247,147,30,.48);
      box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
    }

    .work-preview,
    .cart-preview {
      min-height: 110px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      overflow: hidden;
    }

    .work-preview svg,
    .cart-preview svg,
    .work-preview img,
    .cart-preview img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .cart-item {
      grid-template-columns: 34px 130px minmax(0, 1fr) auto;
      align-items: center;
    }

    .cart-item.selected {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(247,147,30,.14);
    }

    .cart-check {
      width: 22px;
      height: 22px;
    }

    .item-adjust-grid {
      display: grid;
      grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
      gap: 10px;
      align-items: end;
      margin: 10px 0;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
    }

    .item-adjust-grid label {
      margin: 0 0 4px;
      font-size: 12px;
    }

    .item-adjust-grid input {
      min-height: 38px;
      max-width: 130px;
    }

    .item-adjust-price {
      font-weight: 900;
      color: var(--accent-2);
    }

    .cart-item-adjust-grid {
      grid-template-columns: minmax(120px, 150px) minmax(130px, auto) minmax(120px, 1fr);
    }

    .quantity-stepper {
      display: inline-grid;
      grid-template-columns: 40px minmax(44px, auto) 40px;
      align-items: center;
      min-height: 40px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .quantity-stepper button {
      min-width: 40px;
      min-height: 40px;
      padding: 0;
      border: 0;
      border-radius: 0;
      font-size: 22px;
    }

    .quantity-stepper output {
      padding: 0 8px;
      text-align: center;
      font-weight: 900;
    }

    .cart-summary-bar {
      position: sticky;
      bottom: 0;
      z-index: 20;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 14px;
      margin-top: 18px;
      border: 1px solid var(--line);
      border-radius: 8px 8px 0 0;
      background: rgba(255,255,255,.96);
      box-shadow: 0 -14px 34px rgba(15,23,42,.12);
      backdrop-filter: blur(10px);
    }

    .cart-summary-bar .primary {
      min-width: 190px;
    }

    .front-panel-price-shell {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 14px;
      background: var(--subtle-panel);
    }

    .front-panel-price-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .front-panel-price-head h3 {
      margin: 0 0 4px;
    }

    .panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    }

    .panel-body { padding: 20px; }
    .panel h2, .panel h3 {
      margin: 0 0 14px;
      line-height: 1.25;
    }

    label {
      display: block;
      font-size: 13px;
      color: var(--muted);
      margin: 14px 0 6px;
      font-weight: 700;
    }

    input, textarea, select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 7px;
      min-height: 44px;
      padding: 10px 12px;
      background: var(--field-bg);
      color: var(--text);
      transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }

    input:focus,
    textarea:focus,
    select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(247,147,30,.18);
    }

    textarea { min-height: 84px; resize: vertical; }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .chip {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 999px;
      padding: 8px 11px;
      cursor: pointer;
      font-weight: 700;
      color: #243041;
    }

    .chip.active {
      border-color: var(--accent);
      background: var(--soft);
      color: #111111;
    }

    .row {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    .preview-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .preview-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      min-width: 0;
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    }

    .preview-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
    }

    .preview-card.selected {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(247,147,30,.18), 0 14px 30px rgba(15, 23, 42, .08);
    }

    .preview-wrap {
      aspect-ratio: 1 / 1;
      background: #fff;
      border-bottom: 1px solid var(--line);
    }

    .preview-wrap svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .preview-wrap img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
      background: #fff;
    }

    .preview-meta {
      padding: 10px;
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: space-between;
    }

    .preview-meta strong { font-size: 14px; }

    .preview-loading {
      min-height: 260px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .preview-loading::before {
      content: "";
      width: 34px;
      height: 34px;
      border: 4px solid #dbeafe;
      border-top-color: var(--accent);
      border-radius: 999px;
      animation: spin .8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .logo-builder-panel {
      display: none;
    }

    .logo-results-panel {
      grid-column: 1 / -1;
    }

    .logo-results-panel .panel-body {
      padding: 22px;
    }

    .studio-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line);
    }

    .studio-head h2 {
      margin-bottom: 6px;
    }

    .studio-head p {
      margin: 0;
      max-width: 680px;
      line-height: 1.55;
    }

    .studio-badges {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      flex-wrap: wrap;
      flex: 0 0 auto;
    }

    .logo-quick-create {
      display: grid;
      grid-template-columns: minmax(240px, 1.35fr) minmax(140px, .55fr) minmax(150px, .6fr) minmax(200px, .9fr) 120px minmax(170px, auto);
      gap: 12px;
      align-items: end;
      padding: 14px;
      margin-bottom: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: linear-gradient(180deg, var(--soft), #fff);
    }

    .logo-quick-create label {
      margin-top: 0;
    }

    .logo-design-mode,
    .logo-detailed-options,
    .logo-prompt-summary {
      grid-column: 1 / -1;
    }

    .logo-design-mode {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
    }

    .logo-design-mode > span { font-weight: 900; }
    .logo-design-mode-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: #eee6d7; }
    .logo-design-mode-buttons button { min-height: 40px; padding: 7px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-weight: 800; }
    .logo-design-mode-buttons button.active { background: #fff; color: #9a5b08; box-shadow: 0 3px 12px rgba(80,50,15,.12); }

    .logo-detailed-options {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      padding: 14px;
      border: 1px dashed rgba(183,119,21,.42);
      border-radius: 12px;
      background: rgba(255,255,255,.72);
    }

    .logo-detailed-options[hidden] { display: none; }

    .logo-prompt-summary {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px 16px;
      padding: 14px;
      border: 1px solid rgba(183,119,21,.32);
      border-radius: 12px;
      background: #fffaf0;
      font-size: 13px;
    }

    .logo-prompt-summary > strong { grid-column: 1 / -1; font-size: 15px; }
    .logo-prompt-summary > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
    .logo-prompt-summary b { color: #765019; }
    .logo-prompt-summary p { grid-column: 1 / -1; margin: 2px 0 0; padding-top: 8px; border-top: 1px dashed #e4b36e; color: #9a4d0d; font-weight: 800; }

    .logo-quick-create > #generateBtn { grid-column: 1 / -1; }

    .muted { color: var(--muted); font-size: 13px; }

    table {
      width: 100%;
      border-collapse: collapse;
      background: #fff;
      border-radius: 8px;
      overflow: hidden;
    }

    th, td {
      padding: 11px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
      font-size: 14px;
    }

    th {
      background: #f0f2f5;
      color: #374151;
      font-size: 13px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      background: #eef2ff;
      color: #3730a3;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .badge.waiting { background: #fff7ed; color: #9a3412; }
    .badge.pending_payment { background: #eef4ff; color: #1849a9; }
    .badge.payment_review { background: #fef3c7; color: #92400e; }
    .badge.paid { background: #ecfdf3; color: #027a48; }
    .badge.approved { background: #ecfdf3; color: #027a48; }
    .badge.processing { background: #eff6ff; color: #175cd3; }
    .badge.waiting_pickup { background: #f4f3ff; color: #5925dc; }
    .badge.carrier_picked { background: #e0f2fe; color: #075985; }
    .badge.done { background: #f0f9ff; color: #026aa2; }
    .badge.completed { background: #f0f9ff; color: #026aa2; }
    .badge.cancelled { background: #fee4e2; color: #b42318; }
    .badge.quote_pending { background: #fff7ed; color: #9a3412; }

    .flow-steps {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin: 12px 0 16px;
    }

    .flow-step {
      min-height: 64px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .flow-step strong {
      display: block;
      font-size: 13px;
      margin-bottom: 4px;
    }

    .flow-step span {
      color: var(--muted);
      font-size: 12px;
    }

    .flow-step.active {
      border-color: var(--accent);
      background: var(--soft);
      box-shadow: inset 0 0 0 1px rgba(15,118,110,.18);
    }

    .flow-step.done-step {
      border-color: #bbf7d0;
      background: #f0fdf4;
    }

    .status-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      margin: 12px 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
    }

    .status-summary span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .status-summary strong {
      display: block;
      margin-top: 2px;
      font-size: 18px;
    }

    .status-summary p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .admin-note {
      min-height: 74px;
      font-size: 14px;
      margin-top: 8px;
    }

    .order-actions {
      align-items: flex-start;
      gap: 8px;
    }

    .checkout-summary {
      display: grid;
      gap: 12px;
    }

    .checkout-compact {
      display: grid;
      grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr);
      gap: 14px;
      align-items: start;
    }

    .checkout-review-card,
    .checkout-pay-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      overflow: hidden;
    }

    .checkout-review-card {
      display: grid;
      grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
      min-height: 190px;
    }

    .checkout-review-card .preview-wrap {
      display: grid;
      place-items: center;
      min-height: 190px;
      border-right: 1px solid var(--line);
      background: #fff;
      overflow: hidden;
    }

    .checkout-review-body,
    .checkout-pay-card {
      display: grid;
      gap: 10px;
      padding: 16px;
    }

    .checkout-review-body h3 {
      margin: 0;
      font-size: 22px;
      line-height: 1.25;
    }

    .checkout-mini-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .checkout-mini {
      padding: 10px;
      border-radius: 8px;
      background: var(--subtle-panel);
      border: 1px solid var(--line);
    }

    .checkout-mini span,
    .checkout-address-compact span,
    .checkout-pay-card span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 2px;
    }

    .checkout-address-compact {
      padding-top: 10px;
      border-top: 1px solid var(--line);
    }

    .checkout-address-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .checkout-pay-amount {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      padding: 12px;
      border-radius: 8px;
      background: linear-gradient(135deg, #fff8eb, #fff);
      border: 1px solid rgba(247,147,30,.3);
    }

    .checkout-pay-amount strong {
      font-size: 26px;
      line-height: 1;
      white-space: nowrap;
    }

    .checkout-pay-card .primary {
      width: 100%;
      justify-content: center;
    }

    .checkout-item-count {
      width: fit-content;
      padding: 5px 9px;
      border-radius: 999px;
      background: #eef4ff;
      color: #1849a9;
      font-size: 13px;
      font-weight: 900;
    }

    .checkout-page-head {
      display: grid;
      gap: 8px;
      margin-bottom: 16px;
    }

    .checkout-page-head .badge {
      width: fit-content;
    }

    .checkout-page-head h2 {
      margin: 0;
      font-size: 30px;
      line-height: 1.15;
    }

    .checkout-page-head p {
      max-width: 720px;
      margin: 0;
    }

    .checkout-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
      gap: 14px;
      align-items: start;
    }

    .checkout-main,
    .checkout-side {
      display: grid;
      gap: 12px;
    }

    .checkout-hero {
      display: grid;
      grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
      gap: 14px;
      align-items: start;
    }

    .checkout-hero .preview-wrap {
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: #fff;
      min-height: 180px;
      display: grid;
      place-items: center;
    }

    .checkout-section-card {
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .checkout-section-card h3 {
      margin: 0 0 8px;
    }

    .checkout-list {
      display: grid;
      gap: 10px;
    }

    .checkout-item-row {
      display: grid;
      grid-template-columns: 82px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .checkout-item-row .preview-wrap {
      min-height: 64px;
      height: 64px;
    }

    .checkout-item-row h4 {
      margin: 0 0 2px;
      font-size: 16px;
    }

    .checkout-price {
      font-size: 18px;
      font-weight: 900;
      white-space: nowrap;
    }

    .checkout-address-card {
      display: grid;
      gap: 8px;
      padding: 14px;
      border: 1px solid rgba(247,147,30,.34);
      border-radius: 8px;
      background: #fffaf2;
    }

    .checkout-order-note-card {
      display: grid;
      gap: 8px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .checkout-order-note-card label {
      margin: 0;
    }

    .checkout-order-note-card textarea {
      min-height: 84px;
    }

    .checkout-total-card {
      padding: 14px;
      border: 1px solid rgba(247,147,30,.35);
      border-radius: 8px;
      background: linear-gradient(180deg, #fff8eb, #fff);
    }

    .checkout-total-card .summary-line:last-child {
      border-bottom: 0;
    }

    .checkout-sticky-bar {
      position: sticky;
      bottom: 12px;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      margin-top: 14px;
      border: 1px solid rgba(15, 23, 42, .12);
      border-radius: 8px;
      background: rgba(255,255,255,.95);
      box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
      backdrop-filter: blur(8px);
    }

    .checkout-total {
      display: grid;
      gap: 2px;
    }

    .checkout-total span {
      color: var(--muted);
      font-size: 13px;
    }

    .checkout-total strong {
      font-size: 22px;
      line-height: 1.1;
    }

    .summary-line {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }

    .summary-line strong {
      text-align: right;
    }

    .payment-box {
      margin-top: 14px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fbfcfe;
      display: none;
    }

    .payment-box.show { display: block; }

    .payment-notice {
      margin-top: 10px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fbfcfe;
      width: 100%;
    }

    .payment-notice textarea {
      min-height: 72px;
      margin-top: 8px;
    }

    .payment-qr {
      display: grid;
      grid-template-columns: minmax(140px, 180px) 1fr;
      gap: 14px;
      align-items: start;
      margin-top: 10px;
    }

    .payment-qr-copy {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .payment-qr-copy strong {
      display: block;
      font-size: 18px;
      line-height: 1.35;
    }

    .payment-slip-preview {
      width: min(220px, 100%);
      border: 1px solid var(--line);
      border-radius: 8px;
      margin-top: 8px;
    }

    .file-input {
      padding: 10px;
      background: #fff;
    }

    .my-order-list {
      display: grid;
      gap: 12px;
    }

    .my-order-card {
      display: grid;
      grid-template-columns: 140px minmax(0, 1fr);
      gap: 14px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
    }

    .my-order-card .preview-wrap {
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
    }

    .my-order-detail {
      min-width: 0;
    }

    .my-order-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .danger-zone {
      margin-top: 12px;
      border-top: 1px solid var(--line);
      padding-top: 10px;
    }

    .danger-zone summary {
      cursor: pointer;
      color: var(--muted);
      font-weight: 700;
    }

    .payment-page {
      display: grid;
      grid-template-columns: minmax(0, .95fr) minmax(330px, .75fr);
      gap: 16px;
      align-items: start;
    }

    .payment-page.premium-payment {
      grid-template-columns: minmax(0, 1.2fr) minmax(300px, .78fr);
      gap: 18px;
      padding: clamp(14px, 2vw, 20px);
      border: 1px solid rgba(255, 198, 66, .26);
      border-radius: 18px;
      background:
        radial-gradient(circle at 24% 0%, rgba(255, 198, 66, .18), transparent 30%),
        linear-gradient(145deg, #070707, #17110a 54%, #050505);
      color: #fff;
      box-shadow: 0 26px 60px rgba(0, 0, 0, .22);
    }

    .premium-payment .muted {
      color: rgba(255, 255, 255, .68);
    }

    #payment > .panel {
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    #payment > .panel > .panel-body {
      padding: 0;
    }

    #payment > .panel > .panel-body > h2,
    #payment > .panel > .panel-body > p.muted {
      display: none;
    }

    .payment-brand-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .payment-back {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      border: 1px solid rgba(255, 198, 66, .42);
      background: rgba(255, 255, 255, .05);
      color: #ffd15c;
      font-size: 26px;
      display: grid;
      place-items: center;
    }

    .payment-credit-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 14px;
      border: 1px solid rgba(255, 198, 66, .42);
      background: rgba(255, 198, 66, .08);
      color: #ffe49a;
      font-weight: 900;
      white-space: nowrap;
    }

    .payment-logo-mark {
      text-align: center;
      color: #ffc642;
      font-weight: 1000;
      letter-spacing: 4px;
      line-height: 1;
      font-size: 44px;
      margin-bottom: 6px;
    }

    .payment-logo-mark small {
      display: block;
      color: #fff;
      font-size: 14px;
      letter-spacing: 8px;
      margin-top: 2px;
    }

    .payment-title-block {
      text-align: center;
      margin-bottom: 14px;
    }

    .payment-title-block h2 {
      margin: 0;
      color: #ffd15c;
      font-size: clamp(36px, 6vw, 54px);
      line-height: 1;
    }

    .payment-countdown {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: rgba(255, 255, 255, .72);
      font-weight: 900;
      margin-top: 8px;
    }

    .payment-glass-card {
      border: 1px solid rgba(255, 198, 66, .34);
      border-radius: 16px;
      background: rgba(255, 255, 255, .035);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
      padding: 14px;
    }

    .payment-glass-card h3 {
      margin: 0 0 10px;
      color: #ffe49a;
    }

    .payment-order-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 9px 0;
      border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .payment-order-row:first-of-type {
      border-top: 0;
    }

    .payment-order-row strong {
      color: #ffe49a;
      text-align: right;
    }

    .payment-qr-stage {
      display: grid;
      justify-items: center;
      text-align: center;
      min-height: 240px;
      background:
        radial-gradient(circle at 64% 72%, rgba(255, 198, 66, .18), transparent 22%),
        rgba(255, 255, 255, .025);
    }

    .premium-payment .qr-frame {
      width: min(220px, 70vw);
      border-radius: 14px;
      border: 1px solid rgba(255, 198, 66, .32);
      box-shadow: 0 0 26px rgba(255, 198, 66, .12);
      margin: 8px auto;
    }

    .payment-amount-big {
      margin-top: 4px;
      font-size: 20px;
      font-weight: 900;
    }

    .payment-amount-big strong {
      color: #ffd15c;
      font-size: 40px;
      line-height: 1;
    }

    .payment-upload-zone {
      display: grid;
      gap: 10px;
    }

    .payment-dropbox {
      position: relative;
      display: grid;
      place-items: center;
      gap: 6px;
      min-height: 112px;
      padding: 16px;
      border: 1px dashed rgba(255, 198, 66, .55);
      border-radius: 14px;
      text-align: center;
      cursor: pointer;
      background: rgba(255, 255, 255, .025);
    }

    .payment-dropbox input {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
    }

    .payment-dropbox .upload-icon {
      color: #ffd15c;
      font-size: 34px;
      line-height: 1;
    }

    .payment-reference-input {
      width: 100%;
      border-color: rgba(255, 198, 66, .25);
      background: rgba(255,255,255,.04);
      color: #fff;
    }

    .payment-reference-input::placeholder {
      color: rgba(255, 255, 255, .42);
    }

    .payment-submit-wide {
      width: 100%;
      justify-content: center;
      min-height: 54px;
      border-radius: 14px;
      background: linear-gradient(180deg, #ffe27d, #f7a918);
      color: #120b02;
      box-shadow: 0 0 18px rgba(255, 198, 66, .28);
    }

    .payment-status-line {
      text-align: center;
      color: rgba(255,255,255,.72);
      font-weight: 900;
    }

    .payment-side-info {
      display: grid;
      gap: 12px;
    }

    .payment-balance-hero {
      min-height: 134px;
      display: grid;
      align-content: center;
      background:
        radial-gradient(circle at 85% 30%, rgba(255, 198, 66, .26), transparent 28%),
        rgba(255, 255, 255, .035);
    }

    .payment-balance-hero strong {
      display: block;
      margin-top: 8px;
      color: #ffd15c;
      font-size: 48px;
      line-height: 1;
    }

    .payment-steps {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      text-align: center;
    }

    .payment-step {
      display: grid;
      gap: 6px;
      justify-items: center;
      font-size: 12px;
      color: rgba(255, 255, 255, .68);
    }

    .payment-step span {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      border: 1px solid rgba(255, 198, 66, .38);
      color: #ffd15c;
      font-weight: 900;
      background: rgba(255, 198, 66, .08);
    }

    .payment-contact-btn {
      width: 100%;
      justify-content: center;
      border-color: rgba(255, 198, 66, .36);
      color: #ffe49a;
      background: rgba(255,255,255,.025);
    }

    .payment-credit-preview {
      display: grid;
      place-items: center;
      gap: 4px;
      min-height: 180px;
      border: 1px solid rgba(255, 198, 66, .28);
      border-radius: 16px;
      background:
        radial-gradient(circle at 50% 40%, rgba(255, 198, 66, .24), transparent 38%),
        rgba(255, 255, 255, .035);
      text-align: center;
    }

    .payment-credit-preview strong {
      color: #ffd15c;
      font-size: 52px;
      line-height: 1;
    }

    .payment-credit-preview span {
      color: rgba(255,255,255,.75);
      font-weight: 900;
    }

    .payment-summary-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 16px;
      background: #fff;
    }

    .payment-summary-card h3 {
      margin-top: 0;
    }

    .payment-main-card {
      display: grid;
      gap: 14px;
    }

    .payment-preview-large {
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: #fff;
    }

    .payment-side-stack {
      display: grid;
      gap: 12px;
    }

    .front-panel-price-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 10px;
    }

    .front-panel-price-item {
      display: grid;
      gap: 8px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .front-panel-price-item.selected {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(247,147,30,.18);
      transform: translateY(-1px);
    }

    .front-panel-price-item strong {
      font-size: 18px;
    }

    .front-panel-price-value {
      color: #111;
      font-size: 24px;
      line-height: 1.1;
    }

    .front-panel-order-box {
      margin-top: 14px;
      padding: 14px;
      border: 1px solid rgba(247,147,30,.3);
      border-radius: 8px;
      background: #fffaf3;
    }

    .front-panel-order-box h3 {
      margin-top: 0;
    }

    .thickness-row {
      display: grid;
      grid-template-columns: minmax(90px, 1fr) minmax(140px, 1fr) auto;
      gap: 8px;
      align-items: end;
      margin-top: 10px;
    }

    .qr-frame {
      width: min(260px, 100%);
      aspect-ratio: 1 / 1;
      display: grid;
      place-items: center;
      margin: 12px auto;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      overflow: hidden;
    }

    .qr-frame img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .settings-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin: 16px 0;
    }

    .stat {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 14px;
      min-height: 86px;
    }

    .stat span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      margin-bottom: 6px;
      font-weight: 700;
    }

    .stat strong {
      display: block;
      font-size: 26px;
      line-height: 1.15;
    }

    .admin-tools {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
      gap: 16px;
      margin-bottom: 16px;
    }

    .admin-console-nav,
    .settings-subnav {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 16px 0;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
    }

    .admin-console-nav button,
    .settings-subnav button {
      min-height: 38px;
    }

    .admin-console-nav button.active,
    .settings-subnav button.active {
      background: var(--accent);
      color: #fff;
    }

    .admin-drafts-shell {
      padding-top: 4px;
    }

    .admin-drafts-head,
    .admin-drafts-search-row,
    .admin-draft-title-row,
    .admin-drafts-pagination {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .admin-drafts-head h2 {
      margin: 0 0 4px;
    }

    .admin-drafts-toolbar {
      display: grid;
      grid-template-columns: minmax(300px, 1fr) minmax(340px, auto);
      gap: 16px;
      align-items: end;
      margin: 16px 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--subtle-panel);
    }

    .admin-drafts-search label {
      display: block;
      margin-bottom: 6px;
    }

    .admin-drafts-search-row input {
      min-width: 0;
      flex: 1 1 260px;
    }

    .admin-drafts-filters {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 7px;
    }

    .admin-drafts-filters button {
      min-height: 40px;
    }

    .admin-drafts-filters button.active {
      color: #fff;
      background: var(--accent);
      border-color: var(--accent);
    }

    .admin-drafts-filters button span {
      display: inline-grid;
      min-width: 24px;
      min-height: 24px;
      place-items: center;
      margin-left: 4px;
      padding: 0 6px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .72);
      color: var(--text);
      font-size: 12px;
    }

    .admin-drafts-summary {
      margin: 10px 0;
      color: var(--muted);
      font-weight: 700;
    }

    .admin-drafts-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .admin-draft-card {
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
    }

    .admin-draft-preview {
      display: grid;
      width: 100%;
      height: 230px;
      place-items: center;
      overflow: hidden;
      padding: 14px;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: #f8f6f1;
      cursor: zoom-in;
    }

    .admin-draft-preview:hover,
    .admin-draft-preview:focus-visible {
      background: #fffaf0;
    }

    .admin-draft-preview img,
    .admin-draft-preview svg {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .admin-draft-preview-empty {
      color: var(--muted);
      font-weight: 700;
    }

    .admin-draft-body {
      padding: 14px;
    }

    .admin-draft-title-row time {
      color: var(--muted);
      font-size: 12px;
    }

    .admin-draft-body h3 {
      margin: 12px 0 4px;
      overflow-wrap: anywhere;
    }

    .admin-draft-detail {
      min-height: 24px;
      margin: 0 0 12px;
      color: var(--muted);
    }

    .admin-draft-customer {
      display: grid;
      gap: 3px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }

    .admin-draft-customer span {
      color: var(--muted);
      overflow-wrap: anywhere;
    }

    .admin-draft-open-btn {
      width: 100%;
      margin-top: 14px;
    }

    .admin-drafts-pagination {
      justify-content: center;
      margin-top: 18px;
    }

    .admin-drafts-error {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 18px;
      border: 1px solid #efb4b4;
      border-radius: 10px;
      background: #fff3f3;
      color: #8b2020;
      font-weight: 700;
    }

    .credit-wallet-shell,
    .admin-credit-shell {
      background:
        radial-gradient(circle at 78% 8%, rgba(255, 194, 61, .18), transparent 30%),
        linear-gradient(145deg, #0a0b0d, #17120a 64%, #070707);
      color: #fff;
      border: 1px solid rgba(255, 190, 70, .32);
      border-radius: 18px;
      padding: 22px;
      box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    }

    .credit-wallet-top,
    .admin-credit-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 18px;
    }

    .credit-wallet-back {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .16);
      background: rgba(255, 255, 255, .06);
      color: #fff;
      font-size: 24px;
      display: inline-grid;
      place-items: center;
      padding: 0;
    }

    .credit-wallet-logo {
      text-align: center;
      flex: 1;
      color: #ffc642;
      font-size: 28px;
      font-weight: 900;
      letter-spacing: .03em;
      line-height: 1;
    }

    .credit-wallet-logo span {
      display: block;
      color: #fff;
      font-size: 12px;
      letter-spacing: .32em;
      margin-top: 5px;
    }

    .credit-wallet-balance-line {
      margin: -4px 0 18px;
      color: rgba(255, 255, 255, .78);
      font-weight: 800;
      text-align: center;
    }

    .credit-wallet-balance-line strong {
      color: #ffd15c;
      font-size: 22px;
      margin: 0 4px;
    }

    .credit-balance-card {
      display: grid;
      grid-template-columns: 90px minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      margin-bottom: 22px;
      padding: 16px;
      border-radius: 14px;
      border: 1px solid rgba(255, 195, 71, .28);
      background:
        linear-gradient(105deg, rgba(255, 193, 65, .14), rgba(255, 193, 65, .04)),
        rgba(255, 255, 255, .05);
    }

    .credit-balance-emblem,
    .credit-coin-stack {
      border-radius: 18px;
      background: radial-gradient(circle at 45% 38%, rgba(255, 201, 81, .32), rgba(255, 201, 81, .04) 58%, rgba(0, 0, 0, .22));
      border: 1px solid rgba(255, 194, 61, .28);
      min-height: 76px;
      display: grid;
      place-items: center;
      font-weight: 900;
      color: #ffc642;
    }

    .credit-coin-stack {
      width: 72px;
      height: 72px;
      min-height: 72px;
      border-radius: 50%;
      font-size: 34px;
    }

    .credit-balance-card small,
    .credit-package-card small,
    .credit-admin-row small {
      display: block;
      color: rgba(255, 255, 255, .68);
      font-weight: 700;
    }

    .credit-balance-card strong {
      display: block;
      color: #ffd15c;
      font-size: clamp(34px, 7vw, 52px);
      line-height: 1;
      margin-top: 4px;
    }

    .credit-package-list {
      display: grid;
      gap: 12px;
      margin: 12px 0 22px;
    }

    .credit-package-card {
      position: relative;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      width: 100%;
      text-align: left;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .13);
      border-radius: 12px;
      background: rgba(255, 255, 255, .045);
      padding: 16px;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    }

    .credit-package-card:hover,
    .credit-package-card.selected {
      border-color: rgba(255, 197, 70, .86);
      box-shadow: 0 0 0 1px rgba(255, 197, 70, .28), 0 0 28px rgba(255, 180, 40, .13);
      transform: translateY(-1px);
    }

    .credit-package-radio {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, .42);
      box-shadow: inset 0 0 0 5px #0b0b0c;
    }

    .credit-package-card.selected .credit-package-radio {
      background: #ffc642;
      border-color: #ffc642;
    }

    .credit-package-name {
      font-size: 28px;
      font-weight: 900;
      line-height: 1;
    }

    .credit-package-price {
      min-width: 88px;
      border-radius: 10px;
      padding: 8px 13px;
      text-align: center;
      background: linear-gradient(180deg, #ffe078, #ffb626);
      color: #111;
      font-size: 22px;
      font-weight: 900;
    }

    .credit-package-tag {
      position: absolute;
      top: -12px;
      right: 24px;
      border-radius: 999px;
      padding: 4px 12px;
      color: #221507;
      background: linear-gradient(180deg, #ffe38a, #ffbd2f);
      font-size: 12px;
      font-weight: 900;
    }

    .credit-payment-select,
    .credit-summary-box {
      border: 1px solid rgba(255, 255, 255, .13);
      border-radius: 12px;
      background: rgba(255, 255, 255, .04);
      padding: 14px;
      margin-top: 10px;
    }

    .credit-payment-select select {
      background: #111;
      color: #fff;
      border-color: rgba(255, 255, 255, .2);
    }

    .credit-summary-row {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      padding: 8px 0;
      color: rgba(255, 255, 255, .78);
      font-weight: 700;
    }

    .credit-summary-row strong {
      color: #ffd15c;
    }

    .credit-checkout-btn {
      width: 100%;
      margin-top: 18px;
      min-height: 54px;
      border: 0;
      border-radius: 12px;
      background: linear-gradient(180deg, #ffe078, #ffb626);
      color: #111;
      font-size: 20px;
      font-weight: 900;
      box-shadow: 0 12px 30px rgba(255, 187, 42, .24);
    }

    .credit-admin-tabs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 18px;
      background: rgba(255, 255, 255, .04);
    }

    .credit-admin-tabs button {
      border: 0;
      border-radius: 0;
      background: transparent;
      color: rgba(255, 255, 255, .72);
    }

    .credit-admin-tabs button.active {
      background: linear-gradient(180deg, rgba(255, 195, 61, .34), rgba(255, 195, 61, .13));
      color: #ffd15c;
    }

    .credit-admin-layout {
      display: grid;
      grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
      gap: 18px;
      align-items: start;
    }

    .credit-admin-card {
      border: 1px solid rgba(255, 255, 255, .13);
      border-radius: 14px;
      background: rgba(255, 255, 255, .045);
      padding: 16px;
    }

    .credit-admin-row {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr) 96px auto;
      gap: 10px;
      align-items: center;
      padding: 12px;
      border: 1px solid rgba(255, 194, 61, .22);
      border-radius: 12px;
      margin-top: 10px;
      background: rgba(0, 0, 0, .16);
    }

    .credit-admin-row.active {
      border-color: rgba(255, 194, 61, .72);
      box-shadow: 0 0 18px rgba(255, 185, 45, .12);
    }

    .credit-admin-number {
      width: 32px;
      height: 32px;
      border-radius: 9px;
      display: grid;
      place-items: center;
      background: linear-gradient(180deg, #ffd66d, #c38317);
      color: #111;
      font-weight: 900;
    }

    .credit-admin-actions {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .credit-admin-actions button {
      min-height: 34px;
      padding: 7px 10px;
    }

    .credit-admin-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .credit-admin-preview {
      margin-top: 18px;
      border: 1px solid rgba(255, 194, 61, .36);
      border-radius: 14px;
      padding: 18px;
      background: linear-gradient(135deg, rgba(255, 194, 61, .11), rgba(255, 255, 255, .035));
    }

    .admin-section-hidden,
    .settings-group-hidden {
      display: none !important;
    }

    .line-event-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(180px, 1fr));
      gap: 10px;
      margin-top: 12px;
    }

    .address-hint {
      margin-top: 6px;
      font-size: 13px;
      color: var(--muted);
    }

    .admin-filter-bar {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) minmax(180px, 260px);
      gap: 12px;
      margin: 16px 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: linear-gradient(180deg, #fff, var(--subtle-panel));
    }

    .admin-filter-bar label { margin-top: 0; }

    .plate-admin-layout {
      display: grid;
      grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
      gap: 16px;
      align-items: start;
    }

    .plate-admin-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 14px;
    }

    .plate-admin-category-bar {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 14px 0;
    }

    .plate-admin-category-bar button {
      min-height: 36px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #fff;
      font-weight: 900;
      cursor: pointer;
    }

    .plate-admin-category-bar button.active {
      border-color: var(--accent);
      background: var(--accent);
      color: #fff;
    }

    .plate-component-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .plate-component-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: linear-gradient(180deg, #fff, var(--subtle-panel));
      padding: 12px;
    }

    .plate-component-head {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: flex-start;
      margin-bottom: 8px;
    }

    .plate-component-preview {
      width: 86px;
      min-width: 86px;
      height: 54px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #080808;
      overflow: hidden;
    }

    .plate-component-preview svg {
      width: 72px;
      height: 44px;
      display: block;
    }

    .svg-upload-box {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 150px;
      gap: 12px;
      align-items: stretch;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
      margin-top: 14px;
    }

    .svg-upload-preview {
      min-height: 110px;
      display: grid;
      place-items: center;
      border: 1px dashed var(--line);
      border-radius: 8px;
      background: #080808;
      color: #fff;
      overflow: hidden;
    }

    .svg-upload-preview svg {
      width: 120px;
      height: 90px;
      display: block;
    }

    .svg-code-wrap {
      margin-top: 10px;
    }

    .svg-code-wrap textarea {
      min-height: 90px;
      font-family: Consolas, monospace;
      font-size: 12px;
    }

    .system-status-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      margin: 6px 0 16px;
      flex-wrap: wrap;
    }

    .system-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }

    .system-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 14px;
      min-height: 118px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
    }

    .system-card h3 {
      margin: 0 0 8px;
      font-size: 18px;
    }

    .system-card strong {
      display: block;
      font-size: 24px;
      line-height: 1.15;
      margin-top: 6px;
    }

    .system-service-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin: 16px 0;
    }

    .service-status-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
    }

    .service-status-row strong {
      display: block;
    }

    .status-dot {
      width: 12px;
      height: 12px;
      border-radius: 999px;
      background: #ef4444;
      flex: 0 0 auto;
      box-shadow: 0 0 0 4px rgba(239, 68, 68, .12);
    }

    .status-dot.ok {
      background: #059669;
      box-shadow: 0 0 0 4px rgba(5, 150, 105, .12);
    }

    .status-dot.warn {
      background: #f59e0b;
      box-shadow: 0 0 0 4px rgba(245, 158, 11, .14);
    }

    .system-chart {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }

    .system-bar {
      display: grid;
      grid-template-columns: minmax(120px, .55fr) minmax(160px, 1fr) 60px;
      gap: 10px;
      align-items: center;
      font-size: 14px;
    }

    .system-bar-track {
      height: 12px;
      border-radius: 999px;
      overflow: hidden;
      background: #e2e8f0;
    }

    .system-bar-fill {
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      min-width: 4px;
    }

    .system-warning-list {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .system-warning-list .warning-item {
      padding: 10px 12px;
      border-radius: 8px;
      background: #fff7ed;
      color: #9a3412;
      border: 1px solid #fed7aa;
      font-weight: 700;
    }

    .daily-report-preview {
      margin-top: 16px;
    }

    .daily-report-preview pre {
      white-space: pre-wrap;
      word-break: break-word;
      margin: 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #0f172a;
      color: #f8fafc;
      line-height: 1.55;
      font-family: Consolas, "Courier New", monospace;
      font-size: 13px;
    }

    .order-card-list {
      display: grid;
      gap: 12px;
    }

    .order-card {
      display: grid;
      grid-template-columns: 150px minmax(180px, .72fr) minmax(260px, 1fr) minmax(220px, .8fr);
      gap: 14px;
      align-items: start;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
    }

    .order-card:hover {
      border-color: rgba(17,24,39,.24);
      box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
    }

    .order-card h3 {
      margin: 0 0 8px;
      font-size: 16px;
    }

    .order-card .preview-wrap {
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
    }

    .order-card .flow-steps {
      grid-template-columns: 1fr;
      margin-top: 0;
    }

    .order-card .row.order-actions button {
      min-height: 36px;
      padding: 0 10px;
      font-size: 13px;
    }

    .admin-shipping-panel {
      margin-top: 10px;
      padding: 10px;
      border: 1px solid #dbeafe;
      border-radius: 8px;
      background: #eff6ff;
    }

    .admin-shipping-panel .row {
      gap: 8px;
      margin-top: 8px;
    }

    .admin-copy-panel {
      display: grid;
      gap: 8px;
      margin-top: 10px;
      padding: 10px;
      border: 1px solid #f3d6a4;
      border-radius: 8px;
      background: #fff8eb;
    }

    .admin-copy-panel label {
      font-size: 13px;
      font-weight: 800;
      color: var(--muted);
    }

    .admin-copy-panel input {
      min-height: 38px;
    }

    .tracking-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: end;
    }

    .tracking-row button {
      min-height: 38px;
      white-space: nowrap;
    }

    .admin-action-stack {
      display: grid;
      gap: 10px;
    }

    .admin-action-group {
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .admin-action-group h4 {
      margin: 0 0 8px;
      font-size: 14px;
    }

    .admin-action-group .row {
      gap: 8px;
    }

    .admin-order-detail {
      display: grid;
      gap: 14px;
    }

    .admin-order-detail-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .admin-order-detail-grid {
      display: grid;
      grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) minmax(260px, 360px);
      gap: 14px;
      align-items: start;
    }

    .admin-detail-panel {
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .admin-detail-row {
      display: grid;
      grid-template-columns: 130px minmax(0, 1fr);
      gap: 10px;
      padding: 9px 0;
      border-bottom: 1px solid var(--line);
    }

    .admin-detail-row:last-child {
      border-bottom: 0;
    }

    .admin-detail-row span:first-child {
      color: var(--muted);
      font-weight: 800;
    }

    .admin-danger {
      border-top: 0;
      margin-top: 0;
      padding-top: 0;
    }

    .empty {
      border: 1px dashed #b8bdc7;
      border-radius: 8px;
      padding: 26px;
      text-align: center;
      color: var(--muted);
      background: #fff;
    }

    .toast {
      position: fixed;
      top: 50%;
      left: 50%;
      right: auto;
      bottom: auto;
      transform: translate(-50%, -50%);
      background: #111827;
      color: #fff;
      padding: 12px 14px;
      border-radius: 8px;
      box-shadow: var(--shadow);
      display: none;
      width: max-content;
      max-width: min(420px, calc(100vw - 32px));
      line-height: 1.5;
      text-align: center;
      overflow-wrap: anywhere;
      z-index: 1200;
    }

    .toast.show { display: block; }

    .login-wrap {
      max-width: 560px;
      margin: 0 auto 18px;
    }

    .session-strip {
      display: none;
      margin-bottom: 16px;
      padding: 12px 14px;
      border: 1px solid #b7dfd9;
      border-radius: 8px;
      background: var(--soft);
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .session-strip.show { display: flex; }

    .locked-input {
      background: #f3f4f6;
      color: #4b5563;
    }

    .home-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
      gap: 18px;
      align-items: stretch;
    }

    .hero-band {
      background:
        var(--hero-bg),
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.2), transparent 28%);
      color: #fff;
      border-radius: 8px;
      padding: 28px;
      min-height: 280px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border-bottom: 4px solid var(--accent);
    }

    .hero-band h1 {
      margin: 0 0 12px;
      font-size: 42px;
      line-height: 1.1;
    }

    .hero-band p {
      max-width: 620px;
      color: var(--hero-muted);
      line-height: 1.7;
    }

    .service-grid, .product-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 16px;
    }

    .customer-choice-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 16px;
    }

    .customer-choice-card {
      display: grid;
      gap: 12px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    }

    .customer-choice-card strong {
      display: block;
      font-size: 22px;
    }

    .customer-choice-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
    }

    .customer-choice-showcase {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 6;
      min-height: 112px;
      overflow: hidden;
      border: 1px solid rgba(247,147,30,.26);
      border-radius: 8px;
      background:
        radial-gradient(circle at 50% 48%, rgba(247,147,30,.28), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.05), rgba(247,147,30,.06)),
        #0e1318;
      display: grid;
      place-items: center;
    }

    .customer-choice-showcase img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .customer-choice-showcase .customer-choice-icon {
      width: auto;
      height: auto;
      max-width: min(88%, 360px);
      padding: 12px 18px;
      text-align: center;
      line-height: 1.45;
      font-size: 17px;
      box-shadow: 0 0 24px rgba(247,147,30,.28);
    }

    .choice-slide-dots {
      position: absolute;
      right: 10px;
      bottom: 8px;
      display: flex;
      gap: 5px;
    }

    .choice-slide-dots span {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: rgba(255,255,255,.38);
      border: 1px solid rgba(255,255,255,.25);
    }

    .choice-slide-dots span.active {
      width: 18px;
      background: #f8c13a;
      border-color: rgba(247,147,30,.7);
      box-shadow: 0 0 12px rgba(247,147,30,.5);
    }

    .customer-choice-icon {
      width: 54px;
      height: 54px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      background: var(--soft);
      color: var(--brand);
      font-size: 24px;
      font-weight: 900;
    }

    .slide-admin-shell {
      display: grid;
      grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
      gap: 14px;
      align-items: start;
    }

    .slide-admin-card,
    .slide-admin-list {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--subtle-panel);
      padding: 14px;
    }

    .slide-admin-list {
      display: grid;
      gap: 16px;
    }

    .slide-admin-group {
      display: grid;
      gap: 10px;
    }

    .slide-admin-row {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .slide-admin-thumb {
      width: 100%;
      aspect-ratio: 16 / 7;
      object-fit: cover;
      border-radius: 7px;
      border: 1px solid var(--line);
      background: #0e1318;
    }

    .slide-admin-actions {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .service-item, .product-item {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 16px;
      min-height: 150px;
      box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
    }

    .product-art {
      height: 130px;
      border-radius: 7px;
      background: var(--product-art-bg);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 44px;
      font-weight: 900;
    }

    body {
      background:
        radial-gradient(circle at 82% -12%, rgba(247,147,30,.24), transparent 32%),
        radial-gradient(circle at 16% 4%, rgba(247,147,30,.1), transparent 28%),
        linear-gradient(180deg, #080a0d 0%, #11100d 270px, #f4f0e7 271px, #f4f0e7 100%);
    }

    header {
      width: min(1680px, calc(100% - 10px));
      margin: 4px auto 22px;
      border: 1px solid rgba(247,147,30,.3);
      border-radius: 22px;
      overflow: visible;
      background:
        radial-gradient(circle at 12% 0%, rgba(255,214,122,.12), transparent 34%),
        radial-gradient(circle at 78% 20%, rgba(247,147,30,.18), transparent 30%),
        linear-gradient(135deg, #050708 0%, #12161b 58%, #241604 100%);
      box-shadow: 0 24px 60px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
    }

    .bar {
      min-height: 128px;
      padding: 24px 28px;
    }

    .brand-logo-mark {
      width: 116px;
      min-width: 116px;
      display: grid;
      gap: 0;
      line-height: 1;
      filter: drop-shadow(0 8px 18px rgba(247,147,30,.24));
    }

    .brand-logo-mark span {
      display: block;
      font-size: 43px;
      font-style: italic;
      font-weight: 950;
      letter-spacing: 0;
      color: #f8d36b;
      text-shadow: 0 2px 0 #5f3305, 0 0 22px rgba(247,147,30,.5);
    }

    .brand-logo-mark small {
      display: block;
      margin-top: 3px;
      color: rgba(255,255,255,.9);
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 4px;
    }

    .brand strong {
      font-size: 26px;
      color: #fff;
      text-shadow: 0 0 22px rgba(247,147,30,.16);
    }

    .brand span {
      color: #f9d893;
      font-size: 15px;
      font-weight: 800;
    }

    .tab-btn {
      min-height: 54px;
      padding: 0 24px;
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 9px;
      background: rgba(255,255,255,.07);
      color: rgba(255,255,255,.92);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }

    .tab-btn::before {
      content: "";
      margin-right: 8px;
      color: #f8c13a;
      font-weight: 900;
    }

    .tab-btn[data-tab="home"]::before { content: "⌂"; }
    .tab-btn[data-tab="customWork"]::before { content: "✎"; }
    .tab-btn[data-tab="workLibrary"]::before { content: "□"; }
    .tab-btn[data-tab="products"]::before { content: "▣"; }
    .tab-btn[data-tab="myOrders"]::before { content: "☰"; }

    .tab-btn:hover {
      background: rgba(255,255,255,.12);
      border-color: rgba(247,147,30,.34);
    }

    .tab-btn.active {
      background: linear-gradient(180deg, #ffd65d 0%, #f4a90d 100%);
      color: #191105;
      border-color: rgba(255,214,93,.75);
      box-shadow: 0 0 0 1px rgba(255,214,93,.2), 0 12px 28px rgba(247,147,30,.24), inset 0 1px 0 rgba(255,255,255,.45);
    }

    .header-credit {
      min-height: 54px;
      padding: 0 18px;
      border: 1px solid rgba(247,147,30,.62);
      border-radius: 9px;
      background: rgba(6,8,11,.62);
      box-shadow: inset 0 0 18px rgba(247,147,30,.08);
    }

    .header-credit::before {
      content: "✦";
      display: inline-grid;
      place-items: center;
      width: 32px;
      height: 32px;
      border-radius: 999px;
      color: #6b3a00;
      background: linear-gradient(180deg, #fff5a9 0%, #f7a51e 100%);
      box-shadow: 0 0 18px rgba(247,147,30,.45);
    }

    .cart-button {
      width: 58px;
      height: 58px;
      border-color: rgba(247,147,30,.45);
      background: rgba(255,255,255,.06);
      box-shadow: inset 0 0 18px rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.18);
    }

    main {
      max-width: 1640px;
    }

    #home {
      color: #f8fafc;
    }

    #home .home-hero {
      grid-template-columns: minmax(0, 1.9fr) minmax(330px, 1fr);
      gap: 20px;
    }

    #home .hero-band,
    #home .home-hero > .panel,
    #home .service-item {
      border: 1px solid rgba(247,147,30,.38);
      border-radius: 18px;
      background:
        radial-gradient(circle at 76% 22%, rgba(247,147,30,.2), transparent 28%),
        linear-gradient(135deg, rgba(8,11,14,.98) 0%, rgba(16,20,24,.96) 54%, rgba(53,31,8,.94) 100%);
      box-shadow: 0 18px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06);
      overflow: hidden;
    }

    #home .hero-band {
      position: relative;
      min-height: 462px;
      padding: 58px 56px;
      border-bottom: 1px solid rgba(247,147,30,.38);
    }

    #home .hero-band::before {
      content: "";
      position: absolute;
      right: 7%;
      top: 18%;
      width: min(430px, 42%);
      aspect-ratio: 1.35;
      border-radius: 28px;
      transform: rotate(-10deg);
      background:
        linear-gradient(135deg, rgba(255,220,117,.18), rgba(247,147,30,.08)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, #15181c 0%, #050607 100%);
      border: 1px solid rgba(255,203,79,.58);
      box-shadow: 0 0 0 8px rgba(247,147,30,.07), 0 28px 70px rgba(247,147,30,.25);
    }

    #home .hero-band::after {
      content: "PK";
      position: absolute;
      right: 16%;
      top: 31%;
      transform: rotate(-10deg);
      color: #f8c13a;
      font-size: clamp(58px, 7vw, 118px);
      font-style: italic;
      font-weight: 950;
      text-shadow: 0 3px 0 #5b3103, 0 0 26px rgba(247,147,30,.58);
      opacity: .96;
    }

    #home .hero-band > * {
      position: relative;
      z-index: 2;
      max-width: 620px;
    }

    #home .hero-band h1 {
      font-size: clamp(46px, 5vw, 74px);
      letter-spacing: 0;
      text-shadow: 0 0 28px rgba(255,255,255,.16);
    }

    #home .hero-band h1::first-line {
      color: #fff;
    }

    #home .hero-band p,
    #home .service-item p,
    #home .home-hero .muted {
      color: rgba(255,255,255,.76);
      font-size: 17px;
    }

    #home .hero-band .primary,
    #home .service-item .ghost {
      min-height: 58px;
      padding: 0 30px;
      border: 1px solid rgba(255,220,117,.78);
      color: #1a1102;
      background: linear-gradient(180deg, #ffe16d 0%, #f6a914 100%);
      box-shadow: 0 0 24px rgba(247,147,30,.38), inset 0 1px 0 rgba(255,255,255,.48);
    }

    #home .hero-band .secondary,
    #home .service-item:nth-child(2) .ghost,
    #home .service-item:nth-child(3) .ghost {
      color: #fff;
      border-color: rgba(247,147,30,.42);
      background: rgba(7,10,14,.6);
      box-shadow: inset 0 0 16px rgba(247,147,30,.08);
    }

    #home .home-hero > .panel {
      min-height: 462px;
      color: #fff;
    }

    #home .home-hero > .panel .panel-body {
      position: relative;
      min-height: 100%;
      padding: 32px;
      display: grid;
      align-content: start;
      gap: 18px;
    }

    #home .home-hero > .panel .panel-body::after {
      content: "▣";
      align-self: end;
      justify-self: center;
      display: grid;
      place-items: center;
      width: min(260px, 72%);
      aspect-ratio: 1;
      margin-top: 22px;
      border-radius: 999px;
      color: #f8c13a;
      font-size: 78px;
      background:
        radial-gradient(circle, rgba(247,147,30,.18) 0 28%, transparent 29%),
        repeating-radial-gradient(circle, rgba(247,147,30,.28) 0 2px, transparent 2px 18px);
      filter: drop-shadow(0 0 26px rgba(247,147,30,.38));
    }

    #home .home-service-panel .panel-body {
      grid-template-rows: auto 1fr auto;
      align-content: stretch;
      gap: 20px;
    }

    #home .home-hero > .home-service-panel .panel-body::after {
      content: none;
      display: none;
    }

    #home .home-service-heading > span {
      display: block;
      margin-bottom: 5px;
      color: #f8c13a;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: .02em;
    }

    #home .home-service-heading h2 {
      margin: 0;
      font-size: clamp(25px, 2.1vw, 32px);
      line-height: 1.22;
    }

    #home .home-service-heading p {
      margin: 8px 0 0;
      line-height: 1.55;
    }

    #home .home-service-menu {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    #home .home-service-choice {
      min-width: 0;
      min-height: 132px;
      padding: 18px;
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-rows: 1fr auto;
      align-items: end;
      gap: 12px;
      color: #fff;
      text-align: left;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 13px;
      background: rgba(255,255,255,.035);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
      transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
    }

    #home .home-service-choice:hover {
      transform: translateY(-2px);
      border-color: rgba(248,193,58,.68);
      background: rgba(247,147,30,.09);
      box-shadow: 0 12px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06);
    }

    #home .home-service-choice:focus-visible {
      outline: 3px solid rgba(248,193,58,.34);
      outline-offset: 2px;
      border-color: #f8c13a;
    }

    #home .home-service-icon {
      grid-column: 1 / -1;
      align-self: start;
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      color: #eeb23a;
    }

    #home .home-service-icon svg {
      width: 100%;
      height: 100%;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    #home .home-service-icon svg text {
      fill: currentColor;
      stroke: none;
      font-size: 14px;
      font-weight: 900;
      font-family: inherit;
    }

    #home .home-service-label {
      min-width: 0;
      font-size: 18px;
      font-weight: 850;
      line-height: 1.25;
    }

    #home .home-service-arrow {
      color: #f8c13a;
      font-size: 25px;
      line-height: 1;
      transition: transform .18s ease;
    }

    #home .home-service-choice:hover .home-service-arrow {
      transform: translateX(3px);
    }

    #home .home-service-all {
      width: 100%;
      min-height: 54px;
      color: #1a1102;
      font-weight: 850;
      border: 1px solid rgba(255,220,117,.82);
      background: linear-gradient(180deg, #ffe16d 0%, #f6a914 100%);
      box-shadow: 0 0 22px rgba(247,147,30,.24), inset 0 1px 0 rgba(255,255,255,.5);
    }

    @media (max-width: 480px) {
      #home .home-service-choice {
        grid-template-columns: 1fr;
        gap: 9px;
      }

      #home .home-service-label {
        font-size: 16px;
      }

      #home .home-service-arrow {
        display: none;
      }
    }

    #home .badge {
      border-color: rgba(96,165,250,.42);
      color: #75a7ff;
      background: rgba(37,99,235,.18);
    }

    #home .badge.approved {
      color: #67f3a5;
      background: rgba(16,185,129,.18);
      border-color: rgba(16,185,129,.35);
    }

    #home .badge.waiting {
      color: #f7a64b;
      background: rgba(247,147,30,.18);
      border-color: rgba(247,147,30,.36);
    }

    #home .service-grid {
      gap: 20px;
      margin-top: 20px;
    }

    #home .service-item {
      position: relative;
      min-height: 205px;
      padding: 32px 30px 28px 230px;
      color: #fff;
    }

    #home .service-item::before {
      content: "";
      position: absolute;
      left: 28px;
      top: 28px;
      width: 160px;
      height: 128px;
      border-radius: 18px;
      background:
        radial-gradient(circle at 52% 46%, rgba(247,147,30,.38), transparent 27%),
        linear-gradient(135deg, rgba(247,147,30,.16), rgba(255,255,255,.03)),
        #0e1318;
      border: 1px solid rgba(247,147,30,.28);
      box-shadow: inset 0 0 24px rgba(247,147,30,.08);
    }

    #home .service-item::after {
      position: absolute;
      left: 66px;
      top: 64px;
      color: #f8c13a;
      font-size: 46px;
      font-weight: 900;
      filter: drop-shadow(0 0 16px rgba(247,147,30,.38));
    }

    #home .service-item:nth-child(1)::after { content: "✎"; }
    #home .service-item:nth-child(2)::after { content: "▭"; }
    #home .service-item:nth-child(3)::after { content: "▣"; }

    #home .service-item h3 {
      margin-top: 0;
      color: #fff;
      font-size: 26px;
    }

    #home .service-item::before,
    #home .service-item::after {
      display: none;
    }

    .service-slider {
      position: absolute;
      left: 28px;
      top: 28px;
      width: 160px;
      height: 128px;
      overflow: hidden;
      border: 1px solid rgba(247,147,30,.34);
      border-radius: 18px;
      background:
        radial-gradient(circle at 50% 50%, rgba(247,147,30,.32), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.05), rgba(247,147,30,.05)),
        #0e1318;
      box-shadow: inset 0 0 28px rgba(247,147,30,.1), 0 12px 26px rgba(0,0,0,.18);
    }

    .service-slider span {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      opacity: 0;
      transform: translateX(16px) scale(.98);
      animation: serviceSlide 12s infinite;
    }

    .service-slider span:nth-child(2) { animation-delay: 4s; }
    .service-slider span:nth-child(3) { animation-delay: 8s; }

    .service-slider span::before {
      content: "";
      width: 78px;
      height: 54px;
      display: block;
      border-radius: 14px;
      border: 2px solid #f8c13a;
      box-shadow: 0 0 22px rgba(247,147,30,.5);
    }

    .service-slider span::after {
      position: absolute;
      color: #f8c13a;
      font-size: 22px;
      font-weight: 950;
      letter-spacing: 0;
      text-shadow: 0 0 16px rgba(247,147,30,.6);
    }

    .service-slider-logo span:nth-child(1)::before {
      width: 92px;
      height: 48px;
      border-radius: 18px;
      background: #08090b;
    }

    .service-slider-logo span:nth-child(1)::after { content: "PK"; font-size: 30px; font-style: italic; }
    .service-slider-logo span:nth-child(2)::before { width: 104px; height: 18px; border-width: 4px 0 0; border-radius: 999px; }
    .service-slider-logo span:nth-child(2)::after { content: "TEXT"; top: 66px; font-size: 16px; }
    .service-slider-logo span:nth-child(3)::before { width: 92px; height: 62px; border-radius: 999px; }
    .service-slider-logo span:nth-child(3)::after { content: "LOGO"; font-size: 18px; }

    .service-slider-panel span:nth-child(1)::before {
      width: 112px;
      height: 54px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.02));
      box-shadow: 0 0 0 6px rgba(247,147,30,.05), 0 0 22px rgba(247,147,30,.45);
    }

    .service-slider-panel span:nth-child(1)::after { content: "PANEL"; font-size: 16px; }
    .service-slider-panel span:nth-child(2)::before { width: 112px; height: 36px; border-radius: 999px; }
    .service-slider-panel span:nth-child(2)::after { content: "PLATE"; font-size: 16px; }
    .service-slider-panel span:nth-child(3)::before {
      width: 96px;
      height: 56px;
      border-radius: 16px;
      border-style: dashed;
    }
    .service-slider-panel span:nth-child(3)::after { content: "SVG"; font-size: 22px; }

    .service-slider-shop span:nth-child(1)::before {
      width: 70px;
      height: 62px;
      border-radius: 14px 14px 20px 20px;
      background: linear-gradient(180deg, rgba(247,147,30,.22), rgba(255,255,255,.04));
    }

    .service-slider-shop span:nth-child(1)::after { content: "BAG"; font-size: 16px; }
    .service-slider-shop span:nth-child(2)::before { width: 100px; height: 42px; border-radius: 12px; }
    .service-slider-shop span:nth-child(2)::after { content: "AMP"; font-size: 22px; }
    .service-slider-shop span:nth-child(3)::before {
      width: 74px;
      height: 74px;
      border-radius: 999px;
      background: radial-gradient(circle, transparent 0 28%, rgba(247,147,30,.22) 29% 100%);
    }
    .service-slider-shop span:nth-child(3)::after { content: "SPK"; font-size: 20px; }

    @keyframes serviceSlide {
      0% { opacity: 0; transform: translateX(18px) scale(.98); }
      8%, 29% { opacity: 1; transform: translateX(0) scale(1); }
      37%, 100% { opacity: 0; transform: translateX(-18px) scale(.98); }
    }

    .home-feature-strip {
      margin-top: 20px;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      color: #f8fafc;
    }

    .home-feature {
      display: flex;
      align-items: center;
      gap: 14px;
      min-height: 76px;
      padding: 0 28px;
      border-right: 1px solid rgba(247,147,30,.28);
    }

    .home-feature:last-child { border-right: 0; }

    .home-feature > span {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(247,147,30,.68);
      border-radius: 999px;
      color: #f8c13a;
      font-weight: 900;
      box-shadow: 0 0 18px rgba(247,147,30,.18);
    }

    .home-feature strong,
    .home-feature small {
      display: block;
    }

    .home-feature small {
      color: rgba(255,255,255,.62);
      margin-top: 3px;
      font-size: 13px;
    }

    @media (min-width: 901px) {
      .bar {
        min-height: 118px;
        padding: 22px 28px;
      }

      .header-left {
        flex: 0 0 auto;
        gap: 14px;
      }

      .brand-logo-mark {
        width: 104px;
        min-width: 104px;
      }

      .brand-logo-mark span {
        font-size: 38px;
      }

      .brand strong {
        max-width: 310px;
        font-size: 23px;
      }

      .brand span {
        max-width: 310px;
        font-size: 14px;
      }

      nav {
        overflow-x: visible;
      }

      .nav-area {
        gap: 12px;
      }

      .tab-btn {
        min-height: 54px;
        padding: 0 18px;
      }

      .header-credit {
        min-height: 54px;
        padding: 0 16px;
      }

      .cart-button {
        width: 54px;
        height: 54px;
      }
    }

    @media (min-width: 901px) and (max-width: 1450px) {
      .bar {
        flex-wrap: wrap;
      }

      .header-left {
        flex: 1 1 420px;
      }

      .nav-area {
        flex: 1 1 100%;
        justify-content: flex-end;
      }

      nav {
        justify-content: flex-start;
        overflow-x: auto;
      }
    }

    @media (max-width: 900px) {
      .admin-drafts-toolbar {
        grid-template-columns: 1fr;
      }

      .admin-drafts-filters {
        justify-content: flex-start;
      }

      .admin-drafts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .credit-admin-layout,
      .credit-balance-card {
        grid-template-columns: 1fr;
      }

      .credit-admin-row {
        grid-template-columns: 36px minmax(0, 1fr);
      }

      .credit-admin-row > strong,
      .credit-admin-actions {
        grid-column: 2;
        justify-content: flex-start;
      }

      #home .home-hero {
        grid-template-columns: 1fr;
      }

      #home .hero-band,
      #home .home-hero > .panel {
        min-height: auto;
      }

      #home .home-service-panel .panel-body {
        padding: 26px;
      }

      #home .home-service-choice {
        min-height: 116px;
        padding: 15px;
      }

      #home .home-service-icon {
        width: 46px;
        height: 46px;
      }

      #home .hero-band {
        padding: 38px 26px;
      }

      #home .hero-band::before {
        right: -24px;
        top: 28px;
        width: 230px;
        opacity: .42;
      }

      #home .hero-band::after {
        right: 44px;
        top: 72px;
        opacity: .42;
      }

      #home .service-item {
        padding: 180px 24px 24px;
      }

      #home .service-item::before {
        left: 24px;
        top: 24px;
        width: calc(100% - 48px);
        height: 128px;
      }

      #home .service-item::after {
        left: 50%;
        top: 66px;
        transform: translateX(-50%);
      }

      #home .service-item .service-slider {
        left: 24px;
        top: 24px;
        width: calc(100% - 48px);
        height: 128px;
      }

      .home-feature-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .home-feature {
        min-height: 74px;
        padding: 12px;
        border: 1px solid rgba(247,147,30,.22);
        border-radius: 14px;
        background: rgba(255,255,255,.04);
      }

      .payment-page.premium-payment {
        grid-template-columns: 1fr;
      }

      .payment-side-info {
        order: 3;
      }
    }

    @media (max-width: 640px) {
      .admin-drafts-head {
        align-items: flex-start;
      }

      .admin-drafts-search-row {
        align-items: stretch;
        flex-wrap: wrap;
      }

      .admin-drafts-search-row input {
        flex-basis: 100%;
      }

      .admin-drafts-grid {
        grid-template-columns: 1fr;
      }

      .admin-draft-preview {
        height: 250px;
      }

      .auth-panel { border-radius: 14px; }

      .auth-panel > .panel-body { padding: 22px 18px; }

      .auth-heading h2 { font-size: 28px; }

      .auth-mode-switch { margin: 18px 0; }

      .credit-wallet-shell,
      .admin-credit-shell {
        padding: 16px;
        border-radius: 14px;
      }

      .credit-wallet-top,
      .admin-credit-top {
        align-items: flex-start;
      }

      .credit-package-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
      }

      .credit-package-price {
        grid-column: auto;
        justify-self: end;
        min-width: 74px;
        padding: 7px 10px;
        font-size: 20px;
      }

      .payment-page.premium-payment {
        margin: -8px;
        padding: 12px;
        border-radius: 18px;
      }

      .payment-logo-mark {
        font-size: 36px;
      }

      .payment-title-block h2 {
        font-size: 38px;
      }

      .payment-order-row {
        font-size: 14px;
      }

      .payment-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .payment-brand-head {
        margin-bottom: 8px;
      }

      .credit-admin-tabs,
      .credit-admin-form-grid {
        grid-template-columns: 1fr;
      }

      header {
        width: calc(100% - 8px);
        border-radius: 16px;
        margin-top: 4px;
      }

      .bar {
        min-height: auto;
      }

      .brand-logo-mark {
        width: 74px;
        min-width: 74px;
      }

      .brand-logo-mark span {
        font-size: 28px;
      }

      .brand-logo-mark small {
        font-size: 9px;
        letter-spacing: 2px;
      }

      .header-auth {
        justify-content: flex-start;
      }

      .tab-btn {
        min-height: 46px;
        padding: 0 16px;
      }

      .header-credit {
        min-height: 46px;
      }

      .cart-button {
        width: 48px;
        height: 48px;
      }

      #home .hero-band h1 {
        font-size: 40px;
      }

      #home .hero-band p,
      #home .service-item p,
      #home .home-hero .muted {
        font-size: 15px;
      }

      #home .hero-band .row {
        display: grid;
        grid-template-columns: 1fr;
      }

      #home .hero-band .primary,
      #home .hero-band .secondary,
      #home .service-item .ghost {
        width: 100%;
      }

      .home-feature-strip {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 1180px) {
      main {
        max-width: 100%;
      }

      .logo-quick-create {
        grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(140px, .45fr)) minmax(180px, .8fr);
      }

      .logo-detailed-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .logo-quick-create > div:nth-of-type(5),
      #generateBtn {
        grid-column: span 1;
      }

      #generateBtn {
        width: 100%;
      }

      .order-card {
        grid-template-columns: 130px minmax(0, .85fr) minmax(260px, 1fr);
      }

      .order-card > div:last-child {
        grid-column: 1 / -1;
      }

      .order-card .flow-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .admin-order-detail-grid {
        grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
      }

      .admin-order-detail-grid > div:last-child {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 900px) {
      .bar { align-items: flex-start; flex-direction: column; flex-wrap: wrap; }
      .header-left {
        flex: none;
        width: 100%;
      }
      .nav-area { width: 100%; align-items: stretch; flex-direction: column; }
      nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
      }
      .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
      }
      .grid { grid-template-columns: 1fr; }
      .front-panel-layout { grid-template-columns: minmax(0, 1fr); }
      .front-panel-form { position: static; }
      .front-panel-inline-fields {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(72px, .8fr);
      }
      .front-panel-action-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .front-panel-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .plate-layout,
      .plate-editor-grid {
        grid-template-columns: minmax(0, 1fr);
      }
      .plate-selected-panel {
        grid-template-columns: minmax(0, 1fr);
      }
      .plate-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .work-card,
      .cart-item {
        grid-template-columns: 1fr;
      }
      .front-panel-preview-head,
      .front-panel-price-head {
        display: grid;
      }
      .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .logo-quick-create { grid-template-columns: 1fr; }
      .settings-grid { grid-template-columns: 1fr; }
      .line-event-grid { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .admin-tools { grid-template-columns: 1fr; }
      .admin-filter-bar { grid-template-columns: 1fr; }
      .plate-admin-layout { grid-template-columns: 1fr; }
      .plate-component-grid { grid-template-columns: 1fr; }
      .svg-upload-box { grid-template-columns: 1fr; }
      .slide-admin-shell,
      .slide-admin-row { grid-template-columns: 1fr; }
      .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .system-service-list { grid-template-columns: 1fr; }
      .order-card { grid-template-columns: 1fr; }
      .payment-page { grid-template-columns: 1fr; }
      .checkout-layout { grid-template-columns: 1fr; }
      .admin-order-detail-grid { grid-template-columns: 1fr; }
      .checkout-hero { grid-template-columns: 1fr; }
      .checkout-compact,
      .checkout-review-card {
        grid-template-columns: 1fr;
      }
      .checkout-review-card .preview-wrap {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }
      .my-order-card { grid-template-columns: 1fr; }
      .flow-steps { grid-template-columns: 1fr 1fr; }
      .payment-qr {
        grid-template-columns: 1fr;
        justify-items: center;
      }
      .payment-qr-copy { width: 100%; }
      .qr-frame { width: min(240px, 100%); }
      .thickness-row { grid-template-columns: 1fr; }
      .credit-lines { grid-template-columns: 1fr; }
      .home-hero { grid-template-columns: 1fr; }
      .service-grid, .product-grid, .customer-choice-grid { grid-template-columns: 1fr; }
      .hero-band h1 { font-size: 32px; }
      table { display: block; overflow-x: auto; }
    }

    @media (max-width: 640px) {
      body {
        font-size: 15px;
      }

      .cart-item-adjust-grid {
        grid-template-columns: 1fr;
      }

      .bar {
        gap: 14px;
        padding: 16px 12px;
      }

      nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
      }

      .nav-area {
        align-items: stretch;
      }

      .brand strong {
        font-size: 18px;
      }

      .brand span {
        font-size: 12px;
      }

      main {
        padding: 14px 10px 34px;
      }

      .panel-body,
      .logo-results-panel .panel-body {
        padding: 14px;
      }

      .front-panel-intro {
        padding: 18px;
      }

      .front-panel-intro h2 {
        font-size: 25px;
      }

      .front-panel-step {
        padding: 12px;
      }

      .front-panel-size-board,
      .front-panel-hole-board,
      .front-panel-action-board {
        border-radius: 18px;
        padding: 12px;
      }

      .front-panel-size-title {
        font-size: 21px;
      }

      .front-panel-meta-row,
      .front-panel-hole-board .settings-grid,
      .front-panel-action-board {
        grid-template-columns: 1fr;
      }

      .front-panel-hole-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .front-panel-hole-grid input,
      .front-panel-thickness-row select {
        font-size: 16px;
      }

      .plate-toolbar,
      .plate-library-grid {
        grid-template-columns: 1fr;
      }

      .plate-stage {
        padding: 10px;
      }

      .plate-inspector-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .front-panel-preview-stage {
        padding: 10px;
      }

      .front-panel-preview {
        height: 260px;
        border-radius: 18px;
      }

      .front-panel-preview-toolbar {
        justify-content: center;
      }

      .front-panel-engraving-actions > button { flex: 1 1 100%; }
      .front-panel-artwork-editor.show {
        position: fixed;
        z-index: 45;
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-height: 58vh;
        overflow: auto;
        margin: 0;
      }
      .front-panel-artwork-fields,
      .front-panel-logo-library,
      .front-panel-concept-list { grid-template-columns: 1fr; }

      .front-panel-summary-grid,
      .front-panel-price-list {
        grid-template-columns: 1fr;
      }

      .system-grid,
      .system-bar {
        grid-template-columns: 1fr;
      }

      .account-setup-grid {
        grid-template-columns: 1fr;
      }

      .system-bar {
        gap: 6px;
      }

      .front-panel-actions button {
        width: 100%;
      }

      .tab-btn,
      .primary,
      .secondary,
      .ghost,
      .danger {
        min-height: 46px;
        padding: 0 13px;
      }

      .logo-quick-create {
        padding: 12px;
        gap: 10px;
        background: var(--subtle-panel);
      }

      .logo-design-mode { align-items: stretch; flex-direction: column; }
      .logo-design-mode-buttons { width: 100%; }
      .logo-detailed-options,
      .logo-prompt-summary { grid-template-columns: 1fr; }
      .logo-prompt-summary > div { grid-template-columns: 96px minmax(0, 1fr); }

      .studio-head {
        display: grid;
        gap: 10px;
      }

      .studio-badges {
        justify-content: flex-start;
      }

      .logo-quick-create label {
        font-size: 12px;
      }

      #generateBtn,
      #submitOrderBtn,
      #saveAddressBtn,
      #loginSubmitBtn,
      #sendOtpBtn,
      #verifyOtpBtn {
        width: 100%;
      }

      .checkout-item-row {
        grid-template-columns: 74px minmax(0, 1fr);
      }

      .checkout-item-row .checkout-price {
        grid-column: 1 / -1;
        text-align: right;
      }

      .checkout-sticky-bar {
        align-items: stretch;
      }

      .checkout-page-head {
        margin-bottom: 8px;
      }

      .checkout-page-head .badge {
        display: none;
      }

      .checkout-page-head h2 {
        font-size: 21px;
      }

      .checkout-page-head p {
        font-size: 12px;
        line-height: 1.5;
      }

      .checkout-review-body,
      .checkout-pay-card {
        padding: 10px;
        gap: 8px;
      }

      .checkout-review-card .preview-wrap {
        min-height: 0;
        height: 120px;
        max-height: 120px;
      }

      .checkout-review-card .preview-wrap img,
      .checkout-review-card .preview-wrap svg {
        max-width: 92%;
        max-height: 92%;
        object-fit: contain;
      }

      .checkout-mini-grid {
        grid-template-columns: 1fr;
        gap: 6px;
      }

      .checkout-mini {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 7px 9px;
      }

      .checkout-mini span {
        margin: 0;
      }

      .checkout-review-body h3 {
        font-size: 20px;
      }

      .checkout-pay-card {
        display: none;
      }

      .checkout-pay-amount strong {
        font-size: 24px;
      }

      .preview-grid {
        grid-template-columns: 1fr;
      }

      .preview-meta {
        padding: 12px;
      }

      .preview-meta .primary,
      .preview-meta .secondary,
      .preview-meta .ghost {
        min-width: 116px;
      }

      .empty,
      .preview-loading {
        min-height: 220px;
        padding: 22px 14px;
      }

      .flow-steps {
        grid-template-columns: 1fr;
      }

      .summary-line {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
      }

      .summary-line strong {
        text-align: left;
      }

      .status-summary,
      .checkout-sticky-bar {
        align-items: stretch;
        flex-direction: column;
      }

      .my-order-card,
      .order-card {
        padding: 12px;
        gap: 12px;
      }

      .order-card .flow-steps {
        grid-template-columns: 1fr 1fr;
      }

      .order-actions button,
      .my-order-actions button,
      .payment-page button {
        flex: 1 1 100%;
      }

      .toast {
        width: calc(100vw - 28px);
        max-width: 420px;
      }
    }

    @media (max-width: 640px) {
      header { margin-bottom: 10px; }
      .bar { gap: 8px; padding: 10px; }
      .header-left { gap: 8px; }
      .brand-logo-mark { width: 52px; min-width: 52px; height: 52px; }
      .brand-logo-mark span { font-size: 22px; }
      .brand-logo-mark small { font-size: 7px; letter-spacing: 1.4px; }
      .brand strong { font-size: 15px; }
      .brand span { display: none; }
      .profile-button { width: 42px; height: 42px; font-size: 18px; }
      .nav-area { gap: 8px; }
      .header-auth { gap: 6px; }
      #headerLoginBtn,
      .header-credit,
      .tab-btn { min-height: 40px; }
      .header-credit { padding: 0 10px; }
      .header-credit::before { width: 26px; height: 26px; }
      .cart-button { width: 42px; height: 42px; }
      nav { padding-bottom: 0; }
      .tab-btn { padding: 0 12px; }
    }
