:root {
  color-scheme: light;
  --bg: #f5f6f3;
  --surface: #ffffff;
  --line: #d9ded7;
  --ink: #1d2320;
  --muted: #69736d;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --price: #c2410c;
  --warning: #9a3412;
  --vip: #b7791f;
  --vip-strong: #8a520f;
  --vip-soft: #fff7df;
  --shadow: 0 12px 32px rgba(32, 39, 35, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
select {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 246, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 48px);
}

.brand-block {
  min-width: 0;
}

.topbar h1,
.section-head h2,
.panel-head h2,
.admin-band h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 8px;
  padding: 0 10px;
  color: #4a2d05;
  background: linear-gradient(135deg, #ffe8a3, #d99922);
  border: 1px solid #c47a12;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.vip-badge[hidden] {
  display: none;
}

.admin-link,
.pay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}

.cart-jump-btn,
.purchase-open-btn {
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.cart-jump-btn:hover,
.purchase-open-btn:hover {
  background: var(--accent-strong);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, 38px);
  gap: 6px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lang-btn {
  width: 38px;
  height: 34px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.lang-btn.active {
  color: #fff;
  background: var(--accent);
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(22, 37, 34, 0.16);
}

.account-dropdown[hidden] {
  display: none;
}

.account-dropdown button {
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.account-dropdown button:hover {
  background: #f3f6f2;
}

.header-vip-keep-btn {
  width: auto;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.shop-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0;
  font-size: 28px;
}

.product-area,
.checkout-panel,
.admin-band {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-area,
.admin-band {
  padding: 22px;
  border-radius: 8px;
}

.checkout-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
}

#checkoutPanel {
  scroll-margin-top: 92px;
}

.section-head,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head p,
.payment-box p,
.empty-state {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.search-box input,
label input,
label textarea,
select {
  width: 100%;
  min-height: 40px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-box input,
label input,
select {
  padding: 0 12px;
}

label textarea {
  padding: 10px 12px;
  resize: vertical;
}

.search-box {
  width: min(260px, 100%);
}

.product-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.tag-filter-row {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 16px;
}

.tag-filter-row label {
  display: grid;
  gap: 6px;
  width: min(260px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-btn {
  min-height: 36px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.filter-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.vip-mode .filter-btn.active {
  color: #fff;
  background: var(--vip);
  border-color: var(--vip);
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--accent);
  background: #edf7f4;
  border: 1px solid #cfe2de;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.stage-week {
  color: #8a5a00;
  background: #fff7df;
  border-color: #ead39a;
}

.stage-stock {
  color: var(--muted);
  background: #f5f6f3;
  border-color: var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1ec;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.customer-product-number {
  color: #3f4d47;
  background: #f4f6f3;
  border-color: var(--line);
}

.category {
  color: var(--muted);
  font-size: 13px;
}

.price {
  color: var(--price);
  font-size: 20px;
  font-weight: 800;
}

.money-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.money-pair small {
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.stock {
  color: var(--muted);
  font-size: 13px;
}

.product-info h3 {
  min-height: 48px;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.product-info p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-buy-row {
  display: grid;
  gap: 10px;
}

.price-stack {
  display: grid;
  gap: 3px;
}

.vip-price,
.cart-vip-note {
  color: var(--vip-strong);
  font-size: 13px;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.vip-discount-btn {
  min-height: 40px;
  padding: 0 10px;
  color: #4a2d05;
  background: var(--vip-soft);
  border: 1px solid #d9a441;
  border-radius: 8px;
  font-weight: 900;
}

.vip-discount-btn:hover {
  background: #ffe8a3;
}

.vip-product {
  border-color: #e3b753;
  box-shadow: 0 0 0 2px rgba(183, 121, 31, 0.08);
}

.primary-btn,
.ghost-btn,
.danger-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.primary-btn {
  color: #fff;
  background: var(--accent);
}

.primary-btn:hover {
  background: var(--accent-strong);
}

.vip-mode .primary-btn:not(:disabled),
.vip-mode .purchase-open-btn,
.vip-mode .cart-jump-btn,
.vip-mode .pay-link,
.vip-mode .lang-btn.active {
  color: #fff;
  background: var(--vip);
}

.vip-mode .primary-btn:not(:disabled):hover,
.vip-mode .purchase-open-btn:hover,
.vip-mode .cart-jump-btn:hover,
.vip-mode .pay-link:hover {
  background: var(--vip-strong);
}

.primary-btn:disabled {
  cursor: not-allowed;
  background: #9aa7a0;
}

.ghost-btn {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.danger-btn {
  color: #fff;
  background: var(--warning);
}

.file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-trigger {
  min-height: 32px;
  padding-inline: 12px;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1ec;
}

.cart-row h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f4f7f4;
}

.qty-control span {
  text-align: center;
  font-weight: 700;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.total-row strong {
  color: var(--price);
  font-size: 24px;
}

.order-form,
.admin-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field-stack {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field-stack label {
  display: block;
}

.field-stack select {
  -webkit-appearance: menulist;
  appearance: auto;
  touch-action: manipulation;
  min-height: 44px;
  font-size: 16px;
  background-color: #fff;
}

.payment-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #f2f7f6;
  border: 1px solid #cfe2de;
  border-radius: 8px;
}

.payment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.paypal-checkout {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #ccd9e8;
  border-radius: 8px;
}

.paypal-checkout[hidden] {
  display: none;
}

.paypal-checkout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.paypal-checkout-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.paypal-environment {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #725000;
  background: #fff2bd;
  border: 1px solid #e9ca62;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.paypal-order-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 2px 7px;
  color: #073b8c;
  background: #e8f2ff;
  border: 1px solid #b9d4f7;
  border-radius: 5px;
  font-size: 12px;
  vertical-align: middle;
}

.paypal-buttons {
  width: 100%;
  min-height: 42px;
  overflow: hidden;
}

.keep-btn {
  min-width: 82px;
  color: var(--accent);
  border-color: #b9d8d3;
  background: #fff;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  line-height: 1.5;
}

.checkout-customer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-customer-summary strong,
.checkout-customer-summary p {
  margin: 0;
}

.checkout-customer-summary p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-modal,
.account-panel-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(19, 28, 25, 0.46);
}

.auth-modal[hidden],
.account-panel-modal[hidden] {
  display: none;
}

.auth-dialog,
.account-panel-dialog {
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(22, 37, 34, 0.26);
}

.account-panel-dialog {
  width: min(960px, 100%);
}

.auth-head,
.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.auth-head h2,
.auth-head p,
.account-panel-head h2,
.account-panel-head p {
  margin: 0;
}

.auth-head p,
.account-panel-head p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-form,
.account-form {
  display: grid;
  gap: 12px;
}

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

.account-form .wide {
  grid-column: 1 / -1;
}

.auth-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.account-tab {
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.account-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.account-panel-body h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.account-orders-list {
  display: grid;
  gap: 10px;
}

.account-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-order-card p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-shell {
  display: grid;
  gap: 22px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
}

.admin-workbench {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: start;
}

.product-number-lookup {
  grid-column: 1 / -1;
  padding: 14px 18px;
}

.product-number-lookup-form {
  display: grid;
  grid-template-columns: auto minmax(260px, 460px) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.product-number-lookup-form > label {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.product-number-lookup-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.product-number-lookup-controls input,
.product-number-lookup-controls button {
  min-height: 44px;
}

.product-number-lookup-controls input {
  width: 100%;
  font-size: 16px;
  touch-action: manipulation;
}

.product-number-lookup-form .form-message {
  min-height: 0;
}

.admin-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #eef1ec;
}

.product-preview-panel {
  min-height: calc(100vh - 140px);
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 0.7fr) minmax(150px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  padding: 12px;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-height: 42px;
}

.admin-filter-reset {
  min-height: 42px;
  white-space: nowrap;
}

.admin-filter-summary {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-management-tools,
.order-management-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: min(100%, 360px);
}

.order-management-tools {
  grid-template-columns: minmax(140px, 1fr) minmax(130px, auto);
  width: min(100%, 520px);
}

.admin-management-tools input,
.order-management-tools input,
.order-management-tools select {
  width: 100%;
  min-height: 42px;
}

.customers-list {
  display: grid;
  gap: 12px;
}

.customer-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.customer-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.customer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.customer-order-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.customer-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.customer-address {
  padding: 10px;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.customer-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-edit-form .wide,
.customer-edit-form button {
  grid-column: 1 / -1;
}

.admin-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.admin-form .wide {
  grid-column: span 2;
}

.field-hint {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stage-choice-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.stage-choice-label {
  display: block;
}

.stage-choice-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.stage-choice-button {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  padding: 7px 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  touch-action: manipulation;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stage-choice-button:hover {
  border-color: #868d89;
}

.stage-choice-button.active {
  color: #fff;
  background: #737976;
  border-color: #737976;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.stage-choice-button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.25);
  outline-offset: 2px;
}

.recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin-top: 6px;
}

.recent-chips button,
.recent-chips span {
  min-height: 26px;
  padding: 0 9px;
  color: var(--muted);
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.recent-chips button:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.compact-form {
  grid-template-columns: 1fr;
}

.compact-form .primary-btn {
  width: 100%;
}

.admin-list,
.orders-list {
  display: grid;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 13px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.stat-card strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.vision-tool {
  display: grid;
  gap: 12px;
}

.vision-video {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  background: #111;
  border-radius: 8px;
}

.vision-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vision-results {
  display: grid;
  gap: 10px;
}

.vision-result-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vision-result-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1ec;
}

.vision-result-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.vision-result-main strong,
.vision-result-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vision-result-main span {
  color: var(--muted);
  font-size: 13px;
}

.vision-score-detail {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.score-bar {
  height: 7px;
  overflow: hidden;
  background: #e4ebe7;
  border-radius: 999px;
}

.score-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.vision-result-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.score-text {
  color: var(--accent);
  font-weight: 800;
}

.product-list-scroll {
  max-height: calc(100vh - 260px);
  min-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #eef1ec;
}

.product-list-scroll::-webkit-scrollbar {
  width: 10px;
}

.product-list-scroll::-webkit-scrollbar-track {
  background: #eef1ec;
  border-radius: 999px;
}

.product-list-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.date-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 2px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.date-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.date-divider span {
  white-space: nowrap;
}

.product-preview-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 118px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-preview-card:hover,
.product-preview-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.product-preview-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1ec;
}

.product-preview-main {
  min-width: 0;
}

.product-preview-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 0 8px;
}

.product-number-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 2px 7px;
  color: #075e58;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  background: #e8f5f1;
  border: 1px solid #b8d8d0;
  border-radius: 6px;
}

.product-number-badge.recycled {
  color: var(--muted);
  background: #f1f3f0;
  border-color: var(--line);
}

.product-preview-title-row h3 {
  min-width: 0;
  margin: 0;
}

.product-preview-main h3 {
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-preview-main p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-preview-stats {
  display: grid;
  gap: 8px;
  justify-items: end;
  white-space: nowrap;
}

.product-preview-stats strong {
  color: var(--price);
  font-size: 20px;
}

.product-preview-stats span {
  color: var(--muted);
}

.selected-product {
  display: grid;
  gap: 14px;
}

.selected-product-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selected-product-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}

.selected-product-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.selected-product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.selected-edit-form {
  display: grid;
  gap: 12px;
}

.selected-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.sold-out-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  background: #eef1ec;
}

.admin-product,
.order-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-product {
  grid-template-columns: 72px minmax(220px, 1fr) minmax(92px, 130px) minmax(92px, 130px) auto;
  align-items: center;
}

.admin-product img,
.order-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1ec;
}

.admin-product h3,
.order-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.admin-product p,
.order-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-keep {
  color: var(--ink);
  background: #f7d889;
}

.keep-order {
  border-color: #e7c769;
}

.order-items {
  display: grid;
  gap: 10px;
}

.order-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.order-item img {
  width: 54px;
  height: 54px;
}

.image-thumb-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.image-thumb-button img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1ec;
}

.image-thumb-button:hover img {
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.proof-link {
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-weight: 700;
}

.delete-order-btn {
  min-height: 40px;
}

.sold-products-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.sold-product-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sold-product-card h3 {
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sold-product-card p,
.sold-product-card small {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sold-product-card strong {
  color: var(--price);
}

.sold-stat-row {
  grid-template-columns: 44px minmax(0, 1fr);
}

.sold-stat-row .image-thumb-button {
  grid-row: span 3;
}

.sold-stat-row .image-thumb-button img {
  width: 44px;
  height: 44px;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 48px 18px 18px;
  background: rgba(14, 18, 16, 0.76);
}

.image-preview-modal[hidden] {
  display: none;
}

.image-preview-modal img {
  max-width: min(980px, 96vw);
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.image-preview-modal .ghost-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.product-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(14, 18, 16, 0.62);
}

.product-edit-modal[hidden] {
  display: none;
}

.product-edit-dialog {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.product-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-edit-head h2 {
  margin: 0;
  font-size: 24px;
}

.customer-entry {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(180px, 240px) minmax(260px, 1fr);
  gap: 14px;
  align-items: end;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.customer-entry h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.customer-entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.payment-warning {
  margin-top: 8px !important;
  color: var(--warning) !important;
  font-size: 13px;
  font-weight: 700;
}

.payment-actions .pay-link,
.payment-actions .line-pay-link,
.payment-actions .keep-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

.line-pay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  border-color: #b9d8d3;
}

.line-pay-link.disabled {
  opacity: 0.55;
}

.line-qr-box {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.line-qr-box[hidden] {
  display: none;
}

.line-qr-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.line-qr-box img {
  width: min(180px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-shell {
  width: min(1680px, 100%);
}

.admin-workbench {
  grid-template-columns: minmax(0, 2fr) minmax(420px, 500px);
  gap: 16px;
}

.admin-side {
  gap: 16px;
}

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

.admin-side .admin-form .wide,
.admin-side .admin-form .form-message,
.admin-side .admin-form .primary-btn {
  grid-column: 1 / -1;
}

.product-preview-panel {
  min-height: calc(100vh - 126px);
}

.product-list-scroll {
  max-height: calc(100vh - 220px);
}

.product-preview-card {
  grid-template-columns: 64px minmax(0, 1fr) minmax(78px, auto);
  min-height: 88px;
  gap: 12px;
  padding: 10px 12px;
}

.product-preview-card img {
  width: 64px;
  height: 64px;
}

.product-preview-main h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.product-preview-main p {
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
}

.product-preview-stats {
  gap: 4px;
}

.product-preview-stats strong {
  font-size: 18px;
}

.product-preview-stats span {
  font-size: 13px;
}

.stat-button {
  width: 100%;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
}

.stat-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.visitor-panel {
  display: grid;
  gap: 8px;
  max-height: 360px;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}

.visitor-panel[hidden] {
  display: none;
}

.visitor-row {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visitor-row strong {
  font-size: 14px;
}

.visitor-row span,
.visitor-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resolved-order {
  border-color: #b7d8cf;
  background: #f8fbfa;
}

.resolve-order-btn {
  min-width: 92px;
}

.line-qr-preview {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: start;
  min-height: 42px;
  padding: 10px;
  color: var(--muted);
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.line-qr-preview img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.money-pair > span {
  color: inherit;
}

.stat-card .money-pair > span {
  color: var(--ink);
}

.price .money-pair > span,
.product-preview-stats .money-pair > span,
.sold-product-card .money-pair > span {
  color: var(--price);
}

.product-tag-title {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.15;
}

.product-name-line {
  margin: -2px 0 4px;
  color: var(--muted);
  font-weight: 700;
}

.master-shell {
  grid-template-columns: 1fr;
}

.master-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-list {
  display: grid;
  gap: 12px;
}

.store-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.store-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-card-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.store-name-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.store-name-btn:hover {
  color: var(--accent);
}

.store-mini-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.store-mini-stats span,
.store-mini-stats button {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7faf8;
  font-size: 13px;
  text-align: left;
}

.store-mini-stats button {
  cursor: pointer;
}

.store-mini-stats button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.store-mini-stats strong {
  color: var(--ink);
  font-size: 18px;
}

.store-admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.stats-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.36);
}

.stats-detail-modal[hidden] {
  display: none;
}

.stats-detail-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(1840px, 98vw);
  height: min(920px, 92vh);
  max-height: 92vh;
  overflow: hidden;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 80px rgba(22, 37, 34, 0.24);
}

.stats-detail-dialog .visitor-panel {
  display: grid;
  gap: 12px;
  height: 100%;
  max-height: none;
  margin-top: 0;
  min-height: 0;
  overflow: hidden;
}

.stats-detail-dialog .store-columns-body {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}

.stats-detail-dialog .single-detail-body {
  grid-template-columns: minmax(0, 1fr);
}

.stats-detail-dialog h2 {
  margin: 0;
  padding-right: 70px;
}

.admin-stats-detail-dialog {
  width: min(880px, 96vw);
  height: min(760px, 88vh);
}

.admin-stats-detail-dialog .visitor-panel {
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #eef1ec;
}

.admin-stats-detail-dialog .visitor-row {
  padding: 13px;
}

.admin-stats-detail-dialog .visitor-row strong {
  font-size: 16px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
}

.store-detail-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.store-detail-section + .store-detail-section {
  margin-top: 0;
}

.store-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.store-detail-heading strong {
  color: var(--accent);
  font-size: 20px;
}

.store-detail-heading a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.store-detail-heading > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.store-detail-body {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.personal-store-panel,
.single-store-detail {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.personal-store-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
}

.personal-store-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.personal-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.personal-detail-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.personal-detail-section h3 {
  margin: 0;
}

.vip-keep-entry {
  grid-column: 2 / -1;
  align-self: end;
}

.vip-keep-open-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--vip-gold, #b88916);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(184, 137, 22, 0.18);
  -webkit-tap-highlight-color: transparent;
}

.vip-keep-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.36);
}

.vip-keep-modal[hidden] {
  display: none;
}

.vip-keep-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(980px, 96vw);
  max-height: min(860px, 92vh);
  padding: 20px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(22, 37, 34, 0.24);
}

.vip-keep-head,
.vip-keep-paybox,
.vip-keep-line,
.vip-keep-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vip-keep-head h2,
.vip-keep-head p {
  margin: 0;
}

.vip-keep-paybox {
  padding: 12px;
  border: 1px solid #cfe4df;
  border-radius: 8px;
  background: #f1f8f6;
}

.vip-keep-paybox p {
  margin: 4px 0 0;
  color: var(--muted);
}

.vip-keep-total {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e0d1a2;
  border-radius: 8px;
  background: #fffaf0;
}

.vip-keep-total span {
  color: var(--muted);
  font-weight: 900;
}

.vip-keep-total strong {
  color: var(--price);
  font-size: 24px;
}

.vip-keep-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #eef1ec;
}

.vip-keep-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.vip-keep-group h3 {
  margin: 0;
  color: var(--accent);
}

.vip-keep-item,
.vip-keep-admin-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.vip-keep-item.delete-pending,
.vip-keep-admin-card.delete-requested {
  border-color: #d6a24b;
  background: #fffaf0;
}

.vip-keep-item img,
.vip-keep-thumb img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.vip-keep-item h4,
.vip-keep-item p,
.vip-keep-item small,
.vip-keep-admin-card p,
.vip-keep-admin-card small {
  margin: 0;
}

.vip-keep-item h4,
.vip-keep-admin-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vip-keep-pending,
.delete-request-note {
  display: inline-block;
  margin-top: 4px;
  color: #9a5b00;
  font-weight: 800;
}

.vip-keep-delete-btn {
  min-width: 112px;
}

.vip-keep-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.vip-keep-summary {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.vip-keep-summary .danger-btn,
.vip-keep-card-actions .danger-btn {
  min-height: 40px;
}

.vip-keep-admin-card {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.vip-keep-thumb {
  padding: 0;
}

.vip-keep-thumb img {
  width: 64px;
  height: 64px;
}

.source-pill {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: #e8f4f1;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.vip-keep-card-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.purchase-idea-list,
.purchase-content {
  display: grid;
  gap: 12px;
}

.purchase-idea-admin-card,
.purchase-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.purchase-idea-admin-card {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
}

.purchase-idea-thumb,
.purchase-card-image {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.purchase-idea-thumb {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f6f3;
}

.purchase-idea-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-image-button {
  width: 120px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.purchase-image-button:focus-visible {
  outline: 3px solid rgba(18, 134, 120, 0.28);
  outline-offset: 3px;
}

.purchase-image-button .purchase-card-image {
  display: block;
}

.purchase-idea-thumb.empty-thumb {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.purchase-idea-admin-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.purchase-idea-admin-main textarea,
.purchase-idea-admin-main select,
.purchase-idea-image-field input {
  width: 100%;
}

.purchase-idea-image-field {
  grid-column: 1 / -1;
}

.purchase-idea-vote-summary,
.purchase-idea-voters,
.purchase-idea-admin-actions,
.purchase-vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.purchase-idea-vote-summary span,
.purchase-idea-voters span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4f0;
  color: var(--muted);
  font-weight: 800;
}

.purchase-card h3,
.purchase-card p {
  margin: 0;
}

.purchase-card {
  grid-template-columns: 120px minmax(0, 1fr);
}

.purchase-card-image {
  width: 120px;
  height: 120px;
}

.purchase-card .purchase-vote-actions {
  grid-column: 1 / -1;
}

.purchase-card h3 {
  overflow-wrap: anywhere;
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 108;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.38);
}

.purchase-modal[hidden] {
  display: none;
}

.purchase-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(920px, 96vw);
  max-height: 88vh;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(22, 37, 34, 0.24);
}

.purchase-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.purchase-head h2,
.purchase-head p {
  margin: 0;
}

.purchase-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #eef1ec;
}

@media (max-width: 980px) {
  .shop-top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .shop-top-actions .language-switch {
    flex: 1 1 100%;
  }
}

@media (max-width: 980px) {
  .shop-shell {
    grid-template-columns: 1fr;
  }

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

  .master-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .store-mini-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stats-detail-dialog .store-columns-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .product-preview-panel {
    min-height: auto;
  }

  .product-list-scroll {
    max-height: 520px;
    min-height: 320px;
  }

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

  .checkout-panel {
    position: static;
    max-height: none;
  }

  .admin-form,
  .admin-product {
    grid-template-columns: 1fr 1fr;
  }

  .admin-form .wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  body {
    background: #f3f5f1;
  }

  .topbar-inner,
  .section-head,
  .payment-box,
  .order-top {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 12px;
  }

  .topbar h1 {
    font-size: 22px;
    line-height: 1.15;
  }

  .brand-block {
    grid-column: 1 / -1;
  }

  .eyebrow {
    font-size: 12px;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .shop-top-actions {
    display: contents;
  }

  .purchase-open-btn {
    grid-column: 1;
    align-self: center;
    width: 100%;
    max-width: none;
    min-height: 38px;
    padding-inline: 12px;
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
  }

  .header-vip-keep-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    white-space: normal;
  }

  .cart-jump-btn {
    grid-column: 2;
    align-self: center;
    width: 100%;
    max-width: none;
    min-height: 38px;
    padding-inline: 12px;
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
  }

  .language-switch {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-menu {
    grid-column: 1 / -1;
    width: 100%;
  }

  .account-button {
    width: 100%;
    min-height: 44px;
  }

  .account-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .lang-btn {
    width: 100%;
  }

  .shop-shell,
  .admin-shell {
    gap: 12px;
    padding-top: 12px;
    padding-inline: 12px;
    padding-bottom: 24px;
  }

  .section-head,
  .panel-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .search-box {
    width: 100%;
  }

  .admin-filter-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .admin-filter-summary {
    font-size: 12px;
  }

  .product-filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tag-filter-row {
    justify-content: stretch;
    margin-top: -2px;
  }

  .tag-filter-row label {
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    min-height: 40px;
    padding-inline: 8px;
    font-size: 14px;
  }

  .product-area,
  .checkout-panel,
  .admin-band {
    padding: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card img {
    aspect-ratio: 1 / 1;
  }

  .product-tag-title {
    font-size: 22px;
  }

  .product-info {
    gap: 8px;
    padding: 10px;
  }

  .product-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .category,
  .stock {
    font-size: 12px;
  }

  .product-info h3 {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-info p {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .price {
    font-size: 18px;
  }

  .product-card .primary-btn {
    width: 100%;
    min-height: 40px;
    padding-inline: 8px;
    font-size: 14px;
  }

  .product-card .vip-discount-btn {
    width: 100%;
    min-height: 40px;
    padding-inline: 8px;
    font-size: 13px;
    line-height: 1.2;
  }

  label input,
  label textarea,
  select,
  .primary-btn,
  .ghost-btn,
  .danger-btn,
  .pay-link {
    min-height: 44px;
    font-size: 16px;
  }

  .checkout-panel {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .checkout-customer-summary,
  .auth-head,
  .account-panel-head,
  .account-order-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-customer-summary .ghost-btn,
  .auth-head .ghost-btn,
  .account-panel-head .ghost-btn {
    width: 100%;
  }

  .auth-modal,
  .account-panel-modal {
    align-items: start;
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .auth-dialog,
  .account-panel-dialog {
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .auth-actions,
  .account-form,
  .account-tabs {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .cart-row img {
    width: 56px;
    height: 56px;
  }

  .qty-control {
    min-width: 104px;
  }

  .file-picker {
    grid-template-columns: 1fr;
  }

  .payment-actions,
  .payment-actions .pay-link,
  .payment-actions .keep-btn {
    width: 100%;
  }

  .paypal-checkout {
    padding: 12px;
  }

  .paypal-checkout-head {
    align-items: stretch;
    flex-direction: column;
  }

  .paypal-environment {
    align-self: flex-start;
  }

  .admin-form,
  .admin-product {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .master-stats-grid,
  .vision-actions,
  .vision-result-actions {
    grid-template-columns: 1fr;
  }

  .store-card-head,
  .store-mini-stats {
    grid-template-columns: 1fr;
  }

  .store-card-head {
    display: grid;
  }

  .stats-detail-modal {
    align-items: end;
    padding: 10px;
  }

  .stats-detail-dialog {
    width: 100%;
    max-height: 86vh;
    padding: 18px 14px;
  }

  .stats-detail-dialog .store-columns-body,
  .stats-detail-dialog .single-detail-body,
  .personal-stat-grid {
    grid-template-columns: 1fr;
  }

  .store-detail-heading {
    display: grid;
    align-items: start;
  }

  .product-preview-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .product-preview-card img,
  .selected-product-card img {
    width: 72px;
    height: 72px;
  }

  .product-preview-stats {
    grid-column: 2;
    justify-items: start;
  }

  .selected-product-card {
    grid-template-columns: 1fr;
  }

  .selected-actions {
    position: sticky;
    bottom: -16px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 0 16px;
    background: var(--surface);
  }

  .product-edit-modal {
    align-items: end;
    padding: 10px;
  }

  .product-edit-dialog {
    width: 100%;
    max-height: 90vh;
    padding: 16px;
  }

  .admin-form .wide {
    grid-column: span 1;
  }

  .order-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .order-item strong {
    grid-column: 2;
  }

  .order-management-tools,
  .customer-edit-form,
  .customer-meta-grid {
    grid-template-columns: 1fr;
  }

  .admin-management-tools,
  .order-management-tools {
    width: 100%;
  }

  .customer-card-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .customer-entry {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .vip-keep-entry {
    grid-column: auto;
  }

  .customer-entry h2 {
    font-size: 18px;
  }

  .payment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .payment-actions .pay-link,
  .payment-actions .line-pay-link,
  .payment-actions .keep-btn {
    width: 100%;
    min-height: 40px;
  }

  .vip-keep-modal {
    align-items: end;
    padding: 10px;
  }

  .vip-keep-dialog {
    width: 100%;
    max-height: 86vh;
    padding: 16px 14px max(16px, env(safe-area-inset-bottom));
  }

  .vip-keep-head,
  .vip-keep-paybox,
  .vip-keep-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .vip-keep-content {
    grid-template-columns: 1fr;
  }

  .vip-keep-item,
  .vip-keep-admin-card {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }

  .vip-keep-item img,
  .vip-keep-thumb img {
    width: 64px;
    height: 64px;
  }

  .vip-keep-delete-btn,
  .vip-keep-card-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .vip-keep-delete-btn,
  .vip-keep-card-actions .danger-btn,
  .vip-keep-open-btn {
    min-height: 48px;
    touch-action: manipulation;
  }

  .purchase-dialog {
    width: 100%;
    max-height: 86vh;
    padding: 16px 14px max(16px, env(safe-area-inset-bottom));
  }

  .purchase-head,
  .purchase-idea-admin-actions,
  .purchase-vote-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-idea-admin-main {
    grid-template-columns: 1fr;
  }

  .purchase-idea-admin-card,
  .purchase-card {
    grid-template-columns: 1fr;
  }

  .purchase-idea-thumb,
  .purchase-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .purchase-image-button {
    width: 100%;
  }

  .purchase-vote-actions .primary-btn,
  .purchase-vote-actions .ghost-btn,
  .purchase-idea-admin-actions .primary-btn,
  .purchase-idea-admin-actions .danger-btn {
    width: 100%;
    min-height: 48px;
    touch-action: manipulation;
  }

  .admin-workbench {
    gap: 12px;
  }

  .product-number-lookup {
    padding: 12px;
  }

  .product-number-lookup-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-number-lookup-form > label {
    font-size: 16px;
  }

  .product-number-lookup-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .product-number-lookup-controls button {
    padding-inline: 14px;
    white-space: nowrap;
  }

  .product-preview-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    min-height: 76px;
    gap: 10px;
    padding: 9px;
  }

  .product-preview-card img {
    width: 56px;
    height: 56px;
  }

  .product-preview-main h3 {
    font-size: 16px;
  }

  .product-preview-stats {
    grid-column: auto;
    justify-items: end;
  }

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

  .stage-choice-button {
    min-height: 48px;
    font-size: 14px;
  }

  .admin-stats-detail-modal {
    align-items: end;
    padding: 10px;
  }

  .admin-stats-detail-dialog {
    width: 100%;
    height: min(86vh, 760px);
    max-height: 86vh;
    padding: 16px;
  }

  .admin-stats-detail-dialog h2 {
    font-size: 22px;
  }
}

@supports (-webkit-touch-callout: none) {
  #productForm input,
  #productForm select,
  #productForm textarea,
  #productForm button,
  .product-number-lookup-controls input,
  .product-edit-dialog input,
  .product-edit-dialog select,
  .product-edit-dialog textarea,
  .auth-dialog input,
  .auth-dialog button,
  .account-panel-dialog input,
  .account-panel-dialog textarea,
  .account-panel-dialog button {
    font-size: 16px;
  }
}

/* V31 customer storefront: monochrome icon navigation and editorial commerce UI */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.shop-page {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --line: #deded9;
  --line-strong: #bdbdb7;
  --ink: #171716;
  --muted: #73736d;
  --accent: #171716;
  --accent-strong: #000000;
  --price: #171716;
  --warning: #a43b2b;
  --shadow: 0 18px 50px rgba(22, 22, 20, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Yu Gothic", "Microsoft YaHei", sans-serif;
  background: var(--bg);
}

.shop-page .topbar {
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #e7e7e2;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.shop-page .topbar-inner {
  width: min(1560px, 100%);
  min-height: 82px;
  padding: 16px clamp(20px, 3.5vw, 54px);
}

.shop-page .brand-block {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  column-gap: 10px;
}

.shop-page .brand-block .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 3px;
  color: #777772;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.shop-page .topbar h1 {
  font-size: 23px;
  font-weight: 600;
}

.shop-page .vip-badge {
  min-height: 22px;
  margin: 0 0 2px;
  padding: 0 7px;
  color: #2a2111;
  background: #d8bd79;
  border-color: #b99a50;
  border-radius: 3px;
  font-size: 10px;
}

.shop-page .shop-top-actions {
  gap: 2px;
}

.shop-page .icon-action {
  position: relative;
  display: inline-grid;
  width: 46px;
  height: 46px;
  min-height: 46px;
  place-items: center;
  padding: 0;
  color: #171716;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-weight: 500;
  touch-action: manipulation;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.shop-page .icon-action:hover,
.shop-page .icon-action:focus-visible,
.shop-page .icon-action[aria-expanded="true"] {
  color: #000;
  background: #efefec;
}

.shop-page .icon-action:active {
  transform: scale(0.94);
}

.shop-page .icon-action .ui-icon {
  width: 25px;
  height: 25px;
}

.shop-page .icon-action.has-active-filter::before,
.shop-page .account-button.is-logged-in::before {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  content: "";
  background: #171716;
  border-radius: 50%;
}

.shop-page .icon-count,
.shop-page .mobile-nav-count {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: #171716;
  border: 2px solid #fff;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
}

.shop-page .header-vip-keep-btn {
  width: 46px;
  min-height: 46px;
  padding: 0;
}

.shop-page .language-menu,
.shop-page .account-menu {
  position: relative;
  flex: 0 0 auto;
}

.shop-page .icon-corner-code {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 18px;
  padding: 1px 3px;
  color: #fff;
  background: #171716;
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.shop-page .language-switch {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 140;
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 3px;
  width: auto;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 16px 38px rgba(20, 20, 18, 0.14);
}

.shop-page .language-switch[hidden] {
  display: none;
}

.shop-page .lang-btn {
  width: 42px;
  height: 36px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.shop-page .lang-btn.active {
  color: #fff;
  background: #171716;
}

.shop-page .account-dropdown {
  top: calc(100% + 8px);
  width: 226px;
  padding: 7px;
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(20, 20, 18, 0.15);
}

.shop-page .account-dropdown button {
  min-height: 43px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
}

.shop-page .account-dropdown button:hover {
  background: #f1f1ee;
}

.shop-page .search-box {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 130;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 40px;
  align-items: center;
  width: min(720px, calc(100% - 32px));
  padding: 10px 11px 10px 16px;
  visibility: hidden;
  background: #fff;
  border: 1px solid #d1d1cc;
  border-radius: 6px;
  box-shadow: 0 22px 60px rgba(20, 20, 18, 0.16);
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}

.shop-page .search-box.is-open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
  transition: opacity 150ms ease, transform 150ms ease;
}

.shop-page .search-field-icon {
  width: 21px;
  height: 21px;
  color: #5f5f5a;
}

.shop-page .search-box input {
  min-height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 17px;
}

.shop-page .search-box input:focus {
  outline: 0;
  box-shadow: none;
}

.shop-page .search-close-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: #555550;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.shop-page .search-close-button:hover {
  background: #efefec;
}

.shop-page .search-close-button .ui-icon {
  width: 20px;
  height: 20px;
}

.shop-page .shop-shell {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  width: min(1560px, 100%);
  padding: 28px clamp(20px, 3.5vw, 54px) 64px;
}

.shop-page .product-area {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.shop-page .section-head {
  align-items: center;
  min-height: 48px;
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-strong);
}

.shop-page .section-head h2 {
  font-size: 21px;
  font-weight: 600;
}

.shop-page .product-filter-tabs {
  gap: 0;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.shop-page .filter-btn {
  min-height: 42px;
  padding: 0 18px;
  color: #75756f;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
}

.shop-page .filter-btn.active,
.shop-page.vip-mode .filter-btn.active {
  color: #171716;
  background: transparent;
  border-color: #171716;
}

.shop-page .tag-filter-row {
  justify-content: flex-start;
  margin: 0 0 18px;
}

.shop-page .tag-filter-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 100%);
  color: #777772;
  font-size: 12px;
  font-weight: 600;
}

.shop-page .tag-filter-row select {
  min-height: 38px;
  border-radius: 3px;
  font-size: 13px;
}

.shop-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px 14px;
}

.shop-page .product-card {
  border-color: #e0e0dc;
  border-radius: 4px;
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.shop-page .product-card:hover {
  border-color: #a7a7a1;
  box-shadow: 0 14px 34px rgba(22, 22, 20, 0.08);
  transform: translateY(-2px);
}

.shop-page .product-card img {
  aspect-ratio: 1 / 1;
  background: #eeeeeb;
}

.shop-page .product-info {
  gap: 8px;
  padding: 13px;
}

.shop-page .product-meta {
  align-items: flex-start;
}

.shop-page .stage-pill,
.shop-page .customer-product-number {
  min-height: 22px;
  padding: 0 7px;
  color: #656560;
  background: #f2f2ef;
  border-color: #ddddda;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 650;
}

.shop-page .stage-week {
  color: #665630;
  background: #f3efe5;
  border-color: #ddd2b6;
}

.shop-page .product-tag-title,
.shop-page .product-info h3 {
  min-height: 0;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.35;
}

.shop-page .product-info p {
  min-height: 0;
  color: #777772;
  font-size: 12px;
}

.shop-page .price {
  color: #171716;
  font-size: 18px;
  font-weight: 650;
}

.shop-page .money-pair small {
  color: #8b8b85;
  font-weight: 500;
}

.shop-page .product-actions .primary-btn,
.shop-page .primary-btn {
  color: #fff;
  background: #171716;
  border-color: #171716;
  border-radius: 4px;
  font-weight: 600;
}

.shop-page .product-actions .primary-btn:hover,
.shop-page .primary-btn:hover {
  background: #000;
}

.shop-page .ghost-btn {
  border-color: #d6d6d1;
  border-radius: 4px;
  font-weight: 600;
}

.shop-page .primary-btn:disabled {
  color: #f8f8f6;
  background: #a8a8a2;
  border-color: #a8a8a2;
}

.shop-page .checkout-panel {
  top: 104px;
  padding: 19px;
  border-color: #deded9;
  border-radius: 4px;
  box-shadow: 0 18px 45px rgba(22, 22, 20, 0.06);
}

.shop-page .panel-head h2 {
  font-size: 20px;
  font-weight: 600;
}

.shop-page .count-pill {
  min-height: 24px;
  padding: 0 8px;
  color: #fff;
  background: #171716;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.shop-page .cart-row img,
.shop-page .checkout-customer-summary,
.shop-page .paypal-checkout {
  border-radius: 4px;
}

.shop-page .total-row {
  border-top-width: 1px;
  border-top-color: var(--line-strong);
}

.shop-page .total-row strong {
  color: #171716;
  font-weight: 650;
}

.shop-page .paypal-checkout {
  border-color: #d8d8d3;
}

.shop-page .auth-modal,
.shop-page .account-panel-modal,
.shop-page .vip-keep-modal,
.shop-page .purchase-modal,
.shop-page .image-preview-modal {
  background: rgba(18, 18, 17, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.shop-page .auth-dialog,
.shop-page .account-panel-dialog,
.shop-page .vip-keep-dialog,
.shop-page .purchase-dialog {
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(18, 18, 17, 0.2);
}

.shop-page .account-panel-dialog {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1040px, 94vw);
  min-height: min(720px, 86vh);
  padding: 0;
  overflow: hidden;
}

.shop-page .account-panel-head {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.shop-page .account-panel-head h2 {
  font-size: 25px;
  font-weight: 600;
}

.shop-page .account-panel-head p {
  font-size: 13px;
}

.shop-page .account-tabs {
  grid-column: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 16px 12px;
  background: #f5f5f2;
  border-right: 1px solid var(--line);
}

.shop-page .account-tab {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 13px;
  color: #666661;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.shop-page .account-tab .ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.shop-page .account-tab.active {
  color: #fff;
  background: #171716;
}

.shop-page .account-panel-body {
  grid-column: 2;
  min-width: 0;
  overflow-y: auto;
  padding: 24px;
}

.shop-page .account-panel-body h3 {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 600;
}

.shop-page .account-order-card {
  border-radius: 4px;
}

.shop-page .account-form input,
.shop-page .account-form textarea,
.shop-page .auth-form input,
.shop-page .customer-support-form textarea {
  border-radius: 4px;
}

.shop-page .support-message-list {
  background: #f4f4f1;
  border-radius: 4px;
}

.shop-page .support-message {
  border-radius: 4px;
}

.shop-page .support-message-customer {
  color: #fff;
  background: #252524;
  border-color: #252524;
}

@media (max-width: 760px) {
  .shop-page {
    padding-bottom: 0;
    background: #fff;
  }

  .shop-page .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    min-height: 0;
    padding: max(10px, env(safe-area-inset-top)) 12px 8px;
  }

  .shop-page .brand-block {
    grid-column: 1;
    min-height: 42px;
    padding-inline: 3px;
  }

  .shop-page .brand-block h1 {
    max-width: calc(100vw - 90px);
    overflow: hidden;
    font-size: 21px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shop-page .brand-block .eyebrow {
    font-size: 10px;
  }

  .shop-page .shop-top-actions {
    display: flex;
    grid-column: 1;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    overflow-x: auto;
    padding: 1px 0;
    scrollbar-width: none;
  }

  .shop-page .shop-top-actions::-webkit-scrollbar {
    display: none;
  }

  .shop-page .shop-top-actions > button,
  .shop-page .shop-top-actions > .account-menu,
  .shop-page .shop-top-actions > .language-menu {
    display: block;
    flex: 0 0 auto;
  }

  .shop-page .shop-top-actions > [hidden] {
    display: none !important;
  }

  .shop-page .icon-action,
  .shop-page .header-vip-keep-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .shop-page .icon-action .ui-icon {
    width: 24px;
    height: 24px;
  }

  .shop-page .language-switch {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 102px);
    right: 12px;
  }

  .shop-page .account-dropdown {
    display: none !important;
  }

  .shop-page .search-box {
    top: calc(env(safe-area-inset-top) + 104px);
    width: calc(100% - 24px);
    padding: 8px 9px 8px 14px;
  }

  .shop-page .search-box input {
    min-height: 44px;
    font-size: 16px;
  }

  .shop-page .shop-shell {
    display: block;
    width: 100%;
    padding: 12px 0 calc(24px + env(safe-area-inset-bottom));
  }

  .shop-page .product-area {
    width: 100%;
    padding: 0 12px;
    border: 0;
  }

  .shop-page .section-head {
    min-height: 42px;
    margin-bottom: 9px;
    padding-bottom: 9px;
  }

  .shop-page .section-head h2 {
    font-size: 18px;
  }

  .shop-page .product-filter-tabs {
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
  }

  .shop-page .product-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .shop-page .product-filter-tabs .filter-btn {
    min-width: max-content;
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .shop-page .tag-filter-row label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
  }

  .shop-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .shop-page .product-card {
    border-radius: 3px;
  }

  .shop-page .product-card:hover {
    box-shadow: none;
    transform: none;
  }

  .shop-page .product-info {
    gap: 7px;
    padding: 10px;
  }

  .shop-page .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .shop-page .product-meta-left {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .shop-page .product-tag-title,
  .shop-page .product-info h3 {
    font-size: 14px;
  }

  .shop-page .product-info p {
    min-height: 0;
    font-size: 11px;
  }

  .shop-page .price {
    font-size: 16px;
  }

  .shop-page .product-actions .primary-btn,
  .shop-page .vip-discount-btn {
    min-height: 40px;
    padding: 6px;
    font-size: 12px;
  }

  .shop-page .mobile-shop-nav {
    display: none !important;
  }

  .shop-page .checkout-panel {
    padding: max(12px, env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom));
    background: #fff;
  }

  .shop-page .checkout-panel .panel-head {
    margin: calc(-1 * max(12px, env(safe-area-inset-top))) -12px 14px;
    padding: max(12px, env(safe-area-inset-top)) 12px 11px;
  }

  .shop-page .auth-dialog,
  .shop-page .account-panel-dialog {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    padding: 0 12px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 0;
  }

  .shop-page .auth-head,
  .shop-page .account-panel-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 -12px 0;
    padding: max(14px, env(safe-area-inset-top)) 12px 12px;
    background: #fff;
  }

  .shop-page .account-panel-head h2 {
    font-size: 22px;
  }

  .shop-page .account-panel-head p {
    display: none;
  }

  .shop-page .account-tabs {
    position: sticky;
    top: calc(env(safe-area-inset-top) + 68px);
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    margin: 0 -12px;
    padding: 7px 8px;
    background: #f5f5f2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .shop-page .account-tab {
    display: grid;
    min-width: 0;
    min-height: 54px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 4px 2px;
    font-size: 10px;
    text-align: center;
  }

  .shop-page .account-tab .ui-icon {
    width: 20px;
    height: 20px;
  }

  .shop-page .account-panel-body {
    padding: 18px 0 0;
    overflow: visible;
  }

  .shop-page .account-panel-body h3 {
    font-size: 18px;
  }

  .shop-page .account-form,
  .shop-page .auth-actions {
    grid-template-columns: 1fr;
  }

  .shop-page .account-panel-dialog input,
  .shop-page .account-panel-dialog textarea,
  .shop-page .auth-dialog input,
  .shop-page .auth-dialog textarea {
    font-size: 16px;
  }
}

@supports (-webkit-touch-callout: none) {
  .shop-page .icon-action,
  .shop-page .filter-btn,
  .shop-page .account-tab,
  .shop-page .search-close-button {
    -webkit-tap-highlight-color: transparent;
  }

  .shop-page .search-box input {
    font-size: 16px;
  }
}

/* Admin command center */
.admin-center-page {
  min-height: 100vh;
  background: #f4f6f3;
}

.admin-center-page.admin-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.admin-center-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #dce1da;
  background: rgba(250, 251, 249, 0.96);
}

.admin-command-center {
  display: grid;
  gap: 22px;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 54px) 54px;
}

.admin-command-welcome,
.admin-command-stats,
.admin-command-modules {
  border: 1px solid #dce1da;
  border-radius: 8px;
  background: #fff;
}

.admin-command-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
}

.admin-command-welcome h2,
.command-section-heading h2 {
  margin: 0;
  color: var(--ink);
}

.admin-command-welcome h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.admin-command-welcome p:last-child,
.command-section-heading p,
.module-description,
.module-form-intro p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.command-primary-action {
  min-width: 156px;
  min-height: 48px;
  white-space: nowrap;
}

.admin-command-stats,
.admin-command-modules {
  padding: 22px;
}

.command-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.command-section-heading h2 {
  font-size: 24px;
}

.command-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.command-stats-grid .stat-card {
  min-height: 118px;
  padding: 16px;
  text-align: left;
  border-color: #dce1da;
  background: #f8faf7;
}

.command-stats-grid .stat-card:hover {
  border-color: var(--accent);
  background: #f1f8f5;
}

.command-stats-grid .stat-card strong {
  font-size: 28px;
}

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

.admin-module-launch {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 104px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  border: 1px solid #dce1da;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.admin-module-launch:hover {
  border-color: var(--accent);
  background: #f5faf7;
  transform: translateY(-1px);
}

.admin-module-launch:focus-visible {
  outline: 3px solid rgba(15, 129, 116, 0.24);
  outline-offset: 2px;
}

.admin-module-launch-featured {
  grid-column: span 2;
  border-color: #94bdb5;
  background: #eef7f4;
}

.admin-module-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 8px;
  background: #177f74;
}

.admin-module-launch:nth-child(2) .admin-module-icon {
  background: #315d87;
}

.admin-module-launch:nth-child(3) .admin-module-icon {
  background: #6f5b82;
}

.admin-module-launch:nth-child(4) .admin-module-icon {
  background: #af701d;
}

.admin-module-launch:nth-child(5) .admin-module-icon {
  background: #84692e;
}

.admin-module-launch:nth-child(9) .admin-module-icon {
  background: #4f5962;
}

.admin-module-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.admin-module-copy strong {
  font-size: 18px;
}

.admin-module-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.admin-module-count,
.admin-module-arrow {
  display: grid;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  place-items: center;
  color: #176f67;
  font-weight: 900;
  border-radius: 999px;
  background: #e3f2ee;
}

.admin-module-arrow {
  color: #6b746f;
  font-size: 28px;
  background: transparent;
}

.admin-module-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  padding: clamp(14px, 3vw, 34px);
  place-items: center;
  background: rgba(24, 31, 29, 0.54);
  -webkit-overflow-scrolling: touch;
}

.admin-module-modal[hidden] {
  display: none;
}

.admin-module-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(900px, 100%);
  max-height: min(92vh, 980px);
  overflow: hidden;
  border: 1px solid #d7ddd6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(20, 28, 25, 0.22);
}

.admin-module-dialog-wide {
  width: min(1460px, 100%);
  height: min(92vh, 980px);
}

.admin-module-dialog-compact {
  width: min(680px, 100%);
  height: auto;
  max-height: min(88vh, 820px);
}

.admin-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #dce1da;
  background: #fbfcfa;
}

.admin-module-head h2 {
  margin: 0;
  font-size: 28px;
}

.admin-module-close {
  min-width: 72px;
  min-height: 44px;
}

.admin-module-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 22px 0;
  border-bottom: 1px solid #dce1da;
  background: #fbfcfa;
  scrollbar-width: none;
}

.admin-module-tabs::-webkit-scrollbar {
  display: none;
}

.admin-module-tab {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 20px;
  color: #65716b;
  font-size: 15px;
  font-weight: 850;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.admin-module-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-module-dialog-tabs {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-module-body {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-product-module-body {
  overflow: hidden;
}

.admin-tab-panel {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 2px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-tab-panel[data-admin-tab-panel="product-add"],
.admin-tab-panel[data-admin-tab-panel="product-vision"] {
  padding: 4px min(3vw, 34px) 24px;
}

.admin-tab-panel .product-number-lookup-form {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #dce1da;
  border-radius: 8px;
  background: #f7f9f6;
}

.admin-tab-panel .admin-filter-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.admin-tab-panel .product-list-scroll {
  max-height: none;
  min-height: 0;
}

.module-form-intro {
  margin: 0 0 18px;
}

.module-form-intro h3 {
  margin: 0;
  font-size: 21px;
}

.admin-form-spacious {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form-spacious .wide {
  grid-column: 1 / -1;
}

.admin-module-body .compact-form {
  max-width: none;
}

.module-description {
  margin: 0 0 18px;
}

.module-sticky-tools {
  position: sticky;
  top: -22px;
  z-index: 3;
  margin: -22px -22px 18px;
  padding: 16px 22px;
  border-bottom: 1px solid #dce1da;
  background: rgba(255, 255, 255, 0.97);
}

.module-split-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
}

.module-side-form {
  align-content: start;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #dce1da;
  border-radius: 8px;
  background: #f8faf7;
}

.module-result-list {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-module-body .customers-list,
.admin-module-body .orders-list {
  max-width: none;
}

.product-edit-modal {
  z-index: 105;
}

.admin-stats-detail-modal {
  z-index: 115;
}

.image-preview-modal {
  z-index: 135;
}

@media (max-width: 1080px) {
  .admin-module-launch-grid,
  .command-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-module-launch-featured {
    grid-column: span 2;
  }

  .module-split-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .admin-center-topbar .topbar-inner {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  }

  .admin-center-topbar .brand-block {
    flex: 1 1 auto;
    min-width: 0;
  }

  .admin-center-topbar .brand-block h1 {
    font-size: 21px;
  }

  .admin-center-topbar .top-actions {
    flex: 0 0 auto;
    width: auto;
    gap: 7px;
  }

  .admin-center-topbar .top-actions a,
  .admin-center-topbar .top-actions button {
    min-height: 42px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .admin-command-center {
    gap: 14px;
    padding: 14px 12px max(28px, env(safe-area-inset-bottom));
  }

  .admin-command-welcome {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .admin-command-welcome h2 {
    font-size: 27px;
  }

  .command-primary-action {
    width: 100%;
  }

  .admin-command-stats,
  .admin-command-modules {
    padding: 16px;
  }

  .command-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .command-stats-grid .stat-card {
    min-height: 104px;
    padding: 12px;
  }

  .command-stats-grid .stat-card strong {
    font-size: 23px;
  }

  .command-stats-grid .stat-card small {
    font-size: 11px;
  }

  .admin-module-launch-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .admin-module-launch,
  .admin-module-launch-featured {
    grid-column: auto;
    min-height: 88px;
    padding: 13px;
  }

  .admin-module-icon {
    width: 44px;
    height: 44px;
  }

  .admin-module-modal {
    align-items: end;
    padding: max(8px, env(safe-area-inset-top)) 0 0;
    background: rgba(24, 31, 29, 0.5);
  }

  .admin-module-dialog,
  .admin-module-dialog-wide,
  .admin-module-dialog-compact {
    width: 100%;
    height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    max-height: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .admin-module-head {
    position: relative;
    padding: 14px 14px 12px;
  }

  .admin-module-head h2 {
    font-size: 23px;
  }

  .admin-module-close {
    min-width: 66px;
    min-height: 44px;
  }

  .admin-module-tabs {
    padding: 6px 10px 0;
  }

  .admin-module-tab {
    min-height: 48px;
    padding: 0 15px;
  }

  .admin-module-body {
    padding: 14px 12px max(22px, env(safe-area-inset-bottom));
  }

  .admin-product-module-body {
    padding-top: 10px;
  }

  .admin-tab-panel[data-admin-tab-panel="product-add"],
  .admin-tab-panel[data-admin-tab-panel="product-vision"] {
    padding: 4px 2px max(20px, env(safe-area-inset-bottom));
  }

  .admin-tab-panel .product-number-lookup-form {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .admin-tab-panel .admin-filter-bar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tab-panel .admin-filter-bar label:first-child {
    grid-column: 1 / -1;
  }

  .admin-tab-panel .admin-filter-summary {
    grid-column: 1 / -1;
  }

  .admin-form-spacious,
  .module-split-layout {
    grid-template-columns: 1fr;
  }

  .module-split-layout {
    overflow-y: auto;
  }

  .module-side-form {
    max-height: none;
    overflow: visible;
    padding: 14px;
  }

  .module-result-list {
    overflow: visible;
  }

  .module-sticky-tools {
    top: -14px;
    margin: -14px -12px 14px;
    padding: 12px;
  }

  .admin-center-page input,
  .admin-center-page select,
  .admin-center-page textarea,
  .admin-module-modal input,
  .admin-module-modal select,
  .admin-module-modal textarea {
    font-size: 16px;
  }

  .admin-module-modal button,
  .admin-module-modal input,
  .admin-module-modal select {
    min-height: 46px;
    touch-action: manipulation;
  }
}

@media (max-width: 390px) {
  .admin-center-topbar .top-actions a,
  .admin-center-topbar .top-actions button {
    padding: 0 9px;
    font-size: 13px;
  }

  .admin-tab-panel .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-tab-panel .admin-filter-bar label:first-child {
    grid-column: auto;
  }
}

/* V33 product detail, editable service pages, and global footer */
.shop-page .product-card-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shop-page .product-tag-title a {
  color: inherit;
  text-decoration: none;
}

.shop-page .product-tag-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-detail-page,
.site-info-page {
  width: 100%;
  min-width: 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}

.product-detail-gallery {
  min-width: 0;
  background: #f4f4f2;
}

.product-detail-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.product-detail-image-button img {
  display: block;
  width: 100%;
  max-height: 760px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-detail-summary {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding-top: 8px;
}

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}

.product-detail-summary h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.product-detail-subtitle {
  margin: 14px 0 0;
  color: #6e706b;
  font-size: 18px;
}

.product-detail-price {
  margin-top: 30px;
  color: #171817;
  font-size: 27px;
  font-weight: 720;
}

.product-detail-price .money-pair {
  align-items: baseline;
}

.product-detail-price .money-pair small {
  font-size: 14px;
  font-weight: 500;
}

.product-detail-stock {
  margin: 14px 0 0;
  color: #6e706b;
}

.product-detail-copy {
  margin-top: 28px;
  color: #4f514d;
  line-height: 1.75;
}

.product-detail-copy p {
  margin: 0 0 10px;
}

.product-detail-purchase {
  margin-top: 34px;
}

.product-detail-quantity-label {
  display: block;
  margin-bottom: 10px;
  color: #52544f;
  font-size: 14px;
}

.detail-qty-control {
  display: grid;
  grid-template-columns: 52px minmax(60px, 1fr) 52px;
  width: 220px;
  min-height: 52px;
  border: 1px solid #cfd0cb;
}

.detail-qty-control button,
.detail-qty-control output {
  display: grid;
  min-width: 0;
  padding: 0;
  place-items: center;
  color: #171817;
  background: #fff;
  border: 0;
  border-radius: 0;
  font: inherit;
}

.detail-qty-control button {
  font-size: 22px;
  cursor: pointer;
}

.detail-qty-control button:first-child {
  border-right: 1px solid #e1e2de;
}

.detail-qty-control button:last-child {
  border-left: 1px solid #e1e2de;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.product-detail-actions .primary-btn,
.product-detail-actions .ghost-btn {
  min-height: 58px;
  font-size: 16px;
}

.product-detail-description {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid #dedfda;
  color: #4f514d;
  line-height: 1.85;
}

.product-detail-description h3 {
  margin: 0 0 20px;
  color: #171817;
  font-size: 18px;
}

.product-detail-description p {
  margin: 0 0 12px;
}

.product-detail-unavailable {
  display: grid;
  max-width: 620px;
  min-height: 340px;
  margin: 0 auto;
  place-content: center;
  text-align: center;
}

.product-detail-unavailable h2 {
  margin: 0 0 28px;
  font-size: 28px;
}

.product-detail-unavailable .primary-btn {
  display: inline-grid;
  padding-inline: 26px;
  place-items: center;
  text-decoration: none;
}

.site-info-page {
  max-width: 900px;
  min-height: 440px;
  margin: 0 auto;
}

.site-info-page > h2 {
  margin: 10px 0 30px;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: 0;
}

.site-info-content {
  color: #454743;
  font-size: 17px;
  line-height: 1.9;
}

.site-info-content p {
  margin: 0 0 18px;
}

.site-info-support-link {
  display: inline-grid;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 24px;
  place-items: center;
  color: #fff;
  background: #171817;
  border: 1px solid #171817;
  border-radius: 2px;
  text-decoration: none;
}

.site-footer {
  width: 100%;
  margin-top: 88px;
  color: #20211f;
  background: #f2f2f0;
  border-top: 1px solid #e3e4df;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100% - 48px, 1480px);
  margin: 0 auto;
  padding: 64px 0 58px;
  gap: clamp(40px, 8vw, 150px);
}

.site-footer section {
  display: grid;
  align-content: start;
  gap: 15px;
}

.site-footer h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 720;
}

.site-footer a {
  width: fit-content;
  color: #737570;
  font-size: 15px;
  text-decoration: none;
}

.site-footer a:hover {
  color: #171817;
}

.site-footer-bottom {
  width: min(100% - 48px, 1480px);
  margin: 0 auto;
  padding: 24px 0 30px;
  color: #858782;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid #dedfda;
}

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

.admin-site-content-form textarea {
  min-height: 142px;
  resize: vertical;
}

body[data-admin-view="site-content"] .admin-module-dialog {
  width: min(100%, 1360px);
}

@media (max-width: 820px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-detail-summary {
    position: static;
    padding-top: 0;
  }

  .product-detail-image-button img {
    max-height: none;
  }

  .product-detail-description {
    margin-top: 48px;
  }

  .site-footer-inner {
    gap: 34px;
  }

  .admin-site-content-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body[data-customer-view="product"] .shop-shell,
  body[data-customer-view="info"] .shop-shell {
    padding-top: 18px;
  }

  .product-detail-layout {
    gap: 24px;
  }

  .product-detail-gallery {
    margin-inline: -16px;
  }

  .product-detail-summary h2 {
    font-size: 29px;
  }

  .product-detail-price {
    margin-top: 22px;
    font-size: 24px;
  }

  .product-detail-copy {
    margin-top: 22px;
  }

  .detail-qty-control {
    width: 100%;
    min-height: 54px;
  }

  .product-detail-actions {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .product-detail-actions .primary-btn,
  .product-detail-actions .ghost-btn {
    width: 100%;
    min-height: 54px;
  }

  .product-detail-description {
    margin-top: 40px;
  }

  .site-info-page > h2 {
    margin-bottom: 22px;
    font-size: 34px;
  }

  .site-info-content {
    font-size: 16px;
  }

  .site-footer {
    margin-top: 54px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 42px 20px 38px;
    gap: 38px 24px;
  }

  .site-footer-inner section:last-child {
    grid-column: 1 / -1;
  }

  .site-footer-bottom {
    width: calc(100% - 40px);
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    text-align: left;
  }
}

/* Customer support and iOS-first storefront */
.account-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-shop-nav,
.checkout-close-btn,
.checkout-backdrop {
  display: none;
}

.paypal-checkout,
.paypal-buttons {
  position: relative;
  z-index: 0;
  min-width: 0;
  max-width: 100%;
  isolation: isolate;
  contain: layout paint;
}

.paypal-buttons > div,
.paypal-buttons iframe {
  max-width: 100% !important;
}

.customer-modal-open .paypal-checkout {
  display: none !important;
}

.customer-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

.support-message-list {
  display: flex;
  min-height: 260px;
  max-height: 440px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 12px;
  background: #f5f7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  overscroll-behavior: contain;
}

.support-message {
  width: fit-content;
  max-width: min(78%, 620px);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-message span,
.support-message time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.support-message p {
  margin: 4px 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.support-message-customer {
  align-self: flex-end;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.support-message-customer span,
.support-message-customer time {
  color: rgba(255, 255, 255, 0.78);
}

.customer-support-head,
.support-conversation-header,
.support-thread-button-head,
.support-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-support-head {
  margin-bottom: 12px;
}

.customer-support-head h3,
.customer-support-head p,
.support-conversation-header h3,
.support-conversation-header p {
  margin: 0;
}

.customer-support-head p,
.support-conversation-header p {
  margin-top: 4px;
  color: var(--muted);
}

.customer-support-form,
.support-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.customer-support-form textarea,
.support-reply-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
}

.admin-support-body {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 16px;
  min-height: min(660px, 72vh);
  overflow: hidden;
}

.admin-support-sidebar,
.admin-support-conversation {
  min-height: 0;
}

.admin-support-sidebar,
.admin-support-conversation {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-search-label {
  display: grid;
  gap: 6px;
}

.support-thread-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.support-thread-button {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-thread-button.active {
  border-color: var(--accent);
  box-shadow: inset 3px 0 var(--accent);
}

.support-thread-button.unread {
  background: #eef8f5;
}

.support-thread-button span,
.support-thread-button small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-thread-button-head b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  color: #fff;
  background: #b43312;
  border-radius: 12px;
  font-size: 12px;
}

.support-conversation-header {
  min-height: 58px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.support-status {
  padding: 5px 9px;
  color: var(--accent);
  background: #edf7f4;
  border: 1px solid #cde2dc;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.support-status.resolved {
  color: var(--muted);
  background: #f1f2ef;
  border-color: var(--line);
}

.support-admin-messages {
  min-height: 0;
  max-height: none;
  flex: 1;
}

.moduleSupportCount.has-unread {
  color: #fff;
  background: #b43312;
}

@media (max-width: 640px) {
  body:not(.admin-center-page) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    background: #f6f7f4;
  }

  body:not(.admin-center-page) .topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(250, 251, 249, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body:not(.admin-center-page) .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  }

  body:not(.admin-center-page) .brand-block {
    grid-column: 1;
  }

  body:not(.admin-center-page) .brand-block h1 {
    font-size: 24px;
  }

  body:not(.admin-center-page) .brand-block .eyebrow {
    margin-bottom: 2px;
  }

  body:not(.admin-center-page) .shop-top-actions {
    display: flex;
    grid-column: 2;
    width: auto;
  }

  body:not(.admin-center-page) .shop-top-actions > button,
  body:not(.admin-center-page) .shop-top-actions > .account-menu {
    display: none;
  }

  body:not(.admin-center-page) .shop-top-actions .language-switch {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    flex: 0 0 auto;
    width: auto;
    padding: 3px;
  }

  body:not(.admin-center-page) .lang-btn {
    width: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 13px;
  }

  .shop-shell {
    display: block;
    width: 100%;
    padding: 10px 0 calc(22px + env(safe-area-inset-bottom));
  }

  .product-area {
    width: 100%;
    padding: 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head h2 {
    font-size: 22px;
  }

  .search-box input {
    min-height: 44px;
    font-size: 16px;
  }

  .product-filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .product-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .product-filter-tabs .filter-btn {
    width: auto;
    min-width: max-content;
    padding: 0 14px;
    scroll-snap-align: start;
  }

  .tag-filter-row {
    margin-top: 4px;
  }

  .product-grid {
    gap: 9px;
  }

  .product-card {
    min-width: 0;
    border-radius: 7px;
  }

  .product-tag-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .product-info h3 {
    min-height: 34px;
    font-size: 14px;
  }

  .product-info p {
    min-height: 34px;
  }

  .mobile-shop-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(22, 37, 34, 0.08);
  }

  .mobile-shop-nav button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 54px;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 3px 2px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 11px;
    line-height: 1.15;
    touch-action: manipulation;
  }

  .mobile-shop-nav button:active {
    color: var(--accent);
    background: #eef7f4;
  }

  .mobile-nav-icon {
    display: grid;
    width: 26px;
    height: 24px;
    place-items: center;
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
  }

  .mobile-nav-badge {
    position: absolute;
    top: 1px;
    left: calc(50% + 8px);
    display: grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: #b43312;
    border: 2px solid #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
  }

  .checkout-backdrop {
    position: fixed;
    inset: 0;
    z-index: 129;
    display: block;
    background: rgba(17, 25, 22, 0.38);
    border: 0;
  }

  .checkout-backdrop[hidden] {
    display: none;
  }

  .checkout-panel {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: max(14px, env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(102%);
    transition: transform 180ms ease, visibility 0s linear 180ms;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .checkout-drawer-open .checkout-panel {
    visibility: visible;
    transform: translateX(0);
    transition: transform 180ms ease;
  }

  .checkout-panel .panel-head {
    position: sticky;
    top: calc(-1 * max(14px, env(safe-area-inset-top)));
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: calc(-1 * max(14px, env(safe-area-inset-top))) -14px 14px;
    padding: max(14px, env(safe-area-inset-top)) 14px 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .checkout-panel .panel-head h2 {
    margin: 0;
    font-size: 24px;
  }

  .checkout-close-btn {
    display: inline-flex;
    width: auto;
    min-width: 64px;
  }

  .checkout-customer-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .checkout-customer-summary .ghost-btn {
    width: 100%;
  }

  .payment-box {
    display: grid;
    gap: 12px;
  }

  .payment-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-actions .pay-link,
  .payment-actions .line-pay-link,
  .payment-actions .keep-btn {
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 14px;
  }

  .paypal-checkout {
    width: 100%;
    overflow: hidden;
    padding: 12px;
  }

  .paypal-checkout-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .paypal-buttons {
    width: 100%;
    overflow: hidden;
  }

  .auth-modal,
  .account-panel-modal,
  .vip-keep-modal,
  .purchase-modal,
  .image-preview-modal {
    z-index: 180;
  }

  .auth-modal,
  .account-panel-modal {
    align-items: stretch;
    padding: 0;
  }

  .auth-dialog,
  .account-panel-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: max(14px, env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .auth-head,
  .account-panel-head {
    position: sticky;
    top: calc(-1 * max(14px, env(safe-area-inset-top)));
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    margin: calc(-1 * max(14px, env(safe-area-inset-top))) -14px 12px;
    padding: max(14px, env(safe-area-inset-top)) 14px 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .auth-head .ghost-btn,
  .account-panel-head .ghost-btn {
    width: auto;
    min-width: 64px;
  }

  .account-tabs {
    position: sticky;
    top: 72px;
    z-index: 2;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 0 -14px 14px;
    padding: 8px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .account-tabs::-webkit-scrollbar {
    display: none;
  }

  .account-tab {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0 15px;
  }

  .account-form,
  .auth-actions {
    grid-template-columns: 1fr;
  }

  .account-panel-dialog input,
  .account-panel-dialog textarea,
  .auth-dialog input,
  .auth-dialog textarea {
    font-size: 16px;
  }

  .support-message-list {
    min-height: 38vh;
    max-height: 48vh;
  }

  .support-message {
    max-width: 88%;
  }

  .customer-support-head {
    align-items: flex-start;
  }

  .file-picker {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .file-picker button {
    width: 100%;
  }

  .admin-support-body {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow-y: auto;
  }

  .admin-support-sidebar {
    max-height: 38vh;
  }

  .admin-support-conversation {
    min-height: 54vh;
  }

  .support-reply-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@supports (-webkit-touch-callout: none) {
  .checkout-panel,
  .auth-dialog,
  .account-panel-dialog {
    min-height: -webkit-fill-available;
  }

  .checkout-panel input,
  .checkout-panel textarea,
  .checkout-panel select,
  .customer-support-form textarea,
  .support-reply-form textarea {
    font-size: 16px;
  }
}

/* V31 final mobile overrides must stay last because legacy mobile rules follow the theme block. */
.shop-page .search-box {
  opacity: 1;
  transition: transform 150ms ease;
}

.shop-page .search-box.is-open {
  transition: transform 150ms ease;
}

@media (max-width: 760px) {
  body.shop-page {
    padding-bottom: 0;
    background: #fff;
  }

  body.shop-page .topbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: #e7e7e2;
  }

  body.shop-page .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    min-height: 0;
    padding: max(10px, env(safe-area-inset-top)) 12px 8px;
  }

  body.shop-page .brand-block {
    grid-column: 1;
  }

  body.shop-page .brand-block h1 {
    max-width: calc(100vw - 90px);
    overflow: hidden;
    font-size: 21px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.shop-page .shop-top-actions {
    display: flex;
    grid-column: 1;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    padding: 1px 0;
    scrollbar-width: none;
  }

  body.shop-page .shop-top-actions > button,
  body.shop-page .shop-top-actions > .account-menu,
  body.shop-page .shop-top-actions > .language-menu {
    display: block;
    flex: 0 0 auto;
  }

  body.shop-page .shop-top-actions > .account-menu,
  body.shop-page .shop-top-actions > .language-menu {
    grid-column: auto;
    width: 44px;
  }

  body.shop-page .shop-top-actions .account-button {
    width: 44px;
  }

  body.shop-page .shop-top-actions > [hidden] {
    display: none !important;
  }

  body.shop-page .shop-top-actions .language-switch {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 104px);
    right: 12px;
    display: grid;
    grid-template-columns: repeat(3, 42px);
    width: auto;
    padding: 5px;
  }

  body.shop-page .shop-top-actions .language-switch[hidden] {
    display: none;
  }

  body.shop-page .lang-btn {
    width: 42px;
    min-height: 36px;
    font-size: 12px;
  }

  body.shop-page .search-box {
    top: calc(env(safe-area-inset-top) + 104px);
    isolation: isolate;
    background-color: #fff;
  }

  body.shop-page .search-box input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
  }

  body.shop-page .customer-support-head .ghost-btn {
    width: auto;
    min-width: 64px;
    white-space: nowrap;
  }

  body.shop-page .mobile-shop-nav {
    display: none !important;
  }
}
/* V32 multi-page storefront and administration */
:root {
  --v32-ink: #171717;
  --v32-muted: #6f716d;
  --v32-line: #dedfda;
  --v32-soft: #f4f4f1;
  --v32-paper: #ffffff;
  --v32-warm: #b56a32;
  --v32-danger: #a63a24;
}

[hidden] {
  display: none !important;
}

.brand-home-link {
  color: inherit;
  text-decoration: none;
}

.shop-page,
.admin-center-page {
  color: var(--v32-ink);
  background: #f7f7f5;
}

.shop-page .topbar,
.admin-center-page .topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--v32-line);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.shop-page .topbar-inner,
.admin-center-page .topbar-inner {
  width: min(100% - 48px, 1480px);
  min-height: 104px;
  margin: 0 auto;
}

.shop-page .brand-block,
.admin-center-page .brand-block {
  position: relative;
  min-width: 150px;
}

.shop-page .brand-block .eyebrow,
.admin-center-page .brand-block .eyebrow {
  margin: 0 0 6px;
  color: var(--v32-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.shop-page .brand-block h1,
.admin-center-page .brand-block h1 {
  margin: 0;
  color: var(--v32-ink);
  font-size: 27px;
  font-weight: 720;
  letter-spacing: 0;
}

.shop-top-actions,
.admin-global-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shop-page .icon-action,
.admin-center-page .icon-action {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  color: var(--v32-ink);
  background: transparent;
  border: 0;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}

.shop-page .icon-action:hover,
.shop-page .icon-action:focus-visible,
.admin-center-page .icon-action:hover,
.admin-center-page .icon-action:focus-visible {
  background: var(--v32-soft);
  outline: 1px solid var(--v32-line);
}

.shop-page .ui-icon,
.admin-center-page .ui-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-home-action {
  order: -1;
}

.icon-count,
.mobile-nav-count {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: var(--v32-ink);
  border-radius: 9px;
  font-size: 10px;
}

.icon-corner-code {
  right: -2px;
  bottom: 1px;
  color: #fff;
  background: var(--v32-ink);
  border-radius: 7px;
}

.language-switch,
.account-dropdown {
  top: calc(100% + 10px);
  right: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--v32-line);
  border-radius: 4px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.customer-page-bar,
.admin-page-bar {
  position: sticky;
  z-index: 70;
  top: 104px;
  background: rgba(247, 247, 245, 0.96);
  border-bottom: 1px solid var(--v32-line);
  backdrop-filter: blur(14px);
}

.customer-page-bar-inner,
.admin-page-bar-inner {
  display: flex;
  width: min(100% - 48px, 1480px);
  min-height: 54px;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  font-size: 14px;
}

.customer-page-bar a,
.admin-page-bar a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 6px;
  color: var(--v32-muted);
  text-decoration: none;
}

.customer-page-bar .ui-icon,
.admin-page-bar .ui-icon {
  width: 18px;
  height: 18px;
}

.customer-page-divider,
.admin-page-divider {
  width: 1px;
  height: 18px;
  background: var(--v32-line);
}

.customer-page-bar strong,
.admin-page-bar strong {
  font-weight: 700;
}

.shop-page .shop-shell {
  width: min(100% - 48px, 1480px);
  margin: 36px auto 72px;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.shop-page .product-area,
.shop-page .checkout-panel {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.shop-page .section-head {
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--v32-line);
}

.shop-page .section-head h2,
.shop-page .panel-head h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 720;
  letter-spacing: 0;
}

.shop-page .search-box {
  width: min(100%, 420px);
  min-height: 52px;
  background: #fff;
  border: 1px solid var(--v32-line);
  border-radius: 2px;
}

.shop-page .search-box input {
  font-size: 16px;
}

body[data-customer-view="search"] .search-box,
body[data-customer-view="search"] .search-box.is-open {
  position: static;
  inset: auto;
  z-index: auto;
  width: min(100%, 520px);
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: none;
  box-shadow: none;
}

.shop-page .product-filter-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 14px;
  overflow-x: auto;
  border: 1px solid var(--v32-line);
  border-radius: 2px;
}

.shop-page .filter-btn {
  min-width: 120px;
  flex: 1 0 auto;
  min-height: 48px;
  color: var(--v32-muted);
  background: #fff;
  border: 0;
  border-right: 1px solid var(--v32-line);
  border-radius: 0;
}

.shop-page .filter-btn:last-child {
  border-right: 0;
}

.shop-page .filter-btn.active {
  color: #fff;
  background: var(--v32-ink);
}

.shop-page .tag-filter-row {
  margin: 0 0 30px;
}

.shop-page .tag-filter-row label {
  display: grid;
  max-width: 360px;
  gap: 8px;
  color: var(--v32-muted);
  font-size: 13px;
}

.shop-page select,
.shop-page input,
.shop-page textarea,
.admin-center-page select,
.admin-center-page input,
.admin-center-page textarea {
  color: var(--v32-ink);
  background: #fff;
  border: 1px solid #d6d7d2;
  border-radius: 3px;
  box-shadow: none;
}

.shop-page .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.shop-page .product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--v32-line);
  border-radius: 3px;
  box-shadow: none;
}

.shop-page .product-card:hover {
  border-color: #9b9d97;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.shop-page .product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--v32-soft);
}

.shop-page .product-card h3 {
  font-size: 18px;
  letter-spacing: 0;
}

.shop-page .primary-btn,
.shop-page .add-cart-btn,
.admin-center-page .primary-btn {
  min-height: 46px;
  color: #fff;
  background: var(--v32-ink);
  border-color: var(--v32-ink);
  border-radius: 3px;
}

.shop-page .ghost-btn,
.admin-center-page .ghost-btn {
  min-height: 42px;
  color: var(--v32-ink);
  background: #fff;
  border: 1px solid var(--v32-line);
  border-radius: 3px;
}

.shop-page .danger-btn,
.admin-center-page .danger-btn {
  background: var(--v32-danger);
  border-color: var(--v32-danger);
}

body.customer-route-page .shop-shell {
  width: min(100% - 48px, 1180px);
  margin-top: 42px;
}

body[data-customer-view="login"] .shop-shell,
body[data-customer-view="register"] .shop-shell,
body[data-customer-view="account"] .shop-shell,
body[data-customer-view="support"] .shop-shell,
body[data-customer-view="vip-keep"] .shop-shell,
body[data-customer-view="vote"] .shop-shell {
  display: none;
}

body[data-customer-view="cart"] .checkout-panel {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  overflow: visible;
  visibility: visible;
  transform: none;
  transition: none;
}

body[data-customer-view="cart"] .checkout-panel .panel-head {
  position: static;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--v32-line);
}

body[data-customer-view="cart"] .order-form {
  display: grid;
  gap: 22px;
}

body[data-customer-view="cart"] .paypal-checkout {
  position: static !important;
  inset: auto !important;
  width: 100%;
  transform: none !important;
}

body.customer-route-page .auth-modal,
body.customer-route-page .account-panel-modal,
body.customer-route-page .vip-keep-modal,
body.customer-route-page .purchase-modal {
  position: static;
  display: block;
  width: min(100% - 48px, 1180px);
  margin: 42px auto 80px;
  inset: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
}

body.customer-route-page .auth-dialog,
body.customer-route-page .account-panel-dialog,
body.customer-route-page .vip-keep-dialog,
body.customer-route-page .purchase-dialog {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.customer-route-page .auth-head,
body.customer-route-page .account-panel-head,
body.customer-route-page .vip-keep-head,
body.customer-route-page .purchase-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--v32-line);
}

body.customer-route-page .auth-head h2,
body.customer-route-page .account-panel-head h2,
body.customer-route-page .vip-keep-head h2,
body.customer-route-page .purchase-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

body.customer-route-page .auth-form {
  width: min(100%, 680px);
  margin-top: 32px;
}

body.customer-route-page .account-panel-body,
body.customer-route-page .purchase-content,
body.customer-route-page .vip-keep-content {
  margin-top: 28px;
  padding: 0;
}

body.customer-route-page .account-tabs {
  display: flex;
  gap: 0;
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--v32-line);
  border-radius: 2px;
}

body.customer-route-page .account-tab {
  min-width: 150px;
  min-height: 52px;
  flex: 1 0 auto;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--v32-line);
  border-radius: 0;
}

body.customer-route-page .account-tab.active {
  color: #fff;
  background: var(--v32-ink);
}

body.customer-route-page .account-panel-head > button,
body.customer-route-page .auth-head > button,
body.customer-route-page .vip-keep-head > button,
body.customer-route-page .purchase-head > button {
  display: none;
}

.checkout-customer-summary.is-guest-form {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-color: var(--v32-line);
  border-radius: 3px;
}

.guest-checkout-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background: var(--v32-soft);
  border-bottom: 1px solid var(--v32-line);
}

.guest-checkout-heading strong {
  display: block;
  margin-bottom: 6px;
  color: var(--v32-ink);
  font-size: 20px;
}

.guest-checkout-heading p {
  max-width: 680px;
  font-size: 14px;
  line-height: 1.7;
}

.text-link-button {
  flex: 0 0 auto;
  padding: 0;
  color: var(--v32-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.guest-checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 24px;
}

.guest-checkout-form .wide {
  grid-column: 1 / -1;
}

.guest-checkout-form input,
.guest-checkout-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--v32-ink);
  background: #fff;
  border: 1px solid var(--v32-line);
  border-radius: 2px;
  font: inherit;
  font-size: 16px;
}

.guest-checkout-form textarea {
  min-height: 82px;
  resize: vertical;
}

.guest-checkout-form input:focus,
.guest-checkout-form textarea:focus {
  outline: 1px solid var(--v32-ink);
  outline-offset: 1px;
}

.guest-order-receipt {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
}

.guest-order-check {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--v32-ink);
  border-radius: 50%;
  font-size: 24px;
}

.guest-order-receipt strong {
  display: block;
  margin-bottom: 8px;
  color: var(--v32-ink);
  font-size: 22px;
}

.guest-order-receipt p + p {
  margin-top: 5px;
}

.checkout-backdrop {
  display: none !important;
}

.admin-command-center {
  width: min(100% - 48px, 1480px);
  margin: 38px auto 80px;
}

.admin-command-welcome,
.admin-command-stats,
.admin-command-modules {
  padding: 32px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--v32-line);
  border-radius: 0;
  box-shadow: none;
}

.admin-command-welcome h2,
.command-section-heading h2 {
  letter-spacing: 0;
}

.command-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-center-page .stat-card {
  min-height: 132px;
  padding: 22px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--v32-line);
  border-radius: 3px;
  box-shadow: none;
}

.admin-module-launch-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-module-launch,
.admin-module-launch-featured {
  min-height: 124px;
  padding: 22px;
  color: var(--v32-ink);
  background: #fff;
  border: 1px solid var(--v32-line);
  border-radius: 3px;
  box-shadow: none;
}

.admin-module-launch:hover {
  border-color: #8f918c;
  transform: translateY(-1px);
}

.admin-module-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: var(--v32-ink);
  background: var(--v32-soft);
  border-radius: 2px;
}

.admin-module-icon .ui-icon {
  width: 22px;
  height: 22px;
}

body[data-customer-view="search"] #headerSearchButton,
body[data-customer-view="vote"] #purchaseVoteButton,
body[data-customer-view="vip-keep"] #vipKeepButton,
body[data-customer-view="support"] #supportOpenButton,
body[data-customer-view="cart"] #cartJumpButton,
body[data-customer-view="account"] #accountButton,
body[data-admin-view="products"] [data-admin-route="products"],
body[data-admin-view="orders"] [data-admin-route="orders"],
body[data-admin-view="support"] [data-admin-route="support"] {
  background: var(--v32-soft);
  outline: 1px solid var(--v32-line);
}

body.admin-route-page .admin-module-modal {
  position: static;
  display: block;
  inset: auto;
  width: min(100% - 48px, 1480px);
  margin: 42px auto 80px;
  padding: 0;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
}

body.admin-route-page .admin-module-dialog,
body.admin-route-page .admin-module-dialog-wide {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.admin-route-page .admin-module-head {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--v32-line);
}

body.admin-route-page .admin-module-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

body.admin-route-page .admin-module-close {
  display: none;
}

body.admin-route-page .admin-module-body {
  max-height: none;
  padding: 30px 0 0;
  overflow: visible;
}

body.admin-route-page .admin-module-tabs {
  display: flex;
  gap: 0;
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--v32-line);
  border-radius: 2px;
}

body.admin-route-page .admin-module-tab {
  min-width: 160px;
  min-height: 50px;
  flex: 1 0 auto;
  color: var(--v32-muted);
  background: #fff;
  border: 0;
  border-right: 1px solid var(--v32-line);
  border-radius: 0;
}

body.admin-route-page .admin-module-tab.active {
  color: #fff;
  background: var(--v32-ink);
}

body.admin-route-page .admin-product-module-body,
body.admin-route-page .admin-support-workspace {
  min-height: 60vh;
}

body.admin-route-page .admin-panel,
body.admin-route-page .admin-subpanel,
body.admin-route-page .settings-card {
  background: #fff;
  border: 1px solid var(--v32-line);
  border-radius: 3px;
  box-shadow: none;
}

@media (max-width: 1050px) {
  .shop-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-module-launch-grid,
  .command-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shop-page,
  .admin-center-page {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .shop-page .topbar,
  .admin-center-page .topbar {
    position: relative;
  }

  .shop-page .topbar-inner,
  .admin-center-page .topbar-inner {
    width: 100%;
    min-height: 0;
    flex-wrap: wrap;
    padding: calc(18px + env(safe-area-inset-top)) 16px 10px;
  }

  .shop-page .brand-block,
  .admin-center-page .brand-block {
    width: 100%;
    padding: 0 2px 14px;
  }

  .shop-page .brand-block h1,
  .admin-center-page .brand-block h1 {
    font-size: 25px;
  }

  .shop-top-actions,
  .admin-global-actions {
    display: grid;
    width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: minmax(40px, 1fr);
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--v32-line);
  }

  .shop-top-actions {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .shop-top-actions::-webkit-scrollbar {
    display: none;
  }

  .shop-page .shop-top-actions {
    display: flex !important;
    justify-content: stretch;
    gap: 0;
    overflow: visible;
  }

  .shop-page .shop-top-actions > * {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }

  .shop-page .shop-top-actions .icon-action,
  .shop-page .shop-top-actions > button {
    display: grid;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    place-items: center;
  }

  .shop-page .icon-action,
  .admin-center-page .icon-action {
    width: 100%;
    height: 46px;
    min-width: 40px;
  }

  .shop-page .ui-icon,
  .admin-center-page .ui-icon {
    width: 23px;
    height: 23px;
  }

  .customer-page-bar,
  .admin-page-bar {
    position: sticky;
    top: 0;
  }

  .customer-page-bar-inner,
  .admin-page-bar-inner {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
  }

  .shop-page .shop-shell,
  body.customer-route-page .shop-shell,
  .admin-command-center,
  body.admin-route-page .admin-module-modal {
    width: 100%;
    margin: 0;
    padding: 24px 16px 48px;
  }

  .shop-page .section-head {
    display: grid;
    align-items: stretch;
    gap: 16px;
  }

  .shop-page .search-box,
  .shop-page .tag-filter-row label {
    width: 100%;
    max-width: none;
  }

  .shop-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-page .product-card h3 {
    font-size: 16px;
  }

  body.customer-route-page .auth-head h2,
  body.customer-route-page .account-panel-head h2,
  body.customer-route-page .vip-keep-head h2,
  body.customer-route-page .purchase-head h2,
  body.admin-route-page .admin-module-head h2 {
    font-size: 29px;
  }

  body.customer-route-page .account-panel-body,
  body.customer-route-page .purchase-content,
  body.customer-route-page .vip-keep-content {
    margin-top: 20px;
  }

  body[data-customer-view="cart"] .checkout-panel {
    padding: 0;
  }

  body.customer-route-page .auth-modal,
  body.customer-route-page .account-panel-modal,
  body.customer-route-page .vip-keep-modal,
  body.customer-route-page .purchase-modal {
    width: 100%;
    margin: 0;
    padding: 24px 16px 48px;
  }

  .guest-checkout-heading {
    display: grid;
    gap: 12px;
    padding: 18px 16px;
  }

  .text-link-button {
    justify-self: start;
    text-align: left;
  }

  .guest-checkout-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 18px 16px;
  }

  .guest-checkout-form .wide {
    grid-column: auto;
  }

  .guest-order-receipt {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 16px;
  }

  .guest-order-check {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  body[data-customer-view="cart"] .paypal-checkout,
  body[data-customer-view="cart"] .paypal-buttons,
  body[data-customer-view="cart"] #paypalButtons {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    inset: auto !important;
    transform: none !important;
  }

  .mobile-shop-nav {
    z-index: 90;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--v32-line);
    box-shadow: none;
    backdrop-filter: blur(18px);
  }

  .mobile-shop-nav button {
    color: var(--v32-muted);
    background: transparent;
  }

  .mobile-shop-nav button:active {
    color: var(--v32-ink);
    background: var(--v32-soft);
  }

  .admin-command-welcome,
  .admin-command-stats,
  .admin-command-modules {
    padding: 24px 0;
  }

  .admin-module-launch-grid,
  .command-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-module-launch,
  .admin-module-launch-featured {
    min-height: 104px;
  }

  body.admin-route-page .admin-module-body {
    padding-top: 22px;
  }

  body.admin-route-page .admin-product-module-body,
  body.admin-route-page .admin-support-workspace {
    min-height: auto;
  }

  .product-edit-modal,
  .stats-detail-modal,
  .image-preview-modal {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .shop-page .topbar-inner,
  .admin-center-page .topbar-inner {
    padding-inline: 10px;
  }

  .shop-page .product-grid {
    gap: 8px;
  }

  .shop-page .product-card-body {
    padding: 12px 10px;
  }

  .shop-page .filter-btn {
    min-width: 104px;
  }
}
