:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #161a22;
  --muted: #667085;
  --line: #d9dee7;
  --blue: #145fff;
  --blue-soft: #eaf1ff;
  --teal: #0f766e;
  --teal-soft: #e6f5f3;
  --amber: #9a5b00;
  --amber-soft: #fff4db;
  --red: #b42318;
  --red-soft: #feeceb;
  --green: #11703d;
  --green-soft: #e8f7ee;
  --shadow: 0 16px 36px rgba(22, 26, 34, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #fbfcfe;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  padding: 12px;
}

.nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  margin: 2px 0;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.nav button:hover {
  background: #eef2f7;
}

.nav button.active {
  background: var(--blue-soft);
  color: #0d47c5;
  font-weight: 700;
}

.nav .count {
  min-width: 24px;
  border-radius: 999px;
  padding: 1px 7px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.side-note {
  margin: auto 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.side-note strong,
.side-note span {
  display: block;
}

.side-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.main {
  min-width: 0;
  padding: 22px;
}

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

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 15px;
}

p {
  margin: 0;
}

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

.top-search {
  display: flex;
  flex: 1 1 420px;
  max-width: 620px;
  gap: 8px;
}

.top-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
}

.icon-button,
.ghost-button,
.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 22px;
}

.ghost-button,
.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.danger-button {
  border: 1px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.notice,
.view {
  max-width: 1240px;
  margin: 0 auto;
}

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #f3d89b;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--amber-soft);
  color: #583500;
}

.notice span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  background: #ffe4a3;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.api-banner {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.api-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.85fr) auto auto;
  gap: 8px;
  align-items: center;
  flex: 1 1 520px;
}

.api-form input {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.view {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

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

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel {
  padding: 18px;
  box-shadow: var(--shadow);
}

.card {
  padding: 14px;
}

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

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

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  min-height: 320px;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-copy h2 {
  max-width: 760px;
  font-size: 42px;
}

.hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.paste-row {
  display: flex;
  gap: 8px;
  max-width: 760px;
}

.paste-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
}

.visual-stack {
  display: grid;
  gap: 10px;
  align-content: center;
}

.visual-card {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #fff, #edf7f6);
}

.visual-card:nth-child(2) {
  background: linear-gradient(135deg, #fff, #fff2d4);
}

.visual-card:nth-child(3) {
  background: linear-gradient(135deg, #fff, #eef3ff);
}

.visual-card strong,
.visual-card span {
  display: block;
}

.visual-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.step {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-soft);
}

.step b {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.step span {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.status {
  background: #eef2f7;
  color: var(--muted);
}

.status.good {
  background: var(--green-soft);
  color: var(--green);
}

.status.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.bad {
  background: var(--red-soft);
  color: var(--red);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 800;
  color: #344054;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.inline-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.list {
  display: grid;
  gap: 10px;
}

.item-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
}

.item-visual,
.qc-photo {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20,95,255,0.08), rgba(15,118,110,0.12)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.72) 0 8px, rgba(255,255,255,0.36) 8px 16px);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.item-visual {
  width: 74px;
  height: 74px;
}

.item-main {
  min-width: 0;
}

.item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.metric strong {
  display: block;
  font-size: 24px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f4f7;
  font-size: 12px;
}

tr:last-child td {
  border-bottom: 0;
}

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

.qc-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
}

.qc-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--panel-soft);
  text-align: center;
}

.empty-visual {
  width: 72px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(20,95,255,0.12) 18px 36px, transparent 36px),
    linear-gradient(135deg, #fff, #ecfdf5);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.quick-rail {
  position: fixed;
  z-index: 15;
  right: 16px;
  top: 50%;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.quick-button {
  display: grid;
  width: 48px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.quick-button:hover {
  border-color: #b8c2d6;
  background: var(--blue-soft);
  color: #0d47c5;
}

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

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

.portal {
  width: min(1120px, 100%);
}

.portal-hero {
  margin-bottom: 18px;
}

.portal-brand {
  width: max-content;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.portal-hero h1 {
  max-width: 820px;
  font-size: 46px;
}

.portal-copy {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

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

.surface-card {
  display: grid;
  min-height: 260px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.surface-card:hover {
  border-color: #b8c2d6;
  transform: translateY(-1px);
}

.surface-card h2 {
  margin-top: 18px;
  font-size: 28px;
}

.surface-card p {
  margin: 10px 0 24px;
  color: var(--muted);
}

.surface-card strong {
  color: var(--blue);
}

.surface-label {
  width: max-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--blue-soft);
  color: #0d47c5;
  font-size: 12px;
  font-weight: 800;
}

.admin-surface .surface-label,
.admin-notice span {
  background: #ede9fe;
  color: #5b21b6;
}

.admin-surface {
  background: linear-gradient(135deg, #fff, #f7f4ff);
}

.client-surface {
  background: linear-gradient(135deg, #fff, #effaf8);
}

.portal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
}

.portal-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.admin-body {
  background: #f7f5fb;
}

.admin-sidebar {
  background: #fcfbff;
}

.admin-mark {
  background: #4c1d95;
}

.admin-nav button.active {
  background: #ede9fe;
  color: #5b21b6;
}

.admin-notice {
  border-color: #d8b4fe;
  background: #faf5ff;
  color: #3b0764;
}

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

  .sidebar {
    position: relative;
    height: auto;
  }

  .nav {
    display: flex;
    overflow-x: auto;
  }

  .nav button {
    flex: 0 0 auto;
    width: auto;
  }

  .side-note {
    display: none;
  }

  .grid.two,
  .grid.three,
  .hero-panel,
  .policy-grid,
  .surface-grid {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .main {
    padding: 14px;
  }

  .topbar,
  .notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-search {
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
  }

  .hero-copy h2 {
    font-size: 31px;
  }

  .portal-hero h1 {
    font-size: 34px;
  }

  .paste-row,
  .top-search,
  .actions,
  .api-form {
    display: flex;
    flex-direction: column;
  }

  .paste-row .primary-button,
  .paste-row .secondary-button,
  .top-search .primary-button,
  .api-form input,
  .api-form button,
  .actions button,
  .actions a {
    width: 100%;
  }

  .quick-rail {
    right: 10px;
    bottom: 10px;
    top: auto;
    grid-auto-flow: column;
    transform: none;
  }

  .quick-button {
    width: 42px;
    min-height: 38px;
    font-size: 10px;
  }

  .form-grid,
  .metric-row,
  .timeline,
  .qc-grid {
    grid-template-columns: 1fr;
  }
}

/* GOATEDBUY client experience */
.client-body {
  --bg: #f5f6f7;
  --panel: #ffffff;
  --panel-soft: #f7f8f9;
  --ink: #17191d;
  --muted: #687078;
  --line: #dfe3e6;
  --blue: #f04f3d;
  --blue-soft: #fff0ed;
  --teal: #166e62;
  --teal-soft: #e9f5f2;
  --amber: #805500;
  --amber-soft: #fff5d8;
  --green: #147548;
  --green-soft: #e8f5ed;
  --shadow: 0 18px 45px rgba(23, 25, 29, 0.09);
  background: #fff;
}

.client-body svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.client-body button,
.client-body a,
.client-body input {
  letter-spacing: 0;
}

.announcement {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 24px;
  background: #17191d;
  color: #fff;
  font-size: 12px;
}

.announcement p {
  color: #e9ecef;
}

.announcement button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #ff7b68;
  font-weight: 800;
  cursor: pointer;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  min-height: 74px;
  max-width: 1440px;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 0 28px;
}

.client-body .brand {
  gap: 10px;
  padding: 0;
  border: 0;
}

.brand-button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.client-body .brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 7px;
  background: #17191d;
  color: #fff;
}

.client-body .brand-mark::before,
.client-body .brand-mark::after {
  position: absolute;
  top: -3px;
  width: 13px;
  height: 15px;
  border-radius: 3px 3px 8px 8px;
  background: #f04f3d;
  content: "";
}

.client-body .brand-mark::before {
  left: 5px;
  transform: rotate(-20deg);
}

.client-body .brand-mark::after {
  right: 5px;
  transform: rotate(20deg);
}

.client-body .brand-mark span {
  position: relative;
  z-index: 1;
}

.client-body .brand-mark.has-logo {
  border: 1px solid #eceff1;
  background: #fff;
}

.client-body .brand-mark.has-logo::before,
.client-body .brand-mark.has-logo::after {
  display: none;
}

.client-body .brand-mark.has-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-body .brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.client-body .top-search {
  position: relative;
  display: flex;
  max-width: 600px;
  height: 42px;
  align-items: center;
  flex-direction: row;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 5px 0 12px;
  background: #f7f8f9;
}

.client-body .top-search > svg {
  color: #8a9299;
}

.client-body .top-search input {
  height: 38px;
  border: 0;
  padding: 0;
  outline: 0;
  background: transparent;
}

.search-submit {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.top-actions,
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.currency-button,
.account-button,
.header-icon {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  padding: 0 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.currency-button:hover,
.account-button:hover,
.header-icon:hover {
  background: #f1f3f4;
}

.header-icon {
  width: 38px;
  padding: 0;
}

.client-body .shell {
  display: block;
  min-height: 0;
}

.client-body .sidebar {
  position: sticky;
  z-index: 25;
  top: 74px;
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: visible;
}

.client-body .nav {
  display: flex;
  max-width: 1440px;
  gap: 2px;
  margin: 0 auto;
  padding: 7px 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.client-body .nav::-webkit-scrollbar {
  display: none;
}

.client-body .nav button {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  flex: 0 0 auto;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 7px 10px;
  color: #525960;
}

.client-body .nav button:hover {
  background: #f5f6f7;
  color: var(--ink);
}

.client-body .nav button.active {
  background: #17191d;
  color: #fff;
}

.client-body .nav .count {
  min-width: 19px;
  padding: 0 5px;
  background: #f04f3d;
  color: #fff;
}

.client-body .side-note {
  display: none;
}

.client-body[data-view="dashboard"] .sidebar {
  display: none;
}

.client-body .main {
  min-height: 70vh;
  padding: 28px 28px 84px;
}

.client-body[data-view="dashboard"] .main {
  padding-top: 0;
}

.client-body .topbar,
.client-body .notice,
.client-body .view {
  max-width: 1384px;
}

.client-body .workspace-heading {
  min-height: 62px;
  margin-bottom: 18px;
}

.client-body[data-view="dashboard"] .workspace-heading {
  display: none;
}

.client-body .view {
  margin-top: 0;
}

.client-body[data-view="dashboard"] .view {
  max-width: 1440px;
}

.client-body .ghost-button,
.client-body .primary-button,
.client-body .secondary-button,
.client-body .danger-button,
.client-body .icon-button {
  gap: 7px;
}

.client-body .primary-button {
  border-color: #f04f3d;
  background: #f04f3d;
}

.client-body .primary-button:hover {
  border-color: #d93d2d;
  background: #d93d2d;
}

.home-page {
  display: grid;
  gap: 0;
}

.home-hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: min(520px, calc(100vh - 176px));
  align-items: center;
  margin: 0 auto;
  padding: 56px 64px;
  background-color: #f8f6f3;
  /* Design Language V2: legacy hero photo retired; .home-hero is no longer rendered
     (renderDashboard is now the dl-v2 layout). Kept as dead style pending full Stage-E sweep. */
}

.home-hero::before {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 56%;
  background: rgba(255, 255, 255, 0.78);
  content: "";
  pointer-events: none;
}

.home-hero .hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(620px, 52%);
  gap: 22px;
}

.hero-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  border-left: 3px solid #f04f3d;
  padding-left: 10px;
  color: #3f464c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-hero h2 {
  max-width: 580px;
  color: #17191d;
  font-size: 58px;
  line-height: 1.02;
}

.home-hero h2 em {
  color: #f04f3d;
  font-style: normal;
}

.home-hero .hero-copy > div > p {
  max-width: 520px;
  margin-top: 16px;
  color: #515960;
  font-size: 16px;
}

.hero-search {
  display: flex;
  width: min(660px, 100%);
  min-height: 58px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d5dadd;
  border-radius: 8px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(35, 39, 43, 0.14);
}

.hero-search > svg {
  color: #717980;
}

.hero-search input {
  min-width: 0;
  height: 44px;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.hero-search .primary-button {
  min-width: 126px;
  min-height: 44px;
  white-space: nowrap;
}

.save-link-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #eff1f2;
  color: var(--ink);
  cursor: pointer;
}

.platform-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.platform-row span {
  color: #858d94;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.platform-row strong {
  border: 1px solid #d8dddf;
  border-radius: 5px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #4f565d;
  font-size: 11px;
}

.hero-actions button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.hero-actions button + button {
  margin-left: 18px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.proof-strip > div {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding: 16px;
}

.proof-strip > div:last-child {
  border-right: 0;
}

.proof-strip svg {
  width: 24px;
  height: 24px;
  color: #f04f3d;
}

.proof-strip span,
.proof-strip strong {
  display: block;
}

.proof-strip span {
  color: #747b82;
  font-size: 12px;
}

.proof-strip strong {
  color: var(--ink);
  font-size: 14px;
}

.client-body .api-banner {
  width: calc(100% - 36px);
  margin: 26px auto 0;
  border-color: #dfe3e6;
  padding: 16px;
  background: #f7f8f9;
  color: var(--ink);
}

.api-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #17191d;
  color: #fff;
}

.client-body .api-banner p {
  color: var(--muted);
}

.client-body .api-banner > .status {
  flex: 0 0 auto;
}

.home-section {
  padding: 76px 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: end;
  max-width: 1240px;
  margin: 0 auto 34px;
}

.section-heading > p {
  color: var(--muted);
  font-size: 15px;
}

.section-heading h2,
.action-section h2 {
  font-size: 36px;
}

.section-index {
  color: #f04f3d;
  font-size: 12px;
  font-weight: 900;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  display: grid;
  min-height: 340px;
  align-content: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.service-card::before {
  position: absolute;
  top: -52px;
  right: -26px;
  width: 190px;
  height: 190px;
  border: 44px solid rgba(23, 25, 29, 0.06);
  border-radius: 50%;
  content: "";
}

.service-buy {
  background: #fff3e5;
}

.service-qc {
  background: #e9f4f1;
}

.service-ship {
  background: #edf1fb;
}

.service-icon {
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #17191d;
  color: #fff;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card > span {
  margin-bottom: 8px;
  color: #f04f3d;
  font-size: 11px;
  font-weight: 900;
}

.service-card h3 {
  max-width: 290px;
  font-size: 25px;
}

.service-card p {
  min-height: 63px;
  margin-top: 12px;
  color: #5e666d;
}

.service-card button {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  border: 0;
  border-bottom: 1px solid #17191d;
  padding: 0 0 3px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.process-section {
  overflow: hidden;
  border-top: 0;
  border-bottom: 0;
  background: #17191d;
  color: #fff;
}

.process-heading {
  grid-template-columns: 52px minmax(0, 1fr) minmax(260px, 410px);
}

.process-heading .eyebrow,
.process-heading .section-index {
  color: #ff705f;
}

.process-heading > p {
  color: #b9bec4;
}

.journey-lane {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto minmax(40px, 1fr) auto;
  gap: 18px;
  max-width: 1240px;
  align-items: center;
  margin: 0 auto 20px;
  color: #d8dbde;
  font-size: 12px;
  font-weight: 700;
}

.journey-lane span,
.journey-lane div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.journey-lane div {
  justify-content: center;
  border-top: 1px dashed #555b62;
  color: #ff705f;
}

.journey-lane div svg {
  width: 18px;
  height: 18px;
  margin-top: -1px;
  background: #17191d;
}

.journey-lane span svg {
  width: 16px;
  height: 16px;
}

.journey-lane strong {
  border: 1px solid #626971;
  border-radius: 4px;
  padding: 7px 10px;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
}

.process-step {
  position: relative;
  display: grid;
  min-height: 300px;
  align-content: start;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 22px;
  color: #17191d;
}

.process-step-1 {
  background: #fff3e5;
}

.process-step-2 {
  background: #e9f4f1;
}

.process-step-3 {
  background: #edf1fb;
}

.process-step-4 {
  grid-column: 3;
  grid-row: 2;
  background: #f5ede7;
}

.process-step-5 {
  grid-column: 2;
  grid-row: 2;
  background: #e8f1f7;
}

.process-step-6 {
  grid-column: 1;
  grid-row: 2;
  background: #f2f3e8;
}

.process-step-head {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.process-number {
  margin-right: 12px;
  color: #f04f3d;
  font-size: 14px;
  font-weight: 900;
}

.process-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: #17191d;
  color: #fff;
}

.process-icon svg {
  width: 21px;
  height: 21px;
}

.process-status {
  margin-left: auto;
  border: 1px solid rgba(23, 25, 29, 0.2);
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.process-step h3 {
  min-height: 56px;
  font-size: 20px;
  line-height: 1.18;
}

.process-step h3 small {
  display: block;
  margin-top: 5px;
  color: #656c72;
  font-size: 12px;
  font-weight: 700;
}

.process-step ul {
  display: grid;
  gap: 7px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.process-step li {
  position: relative;
  padding-left: 15px;
  color: #555d64;
  font-size: 12px;
  line-height: 1.4;
}

.process-step li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f04f3d;
  content: "";
}

.process-connector {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -21px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  transform: translateY(-50%);
  border: 4px solid #17191d;
  border-radius: 50%;
  background: #fff;
  color: #17191d;
}

.process-connector svg {
  width: 14px;
  height: 14px;
}

.process-step-3 .process-connector {
  top: auto;
  right: 22px;
  bottom: -21px;
  transform: rotate(90deg);
}

.process-step-4 .process-connector,
.process-step-5 .process-connector {
  right: auto;
  left: -21px;
  transform: translateY(-50%) rotate(180deg);
}

.action-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  max-width: 1276px;
  align-items: center;
  margin: 0 auto;
}

.next-action-copy {
  display: flex;
  gap: 20px;
}

.next-action {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.next-action-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #d83c2c;
}

.next-action p {
  margin-top: 4px;
  color: var(--muted);
}

.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.workspace-metrics div {
  padding: 10px;
}

.workspace-metrics strong,
.workspace-metrics span {
  display: block;
}

.workspace-metrics strong {
  font-size: 25px;
}

.workspace-metrics span {
  color: var(--muted);
  font-size: 11px;
}

.community-banner {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 18px 18px;
  padding: 42px 52px;
  background: #204fdb;
  color: #fff;
}

.community-banner > div {
  display: flex;
  align-items: center;
  gap: 28px;
}

.community-banner > div > svg {
  width: 58px;
  height: 58px;
}

.community-banner span {
  color: #bfcdf8;
  font-size: 11px;
  font-weight: 900;
}

.community-banner h2 {
  margin-top: 5px;
  font-size: 30px;
}

.community-banner p {
  max-width: 660px;
  margin-top: 8px;
  color: #d9e1fb;
}

.light-button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #fff;
  color: #173ca7;
  font-weight: 800;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.header-select {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 7px;
  color: #4f5968;
}

.header-select:hover,
.header-select:focus-within {
  border-color: var(--line);
  background: #f7f8fa;
}

.header-select svg {
  width: 17px;
  height: 17px;
}

.header-select select {
  width: auto;
  max-width: 76px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 25, 29, 0.07);
}

.auth-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
  background: #17191d;
  color: #fff;
}

.auth-context img {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.auth-context .eyebrow {
  color: #ff7062;
}

.auth-context h2 {
  max-width: 520px;
  margin-top: 8px;
  color: #fff;
  font-size: 38px;
  line-height: 1.08;
}

.auth-context > p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 18px;
  color: #c7ccd5;
  line-height: 1.65;
}

.auth-context ul {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  color: #e8eaf0;
  font-size: 13px;
  list-style: none;
}

.auth-context li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: #ff5648;
}

.auth-form-panel {
  display: grid;
  align-content: center;
  padding: 54px clamp(28px, 6vw, 82px);
}

.account-form {
  display: grid;
  gap: 18px;
}

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

.account-form .field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.account-form .field span {
  color: #303741;
  font-size: 12px;
  font-weight: 800;
}

.account-form .field small {
  color: #7b8492;
  font-size: 11px;
  line-height: 1.4;
}

.account-form input,
.account-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #d9dde4;
  border-radius: 6px;
  padding: 0 13px;
  background: #fff;
  color: #20252d;
  font: inherit;
}

.account-form input:focus,
.account-form select:focus {
  border-color: #4c67c5;
  outline: 3px solid rgba(76, 103, 197, 0.14);
}

.account-form input:disabled {
  background: #f4f5f7;
  color: #69717e;
}

.account-form .primary-button,
.account-form .secondary-button {
  min-height: 46px;
  justify-content: center;
}

.auth-switch {
  margin-top: 22px;
  color: #69717e;
  font-size: 13px;
  text-align: center;
}

.auth-switch button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #294dad;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.form-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.form-message.error {
  border: 1px solid #f2b7b1;
  background: #fff3f1;
  color: #9a2f25;
}

.form-message svg {
  flex: 0 0 auto;
  width: 18px;
}

.development-token {
  display: grid;
  gap: 6px;
  min-width: 0;
  border-left: 3px solid #ff5648;
  padding: 10px 12px;
  background: #f6f7f9;
  color: #59616e;
  font-size: 11px;
}

.development-token code {
  overflow-wrap: anywhere;
  color: #20252d;
}

.account-page {
  display: grid;
  gap: 22px;
}

.client-body[data-view="login"] .quick-rail,
.client-body[data-view="register"] .quick-rail,
.client-body[data-view="verifyEmail"] .quick-rail,
.client-body[data-view="verifyDevice"] .quick-rail,
.client-body[data-view="account"] .quick-rail,
.client-body[data-view="addresses"] .quick-rail,
.client-body[data-view="login"] .workspace-actions,
.client-body[data-view="register"] .workspace-actions,
.client-body[data-view="verifyEmail"] .workspace-actions,
.client-body[data-view="verifyDevice"] .workspace-actions,
.client-body[data-view="account"] .workspace-actions,
.client-body[data-view="addresses"] .workspace-actions {
  display: none;
}

.account-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.account-tabs button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 16px;
  background: transparent;
  color: #626b78;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.account-tabs button.active {
  border-bottom-color: #ff5648;
  color: #17191d;
}

.account-tabs svg {
  width: 17px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr);
  gap: 24px;
}

.settings-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.section-heading-compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading-compact h2 {
  font-size: 18px;
}

.section-heading-compact p {
  margin-top: 5px;
  color: #737c89;
  font-size: 12px;
}

.section-heading-compact > svg {
  width: 24px;
  color: #2d56bf;
}

.full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #3f4752;
  font-size: 13px;
}

.check-field input {
  width: 17px;
  min-height: 17px;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #e5aaa4;
  border-bottom: 1px solid #e5aaa4;
  padding: 22px 4px;
}

.danger-zone h2 {
  color: #8c2d25;
  font-size: 17px;
}

.danger-zone p {
  max-width: 720px;
  margin-top: 5px;
  color: #6c737d;
  font-size: 12px;
}

.address-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
  gap: 24px;
  align-items: start;
}

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

.address-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  border: 1px solid #e1e4e9;
  border-radius: 6px;
  padding: 16px;
  background: #fafbfc;
}

.address-item.default {
  border-color: #9cb0e6;
  background: #f5f8ff;
}

.address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.address-item p,
.address-item > div > span {
  margin-top: 7px;
  color: #69717e;
  font-size: 12px;
  line-height: 1.55;
}

.address-actions {
  display: flex;
  gap: 6px;
}

.ui-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed #cfd4dd;
  border-radius: 8px;
  padding: 32px;
  background: #fff;
  color: #66707e;
  text-align: center;
}

.ui-state h2,
.ui-state h3 {
  color: #20252d;
}

.ui-state > svg {
  width: 34px;
  height: 34px;
  color: #4a66c6;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dce2f1;
  border-top-color: #3f60c2;
  border-radius: 50%;
  animation: account-spin 0.8s linear infinite;
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.client-body:not([data-view="dashboard"]) .panel {
  box-shadow: 0 8px 28px rgba(23, 25, 29, 0.06);
}

.client-body .quick-rail {
  right: 18px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.client-body .quick-button {
  width: 54px;
  min-height: 54px;
  gap: 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  font-size: 9px;
}

.client-body .quick-button:last-child {
  border-bottom: 0;
}

.client-body .quick-button:hover {
  background: var(--blue-soft);
  color: #d83c2c;
}

.site-footer {
  border-top: 0;
  padding: 44px 44px 24px;
  background: #222;
  color: #fff;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.1fr 1.1fr;
  gap: 64px;
  max-width: 1710px;
  margin: 0 auto;
}

.footer-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.footer-column h2 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.footer-column button,
.footer-column a,
.footer-policy-links button,
.company-details a {
  width: auto;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #a7a7aa;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.footer-column button:hover,
.footer-column a:hover,
.footer-policy-links button:hover,
.company-details a:hover {
  color: #fff;
}

.footer-lower {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.35fr);
  gap: 76px;
  max-width: 1710px;
  align-items: start;
  margin: 46px auto 0;
}

.company-details {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #a7a7aa;
  font-size: 15px;
  font-style: normal;
  line-height: 1.42;
}

.footer-legal-payment {
  display: grid;
  gap: 26px;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
}

.real-payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.real-payment-logo {
  display: grid;
  width: 70px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  padding: 7px;
  background: #fff;
}

.real-payment-logo img {
  display: block;
  width: 100%;
  max-width: 58px;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1120px) {
  .site-header-inner {
    gap: 14px;
  }

  .currency-button span,
  .account-button span {
    display: none;
  }

  .home-hero {
    padding: 46px 38px;
  }

  .home-hero .hero-copy {
    width: 58%;
  }

  .home-hero h2 {
    font-size: 48px;
  }

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

  .process-step-1 {
    grid-column: 1;
    grid-row: 1;
  }

  .process-step-2 {
    grid-column: 2;
    grid-row: 1;
  }

  .process-step-3 {
    grid-column: 2;
    grid-row: 2;
  }

  .process-step-4 {
    grid-column: 1;
    grid-row: 2;
  }

  .process-step-5 {
    grid-column: 1;
    grid-row: 3;
  }

  .process-step-6 {
    grid-column: 2;
    grid-row: 3;
  }

  .process-step-2 .process-connector,
  .process-step-4 .process-connector {
    top: auto;
    bottom: -21px;
    transform: rotate(90deg);
  }

  .process-step-2 .process-connector {
    right: 22px;
    left: auto;
  }

  .process-step-4 .process-connector {
    right: auto;
    left: 22px;
  }

  .process-step-3 .process-connector {
    top: 50%;
    right: auto;
    bottom: auto;
    left: -21px;
    transform: translateY(-50%) rotate(180deg);
  }

  .process-step-5 .process-connector {
    top: 50%;
    right: -21px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
  }

  .action-section {
    grid-template-columns: 1fr 1.5fr;
  }

  .workspace-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 22px;
    padding-left: 0;
  }

  .footer-nav-grid {
    gap: 36px;
  }

  .footer-lower {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
  }

  .auth-layout {
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  }

  .auth-context,
  .auth-form-panel {
    padding: 38px;
  }

  .settings-grid,
  .address-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .client-body[data-view="login"] .quick-rail,
  .client-body[data-view="register"] .quick-rail,
  .client-body[data-view="verifyEmail"] .quick-rail,
  .client-body[data-view="verifyDevice"] .quick-rail,
  .client-body[data-view="account"] .quick-rail,
  .client-body[data-view="addresses"] .quick-rail {
    display: none;
  }

  .announcement {
    min-height: 42px;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
  }

  .announcement p {
    max-width: none;
    font-size: 10px;
    white-space: nowrap;
  }

  .announcement button {
    flex: 0 0 auto;
    font-size: 10px;
    white-space: nowrap;
  }

  .site-header-inner {
    min-height: 120px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .header-select {
    padding: 0 4px;
  }

  .header-select select {
    max-width: 54px;
    font-size: 10px;
  }

  .site-header-inner > .top-search {
    order: 3;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  .client-body .sidebar {
    top: 120px;
  }

  .client-body .nav {
    padding: 6px 16px;
  }

  .client-body .nav button {
    padding: 7px 9px;
  }

  .client-body .main {
    padding: 20px 16px 64px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-context {
    min-height: 280px;
    padding: 30px 24px;
  }

  .auth-context img {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
  }

  .auth-context h2 {
    font-size: 30px;
  }

  .auth-context ul {
    display: none;
  }

  .auth-form-panel {
    padding: 30px 22px;
  }

  .account-form.two-column {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .settings-section {
    padding: 18px;
  }

  .account-tabs {
    overflow-x: auto;
  }

  .account-tabs button {
    flex: 0 0 auto;
  }

  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .danger-zone .danger-button {
    width: 100%;
  }

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

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

  .client-body[data-view="dashboard"] .main {
    padding: 0 0 58px;
  }

  .home-hero {
    min-height: 540px;
    align-items: end;
    padding: 155px 20px 28px;
    background-color: #f7f5f1;
    background-position: 68% top;
    background-size: auto 43%;
  }

  .home-hero::before {
    top: 28%;
    width: 100%;
    background: rgba(247, 245, 241, 0.94);
  }

  .home-hero .hero-copy {
    width: 100%;
    gap: 15px;
  }

  .home-hero h2 {
    font-size: 38px;
  }

  .home-hero .hero-copy > div > p {
    margin-top: 10px;
    font-size: 14px;
  }

  .hero-search {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 44px;
    min-height: 112px;
  }

  .hero-search .primary-button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
  }

  .hero-search + .platform-row {
    margin-top: 0;
  }

  .save-link-button {
    grid-column: 3;
    grid-row: 1;
  }

  .hero-actions {
    display: none;
  }

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

  .proof-strip > div {
    min-height: 74px;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    padding: 12px 18px;
  }

  .proof-strip > div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip > div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .client-body .api-banner {
    width: calc(100% - 32px);
    margin: 18px 16px 0;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .client-body .api-form {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .home-section {
    padding: 56px 16px;
  }

  .section-heading {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .section-heading > p {
    grid-column: 2;
  }

  .section-heading h2,
  .action-section h2 {
    font-size: 28px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 300px;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    padding: 20px;
  }

  .process-step h3 {
    min-height: 0;
  }

  .process-step .process-connector {
    top: auto;
    right: 22px;
    bottom: -21px;
    left: auto;
    transform: rotate(90deg);
  }

  .journey-lane {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .journey-lane div {
    display: none;
  }

  .journey-lane span:last-child {
    justify-content: flex-end;
    text-align: right;
  }

  .journey-lane strong {
    grid-column: 2;
    grid-row: 1;
  }

  .action-section {
    grid-template-columns: 1fr;
    padding-right: 20px;
    padding-left: 20px;
  }

  .next-action {
    grid-template-columns: 48px minmax(0, 1fr);
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 24px;
    padding-left: 0;
  }

  .next-action .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .community-banner {
    display: grid;
    margin: 0;
    padding: 34px 22px;
  }

  .community-banner > div {
    align-items: flex-start;
    gap: 16px;
  }

  .community-banner > div > svg {
    width: 36px;
    height: 36px;
  }

  .community-banner h2 {
    font-size: 24px;
  }

  .light-button {
    width: 100%;
  }

  .client-body .quick-rail {
    right: 8px;
    bottom: 8px;
    top: auto;
    display: flex;
    transform: none;
  }

  .client-body .quick-button {
    width: 48px;
    min-height: 46px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .site-footer {
    padding: 42px 20px 26px;
  }

  .footer-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 22px;
  }

  .footer-column h2 {
    font-size: 15px;
  }

  .footer-column button,
  .footer-column a,
  .footer-policy-links button,
  .company-details a {
    font-size: 12px;
  }

  .footer-lower {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 44px;
  }

  .company-details {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .footer-policy-links {
    gap: 12px 20px;
  }

  .real-payment-logo {
    width: 58px;
    height: 40px;
    padding: 6px;
  }
}

/* ---- Social sign-in (OAuth) ---- */
.oauth-block { margin-top: 18px; }
.oauth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.oauth-divider::before, .oauth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.oauth-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oauth-button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .05s ease;
}
.oauth-button:hover { border-color: var(--ink); }
.oauth-button:active { transform: translateY(1px); }
.oauth-button:disabled { opacity: .55; cursor: default; transform: none; }
.oauth-button .oauth-mark { display: inline-flex; flex: 0 0 auto; }
.oauth-button.is-unconfigured { color: var(--muted); }
.oauth-button .oauth-setup {
  margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px;
}
@media (max-width: 520px) { .oauth-buttons { grid-template-columns: 1fr; } }
