:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --ink: #17211e;
  --muted: #5c6b66;
  --line: #d9e4df;
  --surface: #ffffff;
  --surface-2: #edf5f1;
  --green: #0f766e;
  --green-dark: #0a5f58;
  --yellow: #f5c451;
  --red: #b42318;
  --success: #1f7a45;
  --shadow: 0 18px 45px rgba(22, 33, 30, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.app-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(217, 228, 223, 0.9);
  background: rgba(255, 255, 255, 0.9);
  padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 0 16px;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.primary:hover {
  background: var(--green-dark);
}

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

.button.danger {
  border-color: #f2c2b8;
  color: #9f2d1f;
}

.button.full-width {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 67px);
  overflow: hidden;
  padding: clamp(48px, 8vw, 92px) clamp(16px, 5vw, 68px);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 20, 17, 0.88), rgba(10, 20, 17, 0.54)),
    linear-gradient(0deg, rgba(10, 20, 17, 0.48), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.hero-content > p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.trust-row {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 68px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.section-lead,
.section-heading p,
.cta-band p,
.steps p,
.sync-grid p,
.connection-flow p {
  color: var(--muted);
  line-height: 1.55;
}

.section-lead {
  max-width: 580px;
  font-size: 18px;
}

.steps,
.connection-flow,
.sync-grid {
  display: grid;
  gap: 12px;
}

.steps article,
.connection-flow article,
.sync-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.steps span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
}

.steps strong,
.connection-flow strong,
.sync-grid strong {
  display: block;
  margin-bottom: 6px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.niche-card,
.product-card,
.plan-card,
.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.niche-card {
  overflow: hidden;
}

.niche-card img,
.product-card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.niche-card img {
  height: 178px;
}

.niche-card div,
.product-card div,
.plan-card {
  padding: 16px;
}

.niche-card strong,
.product-card strong {
  display: block;
  margin-bottom: 6px;
}

.niche-card span,
.product-card span,
.plan-card span,
.metric-card span,
.metric-card small {
  color: var(--muted);
}

.products-section {
  background: #fff;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-card img {
  height: 150px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}

.plans-section {
  background: var(--surface-2);
}

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

.plan-card {
  display: grid;
  grid-template-rows: auto 92px 78px 72px 86px 1fr auto;
  min-height: 100%;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.plan-card.is-featured {
  border-color: var(--green);
}

.plan-card.is-active-plan {
  border-color: var(--green);
  background: #f3faf7;
}

.plan-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.plan-card-header span {
  margin-right: auto;
  color: var(--muted);
  font-weight: 900;
}

.plan-card-header em {
  border-radius: 999px;
  background: #fff3d0;
  color: #946200;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.plan-card-header em.is-current {
  background: #dff5e8;
  color: #1a7a42;
}

.plan-card > strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.plan-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 8px;
}

.plan-price span {
  color: var(--ink);
  font-size: 38px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.plan-price small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.plan-quota {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.plan-quota span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.plan-quota strong {
  color: var(--ink);
  font-size: 18px;
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
}

.plan-card .button {
  margin-top: auto;
  width: 100%;
  min-height: 52px;
  white-space: nowrap;
}

.plan-card .button.current-plan {
  border-color: var(--green);
  background: #fff;
  color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(20, 127, 112, 0.12);
}

.subscription-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
  padding: 16px;
}

.subscription-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.subscription-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.subscription-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.subscription-actions .button {
  min-height: 50px;
  max-width: 430px;
  width: 100%;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 clamp(16px, 5vw, 68px) clamp(48px, 8vw, 88px);
  border-radius: 8px;
  background: #17211e;
  color: #fff;
  padding: clamp(24px, 4vw, 42px);
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.cta-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.app-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--bg);
}

.app-screen.is-open {
  display: grid;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-right: 1px solid var(--line);
  background: #fbfcfc;
  padding: 22px 18px;
}

.sidebar-brand {
  margin-bottom: 8px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--surface-2);
  color: var(--ink);
}

.sidebar-legal {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.sidebar-legal a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.sidebar-legal a:hover {
  color: var(--green-700);
}

.sidebar .button {
  margin-top: auto;
}

.workspace {
  min-width: 0;
  overflow-y: auto;
  padding: 28px;
}

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

.workspace-header h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.app-view {
  display: none;
}

.app-view.is-visible {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 29px;
  line-height: 1;
}

.panel {
  overflow: hidden;
}

.supplier-panel {
  margin-top: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 0 9px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.badge.success {
  background: #e4f6ec;
  color: var(--success);
}

.badge.warning {
  background: #fff3d0;
  color: #946200;
}

.badge.neutral {
  background: #edf1f4;
  color: #40505a;
}

.connection-flow,
.sync-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px;
}

.delivery-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.delivery-overview article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.delivery-overview strong {
  display: block;
  margin-bottom: 6px;
}

.delivery-overview p,
.delivery-note {
  color: var(--muted);
  line-height: 1.5;
}

.delivery-overview p,
.delivery-note {
  margin: 0;
}

.delivery-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.delivery-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 13px;
}

.delivery-table th,
.delivery-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.delivery-table th {
  position: sticky;
  top: 0;
  background: #f8faf9;
  color: var(--muted);
  font-weight: 900;
}

.delivery-table th:first-child,
.delivery-table td:first-child,
.delivery-table th:nth-child(2),
.delivery-table td:nth-child(2),
.delivery-table th:nth-child(3),
.delivery-table td:nth-child(3) {
  text-align: left;
}

.delivery-table td:first-child {
  font-weight: 800;
}

.delivery-note {
  padding: 14px 16px 16px;
  font-size: 13px;
}

.shopify-connect-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.readonly-field {
  display: grid;
  gap: 8px;
}

.readonly-field span {
  color: var(--muted);
  font-weight: 800;
}

.readonly-field strong {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  padding: 0 14px;
  word-break: break-word;
}

.shopify-connect-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.shopify-connect-form p[data-tone="success"] {
  color: var(--success);
  font-weight: 800;
}

.shopify-connect-form p[data-tone="error"] {
  color: var(--red);
  font-weight: 800;
}

.supplier-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.supplier-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 16px;
}

.catalog-toolbar h3 {
  margin-bottom: 6px;
}

.catalog-toolbar p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.product-field-transfer {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 16px;
}

.product-field-transfer h3 {
  margin: 4px 0 8px;
}

.product-field-transfer p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-field-transfer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-field-transfer li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.catalog-preview {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.selected-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 10px 12px;
}

.integration-progress {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 14px 16px;
}

.integration-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.integration-progress-head span,
.integration-progress p {
  color: var(--muted);
  font-size: 13px;
}

.integration-progress progress {
  width: 100%;
  height: 12px;
  accent-color: var(--green);
}

.integration-progress p {
  margin: 10px 0 0;
}

.catalog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 148px));
  gap: 8px;
  justify-content: start;
}

.catalog-preview-card {
  position: relative;
  display: grid;
  grid-template-rows: 132px minmax(104px, auto);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.catalog-preview-card.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16);
}

.catalog-preview-card.is-imported {
  background: #fbfdfc;
}

.catalog-select {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(23, 33, 30, 0.18);
}

.catalog-select input {
  width: 17px;
  height: 17px;
  min-height: 17px;
}

.catalog-preview-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
}

.catalog-preview-card div {
  padding: 10px;
}

.catalog-preview-card strong {
  display: block;
  display: -webkit-box;
  min-height: 36px;
  overflow: hidden;
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-preview-card span {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.45;
}

.catalog-preview-card .imported-label {
  color: var(--green);
  font-weight: 900;
}

.catalog-preview-card.is-loading {
  pointer-events: none;
}

.catalog-preview-card.is-loading .skeleton-media,
.catalog-preview-card.is-loading strong,
.catalog-preview-card.is-loading span,
.category-row.is-loading .category-dot,
.category-row.is-loading strong,
.category-row.is-loading span span,
.category-row.is-loading .badge {
  display: block;
  border-radius: 7px;
  background: linear-gradient(90deg, #eef3f1 0%, #f8faf9 42%, #eef3f1 84%);
  background-size: 220% 100%;
  animation: skeletonPulse 1.1s ease-in-out infinite;
}

.catalog-preview-card.is-loading .skeleton-media {
  width: 100%;
  height: 132px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.catalog-preview-card.is-loading strong {
  width: 88%;
  height: 34px;
}

.catalog-preview-card.is-loading span {
  width: 72%;
  height: 11px;
  margin-top: 8px;
}

.catalog-preview-card.is-loading span:last-child {
  width: 48%;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 0;
  flex-wrap: wrap;
}

.catalog-pagination span,
.empty-state {
  color: var(--muted);
  font-size: 13px;
}

.catalog-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.catalog-page-jump input {
  width: 78px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.button.compact {
  min-height: 38px;
  padding: 8px 12px;
}

.empty-state {
  margin: 0;
  padding: 16px;
}

.category-list {
  display: grid;
}

.category-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.category-row:last-child {
  border-bottom: 0;
}

.category-row.is-loading {
  pointer-events: none;
}

.category-row.is-loading .category-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.category-row.is-loading strong {
  width: 70%;
  height: 16px;
  margin-bottom: 8px;
}

.category-row.is-loading span span {
  width: 42%;
  height: 12px;
}

.category-row.is-loading .badge {
  width: 44px;
  height: 24px;
}

.category-row input {
  width: 18px;
  height: 18px;
}

.category-row strong {
  display: block;
  margin-bottom: 3px;
}

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

.settings-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.settings-form small,
.settings-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.orders-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.orders-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.orders-history {
  border-top: 1px solid var(--line);
}

.orders-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.orders-history-header h4 {
  margin: 0;
  font-size: 15px;
}

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

.orders-list.is-history {
  padding-top: 12px;
}

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

.order-card.is-history {
  background: #f8faf9;
}

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

.order-main strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.order-main span,
.order-details,
.order-actions span,
.order-lines small,
.muted {
  color: var(--muted);
  font-size: 12px;
}

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

.order-details span {
  border-radius: 999px;
  background: #f2f6f4;
  padding: 5px 8px;
}

.order-lines {
  display: grid;
  gap: 7px;
}

.order-lines > span {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.order-lines strong {
  font-size: 13px;
}

.order-info-grid,
.order-price-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px;
}

.order-info-grid h4,
.order-price-box strong {
  margin: 0;
}

.order-info-grid h4 {
  margin-bottom: 8px;
  font-size: 12px;
}

.order-info-grid section,
.order-price-lines {
  display: grid;
  gap: 7px;
}

.order-info-grid section > div,
.order-price-lines > div,
.order-price-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.order-info-grid span,
.order-price-box span {
  color: var(--muted);
  font-size: 12px;
}

.order-info-grid strong,
.order-price-lines strong,
.order-price-header strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

.order-price-box.warning {
  border-color: #f0d4a4;
  background: #fff8e8;
}

.order-price-lines .total {
  border-top: 1px solid var(--line);
  margin-top: 3px;
  padding-top: 7px;
}

.order-price-lines .total strong {
  color: var(--green);
  font-size: 15px;
}

.order-card.is-loading {
  pointer-events: none;
}

.order-card.is-loading strong,
.order-card.is-loading span {
  display: block;
  border-radius: 7px;
  background: linear-gradient(90deg, #eef3f1 0%, #f8faf9 42%, #eef3f1 84%);
  background-size: 220% 100%;
  animation: skeletonPulse 1.1s ease-in-out infinite;
}

.order-card.is-loading strong {
  width: 220px;
  height: 18px;
}

.order-card.is-loading span {
  width: 150px;
  height: 12px;
}

.complaint-form {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.complaint-lines {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.complaint-line {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--ink);
}

.complaint-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.complaint-line span {
  display: grid;
  gap: 3px;
}

.complaint-line small,
.complaint-card p {
  color: var(--muted);
}

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

.complaint-card p {
  margin: 0;
  font-size: 13px;
}

.complaint-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.complaint-photo-preview a,
.complaint-photo-preview img {
  width: 72px;
  height: 72px;
}

.complaint-photo-preview a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.complaint-photo-preview img {
  display: block;
  object-fit: cover;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input,
select {
  min-height: 40px;
  padding: 0 11px;
}

textarea {
  min-height: 112px;
  padding: 10px 11px;
  resize: vertical;
}

@keyframes skeletonPulse {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.toggle-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

@media (max-width: 1100px) {
  .niche-grid,
  .plan-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .split-section,
  .selection-layout,
  .catalog-toolbar,
  .connection-flow,
  .shopify-connect-form,
  .subscription-summary,
  .product-field-transfer,
  .delivery-overview,
  .supplier-summary,
  .sync-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-actions {
    display: grid;
    justify-content: stretch;
  }

  .catalog-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 148px));
  }

  .complaint-photos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-content > p {
    font-size: 17px;
  }

  .niche-grid,
  .product-strip,
  .plan-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .cta-band,
  .workspace-header {
    align-items: stretch;
    flex-direction: column;
  }

  .app-screen {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .sidebar-brand {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 10px;
  }

  .nav-item {
    white-space: nowrap;
  }

  .sidebar-legal {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-top: 0;
  }

  .sidebar-legal a {
    white-space: nowrap;
  }

  .workspace {
    padding: 18px 14px;
  }

  .catalog-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 148px));
  }
}
