/* GiftCode cabinet — dark design system shared with the storefront (store.css). */
.connection-account { padding-block: 1.5rem; border-bottom: 1px solid var(--border); min-width: 0; }
.connection-account:last-child { border-bottom: 0; }
.connection-account form { margin-top: 1rem; max-width: 42rem; }
.connection-identity { overflow-wrap: anywhere; color: var(--muted); }
[data-connections] :is(button,input,select) { min-height: 44px; }
:root {
  --bg: #0b0d14;
  --bg-2: #10131d;
  --surface: #151a28;
  --surface-2: #1d2335;
  --border: #262d42;
  --line: #262d42;
  --ink: #f1f3fa;
  --text: #f1f3fa;
  --muted: #8f97ad;
  --accent: #7c5cff;
  --accent-dark: #6a49f0;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --accent-2: #2ee6a6;
  --green: #2ee6a6;
  --amber: #ffc857;
  --red: #ff5c7a;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-family:
    "Manrope",
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
  line-height: 1.55;
  background: var(--bg);
  color-scheme: dark;
}
html {
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
.promotion-store-picker {
  max-width: 380px;
  margin-bottom: 22px;
}
.promotion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.promotion-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
}
.promotion-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.promotion-top h3 {
  margin: 6px 0 0;
  font-size: 18px;
  word-break: break-word;
}
.promotion-discount {
  font-size: 33px;
  letter-spacing: -0.05em;
  font-weight: 750;
  color: var(--accent);
  margin-top: 19px;
}
.promotion-usage {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.promotion-usage span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.promotion-usage strong {
  font-size: 12px;
  font-weight: 650;
}
.promotion-dates {
  color: var(--muted);
  font-size: 10px;
  margin: 17px 0;
}
.connection-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 26px;
}
.connection-summary h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.connection-summary p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.connection-groups {
  display: grid;
  gap: 24px;
}
.connection-section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
}
.connection-section-title .icon {
  color: var(--accent);
}
.connection-card {
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 17px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.connection-card:last-child {
  margin-bottom: 0;
}
.connection-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.connection-card-head h3 {
  font-size: 14px;
  overflow-wrap: anywhere;
  margin: 0;
}
.connection-states {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}
.connection-states .badge {
  margin-left: 4px;
}
.dns-record {
  display: grid;
  gap: 11px;
  margin: 15px 0;
  background: var(--surface);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.dns-record span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}
.dns-record code {
  font:
    11px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.dns-record small {
  font-size: 10px;
  color: var(--muted);
}
.connection-url {
  margin: 16px 0;
}
.connection-url .inline-actions {
  flex-wrap: nowrap;
}
.connection-url input {
  min-width: 0;
  font-size: 11px;
  flex: 1;
}
.connection-url button {
  flex: none;
}
.orders-filter {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr auto;
  gap: 13px;
  align-items: end;
  margin-bottom: 24px;
}
.orders-filter label {
  font-size: 11px;
}
.orders-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  margin: 15px 0 24px;
}
@media (max-width: 1180px) {
  .promotion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orders-filter {
    grid-template-columns: 1fr 1fr;
  }
  .orders-filter .btn {
    min-height: 43px;
  }
}
@media (max-width: 700px) {
  .promotion-grid {
    grid-template-columns: 1fr;
  }
  .promotion-card {
    padding: 19px;
  }
  .connection-summary {
    display: block;
    padding: 18px;
  }
  .connection-summary .btn {
    margin-top: 15px;
  }
  .connection-card {
    padding: 14px;
  }
  .connection-card-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
  }
  .connection-url .inline-actions {
    flex-wrap: wrap;
  }
  .connection-url input {
    flex-basis: 100%;
  }
  .orders-filter {
    gap: 11px;
  }
  .orders-filter select {
    font-size: 11px;
    padding: 10px;
  }
  .connection-card .btn {
    font-size: 10px;
  }
  .promotion-discount {
    font-size: 29px;
  }
}
.team-context {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
}
.team-context h3 {
  margin: 7px 0;
}
.team-context p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.team-context form {
  max-width: 440px;
  flex: 1;
}
.team-context select {
  flex: 1;
  min-width: 160px;
  width: auto;
}
.team-role-select {
  min-width: 150px;
  max-width: 220px;
}
.team-role-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-role-guide strong {
  font-size: 12px;
}
.team-role-guide p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 0;
}
.ticket-attachments {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ticket-attachments h3 {
  font-size: 15px;
  margin-bottom: 14px;
}
.attachment-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.attachment-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 11px 13px;
  border-radius: 9px;
  text-align: left;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.attachment-row > .icon {
  color: var(--accent);
  flex: none;
}
.attachment-row span {
  min-width: 0;
}
.attachment-row strong {
  font-size: 11px;
  display: block;
  overflow-wrap: anywhere;
}
.attachment-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.ticket-attachments input[type="file"] {
  font-size: 11px;
  max-width: 100%;
}
.ticket-attachments input[type="file"]::file-selector-button {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  border-radius: 6px;
  padding: 7px 9px;
  margin-right: 9px;
}
@media (max-width: 700px) {
  .team-context {
    display: block;
    padding: 18px;
  }
  .team-context form {
    margin-top: 17px;
  }
  .team-role-guide {
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .team-context .inline-actions {
    flex-wrap: nowrap;
  }
  .team-context select {
    min-width: 0;
    width: 150px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.04em;
}
h1 {
  font-size: 46px;
  font-weight: 750;
}
h2 {
  font-size: 27px;
}
h3 {
  font-size: 18px;
}
small {
  font-size: 12px;
}
svg {
  vertical-align: middle;
  flex: none;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 750;
  color: var(--accent);
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container {
  max-width: 1256px;
  padding: 0 38px;
  margin: 0 auto;
}
.public-header {
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 42px;
  width: 100%;
}
/* Brand mark shared with the storefront (store.css .site-logo/.site-logo-mark). */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text);
}
.logo-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex: none;
}
.logo-mark .icon {
  width: 20px;
  height: 22px;
}
.store-logo-image {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 7px;
}
.logo-name {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.public-header .logo {
  min-width: 0;
  max-width: 340px;
}
.preview-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.preview-identity .store-logo-image,
.preview-identity .logo-mark {
  width: 30px;
  height: 30px;
}
.preview-identity .logo-mark .icon {
  width: 18px;
}
.identity-editor,
.facet-selector {
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.identity-editor legend,
.facet-selector legend {
  font-size: 11px;
  font-weight: 650;
  padding: 0 5px;
}
.logo-upload-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0 15px;
  font-size: 11px;
}
.identity-editor input[type="file"] {
  max-width: 100%;
  padding: 8px 0;
  border: none;
}
.facet-selector > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 12px;
}
.facet-all {
  margin-bottom: 12px;
}
.facet-selector .selection-list label[hidden] {
  display: none;
}
.facet-selector .warning-text {
  display: block;
  color: #966727;
  font-size: 9px;
}
.store-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  background: var(--surface-2);
  border-radius: var(--radius);
  color: #35303f;
  margin-bottom: 20px;
}
.store-filter-summary strong,
.store-filter-summary span {
  display: block;
  overflow-wrap: anywhere;
}
.store-filter-summary strong {
  font-size: 12px;
}
.store-filter-summary span {
  font-size: 12px;
  margin-top: 4px;
}
.storefront-block .btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 700px) {
  .public-header .logo {
    max-width: 52vw;
    font-size: 20px;
  }
  .store-filter-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .preview-header {
    gap: 10px;
  }
  .preview-header > span {
    display: none;
  }
}
.header-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.header-links a:hover {
  color: var(--accent);
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
  background: var(--surface);
  color: var(--ink);
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-secondary {
  border-color: var(--border);
  background: var(--surface);
}
.btn-secondary:hover {
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-danger {
  background: rgba(255, 92, 122, 0.14);
  color: var(--red);
}
.btn-small {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-icon {
  width: 37px;
  height: 37px;
  padding: 0;
  min-height: 37px;
}
.btn-block {
  width: 100%;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.green {
  background: rgba(46, 230, 166, 0.14);
  color: var(--green);
}
.badge.purple {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.amber {
  background: rgba(255, 200, 87, 0.14);
  color: var(--amber);
}
.badge.red {
  background: rgba(255, 92, 122, 0.14);
  color: var(--red);
}
.badge-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.simulator-strip {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 8px 20px;
  text-align: center;
  letter-spacing: 0.01em;
}
.simulator-strip a {
  text-decoration: underline;
}
.hero {
  padding: 53px 0 37px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  max-width: 590px;
  margin: 20px 0;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 26px;
}
.hero-actions .btn {
  padding: 13px 20px;
}
.hero-visual {
  height: 315px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse,
    var(--surface-2) 0%,
    var(--surface-2) 38%,
    #f7f8fb00 70%
  );
  display: grid;
  place-items: center;
}
.gift-card {
  position: absolute;
  border-radius: 22px;
  width: 247px;
  height: 157px;
  color: #fff;
  padding: 23px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gift-card.back {
  background: linear-gradient(135deg, #2ee6a6, #159c73);
  transform: translate(-53px, -42px) rotate(-15deg);
  color: #06261b;
}
.gift-card.front {
  background: linear-gradient(135deg, #8f74ff, #4b2fd6);
  transform: translate(42px, 30px) rotate(12deg);
}
.gift-card span {
  font-weight: 750;
  letter-spacing: -0.04em;
  font-size: 22px;
}
.gift-card small {
  letter-spacing: 0.12em;
  font-size: 9px;
  opacity: 0.8;
}
.gift-card strong {
  font-size: 29px;
}
.gift-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sparkle {
  position: absolute;
  color: var(--accent);
  font-size: 31px;
}
.sparkle.one {
  top: 33px;
  right: 62px;
}
.sparkle.two {
  bottom: 19px;
  left: 61px;
  font-size: 22px;
}
.visual-tag {
  position: absolute;
  bottom: 26px;
  right: 30px;
  background: var(--surface);
  padding: 11px 15px;
  font-size: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--muted);
  transform: rotate(-4deg);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  gap: 28px;
  margin: 16px 0 45px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: var(--muted);
}
.benefit .icon {
  color: var(--accent);
  width: 23px;
  height: 23px;
}
.benefit strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 2px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
}
.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.catalog-snapshot-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 4px 0 22px;
  font-size: 12px;
  color: var(--muted);
}
.catalog-fx,
.catalog-bulk {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.catalog-fx legend,
.catalog-bulk legend {
  font-size: 14px;
  font-weight: 650;
  padding: 0 6px;
}
.catalog-fx-grid,
.catalog-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.catalog-fx-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.catalog-price-grid label,
.catalog-fx-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}
.catalog-fx input[readonly] {
  background: var(--surface-2);
}
.catalog-policy-row {
  padding: 20px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.catalog-policy-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.catalog-policy-title .check-label {
  align-items: flex-start;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.catalog-readiness {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8c6021;
  margin: 10px 0;
}
.catalog-readiness .badge {
  white-space: normal;
}
.catalog-review {
  max-width: 100%;
}
.catalog-review .detail-item strong,
.catalog-review .detail-item small,
.catalog-policy-row .hint {
  overflow-wrap: anywhere;
}
.catalog-review .table-wrap {
  max-width: 100%;
}
@media (max-width: 1100px) {
  .catalog-fx-grid,
  .catalog-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .catalog-fx-grid,
  .catalog-price-grid {
    grid-template-columns: 1fr;
  }
  .catalog-fx,
  .catalog-bulk,
  .catalog-policy-row {
    padding: 14px;
  }
  .catalog-policy-title {
    flex-direction: column;
  }
}
.search {
  flex: 1;
  min-width: 210px;
  position: relative;
}
.search .icon {
  position: absolute;
  left: 15px;
  top: 13px;
  color: #9597a6;
  width: 18px;
}
.search input {
  padding-left: 44px;
  background: var(--surface);
  border-radius: 12px;
  height: 46px;
}
.field,
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  min-height: 43px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent) 0b;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--accent);
}
input[type="color"] {
  padding: 4px;
  width: 46px;
  height: 40px;
  min-height: 0;
}
label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
.form-field {
  margin-bottom: 17px;
}
.form-field small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: auto;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 10px;
}
.tab {
  font-size: 12px;
  white-space: nowrap;
  border: 0;
  background: transparent;
  padding: 9px 15px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
}
.tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 4px #20203007;
}
.filter-select {
  width: 170px;
  height: 46px;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 50px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #3226500d;
}
.product-art {
  height: 143px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
}
.product-art:before {
  content: "";
  width: 150px;
  height: 150px;
  border: 1px solid #ffffff33;
  border-radius: 50%;
  position: absolute;
  right: -40px;
  bottom: -77px;
}
.brand-monogram {
  font-size: 46px;
  font-weight: 850;
  letter-spacing: -3px;
  opacity: 0.9;
}
.product-art.purple {
  background: linear-gradient(140deg, #704be0, #a288f0);
  color: #fff;
}
.product-art.green {
  background: linear-gradient(140deg, #d5e8c8, #b0cd9d);
  color: #315043;
}
.product-art.blue {
  background: linear-gradient(140deg, #182e48, #417b9b);
  color: #fff;
}
.product-art.slate {
  background: linear-gradient(140deg, #303744, #707787);
  color: #fff;
}
.product-art.pink {
  background: linear-gradient(140deg, var(--surface-2), var(--surface-2));
  color: #883d51;
}
.product-art.orange {
  background: linear-gradient(140deg, var(--surface-2), var(--surface-2));
  color: #7d4527;
}
.product-art .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffffffdd;
  color: #5a5e6b;
  font-weight: 500;
  font-size: 9px;
}
.product-meta {
  padding: 15px 4px 6px;
}
.product-meta h3 {
  font-size: 15px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.product-meta p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.product-bottom strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}
.add-product {
  border: 0;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.add-product .icon {
  width: 16px;
}
.partner-banner {
  background: var(--surface-2);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 34px 38px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}
.partner-banner h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.partner-banner p {
  font-size: 13px;
  color: #837598;
  margin: 0;
  max-width: 560px;
}
.partner-banner .btn {
  margin-left: auto;
  white-space: nowrap;
}
.public-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 27px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-brand {
  font-size: 12px;
}
.footer-brand strong {
  color: var(--accent);
}
.page-intro {
  padding: 38px 0 25px;
}
.page-intro h1 {
  font-size: 34px;
  margin-bottom: 8px;
}
.page-intro p {
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 27px;
}
.breadcrumbs .icon {
  width: 13px;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  padding: 36px 0 55px;
}
.product-detail .product-art {
  height: 320px;
  border-radius: 23px;
}
.product-detail .brand-monogram {
  font-size: 90px;
}
.product-detail h1 {
  font-size: 36px;
  margin: 18px 0;
}
.product-detail p {
  font-size: 14px;
  color: var(--muted);
}
.product-price {
  font-size: 31px;
  letter-spacing: -0.04em;
  font-weight: 750;
  margin: 20px 0;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--accent-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
}
.notice .icon {
  width: 17px;
  margin-top: 2px;
}
.notice.warning {
  background: rgba(255, 200, 87, 0.1);
  border-color: rgba(255, 200, 87, 0.35);
  color: var(--amber);
}
.notice.error {
  background: rgba(255, 92, 122, 0.1);
  border-color: rgba(255, 92, 122, 0.35);
  color: var(--red);
}
.notice.success {
  background: rgba(46, 230, 166, 0.1);
  border-color: rgba(46, 230, 166, 0.35);
  color: var(--green);
}
.notice p:last-child {
  margin: 0;
}
.notice-spaced {
  margin: 18px 0;
}
.empty {
  padding: 48px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty .icon {
  width: 36px;
  height: 36px;
  color: #c1b2e7;
  margin-bottom: 13px;
}
.empty h3 {
  color: var(--ink);
  font-size: 17px;
  margin: 0 0 8px;
}
.empty p {
  max-width: 370px;
  margin: 0 auto 18px;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 65px 20px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #ded6f4;
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 235px;
  flex: none;
  background: var(--bg-2);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  padding: 30px 19px 19px;
}
.sidebar .logo {
  color: #fff;
  padding: 0 10px;
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #5d6478;
  margin: 39px 15px 12px;
  font-weight: 700;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  text-align: left;
  background: transparent;
  color: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 550;
  width: 100%;
}
.nav-link .icon {
  width: 18px;
  height: 18px;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.nav-link.active {
  color: #fff;
  background: var(--accent);
}
.nav-link .nav-count {
  margin-left: auto;
  border-radius: 5px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.sidebar-help {
  background: var(--surface);
  padding: 15px;
  border-radius: 12px;
  font-size: 11px;
}
.sidebar-help strong {
  color: var(--ink);
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}
.sidebar-help p {
  margin-bottom: 9px;
  line-height: 1.7;
}
.sidebar-help a {
  color: #b7a6ff;
  font-weight: 600;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding: 18px 8px 0;
}
.avatar {
  height: 34px;
  width: 34px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  flex: none;
}
.sidebar-footer .avatar {
  background: var(--surface-2);
  color: #b7a6ff;
}
.sidebar-user {
  min-width: 0;
}
.sidebar-user strong {
  font-size: 11px;
  display: block;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 128px;
}
.sidebar-user small {
  font-size: 10px;
  color: var(--muted);
}
.workspace-main {
  margin-left: 235px;
  width: calc(100% - 235px);
}
.workspace-header {
  height: 81px;
  padding: 0 34px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}
.workspace-header-title {
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.workspace-header-title strong {
  font-weight: 550;
  color: var(--ink);
}
.workspace-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 17px;
}
.header-divider {
  height: 25px;
  width: 1px;
  background: var(--line);
}
.workspace-content {
  padding: 34px;
  max-width: 1510px;
  margin: 0 auto;
}
.workspace-content h1 {
  font-size: 30px;
  margin-bottom: 7px;
}
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-top p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.page-top-actions {
  display: flex;
  gap: 9px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.stat-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  padding: 20px 21px;
}
.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  gap: 8px;
}
.stat-label .icon {
  width: 16px;
  color: #aaa2be;
}
.stat-value {
  font-size: 27px;
  letter-spacing: -0.05em;
  line-height: 1.2;
  font-weight: 700;
  margin: 12px 0 8px;
}
.stat-foot {
  font-size: 10px;
  color: var(--muted);
}
.stat-card.highlight {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.stat-card.highlight .stat-label,
.stat-card.highlight .stat-label .icon,
.stat-card.highlight .stat-foot {
  color: var(--surface-2);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 23px;
  overflow: hidden;
}
.panel-head {
  padding: 22px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.panel-head h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
  margin: 0;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.panel-body {
  padding: 24px;
}
.panel-head + .panel-body {
  padding-top: 5px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 23px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  font-size: 10px;
  color: #9a9daa;
  background: var(--surface-2);
  padding: 12px 23px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 16px 23px;
  border-bottom: 1px solid var(--surface-2);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-size: 12px;
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.table-link {
  color: var(--accent);
  font-weight: 550;
}
.list-row {
  padding: 17px 24px;
  border-bottom: 1px solid var(--surface-2);
  display: flex;
  align-items: center;
  gap: 13px;
}
.list-row:last-child {
  border: 0;
}
.store-icon {
  width: 41px;
  height: 41px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.list-content {
  min-width: 0;
  flex: 1;
}
.list-content strong {
  font-size: 12px;
  display: block;
}
.list-content small {
  font-size: 10px;
  color: var(--muted);
}
.list-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.onboarding {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--surface-2);
  border: 1px solid var(--surface-2);
  padding: 23px 27px;
  border-radius: 15px;
  margin-bottom: 26px;
}
.onboarding-art {
  font-size: 30px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent);
  flex: none;
}
.onboarding h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
  margin-bottom: 7px;
}
.onboarding p {
  margin: 0;
  font-size: 12px;
  color: #8b7f9f;
  max-width: 570px;
}
.onboarding .btn {
  margin-left: auto;
  white-space: nowrap;
}
.metric-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 9px;
  overflow: hidden;
  margin: 12px 0;
}
.metric-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 9px;
}
.status-list {
  display: grid;
  gap: 19px;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.status-item .icon {
  width: 17px;
  color: var(--accent);
}
.status-item .badge {
  margin-left: auto;
}
.empty-compact {
  padding: 30px 20px;
}
.mobile-menu {
  display: none;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.channel-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  padding: 23px;
}
.channel-card > .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 17px;
}
.channel-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.channel-card p {
  font-size: 12px;
  color: var(--muted);
  min-height: 57px;
}
.channel-card .badge {
  margin-bottom: 18px;
}
.finance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.finance-grid .stat-value {
  font-size: 25px;
}
.support-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 23px;
}
.ticket-row {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  padding: 18px 23px;
}
.ticket-row.active {
  background: var(--surface-2);
}
.ticket-row strong {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.ticket-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.message {
  padding: 14px 17px;
  background: var(--surface-2);
  border-radius: 11px;
  margin-bottom: 12px;
  font-size: 12px;
  max-width: 90%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.message.staff {
  background: var(--surface-2);
  margin-left: auto;
}
.order-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 50px;
}
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 13px 0;
  font-size: 13px;
}
.order-line span:first-child {
  color: var(--muted);
}
.order-total {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 19px;
  font-weight: 700;
}
.timeline {
  padding: 3px 0;
}
.timeline-item {
  display: flex;
  gap: 13px;
  position: relative;
  padding-bottom: 26px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--surface-2);
  color: #b5aec5;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  flex: none;
}
.timeline-dot .icon {
  width: 13px;
}
.timeline-item.done .timeline-dot {
  background: var(--surface-2);
  color: #309375;
}
.timeline-item.active .timeline-dot {
  background: var(--accent);
  color: #fff;
}
.timeline-item:not(:last-child):before {
  content: "";
  position: absolute;
  left: 12px;
  top: 25px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline-item strong {
  font-size: 12px;
  display: block;
  margin-top: 2px;
}
.timeline-item small {
  font-size: 10px;
  color: var(--muted);
}
.delivery-code {
  font:
    500 15px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: var(--surface-2);
  border: 1px dashed #c9b8f8;
  padding: 16px;
  border-radius: 10px;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.code-block {
  font:
    11px ui-monospace,
    monospace;
  background: var(--surface-2);
  padding: 13px;
  border-radius: 10px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 250px;
}
.auth-layout {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
}
.auth-story {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      900px 500px at 20% 0%,
      rgba(124, 92, 255, 0.35),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 90% 100%,
      rgba(46, 230, 166, 0.18),
      transparent 60%
    ),
    var(--bg-2);
  padding: 70px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.auth-story h1 {
  font-size: 46px;
  max-width: 460px;
  letter-spacing: -0.02em;
}
.auth-story p {
  font-size: 15px;
  color: var(--muted);
  max-width: 420px;
}
.auth-story .hero-visual {
  max-width: 520px;
  flex: none;
  margin-top: 25px;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 75px;
}
.auth-form-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.auth-form-wrap h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.auth-form-wrap > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}
.auth-footer a {
  color: #b7a6ff;
  font-weight: 600;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: #b7a6ff;
  font-size: 12px;
  font-weight: 550;
}
.auth-simulator {
  font-size: 11px;
  padding: 13px;
  margin-top: 22px;
  background: var(--surface-2);
  border-radius: 10px;
  color: var(--muted);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 14, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 100;
}
.modal {
  background: var(--surface);
  border-radius: 21px;
  box-shadow: 0 30px 100px #10102030;
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 28px;
}
.modal.wide {
  max-width: 760px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.modal-head h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.modal-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  max-width: 410px;
}
.toast {
  background: #252533;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 35px #16102024;
  padding: 15px 19px;
  font-size: 12px;
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.toast.error {
  background: #872e43;
}
.toast .icon {
  width: 17px;
  height: 17px;
  flex: none;
}
.builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 21px;
}
.builder-toolbar h1 {
  font-size: 24px;
  margin-bottom: 5px;
}
.builder-toolbar p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.builder-layout {
  display: grid;
  grid-template-columns: 235px minmax(250px, 1fr) 260px;
  gap: 17px;
  align-items: start;
}
.builder-rail,
.builder-inspector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.builder-rail-header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.builder-page-select {
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
.builder-page-select select {
  font-size: 11px;
}
.block-list {
  padding: 8px;
}
.block-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
}
.block-row .icon {
  width: 15px;
  color: #a09ab1;
}
.block-row.selected {
  background: var(--surface-2);
  border-color: var(--surface-2);
  color: var(--accent);
}
.block-row-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-row-actions {
  display: flex;
  gap: 0;
}
.block-row-actions button {
  border: 0;
  background: none;
  color: #a39bab;
  padding: 2px;
  font-size: 12px;
}
.builder-add {
  padding: 5px 13px 13px;
}
.builder-preview-wrap {
  min-width: 0;
}
.builder-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  padding: 0 3px 12px;
}
.builder-canvas {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 450px;
}
.builder-canvas.mobile {
  max-width: 360px;
  margin: auto;
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.preview-header strong {
  font-size: 14px;
}
.preview-block {
  padding: 22px 20px;
  border: 2px solid transparent;
  position: relative;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.preview-block:hover {
  border-color: var(--surface-2);
}
.preview-block.selected {
  border-color: var(--accent);
}
.preview-block h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.preview-block h3 {
  font-size: 18px;
}
.preview-block p {
  font-size: 11px;
  color: #85818f;
  margin-bottom: 14px;
}
.preview-block .btn {
  font-size: 10px;
  min-height: 32px;
  padding: 7px 12px;
}
.preview-block.hero-block {
  background: var(--surface-2);
  min-height: 174px;
}
.preview-block.hero-block h2 {
  max-width: 300px;
  font-size: 29px;
}
.preview-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.preview-product {
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  padding: 6px;
  font-size: 9px;
}
.preview-product .product-art {
  height: 64px;
  border-radius: 5px;
}
.preview-product .brand-monogram {
  font-size: 23px;
}
.preview-product strong {
  display: block;
  font-size: 9px;
  margin: 7px 1px;
}
.preview-product small {
  font-size: 9px;
}
.preview-footer {
  text-align: center;
  font-size: 9px;
  color: #9f96af;
  padding: 15px;
  border-top: 1px solid var(--line);
}
.builder-inspector-body {
  padding: 17px;
}
.builder-inspector label {
  font-size: 10px;
}
.builder-inspector input,
.builder-inspector textarea,
.builder-inspector select {
  font-size: 11px;
  padding: 9px 10px;
  min-height: 36px;
}
.builder-inspector .form-field {
  margin-bottom: 14px;
}
.inspector-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.inspector-tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 15px 5px;
  color: var(--muted);
  font-size: 11px;
}
.inspector-tabs button.active {
  color: var(--accent);
  box-shadow: inset 0 -2px var(--accent);
}
.block-library {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.block-choice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: left;
  padding: 15px;
}
.block-choice .icon {
  color: var(--accent);
  margin-bottom: 12px;
}
.block-choice strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.block-choice small {
  font-size: 10px;
  color: var(--muted);
}
.color-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-field input[type="text"] {
  min-width: 0;
}
.preview-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.preview-feature {
  font-size: 9px;
  line-height: 1.6;
}
.preview-feature .icon {
  color: var(--accent);
  width: 18px;
  display: block;
  margin-bottom: 8px;
}
.preview-feature strong {
  display: block;
  font-size: 10px;
}
.inline-error {
  font-size: 12px;
  color: var(--red);
  padding: 10px 0;
}
.detail-list {
  display: grid;
  gap: 15px;
}
.detail-item {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.detail-item:last-child {
  padding-bottom: 0;
  border: 0;
}
.detail-item strong {
  display: block;
  margin-bottom: 5px;
}
.subtle-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  font-size: 12px;
}
.spaced {
  margin-top: 22px;
}
.bottom-space {
  margin-bottom: 22px;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.workspace-footer {
  padding: 12px 34px 30px;
  color: #a0a1af;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.hint {
  color: var(--muted);
  font-size: 11px;
  margin: 7px 0;
}
.selection-list {
  display: grid;
  gap: 9px;
  max-height: 220px;
  overflow: auto;
}
.selection-list label {
  font-weight: 400;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.subnav {
  margin-bottom: 23px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.subnav .btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.chart-empty {
  height: 147px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 10px;
  margin: 12px 0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 35px,
    var(--surface-2) 36px
  );
}
.chart-bar {
  width: 27px;
  background: var(--surface-2);
  min-height: 3px;
  border-radius: 5px 5px 0 0;
}
.chart-labels {
  display: flex;
  justify-content: space-around;
  color: #aaa4b7;
  font-size: 9px;
}
.rich-text {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 13px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq details p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.progress-note {
  font-size: 11px;
  color: var(--muted);
  padding: 9px 0;
}
.store-block-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto 12px;
}
.storefront-block {
  cursor: default;
  border: 0;
  margin-bottom: 22px;
  border-radius: var(--radius);
}
.storefront-block:hover {
  border: 0;
}
.storefront-block.hero-block {
  padding: 48px 35px;
  min-height: 230px;
}
.storefront-block.hero-block h2 {
  font-size: 38px;
  max-width: 680px;
}
.storefront-block h3 {
  font-size: 24px;
}
.storefront-block .preview-feature p {
  font-size: 13px;
}
.storefront-block .products {
  padding-bottom: 0;
}
.pricing-rule {
  display: grid;
  grid-template-columns: 1.2fr 1fr 90px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pricing-rule strong {
  font-size: 11px;
}
.pricing-rule select,
.pricing-rule input {
  font-size: 11px;
}
.storefront-block.categories-block,
.storefront-block.brands-block,
.storefront-block.search-block {
  padding: 10px 0;
}
.store-front .hero-block {
  display: block;
}
.support-tools {
  display: flex;
  gap: 8px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.storefront-block[data-columns="1"] .products {
  grid-template-columns: 1fr;
}
.storefront-block[data-columns="2"] .products {
  grid-template-columns: repeat(2, 1fr);
}
.storefront-block[data-columns="3"] .products {
  grid-template-columns: repeat(3, 1fr);
}
.storefront-block[data-columns="4"] .products {
  grid-template-columns: repeat(4, 1fr);
}
.store-front > .hero-block {
  background: transparent;
  padding: 5px 0 0;
  margin-bottom: 7px;
}
.store-front > .hero-block .hero {
  padding: 15px 0 20px;
}
.store-front > .hero-block .hero h1 {
  font-size: 48px;
}
.storefront-block.products-block {
  padding: 20px 0 28px;
}
.storefront-block.search-block {
  margin-bottom: 15px;
}
.storefront-block .product-card {
  border-radius: var(--radius);
}
.product-card {
  color: var(--ink);
}
.density-compact .preview-block {
  padding-top: 13px;
  padding-bottom: 13px;
}
.density-compact .product-card {
  padding: 8px;
}
.density-compact .product-art {
  height: 110px;
}
.density-compact .product-meta p {
  margin-bottom: 10px;
}
.preview-block[data-columns="1"] .preview-catalog {
  grid-template-columns: 1fr;
}
.preview-block[data-columns="2"] .preview-catalog {
  grid-template-columns: repeat(2, 1fr);
}
.preview-block[data-columns="4"] .preview-catalog {
  grid-template-columns: repeat(4, 1fr);
}
@media (min-width: 1500px) {
  .workspace-content {
    padding: 38px 45px;
  }
  .workspace-header {
    padding: 0 45px;
  }
}
@media (max-width: 1180px) {
  .builder-layout {
    grid-template-columns: 200px minmax(220px, 1fr);
  }
  .builder-inspector {
    grid-column: 1/-1;
  }
  .builder-inspector-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .builder-inspector-body > .btn,
  .builder-inspector-body > .notice {
    grid-column: 1/-1;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-visual {
    transform: scale(0.9);
  }
  .workspace-content {
    padding: 26px;
  }
  .workspace-header {
    padding: 0 26px;
  }
  .sidebar {
    width: 214px;
  }
  .workspace-main {
    margin-left: 214px;
    width: calc(100% - 214px);
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-value {
    font-size: 24px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .channel-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-story {
    padding: 50px;
  }
  .auth-panel {
    padding: 45px;
  }
  .finance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .header-links {
    display: none;
  }
  .container {
    padding: 0 25px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-visual {
    transform: scale(0.78);
    margin: -20px -30px;
  }
  .hero p {
    font-size: 13px;
  }
  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .product-art {
    height: 123px;
  }
  .sidebar {
    width: 195px;
    padding: 27px 12px 17px;
  }
  .workspace-main {
    margin-left: 195px;
    width: calc(100% - 195px);
  }
  .workspace-content {
    padding: 23px;
  }
  .workspace-header {
    padding: 0 23px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-top {
    align-items: flex-start;
  }
  .page-top-actions {
    flex-direction: column;
  }
  .onboarding {
    padding: 20px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .onboarding .btn {
    margin-left: 72px;
  }
  .support-layout {
    grid-template-columns: 1fr;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 36px;
  }
  .auth-story .hero-visual {
    margin-left: -90px;
  }
  .auth-panel {
    padding: 35px;
  }
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .builder-rail .block-list {
    display: flex;
    overflow-x: auto;
  }
  .block-row {
    flex: none;
    max-width: 200px;
  }
  .builder-rail-header {
    padding: 13px;
  }
  .builder-page-select {
    padding: 10px;
  }
  .builder-add {
    padding: 5px 10px 10px;
  }
  .builder-toolbar {
    flex-wrap: wrap;
  }
  .product-detail {
    gap: 25px;
  }
  .product-detail .product-art {
    height: 280px;
  }
  .product-detail h1 {
    font-size: 30px;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .public-header {
    height: 72px;
  }
  .container {
    padding: 0 19px;
  }
  .header-inner {
    gap: 15px;
  }
  .logo {
    font-size: 22px;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .badge {
    display: none;
  }
  .header-actions .btn {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 38px;
  }
  .hero {
    display: block;
    padding: 36px 0 13px;
    position: relative;
  }
  .hero h1 {
    font-size: 39px;
    max-width: 400px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
  }
  .hero p {
    max-width: 450px;
  }
  .hero-visual {
    height: 220px;
    transform: scale(0.85);
    margin: 0 -10px -5px;
  }
  .hero-actions {
    margin-top: 20px;
  }
  .benefits {
    gap: 10px;
    padding: 19px 0;
    margin: 10px 0 29px;
  }
  .benefit {
    flex-direction: column;
    align-items: flex-start;
    font-size: 10px;
    gap: 7px;
  }
  .benefit strong {
    font-size: 11px;
  }
  .benefit .icon {
    width: 19px;
    height: 19px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 30px;
  }
  .product-card {
    padding: 8px;
    border-radius: 13px;
  }
  .product-art {
    height: 118px;
    border-radius: 9px;
  }
  .brand-monogram {
    font-size: 37px;
  }
  .product-meta {
    padding: 12px 3px 4px;
  }
  .product-meta h3 {
    font-size: 13px;
  }
  .product-meta p {
    font-size: 10px;
    margin-bottom: 15px;
  }
  .product-bottom strong {
    font-size: 14px;
  }
  .product-art .badge {
    font-size: 8px;
    padding: 3px 6px;
    top: 7px;
    left: 7px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading .muted {
    font-size: 11px;
  }
  .catalog-toolbar {
    gap: 10px;
    margin-bottom: 17px;
  }
  .catalog-toolbar .search {
    flex-basis: 100%;
  }
  .tabs {
    max-width: 100%;
  }
  .tab {
    font-size: 10px;
    padding: 8px 10px;
  }
  .filter-select {
    flex: 1;
    min-width: 100px;
    width: auto;
    font-size: 11px;
  }
  .partner-banner {
    display: block;
    padding: 26px 24px;
    margin-bottom: 30px;
  }
  .partner-banner h2 {
    font-size: 22px;
  }
  .partner-banner p {
    font-size: 12px;
  }
  .partner-banner .btn {
    margin-top: 20px;
  }
  .footer-inner {
    flex-wrap: wrap;
    font-size: 10px;
  }
  .footer-links {
    gap: 15px;
  }
  .footer-brand {
    font-size: 10px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 235px;
    transition: transform 0.2s;
  }
  .workspace.mobile-nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax #10102066;
  }
  .workspace-main {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .workspace-header {
    height: 67px;
    padding: 0 18px;
  }
  .workspace-header-title {
    font-size: 11px;
  }
  .workspace-header-actions {
    gap: 9px;
  }
  .workspace-header-actions .header-divider {
    display: none;
  }
  .workspace-header-actions .btn {
    font-size: 10px;
    padding: 7px 9px;
    min-height: 33px;
  }
  .workspace-content {
    padding: 23px 18px;
  }
  .workspace-content h1 {
    font-size: 26px;
  }
  .workspace-header-actions .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .page-top {
    gap: 12px;
    margin-bottom: 23px;
  }
  .page-top p {
    font-size: 11px;
    max-width: 230px;
  }
  .page-top-actions .btn {
    font-size: 10px;
    padding: 9px 12px;
    white-space: nowrap;
    min-height: 37px;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .onboarding {
    padding: 18px;
    gap: 12px;
  }
  .onboarding-art {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }
  .onboarding h2 {
    font-size: 16px;
  }
  .onboarding p {
    font-size: 11px;
  }
  .onboarding > div:nth-child(2) {
    flex: 1;
    min-width: 220px;
  }
  .onboarding .btn {
    margin-left: 0;
    font-size: 11px;
  }
  .panel-head {
    padding: 20px 19px 16px;
  }
  .panel-body {
    padding: 20px 19px;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .panel-head .btn {
    font-size: 10px;
    padding: 6px 9px;
  }
  .list-row {
    padding: 16px 19px;
  }
  th {
    padding: 11px 18px;
  }
  td {
    padding: 14px 18px;
  }
  .list-actions {
    gap: 3px;
  }
  .list-actions .btn {
    padding: 7px 9px;
    font-size: 10px;
  }
  .list-content strong {
    font-size: 11px;
  }
  .list-content small {
    font-size: 9px;
  }
  .workspace-footer {
    padding: 6px 19px 22px;
    font-size: 9px;
  }
  .finance-grid {
    gap: 11px;
  }
  .finance-grid .stat-value {
    font-size: 21px;
  }
  .order-layout {
    grid-template-columns: 1fr;
  }
  .product-detail {
    grid-template-columns: 1fr;
    padding-top: 22px;
    gap: 25px;
  }
  .product-detail .product-art {
    height: 225px;
  }
  .product-detail h1 {
    font-size: 30px;
  }
  .product-detail .brand-monogram {
    font-size: 75px;
  }
  .product-price {
    font-size: 28px;
  }
  .page-intro {
    padding: 27px 0 20px;
  }
  .page-intro h1 {
    font-size: 28px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 72px);
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    padding: 42px 24px;
  }
  .auth-form-wrap {
    max-width: 400px;
  }
  .modal {
    padding: 23px;
    border-radius: 17px;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .modal-head h2 {
    font-size: 21px;
  }
  .modal-head {
    margin-bottom: 18px;
  }
  .form-row {
    gap: 12px;
  }
  .builder-layout {
    gap: 14px;
  }
  .builder-toolbar h1 {
    font-size: 23px;
  }
  .builder-toolbar > .inline-actions {
    width: 100%;
  }
  .builder-toolbar .btn {
    flex: 1;
    padding: 9px 10px;
    font-size: 10px;
    min-height: 38px;
  }
  .builder-inspector-body {
    display: block;
  }
  .builder-canvas {
    min-height: 340px;
  }
  .block-library {
    gap: 8px;
  }
  .block-choice {
    padding: 13px;
  }
  .toast-container {
    right: 15px;
    left: 15px;
    bottom: 15px;
    max-width: none;
  }
  .notice {
    font-size: 11px;
    padding: 12px;
  }
  .preview-block {
    padding: 22px 17px;
  }
  .preview-block.hero-block h2 {
    font-size: 25px;
  }
  .support-layout {
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 700px) {
  .storefront-block[data-columns] .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .storefront-block[data-columns="1"] .products {
    grid-template-columns: 1fr;
  }
  .store-front > .hero-block .hero h1 {
    font-size: 37px;
  }
  .storefront-block .hero-visual {
    height: 240px;
  }
  .storefront-block.hero-block h2 {
    font-size: 30px;
  }
  .pricing-rule {
    grid-template-columns: 1fr 90px;
  }
  .pricing-rule strong {
    grid-column: 1/-1;
  }
  .preview-feature-grid {
    gap: 15px;
  }
  .storefront-block .preview-feature-grid {
    grid-template-columns: 1fr;
  }
  .storefront-block .preview-feature p {
    margin: 8px 0;
  }
  .store-front > .subnav {
    margin-top: 15px;
    margin-bottom: 10px;
  }
}

/* Partner wizard and assortment editor */
.wizard-steps {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  counter-reset: step;
  font-size: 13px;
}
.wizard-steps li {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2, var(--surface-2));
  color: var(--muted, var(--muted));
  text-align: center;
  font-weight: 600;
}
.wizard-steps li.active {
  background: var(--accent, var(--accent));
  color: #fff;
}
.wizard-steps li.done {
  background: color-mix(in srgb, var(--accent, var(--accent)) 18%, #fff);
  color: var(--accent, var(--accent));
}
.wizard-body {
  min-height: 220px;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.preset-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid var(--border, var(--line));
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.preset-card.active {
  border-color: var(--pa);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pa) 25%, transparent);
}
.preset-swatch {
  display: block;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pb) 55%, var(--pa));
  border: 1px solid #0001;
}
.preset-card small {
  color: var(--muted);
}
.assortment-modes,
.pricing-modes {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.assortment-modes .check-label,
.pricing-modes .check-label {
  padding: 12px;
  border: 1px solid var(--border, var(--line));
  border-radius: 12px;
}
.assortment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.assortment-grid h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.selection-list.tall {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border, var(--line));
  border-radius: 10px;
}
.selection-list.tall label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 6px;
}
.selection-list.tall label small {
  margin-left: auto;
  color: #98a2b3;
}
.assortment-search {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border, var(--line));
  border-radius: 8px;
  font: inherit;
}
.assortment-summary {
  margin-top: 12px;
  font-weight: 600;
}
.hint-list {
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.wizard-done textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
@media (max-width: 800px) {
  .assortment-grid,
  .preset-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Shared storefront header and footer (copied from store.css; keep in sync) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.site-logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  flex: none;
}
.site-logo-mark svg {
  width: 20px;
  height: 20px;
}
.site-logo-img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}
.site-search {
  position: relative;
  max-width: 560px;
  width: 100%;
}
.site-search input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px 0 42px;
  outline: none;
}
.site-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--muted);
}
.site-nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
  color: var(--muted);
}
.site-nav a:hover {
  color: var(--text);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.icon-btn:hover {
  border-color: var(--accent);
}
.sim-strip {
  text-align: center;
  font-size: 13px;
  padding: 6px 12px;
  background: color-mix(in srgb, #f5b700 18%, var(--bg));
  color: #f5d77a;
  border-bottom: 1px solid var(--border);
}
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding: 40px 0 28px;
}
.footer-brand p {
  margin: 14px 0 0;
  max-width: 360px;
  line-height: 1.6;
}
.footer-brand .footer-note {
  font-size: 12px;
}
.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.pay-badges span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-col strong {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.footer-bottom a:hover {
  color: var(--accent);
}
.made-on {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
}
.wrap {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}

/* Cabinet pages use the storefront chrome; keep the old .public-header for legacy widgets only. */
.site-header .site-nav a {
  color: var(--muted);
}
.site-header .site-nav a:hover {
  color: var(--text);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
  }
  .site-search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }
  .site-nav {
    display: none;
  }
  .wrap {
    width: min(1240px, 100% - 20px);
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Builder: theme inspector */
.theme-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px 4px;
  margin: 0 0 16px;
}
.theme-section legend {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.theme-section > small {
  display: block;
  color: var(--muted);
  margin: -8px 0 12px;
}
.theme-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.preset-card.compact {
  padding: 6px;
  gap: 4px;
}
.preset-card.compact strong {
  font-size: 11px;
}
.preset-card.compact .preset-swatch {
  height: 22px;
}
.theme-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.theme-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c);
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.theme-swatch.active {
  border-color: var(--text);
}
.theme-swatches input[type="color"] {
  width: 34px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.theme-optional {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-optional input[type="color"] {
  width: 44px;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.theme-optional input[type="color"]:disabled {
  opacity: 0.35;
}
.theme-section .check-label {
  align-items: center;
  margin-bottom: 6px;
}
.theme-section textarea {
  width: 100%;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
}
.v2-block-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-block: 10px; }
.v2-builder textarea { width: 100%; min-height: 100px; }
.v2-builder [aria-pressed="true"] { outline: 1px solid var(--accent); }
.v2-builder iframe { display: block; }
