:root {
  color-scheme: light;
  --ink: #192019;
  --ink-2: #2d372f;
  --ink-3: #4d5a51;
  --cream: #f7f5ed;
  --paper: #fffef9;
  --surface: #ffffff;
  --surface-2: #eef0e9;
  --line: #d9ded5;
  --line-strong: #bcc6bb;
  --muted: #6d776f;
  --lime: #d9f27c;
  --lime-strong: #c7e85b;
  --lime-soft: #f0f8cf;
  --green: #286647;
  --green-dark: #183f2d;
  --blue: #dce8ff;
  --blue-strong: #3f68b4;
  --amber: #a6631d;
  --amber-soft: #fff0d9;
  --danger: #a94138;
  --danger-soft: #fbe8e5;
  --success: #28704c;
  --success-soft: #e4f3e9;
  --shadow-sm: 0 8px 24px rgb(25 32 25 / 8%);
  --shadow-md: 0 18px 48px rgb(25 32 25 / 12%);
  --shadow-lg: 0 28px 80px rgb(25 32 25 / 18%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --content: 1180px;
  --manager-sidebar: 264px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
[role="button"] {
  touch-action: manipulation;
}

button {
  border: 0;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgb(63 104 180 / 48%);
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

#app {
  min-height: 100svh;
  outline: none;
}

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

.skip-link {
  padding: 12px 16px;
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.page-wrap {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

.stack {
  display: grid;
  gap: 16px;
}

.cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.muted {
  color: var(--muted);
}

.text-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--green-dark);
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.button,
.btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.button:active,
.btn:active {
  transform: translateY(0);
}

.button[disabled],
.btn[disabled],
button[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.button-primary,
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 7px 18px rgb(25 32 25 / 16%);
}

.button-primary:hover,
.btn-primary:hover {
  background: #293229;
}

.button-lime,
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 7px 18px rgb(110 136 41 / 14%);
}

.button-lime:hover,
.btn-lime:hover {
  background: var(--lime-strong);
}

.button-secondary,
.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover,
.btn-secondary:hover {
  border-color: var(--ink-3);
}

.button-ghost,
.btn-ghost {
  color: var(--ink-2);
}

.button-danger,
.btn-danger {
  border-color: #e0b7b1;
  background: var(--danger-soft);
  color: #7f2e27;
}

.button-small,
.btn-small {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 13px;
}

.button-block,
.btn-block {
  width: 100%;
}

.icon-button {
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.pill,
.badge,
.status-badge {
  min-height: 28px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.status-badge::before,
.badge-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge.success,
.status-badge.ready,
.badge-success {
  border-color: #b9d7c4;
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.warning,
.status-badge.review,
.badge-warning {
  border-color: #e9c995;
  background: var(--amber-soft);
  color: var(--amber);
}

.status-badge.error,
.badge-danger {
  border-color: #e6bcb7;
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge.processing,
.badge-info {
  border-color: #b9caec;
  background: var(--blue);
  color: #315797;
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  padding: 20px 22px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.panel-header h3 {
  margin-bottom: 5px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

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

.panel-body {
  padding: 22px;
}

/* Forms */

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

.form-grid.compact {
  gap: 14px;
}

.field,
.form-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

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

.field > span:first-child,
.field-label,
.form-label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 790;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.field-label-row small,
.field-help,
.form-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 540;
  line-height: 1.45;
}

.field-error,
.form-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.4;
}

.input,
.select,
.textarea,
.field input,
.field select,
.field textarea,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.3;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.field textarea,
.form-field textarea,
.textarea {
  min-height: 112px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder,
.field input::placeholder,
.field textarea::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #909991;
}

.input:hover,
.select:hover,
.textarea:hover,
.field input:hover,
.field select:hover,
.field textarea:hover,
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #929f94;
}

.input:focus,
.select:focus,
.textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
  outline: 0;
  box-shadow: 0 0 0 4px rgb(40 102 71 / 12%);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
[aria-invalid="true"] {
  border-color: var(--danger);
}

.input-with-prefix,
.input-with-suffix,
.input-row {
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.input-prefix,
.input-suffix {
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.input-prefix {
  border-right: 0;
  border-radius: 12px 0 0 12px;
}

.input-suffix {
  border-left: 0;
  border-radius: 0 12px 12px 0;
}

.input-with-prefix input {
  border-radius: 0 12px 12px 0;
}

.input-with-suffix input {
  border-radius: 12px 0 0 12px;
}

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

.choice-card {
  min-height: 94px;
  padding: 16px;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.choice-card:hover {
  border-color: var(--line-strong);
}

.choice-card:has(input:checked),
.choice-card.is-selected {
  border-color: var(--green);
  background: #f8fbf5;
  box-shadow: 0 0 0 3px rgb(40 102 71 / 10%);
}

.choice-card input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.choice-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.check-row {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.toggle-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.toggle {
  width: 50px;
  height: 30px;
  padding: 3px;
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #b8c0b9;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.toggle::after {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgb(25 32 25 / 22%);
  content: "";
  transition: transform 150ms ease;
}

.toggle.is-on,
.toggle:has(input:checked) {
  background: var(--green);
}

.toggle.is-on::after,
.toggle:has(input:checked)::after {
  transform: translateX(20px);
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Shared brand */

.nearby-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.nearby-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
}

.nearby-brand-on-dark {
  color: white;
}

.nearby-brand-on-dark .nearby-mark {
  background: var(--lime);
  color: var(--ink);
}

/* Authentication */

.auth-shell {
  min-height: 100svh;
  padding: max(22px, var(--safe-top)) max(18px, var(--safe-right)) max(22px, var(--safe-bottom)) max(18px, var(--safe-left));
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 8%, rgb(217 242 124 / 40%), transparent 32rem),
    radial-gradient(circle at 95% 90%, rgb(220 232 255 / 72%), transparent 34rem),
    var(--cream);
}

.auth-layout {
  width: min(100%, 1020px);
  min-height: min(720px, calc(100svh - 44px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.auth-aside {
  padding: clamp(32px, 5vw, 60px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: white;
}

.auth-aside::after {
  width: 290px;
  height: 290px;
  position: absolute;
  right: -95px;
  bottom: -95px;
  border: 52px solid rgb(217 242 124 / 13%);
  border-radius: 50%;
  content: "";
}

.auth-aside-copy {
  max-width: 390px;
  margin-block: 80px 30px;
  position: relative;
  z-index: 1;
}

.auth-aside-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5.2vw, 67px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.auth-aside-copy p {
  margin-bottom: 0;
  color: #b8c1ba;
  font-size: 16px;
  line-height: 1.6;
}

.auth-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.auth-proof span {
  padding-top: 12px;
  border-top: 1px solid #445047;
  color: #aeb8b0;
  font-size: 11px;
  line-height: 1.4;
}

.auth-proof strong {
  margin-bottom: 3px;
  display: block;
  color: var(--lime);
  font-size: 14px;
}

.auth-main {
  padding: clamp(30px, 6vw, 70px);
  display: grid;
  align-content: center;
}

.auth-card {
  width: min(100%, 430px);
  margin: 0 auto;
}

.auth-card h1,
.auth-card h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.auth-lede {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

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

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-legal,
.auth-help {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.auth-legal a,
.auth-help a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.auth-mode-tabs {
  margin-bottom: 24px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 13px;
  background: var(--surface-2);
}

.auth-mode-tab {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.auth-mode-tab.is-active,
.auth-mode-tab[aria-selected="true"] {
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 10px rgb(25 32 25 / 8%);
}

.otp-delivery {
  margin-bottom: 24px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
}

.otp-delivery strong {
  color: var(--ink);
}

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

.otp-input {
  width: 100%;
  min-width: 0;
  aspect-ratio: 0.86;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: white;
  font-size: clamp(22px, 5vw, 29px);
  font-weight: 800;
  text-align: center;
}

.otp-input:focus {
  border-color: var(--green);
  outline: 0;
  box-shadow: 0 0 0 4px rgb(40 102 71 / 12%);
}

.otp-actions {
  min-height: 44px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.otp-actions button {
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 800;
  cursor: pointer;
}

.auth-back {
  min-height: 44px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

/* Merchant onboarding */

.onboarding-shell {
  min-height: 100svh;
  background: var(--cream);
}

.onboarding-header {
  min-height: 76px;
  padding: max(14px, var(--safe-top)) max(20px, var(--safe-right)) 12px max(20px, var(--safe-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 254 249 / 94%);
  backdrop-filter: blur(14px);
}

.onboarding-save {
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 790;
  cursor: pointer;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.save-state::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.save-state.is-saving::before {
  border: 2px solid #abb5ad;
  border-top-color: var(--green);
  background: transparent;
  animation: spin 760ms linear infinite;
}

.onboarding-layout {
  width: min(100%, 1240px);
  min-height: calc(100svh - 77px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.step-rail {
  padding: 48px 26px 40px 24px;
  border-right: 1px solid var(--line);
}

.step-rail > p {
  margin: 0 0 28px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.step-list {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}

.step-item {
  min-height: 58px;
  padding: 10px 12px;
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-radius: 13px;
  color: var(--muted);
}

button.step-item {
  width: 100%;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.step-item.is-current,
.step-item[aria-current="step"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.step-item.is-complete {
  color: var(--ink-2);
}

.step-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.step-item.is-current .step-dot,
.step-item[aria-current="step"] .step-dot {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.step-item.is-complete .step-dot {
  border-color: var(--green);
  background: var(--success-soft);
  color: var(--green);
}

.step-copy strong,
.step-copy small {
  display: block;
}

.step-copy strong {
  font-size: 13px;
}

.step-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.mobile-progress {
  display: none;
}

.onboarding-main {
  min-width: 0;
  padding: clamp(34px, 6vw, 72px) clamp(22px, 7vw, 84px) 48px;
}

.onboarding-card {
  width: min(100%, 780px);
  margin: 0 auto;
}

.onboarding-heading {
  margin-bottom: 32px;
}

.onboarding-heading h1 {
  max-width: 680px;
  margin-bottom: 13px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.onboarding-heading p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.onboarding-section {
  margin-top: 30px;
}

.onboarding-section-title {
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.onboarding-section-title h2,
.onboarding-section-title h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

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

.onboarding-actions {
  margin-top: 36px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.onboarding-actions .button:last-child {
  min-width: 154px;
}

.subdomain-preview {
  min-height: 52px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #c5d5bd;
  border-radius: 13px;
  background: var(--lime-soft);
  color: var(--ink-2);
  font-size: 13px;
}

.subdomain-preview strong {
  overflow: hidden;
  color: var(--green-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Uploads */

.upload-zone {
  min-height: 210px;
  padding: 28px;
  display: grid;
  place-items: center;
  border: 2px dashed #aeb9ae;
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 58%);
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: var(--green);
  background: #f9fced;
}

.upload-zone.is-dragging {
  transform: scale(1.005);
}

.upload-zone-icon,
.upload-add-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--lime);
}

.upload-zone-icon::before,
.upload-zone-icon::after,
.upload-add-icon::before,
.upload-add-icon::after {
  width: 20px;
  height: 2px;
  position: absolute;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}

.upload-zone-icon::after,
.upload-add-icon::after {
  transform: rotate(90deg);
}

.upload-zone strong,
.upload-zone span {
  display: block;
}

.upload-zone strong {
  margin-bottom: 7px;
  font-size: 17px;
}

.upload-zone span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.upload-zone input,
.upload-add-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-meta {
  min-height: 38px;
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.upload-count {
  font-weight: 800;
}

.upload-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.upload-card,
.upload-add-card {
  min-width: 0;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.upload-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-card::after {
  height: 38%;
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, rgb(25 32 25 / 68%));
  content: "";
  pointer-events: none;
}

.upload-card-name {
  max-width: calc(100% - 12px);
  position: absolute;
  z-index: 1;
  left: 7px;
  bottom: 7px;
  overflow: hidden;
  color: white;
  font-size: 10px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-remove {
  width: 34px;
  height: 34px;
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(25 32 25 / 82%);
  color: white;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.upload-status {
  min-height: 24px;
  padding: 5px 8px;
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 800;
}

.upload-add-card {
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.upload-add-card .upload-add-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 7px;
  border-radius: 11px;
}

.upload-add-card span {
  font-size: 11px;
  font-weight: 760;
}

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

.capture-tip {
  min-height: 70px;
  padding: 13px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgb(255 255 255 / 55%);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.capture-tip i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

/* Store templates and branding */

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

.template-card {
  min-width: 0;
  padding: 11px;
  position: relative;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.template-card.is-selected,
.template-card[aria-pressed="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(40 102 71 / 10%), var(--shadow-sm);
}

.template-selected {
  min-height: 27px;
  padding: 5px 9px;
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: none;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 820;
}

.template-card.is-selected .template-selected,
.template-card[aria-pressed="true"] .template-selected {
  display: inline-flex;
}

.template-mini {
  height: 190px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgb(25 32 25 / 10%);
  border-radius: 13px;
  background: var(--store-paper, var(--cream));
  color: var(--store-ink, var(--ink));
}

.template-mini-header {
  height: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-mini-logo {
  width: 42px;
  height: 9px;
  border-radius: 999px;
  background: var(--store-ink, var(--ink));
}

.template-mini-nav {
  width: 70px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-ink, var(--ink)) 20%, transparent);
}

.template-mini-hero {
  height: 72px;
  margin-bottom: 10px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--store-radius, 14px);
  background: var(--store-hero, var(--lime));
}

.template-mini-hero::before {
  width: 54%;
  height: 9px;
  border-radius: 999px;
  background: var(--store-hero-ink, var(--ink));
  content: "";
}

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

.template-mini-grid i {
  height: 52px;
  display: block;
  border: 1px solid color-mix(in srgb, var(--store-ink, var(--ink)) 12%, transparent);
  border-radius: calc(var(--store-radius, 14px) * 0.65);
  background: var(--store-card, white);
}

.template-card-copy {
  padding: 14px 5px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.template-card-copy strong,
.template-card-copy small {
  display: block;
}

.template-card-copy strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.template-card-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.template-swatches {
  padding-top: 3px;
  display: flex;
  gap: 4px;
}

.template-swatches i {
  width: 13px;
  height: 13px;
  display: block;
  border: 1px solid rgb(25 32 25 / 12%);
  border-radius: 50%;
  background: var(--swatch, var(--lime));
}

.branding-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
  align-items: start;
  gap: 24px;
}

.branding-controls {
  display: grid;
  gap: 18px;
}

.asset-dropzone {
  min-height: 118px;
  padding: 16px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  background: var(--surface);
  cursor: pointer;
}

.asset-dropzone-logo,
.asset-dropzone-photo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
}

.asset-dropzone-photo {
  border-radius: 10px;
}

.asset-dropzone-logo img,
.asset-dropzone-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-dropzone strong,
.asset-dropzone small {
  display: block;
}

.asset-dropzone strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.asset-dropzone small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.color-control {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
}

.color-control input[type="color"] {
  width: 50px;
  min-height: 50px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: white;
}

.branding-preview-wrap {
  position: sticky;
  top: 24px;
}

.preview-label {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.storefront-preview {
  min-height: 520px;
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 28px;
  background: var(--store-paper);
  color: var(--store-ink);
  box-shadow: var(--shadow-md);
}

.preview-store-header {
  min-height: 58px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--store-ink) 12%, transparent);
  background: var(--store-header);
}

.preview-store-logo {
  width: 86px;
  height: 23px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
}

.preview-store-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preview-cart-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--store-accent);
}

.preview-store-hero {
  min-height: 185px;
  padding: 26px;
  display: flex;
  align-items: flex-end;
  background: var(--store-hero);
  background-position: center;
  background-size: cover;
  color: var(--store-hero-ink);
}

.preview-store-hero h3 {
  max-width: 330px;
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.preview-store-body {
  padding: 17px;
}

.preview-categories {
  margin-bottom: 14px;
  display: flex;
  gap: 7px;
}

.preview-categories i {
  width: 58px;
  height: 20px;
  display: block;
  border-radius: 999px;
  background: var(--store-soft);
}

.preview-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.preview-products i {
  height: 120px;
  display: block;
  border: 1px solid color-mix(in srgb, var(--store-ink) 12%, transparent);
  border-radius: var(--store-radius);
  background: var(--store-card);
}

/* Processing and readiness */

.processing-panel {
  padding: clamp(24px, 5vw, 42px);
  position: relative;
  overflow: hidden;
  border: 1px solid #46534a;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-md);
}

.processing-panel::after {
  width: 230px;
  height: 230px;
  position: absolute;
  right: -90px;
  bottom: -90px;
  border: 40px solid rgb(217 242 124 / 10%);
  border-radius: 50%;
  content: "";
}

.processing-heading {
  max-width: 590px;
  position: relative;
  z-index: 1;
}

.processing-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.processing-heading p {
  margin-bottom: 0;
  color: #b7c1b9;
  line-height: 1.55;
}

.processing-summary {
  margin-top: 26px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.processing-stat {
  min-height: 88px;
  padding: 15px;
  border: 1px solid #46534a;
  border-radius: 14px;
  background: #222c24;
}

.processing-stat span,
.processing-stat strong {
  display: block;
}

.processing-stat span {
  margin-bottom: 7px;
  color: #9eaaa1;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.processing-stat strong {
  color: var(--lime);
  font-size: 20px;
}

.status-list {
  margin-top: 22px;
  position: relative;
  z-index: 1;
  display: grid;
}

.status-item {
  min-height: 64px;
  padding: 11px 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #39453c;
}

.status-item:last-child {
  border-bottom: 0;
}

.status-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #59635b;
  border-radius: 50%;
  color: #879188;
  font-size: 12px;
  font-weight: 850;
}

.status-item.is-complete .status-icon {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.status-item.is-active .status-icon {
  border: 3px solid #626d65;
  border-top-color: var(--lime);
  color: transparent;
  animation: spin 760ms linear infinite;
}

.status-copy strong,
.status-copy small {
  display: block;
}

.status-copy strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.status-copy small {
  color: #9da79f;
  font-size: 11px;
  line-height: 1.4;
}

.status-time {
  color: #929d94;
  font-size: 11px;
}

.catalog-ready-card {
  margin-top: 20px;
  padding: 22px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #b7d0b8;
  border-radius: 17px;
  background: var(--success-soft);
}

.catalog-ready-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.catalog-ready-card strong,
.catalog-ready-card small {
  display: block;
}

.catalog-ready-card strong {
  margin-bottom: 4px;
}

.catalog-ready-card small {
  color: #52665a;
  font-size: 12px;
  line-height: 1.45;
}

/* Lightweight catalog review */

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

.review-summary strong,
.review-summary small {
  display: block;
}

.review-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.review-toolbar,
.catalog-toolbar,
.orders-toolbar,
.customers-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-search {
  width: min(100%, 360px);
  min-height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20px 20px, transparent 5px, var(--muted) 6px, var(--muted) 7px, transparent 8px),
    linear-gradient(45deg, transparent 48%, var(--muted) 49%, var(--muted) 56%, transparent 57%) 25px 27px / 10px 10px no-repeat,
    white;
}

.review-table-wrap,
.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.review-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;
}

.review-table th,
.data-table th {
  padding: 12px 14px;
  position: sticky;
  z-index: 1;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #f1f3ed;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.review-table td,
.data-table td {
  min-width: 110px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.review-table tr:last-child td,
.data-table tr:last-child td {
  border-bottom: 0;
}

.review-table tr.needs-review,
.review-table tr.is-warning {
  background: #fffaf0;
}

.review-product-cell,
.table-product-cell {
  min-width: 230px !important;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.review-thumb,
.table-thumb {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.review-thumb img,
.table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-product-cell strong,
.review-product-cell small,
.table-product-cell strong,
.table-product-cell small {
  display: block;
}

.review-product-cell small,
.table-product-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.review-input,
.table-input {
  width: 100%;
  min-width: 104px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.review-input:focus,
.table-input:focus {
  border-color: var(--green);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(40 102 71 / 11%);
}

.review-issue {
  min-height: 28px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 10px;
  font-weight: 820;
}

.review-mobile-list {
  display: none;
}

.review-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.review-card-head {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.review-card-image {
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.review-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.review-sticky-action {
  padding: 13px max(18px, var(--safe-right)) max(13px, var(--safe-bottom)) max(18px, var(--safe-left));
  position: sticky;
  z-index: 20;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: rgb(247 245 237 / 94%);
  backdrop-filter: blur(14px);
}

/* Store Manager */

.manager-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--manager-sidebar) minmax(0, 1fr);
  background: #f4f5f0;
}

.manager-sidebar {
  height: 100svh;
  padding: max(22px, var(--safe-top)) 16px max(18px, var(--safe-bottom));
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: var(--ink);
  color: white;
}

.manager-sidebar-head {
  padding: 0 8px 24px;
}

.manager-store-switcher {
  width: 100%;
  min-height: 66px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #3e4a41;
  border-radius: 13px;
  background: #222c24;
  color: white;
  text-align: left;
  cursor: pointer;
}

.manager-store-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
}

.manager-store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-store-switcher strong,
.manager-store-switcher small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-store-switcher strong {
  font-size: 13px;
}

.manager-store-switcher small {
  margin-top: 3px;
  color: #9eaaa1;
  font-size: 10px;
}

.manager-nav {
  padding: 0;
  margin: 23px 0 0;
  display: grid;
  gap: 4px;
  list-style: none;
}

.manager-nav-label {
  padding: 17px 12px 7px;
  color: #6f7b72;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.manager-nav-item {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  background: transparent;
  color: #b8c1ba;
  font-size: 13px;
  font-weight: 720;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.manager-nav-item:hover {
  background: #222c24;
  color: white;
}

.manager-nav-item.is-active,
.manager-nav-item[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 840;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.nav-count {
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #354037;
  color: white;
  font-size: 10px;
}

.manager-nav-item.is-active .nav-count,
.manager-nav-item[aria-current="page"] .nav-count {
  background: var(--ink);
  color: var(--lime);
}

.manager-sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
}

.manager-user {
  min-height: 58px;
  padding: 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #38433a;
  color: white;
}

.manager-user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.manager-user strong,
.manager-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-user strong {
  font-size: 12px;
}

.manager-user small {
  color: #909b92;
  font-size: 10px;
}

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

.manager-header {
  min-height: 72px;
  padding: max(12px, var(--safe-top)) clamp(20px, 4vw, 42px) 11px;
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 91%);
  backdrop-filter: blur(16px);
}

.manager-mobile-menu {
  display: none;
}

.manager-breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.manager-breadcrumbs strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.manager-content {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  padding-bottom: max(52px, calc(var(--safe-bottom) + 28px));
}

.page-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.page-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.page-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

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

.stat-card {
  min-height: 132px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-card-label {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 770;
}

.stat-card strong {
  margin-top: auto;
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.stat-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.stat-card.is-empty strong {
  color: #a2aaa3;
}

.manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: 18px;
}

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

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

.quick-action {
  min-height: 118px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.quick-action-icon {
  width: 34px;
  height: 34px;
  margin-bottom: auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lime-soft);
  color: var(--green-dark);
  font-size: 16px;
}

.quick-action strong {
  margin-top: 18px;
  font-size: 13px;
}

.quick-action small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.empty-state {
  min-height: 310px;
  padding: 34px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-state-inner {
  max-width: 390px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 24px;
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 9px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.store-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.store-card-cover {
  min-height: 150px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  background: var(--store-hero, var(--lime));
  background-position: center;
  background-size: cover;
}

.store-card-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid white;
  border-radius: 15px;
  background: white;
  box-shadow: 0 6px 18px rgb(25 32 25 / 18%);
  font-size: 18px;
  font-weight: 900;
}

.store-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-card-body {
  padding: 17px;
}

.store-card-title {
  margin-bottom: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.store-card h2,
.store-card h3 {
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card p {
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card-meta {
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.store-card-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.catalog-filters,
.order-tabs,
.settings-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-filters::-webkit-scrollbar,
.order-tabs::-webkit-scrollbar,
.settings-tabs::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.tab-chip {
  min-height: 42px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip[aria-pressed="true"],
.tab-chip.is-active,
.tab-chip[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

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

.manager-product-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.manager-product-image {
  aspect-ratio: 1;
  margin-bottom: 12px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2);
}

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

.manager-product-card h3 {
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-product-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

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

.manager-product-price {
  font-size: 15px;
  font-weight: 850;
}

.order-list,
.customer-list {
  display: grid;
  gap: 10px;
}

.order-card {
  min-height: 94px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(200px, 1.3fr) auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.order-card strong,
.order-card small {
  display: block;
}

.order-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.order-total {
  font-weight: 850;
  white-space: nowrap;
}

.customer-card {
  min-height: 78px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.customer-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #315797;
  font-size: 12px;
  font-weight: 850;
}

.customer-card strong,
.customer-card small {
  display: block;
}

.customer-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.insights-empty {
  min-height: 430px;
  background:
    linear-gradient(to top, rgb(217 242 124 / 22%), transparent 65%),
    var(--surface);
}

.insights-placeholder-chart {
  width: min(100%, 430px);
  height: 130px;
  margin: 0 auto 24px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.insights-placeholder-chart::before {
  width: 115%;
  height: 90px;
  position: absolute;
  left: -8%;
  bottom: -30px;
  border: 4px solid #a7b69b;
  border-width: 4px 0 0;
  border-radius: 50% 45% 0 0;
  content: "";
  transform: rotate(-8deg);
}

.settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.settings-nav {
  padding: 8px;
  position: sticky;
  top: 94px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.settings-nav button,
.settings-nav a {
  min-height: 44px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 730;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.settings-nav .is-active,
.settings-nav [aria-current="page"] {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 830;
}

.settings-sections {
  display: grid;
  gap: 16px;
}

.settings-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.settings-section > header {
  margin-bottom: 20px;
}

.settings-section > header h2 {
  margin-bottom: 5px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.settings-section > header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.settings-list {
  display: grid;
}

.settings-row {
  min-height: 66px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.hours-grid {
  display: grid;
  gap: 8px;
}

.hours-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 105px 56px minmax(112px, 1fr) 18px minmax(112px, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.hours-row strong {
  color: var(--ink-2);
}

.hours-row input,
.hours-row select {
  min-width: 0;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.manager-mobile-nav {
  display: none;
}

/* Data-driven storefront themes */

[data-theme="corner-market"] {
  --store-ink: #192019;
  --store-paper: #f7f2e6;
  --store-card: #fffef9;
  --store-header: #fffef9;
  --store-soft: #e8ebde;
  --store-accent: #d9f27c;
  --store-accent-ink: #192019;
  --store-hero: #d9f27c;
  --store-hero-ink: #192019;
  --store-radius: 20px;
  --store-shadow: 0 12px 30px rgb(25 32 25 / 10%);
}

[data-theme="fresh"] {
  --store-ink: #153a2a;
  --store-paper: #f4faf5;
  --store-card: #ffffff;
  --store-header: #ffffff;
  --store-soft: #dfeee3;
  --store-accent: #286647;
  --store-accent-ink: #ffffff;
  --store-hero: #dce8ff;
  --store-hero-ink: #153a2a;
  --store-radius: 16px;
  --store-shadow: 0 12px 30px rgb(21 58 42 / 9%);
}

[data-theme="bold"] {
  --store-ink: #111612;
  --store-paper: #f0f2e8;
  --store-card: #ffffff;
  --store-header: #111612;
  --store-soft: #dce8ff;
  --store-accent: #d9f27c;
  --store-accent-ink: #111612;
  --store-hero: #111612;
  --store-hero-ink: #d9f27c;
  --store-radius: 7px;
  --store-shadow: 5px 5px 0 #111612;
}

[data-theme="minimal"] {
  --store-ink: #202420;
  --store-paper: #ffffff;
  --store-card: #ffffff;
  --store-header: #ffffff;
  --store-soft: #f0f1ed;
  --store-accent: #202420;
  --store-accent-ink: #ffffff;
  --store-hero: #eef0e9;
  --store-hero-ink: #202420;
  --store-radius: 2px;
  --store-shadow: none;
}

.template-card[data-theme="fresh"] .template-mini-logo,
.storefront-preview[data-theme="fresh"] .preview-store-logo {
  color: var(--store-ink);
}

.template-card[data-theme="bold"] .template-mini-header,
.storefront-preview[data-theme="bold"] .preview-store-header {
  color: white;
}

.template-card[data-theme="bold"] .template-mini-logo,
.storefront-preview[data-theme="bold"] .preview-store-logo {
  background: var(--lime);
  color: var(--lime);
}

/* Public storefront */

.storefront-shell {
  min-height: 100svh;
  background: var(--store-paper);
  color: var(--store-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.storefront-shell[data-theme="bold"] {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", ui-sans-serif, sans-serif;
}

.storefront-shell[data-theme="minimal"] {
  font-family: Georgia, "Times New Roman", serif;
}

.storefront-shell button,
.storefront-shell input,
.storefront-shell select,
.storefront-shell textarea {
  font-family: inherit;
}

.store-announcement {
  min-height: 36px;
  padding: 7px max(18px, var(--safe-right)) 7px max(18px, var(--safe-left));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--store-accent);
  color: var(--store-accent-ink);
  font-size: 11px;
  font-weight: 780;
  text-align: center;
}

.storefront-header {
  min-height: 76px;
  padding: max(12px, var(--safe-top)) max(18px, var(--safe-right)) 11px max(18px, var(--safe-left));
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--store-ink) 13%, transparent);
  background: color-mix(in srgb, var(--store-header) 92%, transparent);
  color: var(--store-ink);
  backdrop-filter: blur(14px);
}

.storefront-shell[data-theme="bold"] .storefront-header {
  color: white;
}

.store-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.store-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: max(2px, calc(var(--store-radius) * 0.7));
  background: var(--store-accent);
  color: var(--store-accent-ink);
  font-weight: 950;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-name strong,
.store-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-name strong {
  font-size: 15px;
  letter-spacing: -0.025em;
}

.store-name small {
  margin-top: 3px;
  color: color-mix(in srgb, currentColor 64%, transparent);
  font-size: 10px;
}

.storefront-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.storefront-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.storefront-nav a:hover,
.storefront-nav a[aria-current="page"] {
  color: currentColor;
}

.storefront-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.store-account-button,
.store-cart-button {
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: max(3px, calc(var(--store-radius) * 0.7));
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.store-cart-button {
  border-color: var(--store-accent);
  background: var(--store-accent);
  color: var(--store-accent-ink);
}

.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--store-accent-ink);
  color: var(--store-accent);
  font-size: 9px;
}

.storefront-main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 80px;
}

.storefront-hero {
  min-height: clamp(300px, 42vw, 500px);
  padding: clamp(28px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: calc(var(--store-radius) * 1.45);
  background: var(--store-hero);
  background-position: center;
  background-size: cover;
  color: var(--store-hero-ink);
}

.storefront-hero.has-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(20 27 21 / 72%), rgb(20 27 21 / 5%) 72%);
  content: "";
}

.storefront-hero-content {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.storefront-hero .eyebrow {
  color: inherit;
}

.storefront-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.storefront-shell[data-theme="minimal"] .storefront-hero h1 {
  font-weight: 500;
  letter-spacing: -0.045em;
}

.storefront-hero p {
  max-width: 530px;
  margin-bottom: 24px;
  color: color-mix(in srgb, currentColor 76%, transparent);
  font-size: 16px;
  line-height: 1.55;
}

.storefront-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.store-cta {
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--store-accent);
  border-radius: max(3px, calc(var(--store-radius) * 0.7));
  background: var(--store-accent);
  color: var(--store-accent-ink);
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.store-service-note {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, currentColor 76%, transparent);
  font-size: 12px;
}

.storefront-catalog {
  padding-top: clamp(38px, 7vw, 72px);
}

.storefront-catalog-head {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 420px);
  align-items: end;
  gap: 20px;
}

.storefront-catalog-head h2 {
  margin-bottom: 6px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.storefront-catalog-head p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--store-ink) 62%, transparent);
  font-size: 13px;
}

.store-search {
  min-height: 52px;
  position: relative;
}

.store-search::before {
  width: 14px;
  height: 14px;
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 17px;
  border: 2px solid color-mix(in srgb, var(--store-ink) 55%, transparent);
  border-radius: 50%;
  content: "";
}

.store-search::after {
  width: 7px;
  height: 2px;
  position: absolute;
  z-index: 1;
  top: 32px;
  left: 30px;
  background: color-mix(in srgb, var(--store-ink) 55%, transparent);
  content: "";
  transform: rotate(45deg);
}

.store-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px 0 48px;
  border: 1px solid color-mix(in srgb, var(--store-ink) 18%, transparent);
  border-radius: max(3px, calc(var(--store-radius) * 0.8));
  background: var(--store-card);
  color: var(--store-ink);
}

.store-search input:focus {
  border-color: var(--store-accent);
  outline: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--store-accent) 28%, transparent);
}

.category-chips {
  margin-bottom: 26px;
  padding-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.category-chip {
  min-height: 44px;
  padding: 0 16px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--store-ink) 16%, transparent);
  border-radius: 999px;
  background: var(--store-card);
  color: var(--store-ink);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.category-chip.is-active,
.category-chip[aria-pressed="true"] {
  border-color: var(--store-accent);
  background: var(--store-accent);
  color: var(--store-accent-ink);
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.store-product-card {
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--store-ink) 13%, transparent);
  border-radius: var(--store-radius);
  background: var(--store-card);
  box-shadow: var(--store-shadow);
}

.store-product-image {
  aspect-ratio: 1;
  margin-bottom: 14px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: max(2px, calc(var(--store-radius) * 0.7));
  background: color-mix(in srgb, var(--store-soft) 68%, white);
}

.store-product-image img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.store-product-card:hover .store-product-image img {
  transform: scale(1.035);
}

.product-stock-badge {
  min-height: 25px;
  padding: 5px 8px;
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: var(--store-card);
  color: var(--store-ink);
  font-size: 9px;
  font-weight: 800;
}

.store-product-kicker {
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--store-ink) 56%, transparent);
  font-size: 9px;
  font-weight: 790;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-product-card h3 {
  margin-bottom: 7px;
  overflow: hidden;
  display: -webkit-box;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-product-size {
  margin-bottom: 14px;
  color: color-mix(in srgb, var(--store-ink) 58%, transparent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
}

.store-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-product-price {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 880;
}

.store-add-button {
  min-width: 46px;
  min-height: 46px;
  padding: 0 13px;
  border-radius: max(3px, calc(var(--store-radius) * 0.65));
  background: var(--store-accent);
  color: var(--store-accent-ink);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.storefront-empty {
  min-height: 280px;
  padding: 30px;
  display: grid;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--store-ink) 24%, transparent);
  border-radius: var(--store-radius);
  text-align: center;
}

.storefront-empty h3 {
  margin-bottom: 8px;
}

.storefront-empty p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--store-ink) 60%, transparent);
  font-size: 13px;
}

.storefront-footer {
  padding: 42px max(18px, var(--safe-right)) max(42px, var(--safe-bottom)) max(18px, var(--safe-left));
  border-top: 1px solid color-mix(in srgb, var(--store-ink) 13%, transparent);
  background: var(--store-header);
  color: var(--store-ink);
}

.storefront-footer-inner {
  width: min(100%, 1224px);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.storefront-footer p {
  max-width: 440px;
  margin-bottom: 0;
  color: color-mix(in srgb, currentColor 60%, transparent);
  font-size: 12px;
  line-height: 1.55;
}

.powered-by-nearby {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: color-mix(in srgb, currentColor 65%, transparent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  text-decoration: none;
}

.powered-by-nearby strong {
  color: currentColor;
}

/* Cart drawer */

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgb(15 20 16 / 48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  width: min(100%, 440px);
  height: 100dvh;
  padding: max(20px, var(--safe-top)) max(20px, var(--safe-right)) max(20px, var(--safe-bottom)) 20px;
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--store-card, white);
  color: var(--store-ink, var(--ink));
  box-shadow: -20px 0 60px rgb(15 20 16 / 20%);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open {
  transform: none;
}

.cart-drawer-header {
  min-height: 58px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.cart-drawer-header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.cart-list {
  min-height: 0;
  padding-block: 8px;
  overflow: auto;
}

.cart-item {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.cart-item-image {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: max(3px, calc(var(--store-radius, 12px) * 0.65));
  background: var(--store-soft, var(--surface-2));
}

.cart-item-image img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.cart-item strong,
.cart-item small {
  display: block;
}

.cart-item strong {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.3;
}

.cart-item small {
  color: color-mix(in srgb, currentColor 60%, transparent);
  font-size: 10px;
}

.quantity-control {
  min-height: 40px;
  margin-top: 9px;
  display: inline-grid;
  grid-template-columns: 38px 32px 38px;
  align-items: center;
  border: 1px solid color-mix(in srgb, currentColor 17%, transparent);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-control button {
  min-height: 40px;
  background: transparent;
  color: inherit;
  font-size: 17px;
  cursor: pointer;
}

.quantity-control span {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.cart-item-price {
  align-self: start;
  padding-top: 3px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.cart-empty {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.cart-empty h3 {
  margin-bottom: 7px;
}

.cart-empty p {
  max-width: 270px;
  margin-bottom: 0;
  color: color-mix(in srgb, currentColor 60%, transparent);
  font-size: 12px;
  line-height: 1.5;
}

.cart-summary {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.summary-row {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: color-mix(in srgb, currentColor 67%, transparent);
  font-size: 12px;
}

.summary-row.total {
  min-height: 50px;
  color: currentColor;
  font-size: 16px;
  font-weight: 870;
}

.cart-checkout {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border-radius: max(3px, calc(var(--store-radius, 12px) * 0.7));
  background: var(--store-accent, var(--lime));
  color: var(--store-accent-ink, var(--ink));
  font-weight: 850;
  cursor: pointer;
}

/* Checkout */

.checkout-shell {
  min-height: 100svh;
  background: var(--cream);
}

.checkout-header {
  min-height: 72px;
  padding: max(12px, var(--safe-top)) max(20px, var(--safe-right)) 11px max(20px, var(--safe-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.checkout-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.checkout-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.checkout-layout {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px) clamp(18px, 4vw, 40px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: clamp(22px, 5vw, 54px);
}

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

.checkout-heading {
  margin-bottom: 25px;
}

.checkout-heading h1 {
  margin-bottom: 9px;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.checkout-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-progress {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.checkout-progress-step {
  padding-top: 10px;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.checkout-progress-step.is-current,
.checkout-progress-step[aria-current="step"] {
  border-color: var(--ink);
  color: var(--ink);
}

.checkout-progress-step.is-complete {
  border-color: var(--green);
  color: var(--green);
}

.checkout-section {
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.checkout-section.is-disabled {
  opacity: 0.58;
}

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

.checkout-section-head h2 {
  margin-bottom: 4px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.checkout-section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.guest-prompt {
  margin-bottom: 18px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #c8d4ea;
  border-radius: 12px;
  background: var(--blue);
  color: #304c7f;
  font-size: 12px;
  line-height: 1.45;
}

.guest-prompt button {
  min-height: 42px;
  padding: 0 10px;
  flex: 0 0 auto;
  background: transparent;
  color: #263f6a;
  font-weight: 850;
  cursor: pointer;
}

.fulfillment-options,
.payment-options {
  display: grid;
  gap: 10px;
}

.fulfillment-option,
.payment-option {
  min-height: 82px;
  padding: 14px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  cursor: pointer;
}

.fulfillment-option:has(input:checked),
.payment-option:has(input:checked),
.fulfillment-option.is-selected,
.payment-option.is-selected {
  border-color: var(--green);
  background: #f8fbf6;
  box-shadow: 0 0 0 3px rgb(40 102 71 / 9%);
}

.fulfillment-option input,
.payment-option input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.fulfillment-option strong,
.fulfillment-option small,
.payment-option strong,
.payment-option small {
  display: block;
}

.fulfillment-option strong,
.payment-option strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.fulfillment-option small,
.payment-option small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.option-price {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.payment-element,
.card-element {
  min-height: 52px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: white;
}

.payment-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 11px;
}

.checkout-sidebar {
  position: sticky;
  top: 24px;
}

.order-summary-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.order-summary-card h2 {
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.summary-items {
  max-height: 280px;
  overflow: auto;
}

.summary-item {
  min-height: 62px;
  padding: 9px 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.summary-item-image {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-2);
}

.summary-item-image img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.summary-item strong,
.summary-item small {
  display: block;
}

.summary-item strong {
  font-size: 11px;
  line-height: 1.35;
}

.summary-item small {
  color: var(--muted);
  font-size: 9px;
}

.summary-item-price {
  font-size: 11px;
  font-weight: 820;
}

.summary-totals {
  padding-top: 12px;
}

.place-order {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
}

.checkout-terms {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.checkout-terms a {
  color: var(--ink);
}

/* Order confirmation */

.confirmation-shell {
  min-height: 100svh;
  padding: max(28px, var(--safe-top)) max(18px, var(--safe-right)) max(40px, var(--safe-bottom)) max(18px, var(--safe-left));
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 15%, rgb(217 242 124 / 36%), transparent 27rem),
    var(--cream);
}

.confirmation-card {
  width: min(100%, 680px);
  padding: clamp(26px, 6vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.confirmation-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  position: relative;
  border-radius: 50%;
  background: var(--lime);
}

.confirmation-mark::before {
  width: 29px;
  height: 15px;
  position: absolute;
  top: 24px;
  left: 22px;
  border-bottom: 5px solid var(--ink);
  border-left: 5px solid var(--ink);
  content: "";
  transform: rotate(-45deg);
}

.confirmation-card h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.confirmation-card > p {
  max-width: 500px;
  margin: 0 auto 25px;
  color: var(--muted);
  line-height: 1.55;
}

.confirmation-number {
  min-height: 50px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 850;
}

.confirmation-details {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
}

.confirmation-detail {
  min-width: 0;
  padding: 15px;
  border-right: 1px solid var(--line);
}

.confirmation-detail:last-child {
  border-right: 0;
}

.confirmation-detail span,
.confirmation-detail strong {
  display: block;
}

.confirmation-detail span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.confirmation-detail strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.confirmation-next {
  padding: 18px;
  border-radius: 15px;
  background: var(--blue);
  color: #304c7f;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.confirmation-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

/* Delivery interest and general modals */

.modal-backdrop {
  padding: max(18px, var(--safe-top)) max(18px, var(--safe-right)) max(18px, var(--safe-bottom)) max(18px, var(--safe-left));
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgb(13 18 14 / 58%);
  backdrop-filter: blur(4px);
  animation: fade-in 160ms ease both;
}

.modal {
  width: min(100%, 650px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 190ms ease both;
}

.modal-small {
  width: min(100%, 480px);
}

.modal-header {
  padding: 22px 24px 17px;
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(10px);
}

.modal-header h2 {
  margin-bottom: 5px;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.modal-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.modal-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px max(20px, var(--safe-bottom));
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(10px);
}

.delivery-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.delivery-option-card {
  min-height: 145px;
  padding: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  text-align: left;
  cursor: pointer;
}

.delivery-option-card:has(input:checked),
.delivery-option-card.is-selected {
  border-color: var(--green);
  background: #f8fbf6;
  box-shadow: 0 0 0 3px rgb(40 102 71 / 9%);
}

.delivery-option-card input {
  width: 20px;
  height: 20px;
  margin: 0 0 auto;
  accent-color: var(--green);
}

.delivery-provider-mark {
  min-height: 27px;
  margin: 16px 0 7px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 880;
}

.delivery-option-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.delivery-interest-note {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid #c7d5ec;
  border-radius: 13px;
  background: var(--blue);
  color: #304c7f;
  font-size: 12px;
  line-height: 1.5;
}

.delivery-success {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
}

.delivery-success-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-size: 24px;
  font-weight: 900;
}

.delivery-success h3 {
  margin-bottom: 8px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.delivery-success p {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Toast */

.toast {
  max-width: min(420px, calc(100% - 32px));
  min-height: 50px;
  padding: 13px 16px;
  position: fixed;
  z-index: 150;
  right: max(18px, var(--safe-right));
  bottom: max(18px, var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #465149;
  border-radius: 13px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.4;
  animation: toast-in 180ms ease both;
}

.toast.success {
  border-color: #45745a;
  background: var(--green-dark);
}

.toast.error {
  border-color: #c06e65;
  background: #662d28;
}

.toast::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* Tablet */

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

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

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

  .branding-layout {
    grid-template-columns: minmax(230px, 0.8fr) minmax(330px, 1.2fr);
  }

  .storefront-header {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .storefront-nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .auth-layout {
    width: min(100%, 620px);
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-aside {
    min-height: 250px;
    padding: 28px;
  }

  .auth-aside-copy {
    max-width: 500px;
    margin: 52px 0 0;
  }

  .auth-aside-copy h1 {
    font-size: clamp(38px, 9vw, 54px);
  }

  .auth-aside-copy p,
  .auth-proof {
    display: none;
  }

  .auth-main {
    padding: 38px 28px 42px;
  }

  .onboarding-layout {
    min-height: auto;
    display: block;
  }

  .step-rail {
    display: none;
  }

  .mobile-progress {
    padding: 15px 20px 0;
    display: block;
  }

  .mobile-progress-copy {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
  }

  .mobile-progress-copy strong {
    color: var(--ink);
  }

  .progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe3dc;
  }

  .progress-bar {
    width: var(--progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 220ms ease;
  }

  .onboarding-main {
    padding-top: 32px;
  }

  .branding-layout {
    grid-template-columns: 1fr;
  }

  .branding-preview-wrap {
    position: static;
  }

  .storefront-preview {
    min-height: 440px;
  }

  .manager-grid,
  .manager-grid.equal {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .settings-nav button,
  .settings-nav a {
    flex: 0 0 auto;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-sidebar {
    position: static;
  }

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

/* Mobile manager and storefront */

@media (max-width: 760px) {
  .manager-shell {
    display: block;
  }

  .manager-sidebar {
    width: min(88vw, 320px);
    position: fixed;
    left: 0;
    transform: translateX(-102%);
    transition: transform 200ms ease;
  }

  .manager-shell.is-nav-open .manager-sidebar,
  .manager-sidebar.is-open {
    transform: none;
  }

  .manager-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .manager-mobile-menu {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    font-size: 18px;
  }

  .manager-breadcrumbs {
    margin-right: auto;
  }

  .manager-header-actions .button,
  .manager-header-actions .btn {
    display: none;
  }

  .manager-content {
    padding: 24px 16px calc(92px + var(--safe-bottom));
  }

  .manager-mobile-nav {
    min-height: calc(68px + var(--safe-bottom));
    padding: 7px 10px var(--safe-bottom);
    position: fixed;
    z-index: 35;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgb(255 255 255 / 95%);
    backdrop-filter: blur(15px);
  }

  .manager-mobile-nav button,
  .manager-mobile-nav a {
    min-width: 0;
    min-height: 54px;
    padding: 4px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
    font-weight: 720;
    text-decoration: none;
  }

  .manager-mobile-nav .is-active,
  .manager-mobile-nav [aria-current="page"] {
    background: var(--lime-soft);
    color: var(--green-dark);
  }

  .mobile-nav-icon {
    font-size: 18px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

  .capture-tips {
    grid-template-columns: 1fr;
  }

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

  .review-table-wrap {
    display: none;
  }

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

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

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

  .order-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .order-card > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .storefront-header {
    min-height: 68px;
    padding-inline: 14px;
    gap: 8px;
  }

  .store-logo {
    width: 40px;
    height: 40px;
  }

  .store-name small,
  .store-account-button {
    display: none;
  }

  .store-cart-button {
    min-width: 46px;
    padding-inline: 11px;
  }

  .storefront-main {
    padding: 14px 14px 58px;
  }

  .storefront-hero {
    min-height: 360px;
    padding: 26px 22px;
  }

  .storefront-hero h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

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

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

  .storefront-footer-inner {
    flex-direction: column;
  }

  .delivery-option-grid {
    grid-template-columns: 1fr;
  }

  .delivery-option-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .delivery-provider-mark {
    min-height: 20px;
    margin: 0 0 4px;
  }

  .delivery-option-card small {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 0;
    place-items: stretch;
    background: var(--surface);
  }

  .auth-layout {
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-aside {
    min-height: 210px;
    padding: max(24px, var(--safe-top)) 22px 26px;
  }

  .auth-aside-copy {
    margin-top: 40px;
  }

  .auth-aside-copy h1 {
    margin-bottom: 0;
    font-size: 40px;
  }

  .auth-main {
    padding: 34px 20px max(34px, var(--safe-bottom));
    align-content: start;
  }

  .auth-card h1,
  .auth-card h2 {
    font-size: 36px;
  }

  .otp-group {
    gap: 5px;
  }

  .otp-input {
    border-radius: 9px;
    font-size: 21px;
  }

  .onboarding-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .onboarding-header .save-state {
    display: none;
  }

  .nearby-brand {
    font-size: 18px;
  }

  .nearby-mark {
    width: 31px;
    height: 31px;
    font-size: 20px;
  }

  .mobile-progress {
    padding-inline: 16px;
  }

  .onboarding-main {
    padding: 28px 16px 34px;
  }

  .onboarding-heading {
    margin-bottom: 26px;
  }

  .onboarding-heading h1 {
    font-size: 39px;
  }

  .onboarding-heading p:not(.eyebrow) {
    font-size: 14px;
  }

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

  .onboarding-actions {
    align-items: stretch;
  }

  .onboarding-actions .button,
  .onboarding-actions .btn {
    flex: 1;
  }

  .upload-zone {
    min-height: 185px;
    padding: 21px 17px;
  }

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

  .processing-panel {
    padding: 24px 19px;
    border-radius: 22px;
  }

  .processing-summary {
    grid-template-columns: 1fr;
  }

  .processing-stat {
    min-height: 72px;
  }

  .catalog-ready-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .catalog-ready-card .button,
  .catalog-ready-card .btn {
    grid-column: 1 / -1;
  }

  .review-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-card-fields {
    grid-template-columns: 1fr;
  }

  .review-sticky-action {
    align-items: stretch;
    flex-direction: column;
  }

  .review-sticky-action .button,
  .review-sticky-action .btn {
    width: 100%;
  }

  .page-heading h1 {
    font-size: 34px;
  }

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

  .stat-card {
    min-height: 116px;
    padding: 14px;
  }

  .stat-card strong {
    font-size: 25px;
  }

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

  .quick-action {
    min-height: 82px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
  }

  .quick-action-icon,
  .quick-action strong {
    margin: 0;
  }

  .quick-action small {
    grid-column: 2;
    margin-top: -9px;
  }

  .manager-product-grid {
    gap: 9px;
  }

  .manager-product-card {
    padding: 8px;
  }

  .hours-row {
    padding: 10px 0;
    grid-template-columns: 1fr 56px;
  }

  .hours-row input,
  .hours-row select {
    grid-column: span 1;
  }

  .hours-row > span {
    display: none;
  }

  .store-name strong {
    max-width: 145px;
  }

  .store-cart-button > span:not(.cart-count) {
    display: none;
  }

  .storefront-hero {
    min-height: 330px;
    border-radius: calc(var(--store-radius) * 1.15);
  }

  .storefront-hero p {
    font-size: 14px;
  }

  .store-product-card {
    padding: 8px;
  }

  .store-product-card h3 {
    font-size: 12px;
  }

  .store-product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .store-add-button {
    width: 100%;
  }

  .cart-drawer {
    width: 100%;
    padding-left: max(18px, var(--safe-left));
  }

  .checkout-header {
    padding-inline: 16px;
  }

  .checkout-layout {
    padding: 26px 14px 50px;
  }

  .checkout-section,
  .order-summary-card {
    padding: 17px;
  }

  .guest-prompt {
    align-items: flex-start;
    flex-direction: column;
  }

  .fulfillment-option,
  .payment-option {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .option-price {
    grid-column: 2;
  }

  .confirmation-card {
    padding-inline: 20px;
  }

  .confirmation-details {
    grid-template-columns: 1fr;
  }

  .confirmation-detail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .confirmation-detail:last-child {
    border-bottom: 0;
  }

  .modal-backdrop {
    padding: 0;
    place-items: end stretch;
  }

  .modal {
    width: 100%;
    max-height: min(92dvh, 820px);
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-inline: 18px;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal-footer .button,
  .modal-footer .btn {
    width: 100%;
  }

  .toast {
    right: 16px;
    bottom: max(16px, var(--safe-bottom));
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .auth-aside-copy h1,
  .onboarding-heading h1 {
    font-size: 34px;
  }

  .otp-input {
    font-size: 18px;
  }

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

  .storefront-hero h1 {
    font-size: 43px;
  }

  .store-product-grid {
    gap: 8px;
  }

  .store-product-price {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #9ca69d;
    --line-strong: #657068;
    --muted: #4e5951;
  }

  .button-secondary,
  .btn-secondary,
  .card,
  .panel,
  .field input,
  .field select,
  .field textarea {
    border-width: 2px;
  }
}

/* --------------------------------------------------------------------------
   Commerce renderer contract

   The production module renders the BEM-flavoured classes below. Keeping the
   compatibility layer at the end makes the shell independent from the legacy
   prototype while retaining the shared Nearby tokens above.
   -------------------------------------------------------------------------- */

body.has-modal {
  overflow: hidden;
}

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

.mobile-only {
  display: none;
}

.button--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 7px 18px rgb(25 32 25 / 16%);
}

.button--primary:hover {
  background: #293229;
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: var(--ink-3);
  background: #fafbf7;
}

.button--quiet {
  background: transparent;
  color: var(--ink-2);
}

.button--quiet:hover {
  background: var(--surface-2);
}

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

.button-row,
.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.text-button {
  min-height: 44px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-button:hover {
  text-decoration-color: currentColor;
}

.brand-lockup {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.brand-logo {
  width: 135px;
  height: auto;
  display: block;
}

.brand-lockup--compact .brand-logo {
  width: 112px;
}

.status-badge--success {
  border-color: #b9d7c4;
  background: var(--success-soft);
  color: var(--success);
}

.status-badge--warning {
  border-color: #e9c995;
  background: var(--amber-soft);
  color: var(--amber);
}

.status-badge--danger {
  border-color: #e6bcb7;
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge--info {
  border-color: #b9caec;
  background: var(--blue);
  color: #315797;
}

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

.field__label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 780;
}

.field__input,
.select-control,
.inline-input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.35;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

textarea.field__input {
  min-height: 104px;
  resize: vertical;
}

.field__input:hover,
.select-control:hover,
.inline-input:hover {
  border-color: #929f94;
}

.field__input:focus,
.select-control:focus,
.inline-input:focus {
  border-color: var(--green);
  outline: 0;
  box-shadow: 0 0 0 4px rgb(40 102 71 / 12%);
}

.field__hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  gap: 16px;
}

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

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

.field--color {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
}

.field--color .field__label {
  grid-column: 1 / -1;
}

.field--color input[type="color"] {
  width: 58px;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.field--color > span:last-child {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.form-note,
.secure-note,
.auth-terms {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.notice {
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.notice p {
  margin: 0;
}

.notice--success {
  border-color: #b9d7c4;
  background: var(--success-soft);
  color: #205b3e;
}

.notice--warning {
  border-color: #e8c58d;
  background: var(--amber-soft);
  color: #75440f;
}

.notice--info {
  border-color: #bfd0ed;
  background: #eef4ff;
  color: #294c88;
}

.notice--inline {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgb(49 87 151 / 22%);
  border-top-color: #315797;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.check-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.check-row b,
.check-row small {
  display: block;
}

.check-row b {
  font-size: 13px;
}

.check-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.toggle-row {
  min-height: 62px;
  padding-block: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.toggle-row b,
.toggle-row small {
  display: block;
}

.toggle-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle > span {
  width: 44px;
  height: 26px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: #dfe4dd;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.toggle > span::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(25 32 25 / 20%);
  content: "";
  transition: transform 160ms ease;
}

.toggle > input:checked + span {
  border-color: var(--green);
  background: var(--green);
}

.toggle > input:checked + span::before {
  transform: translateX(18px);
}

.toggle > input:focus-visible + span {
  outline: 3px solid rgb(63 104 180 / 48%);
  outline-offset: 3px;
}

.toggle > b {
  font-size: 11px;
}

/* Loading and sign-in */

.loading-screen {
  min-height: 100svh;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 18% 14%, rgb(217 242 124 / 52%), transparent 31rem),
    radial-gradient(circle at 88% 86%, rgb(220 232 255 / 76%), transparent 30rem),
    var(--cream);
  text-align: center;
}

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

.loading-pulse {
  width: 44px;
  height: 44px;
  border: 4px solid rgb(40 102 71 / 15%);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

.auth-layout {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.auth-story {
  min-height: 100%;
  padding: clamp(34px, 6vw, 76px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #fff;
}

.auth-story::after {
  width: min(28vw, 340px);
  aspect-ratio: 1;
  position: absolute;
  right: -14%;
  bottom: -22%;
  border: clamp(32px, 4vw, 54px) solid rgb(217 242 124 / 7%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.auth-story .brand-logo {
  position: relative;
  z-index: 1;
  filter: invert(1);
}

.auth-story__content {
  max-width: 560px;
  margin-block: auto;
  position: relative;
  z-index: 1;
}

.auth-story h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.auth-story__content > p {
  max-width: 420px;
  color: #b8c2ba;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
}

.auth-panel {
  width: 100%;
  min-height: 100svh;
  padding: clamp(34px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-self: stretch;
}

.auth-panel__content {
  width: min(100%, 476px);
  margin: auto;
}

.auth-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.auth-panel__content > p:not(.eyebrow, .auth-access-note, .auth-help) {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-panel .stack + .text-button,
.auth-panel__content .auth-terms + .button {
  margin-top: 14px;
}

.auth-terms {
  width: min(100%, 476px);
  margin: 28px auto 0;
  color: #929a93;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.auth-terms a {
  color: #687069;
}

.auth-role-grid {
  display: grid;
  gap: 12px;
}

.auth-role-card {
  width: 100%;
  min-height: 104px;
  padding: 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-role-card:hover {
  border-color: #9eaa9f;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.auth-role-card--enterprise {
  background: #f5f7f2;
}

.auth-role-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  font-size: 22px;
  font-weight: 850;
}

.workspace-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: block;
  color: currentColor;
}

.workspace-icon--building::before {
  position: absolute;
  inset: 1px 4px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 0 0;
  content: "";
}

.workspace-icon--building::after {
  width: 3px;
  height: 3px;
  position: absolute;
  top: 6px;
  left: 8px;
  background: currentColor;
  box-shadow: 6px 0 currentColor, 0 6px currentColor, 6px 6px currentColor;
  content: "";
}

.workspace-icon--building > span {
  width: 5px;
  height: 6px;
  position: absolute;
  z-index: 1;
  bottom: 1px;
  left: 10px;
  background: currentColor;
}

.auth-role-card > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.auth-role-card b {
  font-size: 17px;
}

.auth-role-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-role-card i {
  color: var(--ink-3);
  font-size: 18px;
  font-style: normal;
  transition: transform 160ms ease;
}

.auth-role-card:hover i {
  transform: translateX(3px);
}

.auth-access-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}

.auth-access-note span {
  margin-right: 7px;
  color: var(--green);
}

.otp-input.field__input {
  min-height: 64px;
  aspect-ratio: auto;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.34em;
}

.preview-ribbon {
  min-height: 38px;
  margin-bottom: 22px;
  padding: 9px 13px;
  display: grid;
  place-items: center;
  border: 1px solid #c2cfac;
  border-radius: 11px;
  background: var(--lime-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.03em;
  text-align: center;
}

.enterprise-shell {
  min-height: 100svh;
  padding-bottom: 72px;
  background:
    radial-gradient(circle at 88% 12%, rgb(217 242 124 / 28%), transparent 28rem),
    var(--cream);
}

.enterprise-header {
  min-height: 78px;
  padding: 12px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgb(255 254 249 / 88%);
}

.enterprise-welcome {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding-top: clamp(72px, 11vw, 140px);
}

.enterprise-welcome > h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.enterprise-welcome > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1.7;
}

/* Merchant onboarding */

.onboarding-sidebar {
  min-width: 0;
  padding: 38px 20px;
  border-right: 1px solid var(--line);
}

.step-rail {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  border: 0;
  list-style: none;
}

.step-rail__item {
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-radius: 13px;
  color: var(--muted);
}

.step-rail__item.is-current {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.step-rail__item.is-complete {
  color: var(--ink-2);
}

.step-rail__number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 850;
}

.step-rail__item.is-current .step-rail__number {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.step-rail__item.is-complete .step-rail__number {
  border-color: #acd0b8;
  background: var(--success-soft);
  color: var(--success);
}

.step-rail__item b,
.step-rail__item small {
  display: block;
}

.step-rail__item b {
  font-size: 13px;
}

.step-rail__item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.help-card {
  margin-top: 36px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 55%);
}

.help-card b {
  font-size: 13px;
}

.help-card p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.help-card a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.save-state .save-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.save-state::before {
  display: none;
}

.save-state .save-dot.is-saving {
  border: 2px solid #aeb9b0;
  border-top-color: var(--green);
  background: transparent;
  animation: spin 760ms linear infinite;
}

.onboarding-form {
  width: min(100%, 780px);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.onboarding-form--wide {
  width: min(100%, 970px);
}

.section-heading {
  margin-bottom: 8px;
}

.section-heading h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 61px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-heading > p:not(.eyebrow),
.section-heading > div > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

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

.upload-dropzone {
  width: 100%;
  min-height: 205px;
  padding: 26px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 2px dashed #aeb9ae;
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 60%);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.upload-dropzone:hover {
  border-color: var(--green);
  background: #f9fced;
  transform: translateY(-1px);
}

.upload-dropzone__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--lime);
  font-size: 28px;
  font-weight: 500;
}

.upload-dropzone small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.upload-summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.upload-summary b {
  color: var(--ink-2);
}

.upload-card {
  aspect-ratio: auto;
  min-height: 138px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgb(25 32 25 / 6%);
}

.upload-card::after {
  display: none;
}

.upload-card img,
.upload-card__placeholder {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.upload-card__placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--lime-soft));
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
}

.upload-card__meta {
  min-width: 0;
  padding: 10px;
}

.upload-card__meta b,
.upload-card__meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-card__meta b {
  font-size: 11px;
}

.upload-card__meta small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.upload-card > .icon-button {
  width: 34px;
  height: 34px;
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  border-color: transparent;
  background: rgb(25 32 25 / 82%);
  color: #fff;
}

.upload-card--failed {
  border-color: #db958e;
  background: var(--danger-soft);
}

.privacy-note {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 11px;
  border-radius: 13px;
  background: var(--blue);
  color: #294c70;
}

.privacy-note > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
}

.privacy-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

/* Templates, branding, and asynchronous catalog review */

.template-card {
  min-width: 0;
  padding: 11px;
  position: relative;
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 5px 18px rgb(25 32 25 / 5%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.template-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.template-card.is-selected,
.template-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(40 102 71 / 12%), var(--shadow-sm);
}

.template-card:has(input:focus-visible) {
  outline: 3px solid rgb(63 104 180 / 48%);
  outline-offset: 3px;
}

.template-card__preview {
  min-height: 155px;
  padding: 10px;
  display: grid;
  grid-template-rows: 16px 1fr 46px;
  gap: 8px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--store-bg, #f6f1e5);
  color: var(--store-ink, var(--ink));
}

.template-card__nav {
  width: 42%;
  height: 5px;
  align-self: center;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.75;
}

.template-card__hero {
  min-height: 62px;
  padding: 9px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: end;
  gap: 7px;
  border-radius: calc(var(--store-radius, 14px) * 0.65);
  background: var(--store-accent, var(--lime));
}

.template-card__hero i {
  height: 7px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.68;
}

.template-card__hero i:last-child {
  height: 34px;
  border-radius: 8px;
  background: var(--store-secondary, var(--blue));
  opacity: 1;
}

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

.template-card__products i {
  display: block;
  border: 1px solid rgb(25 32 25 / 7%);
  border-radius: calc(var(--store-radius, 14px) * 0.45);
  background: var(--store-card, #fff);
}

.template-card__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.template-card__content b {
  font-size: 14px;
}

.template-card__content small {
  min-height: 34px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.template-card__check {
  width: 28px;
  height: 28px;
  position: absolute;
  top: 17px;
  right: 17px;
  display: none;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 9px rgb(25 32 25 / 22%);
  font-size: 13px;
}

.template-card.is-selected .template-card__check,
.template-card:has(input:checked) .template-card__check {
  display: grid;
}

.swatches {
  margin-top: 6px;
  display: flex;
  gap: 5px;
}

.swatches i {
  width: 15px;
  height: 15px;
  border: 1px solid rgb(25 32 25 / 13%);
  border-radius: 50%;
  background: var(--swatch);
}

.branding-layout {
  grid-template-columns: minmax(0, 1.13fr) minmax(250px, 0.7fr);
  align-items: start;
  gap: clamp(28px, 5vw, 58px);
}

.media-uploader {
  min-width: 0;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.media-uploader__preview {
  min-height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.media-uploader:not(.media-uploader--wide) .media-uploader__preview {
  aspect-ratio: 1;
}

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

.media-uploader__preview > b {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--lime);
  color: var(--ink);
  font-size: 30px;
}

.media-uploader > .text-button {
  width: fit-content;
  min-height: 36px;
}

.slug-field {
  display: flex;
  align-items: stretch;
}

.slug-field .field__input {
  border-radius: 12px 0 0 12px;
}

.slug-field > span {
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.phone-preview {
  width: min(100%, 300px);
  min-height: 574px;
  padding: 11px;
  position: sticky;
  top: 28px;
  justify-self: center;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 38px;
  background: var(--store-bg);
  color: var(--store-ink);
  box-shadow: var(--shadow-lg);
}

.phone-preview__bar {
  height: 25px;
  display: grid;
  place-items: start center;
}

.phone-preview__bar span {
  width: 80px;
  height: 17px;
  display: block;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
}

.phone-preview__store {
  min-height: 520px;
  padding: 14px;
  border-radius: 25px;
  background: var(--store-bg);
}

.phone-preview__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--store-font, inherit);
  font-size: 11px;
  font-weight: 850;
}

.phone-preview__brand b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: calc(var(--store-radius) * 0.5);
  background: var(--merchant-accent, var(--store-accent));
  color: #fff;
}

.phone-preview__hero {
  min-height: 152px;
  margin-top: 16px;
  padding: 17px;
  display: flex;
  align-items: end;
  border-radius: var(--store-radius);
  background: linear-gradient(140deg, var(--merchant-accent, var(--store-accent)), var(--store-secondary));
}

.phone-preview__hero p {
  margin: 0;
  color: var(--store-ink);
  font-family: var(--store-font, inherit);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.phone-preview__chips {
  margin-block: 16px 12px;
  display: flex;
  gap: 6px;
}

.phone-preview__chips i {
  width: 48px;
  height: 18px;
  border-radius: 99px;
  background: var(--store-chip, rgb(255 255 255 / 74%));
}

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

.phone-preview__grid i {
  height: 100px;
  display: block;
  border: 1px solid rgb(25 32 25 / 8%);
  border-radius: calc(var(--store-radius) * 0.7);
  background: var(--store-card);
}

.processing-card {
  min-height: 220px;
  padding: clamp(24px, 5vw, 46px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  border: 1px solid #bfd0ed;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #f5f8ff, #eef5e9);
}

.processing-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.processing-card .progress-bar {
  grid-column: 1 / -1;
}

.processing-orbit {
  width: 74px;
  height: 74px;
  position: relative;
  border: 1px solid #afc3e5;
  border-radius: 50%;
  animation: spin 4s linear infinite;
}

.processing-orbit::before {
  width: 34px;
  height: 34px;
  position: absolute;
  inset: 19px;
  border-radius: 12px;
  background: var(--lime);
  content: "";
}

.processing-orbit i {
  width: 10px;
  height: 10px;
  position: absolute;
  border-radius: 50%;
  background: var(--green);
}

.processing-orbit i:nth-child(1) {
  top: -5px;
  left: 32px;
}

.processing-orbit i:nth-child(2) {
  right: 4px;
  bottom: 8px;
  background: var(--blue-strong);
}

.processing-orbit i:nth-child(3) {
  bottom: 7px;
  left: 4px;
  background: var(--amber);
}

.progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #dce2da;
}

.progress-bar > span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #71a869);
  transition: width 300ms ease;
}

.review-summary {
  grid-template-columns: repeat(3, minmax(110px, 1fr)) auto;
  align-items: center;
}

.review-summary > span {
  min-width: 0;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.review-summary > span b {
  margin-bottom: 2px;
  display: block;
  color: var(--ink);
  font-size: 21px;
}

.review-summary .needs-attention b {
  color: var(--amber);
}

.review-table {
  min-width: 860px;
  overflow: visible;
}

.review-table__head,
.review-row {
  display: grid;
  grid-template-columns: minmax(235px, 1.6fr) minmax(130px, 0.8fr) 105px 82px 90px 115px;
  align-items: center;
  gap: 14px;
}

.review-table__head {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 830;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.review-row {
  min-height: 80px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.review-row__identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
}

.review-row > .product-thumb {
  grid-column: 1;
  grid-row: 1;
}

.review-row > .product-thumb + .review-row__identity {
  grid-column: 1;
  grid-row: 1;
  padding-left: 60px;
}

.review-row__identity .inline-input,
.review-row > label .inline-input {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 12px;
}

.review-row__identity small {
  grid-column: auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-input--name {
  font-weight: 760;
}

.price-input {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
}

.price-input .inline-input {
  padding-left: 7px;
}

.mobile-label {
  display: none;
}

.review-row__status {
  justify-self: start;
}

.product-thumb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue), var(--lime-soft));
  font-size: 22px;
}

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

.catalog-manager-list {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.catalog-manager-list .review-row {
  min-width: 860px;
}

/* Store Manager */

.manager-sidebar__brand {
  min-height: 48px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.manager-sidebar__brand .brand-lockup {
  color: #fff;
}

.store-switcher {
  width: 100%;
  min-height: 68px;
  margin-top: 24px;
  padding: 10px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #3f4b42;
  border-radius: 14px;
  background: #222c24;
  color: #fff;
}

.store-avatar,
.avatar,
.avatar-button {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.store-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--lime);
}

.store-switcher > span:nth-child(2),
.account-chip > span:nth-child(2) {
  min-width: 0;
}

.store-switcher b,
.store-switcher small,
.account-chip b,
.account-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-switcher b {
  font-size: 12px;
}

.store-switcher small {
  margin-top: 3px;
  color: #9da89f;
  font-size: 9px;
}

.store-switcher .icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #aeb8b0;
}

.manager-nav__item {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  background: transparent;
  color: #b8c1ba;
  font-size: 13px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.manager-nav__item:hover {
  background: #222c24;
  color: #fff;
}

.manager-nav__item.is-active {
  background: var(--lime);
  color: var(--ink);
  font-weight: 840;
}

.manager-nav__item > span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.manager-nav__item > i {
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: #364138;
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.manager-nav__item.is-active > i {
  background: var(--ink);
  color: var(--lime);
}

.manager-sidebar__footer {
  margin-top: auto;
  padding-top: 20px;
  display: grid;
  gap: 6px;
}

.account-chip {
  width: 100%;
  min-height: 62px;
  padding: 9px 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #39443b;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.account-chip > span:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.account-chip b {
  font-size: 11px;
}

.account-chip small {
  margin-top: 3px;
  color: #8f9b91;
  font-size: 9px;
}

.account-chip i {
  color: #909b92;
  font-style: normal;
}

.manager-workspace {
  min-width: 0;
}

.mobile-manager-header {
  display: none;
}

.preview-ribbon--manager {
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.manager-page {
  width: min(100%, 1450px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px);
  padding-bottom: max(54px, calc(var(--safe-bottom) + 28px));
}

.manager-page__header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.manager-page__header h1 {
  margin-bottom: 7px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.057em;
}

.manager-page__header > div:first-child > p:last-child:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.store-card__cover {
  min-height: 158px;
  padding: 16px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 15%, color-mix(in srgb, var(--store-secondary, var(--blue)) 70%, transparent), transparent 55%),
    var(--merchant-accent, var(--store-accent));
}

.store-card__cover::after {
  width: 150px;
  height: 150px;
  position: absolute;
  top: -80px;
  right: -35px;
  border: 28px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  content: "";
}

.store-card__cover img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.store-card__cover > span:not(.status-badge) {
  width: 58px;
  height: 58px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: calc(var(--store-radius) * 0.7);
  background: #fff;
  color: var(--store-ink);
  box-shadow: 0 7px 18px rgb(25 32 25 / 18%);
  font-size: 22px;
  font-weight: 900;
}

.store-card__cover .status-badge {
  position: relative;
  z-index: 2;
  margin-left: auto;
}

.store-card__body {
  padding: 18px;
}

.store-card__body h2 {
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 19px;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card__body > a {
  display: block;
  overflow: hidden;
  color: var(--green-dark);
  font-size: 11px;
  text-overflow: ellipsis;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.store-card__body dl {
  margin: 17px 0;
  padding-block: 13px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--line);
}

.store-card__body dl > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.store-card__body dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-card__body dd {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
}

.new-store-card {
  min-height: 326px;
  padding: 25px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 2px dashed var(--line-strong);
  border-radius: 20px;
  background: rgb(255 255 255 / 45%);
  color: var(--ink-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.new-store-card:hover {
  border-color: var(--green);
  background: var(--surface);
  transform: translateY(-2px);
}

.new-store-card > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 25px;
}

.new-store-card small {
  max-width: 210px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-guide {
  margin-top: 20px;
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  grid-template-columns: minmax(200px, 0.6fr) minmax(0, 1.4fr);
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dashboard-guide h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.dashboard-guide ol {
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  list-style: none;
}

.dashboard-guide li {
  min-width: 0;
  padding: 13px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbf8;
}

.dashboard-guide li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.dashboard-guide li.is-done > span {
  background: var(--success-soft);
  color: var(--success);
}

.dashboard-guide li b,
.dashboard-guide li small {
  display: block;
}

.dashboard-guide li b {
  font-size: 11px;
}

.dashboard-guide li small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.toolbar {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto;
  align-items: center;
  gap: 10px;
}

.catalog-maintenance-action {
  margin: -5px 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-maintenance-action small {
  color: var(--muted);
  font-size: 9px;
}

.catalog-maintenance-action .text-button {
  font-size: 9px;
}

.search-field {
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}

.search-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgb(40 102 71 / 12%);
}

.search-field > span:first-child {
  color: var(--muted);
  font-size: 20px;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.select-control {
  min-height: 50px;
}

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

.order-card {
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 16px;
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
}

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

.order-card__top b,
.order-card__top span,
.order-card__customer b,
.order-card__customer small {
  display: block;
}

.order-card__top b {
  font-size: 14px;
}

.order-card__top > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.order-card__customer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 42px;
  height: 42px;
}

.order-card__customer b {
  font-size: 12px;
}

.order-card__customer small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.order-card dl {
  padding-block: 13px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.order-card dl > div + div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.order-card dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.order-card dd {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 790;
}

.data-card,
.chart-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  min-width: 760px;
}

.data-card {
  overflow-x: auto;
}

.data-table__head,
.data-table__row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.4fr) 90px 110px 145px;
  align-items: center;
  gap: 14px;
}

.data-table__head {
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fafbf8;
  color: var(--muted);
  font-size: 9px;
  font-weight: 830;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.data-table__row {
  min-height: 72px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.data-table__row:last-child {
  border-bottom: 0;
}

.data-table__row small {
  margin-top: 3px;
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.data-table__row a {
  color: var(--green-dark);
  text-underline-offset: 3px;
}

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

.metric-grid > article {
  min-height: 138px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.metric-grid b {
  margin-top: auto;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.metric-grid small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.chart-card {
  padding: clamp(20px, 3vw, 28px);
}

.chart-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.chart-card__header h2 {
  margin: 0;
  font-size: 21px;
}

.chart-card__header > span {
  color: var(--muted);
  font-size: 10px;
}

.simple-bars {
  height: 270px;
  margin-top: 30px;
  padding: 28px 8px 0;
  display: flex;
  align-items: end;
  gap: clamp(8px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 58px, var(--line) 59px 60px);
}

.simple-bars i {
  height: var(--value);
  min-height: 12px;
  position: relative;
  flex: 1;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(to top, var(--green), #77a56b);
}

.simple-bars i span {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 6px);
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  transform: translateX(50%);
  white-space: nowrap;
}

.settings-panels {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.settings-card {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(170px, 0.54fr) minmax(0, 1.46fr);
  gap: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  scroll-margin-top: 20px;
}

.settings-card h2 {
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.settings-card > div:first-child > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.settings-save {
  padding: 14px 0 max(10px, var(--safe-bottom));
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  background: linear-gradient(transparent, #f4f5f0 32%);
}

.empty-state__mark {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--green);
  font-size: 25px;
}

.empty-state > .button {
  margin-top: -6px;
}

/* Data-driven public storefront */

[data-theme="corner-market"] {
  --store-bg: #f7f2e6;
  --store-secondary: #dce8ff;
  --store-chip: #fffef9;
  --store-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="fresh"] {
  --store-bg: #f4faf5;
  --store-secondary: #d9f27c;
  --store-chip: #e5f1e8;
  --store-font: ui-rounded, "SF Pro Rounded", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="bold"] {
  --store-bg: #f0f2e8;
  --store-secondary: #dce8ff;
  --store-chip: #ffffff;
  --store-font: Impact, Haettenschweiler, "Arial Narrow Bold", ui-sans-serif, sans-serif;
}

[data-theme="minimal"] {
  --store-bg: #ffffff;
  --store-secondary: #f0f1ed;
  --store-chip: #ffffff;
  --store-font: Georgia, "Times New Roman", serif;
}

.storefront {
  min-height: 100svh;
  background: var(--store-bg, var(--store-paper));
  color: var(--store-ink);
  font-family: var(--store-font);
}

.storefront button,
.storefront input,
.storefront select,
.storefront textarea {
  font-family: inherit;
}

.store-alert {
  min-height: 40px;
  padding: 9px max(18px, var(--safe-right)) 9px max(18px, var(--safe-left));
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: #75440f;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 780;
  text-align: center;
}

.storefront > .preview-ribbon {
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.storefront-header {
  grid-template-columns: minmax(0, 1fr) auto;
  background: color-mix(in srgb, var(--store-header) 93%, transparent);
}

.storefront[data-theme="bold"] .storefront-header {
  color: #fff;
}

.storefront-brand {
  width: fit-content;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.storefront-brand > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: max(3px, calc(var(--store-radius) * 0.7));
  background: var(--merchant-accent, var(--store-accent));
  color: var(--store-accent-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 950;
}

.storefront-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storefront-brand > b {
  max-width: min(48vw, 460px);
  overflow: hidden;
  font-size: 16px;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.storefront-header__actions .text-button {
  color: inherit;
}

.cart-button {
  min-height: 48px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--merchant-accent, var(--store-accent));
  border-radius: max(4px, calc(var(--store-radius) * 0.7));
  background: var(--merchant-accent, var(--store-accent));
  color: var(--store-accent-ink);
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
}

.cart-button > b {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--store-accent-ink);
  color: var(--store-accent);
  font-size: 9px;
}

.storefront > main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 80px;
}

.storefront-hero {
  min-height: clamp(330px, 43vw, 520px);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  align-items: stretch;
  border-radius: calc(var(--store-radius) * 1.45);
  background: var(--store-hero);
  color: var(--store-hero-ink);
}

.storefront-hero__content {
  max-width: none;
  padding: clamp(30px, 6vw, 72px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.storefront-hero__content h1 {
  margin-bottom: 17px;
  font-size: clamp(50px, 7.8vw, 94px);
  line-height: 0.9;
  letter-spacing: -0.066em;
}

.storefront[data-theme="minimal"] .storefront-hero__content h1 {
  font-weight: 500;
  letter-spacing: -0.048em;
}

.storefront-hero__content > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 24px;
  color: color-mix(in srgb, currentColor 76%, transparent);
  font-size: 16px;
  line-height: 1.55;
}

.store-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
}

.store-meta span:first-child {
  color: inherit;
  font-weight: 760;
}

.storefront-hero__image {
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.storefront-hero__image > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.store-illustration {
  width: 100%;
  height: 100%;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--store-secondary) 80%, white), var(--merchant-accent, var(--store-accent)));
}

.store-illustration > span {
  width: 118px;
  height: 118px;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 9px solid rgb(255 255 255 / 76%);
  border-radius: calc(var(--store-radius) * 1.2);
  background: var(--store-card);
  color: var(--store-ink);
  box-shadow: var(--store-shadow);
  font-size: 52px;
  font-weight: 930;
}

.store-illustration i {
  position: absolute;
  border: 2px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
}

.store-illustration i:nth-of-type(1) {
  width: 260px;
  height: 260px;
}

.store-illustration i:nth-of-type(2) {
  width: 370px;
  height: 370px;
}

.store-illustration i:nth-of-type(3) {
  width: 480px;
  height: 480px;
}

.shop-section {
  padding-top: clamp(42px, 7vw, 78px);
}

.shop-heading {
  margin-bottom: 23px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 420px);
  align-items: end;
  gap: 22px;
}

.shop-heading h2 {
  margin: 0;
  font-size: clamp(33px, 5vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.search-field--store {
  border-color: color-mix(in srgb, var(--store-ink) 20%, transparent);
  border-radius: max(4px, calc(var(--store-radius) * 0.8));
  background: var(--store-card);
  color: var(--store-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.search-field--store:focus-within {
  border-color: var(--merchant-accent, var(--store-accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--merchant-accent, var(--store-accent)) 25%, transparent);
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.category-chip.is-active {
  border-color: var(--merchant-accent, var(--store-accent));
  background: var(--merchant-accent, var(--store-accent));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.product-card {
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--store-ink) 13%, transparent);
  border-radius: var(--store-radius);
  background: var(--store-card);
  box-shadow: var(--store-shadow);
}

.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 14px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: max(3px, calc(var(--store-radius) * 0.7));
  background: color-mix(in srgb, var(--store-soft) 68%, white);
  cursor: pointer;
}

.product-card__image img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.035);
}

.category-art {
  width: 74%;
  height: 74%;
  display: grid;
  place-items: center;
  border-radius: max(8px, calc(var(--store-radius) * 0.8));
  background: linear-gradient(145deg, var(--store-secondary), var(--store-accent));
  font-size: clamp(38px, 6vw, 70px);
}

.product-card__body {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.product-card__body > small {
  margin-bottom: 5px;
  overflow: hidden;
  color: color-mix(in srgb, var(--store-ink) 56%, transparent);
  font-size: 9px;
  font-weight: 790;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card__body h3 {
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__body > p {
  margin-bottom: 14px;
  color: color-mix(in srgb, var(--store-ink) 58%, transparent);
  font-size: 11px;
}

.product-card__body > div {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-card__body > div > b {
  font-size: 16px;
  font-weight: 880;
}

.add-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: max(4px, calc(var(--store-radius) * 0.65));
  background: var(--merchant-accent, var(--store-accent));
  color: var(--store-accent-ink);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.store-info {
  margin-top: clamp(48px, 8vw, 88px);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(170px, 0.8fr));
  gap: clamp(22px, 4vw, 48px);
  border-block: 1px solid color-mix(in srgb, var(--store-ink) 14%, transparent);
}

.store-info h2 {
  margin-bottom: 9px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.store-info h3 {
  margin-bottom: 9px;
  font-size: 14px;
}

.store-info p {
  margin: 0;
  color: color-mix(in srgb, var(--store-ink) 65%, transparent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.store-info a {
  text-underline-offset: 3px;
}

.storefront-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.storefront-footer > div,
.storefront-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.storefront-footer > div > span {
  color: color-mix(in srgb, currentColor 60%, transparent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
}

.storefront-footer nav {
  justify-content: flex-end;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.storefront-footer nav a,
.storefront-footer nav .text-button {
  min-height: 44px;
  color: inherit;
  font-size: 11px;
}

/* Cart */

.drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
  animation: fade-in 160ms ease both;
}

.cart-drawer {
  transform: none;
  animation: drawer-in 200ms ease both;
}

.cart-drawer__header {
  min-height: 62px;
  padding-bottom: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.cart-drawer__header h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.cart-lines {
  min-height: 0;
  padding-block: 6px;
  overflow: auto;
}

.cart-line {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.cart-line > div:nth-child(2) {
  min-width: 0;
}

.cart-line b,
.cart-line small {
  display: block;
}

.cart-line > div:nth-child(2) > b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line small {
  margin-top: 3px;
  color: color-mix(in srgb, currentColor 60%, transparent);
  font-size: 9px;
}

.cart-line .text-button {
  min-height: 32px;
  padding: 0;
  color: inherit;
  font-size: 10px;
}

.cart-line > b:last-child {
  align-self: start;
  padding-top: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.cart-summary > div:first-child {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 16px;
}

.cart-summary > p {
  margin: 6px 0 15px;
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-size: 10px;
  line-height: 1.45;
}

@keyframes drawer-in {
  from {
    transform: translateX(102%);
  }

  to {
    transform: none;
  }
}

/* Checkout, account, policy, product, and delivery modals */

#modal-root[hidden] {
  display: none;
}

.modal-position {
  width: min(100%, 660px);
  margin: auto;
}

.modal-card {
  width: 100%;
  max-height: calc(100dvh - 36px);
  padding: clamp(24px, 4vw, 34px);
  position: relative;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 190ms ease both;
}

.modal-card > .modal-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
}

.modal-card > .eyebrow:first-of-type {
  padding-right: 48px;
}

.modal-card > h2 {
  max-width: 540px;
  margin-bottom: 12px;
  padding-right: 36px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.modal-card > p:not(.eyebrow, .form-note, .secure-note) {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.choice-group {
  min-width: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  border: 0;
}

.choice-group legend {
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.choice-card {
  min-height: 78px;
  padding: 14px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: flex-start;
}

.choice-card b,
.choice-card small {
  display: block;
}

.choice-card b {
  margin-bottom: 4px;
  font-size: 13px;
}

.choice-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.choice-card > .status-badge {
  margin-left: 8px;
}

.choice-card--fixed {
  border-color: #b9d7c4;
  background: var(--success-soft);
}

.choice-card--fixed input {
  opacity: 1;
}

.checkout-modal,
.delivery-modal {
  width: min(100%, 640px);
}

.checkout-steps {
  margin-bottom: 25px;
  padding-right: 54px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.checkout-steps span {
  padding-top: 9px;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.checkout-steps span.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.checkout-total {
  min-height: 48px;
  margin-top: 4px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.checkout-total b {
  font-size: 19px;
}

.checkout-signin {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.payment-element {
  min-height: 150px;
  margin-block: 22px 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: #fafbf8;
  text-align: center;
}

.payment-element p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.secure-note {
  margin-top: 13px;
  text-align: center;
}

.order-confirmation {
  max-width: 580px;
  text-align: center;
}

.order-confirmation .confirmation-mark,
.delivery-modal .confirmation-mark {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0;
}

.order-confirmation > h2 {
  max-width: none;
  padding: 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(31px, 5vw, 44px);
  letter-spacing: -0.035em;
}

.order-confirmation > p:not(.eyebrow, .form-note) {
  max-width: 460px;
  margin-inline: auto;
}

.order-confirmation .confirmation-details {
  margin-block: 24px;
}

.order-confirmation .confirmation-details > div {
  min-width: 0;
  padding: 15px;
  border-right: 1px solid var(--line);
  text-align: left;
}

.order-confirmation .confirmation-details > div:last-child {
  border-right: 0;
}

.order-confirmation .confirmation-details span,
.order-confirmation .confirmation-details b {
  display: block;
}

.order-confirmation .confirmation-details span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.order-confirmation .confirmation-details b {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.delivery-modal .confirmation-mark {
  margin-bottom: 20px;
}

.delivery-modal:has(.confirmation-mark) {
  text-align: center;
}

.delivery-modal:has(.confirmation-mark) > h2 {
  max-width: 520px;
  margin-inline: auto;
  padding: 0;
}

.delivery-modal:has(.confirmation-mark) > p:not(.eyebrow) {
  max-width: 510px;
  margin-inline: auto;
}

.delivery-modal:has(.confirmation-mark) .notice {
  margin-bottom: 18px;
  text-align: left;
}

.auth-modal,
.policy-modal,
.account-modal {
  max-width: 500px;
}

.account-modal {
  text-align: center;
}

.account-modal__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
}

.account-modal > h2 {
  max-width: none;
  margin-bottom: 6px;
  padding: 0;
}

.account-modal > p {
  margin-bottom: 22px !important;
  overflow-wrap: anywhere;
}

.account-modal > .button + .button {
  margin-top: 8px;
}

.add-product-modal {
  max-width: 600px;
}

.product-modal {
  max-width: 780px;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 44px);
}

.product-modal__image {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--blue), var(--lime-soft));
  font-size: 80px;
}

.product-modal__image img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.product-modal > div:last-child > h2 {
  margin-bottom: 12px;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.052em;
}

.product-modal > div:last-child > p:not(.eyebrow) {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-modal > div:last-child > span {
  color: var(--muted);
  font-size: 11px;
}

.product-modal__buy {
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.product-modal__buy > b {
  font-size: 23px;
}

/* Toast */

.toast {
  min-height: 52px;
  padding: 13px 16px;
  position: fixed;
  z-index: 150;
  right: max(20px, var(--safe-right));
  bottom: max(20px, var(--safe-bottom));
  display: flex;
  align-items: center;
  border: 1px solid #3c493e;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
  animation: toast-in 180ms ease both;
}

.toast[data-tone="success"] {
  border-color: #347759;
  background: #194d36;
}

.toast[data-tone="error"] {
  border-color: #b9564d;
  background: #762f29;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Reset legacy toggle decoration for the renderer's explicit track element. */

.toggle {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
}

.toggle::after {
  display: none;
}

.data-table--customers {
  width: 100%;
}

/* Renderer-responsive behavior: 360px phones through wide desktops. */

@media (max-width: 1100px) {
  :root {
    --manager-sidebar: 238px;
  }

  .onboarding-main {
    padding-inline: clamp(24px, 5vw, 52px);
  }

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

  .review-summary {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }

  .review-summary .button {
    grid-column: 1 / -1;
  }

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

  .dashboard-guide {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .auth-story {
    min-height: 280px;
    padding: 34px clamp(24px, 7vw, 58px);
  }

  .auth-story::after {
    width: 330px;
  }

  .auth-story__content {
    max-width: 690px;
    margin-block: auto;
  }

  .auth-story h1 {
    max-width: 760px;
    font-size: clamp(43px, 8vw, 66px);
  }

  .auth-panel {
    width: 100%;
    min-height: 620px;
    padding: 56px clamp(24px, 8vw, 72px) 70px;
  }

  .onboarding-header {
    position: sticky;
    z-index: 30;
    top: 0;
  }

  .onboarding-layout {
    min-height: 0;
    display: block;
  }

  .onboarding-sidebar {
    display: none;
  }

  .mobile-progress {
    min-height: 54px;
    padding: 10px max(20px, var(--safe-right)) 10px max(20px, var(--safe-left));
    display: grid;
    grid-template-columns: auto minmax(110px, 220px);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 760;
  }

  .mobile-progress > div {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--surface-2);
  }

  .mobile-progress i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--green);
  }

  .onboarding-main {
    padding: clamp(30px, 6vw, 54px) max(20px, var(--safe-right)) 42px max(20px, var(--safe-left));
  }

  .onboarding-form,
  .onboarding-form--wide {
    width: min(100%, 780px);
  }

  .branding-layout {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    position: relative;
    top: auto;
  }

  .review-table {
    min-width: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .review-table__head {
    display: none;
  }

  .review-row,
  .catalog-manager-list .review-row {
    min-width: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) minmax(105px, 0.55fr) minmax(95px, 0.45fr);
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgb(25 32 25 / 5%);
  }

  .review-table .review-row + .review-row,
  .catalog-manager-list .review-row + .review-row {
    margin-top: 9px;
  }

  .review-row > .product-thumb {
    grid-column: 1;
    grid-row: 1;
  }

  .review-row > .product-thumb + .review-row__identity {
    grid-column: 2 / -1;
    grid-row: 1;
    padding-left: 0;
  }

  .review-row__identity {
    display: grid;
    grid-template-columns: 1fr;
  }

  .review-row__identity small {
    grid-column: auto;
  }

  .review-row > label:not(.toggle) {
    min-width: 0;
  }

  .review-row > label:nth-of-type(1) {
    grid-column: 1 / 3;
  }

  .review-row > label:nth-of-type(2) {
    grid-column: 3 / 4;
  }

  .review-row > label:nth-of-type(3) {
    grid-column: 4 / -1;
  }

  .review-row > .toggle {
    grid-column: 1 / 3;
  }

  .review-row__status {
    grid-column: 3 / -1;
    justify-self: end;
  }

  .mobile-label {
    margin-bottom: 5px;
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 780;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .manager-shell {
    display: block;
  }

  .manager-sidebar {
    width: min(84vw, 290px);
    position: fixed;
    left: 0;
    transform: translateX(-104%);
    transition: transform 210ms ease;
  }

  .manager-sidebar.is-open {
    transform: none;
    box-shadow: 24px 0 60px rgb(15 20 16 / 28%);
  }

  .mobile-only {
    display: inline-grid;
  }

  .manager-sidebar__brand .mobile-only {
    border-color: #435046;
    background: #222c24;
    color: #fff;
  }

  .mobile-manager-header {
    min-height: 68px;
    padding: max(10px, var(--safe-top)) max(16px, var(--safe-right)) 9px max(16px, var(--safe-left));
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(14px);
  }

  .mobile-manager-header .icon-button {
    width: 44px;
    height: 44px;
  }

  .avatar-button {
    width: 42px;
    height: 42px;
    border: 0;
    cursor: pointer;
  }

  .manager-page {
    min-height: calc(100svh - 68px);
    padding: 30px clamp(18px, 4vw, 34px) 54px;
  }

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

  .settings-nav {
    padding: 6px;
    position: static;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .settings-nav::-webkit-scrollbar {
    display: none;
  }

  .settings-nav a {
    flex: 0 0 auto;
  }

  .settings-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .storefront-hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.68fr);
  }

  .storefront-hero__content {
    padding: clamp(28px, 5vw, 48px);
  }

  .storefront-hero__content h1 {
    font-size: clamp(46px, 8vw, 72px);
  }

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

  .store-info > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .desktop-only {
    display: none !important;
  }

  .field-grid--two,
  .field-grid--three {
    grid-template-columns: 1fr;
  }

  .onboarding-header {
    min-height: 68px;
    gap: 10px;
  }

  .onboarding-header .save-state {
    margin-left: auto;
  }

  .section-heading h1 {
    font-size: clamp(36px, 9vw, 50px);
  }

  .section-heading--split {
    display: grid;
  }

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

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

  .template-card__preview {
    min-height: 190px;
  }

  .media-uploader:not(.media-uploader--wide) .media-uploader__preview {
    aspect-ratio: auto;
  }

  .review-summary {
    grid-template-columns: repeat(3, 1fr);
    padding: 14px;
  }

  .review-summary > span {
    padding-right: 8px;
  }

  .review-summary > span b {
    font-size: 18px;
  }

  .onboarding-actions {
    padding-bottom: max(0px, var(--safe-bottom));
    position: sticky;
    z-index: 12;
    bottom: 0;
    background: linear-gradient(transparent, var(--cream) 22%);
  }

  .manager-page__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .button {
    flex: 1 1 180px;
  }

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

  .dashboard-guide ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .toolbar .search-field {
    grid-column: 1 / -1;
  }

  .order-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .simple-bars {
    height: 220px;
  }

  .storefront-header {
    min-height: 68px;
  }

  .storefront-brand > span {
    width: 42px;
    height: 42px;
  }

  .storefront-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .storefront-hero__content {
    min-height: 330px;
  }

  .storefront-hero__image,
  .store-illustration {
    min-height: 240px;
  }

  .shop-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

  .store-info > div:first-child {
    grid-column: auto;
  }

  .storefront-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .storefront-footer nav {
    justify-content: flex-start;
  }

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

  .product-modal__image {
    width: min(100%, 330px);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .auth-story {
    min-height: 230px;
    padding: 26px 22px;
  }

  .auth-story__content {
    margin-block: auto;
  }

  .auth-story h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 12vw, 52px);
  }

  .auth-story__content > p {
    font-size: 14px;
  }

  .auth-panel {
    min-height: 590px;
    padding: 42px 20px 56px;
  }

  .auth-terms {
    margin-top: 24px;
    font-size: 9px;
  }

  .auth-panel h2 {
    font-size: 34px;
  }

  .auth-role-card {
    min-height: 106px;
    padding: 16px;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 12px;
  }

  .auth-role-card__icon {
    width: 44px;
    height: 44px;
  }

  .enterprise-header {
    min-height: 68px;
    padding-inline: 18px;
  }

  .enterprise-welcome {
    width: min(100% - 32px, 1120px);
    padding-top: 58px;
  }

  .enterprise-welcome > h1 {
    font-size: 48px;
  }

  .otp-input.field__input {
    padding-inline: 12px;
    font-size: 24px;
    letter-spacing: 0.27em;
  }

  .onboarding-header .brand-logo {
    width: 104px;
  }

  .onboarding-header > .button {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .save-state {
    font-size: 10px;
  }

  .mobile-progress {
    grid-template-columns: auto minmax(90px, 150px);
  }

  .onboarding-main {
    padding-inline: 16px;
  }

  .upload-dropzone {
    min-height: 180px;
    padding: 20px 14px;
  }

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

  .upload-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .branding-layout .field-grid--two:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slug-field {
    display: grid;
  }

  .slug-field .field__input {
    border-radius: 12px 12px 0 0;
  }

  .slug-field > span {
    min-height: 38px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 0 0 12px 12px;
  }

  .phone-preview {
    width: min(100%, 284px);
  }

  .review-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .review-summary > span {
    font-size: 9px;
  }

  .review-row,
  .catalog-manager-list .review-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .review-row > .product-thumb + .review-row__identity {
    grid-column: 2;
  }

  .review-row > label:nth-of-type(1),
  .review-row > label:nth-of-type(2),
  .review-row > label:nth-of-type(3),
  .review-row > .toggle,
  .review-row__status {
    grid-column: 1 / -1;
  }

  .review-row__status {
    justify-self: start;
  }

  .processing-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .processing-orbit {
    margin-inline: auto;
  }

  .onboarding-actions {
    gap: 9px;
  }

  .onboarding-actions .button {
    min-width: 0;
    flex: 1;
  }

  .manager-page {
    padding-inline: 15px;
  }

  .manager-page__header h1 {
    font-size: 38px;
  }

  .dashboard-guide ol {
    grid-template-columns: 1fr;
  }

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

  .toolbar > * {
    width: 100%;
  }

  .settings-card {
    padding: 18px;
  }

  .storefront > main {
    padding-inline: 12px;
  }

  .storefront-brand > b {
    max-width: 39vw;
    font-size: 13px;
  }

  .cart-button {
    padding-inline: 12px;
  }

  .cart-button > span {
    display: none;
  }

  .storefront-hero__content {
    min-height: 300px;
    padding: 26px 20px;
  }

  .storefront-hero__content h1 {
    font-size: clamp(45px, 15vw, 66px);
  }

  .storefront-hero__content > p:not(.eyebrow) {
    font-size: 14px;
  }

  .storefront-hero__image,
  .store-illustration {
    min-height: 205px;
  }

  .product-grid {
    gap: 9px;
  }

  .product-card {
    padding: 8px;
  }

  .product-card__body h3 {
    font-size: 12px;
  }

  .product-card__body > div > b {
    font-size: 14px;
  }

  .add-button {
    width: 44px;
    height: 44px;
  }

  .store-info {
    padding-inline: 12px;
  }

  .storefront-footer {
    padding-inline: 16px;
  }

  .cart-drawer {
    width: 100%;
    padding-left: max(16px, var(--safe-left));
  }

  .cart-line {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .cart-line > .quantity-control {
    grid-column: 2;
  }

  .cart-line > b:last-child {
    grid-column: 3;
    grid-row: 1;
  }

  .modal-backdrop {
    padding: 0;
    place-items: end stretch;
  }

  .modal-position {
    width: 100%;
  }

  .modal-card {
    width: 100%;
    max-height: min(92dvh, 860px);
    padding: 24px 18px max(24px, var(--safe-bottom));
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }

  .modal-card > .modal-close {
    top: 13px;
    right: 13px;
  }

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

  .choice-card > .status-badge {
    grid-column: 2;
    width: fit-content;
    margin: 3px 0 0;
  }

  .order-confirmation .confirmation-details {
    grid-template-columns: 1fr;
  }

  .order-confirmation .confirmation-details > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .order-confirmation .confirmation-details > div:last-child {
    border-bottom: 0;
  }

  .product-modal__image {
    width: min(76vw, 260px);
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 118px;
  }

  .auth-story {
    min-height: 220px;
  }

  .section-heading h1 {
    font-size: 35px;
  }

  .review-summary > span b {
    font-size: 16px;
  }

  .storefront-brand > b {
    max-width: 32vw;
  }

  .storefront-hero__content h1 {
    font-size: 44px;
  }

  .product-card__body {
    min-height: 126px;
  }

  .product-card__body > small {
    font-size: 8px;
  }
}

/* Truthful template geometries */

.template-card__preview {
  display: grid;
}

.template-preview__nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.template-preview__nav > i {
  width: 38%;
  height: 5px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.72;
}

.template-preview__nav > b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-card__preview--corner-market {
  grid-template-rows: 18px minmax(64px, 1fr) 42px;
}

.template-preview__classic-hero {
  padding: 9px;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  align-items: stretch;
  gap: 8px;
  border-radius: 12px;
  background: var(--store-accent);
}

.template-preview__classic-hero > span {
  align-self: end;
  display: grid;
  gap: 5px;
}

.template-preview__classic-hero b,
.template-preview__classic-hero i {
  height: 6px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.72;
}

.template-preview__classic-hero b {
  width: 76%;
  height: 9px;
}

.template-preview__classic-hero i:last-child {
  width: 55%;
}

.template-preview__classic-hero > em {
  border-radius: 8px;
  background: var(--store-secondary);
}

.template-preview__classic-products {
  padding-top: 7px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.template-preview__classic-products i,
.template-preview__fresh-products i,
.template-preview__dense-products i {
  display: block;
  border: 1px solid rgb(25 32 25 / 8%);
  background: var(--store-card);
}

.template-preview__classic-products i {
  border-radius: 7px;
}

.template-card__preview--fresh {
  grid-template-rows: 18px minmax(78px, 1fr) 46px;
  gap: 7px;
}

.template-preview__fresh-feature {
  padding: 7px;
  display: grid;
  grid-template-columns: 1.4fr 0.78fr;
  gap: 7px;
  border-radius: 17px;
  background: #fff;
}

.template-preview__fresh-feature > i {
  display: block;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--store-accent), #ff9f70);
}

.template-preview__fresh-feature > span {
  align-content: end;
  display: grid;
  gap: 6px;
}

.template-preview__fresh-feature b,
.template-preview__fresh-feature em {
  height: 6px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.62;
}

.template-preview__fresh-feature b {
  height: 10px;
}

.template-preview__fresh-feature em:last-child {
  width: 64%;
}

.template-preview__fresh-products {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 7px;
}

.template-preview__fresh-products i {
  border-radius: 12px;
}

.template-card__preview--bold {
  grid-template-rows: 16px 20px 50px minmax(32px, 1fr);
  gap: 6px;
  background: #f0f2e8;
}

.template-preview__search,
.template-preview__minimal-search {
  border: 2px solid currentColor;
  background: #fff;
}

.template-preview__search {
  border-radius: 3px;
}

.template-preview__bold-banner {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 3px;
  background: var(--store-hero);
  color: var(--store-hero-ink);
}

.template-preview__bold-banner b {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.template-preview__bold-banner i {
  width: 32px;
  height: 32px;
  display: block;
  transform: rotate(8deg);
  background: var(--store-secondary);
}

.template-preview__dense-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.template-preview__dense-products i {
  border-radius: 2px;
  box-shadow: 2px 2px 0 currentColor;
}

.template-card__preview--minimal {
  grid-template-rows: 18px 24px 1fr;
  gap: 8px;
  background: #fff;
}

.template-preview__minimal-search {
  border-width: 0 0 1px;
}

.template-preview__list {
  display: grid;
  align-content: stretch;
}

.template-preview__list > i {
  min-height: 27px;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgb(25 32 25 / 13%);
}

.template-preview__list > i::before {
  content: "";
  grid-row: 1 / -1;
  width: 24px;
  height: 24px;
  background: #eef0e9;
}

.template-preview__list b,
.template-preview__list em {
  height: 5px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.65;
}

.template-preview__list em {
  width: 48%;
  opacity: 0.35;
}

.template-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.template-card__title > em {
  max-width: 136px;
  padding: 4px 7px;
  border-radius: 99px;
  background: #eaf4ec;
  color: var(--green);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
}

.template-card__content .template-card__best-for {
  min-height: 47px;
  color: var(--ink);
  font-weight: 720;
}

.phone-preview__brand b img,
.phone-preview__hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-preview__brand b img {
  border-radius: inherit;
}

.phone-preview__hero {
  position: relative;
  overflow: hidden;
}

.phone-preview__hero > img {
  position: absolute;
  inset: 0;
}

.phone-preview__hero > img + p {
  padding: 7px;
  position: relative;
  z-index: 1;
  border-radius: 7px;
  background: rgb(255 255 255 / 78%);
}

.phone-preview__search {
  height: 30px;
  margin-top: 12px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--store-ink) 16%, transparent);
  border-radius: max(2px, calc(var(--store-radius) * 0.6));
  background: var(--store-card);
  color: color-mix(in srgb, var(--store-ink) 52%, transparent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 8px;
}

.phone-preview__search i {
  width: 8px;
  height: 8px;
  display: block;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.phone-preview__chips i {
  width: auto;
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  color: var(--store-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 7px;
  font-style: normal;
}

.phone-preview__grid i {
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
}

.phone-preview__grid i > span {
  min-height: 54px;
  display: block;
  border-radius: max(2px, calc(var(--store-radius) * 0.45));
  background: color-mix(in srgb, var(--store-secondary) 70%, white);
}

.phone-preview__grid i > b {
  overflow: hidden;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 7px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-preview__details {
  margin-top: 13px;
  padding-top: 9px;
  display: grid;
  gap: 3px;
  border-top: 1px solid color-mix(in srgb, var(--store-ink) 12%, transparent);
  color: color-mix(in srgb, var(--store-ink) 56%, transparent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 7px;
}

.phone-preview[data-theme="fresh"] .phone-preview__hero {
  min-height: 205px;
  border-radius: 24px;
}

.phone-preview[data-theme="fresh"] .phone-preview__grid {
  grid-template-columns: 1.25fr 0.75fr;
}

.phone-preview[data-theme="bold"] .phone-preview__hero {
  min-height: 90px;
  border-radius: 3px;
}

.phone-preview[data-theme="bold"] .phone-preview__hero p {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.phone-preview[data-theme="bold"] .phone-preview__search {
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.phone-preview[data-theme="bold"] .phone-preview__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.phone-preview[data-theme="bold"] .phone-preview__grid i {
  height: 82px;
  border-radius: 2px;
  box-shadow: 2px 2px 0 var(--store-ink);
}

.phone-preview[data-theme="bold"] .phone-preview__grid i > span {
  min-height: 38px;
}

.phone-preview[data-theme="minimal"] .phone-preview__hero {
  min-height: 78px;
  margin-top: 14px;
  padding: 14px 0;
  border-block: 1px solid color-mix(in srgb, var(--store-ink) 16%, transparent);
  border-radius: 0;
  background: transparent;
}

.phone-preview[data-theme="minimal"] .phone-preview__hero > img {
  display: none;
}

.phone-preview[data-theme="minimal"] .phone-preview__hero p {
  color: var(--store-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
}

.phone-preview[data-theme="minimal"] .phone-preview__chips {
  margin-block: 12px 8px;
}

.phone-preview[data-theme="minimal"] .phone-preview__grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.phone-preview[data-theme="minimal"] .phone-preview__grid i {
  height: 62px;
  padding: 6px 0;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.phone-preview[data-theme="minimal"] .phone-preview__grid i > span {
  min-height: 48px;
}

/* The selected template changes the live storefront structure, not only its palette. */

.storefront[data-theme="fresh"] .storefront-hero {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
}

.storefront[data-theme="fresh"] .storefront-hero__image {
  order: 2;
  margin: 14px;
  border-radius: calc(var(--store-radius) * 1.2);
}

.storefront[data-theme="fresh"] .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.storefront[data-theme="fresh"] .product-card__image {
  aspect-ratio: 4 / 3;
}

.storefront[data-theme="bold"] .storefront-hero {
  min-height: 290px;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
}

.storefront[data-theme="bold"] .storefront-hero__content {
  min-height: 290px;
  padding: clamp(28px, 4vw, 48px);
}

.storefront[data-theme="bold"] .storefront-hero__content h1 {
  margin-bottom: 10px;
  font-size: clamp(54px, 8vw, 102px);
  text-transform: uppercase;
}

.storefront[data-theme="bold"] .shop-section {
  padding-top: 36px;
}

.storefront[data-theme="bold"] .search-field--store {
  min-height: 58px;
  border: 3px solid currentColor;
}

.storefront[data-theme="bold"] .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.storefront[data-theme="bold"] .product-card {
  border: 2px solid var(--store-ink);
}

.storefront[data-theme="minimal"] .storefront-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  border-block: 1px solid color-mix(in srgb, var(--store-ink) 18%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--store-ink);
}

.storefront[data-theme="minimal"] .storefront-hero__content {
  min-height: 0;
  padding: clamp(34px, 6vw, 70px) 0;
}

.storefront[data-theme="minimal"] .storefront-hero__content h1 {
  max-width: 820px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
}

.storefront[data-theme="minimal"] .storefront-hero__image {
  display: none;
}

.storefront[data-theme="minimal"] .shop-section {
  padding-top: 34px;
}

.storefront[data-theme="minimal"] .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.storefront[data-theme="minimal"] .product-card {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.storefront[data-theme="minimal"] .product-card__image {
  aspect-ratio: 1;
  margin: 0 15px 0 0;
  border-radius: 0;
}

.storefront[data-theme="minimal"] .product-card__body {
  min-height: 100px;
  justify-content: center;
}

@media (max-width: 760px) {
  .storefront[data-theme="fresh"] .storefront-hero,
  .storefront[data-theme="bold"] .storefront-hero {
    grid-template-columns: 1fr;
  }

  .storefront[data-theme="fresh"] .storefront-hero__image {
    order: 0;
    min-height: 260px;
  }

  .storefront[data-theme="fresh"] .product-grid,
  .storefront[data-theme="bold"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront[data-theme="bold"] .storefront-hero__content {
    min-height: 240px;
  }

  .storefront[data-theme="minimal"] .storefront-hero__content {
    min-height: 0;
    padding-inline: 8px;
  }

  .storefront[data-theme="minimal"] .product-grid {
    grid-template-columns: 1fr;
  }

  .storefront[data-theme="minimal"] .product-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

/* Production catalog review and authenticated storefront preview */

.catalog-summary-grid {
  margin-block: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.catalog-summary-grid article {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.catalog-summary-grid article > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.catalog-summary-grid article > b {
  color: var(--ink);
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1;
}

.catalog-summary-grid article > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.catalog-summary-grid article.needs-attention {
  border-color: #e9c995;
  background: color-mix(in srgb, var(--amber-soft) 55%, var(--surface));
}

.catalog-summary-grid article.needs-attention > b {
  color: var(--amber);
}

.catalog-summary-grid article.is-ready {
  border-color: #b9d7c4;
  background: color-mix(in srgb, var(--success-soft) 48%, var(--surface));
}

.catalog-summary-grid article.is-ready > b {
  color: var(--success);
}

.ingestion-report {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.ingestion-report > summary,
.ingestion-report__regions > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.ingestion-report > summary::-webkit-details-marker,
.ingestion-report__regions > summary::-webkit-details-marker { display: none; }
.ingestion-report > summary span,
.ingestion-report > summary small { display: block; }
.ingestion-report > summary small { margin-top: 3px; color: var(--muted); font-weight: 400; }

.ingestion-report__counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 14px;
}

.ingestion-report__counts article {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 13px;
  background: var(--surface-soft);
}

.ingestion-report__counts b { font-size: 1.35rem; }
.ingestion-report__counts span { color: var(--muted); font-size: .78rem; }

.ingestion-report__stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.ingestion-report__stages li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ingestion-report__stages li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: .72rem;
  font-weight: 800;
}

.ingestion-report__stages li b,
.ingestion-report__stages li small { display: block; }
.ingestion-report__stages li b { font-size: .78rem; }
.ingestion-report__stages li small { margin-top: 2px; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.ingestion-report__stages li.is-success { border-color: color-mix(in srgb, var(--success) 28%, var(--line)); }
.ingestion-report__stages li.is-success > span { background: color-mix(in srgb, var(--success) 14%, white); color: var(--success); }
.ingestion-report__stages li.is-warning { border-color: color-mix(in srgb, #b36a1e 38%, var(--line)); }
.ingestion-report__stages li.is-working > span { background: color-mix(in srgb, var(--green) 12%, white); color: var(--green); }

.ingestion-report__regions { border-top: 1px solid var(--line); }
.ingestion-report__regions > summary { font-size: .86rem; font-weight: 750; }
.ingestion-report__regions > summary span { color: var(--muted); }
.ingestion-region-list { display: grid; max-height: 430px; overflow: auto; border-top: 1px solid var(--line); }
.ingestion-region-list article {
  display: grid;
  grid-template-columns: 52px auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.ingestion-region-list article > img,
.ingestion-region-list__placeholder {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2, #f7f8f5);
}
.ingestion-region-list article > img { object-fit: cover; }
.ingestion-region-list__placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
}
.ingestion-region-list article:last-child { border-bottom: 0; }
.ingestion-region-list b,
.ingestion-region-list small { display: block; }
.ingestion-region-list small { margin-top: 2px; color: var(--muted); font-size: .76rem; }

@media (max-width: 900px) {
  .ingestion-report__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ingestion-report__counts,
  .ingestion-report__stages { grid-template-columns: 1fr; }
}

.catalog-bulk-actions {
  margin-bottom: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2, #f7f8f5);
}

.catalog-bulk-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.review-table,
.catalog-manager-list {
  min-width: 0;
  overflow: visible;
}

.review-table__head {
  display: none;
}

.review-row,
.catalog-manager-list .review-row {
  min-width: 0;
  min-height: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgb(25 32 25 / 5%);
}

.review-table .review-row + .review-row,
.catalog-manager-list .review-row + .review-row {
  margin-top: 9px;
}

.review-row > .product-thumb {
  grid-column: 1;
  grid-row: 1;
}

.review-row > .product-thumb + .review-row__identity {
  grid-column: 2;
  grid-row: 1;
  padding-left: 0;
}

.review-row__identity {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.review-row__identity > b,
.review-row__identity > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-row__identity > b {
  color: var(--ink);
  font-size: 13px;
}

.review-row__identity > small {
  color: var(--muted);
  font-size: 10px;
}

.review-row__fact {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.review-row__fact > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.review-row__fact > b {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-row__fact--category {
  grid-column: 1 / 3;
  grid-row: 2;
}

.review-row__fact--price {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  text-align: right;
}

.review-row__status {
  grid-column: 1 / 3;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.review-row__status > small {
  color: var(--muted);
  font-size: 10px;
}

.review-row__action {
  grid-column: 3;
  grid-row: 1;
  min-height: 38px;
  padding-inline: 11px;
  white-space: nowrap;
}

.modal-position--catalog {
  width: min(100%, 1040px);
}

.catalog-product-modal {
  max-height: calc(100dvh - 28px);
  padding: 0;
}

.catalog-product-modal > .modal-close {
  top: 14px;
  right: 14px;
}

.catalog-product-modal__heading {
  padding: 22px 56px 18px 18px;
  display: grid;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--lime-soft) 35%, var(--surface));
}

.catalog-product-modal__heading h2 {
  margin: 3px 0 7px;
  font-size: clamp(25px, 7vw, 38px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.catalog-product-modal__heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.catalog-product-modal__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.catalog-product-form {
  display: grid;
}

.catalog-review-section {
  padding: 20px 18px;
  display: grid;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.catalog-review-section__heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.catalog-review-section__heading > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.catalog-review-section__heading h3,
.catalog-review-section__heading p {
  margin: 0;
}

.catalog-review-section__heading h3 {
  font-size: 15px;
}

.catalog-review-section__heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

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

.catalog-product-form textarea.field__input {
  min-height: 92px;
  resize: vertical;
}

.money-field {
  position: relative;
  display: block;
}

.money-field > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: var(--muted);
  font-style: normal;
}

.money-field .field__input {
  padding-left: 29px;
}

.suggested-price-card {
  min-height: 100%;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px dashed #bbc7b6;
  border-radius: 12px;
  background: #fafcf8;
}

.suggested-price-card > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.suggested-price-card > b {
  font-size: 19px;
}

.suggested-price-card > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.suggested-price-card > .text-button {
  width: fit-content;
  margin-top: 3px;
}

.catalog-availability-control {
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2, #f7f8f5);
}

.catalog-availability-control > span:first-child {
  display: grid;
  gap: 3px;
}

.catalog-availability-control b {
  font-size: 10px;
}

.catalog-availability-control small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.catalog-image-rights {
  padding: 13px;
  border: 1px solid #e2c68e;
  border-radius: 12px;
  background: var(--amber-soft);
}

.evidence-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.evidence-summary article {
  padding: 12px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2, #f7f8f5);
}

.evidence-summary span,
.evidence-summary small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.evidence-summary span {
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.evidence-summary b {
  font-size: 15px;
}

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

.catalog-evidence-grid figure {
  min-width: 0;
  margin: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.catalog-evidence-grid figure > img,
.catalog-evidence-grid figure > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--blue), var(--lime-soft));
  object-fit: cover;
}

.catalog-evidence-grid figcaption,
.catalog-evidence-grid figcaption > b,
.catalog-evidence-grid figcaption > small {
  min-width: 0;
  display: block;
}

.catalog-evidence-grid figcaption > b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-evidence-grid figcaption > small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.catalog-subsection-heading {
  margin-bottom: 9px;
  display: grid;
  gap: 3px;
}

.catalog-subsection-heading h4,
.catalog-subsection-heading p {
  margin: 0;
}

.catalog-subsection-heading h4 {
  font-size: 12px;
}

.catalog-subsection-heading p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.catalog-match-card {
  padding: 12px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2, #f7f8f5);
}

.catalog-match-card > div {
  display: grid;
  gap: 3px;
}

.catalog-match-card > div > span,
.catalog-match-card dt,
.catalog-rich-record dt,
.catalog-field-evidence dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.catalog-match-card > div > b {
  font-size: 14px;
}

.catalog-match-card > div > small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.catalog-match-card dl,
.catalog-field-evidence dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-match-card dl > div,
.catalog-field-evidence dl > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.catalog-match-card dd,
.catalog-field-evidence dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 9px;
}

.catalog-rich-record {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.catalog-rich-record__grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}

.catalog-rich-record__grid > div {
  min-width: 0;
  padding: 9px;
  display: grid;
  align-content: start;
  gap: 3px;
  background: var(--surface-2, #f7f8f5);
}

.catalog-rich-record__grid > .is-wide {
  grid-column: 1 / -1;
}

.catalog-rich-record dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 9px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.catalog-evidence-details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.catalog-evidence-details > summary {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 10px;
  font-weight: 820;
  list-style-position: inside;
}

.catalog-evidence-details > summary > span {
  min-width: 23px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--surface-2, #f0f3ed);
  color: var(--muted);
  text-align: center;
  font-size: 8px;
}

.catalog-field-evidence {
  padding: 0 9px 9px;
  display: grid;
  gap: 7px;
}

.catalog-field-evidence article {
  padding: 9px;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2, #f7f8f5);
}

.catalog-field-evidence article > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.catalog-field-evidence article > div > b {
  font-size: 10px;
}

.catalog-field-evidence article > div > span {
  overflow-wrap: anywhere;
  color: var(--ink-2);
  font-size: 9px;
  line-height: 1.4;
}

.catalog-issue-columns {
  display: grid;
  gap: 8px;
}

.catalog-evidence-details > ul {
  margin: 0;
  padding: 0 12px 11px 30px;
  display: grid;
  gap: 7px;
}

.catalog-evidence-details > ul li {
  padding-left: 2px;
}

.catalog-evidence-details > ul b,
.catalog-evidence-details > ul span,
.catalog-evidence-details > ul small {
  display: block;
}

.catalog-evidence-details > ul b {
  font-size: 9px;
}

.catalog-evidence-details > ul span,
.catalog-evidence-details > ul small,
.catalog-record-empty {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.catalog-record-empty {
  margin: 0;
  padding: 0 12px 11px;
}

.catalog-product-actions {
  padding: 14px 18px max(14px, var(--safe-bottom));
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}

.catalog-product-actions > span {
  display: none;
}

.catalog-product-actions .button--primary {
  grid-column: 1 / -1;
}

.button--danger {
  border: 1px solid #dfaaa4;
  background: var(--danger-soft);
  color: var(--danger);
}

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

.catalog-product-form[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

.store-alert--preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.store-alert--preview .text-button {
  color: inherit;
  text-decoration: underline;
}

.storefront-preview-pill,
.preview-no-order {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  color: inherit;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.storefront-preview-pill {
  min-height: 32px;
  padding-inline: 11px;
}

.preview-no-order {
  padding: 5px 7px;
  color: color-mix(in srgb, currentColor 68%, transparent);
}

.storefront-preview-summary {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--merchant-accent) 25%, #d5dbd2);
  border-radius: max(12px, var(--store-radius));
  background: color-mix(in srgb, var(--store-surface) 94%, transparent);
}

.storefront-preview-summary article {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 2px;
  border-right: 1px solid color-mix(in srgb, var(--merchant-accent) 15%, #d5dbd2);
  text-align: center;
}

.storefront-preview-summary article:last-child {
  border-right: 0;
}

.storefront-preview-summary b {
  font-size: 20px;
}

.storefront-preview-summary span {
  overflow: hidden;
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card--draft {
  border-style: dashed;
}

.product-card--draft .product-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 10%);
  pointer-events: none;
}

.product-card__preview-status {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  box-shadow: 0 3px 12px rgb(25 32 25 / 10%);
}

.product-modal__preview-state {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-modal__preview-state > span:last-child {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 420px) {
  .catalog-summary-grid {
    grid-template-columns: 1fr;
  }

  .catalog-bulk-actions,
  .store-alert--preview {
    align-items: stretch;
    flex-direction: column;
  }

  .review-row,
  .catalog-manager-list .review-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .review-row__action {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
  }

  .review-row__fact--price {
    grid-column: 2;
  }

  .storefront-preview-summary {
    width: calc(100% - 24px);
  }

  .storefront-preview-summary article {
    padding-inline: 7px;
  }

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

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

  .catalog-availability-control {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 720px) {
  .catalog-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-summary-grid article {
    padding: 17px;
  }

  .catalog-summary-grid article > b {
    font-size: 34px;
  }

  .catalog-product-modal__heading {
    padding: 28px 72px 22px 28px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .catalog-product-modal__badges {
    justify-content: flex-end;
  }

  .catalog-review-section {
    padding: 24px 28px;
  }

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

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

  .catalog-match-card {
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
  }

  .catalog-match-card dl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .catalog-evidence-details > .catalog-field-evidence {
    padding-top: 0;
  }

  .catalog-product-actions {
    padding: 14px 28px;
    display: flex;
    align-items: center;
  }

  .catalog-product-actions > span {
    display: block;
    flex: 1;
  }

  .catalog-product-actions .button--primary {
    grid-column: auto;
  }
}

@media (min-width: 820px) {
  .review-table__head,
  .review-row,
  .catalog-manager-list .review-row {
    display: grid;
    grid-template-columns: minmax(250px, 1.45fr) minmax(110px, 0.65fr) 105px minmax(145px, 0.8fr) auto;
    align-items: center;
    gap: 14px;
  }

  .review-table__head {
    padding: 10px 14px;
  }

  .review-row,
  .catalog-manager-list .review-row {
    min-height: 78px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }

  .review-table .review-row + .review-row,
  .catalog-manager-list .review-row + .review-row {
    margin-top: 0;
  }

  .review-row > .product-thumb,
  .review-row > .product-thumb + .review-row__identity {
    grid-column: 1;
    grid-row: 1;
  }

  .review-row > .product-thumb + .review-row__identity {
    padding-left: 60px;
  }

  .review-row__fact--category {
    grid-column: 2;
    grid-row: 1;
  }

  .review-row__fact--price {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }

  .review-row__status {
    grid-column: 4;
    grid-row: 1;
  }

  .review-row__action {
    grid-column: 5;
    grid-row: 1;
  }
}

/* Nearby internal Catalog review */

.manager-nav__internal {
  margin-top: 10px;
  padding-top: 12px;
  display: grid;
  gap: 5px;
  border-top: 1px solid #39443b;
}

.manager-nav__internal > span {
  padding: 0 12px 3px;
  color: #829087;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.internal-review-shell {
  display: grid;
  gap: 18px;
}

.internal-review-header {
  display: grid;
  gap: 16px;
}

.internal-review-header h1 {
  margin: 4px 0 8px;
  font-size: clamp(34px, 8vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.057em;
}

.internal-review-header p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.internal-review-lock {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #36483d;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 830;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.internal-review-boundary {
  border-left-width: 4px;
}

.internal-review-toolbar {
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.internal-review-toolbar > .field {
  max-width: 280px;
}

.internal-review-toolbar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.internal-review-toolbar > div > span {
  color: var(--muted);
  font-size: 11px;
}

.internal-review-toolbar > div > span > b {
  color: var(--ink);
  font-size: 17px;
}

.internal-review-progress {
  min-height: 48px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #bfd0ed;
  border-radius: 14px;
  background: #eef4ff;
  color: #294c88;
  font-size: 12px;
  font-weight: 750;
}

.internal-candidate-list {
  display: grid;
  gap: 18px;
}

.internal-candidate-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.internal-candidate-card__header {
  padding: 18px;
  display: grid;
  gap: 16px;
  background: color-mix(in srgb, var(--lime-soft) 34%, var(--surface));
}

.internal-candidate-card__identity {
  min-width: 0;
}

.internal-candidate-card__identity h2 {
  margin: 10px 0 5px;
  font-size: clamp(23px, 6vw, 31px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.internal-candidate-card__identity > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.internal-candidate-card__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

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

.internal-candidate-card__meta > div {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 3px;
  border: 1px solid rgb(25 32 25 / 10%);
  border-radius: 11px;
  background: rgb(255 255 255 / 72%);
}

.internal-candidate-card__meta dt,
.internal-identity-grid dt,
.internal-evidence-card dt,
.internal-decision-record dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.internal-candidate-card__meta dd,
.internal-identity-grid dd,
.internal-evidence-card dd,
.internal-decision-record dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.internal-candidate-card__meta dd {
  font-weight: 790;
}

.internal-candidate-detail {
  min-width: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.internal-candidate-detail > summary {
  min-height: 50px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  list-style: none;
}

.internal-candidate-detail > summary::-webkit-details-marker {
  display: none;
}

.internal-candidate-detail > summary::before {
  content: "+";
  color: var(--green-dark);
  font-size: 17px;
  line-height: 1;
}

.internal-candidate-detail[open] > summary::before {
  content: "−";
}

.internal-candidate-detail > summary > span {
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
}

.internal-identity-grid {
  margin: 0;
  padding: 0 18px 18px;
  display: grid;
  gap: 8px;
}

.internal-identity-grid > div {
  min-width: 0;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2, #f7f8f5);
}

.internal-evidence-grid {
  padding: 0 18px 18px;
  display: grid;
  gap: 9px;
}

.internal-evidence-card {
  min-width: 0;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2, #f7f8f5);
}

.internal-evidence-card.is-conflict {
  border-color: #e6bcb7;
  background: var(--danger-soft);
}

.internal-evidence-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.internal-evidence-card__heading > b {
  font-size: 11px;
  line-height: 1.4;
}

.internal-evidence-card > p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.internal-evidence-card > dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.internal-evidence-card > dl > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.internal-evidence-card > a {
  width: fit-content;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 790;
}

.internal-media-grid {
  padding: 0 18px 18px;
  display: grid;
  gap: 9px;
}

.internal-media-grid figure {
  min-width: 0;
  margin: 0;
  padding: 9px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2, #f7f8f5);
}

.internal-media-grid img,
.internal-media-placeholder {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(145deg, #eef4ff, var(--lime-soft));
  object-fit: contain;
}

.internal-media-grid figcaption,
.internal-media-grid figcaption > b,
.internal-media-grid figcaption > small {
  min-width: 0;
  display: block;
}

.internal-media-grid figcaption > b {
  font-size: 11px;
}

.internal-media-grid figcaption > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.internal-detail-empty {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 11px;
}

.internal-issue-grid {
  display: grid;
}

.internal-issue-grid .internal-candidate-detail ul {
  margin: 0;
  padding: 0 36px 18px 48px;
}

.internal-issue-grid .catalog-record-empty {
  padding: 0 18px 18px;
}

.internal-decision-form {
  padding: 18px;
  display: grid;
  gap: 15px;
  border-top: 1px solid var(--line);
  background: #f7faf5;
}

.internal-decision-form[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

.internal-decision-form__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.internal-decision-form__heading h3,
.internal-decision-form__heading p {
  margin: 0;
}

.internal-decision-form__heading h3 {
  font-size: 16px;
}

.internal-decision-form__heading p {
  max-width: 720px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.internal-decision-form__heading code {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
}

.internal-decision-fields {
  display: grid;
  gap: 13px;
}

.internal-decision-actions {
  display: grid;
  gap: 8px;
}

.internal-decision-record {
  padding: 18px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-2, #f7f8f5);
}

.internal-decision-record > div {
  display: grid;
  gap: 3px;
}

.internal-decision-record > div > span,
.internal-decision-record > div > small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.internal-decision-record > div > b {
  font-size: 17px;
}

.internal-decision-record > dl {
  margin: 0;
  display: grid;
  gap: 9px;
}

.internal-decision-record > dl > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

@media (min-width: 720px) {
  .internal-review-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .internal-review-toolbar {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: end;
  }

  .internal-candidate-card__header {
    padding: 22px;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: center;
  }

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

  .internal-identity-grid > .is-wide {
    grid-column: 1 / -1;
  }

  .internal-evidence-grid,
  .internal-media-grid,
  .internal-issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .internal-issue-grid > .internal-candidate-detail:nth-child(2) {
    border-left: 1px solid var(--line);
  }

  .internal-decision-fields {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  }

  .internal-decision-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .internal-decision-actions .button--danger {
    margin-right: auto;
  }

  .internal-decision-record {
    grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
    align-items: start;
  }

  .internal-decision-record > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .internal-evidence-grid,
  .internal-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
