:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: rgba(22, 23, 27, 0.92);
  --panel-strong: #141519;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f6f7f1;
  --muted: #9da2a5;
  --soft: #d9ddd7;
  --cyan: #26f4ff;
  --green: #b8ff3d;
  --coral: #ff5c45;
  --gold: #f4c25a;
  --black: #050608;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  font-family: "Avenir Next", "SF Pro Display", "Helvetica Neue", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

/* Authenticated, site-wide customer support */
.support-chat-launcher {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 214;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(183, 255, 47, .55);
  border-radius: 12px;
  background: #b7ff2f;
  color: #10130f;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .38);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 14px/1 inherit;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.support-chat-launcher:hover:not(.dragging) { transform: translateY(-2px); }
.support-chat-launcher.dragging { cursor: grabbing; transform: scale(.96); transition: none; }
.support-chat-launcher:focus-visible,
.support-chat button:focus-visible,
.support-chat textarea:focus-visible { outline: 2px solid #26f4ff; outline-offset: 2px; }
.support-chat-launcher-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  color: #10130f;
  font-size: 22px;
  font-weight: 900;
}
.support-chat-launcher-logo.has-image img,
.support-chat-avatar.has-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.support-chat-launcher-logo.is-default-logo img,
.support-chat-avatar.is-default-logo img { justify-self: start; width: auto; max-width: none; height: 100%; object-fit: unset; }
.support-chat-launcher-label { display: none; }
.support-chat-unread {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #101312;
  border-radius: 999px;
  background: #ff6a55;
  color: #fff;
  font: 800 10px/16px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.support-chat {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(86px, calc(env(safe-area-inset-bottom) + 64px));
  z-index: 215;
  width: min(390px, calc(100vw - 32px));
  height: min(650px, calc(100dvh - 116px));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: #151918;
  color: #f6f7f4;
  box-shadow: 0 28px 80px rgba(0,0,0,.58);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.985);
  transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.support-chat.open { opacity: 1; visibility: visible; transform: none; }
body.support-chat-dock-left .support-chat {
  right: auto;
  left: max(22px, env(safe-area-inset-left));
  transform-origin: bottom left;
}
.support-chat-head {
  min-height: 72px;
  padding: 14px 14px 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.support-chat-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.support-chat-identity div { display: grid; gap: 4px; }
.support-chat-identity strong { font-size: 15px; }
.support-chat-identity span:not(.support-chat-avatar) { color: #aeb7b3; font-size: 12px; }
.support-chat-identity span.online { color: #b7ff2f; }
.support-chat-avatar {
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: #0b100b;
  color: #b7ff2f;
  font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.support-chat-close { position: relative; width: 44px; height: 44px; border-radius: 12px; }
.support-chat-close::before, .support-chat-close::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.support-chat-close::after { transform: rotate(-45deg); }
.support-chat-service-note {
  padding: 8px 18px;
  background: #1d2321;
  color: #aeb7b3;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.support-chat-messages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-chat-empty { margin: auto 10px; text-align: center; display: grid; gap: 8px; color: #aeb7b3; }
.support-chat-empty strong { color: #f6f7f4; font-size: 16px; }
.support-chat-empty span { font-size: 13px; line-height: 1.6; }
.support-chat-order-picker {
  position: absolute;
  z-index: 4;
  inset: 72px 0 0;
  background: #151918;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.support-chat-order-picker[hidden] { display: none; }
.support-chat-order-picker > header { min-height: 68px; padding: 12px 14px 12px 18px; border-bottom: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-chat-order-picker > header div { min-width: 0; display: grid; gap: 4px; }
.support-chat-order-picker > header strong { font-size: 15px; }
.support-chat-order-picker > header span { color: #aeb7b3; font-size: 12px; }
.support-chat-order-close { min-height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #202624; color: #f2f4f1; font: 700 12px/1 inherit; cursor: pointer; }
.support-chat-order-list { min-height: 0; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.support-chat-order-item { padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #1d2220; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.support-chat-order-item > div { min-width: 0; display: grid; gap: 5px; }
.support-chat-order-item strong { overflow: hidden; color: #f6f7f4; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.support-chat-order-item small { color: #98a29e; font-size: 11px; }
.support-chat-order-number { color: #26f4ff; font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
.support-chat-order-item > button, .support-chat-order-state button { min-width: 68px; min-height: 44px; border: 1px solid #b7ff2f; border-radius: 10px; background: #b7ff2f; color: #10130f; font: 800 12px/1 inherit; cursor: pointer; }
.support-chat-order-item > button:disabled { opacity: .55; cursor: wait; }
.support-chat-order-state { margin: auto; max-width: 260px; color: #aeb7b3; text-align: center; display: grid; justify-items: center; gap: 9px; font-size: 13px; line-height: 1.55; }
.support-chat-order-state strong { color: #f6f7f4; font-size: 15px; }
.support-chat-order-state button { margin-top: 5px; padding: 0 14px; }
.support-chat-history { align-self: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: #1d2321; color: #aeb7b3; font: 700 11px/1 inherit; cursor: pointer; }
.support-message { max-width: 82%; display: grid; gap: 5px; align-self: flex-start; }
.support-message.user { align-self: flex-end; }
.support-message-meta { color: #7f8985; font-size: 10px; padding: 0 4px; }
.support-message.user .support-message-meta { text-align: right; }
.support-message-bubble { padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #242a28; color: #f2f4f1; font-size: 13px; line-height: 1.55; word-break: break-word; white-space: pre-wrap; }
.support-message.user .support-message-bubble { border-radius: 14px 14px 4px 14px; background: #b7ff2f; color: #10130f; }
.support-message.system { max-width: 94%; align-self: center; }
.support-message.system .support-message-bubble { background: transparent; border: 1px solid rgba(255,255,255,.1); color: #aeb7b3; text-align: center; }
.support-message-image { display: block; width: min(230px, 100%); max-height: 280px; object-fit: cover; border-radius: 12px; background: #0c0f0e; }
.support-message-order { display: grid; gap: 5px; min-width: 230px; }
.support-message-order strong { color: inherit; }
.support-message-order small { opacity: .72; }
.support-message-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-message-order button { min-height: 38px; margin-top: 5px; border: 1px solid currentColor; border-radius: 9px; background: transparent; color: inherit; font: 800 12px/1 inherit; cursor: pointer; }
.support-chat-pending { padding: 8px 14px; border-top: 1px solid rgba(255,255,255,.08); color: #aeb7b3; font-size: 12px; }
.support-chat-composer { padding: 12px; border-top: 1px solid rgba(255,255,255,.1); background: #121615; display: grid; gap: 9px; }
.support-chat-input-wrap textarea { width: 100%; min-height: 48px; max-height: 116px; resize: none; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 13px; background: #1c211f; color: #f6f7f4; font: inherit; line-height: 1.45; }
.support-chat-input-wrap textarea::placeholder { color: #77807c; }
.support-chat-actions { display: flex; justify-content: space-between; gap: 10px; }
.support-chat-attachment-actions { display: flex; gap: 7px; }
.support-chat-actions button, .support-chat-wechat { min-height: 44px; border-radius: 11px; padding: 0 16px; font: 700 13px/1 inherit; cursor: pointer; }
.support-chat-image, .support-chat-order { border: 1px solid rgba(255,255,255,.14); background: #202624; color: #dce2df; }
.support-chat-order[aria-expanded="true"] { border-color: #26f4ff; color: #26f4ff; }
.support-chat-send { border: 1px solid #b7ff2f; background: #b7ff2f; color: #10130f; min-width: 88px; }
.support-chat-actions button:disabled { opacity: .45; cursor: wait; }
.support-chat-wechat { margin: 0 12px 12px; border: 1px solid rgba(38,244,255,.34); background: transparent; color: #26f4ff; }

@media (max-width: 600px) {
  .support-chat-launcher { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); min-width: 46px; width: 46px; height: 46px; border-radius: 12px; }
  .support-chat {
    inset: max(10px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 18px;
    transform-origin: bottom center;
  }
  body.support-chat-dock-left .support-chat { right: 8px; left: 8px; transform-origin: bottom center; }
  .support-chat-head { min-height: 64px; padding-block: 10px; }
  .support-chat-order-picker { inset-block-start: 64px; }
  .support-chat-messages { padding: 14px 12px; }
  .support-chat-composer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .support-chat-actions button { padding-inline: 13px; }
  body.support-chat-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .support-chat, .support-chat-launcher { transition: none; }
}

/* Product detail: gallery-led selection before entering the design studio. */
.customer-app .product-detail-app { min-height: 100vh; padding: 18px clamp(16px, 3vw, 48px) 64px; color: #f5f7f6; background: #080a0c; }
.customer-app .product-detail-topbar { position: sticky; top: 10px; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 10px 14px; border: 1px solid #2b3033; border-radius: 8px; background: rgba(8,10,12,.94); backdrop-filter: blur(18px); }
.customer-app .product-detail-back { justify-self: start; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 0; color: #dce1df; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.customer-app .product-detail-back:hover { color: #b4ff32; }
.customer-app .product-detail-brand { display: flex; align-items: center; gap: 10px; }
.customer-app .product-detail-brand .brand-mark { width: 42px; height: 42px; }
.customer-app .product-detail-account { justify-self: end; display: flex; align-items: center; gap: 8px; }
.customer-app .product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: clamp(30px, 5vw, 78px); width: min(1480px, 100%); margin: 44px auto 0; }
.customer-app .product-detail-gallery { position: sticky; top: 112px; align-self: start; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; min-width: 0; }
.customer-app .product-detail-stage { min-height: min(72vh, 820px); border: 1px solid #24292c; border-radius: 8px; overflow: hidden; background: #eef1ed; }
.customer-app .product-detail-stage img { display: block; width: 100%; height: min(72vh, 820px); object-fit: contain; }
.customer-app .product-detail-thumbnails { order: -1; display: grid; align-content: start; gap: 8px; max-height: 72vh; overflow-y: auto; }
.customer-app .product-detail-thumbnails button { width: 72px; aspect-ratio: 1; padding: 3px; border: 1px solid #303639; border-radius: 6px; background: #111417; cursor: pointer; }
.customer-app .product-detail-thumbnails button.active { border-color: #26f4ff; box-shadow: inset 0 0 0 1px #26f4ff; }
.customer-app .product-detail-thumbnails img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; background: #eef1ed; }
.customer-app .product-detail-info { min-width: 0; padding-top: 8px; }
.customer-app .product-detail-heading > span { color: #26f4ff; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.customer-app .product-detail-heading h1 { max-width: 720px; margin: 12px 0 14px; color: #fff; font-size: 42px; line-height: 1.12; letter-spacing: 0; }
.customer-app .product-detail-brandline { display: flex; align-items: center; gap: 14px; color: #aab2af; }
.customer-app .product-detail-brandline strong { color: #eef3f1; }
.customer-app .product-detail-brandline span { padding-left: 14px; border-left: 1px solid #343a3d; }
.customer-app .product-detail-price { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 18px; margin: 28px 0 0; padding: 24px 0; border-top: 1px solid #282e31; border-bottom: 1px solid #282e31; }
.customer-app .product-detail-price span { color: #aeb5b2; font-weight: 800; }
.customer-app .product-detail-price strong { grid-row: span 2; color: #b4ff32; font-size: 36px; line-height: 1; }
.customer-app .product-detail-price small { color: #7f8985; }
.customer-app .product-detail-option { padding: 24px 0; border-bottom: 1px solid #282e31; }
.customer-app .product-detail-option-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.customer-app .product-detail-option-head > span { color: #7f8985; font-size: 12px; text-align: right; }
.customer-app .product-detail-colors, .customer-app .product-detail-sizes, .customer-app .product-detail-processes { display: flex; flex-wrap: wrap; gap: 9px; }
.customer-app .product-detail-colors button { display: grid; place-items: center; width: 48px; height: 48px; padding: 4px; border: 1px solid #353c3f; border-radius: 6px; background: #111417; cursor: pointer; }
.customer-app .product-detail-colors button i { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.customer-app .product-detail-colors button span { display: none; }
.customer-app .product-detail-colors button.active { border-color: #26f4ff; box-shadow: 0 0 0 2px rgba(38,244,255,.18); }
.customer-app .product-detail-colors.is-style-picker button { grid-template-rows: 54px auto; width: 92px; height: auto; min-height: 78px; gap: 5px; padding: 5px; overflow: hidden; }
.customer-app .product-detail-colors.is-style-picker button i { width: 100%; height: 54px; overflow: hidden; border-radius: 4px; }
.customer-app .product-detail-colors.is-style-picker button i img { display: block; width: 100%; height: 100%; object-fit: cover; }
.customer-app .product-detail-colors.is-style-picker button span { display: block; max-width: 100%; overflow: hidden; color: rgba(247,247,239,.78); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .product-detail-sizes button { min-width: 58px; height: 44px; padding: 0 16px; border: 1px solid #353c3f; border-radius: 6px; color: #dfe4e2; background: #111417; font: inherit; font-weight: 850; cursor: pointer; }
.customer-app .product-detail-sizes button.active { border-color: #b4ff32; color: #071006; background: #b4ff32; }
.customer-app .product-detail-size-specs { margin-top: 14px; padding: 14px; border: 1px solid #293238; border-radius: 6px; background: #0d1517; }
.customer-app .product-detail-size-specs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.customer-app .product-detail-size-specs-head strong { color: #b4ff32; font-size: 15px; }
.customer-app .product-detail-size-specs-head span { color: #7f8985; font-size: 12px; }
.customer-app .product-detail-size-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.customer-app .product-detail-size-spec-grid div { display: grid; gap: 4px; padding: 9px; border: 1px solid #293238; border-radius: 4px; background: #11191b; }
.customer-app .product-detail-size-spec-grid span { color: #7f8985; font-size: 11px; }
.customer-app .product-detail-size-spec-grid strong { color: #e5ebe8; font-size: 13px; }
.customer-app .product-detail-empty-gallery { display: grid; place-items: center; min-height: 180px; padding: 24px; color: #65716d; text-align: center; }
.customer-app .product-detail-stage.is-empty {
  display: grid;
  place-items: center;
  min-height: min(72vh, 820px);
}
.customer-app .product-detail-stage.is-empty::before {
  content: "运营端尚未上传商品详情图";
  display: block;
  max-width: 20em;
  padding: 24px;
  color: #65716d;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  writing-mode: horizontal-tb;
  overflow-wrap: anywhere;
}
.customer-app .product-detail-stage.is-empty.is-syncing::before { content: "正在同步商品详情图..."; }
.customer-app .product-detail-processes button { display: grid; gap: 5px; min-width: 150px; padding: 14px; border: 1px solid #353c3f; border-radius: 6px; color: #e9edeb; background: #111417; text-align: left; cursor: pointer; }
.customer-app .product-detail-processes button span { color: #8f9995; font-size: 12px; }
.customer-app .product-detail-processes button.active { border-color: #26f4ff; background: #102125; }
.customer-app .product-detail-process-copy { margin-top: 10px; padding: 14px 16px; border-left: 3px solid #26f4ff; color: #aeb6b3; background: #0d1517; }
.customer-app .product-detail-process-copy strong { color: #f3f6f5; }
.customer-app .product-detail-process-copy p { margin: 5px 0 0; line-height: 1.65; }
.customer-app .product-detail-specs { display: grid; gap: 18px; padding: 24px 0; }
.customer-app .product-detail-specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
.customer-app .product-detail-specs span { color: #7f8985; font-size: 12px; font-weight: 900; }
.customer-app .product-detail-specs p { margin: 0; color: #d7ddda; line-height: 1.65; }
.customer-app #productDetailPositions { display: flex; flex-wrap: wrap; gap: 7px; }
.customer-app #productDetailPositions span { padding: 6px 9px; border: 1px solid #343a3d; border-radius: 4px; color: #dfe4e2; background: #111417; }
.customer-app .product-detail-start { width: 100%; min-height: 56px; margin-top: 4px; font-size: 16px; }
@media (max-width: 900px) {
  .customer-app .product-detail-app { padding: 10px 12px 40px; }
  .customer-app .product-detail-topbar { grid-template-columns: auto 1fr auto; }
  .customer-app .product-detail-brand { justify-self: center; }
  .customer-app .product-detail-account .cart-button span, .customer-app .product-detail-user-name { display: none; }
  .customer-app .product-detail-layout { grid-template-columns: 1fr; gap: 26px; margin-top: 20px; }
  .customer-app .product-detail-gallery { position: static; grid-template-columns: 1fr; }
  .customer-app .product-detail-stage, .customer-app .product-detail-stage img { min-height: 0; height: auto; aspect-ratio: 1 / 1.12; }
  .customer-app .product-detail-stage.is-empty { min-height: 0; aspect-ratio: 1 / 1.12; }
  .customer-app .product-detail-stage.is-empty::before { max-width: 18em; padding: 20px; font-size: 14px; }
  .customer-app .product-detail-thumbnails { order: 0; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; overflow-y: hidden; }
  .customer-app .product-detail-thumbnails button { width: 64px; }
  .customer-app .product-detail-heading h1 { font-size: 32px; }
}
@media (max-width: 520px) {
  .customer-app .product-detail-back span, .customer-app .product-detail-brand strong, .customer-app .product-detail-user-name { display: none; }
  .customer-app .product-detail-topbar { min-height: 62px; }
  .customer-app .product-detail-specs > div { grid-template-columns: 1fr; gap: 7px; }
  .customer-app .product-detail-size-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .product-detail-processes button { flex: 1 1 140px; }
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(38, 244, 255, 0.08), transparent 30%),
    linear-gradient(245deg, rgba(184, 255, 61, 0.07), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 52px),
    var(--bg);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
}

.home-app,
.catalog-app {
  min-height: 100vh;
  padding: 18px;
}

.home-topbar,
.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto 18px;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-portal-entry {
  text-decoration: none;
}

.ops-secret-trigger {
  appearance: none;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.ops-secret-trigger:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}


.cart-button {
  position: relative;
  gap: 8px;
}

.cart-button strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: #0f766e;
  font-size: 12px;
}

.user-menu {
  position: fixed;
  top: 74px;
  right: 22px;
  z-index: 40;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 8px;
  border: 1px solid #dfe4eb;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 64px rgba(15, 23, 42, 0.18);
}

.user-menu[hidden] {
  display: none !important;
}

.user-menu-item {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
  text-align: left;
  font-weight: 900;
}

.user-menu-item:hover {
  background: #f2f6fb;
}

.user-menu-item.danger {
  color: #be123c;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 6px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  color: #111827;
  background: #ffffff;
  font-weight: 900;
}

.user-chip span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #050608;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  overflow: hidden;
}

.user-chip span img,
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto 18px;
  padding: 34px;
  border: 1px solid #dfe4eb;
  border-radius: var(--radius);
  color: #111827;
  background: #f7f9fb;
  box-shadow: 0 18px 64px rgba(15, 23, 42, 0.12);
}

.home-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 620px;
  margin: 16px 0 22px;
  color: #526070;
  font-size: 16px;
  line-height: 1.7;
}

.home-hero-preview {
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px solid #dfe4eb;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.04) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.04) 0 1px, transparent 1px 54px),
    #eef3f2;
  overflow: hidden;
}

.home-hero-preview img {
  width: min(82%, 440px);
  aspect-ratio: 1;
  object-fit: contain;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slide {
  display: grid;
  place-items: center;
  flex: 0 0 100%;
  min-width: 100%;
  padding: 22px;
  border: 0;
  background: transparent;
}

.hero-slide img {
  filter: drop-shadow(0 24px 42px rgba(15, 23, 42, 0.18));
}

.hero-carousel-meta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  max-width: calc(100% - 36px);
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  color: #111827;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
}

.hero-carousel-meta span {
  color: #64748b;
  font-size: 12px;
}

.home-preview-empty {
  display: grid;
  gap: 8px;
  place-items: center;
  color: #64748b;
  text-align: center;
}

.home-preview-empty strong {
  color: #111827;
  font-size: 56px;
}

.home-section,
.home-split {
  max-width: 1440px;
  margin: 0 auto 18px;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #111827;
}

.home-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-feed-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  background: #ffffff;
}

.home-feed-tabs button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #64748b;
  background: transparent;
  font-weight: 900;
}

.home-feed-tabs button.active {
  color: #050608;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.home-section h2,
.home-split h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
}

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

.home-design-card,
.home-art-card,
.home-empty {
  border: 1px solid #dfe4eb;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.home-design-card {
  display: grid;
  overflow: hidden;
}

.home-design-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eef3f2;
}

.home-design-card img,
.home-art-card img,
.profile-row img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #eef3f2;
  object-fit: cover;
}

.home-design-image img {
  display: block;
  border-radius: 0;
}

.home-design-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.home-author-row,
.artwork-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-author-avatar,
.artwork-author-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  color: #050608;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 900;
}

.home-author-avatar img,
.artwork-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef3f2;
}

.home-design-copy h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
}

.home-design-actions,
.artwork-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-quiet { color: #ff8b78; border-color: rgba(255, 92, 69, .45); }
.customer-app .content-report-modal,
.customer-app .content-appeal-modal { z-index: 2460; }
.content-report-dialog { max-width: 680px; }
.content-report-form { display: grid; gap: 18px; }
.content-report-form fieldset { border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px; }
.content-report-form legend, .content-report-section-label { color: #f7f8f4; font-weight: 700; }
.content-report-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.content-report-reasons label, .content-report-confirm { display: flex; align-items: center; gap: 9px; min-height: 44px; color: #c5c8c5; }
.content-report-plagiarism { display: grid; gap: 12px; padding: 14px; border-left: 2px solid #ffcc66; background: rgba(255,204,102,.06); }
.content-report-evidence-picker { display: grid; gap: 8px; color: #c5c8c5; }
.content-report-evidence-picker input[type=file] { width: 100%; }
.content-report-evidence-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.content-report-evidence-preview span { display: grid; gap: 4px; width: 92px; color: #9da3a0; font-size: 11px; }
.content-report-evidence-preview img { width: 92px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255,255,255,.14); }
.content-report-error { color: #ff8b78; margin: 0; }
.content-appeal-privacy { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(40,215,229,.28); border-radius: 8px; background: rgba(40,215,229,.06); color: #b7c5c3; overflow-wrap: anywhere; }
.content-appeal-privacy strong { color: #dffbfa; }
.content-appeal-dialog textarea { min-height: 132px; resize: vertical; }
.content-moderation-banner { display: grid; gap: 6px; margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(255,92,69,.65); border-radius: 10px; background: rgba(255,92,69,.08); color: #ff9b8b; }
.content-moderation-banner strong { color: #ff7865; }
.content-moderation-banner small { color: #d6aaa3; }
@media (max-width: 640px) {
  .content-report-reasons { grid-template-columns: 1fr; }
  .content-report-dialog { align-self: end; width: 100%; max-height: 92dvh; margin: 0; overflow: auto; border-radius: 12px 12px 0 0; }
  .content-report-dialog .modal-actions { position: sticky; bottom: -1px; padding-top: 12px; background: #101414; }
  .content-report-dialog .modal-actions .button { min-height: 44px; }
}

.profile-row img {
  margin: 0;
}

.home-design-card strong,
.home-art-card strong {
  display: block;
  color: #111827;
}

.home-design-card span,
.home-art-card span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.home-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-art-card {
  padding: 8px;
}

.home-art-card button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-empty {
  grid-column: 1 / -1;
  padding: 20px;
  color: #64748b;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 18px;
  max-width: 1560px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(38, 244, 255, 0.65);
  border-radius: 8px;
  color: var(--black);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 34px rgba(38, 244, 255, 0.28);
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.brand span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.brand-home-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.brand-home-button:hover {
  color: var(--green);
}

.top-actions,
.stage-actions,
.quickbar,
.layer-actions,
.section-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.platform-link:hover,
.platform-link.active {
  border-color: rgba(38, 244, 255, 0.72);
  color: var(--text);
  background: rgba(38, 244, 255, 0.1);
}

.mode-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #dfe4eb;
  border-radius: 6px;
  color: #475569;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.mode-button.active {
  border-color: #111827;
  color: #ffffff;
  background: #111827;
}

.status-pill {
  min-width: 76px;
  padding: 8px 10px;
  border: 1px solid rgba(184, 255, 61, 0.32);
  border-radius: 999px;
  color: var(--green);
  background: rgba(184, 255, 61, 0.07);
  text-align: center;
  font-size: 12px;
}

.studio {
  display: grid;
  grid-template-columns: 290px minmax(420px, 1fr) 360px;
  gap: 16px;
  max-width: 1560px;
  margin: 0 auto;
  align-items: start;
}

.panel,
.stage-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
}

.stage-panel {
  padding: 16px;
}

section + section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.stage-header span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

.category-tile {
  min-height: 82px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-strong);
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.category-tile:hover,
.category-tile.active {
  border-color: rgba(38, 244, 255, 0.72);
  background: linear-gradient(135deg, rgba(38, 244, 255, 0.16), rgba(184, 255, 61, 0.08));
  transform: translateY(-1px);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  font-size: 14px;
}

.secondary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.editor-product-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-content: start;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.editor-product-option-wrap {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.editor-product-option {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 82px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-strong);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.editor-product-option:hover,
.editor-product-option.active {
  border-color: rgba(38, 244, 255, 0.72);
  background: rgba(38, 244, 255, 0.08);
  transform: translateY(-1px);
}

.editor-product-media {
  display: grid;
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  color: #050608;
  background: #eef3f2;
  font-size: 20px;
  font-weight: 900;
}

.editor-product-media img { width: 100%; height: 100%; object-fit: contain; }
.editor-product-copy { display: grid; min-width: 0; gap: 5px; }
.editor-product-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.editor-product-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.editor-product-copy b { color: var(--cyan); font-size: 12px; }
.editor-product-empty { display: grid; gap: 6px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.editor-product-empty strong { color: var(--text); }
.editor-product-source { display: inline-flex; align-items: center; gap: 7px; }
.editor-product-source i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.12); }
.secondary-grid > strong { margin-inline-start: auto; color: var(--text); font-size: 12px; }

.editor-product-colors {
  display: flex;
  align-items: center;
  min-height: 24px;
  gap: 5px;
  padding-inline: 4px;
}

.editor-product-color {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 2px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: #111417;
  cursor: pointer;
}

.editor-product-color:hover,
.editor-product-color:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.editor-product-color.active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(184, 255, 61, 0.18);
}

.editor-product-color i,
.editor-product-color img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.editor-product-color i { background: var(--swatch); }
.editor-product-color img { object-fit: cover; }
.editor-product-color-more,
.editor-product-color-empty {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.product-reference-lock {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(40, 215, 229, 0.34);
  border-radius: 12px;
  background: rgba(40, 215, 229, 0.07);
}

.product-reference-lock strong { color: var(--text); font-size: 14px; }
.product-reference-lock span { color: var(--muted); font-size: 12px; line-height: 1.55; }

.secondary-chip,
.side-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #101115;
  font-size: 12px;
  font-weight: 800;
}

.secondary-chip:hover,
.secondary-chip.active {
  border-color: rgba(38, 244, 255, 0.72);
  color: var(--text);
  background: rgba(38, 244, 255, 0.1);
}

.side-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 13px;
}

.side-button {
  color: var(--soft);
}

.side-button.active {
  border-color: rgba(184, 255, 61, 0.66);
  color: var(--black);
  background: var(--green);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field select,
.text-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #0f1013;
  outline: none;
}

.field input[type="number"],
.field input[type="text"],
.field select,
.text-form input {
  padding: 0 10px;
}

.field input:focus,
.field select:focus,
.text-form input:focus {
  border-color: rgba(38, 244, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(38, 244, 255, 0.12);
}

.field input[type="color"] {
  height: 42px;
  padding: 3px;
}

.field input[type="range"] {
  accent-color: var(--cyan);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.swatch-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-bottom: 13px;
}

.swatch {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: var(--swatch);
}

.swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(38, 244, 255, 0.18);
}

.swatch-row.is-style-picker {
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
}

.swatch.style-choice {
  display: grid;
  grid-template-rows: 54px auto;
  aspect-ratio: auto;
  min-height: 82px;
  padding: 4px;
  overflow: hidden;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.swatch.style-choice img,
.swatch.style-choice i {
  display: block;
  width: 100%;
  height: 54px;
  overflow: hidden;
  border-radius: 4px;
  object-fit: cover;
}

.swatch.style-choice span {
  min-width: 0;
  overflow: hidden;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swatch[data-color="#f7f8f4"] {
  --swatch: #f7f8f4;
}

.swatch[data-color="#121317"] {
  --swatch: #121317;
}

.swatch[data-color="#c9ccd3"] {
  --swatch: #c9ccd3;
}

.swatch[data-color="#b8ff3d"] {
  --swatch: #b8ff3d;
}

.swatch[data-color="#26f4ff"] {
  --swatch: #26f4ff;
}

.swatch[data-color="#ff5c45"] {
  --swatch: #ff5c45;
}

.upload-box {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.upload-box:hover {
  border-color: var(--green);
  background: rgba(184, 255, 61, 0.07);
}

.upload-box.accent:hover {
  border-color: var(--cyan);
  background: rgba(38, 244, 255, 0.07);
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-box strong {
  font-size: 14px;
}

.upload-box span,
.hint-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hint-line {
  min-height: 18px;
  margin-top: 8px;
}

.ai-generator-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(38, 244, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(38, 244, 255, 0.08), rgba(184, 255, 61, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.ai-generator-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.ai-status {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.ai-actions,
.ai-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-result-grid {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.referral-poster-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(184, 255, 61, 0.42);
  border-radius: 8px;
  color: #f4f7f1;
  text-align: left;
  background: #151a18;
  cursor: pointer;
}

.referral-poster-entry:hover {
  border-color: #b8ff3d;
  background: #1a211d;
}

.referral-poster-entry-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #090b0a;
  background: #b8ff3d;
  font-size: 23px;
  font-weight: 900;
}

.referral-poster-entry > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.referral-poster-entry strong {
  font-size: 13px;
}

.referral-poster-entry small {
  color: #9ca7a1;
  font-size: 10px;
  line-height: 1.4;
}

.referral-poster-entry-arrow {
  color: #b8ff3d;
  font-size: 22px;
  text-align: right;
}

.customer-app .referral-poster-dialog {
  box-sizing: border-box;
  width: min(940px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(880px, calc(100dvh - 32px));
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  border-color: rgba(184, 255, 61, 0.34);
  background: #0e1110;
}

.referral-poster-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.referral-poster-header h2 {
  margin: 0;
  color: #f5f7f4;
  font-size: 24px;
  letter-spacing: 0;
}

.referral-poster-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.referral-poster-preview-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #080a09;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.referral-poster-preview-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.referral-poster-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #69736e;
  text-align: center;
}

.referral-poster-preview-empty strong {
  color: #b8ff3d;
  font-size: 48px;
}

.referral-poster-preview-empty span {
  font-size: 12px;
}

.referral-poster-controls {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.referral-reward-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.referral-reward-summary > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #151917;
}

.referral-reward-summary span {
  color: #8f9994;
  font-size: 10px;
}

.referral-reward-summary strong {
  color: #f4f7f1;
  font-size: 22px;
}

.referral-theme-fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.referral-theme-fieldset legend {
  margin-bottom: 8px;
  color: #aab3ae;
  font-size: 11px;
  font-weight: 800;
}

.referral-theme-options {
  display: flex;
  gap: 9px;
}

.referral-theme-swatch {
  width: 48px;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.referral-theme-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.referral-theme-swatch[data-referral-theme="ink"] span { background: linear-gradient(135deg, #0b0f0d 58%, #b8ff3d 59%); }
.referral-theme-swatch[data-referral-theme="paper"] span { background: linear-gradient(135deg, #f4f0e8 58%, #ef543f 59%); }
.referral-theme-swatch[data-referral-theme="electric"] span { background: linear-gradient(135deg, #153a72 58%, #ffdf54 59%); }
.referral-theme-swatch.active { border-color: #b8ff3d; box-shadow: 0 0 0 2px rgba(184, 255, 61, 0.12); }

.referral-background-upload {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  cursor: pointer;
}

.referral-background-upload:hover { border-color: rgba(184, 255, 61, 0.68); }
.referral-background-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.referral-background-upload span { display: grid; gap: 3px; }
.referral-background-upload strong { color: #f3f6f2; font-size: 12px; }
.referral-background-upload small { color: #87918c; font-size: 10px; }

.referral-poster-message {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-poster-message strong { color: #f5f7f4; font-size: 18px; }
.referral-poster-message span { color: #b8ff3d; font-size: 13px; }
.referral-poster-rule { margin: 0; color: #89938e; font-size: 11px; line-height: 1.55; }

.referral-poster-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.referral-poster-actions .button { min-width: 0; padding-inline: 10px; }
.referral-poster-status { min-height: 18px; color: #9da7a2; font-size: 11px; }

@media (max-width: 820px) {
  .customer-app .referral-poster-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    padding: 16px 14px max(18px, env(safe-area-inset-bottom));
  }

  .referral-poster-workspace { grid-template-columns: 1fr; }
  .referral-poster-preview-shell { width: min(100%, 320px); margin-inline: auto; }
  .referral-poster-actions { grid-template-columns: 1fr; }
  .referral-poster-actions .button { min-height: 44px; }
  .referral-poster-header h2 { font-size: 20px; }
}

.ai-result-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(5, 6, 8, 0.42);
}

.ai-result-card.active {
  border-color: rgba(184, 255, 61, 0.72);
  box-shadow: inset 0 0 0 1px rgba(184, 255, 61, 0.18);
}

.ai-result-card img {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #ecefeb;
  object-fit: contain;
}

.ai-result-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

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

.ai-result-card strong {
  font-size: 12px;
}

.ai-result-card span,
.ai-empty {
  color: var(--muted);
  font-size: 11px;
}

.ai-result-actions {
  grid-column: 1 / -1;
}

.ai-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.canvas-shell {
  display: grid;
  place-items: center;
  min-height: min(72vh, 860px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #101114;
  overflow: auto;
}

#designCanvas {
  width: min(100%, 760px);
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  touch-action: none;
  background: #ecefeb;
}

.quickbar {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.shape-tool {
  display: grid;
  gap: 8px;
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.shape-drag-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.shape-drag-mode button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  background: #101115;
  font-size: 11px;
  font-weight: 900;
}

.shape-drag-mode button.active {
  border-color: rgba(38, 244, 255, 0.72);
  color: var(--black);
  background: var(--cyan);
}

.shape-drag-mode button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.shape-button {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  background: #101115;
  font-size: 11px;
  font-weight: 800;
}

.shape-button:hover,
.shape-button.active {
  border-color: rgba(184, 255, 61, 0.72);
  color: var(--black);
  background: var(--green);
}

.shape-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.shape-scale-field {
  margin-top: 2px;
}

.shape-scale-field input:disabled,
.shape-position-controls input:disabled {
  opacity: 0.42;
}

.shape-position-controls {
  margin-top: 2px;
}

.artwork-panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.artwork-category-filter {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.artwork-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  background: #101115;
  white-space: nowrap;
}

.artwork-filter-chip span {
  font-size: 11px;
  font-weight: 800;
}

.artwork-filter-chip strong {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 5px;
  color: var(--black);
  background: var(--cyan);
  font-size: 10px;
}

.artwork-filter-chip.active {
  border-color: rgba(184, 255, 61, 0.72);
  color: var(--black);
  background: var(--green);
}

.artwork-filter-chip.active strong {
  background: rgba(5, 6, 8, 0.9);
  color: var(--green);
}

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

.artwork-card {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  background: #101115;
  text-align: left;
}

.artwork-image-button {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background-color: #f4f6f4;
  background-image: linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%), linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%), linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%);
  background-position: 0 0, 0 0, 9px 9px, 9px 9px;
  background-size: 18px 18px;
  overflow: hidden;
}

.artwork-card-media {
  position: relative;
  min-width: 0;
}

.artwork-availability-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 16px);
  pointer-events: none;
}

.artwork-availability-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  color: #07100b;
  background: rgba(185, 255, 56, 0.94);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.artwork-availability-badge.is-time {
  color: #f7f7ef;
  background: rgba(6, 10, 13, 0.88);
}

.artwork-availability-badge.is-syncing {
  color: rgba(247, 247, 239, 0.82);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(6, 10, 13, 0.88);
}

.artwork-availability-badge.is-quantity {
  color: #061018;
  background: rgba(34, 232, 255, 0.94);
}

.artwork-availability-badge.is-unavailable {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(204, 49, 45, 0.94);
}

.artwork-availability-badge.is-price {
  color: #07100b;
  background: rgba(185, 255, 56, 0.94);
}

.artwork-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.artwork-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.artwork-card strong,
.artwork-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-card strong {
  font-size: 12px;
}

.artwork-card span {
  color: var(--muted);
  font-size: 10px;
}

.artwork-card .button {
  min-height: 30px;
  justify-content: center;
  padding: 0 8px;
}

.asset-crop-dialog {
  width: min(860px, 100%);
}

.asset-crop-dialog .section-title-row {
  align-items: flex-start;
}

.asset-crop-dialog p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.asset-crop-canvas-wrap {
  display: grid;
  place-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.06) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.06) 75%),
    #101114;
  background-position:
    0 0,
    10px 10px;
  background-size: 20px 20px;
}

.crop-mode-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.crop-mode-switcher button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.crop-mode-switcher button.active {
  border-color: var(--cyan);
  color: var(--black);
  background: var(--cyan);
}

#assetCropCanvas {
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 720 / 520;
  border-radius: 6px;
  background: #17191e;
  cursor: crosshair;
  touch-action: none;
}

.sketch-dialog {
  width: min(860px, 100%);
}

.sketch-dialog p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.sketch-toolbar {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.sketch-canvas-wrap {
  display: grid;
  place-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: repeating-conic-gradient(#eef0ed 0 25%, #d8dcd8 0 50%) 50% / 20px 20px;
}

#sketchCanvas {
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 720 / 460;
  touch-action: none;
  cursor: crosshair;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #111216;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.button {
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(38, 244, 255, 0.75);
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.button:disabled,
.icon-button:disabled,
.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.button.primary {
  border-color: rgba(184, 255, 61, 0.55);
  color: var(--black);
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.button.compact {
  min-width: 72px;
  padding: 0 12px;
}

.full-button {
  width: 100%;
  margin: -2px 0 12px;
}

.catalog-source {
  min-height: 18px;
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.button.pay {
  width: 100%;
  border-color: rgba(255, 92, 69, 0.7);
  color: var(--black);
  background: linear-gradient(135deg, var(--coral), var(--gold));
}

.icon-button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-weight: 900;
}

.icon-button.danger {
  border-color: rgba(255, 92, 69, 0.45);
  color: #ff9c8d;
}

.text-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.control-grid {
  display: grid;
  gap: 10px;
}

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

.section-title-row {
  justify-content: space-between;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.selected-empty {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.selected-controls {
  display: none;
}

.selected-controls.active {
  display: block;
}

.layer-actions {
  justify-content: flex-end;
}

.layer-list {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
}

.layer-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.layer-row.active {
  border-color: rgba(38, 244, 255, 0.78);
  background: rgba(38, 244, 255, 0.08);
}

.layer-name {
  width: 100%;
  min-width: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: #0f1013;
  font-size: 11px;
  font-weight: 900;
}

.mini-button:hover {
  border-color: var(--cyan);
}

.saved-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 84px;
}

.saved-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.saved-item.active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(38, 244, 255, 0.14);
}

.saved-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.saved-item span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--black);
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.saved-item strong {
  position: absolute;
  left: 5px;
  bottom: 5px;
  max-width: calc(100% - 48px);
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--soft);
  background: rgba(5, 6, 8, 0.72);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.saved-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 9px;
}

.saved-actions .danger-button {
  border-color: rgba(255, 92, 69, 0.42);
  color: var(--coral);
}

.saved-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 14px;
  color: var(--muted);
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid rgba(38, 244, 255, 0.45);
  border-radius: 8px;
  color: var(--text);
  background: rgba(10, 11, 14, 0.94);
  box-shadow: var(--shadow);
  transform: translate(-50%, 120%);
  opacity: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
  font-size: 13px;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
}

.modal.open {
  display: grid;
}

.modal-dialog {
  width: min(420px, 100%);
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #111216;
  box-shadow: var(--shadow);
}

.session-idle-warning-modal {
  z-index: 95;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(12px);
}

.session-idle-warning-dialog {
  width: min(460px, 100%);
  padding: clamp(22px, 5vw, 34px);
  border-color: rgba(38, 244, 255, 0.28);
  background:
    radial-gradient(circle at 92% 8%, rgba(38, 244, 255, 0.1), transparent 34%),
    #111216;
}

.session-idle-warning-kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.session-idle-warning-dialog h2 {
  margin: 10px 0 8px;
  font-size: clamp(23px, 5vw, 30px);
}

.session-idle-warning-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.session-idle-countdown {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 15px 16px;
  border: 1px solid rgba(38, 244, 255, 0.2);
  border-radius: 10px;
  background: rgba(38, 244, 255, 0.05);
  color: var(--muted);
}

.session-idle-countdown strong {
  color: var(--cyan);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.session-idle-actions .button {
  min-width: 120px;
}

@media (max-width: 520px) {
  .session-idle-actions { display: grid; grid-template-columns: 1fr; }
  .session-idle-actions .button.primary { grid-row: 1; }
}

.cart-dialog {
  display: grid;
  gap: 14px;
  width: min(720px, 100%);
}

.cart-dialog .section-title-row {
  align-items: flex-start;
}

.cart-dialog p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cart-list {
  display: grid;
  gap: 10px;
  max-height: min(54vh, 520px);
  overflow: auto;
}

.cart-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.cart-row img {
  width: 78px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 8px;
  object-fit: cover;
}

.cart-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-row strong,
.cart-row span,
.cart-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-row span,
.cart-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.cart-row-actions {
  justify-items: end;
}

.cart-edit-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 120px));
  gap: 8px;
  margin-top: 6px;
}

.cart-edit-controls label {
  display: grid;
  gap: 4px;
}

.cart-edit-controls label span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.cart-edit-controls select,
.cart-edit-controls input {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #0c0d11;
}

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cart-footer span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.cart-footer strong {
  color: var(--green);
  font-size: 24px;
}

.cart-footer-actions {
  display: flex;
  gap: 8px;
}

.cart-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.checkout-dialog {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(980px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
}

.checkout-dialog .section-title-row {
  grid-column: 1 / -1;
}

.checkout-dialog > img {
  align-self: start;
  height: auto;
  max-height: min(58vh, 560px);
  margin: 0;
  object-fit: contain;
}

.checkout-dialog .order-summary {
  min-height: 0;
  max-height: min(58vh, 560px);
  margin-bottom: 0;
  overflow: auto;
}

.checkout-dialog #payBtn {
  grid-column: 2;
  position: sticky;
  bottom: 0;
}

.modal-dialog img {
  display: block;
  width: 100%;
  margin: 16px 0;
  border-radius: var(--radius);
  background: #ecefeb;
}

.checkout-dialog > #orderPreview {
  margin: 0;
  max-height: min(58vh, 560px);
  object-fit: contain;
}

.auth-dialog {
  display: grid;
  gap: 12px;
  width: min(460px, 100%);
  max-height: min(92vh, 860px);
  overflow-y: auto;
}

.auth-tabs {
  display: flex;
  gap: 8px;
}

.auth-tabs .mode-button {
  flex: 1;
}

.auth-qr,
.auth-form {
  display: grid;
  gap: 10px;
}

.qr-box {
  display: grid;
  place-items: center;
  height: 112px;
  border: 1px dashed rgba(38, 244, 255, 0.5);
  border-radius: var(--radius);
  color: var(--green);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 16px),
    #0b0d11;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
  caret-color: #111827;
}

.auth-form input::placeholder {
  color: #697586;
}

.auth-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  max-height: min(94vh, 980px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #0d1014;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.52);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.auth-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 28px 22px;
  background: linear-gradient(135deg, rgba(38, 244, 255, 0.14), rgba(184, 255, 61, 0.06) 58%, transparent);
}

.auth-heading h2 {
  margin: 6px 0 8px;
  color: #f7f7ef;
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: 0;
}

.auth-heading p,
.auth-help-copy,
.auth-recovery-panel p,
.auth-recovery-panel li {
  color: rgba(223, 228, 218, 0.62);
  font-size: 12px;
  line-height: 1.7;
}

.auth-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.auth-provider-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 20px 28px 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-provider-tab {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  color: rgba(223, 228, 218, 0.62);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-provider-tab.active {
  color: #08090b;
  background: var(--green);
  box-shadow: 0 8px 22px rgba(184, 255, 61, 0.16);
}

.auth-provider-panel,
.auth-recovery-panel {
  padding: 20px 28px 28px;
}

.auth-tabs {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tabs .mode-button {
  border-color: transparent;
  color: rgba(223, 228, 218, 0.58);
  background: transparent;
}

.auth-tabs .mode-button.active {
  border-color: rgba(38, 244, 255, 0.38);
  color: var(--cyan);
  background: rgba(38, 244, 255, 0.08);
}

.auth-field {
  display: grid;
  gap: 7px;
  color: rgba(223, 228, 218, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.auth-form input {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #f7f7ef;
  background: rgba(5, 6, 8, 0.78);
  font-size: 15px;
}

.auth-form input:focus {
  border-color: rgba(38, 244, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(38, 244, 255, 0.1);
  outline: 0;
}

.auth-form input::placeholder {
  color: rgba(223, 228, 218, 0.36);
}

.auth-recovery-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #f7f7ef;
  background: rgba(5, 6, 8, 0.78);
  font-size: 15px;
}

.auth-recovery-panel input:focus {
  border-color: rgba(38, 244, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(38, 244, 255, 0.1);
  outline: 0;
}

.auth-recovery-panel input::placeholder {
  color: rgba(223, 228, 218, 0.36);
}

.auth-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(223, 228, 218, 0.44);
  font-size: 11px;
}

.auth-link-button {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.auth-submit-button {
  min-height: 48px;
  border-radius: 9px;
  font-size: 14px;
}

.wechat-visual {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 520px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(38, 244, 255, 0.22);
  border-radius: 12px;
  color: rgba(223, 228, 218, 0.72);
  background: rgba(5, 6, 8, 0.62);
  font-weight: 800;
  overflow: visible;
}

.auth-wechat-direct .wechat-visual {
  display: none;
}

.wechat-qr-loading {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 460px;
  text-align: center;
}

.wechat-qr-loading.is-error .wechat-mark {
  color: #fff4e8;
  background: #c94d39;
}

.wechat-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #08090b;
  background: #a8ff1d;
  font-size: 28px;
  font-weight: 900;
}

.wechat-qr-viewport {
  display: grid;
  place-items: start center;
  width: min(340px, 100%);
  min-height: 484px;
  padding: 8px 10px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  overflow: visible;
}

.wechat-qr-widget,
.wechat-qr-direct-frame {
  display: grid;
  place-items: start center;
  width: 320px;
  min-height: 464px;
  margin: 0 auto;
  overflow: visible;
}

.wechat-qr-widget iframe,
.wechat-qr-direct-frame {
  display: block;
  width: 320px !important;
  height: 464px !important;
  max-width: 100%;
  border: 0;
  background: #fff;
}

.wechat-qr-fallback {
  justify-self: center;
  color: #26f4ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.wechat-qr-fallback:hover {
  color: #a8ff1d;
}

@media (max-width: 520px) {
  .wechat-visual {
    min-height: 492px;
    padding: 8px;
  }

  .wechat-qr-viewport {
    width: min(318px, 100%);
    min-height: 462px;
    padding: 6px;
  }

  .wechat-qr-widget,
  .wechat-qr-widget iframe,
  .wechat-qr-direct-frame {
    width: 306px !important;
    min-height: 448px;
    height: 448px !important;
  }
}

.auth-notice {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(38, 244, 255, 0.2);
  border-radius: 9px;
  color: rgba(223, 228, 218, 0.62);
  background: rgba(38, 244, 255, 0.06);
  font-size: 11px;
  line-height: 1.6;
}

.auth-notice strong {
  color: var(--cyan);
}

.auth-notice-warning {
  border-color: rgba(255, 174, 92, 0.28);
  background: rgba(255, 174, 92, 0.07);
}

.auth-notice-warning strong {
  color: #ffb66b;
}

.auth-recovery-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #f7f7ef;
  font-size: 18px;
}

.auth-recovery-panel ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding-left: 20px;
}

.profile-page {
  min-height: 100vh;
  padding: 18px;
  color: #111827;
  background:
    radial-gradient(circle at 16% 8%, rgba(38, 244, 255, 0.16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(184, 255, 61, 0.14), transparent 24%),
    #f5f6f8;
}

.profile-topbar,
.profile-hero-panel,
.profile-layout {
  max-width: 1440px;
  margin: 0 auto 18px;
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 0 24px;
  border: 1px solid #dfe4eb;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.profile-top-actions,
.profile-inline-actions,
.profile-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-hero-panel {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(38, 244, 255, 0.13), transparent 36%),
    linear-gradient(245deg, rgba(184, 255, 61, 0.14), transparent 32%),
    #0d1117;
  box-shadow: 0 28px 84px rgba(15, 23, 42, 0.24);
}

.profile-avatar-large {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  color: #050608;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 34px;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(38, 244, 255, 0.18);
}

.profile-hero-panel h1 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.05;
}

.profile-hero-panel p {
  margin: 8px 0 0;
  color: #b8c0cc;
}

.profile-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}

.profile-side-panel,
.profile-card {
  border: 1px solid #dfe4eb;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.profile-side-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.profile-side-panel h2,
.profile-card h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-info-list {
  display: grid;
  gap: 10px;
}

.profile-info-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.profile-info-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.profile-info-row strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.profile-info-row.empty strong {
  color: #94a3b8;
  font-weight: 800;
}

.profile-edit-panel,
.profile-address-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dfe7ee;
  border-radius: var(--radius);
  background: #ffffff;
}

.profile-edit-panel[hidden],
.profile-address-editor[hidden] {
  display: none !important;
}

.profile-avatar-upload {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px dashed #aab6c5;
  border-radius: 6px;
  color: #0f766e;
  background: #f7fbfa;
  font-weight: 900;
}

.profile-avatar-upload input {
  display: none;
}

.profile-main-panel {
  display: grid;
  gap: 14px;
}

.profile-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

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

.profile-section-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.profile-page input,
.profile-page select,
.profile-page textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  color: #111827;
  background: #ffffff;
}

.profile-page textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.profile-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dfe4eb;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(38, 244, 255, 0.06), transparent 34%),
    #f8fafc;
}

.profile-address-row strong,
.profile-address-row span {
  display: block;
}

.profile-address-row strong {
  color: #111827;
}

.profile-address-row span {
  margin-top: 4px;
  color: #526070;
  line-height: 1.5;
}

.profile-page .profile-row {
  border-color: #dfe4eb;
  color: #111827;
  background: #f8fafc;
}

.profile-page .profile-row span {
  color: #526070;
}

.profile-page .profile-design-row:hover,
.profile-address-row:hover {
  border-color: #96e9e1;
  background: #f2fbf9;
}

.profile-page .mini-button {
  color: #0f766e;
  background: #ffffff;
}

.profile-page .mini-button.danger {
  color: #be123c;
}

.profile-page .profile-order-row,
.profile-page .profile-design-row {
  padding: 12px;
  border-radius: var(--radius);
}

.profile-design-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.customer-app .profile-design-actions {
  min-width: max-content;
  justify-self: end;
  align-items: center;
}

.customer-app .profile-design-actions .mini-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.profile-page .profile-order-row img,
.profile-page .profile-design-row img {
  border-radius: 10px;
}

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

.profile-list {
  display: grid;
  gap: 8px;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

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

.profile-design-row {
  width: 100%;
  border-color: var(--line);
  text-align: left;
}

.artwork-preview-dialog {
  width: min(760px, 100%);
}

.artwork-preview-dialog .section-title-row {
  align-items: flex-start;
}

.artwork-preview-dialog p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.artwork-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  margin: 14px 0;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%) 0 0 / 18px 18px,
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%) 9px 9px / 18px 18px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 9px 9px / 18px 18px,
    #17191d;
}

.artwork-author-row {
  margin-top: 12px;
}

.artwork-author-row strong,
.artwork-author-row span {
  display: block;
}

.artwork-author-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.artwork-action-row .button.active,
.artwork-action-row .button:hover {
  border-color: #0f766e;
  color: #ffffff;
  background: #0f766e;
}

.artwork-preview-frame img {
  width: auto;
  max-width: 100%;
  max-height: 62vh;
  margin: 0;
  background: transparent;
  object-fit: contain;
}

.preview-trace-watermark {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  transform: none;
}
.preview-trace-watermark-line {
  position: absolute;
  right: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  color: rgba(255, 255, 255, .26);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .01em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .42);
  white-space: normal;
  overflow-wrap: anywhere;
}
.preview-trace-watermark-line.is-center {
  top: 50%;
  transform: translateY(-50%);
}
.preview-trace-watermark-line.is-bottom {
  bottom: 10px;
}

.order-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--soft);
  font-size: 13px;
}

.checkout-item-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.checkout-item-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.checkout-item-row img {
  width: 58px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 5px;
  object-fit: cover;
}

.checkout-item-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.checkout-item-row strong,
.checkout-item-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-item-row span {
  color: var(--muted);
  font-size: 11px;
}

.checkout-address-panel {
  display: grid;
  grid-column: 2;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.checkout-address-list {
  display: grid;
  gap: 8px;
  max-height: 158px;
  overflow: auto;
}

.customer-app .checkout-address-actions { display: flex; gap: 8px; }
.customer-app .checkout-address-selected { display: grid; gap: 7px; padding: 16px; border: 1px solid rgba(184,255,61,.76); border-radius: 8px; background: rgba(184,255,61,.055); }
.customer-app .checkout-address-selected span { color: var(--green); font-size: 12px; font-weight: 850; }
.customer-app .checkout-address-selected strong { color: var(--soft); line-height: 1.55; }
.customer-app .checkout-address-picker { display: grid; gap: 8px; max-height: 190px; padding-top: 8px; border-top: 1px solid var(--line); overflow: auto; }

.checkout-address-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  background: #0c0d11;
  text-align: left;
}

.checkout-address-row span,
.checkout-address-empty {
  color: var(--muted);
  font-size: 12px;
}

.checkout-address-row strong {
  white-space: normal;
  line-height: 1.45;
}

.checkout-address-row.active {
  border-color: rgba(184, 255, 61, 0.75);
  box-shadow: inset 0 0 0 1px rgba(184, 255, 61, 0.26);
}

.checkout-address-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.checkout-add-address {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.checkout-add-address-head {
  display: grid;
  gap: 3px;
}

.checkout-add-address-head strong {
  color: var(--soft);
  font-size: 12px;
}

.checkout-add-address-head span {
  color: var(--muted);
  font-size: 10px;
}

.checkout-add-address-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.checkout-refund-notice {
  display: grid;
  gap: 5px;
  grid-column: 2;
  margin: 0 0 12px;
  padding: 11px 12px;
  border-left: 3px solid #ffb347;
  color: rgba(247, 247, 239, 0.68);
  background: rgba(255, 179, 71, 0.06);
  font-size: 11px;
  line-height: 1.55;
}

.checkout-refund-notice strong {
  color: #ffd18c;
  font-size: 12px;
}

.checkout-refund-notice label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-weight: 800;
}

.checkout-refund-notice input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.total-summary strong {
  color: var(--green);
  font-size: 18px;
}

@media (max-width: 1180px) {
  .home-showcase-grid,
  .home-art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio {
    grid-template-columns: 260px minmax(360px, 1fr);
  }

  .edit-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edit-panel section + section {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: 10px;
  }

  .home-app,
  .catalog-app {
    padding: 10px;
  }

  .home-topbar,
  .catalog-topbar,
  .home-hero,
  .home-split,
  .profile-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .home-topbar,
  .catalog-topbar {
    display: grid;
  }

  .home-actions {
    justify-content: stretch;
  }

  .home-actions .button,
  .user-chip {
    flex: 1;
    justify-content: center;
  }

  .home-hero {
    padding: 20px;
  }

  .home-hero-preview {
    min-height: 300px;
  }

  .profile-topbar,
  .profile-hero-panel {
    grid-template-columns: 1fr;
  }

  .profile-topbar {
    display: grid;
    padding: 16px;
  }

  .profile-top-actions,
  .profile-inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-hero-panel {
    justify-items: start;
  }

  .profile-address-row {
    grid-template-columns: 1fr;
  }

  .home-design-actions,
  .cart-footer,
  .cart-footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .cart-row-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .topbar,
  .studio,
  .edit-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-actions,
  .quickbar {
    justify-content: stretch;
  }

  .top-actions .button,
  .quickbar .button {
    flex: 1;
  }

  .category-grid {
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    overflow-x: auto;
  }

  .secondary-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .secondary-chip {
    flex: 0 0 auto;
  }

  .category-tile {
    min-height: 72px;
  }

  .canvas-shell {
    min-height: auto;
    padding: 8px;
  }

  #designCanvas {
    width: min(100%, 92vw);
  }

  .stage-header {
    align-items: flex-start;
  }

  .checkout-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow: auto;
  }

  .checkout-dialog .section-title-row,
  .checkout-address-panel,
  .checkout-dialog #payBtn {
    grid-column: 1;
  }

  .checkout-dialog > img,
  .checkout-dialog .order-summary {
    max-height: none;
  }
}



@media (max-width: 520px) {
  .home-showcase-grid,
  .home-art-grid {
    grid-template-columns: 1fr;
  }

  .top-actions {
    grid-template-columns: 1fr 1fr;
  }

  .status-pill {
    grid-column: 1 / -1;
  }

  .control-grid.two {
    grid-template-columns: 1fr;
  }

  .saved-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Final editor composition: keep the canvas primary and keep auxiliary panels in flow. */
@media (min-width: 821px) {
  .customer-app .editor-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    padding: 12px 18px 16px;
    overflow: hidden;
  }

  .customer-app .editor-shell .topbar {
    flex: 0 0 auto;
    min-height: 64px;
    margin: 0 0 8px;
    border-radius: 12px;
  }

  .customer-app .editor-progress {
    flex: 0 0 30px;
    margin: 0 auto 8px;
  }

  .customer-app .studio {
    display: grid;
    grid-template-columns: 86px minmax(320px, 390px) minmax(0, 1fr);
    gap: 12px;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    align-items: stretch;
  }

  .customer-app .studio > .toolbox-jump {
    grid-column: 1;
    grid-row: 1;
    width: 86px;
    min-height: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(17, 22, 23, .98), rgba(9, 12, 13, .98));
  }

  .customer-app .studio > .product-panel,
  .customer-app .studio > .edit-panel {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-height: none;
    border-radius: 12px;
  }

  .customer-app .studio > .stage-panel {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .customer-app .stage-header {
    flex: 0 0 auto;
    margin-bottom: 10px;
  }

  .customer-app .canvas-shell {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 2.2vw, 34px);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(40, 215, 229, .06), transparent 42%),
      repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 44px),
      repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 44px),
      #111514;
    overflow: auto;
  }

  .customer-app #designCanvas {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
  }

  .customer-app .canvas-layer-panel {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    max-height: 104px;
    margin: 10px 0 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(8, 11, 12, .94);
    box-shadow: none;
    overflow: hidden;
  }

  .customer-app .canvas-layer-head {
    min-height: 28px;
    margin-bottom: 6px;
  }

  .customer-app .canvas-layer-head > div span { display: none; }

  .customer-app .canvas-layer-panel .layer-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .customer-app .canvas-layer-panel .layer-row {
    flex: 0 0 252px;
  }

  .customer-app .canvas-zoom-control {
    position: static;
    align-self: flex-end;
    flex: 0 0 auto;
    width: min(360px, 100%);
    margin: 8px 0 0;
  }

  .customer-app .quickbar {
    flex: 0 0 auto;
    margin-top: 8px;
  }
}

@media (max-width: 820px) {
  .customer-app .canvas-layer-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}

/* Customer-facing product selection and editor skin. */
.customer-app {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-strong: #f7f8fa;
  --line: #e3e6eb;
  --line-strong: #cbd1d9;
  --text: #1f2933;
  --muted: #697586;
  --soft: #3f4a59;
  --cyan: #2563eb;
  --green: #0f9f6e;
  --coral: #e2554c;
  --gold: #e7a62b;
  --black: #ffffff;
  --shadow: 0 10px 30px rgba(30, 41, 59, 0.08);
  background: var(--bg);
  color: var(--text);
}

.customer-app [hidden] {
  display: none !important;
}

.catalog-app {
  min-height: 100vh;
  background: #f5f6f8;
}

.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.catalog-brand .brand-mark {
  color: #ffffff;
  background: #111827;
  box-shadow: none;
}

.catalog-top-meta {
  color: var(--muted);
  font-size: 13px;
}

.catalog-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-user-chip {
  border-color: #d8dee8;
  background: #ffffff;
}

.catalog-user-chip:not(.logged-in) span {
  color: #475569;
  background: #e8edf3;
}

.catalog-user-chip:not(.logged-in) strong {
  color: #475569;
}

.catalog-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 32px 36px;
}

.filter-label,
.catalog-product-category {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-hero h1 {
  margin-top: 10px;
  color: #111827;
  font-size: 52px;
  letter-spacing: 0;
}

.catalog-hero p {
  max-width: 580px;
  margin-top: 14px;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

.catalog-search {
  display: grid;
  gap: 8px;
  width: min(340px, 100%);
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.catalog-search input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  color: #1f2933;
  background: #ffffff;
  outline: none;
}

.catalog-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 52px;
}

.catalog-filter {
  padding-top: 8px;
}

.catalog-category-tabs {
  display: grid;
  gap: 3px;
  margin-top: 14px;
}

.catalog-category-tab {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #64748b;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.catalog-category-tab:hover {
  color: #111827;
  background: #eaf0ff;
}

.catalog-category-tab.active {
  color: #1d4ed8;
  background: #e8efff;
}

.catalog-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.catalog-results-head > div {
  display: grid;
  gap: 5px;
}

.catalog-results-head strong {
  color: #111827;
  font-size: 20px;
}

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

.catalog-product-card {
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(30, 41, 59, 0.04);
  cursor: pointer;
  overflow: hidden;
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.catalog-product-card:hover {
  border-color: #b9c8ed;
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.12);
  transform: translateY(-2px);
}

.catalog-product-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.1;
  padding: 20px;
  background: #f0f2f5;
}

.catalog-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-product-image > span:first-child {
  display: grid;
  place-items: center;
  width: 86px;
  height: 110px;
  border-radius: 22px 22px 10px 10px;
  color: #94a3b8;
  background: #dfe5ed;
  font-size: 38px;
  font-weight: 900;
}

.catalog-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 7px;
  border-radius: 4px;
  color: #475569;
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
}

.catalog-product-content {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.catalog-product-content h2 {
  margin-top: 7px;
  margin-bottom: 0;
  color: #111827;
  font-size: 15px;
}

.catalog-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.catalog-product-footer strong {
  color: #111827;
  font-size: 17px;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
}

.order-selection-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.order-selection-list.active {
  max-height: 360px;
  overflow: auto;
}

.order-draft-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.order-draft-item > img {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 5px;
  background: #ecefeb;
  object-fit: cover;
}

.order-draft-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.order-draft-copy strong,
.order-draft-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-draft-copy strong {
  color: var(--soft);
  font-size: 12px;
}

.order-draft-copy span {
  color: var(--muted);
  font-size: 10px;
}

.order-draft-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 6px;
}

.order-draft-controls .field {
  margin: 0;
}

.order-draft-controls .field span {
  margin-bottom: 3px;
  font-size: 10px;
}

.order-draft-controls select,
.order-draft-controls input {
  min-height: 32px;
}

.order-draft-total {
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}

.editor-shell {
  min-height: 100vh;
  padding: 0 24px 24px;
  background: #f5f6f8;
}

.editor-shell .topbar {
  max-width: none;
  min-height: 66px;
  margin: 0 -24px 0;
  padding: 0 24px;
  border-bottom: 1px solid #e2e6ec;
  background: #ffffff;
}

.editor-shell .brand-mark {
  color: #ffffff;
  background: #111827;
  box-shadow: none;
}

.editor-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 620px;
  margin: 18px auto;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.progress-step.active {
  color: #1d4ed8;
}

.progress-step.complete {
  color: #0f9f6e;
}

.progress-line {
  width: 72px;
  height: 1px;
  background: #d7dce5;
}

.customer-app .studio {
  max-width: 1500px;
  grid-template-columns: 270px minmax(420px, 1fr) 320px;
  gap: 14px;
}

.customer-app .panel,
.customer-app .stage-panel {
  border-color: #e2e6ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(30, 41, 59, 0.04);
  backdrop-filter: none;
}

.customer-app .panel {
  padding: 15px;
}

.customer-app .stage-panel {
  padding: 14px;
}

.customer-app .category-tile,
.customer-app .secondary-chip,
.customer-app .side-button,
.customer-app .button,
.customer-app .icon-button,
.customer-app .mini-button {
  border-color: #dfe4eb;
  color: #475569;
  background: #ffffff;
}

.customer-app .category-tile:hover,
.customer-app .category-tile.active {
  border-color: #9bb4ed;
  color: #1d4ed8;
  background: #edf3ff;
}

.customer-app .side-button.active {
  border-color: #9bb4ed;
  color: #1d4ed8;
  background: #edf3ff;
}

.customer-app .button.primary {
  border-color: #1d4ed8;
  color: #ffffff;
  background: #2563eb;
}

.customer-app .button.primary:hover {
  border-color: #1e40af;
  background: #1d4ed8;
}

.customer-app .button.pay {
  border-color: #0f9f6e;
  color: #ffffff;
  background: #0f9f6e;
}

.customer-app .field input,
.customer-app .field select,
.customer-app .text-form input {
  border-color: #dfe4eb;
  color: #1f2933;
  background: #ffffff;
}

.customer-app .upload-box,
.customer-app .selected-empty,
.customer-app .layer-row,
.customer-app .saved-empty {
  border-color: #dfe4eb;
  color: #64748b;
  background: #f8fafc;
}

.customer-app .saved-item {
  border-color: #dfe4eb;
  background: #ffffff;
}

.customer-app .saved-item.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.customer-app .saved-item strong {
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
}

.customer-app .checkout-item-row {
  border-color: #dfe4eb;
  background: #f8fafc;
}

.customer-app .cart-row {
  border-color: #dfe4eb;
  color: #334155;
  background: #f8fafc;
}

.customer-app .cart-empty {
  border-color: #dfe4eb;
  color: #64748b;
}

.customer-app .order-draft-item {
  border-color: #dfe4eb;
  background: #f8fafc;
}

.customer-app .order-draft-copy strong {
  color: #334155;
}

.customer-app .order-draft-total {
  color: #0f9f6e;
}

.customer-app .artwork-filter-chip,
.customer-app .artwork-card {
  border-color: #dfe4eb;
  color: #334155;
  background: #ffffff;
}

.customer-app .artwork-filter-chip:hover,
.customer-app .artwork-filter-chip.active {
  border-color: #9bb4ed;
  color: #1d4ed8;
  background: #edf3ff;
}

.customer-app .artwork-filter-chip strong {
  color: #ffffff;
  background: #2563eb;
}

.customer-app .artwork-image-button {
  background: #f4f6f9;
}

.customer-app .artwork-card span {
  color: #697586;
}

.customer-app .canvas-shell {
  min-height: min(72vh, 820px);
  border-color: #e2e6ec;
  background: #eef1f5;
}

.customer-app .status-pill {
  border-color: #b8dfcf;
  color: #0f9f6e;
  background: #effaf5;
}

@media (max-width: 960px) {
  .catalog-topbar {
    padding: 0 24px;
  }

  .catalog-hero {
    align-items: stretch;
    flex-direction: column;
    padding-top: 42px;
  }

  .catalog-search {
    width: 100%;
  }

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

@media (max-width: 640px) {
  .catalog-topbar {
    padding: 0 16px;
  }

  .catalog-account {
    justify-content: space-between;
  }

  .catalog-account .catalog-top-meta {
    max-width: 11em;
    line-height: 1.35;
  }

  .catalog-hero,
  .catalog-layout {
    padding-right: 16px;
    padding-left: 16px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .catalog-category-tab {
    flex: 0 0 auto;
  }

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

  .editor-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .editor-shell .topbar {
    margin-right: -10px;
    margin-left: -10px;
    padding: 0 10px;
  }

  .editor-progress {
    gap: 6px;
    font-size: 10px;
  }

  .progress-line {
    width: 24px;
  }
}

/* Customer-facing visual system: dark creative marketplace, quiet chrome, vivid actions. */
.customer-app {
  --bg: #060708;
  --panel: rgba(18, 19, 23, 0.94);
  --panel-strong: #101216;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f6f7f1;
  --muted: #929a9d;
  --soft: #d9ddd7;
  --cyan: #26f4ff;
  --green: #b8ff3d;
  --coral: #ff5c45;
  --gold: #f4c25a;
  --black: #050608;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  color: var(--text);
  background:
    radial-gradient(ellipse at 82% 10%, rgba(38, 244, 255, 0.18), transparent 34%),
    radial-gradient(ellipse at 4% 12%, rgba(255, 92, 69, 0.12), transparent 28%),
    radial-gradient(ellipse at 50% 78%, rgba(184, 255, 61, 0.08), transparent 35%),
    #060708;
}

.customer-app .catalog-app,
.customer-app .editor-shell {
  color: var(--text);
  background:
    radial-gradient(ellipse at 86% 2%, rgba(38, 244, 255, 0.14), transparent 26%),
    radial-gradient(ellipse at 4% 18%, rgba(255, 92, 69, 0.08), transparent 24%),
    #07080a;
}

.customer-app .catalog-topbar,
.customer-app .editor-shell .topbar {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 9, 11, 0.9);
  backdrop-filter: blur(18px);
}

.customer-app .catalog-brand .brand-mark,
.customer-app .editor-shell .brand-mark {
  border-color: rgba(38, 244, 255, 0.5);
  color: var(--black);
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.customer-app .catalog-brand strong,
.customer-app .catalog-brand .brand-home-button,
.customer-app .editor-shell .brand strong {
  color: var(--soft);
}

.customer-app .catalog-brand span,
.customer-app .editor-shell .brand span,
.customer-app .catalog-top-meta {
  color: rgba(217, 221, 215, 0.52);
}

.customer-app .catalog-user-chip {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
}

.customer-app .catalog-user-chip:not(.logged-in) span {
  color: var(--soft);
  background: #20242a;
}

.customer-app .catalog-user-chip:not(.logged-in) strong { color: rgba(217, 221, 215, 0.66); }

.customer-app .catalog-hero {
  max-width: 1380px;
  padding-top: 72px;
  padding-bottom: 46px;
}

.customer-app .filter-label,
.customer-app .catalog-product-category {
  color: var(--cyan);
}

.customer-app .catalog-hero h1 {
  color: #fff;
  font-size: 46px;
}

.customer-app .catalog-hero p { color: rgba(217, 221, 215, 0.58); }
.customer-app .catalog-search { color: rgba(217, 221, 215, 0.58); }
.customer-app .catalog-search input {
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(8, 9, 11, 0.58);
}
.customer-app .catalog-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(38, 244, 255, 0.1); }

.customer-app .catalog-layout { max-width: 1380px; }
.customer-app .catalog-category-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(217, 221, 215, 0.58);
}
.customer-app .catalog-category-tab:hover { border-color: rgba(255, 255, 255, 0.18); color: var(--soft); background: rgba(255, 255, 255, 0.05); }
.customer-app .catalog-category-tab.active { border-color: rgba(38, 244, 255, 0.48); color: var(--cyan); background: rgba(38, 244, 255, 0.09); }
.customer-app .catalog-results-head strong { color: var(--soft); }

.customer-app .catalog-product-grid { gap: 18px; }
.customer-app .catalog-product-card {
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(18, 19, 23, 0.82);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2);
}
.customer-app .catalog-product-card:hover {
  border-color: rgba(38, 244, 255, 0.62);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.36);
  transform: translateY(-5px);
}
.customer-app .catalog-product-image { background: #e9ece9; }
.customer-app .catalog-product-image > span:first-child { color: #727a82; background: #cfd5d7; }
.customer-app .catalog-product-badge { color: var(--soft); background: rgba(8, 9, 11, 0.72); }
.customer-app .catalog-product-content h2,
.customer-app .catalog-product-footer strong { color: #fff; }
.customer-app .catalog-empty { border-color: rgba(255, 255, 255, 0.2); color: var(--muted); background: rgba(18, 19, 23, 0.72); }

.customer-app .editor-shell { padding-top: 0; }
.customer-app .editor-progress { color: rgba(217, 221, 215, 0.42); }
.customer-app .progress-step.active { color: var(--cyan); }
.customer-app .progress-step.complete { color: var(--green); }
.customer-app .progress-line { background: rgba(255, 255, 255, 0.16); }
.customer-app .panel,
.customer-app .stage-panel {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(18, 19, 23, 0.88);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.25);
}
.customer-app .panel h2,
.customer-app .stage-panel h1 { color: var(--soft); }

.customer-app .category-tile,
.customer-app .secondary-chip,
.customer-app .side-button,
.customer-app .button,
.customer-app .icon-button,
.customer-app .mini-button {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(217, 221, 215, 0.74);
  background: #101216;
}
.customer-app .category-tile:hover,
.customer-app .category-tile.active,
.customer-app .secondary-chip:hover,
.customer-app .secondary-chip.active {
  border-color: rgba(38, 244, 255, 0.58);
  color: var(--cyan);
  background: rgba(38, 244, 255, 0.08);
}
.customer-app .side-button.active {
  border-color: var(--green);
  color: var(--black);
  background: var(--green);
}
.customer-app .button.primary {
  border-color: var(--green);
  color: var(--black);
  background: var(--green);
}
.customer-app .button.primary:hover { border-color: var(--cyan); color: var(--black); background: var(--cyan); }
.customer-app .button.ghost { background: rgba(255, 255, 255, 0.05); }
.customer-app .button.pay { border-color: var(--green); color: var(--black); background: var(--green); }
.customer-app .field input,
.customer-app .field select,
.customer-app .text-form input {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--soft);
  background: #0d0f12;
}
.customer-app .field input:focus,
.customer-app .field select:focus,
.customer-app .text-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38, 244, 255, 0.1); }
.customer-app .upload-box,
.customer-app .selected-empty,
.customer-app .layer-row,
.customer-app .saved-empty,
.customer-app .order-draft-item,
.customer-app .checkout-item-row,
.customer-app .cart-row,
.customer-app .cart-empty {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
  background: rgba(8, 9, 11, 0.34);
}
.customer-app .saved-item { border-color: rgba(255, 255, 255, 0.16); background: #101216; }
.customer-app .saved-item.active { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38, 244, 255, 0.1); }
.customer-app .order-draft-copy strong { color: var(--soft); }
.customer-app .order-draft-total { color: var(--green); }
.customer-app .artwork-filter-chip,
.customer-app .artwork-card { border-color: rgba(255, 255, 255, 0.14); color: var(--soft); background: #101216; }
.customer-app .artwork-filter-chip:hover,
.customer-app .artwork-filter-chip.active { border-color: var(--cyan); color: var(--cyan); background: rgba(38, 244, 255, 0.08); }
.customer-app .artwork-filter-chip strong { color: var(--black); background: var(--green); }
.customer-app .artwork-image-button { background: #e9ece9; }
.customer-app .artwork-card span { color: var(--muted); }
.customer-app .canvas-shell {
  min-height: min(72vh, 820px);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(38, 244, 255, 0.08), transparent 48%),
    #0b0d10;
}
.customer-app .status-pill { border-color: rgba(184, 255, 61, 0.34); color: var(--green); background: rgba(184, 255, 61, 0.07); }
.customer-app .modal { background: rgba(0, 0, 0, 0.78); }
.customer-app .modal-dialog,
.customer-app .auth-dialog,
.customer-app .cart-dialog { border-color: rgba(255, 255, 255, 0.22); color: var(--soft); background: #111317; }
.customer-app .auth-form input,
.customer-app .cart-edit-controls select,
.customer-app .cart-edit-controls input { border-color: rgba(255, 255, 255, 0.18); color: var(--soft); background: #0c0e11; }
.customer-app .auth-form input::placeholder { color: #737c80; }
.customer-app .user-menu { border-color: rgba(255, 255, 255, 0.2); background: #111317; box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4); }
.customer-app .user-menu-item { color: var(--soft); background: transparent; }
.customer-app .user-menu-item:hover { background: rgba(38, 244, 255, 0.08); }
.customer-app .user-menu-item.danger { color: #ff8c7b; }

.customer-app .home-app {
  max-width: 1640px;
  margin: 0 auto;
  padding: 24px 42px 72px;
}

.customer-app .home-topbar {
  position: relative;
  min-height: 72px;
  margin-bottom: 32px;
}

.customer-app .home-topbar .brand {
  width: 292px;
  min-height: 78px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(8, 9, 11, 0.3);
  box-shadow: none;
}

.customer-app .home-topbar .brand-mark {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  font-size: 15px;
}

.customer-app .brand-mark.has-image {
  width: 212px;
  height: 52px;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.customer-app .brand-mark.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.customer-app .brand-mark.has-image + div {
  display: none;
}

.customer-app .home-topbar .brand strong {
  color: var(--soft);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.customer-app .home-topbar .brand span {
  color: rgba(217, 221, 215, 0.58);
}

.home-nav {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  transform: translateX(-50%);
}

.home-nav button {
  min-width: 76px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: rgba(246, 247, 241, 0.78);
  background: transparent;
  font-weight: 800;
}

.home-nav button:hover,
.home-nav button:focus-visible {
  color: var(--black);
  background: var(--green);
}

.customer-app .home-actions {
  gap: 10px;
}

.customer-app .home-actions .button.ghost,
.customer-app .home-actions .user-chip {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--soft);
  background: rgba(8, 9, 11, 0.26);
}

.customer-app .home-actions .button.primary {
  min-width: 116px;
  border-color: var(--green);
  border-radius: 999px;
  color: var(--black);
  background: var(--green);
}

.customer-app .home-hero {
  position: relative;
  min-height: min(720px, 72vh);
  margin-bottom: 90px;
  padding: 72px 42px 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 82% 60%, rgba(20, 82, 92, 0.7), transparent 46%),
    radial-gradient(ellipse at 12% 15%, rgba(73, 41, 25, 0.62), transparent 38%),
    linear-gradient(115deg, #090a0c 0 44%, rgba(6, 31, 35, 0.84));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.customer-app .home-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38, 244, 255, 0.75), transparent);
  content: "";
}

.customer-app .home-hero > div:first-child {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 44%;
  max-width: 640px;
}

.customer-app .home-hero h1 {
  max-width: 740px;
  margin-top: 26px;
  color: #fff;
  font-size: 78px;
  line-height: 0.94;
  letter-spacing: 0;
}

.customer-app .home-hero p {
  max-width: 560px;
  margin: 30px 0 28px;
  color: rgba(217, 221, 215, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.customer-app .home-hero .button.primary {
  min-width: 136px;
  border-radius: 999px;
}

.customer-app .home-hero-preview {
  position: absolute;
  inset: 0 0 0 44%;
  min-height: 0;
  border: 0;
  border-left: 1px solid rgba(38, 244, 255, 0.13);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 8, 0.9), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px),
    transparent;
}

.customer-app .home-hero-preview::after {
  position: absolute;
  right: 12%;
  bottom: 10%;
  width: 45%;
  height: 18%;
  border-radius: 50%;
  background: rgba(38, 244, 255, 0.18);
  filter: blur(42px);
  content: "";
}

.customer-app .hero-carousel {
  min-height: 100%;
  width: 70%;
  margin-left: 12%;
}

.customer-app .hero-slide {
  padding: 50px;
}

.customer-app .hero-slide img {
  max-height: 76%;
  filter: drop-shadow(0 36px 46px rgba(0, 0, 0, 0.55));
}

.customer-app .hero-carousel-meta {
  border-color: rgba(38, 244, 255, 0.38);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(8, 9, 11, 0.68);
  box-shadow: none;
}

.customer-app .hero-carousel-meta span {
  color: rgba(217, 221, 215, 0.58);
}

.customer-app .home-section,
.customer-app .home-split {
  max-width: none;
  margin-bottom: 86px;
}

.customer-app .home-section-head {
  align-items: end;
  margin-bottom: 22px;
  color: var(--text);
}

.customer-app .home-section h2,
.customer-app .home-split h2 {
  margin-top: 12px;
  color: #fff;
  font-size: 36px;
  letter-spacing: 0;
}

.customer-app .home-feed-tabs {
  border-color: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.4);
}

.customer-app .home-feed-tabs button {
  border-radius: 999px;
  color: rgba(217, 221, 215, 0.62);
}

.customer-app .home-feed-tabs button.active {
  color: var(--black);
  background: var(--green);
}

.customer-app .home-showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.customer-app .home-design-card,
.customer-app .home-art-card,
.customer-app .home-empty {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: var(--soft);
  background: rgba(18, 19, 23, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.customer-app .home-design-card {
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.customer-app .home-design-card:hover {
  border-color: rgba(38, 244, 255, 0.66);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
  transform: translateY(-6px);
}

.customer-app .home-design-image,
.customer-app .home-design-card img {
  background-color: #f4f6f4;
  background-image: linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%), linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%), linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%);
  background-position: 0 0, 0 0, 9px 9px, 9px 9px;
  background-size: 18px 18px;
}

.customer-app .home-design-body {
  padding: 16px;
}

.customer-app .home-design-copy h3 {
  color: #fff;
}

.customer-app .home-design-copy span,
.customer-app .home-author-row span {
  color: rgba(217, 221, 215, 0.58);
}

.home-art-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 78px;
  gap: 10px;
  perspective: 1000px;
}

.home-art-tile {
  position: relative;
  grid-column: span 2;
  grid-row: span 3;
  min-width: 0;
  transform: translateY(var(--wave-lift, 0px)) rotateX(var(--wave-y, 0deg)) rotateY(var(--wave-x, 0deg)) scale(var(--wave-scale, 1));
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0ms linear;
  will-change: transform;
  z-index: 1;
}

.home-art-tile:nth-child(3n + 1) { grid-column: span 3; grid-row: span 4; }
.home-art-tile:nth-child(5n + 2) { grid-row: span 2; }
.home-art-tile:nth-child(7n + 4) { grid-column: span 2; grid-row: span 4; }
.home-art-tile:hover { z-index: 5; }

.home-art-tile button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #101114;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.home-art-tile button:hover,
.home-art-tile button:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(38, 244, 255, 0.12);
  transform: scale(1.07);
}

.home-art-tile img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 300ms ease;
}

.home-art-tile:hover img { transform: scale(1.08); filter: saturate(1.12) contrast(1.04); }

.home-art-mark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(8, 9, 11, 0.68);
  font-size: 10px;
  font-weight: 900;
  pointer-events: none;
}

.home-art-badges {
  top: 9px;
  left: 9px;
}

.home-art-badges .artwork-availability-badge {
  backdrop-filter: blur(8px);
}

.artwork-category-state {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 5px;
  color: #f7f7ef;
  background: #1b2522;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.artwork-category-state.is-limited { color: #07100b; background: var(--green); }

.artwork-category-state.is-ended {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 5px;
  color: #ffffff;
  background: #9e302c;
  font-size: 9px;
  font-weight: 900;
}

.home-art-wall-compact { grid-auto-rows: 66px; }
.home-art-wall-compact .home-art-tile { grid-row: span 3; }

.customer-app .profile-page {
  min-height: 100vh;
  padding: 24px 42px 72px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(38, 244, 255, 0.16), transparent 28%),
    radial-gradient(ellipse at 10% 22%, rgba(255, 92, 69, 0.1), transparent 24%),
    #060708;
}

.customer-app .profile-topbar,
.customer-app .profile-side-panel,
.customer-app .profile-card {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: var(--soft);
  background: rgba(18, 19, 23, 0.76);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24);
}

.customer-app .profile-topbar { min-height: 72px; padding: 0 20px; }
.customer-app .profile-hero-panel {
  position: relative;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 84% 42%, rgba(20, 82, 92, 0.78), transparent 46%),
    linear-gradient(118deg, rgba(36, 24, 19, 0.9), #080a0c 42%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.customer-app .profile-hero-panel h1 { color: #fff; font-size: 42px; }
.customer-app .profile-hero-panel p { color: rgba(217, 221, 215, 0.64); }
.customer-app .profile-avatar-large { border-radius: 50%; }

.profile-social-stats {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.profile-social-stats button {
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: rgba(217, 221, 215, 0.64);
  background: rgba(8, 9, 11, 0.32);
  text-align: left;
}

.profile-social-stats button:hover,
.profile-social-stats button.active { border-color: var(--cyan); color: var(--soft); background: rgba(38, 244, 255, 0.1); }
.profile-social-stats strong { color: var(--green); font-size: 22px; }
.profile-social-stats span { font-size: 11px; }

.customer-app .profile-side-panel,
.customer-app .profile-card { color: var(--soft); }
.customer-app .profile-side-panel h2,
.customer-app .profile-card h2 { color: #fff; }
.customer-app .profile-info-row,
.customer-app .profile-address-row,
.customer-app .profile-page .profile-row { border-color: rgba(255, 255, 255, 0.14); color: var(--soft); background: rgba(8, 9, 11, 0.34); }
.customer-app .profile-info-row span,
.customer-app .profile-section-head span,
.customer-app .profile-address-row span,
.customer-app .profile-page .profile-row span { color: rgba(217, 221, 215, 0.54); }
.customer-app .profile-info-row strong,
.customer-app .profile-address-row strong { color: var(--soft); }
.customer-app .profile-page input,
.customer-app .profile-page select,
.customer-app .profile-page textarea { border-color: rgba(255, 255, 255, 0.18); color: var(--soft); background: #0d0f12; }
.customer-app .profile-edit-panel,
.customer-app .profile-address-editor { border-color: rgba(255, 255, 255, 0.14); background: #0c0e11; }
.customer-app .profile-page .mini-button { border-color: rgba(255, 255, 255, 0.22); color: var(--cyan); background: #101216; }
.customer-app .profile-page .profile-design-row:hover,
.customer-app .profile-address-row:hover { border-color: var(--cyan); background: rgba(38, 244, 255, 0.08); }

.profile-social-list { min-height: 54px; }
.profile-social-empty { padding: 18px 0; color: rgba(217, 221, 215, 0.5); font-size: 13px; }
.profile-social-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.profile-social-avatar { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; color: var(--black); background: var(--green); font-weight: 900; }
.profile-social-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-social-row div { display: grid; gap: 3px; }
.profile-social-row strong { color: var(--soft); }
.profile-social-row span { color: rgba(217, 221, 215, 0.5); font-size: 11px; }
.profile-social-state { color: var(--green) !important; font-size: 11px; font-weight: 900; }
.profile-social-design { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; width: 100%; padding: 7px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; color: var(--soft); background: rgba(8, 9, 11, 0.3); text-align: left; }
.profile-social-design:hover { border-color: var(--cyan); }
.profile-social-design img { width: 64px; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.profile-social-design span { display: grid; align-content: center; gap: 4px; }
.profile-social-design small { color: rgba(217, 221, 215, 0.5); }

.address-region-grid,
.address-contact-grid {
  display: grid;
  gap: 12px;
}

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

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

.customer-app .profile-address-editor {
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 232, 255, 0.09), transparent 42%),
    rgba(5, 6, 8, 0.68);
}

.customer-app .profile-address-editor > span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.address-region-step {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.address-region-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 2;
  width: 18px;
  height: 1px;
  background: rgba(34, 232, 255, 0.44);
  content: "";
}

.address-region-step > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 247, 239, 0.7);
  font-size: 12px;
  font-weight: 900;
}

.address-region-step > span:first-child b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--green);
  font-size: 12px;
}

.address-select-shell {
  position: relative;
  display: block;
}

.address-select-shell::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.customer-app .address-select-shell select {
  min-height: 48px;
  padding: 0 42px 0 13px;
  border-color: rgba(34, 232, 255, 0.22);
  appearance: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.customer-app .address-select-shell select:hover,
.customer-app .address-select-shell select:focus {
  border-color: var(--cyan);
  background: rgba(34, 232, 255, 0.07);
}

.customer-app .profile-address-row span {
  white-space: pre-line;
}

.profile-order-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.profile-order-tabs button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(247, 247, 239, 0.72);
  background: rgba(5, 6, 8, 0.46);
  cursor: pointer;
  font-weight: 900;
}

.profile-order-tabs button:hover,
.profile-order-tabs button.active {
  border-color: var(--cyan);
  color: var(--soft);
  background: rgba(34, 232, 255, 0.12);
}

.profile-order-tabs button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--black);
  background: var(--green);
  font-size: 12px;
}

.customer-app .profile-order-row {
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 104px;
}

.profile-order-summary,
.profile-order-aside {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.profile-order-summary span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.profile-order-summary strong {
  overflow: hidden;
  color: var(--soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-summary small {
  color: rgba(247, 247, 239, 0.52);
  font-size: 12px;
}

.profile-order-aside {
  justify-items: end;
  align-content: center;
}

.profile-order-aside em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.profile-order-aside > strong {
  color: var(--soft);
  font-size: 20px;
}

body.order-detail-open {
  overflow: hidden;
}

.order-detail-view {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow-y: auto;
  color: var(--soft);
  background: #050608;
}

.order-detail-view[hidden] {
  display: none;
}

.order-detail-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.order-detail-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 110px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.order-detail-header h2,
.order-detail-section h3,
.order-detail-item h4 {
  margin: 0;
  color: var(--soft);
}

.order-detail-header h2 {
  margin-top: 4px;
  font-size: 32px;
}

.order-detail-header p {
  margin: 6px 0 0;
  color: rgba(247, 247, 239, 0.56);
  font-size: 13px;
}

.order-detail-eyebrow,
.order-detail-item-no {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.order-detail-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.order-detail-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
}

.order-status-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(247, 247, 239, 0.4);
  font-size: 12px;
  font-weight: 900;
}

.order-status-step:not(:last-child)::before {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.order-status-step i {
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #0d0f12;
  font-style: normal;
}

.order-status-step.complete,
.order-status-step.current {
  color: var(--soft);
}

.order-status-step.complete::before {
  background: var(--green);
}

.order-status-step.complete i {
  border-color: var(--green);
  color: var(--black);
  background: var(--green);
}

.order-status-step.current i {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 10px 28px rgba(34, 232, 255, 0.16);
}

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
  gap: 18px;
}

.order-detail-main,
.order-detail-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.order-detail-section {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #0d0f12;
}

.order-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.order-detail-section-head h3 {
  font-size: 17px;
}

.order-detail-section-head span {
  color: rgba(247, 247, 239, 0.45);
  font-size: 12px;
}

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

.order-detail-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-detail-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.order-detail-item > img {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #f7f7ef;
}

.order-detail-item-copy {
  min-width: 0;
}

.order-detail-item h4 {
  margin-top: 4px;
  font-size: 17px;
}

.order-detail-item p {
  margin: 6px 0 0;
  color: rgba(247, 247, 239, 0.52);
  font-size: 12px;
}

.order-detail-specs {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.order-detail-specs span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(247, 247, 239, 0.5);
  font-size: 12px;
}

.order-detail-specs b {
  margin-left: 3px;
  color: var(--soft);
}

.order-price-formula {
  color: var(--cyan) !important;
}

.order-detail-line-total {
  color: var(--green);
  font-size: 20px;
}

.order-detail-assets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.order-detail-assets button {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(247, 247, 239, 0.6);
  background: rgba(255, 255, 255, 0.035);
  cursor: zoom-in;
  text-align: left;
}

.order-detail-assets button:hover {
  border-color: var(--cyan);
  color: var(--soft);
}

.order-detail-assets img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: contain;
  background: #f7f7ef;
}

.order-detail-assets span {
  font-size: 12px;
}

.order-detail-fact {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.order-detail-fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.order-detail-fact span {
  color: rgba(247, 247, 239, 0.46);
  font-size: 12px;
}

.order-detail-fact strong {
  min-width: 0;
  color: var(--soft);
  overflow-wrap: anywhere;
  text-align: right;
}

.order-detail-fact.emphasis strong {
  color: var(--green);
  font-size: 22px;
}

@media (max-width: 820px) {
  .customer-app .home-app,
  .customer-app .profile-page { padding: 14px 16px 48px; }
  .customer-app .home-topbar { display: grid; gap: 16px; }
  .customer-app .home-topbar .brand { width: 100%; min-height: 64px; }
  .customer-app .home-topbar .brand-mark { width: 42px; height: 42px; }
  .home-nav { position: static; justify-content: center; transform: none; }
  .customer-app .home-actions { flex-wrap: wrap; }
  .customer-app .home-hero { min-height: 700px; margin-bottom: 58px; padding: 38px 24px; }
  .customer-app .home-hero > div:first-child { width: 100%; max-width: 620px; }
  .customer-app .home-hero h1 { font-size: 48px; }
  .customer-app .home-hero-preview { inset: 42% 0 0; border-left: 0; border-top: 1px solid rgba(38, 244, 255, 0.13); }
  .customer-app .hero-carousel { width: 100%; margin-left: 0; }
  .customer-app .home-section { margin-bottom: 56px; }
  .customer-app .home-section h2 { font-size: 30px; }
  .home-art-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 64px; }
  .home-art-tile { grid-column: span 2; }
  .home-art-tile:nth-child(3n + 1) { grid-column: span 3; }
  .customer-app .home-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .profile-hero-panel { grid-template-columns: 72px minmax(0, 1fr); padding: 22px; }
  .customer-app .profile-hero-panel h1 { font-size: 32px; }
  .profile-social-stats { grid-column: 1 / -1; }
  .address-region-grid,
  .address-contact-grid,
  .profile-order-tabs {
    grid-template-columns: 1fr;
  }
  .address-region-step:not(:last-child)::after { display: none; }
  .customer-app .profile-order-row { grid-template-columns: 68px minmax(0, 1fr); }
  .profile-order-aside { grid-column: 2; grid-template-columns: repeat(3, auto); justify-content: start; justify-items: start; align-items: center; }
  .order-detail-shell { width: min(100% - 28px, 720px); padding-top: 14px; }
  .order-detail-header { grid-template-columns: 1fr; align-items: start; padding: 14px 0 20px; }
  .order-detail-header-actions { justify-content: flex-start; }
  .order-detail-layout { grid-template-columns: 1fr; }
  .order-detail-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .catalog-hero { padding-top: 42px; }
  .customer-app .catalog-hero h1 { font-size: 36px; }
  .customer-app .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
  .customer-app .catalog-category-tabs { display: flex; overflow-x: auto; }
  .customer-app .catalog-category-tab { flex: 0 0 auto; padding: 0 14px; }
  .customer-app .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .studio { grid-template-columns: 1fr; }
  .customer-app .product-panel,
  .customer-app .edit-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .product-panel section + section,
  .customer-app .edit-panel section + section { padding-top: 0; border-top: 0; }
  .customer-app .stage-panel { grid-row: 1; }
  .customer-app .editor-shell .topbar { align-items: flex-start; flex-direction: column; padding-top: 12px; padding-bottom: 12px; }
  .customer-app .editor-shell .top-actions { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .customer-app .home-actions .button,
  .customer-app .home-actions .user-chip { flex: 1 1 calc(50% - 8px); }
  .customer-app .home-hero { min-height: 630px; }
  .customer-app .home-hero h1 { font-size: 42px; }
  .customer-app .home-hero p { font-size: 14px; }
  .customer-app .home-section-head { align-items: flex-start; flex-direction: column; }
  .customer-app .home-showcase-grid { grid-template-columns: 1fr; }
  .home-art-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 62px; }
  .home-art-tile,
  .home-art-tile:nth-child(3n + 1),
  .home-art-tile:nth-child(7n + 4) { grid-column: span 2; grid-row: span 3; }
  .profile-social-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-detail-header h2 { font-size: 28px; }
  .order-detail-section { padding: 14px; }
  .order-detail-item { grid-template-columns: 82px minmax(0, 1fr); align-items: start; }
  .order-detail-item > img { width: 82px; }
  .order-detail-line-total { grid-column: 2; }
  .order-detail-status { overflow-x: auto; }
  .order-status-step { min-width: 90px; }
  .customer-app .profile-topbar { display: grid; gap: 14px; padding: 16px; }
  .customer-app .profile-top-actions { align-items: stretch; flex-direction: column; }
  .customer-app .profile-top-actions { width: 100%; margin-left: 0; }
  .customer-app .catalog-product-grid { grid-template-columns: 1fr; }
  .customer-app .product-panel,
  .customer-app .edit-panel { grid-template-columns: 1fr; }
  .customer-app .stage-actions,
  .customer-app .quickbar { flex-wrap: wrap; }
  .customer-app .quickbar .button { flex: 1 1 calc(50% - 8px); }
}

/* Creator rankings: an editorial extension of the existing customer UI. */
.customer-app .home-ranking-section {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(184, 255, 61, 0.055), transparent 42%),
    #111316;
}

.customer-app .home-ranking-section::after {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(38, 244, 255, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.customer-app .ranking-kicker,
.customer-app .home-ranking-column-head span,
.customer-app .ranking-score small,
.customer-app .ranking-position small {
  color: var(--green);
  font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.customer-app .home-ranking-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.customer-app .home-ranking-column {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.customer-app .home-ranking-column-head {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.customer-app .home-ranking-column-head h3 {
  margin: 7px 0 0;
  color: #f8f9f2;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: -0.03em;
}

.customer-app .ranking-text-link,
.customer-app .ranking-title,
.customer-app .ranking-author,
.customer-app .ranking-media,
.customer-app .ranking-score button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.customer-app .ranking-text-link {
  flex: 0 0 auto;
  padding: 10px 0;
  color: #dce2dd;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.customer-app .ranking-text-link:hover { color: var(--green); border-color: var(--green); }

.customer-app .home-ranking-list,
.customer-app .ranking-list {
  display: grid;
  min-width: 0;
}

.customer-app .ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(112px, 168px) minmax(0, 1fr) minmax(118px, auto);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  min-width: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.018);
}

.customer-app .ranking-item.is-compact {
  grid-template-columns: 42px 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  background: transparent;
}

.customer-app .ranking-item.is-compact .ranking-score { display: none; }
.customer-app .ranking-item.is-compact .ranking-author small { display: none; }
.customer-app .ranking-item.is-compact .ranking-title { font-size: 14px; }
.customer-app .ranking-item.is-compact .ranking-media { aspect-ratio: 1 / 1; }

.customer-app .ranking-item.is-podium { background: linear-gradient(90deg, rgba(184, 255, 61, 0.055), transparent 62%); }
.customer-app .ranking-item.rank-2 { background: linear-gradient(90deg, rgba(38, 244, 255, 0.045), transparent 62%); }
.customer-app .ranking-item.rank-3 { background: linear-gradient(90deg, rgba(244, 194, 90, 0.045), transparent 62%); }

.customer-app .ranking-position { display: grid; gap: 5px; color: #f8f9f2; }
.customer-app .ranking-position strong { font: 900 clamp(22px, 3vw, 38px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.08em; }
.customer-app .rank-1 .ranking-position strong { color: var(--green); }
.customer-app .rank-2 .ranking-position strong { color: var(--cyan); }
.customer-app .rank-3 .ranking-position strong { color: var(--gold); }

.customer-app .ranking-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
  background: #090b0d;
  color: var(--muted);
}

.customer-app .ranking-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 220ms ease; }
.customer-app .ranking-media:hover img { transform: scale(1.035); }

.customer-app .ranking-copy { display: grid; min-width: 0; gap: 9px; }
.customer-app .ranking-author { width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: 9px; text-align: left; }
.customer-app .ranking-avatar { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: #1b201d; font-size: 10px; font-weight: 900; }
.customer-app .ranking-avatar img { width: 100%; height: 100%; object-fit: cover; }
.customer-app .ranking-author > span:last-child { display: grid; min-width: 0; gap: 2px; }
.customer-app .ranking-author small { color: #7f8782; font-size: 9px; letter-spacing: .08em; }
.customer-app .ranking-author strong { overflow: hidden; color: #dfe3de; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .ranking-author:hover strong { color: var(--cyan); }

.customer-app .ranking-title { width: fit-content; max-width: 100%; padding: 0; overflow: hidden; color: #f8f9f2; font-size: clamp(16px, 2vw, 22px); font-weight: 850; line-height: 1.2; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .ranking-title:hover { color: var(--green); }
.customer-app .ranking-stats { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #929a95; font-size: 11px; }
.customer-app .ranking-stats svg { width: 12px; height: 12px; vertical-align: -2px; }
.customer-app .ranking-score { justify-self: end; display: grid; justify-items: end; gap: 7px; text-align: right; }
.customer-app .ranking-score strong { color: #f4f7ef; font-size: 14px; }
.customer-app .ranking-score button { padding: 0 0 4px; color: #9ea6a0; font-size: 11px; border-bottom: 1px solid #555c57; }
.customer-app .ranking-score button:hover { color: var(--green); border-color: var(--green); }

.customer-app .ranking-page { padding-bottom: 72px; background: #0a0c0e; }
.customer-app .ranking-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: clamp(38px, 7vw, 92px) clamp(20px, 5vw, 72px) 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.customer-app .ranking-hero h1 { margin: 10px 0 14px; color: #fafbf5; font-size: clamp(38px, 7vw, 88px); line-height: .98; letter-spacing: -.065em; }
.customer-app .ranking-hero p { max-width: 680px; margin: 0; color: #9ea5a0; line-height: 1.7; }
.customer-app .ranking-hero > strong { flex: 0 0 auto; color: var(--cyan); font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.customer-app .ranking-toolbar { position: sticky; top: 0; z-index: 12; display: flex; justify-content: space-between; gap: 18px; padding: 14px clamp(20px, 5vw, 72px); border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(10, 12, 14, .92); backdrop-filter: blur(18px); }
.customer-app .ranking-segments { display: flex; flex-wrap: wrap; gap: 6px; }
.customer-app .ranking-segments button { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #959d97; font-weight: 750; cursor: pointer; }
.customer-app .ranking-segments button:hover { color: #f5f7f1; }
.customer-app .ranking-segments button.active { border-color: rgba(184,255,61,.44); background: rgba(184,255,61,.1); color: var(--green); }
.customer-app .ranking-content { max-width: 1320px; min-height: 420px; margin: 0 auto; padding: 30px clamp(20px, 5vw, 72px); }
.customer-app .ranking-content[aria-busy="true"] { cursor: progress; }
.customer-app .ranking-list { border-top: 1px solid rgba(255,255,255,.14); }
.customer-app .ranking-loading,
.customer-app .ranking-empty { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 28px; color: #8f9791; text-align: center; }
.customer-app .ranking-empty strong { color: #eef1eb; font-size: 16px; }
.customer-app .ranking-empty span,
.customer-app .ranking-loading small { color: #858c87; font-size: 12px; }
.customer-app .ranking-loading span { width: 30px; height: 30px; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--green); border-radius: 50%; animation: ranking-spin .8s linear infinite; }
@keyframes ranking-spin { to { transform: rotate(360deg); } }

.customer-app .ranking-item :is(button, a):focus-visible,
.customer-app .ranking-text-link:focus-visible,
.customer-app .ranking-segments button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .customer-app .ranking-media img { transition: none; }
  .customer-app .ranking-loading span { animation-duration: 1.6s; }
}

@media (max-width: 900px) {
  .customer-app .home-ranking-layout { grid-template-columns: 1fr; }
  .customer-app .ranking-item { grid-template-columns: 48px 112px minmax(0, 1fr); }
  .customer-app .ranking-score { grid-column: 3; justify-self: start; justify-items: start; text-align: left; }
  .customer-app .ranking-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .customer-app .home-ranking-section { padding: 22px 16px; }
  .customer-app .home-ranking-column-head { min-height: 72px; }
  .customer-app .ranking-item,
  .customer-app .ranking-item.is-compact { grid-template-columns: 36px 72px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
  .customer-app .ranking-item:not(.is-compact) { padding: 14px 8px; }
  .customer-app .ranking-item .ranking-score { grid-column: 3; }
  .customer-app .ranking-item .ranking-position strong { font-size: 21px; }
  .customer-app .ranking-item .ranking-author small { display: none; }
  .customer-app .ranking-title { font-size: 14px; }
  .customer-app .ranking-stats { gap: 6px 10px; font-size: 10px; }
  .customer-app .ranking-score strong { font-size: 12px; }
  .customer-app .ranking-score button { display: none; }
  .customer-app .ranking-hero { align-items: flex-start; flex-direction: column; padding-top: 34px; }
  .customer-app .ranking-hero h1 { font-size: 42px; }
  .customer-app .ranking-toolbar { position: static; padding-block: 12px; }
  .customer-app .ranking-segments { width: 100%; }
  .customer-app .ranking-segments button { flex: 1 1 auto; padding-inline: 10px; }
}

/* Fashion editorial pass: image-led ranking hierarchy, shared with the artwork wall. */
.customer-app .home-ranking-section {
  isolation: isolate;
  margin-top: clamp(42px, 6vw, 84px);
  padding: 0;
  overflow: hidden;
  border-color: rgba(235, 242, 236, .16);
  background: #0b0e0d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

.customer-app .home-ranking-section::before {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  width: 112px;
  height: 4px;
  background: var(--green);
  content: "";
  pointer-events: none;
}

.customer-app .home-ranking-section::after {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(30vw, 380px);
  height: 12px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, var(--cyan));
  content: "";
  opacity: .82;
  pointer-events: none;
}

.customer-app .home-ranking-section .home-section-head {
  position: relative;
  z-index: 1;
  align-items: end;
  padding: clamp(28px, 4vw, 54px);
  border-bottom: 1px solid rgba(235, 242, 236, .16);
}

.customer-app .home-ranking-section .home-section-head > div {
  display: grid;
  gap: 12px;
}

.customer-app .home-ranking-section .home-section-head h2 {
  max-width: none;
  margin: 0;
  color: #f7f9f2;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.035em;
}

.customer-app .home-ranking-section .home-section-head p {
  max-width: 62ch;
  margin: 0;
  color: #aab4ae;
  font-size: 14px;
  line-height: 1.75;
}

.customer-app .ranking-refresh {
  min-width: 122px;
  justify-content: space-between;
  border-color: rgba(184, 255, 61, .36);
  color: #eaf4dc;
}

.customer-app .ranking-refresh span {
  color: var(--green);
  font-size: 16px;
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
}

.customer-app .ranking-refresh:hover span { transform: rotate(150deg); }

.customer-app .home-ranking-layout {
  position: relative;
  z-index: 1;
  gap: 0;
  margin-top: 0;
}

.customer-app .home-ranking-column {
  min-width: 0;
  padding: 0 clamp(18px, 2.5vw, 34px) 18px;
  border-top: 0;
}

.customer-app .home-ranking-column + .home-ranking-column {
  border-left: 1px solid rgba(235, 242, 236, .14);
}

.customer-app .home-ranking-column-head {
  min-height: 106px;
  padding: 22px 0 18px;
  border-bottom: 1px solid rgba(235, 242, 236, .13);
}

.customer-app .home-ranking-column-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.customer-app .home-ranking-column-head h3 {
  margin: 0;
  color: #f8faf4;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 900;
  letter-spacing: -.025em;
}

.customer-app .home-ranking-column-head p {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.customer-app .ranking-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 7px;
  border-bottom-color: rgba(235, 242, 236, .28);
  color: #d9e0da;
  font-weight: 760;
}

.customer-app .ranking-text-link span { color: var(--cyan); }

.customer-app .home-ranking-list .ranking-item.is-compact {
  grid-template-columns: 38px 78px minmax(0, 1fr);
  gap: 14px;
  min-height: 108px;
  padding: 14px 10px;
  border-bottom-color: rgba(235, 242, 236, .1);
  transition:
    background-color 220ms ease,
    transform 320ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 320ms cubic-bezier(.22, 1, .36, 1);
}

.customer-app .home-ranking-list .ranking-item.is-compact:first-child {
  grid-template-columns: 54px minmax(122px, 172px) minmax(0, 1fr);
  min-height: 198px;
  padding-block: 20px;
  background: linear-gradient(110deg, rgba(184, 255, 61, .09), transparent 56%);
}

.customer-app .home-ranking-list .ranking-item.is-compact:last-child { border-bottom: 0; }

.customer-app .home-ranking-list .ranking-item.is-compact:hover {
  z-index: 2;
  background-color: rgba(255, 255, 255, .035);
  box-shadow: 10px 14px 40px rgba(0, 0, 0, .24);
  transform: translateY(-2px);
}

.customer-app .home-ranking-list .ranking-item.is-compact:first-child .ranking-media {
  aspect-ratio: 4 / 5;
}

.customer-app .home-ranking-list .ranking-item.is-compact:first-child .ranking-title {
  font-size: clamp(18px, 1.7vw, 24px);
}

.customer-app .ranking-item[data-ranking-item^="design:"] .ranking-media {
  background: #e5e6df;
}

.customer-app .ranking-item[data-ranking-item^="design:"] .ranking-media img { object-fit: contain; }

.customer-app .ranking-page {
  min-height: 100dvh;
  padding-bottom: 90px;
  overflow: clip;
  background:
    linear-gradient(118deg, rgba(184, 255, 61, .055), transparent 30%),
    #070909;
}

.customer-app .ranking-topbar {
  border-bottom-color: rgba(235, 242, 236, .12);
  background: rgba(7, 9, 9, .9);
  backdrop-filter: blur(18px);
}

.customer-app .ranking-hero {
  position: relative;
  align-items: end;
  min-height: 360px;
  padding: clamp(58px, 8vw, 116px) clamp(24px, 6vw, 96px) 46px;
  overflow: hidden;
  border-bottom-color: rgba(235, 242, 236, .14);
}

.customer-app .ranking-hero::before {
  position: absolute;
  top: 0;
  left: clamp(24px, 6vw, 96px);
  width: 76px;
  height: 7px;
  background: var(--green);
  content: "";
}

.customer-app .ranking-hero::after {
  position: absolute;
  right: -8vw;
  bottom: -110px;
  width: 44vw;
  height: 230px;
  background: linear-gradient(130deg, transparent 18%, rgba(38, 244, 255, .13));
  clip-path: polygon(18% 0, 100% 0, 76% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.customer-app .ranking-hero > div,
.customer-app .ranking-hero > strong { position: relative; z-index: 1; }
.customer-app .ranking-hero > div { flex: 1 1 auto; min-width: 0; }

.customer-app .ranking-hero h1 {
  max-width: 14ch;
  margin: 0 0 18px;
  color: #f7f9f3;
  font-size: clamp(54px, 7.4vw, 94px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.customer-app .ranking-hero p {
  max-width: 66ch;
  color: #a9b2ad;
  font-size: 15px;
}

.customer-app .ranking-hero > strong {
  min-width: 112px;
  padding: 12px 15px;
  border: 1px solid rgba(38, 244, 255, .34);
  border-radius: 999px;
  background: rgba(7, 9, 9, .58);
  color: var(--cyan);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0;
  text-align: center;
}

.customer-app .ranking-toolbar {
  top: 0;
  align-items: center;
  padding: 15px clamp(24px, 6vw, 96px);
  border-bottom-color: rgba(235, 242, 236, .12);
  background: rgba(7, 9, 9, .88);
}

.customer-app .ranking-segments {
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(235, 242, 236, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
}

.customer-app .ranking-segments button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
}

.customer-app .ranking-segments button.active {
  border: 0;
  background: var(--green);
  color: #071006;
  box-shadow: 7px 9px 24px rgba(0, 0, 0, .28);
}

.customer-app .ranking-content {
  width: min(100%, 1420px);
  max-width: 1420px;
  padding: clamp(24px, 4vw, 54px) clamp(20px, 5vw, 72px);
}

.customer-app .ranking-list {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
  gap: 14px;
  border-top: 0;
  animation: ranking-reveal 540ms cubic-bezier(.22, 1, .36, 1) both;
}

.customer-app .ranking-list > .ranking-item {
  overflow: hidden;
  border: 1px solid rgba(235, 242, 236, .12);
  border-radius: 8px;
  background: #0d100f;
  box-shadow: 9px 14px 34px rgba(0, 0, 0, .18);
  transition:
    border-color 220ms ease,
    transform 320ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 320ms cubic-bezier(.22, 1, .36, 1);
}

.customer-app .ranking-list > .ranking-item:hover {
  z-index: 2;
  border-color: rgba(38, 244, 255, .34);
  box-shadow: 14px 20px 48px rgba(0, 0, 0, .3);
  transform: translateY(-3px);
}

.customer-app .ranking-list > .ranking-item.rank-1 {
  grid-column: 1;
  grid-row: 1 / span 2;
  grid-template-columns: 1fr auto;
  grid-template-rows: minmax(300px, 1fr) auto auto;
  gap: 0;
  min-height: 570px;
  padding: 0;
  border-color: rgba(184, 255, 61, .32);
  background: #0d110d;
}

.customer-app .ranking-list > .ranking-item.rank-1 .ranking-media {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.customer-app .ranking-list > .ranking-item.rank-1 .ranking-position {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  min-width: 78px;
  padding: 12px 14px 10px;
  background: var(--green);
  color: #071006;
  box-shadow: 8px 10px 26px rgba(0, 0, 0, .28);
}

.customer-app .ranking-list > .ranking-item.rank-1 .ranking-position small,
.customer-app .ranking-list > .ranking-item.rank-1 .ranking-position strong { color: inherit; }

.customer-app .ranking-list > .ranking-item.rank-1 .ranking-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  padding: 24px 12px 24px 26px;
}

.customer-app .ranking-list > .ranking-item.rank-1 .ranking-title {
  font-size: clamp(26px, 3vw, 42px);
  white-space: normal;
}

.customer-app .ranking-list > .ranking-item.rank-1 .ranking-score {
  grid-column: 2;
  grid-row: 2;
  min-width: 150px;
  align-self: stretch;
  align-content: center;
  padding: 24px 26px 24px 12px;
}

.customer-app .ranking-list > .ranking-item.rank-2,
.customer-app .ranking-list > .ranking-item.rank-3 {
  grid-column: 2;
  grid-template-columns: 52px 142px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  min-height: 278px;
  padding: 18px;
}

.customer-app .ranking-list > .ranking-item.rank-2 { border-color: rgba(38, 244, 255, .24); }
.customer-app .ranking-list > .ranking-item.rank-3 { border-color: rgba(232, 184, 106, .24); }

.customer-app .ranking-list > .ranking-item.rank-2 .ranking-media,
.customer-app .ranking-list > .ranking-item.rank-3 .ranking-media {
  align-self: stretch;
  height: 100%;
  min-height: 156px;
  aspect-ratio: auto;
}

.customer-app .ranking-list > .ranking-item.rank-2 .ranking-score,
.customer-app .ranking-list > .ranking-item.rank-3 .ranking-score {
  grid-column: 3;
  justify-self: start;
  justify-items: start;
  text-align: left;
}

.customer-app .ranking-list > .ranking-item:nth-child(n + 4) {
  grid-column: 1 / -1;
  grid-template-columns: 64px 154px minmax(0, 1fr) minmax(140px, auto);
  padding: 16px 20px;
}

.customer-app .ranking-position small,
.customer-app .ranking-score small {
  color: #98a29c;
  font-family: inherit;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.customer-app .ranking-position strong {
  font-family: inherit;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: -.03em;
}

.customer-app .ranking-media {
  border-color: rgba(235, 242, 236, .14);
  border-radius: 6px;
}

.customer-app .ranking-media img { transition: transform 520ms cubic-bezier(.22, 1, .36, 1); }
.customer-app .ranking-media:hover img { transform: scale(1.045); }

.customer-app .ranking-author small {
  color: #8e9892;
  font-size: 10px;
  letter-spacing: 0;
}

.customer-app .ranking-author strong { color: #e3e9e3; font-size: 13px; }

.customer-app .ranking-title {
  color: #f7faf4;
  font-weight: 900;
  letter-spacing: -.018em;
}

.customer-app .ranking-stats {
  gap: 8px;
  color: #a6b0aa;
}

.customer-app .ranking-stats span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(235, 242, 236, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
}

.customer-app .ranking-score strong { color: #f6f9f3; font-size: 16px; }

.customer-app .ranking-score button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 5px;
  border-bottom-color: rgba(235, 242, 236, .28);
  color: #c4cdc7;
  font-weight: 750;
}

.customer-app .ranking-score button span { color: var(--cyan); }

@keyframes ranking-reveal {
  from {
    clip-path: inset(0 0 18% 0);
    filter: blur(3px);
  }
  to {
    clip-path: inset(0);
    filter: blur(0);
  }
}

@media (max-width: 1050px) {
  .customer-app .ranking-list { grid-template-columns: 1fr; }
  .customer-app .ranking-list > .ranking-item.rank-1,
  .customer-app .ranking-list > .ranking-item.rank-2,
  .customer-app .ranking-list > .ranking-item.rank-3,
  .customer-app .ranking-list > .ranking-item:nth-child(n + 4) { grid-column: 1; }
  .customer-app .ranking-list > .ranking-item.rank-1 { grid-row: auto; }
  .customer-app .ranking-list > .ranking-item.rank-2,
  .customer-app .ranking-list > .ranking-item.rank-3 { min-height: 220px; }
}

@media (max-width: 760px) {
  .customer-app .home-ranking-section .home-section-head { align-items: flex-start; }
  .customer-app .home-ranking-layout { grid-template-columns: 1fr; }
  .customer-app .home-ranking-column + .home-ranking-column {
    border-top: 1px solid rgba(235, 242, 236, .14);
    border-left: 0;
  }
  .customer-app .ranking-hero {
    align-items: flex-start;
    min-height: 320px;
    flex-direction: column;
  }
  .customer-app .ranking-hero h1 { font-size: clamp(46px, 12vw, 64px); }
  .customer-app .ranking-toolbar { position: static; align-items: stretch; }
  .customer-app .ranking-segments { width: 100%; }
  .customer-app .ranking-list > .ranking-item.rank-1 { min-height: 510px; }
}

@media (max-width: 600px) {
  .customer-app .home-ranking-section { margin-inline: 0; }
  .customer-app .home-ranking-section .home-section-head { padding: 30px 20px 24px; }
  .customer-app .home-ranking-section .home-section-head h2 { font-size: 42px; }
  .customer-app .home-ranking-column { padding-inline: 14px; }
  .customer-app .home-ranking-column-head { min-height: 88px; }
  .customer-app .home-ranking-column-head > div { display: grid; gap: 3px; }
  .customer-app .home-ranking-list .ranking-item.is-compact,
  .customer-app .home-ranking-list .ranking-item.is-compact:first-child {
    grid-template-columns: 36px 82px minmax(0, 1fr);
    min-height: 116px;
    gap: 10px;
    padding: 13px 6px;
  }
  .customer-app .home-ranking-list .ranking-item.is-compact:first-child .ranking-media { aspect-ratio: 1; }
  .customer-app .home-ranking-list .ranking-item.is-compact:first-child .ranking-title { font-size: 15px; }
  .customer-app .ranking-hero { padding: 54px 20px 30px; }
  .customer-app .ranking-hero::before { left: 20px; }
  .customer-app .ranking-hero::after { width: 70vw; opacity: .72; }
  .customer-app .ranking-toolbar { gap: 10px; padding: 12px 14px; }
  .customer-app .ranking-segments button { min-height: 38px; padding-inline: 12px; }
  .customer-app .ranking-content { padding: 18px 12px 40px; }
  .customer-app .ranking-list > .ranking-item.rank-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto auto;
    min-height: 0;
  }
  .customer-app .ranking-list > .ranking-item.rank-1 .ranking-copy,
  .customer-app .ranking-list > .ranking-item.rank-1 .ranking-score {
    grid-column: 1;
    padding: 18px;
  }
  .customer-app .ranking-list > .ranking-item.rank-1 .ranking-score {
    grid-row: 3;
    justify-items: start;
    text-align: left;
  }
  .customer-app .ranking-list > .ranking-item.rank-2,
  .customer-app .ranking-list > .ranking-item.rank-3,
  .customer-app .ranking-list > .ranking-item:nth-child(n + 4) {
    grid-template-columns: 38px 84px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 142px;
    gap: 10px;
    padding: 12px;
  }
  .customer-app .ranking-list > .ranking-item.rank-2 .ranking-media,
  .customer-app .ranking-list > .ranking-item.rank-3 .ranking-media { min-height: 104px; }
  .customer-app .ranking-list > .ranking-item.rank-2 .ranking-score,
  .customer-app .ranking-list > .ranking-item.rank-3 .ranking-score,
  .customer-app .ranking-list > .ranking-item:nth-child(n + 4) .ranking-score {
    grid-column: 3;
    justify-self: start;
    justify-items: start;
    text-align: left;
  }
  .customer-app .ranking-list > .ranking-item:not(.rank-1) .ranking-score small,
  .customer-app .ranking-list > .ranking-item:not(.rank-1) .ranking-score button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-app .ranking-list { animation: none; }
  .customer-app .ranking-list > .ranking-item,
  .customer-app .ranking-refresh span { transition: none; }
}

/* Artwork application: product -> position -> calibrated print area. */
.customer-app .artwork-position-modal { z-index: 235; }

.customer-app .artwork-position-dialog {
  display: grid;
  width: min(780px, 100%);
  max-height: min(86dvh, 760px);
  padding: 22px;
  gap: 18px;
  overflow-y: auto;
  border-color: rgba(226, 239, 233, .16);
  background: #0d1011;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.customer-app .artwork-position-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.customer-app .artwork-position-header h2 {
  margin: 0;
  color: #f7f7ef;
  font-size: 25px;
  line-height: 1.15;
}

.customer-app .artwork-position-header p {
  max-width: 62ch;
  margin: 7px 0 0;
  color: rgba(226, 239, 233, .65);
  font-size: 13px;
  line-height: 1.65;
}

.customer-app .artwork-position-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 58px;
  align-items: center;
  min-height: 88px;
  gap: 13px;
  padding: 8px 10px;
  border-block: 1px solid rgba(226, 239, 233, .12);
}

.customer-app .artwork-position-product-media,
.customer-app .artwork-position-artwork-media,
.customer-app .artwork-position-option-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171b1c;
}

.customer-app .artwork-position-product-media { width: 72px; height: 72px; border-radius: 8px; }
.customer-app .artwork-position-artwork-media { width: 58px; height: 58px; border-radius: 8px; }
.customer-app .artwork-position-product-media img,
.customer-app .artwork-position-artwork-media img,
.customer-app .artwork-position-option-media img { width: 100%; height: 100%; object-fit: contain; }
.customer-app .artwork-position-artwork-media img { object-fit: cover; }
.customer-app .artwork-position-product-media b { color: rgba(247, 247, 239, .48); font-size: 24px; }

.customer-app .artwork-position-product-copy { display: grid; min-width: 0; gap: 3px; }
.customer-app .artwork-position-product-copy small { color: var(--cyan); font-size: 10px; font-weight: 900; }
.customer-app .artwork-position-product-copy strong { overflow: hidden; color: #f7f7ef; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .artwork-position-product-copy em { color: rgba(226, 239, 233, .52); font-size: 11px; font-style: normal; }

.customer-app .artwork-position-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 34px;
  border-bottom: 1px solid rgba(226, 239, 233, .12);
}

.customer-app .artwork-position-progress span {
  position: relative;
  padding: 0 4px 11px;
  color: rgba(226, 239, 233, .42);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.customer-app .artwork-position-progress span.active { color: #f7f7ef; }
.customer-app .artwork-position-progress span.complete { color: var(--green); }
.customer-app .artwork-position-progress span.active::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.customer-app .artwork-position-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-app .artwork-position-option {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 104px;
  gap: 12px;
  padding: 9px;
  border: 1px solid rgba(226, 239, 233, .14);
  border-radius: 10px;
  color: #f7f7ef;
  text-align: left;
  background: #111516;
  transition: transform 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out;
}

.customer-app .artwork-position-option:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: rgba(40, 215, 229, .58);
  background: #141a1b;
}

.customer-app .artwork-position-option:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.customer-app .artwork-position-option:disabled { cursor: not-allowed; opacity: .46; }
.customer-app .artwork-position-option-media { width: 84px; height: 84px; border-radius: 7px; }
.customer-app .artwork-position-option-media b { color: rgba(247, 247, 239, .48); font-size: 22px; }
.customer-app .artwork-position-option-copy { display: grid; min-width: 0; gap: 4px; }
.customer-app .artwork-position-option-copy strong { font-size: 16px; }
.customer-app .artwork-position-option-copy small { color: var(--cyan); font-size: 12px; font-weight: 800; }
.customer-app .artwork-position-option-copy em { color: rgba(226, 239, 233, .52); font-size: 10px; font-style: normal; line-height: 1.4; }
.customer-app .artwork-position-option-action { color: var(--green); font-size: 11px; font-weight: 900; }
.customer-app .artwork-position-option:disabled .artwork-position-option-action { color: rgba(226, 239, 233, .5); }

.customer-app .artwork-position-hint {
  margin: 0;
  color: rgba(226, 239, 233, .58);
  font-size: 12px;
  line-height: 1.6;
}

.customer-app .artwork-position-actions { display: flex; justify-content: flex-end; }
.customer-app .artwork-position-actions .button { min-height: 44px; }

@media (max-width: 820px) {
  .customer-app .artwork-position-dialog {
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    padding: 18px 14px max(14px, env(safe-area-inset-bottom));
    gap: 14px;
  }
  .customer-app .artwork-position-header h2 { font-size: 23px; }
  .customer-app .artwork-position-options { grid-template-columns: 1fr; }
  .customer-app .artwork-position-option { min-height: 96px; grid-template-columns: 76px minmax(0, 1fr) auto; }
  .customer-app .artwork-position-option-media { width: 76px; height: 76px; }
  .customer-app .artwork-position-actions { position: sticky; bottom: 0; padding-top: 4px; background: #0d1011; }
  .customer-app .artwork-position-actions .button { width: 100%; }
}

@media (max-width: 390px) {
  .customer-app .artwork-position-product { grid-template-columns: 62px minmax(0, 1fr) 50px; }
  .customer-app .artwork-position-product-media { width: 62px; height: 62px; }
  .customer-app .artwork-position-artwork-media { width: 50px; height: 50px; }
  .customer-app .artwork-position-progress span { font-size: 10px; }
  .customer-app .artwork-position-option { grid-template-columns: 68px minmax(0, 1fr); }
  .customer-app .artwork-position-option-media { width: 68px; height: 68px; }
  .customer-app .artwork-position-option-action { grid-column: 2; }
}

/* Customer polish: restored wordmark, Canvas shape previews and immediate social feedback. */
.customer-app .brand-mark:not(.has-image) {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(34, 232, 255, 0.72);
  border-radius: 10px;
  color: #050608;
  background: linear-gradient(135deg, #22e8ff 0%, #b9ff38 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  font-size: 14px;
  font-weight: 950;
}

.customer-app .home-art-social {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.customer-app .social-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-width: 38px;
  height: 32px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(247, 247, 239, 0.84);
  background: rgba(5, 6, 8, 0.8);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.customer-app .home-art-tile .social-icon-button {
  width: auto;
  height: 32px;
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.8);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.customer-app .home-art-tile .social-icon-button:hover,
.customer-app .home-art-tile .social-icon-button:focus-visible,
.customer-app .social-icon-button:hover,
.customer-app .social-icon-button:focus-visible {
  border-color: rgba(34, 232, 255, 0.72);
  color: #ffffff;
  background: rgba(12, 16, 19, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.customer-app .social-icon-button svg,
.customer-app .artwork-action-row .button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-app .social-icon-button.active {
  border-color: rgba(185, 255, 56, 0.86);
  color: #050608;
  background: #b9ff38;
}

.customer-app .social-icon-button.active svg,
.customer-app .artwork-action-row .button.active svg {
  fill: currentColor;
}

.customer-app .home-design-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}

.customer-app .home-design-social {
  display: flex;
  gap: 7px;
  min-width: 0;
}

.customer-app .artwork-action-row .button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 620px) {
  .customer-app .home-art-social {
    left: 6px;
    bottom: 6px;
    gap: 4px;
  }

  .customer-app .home-art-tile .social-icon-button {
    min-width: 32px;
    height: 30px;
    min-height: 30px;
    padding: 0 7px;
  }

  .customer-app .home-design-actions {
    grid-template-columns: 1fr 1fr;
  }

  .customer-app .home-design-social {
    grid-column: 1 / -1;
  }
}

/* Impeccable customer redesign: creative market to custom studio. */
body.customer-app {
  min-height: 100vh;
  color: #f7f7ef;
  background:
    linear-gradient(112deg, rgba(35, 20, 17, 0.88) 0%, rgba(5, 6, 8, 0.98) 34%, rgba(5, 21, 24, 0.94) 68%, rgba(6, 8, 10, 1) 100%),
    #050608;
}

.customer-app {
  --bg: #050608;
  --panel: rgba(14, 16, 19, 0.86);
  --panel-strong: #0d0f12;
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --text: #f7f7ef;
  --muted: #aeb8b4;
  --soft: #dfe4da;
  --cyan: #22e8ff;
  --green: #b9ff38;
  --coral: #ff684b;
  --gold: #e8b86a;
  --black: #050608;
  --radius: 8px;
  --deep-shadow: 0 32px 96px rgba(0, 0, 0, 0.46);
  --soft-shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.customer-app button,
.customer-app input,
.customer-app select,
.customer-app textarea {
  letter-spacing: 0;
}

.customer-app .button,
.customer-app .icon-button,
.customer-app .mini-button,
.customer-app .mode-button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(247, 247, 239, 0.82);
  background: rgba(255, 255, 255, 0.06);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.customer-app .button:hover,
.customer-app .icon-button:hover,
.customer-app .mini-button:hover,
.customer-app .mode-button:hover {
  border-color: rgba(34, 232, 255, 0.58);
  color: #ffffff;
  background: rgba(34, 232, 255, 0.1);
  transform: translateY(-1px);
}

.customer-app .button.primary,
.customer-app .button.pay {
  border-color: transparent;
  color: #050608;
  background: var(--green);
  box-shadow: 0 16px 34px rgba(185, 255, 56, 0.18);
}

.customer-app .button.primary:hover,
.customer-app .button.pay:hover {
  color: #050608;
  background: var(--cyan);
  box-shadow: 0 18px 40px rgba(34, 232, 255, 0.18);
}

.customer-app .button.ghost {
  color: rgba(247, 247, 239, 0.74);
  background: rgba(5, 6, 8, 0.34);
}

.customer-app .icon-button {
  min-width: 42px;
  border-radius: 50%;
}

.customer-app .button:focus-visible,
.customer-app .icon-button:focus-visible,
.customer-app .mode-button:focus-visible,
.customer-app input:focus-visible,
.customer-app select:focus-visible,
.customer-app textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.customer-app .brand {
  gap: 12px;
}

.customer-app .brand-mark {
  border: 0;
  color: #050608;
  background: conic-gradient(from 210deg, var(--coral), var(--cyan), var(--green), var(--coral));
}

.customer-app .brand strong,
.customer-app .brand-home-button {
  color: #f7f7ef;
}

.customer-app .brand span {
  color: rgba(223, 228, 218, 0.58);
}

.customer-app .home-app {
  position: relative;
  max-width: none;
  min-height: 100vh;
  padding: 26px 48px 96px;
  overflow: hidden;
}

.customer-app .home-app::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(78deg, rgba(96, 48, 22, 0.52) 0%, transparent 31%),
    linear-gradient(104deg, transparent 45%, rgba(22, 103, 112, 0.42) 66%, rgba(5, 6, 8, 0.8) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%);
  content: "";
}

.customer-app .home-topbar {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: 300px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 22px;
  max-width: 1720px;
  min-height: 78px;
  margin: 0 auto 22px;
  padding: 0;
}

.customer-app .home-topbar .brand {
  width: 300px;
  min-height: 78px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(5, 6, 8, 0.42);
  backdrop-filter: blur(18px);
}

.customer-app .home-topbar .brand-mark {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.customer-app .home-topbar .brand-mark.has-image {
  width: 220px;
  height: 54px;
}

.customer-app .home-topbar .brand strong {
  font-size: 20px;
  letter-spacing: 0;
}

.customer-app .home-nav {
  position: static;
  justify-self: center;
  display: inline-flex;
  width: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.32);
  transform: none;
  backdrop-filter: blur(18px);
}

.customer-app .home-nav button {
  min-width: 86px;
  min-height: 40px;
  border-radius: 999px;
  color: rgba(247, 247, 239, 0.76);
  font-size: 14px;
}

.customer-app .home-nav button:hover,
.customer-app .home-nav button:focus-visible {
  color: #050608;
  background: var(--green);
}

.customer-app .home-actions {
  justify-content: flex-end;
  gap: 10px;
}

.customer-app .home-actions .button,
.customer-app .home-actions .user-chip {
  min-height: 46px;
}

.customer-app .home-actions .button.ghost,
.customer-app .home-actions .user-chip {
  border-color: rgba(255, 255, 255, 0.34);
  color: rgba(247, 247, 239, 0.82);
  background: rgba(5, 6, 8, 0.34);
  backdrop-filter: blur(14px);
}

.customer-app .cart-button strong {
  color: #050608;
  background: var(--green);
}

.customer-app .user-chip span {
  color: #050608;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.customer-app .home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(430px, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: 34px;
  max-width: 1720px;
  min-height: 760px;
  margin: 0 auto 92px;
  padding: 44px 0 78px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.customer-app .home-hero::before {
  position: absolute;
  right: -90px;
  bottom: 46px;
  width: 62%;
  height: 62%;
  background:
    linear-gradient(132deg, rgba(34, 232, 255, 0.2), rgba(185, 255, 56, 0.08) 44%, transparent 76%);
  clip-path: polygon(18% 0, 100% 12%, 88% 100%, 0 76%);
  content: "";
}

.customer-app .home-hero > div:first-child {
  position: relative;
  z-index: 2;
  align-self: center;
  width: auto;
  max-width: 720px;
}

.customer-app .home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 86px;
  line-height: 0.98;
  letter-spacing: 0;
}

.customer-app .home-hero p {
  max-width: 610px;
  margin: 30px 0 30px;
  color: rgba(223, 228, 218, 0.74);
  font-size: 18px;
  line-height: 1.8;
}

.customer-app .home-hero .button.primary {
  min-width: 154px;
  min-height: 50px;
  font-size: 15px;
}

.customer-app .home-hero-preview {
  position: relative;
  inset: auto;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 620px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.customer-app .home-hero-preview::before {
  position: absolute;
  inset: 30px 0 32px 56px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 11, 0.72);
  box-shadow: var(--deep-shadow);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  content: "";
}

.customer-app .home-hero-preview::after {
  position: absolute;
  right: 5%;
  bottom: 5%;
  width: 72%;
  height: 20%;
  border-radius: 50%;
  background: rgba(34, 232, 255, 0.16);
  filter: blur(38px);
  content: "";
}

.customer-app .hero-carousel {
  position: relative;
  z-index: 1;
  width: 78%;
  min-height: 560px;
  margin-left: 9%;
  border: 1px solid rgba(34, 232, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 232, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 14, 0.84);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.42);
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
  overflow: hidden;
}

.customer-app .hero-slide {
  padding: 42px;
}

.customer-app .hero-slide img {
  width: auto;
  max-width: 88%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 36px 48px rgba(0, 0, 0, 0.52));
}

.customer-app .hero-carousel-meta {
  right: 18px;
  bottom: 18px;
  max-width: 72%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(5, 6, 8, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.customer-app .hero-carousel-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .hero-carousel-meta span {
  color: rgba(223, 228, 218, 0.62);
}

.customer-app .home-preview-empty {
  position: relative;
  z-index: 1;
  width: min(440px, 82%);
  min-height: 360px;
  border: 1px dashed rgba(34, 232, 255, 0.4);
  border-radius: 8px;
  color: rgba(223, 228, 218, 0.66);
  background: rgba(5, 6, 8, 0.42);
}

.customer-app .home-section {
  position: relative;
  max-width: 1720px;
  margin: 0 auto 96px;
}

.customer-app .home-section-head {
  align-items: end;
  margin-bottom: 24px;
}

.customer-app .home-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: 0;
}

.customer-app .home-section-actions {
  gap: 12px;
}

.customer-app .home-artwork-controls {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 280px;
}

.customer-app .home-artwork-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.customer-app .home-artwork-filter,
.customer-app .home-artwork-pagination button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(247, 247, 239, 0.74);
  background: rgba(5, 6, 8, 0.42);
}

.customer-app .home-artwork-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}

.customer-app .home-artwork-filter strong {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #050608;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  background: rgba(185, 255, 56, 0.86);
}

.customer-app .home-artwork-filter:hover,
.customer-app .home-artwork-filter:focus-visible,
.customer-app .home-artwork-pagination button:hover,
.customer-app .home-artwork-pagination button:focus-visible {
  border-color: rgba(34, 232, 255, 0.74);
  color: #ffffff;
  transform: translateY(-1px);
}

.customer-app .home-artwork-filter.active {
  border-color: var(--green);
  color: #050608;
  background: var(--green);
}

.customer-app .home-artwork-filter.active strong {
  color: #b9ff38;
  background: #050608;
}

.customer-app .home-artwork-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.customer-app .home-artwork-pagination button {
  padding: 0 13px;
}

.customer-app .home-artwork-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
  transform: none;
}

.customer-app .home-artwork-pagination span {
  color: rgba(247, 247, 239, 0.66);
  font-size: 13px;
  font-weight: 800;
}

.customer-app .home-feed-tabs {
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.44);
}

.customer-app .home-feed-tabs button {
  min-height: 38px;
  border-radius: 999px;
  color: rgba(223, 228, 218, 0.66);
}

.customer-app .home-feed-tabs button.active {
  color: #050608;
  background: var(--green);
}

.customer-app .home-art-wall {
  grid-template-columns: repeat(14, minmax(0, 1fr));
  grid-auto-rows: 86px;
  gap: 5px;
  min-height: 410px;
  perspective: 1200px;
}

.customer-app .home-art-tile {
  grid-column: span 2;
  grid-row: span 3;
  transform:
    translate3d(0, var(--wave-lift, 0px), 0)
    rotateX(var(--wave-y, 0deg))
    rotateY(var(--wave-x, 0deg))
    scale(var(--wave-scale, 1));
}

.customer-app .home-art-tile:nth-child(3n + 1) {
  grid-column: span 3;
  grid-row: span 4;
}

.customer-app .home-art-tile:nth-child(4n + 2) {
  grid-column: span 2;
  grid-row: span 2;
}

.customer-app .home-art-tile:nth-child(5n + 4) {
  grid-column: span 3;
  grid-row: span 3;
}

.customer-app .home-art-tile:nth-child(8n + 5) {
  grid-column: span 2;
  grid-row: span 4;
}

.customer-app .home-art-tile button {
  border: 0;
  border-radius: 4px;
  background: #050608;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.customer-app .home-art-tile button:hover,
.customer-app .home-art-tile button:focus-visible {
  border-color: var(--cyan);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(34, 232, 255, 0.28);
  transform: scale(1.09);
}

.customer-app .home-art-tile img {
  padding: 5px;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04);
}

.customer-app .home-art-mark {
  right: 9px;
  bottom: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #050608;
  background: rgba(185, 255, 56, 0.92);
}

.customer-app .home-art-wall-compact {
  grid-auto-rows: 76px;
  min-height: 330px;
}

.customer-app .home-paid-section {
  display: none;
}

.customer-app .home-showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.customer-app .home-design-card,
.customer-app .home-empty {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024)),
    rgba(12, 14, 17, 0.84);
  box-shadow: var(--soft-shadow);
}

.customer-app .home-design-card {
  overflow: hidden;
}

.customer-app .home-design-card:hover {
  border-color: rgba(34, 232, 255, 0.58);
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.42);
  transform: translateY(-6px);
}

.customer-app .home-design-image {
  min-height: 340px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(34, 232, 255, 0.09), transparent 42%),
    #111418;
}

.customer-app .home-design-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-app .home-design-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: inherit;
  color: rgba(247, 247, 239, 0.56);
  background: #111418;
  font-size: 13px;
  letter-spacing: 0;
}

.customer-app .home-design-body {
  padding: 18px;
}

.customer-app .home-author-row {
  margin-bottom: 14px;
}

.customer-app .home-author-avatar {
  border-radius: 50%;
  color: #050608;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.customer-app .home-design-copy h3 {
  color: #ffffff;
  font-size: 20px;
}

.customer-app .home-design-copy span,
.customer-app .home-author-row span {
  color: rgba(223, 228, 218, 0.6);
}

.customer-app .home-design-actions {
  margin-top: 16px;
}

.customer-app .catalog-app {
  max-width: none;
  min-height: 100vh;
  padding: 24px 42px 76px;
  background:
    linear-gradient(118deg, rgba(62, 30, 18, 0.38) 0%, transparent 35%),
    linear-gradient(102deg, transparent 42%, rgba(17, 96, 110, 0.3) 72%, transparent 100%),
    #050608;
}

.customer-app .catalog-topbar,
.customer-app .editor-shell .topbar {
  position: sticky;
  top: 16px;
  z-index: 32;
  max-width: 1680px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(6, 7, 9, 0.82);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.customer-app .catalog-account,
.customer-app .top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.customer-app .profile-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.customer-app .catalog-top-meta {
  color: rgba(223, 228, 218, 0.58);
}

.customer-app .catalog-user-chip,
.customer-app .catalog-user-chip:not(.logged-in) {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(247, 247, 239, 0.84);
  background: rgba(255, 255, 255, 0.055);
}

.customer-app .catalog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(360px, 0.52fr);
  align-items: end;
  gap: 40px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 86px 0 46px;
}

.customer-app .catalog-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.customer-app .catalog-hero p {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(223, 228, 218, 0.66);
  font-size: 17px;
  line-height: 1.76;
}

.customer-app .catalog-search {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 168px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(223, 228, 218, 0.64);
  background:
    linear-gradient(135deg, rgba(34, 232, 255, 0.13), rgba(185, 255, 56, 0.04)),
    rgba(13, 15, 18, 0.78);
  box-shadow: var(--soft-shadow);
}

.customer-app .catalog-search span {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.customer-app .catalog-search input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 6, 8, 0.56);
}

.customer-app .catalog-search input::placeholder {
  color: rgba(223, 228, 218, 0.44);
}

.customer-app .catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  max-width: 1680px;
  margin: 0 auto;
}

.customer-app .catalog-filter {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 14, 17, 0.8);
  box-shadow: var(--soft-shadow);
}

.customer-app .filter-label,
.customer-app .catalog-product-category {
  color: rgba(34, 232, 255, 0.94);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.customer-app .catalog-category-tabs {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.customer-app .catalog-category-tab {
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(223, 228, 218, 0.66);
  background: rgba(255, 255, 255, 0.04);
}

.customer-app .catalog-category-tab:hover,
.customer-app .catalog-category-tab.active {
  border-color: rgba(34, 232, 255, 0.52);
  color: #ffffff;
  background: rgba(34, 232, 255, 0.1);
}

.customer-app .catalog-results {
  min-width: 0;
}

.customer-app .catalog-results-head {
  min-height: 64px;
  margin-bottom: 18px;
  padding: 0 2px;
}

.customer-app .catalog-results-head strong {
  color: #ffffff;
  font-size: 24px;
}

.customer-app .catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.customer-app .catalog-product-card {
  display: grid;
  grid-template-rows: 300px minmax(250px, auto);
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(12, 14, 17, 0.84);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.customer-app .catalog-product-card:hover {
  border-color: rgba(34, 232, 255, 0.62);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.44);
  transform: translateY(-5px);
}

.customer-app .catalog-product-image {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(34, 232, 255, 0.1), transparent 42%),
    #edf0eb;
}

.customer-app .catalog-product-image img {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.22));
}

.customer-app .catalog-product-image > span:first-child {
  color: #1f2528;
  background: rgba(255, 255, 255, 0.66);
}

.customer-app .catalog-product-badge {
  top: 14px;
  right: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 6, 8, 0.72);
}

.customer-app .catalog-product-content {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 18px;
}

.customer-app .catalog-product-content h2 {
  margin-top: 8px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.18;
}

.customer-app .catalog-card-meta {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.customer-app .catalog-card-meta span,
.customer-app .catalog-card-options span,
.customer-app .catalog-product-footer span {
  color: rgba(223, 228, 218, 0.58);
  font-size: 12px;
}

.customer-app .catalog-card-meta .product-sold-count {
  color: rgba(223, 228, 218, 0.8);
  font-variant-numeric: tabular-nums;
}

.customer-app .catalog-card-options {
  display: grid;
  gap: 10px;
  align-self: start;
}

.customer-app .catalog-card-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-app .catalog-color-dot {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.customer-app .catalog-style-thumb {
  display: block;
  width: 30px;
  height: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: #111417;
}

.customer-app .catalog-style-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.customer-app .catalog-product-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-app .catalog-product-footer strong {
  color: var(--green);
  font-size: 26px;
  justify-self: start;
}

.customer-app .catalog-empty,
.customer-app .home-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: rgba(223, 228, 218, 0.62);
}

.customer-app .editor-shell {
  min-height: 100vh;
  padding: 24px 32px 38px;
  background:
    linear-gradient(105deg, rgba(57, 30, 20, 0.28), transparent 32%),
    linear-gradient(95deg, transparent 48%, rgba(21, 92, 102, 0.26) 78%, transparent 100%),
    #050608;
}

.customer-app .editor-shell .topbar {
  margin-bottom: 14px;
}

.customer-app .editor-shell .brand-mark {
  width: 44px;
  height: 44px;
}

.customer-app .editor-shell .brand strong {
  color: #ffffff;
}

.customer-app .editor-progress {
  max-width: 1680px;
  margin: 0 auto 14px;
  padding: 0 4px;
  color: rgba(223, 228, 218, 0.48);
}

.customer-app .progress-step {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.customer-app .progress-step.active {
  border-color: rgba(34, 232, 255, 0.42);
  color: var(--cyan);
}

.customer-app .progress-step.complete {
  border-color: rgba(185, 255, 56, 0.38);
  color: var(--green);
}

.customer-app .progress-line {
  background: rgba(255, 255, 255, 0.15);
}

.customer-app .studio {
  display: grid;
  grid-template-columns: 310px minmax(560px, 1fr) 390px;
  gap: 18px;
  max-width: 1680px;
  margin: 0 auto;
  align-items: stretch;
}

.customer-app .panel,
.customer-app .stage-panel {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)),
    rgba(12, 14, 17, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.customer-app .panel {
  max-height: calc(100vh - 148px);
  padding: 16px;
  overflow: auto;
  scrollbar-color: rgba(34, 232, 255, 0.42) rgba(255, 255, 255, 0.06);
}

.customer-app .panel section + section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-app .panel h2,
.customer-app .stage-panel h1 {
  color: #ffffff;
  letter-spacing: 0;
}

.customer-app .panel h2 {
  margin-bottom: 12px;
  font-size: 14px;
}

.customer-app .stage-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 148px);
  padding: 16px;
}

.customer-app .stage-header {
  min-height: 54px;
  margin-bottom: 14px;
}

.customer-app .stage-header h1 {
  font-size: 28px;
}

.customer-app .stage-header span {
  color: rgba(223, 228, 218, 0.54);
}

.customer-app .stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.customer-app .mode-button.active {
  border-color: transparent;
  color: #050608;
  background: var(--green);
}

.customer-app .canvas-shell {
  flex: 1;
  min-height: 620px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 232, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #090b0e;
  overflow: auto;
}

.customer-app #designCanvas {
  width: min(100%, 820px);
  max-width: 100%;
  border-radius: 8px;
  background: #ecefeb;
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.customer-app .quickbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.customer-app .quickbar .button {
  min-width: 0;
}

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

.customer-app .editor-product-catalog {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-content: start;
}

.customer-app .category-tile,
.customer-app .secondary-chip,
.customer-app .side-button,
.customer-app .shape-drag-mode button,
.customer-app .shape-button {
  border-radius: 8px;
  color: rgba(223, 228, 218, 0.72);
  background: rgba(255, 255, 255, 0.05);
}

.customer-app .category-tile {
  min-height: 88px;
}

.customer-app .category-tile:hover,
.customer-app .category-tile.active,
.customer-app .secondary-chip:hover,
.customer-app .secondary-chip.active {
  border-color: rgba(34, 232, 255, 0.58);
  color: #ffffff;
  background: rgba(34, 232, 255, 0.1);
}

.customer-app .category-icon {
  border-radius: 8px;
  color: #050608;
  background: var(--green);
}

.customer-app .side-button.active,
.customer-app .shape-drag-mode button.active {
  border-color: transparent;
  color: #050608;
  background: var(--green);
}

.customer-app .field {
  color: rgba(223, 228, 218, 0.64);
}

.customer-app .field input,
.customer-app .field select,
.customer-app .text-form input,
.customer-app .profile-page input,
.customer-app .profile-page select,
.customer-app .profile-page textarea,
.customer-app .auth-form input,
.customer-app .cart-edit-controls select,
.customer-app .cart-edit-controls input {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f7f7ef;
  background: rgba(5, 6, 8, 0.58);
}

.customer-app .field input::placeholder,
.customer-app .text-form input::placeholder,
.customer-app .auth-form input::placeholder {
  color: rgba(223, 228, 218, 0.42);
}

.customer-app .layer-lock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: rgba(247, 247, 239, 0.58);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

.customer-app #selectedLayerLockState.is-locked {
  color: #ffb66b;
}

.customer-app .layer-lock-button.active {
  border-color: rgba(255, 174, 92, 0.52);
  color: #ffb66b;
  background: rgba(255, 174, 92, 0.1);
}

.customer-app .layer-row.locked .layer-thumbnail {
  opacity: 0.72;
}

.customer-app .layer-row.locked .layer-thumbnail::after {
  content: "锁";
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #0b0c0f;
  background: #ffb66b;
  font-size: 9px;
  font-weight: 900;
}

.customer-app .field input:focus,
.customer-app .field select:focus,
.customer-app .text-form input:focus {
  border-color: rgba(34, 232, 255, 0.76);
  box-shadow: 0 0 0 3px rgba(34, 232, 255, 0.1);
}

.customer-app .swatch {
  border-radius: 50%;
}

.customer-app .swatch.active {
  border-color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(34, 232, 255, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.24);
}

.customer-app .upload-box,
.customer-app .ai-generator-panel,
.customer-app .artwork-card,
.customer-app .selected-empty,
.customer-app .layer-row,
.customer-app .saved-item,
.customer-app .order-draft-item,
.customer-app .checkout-item-row,
.customer-app .cart-row,
.customer-app .cart-empty {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: rgba(223, 228, 218, 0.7);
  background: rgba(255, 255, 255, 0.045);
}

.customer-app .upload-box {
  min-height: 112px;
  align-content: center;
}

.customer-app .upload-box:hover,
.customer-app .upload-box.accent:hover {
  border-color: rgba(34, 232, 255, 0.64);
  background: rgba(34, 232, 255, 0.08);
}

.customer-app .ai-generator-panel {
  background:
    linear-gradient(135deg, rgba(34, 232, 255, 0.1), rgba(185, 255, 56, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.customer-app .ai-result-grid,
.customer-app .artwork-library,
.customer-app .layer-list,
.customer-app .saved-strip,
.customer-app .order-selection-list {
  scrollbar-color: rgba(34, 232, 255, 0.42) rgba(255, 255, 255, 0.06);
}

.customer-app .ai-result-card {
  grid-template-columns: 76px minmax(0, 1fr);
  border-radius: 8px;
}

.customer-app .ai-result-card img {
  width: 76px;
  border-radius: 8px;
}

.customer-app .artwork-filter-chip {
  border-radius: 999px;
}

.customer-app .artwork-card {
  overflow: hidden;
}

.customer-app .artwork-card:hover {
  border-color: rgba(34, 232, 255, 0.58);
}

.customer-app .artwork-image-button {
  background: #edf0eb;
}

.customer-app .shape-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-app .layer-row.active,
.customer-app .saved-item.active {
  border-color: rgba(34, 232, 255, 0.72);
  background: rgba(34, 232, 255, 0.1);
}

.customer-app .order-panel {
  padding: 16px;
  border: 1px solid rgba(185, 255, 56, 0.22);
  border-radius: 8px;
  background: rgba(185, 255, 56, 0.055);
}

.customer-app .total-row strong,
.customer-app .order-draft-total {
  color: var(--green);
}

.customer-app .status-pill {
  color: var(--green);
  background: rgba(185, 255, 56, 0.08);
}

.customer-app .modal {
  background: rgba(0, 0, 0, 0.78);
}

.customer-app .modal-dialog,
.customer-app .auth-dialog,
.customer-app .cart-dialog {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #f7f7ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #0e1014;
  box-shadow: var(--deep-shadow);
}

.customer-app .user-menu {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #0e1014;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.42);
}

.customer-app .user-menu-item {
  border-radius: 8px;
  color: #f7f7ef;
  background: transparent;
}

.customer-app .user-menu-item:hover {
  background: rgba(34, 232, 255, 0.1);
}

@media (max-width: 1380px) {
  .customer-app .home-topbar {
    grid-template-columns: 280px 1fr;
  }

  .customer-app .home-nav {
    justify-self: end;
  }

  .customer-app .home-actions {
    grid-column: 1 / -1;
  }

  .customer-app .home-hero {
    grid-template-columns: minmax(380px, 0.88fr) minmax(460px, 1.12fr);
  }

  .customer-app .home-hero h1 {
    font-size: 76px;
  }

  .customer-app .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-app .studio {
    grid-template-columns: 280px minmax(500px, 1fr) 360px;
  }
}

@media (max-width: 1180px) {
  .customer-app .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .customer-app .home-hero h1 {
    font-size: 68px;
  }

  .customer-app .home-hero-preview {
    min-height: 560px;
  }

  .customer-app .hero-carousel {
    width: 84%;
    margin-left: 6%;
  }

  .customer-app .home-art-wall {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .customer-app .home-artwork-controls {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
  }

  .customer-app .catalog-hero {
    grid-template-columns: 1fr;
  }

  .customer-app .catalog-layout {
    grid-template-columns: 1fr;
  }

  .customer-app .catalog-filter {
    position: static;
  }

  .customer-app .catalog-category-tabs {
    display: flex;
    overflow-x: auto;
  }

  .customer-app .catalog-category-tab {
    flex: 0 0 auto;
  }

  .customer-app .studio {
    grid-template-columns: 1fr;
  }

  .customer-app .stage-panel {
    grid-row: 1;
    min-height: auto;
  }

  .customer-app .product-panel {
    grid-row: 2;
  }

  .customer-app .edit-panel {
    grid-row: 3;
  }

  .customer-app .product-panel,
  .customer-app .edit-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .customer-app .product-panel section + section,
  .customer-app .edit-panel section + section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .customer-app .canvas-shell {
    min-height: 560px;
  }
}

@media (max-width: 820px) {
  .customer-app .home-app,
  .customer-app .catalog-app,
  .customer-app .editor-shell {
    padding: 16px 16px 56px;
  }

  .customer-app .home-topbar,
  .customer-app .catalog-topbar,
  .customer-app .editor-shell .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .customer-app .home-topbar .brand {
    width: 100%;
  }

  .customer-app .home-nav {
    justify-self: stretch;
    justify-content: center;
    overflow-x: auto;
  }

  .customer-app .home-actions,
  .customer-app .catalog-account,
  .customer-app .top-actions {
    justify-content: stretch;
  }

  .customer-app .home-actions .button,
  .customer-app .home-actions .user-chip,
  .customer-app .catalog-account .button,
  .customer-app .catalog-account .user-chip {
    flex: 1 1 calc(50% - 8px);
  }

  .customer-app .home-hero {
    margin-bottom: 64px;
    padding-top: 36px;
  }

  .customer-app .home-hero h1 {
    font-size: 52px;
  }

  .customer-app .home-hero p {
    font-size: 16px;
  }

  .customer-app .home-hero-preview {
    min-height: 460px;
  }

  .customer-app .hero-carousel {
    width: 92%;
    min-height: 430px;
    margin-left: 0;
    transform: none;
  }

  .customer-app .home-section {
    margin-bottom: 66px;
  }

  .customer-app .home-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-app .home-artwork-controls {
    flex-direction: column;
  }

  .customer-app .home-artwork-filters {
    justify-content: flex-start;
  }

  .customer-app .home-section h2,
  .customer-app .catalog-hero h1 {
    font-size: 38px;
  }

  .customer-app .home-art-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 68px;
  }

  .customer-app .home-art-tile,
  .customer-app .home-art-tile:nth-child(3n + 1),
  .customer-app .home-art-tile:nth-child(4n + 2),
  .customer-app .home-art-tile:nth-child(5n + 4),
  .customer-app .home-art-tile:nth-child(8n + 5) {
    grid-column: span 2;
    grid-row: span 3;
  }

  .customer-app .home-showcase-grid,
  .customer-app .catalog-product-grid,
  .customer-app .product-panel,
  .customer-app .edit-panel {
    grid-template-columns: 1fr;
  }

  .customer-app .catalog-product-card {
    grid-template-rows: 270px auto;
  }

  .customer-app .catalog-product-footer {
    grid-template-columns: 1fr auto;
  }

  .customer-app .catalog-product-footer span {
    grid-column: 1 / -1;
  }

  .customer-app .stage-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-app .stage-actions {
    justify-content: flex-start;
  }

  .customer-app .quickbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-app .canvas-shell {
    min-height: 430px;
    padding: 14px;
  }
}

@media (max-width: 560px) {
  .customer-app .home-hero h1 {
    font-size: 42px;
  }

  .customer-app .home-nav button {
    min-width: 72px;
  }

  .customer-app .home-hero-preview {
    min-height: 380px;
  }

  .customer-app .hero-carousel {
    min-height: 350px;
  }

  .customer-app .home-art-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 62px;
  }

  .customer-app .home-section h2,
  .customer-app .catalog-hero h1 {
    font-size: 32px;
  }

  .customer-app .catalog-product-image {
    min-height: 240px;
  }

  .customer-app .quickbar {
    grid-template-columns: 1fr;
  }

  .customer-app .editor-progress {
    overflow-x: auto;
    justify-content: flex-start;
  }
}

.customer-app .catalog-brand .brand-mark.has-image,
.customer-app .editor-shell .brand-mark.has-image,
.customer-app .profile-topbar .brand-mark.has-image {
  width: 220px;
  height: 54px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.customer-app .catalog-brand .brand-mark.has-image + div,
.customer-app .editor-shell .brand-mark.has-image + div,
.customer-app .profile-topbar .brand-mark.has-image + div {
  display: none;
}

.artwork-preview-frame {
  position: relative;
}

.artwork-preview-badges {
  top: 16px;
  left: 16px;
}

.artwork-preview-badges .artwork-availability-badge {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

.artwork-preview-frame img {
  object-fit: contain;
}

.artwork-overlay-apply {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 44px;
  padding: 0 18px;
}

.artwork-overlay-apply[hidden] {
  display: none !important;
}

.profile-space-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1440px;
  margin: 0 auto 18px;
}

.profile-space-nav button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(223, 228, 218, 0.68);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.profile-space-nav button:hover,
.profile-space-nav button.active {
  border-color: rgba(34, 232, 255, 0.58);
  color: #050608;
  background: var(--green);
}

.profile-side-panel[hidden],
.profile-card[hidden] {
  display: none !important;
}

.profile-side-panel[hidden] + .profile-main-panel {
  grid-column: 1 / -1;
}

.customer-app .profile-design-card {
  min-height: 420px;
}

.customer-app .profile-design-card .profile-list,
.profile-public-designs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.customer-app .profile-design-card .profile-design-row,
.profile-public-designs .profile-design-row {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 260px;
  padding: 8px;
}

.customer-app .profile-design-card .profile-design-row img,
.profile-public-designs .profile-design-row img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.customer-app .profile-draft-card {
  border-color: rgba(34, 232, 255, 0.32);
}

.customer-app .profile-draft-row {
  grid-template-columns: 78px minmax(0, 1fr) auto;
  min-height: 92px;
  padding: 10px;
}

.customer-app .profile-draft-row img {
  width: 78px;
  height: 78px;
  border-radius: 6px;
  object-fit: cover;
  background: #171b20;
}

.customer-app .profile-draft-row > div {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.customer-app .profile-draft-row > div strong,
.customer-app .profile-draft-row > div small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-draft-row > div small {
  color: rgba(247, 247, 239, 0.54);
}

.profile-person-row {
  width: 100%;
  border: 0;
  text-align: left;
}

.profile-public-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.profile-public-head strong,
.profile-public-head span {
  display: block;
}

.profile-public-head strong {
  color: #ffffff;
  font-size: 20px;
}

.profile-public-head span {
  margin-top: 4px;
  color: rgba(223, 228, 218, 0.58);
}

@media (max-width: 820px) {
  .customer-app .catalog-brand .brand-mark.has-image,
  .customer-app .editor-shell .brand-mark.has-image,
  .customer-app .profile-topbar .brand-mark.has-image,
  .customer-app .home-topbar .brand-mark.has-image {
    width: 190px;
    height: 48px;
  }

  .customer-app .profile-design-card .profile-list,
  .profile-public-designs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .customer-app .profile-design-card .profile-list,
  .profile-public-designs {
    grid-template-columns: 1fr;
  }
}

/* Customer refinement: fixed brand slot, stronger hero market board, clearer studio toolbox. */
.customer-app .brand-mark.has-image,
.customer-app .home-topbar .brand-mark.has-image,
.customer-app .catalog-brand .brand-mark.has-image,
.customer-app .editor-shell .brand-mark.has-image,
.customer-app .profile-topbar .brand-mark.has-image {
  display: grid !important;
  place-items: center;
  flex: 0 0 var(--customer-logo-width, 236px);
  width: var(--customer-logo-width, 236px) !important;
  min-width: var(--customer-logo-width, 236px);
  height: var(--customer-logo-height, 62px) !important;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(2, 3, 5, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.customer-app .home-topbar .brand-mark.has-image {
  --customer-logo-width: 252px;
  --customer-logo-height: 66px;
}

.customer-app .catalog-brand .brand-mark.has-image,
.customer-app .editor-shell .brand-mark.has-image,
.customer-app .profile-topbar .brand-mark.has-image {
  --customer-logo-width: 226px;
  --customer-logo-height: 58px;
}

.customer-app .brand-mark.has-image img,
.customer-app .home-topbar .brand-mark.has-image img,
.customer-app .catalog-brand .brand-mark.has-image img,
.customer-app .editor-shell .brand-mark.has-image img,
.customer-app .profile-topbar .brand-mark.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center !important;
}

.customer-app .home-hero-preview::before {
  inset: 10px 0 24px 28px;
  border-color: rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(34, 232, 255, 0.12), rgba(255, 255, 255, 0.05) 42%, rgba(185, 255, 56, 0.04)),
    rgba(8, 9, 11, 0.82);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}

.customer-app .hero-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(92%, 720px);
  min-height: 560px;
  margin-left: 0;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(6, 8, 10, 0.9);
  box-shadow: 0 34px 94px rgba(0, 0, 0, 0.48);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.customer-app .hero-feature-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 32px;
  border: 1px solid rgba(34, 232, 255, 0.2);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 78%, rgba(185, 255, 56, 0.1), transparent 34%),
    radial-gradient(circle at 46% 18%, rgba(34, 232, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.customer-app .hero-feature-card:hover,
.customer-app .hero-feature-card:focus-visible {
  border-color: rgba(185, 255, 56, 0.68);
  transform: translateY(-2px);
}

.customer-app .hero-feature-card img {
  width: auto;
  max-width: 92%;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.58));
}

.customer-app .hero-feature-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(185, 255, 56, 0.48);
  border-radius: 999px;
  color: #050608;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
  line-height: 30px;
}

.customer-app .hero-thumb-rail {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-content: start;
  gap: 10px;
}

.customer-app .hero-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.customer-app .hero-thumb img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.42));
}

.customer-app .hero-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #050608;
  background: rgba(247, 247, 239, 0.92);
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
}

.customer-app .hero-thumb.active {
  border-color: var(--cyan);
  background: rgba(34, 232, 255, 0.13);
  box-shadow: 0 12px 30px rgba(34, 232, 255, 0.12);
}

.customer-app .hero-carousel-meta {
  position: static;
  grid-column: 1;
  max-width: none;
  align-self: end;
  padding: 14px 16px;
  border-radius: 10px;
}

.customer-app .catalog-account {
  gap: 10px;
}

.customer-app .edit-panel {
  display: block;
  padding: 14px;
}

.customer-app .toolbox-header {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: -14px -14px 12px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 14, 17, 0.98), rgba(12, 14, 17, 0.9)),
    rgba(12, 14, 17, 0.92);
  backdrop-filter: blur(18px);
}

.customer-app .toolbox-header strong,
.customer-app .toolbox-header span {
  display: block;
}

.customer-app .toolbox-header strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
}

.customer-app .toolbox-header span {
  margin-top: 6px;
  color: rgba(223, 228, 218, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.customer-app .toolbox-jump {
  position: sticky;
  top: 70px;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(5, 6, 8, 0.76);
  backdrop-filter: blur(16px);
}

.customer-app .toolbox-jump button {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(247, 247, 239, 0.74);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 900;
}

.customer-app .toolbox-jump button:hover,
.customer-app .toolbox-jump button:focus-visible {
  border-color: rgba(34, 232, 255, 0.62);
  color: #050608;
  background: var(--green);
}

.customer-app .edit-panel .tool-section,
.customer-app .edit-panel .artwork-panel {
  scroll-margin-top: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.customer-app .edit-panel .tool-section + .tool-section,
.customer-app .edit-panel .tool-section + .artwork-panel,
.customer-app .edit-panel .artwork-panel + .tool-section {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.customer-app .edit-panel .tool-section h2,
.customer-app .edit-panel .artwork-panel h2 {
  margin-bottom: 12px;
  font-size: 15px;
}

.customer-app .shape-tool {
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 232, 255, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(34, 232, 255, 0.08), rgba(185, 255, 56, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.customer-app .shape-tool > span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.customer-app .shape-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-app .shape-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 8px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: rgba(247, 247, 239, 0.78);
  background: rgba(5, 6, 8, 0.58);
  text-align: left;
}

.customer-app .shape-button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .shape-button:hover,
.customer-app .shape-button.active {
  border-color: rgba(185, 255, 56, 0.72);
  color: #ffffff;
  background: rgba(185, 255, 56, 0.1);
}

.customer-app .shape-drag-mode button {
  min-height: 38px;
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .customer-app .hero-carousel {
    width: min(100%, 780px);
    min-height: 520px;
    transform: none;
  }
}

@media (max-width: 820px) {
  .customer-app .brand-mark.has-image,
  .customer-app .home-topbar .brand-mark.has-image,
  .customer-app .catalog-brand .brand-mark.has-image,
  .customer-app .editor-shell .brand-mark.has-image,
  .customer-app .profile-topbar .brand-mark.has-image {
    --customer-logo-width: 206px;
    --customer-logo-height: 54px;
  }

  .customer-app .hero-carousel {
    grid-template-columns: 1fr;
    min-height: 460px;
  }

  .customer-app .hero-thumb-rail {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-app .hero-feature-card {
    min-height: 310px;
  }

  .customer-app .toolbox-jump {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .customer-app .brand-mark.has-image,
  .customer-app .home-topbar .brand-mark.has-image,
  .customer-app .catalog-brand .brand-mark.has-image,
  .customer-app .editor-shell .brand-mark.has-image,
  .customer-app .profile-topbar .brand-mark.has-image {
    --customer-logo-width: 180px;
    --customer-logo-height: 48px;
  }

  .customer-app .shape-picker {
    grid-template-columns: 1fr;
  }

}

/* Canvas shape control */
.customer-app .shape-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 58px auto;
  align-items: stretch;
  gap: 7px;
  min-height: 90px;
  padding: 7px;
  border-radius: 10px;
  text-align: center;
}

.customer-app .shape-preview-image {
  display: block;
  width: 100%;
  height: 58px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    rgba(5, 6, 8, 0.82);
  background-position: 0 0, 8px 8px, 0 0;
  background-size: 16px 16px, 16px 16px, auto;
}

.customer-app .shape-preview-none {
  display: block;
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(5, 6, 8, 0.82);
}

.customer-app .shape-template-empty-hint {
  grid-column: 1 / -1;
  margin: 2px 0;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(247, 247, 239, 0.58);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.customer-app .shape-button:hover .shape-preview-image,
.customer-app .shape-button.active .shape-preview-image {
  border-color: rgba(34, 232, 255, 0.54);
}

.customer-app .shape-button > span:last-child {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 560px) {
  .customer-app .shape-picker {
    grid-template-columns: 1fr;
  }
}

/* Brand lockup: an operator-managed icon slot with persistent brand text. */
.customer-app .brand-mark,
.customer-app .brand-mark.has-image,
.customer-app .home-topbar .brand-mark,
.customer-app .home-topbar .brand-mark.has-image,
.customer-app .catalog-brand .brand-mark,
.customer-app .catalog-brand .brand-mark.has-image,
.customer-app .editor-shell .brand-mark,
.customer-app .editor-shell .brand-mark.has-image,
.customer-app .profile-topbar .brand-mark,
.customer-app .profile-topbar .brand-mark.has-image {
  display: grid !important;
  place-items: center;
  flex: 0 0 48px;
  width: 48px !important;
  min-width: 48px;
  height: 48px !important;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 7, 9, 0.74);
  box-shadow: none;
  overflow: hidden;
}

.customer-app .brand-mark.is-empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
}

.customer-app .brand-image-placeholder {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.08) 49%, rgba(255, 255, 255, 0.08) 54%, transparent 55%);
}

.customer-app .brand-mark.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

.customer-app .brand-mark.is-default-logo img {
  justify-self: start;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: unset !important;
}

.customer-app .brand-mark + div,
.customer-app .brand-mark.has-image + div {
  display: block !important;
}

.customer-app .copyright-consent-bar {
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
  padding: 12px;
  border-left: 3px solid var(--green);
  background: rgba(184, 255, 61, 0.055);
}

.customer-app .copyright-consent-bar[hidden] {
  display: none;
}

.customer-app .copyright-consent-check,
.customer-app .copyright-modal-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: rgba(247, 247, 239, 0.78);
  font-size: 11px;
  line-height: 1.65;
}

.customer-app .profile-order-row {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 106px;
  padding: 12px;
}

.customer-app .profile-order-thumb {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #f0f2ee;
  object-fit: contain;
}

.customer-app .profile-order-thumb-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background: #171b1a;
  font-size: 12px;
  font-weight: 800;
}

.customer-app .profile-order-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.customer-app .profile-order-heading span {
  margin: 0;
  color: rgba(247, 247, 239, 0.5);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.customer-app .profile-order-heading em {
  padding: 4px 7px;
  border: 1px solid rgba(34, 232, 255, 0.45);
  color: var(--cyan);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.customer-app .profile-order-summary strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.customer-app .profile-order-summary small {
  display: block;
  max-width: 540px;
  margin-top: 7px;
  overflow: hidden;
  color: rgba(247, 247, 239, 0.54);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-order-aside {
  display: grid;
  justify-items: end;
  gap: 9px;
  min-width: 88px;
}

.customer-app .profile-order-aside > strong {
  color: var(--green);
  font-size: 17px;
}

.customer-app .copyright-consent-check input,
.customer-app .copyright-modal-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.customer-app .copyright-policy-link {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.customer-app .upload-box.is-locked {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.customer-app .copyright-policy-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 28px));
  overflow: auto;
}

.customer-app .copyright-policy-version {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-app .copyright-policy-content {
  max-height: 430px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(247, 247, 239, 0.78);
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-line;
  overflow: auto;
}

.customer-app .copyright-modal-consent {
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 560px) {
  .customer-app .brand-mark,
  .customer-app .brand-mark.has-image {
    flex-basis: 42px;
    width: 42px !important;
    min-width: 42px;
    height: 42px !important;
  }

  .customer-app .profile-order-row {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .customer-app .profile-order-thumb {
    width: 60px;
    height: 60px;
  }

  .customer-app .profile-order-aside {
    grid-column: 2;
    grid-template-columns: auto auto;
    justify-items: start;
    align-items: center;
  }
}

/* Mobile customer experience: thumb-first navigation and canvas-first editing. */
@media (max-width: 820px) {
  .customer-app {
    overflow-x: hidden;
    padding-right: env(safe-area-inset-right);
    padding-left: env(safe-area-inset-left);
    -webkit-tap-highlight-color: transparent;
  }

  .customer-app button,
  .customer-app .button,
  .customer-app .user-chip,
  .customer-app input,
  .customer-app select {
    min-height: 44px;
  }

  .customer-app input,
  .customer-app select,
  .customer-app textarea {
    font-size: 16px;
  }

  .customer-app .home-app,
  .customer-app .catalog-app,
  .customer-app .editor-shell,
  .customer-app .profile-page {
    padding: max(10px, env(safe-area-inset-top)) 12px max(72px, calc(56px + env(safe-area-inset-bottom)));
  }

  .customer-app .home-topbar,
  .customer-app .catalog-topbar,
  .customer-app .editor-shell .topbar,
  .customer-app .profile-topbar {
    position: sticky;
    top: 0;
    z-index: 32;
    display: grid;
    width: 100%;
    min-height: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 8, 10, 0.94);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
  }

  .customer-app .home-topbar {
    position: relative;
  }

  .customer-app .home-topbar .brand,
  .customer-app .catalog-topbar .brand,
  .customer-app .editor-shell .topbar .brand,
  .customer-app .profile-topbar .brand {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .customer-app .brand strong,
  .customer-app .brand-home-button {
    max-width: 190px;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-app .brand span {
    font-size: 12px;
  }

  .customer-app .home-nav,
  .customer-app .home-actions,
  .customer-app .catalog-account,
  .customer-app .editor-shell .top-actions,
  .customer-app .profile-top-actions,
  .customer-app .profile-space-nav,
  .customer-app .profile-order-tabs,
  .customer-app .home-artwork-filters {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .customer-app .home-nav::-webkit-scrollbar,
  .customer-app .home-actions::-webkit-scrollbar,
  .customer-app .catalog-account::-webkit-scrollbar,
  .customer-app .editor-shell .top-actions::-webkit-scrollbar,
  .customer-app .profile-top-actions::-webkit-scrollbar,
  .customer-app .profile-space-nav::-webkit-scrollbar,
  .customer-app .profile-order-tabs::-webkit-scrollbar,
  .customer-app .home-artwork-filters::-webkit-scrollbar {
    display: none;
  }

  .customer-app .home-nav button,
  .customer-app .home-actions .button,
  .customer-app .home-actions .user-chip,
  .customer-app .catalog-account > *,
  .customer-app .editor-shell .top-actions > *,
  .customer-app .profile-top-actions > *,
  .customer-app .profile-space-nav button,
  .customer-app .profile-order-tabs button,
  .customer-app .home-artwork-filter {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
  }

  .customer-app .home-nav {
    order: 3;
    justify-content: flex-start;
    padding: 4px;
    border-color: var(--line);
  }

  .customer-app .home-nav button {
    min-width: 76px;
  }

  .customer-app .home-actions {
    order: 2;
  }

  .customer-app .home-actions .button,
  .customer-app .home-actions .user-chip {
    min-height: 42px;
    padding-inline: 14px;
  }

  .customer-app .home-hero {
    min-height: 0;
    margin: 0 auto 58px;
    padding: 46px 4px 0;
    gap: 32px;
  }

  .customer-app .home-hero::before {
    right: -25%;
    bottom: 10%;
    width: 92%;
    height: 42%;
    opacity: 0.55;
  }

  .customer-app .home-hero h1 {
    max-width: 350px;
    font-size: 42px;
    line-height: 1.02;
  }

  .customer-app .home-hero p {
    margin: 20px 0 22px;
    font-size: 16px;
    line-height: 1.68;
  }

  .customer-app .home-hero .button.primary {
    width: 100%;
  }

  .customer-app .home-hero-preview {
    min-height: 390px;
  }

  .customer-app .home-hero-preview::before {
    inset: 8px 0;
    transform: none;
  }

  .customer-app .home-hero-preview::after {
    display: none;
  }

  .customer-app .hero-carousel {
    width: calc(100% - 16px);
    min-height: 370px;
    margin: 0;
    transform: none;
  }

  .customer-app .hero-feature-card {
    min-height: 270px;
  }

  .customer-app .hero-thumb-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .customer-app .hero-carousel-meta {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }

  .customer-app .home-section {
    margin-bottom: 58px;
  }

  .customer-app .home-section-head,
  .customer-app .home-section-actions,
  .customer-app .home-artwork-controls {
    align-items: stretch;
    gap: 12px;
  }

  .customer-app .home-section h2,
  .customer-app .catalog-hero h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .customer-app .home-artwork-controls {
    width: 100%;
  }

  .customer-app .home-artwork-pagination {
    justify-content: space-between;
    width: 100%;
  }

  .customer-app .home-art-wall,
  .customer-app .home-art-wall-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 108px;
    gap: 6px;
    min-height: 0;
  }

  .customer-app .home-art-tile,
  .customer-app .home-art-tile:nth-child(3n + 1),
  .customer-app .home-art-tile:nth-child(4n + 2),
  .customer-app .home-art-tile:nth-child(5n + 4),
  .customer-app .home-art-tile:nth-child(8n + 5) {
    grid-column: span 1;
    grid-row: span 2;
    transform: none;
  }

  .customer-app .home-showcase-grid {
    display: grid;
    grid-auto-columns: min(86vw, 340px);
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 12px;
    padding-bottom: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .customer-app .home-showcase-grid::-webkit-scrollbar {
    display: none;
  }

  .customer-app .home-design-card {
    scroll-snap-align: start;
  }

  .customer-app .catalog-top-meta {
    display: none;
  }

  .customer-app .catalog-hero {
    gap: 22px;
    padding: 44px 2px 26px;
  }

  .customer-app .catalog-search {
    min-height: 0;
    padding: 14px;
  }

  .customer-app .catalog-filter {
    position: sticky;
    top: 116px;
    z-index: 12;
    padding: 10px;
    background: rgba(8, 10, 12, 0.94);
  }

  .customer-app .catalog-filter .filter-label {
    display: none;
  }

  .customer-app .catalog-category-tabs {
    display: flex;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .customer-app .catalog-category-tab {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .customer-app .catalog-results-head {
    align-items: center;
    min-height: 58px;
  }

  .customer-app .catalog-product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .customer-app .catalog-product-card {
    grid-template-rows: 250px auto;
  }

  .customer-app .catalog-product-content {
    padding: 16px;
  }

  .customer-app .editor-progress {
    display: flex;
    margin: 10px 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .customer-app .progress-step {
    flex: 0 0 auto;
  }

  .customer-app .progress-line {
    flex: 0 0 18px;
  }

  .customer-app .studio {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .customer-app .stage-panel {
    order: 1;
    min-height: 0;
    padding: 10px;
  }

  .customer-app .product-panel {
    order: 2;
  }

  .customer-app .edit-panel {
    order: 3;
  }

  .customer-app .product-panel,
  .customer-app .edit-panel {
    display: block;
    max-height: none;
    padding: 12px;
    overflow: visible;
  }

  .customer-app .stage-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    margin-bottom: 10px;
  }

  .customer-app .stage-header h1 {
    font-size: 20px;
  }

  .customer-app .stage-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .customer-app .stage-actions button {
    min-width: 0;
    padding-inline: 6px;
  }

  .customer-app .canvas-shell {
    min-height: 0;
    aspect-ratio: 1;
    padding: 7px;
    overflow: hidden;
  }

  .customer-app #designCanvas {
    width: 100%;
    height: auto;
    max-height: 100%;
  }

  .customer-app .quickbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .customer-app .quickbar .button {
    min-height: 48px;
    padding: 8px;
    white-space: normal;
  }

  .customer-app .category-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .customer-app .editor-product-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .customer-app .editor-product-option {
    min-width: 210px;
  }

  .customer-app .category-tile {
    flex: 0 0 82px;
    min-height: 78px;
  }

  .customer-app .control-grid.two,
  .customer-app .control-grid.three,
  .customer-app .address-region-grid,
  .customer-app .address-contact-grid,
  .customer-app .checkout-region-grid {
    grid-template-columns: 1fr;
  }

  .customer-app .toolbox-header {
    margin-bottom: 10px;
  }

  .customer-app .toolbox-jump {
    position: sticky;
    top: 112px;
    z-index: 18;
    grid-template-columns: repeat(5, minmax(78px, 1fr));
    width: calc(100% + 8px);
    margin-left: -4px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .customer-app .toolbox-jump button {
    min-height: 42px;
  }

  .customer-app .toolbox-jump button.active {
    border-color: var(--green);
    color: #050608;
    background: var(--green);
  }

  .customer-app .edit-panel .tool-section,
  .customer-app .edit-panel .artwork-panel {
    margin-top: 0;
    padding: 12px;
  }

  .customer-app .shape-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-app .shape-button {
    min-height: 96px;
  }

  .customer-app .profile-topbar {
    gap: 10px;
  }

  .customer-app .profile-hero-panel {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
    padding: 18px 14px;
    border-radius: 8px;
  }

  .customer-app .profile-avatar-large {
    width: 68px;
    height: 68px;
  }

  .customer-app .profile-hero-panel h1 {
    font-size: 28px;
  }

  .customer-app .profile-hero-panel > .button,
  .customer-app .profile-social-stats {
    grid-column: 1 / -1;
  }

  .customer-app .profile-social-stats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .customer-app .profile-social-stats button {
    flex: 1 0 76px;
    min-height: 58px;
  }

  .customer-app .profile-space-nav {
    position: sticky;
    top: 112px;
    z-index: 20;
    margin: 10px 0;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 10, 12, 0.94);
  }

  .customer-app .profile-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .customer-app .profile-side-panel,
  .customer-app .profile-card {
    padding: 14px;
    border-radius: 8px;
  }

  .customer-app .address-region-step:not(:last-child)::after {
    display: none;
  }

  .customer-app .profile-order-tabs button {
    min-width: 92px;
  }

  .customer-app .profile-order-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
  }

  .customer-app .profile-order-aside {
    grid-column: 2;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    justify-items: start;
  }

  .customer-app .order-detail-shell {
    width: 100%;
    padding: 12px 12px max(56px, env(safe-area-inset-bottom));
  }

  .customer-app .order-detail-header,
  .customer-app .order-detail-layout {
    grid-template-columns: 1fr;
  }

  .customer-app .order-detail-header {
    align-items: start;
    gap: 12px;
    padding-bottom: 16px;
  }

  .customer-app .order-detail-header h2 {
    font-size: 28px;
  }

  .customer-app .modal {
    align-items: end;
    align-content: end;
    padding: 0;
  }

  .customer-app .modal-dialog,
  .customer-app .auth-dialog,
  .customer-app .cart-dialog,
  .customer-app .checkout-dialog,
  .customer-app .asset-crop-dialog,
  .customer-app .sketch-dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: 0;
    padding: 16px 14px max(18px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    overflow-y: auto;
  }

  .customer-app .modal-actions,
  .customer-app .checkout-add-address-actions,
  .customer-app .profile-inline-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .customer-app .asset-crop-canvas-wrap,
  .customer-app .sketch-canvas-wrap {
    max-width: 100%;
    overflow: auto;
  }

  .customer-app .toast {
    right: 12px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 390px) {
  .customer-app .home-section h2,
  .customer-app .catalog-hero h1 {
    font-size: 32px;
  }

  .customer-app .hero-carousel {
    min-height: 344px;
  }

  .customer-app .home-hero-preview {
    min-height: 360px;
  }

  .customer-app .stage-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-app .stage-actions .icon-button {
    width: 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .customer-app .home-art-tile button:hover,
  .customer-app .home-design-card:hover,
  .customer-app .catalog-product-card:hover {
    box-shadow: inherit;
    transform: none;
  }

  .customer-app button:active,
  .customer-app .button:active,
  .customer-app .user-chip:active {
    transform: scale(0.98);
  }
}

/* Design Lab layout: persistent tool rail, contextual drawer, dominant canvas. */
.customer-app .studio[data-active-tool="productPanel"] .edit-panel {
  display: none;
}

.customer-app .studio[data-active-tool]:not([data-active-tool="productPanel"]) .product-panel {
  display: none;
}

.customer-app .studio[data-active-tool]:not([data-active-tool="productPanel"]) .edit-panel {
  display: block;
}

.customer-app .studio[data-active-tool] .edit-panel > section {
  display: none;
}

.customer-app .studio[data-active-tool="toolUpload"] .edit-panel #toolUpload,
.customer-app .studio[data-active-tool="artworkPanel"] .edit-panel #artworkPanel,
.customer-app .studio[data-active-tool="creatorArtworkPanel"] .edit-panel #creatorArtworkPanel,
.customer-app .studio[data-active-tool="myPanel"] .edit-panel #myPanel,
.customer-app .studio[data-active-tool="contactQrPanel"] .edit-panel #contactQrPanel,
.customer-app .studio[data-active-tool="toolText"] .edit-panel #toolText,
.customer-app .studio[data-active-tool="toolLayer"] .edit-panel #toolLayer,
.customer-app .studio[data-active-tool="toolShape"] .edit-panel #toolShape,
.customer-app .studio[data-active-tool="toolOrder"] .edit-panel #toolOrder {
  display: block;
}

.customer-app .tool-shape .shape-tool {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.customer-app .order-saved-section {
  margin: 12px 0 16px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.customer-app .canvas-zoom-control {
  position: absolute;
  right: 24px;
  bottom: 70px;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 130px 44px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(247, 247, 239, 0.76);
  background: rgba(5, 6, 8, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-weight: 800;
}

.customer-app .canvas-zoom-control input {
  width: 130px;
  min-height: 28px;
  margin: 0;
  accent-color: var(--green);
}

.customer-app .canvas-zoom-control output {
  color: var(--green);
  text-align: right;
}

.customer-app .stage-panel {
  position: relative;
}

.customer-app .canvas-shell {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  overscroll-behavior: contain;
}

.customer-app #designCanvas {
  flex: 0 0 auto;
  max-width: none;
  max-height: none;
  margin: auto;
}

@media (min-width: 821px) {
  .customer-app .editor-shell {
    height: 100dvh;
    padding: 12px;
    overflow: hidden;
  }

  .customer-app .editor-shell .topbar {
    position: relative;
    top: auto;
    width: 100%;
    max-width: none;
    min-height: 62px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border-color: var(--line);
    background: rgba(8, 10, 12, 0.96);
    box-shadow: none;
  }

  .customer-app .editor-progress {
    width: 100%;
    max-width: none;
    min-height: 32px;
    margin: 0 0 8px;
    padding: 0 4px;
  }

  .customer-app .studio {
    display: grid;
    grid-template-columns: 84px 344px minmax(520px, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: none;
    height: calc(100dvh - 134px);
    min-height: 0;
    align-items: stretch;
  }

  .customer-app .studio > .toolbox-jump {
    position: relative;
    top: auto;
    z-index: 4;
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 84px;
    height: 100%;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 14, 17, 0.96);
    box-shadow: none;
    overflow-y: auto;
  }

  .customer-app .studio > .toolbox-jump button {
    display: grid;
    place-items: center;
    flex: 0 0 66px;
    width: 100%;
    min-width: 0;
    min-height: 66px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(247, 247, 239, 0.64);
    background: transparent;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .customer-app .studio > .toolbox-jump button:hover,
  .customer-app .studio > .toolbox-jump button.active {
    border-color: rgba(34, 232, 255, 0.34);
    color: #050608;
    background: var(--green);
  }

  .customer-app .product-panel,
  .customer-app .edit-panel {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 16px;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .customer-app .product-panel .toolbox-header,
  .customer-app .edit-panel .toolbox-header {
    position: sticky;
    top: -16px;
    z-index: 6;
    margin: -16px -16px 16px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(12, 14, 17, 0.98);
  }

  .customer-app .product-panel section,
  .customer-app .edit-panel .tool-section,
  .customer-app .edit-panel .artwork-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .customer-app .edit-panel .tool-section,
  .customer-app .edit-panel .artwork-panel {
    margin: 0;
    padding: 0;
  }

  .customer-app .edit-panel .tool-section + .tool-section,
  .customer-app .edit-panel .tool-section + .artwork-panel,
  .customer-app .edit-panel .artwork-panel + .tool-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .customer-app .stage-panel {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    border-radius: 8px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
  }

  .customer-app .stage-header {
    flex: 0 0 auto;
    min-height: 46px;
    margin-bottom: 8px;
  }

  .customer-app .stage-header h1 {
    font-size: 20px;
  }

  .customer-app .canvas-shell {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .customer-app #designCanvas {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    margin: auto;
  }

  .customer-app .quickbar {
    flex: 0 0 auto;
    gap: 8px;
    margin-top: 8px;
  }

  .customer-app .quickbar .button {
    min-height: 42px;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .customer-app .studio {
    grid-template-columns: 72px 300px minmax(420px, 1fr);
  }

  .customer-app .studio > .toolbox-jump {
    width: 72px;
    padding: 6px;
  }

  .customer-app .studio > .toolbox-jump button {
    flex-basis: 60px;
    min-height: 60px;
    font-size: 11px;
  }
}

@media (max-width: 820px) {
  .customer-app .editor-shell {
    height: auto;
    overflow: visible;
  }

  .customer-app .studio {
    display: flex;
    height: auto;
    min-height: 0;
  }

  .customer-app .studio > .stage-panel {
    order: 1;
  }

  .customer-app .studio > .toolbox-jump {
    position: sticky;
    top: 112px;
    z-index: 20;
    order: 2;
    display: flex;
    width: 100%;
    margin: 0;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 10, 12, 0.96);
    scrollbar-width: none;
  }

  .customer-app .studio > .toolbox-jump button {
    flex: 0 0 auto;
    min-width: 82px;
    min-height: 44px;
  }

  .customer-app .studio > .toolbox-jump button.active {
    border-color: var(--green);
    color: #050608;
    background: var(--green);
  }

  .customer-app .studio > .product-panel,
  .customer-app .studio > .edit-panel {
    order: 3;
    width: 100%;
  }

  .customer-app .product-panel .toolbox-header,
  .customer-app .edit-panel .toolbox-header {
    margin-bottom: 14px;
  }

  .customer-app .studio[data-active-tool] .edit-panel > section {
    display: none;
  }

  .customer-app .studio[data-active-tool="toolUpload"] .edit-panel #toolUpload,
  .customer-app .studio[data-active-tool="artworkPanel"] .edit-panel #artworkPanel,
  .customer-app .studio[data-active-tool="creatorArtworkPanel"] .edit-panel #creatorArtworkPanel,
  .customer-app .studio[data-active-tool="myPanel"] .edit-panel #myPanel,
  .customer-app .studio[data-active-tool="contactQrPanel"] .edit-panel #contactQrPanel,
  .customer-app .studio[data-active-tool="toolText"] .edit-panel #toolText,
  .customer-app .studio[data-active-tool="toolLayer"] .edit-panel #toolLayer,
  .customer-app .studio[data-active-tool="toolShape"] .edit-panel #toolShape,
  .customer-app .studio[data-active-tool="toolOrder"] .edit-panel #toolOrder {
    display: block;
  }

  .customer-app .canvas-zoom-control {
    right: 18px;
    bottom: 126px;
    grid-template-columns: auto minmax(90px, 1fr) 42px;
    width: calc(100% - 36px);
  }

  .customer-app .canvas-zoom-control input {
    width: 100%;
  }
}

/* On-canvas layer controls keep frequent layer actions beside the artwork. */
.customer-app .canvas-layer-panel {
  position: absolute;
  top: 72px;
  left: 24px;
  z-index: 9;
  width: min(320px, calc(100% - 48px));
  max-height: calc(100% - 150px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 6, 8, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.customer-app .canvas-layer-panel.collapsed {
  width: 158px;
}

.customer-app .canvas-layer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 8px;
}

.customer-app .canvas-layer-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.customer-app .canvas-layer-head strong {
  color: #fff;
  font-size: 14px;
}

.customer-app .canvas-layer-head span {
  color: rgba(247, 247, 239, 0.5);
  font-size: 11px;
}

.customer-app .canvas-layer-panel .layer-list {
  max-height: 260px;
  padding-right: 2px;
}

.customer-app .canvas-layer-panel.collapsed .layer-list {
  display: none;
}

.customer-app .canvas-layer-panel .layer-row {
  grid-template-columns: minmax(0, 1fr) repeat(5, 28px);
  gap: 4px;
  min-height: 38px;
  padding: 5px;
}

.customer-app .canvas-layer-panel .layer-name {
  min-height: 28px;
  padding: 0 4px;
}

.customer-app .canvas-layer-panel .mini-button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
}

@media (max-width: 820px) {
  .customer-app .canvas-layer-panel {
    top: 62px;
    left: 12px;
    width: calc(100% - 24px);
    max-height: 190px;
  }

  .customer-app .canvas-layer-panel.collapsed {
    width: 150px;
  }

  .customer-app .canvas-layer-panel .layer-list {
    max-height: 126px;
  }
}

/* Collapsible studio drawers and image-led canvas layers. */
.customer-app .toolbox-collapse {
  margin-top: auto;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: var(--soft) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.customer-app .toolbox-collapse:hover,
.customer-app .toolbox-collapse:focus-visible {
  border-color: var(--cyan) !important;
  color: var(--cyan) !important;
  background: rgba(34, 232, 255, 0.08) !important;
}

.customer-app .canvas-layer-panel {
  width: min(286px, calc(100% - 48px));
  transition: width 180ms ease-out;
}

.customer-app .canvas-layer-panel.collapsed {
  width: 52px;
}

.customer-app .canvas-layer-panel.collapsed .canvas-layer-head {
  justify-content: center;
  margin: 0;
}

.customer-app .canvas-layer-panel.collapsed .canvas-layer-head > div {
  display: none;
}

.customer-app .canvas-layer-panel .layer-row {
  grid-template-columns: 48px repeat(6, 28px);
  gap: 5px;
  min-height: 54px;
}

.customer-app .canvas-layer-panel .layer-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 42px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #e8ebe7;
  overflow: hidden;
}

.customer-app .canvas-layer-panel .layer-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.customer-app .canvas-layer-panel .layer-row.active .layer-thumbnail {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34, 232, 255, 0.16);
}

.customer-app .canvas-layer-panel .visibility-button {
  color: rgba(247, 247, 239, 0.48);
  font-size: 10px;
}

.customer-app .canvas-layer-panel .visibility-button.active {
  border-color: rgba(185, 255, 56, 0.44);
  color: var(--green);
}

.customer-app .text-format-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.customer-app .text-format-button {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: var(--soft);
  background: rgba(5, 6, 8, 0.58);
  font-family: inherit;
  font-size: 18px;
}

.customer-app .text-format-button:hover,
.customer-app .text-format-button.active {
  border-color: var(--cyan);
  color: #050608;
  background: var(--green);
}

.customer-app .text-fill-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1 1 auto;
  min-width: 0;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 6, 8, 0.58);
}

.customer-app .text-fill-switch button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: rgba(247, 247, 239, 0.58);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.customer-app .text-fill-switch button.active {
  color: #050608;
  background: var(--green);
}

.customer-app .text-color-controls.single .field:first-child {
  grid-column: 1 / -1;
}

.customer-app #textGradientAngleField > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.customer-app #textGradientAngleValue {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.customer-app .font-preview {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #101114;
  background-color: #e8ebe7;
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (min-width: 821px) {
  .customer-app .studio {
    transition: grid-template-columns 180ms ease-out;
  }

  .customer-app .studio.toolbox-collapsed {
    grid-template-columns: 84px 0 minmax(520px, 1fr);
  }

  .customer-app .studio.toolbox-collapsed > .product-panel,
  .customer-app .studio.toolbox-collapsed > .edit-panel {
    display: none !important;
  }

  .customer-app .studio > .toolbox-jump .toolbox-collapse {
    flex-basis: 44px;
    min-height: 44px;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .customer-app .studio.toolbox-collapsed {
    grid-template-columns: 72px 0 minmax(420px, 1fr);
  }
}

@media (max-width: 820px) {
  .customer-app .studio > .toolbox-jump .toolbox-collapse {
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0 0 0 auto;
  }

  .customer-app .studio.toolbox-collapsed > .product-panel,
  .customer-app .studio.toolbox-collapsed > .edit-panel {
    display: none !important;
  }

  .customer-app .canvas-layer-panel.collapsed {
    width: 48px;
  }

  .customer-app .canvas-layer-panel .layer-row {
    grid-template-columns: 48px repeat(6, 32px);
  }

  .customer-app .canvas-layer-panel .mini-button {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
}

/* Full discovery surfaces for artwork and completed custom cases. */
.customer-app .application-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(185, 255, 56, 0.32);
  border-radius: 999px;
  color: var(--green);
  background: rgba(5, 6, 8, 0.82);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.customer-app .discovery-page {
  width: min(1600px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 0 72px;
}

.customer-app .discovery-topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 10, 12, 0.95);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
}

.customer-app .discovery-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-app .discovery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 64px 4px 30px;
}

.customer-app .discovery-heading > div {
  max-width: 760px;
}

.customer-app .discovery-heading h1 {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 52px;
  line-height: 1.04;
}

.customer-app .discovery-heading p {
  max-width: 62ch;
  margin: 0;
  color: rgba(247, 247, 239, 0.62);
  line-height: 1.7;
}

.customer-app .discovery-heading > strong {
  color: var(--cyan);
  font-size: 16px;
  white-space: nowrap;
}

.customer-app .discovery-toolbar {
  position: sticky;
  top: 98px;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  margin-bottom: 22px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 12, 15, 0.94);
}

.customer-app .discovery-filter-list {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.customer-app .discovery-filter-list::-webkit-scrollbar {
  display: none;
}

.customer-app .discovery-filter-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(247, 247, 239, 0.68);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.customer-app .discovery-filter-list button strong {
  color: var(--cyan);
  font-size: 11px;
}

.customer-app .discovery-filter-list button:hover,
.customer-app .discovery-filter-list button.active {
  border-color: var(--green);
  color: #050608;
  background: var(--green);
}

.customer-app .discovery-filter-list button.active strong {
  color: #050608;
}

.customer-app .discovery-filter-list button.active .artwork-category-state {
  color: #f7f7ef;
  background: #101715;
}

.customer-app .discovery-sort {
  display: grid;
  grid-template-columns: auto 126px;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: rgba(247, 247, 239, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.customer-app .discovery-sort select {
  width: 126px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--soft);
  background: #0d0f12;
}

.customer-app .discovery-art-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.customer-app .discovery-art-grid .home-art-tile,
.customer-app .discovery-art-grid .home-art-tile:nth-child(n) {
  grid-column: span 1;
  grid-row: auto;
  aspect-ratio: 1;
}

.customer-app .discovery-design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.customer-app .discovery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.customer-app .discovery-pagination button {
  min-width: 92px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.customer-app .discovery-pagination button:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.customer-app .discovery-pagination button:disabled {
  opacity: 0.36;
}

.customer-app .discovery-pagination span {
  color: rgba(247, 247, 239, 0.58);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .customer-app .discovery-art-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .customer-app .discovery-design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .customer-app .discovery-page {
    width: min(100% - 20px, 1600px);
    padding-top: 10px;
  }

  .customer-app .discovery-topbar,
  .customer-app .discovery-heading,
  .customer-app .discovery-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-app .discovery-topbar {
    top: 6px;
  }

  .customer-app .discovery-top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .customer-app .discovery-heading {
    padding: 40px 2px 24px;
  }

  .customer-app .discovery-heading h1 {
    font-size: 38px;
  }

  .customer-app .discovery-toolbar {
    top: 142px;
    gap: 12px;
  }

  .customer-app .discovery-sort {
    grid-template-columns: auto 1fr;
  }

  .customer-app .discovery-sort select {
    width: 100%;
  }

  .customer-app .discovery-art-grid,
  .customer-app .discovery-design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .customer-app .discovery-design-grid .home-design-image {
    min-height: 210px;
  }
}

@media (max-width: 460px) {
  .customer-app .discovery-design-grid {
    grid-template-columns: 1fr;
  }

  .customer-app .home-art-social {
    flex-wrap: wrap;
  }

  .customer-app .application-count {
    min-height: 30px;
  }
}

/* Homepage art exhibition: image-first and distinct from reusable patterns. */
.customer-app .home-exhibition-section .home-section-head p {
  max-width: 58ch;
  margin: 8px 0 0;
  color: rgba(247, 247, 239, 0.58);
  line-height: 1.65;
}

.customer-app .home-exhibition-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.customer-app .home-exhibition-card {
  grid-column: span 4;
  display: grid;
  grid-template-rows: minmax(280px, 38vh) auto;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 14, 17, 0.84);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: border-color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}

.customer-app .home-exhibition-card.featured {
  grid-column: span 8;
  grid-row: span 2;
  grid-template-rows: minmax(520px, 72vh) auto;
}

.customer-app .home-exhibition-card:hover {
  border-color: rgba(34, 232, 255, 0.58);
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.42);
  transform: translateY(-4px);
}

.customer-app .home-exhibition-image {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #111418;
  overflow: hidden;
}

.customer-app .home-exhibition-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.customer-app .home-exhibition-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 12px 14px;
}

.customer-app .home-exhibition-meta > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.customer-app .home-exhibition-meta strong {
  color: var(--soft);
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .home-exhibition-meta span {
  color: rgba(247, 247, 239, 0.52);
  font-size: 11px;
}

.customer-app .home-exhibition-social {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

@media (max-width: 1080px) {
  .customer-app .home-exhibition-card,
  .customer-app .home-exhibition-card.featured {
    grid-column: span 6;
    grid-row: auto;
    grid-template-rows: minmax(340px, 50vh) auto;
  }

  .customer-app .home-exhibition-card.featured {
    grid-column: 1 / -1;
    grid-template-rows: minmax(460px, 62vh) auto;
  }
}

@media (max-width: 680px) {
  .customer-app .home-exhibition-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .customer-app .home-exhibition-card,
  .customer-app .home-exhibition-card.featured {
    grid-column: 1;
    grid-template-rows: minmax(300px, 58vh) auto;
  }

  .customer-app .home-exhibition-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Payment success creator release console. */
.customer-app .payment-success-page {
  min-height: 100vh;
  padding: 18px clamp(16px, 4vw, 64px) 72px;
  color: var(--soft);
  background: #050608;
}

.customer-app .payment-success-topbar {
  position: sticky;
  z-index: 12;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1480px;
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 10, 12, 0.94);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.customer-app .payment-success-intro,
.customer-app .publication-console {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.customer-app .payment-success-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(36px, 7vw, 104px);
  min-height: 560px;
  padding-block: 72px 54px;
}

.customer-app .payment-success-check {
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #050608;
  background: var(--green);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(185, 255, 56, 0.2);
}

.customer-app .payment-success-intro h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--soft);
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.customer-app .payment-success-intro p {
  max-width: 38ch;
  margin: 26px 0 0;
  color: rgba(247, 247, 239, 0.68);
  font-size: 19px;
  line-height: 1.75;
}

.customer-app .payment-success-intro p strong { color: var(--green); }

.customer-app .payment-success-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.customer-app .payment-success-intro-actions .button { min-height: 46px; }

.customer-app .share-earnings-button {
  border-color: rgba(184, 255, 61, 0.58);
  color: #071006;
  background: var(--green);
}

.customer-app .share-earnings-button:hover {
  border-color: var(--cyan);
  background: var(--cyan);
}

.customer-app .payment-share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
  width: min(1180px, 100%);
  margin: 0 auto 52px;
  padding: 42px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.customer-app .payment-share-card[hidden],
.customer-app .publication-console[hidden] { display: none; }

.customer-app .payment-share-copy { min-width: 0; }
.customer-app .payment-share-copy h2 { margin: 0; color: var(--soft); font-size: 34px; }
.customer-app .payment-share-copy > p { max-width: 56ch; margin: 14px 0 0; color: rgba(247, 247, 239, 0.64); line-height: 1.7; }
.customer-app .payment-poster-customizer { display: grid; gap: 12px; margin-top: 24px; max-width: 620px; }
.customer-app .payment-poster-copy-field { display: grid; gap: 8px; }
.customer-app .payment-poster-copy-field > span { color: rgba(247, 247, 239, 0.72); font-size: 13px; font-weight: 700; }
.customer-app .payment-poster-copy-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--soft);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.06);
}
.customer-app .payment-poster-copy-field input:focus { border-color: var(--green); outline: 2px solid rgba(184, 255, 61, 0.16); }
.customer-app .payment-poster-background-row { display: flex; align-items: stretch; gap: 10px; }
.customer-app .payment-poster-background-upload {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding: 9px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  cursor: pointer;
}
.customer-app .payment-poster-background-upload:hover { border-color: rgba(184, 255, 61, 0.68); }
.customer-app .payment-poster-background-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.customer-app .payment-poster-background-upload span { display: grid; gap: 3px; min-width: 0; }
.customer-app .payment-poster-background-upload strong { color: var(--soft); font-size: 13px; }
.customer-app .payment-poster-background-upload small { overflow: hidden; color: rgba(247, 247, 239, 0.48); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .payment-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.customer-app .payment-share-status { min-height: 22px; font-size: 13px; }

.customer-app .payment-share-poster-frame {
  display: grid;
  place-items: center;
  width: min(100%, 380px);
  aspect-ratio: 9 / 16;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #0d1013;
}

.customer-app .payment-share-poster-frame > img { width: 100%; height: 100%; object-fit: contain; }
.customer-app .payment-share-poster-empty { display: grid; place-items: center; gap: 8px; color: rgba(247, 247, 239, 0.7); text-align: center; }
.customer-app .payment-share-poster-empty > span { color: var(--green); font-size: 38px; line-height: 1; }
.customer-app .payment-share-poster-empty small { color: rgba(247, 247, 239, 0.46); }

.customer-app .payment-success-preview {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #101317;
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.48);
}

.customer-app .payment-success-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: contain;
  background: #f2f4ef;
}

.customer-app .payment-success-preview figcaption {
  padding: 14px 2px 2px;
  color: rgba(247, 247, 239, 0.64);
  font-size: 13px;
}

.customer-app .purchase-success-card {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 72px;
  padding: 48px 28px;
  border: 1px solid rgba(184, 255, 61, 0.35);
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(145deg, rgba(184, 255, 61, 0.12), rgba(38, 244, 255, 0.06));
}
.customer-app .purchase-success-card h2 { margin: 20px 0 10px; font-size: clamp(26px, 4vw, 42px); }
.customer-app .purchase-success-card p { margin: 0 auto; max-width: 540px; color: rgba(247, 247, 239, 0.62); line-height: 1.7; }
.customer-app .purchase-success-card .publication-actions { justify-content: center; }

.customer-app .publication-console {
  padding-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.customer-app .publication-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.customer-app .publication-heading h2 { margin: 0; font-size: 34px; }
.customer-app .publication-heading p { margin: 10px 0 0; color: rgba(247, 247, 239, 0.58); }
.customer-app .publication-heading > strong { color: var(--gold); font-size: 22px; }

.customer-app .publication-option {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 17, 20, 0.74);
}

.customer-app .publication-option:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

.customer-app .publication-option-head,
.customer-app .artwork-sale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 104px;
  padding: 22px 24px;
}

.customer-app .publication-option-head > div,
.customer-app .artwork-sale-row > div { display: grid; gap: 8px; }
.customer-app .publication-option-head strong,
.customer-app .artwork-sale-row strong { font-size: 18px; }
.customer-app .publication-option-head span,
.customer-app .artwork-sale-row span { color: rgba(247, 247, 239, 0.58); line-height: 1.6; }

.customer-app .artwork-eligibility-status {
  display: block;
  color: var(--green);
  font-size: 13px;
  line-height: 1.55;
}

.customer-app .artwork-eligibility-status[data-state="blocked"] { color: #ffb6a3; }

.customer-app .switch-control { position: relative; flex: 0 0 auto; width: 56px; height: 32px; }
.customer-app .switch-control input { position: absolute; opacity: 0; pointer-events: none; }
.customer-app .switch-control span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #1a1d21;
  cursor: pointer;
  transition: background 180ms ease-out, border-color 180ms ease-out;
}
.customer-app .switch-control span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f7f7ef;
  transition: transform 180ms ease-out;
}
.customer-app .switch-control input:checked + span { border-color: var(--green); background: var(--green); }
.customer-app .switch-control input:checked + span::after { background: #050608; transform: translateX(24px); }
.customer-app .switch-control input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }

.customer-app .publication-expand {
  padding: 4px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-app .markup-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 14px;
  padding-top: 22px;
}

.customer-app .suffix-input,
.customer-app .prefix-input { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.customer-app .prefix-input { grid-template-columns: auto 1fr; }
.customer-app .suffix-input > span,
.customer-app .prefix-input > span { padding-inline: 12px; color: rgba(247, 247, 239, 0.56); }

.customer-app .income-calculator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.1);
}
.customer-app .income-calculator > div { display: grid; gap: 8px; padding: 22px; background: #0c0e11; }
.customer-app .income-calculator span { color: rgba(247, 247, 239, 0.56); }
.customer-app .income-calculator strong { color: var(--green); font-size: 28px; }
.customer-app .income-calculator p { grid-column: 1 / -1; margin: 0; padding: 13px 18px; color: rgba(247, 247, 239, 0.62); background: #111419; }

.customer-app .original-risk-notice {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(255, 104, 75, 0.46);
  border-radius: 8px;
  background: rgba(255, 104, 75, 0.08);
}
.customer-app .original-risk-notice p { max-width: 76ch; color: rgba(247, 247, 239, 0.7); line-height: 1.7; }
.customer-app .original-risk-notice label { display: flex; gap: 10px; align-items: flex-start; color: var(--soft); line-height: 1.6; }
.customer-app .original-risk-notice input { margin-top: 4px; }

.customer-app .artwork-sale-row { min-height: 90px; margin-top: 18px; padding-inline: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.customer-app .artwork-price-panel { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; align-items: end; gap: 24px; }
.customer-app .artwork-income { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 10px; padding-bottom: 6px; }
.customer-app .artwork-income strong { color: var(--green); font-size: 26px; }
.customer-app .artwork-income small { color: rgba(247, 247, 239, 0.5); }

.customer-app .publication-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; }
.customer-app .publication-actions .button:first-child { min-width: 230px; }

/* Creator artwork exhibition. */
.customer-app .art-exhibition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.customer-app .art-exhibition-entry { min-width: 0; background: #0c0e11; box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3); }
.customer-app .art-exhibition-entry-image { display: block; width: 100%; height: min(58vw, 620px); padding: 0; border: 0; border-radius: 0; background: #13161a; overflow: hidden; }
.customer-app .art-exhibition-entry-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 260ms ease-out; }
.customer-app .art-exhibition-entry:hover .art-exhibition-entry-image img { transform: scale(1.025); }
.customer-app .art-exhibition-entry-info { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 86px; padding: 14px; }
.customer-app .art-exhibition-author,
.customer-app .home-exhibition-author,
.customer-app .artwork-author-button { border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.customer-app .art-exhibition-author { display: flex; align-items: center; gap: 9px; padding: 0; }
.customer-app .art-exhibition-author > span:first-child,
.customer-app .home-exhibition-author > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #252a30; overflow: hidden; }
.customer-app .art-exhibition-author img,
.customer-app .home-exhibition-author img { width: 100%; height: 100%; object-fit: cover; }
.customer-app .art-exhibition-author > span:last-child { display: grid; gap: 2px; }
.customer-app .art-exhibition-author small { color: rgba(247, 247, 239, 0.48); }
.customer-app .art-exhibition-entry-copy { display: grid; gap: 5px; min-width: 0; }
.customer-app .art-exhibition-entry-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .art-exhibition-entry-copy span { color: var(--gold); font-size: 12px; }
.customer-app .home-exhibition-author { display: flex; align-items: center; gap: 7px; width: fit-content; padding: 0; color: rgba(247, 247, 239, 0.66); }
.customer-app .home-exhibition-author > span:first-child { width: 26px; height: 26px; font-size: 10px; }
.customer-app .artwork-author-button { display: flex; width: 100%; }

@media (max-width: 820px) {
  .customer-app .payment-success-topbar,
  .customer-app .publication-heading { align-items: stretch; flex-direction: column; }
  .customer-app .payment-success-intro { grid-template-columns: 1fr; min-height: 0; padding-block: 48px; }
  .customer-app .payment-share-card { grid-template-columns: 1fr; }
  .customer-app .payment-success-intro h1 { font-size: 44px; }
  .customer-app .payment-success-preview { width: min(100%, 460px); }
  .customer-app .art-exhibition-list { grid-template-columns: 1fr; }
  .customer-app .art-exhibition-entry-image { height: min(110vw, 620px); }
}

@media (max-width: 560px) {
  .customer-app .payment-success-page { padding-inline: 10px; }
  .customer-app .payment-success-topbar .button { width: 100%; }
  .customer-app .payment-success-intro h1 { font-size: 38px; }
  .customer-app .payment-success-intro-actions { display: grid; }
  .customer-app .payment-success-intro-actions .button { width: 100%; }
  .customer-app .payment-share-card { padding-block: 30px; }
  .customer-app .payment-share-copy h2 { font-size: 28px; }
  .customer-app .payment-share-actions { display: grid; }
  .customer-app .payment-poster-background-row { display: grid; }
  .customer-app .payment-poster-background-row .button { width: 100%; }
  .customer-app .publication-option-head,
  .customer-app .artwork-sale-row { align-items: flex-start; padding: 18px 14px; }
  .customer-app .publication-expand { padding-inline: 14px; }
  .customer-app .markup-controls,
  .customer-app .income-calculator,
  .customer-app .artwork-price-panel { grid-template-columns: 1fr; }
  .customer-app .income-calculator p { grid-column: 1; }
  .customer-app .artwork-income { grid-template-columns: auto 1fr; }
  .customer-app .artwork-income small { grid-column: 1 / -1; }
  .customer-app .publication-actions { display: grid; }
  .customer-app .art-exhibition-entry-info { grid-template-columns: 1fr auto; }
  .customer-app .art-exhibition-author { grid-column: 1 / -1; }
}

/* Creator inventory management in profile. */
.customer-app .profile-owned-design {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 18px;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
}

.customer-app .profile-owned-design > img {
  width: 124px;
  height: 82px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f7f7ef;
}

.customer-app .profile-owned-design > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.customer-app .profile-owned-design > span strong,
.customer-app .profile-owned-design > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-owned-design > span small { color: rgba(247, 247, 239, 0.54); }

.customer-app .profile-design-card {
  min-height: 0;
}

.customer-app .profile-design-card .profile-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.customer-app .profile-design-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
  justify-self: end;
}

.customer-app .profile-design-actions .mini-button {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

@media (min-width: 821px) {
  .customer-app .catalog-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    max-width: none;
  }

  .customer-app .catalog-account {
    justify-self: end;
    margin-left: 0;
  }
}

.customer-app .creator-artwork-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-app .creator-artwork-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0d1013;
}

.customer-app .creator-artwork-row > button:first-child {
  grid-row: span 2;
  width: 104px;
  height: 104px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #171b20;
  overflow: hidden;
}

.customer-app .creator-artwork-row img { display: block; width: 100%; height: 100%; object-fit: contain; }
.customer-app .creator-artwork-row > div { display: grid; align-content: center; gap: 7px; min-width: 0; }
.customer-app .creator-artwork-row > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .creator-artwork-row > div span { color: rgba(247, 247, 239, 0.54); font-size: 12px; line-height: 1.5; }
.customer-app .creator-artwork-row > .mini-button { justify-self: start; }

.customer-app .creator-manage-dialog { width: min(920px, calc(100vw - 32px)); }
.customer-app .modal-kicker { color: var(--cyan); font-size: 11px; font-weight: 800; }
.customer-app .creator-manage-layout { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr); gap: 26px; margin-top: 20px; }
.customer-app .creator-manage-layout > img { display: block; width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: contain; background: #f2f4ef; }
.customer-app .creator-manage-copy { display: grid; align-content: start; gap: 16px; }
.customer-app .creator-manage-copy h3 { margin: 0; font-size: 25px; }
.customer-app .creator-manage-copy > p { margin: 0; color: rgba(247, 247, 239, 0.56); line-height: 1.6; }
.customer-app .creator-artwork-story-field { gap: 8px; margin: -4px 0 0; }
.customer-app .creator-artwork-story-field textarea {
  width: 100%;
  min-height: 108px;
  padding: 12px 13px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f7f7ef;
  background: rgba(5, 6, 8, 0.58);
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  outline: none;
}
.customer-app .creator-artwork-story-field textarea::placeholder { color: rgba(223, 228, 218, 0.42); }
.customer-app .creator-artwork-story-field textarea:focus {
  border-color: rgba(40, 215, 229, 0.82);
  box-shadow: 0 0 0 3px rgba(40, 215, 229, 0.12);
}
.customer-app .creator-artwork-story-field > small {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: rgba(247, 247, 239, 0.48);
  font-size: 11px;
  line-height: 1.5;
}
.customer-app .creator-artwork-story-field output {
  flex: 0 0 auto;
  color: rgba(40, 215, 229, 0.86);
  font-variant-numeric: tabular-nums;
}
.customer-app .creator-sale-status,
.customer-app .creator-manage-income { display: grid; gap: 7px; padding: 15px; border-radius: 8px; background: #11151a; }
.customer-app .creator-sale-status strong { color: var(--green); }
.customer-app .creator-sale-status span,
.customer-app .creator-manage-income span { color: rgba(247, 247, 239, 0.56); line-height: 1.55; }
.customer-app .creator-manage-income strong { color: var(--gold); font-size: 20px; }
.customer-app .creator-repurchase-box {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(34, 232, 255, 0.24);
  border-radius: 8px;
  background: rgba(34, 232, 255, 0.05);
}
.customer-app .creator-repurchase-box > div:first-child { display: grid; gap: 5px; }
.customer-app .creator-repurchase-box > div:first-child span { color: rgba(247, 247, 239, 0.56); font-size: 12px; }
.customer-app .creator-repurchase-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 0.65fr); gap: 12px; }
.customer-app .creator-repurchase-box .button { width: 100%; min-height: 44px; }
.customer-app #creatorDesignManagePricing { display: grid; gap: 14px; }
.customer-app .creator-manage-modal .danger-button { border-color: rgba(255, 104, 75, 0.54); color: #ff8a72; }

@media (max-width: 760px) {
  .customer-app .creator-artwork-list,
  .customer-app .creator-manage-layout { grid-template-columns: 1fr; }
  .customer-app .creator-manage-layout > img { max-height: 420px; }
}

@media (max-width: 520px) {
  .auth-heading,
  .auth-provider-panel,
  .auth-recovery-panel { padding-left: 18px; padding-right: 18px; }
  .auth-provider-tabs { margin-left: 18px; margin-right: 18px; }
  .auth-form-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .auth-dialog { width: calc(100vw - 16px); border-radius: 14px; }

  .customer-app .profile-owned-design { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .customer-app .profile-owned-design > img { width: 76px; height: 60px; }
  .customer-app .profile-owned-design > .mini-button { grid-column: 1 / -1; width: 100%; }
  .customer-app .profile-design-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; min-width: 0; }
  .customer-app .profile-design-actions .mini-button { min-width: 0; width: 100%; padding-inline: 8px; }
  .customer-app .profile-draft-row { grid-template-columns: 64px minmax(0, 1fr); }
  .customer-app .profile-draft-row img { width: 64px; height: 64px; }
  .customer-app .profile-draft-row > .mini-button { grid-column: 1 / -1; width: 100%; }
  .customer-app .creator-artwork-row { grid-template-columns: 82px minmax(0, 1fr); }
  .customer-app .creator-artwork-row > button:first-child { width: 82px; height: 82px; }
  .customer-app .creator-manage-dialog { width: calc(100vw - 16px); }
  .customer-app .creator-manage-modal .modal-actions { display: grid; }
  .customer-app .creator-artwork-story-field textarea { min-height: 132px; resize: none; font-size: 16px; }
  .customer-app .creator-artwork-story-field > small { gap: 10px; }
  .customer-app .creator-repurchase-controls { grid-template-columns: 1fr 1fr; }
}

/* Final editor layout override. Keep this after the legacy responsive rules. */
@media (min-width: 821px) {
  .customer-app .editor-shell { display: flex; flex-direction: column; height: 100dvh; min-height: 100dvh; padding: 12px 18px 16px; overflow: hidden; }
  .customer-app .editor-shell .topbar { flex: 0 0 auto; min-height: 64px; margin: 0 0 8px; border-radius: 12px; }
  .customer-app .editor-progress { flex: 0 0 30px; margin: 0 auto 8px; }
  .customer-app .studio { display: grid; grid-template-columns: 86px minmax(320px, 390px) minmax(0, 1fr); gap: 12px; flex: 1 1 auto; width: 100%; max-width: none; height: auto; min-height: 0; align-items: stretch; }
  .customer-app .studio > .toolbox-jump { grid-column: 1; grid-row: 1; width: 86px; min-height: 0; border-radius: 12px; background: linear-gradient(180deg, rgba(17,22,23,.98), rgba(9,12,13,.98)); }
  .customer-app .studio > .product-panel,
  .customer-app .studio > .edit-panel { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; max-height: none; border-radius: 12px; }
  .customer-app .studio > .stage-panel { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 12px; overflow: hidden; }
  .customer-app .canvas-shell { position: relative; display: flex; flex: 1 1 auto; min-height: 260px; align-items: center; justify-content: center; padding: clamp(18px,2.2vw,34px); border-radius: 12px; background: linear-gradient(135deg,rgba(40,215,229,.06),transparent 42%), repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 44px), repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 1px,transparent 1px 44px), #111514; overflow: auto; }
  .customer-app #designCanvas { flex: 0 1 auto; width: auto; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
  .customer-app .canvas-layer-panel { position: static; flex: 0 0 auto; width: 100%; max-height: 104px; margin: 10px 0 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,11,12,.94); box-shadow: none; overflow: hidden; }
  .customer-app .canvas-layer-head { min-height: 28px; margin-bottom: 6px; }
  .customer-app .canvas-layer-head > div span { display: none; }
  .customer-app .canvas-layer-panel .layer-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
  .customer-app .canvas-layer-panel .layer-row { flex: 0 0 252px; }
  .customer-app .canvas-zoom-control { position: static; align-self: flex-end; flex: 0 0 auto; width: min(360px,100%); margin: 8px 0 0; }
  .customer-app .quickbar { flex: 0 0 auto; margin-top: 8px; }
}

@media (max-width: 820px) {
  .customer-app .canvas-layer-panel { position: static; width: 100%; margin-top: 10px; }
}

/* WebGL is a preview-only layer. Canvas 2D stays above it for gestures,
   selection controls, print-zone guides and all production rendering. */
.customer-app .webgl-preview-canvas {
  display: block;
  border-radius: 8px;
  background: #ecefeb;
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.customer-app .webgl-preview-canvas[hidden] {
  display: none;
}

.customer-app .canvas-shell.webgl-preview-active #designCanvas {
  position: relative;
  z-index: 2;
  background: transparent;
  box-shadow: none;
}

/* Print-zone workflow: operation data drives the editable and billable canvas regions. */
.customer-app .print-area-toolbar {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(214px, 0.62fr) minmax(0, 1.38fr);
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0 0 8px;
  padding: 9px;
  border: 1px solid rgba(40, 215, 229, 0.22);
  border-radius: 8px;
  background: #0b1011;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.customer-app .print-area-toolbar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-app .print-area-toolbar-head > div {
  display: grid;
  gap: 1px;
  min-width: 0;
  margin-right: auto;
}

.customer-app .print-area-toolbar-head span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
}

.customer-app .print-area-toolbar-head strong { color: #f7f7ef; font-size: 14px; }
.customer-app .print-area-toolbar-head small {
  overflow: hidden;
  color: rgba(247, 247, 239, 0.5);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .print-area-toolbar .button.compact {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.customer-app .print-area-list {
  display: flex;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.customer-app .print-area-empty {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 260px;
  padding: 2px 10px;
  color: rgba(247, 247, 239, 0.48);
}

.customer-app .print-area-empty strong { color: rgba(247, 247, 239, 0.78); font-size: 12px; }
.customer-app .print-area-empty span { font-size: 10px; }

.customer-app .print-area-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  flex: 0 0 264px;
  min-width: 0;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #111617;
  overflow: hidden;
  transition: border-color 180ms ease-out, background 180ms ease-out, transform 180ms ease-out;
}

.customer-app .print-area-chip:hover { transform: translateY(-1px); border-color: rgba(40, 215, 229, 0.42); }
.customer-app .print-area-chip.active {
  border-color: var(--cyan);
  background: rgba(40, 215, 229, 0.08);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.24);
}

.customer-app .print-area-select {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-content: center;
  gap: 0 8px;
  min-width: 0;
  padding: 7px 5px 7px 9px;
  border: 0;
  color: #f7f7ef;
  background: transparent;
  text-align: left;
}

.customer-app .print-area-select > span {
  grid-row: span 2;
  align-self: center;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 900;
}

.customer-app .print-area-select strong,
.customer-app .print-area-select small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .print-area-select strong { font-size: 12px; }
.customer-app .print-area-select small { color: rgba(247, 247, 239, 0.5); font-size: 9px; }
.customer-app .print-area-price { align-self: center; color: var(--green); font-size: 13px; }
.customer-app .print-area-remove {
  width: 26px;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(247, 247, 239, 0.46);
  background: transparent;
}
.customer-app .print-area-remove:hover,
.customer-app .print-area-remove:focus-visible { color: #ff8a72; background: rgba(255, 104, 75, 0.1); }

.customer-app .print-area-create {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(340px, 1.28fr) auto;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(40, 215, 229, 0.4);
  border-radius: 8px;
  background: rgba(8, 12, 13, 0.98);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.46);
}

.customer-app .print-area-create[hidden] { display: none; }
.customer-app .print-area-create-step { display: grid; align-content: start; gap: 8px; min-width: 0; }
.customer-app .print-area-create-step > span { color: rgba(247, 247, 239, 0.54); font-size: 10px; font-weight: 900; }
.customer-app .print-area-process-options,
.customer-app .print-area-tier-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.customer-app .print-area-process,
.customer-app .print-area-tier {
  min-width: 0;
  min-height: 62px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #f7f7ef;
  background: #121718;
  text-align: left;
}
.customer-app .print-area-process { display: grid; align-content: center; gap: 3px; }
.customer-app .print-area-process span { color: rgba(247, 247, 239, 0.48); font-size: 10px; }
.customer-app .print-area-tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
.customer-app .print-area-tier > span { grid-column: 1 / -1; color: rgba(247, 247, 239, 0.54); font-size: 10px; }
.customer-app .print-area-tier strong { font-size: 15px; }
.customer-app .print-area-tier strong small { margin-left: 2px; color: rgba(247, 247, 239, 0.48); font-size: 9px; }
.customer-app .print-area-tier em { align-self: end; color: var(--green); font-size: 14px; font-style: normal; font-weight: 900; }
.customer-app .print-area-process:hover,
.customer-app .print-area-tier:hover { border-color: rgba(40, 215, 229, 0.44); }
.customer-app .print-area-process.active,
.customer-app .print-area-tier.active { border-color: var(--cyan); background: rgba(40, 215, 229, 0.09); }
.customer-app .print-area-tier:disabled {
  border-color: rgba(255, 255, 255, 0.07);
  color: rgba(247, 247, 239, 0.42);
  background: rgba(255, 255, 255, 0.025);
  cursor: not-allowed;
}
.customer-app .print-area-tier:disabled em { color: var(--coral); font-size: 10px; }
.customer-app .print-area-create-actions { display: grid; align-content: end; gap: 7px; min-width: 138px; }

.customer-app .layer-zone-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 16px;
  padding: 0 3px;
  border-radius: 4px;
  color: #061012;
  background: var(--cyan);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .customer-app .print-area-toolbar { grid-template-columns: 1fr; }
  .customer-app .print-area-toolbar-head { padding-right: 0; padding-bottom: 8px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .customer-app .print-area-create { grid-template-columns: 1fr; }
  .customer-app .print-area-create-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .customer-app .print-area-toolbar { margin-top: 4px; }
  .customer-app .print-area-toolbar-head small { display: none; }
  .customer-app .print-area-chip { flex-basis: 246px; }
  .customer-app .print-area-create { position: static; grid-column: 1 / -1; margin-top: 2px; box-shadow: none; }
  .customer-app .print-area-process-options,
  .customer-app .print-area-tier-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .customer-app .print-area-toolbar-head { align-items: flex-start; }
  .customer-app .print-area-toolbar-head > div { margin-top: 3px; }
  .customer-app .print-area-process-options,
  .customer-app .print-area-tier-options { grid-template-columns: 1fr; }
}

/* Keep print zones available without stealing the canvas height. */
.customer-app .stage-panel,
.customer-app .stage-header { overflow: visible; }

.customer-app .print-area-toolbar {
  position: relative;
  z-index: 30;
  display: block;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin: 0 auto 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customer-app .print-area-menu-trigger {
  display: grid;
  grid-template-columns: auto auto 22px;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  max-width: 220px;
  padding: 0 7px 0 11px;
  border: 1px solid rgba(40, 215, 229, 0.34);
  border-radius: 8px;
  color: #f7f7ef;
  background: rgba(40, 215, 229, 0.07);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.customer-app .print-area-menu-trigger:hover,
.customer-app .print-area-menu-trigger[aria-expanded="true"] {
  border-color: var(--cyan);
  background: rgba(40, 215, 229, 0.13);
  transform: translateY(-1px);
}

.customer-app .print-area-menu-trigger > span {
  display: block;
  margin: 0;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.customer-app .print-area-menu-trigger > strong {
  overflow: hidden;
  color: rgba(247, 247, 239, 0.7);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .print-area-menu-trigger > i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(161, 255, 46, 0.56);
  border-radius: 50%;
  color: var(--green);
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.customer-app .print-area-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(720px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  padding: 14px;
  border: 1px solid rgba(40, 215, 229, 0.42);
  border-radius: 10px;
  background: rgba(8, 12, 13, 0.98);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.customer-app .print-area-popover[hidden] { display: none; }

.customer-app .print-area-popover .print-area-toolbar-head {
  padding: 0 0 10px;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-app .print-area-popover .print-area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 180px;
  overflow: auto;
}

.customer-app .print-area-popover .print-area-chip {
  width: 100%;
  flex: initial;
}

.customer-app .print-area-popover .print-area-empty {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 10px;
}

.customer-app .print-area-popover .print-area-create {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  grid-template-columns: minmax(180px, 0.8fr) minmax(300px, 1.2fr) auto;
  width: auto;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.customer-app .print-area-popover .print-area-create[hidden] { display: none; }

@media (max-width: 820px) {
  .customer-app .stage-header { flex-wrap: wrap; gap: 8px; }
  .customer-app .print-area-toolbar { order: 3; flex-basis: auto; }
  .customer-app .print-area-popover {
    position: fixed;
    top: 102px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 120px);
    overflow: auto;
  }
  .customer-app .print-area-popover .print-area-create { grid-template-columns: 1fr; }
  .customer-app .print-area-popover .print-area-create-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .customer-app .print-area-menu-trigger { max-width: 190px; }
  .customer-app .print-area-popover .print-area-list { grid-template-columns: 1fr; }
  .customer-app .print-area-popover .print-area-empty { grid-column: auto; }
  .customer-app .print-area-popover .print-area-create-actions { grid-template-columns: 1fr; }
}

/* Keep print-zone selection above the editor canvas on every viewport. */
.customer-app .print-area-popover {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  z-index: 1200 !important;
  box-sizing: border-box;
  width: min(720px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(760px, calc(100dvh - 32px)) !important;
  transform: translate(-50%, -50%) !important;
  overflow-y: auto !important;
}

/* Checkout is a two-column confirmation surface: all design positions stay
   visible beside the order and payment information. */
.customer-app .checkout-dialog {
  grid-template-columns: minmax(300px, 0.92fr) minmax(380px, 1.08fr);
  grid-template-rows: auto;
  grid-auto-rows: auto;
  align-content: start;
  width: min(1120px, calc(100vw - 32px));
  max-height: min(92dvh, 900px);
  overflow-y: auto;
}

.customer-app .checkout-dialog > .section-title-row {
  grid-column: 1 / -1;
  grid-row: 1;
}

.customer-app .checkout-preview-panel {
  display: grid;
  grid-column: 1;
  grid-row: 2 / span 6;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(38, 244, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(38, 244, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.customer-app .checkout-preview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-app .checkout-preview-head > div {
  display: grid;
  gap: 3px;
}

.customer-app .checkout-preview-head span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.customer-app .checkout-preview-head strong {
  color: var(--soft);
  font-size: 17px;
}

.customer-app .checkout-preview-head small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.customer-app .checkout-preview-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  max-height: 680px;
  overflow-y: auto;
}

.customer-app .checkout-preview-card {
  display: grid;
  align-content: start;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(7, 10, 11, 0.84);
}

.customer-app .checkout-preview-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  background: #e9ece9;
}

.customer-app .checkout-preview-image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.customer-app .checkout-preview-card figcaption {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px 9px;
}

.customer-app .checkout-preview-card figcaption strong,
.customer-app .checkout-preview-card figcaption span,
.customer-app .checkout-preview-card figcaption small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .checkout-preview-card figcaption strong {
  color: var(--cyan);
  font-size: 12px;
}

.customer-app .checkout-preview-card figcaption span,
.customer-app .checkout-preview-card figcaption small {
  color: var(--muted);
  font-size: 10px;
}

.customer-app .checkout-dialog > .order-summary {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  max-height: 360px;
  margin: 0;
  overflow-y: auto;
}

.customer-app .checkout-dialog > .checkout-address-panel {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
}

.customer-app .checkout-dialog > .checkout-refund-notice {
  grid-column: 2;
  grid-row: 4;
  margin: 0;
}

.customer-app .checkout-dialog > .checkout-payment-method {
  grid-column: 2;
  grid-row: 5;
  margin: 0;
}

.customer-app .checkout-dialog > #payBtn {
  grid-column: 2;
  grid-row: 6;
  position: static;
  width: 100%;
  margin: 0;
}

@media (max-width: 820px) {
  .customer-app .checkout-dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 92dvh;
  }

  .customer-app .checkout-dialog > .section-title-row {
    grid-column: 1;
    grid-row: 1;
  }

  .customer-app .checkout-preview-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .customer-app .checkout-dialog > .order-summary {
    grid-column: 1;
    grid-row: 3;
    max-height: none;
  }

  .customer-app .checkout-dialog > .checkout-address-panel {
    grid-column: 1;
    grid-row: 4;
  }

  .customer-app .checkout-dialog > .checkout-refund-notice {
    grid-column: 1;
    grid-row: 5;
  }

  .customer-app .checkout-dialog > .checkout-payment-method {
    grid-column: 1;
    grid-row: 6;
  }

  .customer-app .checkout-dialog > #payBtn {
    grid-column: 1;
    grid-row: 7;
  }
}

@media (max-width: 520px) {
  .customer-app .checkout-preview-gallery {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

.customer-app .weidian-status-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid rgba(38, 244, 255, 0.28);
  background:
    radial-gradient(circle at 20% 0%, rgba(174, 255, 45, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(8, 16, 17, 0.98), rgba(4, 6, 8, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.customer-app .weidian-status-signal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: rgba(38, 244, 255, 0.1);
  border: 1px solid rgba(38, 244, 255, 0.28);
}

.customer-app .weidian-status-signal span {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(174, 255, 45, 0.22);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: weidian-spin 0.9s linear infinite;
}

.customer-app .weidian-status-signal.paid span {
  width: 34px;
  height: 18px;
  border: 0;
  border-left: 5px solid var(--green);
  border-bottom: 5px solid var(--green);
  border-radius: 0;
  transform: rotate(-45deg);
  animation: none;
}

.customer-app .weidian-status-signal.failed span {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: #ff5c45;
  transform: rotate(45deg);
  animation: none;
}

.customer-app .weidian-status-copy { display: grid; gap: 10px; }
.customer-app .weidian-status-copy > span { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }
.customer-app .weidian-status-copy h2 { margin: 0; color: var(--soft); font-size: 32px; }
.customer-app .weidian-status-copy p { margin: 0; color: var(--muted); line-height: 1.7; }
.customer-app .weidian-status-copy strong { color: var(--green); font-size: 14px; }
.customer-app .weidian-status-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.customer-app .weidian-status-actions .button { flex: 1 1 150px; }
.customer-app .checkout-payment-method small { color: var(--muted); font-size: 11px; line-height: 1.5; }
@keyframes weidian-spin { to { transform: rotate(360deg); } }

/* Profile workspace: a compact creator dashboard, with the existing sections kept intact. */
.customer-app .profile-page {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  max-width: none;
  padding: 28px clamp(18px, 4vw, 64px) 80px;
  overflow: hidden;
  color: var(--soft);
  background-color: #050608;
  background-image:
    linear-gradient(90deg, rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.74) 48%, rgba(5, 6, 8, 0.88)),
    var(--profile-background-image, none),
    radial-gradient(circle at 82% 8%, rgba(40, 215, 229, 0.15), transparent 30%),
    radial-gradient(circle at 8% 32%, rgba(255, 104, 75, 0.1), transparent 25%);
  background-position: center, center, center, center;
  background-size: cover, cover, auto, auto;
  background-attachment: fixed;
}

.customer-app .profile-page::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 6, 7, 0.18);
  content: "";
  pointer-events: none;
}

.customer-app .profile-page > * {
  position: relative;
  z-index: 1;
}

.customer-app .profile-topbar,
.customer-app .profile-hero-panel,
.customer-app .profile-layout {
  width: min(100%, 1560px);
  max-width: 1560px;
  margin-right: auto;
  margin-left: auto;
}

.customer-app .profile-topbar {
  min-height: 78px;
  padding: 10px 16px;
  border: 1px solid rgba(240, 246, 240, 0.16);
  border-radius: 10px;
  background: rgba(7, 9, 10, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.customer-app .profile-topbar .catalog-brand {
  min-width: 220px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customer-app .profile-top-actions {
  justify-content: flex-end;
}

.customer-app .profile-hero-panel {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 14px 22px;
  align-items: center;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid rgba(184, 255, 61, 0.48);
  border-radius: 10px;
  background:
    linear-gradient(110deg, rgba(10, 21, 20, 0.92), rgba(9, 14, 15, 0.76) 54%, rgba(5, 7, 8, 0.88)),
    rgba(9, 13, 14, 0.9);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.customer-app .profile-avatar-large {
  grid-row: 1 / span 2;
  width: 112px;
  height: 112px;
  border: 5px solid rgba(184, 255, 61, 0.74);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(184, 255, 61, 0.08), 0 20px 55px rgba(184, 255, 61, 0.16);
}

.customer-app .profile-identity {
  min-width: 0;
}

.customer-app .profile-identity-kicker,
.customer-app .profile-panel-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.customer-app .profile-hero-panel h1 {
  margin: 0;
  color: var(--soft);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.customer-app .profile-hero-panel p {
  max-width: 70ch;
  margin: 8px 0 0;
  color: rgba(217, 221, 215, 0.66);
}

.customer-app .profile-hero-panel .profile-bio-summary {
  max-width: 56ch;
  margin-top: 12px;
  color: rgba(247, 247, 239, 0.86);
  font-size: 14px;
  line-height: 1.6;
}

.customer-app .profile-hero-panel .profile-bio-summary.empty {
  color: rgba(217, 221, 215, 0.38);
}

.customer-app .profile-hero-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-self: start;
}

.customer-app .profile-cover-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(40, 215, 229, 0.38);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(40, 215, 229, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.customer-app .profile-cover-button:hover,
.customer-app .profile-cover-button:focus-within {
  border-color: var(--cyan);
  background: rgba(40, 215, 229, 0.16);
}

.customer-app .profile-cover-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.customer-app .profile-cover-input { display: none; }

.customer-app .profile-social-stats {
  grid-column: 2 / -1;
  grid-row: 2;
  width: min(100%, 760px);
  margin-top: 4px;
}

.customer-app .profile-social-stats button {
  min-height: 70px;
  border-color: rgba(240, 246, 240, 0.14);
  border-radius: 8px;
  background: rgba(4, 6, 7, 0.42);
}

.customer-app .profile-social-stats button:hover,
.customer-app .profile-social-stats button.active {
  border-color: var(--cyan);
  background: rgba(40, 215, 229, 0.1);
}

.customer-app .profile-space-nav {
  display: flex;
  width: min(100%, 1560px);
  max-width: 1560px;
  margin: 14px auto 18px;
  padding: 6px;
  gap: 5px;
  border: 1px solid rgba(240, 246, 240, 0.14);
  border-radius: 10px;
  background: rgba(7, 9, 10, 0.78);
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(18px);
}

.customer-app .profile-space-nav::-webkit-scrollbar { display: none; }

.customer-app .profile-space-nav button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(217, 221, 215, 0.62);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.customer-app .profile-space-nav button:hover,
.customer-app .profile-space-nav button.active {
  border-color: rgba(184, 255, 61, 0.56);
  color: var(--green);
  background: rgba(184, 255, 61, 0.08);
}

.customer-app .profile-layout {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.82fr);
  gap: 18px;
  align-items: start;
}

.customer-app .profile-side-panel,
.customer-app .profile-card {
  border-color: rgba(240, 246, 240, 0.14);
  border-radius: 9px;
  background: rgba(9, 12, 13, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.customer-app .profile-side-panel {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.customer-app .profile-panel-head {
  align-items: flex-start;
}

.customer-app .profile-side-panel h2,
.customer-app .profile-card h2 {
  font-size: 19px;
  line-height: 1.2;
}

.customer-app .profile-info-list { gap: 7px; }

.customer-app .profile-info-row {
  min-width: 0;
  padding: 12px 13px;
  border-color: rgba(240, 246, 240, 0.12);
  border-radius: 7px;
  background: rgba(3, 5, 6, 0.42);
}

.customer-app .profile-info-row strong {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.customer-app .profile-edit-panel,
.customer-app .profile-address-editor {
  padding: 14px;
  border-radius: 8px;
  background: rgba(3, 5, 6, 0.68);
}

.customer-app .profile-edit-panel .field,
.customer-app .profile-address-editor .field {
  gap: 7px;
}

.customer-app .profile-edit-panel .field > span,
.customer-app .profile-address-editor .field > span {
  color: rgba(217, 221, 215, 0.66);
  font-size: 12px;
  font-weight: 900;
}

.customer-app .profile-page input,
.customer-app .profile-page select,
.customer-app .profile-page textarea {
  min-height: 42px;
  border-color: rgba(240, 246, 240, 0.18);
  border-radius: 7px;
  color: var(--soft);
  background: rgba(12, 16, 17, 0.9);
  color-scheme: dark;
}

.customer-app .profile-page input:focus,
.customer-app .profile-page select:focus,
.customer-app .profile-page textarea:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(40, 215, 229, 0.16);
  outline-offset: 1px;
}

.customer-app .profile-page input[readonly] {
  color: rgba(217, 221, 215, 0.46);
  background: rgba(12, 16, 17, 0.56);
}

.customer-app .profile-page textarea { min-height: 78px; }

.customer-app .profile-main-panel { min-width: 0; }

.customer-app .profile-card { padding: 20px; }

.customer-app .profile-section-head span {
  color: rgba(217, 221, 215, 0.5);
  line-height: 1.5;
}

.customer-app .profile-address-row,
.customer-app .profile-page .profile-row {
  border-color: rgba(240, 246, 240, 0.13);
  border-radius: 8px;
  background: rgba(3, 5, 6, 0.42);
}

.customer-app .profile-page .profile-row:hover,
.customer-app .profile-address-row:hover {
  border-color: rgba(40, 215, 229, 0.72);
  background: rgba(40, 215, 229, 0.07);
}

.customer-app .profile-design-row {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  min-height: 92px;
}

.customer-app .profile-design-row img,
.customer-app .profile-order-row img {
  border-radius: 7px;
}

.customer-app .profile-design-actions {
  max-width: 300px;
}

.customer-app .profile-page .mini-button {
  min-height: 36px;
  border-color: rgba(240, 246, 240, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(4, 6, 7, 0.66);
}

.customer-app .profile-page .mini-button:hover { border-color: var(--cyan); color: var(--soft); }

@media (max-width: 820px) {
  .customer-app .profile-page {
    padding: 12px 12px max(64px, env(safe-area-inset-bottom));
    background-attachment: scroll;
  }

  .customer-app .profile-topbar {
    gap: 8px;
    padding: 10px;
  }

  .customer-app .profile-topbar .catalog-brand { min-width: 0; }

  .customer-app .profile-hero-panel {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 12px;
    margin-top: 12px;
    padding: 18px 14px;
  }

  .customer-app .profile-avatar-large {
    grid-row: 1;
    width: 72px;
    height: 72px;
    border-width: 3px;
  }

  .customer-app .profile-identity-kicker { font-size: 9px; }
  .customer-app .profile-hero-panel h1 { font-size: 30px; }
  .customer-app .profile-hero-panel p { font-size: 12px; }
  .customer-app .profile-hero-panel .profile-bio-summary { font-size: 13px; }

  .customer-app .profile-hero-tools {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .customer-app .profile-social-stats {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    overflow-x: auto;
  }

  .customer-app .profile-social-stats button { flex: 1 0 78px; }
  .customer-app .profile-space-nav { margin-top: 10px; }
  .customer-app .profile-layout { grid-template-columns: 1fr; gap: 12px; }
  .customer-app .profile-side-panel { position: static; }
  .customer-app .profile-card { padding: 14px; }
  .customer-app .profile-design-row { grid-template-columns: 68px minmax(0, 1fr); }
  .customer-app .profile-design-actions { grid-column: 2; max-width: none; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .customer-app .profile-hero-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .customer-app .profile-hero-tools > * { width: 100%; min-width: 0; padding-inline: 10px; }
  .customer-app .profile-hero-tools > .button:first-child { grid-column: 1 / -1; }
  .customer-app .profile-section-head { align-items: flex-start; }
  .customer-app .profile-section-head > div { min-width: 0; }
  .customer-app .profile-order-row { grid-template-columns: 60px minmax(0, 1fr); }
}

/* Profile cockpit replica pass: same spatial composition as the supplied reference. */
.customer-app .profile-page {
  min-height: 100dvh;
  padding: 8px clamp(10px, 2vw, 26px) 34px;
  background-color: #08100f;
  background-image:
    linear-gradient(90deg, rgba(5, 8, 8, 0.91) 0%, rgba(5, 8, 8, 0.55) 38%, rgba(4, 8, 8, 0.82) 100%),
    var(--profile-background-image, none),
    radial-gradient(circle at 18% 42%, rgba(40, 215, 229, 0.19), transparent 28%),
    radial-gradient(circle at 72% 5%, rgba(184, 255, 61, 0.15), transparent 24%);
  background-position: center, center, center, center;
  background-size: cover, cover, auto, auto;
}

.customer-app .profile-page::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-radial-gradient(circle at 14% 36%, rgba(184, 255, 61, 0.08) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%);
  opacity: 0.72;
  content: "";
  pointer-events: none;
}

.customer-app .profile-topbar {
  width: min(100%, 1560px);
  min-height: 44px;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-color: rgba(184, 255, 61, 0.18);
  border-radius: 6px;
  background: rgba(7, 11, 11, 0.54);
  box-shadow: none;
}

.customer-app .profile-topbar .catalog-brand { min-height: 38px; }
.customer-app .profile-topbar .brand-mark { width: 28px; height: 28px; border-radius: 6px; }
.customer-app .profile-topbar strong { font-size: 13px; }
.customer-app .profile-topbar span { display: none; }
.customer-app .profile-top-actions .button { min-height: 28px; padding: 0 12px; font-size: 11px; }
.customer-app .profile-top-actions .button.primary { min-height: 30px; }

.customer-app .profile-hero-panel {
  width: min(100%, 920px);
  min-height: 136px;
  margin: 0 auto 8px;
  padding: 14px 18px;
  grid-template-columns: 108px minmax(0, 1fr) 220px;
  gap: 16px;
  border-color: rgba(184, 255, 61, 0.38);
  border-radius: 7px;
  background:
    linear-gradient(96deg, rgba(19, 46, 41, 0.86), rgba(7, 13, 13, 0.72) 58%, rgba(8, 12, 12, 0.82)),
    rgba(8, 12, 12, 0.74);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.28);
}

.customer-app .profile-avatar-large {
  width: 96px;
  height: 96px;
  border-width: 4px;
  box-shadow: 0 0 0 5px rgba(184, 255, 61, 0.08);
}

.customer-app .profile-identity-kicker {
  margin-bottom: 4px;
  color: rgba(184, 255, 61, 0.86);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.customer-app .profile-hero-panel h1 { font-size: 30px; }
.customer-app .profile-hero-panel p { margin-top: 5px; font-size: 12px; line-height: 1.35; }
.customer-app .profile-hero-panel .profile-bio-summary { max-width: 50ch; margin-top: 8px; font-size: 11px; line-height: 1.45; }
.customer-app .profile-hero-tools { align-content: start; justify-content: end; }
.customer-app .profile-hero-tools .button,
.customer-app .profile-cover-button { min-height: 28px; padding: 0 11px; font-size: 10px; }

.customer-app .profile-social-stats {
  grid-column: 2 / span 2;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.customer-app .profile-social-stats button { min-height: 42px; padding: 6px 8px; border-radius: 6px; }
.customer-app .profile-social-stats strong { font-size: 15px; }
.customer-app .profile-social-stats span { font-size: 9px; }

.customer-app .profile-workspace {
  display: grid;
  width: min(100%, 1260px);
  margin: 0 auto;
  grid-template-columns: 44px 210px minmax(0, 1fr) 260px;
  gap: 8px;
  align-items: start;
}

.customer-app .profile-layout,
.customer-app .profile-main-panel { display: contents; }

.customer-app .profile-space-nav {
  position: sticky;
  top: 10px;
  grid-column: 1;
  width: 44px;
  max-width: 44px;
  margin: 0;
  padding: 5px;
  display: grid;
  gap: 6px;
  border-radius: 6px;
  background: rgba(8, 14, 14, 0.74);
}

.customer-app .profile-space-nav button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 5px;
  font-size: 0;
}

.customer-app .profile-space-nav button::before {
  display: block;
  color: rgba(217, 221, 215, 0.76);
  font-size: 15px;
  font-weight: 900;
}

.customer-app .profile-space-nav button[data-profile-section="designs"]::before { content: "⌂"; }
.customer-app .profile-space-nav button[data-profile-section="favorites"]::before { content: "♡"; }
.customer-app .profile-space-nav button[data-profile-section="liked"]::before { content: "✓"; }
.customer-app .profile-space-nav button[data-profile-section="following"]::before { content: "+"; }
.customer-app .profile-space-nav button[data-profile-section="artworks"]::before { content: "□"; }
.customer-app .profile-space-nav button[data-profile-section="info"]::before { content: "i"; }
.customer-app .profile-space-nav button[data-profile-section="addresses"]::before { content: "⌖"; }
.customer-app .profile-space-nav button[data-profile-section="orders"]::before { content: "↗"; }
.customer-app .profile-space-nav button.active { background: rgba(184, 255, 61, 0.16); border-color: rgba(184, 255, 61, 0.48); }
.customer-app .profile-space-nav button.active::before { color: var(--green); }

.customer-app .profile-side-panel {
  grid-column: 2;
  width: 210px;
  position: sticky;
  top: 62px;
  padding: 10px;
}

.customer-app .profile-card {
  grid-column: 3 / 5;
  padding: 10px;
}

.customer-app .profile-dashboard .profile-design-card { grid-column: 3; grid-row: 1 / span 2; }
.customer-app .profile-dashboard .profile-address-card { grid-column: 4; grid-row: 1; }

.customer-app .profile-side-panel,
.customer-app .profile-card {
  border-radius: 6px;
  border-color: rgba(184, 255, 61, 0.22);
  background: rgba(8, 13, 13, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px rgba(0, 0, 0, 0.18);
}

.customer-app .profile-panel-head,
.customer-app .profile-section-head { gap: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(240, 246, 240, 0.1); }
.customer-app .profile-panel-head h2,
.customer-app .profile-section-head h2 { font-size: 14px; line-height: 1.15; }
.customer-app .profile-panel-kicker { margin-bottom: 3px; font-size: 8px; letter-spacing: 0.08em; }
.customer-app .profile-panel-head .button,
.customer-app .profile-section-head .button { min-height: 26px; padding: 0 10px; font-size: 10px; }
.customer-app .profile-info-list { gap: 4px; }
.customer-app .profile-info-row { padding: 7px 8px; border: 0; border-bottom: 1px solid rgba(240, 246, 240, 0.08); border-radius: 0; background: transparent; }
.customer-app .profile-info-row span { font-size: 8px; }
.customer-app .profile-info-row strong { font-size: 10px; line-height: 1.35; }
.customer-app .profile-edit-panel,
.customer-app .profile-address-editor { max-height: 58vh; overflow: auto; padding: 9px; gap: 8px; }
.customer-app .profile-page input,
.customer-app .profile-page select,
.customer-app .profile-page textarea { min-height: 34px; font-size: 12px; }
.customer-app .profile-page textarea { min-height: 58px; }

.customer-app .profile-address-row,
.customer-app .profile-page .profile-row { padding: 8px; border-radius: 6px; }
.customer-app .profile-address-row { grid-template-columns: 1fr; }
.customer-app .profile-address-row .profile-row-actions { justify-content: flex-start; }
.customer-app .profile-page .mini-button { min-height: 28px; padding: 0 9px; font-size: 10px; }

.customer-app .profile-design-card .profile-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  counter-reset: profileDesign;
}

.customer-app .profile-design-row {
  position: relative;
  display: grid;
  min-height: 188px;
  padding: 8px;
  grid-template-columns: 1fr;
  grid-template-rows: 96px auto 1fr;
  gap: 7px;
  overflow: hidden;
  counter-increment: profileDesign;
}

.customer-app .profile-design-row::before {
  position: absolute;
  top: 7px;
  left: 8px;
  z-index: 2;
  color: rgba(247, 247, 239, 0.78);
  font-size: 11px;
  font-weight: 900;
  content: counter(profileDesign) ".";
}

.customer-app .profile-design-row img { width: 100%; height: 96px; border-radius: 5px; object-fit: cover; }
.customer-app .profile-completed-placeholder {
  display: grid;
  width: 100%;
  height: 96px;
  place-items: center;
  border-radius: 5px;
  color: rgba(247, 247, 239, 0.66);
  background: rgba(247, 247, 239, 0.06);
  font-size: 11px;
  font-weight: 850;
}
.customer-app .profile-design-row > span strong { font-size: 10px; }
.customer-app .profile-design-row > span small { font-size: 8px; }
.customer-app .profile-design-actions { align-self: end; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-width: none; }
.customer-app .profile-completed-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-app .profile-design-actions .mini-button { min-width: 0; padding: 0 5px; }
.customer-app .profile-order-row { grid-template-columns: 74px minmax(0, 1fr) auto; }
.customer-app .profile-order-thumb,
.customer-app .profile-order-row img { width: 74px; height: 58px; }

@media (max-width: 1100px) {
  .customer-app .profile-workspace { grid-template-columns: 1fr; }
  .customer-app .profile-space-nav { position: static; width: 100%; max-width: none; grid-template-columns: repeat(8, minmax(34px, 1fr)); }
  .customer-app .profile-layout,
  .customer-app .profile-main-panel { display: grid; grid-template-columns: 1fr; }
  .customer-app .profile-side-panel,
  .customer-app .profile-card,
  .customer-app .profile-dashboard .profile-design-card,
  .customer-app .profile-dashboard .profile-address-card { grid-column: 1; width: auto; position: static; }
  .customer-app .profile-design-card .profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .customer-app .profile-page { padding: 8px 8px 64px; }
  .customer-app .profile-hero-panel { width: 100%; grid-template-columns: 68px minmax(0, 1fr); padding: 12px; }
  .customer-app .profile-avatar-large { width: 68px; height: 68px; }
  .customer-app .profile-hero-tools,
  .customer-app .profile-social-stats { grid-column: 1 / -1; }
  .customer-app .profile-social-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .profile-design-card .profile-list { grid-template-columns: 1fr; }
}

/* Profile usability pass: preserve the reference composition while keeping
   labels, artwork and actions readable at every supported width. */
.customer-app .profile-page {
  background-image:
    linear-gradient(90deg, rgba(5, 8, 8, 0.78), rgba(5, 8, 8, 0.46) 48%, rgba(4, 8, 8, 0.7)),
    var(--profile-background-image, none),
    radial-gradient(circle at 18% 42%, rgba(40, 215, 229, 0.16), transparent 28%),
    radial-gradient(circle at 72% 5%, rgba(184, 255, 61, 0.12), transparent 24%);
}

.customer-app .profile-page::after { background: rgba(4, 6, 7, 0.08); }

.customer-app .profile-page button,
.customer-app .profile-page .button,
.customer-app .profile-page .mini-button,
.customer-app .profile-page label {
  writing-mode: horizontal-tb;
  word-break: keep-all;
  overflow-wrap: normal;
}

.customer-app .profile-page button,
.customer-app .profile-page .button,
.customer-app .profile-page .mini-button {
  white-space: nowrap;
}

.customer-app .profile-avatar-wrap {
  grid-row: 1 / span 2;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.customer-app .profile-avatar-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(40, 215, 229, 0.44);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(40, 215, 229, 0.08);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.customer-app .profile-avatar-change:hover,
.customer-app .profile-avatar-change:focus-within {
  border-color: var(--cyan);
  color: var(--soft);
  background: rgba(40, 215, 229, 0.16);
}

.customer-app .profile-avatar-change input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.customer-app .profile-workspace {
  grid-template-columns: 104px 228px minmax(0, 1fr) 286px;
  gap: 10px;
}

.customer-app .profile-space-nav {
  width: 104px;
  max-width: 104px;
  padding: 7px;
  gap: 5px;
}

.customer-app .profile-space-nav button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  width: 90px;
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  gap: 6px;
  text-align: left;
  font-size: 11px;
}

.customer-app .profile-space-nav button::before {
  width: 20px;
  text-align: center;
}

.customer-app .profile-space-nav button span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-side-panel { width: 228px; }

.customer-app .profile-card,
.customer-app .profile-side-panel {
  min-width: 0;
}

.customer-app .profile-design-card .profile-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.customer-app .profile-design-row {
  grid-template-rows: 144px auto auto;
  min-height: 238px;
  min-width: 0;
}

.customer-app .profile-design-row img {
  width: 100%;
  height: 144px;
  min-height: 0;
  object-fit: contain;
  background: rgba(247, 247, 239, 0.96);
}

.customer-app .profile-design-row > span,
.customer-app .profile-design-row > span strong,
.customer-app .profile-design-row > span small,
.customer-app .profile-order-summary,
.customer-app .profile-order-summary > strong,
.customer-app .profile-address-row > div:first-child,
.customer-app .creator-artwork-row > div {
  min-width: 0;
}

.customer-app .profile-design-row > span strong,
.customer-app .profile-social-design strong,
.customer-app .profile-person-row strong,
.customer-app .creator-artwork-row > div strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.customer-app .profile-design-row > span small,
.customer-app .profile-social-design small,
.customer-app .profile-person-row div span,
.customer-app .creator-artwork-row > div span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-design-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  max-width: none;
}

.customer-app .profile-design-actions .mini-button {
  flex: 1 1 52px;
  width: auto;
  min-width: 0;
  padding: 0 5px;
  font-size: 10px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.customer-app .profile-address-row .profile-row-actions,
.customer-app .profile-order-aside,
.customer-app .creator-artwork-row > .mini-button {
  min-width: 0;
  white-space: nowrap;
}

.customer-app .profile-address-row .profile-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.customer-app .profile-address-row .profile-row-actions .mini-button {
  flex: 0 0 auto;
  min-width: 54px;
}

.customer-app .profile-order-aside {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 7px;
}

.customer-app .profile-order-aside .mini-button { min-width: 72px; }

.customer-app .profile-social-list.profile-social-art-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-app .profile-social-art-wall .profile-social-design {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 150px auto;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 206px;
  padding: 8px;
  border-radius: 7px;
  background: rgba(3, 5, 6, 0.56);
}

.customer-app .profile-social-art-wall .profile-social-design img {
  width: 100%;
  height: 150px;
  min-width: 0;
  object-fit: contain;
  border-radius: 5px;
  background: rgba(247, 247, 239, 0.96);
}

.customer-app .profile-social-art-wall .profile-social-design span {
  display: grid;
  min-width: 0;
  gap: 3px;
  text-align: left;
}

.customer-app .profile-social-people-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-app .profile-social-people-wall .profile-person-row {
  min-width: 0;
  min-height: 62px;
  padding: 8px;
  border: 1px solid rgba(240, 246, 240, 0.12);
  border-radius: 7px;
  background: rgba(3, 5, 6, 0.48);
  text-align: left;
}

.customer-app .profile-social-people-wall .profile-person-row:hover {
  border-color: var(--cyan);
  background: rgba(40, 215, 229, 0.08);
}

.customer-app .profile-social-people-wall .profile-social-state { justify-self: end; }

.customer-app .profile-public-designs .profile-social-design img,
.customer-app .creator-artwork-row img { object-fit: contain; }

@media (max-width: 1100px) {
  .customer-app .profile-space-nav {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(8, minmax(88px, 1fr));
    display: grid;
    overflow-x: auto;
  }

  .customer-app .profile-space-nav button { width: 100%; }
  .customer-app .profile-workspace { grid-template-columns: 1fr; }
  .customer-app .profile-design-card .profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .customer-app .profile-avatar-wrap {
    grid-row: 1;
  }

  .customer-app .profile-hero-panel {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .customer-app .profile-social-list.profile-social-art-wall,
  .customer-app .profile-social-people-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-app .profile-design-row { grid-template-rows: 168px auto auto; min-height: 260px; }
  .customer-app .profile-design-row img { height: 168px; }
}

@media (max-width: 520px) {
  .customer-app .profile-hero-panel { grid-template-columns: 76px minmax(0, 1fr); }
  .customer-app .profile-avatar-large { width: 68px; height: 68px; }
  .customer-app .profile-avatar-change { min-height: 24px; padding-inline: 7px; font-size: 9px; }
  .customer-app .profile-design-card .profile-list,
  .customer-app .profile-social-list.profile-social-art-wall,
  .customer-app .profile-social-people-wall { grid-template-columns: 1fr; }
  .customer-app .profile-design-row { grid-template-rows: 188px auto auto; min-height: 282px; }
  .customer-app .profile-design-row img { height: 188px; }
  .customer-app .profile-order-row { grid-template-columns: 60px minmax(0, 1fr); }
  .customer-app .profile-order-aside { grid-column: 2; justify-items: start; grid-template-columns: auto auto; }
}

/* Personal space final pass: one stable shell, full-width destinations and
   image-led galleries for work, social activity and creator assets. */
.customer-app .profile-page.has-custom-background {
  background-color: #050807;
  background-image:
    linear-gradient(90deg, rgba(4, 8, 8, 0.48), rgba(4, 8, 8, 0.2) 48%, rgba(4, 8, 8, 0.5)),
    var(--profile-background-image) !important;
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.customer-app .profile-page.has-custom-background::before { opacity: 0.08; }
.customer-app .profile-page.has-custom-background::after { background: rgba(2, 5, 5, 0.08); }

.customer-app .profile-topbar,
.customer-app .profile-hero-panel,
.customer-app .profile-workspace {
  width: min(100%, 1480px);
  max-width: 1480px;
}

.customer-app .profile-hero-panel {
  grid-template-columns: 118px minmax(0, 1fr) 240px;
  min-height: 172px;
  padding: 22px 24px;
}

.customer-app .profile-avatar-wrap { width: 108px; }
.customer-app .profile-avatar-large { width: 108px; height: 108px; }
.customer-app .profile-avatar-change { width: 100%; }
.customer-app .profile-hero-panel h1 { font-size: 38px; }
.customer-app .profile-hero-panel .profile-bio-summary { max-width: 68ch; }

.customer-app .profile-workspace {
  display: grid;
  margin: 18px auto 0;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.customer-app .profile-space-nav {
  position: sticky;
  top: 16px;
  display: grid;
  grid-column: 1;
  width: 132px;
  max-width: 132px;
  margin: 0;
  padding: 8px;
  gap: 6px;
  overflow: visible;
  border-radius: 8px;
  background: rgba(6, 10, 10, 0.9);
}

.customer-app .profile-space-nav button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  gap: 8px;
  border-radius: 6px;
  font-size: 12px;
  text-align: left;
}

.customer-app .profile-space-nav button::before {
  width: 22px;
  font-size: 14px;
  text-align: center;
}

.customer-app .profile-space-nav button span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-layout {
  display: grid;
  grid-column: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.customer-app .profile-main-panel { display: contents; }
.customer-app .profile-side-panel,
.customer-app .profile-card {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(226, 239, 233, 0.13);
  border-radius: 8px;
  background: rgba(7, 11, 11, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.customer-app .profile-page:not(.profile-dashboard) .profile-side-panel,
.customer-app .profile-page:not(.profile-dashboard) .profile-card {
  position: static;
  grid-column: 1;
}

.customer-app .profile-dashboard .profile-layout {
  grid-template-columns: 252px minmax(0, 1fr) 320px;
  gap: 14px;
}

.customer-app .profile-dashboard .profile-side-panel {
  position: sticky;
  top: 16px;
  grid-column: 1;
  width: auto;
  padding: 16px;
}

.customer-app .profile-dashboard .profile-design-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.customer-app .profile-dashboard .profile-address-card {
  grid-column: 3;
  grid-row: 1;
}

.customer-app .profile-section-head,
.customer-app .profile-panel-head {
  min-height: 48px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 239, 233, 0.12);
}

.customer-app .profile-section-head h2,
.customer-app .profile-panel-head h2 {
  margin: 0;
  color: var(--soft);
  font-size: 21px;
  line-height: 1.2;
}

.customer-app .profile-panel-kicker { display: none; }
.customer-app .profile-section-head > span,
.customer-app .profile-section-head > div > span { font-size: 12px; }

/* Creator verification workspace: a compact, high-trust gate for publishing. */
.customer-app .creator-verification-card { border-color: rgba(40, 215, 229, 0.28); background: rgba(12, 19, 20, 0.98); }
.customer-app .creator-verification-head { align-items: center; }
.customer-app .creator-verification-status { border: 1px solid rgba(184, 255, 61, 0.34); border-radius: 999px; padding: 6px 11px; color: var(--acid-green, #b8ff3d); font-size: 11px; font-weight: 800; white-space: nowrap; }
.customer-app .creator-verification-status[data-status="pending"] { color: #28d7e5; border-color: rgba(40, 215, 229, 0.45); }
.customer-app .creator-verification-status[data-status="rejected"] { color: #ffb36b; border-color: rgba(255, 179, 107, 0.45); }
.customer-app .creator-verification-status[data-status="revoked"] { color: #ff8068; border-color: rgba(255, 104, 75, 0.45); }
.customer-app .creator-verification-content { display: grid; gap: 18px; margin-top: 18px; }
.customer-app .creator-verification-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.customer-app .creator-verification-steps span { padding: 7px 10px; border: 1px solid rgba(240, 246, 240, 0.12); border-radius: 999px; color: rgba(247, 247, 239, 0.56); font-size: 11px; font-weight: 800; }
.customer-app .creator-verification-steps span.active { color: #28d7e5; border-color: rgba(40, 215, 229, 0.42); }
.customer-app .creator-verification-form { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; }
.customer-app .creator-verification-phone-step, .customer-app .creator-verification-material-step { display: grid; align-content: start; gap: 10px; }
.customer-app .creator-verification-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.customer-app .creator-verification-code-row .button { min-height: 40px; white-space: nowrap; }
.customer-app .creator-verification-phone-feedback { margin: 0; padding: 9px 11px; border-radius: 8px; color: #b9f6fb; background: rgba(40, 215, 229, 0.09); font-size: 12px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.customer-app .creator-verification-phone-feedback[data-tone="success"] { color: #d8ff98; background: rgba(184, 255, 61, 0.1); }
.customer-app .creator-verification-phone-feedback[data-tone="error"] { color: #ffd1c8; background: rgba(255, 104, 75, 0.12); }
.customer-app .creator-verification-phone-feedback[data-tone="loading"] { color: #b9f6fb; }
.customer-app .creator-verification-phone-step > small { color: rgba(247, 247, 239, 0.48); line-height: 1.5; }
.customer-app .creator-verification-upload { display: grid; grid-template-columns: 42px 1fr; gap: 2px 11px; align-items: center; padding: 14px; border: 1px dashed rgba(40, 215, 229, 0.44); border-radius: 10px; cursor: pointer; background: rgba(40, 215, 229, 0.045); }
.customer-app .creator-verification-upload:hover { border-color: #28d7e5; background: rgba(40, 215, 229, 0.08); }
.customer-app .creator-verification-upload-icon { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #070909; background: #b8ff3d; font-size: 24px; font-weight: 500; }
.customer-app .creator-verification-upload strong { color: #f7f7ef; font-size: 13px; }
.customer-app .creator-verification-upload small { color: rgba(247, 247, 239, 0.54); font-size: 11px; }
.customer-app .creator-verification-preview { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border: 1px solid rgba(240, 246, 240, 0.12); border-radius: 8px; }
.customer-app .creator-verification-preview img { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; background: #f2f4ef; }
.customer-app .creator-verification-preview div { display: grid; gap: 4px; min-width: 0; }
.customer-app .creator-verification-preview strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .creator-verification-preview small { color: rgba(247, 247, 239, 0.54); }
.customer-app .creator-verification-agreements { display: grid; gap: 9px; padding: 13px 14px; border-top: 1px solid rgba(240, 246, 240, 0.1); }
.customer-app .creator-verification-agreements label { position: relative; display: block; min-height: 44px; color: rgba(247, 247, 239, 0.82); font-size: 12px; line-height: 1.55; cursor: pointer; }
.customer-app .creator-verification-agreements input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.customer-app .creator-verification-agreements label > span { position: relative; display: block; padding-inline-start: 30px; }
.customer-app .creator-verification-agreements label > span::before { content: ""; position: absolute; top: 1px; left: 0; width: 18px; height: 18px; border: 1px solid rgba(247, 247, 239, 0.36); border-radius: 4px; background: #070909; transition: border-color .18s ease, background-color .18s ease; }
.customer-app .creator-verification-agreements label:hover > span::before { border-color: #28d7e5; }
.customer-app .creator-verification-agreements input:checked + span::before { border-color: #b8ff3d; background: #b8ff3d; }
.customer-app .creator-verification-agreements input:checked + span::after { content: ""; position: absolute; top: 4px; left: 7px; width: 4px; height: 8px; border: solid #07100b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.customer-app .creator-verification-agreements input:focus-visible + span::before { outline: 2px solid #28d7e5; outline-offset: 3px; }
.customer-app .creator-verification-agreements p { margin: 0; color: rgba(247, 247, 239, 0.44); font-size: 11px; }
.customer-app .creator-verification-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.customer-app .creator-verification-actions span { flex: 1 1 220px; color: #28d7e5; font-size: 12px; }
.customer-app .creator-verification-actions span[data-tone="error"] { color: #ffd1c8; }
.customer-app .creator-verification-actions span[data-tone="success"] { color: #d8ff98; }
@media (max-width: 760px) {
  .customer-app .creator-verification-form { grid-template-columns: 1fr; }
  .customer-app .creator-verification-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .customer-app .creator-verification-actions span { grid-column: 1 / -1; }
  .customer-app .creator-verification-actions .button { width: 100%; }
}

/* Verified creator badge used next to public avatars. */
.customer-app .avatar-shell, .customer-app .profile-avatar-wrap { position: relative; }
.customer-app .avatar-shell {
  --creator-badge-size: 14px;
  --creator-badge-offset: -1px;
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: visible;
  border-radius: inherit;
  vertical-align: middle;
}
.customer-app .avatar-shell > .avatar-media {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  clip-path: circle(50% at 50% 50%);
}
.customer-app .avatar-shell > img,
.customer-app .avatar-shell > .avatar-media > img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  box-shadow: inset 0 0 0 1px rgba(247, 247, 239, 0.24);
}
.customer-app .profile-avatar-large.has-verified-creator,
.customer-app .user-chip > span.has-verified-creator,
.customer-app .catalog-user-chip > span.has-verified-creator,
.customer-app .home-author-avatar.has-verified-creator,
.customer-app .artwork-author-avatar.has-verified-creator { overflow: visible; }
.customer-app .profile-avatar-large.has-verified-creator > .avatar-shell,
.customer-app .user-chip > span.has-verified-creator > .avatar-shell,
.customer-app .catalog-user-chip > span.has-verified-creator > .avatar-shell { overflow: visible; }
/* Creator identity: cut-corner ID seal and compact verified signature. */
.customer-app .verified-creator-badge {
  position: absolute;
  right: var(--creator-badge-offset);
  bottom: var(--creator-badge-offset);
  z-index: 4;
  display: grid;
  place-items: center;
  width: var(--creator-badge-size);
  height: var(--creator-badge-size);
  isolation: isolate;
  overflow: visible;
  margin: 0;
  color: #b8ff3d;
  background: #b8ff3d;
  clip-path: polygon(0 28%, 28% 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.56));
  box-shadow: none;
}
.customer-app .verified-creator-badge::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  border: 0;
  background: #07100d;
  clip-path: inherit;
}
.customer-app .verified-creator-badge::after { display: none; }
.customer-app .verified-creator-badge i {
  display: block;
  width: 28%;
  height: 48%;
  margin-top: -12%;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.customer-app .user-chip .avatar-shell,
.customer-app .catalog-user-chip .avatar-shell { --creator-badge-size: 12px; --creator-badge-offset: -1px; }
.customer-app .home-exhibition-author .avatar-shell { --creator-badge-size: 11px; --creator-badge-offset: -1px; }
.customer-app .creator-artwork-author .avatar-shell { --creator-badge-size: 12px; --creator-badge-offset: -1px; }
.customer-app .profile-social-avatar .avatar-shell { --creator-badge-size: 15px; --creator-badge-offset: -1px; }
.customer-app .art-exhibition-author > span:first-child,
.customer-app .home-exhibition-author > span:first-child { overflow: visible; }
.customer-app .profile-avatar-large .avatar-shell { --creator-badge-size: 28px; --creator-badge-offset: 3px; }
.customer-app .profile-avatar-large .verified-creator-badge { filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.52)); }
.customer-app .profile-avatar-large .verified-creator-badge::before { inset: 3px; border: 0; }
.customer-app .profile-avatar-large .verified-creator-badge i { width: 7px; height: 12px; border-width: 0 3px 3px 0; }
@media (max-width: 820px) {
  .customer-app .profile-avatar-large .avatar-shell { --creator-badge-size: 24px; --creator-badge-offset: 2px; }
  .customer-app .profile-avatar-large .verified-creator-badge i { width: 5px; height: 10px; border-width: 0 2px 2px 0; }
}

.customer-app .profile-name-line,
.customer-app .profile-public-name-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.customer-app .creator-verified-label,
.customer-app .creator-public-verified {
  display: inline-flex;
  min-height: 36px;
  padding: 4px 8px 4px 4px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(247, 247, 239, 0.18);
  border-radius: 5px;
  color: #f7f7ef;
  background: rgba(5, 12, 11, 0.76);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 8px 22px rgba(0, 0, 0, 0.18);
  letter-spacing: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.customer-app button.creator-verified-label {
  position: relative;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.customer-app button.creator-verified-label::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 255, 61, 0.92), transparent 78%);
  content: "";
  pointer-events: none;
}
.customer-app button.creator-verified-label:hover,
.customer-app button.creator-verified-label:focus-visible {
  border-color: rgba(184, 255, 61, 0.68);
  background: rgba(12, 24, 20, 0.92);
  transform: translateY(-1px);
}
.customer-app button.creator-verified-label:focus-visible { outline: 2px solid rgba(40, 215, 229, 0.72); outline-offset: 3px; }
.customer-app .creator-verified-emblem,
.customer-app .creator-public-verified > i,
.customer-app .creator-poster-mini-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: #07100d;
  background: #b8ff3d;
  clip-path: polygon(0 28%, 28% 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.customer-app .creator-verified-emblem::before {
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}
.customer-app .creator-verified-emblem i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 3px;
  height: 3px;
  background: #28d7e5;
}
.customer-app .creator-poster-mini-badge::before {
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}
.customer-app .creator-verified-copy { display: grid; min-width: 0; gap: 1px; text-align: left; }
.customer-app .creator-verified-copy strong { font-size: 12px; line-height: 1.05; white-space: nowrap; }
.customer-app .creator-verified-copy small { color: rgba(40, 215, 229, 0.86); font-size: 7px; font-weight: 900; line-height: 1; letter-spacing: 0.12em; }
.customer-app .creator-verified-open { margin-left: 2px; color: rgba(247, 247, 239, 0.42); font-size: 11px; line-height: 1; }
.customer-app .creator-public-verified { min-height: 28px; color: #b8ff3d; font-size: 11px; font-weight: 900; }
.customer-app .profile-person-verified { display: inline-block; margin-left: 7px; padding: 2px 5px; border: 1px solid rgba(40, 215, 229, 0.42); border-radius: 4px; color: #b8ff3d; font-size: 9px; font-style: normal; vertical-align: 2px; }
.customer-app .creator-verification-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.customer-app .creator-poster-entry {
  border: 1px solid rgba(184, 255, 61, 0.54);
  color: #07100b;
  background: #b8ff3d;
  font-weight: 900;
}
.customer-app .creator-poster-entry:hover { color: #07100b; background: #cbff73; }
.customer-app .creator-poster-entry-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  border: 2px solid currentColor;
}
.customer-app .creator-poster-entry-icon::before,
.customer-app .creator-poster-entry-icon::after { content: ""; position: absolute; background: currentColor; }
.customer-app .creator-poster-entry-icon::before { top: 3px; left: 3px; width: 3px; height: 3px; box-shadow: 5px 0 currentColor, 0 5px currentColor; }
.customer-app .creator-poster-entry-icon::after { right: 1px; bottom: 1px; width: 4px; height: 4px; }

.customer-app .profile-public-head {
  grid-template-columns: 68px minmax(0, 1fr) auto;
  padding: 18px;
  border-color: rgba(40, 215, 229, 0.24);
  background: #09100f;
}
.customer-app .profile-public-identity { min-width: 0; }
.customer-app .profile-public-actions { display: flex; align-items: center; gap: 8px; }
.customer-app .profile-public-actions .button.active { color: #b8ff3d; border-color: rgba(184, 255, 61, 0.5); background: rgba(184, 255, 61, 0.08); }
.customer-app .profile-public-mode .profile-public-head { display: flex; justify-content: flex-end; padding: 0 0 14px; border: 0; border-radius: 0; background: transparent; }
.customer-app .profile-public-mode .profile-public-head > .profile-social-avatar,
.customer-app .profile-public-mode .profile-public-head > .profile-public-identity { display: none; }
.customer-app .profile-public-mode .profile-avatar-change,
.customer-app .profile-public-mode .profile-social-stats,
.customer-app .profile-public-mode .profile-space-nav { display: none !important; }
.customer-app .creator-verified-label:disabled { cursor: default; opacity: 1; }
.customer-app .profile-public-mode .profile-hero-tools > :not(.creator-poster-entry) { display: none; }
.customer-app .profile-public-mode .profile-workspace { grid-template-columns: minmax(0, 1fr); }
.customer-app .profile-public-mode .profile-layout { grid-column: 1; }
.customer-app .profile-public-mode.guest-public-profile #profileLogoutBtn { display: none; }

.customer-app .creator-poster-modal { z-index: 230; }
.customer-app .creator-poster-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(900px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgba(40, 215, 229, 0.3);
  border-radius: 8px;
  color: #f7f7ef;
  background: #070b0b;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72);
}
.customer-app .creator-poster-header {
  display: flex;
  min-height: 76px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(240, 246, 240, 0.12);
}
.customer-app .creator-poster-header > div { display: grid; gap: 3px; }
.customer-app .creator-poster-header span { color: #28d7e5; font-size: 10px; font-weight: 900; }
.customer-app .creator-poster-header h2 { margin: 0; font-size: 24px; }
.customer-app .creator-poster-workspace { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr); min-height: 0; }
.customer-app .creator-poster-preview-shell {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px;
  overflow: auto;
  background: #020404;
}
.customer-app .creator-poster-preview-shell img,
.customer-app .creator-poster-preview-empty {
  display: grid;
  width: min(100%, 350px);
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(184, 255, 61, 0.26);
  border-radius: 4px;
  object-fit: contain;
  background: #090d0b;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.54);
}
.customer-app .creator-poster-preview-empty { place-items: center; align-content: center; gap: 8px; color: rgba(247, 247, 239, 0.5); }
.customer-app .creator-poster-preview-empty strong { color: #b8ff3d; font-size: 36px; }
.customer-app .creator-poster-controls { display: grid; align-content: start; gap: 16px; max-height: calc(100vh - 110px); padding: 22px; overflow-y: auto; }
.customer-app .creator-poster-identity-preview { display: flex; min-height: 62px; padding: 11px 13px; align-items: center; gap: 12px; border-left: 3px solid #b8ff3d; background: #0d1412; }
.customer-app .creator-poster-identity-preview div { display: grid; gap: 3px; }
.customer-app .creator-poster-identity-preview small { color: rgba(247, 247, 239, 0.52); }
.customer-app .creator-poster-fieldset { margin: 0; padding: 0; border: 0; }
.customer-app .creator-poster-fieldset legend { margin-bottom: 9px; color: rgba(247, 247, 239, 0.62); font-size: 11px; font-weight: 900; }
.customer-app .creator-poster-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.customer-app .creator-poster-theme { display: grid; min-width: 0; padding: 7px; gap: 6px; border: 1px solid rgba(247, 247, 239, 0.14); border-radius: 6px; color: rgba(247, 247, 239, 0.52); background: #080b0b; cursor: pointer; }
.customer-app .creator-poster-theme span { display: block; height: 34px; border-radius: 3px; background: #b8ff3d; box-shadow: inset 8px 0 #080b09; }
.customer-app .creator-poster-theme[data-creator-poster-theme="cyan"] span { background: #28d7e5; box-shadow: inset 8px 0 #071013; }
.customer-app .creator-poster-theme[data-creator-poster-theme="coral"] span { background: #ff6854; box-shadow: inset 8px 0 #120a0a; }
.customer-app .creator-poster-theme[data-creator-poster-theme="silver"] span { background: #d8dde2; box-shadow: inset 8px 0 #0a0b0d; }
.customer-app .creator-poster-theme small { overflow: hidden; font-size: 8px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .creator-poster-theme.active { border-color: #b8ff3d; color: #f7f7ef; box-shadow: inset 0 -2px #b8ff3d; }
.customer-app .creator-poster-color { display: grid; grid-template-columns: auto 48px 1fr; align-items: center; gap: 10px; color: rgba(247, 247, 239, 0.62); font-size: 12px; font-weight: 900; }
.customer-app .creator-poster-color input { width: 48px; height: 38px; padding: 3px; border: 1px solid rgba(247, 247, 239, 0.2); border-radius: 4px; background: #070909; }
.customer-app .creator-poster-color output { color: #f7f7ef; font-variant-numeric: tabular-nums; }
.customer-app .creator-poster-background { display: grid; grid-template-columns: 40px minmax(0, 1fr); min-height: 62px; padding: 10px 12px; align-items: center; gap: 11px; border: 1px dashed rgba(40, 215, 229, 0.4); border-radius: 6px; cursor: pointer; background: rgba(40, 215, 229, 0.04); }
.customer-app .creator-poster-background::before { content: "+"; display: grid; place-items: center; width: 36px; height: 36px; color: #07100b; background: #28d7e5; font-size: 24px; font-weight: 700; }
.customer-app .creator-poster-background input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.customer-app .creator-poster-background span { display: grid; gap: 3px; min-width: 0; }
.customer-app .creator-poster-background small { overflow: hidden; color: rgba(247, 247, 239, 0.5); text-overflow: ellipsis; white-space: nowrap; }
.customer-app .creator-poster-copy textarea { min-height: 72px; resize: vertical; }
.customer-app .creator-poster-actions { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.customer-app .creator-poster-actions .button { min-width: 0; }
.customer-app .creator-poster-status { min-height: 20px; margin: 0; color: #28d7e5; font-size: 12px; }

@media (max-width: 820px) {
  .customer-app .profile-name-line { align-items: flex-start; }
  .customer-app .creator-verified-label { min-height: 30px; padding: 3px 7px 3px 3px; gap: 7px; }
  .customer-app .creator-verified-emblem { width: 23px; height: 23px; flex-basis: 23px; }
  .customer-app .creator-verified-emblem::before { width: 5px; height: 9px; }
  .customer-app .creator-verified-copy strong { font-size: 11px; }
  .customer-app .creator-verified-copy small { display: none; }
  .customer-app .creator-verified-open { font-size: 10px; }
  .customer-app .profile-avatar-large .verified-creator-badge { right: -2px; bottom: 2px; width: 23px; height: 23px; }
  .customer-app .profile-avatar-large .verified-creator-badge::before { inset: 2px; }
  .customer-app .profile-avatar-large .verified-creator-badge i { width: 5px; height: 9px; border-width: 0 2px 2px 0; }
  .customer-app .profile-public-head { grid-template-columns: 58px minmax(0, 1fr); }
  .customer-app .profile-public-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .customer-app .profile-public-actions .button { width: 100%; }
  .customer-app .creator-verification-head-actions { width: 100%; justify-content: space-between; }
  .customer-app .creator-poster-dialog { width: 100vw; max-height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; }
  .customer-app .creator-poster-workspace { grid-template-columns: 1fr; max-height: calc(100dvh - 76px); overflow-y: auto; }
  .customer-app .creator-poster-preview-shell { min-height: 520px; padding: 18px; overflow: visible; }
  .customer-app .creator-poster-preview-shell img,
  .customer-app .creator-poster-preview-empty { width: min(82vw, 300px); }
  .customer-app .creator-poster-controls { max-height: none; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); overflow: visible; }
  .customer-app .creator-poster-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .creator-poster-actions { grid-template-columns: 1fr 1fr; }
  .customer-app .creator-poster-actions .button:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-app button.creator-verified-label { transition: none; }
  .customer-app button.creator-verified-label:hover,
  .customer-app button.creator-verified-label:focus-visible { transform: none; }
}

.customer-app .profile-gallery-toolbar {
  display: flex;
  min-height: 50px;
  margin: -4px 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.customer-app .profile-gallery-toolbar[hidden] { display: none !important; }

.customer-app .profile-gallery-search {
  position: relative;
  display: block;
  width: min(100%, 300px);
}

.customer-app .profile-gallery-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.customer-app .profile-gallery-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(3, 6, 7, 0.68);
}

.customer-app .profile-gallery-filters {
  display: flex;
  align-items: center;
  gap: 6px;
}

.customer-app .profile-gallery-filters button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(217, 221, 215, 0.62);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.customer-app .profile-gallery-filters button:hover,
.customer-app .profile-gallery-filters button.active {
  border-color: rgba(226, 239, 233, 0.16);
  color: var(--soft);
  background: rgba(226, 239, 233, 0.1);
}

.customer-app .profile-social-list.profile-social-art-wall,
.customer-app .creator-artwork-list,
.customer-app .profile-page:not(.profile-dashboard) .profile-design-card .profile-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.customer-app .profile-social-art-wall .profile-social-design,
.customer-app .creator-artwork-row {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 239, 233, 0.14);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(3, 6, 7, 0.86);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.customer-app .profile-social-art-wall .profile-social-design:hover,
.customer-app .creator-artwork-row:hover {
  border-color: rgba(40, 215, 229, 0.72);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.customer-app .profile-social-art-wall .profile-social-design:focus-visible,
.customer-app .creator-artwork-row button:focus-visible,
.customer-app .profile-person-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.customer-app .profile-gallery-media,
.customer-app .creator-artwork-media {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #eef1ed;
}

.customer-app .profile-social-art-wall .profile-social-design img,
.customer-app .creator-artwork-media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  border-radius: 0;
  background: #eef1ed;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.customer-app .profile-social-art-wall .profile-social-design:hover img,
.customer-app .creator-artwork-row:hover .creator-artwork-media img { transform: scale(1.025); }

.customer-app .profile-gallery-media-empty {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #65706c;
  font-size: 12px;
  font-weight: 800;
}

.customer-app .profile-gallery-type {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 5px;
  color: #f3f6f1;
  background: rgba(5, 9, 9, 0.82);
  font-size: 10px;
  font-weight: 900;
  line-height: 17px;
  backdrop-filter: blur(8px);
}

.customer-app .profile-gallery-copy,
.customer-app .creator-artwork-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  min-width: 0;
  padding: 52px 52px 14px 14px;
  gap: 5px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 5, 5, 0.9));
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.customer-app .profile-social-design:hover .profile-gallery-overlay,
.customer-app .profile-social-design:focus-visible .profile-gallery-overlay,
.customer-app .creator-artwork-row:hover .profile-gallery-overlay,
.customer-app .creator-artwork-row:focus-within .profile-gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.customer-app .profile-gallery-copy strong,
.customer-app .creator-artwork-copy strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-gallery-copy small,
.customer-app .creator-artwork-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(217, 221, 215, 0.58);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-gallery-action {
  margin-top: 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.customer-app .profile-gallery-save-mark {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(3, 6, 7, 0.46);
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.customer-app .creator-artwork-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  opacity: 1;
  pointer-events: auto;
}

.customer-app .creator-artwork-row:hover .creator-artwork-actions,
.customer-app .creator-artwork-row:focus-within .creator-artwork-actions { opacity: 1; }

.customer-app .creator-artwork-actions .mini-button {
  min-width: 88px;
  min-height: 34px;
  padding-inline: 10px;
  border-color: rgba(40, 215, 229, 0.48);
  color: var(--soft);
  background: rgba(4, 8, 9, 0.84);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.customer-app .creator-artwork-actions .mini-button[data-share-artwork-poster] {
  border-color: rgba(184, 255, 61, 0.66);
  color: #b8ff3d;
}

.customer-app .creator-artwork-actions .mini-button[data-share-artwork-poster]::before {
  content: "↗";
  margin-right: 5px;
  font-size: 13px;
  line-height: 1;
}

/* Artwork posters use their own data attribute so their palette is not
   accidentally inherited as the lime default from the creator poster. */
.customer-app .creator-artwork-poster-themes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.customer-app .creator-artwork-poster-themes .creator-poster-theme[data-creator-artwork-poster-theme="cyan"] span {
  background: #28d7e5;
  box-shadow: inset 8px 0 #071013;
}
.customer-app .creator-artwork-poster-themes .creator-poster-theme[data-creator-artwork-poster-theme="coral"] span {
  background: #ff6854;
  box-shadow: inset 8px 0 #120a0a;
}
.customer-app .creator-artwork-poster-themes .creator-poster-theme[data-creator-artwork-poster-theme="silver"] span {
  background: #d8dde2;
  box-shadow: inset 8px 0 #0a0b0d;
}
.customer-app .creator-artwork-poster-themes .creator-poster-theme[data-creator-artwork-poster-theme="lime"] span {
  background: #b8ff3d;
  box-shadow: inset 8px 0 #080b09;
}
.customer-app .creator-artwork-poster-actions {
  position: relative;
  z-index: 2;
}
.customer-app .creator-artwork-poster-actions .button:not(:disabled) {
  cursor: pointer;
}

/* Dedicated artwork poster workspace. The artwork manager remains the source
   of truth, while this mode temporarily focuses the dialog on sharing. */
.customer-app .creator-artwork-manage-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.customer-app .creator-artwork-manage-header > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.customer-app .creator-artwork-header-poster-btn {
  flex: 0 0 auto;
  border-color: rgba(184, 255, 61, 0.62);
  color: #b8ff3d;
}
.customer-app .creator-artwork-poster-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.customer-app .creator-artwork-poster-head-actions .button {
  min-height: 32px;
}
.customer-app .creator-artwork-manage-dialog.poster-mode {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(900px, calc(100dvh - 32px));
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-manage-layout {
  display: block;
  margin-top: 16px;
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-manage-layout > .creator-artwork-preview-stage,
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-manage-copy > *:not(.creator-artwork-poster-panel),
.customer-app .creator-artwork-manage-dialog.poster-mode > .creator-artwork-manage-actions {
  display: none;
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-panel {
  display: grid;
  min-height: 0;
  padding: 18px;
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-workspace {
  display: grid !important;
  grid-template-columns: minmax(360px, 520px) minmax(300px, 380px) !important;
  grid-auto-flow: column;
  justify-content: center;
  width: 100%;
  min-height: min(650px, calc(100dvh - 190px));
  align-items: stretch;
  gap: 20px;
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-preview-shell {
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #050808;
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-head > div:first-child > * {
  display: block;
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-preview-shell img,
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-preview-empty {
  width: auto;
  height: min(680px, calc(100dvh - 240px));
  max-width: 100%;
  aspect-ratio: 9 / 16;
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-controls {
  align-content: start;
  min-width: 0;
  max-height: min(680px, calc(100dvh - 220px));
  padding: 4px 4px 12px 0;
  overflow-y: auto;
}
.customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-actions {
  position: sticky;
  bottom: 0;
  padding-top: 10px;
  background: linear-gradient(180deg, transparent, #0b1010 20%);
}

@media (max-width: 760px) {
  .customer-app .creator-artwork-manage-dialog.poster-mode {
    max-height: 96dvh;
  }
  .customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-workspace {
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
    justify-content: stretch;
    min-height: 0;
    gap: 14px;
  }
  .customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-preview-shell {
    min-height: min(55dvh, 520px);
  }
  .customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-preview-shell img,
  .customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-preview-empty {
    width: min(68vw, 280px);
    height: auto;
    max-height: none;
  }
  .customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-controls {
    max-height: none;
    padding: 0;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .customer-app .creator-artwork-manage-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .customer-app .creator-artwork-header-poster-btn {
    order: 3;
    width: 100%;
  }
  .customer-app .creator-artwork-poster-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .customer-app .creator-artwork-poster-head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .customer-app .creator-artwork-manage-dialog.poster-mode .creator-artwork-poster-preview-shell {
    min-height: 430px;
  }
}

.customer-app .profile-social-people-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.customer-app .profile-social-people-wall .profile-person-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-width: 0;
  min-height: 126px;
  padding: 16px;
  gap: 10px 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 239, 233, 0.14);
  border-radius: 8px;
  color: var(--soft);
  background: linear-gradient(145deg, rgba(16, 29, 27, 0.96), rgba(5, 9, 9, 0.96));
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.customer-app .profile-social-people-wall .profile-person-row:hover {
  border-color: rgba(184, 255, 61, 0.58);
  background: linear-gradient(145deg, rgba(19, 37, 32, 0.98), rgba(5, 9, 9, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.customer-app .profile-social-people-wall .profile-social-avatar {
  grid-row: 1 / span 2;
  width: 68px;
  height: 68px;
  border: 2px solid rgba(184, 255, 61, 0.56);
  box-shadow: 0 0 0 5px rgba(184, 255, 61, 0.06);
}

.customer-app .profile-person-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
}

.customer-app .profile-person-copy strong,
.customer-app .profile-person-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-person-copy strong { color: var(--soft); font-size: 16px; }
.customer-app .profile-person-copy small { color: rgba(217, 221, 215, 0.56); font-size: 11px; }
.customer-app .profile-social-people-wall .profile-social-state {
  grid-column: 2;
  justify-self: start;
  color: var(--green) !important;
  font-size: 11px;
  font-weight: 900;
}

.customer-app .profile-social-empty,
.customer-app .profile-page .selected-empty {
  grid-column: 1 / -1;
  min-height: 164px;
  padding: 28px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(226, 239, 233, 0.16);
  border-radius: 8px;
  color: rgba(217, 221, 215, 0.52);
  background: rgba(3, 6, 7, 0.44);
  text-align: center;
}

.customer-app .profile-page .profile-artwork-load-state {
  align-content: center;
  justify-items: center;
  gap: 10px;
}

.customer-app .profile-page .profile-artwork-load-state strong {
  color: var(--soft);
  font-size: 15px;
  font-weight: 800;
}

.customer-app .profile-page .profile-artwork-load-state span {
  max-width: 64ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.customer-app .profile-page .profile-artwork-load-state.is-error {
  border-style: solid;
  border-color: color-mix(in srgb, var(--gold) 32%, transparent);
  background: color-mix(in srgb, var(--gold) 8%, rgba(3, 6, 7, 0.44));
}

.customer-app .profile-page .profile-artwork-load-state.is-error strong {
  color: var(--gold);
}

.customer-app .profile-page[data-profile-section="info"] .profile-side-panel {
  position: static;
  width: 100%;
  max-width: none;
  padding: 24px;
}

.customer-app .profile-page[data-profile-section="info"] .profile-info-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.customer-app .profile-page[data-profile-section="info"] .profile-info-row {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(226, 239, 233, 0.12);
  border-radius: 7px;
  background: rgba(3, 6, 7, 0.5);
}

.customer-app .profile-page[data-profile-section="info"] .profile-info-row span { font-size: 10px; }
.customer-app .profile-page[data-profile-section="info"] .profile-info-row strong { font-size: 13px; }

.customer-app .profile-page[data-profile-section="info"] .profile-edit-panel:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: none;
  margin: 0;
  padding: 20px;
  gap: 16px;
  overflow: visible;
  border: 1px solid rgba(226, 239, 233, 0.11);
  border-radius: 8px;
  background: rgba(3, 6, 7, 0.56);
}

.customer-app .profile-page[data-profile-section="info"] .profile-edit-panel .profile-avatar-upload {
  min-height: 78px;
  align-self: stretch;
  border-color: rgba(40, 215, 229, 0.42);
  color: var(--cyan);
  background: rgba(40, 215, 229, 0.06);
}

.customer-app .profile-page[data-profile-section="info"] .profile-field-wide { grid-column: span 2; }
.customer-app .profile-page[data-profile-section="info"] .profile-inline-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.customer-app .profile-page[data-profile-section="info"] .profile-inline-actions .button { min-width: 112px; }

.customer-app .profile-page[data-profile-section="addresses"] .address-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.customer-app .profile-page[data-profile-section="addresses"] .profile-address-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 116px;
  padding: 18px;
  align-items: center;
}

.customer-app .profile-page[data-profile-section="orders"] .profile-order-row {
  min-height: 104px;
  padding: 14px;
}

@media (max-width: 1180px) {
  .customer-app .profile-dashboard .profile-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .customer-app .profile-dashboard .profile-design-card { grid-column: 2; }
  .customer-app .profile-dashboard .profile-address-card { grid-column: 1 / -1; grid-row: auto; }
  .customer-app .profile-page[data-profile-section="info"] .profile-edit-panel:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .profile-social-list.profile-social-art-wall,
  .customer-app .creator-artwork-list,
  .customer-app .profile-page:not(.profile-dashboard) .profile-design-card .profile-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .customer-app .profile-hero-panel { grid-template-columns: 82px minmax(0, 1fr); min-height: 0; padding: 18px; }
  .customer-app .profile-avatar-wrap { width: 76px; }
  .customer-app .profile-avatar-large { width: 76px; height: 76px; }
  .customer-app .profile-hero-panel h1 { font-size: 30px; }
  .customer-app .profile-workspace { grid-template-columns: 1fr; gap: 12px; }
  .customer-app .profile-space-nav {
    position: static;
    grid-column: 1;
    grid-template-columns: repeat(8, minmax(90px, 1fr));
    width: 100%;
    max-width: none;
    overflow-x: auto;
  }
  .customer-app .profile-layout,
  .customer-app .profile-dashboard .profile-layout { grid-column: 1; grid-template-columns: 1fr; }
  .customer-app .profile-dashboard .profile-side-panel,
  .customer-app .profile-dashboard .profile-design-card,
  .customer-app .profile-dashboard .profile-address-card { position: static; grid-column: 1; grid-row: auto; }
  .customer-app .profile-social-list.profile-social-art-wall,
  .customer-app .creator-artwork-list,
  .customer-app .profile-page:not(.profile-dashboard) .profile-design-card .profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .profile-social-people-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .profile-gallery-toolbar { align-items: stretch; flex-direction: column; }
  .customer-app .profile-gallery-search { width: 100%; }
  .customer-app .profile-gallery-filters { overflow-x: auto; }
}

@media (max-width: 560px) {
  .customer-app .profile-side-panel,
  .customer-app .profile-card,
  .customer-app .profile-page[data-profile-section="info"] .profile-side-panel { padding: 14px; }
  .customer-app .profile-social-list.profile-social-art-wall,
  .customer-app .creator-artwork-list,
  .customer-app .profile-social-people-wall,
  .customer-app .profile-page:not(.profile-dashboard) .profile-design-card .profile-list,
  .customer-app .profile-page[data-profile-section="info"] .profile-edit-panel:not([hidden]),
  .customer-app .profile-page[data-profile-section="info"] .profile-info-list,
  .customer-app .profile-page[data-profile-section="addresses"] .address-list { grid-template-columns: 1fr; }
  .customer-app .profile-page[data-profile-section="info"] .profile-field-wide { grid-column: 1; }
  .customer-app .profile-page[data-profile-section="addresses"] .profile-address-row { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .customer-app .profile-gallery-overlay { opacity: 1; transform: none; }
  .customer-app .creator-artwork-actions { opacity: 1; }
}

/* Public creator space: identity first, then measurable work. */
.customer-app .profile-public-mode .profile-hero-panel {
  display: none !important;
}

.customer-app .profile-public-mode .profile-public-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(40, 215, 229, 0.26);
  border-radius: 10px;
  background: #091211;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.customer-app .profile-public-mode .profile-public-head > .profile-social-avatar,
.customer-app .profile-public-mode .profile-public-head > .profile-public-identity {
  display: block;
}

.customer-app .profile-public-mode .profile-public-head .profile-social-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: visible;
  border: 2px solid rgba(184, 255, 61, 0.58);
  background: #101b18;
}

.customer-app .profile-public-mode .profile-public-head .profile-social-avatar .avatar-shell,
.customer-app .profile-public-mode .profile-public-head .profile-social-avatar .avatar-media,
.customer-app .profile-public-mode .profile-public-head .profile-social-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.customer-app .profile-public-mode .profile-public-head .profile-social-avatar img { object-fit: cover; }
.customer-app .profile-public-mode .profile-public-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.customer-app .profile-public-mode .profile-public-name-line strong { font-size: 24px; letter-spacing: 0; }
.customer-app .profile-public-mode .profile-public-identity > span { margin-top: 7px; }
.customer-app .profile-public-mode .profile-public-user-id { width: fit-content; }
.customer-app .profile-public-mode .profile-public-info { overflow-wrap: anywhere; }
.customer-app .profile-public-mode .profile-public-actions { justify-content: flex-end; }
.customer-app .profile-public-mode .profile-public-actions .button { min-height: 40px; padding-inline: 15px; }

.customer-app .profile-public-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  border: 1px solid rgba(240, 246, 240, 0.11);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(240, 246, 240, 0.1);
}

.customer-app .profile-public-stats > div {
  display: grid;
  min-height: 76px;
  place-items: center;
  align-content: center;
  gap: 5px;
  background: rgba(9, 14, 14, 0.96);
}

.customer-app .profile-public-stats strong { color: var(--soft); font-size: 21px; font-variant-numeric: tabular-nums; }
.customer-app .profile-public-stats span { color: rgba(217, 221, 215, 0.52); font-size: 11px; font-weight: 800; }

.customer-app .profile-public-toolbar {
  display: flex;
  min-height: 46px;
  margin: 24px 0 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-app .profile-public-toolbar > div:first-child { display: grid; gap: 4px; }
.customer-app .profile-public-toolbar > div:first-child strong { color: var(--soft); font-size: 17px; }
.customer-app .profile-public-toolbar > div:first-child span { color: rgba(217, 221, 215, 0.48); font-size: 11px; }
.customer-app .profile-public-filters { display: flex; gap: 6px; overflow-x: auto; }
.customer-app .profile-public-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(240, 246, 240, 0.12);
  border-radius: 999px;
  color: rgba(217, 221, 215, 0.58);
  background: rgba(240, 246, 240, 0.04);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.customer-app .profile-public-filters button:hover,
.customer-app .profile-public-filters button.active { border-color: rgba(184, 255, 61, 0.55); color: #07100b; background: var(--green); }

.customer-app .profile-public-mode .profile-public-designs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.customer-app .profile-public-work-card {
  display: grid;
  grid-template-rows: auto auto auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 246, 240, 0.13);
  border-radius: 9px;
  color: var(--soft);
  background: #0b1110;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.customer-app .profile-public-work-card:hover,
.customer-app .profile-public-work-card:focus-visible {
  border-color: rgba(40, 215, 229, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.customer-app .profile-public-work-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.customer-app .profile-public-work-media { position: relative; display: grid; min-width: 0; aspect-ratio: 1 / 0.92; place-items: center; overflow: hidden; background: #eef1ed; }
.customer-app .profile-public-work-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 240ms ease; }
.customer-app .profile-public-work-card:hover .profile-public-work-media img { transform: scale(1.025); }
.customer-app .profile-public-work-type { position: absolute; top: 10px; left: 10px; padding: 4px 7px; border-radius: 4px; color: #eaf4ef; background: rgba(5, 10, 9, 0.82); font-size: 10px; font-weight: 900; }
.customer-app .profile-public-work-copy { display: grid; min-width: 0; gap: 5px; padding: 12px 12px 4px; }
.customer-app .profile-public-work-copy strong { min-width: 0; overflow: hidden; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .profile-public-work-copy small { min-width: 0; overflow: hidden; color: rgba(217, 221, 215, 0.52); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .profile-public-work-stats { display: flex; min-width: 0; padding: 8px 12px 12px; align-items: center; gap: 13px; color: rgba(217, 221, 215, 0.55); }
.customer-app .profile-public-work-stats > span { display: inline-flex; min-width: 0; align-items: center; gap: 4px; font-size: 11px; font-variant-numeric: tabular-nums; }
.customer-app .profile-public-work-stats svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.customer-app .profile-public-work-stats > span:last-child i { color: var(--green); font-size: 14px; font-style: normal; line-height: 1; }
.customer-app .profile-public-work-stats b { color: rgba(247, 247, 239, 0.8); font-weight: 800; }
.customer-app .profile-public-empty { grid-column: 1 / -1; min-height: 180px; }

@media (max-width: 1100px) {
  .customer-app .profile-public-mode .profile-public-designs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .customer-app .profile-public-mode .profile-public-head { grid-template-columns: 60px minmax(0, 1fr); min-height: 0; padding: 15px; gap: 12px; }
  .customer-app .profile-public-mode .profile-public-head .profile-social-avatar { width: 60px; height: 60px; }
  .customer-app .profile-public-mode .profile-public-name-line strong { font-size: 19px; }
  .customer-app .profile-public-mode .profile-public-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .customer-app .profile-public-mode .profile-public-actions .button { width: 100%; }
  .customer-app .profile-public-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .profile-public-stats > div { min-height: 66px; }
  .customer-app .profile-public-toolbar { align-items: flex-start; flex-direction: column; margin-top: 19px; }
  .customer-app .profile-public-filters { width: 100%; padding-bottom: 2px; }
  .customer-app .profile-public-mode .profile-public-designs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .customer-app .profile-public-work-copy { padding: 10px 10px 3px; }
  .customer-app .profile-public-work-copy strong { font-size: 12px; }
  .customer-app .profile-public-work-copy small { font-size: 10px; }
  .customer-app .profile-public-work-stats { padding: 7px 10px 10px; gap: 8px; }
  .customer-app .profile-public-work-stats > span { gap: 3px; font-size: 10px; }
  .customer-app .profile-public-work-stats svg { width: 12px; height: 12px; }
}

/* Account gateway: split-screen identity with the existing Creativerse palette. */
.customer-app .auth-modal {
  align-items: center;
  align-content: center;
  padding: 24px;
  background: rgba(2, 5, 6, 0.8);
  backdrop-filter: blur(14px);
}

.customer-app .auth-dialog {
  position: relative;
  display: grid;
  width: min(1180px, calc(100vw - 48px));
  height: min(780px, calc(100dvh - 48px));
  max-width: 1180px;
  max-height: 780px;
  padding: 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 239, 233, 0.2);
  border-radius: 8px;
  color: #101414;
  background: #f2f4ef;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.58);
}

.customer-app .auth-showcase {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 38px 42px 30px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 26px;
  overflow: hidden;
  color: #f4f7f1;
  border-right: 1px solid rgba(40, 215, 229, 0.26);
  background:
    linear-gradient(90deg, rgba(40, 215, 229, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(40, 215, 229, 0.04) 1px, transparent 1px),
    #07100f;
  background-size: 44px 44px, 44px 44px, auto;
}

.customer-app .auth-showcase-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 247, 241, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.customer-app .auth-showcase-brand img {
  width: 38px;
  height: 38px;
  margin: 0;
  object-fit: contain;
  border: 1px solid rgba(226, 239, 233, 0.2);
  border-radius: 7px;
  background: #060909;
}

.customer-app .auth-showcase-copy {
  position: relative;
  z-index: 2;
  max-width: 430px;
}

.customer-app .auth-showcase-copy .auth-kicker {
  color: var(--cyan);
  letter-spacing: 0;
}

.customer-app .auth-showcase-copy h2 {
  max-width: 9ch;
  margin: 12px 0 14px;
  color: #f4f7f1;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.customer-app .auth-showcase-copy p {
  max-width: 30ch;
  margin: 0;
  color: rgba(226, 239, 233, 0.58);
  font-size: 14px;
  line-height: 1.7;
}

.customer-app .auth-showcase-gallery {
  position: relative;
  z-index: 2;
  min-height: 280px;
}

.customer-app .auth-showcase-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(226, 239, 233, 0.24);
  border-radius: 7px;
  background-color: #e8ece7;
  background-image: var(--auth-art-image);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
  transition: transform 240ms ease, border-color 240ms ease;
}

.customer-app .auth-showcase-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(2, 6, 6, 0.84));
  content: "";
}

.customer-app .auth-showcase-card > span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  overflow: hidden;
  color: #f4f7f1;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .auth-showcase-card-main {
  inset: 16px 82px 10px 8px;
  transform: rotate(-2deg);
}

.customer-app .auth-showcase-card-top {
  top: 0;
  right: 0;
  width: 132px;
  height: 132px;
  transform: rotate(4deg);
}

.customer-app .auth-showcase-card-bottom {
  right: 16px;
  bottom: 0;
  width: 154px;
  height: 154px;
  transform: rotate(2deg);
}

.customer-app .auth-showcase-card.uses-brand-fallback {
  background-color: #060909;
  background-size: 74%;
}

.customer-app .auth-showcase:hover .auth-showcase-card-main { transform: rotate(-1deg) translateY(-3px); }
.customer-app .auth-showcase:hover .auth-showcase-card-top { border-color: rgba(40, 215, 229, 0.7); transform: rotate(3deg) translateY(-4px); }
.customer-app .auth-showcase:hover .auth-showcase-card-bottom { border-color: rgba(184, 255, 61, 0.58); transform: rotate(1deg) translateY(-3px); }

.customer-app .auth-showcase-index {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 239, 233, 0.16);
  color: rgba(226, 239, 233, 0.42);
  font-size: 9px;
  font-weight: 900;
}

.customer-app .auth-account-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 56px 64px 28px;
  flex-direction: column;
  overflow-y: auto;
  color: #111615;
  background: #f2f4ef;
  scrollbar-width: thin;
}

.customer-app .auth-close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 38px;
  height: 38px;
  color: #111615;
  border-color: rgba(17, 22, 21, 0.18);
  background: transparent;
}

.customer-app .auth-close-button:hover {
  color: #111615;
  border-color: #111615;
  background: rgba(17, 22, 21, 0.06);
}

.customer-app .auth-account-panel .auth-heading {
  display: block;
  padding: 0 50px 0 0;
  background: none;
}

.customer-app .auth-account-panel .auth-heading h2 {
  margin: 8px 0 8px;
  color: #111615;
  font-size: 34px;
  line-height: 1.15;
}

.customer-app .auth-account-panel .auth-heading p {
  margin: 0;
  color: #68716e;
  font-size: 13px;
}

.customer-app .auth-account-panel .auth-kicker { color: #087f88; letter-spacing: 0; }

.customer-app .auth-recovery-open .auth-provider-tabs { display: none; }

.customer-app .auth-provider-tabs {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.customer-app .auth-provider-tab {
  display: grid;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(17, 22, 21, 0.16);
  border-radius: 7px;
  color: #303735;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
  text-align: left;
}

.customer-app .auth-provider-tab:hover {
  border-color: rgba(8, 127, 136, 0.58);
  background: #ffffff;
}

.customer-app .auth-provider-tab.active {
  color: #f3f6f1;
  border-color: #101514;
  background: #101514;
  box-shadow: 0 12px 28px rgba(5, 10, 9, 0.16);
}

.customer-app .auth-provider-tab strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .auth-provider-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  color: #111615;
  background: #dbe1dd;
  font-size: 12px;
  font-weight: 900;
}

.customer-app .auth-provider-mark.wechat { background: var(--green); }
.customer-app .auth-provider-mark.phone { color: #f4f7f1; background: #087f88; }

.customer-app .auth-provider-panel,
.customer-app .auth-recovery-panel {
  padding: 24px 0 0;
}

.customer-app .auth-account-panel .auth-tabs {
  display: flex;
  margin: 0 0 18px;
  padding: 0;
  gap: 24px;
  border: 0;
}

.customer-app .auth-account-panel .auth-tabs .mode-button {
  min-height: 34px;
  padding: 0 0 8px;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #7a8380;
  background: transparent;
  font-size: 13px;
}

.customer-app .auth-account-panel .auth-tabs .mode-button.active {
  color: #111615;
  border-color: #111615;
  background: transparent;
}

.customer-app .auth-account-panel .auth-form { gap: 14px; }
.customer-app .auth-account-panel .auth-field { color: #424a48; font-size: 11px; }

.customer-app .auth-account-panel .auth-form input,
.customer-app .auth-account-panel .auth-recovery-panel input {
  min-height: 50px;
  border: 1px solid rgba(17, 22, 21, 0.18);
  border-radius: 7px;
  color: #111615;
  background: #ffffff;
  caret-color: #111615;
}

.customer-app .auth-account-panel .auth-form input::placeholder,
.customer-app .auth-account-panel .auth-recovery-panel input::placeholder { color: #8a9390; }

.customer-app .auth-account-panel .auth-form input:focus,
.customer-app .auth-account-panel .auth-recovery-panel input:focus {
  border-color: #087f88;
  box-shadow: 0 0 0 3px rgba(8, 127, 136, 0.12);
}

.customer-app .auth-account-panel .auth-form-meta { color: #77807d; }
.customer-app .auth-account-panel .auth-link-button { color: #087f88; font-weight: 900; }

.customer-app .auth-account-panel .auth-submit-button {
  min-height: 52px;
  margin-top: 2px;
  color: #101514;
  border-color: var(--green);
  border-radius: 7px;
  background: var(--green);
}

.customer-app .auth-account-panel .auth-submit-button:hover {
  color: #101514;
  border-color: var(--cyan);
  background: var(--cyan);
}

.customer-app .auth-account-panel .wechat-visual {
  min-height: 420px;
  margin: 0 0 12px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(17, 22, 21, 0.14);
  border-radius: 7px;
  color: #4d5653;
  background: #ffffff;
}

.customer-app .auth-wechat-mobile .wechat-visual { display: none; }

.customer-app .wechat-mobile-bridge {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 28px 22px;
  border: 1px solid rgba(17, 22, 21, 0.14);
  border-radius: 7px;
  color: #111615;
  background: #f7faf8;
  text-align: center;
}

.customer-app .wechat-mobile-bridge[hidden] { display: none; }

.customer-app .wechat-mobile-browser-fallback {
  display: grid;
  gap: 9px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(193, 92, 61, 0.28);
  border-radius: 7px;
  color: #5b3428;
  background: #fff8f4;
}

.customer-app .wechat-mobile-browser-fallback[hidden] { display: none; }
.customer-app .wechat-mobile-browser-fallback strong { font-size: 14px; }
.customer-app .wechat-mobile-browser-fallback p { margin: 0; color: #795c53; font-size: 12px; line-height: 1.6; }

.customer-app .wechat-mobile-bridge-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 7px;
  color: #0c1712;
  background: var(--green);
  font-size: 19px;
  font-weight: 900;
}

.customer-app .wechat-mobile-bridge > strong { font-size: 17px; }

.customer-app .wechat-mobile-bridge > p {
  max-width: 32ch;
  margin: 0;
  color: #66706c;
  font-size: 12px;
  line-height: 1.65;
}

.customer-app .wechat-mobile-bridge ol {
  display: grid;
  width: min(100%, 320px);
  margin: 6px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
  text-align: left;
}

.customer-app .wechat-mobile-bridge li {
  display: grid;
  align-items: center;
  min-height: 36px;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  color: #39423f;
  font-size: 12px;
}

.customer-app .wechat-mobile-bridge li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(8, 127, 136, 0.25);
  border-radius: 50%;
  color: #087f88;
  font-weight: 800;
}

.customer-app .auth-account-panel .wechat-qr-loading {
  min-height: 370px;
}

.customer-app .auth-account-panel .wechat-mark {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  background: var(--green);
  font-size: 18px;
}

.customer-app .auth-account-panel .wechat-qr-viewport {
  width: 288px;
  min-height: 404px;
  padding: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
}

.customer-app .auth-account-panel .wechat-qr-widget {
  width: 272px;
  min-height: 390px;
  overflow: hidden;
}

.customer-app .auth-account-panel .wechat-qr-widget iframe {
  width: 320px !important;
  height: 464px !important;
  max-width: none;
  transform: scale(0.84);
  transform-origin: top left;
}

.customer-app .auth-account-panel .wechat-qr-direct-frame {
  width: 320px !important;
  height: 464px !important;
  max-width: none;
  margin: 0 -50px -74px 0;
  transform: scale(0.84);
  transform-origin: top left;
}

.customer-app .auth-account-panel .wechat-qr-fallback { color: #087f88; }

.customer-app .auth-account-panel .auth-notice {
  border-color: rgba(8, 127, 136, 0.2);
  color: #68716e;
  background: rgba(8, 127, 136, 0.06);
}

.customer-app .auth-account-panel .auth-notice strong { color: #087f88; }
.customer-app .auth-account-panel .auth-help-copy,
.customer-app .auth-account-panel .auth-recovery-panel p { color: #707976; }

.customer-app .auth-account-panel .button.ghost {
  color: #111615;
  border-color: rgba(17, 22, 21, 0.22);
  background: transparent;
}

.customer-app .auth-account-panel .button.ghost:hover {
  border-color: #087f88;
  color: #087f88;
  background: rgba(8, 127, 136, 0.05);
}

.customer-app .auth-recovery-title { color: #111615; }

.customer-app .auth-legal-copy {
  margin: auto 0 0;
  padding-top: 22px;
  color: #8a9390;
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 940px) {
  .customer-app .auth-modal { padding: 14px; }
  .customer-app .auth-dialog {
    width: min(760px, calc(100vw - 28px));
    height: min(900px, calc(100dvh - 28px));
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: 230px minmax(0, 1fr);
  }
  .customer-app .auth-showcase {
    padding: 24px 30px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(40, 215, 229, 0.24);
  }
  .customer-app .auth-showcase-brand { grid-column: 1 / -1; }
  .customer-app .auth-showcase-copy { align-self: center; }
  .customer-app .auth-showcase-copy h2 { margin-block: 7px 8px; max-width: 14ch; font-size: 30px; }
  .customer-app .auth-showcase-copy p { font-size: 12px; }
  .customer-app .auth-showcase-gallery { min-height: 130px; }
  .customer-app .auth-showcase-card-main { inset: 4px 54px 0 0; }
  .customer-app .auth-showcase-card-top { width: 78px; height: 78px; }
  .customer-app .auth-showcase-card-bottom { right: 8px; width: 88px; height: 88px; }
  .customer-app .auth-showcase-index { display: none; }
  .customer-app .auth-account-panel { padding: 42px 50px 24px; }
}

@media (max-width: 620px) {
  .customer-app .auth-modal {
    align-items: end;
    align-content: end;
    padding: 0;
  }
  .customer-app .auth-dialog {
    width: 100%;
    height: min(94dvh, 860px);
    max-width: none;
    margin: 0;
    padding: 0;
    grid-template-rows: 172px minmax(0, 1fr);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }
  .customer-app .auth-showcase {
    padding: 20px;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 8px 14px;
  }
  .customer-app .auth-showcase-brand img { width: 30px; height: 30px; }
  .customer-app .auth-showcase-copy .auth-kicker { display: none; }
  .customer-app .auth-showcase-copy h2 { max-width: 11ch; margin: 0 0 7px; font-size: 25px; }
  .customer-app .auth-showcase-copy p { max-width: 24ch; font-size: 11px; line-height: 1.5; }
  .customer-app .auth-showcase-gallery { min-height: 92px; }
  .customer-app .auth-showcase-card-main { inset: 0; }
  .customer-app .auth-showcase-card-top,
  .customer-app .auth-showcase-card-bottom { display: none; }
  .customer-app .auth-account-panel { padding: 34px 20px max(20px, env(safe-area-inset-bottom)); }
  .customer-app .auth-close-button { top: 10px; right: 12px; width: 34px; height: 34px; }
  .customer-app .auth-account-panel .auth-heading h2 { font-size: 27px; }
  .customer-app .auth-provider-tabs { margin-top: 22px; gap: 8px; }
  .customer-app .auth-provider-tab { min-height: 50px; padding: 0 10px; grid-template-columns: 28px minmax(0, 1fr); gap: 7px; }
  .customer-app .auth-provider-mark { width: 27px; height: 27px; }
  .customer-app .auth-provider-tab strong { font-size: 12px; }
  .customer-app .auth-provider-panel,
  .customer-app .auth-recovery-panel { padding: 20px 0 0; }
  .customer-app .auth-account-panel .auth-form-meta { align-items: center; flex-direction: row; }
  .customer-app .auth-account-panel .wechat-visual { min-height: 392px; }
  .customer-app .auth-account-panel .wechat-qr-loading { min-height: 344px; }
  .customer-app .wechat-mobile-bridge { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-app .auth-showcase-card { transition: none; }
}

/* Account binding and credential controls stay compact on desktop and stack cleanly on mobile. */
.customer-app .account-bind-modal {
  z-index: 2400;
  padding: 20px;
  background: rgba(3, 7, 8, 0.78);
  backdrop-filter: blur(16px);
}

.customer-app .account-bind-dialog {
  position: relative;
  width: min(510px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 36px;
  border: 1px solid rgba(40, 215, 229, 0.42);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(11, 25, 24, 0.98), rgba(5, 11, 13, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46), 0 0 44px rgba(40, 215, 229, 0.08);
  overflow-y: auto;
}

.customer-app .account-bind-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.customer-app .account-bind-dialog h2 {
  margin: 10px 0 9px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.customer-app .account-bind-dialog > p {
  max-width: 39ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.customer-app .account-bind-summary {
  display: grid;
  gap: 5px;
  margin: 24px 0;
  padding: 15px 16px;
  border-left: 3px solid var(--green);
  background: rgba(184, 255, 61, 0.07);
}

.customer-app .account-bind-summary strong { color: var(--text); font-size: 14px; }
.customer-app .account-bind-summary span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.customer-app .account-bind-form {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.customer-app .account-bind-form[hidden] {
  display: none;
}

.customer-app .account-bind-form .field {
  display: grid;
  gap: 6px;
}

.customer-app .account-bind-form .field > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.customer-app .account-bind-form input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}

.customer-app .account-bind-status {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
  background: rgba(40, 215, 229, 0.08);
  font-size: 12px;
  line-height: 1.5;
}

.customer-app .account-bind-status strong {
  color: var(--text);
}

.customer-app .account-bind-status[hidden] {
  display: none;
}
.customer-app .account-bind-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin: 2px 0 14px;
  color: rgba(247, 247, 239, 0.72);
  font-size: 12px;
  line-height: 1.7;
}

.customer-app .account-bind-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.customer-app .account-bind-consent label {
  cursor: pointer;
}

.customer-app .account-bind-policy-link {
  padding: 0 1px;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.customer-app .account-bind-policy-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.customer-app .account-bind-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }

.customer-app .account-policy-modal {
  z-index: 2410;
  padding: 14px;
  background: rgba(3, 7, 8, 0.88);
}

.customer-app .account-policy-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
}

.customer-app .account-policy-head {
  align-items: flex-start;
}

.customer-app .account-policy-head h2 {
  margin: 5px 0 0;
}

.customer-app .account-policy-meta {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.customer-app .account-policy-content {
  max-height: min(58dvh, 560px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(247, 247, 239, 0.82);
  background: rgba(0, 0, 0, 0.24);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
  overflow: auto;
  overflow-wrap: anywhere;
}

.customer-app .profile-security-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(240, 246, 240, 0.1);
}

.customer-app .profile-security-head,
.customer-app .profile-password-section,
.customer-app .profile-identity-card {
  min-width: 0;
}

.customer-app .profile-security-head,
.customer-app .profile-password-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-app .profile-security-head h3 { margin: 3px 0 0; color: var(--text); font-size: 17px; }
.customer-app .profile-security-status { color: var(--green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.customer-app .profile-identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.customer-app .profile-identity-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(240, 246, 240, 0.1);
  border-radius: 10px;
  background: rgba(8, 14, 15, 0.76);
}

.customer-app .profile-identity-card > span,
.customer-app .profile-password-copy > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.customer-app .profile-identity-card strong { overflow: hidden; color: var(--text); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .profile-identity-card small,
.customer-app .profile-password-copy small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.customer-app .profile-identity-card .button { justify-self: start; margin-top: 5px; }
.customer-app .profile-bind-phone-form { display: grid; gap: 8px; margin-top: 5px; }
.customer-app .profile-bind-phone-form .field { gap: 5px; }
.customer-app .profile-bind-phone-form .field > span { color: var(--muted); font-size: 10px; }
.customer-app .profile-bind-phone-form input { min-height: 38px; }
.customer-app .profile-password-section { align-items: center; flex-wrap: wrap; }
.customer-app .profile-password-copy { display: grid; gap: 4px; min-width: 0; }
.customer-app .profile-password-copy small { max-width: 30ch; }
.customer-app .profile-password-form { flex: 1 1 100%; padding-top: 10px; }
.customer-app .profile-password-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.customer-app .password-field-shell { position: relative; display: block; }
.customer-app .password-field-shell input { width: 100%; padding-right: 48px; }
.customer-app .password-field-shell button { position: absolute; top: 50%; right: 8px; min-height: 26px; padding: 0 5px; border: 0; color: var(--cyan); background: transparent; font: inherit; font-size: 10px; cursor: pointer; transform: translateY(-50%); }
.customer-app .profile-security-note { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(255, 184, 92, 0.45); background: rgba(255, 184, 92, 0.08); color: #f5d39c; font-size: 11px; line-height: 1.5; }
.customer-app .profile-security-note strong { color: #fff0c9; }

@media (max-width: 700px) {
  .customer-app .account-bind-dialog { max-height: calc(100dvh - 16px); padding: 28px 20px 20px; }
  .customer-app .account-bind-actions { grid-template-columns: 1fr; }
  .customer-app .account-policy-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 20px 16px; }
  .customer-app .account-policy-content { max-height: 62dvh; padding: 14px; font-size: 13px; }
  .customer-app .profile-identity-grid,
  .customer-app .profile-password-grid { grid-template-columns: 1fr; }
  .customer-app .profile-security-head { align-items: flex-start; flex-direction: column; }
  .customer-app .profile-password-section { align-items: stretch; }
  .customer-app .profile-password-section > .button { width: 100%; }
}

/* AI styles and personal assets: visual choices stay compact, tactile and image-led. */
.customer-app .ai-style-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.customer-app .ai-style-heading span {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.customer-app .ai-style-heading small,
.customer-app .my-assets-status {
  color: var(--muted);
  font-size: 11px;
}

.customer-app .ai-style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.customer-app .ai-style-card {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 70px;
  padding: 8px 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #c7ceca;
  background: rgba(8, 12, 13, 0.82);
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease;
}

.customer-app .ai-style-card:hover {
  border-color: rgba(38, 244, 255, 0.68);
  color: #f7fff4;
  transform: translateY(-2px);
}

.customer-app .ai-style-card.active {
  border-color: var(--green);
  color: #071006;
  background: var(--green);
  box-shadow: 0 8px 24px rgba(184, 255, 61, 0.16);
}

.customer-app .ai-style-preview {
  position: relative;
  display: block;
  width: 36px;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  background-color: var(--panel-strong);
}

.customer-app .ai-style-preview::before,
.customer-app .ai-style-preview::after {
  position: absolute;
  content: "";
}

.customer-app .ai-style-preview-line::before {
  inset: 5px 7px;
  border-top: 2px solid var(--cyan);
  border-bottom: 1px solid var(--green);
  transform: skewY(-22deg);
}

.customer-app .ai-style-preview-pixel {
  background: conic-gradient(var(--cyan) 25%, var(--panel-strong) 0 50%, var(--green) 0 75%, var(--panel-strong) 0) 0 0 / 8px 8px;
}

.customer-app .ai-style-preview-cyber::before {
  inset: 5px;
  border: 1px solid var(--cyan);
  box-shadow: 4px 3px 0 var(--coral), -3px -2px 0 var(--green);
  transform: skewX(-14deg);
}

.customer-app .ai-style-preview-street::before {
  width: 28px;
  height: 7px;
  top: 10px;
  left: 4px;
  background: var(--text);
  box-shadow: 5px 6px 0 var(--cyan);
  transform: rotate(-14deg);
}

.customer-app .ai-style-preview-pop::before {
  width: 11px;
  height: 11px;
  top: 4px;
  left: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 13px 0 0 var(--green), 6px 10px 0 var(--cyan), 19px 10px 0 var(--coral);
}

.customer-app .ai-style-preview-illustration::before {
  width: 23px;
  height: 16px;
  top: 5px;
  left: 6px;
  border: 2px solid var(--cyan);
  border-top-color: var(--green);
  border-radius: 50% 38% 55% 32%;
  transform: rotate(-10deg);
}

.customer-app .ai-style-preview-comic::before {
  inset: 3px;
  background: repeating-conic-gradient(from 4deg at 50% 50%, var(--text) 0 7deg, transparent 7deg 18deg);
  clip-path: polygon(50% 0, 58% 35%, 100% 26%, 66% 50%, 100% 76%, 59% 65%, 50% 100%, 41% 66%, 0 76%, 34% 50%, 0 26%, 42% 35%);
}

.customer-app .ai-style-preview-manga::before {
  inset: 3px;
  border: 1px solid var(--text);
  background:
    repeating-linear-gradient(135deg, transparent 0 3px, rgba(242, 245, 239, 0.52) 3px 4px),
    linear-gradient(115deg, transparent 0 38%, var(--text) 39% 47%, transparent 48% 61%, var(--muted) 62% 70%, transparent 71%);
  clip-path: polygon(7% 8%, 94% 0, 82% 31%, 100% 48%, 72% 62%, 88% 100%, 50% 78%, 16% 96%, 28% 59%, 0 39%);
}

.customer-app .ai-style-preview-retro {
  background-color: var(--panel-strong);
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1.5px);
  background-size: 5px 5px;
}

.customer-app .ai-style-preview-magazine::before {
  inset: 4px;
  border-top: 3px solid var(--text);
  border-bottom: 1px solid var(--cyan);
  background: linear-gradient(90deg, var(--muted) 0 28%, transparent 28% 36%, var(--muted) 36% 64%, transparent 64% 72%, var(--muted) 72%);
}

.customer-app .ai-style-preview-auto::before {
  inset: 5px;
  border: 1px solid var(--muted);
  background: linear-gradient(145deg, transparent 0 42%, var(--cyan) 43% 49%, var(--green) 50% 57%, transparent 58%);
}

.customer-app .ai-style-card.active .ai-style-preview {
  border-color: rgba(7, 16, 6, 0.6);
  background-color: rgba(7, 16, 6, 0.88);
}

.customer-app .ai-style-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .my-assets-panel {
  min-height: 0;
}

.customer-app .creator-artwork-panel {
  min-height: 0;
}

.customer-app .creator-artwork-panel .section-title-row {
  margin-bottom: 8px;
}

.customer-app .creator-artwork-count {
  color: var(--green);
  font-size: 12px;
}

.customer-app .tool-section-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.customer-app .creator-artwork-panel .creator-artwork-library {
  max-height: 620px;
  overflow: auto;
  scrollbar-width: thin;
}

.customer-app .my-assets-tabs {
  display: inline-flex;
  gap: 3px;
  margin: 4px 0 12px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 7, 8, 0.72);
}

.customer-app .my-assets-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.customer-app .my-assets-tabs button.active {
  color: #071006;
  background: var(--green);
}

.customer-app .profile-material-tabs {
  flex: 0 0 auto;
  margin: 0;
}

.customer-app .profile-ai-asset-row .creator-artwork-media img {
  object-fit: contain;
  background: var(--panel-strong);
}

.customer-app .my-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  scrollbar-width: thin;
}

.customer-app .my-asset-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(8, 11, 12, 0.74);
}

.customer-app .my-asset-image {
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-strong);
  cursor: pointer;
}

.customer-app .my-asset-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.customer-app .my-asset-image:hover img { transform: scale(1.045); }

.customer-app .my-asset-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-app .my-asset-copy strong,
.customer-app .my-asset-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .my-asset-copy strong { color: var(--text); font-size: 12px; }
.customer-app .my-asset-copy span { color: var(--muted); font-size: 10px; }
.customer-app .my-asset-card > .button { width: 100%; min-height: 32px; }

.customer-app .my-assets-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 190px;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.customer-app .my-assets-empty span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(184, 255, 61, 0.45);
  border-radius: 50%;
  color: var(--green);
  font-size: 22px;
}

.customer-app .my-assets-empty strong { color: var(--text); font-size: 13px; }
.customer-app .my-assets-empty small { font-size: 11px; }

@media (max-width: 820px) {
  .customer-app .ai-style-grid { grid-template-columns: repeat(5, minmax(52px, 1fr)); }
  .customer-app .ai-style-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .customer-app .my-assets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
}

@media (max-width: 420px) {
  .customer-app .ai-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .my-assets-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .customer-app .my-assets-tabs button { padding-inline: 10px; }
}

/* Screenshot deterrence: this is an auxiliary browser-layer guard, not OS screenshot blocking. */
.capture-guard {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
  color: rgba(255, 255, 255, .68);
  font: 600 11px/1.4 Manrope, system-ui, sans-serif;
  letter-spacing: .16em;
  text-align: center;
  pointer-events: none;
}
.capture-guard.is-active { display: flex; }
@media print {
  .capture-guard { display: flex !important; }
  body > *:not(.capture-guard) { visibility: hidden !important; }
}

/* Payment and creator-ledger surfaces share the editor's compact dark system. */
.customer-app .wechat-payment-qr { display: grid; place-items: center; gap: 10px; margin: 18px auto 0; padding: 14px; border: 1px solid rgba(38, 244, 255, .35); border-radius: 12px; background: rgba(7, 12, 14, .72); }
.customer-app .wechat-payment-qr[hidden] { display: none; }
.customer-app .wechat-payment-qr img { display: block; width: min(220px, 58vw); aspect-ratio: 1; border-radius: 6px; background: #fff; image-rendering: pixelated; }
.customer-app .wechat-payment-qr span { color: var(--muted); font-size: 12px; text-align: center; }
.customer-app .ledger-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.customer-app .ledger-summary-grid article { display: grid; gap: 5px; min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(8, 12, 13, .68); }
.customer-app .ledger-summary-grid strong { color: var(--green); font-size: 20px; }
.customer-app .ledger-summary-grid span { color: var(--muted); font-size: 11px; }
.customer-app .ledger-toolbar { display: grid; gap: 12px; margin-bottom: 14px; }
.customer-app .ledger-withdraw-form { display: flex; align-items: end; gap: 10px; }
.customer-app .ledger-withdraw-form .field { flex: 1; margin: 0; }
.customer-app .ledger-entry-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.customer-app .ledger-entry-row > div:first-child { display: grid; gap: 4px; min-width: 0; }
.customer-app .ledger-entry-row span, .customer-app .ledger-entry-row small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-app .ledger-entry-row > div:last-child { display: grid; justify-items: end; gap: 4px; white-space: nowrap; }
.customer-app .ledger-entry-row em { color: var(--cyan); font-size: 11px; font-style: normal; }
.customer-app .ledger-amount { color: var(--green); }
.customer-app .ledger-subheading { padding: 16px 0 4px; color: var(--text); font-size: 12px; font-weight: 800; }
@media (max-width: 720px) {
  .customer-app .ledger-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .ledger-withdraw-form { align-items: stretch; flex-direction: column; }
  .customer-app .ledger-entry-row { align-items: flex-start; }
}

/* Personal earnings: persistent private summary and an actionable rules guide. */
body.customer-app #profileView .profile-hero-panel {
  width: min(100%, 1260px);
  grid-template-columns: 108px minmax(240px, 1fr) minmax(360px, .96fr) 220px;
}

.customer-app .profile-earnings-overview {
  grid-column: 3;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(148px, .9fr);
  align-items: center;
  gap: 8px 18px;
  min-width: 0;
  padding: 2px 18px;
  border-inline: 1px solid rgba(226, 239, 233, .14);
}

.customer-app .profile-earnings-overview[hidden] { display: none !important; }

.customer-app .profile-earnings-main {
  display: grid;
  min-width: 0;
  min-height: 68px;
  padding: 6px 0;
  align-content: center;
  gap: 3px;
  border: 0;
  color: var(--soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.customer-app .profile-earnings-main > span,
.customer-app .profile-earnings-balances span {
  color: rgba(217, 221, 215, .68);
  font-size: 10px;
  font-weight: 800;
}

.customer-app .profile-earnings-main > strong,
.customer-app .profile-earnings-balances strong {
  min-width: 6.5ch;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.customer-app .profile-earnings-main > strong {
  color: var(--green);
  font-size: 32px;
  line-height: 1.08;
}

.customer-app .profile-earnings-main > small {
  overflow: hidden;
  color: rgba(217, 221, 215, .58);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-app .profile-earnings-main:hover > strong,
.customer-app .profile-earnings-main:focus-visible > strong { color: var(--cyan); }
.customer-app .profile-earnings-main:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.customer-app .profile-earnings-balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-app .profile-earnings-balances > div { display: grid; min-width: 0; gap: 4px; }
.customer-app .profile-earnings-balances > div:first-child strong { color: var(--cyan); }
.customer-app .profile-earnings-balances > div:last-child strong { color: #e8b86a; }
.customer-app .profile-earnings-balances strong { font-size: 16px; }

.customer-app .profile-earnings-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.customer-app .profile-earnings-actions .button {
  min-width: 0;
  min-height: 34px;
  padding-inline: 10px;
  border-radius: 6px;
  font-size: 10px;
}

.customer-app .profile-earnings-actions .button:last-child {
  border-color: rgba(232, 184, 106, .48);
  color: #f1cd8e;
  background: rgba(232, 184, 106, .08);
}

.customer-app .profile-earnings-frozen {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffad80 !important;
  font-size: 10px !important;
}

.customer-app .profile-earnings-overview.is-loading #profileLifetimeEarnings,
.customer-app .profile-earnings-overview.is-loading #profileAvailableEarnings,
.customer-app .profile-earnings-overview.is-loading #profilePendingEarnings {
  color: transparent;
  border-radius: 4px;
  background: rgba(226, 239, 233, .11);
}

.customer-app .profile-earnings-overview.has-error .profile-earnings-main > small { color: #ffad80; }
body.customer-app #profileView .profile-hero-tools { grid-column: 4; }
body.customer-app #profileView .profile-social-stats { grid-column: 2 / span 3; }

.customer-app .profile-space-nav button { position: relative; }
.customer-app .profile-space-nav button[data-profile-section="ledger"]::before { content: "¥"; }
body.customer-app #profileView .profile-space-nav .profile-core-nav-end {
  margin-right: 8px;
  border-right: 1px solid rgba(226, 239, 233, .18);
}

.customer-app.profile-earnings-guide-open,
.customer-app .profile-earnings-guide-open { overflow: hidden; }

.customer-app .profile-earnings-guide-modal { padding: 20px; }
.customer-app .profile-earnings-guide-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0c1011;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .52);
}

.customer-app .profile-earnings-guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid rgba(226, 239, 233, .13);
}

.customer-app .profile-earnings-guide-header h2 { margin: 0; color: var(--soft); font-size: 26px; letter-spacing: 0; }
.customer-app .profile-earnings-guide-header p { max-width: 58ch; margin: 7px 0 0; color: rgba(217, 221, 215, .65); line-height: 1.55; }

.customer-app .profile-earnings-guide-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow-y: auto;
}

.customer-app .profile-earnings-guide-content section {
  display: grid;
  min-width: 0;
  padding: 24px;
  align-content: start;
  gap: 10px;
  border-bottom: 1px solid rgba(226, 239, 233, .1);
}

.customer-app .profile-earnings-guide-content section:nth-child(odd) { border-right: 1px solid rgba(226, 239, 233, .1); }
.customer-app .profile-earnings-guide-content h3 { margin: 0; color: var(--soft); font-size: 17px; }
.customer-app .profile-earnings-guide-content p { margin: 0; color: rgba(217, 221, 215, .72); line-height: 1.7; }
.customer-app .profile-earnings-guide-content .button { justify-self: start; min-height: 40px; margin-top: 4px; border-radius: 6px; }

.customer-app .profile-earnings-guide-actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  background: #0c1011;
}

.customer-app .profile-earnings-guide-actions .button { min-height: 44px; }

@media (max-width: 1100px) {
  body.customer-app #profileView .profile-hero-panel { grid-template-columns: 96px minmax(0, 1fr) minmax(340px, .9fr); }
  .customer-app .profile-earnings-overview { grid-column: 3; }
  body.customer-app #profileView .profile-hero-tools { grid-column: 2 / span 2; justify-content: flex-start; }
  body.customer-app #profileView .profile-social-stats { grid-column: 2 / span 2; }
  .customer-app .profile-space-nav {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .customer-app .profile-space-nav button { scroll-snap-align: start; }
}

@media (max-width: 820px) {
  body.customer-app #profileView .profile-hero-panel {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 14px 12px;
  }
  body.customer-app #profileView .profile-earnings-overview {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 0 0;
    border-inline: 0;
    border-top: 1px solid rgba(226, 239, 233, .14);
  }
  .customer-app .profile-earnings-main { min-height: 62px; padding: 0; }
  .customer-app .profile-earnings-main > strong { font-size: 26px; }
  .customer-app .profile-earnings-main > small { white-space: normal; }
  .customer-app .profile-earnings-balances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-app .profile-earnings-balances > div { min-height: 56px; padding: 9px 10px; border-block: 1px solid rgba(226, 239, 233, .1); }
  .customer-app .profile-earnings-balances > div:first-child { border-right: 1px solid rgba(226, 239, 233, .1); }
  .customer-app .profile-earnings-actions .button { min-height: 44px; font-size: 11px; }
  body.customer-app #profileView .profile-hero-tools { grid-column: 1 / -1; grid-row: 3; }
  body.customer-app #profileView .profile-social-stats { grid-column: 1 / -1; grid-row: 4; }
  .customer-app .profile-earnings-guide-modal { align-items: end; padding: 0; }
  .customer-app .profile-earnings-guide-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }
  .customer-app .profile-earnings-guide-header { padding: 20px 16px 16px; }
  .customer-app .profile-earnings-guide-header h2 { font-size: 23px; }
  .customer-app .profile-earnings-guide-content { grid-template-columns: 1fr; }
  .customer-app .profile-earnings-guide-content section { padding: 18px 16px; border-right: 0 !important; }
  .customer-app .profile-earnings-guide-content .button { width: 100%; min-height: 44px; }
  .customer-app .profile-earnings-guide-actions { position: sticky; bottom: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .customer-app .profile-earnings-guide-actions .button { width: 100%; }
}

@media (max-width: 560px) {
  body.customer-app #profileView .profile-hero-panel {
    margin-top: 8px;
    gap: 10px 12px;
  }
  body.customer-app #profileView .profile-hero-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  body.customer-app #profileView .profile-hero-tools #profileDraftBtn { grid-column: auto; }
  body.customer-app #profileView .profile-hero-tools .button {
    min-height: 44px;
    padding-inline: 5px;
    font-size: 11px;
    white-space: nowrap;
  }
  body.customer-app #profileView .profile-workspace { margin-top: 8px; }
}

/* Creativerse identity plate: a compact branded serial, not a generic status chip. */
.customer-app #profileView .profile-user-id {
  position: relative;
  display: inline-grid;
  grid-template-columns: 36px max-content 8px;
  min-height: 40px;
  padding: 3px 9px 3px 3px;
  align-items: stretch;
  gap: 10px;
  overflow: hidden;
  border-radius: 8px;
  color: #f7f7ef;
  background: #080b0d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.customer-app #profileView .profile-user-id::after {
  position: absolute;
  top: 0;
  right: 17px;
  width: 34px;
  height: 1px;
  content: "";
  background: #28d7e5;
}

.customer-app #profileView .profile-user-id[hidden] { display: none; }

.customer-app #profileView .profile-user-id-brand {
  display: grid;
  min-width: 36px;
  place-items: center;
  border-radius: 5px;
  color: #050608;
  background: #28d7e5;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.02em;
}

.customer-app #profileView .profile-user-id-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  line-height: 1;
}

.customer-app #profileView .profile-user-id-copy small {
  color: rgba(173, 232, 233, 0.72);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.customer-app #profileView .profile-user-id-copy strong {
  color: #f7f7ef;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.customer-app #profileView .profile-user-id-signal {
  position: relative;
  display: block;
  width: 8px;
  min-height: 24px;
  align-self: center;
}

.customer-app #profileView .profile-user-id-signal::before,
.customer-app #profileView .profile-user-id-signal::after {
  position: absolute;
  left: 3px;
  content: "";
  background: #28d7e5;
}

.customer-app #profileView .profile-user-id-signal::before {
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.customer-app #profileView .profile-user-id-signal::after {
  bottom: 3px;
  width: 1px;
  height: 9px;
  opacity: 0.48;
}

.customer-app #profileView .profile-public-user-id {
  width: max-content;
  min-height: 36px;
  margin: 6px 0 8px;
  grid-template-columns: 31px max-content 7px;
  gap: 8px;
}

.customer-app #profileView .profile-public-user-id .profile-user-id-brand {
  min-width: 31px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .customer-app #profileView .profile-name-line { gap: 8px; }
  .customer-app #profileView .profile-user-id {
    grid-template-columns: 31px max-content 7px;
    min-height: 36px;
    padding-right: 8px;
    gap: 8px;
  }
  .customer-app #profileView .profile-user-id-brand {
    min-width: 31px;
    font-size: 13px;
  }
  .customer-app #profileView .profile-user-id-copy strong { font-size: 11px; }
}

/* Final customer preview contrast override: keep transparent artwork visible
   without changing the uploaded asset, export, or editor rendering. */
.customer-app .home-art-tile button,
.customer-app .artwork-image-button,
.customer-app .artwork-preview-frame,
.customer-app .artwork-preview-media {
  background-color: #f4f6f4 !important;
  background-image:
    linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%),
    linear-gradient(45deg, transparent 75%, rgba(18, 24, 24, 0.08) 75%),
    linear-gradient(45deg, rgba(18, 24, 24, 0.08) 25%, transparent 25%) !important;
  background-position: 0 0, 0 0, 9px 9px, 9px 9px !important;
  background-size: 18px 18px !important;
}

.customer-app .home-art-tile button img,
.customer-app .artwork-image-button img,
.customer-app .artwork-preview-frame img,
.customer-app .artwork-preview-media > img {
  background: transparent !important;
}
.creator-artwork-actions .ai-action-button {
  color: #07100a;
  background: #b8ff3d;
  border-color: #b8ff3d;
  white-space: nowrap;
}
.creator-artwork-manage-actions .ai-action-button { color: #07100a; background: var(--green); border-color: var(--green); white-space: nowrap; }
.profile-ai-credits-status { color: var(--muted); font-size: .82rem; letter-spacing: .02em; align-self: center; white-space: nowrap; }
.creator-artwork-actions .ai-action-button:disabled { opacity: .58; cursor: wait; }
@media (max-width: 640px) {
  .creator-artwork-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .creator-artwork-actions .mini-button { min-width: 0; padding-inline: 8px; font-size: .75rem; }
}


/* Homepage editorial bundle: kept in the server's existing static allowlist. */
/* Editorial home direction: a black studio floor with ticketed culture signals and one lime action. */
body.customer-app #homeView {
  --ed-ink: #0d0d0d;
  --ed-surface: #141414;
  --ed-surface-2: #18181b;
  --ed-line: rgba(255,255,255,.08);
  --ed-copy: #f3f3ef;
  --ed-muted: #969692;
  --ed-lime: #a3ff2e;
  --ed-radius: 0;
  background: var(--ed-ink) !important;
  color: var(--ed-copy);
  font-family: "Creativerse Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.customer-app #homeView .home-topbar {
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--ed-line);
  background: rgba(13,13,13,.96);
  backdrop-filter: none;
}
body.customer-app #homeView .brand-mark {
  border: 1px solid var(--ed-lime);
  border-radius: 0;
  background: var(--ed-lime);
}
body.customer-app #homeView .home-nav button,
body.customer-app #homeView .home-actions .button,
body.customer-app #homeView .home-actions .user-chip { border-radius: 0; }
body.customer-app #homeView .home-nav button { color: #9c9c98; }
body.customer-app #homeView .home-nav button:hover { color: var(--ed-copy); background: transparent; }
body.customer-app #homeView #homeStartBtn { color: var(--ed-lime); border-color: var(--ed-line); }
body.customer-app #homeView .home-hero {
  --home-hero-copy-width: 46%;
  min-height: min(740px, calc(100dvh - 76px));
  background: var(--ed-ink) !important;
}
body.customer-app #homeView .home-hero::before {
  inset: 0 0 0 var(--home-hero-copy-width);
  z-index: 0;
  background: #101010;
}
body.customer-app #homeView .home-hero::after {
  inset: 0 0 0 var(--home-hero-copy-width);
  z-index: 1;
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: linear-gradient(90deg, rgba(13,13,13,.52), transparent 28%), linear-gradient(0deg, rgba(13,13,13,.3), transparent 45%);
}
body.customer-app #homeView .home-hero-background {
  inset: 0 0 0 var(--home-hero-copy-width);
  z-index: 0;
  width: calc(100% - var(--home-hero-copy-width));
  filter: saturate(.78) contrast(1.04);
  object-position: center;
}
body.customer-app #homeView #homeHeroEyebrow {
  display: inline-block;
  min-height: 0;
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #777773;
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
}
body.customer-app #homeView .home-hero.is-copy-entering #homeHeroEyebrow,
body.customer-app #homeView .home-hero.is-copy-entering #homeHeroTitle,
body.customer-app #homeView .home-hero.is-copy-entering #homeHeroDescription,
body.customer-app #homeView .home-hero.is-copy-entering .home-hero-actions { animation: none !important; }
body.customer-app #homeView .home-hero-copy {
  z-index: 3;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  max-width: 640px;
  padding: clamp(56px, 6vw, 92px) clamp(32px, 5.2vw, 88px);
}
body.customer-app #homeView .home-hero-copy::after { display: none; }
body.customer-app #homeView .home-hero #homeHeroPreview:not([hidden]) {
  position: absolute;
  inset: 0 0 0 var(--home-hero-copy-width);
  z-index: 2;
  display: grid !important;
  place-items: center;
  pointer-events: none;
}
body.customer-app #homeView .home-hero-editorial-placeholder { position: relative; display: grid; place-items: center; width: min(52%, 520px); aspect-ratio: .78; color: rgba(243,243,239,.74); }
body.customer-app #homeView .hero-placeholder-code { position: absolute; top: 4%; left: 0; color: rgba(243,243,239,.46); font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .1em; }
body.customer-app #homeView .hero-placeholder-garment { position: relative; display: block; width: 74%; height: 74%; filter: drop-shadow(0 28px 30px rgba(0,0,0,.4)); }
body.customer-app #homeView .hero-placeholder-body { position: absolute; inset: 9% 21% 0; border-radius: 22% 22% 8% 8%; background: #222428; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
body.customer-app #homeView .hero-placeholder-sleeve { position: absolute; top: 14%; width: 31%; height: 44%; background: #222428; }
body.customer-app #homeView .hero-placeholder-sleeve.left { left: 3%; border-radius: 48% 12% 16% 52%; transform: rotate(18deg); }
body.customer-app #homeView .hero-placeholder-sleeve.right { right: 3%; border-radius: 12% 48% 52% 16%; transform: rotate(-18deg); }
body.customer-app #homeView .hero-placeholder-garment b { position: absolute; top: 42%; left: 46%; z-index: 1; color: rgba(163,255,46,.8); font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(26px, 4vw, 48px); font-weight: 500; letter-spacing: .04em; }
body.customer-app #homeView .hero-placeholder-caption { position: absolute; right: 0; bottom: 4%; color: rgba(243,243,239,.5); font-size: 10px; letter-spacing: .06em; }

body.customer-app #homeView .home-hero-copy h1,
body.customer-app #homeView #homeHeroTitle {
  display: block;
  width: 100%;
  max-width: 11em;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: visible;
  color: var(--ed-copy);
  font-size: clamp(50px, 4.55vw, 78px) !important;
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.06;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}
body.customer-app #homeView #homeHeroDescription {
  width: min(100%, 31ch);
  max-width: 31ch;
  margin: 30px 0 0;
  color: #aaa9a3;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
}
body.customer-app #homeView .home-hero-actions { align-items: center; gap: 22px; margin-top: 28px; }
body.customer-app #homeView .home-hero-actions .button { min-height: 50px; border-radius: 0; }
body.customer-app #homeView .home-hero-actions .button.primary { min-width: 164px; border: 0; color: #0b0b0b; background: var(--ed-lime); box-shadow: none; }
body.customer-app #homeView .home-hero-actions .button.ghost { min-height: auto; padding: 6px 0; border: 0; color: var(--ed-copy); background: transparent; text-decoration: underline; text-decoration-color: rgba(255,255,255,.38); text-underline-offset: 5px; }
body.customer-app #homeView .home-hero-bg-controls {
  top: auto; right: clamp(22px, 4vw, 64px); bottom: 26px; left: auto; z-index: 4; width: auto; transform: none;
}
body.customer-app #homeView .home-hero-dot-nav,
body.customer-app #homeView .home-hero-pause,
body.customer-app #homeView .home-hero-progress { display: none !important; }
body.customer-app #homeView .home-hero-counter { min-width: auto; color: var(--ed-copy); font-size: 11px; letter-spacing: .14em; }
body.customer-app #homeView .home-hero-bg-controls::before {
  content: "280G 重磅气流纺 · 环保数码直喷";
  position: absolute; right: calc(100% + 18px); bottom: -1px; width: max-content;
  padding: 8px 10px;
  border: 1px solid rgba(13,13,13,.22);
  color: #0d0d0d;
  background: #f3f3ef;
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px; letter-spacing: .04em; white-space: nowrap;
}
body.customer-app #homeView .cr-broadcast-root { display: none; }

/* Ticket stub activity stream */
body.customer-app #homeView .cr-radar-root {
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 80px);
  border-top: 1px solid var(--ed-line);
  background: var(--ed-ink);
}
body.customer-app #homeView .cr-radar-root::before { display: none; }
body.customer-app #homeView .cr-radar-live-line { color: #898985; }
body.customer-app #homeView .cr-radar-live-dot { display: none; }
body.customer-app #homeView .cr-radar-title { max-width: 10ch; color: var(--ed-copy); font-size: clamp(46px, 6vw, 82px); letter-spacing: -.06em; }
body.customer-app #homeView .cr-radar-intro { color: var(--ed-muted); }
body.customer-app #homeView .cr-radar-head-stats { display: none; }
body.customer-app #homeView .cr-radar-tabs { margin-top: 38px; padding-bottom: 14px; border-bottom: 1px solid var(--ed-line); }
body.customer-app #homeView .cr-radar-tab { min-height: 38px; padding: 0 14px; border-radius: 0; border-color: var(--ed-line); color: var(--ed-muted); background: transparent; }
body.customer-app #homeView .cr-radar-tab[aria-selected="true"] { color: #0b0b0b; border-color: var(--ed-lime); background: var(--ed-lime); }
body.customer-app #homeView .cr-radar-list { display: flex; gap: 12px; margin-top: 18px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
body.customer-app #homeView .cr-radar-list::-webkit-scrollbar { display: none; }
body.customer-app #homeView .cr-radar-card,
body.customer-app #homeView .cr-radar-card:first-child { flex: 0 0 min(430px, 84vw); grid-column: auto; scroll-snap-align: start; border: 1px dashed rgba(255,255,255,.22); border-radius: 0; background: var(--ed-surface-2); box-shadow: none; }
body.customer-app #homeView .cr-radar-card:hover { transform: translateY(-3px); border-color: rgba(163,255,46,.62); }
body.customer-app #homeView .cr-radar-card-trigger,
body.customer-app #homeView .cr-radar-card:first-child .cr-radar-card-trigger { grid-template-columns: 34% minmax(0, 1fr); min-height: 270px; }
body.customer-app #homeView .cr-radar-card-image-wrap { background: #202023; }
body.customer-app #homeView .cr-radar-card-image-wrap::after { background: linear-gradient(90deg, transparent 58%, rgba(20,20,20,.55)); }
body.customer-app #homeView .cr-radar-card-top { padding: 12px 14px; background: transparent; border-bottom: 1px solid var(--ed-line); }
body.customer-app #homeView .cr-radar-card-category { color: var(--ed-lime); }
body.customer-app #homeView .cr-radar-card-urgency { border-radius: 0; color: var(--ed-muted); background: transparent; }
body.customer-app #homeView .cr-radar-card-copy { padding: 16px 15px 18px; }
body.customer-app #homeView .cr-radar-card-countdown { border: 0; border-radius: 0; padding: 0; color: #8b8b86; background: transparent; }
body.customer-app #homeView .cr-radar-card-title { color: var(--ed-copy); font-size: 20px; }
body.customer-app #homeView .cr-radar-card-summary { color: var(--ed-muted); }
body.customer-app #homeView .cr-radar-card-meta { color: #7f7f7a; }
body.customer-app #homeView .cr-radar-card-foot { min-height: 58px; padding: 10px 14px; border-top: 1px dashed rgba(255,255,255,.22); background: transparent; }
body.customer-app #homeView .cr-radar-card-source { color: #73736f; }
body.customer-app #homeView .cr-radar-apply { flex: 0 0 auto; min-height: 36px; padding: 0; border: 0; color: var(--ed-copy); background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
body.customer-app #homeView .cr-radar-apply:hover { color: var(--ed-lime); }
body.customer-app #homeView .cr-radar-more { min-height: 44px; border-radius: 0; border-color: var(--ed-line); color: var(--ed-copy); background: transparent; }
body.customer-app #homeView .cr-radar-more:hover { border-color: var(--ed-lime); color: var(--ed-lime); background: transparent; }

/* Founder agreement */
body.customer-app #homeView .cr-creator-root { padding: clamp(70px, 9vw, 128px) clamp(18px, 5vw, 80px); border-top: 1px solid var(--ed-line); background: #101010; }
body.customer-app #homeView .cr-creator-title { color: var(--ed-copy); font-size: clamp(44px, 6vw, 78px); letter-spacing: -.06em; }
body.customer-app #homeView .cr-creator-intro { color: var(--ed-muted); }
body.customer-app #homeView .cr-creator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 42px; border-top: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line); }
body.customer-app #homeView .cr-creator-card { min-height: 290px; padding: 26px 30px 30px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.customer-app #homeView .cr-creator-card + .cr-creator-card { padding: 26px 0 30px 30px; border-left: 1px solid var(--ed-line); }
body.customer-app #homeView .cr-creator-card-label { color: #7e7e79; letter-spacing: .12em; }
body.customer-app #homeView .cr-creator-card h3 { color: var(--ed-copy); font-size: clamp(26px, 3vw, 42px); letter-spacing: -.04em; }
body.customer-app #homeView .cr-creator-card p { max-width: 30ch; color: var(--ed-muted); }
body.customer-app #homeView .cr-creator-action { align-self: end; width: fit-content; min-height: 42px; padding: 0; border: 0; border-bottom: 1px solid var(--ed-lime); border-radius: 0; color: var(--ed-lime); background: transparent; }
body.customer-app #homeView .cr-creator-badge { border: 0; border-radius: 0; padding: 0; color: var(--ed-lime); background: transparent; }

/* Products and archive */
body.customer-app #homeView .home-quick-products,
body.customer-app #homeView .home-ranking-section,
body.customer-app #homeView .home-product-section,
body.customer-app #homeView .home-library-section,
body.customer-app #homeView .home-faq-section { border-top: 1px solid var(--ed-line); background: var(--ed-ink); }
body.customer-app #homeView .home-quick-products { padding-block: clamp(64px, 8vw, 112px); }
body.customer-app #homeView .home-quick-products h2,
body.customer-app #homeView .home-product-heading h2,
body.customer-app #homeView .home-section-head h2,
body.customer-app #homeView .home-closing-section h2 { color: var(--ed-copy); font-size: clamp(40px, 5.6vw, 74px); letter-spacing: -.06em; }
body.customer-app #homeView .home-quick-products-head p,
body.customer-app #homeView .home-product-heading p,
body.customer-app #homeView .home-section-intro { color: var(--ed-muted); }
body.customer-app #homeView .home-quick-product-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
body.customer-app #homeView .home-quick-product-rail::-webkit-scrollbar { display: none; }
body.customer-app #homeView .home-quick-product { flex: 0 0 min(278px, 72vw); scroll-snap-align: start; border: 1px solid var(--ed-line); border-radius: 0; background: var(--ed-surface); }
body.customer-app #homeView .home-quick-product-media { position: relative; background: #e6e6e0; }
body.customer-app #homeView .home-quick-product-copy { padding: 14px; }
body.customer-app #homeView .home-quick-product-copy small { color: var(--ed-muted); }
body.customer-app #homeView .home-quick-product-copy strong { color: var(--ed-copy); }
body.customer-app #homeView .home-quick-product-copy span { color: #858580; }
body.customer-app #homeView .home-product-art-overlay,
body.customer-app #homeView .home-runway-media .home-product-art-overlay { position: absolute; z-index: 2; top: 28%; left: 38%; width: 24%; height: 24%; padding: 0 !important; object-fit: contain !important; mix-blend-mode: multiply; pointer-events: none; filter: contrast(1.16) saturate(.76); }
body.customer-app #homeView .home-product-section,
body.customer-app #homeView .home-library-section,
body.customer-app #homeView .home-ranking-section,
body.customer-app #homeView .home-faq-section { padding-block: clamp(64px, 8vw, 120px); }
body.customer-app #homeView .home-product-showcase { gap: 0; }
body.customer-app #homeView .home-product-heading .button {
  border-color: var(--ed-line);
  color: var(--ed-copy);
  background: transparent;
}
body.customer-app #homeView .home-product-heading .button:hover { border-color: var(--ed-lime); color: var(--ed-lime); }
body.customer-app #homeView .home-runway-feature,
body.customer-app #homeView .home-runway-item,
body.customer-app #homeView .home-ranking-column { border-radius: 0; border: 1px solid var(--ed-line); background: var(--ed-surface); box-shadow: none; }
body.customer-app #homeView .home-runway-media { position: relative; background: #e6e6e0; }
body.customer-app #homeView .home-runway-copy { padding: 22px; }
body.customer-app #homeView .home-runway-copy small { color: #858580; }
body.customer-app #homeView .home-runway-copy h3 { color: var(--ed-copy); font-size: clamp(26px, 3vw, 46px); letter-spacing: -.04em; }
body.customer-app #homeView .home-runway-copy strong { color: var(--ed-lime); }
body.customer-app #homeView .home-library-section { background: #101010; }
body.customer-app #homeView .home-artwork-filters { gap: 8px; }
body.customer-app #homeView .home-artwork-filter { min-height: 36px; padding-inline: 13px; border: 1px solid var(--ed-line); border-radius: 0; color: var(--ed-muted); background: transparent; }
body.customer-app #homeView .home-artwork-filter.active { color: #0b0b0b; border-color: var(--ed-lime); background: var(--ed-lime); }
body.customer-app #homeView .home-art-wall { gap: 2px; }
body.customer-app #homeView .home-art-tile { border-radius: 0 !important; background: #121212; }
body.customer-app #homeView .home-art-tile > button { background: #121212; }
body.customer-app #homeView .home-art-tile img { filter: invert(.92) grayscale(.2) contrast(1.08); mix-blend-mode: screen; transition: transform 360ms ease, filter 360ms ease; }
body.customer-app #homeView .home-art-tile:hover img,
body.customer-app #homeView .home-art-tile:focus-within img { filter: invert(1) grayscale(0) contrast(1.14); transform: scale(.96); }
body.customer-app #homeView .home-art-social,
body.customer-app #homeView .home-art-badges { opacity: 0; transition: opacity 180ms ease; }
body.customer-app #homeView .home-art-tile:hover .home-art-social,
body.customer-app #homeView .home-art-tile:hover .home-art-badges,
body.customer-app #homeView .home-art-tile:focus-within .home-art-social,
body.customer-app #homeView .home-art-tile:focus-within .home-art-badges { opacity: 1; }
body.customer-app #homeView .home-creation-path { background: #101010; border-top: 1px solid var(--ed-line); }
body.customer-app #homeView .home-creation-path > div { border-color: var(--ed-line); }
body.customer-app #homeView .home-creation-path span { color: var(--ed-lime); }
body.customer-app #homeView .home-creation-path strong { color: var(--ed-copy); }
body.customer-app #homeView .home-creation-path p { color: var(--ed-muted); }
body.customer-app #homeView .home-closing-section { min-height: 440px; background: var(--ed-lime); }
body.customer-app #homeView .home-closing-section h2 { color: #0b0b0b; }
body.customer-app #homeView .home-closing-section p { color: #394b1f; }
body.customer-app #homeView .home-closing-section .button.primary { border-radius: 0; color: var(--ed-lime); background: #0b0b0b; }
body.customer-app #homeView .home-faq-section { background: var(--ed-ink); }
body.customer-app #homeView .home-faq-item { border-color: var(--ed-line); border-radius: 0; }
body.customer-app #homeView .home-faq-item summary { min-height: 72px; color: var(--ed-copy); }
body.customer-app #homeView .home-faq-item summary::after { color: var(--ed-lime); }
body.customer-app #homeView .home-faq-answer { color: var(--ed-muted); }
body.customer-app #homeView .home-mobile-dock { background: rgba(20,20,20,.96); border-top: 1px solid var(--ed-line); }
body.customer-app #homeView .home-mobile-dock-primary { border-radius: 0; color: #0b0b0b; background: var(--ed-lime); }

@media (max-width: 820px) {
  body.customer-app #homeView .home-topbar { grid-template-columns: 1fr auto; min-height: 64px; padding: 9px 16px; }
  body.customer-app #homeView .home-nav { display: none; }
  body.customer-app #homeView .home-actions > .button:not(.primary), body.customer-app #homeView .home-actions > .user-chip { display: none; }
  body.customer-app #homeView .home-hero,
  body.customer-app #homeView .home-hero.hero-banner-only { --home-hero-copy-width: 100%; min-height: auto; display: flex; flex-direction: column; padding-top: clamp(220px, 64vw, 310px); }
  body.customer-app #homeView .home-hero::before,
  body.customer-app #homeView .home-hero::after { inset: 0 0 auto; height: clamp(220px, 64vw, 310px); }
  body.customer-app #homeView .home-hero-background { inset: 0 0 auto; width: 100%; height: clamp(220px, 64vw, 310px); }
  body.customer-app #homeView .home-hero #homeHeroPreview:not([hidden]) { inset: 0 0 auto; width: 100%; height: clamp(220px, 64vw, 310px); }
  body.customer-app #homeView .home-hero-editorial-placeholder { width: min(58%, 260px); height: 88%; }
  body.customer-app #homeView .hero-placeholder-code { top: 8%; left: -20%; font-size: 8px; }
  body.customer-app #homeView .hero-placeholder-caption { right: -16%; bottom: 4%; font-size: 9px; }
  body.customer-app #homeView .home-hero-copy { min-height: 0; padding: 34px 18px 54px; background: var(--ed-ink); }
  body.customer-app #homeView #homeHeroEyebrow { margin-bottom: 20px; font-size: 9px; }
  body.customer-app #homeView #homeHeroTitle { max-width: 10em; font-size: clamp(40px, 10vw, 56px) !important; line-height: 1.08; }
  body.customer-app #homeView #homeHeroDescription { width: min(100%, 30ch); margin-top: 22px; font-size: 14px; line-height: 1.58; }
  body.customer-app #homeView .home-hero-actions { display: flex; flex-wrap: wrap; margin-top: 24px; }
  body.customer-app #homeView .home-hero-actions .button.primary { min-width: 152px; }
  body.customer-app #homeView .home-hero-bg-controls { top: clamp(220px, 64vw, 310px); right: 18px; bottom: auto; transform: translateY(-100%); }
  body.customer-app #homeView .home-hero-bg-controls::before { right: calc(100% + 12px); bottom: 0; font-size: 9px; }
  body.customer-app #homeView .cr-radar-root,
  body.customer-app #homeView .cr-creator-root,
  body.customer-app #homeView .home-product-section,
  body.customer-app #homeView .home-library-section,
  body.customer-app #homeView .home-ranking-section,
  body.customer-app #homeView .home-faq-section { padding-inline: 18px; }
  body.customer-app #homeView .cr-radar-title,
  body.customer-app #homeView .cr-creator-title { font-size: clamp(42px, 12vw, 58px); }
  body.customer-app #homeView .cr-radar-tabs { margin-top: 24px; overflow-x: auto; }
  body.customer-app #homeView .cr-creator-grid { grid-template-columns: 1fr; }
  body.customer-app #homeView .cr-creator-card,
  body.customer-app #homeView .cr-creator-card + .cr-creator-card { min-height: 240px; padding: 24px 0; border-left: 0; }
  body.customer-app #homeView .cr-creator-card + .cr-creator-card { border-top: 1px solid var(--ed-line); }
  body.customer-app #homeView .home-quick-products-head,
  body.customer-app #homeView .home-product-heading,
  body.customer-app #homeView .home-section-head { display: block; }
  body.customer-app #homeView .home-quick-products-actions { margin-top: 18px; justify-content: flex-start; }
  body.customer-app #homeView .home-quick-product { flex-basis: min(76vw, 300px); }
  body.customer-app #homeView .home-ranking-layout { grid-template-columns: 1fr; }
  body.customer-app #homeView .home-closing-section { min-height: 340px; padding: 58px 18px; }
}

@media (max-width: 1100px) {
  body.customer-app #homeView .home-library-section .home-artwork-controls {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.customer-app #homeView .home-library-section .home-artwork-controls::-webkit-scrollbar { display: none; }
  body.customer-app #homeView .home-library-section .home-artwork-controls .button {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    min-height: 32px !important;
    padding: 0 9px !important;
  }
}

/* Final mobile archive control sizing: compact inline actions. */
@media (max-width: 820px) {
  body.customer-app #homeView .home-library-section .home-artwork-controls {
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    max-width: 100%;
    margin-top: 8px;
    overflow-x: auto;
  }
  body.customer-app #homeView .home-library-section .home-artwork-controls .button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
  }
  body.customer-app #homeView .home-library-section .home-artwork-controls .home-artwork-archive-count {
    flex: 0 0 auto;
    font-size: 9px;
  }
}

/* FAQ / policy accordion: editorial list, no card chrome. */
body.customer-app #homeView .home-faq-section {
  background: #0d0d0d;
  border-top: 1px solid var(--ed-line);
  padding-block: clamp(56px, 8vw, 112px);
}
body.customer-app #homeView .home-faq-section .home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 56px);
}
body.customer-app #homeView #homeFaqTitle {
  margin: 0;
  color: var(--ed-copy);
  font-size: clamp(42px, 7vw, 88px);
  line-height: .94;
  letter-spacing: -.06em;
}
body.customer-app #homeView .home-faq-intro {
  margin: 10px 0 0;
  color: #777773;
  font: 11px/1.4 "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em;
}
body.customer-app #homeView .home-faq-list { border-top: 1px solid var(--ed-line); }
body.customer-app #homeView .home-faq-item {
  border: 0;
  border-bottom: 1px solid var(--ed-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.customer-app #homeView .home-faq-question {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: var(--ed-copy);
  text-align: left;
  cursor: pointer;
}
body.customer-app #homeView .home-faq-index,
body.customer-app #homeView .home-faq-toggle {
  font: 11px/1 "Space Mono", "JetBrains Mono", ui-monospace, monospace;
}
body.customer-app #homeView .home-faq-index { color: #656560; transition: color 180ms ease; }
body.customer-app #homeView .home-faq-item.is-open .home-faq-index { color: var(--ed-lime); }
body.customer-app #homeView .home-faq-question-text {
  padding-right: 18px;
  font-size: clamp(16px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.025em;
}
body.customer-app #homeView .home-faq-toggle {
  position: relative;
  width: 16px;
  height: 16px;
  justify-self: end;
  transition: transform 240ms ease;
}
body.customer-app #homeView .home-faq-toggle::before,
body.customer-app #homeView .home-faq-toggle::after {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
}
body.customer-app #homeView .home-faq-toggle::after { transform: rotate(90deg); }
body.customer-app #homeView .home-faq-item.is-open .home-faq-toggle { transform: rotate(45deg); color: var(--ed-lime); }
body.customer-app #homeView .home-faq-answer {
  display: block;
  height: auto;
  overflow: hidden;
  color: var(--ed-muted);
}
body.customer-app #homeView .home-faq-answer[hidden] { display: none !important; height: 0; opacity: 0; }
body.customer-app #homeView .home-faq-answer p {
  max-width: 72ch;
  margin: 0;
  padding: 0 72px 28px;
  font-size: 15px;
  line-height: 1.8;
}
body.customer-app #homeView .home-faq-consult {
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777773;
  font: 11px/1.5 "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  cursor: pointer;
}
body.customer-app #homeView .home-faq-consult span { color: var(--ed-copy); text-decoration: underline; text-underline-offset: 4px; }
body.customer-app #homeView .home-faq-consult:hover span { color: var(--ed-lime); }
@media (max-width: 820px) {
  body.customer-app #homeView .home-library-section .home-artwork-controls {
    display: flex;
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.customer-app #homeView .home-library-section .home-artwork-controls::-webkit-scrollbar { display: none; }
  body.customer-app #homeView .home-library-section .home-artwork-controls .home-artwork-archive-count {
    flex: 0 0 auto;
    margin: 0 8px 0 0;
    white-space: nowrap;
  }
  body.customer-app #homeView .home-library-section .home-artwork-controls .button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px;
    white-space: nowrap;
  }
  body.customer-app #homeView .home-faq-section .home-section-head { display: block; }
  body.customer-app #homeView .home-faq-question { grid-template-columns: 46px minmax(0, 1fr) 24px; min-height: 74px; }
  body.customer-app #homeView .home-faq-answer p { padding: 0 46px 24px; font-size: 14px; line-height: 1.75; }
  body.customer-app #homeView .home-faq-consult { margin-top: 24px; line-height: 1.8; }
}

/* Global stitch: one translucent header, one mobile action rail, one industrial footer. */
body.customer-app #homeView .home-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  background: rgba(13,13,13,.8);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.customer-app #homeView .home-topbar .brand-mark { width: 30px; height: 30px; }
body.customer-app #homeView .home-topbar .brand strong { letter-spacing: -.04em; }
body.customer-app #homeView .home-topbar .brand span { color: #777773; font: 9px/1 "Space Mono", ui-monospace, monospace; letter-spacing: .08em; }
body.customer-app #homeView .home-nav { gap: 4px; }
body.customer-app #homeView .home-nav button,
body.customer-app #homeView .home-actions .button,
body.customer-app #homeView .home-actions .user-chip {
  min-height: 32px;
  padding-inline: 10px;
  border: 0;
  background: transparent;
}
body.customer-app #homeView .home-actions .cart-button,
body.customer-app #homeView .home-actions .cart-button span,
body.customer-app #homeView .home-actions .cart-button strong {
  font: 10px/1 "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em;
}
body.customer-app #homeView .home-actions .cart-button { color: var(--ed-copy); }
body.customer-app #homeView .home-actions .user-chip strong { font-size: 11px; }
body.customer-app #homeView { padding-bottom: 0; }
body.customer-app #homeView .home-mobile-dock { display: none; }
.site-industrial-footer { border-top-color: rgba(255,255,255,.08); background: #0d0d0d; }
.site-industrial-footer .site-legal-inner { min-height: 58px; padding-block: 14px; font: 9px/1.4 "Space Mono", "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; }
.site-industrial-footer .site-footer-status,
.site-industrial-footer .site-footer-promise { color: #a3ff2e; }
.site-industrial-footer .site-footer-copy { color: #777773; text-align: center; }
.site-industrial-footer .site-footer-legal { color: #555550; font-size: 8px; }
@media (max-width: 820px) {
  body.customer-app #homeView { padding-bottom: 76px; }
  body.customer-app #homeView .home-mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(17,17,17,.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  body.customer-app #homeView .home-mobile-dock > button { min-height: 38px; padding: 0 8px; border: 0; border-radius: 0; color: #9c9c98; background: transparent; font: 10px "Space Mono", ui-monospace, monospace; }
  body.customer-app #homeView .home-mobile-dock-primary { min-width: 132px; color: #0b0b0b !important; background: var(--ed-lime) !important; }
  body.customer-app #homeView .home-mobile-dock > button:active { transform: scale(.98); }
  .site-industrial-footer .site-legal-inner { align-items: flex-start; gap: 8px; padding-bottom: 88px; }
  .site-industrial-footer .site-footer-copy { text-align: left; }
  .site-industrial-footer .site-footer-legal { display: none; }
}

/* Creator protocol: one open split field, two routes, no SaaS card chrome. */
body.customer-app #homeView .cr-creator-root {
  --creator-left: 50%;
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 80px);
  border-top: 1px solid var(--ed-line);
  background: var(--ed-ink);
}
body.customer-app #homeView .cr-creator-head { margin-bottom: 42px; }
body.customer-app #homeView .cr-creator-title {
  margin: 0;
  color: var(--ed-copy);
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -.06em;
  line-height: .98;
}
body.customer-app #homeView .cr-creator-intro {
  margin-top: 14px;
  color: #777773;
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .12em;
}
body.customer-app #homeView .cr-creator-grid {
  display: grid;
  grid-template-columns: var(--creator-left) calc(100% - var(--creator-left));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
}
body.customer-app #homeView .cr-creator-card,
body.customer-app #homeView .cr-creator-card + .cr-creator-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 360px;
  padding: 28px 34px 32px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 220ms ease;
}
body.customer-app #homeView .cr-creator-card + .cr-creator-card { padding: 28px 0 32px 34px; border-left: 1px solid var(--ed-line); }
body.customer-app #homeView .cr-creator-card:hover { background: linear-gradient(110deg, rgba(255,255,255,.045), transparent 64%); }
body.customer-app #homeView .cr-creator-card + .cr-creator-card:hover { background: linear-gradient(250deg, rgba(255,255,255,.045), transparent 64%); }
body.customer-app #homeView .cr-creator-card-label {
  color: #777773;
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .1em;
}
body.customer-app #homeView .cr-creator-card-body { margin-top: 54px; }
body.customer-app #homeView .cr-creator-card h3 {
  max-width: 17em;
  margin: 0;
  color: var(--ed-copy);
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.16;
}
body.customer-app #homeView .cr-creator-points {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
body.customer-app #homeView .cr-creator-points li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; color: #aaa9a3; font-size: 13px; line-height: 1.5; }
body.customer-app #homeView .cr-creator-points i { color: #777773; font: 10px/1.5 "Space Mono", "JetBrains Mono", ui-monospace, monospace; font-style: normal; }
body.customer-app #homeView .cr-creator-action {
  align-self: flex-start;
  width: fit-content;
  min-height: 48px;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid var(--ed-lime);
  border-radius: 0;
  color: #0d0d0d;
  background: var(--ed-lime);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
body.customer-app #homeView .cr-creator-card + .cr-creator-card .cr-creator-action { border-color: rgba(243,243,239,.72); color: var(--ed-copy); background: transparent; }
body.customer-app #homeView .cr-creator-card + .cr-creator-card .cr-creator-action:hover { border-color: var(--ed-copy); color: #0d0d0d; background: var(--ed-copy); }
body.customer-app #homeView .cr-creator-action:hover { transform: translateY(-2px); }
body.customer-app #homeView .cr-creator-action:active { transform: scale(.98); }
body.customer-app #homeView .cr-creator-badge,
body.customer-app #homeView .cr-creator-card-note { display: none; }

@media (max-width: 820px) {
  body.customer-app #homeView .cr-creator-root { padding: 64px 18px 76px; }
  body.customer-app #homeView .cr-creator-head { margin-bottom: 30px; }
  body.customer-app #homeView .cr-creator-title { font-size: clamp(40px, 11vw, 56px); }
  body.customer-app #homeView .cr-creator-grid { display: block; }
  body.customer-app #homeView .cr-creator-card,
  body.customer-app #homeView .cr-creator-card + .cr-creator-card { min-height: 0; padding: 28px 0 34px; border: 0; }
  body.customer-app #homeView .cr-creator-card + .cr-creator-card { border-top: 1px solid var(--ed-line); }
  body.customer-app #homeView .cr-creator-card-body { margin-top: 34px; }
  body.customer-app #homeView .cr-creator-card h3 { max-width: 15em; font-size: 25px; }
  body.customer-app #homeView .cr-creator-action { width: 100%; min-height: 52px; margin-top: 34px; }
}

/* Product archive: operational catalog data in an editorial grid. */
body.customer-app #homeView .home-quick-products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
body.customer-app #homeView .home-quick-products-head h2 {
  margin: 0;
  color: var(--ed-copy);
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -.06em;
  line-height: .98;
}
body.customer-app #homeView .home-quick-products-head p { margin: 14px 0 0; color: var(--ed-muted); }
body.customer-app #homeView .home-quick-products-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
body.customer-app #homeView .home-product-archive-count {
  color: #777773;
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .1em;
  white-space: nowrap;
}
body.customer-app #homeView .home-quick-product-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  overflow: visible;
  padding: 0;
}
body.customer-app #homeView .home-quick-product-rail::after { content: none; }
body.customer-app #homeView .home-quick-product {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ed-line);
  border-radius: 0;
  background: var(--ed-surface);
}
body.customer-app #homeView .home-quick-product > button {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  color: var(--ed-copy);
  background: transparent;
  text-align: left;
}
body.customer-app #homeView .home-quick-product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: #e9e9e3;
}
body.customer-app #homeView .home-quick-product-image {
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
  transform: translateY(0) scale(1);
  transition: transform 250ms ease;
}
body.customer-app #homeView .home-product-index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  color: rgba(13,13,13,.54);
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .08em;
}
body.customer-app #homeView .home-quick-product-media .home-product-art-overlay {
  position: absolute;
  top: 28%;
  left: 38%;
  z-index: 2;
  width: 24%;
  height: 24%;
  padding: 0 !important;
  object-fit: contain !important;
  mix-blend-mode: multiply;
  pointer-events: none;
  filter: contrast(1.14) saturate(.78);
}
body.customer-app #homeView .home-quick-product-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  padding: 9px 10px;
  color: #0d0d0d;
  background: rgba(243,243,239,.94);
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .03em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
body.customer-app #homeView .home-quick-product-copy {
  display: grid;
  gap: 7px;
  padding: 16px;
}
body.customer-app #homeView .home-quick-product-copy small { color: var(--ed-muted); font-size: 10px; letter-spacing: .06em; }
body.customer-app #homeView .home-quick-product-copy strong { color: var(--ed-copy); font-size: 15px; line-height: 1.25; }
body.customer-app #homeView .home-quick-product-price {
  color: var(--ed-copy) !important;
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: -.02em;
}
body.customer-app #homeView .home-quick-product-price em { color: #777773; font-size: 10px; font-style: normal; font-weight: 400; }
body.customer-app #homeView .home-quick-product-min { color: #777773 !important; font-size: 10px !important; }
body.customer-app #homeView .home-quick-product:hover .home-quick-product-cta,
body.customer-app #homeView .home-quick-product:focus-within .home-quick-product-cta { opacity: 1; transform: translateY(0); }
body.customer-app #homeView .home-quick-product:hover .home-quick-product-image { transform: translateY(-4px) scale(1.02); }
body.customer-app #homeView .home-quick-product:active { transform: scale(.985); }

@media (max-width: 820px) {
  body.customer-app #homeView .home-quick-products-head { display: grid; align-items: start; gap: 18px; margin-bottom: 24px; }
  body.customer-app #homeView .home-quick-products-head h2 { font-size: clamp(36px, 10vw, 48px); }
  body.customer-app #homeView .home-quick-products-actions { display: grid; grid-template-columns: 1fr auto; justify-content: stretch; gap: 10px; }
  body.customer-app #homeView .home-product-archive-count { grid-column: 1 / -1; }
  body.customer-app #homeView .home-quick-product-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.customer-app #homeView .home-quick-product { display: block !important; }
  body.customer-app #homeView .home-quick-product-copy { padding: 12px; }
  body.customer-app #homeView .home-quick-product-copy strong { font-size: 13px; }
  body.customer-app #homeView .home-quick-product-cta { right: 8px; bottom: 8px; left: 8px; padding: 8px; font-size: 9px; }
  body.customer-app #homeView .home-quick-product:active .home-quick-product-cta { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.customer-app #homeView * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Graphic archive: dark mount, dense index, no template-card gloss. */
body.customer-app #homeView .home-library-section {
  background: #101010;
}
body.customer-app #homeView .home-library-section .home-section-head {
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
body.customer-app #homeView .home-library-section .home-section-head h2 {
  margin: 0;
  color: var(--ed-copy);
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -.06em;
  line-height: .98;
}
body.customer-app #homeView .home-library-section .home-section-intro {
  margin-top: 12px;
  color: #777773;
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .11em;
}
body.customer-app #homeView .home-artwork-controls { gap: 8px; }
body.customer-app #homeView .home-artwork-controls .button {
  min-height: 30px;
  padding-inline: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  color: #92928d;
  background: transparent;
  font-size: 10px;
}
body.customer-app #homeView .home-artwork-controls .button:hover { color: var(--ed-copy); border-color: rgba(255,255,255,.28); }
body.customer-app .artwork-card,
body.customer-app .artwork-card-media,
body.customer-app .artwork-image-button {
  border-color: rgba(255,255,255,.08) !important;
  border-radius: 0 !important;
  background-color: #141414 !important;
  background-image: none !important;
}
body.customer-app .artwork-image-button img {
  filter: invert(.92) brightness(1.12) contrast(1.08);
  mix-blend-mode: screen;
}
body.customer-app #homeView .home-artwork-filter {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  color: #92928d;
  background: transparent;
  font-size: 10px;
  letter-spacing: .03em;
}
body.customer-app #homeView .home-artwork-filter:hover { color: var(--ed-copy); border-color: rgba(255,255,255,.28); }
body.customer-app #homeView .home-artwork-filter.active { color: #0d0d0d; border-color: var(--ed-lime); background: var(--ed-lime); }
body.customer-app #homeView .home-artwork-filter strong { color: inherit; font: inherit; }
body.customer-app #homeView .home-artwork-archive-count {
  display: block;
  margin: 0;
  color: #777773;
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .1em;
}
body.customer-app #homeView .home-art-wall,
body.customer-app #homeView .home-library-section:not(.is-expanded) .home-art-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto;
  gap: 10px;
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: visible;
}
body.customer-app #homeView .home-library-section:not(.is-expanded) .home-art-wall {
  max-height: 470px;
  overflow: hidden;
}
body.customer-app #homeView .home-art-tile,
body.customer-app #homeView .home-art-tile:nth-child(3n + 1),
body.customer-app #homeView .home-art-tile:nth-child(4n + 2),
body.customer-app #homeView .home-art-tile:nth-child(5n + 4),
body.customer-app #homeView .home-art-tile:nth-child(8n + 5) {
  position: relative;
  min-width: 0;
  grid-column: auto;
  grid-row: auto;
  height: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: #141414;
  transform: none;
  transition: transform 220ms ease, border-color 180ms ease, background-color 180ms ease;
}
body.customer-app #homeView .home-art-tile > button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--ed-copy);
  background: #141414 !important;
  background-image: none !important;
}
body.customer-app #homeView .home-art-image,
body.customer-app #homeView .home-art-tile button > img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15%;
  object-fit: contain;
  filter: invert(.92) brightness(1.12) contrast(1.08);
  mix-blend-mode: screen;
  transition: transform 220ms ease, filter 220ms ease;
}
body.customer-app #homeView .home-art-tile:hover .home-art-image,
body.customer-app #homeView .home-art-tile:focus-within .home-art-image { filter: invert(1) brightness(1.2) contrast(1.12); }
body.customer-app #homeView .home-art-index {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  color: rgba(243,243,239,.52);
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .08em;
}
body.customer-app #homeView .home-art-apply {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  padding: 8px;
  color: #0d0d0d;
  background: rgba(243,243,239,.94);
  font-family: "Space Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
body.customer-app #homeView .home-art-tile:hover .home-art-apply,
body.customer-app #homeView .home-art-tile:focus-within .home-art-apply,
body.customer-app #homeView .home-art-tile:active .home-art-apply { opacity: 1; transform: translateY(0); }
body.customer-app #homeView .home-art-tile:hover,
body.customer-app #homeView .home-art-tile:focus-within { border-color: rgba(243,243,239,.74); z-index: 4; }
body.customer-app #homeView .home-art-tile:hover { transform: translateY(-4px) scale(1.05); }
body.customer-app #homeView .home-art-tile:active { transform: scale(.97); }
body.customer-app #homeView .home-art-empty { display: grid; place-items: center; height: 100%; color: #777773; font: 10px "Space Mono", ui-monospace, monospace; }
body.customer-app #homeView .home-art-badges,
body.customer-app #homeView .home-art-social { display: none; }

@media (min-width: 1280px) {
  body.customer-app #homeView .home-art-wall,
  body.customer-app #homeView .home-library-section:not(.is-expanded) .home-art-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body.customer-app #homeView .home-product-heading h2 { max-width: 12em; font-size: clamp(32px, 9vw, 44px); line-height: 1.04; }
  body.customer-app #homeView .home-library-section .home-section-head { display: block; margin-bottom: 20px; }
  body.customer-app #homeView .home-library-section .home-section-head h2 { font-size: clamp(36px, 10vw, 48px); }
  body.customer-app #homeView .home-artwork-archive-count { margin: 0 0 6px; }
  body.customer-app #homeView .home-art-wall,
  body.customer-app #homeView .home-library-section:not(.is-expanded) .home-art-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: none; overflow: visible; }
  body.customer-app #homeView .home-library-section:not(.is-expanded) .home-art-wall { max-height: 430px; overflow: hidden; }
  body.customer-app #homeView .home-art-image,
  body.customer-app #homeView .home-art-tile button > img { padding: 11%; }
  body.customer-app #homeView .home-art-apply { right: 5px; bottom: 5px; left: 5px; padding: 6px; font-size: 8px; }
}

/* Mobile final pass: let the Chinese headline define its own height. */
@media (max-width: 820px) {
  body.customer-app #homeView .home-hero.hero-banner-only .home-hero-copy {
    display: flex !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 34px 18px 56px !important;
  }

  body.customer-app #homeView .home-hero.hero-banner-only #homeHeroTitle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    font-size: clamp(36px, 9.5vw, 46px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.04em !important;
    -webkit-line-clamp: unset !important;
  }

  body.customer-app #homeView .home-hero.hero-banner-only #homeHeroDescription {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 28px !important;
    line-height: 1.6 !important;
    -webkit-line-clamp: unset !important;
  }

  body.customer-app #homeView .home-hero.hero-banner-only .home-hero-bg-controls::before {
    display: none;
  }
}

/* Mid-page cleanup: archive links, pending states, and restrained conversion close. */
body.customer-app #homeView .home-archive-pending,
body.customer-app #homeView .home-art-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 12px;
  color: #777773;
  background: #141414;
  font: 9px/1.4 "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .04em;
  text-align: center;
}
body.customer-app #homeView .home-quick-product-media .home-archive-pending { min-height: 190px; }
body.customer-app #homeView .home-archive-gallery-link,
body.customer-app #homeView .home-product-cases-link {
  display: inline-block;
  width: fit-content;
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: #777773;
  background: transparent;
  font: 11px/1.4 "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}
body.customer-app #homeView .home-archive-gallery-link:hover,
body.customer-app #homeView .home-product-cases-link:hover { color: var(--ed-lime); }
body.customer-app #homeView .home-product-cases-link { margin-top: 8px; font-size: 10px; }
body.customer-app #homeView .home-closing-section {
  min-height: 360px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #0d0d0d;
}
body.customer-app #homeView .home-closing-section h2 { color: var(--ed-copy); }
body.customer-app #homeView .home-closing-section p { color: #777773; font: 10px/1.4 "Space Mono", "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; }
body.customer-app #homeView .home-closing-section .button.primary { min-width: 170px; border: 0; border-radius: 0; color: #0b0b0b; background: var(--ed-lime); font: 700 12px "Space Mono", ui-monospace, monospace; box-shadow: none; }
body.customer-app #homeView .home-closing-section .button.primary:hover { background: #b5ff4f; }
body.customer-app #homeView .home-product-section,
body.customer-app #homeView .home-ranking-section { display: none !important; }
@media (max-width: 820px) {
  body.customer-app #homeView .home-section-head .home-archive-gallery-link { max-width: 100%; white-space: normal; }
  body.customer-app #homeView .home-closing-section { min-height: 0; align-items: stretch; gap: 28px; }
  body.customer-app #homeView .home-closing-section .button.primary { width: 100%; }
}
body.customer-app #homeView .home-library-section .home-archive-gallery-link { align-self: flex-end; margin-top: 0; white-space: nowrap; }
@media (max-width: 820px) {
  body.customer-app #homeView .home-library-section .home-archive-gallery-link { align-self: flex-start; margin-top: 8px; white-space: normal; }
}
body.customer-app #homeView .home-hero-copy::after { height: 1px; background: rgba(255,255,255,.08); }
body.customer-app #homeView .cr-creator-card:hover,
body.customer-app #homeView .cr-creator-card + .cr-creator-card:hover { background: #141414; }

/* Community lookbook: image-led editorial corridor, no social metrics. */
body.customer-app #homeView .home-community-lookbook {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 80px);
  border-top: 1px solid rgba(255,255,255,.08);
  background: #0d0d0d;
  overflow: hidden;
}
body.customer-app #homeView .community-lookbook-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
body.customer-app #homeView .community-lookbook-head h2 {
  margin: 0;
  color: var(--ed-copy);
  font-size: clamp(34px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.06em;
}
body.customer-app #homeView .community-lookbook-head p {
  margin: 12px 0 0;
  color: #777773;
  font: 10px/1.4 "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .12em;
}
body.customer-app #homeView .community-lookbook-link {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  color: #777773;
  background: transparent;
  font: 10px/1.4 "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  cursor: pointer;
}
body.customer-app #homeView .community-lookbook-link:hover { color: var(--ed-copy); }
body.customer-app #homeView .community-lookbook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 12px;
  gap: 14px;
}
body.customer-app #homeView .community-look-card {
  position: relative;
  min-width: 0;
  grid-row: span 27;
  overflow: hidden;
  background: #141414;
}
body.customer-app #homeView .community-look-card:nth-child(3n + 2) { grid-row: span 34; }
body.customer-app #homeView .community-look-card:nth-child(4n + 3) { grid-row: span 31; }
body.customer-app #homeView .community-look-card button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #141414;
  cursor: pointer;
}
body.customer-app #homeView .community-look-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88);
  transition: transform 360ms ease, filter 360ms ease;
}
body.customer-app #homeView .community-look-card:hover img { transform: scale(1.035); filter: saturate(1); }
body.customer-app #homeView .community-look-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 34px 14px 14px;
  color: var(--ed-copy);
  background: linear-gradient(0deg, rgba(13,13,13,.88), transparent);
  text-align: left;
}
body.customer-app #homeView .community-look-copy strong { font-size: 15px; letter-spacing: -.02em; }
body.customer-app #homeView .community-look-copy small { color: #b1b1ab; font: 10px/1.4 "Space Mono", ui-monospace, monospace; }
body.customer-app #homeView .community-look-pending {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 14px;
  color: #777773;
  background: #141414;
  font: 9px/1.4 "Space Mono", ui-monospace, monospace;
  text-align: center;
}
body.customer-app #homeView .community-lookbook-grid > .community-look-pending {
  grid-column: 1 / -1;
  grid-row: auto;
  width: 100%;
  min-height: 220px;
  height: 220px;
}
@media (max-width: 820px) {
  body.customer-app #homeView .community-lookbook-head { display: block; }
  body.customer-app #homeView .community-lookbook-link { display: block; margin-top: 18px; }
  body.customer-app #homeView .community-lookbook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; grid-auto-rows: 10px; }
  body.customer-app #homeView .community-look-card { grid-row: span 26; }
  body.customer-app #homeView .community-look-card:nth-child(3n + 2) { grid-row: span 31; }
  body.customer-app #homeView .community-look-card:nth-child(4n + 3) { grid-row: span 28; }
  body.customer-app #homeView .community-look-copy { padding: 28px 10px 10px; }
  body.customer-app #homeView .community-look-copy strong { font-size: 13px; }
}

/* Resident artist stand: artwork-first, quiet gallery framing. */
body.customer-app #homeView .home-resident-art-root {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 80px);
  border-top: 1px solid rgba(255,255,255,.08);
  background: #0d0d0d;
}
body.customer-app #homeView .home-resident-art-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
body.customer-app #homeView .home-resident-art-head h2 { margin: 0; color: var(--ed-copy); font-size: clamp(40px, 5.6vw, 76px); line-height: .96; letter-spacing: -.06em; }
body.customer-app #homeView .home-resident-art-head p { margin: 12px 0 0; color: #777773; font: 10px/1.4 "Space Mono", ui-monospace, monospace; letter-spacing: .1em; }
body.customer-app #homeView .home-resident-art-link { flex: 0 0 auto; padding: 0; border: 0; color: #777773; background: transparent; font: 10px/1.4 "Space Mono", ui-monospace, monospace; cursor: pointer; }
body.customer-app #homeView .home-resident-art-link:hover { color: var(--ed-copy); }
body.customer-app #homeView .home-resident-art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.customer-app #homeView .resident-art-card { min-width: 0; background: #141414; }
body.customer-app #homeView .resident-art-card { cursor: pointer; }
body.customer-app #homeView .resident-art-card:focus-visible { outline: 1px solid var(--ed-lime); outline-offset: 4px; }
body.customer-app #homeView .resident-art-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #141414; }
body.customer-app #homeView .resident-art-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
body.customer-app #homeView .resident-art-apply { position: absolute; right: 0; bottom: 0; left: 0; padding: 12px 14px; color: #0d0d0d; background: #f3f3ef; font: 11px "Space Mono", ui-monospace, monospace; cursor: pointer; transform: translateY(100%); transition: transform 240ms ease; }
body.customer-app #homeView .resident-art-card:hover .resident-art-apply,
body.customer-app #homeView .resident-art-card:focus-within .resident-art-apply { transform: translateY(0); }
body.customer-app #homeView .resident-art-copy { display: grid; gap: 5px; padding: 14px 2px 0; }
body.customer-app #homeView .resident-art-copy strong { overflow: hidden; color: var(--ed-copy); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
body.customer-app #homeView .resident-art-copy span { overflow: hidden; color: #999994; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
body.customer-app #homeView .resident-art-copy small { color: var(--ed-lime); font: 10px "Space Mono", ui-monospace, monospace; }
body.customer-app #homeView .resident-art-pending { display: grid; place-items: center; width: 100%; height: 100%; min-height: 240px; color: #777773; background: #141414; font: 9px/1.4 "Space Mono", ui-monospace, monospace; text-align: center; }
@media (max-width: 820px) {
  body.customer-app #homeView .home-resident-art-head { display: block; }
  body.customer-app #homeView .home-resident-art-link { display: block; margin-top: 18px; }
  body.customer-app #homeView .home-resident-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.customer-app #homeView .resident-art-copy { padding-top: 10px; }
  body.customer-app #homeView .resident-art-copy strong { font-size: 13px; }
  body.customer-app #homeView .resident-art-apply { position: static; display: block; padding: 8px 0 0; color: #999994; background: transparent; font-size: 9px; transform: none; }
}
body.customer-app #homeView .home-resident-art-grid.is-empty {
  display: block;
  min-height: 240px;
}
body.customer-app #homeView .home-resident-art-grid.is-empty .resident-art-pending {
  width: 100%;
  height: 240px;
  min-height: 240px;
}


/* Ticket radar styles. */

.artwork-preview-inspiration { display: grid; gap: 8px; margin: 18px 0 0; padding: 14px 16px; border-left: 2px solid var(--ed-lime, #a3ff2e); background: rgba(255, 255, 255, .04); }
.artwork-preview-inspiration > span { color: var(--ed-lime, #a3ff2e); font: 10px/1.4 "Space Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.artwork-preview-inspiration p { margin: 0; color: var(--ed-copy, #f3f3ef); font-size: 14px; line-height: 1.7; white-space: pre-wrap; }

/* Sketch is a modal above editor chrome; its actions must fit the visual viewport. */
.customer-app #sketchModal { z-index: 2400; overscroll-behavior: contain; }
@media (max-width: 820px), (max-height: 650px) {
  .customer-app #sketchModal { align-items: end; align-content: end; padding: 0; }
  .customer-app #sketchModal .sketch-dialog {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 12px;
    width: min(860px, 100%);
    height: min(600px, calc(100dvh - max(12px, env(safe-area-inset-top))));
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    min-height: 0;
    margin: 0;
    padding: 16px 14px max(16px, env(safe-area-inset-bottom));
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  .customer-app #sketchModal .section-title-row { align-items: start; margin: 0; }
  .customer-app #sketchModal .section-title-row h2 { margin: 0; }
  .customer-app #sketchModal .section-title-row p { margin: 4px 0 0; }
  .customer-app #sketchModal .sketch-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; }
  .customer-app #sketchModal .sketch-canvas-wrap {
    display: flex; align-items: center; justify-content: center;
    min-width: 0; min-height: 0; margin: 0; padding: 8px; overflow: hidden; background: #0e1014;
  }
  .customer-app #sketchModal #sketchCanvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 720 / 460; background: repeating-conic-gradient(#eef0ed 0 25%, #d8dcd8 0 50%) 50% / 20px 20px; }
  .customer-app #sketchModal .modal-actions {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    position: sticky; bottom: 0; gap: 8px; margin: 0; padding: 4px 0 0; background: #111317;
  }
  .customer-app #sketchModal .modal-actions button, .customer-app #sketchModal #closeSketchBtn { min-height: 48px; }
  .customer-app #sketchModal #closeSketchBtn { min-width: 48px; flex: 0 0 auto; }
}


.customer-app .checkout-payment-brands { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.customer-app .checkout-payment-brand { display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:4px 9px; border:1px solid rgba(255,255,255,.14); border-radius:8px; color:var(--soft); font-size:12px; font-weight:700; background:rgba(255,255,255,.035); }
.customer-app .checkout-payment-brand svg { width:18px; height:18px; fill:none; stroke:#07c160; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
.customer-app .checkout-payment-brand-alipay svg { stroke:#28a8ea; }
.customer-app .checkout-payment-brand span { white-space:nowrap; }
@media (max-width:520px) { .customer-app .checkout-payment-brands { gap:6px; } .customer-app .checkout-payment-brand { flex:1 1 130px; justify-content:center; } }

/* Payment method cards: direct, thumb-friendly selection with the supplied brand marks. */
.customer-app .checkout-payment-method { border: 0; padding: 0; min-width: 0; }
.customer-app .checkout-payment-method legend { padding: 0; margin-bottom: 10px; color: var(--soft); font-size: 13px; font-weight: 800; }
.customer-app .checkout-payment-method-select { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.customer-app .checkout-payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-app .checkout-payment-option { position: relative; display: grid; grid-template-columns: 42px minmax(0,1fr) 18px; align-items: center; gap: 10px; min-height: 68px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.035); cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.customer-app .checkout-payment-option:hover { border-color: rgba(40,215,229,.7); background: rgba(40,215,229,.06); }
.customer-app .checkout-payment-option.is-selected { border-color: var(--green); background: rgba(184,255,61,.08); }
.customer-app .checkout-payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.customer-app .checkout-payment-option-logo { display: grid; place-items: center; width: 42px !important; height: 42px !important; flex: 0 0 42px; overflow: hidden; border-radius: 9px; background: #fff; }
.customer-app .checkout-payment-option-logo img { display: block; width: 42px !important; height: 42px !important; max-width: 42px; max-height: 42px; aspect-ratio: 1; object-fit: contain; object-position: center; align-self: center; justify-self: center; margin: 0 !important; }
.customer-app .checkout-payment-option-logo-test { color: #07100b; background: var(--green); font-size: 18px; font-weight: 900; }
.customer-app .checkout-payment-option-copy { display: grid; gap: 2px; min-width: 0; }
.customer-app .checkout-payment-option-copy strong { color: var(--soft); font-size: 13px; }
.customer-app .checkout-payment-option-copy small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.customer-app .checkout-payment-option-check { width: 15px; height: 15px; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; }
.customer-app .checkout-payment-option.is-selected .checkout-payment-option-check { border: 4px solid var(--green); box-shadow: 0 0 0 1px rgba(184,255,61,.22); }
.customer-app .checkout-payment-option:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 520px) { .customer-app .checkout-payment-options { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; } .customer-app .checkout-payment-option { grid-template-columns: 34px minmax(0,1fr) 15px; gap: 7px; min-height: 64px; padding: 8px; } .customer-app .checkout-payment-option-logo, .customer-app .checkout-payment-option-logo img { width: 34px !important; height: 34px !important; flex-basis: 34px; max-width: 34px; max-height: 34px; } .customer-app .checkout-payment-option-copy strong { font-size: 12px; } .customer-app .checkout-payment-option-copy small { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .customer-app .checkout-payment-option { transition: none; } }
+.template-panel { display: grid; gap: 14px; }
.customer-app .template-category-filter {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.customer-app .template-category-filter::-webkit-scrollbar { display: none; }
.customer-app .template-category-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  color: var(--soft);
  background: #101216;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}
.customer-app .template-category-chip > span { font-size: 11px; font-weight: 800; }
.customer-app .template-category-chip > strong {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  color: var(--black);
  background: var(--green);
  font-size: 10px;
  font-weight: 850;
}
.customer-app .template-category-chip:hover,
.customer-app .template-category-chip:focus-visible,
.customer-app .template-category-chip.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(38, 244, 255, .08);
  outline: none;
}
.customer-app .template-category-chip.active > strong { color: var(--black); background: var(--green); }
.template-library { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.template-card { display: grid; gap: 9px; min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: linear-gradient(145deg, rgba(21,28,30,.98), rgba(10,14,16,.96)); }
.template-card-cover { position: relative; aspect-ratio: 1.2; overflow: hidden; padding: 0; border: 0; border-radius: 7px; background: #11191b; cursor: pointer; }
.template-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.template-card-cover:hover img { transform: scale(1.035); }
.template-card-cover-empty { display: grid; place-items: center; height: 100%; color: var(--cyan); font-size: 42px; font-weight: 900; }
.template-card-badge { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; color: #081011; background: var(--green); font-size: 10px; font-weight: 850; }
.template-card-badge.is-paid { color: #fff; background: #e37b5a; }
.template-card-copy { display: grid; gap: 4px; min-width: 0; }
.template-card-copy strong { overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.template-card-copy span { color: var(--muted); font-size: 10px; }
.template-apply-button { width: 100%; }
.template-library-state { display: grid; place-items: center; gap: 7px; min-height: 140px; padding: 22px; border: 1px dashed rgba(38,244,255,.18); border-radius: 10px; color: var(--muted); text-align: center; font-size: 11px; }
.template-library-state strong { color: var(--text); font-size: 13px; }
.template-library-state button { margin-top: 5px; }
.template-skeleton { width: 100%; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(38,244,255,.18), rgba(255,255,255,.06)); background-size: 220% 100%; animation: template-shimmer 1.3s ease infinite; }
@keyframes template-shimmer { to { background-position: -220% 0; } }
@media (max-width: 560px) { .template-library { grid-template-columns: 1fr; } }

@media (max-width: 360px) {
