:root {
  --ink: #161b20;
  --ink-soft: #313a42;
  --muted: #6b737a;
  --line: #d9dfe3;
  --line-strong: #c4ccd2;
  --paper: #f7f8f7;
  --white: #ffffff;
  --surface: #1b2228;
  --surface-soft: #252e35;
  --orange: #fa4c09;
  --orange-hover: #de3f02;
  --orange-soft: #fff0e9;
  --green: #168a5a;
  --green-soft: #e9f8ef;
  --blue: #246fe5;
  --blue-soft: #eaf2ff;
  --red: #c84040;
  --red-soft: #fff0f0;
  --yellow: #a86e00;
  --yellow-soft: #fff5d9;
  --shadow: 0 10px 26px rgba(22, 27, 32, 0.08);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

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

[hidden] {
  display: none !important;
}

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

.brand-mark {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "Montserrat", var(--font-display), sans-serif;
  font-size: 1.63rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark__start {
  color: currentColor;
}

.brand-mark__deliv {
  color: var(--orange);
}

.brand-mark--compact {
  font-size: 1.36rem;
}

.landing-nav .brand-mark,
.auth-brand-panel .brand-mark,
.sidebar .brand-mark,
.landing-footer .brand-mark {
  color: #fff;
}

.prototype-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 5px;
  letter-spacing: 0.02em;
  padding: 6px 10px;
}

.prototype-chip--light {
  background: var(--orange-soft);
  border-color: #ffcdb9;
  color: #963104;
}

.icon-button,
.btn {
  align-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease,
    color 160ms ease, transform 160ms ease;
}

.btn {
  padding: 0 16px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn svg,
.icon-button svg,
.nav-item svg,
.status-icon svg {
  height: 18px;
  stroke-width: 2;
  width: 18px;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--orange-hover);
  box-shadow: 0 7px 16px rgba(250, 76, 9, 0.25);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover:not(:disabled) {
  background: #000;
}

.btn--secondary {
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn--secondary:hover:not(:disabled) {
  background: #f3f5f6;
  border-color: #aeb8bf;
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn--ghost:hover:not(:disabled) {
  background: #edf0f1;
}

.btn--danger {
  background: var(--red);
  color: #fff;
}

.btn--success {
  background: var(--green);
  color: #fff;
}

.btn--small {
  font-size: 0.85rem;
  min-height: 34px;
  padding: 0 11px;
}

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

.icon-button {
  background: transparent;
  color: var(--ink-soft);
  height: 38px;
  padding: 0;
  width: 38px;
}

.icon-button:hover {
  background: #e9edef;
  color: var(--ink);
}

.icon-button--line {
  border: 1px solid var(--line);
}

.icon-button--dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.icon-button--dark:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.inline-link {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  color: var(--orange);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.page-subtitle {
  color: var(--muted);
  margin: 5px 0 0;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.34rem;
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0;
}

.helper {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 0;
}

.tag,
.status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 5px;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.tag--orange,
.status-pill--new {
  background: var(--orange-soft);
  color: #a13205;
}

.tag--green,
.status-pill--done {
  background: var(--green-soft);
  color: #116541;
}

.tag--blue,
.status-pill--making {
  background: var(--blue-soft);
  color: #1751aa;
}

.tag--yellow,
.status-pill--delivery {
  background: var(--yellow-soft);
  color: #885800;
}

.tag--gray,
.status-pill--neutral {
  background: #edf0f1;
  color: #536069;
}

.alert {
  align-items: flex-start;
  border: 1px solid;
  border-radius: var(--radius-sm);
  display: flex;
  font-size: 0.9rem;
  gap: 10px;
  line-height: 1.4;
  padding: 12px;
}

.alert svg {
  flex: 0 0 auto;
  height: 19px;
  margin-top: 1px;
  width: 19px;
}

.alert strong,
.alert p {
  display: block;
  margin: 0;
}

.alert p + p,
.alert strong + p {
  margin-top: 2px;
}

.alert--warning {
  background: var(--yellow-soft);
  border-color: #f0d887;
  color: #765000;
}

.alert--success {
  background: var(--green-soft);
  border-color: #b5e6c9;
  color: #155f40;
}

.alert--error {
  background: var(--red-soft);
  border-color: #f4c6c6;
  color: #9a2929;
}

.alert--info {
  background: var(--blue-soft);
  border-color: #c8dcff;
  color: #1e56ad;
}

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

.field__label {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.field__label span {
  color: var(--muted);
  font-weight: 500;
}

.field__input,
.field__select,
.field__textarea {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  min-height: 42px;
  outline: none;
  padding: 0 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}

.field__textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(250, 76, 9, 0.13);
}

.field--error .field__input,
.field--error .field__select,
.field--error .field__textarea {
  border-color: var(--red);
}

.field__error {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
}

.password-meter {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-top: -6px;
}

.password-meter__bars {
  display: grid;
  flex: 1;
  gap: 4px;
  grid-template-columns: repeat(4, 1fr);
}

.password-meter__bars span {
  background: #e2e6e8;
  border-radius: 999px;
  height: 4px;
  transition: background 150ms ease;
}

.password-meter[data-score="1"] .password-meter__bars span.is-active {
  background: #db3a34;
}

.password-meter[data-score="2"] .password-meter__bars span.is-active {
  background: #d89300;
}

.password-meter[data-score="3"] .password-meter__bars span.is-active,
.password-meter[data-score="4"] .password-meter__bars span.is-active {
  background: var(--green);
}

.password-meter__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 88px;
  text-align: right;
}

.input-prefix {
  align-items: center;
  background: #f2f4f5;
  border: 1px solid var(--line-strong);
  border-radius: 6px 0 0 6px;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  min-height: 42px;
  padding: 0 10px;
}

.input-group {
  display: flex;
}

.input-group .field__input {
  border-radius: 0 6px 6px 0;
  min-width: 0;
}

.switch {
  align-items: center;
  background: #c9d0d4;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  height: 26px;
  padding: 3px;
  transition: background 150ms ease;
  width: 46px;
}

.switch span {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: block;
  height: 20px;
  transform: translateX(0);
  transition: transform 150ms ease;
  width: 20px;
}

.switch[aria-checked="true"] {
  background: var(--green);
}

.switch[aria-checked="true"] span {
  transform: translateX(20px);
}

.check-row {
  align-items: center;
  display: flex;
  gap: 9px;
}

.promotion-active-row {
  margin-top: 10px;
}

.check-row input {
  accent-color: var(--orange);
  height: 18px;
  margin: 0;
  width: 18px;
}

.check-row label {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Landing */
.landing {
  background: var(--paper);
  min-height: 100vh;
}

.landing-nav {
  align-items: center;
  background: var(--surface);
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
}

.landing-nav__links {
  align-items: center;
  color: #e9edef;
  display: flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 24px;
}

.landing-nav__links a:hover {
  color: #fff;
}

.landing-nav__actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.landing-nav__login {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 12px;
}

.landing-nav__login:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero {
  background: var(--surface);
  color: #fff;
  overflow: hidden;
  padding: 64px max(22px, calc((100vw - 1180px) / 2)) 76px;
}

.hero__grid {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  margin: 0 auto;
  max-width: 1180px;
}

.hero__copy {
  max-width: 610px;
}

.hero__eyebrow {
  color: #ffb28e;
  display: inline-flex;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5.4vw, 4.45rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 18px 0;
}

.hero h1 em {
  color: #ff6b34;
  font-style: normal;
}

.hero__copy > p {
  color: #c8d0d4;
  font-size: 1.1rem;
  line-height: 1.58;
  margin: 0;
  max-width: 540px;
}

.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__actions .btn {
  min-height: 48px;
}

.hero__trust {
  align-items: center;
  color: #aeb8be;
  display: flex;
  font-size: 0.83rem;
  gap: 9px;
  margin: 18px 0 0;
}

.hero__trust svg {
  color: #70d7a3;
  height: 17px;
  width: 17px;
}

.hero-phone-wrap {
  justify-self: end;
  position: relative;
  width: min(100%, 420px);
}

.hero-phone-wrap::before {
  background: var(--orange);
  content: "";
  height: 350px;
  position: absolute;
  right: -46px;
  top: 34px;
  transform: rotate(8deg);
  width: 350px;
  z-index: 0;
}

.phone-frame {
  background: #0d1114;
  border: 7px solid #2b3339;
  border-radius: 34px;
  box-shadow: 0 28px 44px rgba(0, 0, 0, 0.34);
  min-height: 620px;
  overflow: hidden;
  padding: 9px;
  position: relative;
  transform: rotate(3deg);
  z-index: 1;
}

.phone-frame__notch {
  background: #2b3339;
  border-radius: 0 0 10px 10px;
  height: 18px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 108px;
  z-index: 3;
}

.phone-menu-sample {
  background: #f8f5f1;
  border-radius: 21px;
  color: var(--ink);
  min-height: 596px;
  overflow: hidden;
}

.sample-cover {
  background-image: url("assets/restaurant-cover.jpg");
  background-position: center;
  background-size: cover;
  height: 135px;
  padding: 18px;
  position: relative;
}

.sample-cover::after {
  background: rgba(0, 0, 0, 0.42);
  content: "";
  inset: 0;
  position: absolute;
}

.sample-cover > * {
  position: relative;
  z-index: 1;
}

.sample-cover__top {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 0.65rem;
  font-weight: 700;
  justify-content: space-between;
}

.sample-cover__name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 40px 0 0;
}

.sample-cover__open {
  color: #d2ffe7;
  font-size: 0.68rem;
  font-weight: 700;
  margin: 2px 0 0;
}

.sample-content {
  padding: 17px 14px 24px;
}

.sample-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 17px;
  overflow: hidden;
}

.sample-tabs span {
  color: #737c82;
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 700;
  padding-bottom: 6px;
}

.sample-tabs span:first-child {
  border-bottom: 2px solid var(--orange);
  color: var(--ink);
}

.sample-item {
  align-items: center;
  border-bottom: 1px solid #e4e6e5;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 79px;
  padding: 0 0 12px;
}

.sample-item + .sample-item {
  padding-top: 12px;
}

.sample-item__name {
  font-size: 0.82rem;
  font-weight: 800;
}

.sample-item__description {
  color: #727b81;
  font-size: 0.63rem;
  line-height: 1.35;
  margin-top: 4px;
}

.sample-item__price {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 8px;
}

.sample-item__photo {
  background-image: url("assets/restaurant-cover.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 6px;
  height: 70px;
}

.sample-item__photo--two {
  filter: saturate(0.65) contrast(1.1);
}

.landing-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 94px 22px;
}

.landing-section__head {
  max-width: 620px;
}

.landing-section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  letter-spacing: 0;
  line-height: 1.15;
  margin: 10px 0;
}

.landing-section__head p {
  color: var(--muted);
  line-height: 1.56;
  margin: 0;
}

.steps-grid {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
}

.step {
  border-top: 2px solid var(--line);
  padding-top: 18px;
}

.step::before {
  color: var(--orange);
  content: "0" counter(step);
  counter-increment: step;
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 32px;
}

.step svg {
  color: var(--ink);
  height: 28px;
  width: 28px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 14px 0 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.landing-band {
  background: #e9eeed;
}

.pricing-layout {
  align-items: end;
  display: grid;
  gap: 40px;
  grid-template-columns: 0.9fr 1.1fr;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow);
  max-width: 530px;
  padding: 30px;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.43rem;
  margin: 0;
}

.pricing-card__price {
  align-items: baseline;
  display: flex;
  gap: 6px;
  margin: 18px 0 8px;
}

.pricing-card__price strong {
  font-family: var(--font-display);
  font-size: 2.45rem;
  line-height: 1;
}

.pricing-card__price span {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 21px 0 24px;
  padding: 0;
}

.feature-list li {
  align-items: flex-start;
  color: var(--ink-soft);
  display: flex;
  font-size: 0.93rem;
  gap: 9px;
  line-height: 1.4;
}

.feature-list svg {
  color: var(--green);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.landing-quote {
  border-left: 2px solid var(--orange);
  padding: 0 0 0 21px;
}

.landing-quote p {
  font-family: var(--font-display);
  font-size: 1.34rem;
  line-height: 1.43;
  margin: 0;
}

.landing-quote footer {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
}

.difference-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.difference {
  background: var(--white);
  min-height: 220px;
  padding: 25px;
}

.difference svg {
  color: var(--orange);
  height: 25px;
  width: 25px;
}

.difference h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 28px 0 7px;
}

.difference p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.landing-final {
  background: var(--orange);
  color: #fff;
  padding: 70px 22px;
  text-align: center;
}

.landing-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin: 0;
}

.landing-final p {
  color: #fff2ed;
  margin: 12px auto 23px;
  max-width: 540px;
}

.landing-final .btn {
  background: var(--white);
  color: var(--ink);
  min-height: 48px;
}

.landing-footer {
  align-items: center;
  background: #11161b;
  color: #aeb7bc;
  display: flex;
  font-size: 0.8rem;
  justify-content: space-between;
  padding: 23px max(22px, calc((100vw - 1180px) / 2));
}

/* Authentication */
.auth-page {
  background: #f0f3f2;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 26px;
}

.auth-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  max-width: 1020px;
  min-height: 640px;
  width: 100%;
}

.auth-brand-panel {
  background: var(--surface);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 35px;
}

.auth-brand-panel h1 {
  font-family: var(--font-display);
  font-size: 2.08rem;
  line-height: 1.18;
  margin: 0;
}

.auth-brand-panel h1 span {
  color: #ff794b;
}

.auth-brand-panel p {
  color: #bcc5c9;
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 290px;
}

.auth-benefits {
  display: grid;
  gap: 17px;
}

.auth-benefit {
  align-items: center;
  color: #d8dee0;
  display: flex;
  font-size: 0.87rem;
  gap: 10px;
}

.auth-benefit svg {
  color: #ff7e50;
  height: 18px;
  width: 18px;
}

.auth-card {
  background: var(--white);
  padding: 44px clamp(26px, 6vw, 70px);
}

.auth-card__back {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 36px;
}

.auth-card__back:hover {
  color: var(--ink);
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.78rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.auth-card__intro {
  color: var(--muted);
  line-height: 1.45;
  margin: 8px 0 26px;
}

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

.auth-form__foot {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 2px 0 0;
}

.auth-form__switch {
  color: var(--muted);
  font-size: 0.89rem;
  margin: 3px 0 0;
  text-align: center;
}

.auth-state {
  align-items: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 45px 0 6px;
  text-align: center;
}

.auth-state__icon {
  align-items: center;
  background: var(--green-soft);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  height: 66px;
  justify-content: center;
  width: 66px;
}

.auth-state__icon--warning {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.auth-state__icon--error {
  background: var(--red-soft);
  color: var(--red);
}

.auth-state__icon svg {
  height: 31px;
  width: 31px;
}

.auth-state h2 {
  font-size: 1.5rem;
}

.auth-state p {
  color: var(--muted);
  line-height: 1.5;
  margin: -7px 0 5px;
  max-width: 340px;
}

.auth-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.auth-recovery-actions > .btn {
  flex: 1 1 190px;
  justify-content: center;
  max-width: 280px;
}

@media (max-width: 480px) {
  .auth-recovery-actions {
    flex-direction: column;
  }

  .auth-recovery-actions > .btn {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }
}

/* Onboarding */
.onboarding {
  background: #f4f6f5;
  min-height: 100vh;
}

.onboarding-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 max(22px, calc((100vw - 1080px) / 2));
}

.onboarding-header__right {
  align-items: center;
  display: flex;
  gap: 13px;
}

.onboarding-header__right span {
  color: var(--muted);
  font-size: 0.83rem;
}

.onboarding-body {
  margin: 0 auto;
  max-width: 870px;
  padding: 48px 22px 90px;
}

.progress-steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto 47px;
  max-width: 650px;
}

.progress-step {
  color: #9ca6ac;
  font-size: 0.73rem;
  font-weight: 700;
  position: relative;
  text-align: center;
}

.progress-step::before {
  background: #d6dcdf;
  border: 3px solid #f4f6f5;
  border-radius: 50%;
  content: "";
  display: block;
  height: 15px;
  margin: 0 auto 8px;
  position: relative;
  width: 15px;
  z-index: 1;
}

.progress-step::after {
  background: #d6dcdf;
  content: "";
  height: 2px;
  left: -50%;
  position: absolute;
  top: 7px;
  width: 100%;
  z-index: 0;
}

.progress-step:first-child::after {
  display: none;
}

.progress-step.is-active,
.progress-step.is-done {
  color: var(--ink);
}

.progress-step.is-active::before,
.progress-step.is-done::before {
  background: var(--orange);
}

.progress-step.is-done::after,
.progress-step.is-active::after {
  background: var(--orange);
}

.onboarding-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 700px;
  padding: clamp(24px, 4vw, 42px);
}

.onboarding-panel__head {
  margin-bottom: 29px;
}

.onboarding-panel__head h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.onboarding-panel__head p {
  color: var(--muted);
  line-height: 1.48;
  margin: 8px 0 0;
}

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

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

.onboarding-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 27px;
}

.onboarding-actions__right {
  align-items: center;
  display: flex;
  gap: 10px;
}

.logo-uploader {
  align-items: center;
  background: #f7f9f8;
  border: 1px dashed #bac4c9;
  display: flex;
  gap: 15px;
  min-height: 100px;
  padding: 14px;
}

.logo-uploader__preview {
  align-items: center;
  background: var(--surface);
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  height: 66px;
  justify-content: center;
  width: 66px;
}

.logo-uploader__preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.logo-uploader__choose {
  cursor: pointer;
  display: inline-flex;
  margin-top: 9px;
}

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

.helper--success {
  color: #14704c;
}

.logo-uploader strong {
  display: block;
  font-size: 0.9rem;
}

.logo-uploader p {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.35;
  margin: 4px 0 0;
}

.slug-preview {
  align-items: center;
  background: var(--orange-soft);
  border: 1px solid #ffcfba;
  color: #933104;
  display: flex;
  font-size: 0.88rem;
  gap: 8px;
  padding: 10px 12px;
}

.hours-list {
  border-top: 1px solid var(--line);
}

.hours-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 11px;
  grid-template-columns: 112px 1fr 1fr auto;
  min-height: 57px;
}

.hours-row__day {
  font-size: 0.9rem;
  font-weight: 700;
}

.hours-row .field__input {
  min-height: 35px;
}

.onboarding-done {
  align-items: center;
  display: grid;
  justify-items: center;
  padding: 23px 0 2px;
  text-align: center;
}

.onboarding-done__circle {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #bce7ce;
  border-radius: 50%;
  color: var(--green);
  display: flex;
  height: 82px;
  justify-content: center;
  width: 82px;
}

.onboarding-done__circle svg {
  height: 38px;
  width: 38px;
}

.onboarding-done h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 20px 0 7px;
}

.onboarding-done p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 430px;
}

.onboarding-done__link {
  background: #f5f7f6;
  border: 1px solid var(--line);
  margin: 24px 0;
  padding: 12px;
  width: 100%;
}

.onboarding-done__link strong {
  display: block;
  font-size: 0.88rem;
}

.onboarding-done__link span {
  color: var(--orange);
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 3px;
}

/* App Shell */
.app-shell {
  background: #f5f7f6;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #171d22;
  color: #d2d9dc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px 12px;
  position: sticky;
  top: 0;
}

.sidebar__brand {
  padding: 3px 11px 25px;
}

.sidebar__restaurant {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  display: flex;
  gap: 10px;
  margin: 0 5px 18px;
  padding: 10px;
}

.restaurant-avatar {
  align-items: center;
  background: #fff0e9;
  border-radius: var(--radius-sm);
  color: #a43405;
  display: flex;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.restaurant-avatar.has-image {
  background: #20282d;
  overflow: hidden;
}

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

.sidebar__restaurant strong {
  color: #fff;
  display: block;
  font-size: 0.82rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__restaurant span {
  color: #9ba6ac;
  display: block;
  font-size: 0.69rem;
  margin-top: 2px;
}

.sidebar-nav {
  display: grid;
  gap: 2px;
}

.nav-group-label {
  color: #7e8b91;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 13px 11px 5px;
  text-transform: uppercase;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: #c2cbd0;
  display: flex;
  font-size: 0.84rem;
  font-weight: 600;
  gap: 10px;
  min-height: 39px;
  padding: 0 11px;
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-item.is-active {
  background: var(--orange);
  color: #fff;
}

.nav-item__count {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: var(--orange);
  display: inline-flex;
  font-size: 0.68rem;
  height: 18px;
  justify-content: center;
  margin-left: auto;
  min-width: 18px;
  padding: 0 5px;
}

.sidebar__bottom {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 16px 5px 0;
}

.sidebar__link {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #aeb8bd;
  display: flex;
  font-size: 0.79rem;
  font-weight: 700;
  gap: 9px;
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

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

.app-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 65px;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-topbar__left,
.app-topbar__right {
  align-items: center;
  display: flex;
  gap: 12px;
}

.app-topbar__mobile-brand {
  display: none;
}

.save-indicator {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 6px;
}

.save-indicator svg {
  color: var(--green);
  height: 16px;
  width: 16px;
}

.save-indicator.is-offline {
  color: #966200;
}

.save-indicator.is-offline svg {
  color: var(--yellow);
}

.save-indicator.is-error,
.save-indicator.is-error svg {
  color: var(--red);
}

.restaurant-status {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #c4ead5;
  border-radius: var(--radius-sm);
  color: #116744;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 7px;
  min-height: 34px;
  padding: 0 9px;
}

.restaurant-status__dot {
  background: var(--green);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.restaurant-status.is-closed {
  background: var(--red-soft);
  border-color: #f0c6c6;
  color: #972c2c;
}

.restaurant-status.is-closed .restaurant-status__dot {
  background: var(--red);
}

.app-content {
  margin: 0 auto;
  max-width: 1420px;
  padding: 31px 30px 60px;
}

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

.page-head__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-height: 133px;
  padding: 18px;
}

.metric-card__head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 7px;
  justify-content: space-between;
}

.metric-card__head svg {
  color: #78838a;
  height: 17px;
  width: 17px;
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  margin-top: 18px;
}

.metric-card__change {
  color: var(--green);
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 5px;
}

.metric-card__change--neutral {
  color: var(--muted);
}

.dashboard-columns {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.85fr);
  margin-top: 21px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.panel__head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 18px;
}

.panel__head h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
}

.panel__head p {
  color: var(--muted);
  font-size: 0.79rem;
  margin: 2px 0 0;
}

.panel__body {
  padding: 18px;
}

.order-mini-list {
  display: grid;
}

.order-mini {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e8ecee;
  color: var(--ink);
  display: grid;
  gap: 11px;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  padding: 13px 18px;
  text-align: left;
  width: 100%;
}

.order-mini:last-child {
  border-bottom: 0;
}

.order-mini:hover {
  background: #f8faf9;
}

.order-mini__id {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.order-mini strong {
  display: block;
  font-size: 0.86rem;
}

.order-mini span:not(.status-pill) {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  margin-top: 3px;
}

.panel-link-row {
  align-items: center;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  font-size: 0.83rem;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
  padding: 14px 18px;
  text-align: left;
  width: 100%;
}

.panel-link-row:hover {
  background: #f7f9f8;
  color: var(--orange);
}

.quick-actions {
  display: grid;
  gap: 1px;
}

.quick-action {
  align-items: center;
  background: #f8faf9;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr auto;
  padding: 15px 14px;
  text-align: left;
  width: 100%;
}

.quick-action:hover {
  background: #eef2f1;
}

.quick-action__icon {
  align-items: center;
  background: var(--orange-soft);
  border-radius: 5px;
  color: var(--orange);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.quick-action__icon svg {
  height: 18px;
  width: 18px;
}

.quick-action strong {
  display: block;
  font-size: 0.85rem;
}

.quick-action span:not(.quick-action__icon) {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  margin-top: 2px;
}

.quick-action > svg {
  color: var(--muted);
  height: 17px;
  width: 17px;
}

.preview-card {
  background: #1b2228;
  border-radius: var(--radius-md);
  color: #fff;
  margin-top: 20px;
  overflow: hidden;
  padding: 19px;
}

.preview-card__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-card__top h2 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin: 0;
}

.preview-card__top .btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.preview-card__menu-link {
  color: #ff9a73;
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-card > p {
  color: #c4cdd3;
  font-size: 0.82rem;
  margin: 12px 0 0;
}

/* Menu manager */
.manager-layout {
  align-items: start;
  display: grid;
  gap: 23px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

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

.manager-toolbar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 11px;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 11px 13px;
}

.manager-toolbar__left,
.manager-toolbar__right {
  align-items: center;
  display: flex;
  gap: 8px;
}

.manager-toolbar__hint {
  color: var(--muted);
  font-size: 0.79rem;
}

.category-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.category-block__head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 59px;
  padding: 0 13px;
}

.drag-handle {
  color: #9da7ad;
  cursor: grab;
}

.drag-handle svg {
  height: 18px;
  width: 18px;
}

.category-block__title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-block__title h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
}

.category-block__actions {
  align-items: center;
  display: flex;
  gap: 2px;
}

.item-list {
  display: grid;
}

.menu-item-row {
  align-items: center;
  border-bottom: 1px solid #e8ecee;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 66px minmax(140px, 1fr) 115px 96px auto;
  min-height: 85px;
  padding: 9px 13px;
}

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

.menu-item-row.is-paused {
  background: #fbfcfc;
}

.menu-item-row.is-paused .item-row__details {
  opacity: 0.55;
}

.item-row__photo {
  background: #edf1f2;
  border-radius: var(--radius-sm);
  height: 61px;
  position: relative;
  width: 66px;
}

.item-row__photo-image,
.preview-mini-item__image,
.public-item__image,
.cart-item__image,
.photo-upload__image,
.product-photo-editor__image,
.item-drawer__image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.item-row__photo-image,
.preview-mini-item__image,
.public-item__image,
.cart-item__image,
.photo-upload__image,
.product-photo-editor__image,
.item-drawer__image {
  border-radius: inherit;
}

.product-image-placeholder {
  align-items: center;
  background: #edf1f2;
  color: #849097;
  display: flex;
  justify-content: center;
}

.product-image-placeholder svg {
  height: 24px;
  width: 24px;
}

.item-row__photo-image {
  position: absolute;
  inset: 0;
}

.item-row__photo button {
  align-items: center;
  background: rgba(22, 27, 32, 0.71);
  border: 0;
  border-radius: 6px;
  bottom: 4px;
  color: #fff;
  display: flex;
  height: 23px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 4px;
  width: 23px;
}

.item-row__photo button svg {
  height: 13px;
  width: 13px;
}

.item-row__details strong {
  display: block;
  font-size: 0.88rem;
}

.item-row__details p {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.75rem;
  line-height: 1.35;
  margin: 3px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-row__meta {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 5px;
}

.price-quick-edit {
  align-items: center;
  background: #f6f8f8;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: flex;
  height: 35px;
  padding: 0 7px;
}

.price-quick-edit:focus-within {
  background: #fff;
  border-color: var(--orange);
}

.price-quick-edit span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.price-quick-edit input {
  background: transparent;
  border: 0;
  font-size: 0.83rem;
  font-weight: 800;
  min-width: 0;
  outline: 0;
  padding: 0 0 0 4px;
  width: 100%;
}

.item-row__status {
  align-items: flex-start;
  display: grid;
  gap: 5px;
}

.item-row__status span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
}

.item-row__buttons {
  align-items: center;
  display: flex;
  gap: 1px;
}

.category-add-row {
  background: #fbfcfc;
  border-top: 1px solid var(--line);
  padding: 10px 13px;
}

.menu-preview-sticky {
  position: sticky;
  top: 87px;
}

.phone-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  margin: 0 auto;
  max-width: none;
  overflow: hidden;
  padding: 0;
}

.phone-preview__inside {
  background: #faf7f3;
  border-radius: 17px;
  min-height: 500px;
  overflow: hidden;
}

.phone-preview__banner {
  background-color: #263238;
  color: #fff;
  height: 120px;
  padding: 12px;
  position: relative;
}

.phone-preview__banner::after {
  background: rgba(0, 0, 0, 0.43);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.phone-preview__cover {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.phone-preview__banner > :not(.phone-preview__cover) {
  position: relative;
  z-index: 2;
}

.phone-preview__banner p {
  font-size: 0.61rem;
  margin: 49px 0 0;
}

.phone-preview__banner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-top: 2px;
}

.phone-preview__content {
  padding: 12px;
}

.phone-preview__tabs {
  display: flex;
  gap: 9px;
  overflow: hidden;
}

.phone-preview__tabs span {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.6rem;
  font-weight: 800;
  padding-bottom: 7px;
}

.phone-preview__tabs span:first-child {
  border-color: var(--orange);
  color: var(--ink);
}

.preview-mini-item {
  align-items: center;
  border-top: 1px solid #e7e6e3;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 53px;
  padding: 9px 0;
}

.preview-mini-item:first-of-type {
  margin-top: 7px;
}

.preview-mini-item strong {
  display: block;
  font-size: 0.67rem;
}

.preview-mini-item span {
  color: var(--orange);
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  margin-top: 3px;
}

.preview-mini-item__photo {
  background-color: #edf1f2;
  border-radius: 4px;
  height: 48px;
}

.preview-mini-item__image {
  border-radius: 4px;
}

.preview-callout {
  background: var(--orange-soft);
  border: 1px solid #ffd2bf;
  border-radius: var(--radius-sm);
  color: #943104;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: 14px;
  padding: 10px;
}

/* Orders */
.filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.filter-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.orders-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: auto;
}

.orders-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.orders-table th {
  background: #fafbfb;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 15px;
  text-align: left;
  text-transform: uppercase;
}

.orders-table td {
  border-bottom: 1px solid #e9edef;
  font-size: 0.84rem;
  padding: 14px 15px;
  vertical-align: middle;
}

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

.orders-table tr:hover td {
  background: #fbfcfc;
}

.orders-table__customer strong {
  display: block;
}

.orders-table__customer span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  margin-top: 3px;
}

.orders-table__number {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.status-select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 700;
  min-height: 32px;
  padding: 0 8px;
}

.empty-state {
  align-items: center;
  background: #fff;
  border: 1px dashed #bfc8cd;
  border-radius: var(--radius-md);
  display: grid;
  justify-items: center;
  min-height: 300px;
  padding: 35px;
  text-align: center;
}

.empty-state__icon {
  align-items: center;
  background: #f0f3f3;
  border-radius: 50%;
  color: #77828a;
  display: flex;
  height: 57px;
  justify-content: center;
  width: 57px;
}

.empty-state__icon svg {
  height: 27px;
  width: 27px;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  margin: 15px 0 5px;
}

.empty-state p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  max-width: 360px;
}

/* Settings, promo, metrics */
.settings-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 310px;
}

.metrics-controls {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.metrics-period-control {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.metrics-period-control span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.metrics-period-control select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  min-height: 38px;
  padding: 0 10px;
}

.metrics-grid {
  grid-template-columns: minmax(0, 360px);
}

.metrics-status-panel {
  align-items: center;
  display: flex;
  gap: 13px;
  min-height: 142px;
  padding: 24px;
}

.metrics-status-panel__icon,
.metrics-definition__icon {
  align-items: center;
  background: var(--orange-soft);
  border-radius: 50%;
  color: var(--orange);
  display: flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.metrics-status-panel__icon svg {
  animation: spin 900ms linear infinite;
  height: 19px;
  width: 19px;
}

.metrics-status-panel h2,
.metrics-definition h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
}

.metrics-status-panel p,
.metrics-definition p {
  color: var(--muted);
  line-height: 1.5;
  margin: 5px 0 0;
}

.metrics-state {
  margin-top: 18px;
}

.metrics-definition {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 20px;
}

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

.metrics-charts {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  margin-top: 18px;
}

.chart-panel__head p {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 4px 0 0;
}

.order-trend-chart {
  gap: 10px;
  overflow-x: auto;
}

.order-trend-chart .bar-chart__item {
  min-width: 28px;
}

.metrics-chart-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  justify-content: center;
  min-height: 120px;
  width: 100%;
}

.status-metrics {
  display: grid;
  gap: 15px;
}

.status-metric-row {
  display: grid;
  gap: 7px;
}

.status-metric-row > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.status-metric-track {
  background: #edf0f1;
  height: 7px;
  overflow: hidden;
}

.status-metric-track span {
  background: var(--orange);
  display: block;
  height: 100%;
  min-width: 2px;
}

.metrics-top-products {
  margin-top: 18px;
}

.order-detail-items {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.order-detail-items li,
.order-detail-totals span {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.order-detail-totals {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
}

.empty-state--compact {
  min-height: 170px;
  padding: 24px;
}

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

.settings-stack {
  display: grid;
  gap: 18px;
}

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 21px;
}

.form-panel__head {
  margin-bottom: 20px;
}

.form-panel__head h2 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  margin: 0;
}

.form-panel__head p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 5px 0 0;
}

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

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

.form-panel__footer {
  align-items: center;
  background: #fbfcfc;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin: 21px -21px -21px;
  padding: 14px 21px;
}

.brand-profile-preview,
.brand-public-preview {
  background-color: #20282d;
  border-radius: var(--radius-sm);
  min-height: 166px;
  overflow: hidden;
  position: relative;
}

.brand-profile-preview {
  margin-bottom: 20px;
}

.brand-profile-preview__cover,
.brand-public-preview__cover,
.brand-media-card__cover {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.brand-profile-preview__shade,
.brand-public-preview__shade {
  background: rgba(10, 14, 17, 0.5);
  inset: 0;
  position: absolute;
  z-index: 1;
}

.brand-profile-preview__identity,
.brand-public-preview__identity {
  align-items: center;
  bottom: 17px;
  color: #fff;
  display: flex;
  gap: 11px;
  left: 17px;
  position: absolute;
  right: 17px;
  z-index: 2;
}

.brand-profile-preview__identity strong,
.brand-public-preview__identity strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.brand-profile-preview__identity span,
.brand-public-preview__identity span {
  color: #dff7e9;
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 3px;
}

.brand-profile-preview__avatar,
.brand-public-preview__avatar {
  align-items: center;
  background: #fff0e9;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-sm);
  color: #a43405;
  display: flex;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.brand-profile-preview__avatar.has-image,
.brand-public-preview__avatar.has-image {
  background: #20282d;
}

.brand-profile-preview__avatar img,
.brand-public-preview__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

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

.brand-media-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.brand-media-card__preview {
  align-items: center;
  background: #eef2f1;
  display: flex;
  height: 112px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.brand-media-card__preview--cover {
  background-color: #edf1f2;
}

.brand-media-card__avatar {
  align-items: center;
  background: #fff0e9;
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgba(19, 29, 35, 0.16);
  color: #a43405;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  height: 66px;
  justify-content: center;
  overflow: hidden;
  width: 66px;
}

.brand-media-card__avatar.has-image {
  background: #20282d;
}

.brand-media-card__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand-media-card__content {
  padding: 14px;
}

.brand-media-card__content strong {
  color: var(--ink);
  display: block;
  font-size: 0.89rem;
}

.brand-media-card__content p {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
  margin: 5px 0 12px;
  min-height: 45px;
}

.brand-media-card__content small {
  color: var(--muted);
  display: block;
  font-size: 0.69rem;
  margin-top: 10px;
}

.brand-media-card__actions {
  align-items: center;
  display: flex;
  gap: 7px;
}

.brand-media-upload {
  cursor: pointer;
  position: relative;
}

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

.brand-public-preview {
  margin-bottom: 14px;
  min-height: 184px;
}

.brand-public-preview__top {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 0.74rem;
  font-weight: 700;
  gap: 5px;
  left: 14px;
  position: absolute;
  top: 14px;
  z-index: 2;
}

.brand-public-preview__top svg {
  height: 16px;
  width: 16px;
}

.aside-note {
  background: #eef2f1;
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 15px;
}

.aside-note strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.promo-list {
  display: grid;
}

.promo-row {
  align-items: center;
  border-bottom: 1px solid #e7ebed;
  display: grid;
  gap: 14px;
  grid-template-columns: 58px minmax(0, 1fr) 145px auto;
  padding: 14px 18px;
}

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

.promo-row__photo {
  background-color: #edf1f2;
  border-radius: var(--radius-sm);
  height: 50px;
  width: 58px;
}

.promo-row strong {
  display: block;
  font-size: 0.88rem;
}

.promo-row p {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 3px 0 0;
}

.promo-row__actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}

.promo-base-price {
  align-self: stretch;
  justify-content: center;
}

.promo-base-price span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.promotion-date-hint {
  margin: 10px 0 0;
}

.share-url--unavailable {
  color: var(--muted);
}

.promo-price del {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
}

.promo-price strong {
  color: var(--orange);
  font-size: 0.94rem;
}

.chart-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 21px;
}

.chart-panel__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.chart-panel__head h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
}

.bar-chart {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  height: 220px;
  padding: 0 6px;
}

.bar-chart__item {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  justify-content: end;
}

.bar-chart__bar {
  background: var(--orange);
  min-height: 10px;
  transition: height 300ms ease;
  width: 100%;
}

.bar-chart__item strong {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.bar-chart__item span {
  color: var(--muted);
  font-size: 0.68rem;
  margin-bottom: 8px;
}

.top-items {
  display: grid;
}

.top-item {
  align-items: center;
  border-bottom: 1px solid #e7ebed;
  display: grid;
  gap: 11px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  padding: 12px 0;
}

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

.top-item__rank {
  align-items: center;
  background: #eef1f2;
  border-radius: 50%;
  color: var(--ink-soft);
  display: flex;
  flex: 0 0 24px;
  font-size: 0.72rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  width: 24px;
}

.top-item strong {
  display: block;
  font-size: 0.84rem;
}

.top-item > span:not(.top-item__rank) {
  color: var(--muted);
  display: block;
  font-size: 0.71rem;
  margin-top: 2px;
}

.top-item b {
  font-size: 0.85rem;
}

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

.link-share > * {
  min-width: 0;
}

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

.link-share__actions > .btn {
  flex: 1 1 145px;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

.share-url {
  align-items: center;
  background: #f6f8f8;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 9px;
  min-height: 50px;
  padding: 7px 7px 7px 13px;
}

.share-url span {
  color: var(--ink-soft);
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-width: 0;
  padding: 22px;
}

.qr-code {
  align-items: center;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  height: 194px;
  justify-self: center;
  justify-content: center;
  margin-inline: auto;
  padding: 9px;
  width: 194px;
}

.qr-code img,
.qr-code canvas {
  display: block;
  height: 176px !important;
  image-rendering: pixelated;
  width: 176px !important;
}

.qr-code--unavailable {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.qr-card strong {
  font-size: 0.9rem;
  margin-top: 5px;
}

.qr-card span {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
  text-align: center;
}

.usage-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 21px;
}

.usage-card h2 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0;
}

.usage-card > p {
  color: #c1cbd0;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 7px 0 18px;
}

.usage-number {
  align-items: baseline;
  display: flex;
  gap: 6px;
}

.usage-number strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.usage-number span {
  color: #bdc6cb;
  font-size: 0.84rem;
}

.usage-bar {
  background: #455158;
  border-radius: 999px;
  height: 8px;
  margin: 15px 0 8px;
  overflow: hidden;
}

.usage-bar span {
  background: #ff794b;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.usage-card__foot {
  color: #b7c2c7;
  font-size: 0.76rem;
}

.plan-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 21px;
}

.plan-card__label {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 4px 0 0;
}

.plan-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 5px 0 0;
}

/* Modals and toast */
.modal-backdrop {
  align-items: center;
  background: rgba(14, 18, 22, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 50;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  max-width: 650px;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.modal--small {
  max-width: 455px;
}

.modal__head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 18px;
}

.modal__head h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
}

.modal__body {
  display: grid;
  flex: 1 1 auto;
  gap: 17px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
}

.modal__body .modal__form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.modal__body .modal__form > *,
.modal__body .modal__form .field {
  min-width: 0;
}

.modal__body .check-row label {
  line-height: 1.4;
  min-width: 0;
}

.modal__footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 18px;
}

.modal__footer-spacer {
  flex: 1 1 auto;
}

.modal__footer .btn {
  min-width: 0;
  white-space: normal;
}

.modal__footer--between {
  justify-content: space-between;
}

.add-on-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px;
}

.add-on-group__head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.add-on-group__head strong {
  font-size: 0.88rem;
}

.addon-option {
  align-items: center;
  border-top: 1px solid #edf0f1;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 11px;
  padding-top: 11px;
}

.addon-option > span strong {
  display: block;
  font-size: 0.85rem;
}

.addon-row__actions {
  display: inline-flex;
  gap: 6px;
}

.addon-option .field__input {
  min-height: 34px;
}

.photo-upload {
  align-items: center;
  background: #f5f7f7;
  border: 1px dashed #b6c0c6;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 14px;
  min-height: 109px;
  padding: 13px;
}

.photo-upload__sample {
  background-color: #edf1f2;
  border-radius: var(--radius-sm);
  height: 78px;
  width: 78px;
}

.photo-upload__image {
  border-radius: var(--radius-sm);
}

.product-photo-editor {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
}

.product-photo-editor__preview {
  aspect-ratio: 1;
  background: #edf1f2;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100%;
}

.product-photo-editor__controls p,
.product-photo-editor__controls small {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 6px 0 12px;
}

.product-photo-editor__picker {
  overflow: hidden;
  position: relative;
}

.product-photo-editor__picker input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.photo-upload strong {
  display: block;
  font-size: 0.88rem;
}

.photo-upload p {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.4;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}

.photo-upload > div {
  min-width: 0;
}

.toast-stack {
  bottom: 20px;
  display: grid;
  gap: 9px;
  max-width: min(390px, calc(100vw - 32px));
  pointer-events: none;
  position: fixed;
  right: 20px;
  z-index: 70;
}

.toast {
  align-items: flex-start;
  background: #fff;
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 25px rgba(27, 34, 40, 0.17);
  display: flex;
  gap: 10px;
  padding: 13px;
}

.toast--error {
  border-color: var(--red);
}

.toast--warning {
  border-color: var(--yellow);
}

.toast svg {
  color: var(--green);
  flex: 0 0 auto;
  height: 19px;
  margin-top: 1px;
  width: 19px;
}

.toast--error svg {
  color: var(--red);
}

.toast--warning svg {
  color: var(--yellow);
}

.toast strong {
  display: block;
  font-size: 0.85rem;
}

.toast span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 2px;
}

/* Public customer menu */
.public-menu {
  background: #f8f6f2;
  min-height: 100vh;
  padding: 18px;
}

.public-menu__shell {
  background: #f8f6f2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 560px;
  min-height: calc(100vh - 36px);
  overflow: hidden;
  position: relative;
}

.public-header {
  background-color: #263238;
  color: #fff;
  min-height: 224px;
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.public-header::after {
  background: rgba(10, 14, 17, 0.54);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.public-header__cover {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.public-header > :not(.public-header__cover) {
  position: relative;
  z-index: 2;
}

.public-header__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.public-header__back {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 7px;
  background: transparent;
  border: 0;
  padding: 4px 0;
}

.public-header__back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-header__share {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.public-header__info {
  margin-top: auto;
  max-width: 100%;
  min-width: 0;
}

.public-header__identity {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
}

.public-header__identity > div {
  min-width: 0;
}

.public-header__avatar {
  align-items: center;
  background: #fff0e9;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-sm);
  color: #a43405;
  display: flex;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.public-header__avatar.has-image {
  background: #20282d;
}

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

.public-header__info h1 {
  font-family: var(--font-display);
  font-size: 1.83rem;
  letter-spacing: 0;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.public-header__info p {
  color: #dff7e9;
  font-size: 0.84rem;
  font-weight: 700;
  margin: 5px 0 0;
}

.public-header__info p.is-closed {
  color: #ffdad2;
}

.public-notice {
  background: var(--yellow-soft);
  border-bottom: 1px solid #edd484;
  color: #755000;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 11px 18px;
}

.public-state {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 430px;
  padding: 40px 24px;
  text-align: center;
}

.public-state h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 15px 0 6px;
}

.public-state p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
  margin: 0 0 19px;
  max-width: 280px;
}

.public-notice svg {
  height: 16px;
  margin: -2px 4px 0 0;
  vertical-align: middle;
  width: 16px;
}

.public-notice--blocked {
  align-items: center;
  background: #fdeaea;
  border-bottom: 1px solid #f0b9b9;
  color: #8f1d1d;
  display: flex;
  gap: 8px;
}

.drawer-blocked {
  align-items: center;
  color: #8f1d1d;
  display: flex;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 8px;
  line-height: 1.4;
  padding: 6px 2px;
}

.drawer-blocked svg {
  flex: none;
  height: 18px;
  width: 18px;
}

.public-tabs {
  background: #fff;
  border-bottom: 1px solid #e4e4e1;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex;
  gap: 20px;
  margin: 0 10px;
  overflow-x: auto;
  padding: 0 8px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.public-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #788088;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 49px;
  padding: 0;
}

.public-tabs button.is-active {
  border-color: var(--orange);
  color: var(--ink);
}

.public-content {
  padding: 21px 18px 94px;
}

.public-category {
  scroll-margin-top: 68px;
}

.public-category + .public-category {
  margin-top: 30px;
}

.public-category__head {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 11px;
}

.public-category__head h2 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  margin: 0;
}

.public-category__head span {
  color: var(--muted);
  font-size: 0.75rem;
}

.public-item {
  background: #fff;
  border: 1px solid #e8e6e2;
  border-radius: var(--radius-md);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 108px;
  margin: 8px 0;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.public-item:first-of-type {
  border-top: 1px solid #e8e6e2;
}

.public-item__content {
  min-width: 0;
}

.public-item__title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.public-item__title strong {
  font-size: 0.96rem;
  text-align: left;
}

.public-item__description {
  color: #727a80;
  display: -webkit-box;
  font-size: 0.78rem;
  line-height: 1.42;
  margin: 5px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-item__price {
  color: var(--orange);
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 9px;
}

.public-item__price del {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  margin-right: 5px;
}

.public-item__photo {
  background-color: #edf1f2;
  border-radius: 6px;
  height: 96px;
  width: 108px;
}

.public-item__image {
  border-radius: 6px;
}

.public-cart-bar {
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius-lg);
  bottom: 18px;
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  left: 50%;
  max-width: 560px;
  padding: 11px 18px;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  z-index: 9;
}

.public-cart-bar__amount {
  align-items: center;
  display: flex;
  gap: 9px;
}

.cart-count {
  align-items: center;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  font-size: 0.72rem;
  font-weight: 800;
  height: 28px;
  flex: 0 0 28px;
  justify-content: center;
  min-width: 28px;
  text-align: center;
}

.public-cart-bar__amount > span:not(.cart-count) {
  color: #c8d1d5;
  display: block;
  font-size: 0.72rem;
}

.public-cart-bar__amount strong {
  display: block;
  font-size: 0.86rem;
  margin-top: 1px;
}

.public-cart-bar .btn {
  background: var(--orange);
  color: #fff;
  min-height: 37px;
}

@media (max-width: 600px) {
  .public-menu {
    padding: 0;
  }

  .public-menu__shell {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    overflow: visible;
  }

  .public-tabs {
    border-radius: 0;
    margin: 0;
    padding: 0 18px;
  }

  .public-cart-bar {
    border-radius: 0;
    bottom: 0;
    width: 100%;
  }
}

.public-page-head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e4e6e5;
  display: flex;
  height: 61px;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.public-page-head h1 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
}

.public-page-content {
  padding: 18px 16px 92px;
}

.public-page-content--cart {
  display: grid;
  gap: 14px;
  padding: 20px 20px max(24px, env(safe-area-inset-bottom));
}

.public-page-content--checkout {
  padding: 0 16px max(24px, env(safe-area-inset-bottom));
}

.cart-item {
  background: #fff;
  border-bottom: 1px solid #e7e8e7;
  display: grid;
  gap: 11px;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 13px 0;
}

.cart-item__photo {
  background-color: #edf1f2;
  border-radius: 5px;
  height: 67px;
  width: 76px;
}

.cart-item__image {
  border-radius: 5px;
}

.cart-item strong {
  display: block;
  font-size: 0.88rem;
}

.cart-item p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  margin: 4px 0 0;
}

.cart-item b {
  color: var(--orange);
  font-size: 0.84rem;
}

.quantity-control {
  align-items: center;
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.quantity-control button {
  align-items: center;
  background: #f2f4f4;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  display: flex;
  height: 44px;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  width: 44px;
}

.quantity-control span {
  font-size: 0.82rem;
  font-weight: 800;
  min-width: 16px;
  text-align: center;
}

.summary-card {
  background: #fff;
  border-top: 1px solid #e6e7e7;
  display: grid;
  gap: 11px;
  margin-top: 17px;
  padding: 17px 0;
}

.summary-line {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-size: 0.86rem;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.summary-line > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-line > strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.summary-line--total {
  border-top: 1px solid #e5e8e8;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  margin-top: 3px;
  padding-top: 13px;
}

.checkout-section {
  background: #fff;
  border-bottom: 1px solid #e4e6e5;
  margin: 0 -16px;
  padding: 18px 16px;
}

.public-page-content--checkout .checkout-section > .alert {
  margin-top: 16px;
}

.checkout-section h2 {
  font-family: var(--font-display);
  font-size: 1.03rem;
  margin: 0 0 14px;
}

.delivery-choice {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.delivery-choice button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  display: flex;
  font-size: 0.83rem;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 45px;
}

.delivery-choice button.is-active {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: #a33404;
}

.checkout-fields {
  display: grid;
  gap: 13px;
  margin-top: 15px;
}

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

.payment-options {
  display: grid;
  gap: 7px;
}

.payment-option {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 10px;
  min-height: 43px;
  padding: 0 11px;
}

.payment-option input {
  accent-color: var(--orange);
  flex: 0 0 auto;
}

.payment-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkout-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 18px 0 0;
  padding: 16px;
}

.checkout-submit {
  margin-top: 18px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.checkout-submit .btn {
  min-height: 52px;
  white-space: normal;
}

.customer-success {
  align-items: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  min-width: 0;
  padding: 80px 28px calc(60px + env(safe-area-inset-bottom));
  text-align: center;
}

.customer-success__icon {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #b8e8cd;
  border-radius: 50%;
  color: var(--green);
  display: flex;
  height: 78px;
  justify-content: center;
  width: 78px;
}

.customer-success__icon svg {
  height: 37px;
  width: 37px;
}

.customer-success h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.customer-success p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 375px;
  min-width: 0;
  overflow-wrap: anywhere;
  width: 100%;
}

.order-code {
  background: #f2f4f3;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 22px 0;
  padding: 13px 20px;
}

.customer-success__whatsapp {
  align-items: flex-start;
  background: #eaf8ef;
  border: 1px solid #bce8cc;
  color: #17603e;
  display: flex;
  gap: 10px;
  margin: 0;
  max-width: 390px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.customer-success__whatsapp > div {
  min-width: 0;
}

.customer-success__actions {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: min(100%, 360px);
}

.customer-success__actions .btn {
  justify-content: center;
  line-height: 1.25;
  min-height: 48px;
  overflow-wrap: anywhere;
  padding: 12px 16px;
  text-align: center;
  white-space: normal;
  width: 100%;
}

.customer-success__actions .btn span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-success__whatsapp svg {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.customer-success__whatsapp strong {
  display: block;
  font-size: 0.84rem;
}

.customer-success__whatsapp span {
  display: block;
  font-size: 0.76rem;
  line-height: 1.4;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.item-drawer {
  background: #fff;
  bottom: 0;
  left: 50%;
  max-height: 90vh;
  max-width: 560px;
  overflow: auto;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 51;
}

.item-drawer__hero {
  background-color: #edf1f2;
  height: 210px;
  position: relative;
}

.item-drawer__image {
  border-radius: 0;
  inset: 0;
  position: absolute;
}

.item-drawer__close {
  background: rgba(255, 255, 255, 0.92);
  position: absolute;
  right: 12px;
  top: 12px;
}

.item-drawer__body {
  padding: 19px 18px 20px;
}

.item-drawer__body h2 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  margin: 0;
}

.item-drawer__body > p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 7px 0 12px;
}

.item-drawer__price {
  color: var(--orange);
  font-size: 1.08rem;
  font-weight: 800;
}

.customer-addon {
  border-top: 1px solid #e5e7e6;
  margin-top: 20px;
  padding-top: 16px;
}

.customer-addon__head {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.customer-addon__head h3 {
  font-size: 0.95rem;
  margin: 0;
}

.customer-addon__head span {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 800;
}

.customer-addon__help {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 3px 0 8px;
}

.customer-option {
  align-items: center;
  border-bottom: 1px solid #eceeed;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  min-height: 45px;
}

.customer-option input {
  accent-color: var(--orange);
  height: 17px;
  width: 17px;
}

.customer-option label {
  font-size: 0.85rem;
  font-weight: 600;
}

.customer-option span {
  color: var(--muted);
  font-size: 0.78rem;
}

.item-drawer__footer {
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  gap: 9px;
  grid-template-columns: auto 1fr;
  padding: 12px 18px;
  position: sticky;
}

.item-drawer__footer .quantity-control {
  margin: 0;
}

.item-drawer__footer .quantity-control button {
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  width: 44px;
}

/* Responsive */
@media (max-width: 1040px) {
  .hero__grid {
    gap: 31px;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  }

  .phone-frame {
    min-height: 540px;
  }

  .phone-menu-sample {
    min-height: 516px;
  }

  .manager-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .menu-item-row {
    grid-template-columns: auto 56px minmax(120px, 1fr) 101px 76px auto;
  }

  .item-row__photo {
    height: 54px;
    width: 56px;
  }

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

@media (max-width: 820px) {
  .landing-nav__links {
    display: none;
  }

  .hero {
    padding-bottom: 46px;
    padding-top: 44px;
  }

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

  .hero-phone-wrap {
    justify-self: center;
    max-width: 345px;
  }

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

  .pricing-layout,
  .auth-shell,
  .manager-layout,
  .settings-layout,
  .dashboard-columns,
  .link-share {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: 270px;
  }

  .auth-benefits {
    grid-template-columns: repeat(3, 1fr);
  }

  .manager-preview {
    display: none;
  }

  .menu-item-row {
    grid-template-columns: auto 60px minmax(0, 1fr) auto;
  }

  .menu-item-row .price-quick-edit,
  .menu-item-row .item-row__status {
    grid-column: 3 / 4;
  }

  .menu-item-row .price-quick-edit {
    width: 115px;
  }

  .menu-item-row .item-row__buttons {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .app-topbar__mobile-brand {
    display: block;
  }

  .app-topbar {
    padding: 0 16px;
  }

  .app-topbar__right .save-indicator {
    display: none;
  }

  .app-content {
    padding: 23px 16px 88px;
  }

  .mobile-nav {
    align-items: center;
    background: #171d22;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    left: 0;
    padding: 7px 5px max(7px, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 20;
  }

  .mobile-nav button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #aeb8bd;
    display: flex;
    flex: 1;
    flex-direction: column;
    font-size: 0.62rem;
    font-weight: 700;
    gap: 3px;
    min-height: 44px;
    padding: 0 2px;
  }

  .mobile-nav a {
    align-items: center;
    color: #aeb8bd;
    display: flex;
    flex: 1;
    flex-direction: column;
    font-size: 0.62rem;
    font-weight: 700;
    gap: 3px;
    min-height: 44px;
    padding: 0 2px;
    text-decoration: none;
  }

  .mobile-nav button svg,
  .mobile-nav a svg {
    height: 20px;
    width: 20px;
  }

  .mobile-nav button.is-active {
    color: #fff;
  }

  .mobile-nav button.is-active svg {
    color: #ff6c39;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .page-head__actions {
    justify-content: flex-start;
  }

  .onboarding-form--columns,
  .form-grid,
  .form-grid--three,
  .brand-media-grid {
    grid-template-columns: 1fr;
  }

  .hours-row {
    grid-template-columns: 98px 1fr 1fr auto;
  }
}

@media (min-width: 821px) {
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    font-size: 1.45rem;
  }

  .brand-mark--compact {
    font-size: 1.28rem;
  }

  .public-header__info {
    right: auto;
  }

  .public-header__info h1 {
    font-size: 1.45rem;
    overflow-wrap: anywhere;
  }

  .landing-nav {
    height: 64px;
    padding: 0 16px;
  }

  .landing-nav__login {
    display: none;
  }

  .landing-nav__actions .btn {
    font-size: 0.78rem;
    min-height: 36px;
    padding: 0 10px;
  }

  .hero {
    padding: 36px 18px 42px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero__copy > p {
    font-size: 1rem;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

  .hero-phone-wrap {
    max-width: 284px;
  }

  .hero-phone-wrap::before {
    height: 260px;
    right: -28px;
    width: 260px;
  }

  .phone-frame {
    border-radius: 26px;
    min-height: 481px;
  }

  .phone-menu-sample {
    min-height: 457px;
  }

  .landing-section {
    padding: 65px 18px;
  }

  .steps-grid,
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .step::before {
    margin-bottom: 14px;
  }

  .difference {
    min-height: 180px;
  }

  .pricing-card {
    padding: 23px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 23px 18px;
  }

  .auth-page {
    display: block;
    padding: 0;
  }

  .auth-shell {
    display: block;
    min-height: 100vh;
  }

  .auth-brand-panel {
    min-height: 214px;
    padding: 24px 22px;
  }

  .auth-brand-panel h1 {
    font-size: 1.45rem;
    margin-top: 26px;
  }

  .auth-brand-panel p {
    display: none;
  }

  .auth-benefits {
    display: none;
  }

  .auth-card {
    min-height: calc(100vh - 214px);
    padding: 30px 22px 40px;
  }

  .auth-card__back {
    margin-bottom: 27px;
  }

  .progress-steps {
    margin-bottom: 32px;
  }

  .progress-step {
    font-size: 0.62rem;
  }

  .onboarding-body {
    padding: 31px 16px 60px;
  }

  .onboarding-header {
    padding: 0 16px;
  }

  .onboarding-header__right span {
    display: none;
  }

  .onboarding-panel {
    padding: 23px 18px;
  }

  .onboarding-panel__head h1 {
    font-size: 1.45rem;
  }

  .hours-row {
    gap: 6px;
    grid-template-columns: 80px 1fr 1fr auto;
  }

  .hours-row__day {
    font-size: 0.75rem;
  }

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .onboarding-actions__right {
    justify-content: stretch;
  }

  .onboarding-actions__right .btn {
    flex: 1;
  }

  .app-topbar__right .restaurant-status {
    font-size: 0;
    gap: 0;
    min-height: 32px;
    padding: 0 10px;
  }

  .app-topbar__right .restaurant-status__dot {
    height: 8px;
    width: 8px;
  }

  .dashboard-grid {
    gap: 10px;
  }

  .metric-card {
    min-height: 117px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 1.38rem;
    margin-top: 16px;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .page-subtitle {
    font-size: 0.87rem;
  }

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

  .manager-toolbar__right .btn {
    flex: 1;
  }

  .manager-toolbar__hint {
    display: none;
  }

  .category-block__head {
    padding: 0 9px;
  }

  .menu-item-row {
    gap: 8px;
    grid-template-columns: 16px 54px minmax(0, 1fr) auto;
    padding: 9px;
  }

  .item-row__photo {
    height: 52px;
    width: 54px;
  }

  .menu-item-row .item-row__status {
    display: none;
  }

  .menu-item-row .price-quick-edit {
    grid-column: 3 / 4;
    margin-top: -7px;
    width: 96px;
  }

  .menu-item-row .item-row__buttons {
    align-self: center;
    flex-direction: column;
    grid-column: 4 / 5;
    grid-row: 1 / 3;
  }

  .item-row__buttons .icon-button {
    height: 31px;
    width: 31px;
  }

  .item-row__details p {
    -webkit-line-clamp: 1;
  }

  .filter-bar {
    flex-wrap: nowrap;
    margin-left: -16px;
    margin-right: -16px;
    overflow-x: auto;
    padding: 0 16px;
  }

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

  .promo-row {
    gap: 9px 12px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 13px;
  }

  .promo-row__photo {
    height: 42px;
    width: 44px;
  }

  .promo-row .promo-price {
    display: none;
  }

  .promo-row__actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .plan-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .link-share {
    display: block;
  }

  .qr-card {
    margin-top: 17px;
  }

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

  .modal {
    max-height: 92vh;
  }

  .modal__footer {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .modal__footer .btn {
    flex: 1 1 calc(50% - 8px);
    line-height: 1.25;
    min-height: 44px;
    padding: 8px 10px;
  }

  .modal__footer .btn--danger {
    flex-basis: 100%;
  }

  .modal__footer .btn:only-of-type {
    flex: 0 1 auto;
  }

  .modal__footer-spacer {
    display: none;
  }

  .toast-stack {
    bottom: 72px;
    right: 16px;
  }

  .public-menu__shell {
    max-width: none;
  }

  .public-cart-bar {
    max-width: none;
  }
}

/* Reference landing page */
.reference-landing {
  --ref-bg: #111317;
  --ref-lowest: #0c0e11;
  --ref-low: #1a1c1f;
  --ref-panel: #1e2023;
  --ref-panel-high: #282a2d;
  --ref-panel-highest: #333538;
  --ref-text: #e2e2e6;
  --ref-text-muted: #b9babe;
  --ref-outline: #ac897e;
  --ref-outline-soft: #5c4037;
  --ref-orange: #ff5708;
  --ref-orange-soft: #ffb59c;
  --ref-green: #41e575;
  --ref-green-deep: #06c85d;
  --ref-gold: #ffb95f;
  background: var(--ref-bg);
  color: var(--ref-text);
  min-height: 100vh;
}

.reference-landing .brand-mark {
  color: var(--ref-text);
}

.reference-header {
  background: rgba(17, 19, 23, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  height: 65px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}

.reference-header__inner {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 24px;
}

.reference-header__brand-area,
.reference-header__actions,
.reference-primary-nav,
.reference-context-tabs {
  align-items: center;
  display: flex;
}

.reference-header__brand-area {
  gap: 10px;
  min-width: 0;
}

.reference-header .brand-mark {
  font-size: 1.2rem;
}

.reference-context-tabs {
  background: var(--ref-lowest);
  border-radius: 7px;
  gap: 3px;
  margin-left: 12px;
  padding: 4px;
}

.reference-context-tabs a,
.reference-context-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #aeb1b4;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  min-height: 26px;
  padding: 0 8px;
  white-space: nowrap;
}

.reference-context-tabs a.is-active,
.reference-context-tabs a:hover,
.reference-context-tabs button:hover {
  background: var(--ref-panel-high);
  color: var(--ref-text);
}

.reference-primary-nav {
  gap: 23px;
}

.reference-primary-nav a,
.reference-login {
  color: #c9cbce;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.reference-primary-nav a:hover,
.reference-login:hover {
  color: #fff;
}

.reference-header__actions {
  gap: 6px;
}

.reference-header__actions .btn {
  background: var(--ref-orange);
  color: #511500;
  min-height: 34px;
}

.reference-page {
  margin: 0 auto;
  max-width: 1440px;
  padding: 82px 24px 32px;
}

.reference-operation-strip {
  align-items: center;
  background: var(--ref-lowest);
  border-radius: var(--radius-lg);
  display: flex;
  font-size: 0.78rem;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 25px;
  min-height: 43px;
  padding: 8px 13px;
}

.reference-operation-strip__left,
.reference-operation-strip__right {
  align-items: center;
  display: flex;
  gap: 8px;
}

.reference-operation-strip__left strong {
  color: var(--ref-green);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reference-operation-strip__left > span:last-child {
  color: var(--ref-text-muted);
}

.reference-operation-strip__divider {
  color: #73767a;
}

.reference-menu-demo header span i {
  background: var(--ref-green);
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  width: 7px;
}

.reference-operation-strip__right {
  color: var(--ref-gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.reference-operation-strip svg {
  height: 14px;
  width: 14px;
}

.reference-operation-strip__right button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ref-orange-soft);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 3px;
  padding: 3px;
}

.reference-operation-strip__right button:hover {
  color: #fff;
}

.reference-operation-strip__right button svg {
  height: 13px;
  width: 13px;
}

.reference-hero {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
}

.reference-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 0;
}

.reference-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reference-badge {
  align-items: center;
  background: transparent;
  border-radius: 0;
  color: var(--ref-text);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 5px;
  min-height: 0;
  padding: 0;
}

.reference-badge svg {
  color: var(--ref-orange);
  height: 14px;
  width: 14px;
}

.reference-badge--green {
  background: transparent;
  color: var(--ref-green);
}

.reference-badge--green svg {
  color: var(--ref-green);
}

.reference-badge--muted {
  color: #c1c3c6;
}

.reference-badge--muted svg {
  color: #aeb1b4;
}

.reference-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.3vw, 4.35rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 20px 0 15px;
  max-width: 780px;
}

.reference-hero h1 span {
  color: var(--ref-orange);
}

.reference-hero__copy > p {
  color: #b9bbbe;
  font-size: 1.04rem;
  line-height: 1.55;
  margin: 0;
  max-width: 690px;
}

.reference-link-preview {
  background: var(--ref-lowest);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  margin-top: 28px;
  max-width: 735px;
  padding: 13px;
}

.reference-link-preview__head {
  align-items: center;
  color: #8d9195;
  display: flex;
  font-size: 0.65rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-link-live {
  align-items: center;
  color: var(--ref-green);
  display: inline-flex;
  font-size: 0.68rem;
  gap: 5px;
  letter-spacing: 0;
  text-transform: none;
}

.reference-link-preview__url {
  align-items: center;
  background: var(--ref-panel-high);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 9px;
  margin-top: 9px;
  min-height: 43px;
  padding: 0 7px 0 11px;
}

.reference-link-preview__url > svg {
  color: var(--ref-orange);
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.reference-link-preview__url strong {
  color: #e2e2e6;
  flex: 1;
  font-size: 0.88rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-link-preview__url strong b {
  color: var(--ref-orange-soft);
}

.reference-link-preview__url .icon-button {
  background: transparent;
  color: var(--ref-text);
  height: 30px;
  width: 30px;
}

.reference-link-preview__url .icon-button:hover,
.reference-link-preview__url .icon-button:focus-visible,
.reference-link-preview__url .icon-button:active {
  background: transparent;
  box-shadow: none;
  outline: 0;
  transform: none;
}

.reference-link-preview__url .icon-button svg {
  height: 15px;
  width: 15px;
}

.reference-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 17px;
}

.reference-landing .btn--primary {
  background: var(--ref-orange);
  color: #511500;
}

.reference-landing .btn--primary:hover:not(:disabled) {
  background: #ff7641;
}

.reference-landing .btn--secondary {
  background: var(--ref-panel-high);
  border-color: transparent;
  color: var(--ref-text);
}

.reference-landing .btn--secondary:hover:not(:disabled) {
  background: #3a3c40;
  border-color: transparent;
}

.reference-social-stats {
  background: var(--ref-low);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 25px;
  max-width: 735px;
  padding: 13px;
}

.reference-social-stats div + div {
  border-left: 1px solid #35383c;
  padding-left: 13px;
}

.reference-social-stats strong {
  color: #f1f1f2;
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.1;
}

.reference-social-stats div:nth-child(2) strong {
  color: var(--ref-green);
}

.reference-social-stats div:nth-child(3) strong {
  color: var(--ref-gold);
}

.reference-social-stats span {
  color: #aeb1b5;
  display: block;
  font-size: 0.7rem;
  margin-top: 3px;
}

.reference-signup {
  background: var(--ref-low);
  border: 1px solid #282b2f;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
}

.reference-signup__head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.reference-signup__head > div > span {
  background: transparent;
  border-radius: 0;
  color: var(--ref-orange-soft);
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0;
  text-transform: uppercase;
}

.reference-signup h2 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  margin: 12px 0 3px;
}

.reference-signup p {
  color: #aeb1b5;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
}

.reference-signup__head > b {
  align-items: center;
  color: var(--ref-green);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.65rem;
  gap: 4px;
  margin-top: 5px;
  white-space: nowrap;
}

.reference-signup__head > b svg {
  height: 13px;
  width: 13px;
}

.reference-signup__form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.reference-signup__form label > span {
  align-items: center;
  color: #d6d8da;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 5px;
}

.reference-signup__form label small {
  color: #888c90;
  font-size: 0.62rem;
  font-weight: 500;
}

.reference-signup__form label > div {
  align-items: center;
  background: var(--ref-panel);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: flex;
  min-height: 43px;
  transition: border-color 150ms ease;
}

.reference-signup__form label > div:focus-within {
  border-color: var(--ref-orange);
}

.reference-signup__field.is-invalid > div,
.reference-signup__field.is-invalid > div:focus-within {
  border-color: #f1776a;
}

.reference-signup__form label i {
  color: #8e9296;
  display: inline-flex;
  margin: 0 10px 0 12px;
}

.reference-signup__form label i svg {
  height: 17px;
  width: 17px;
}

.reference-signup__form label i.is-green {
  color: var(--ref-green);
}

.reference-signup__form input {
  background: transparent;
  border: 0;
  color: #f0f1f2;
  flex: 1;
  font-size: 0.86rem;
  min-width: 0;
  outline: 0;
  padding: 0 11px 0 0;
}

.reference-signup__form input::placeholder {
  color: #707478;
}

.reference-signup__error {
  color: #ff9c92 !important;
  display: block;
  font-size: 0.67rem !important;
  line-height: 1.35;
  margin-top: 5px;
}

.reference-signup__form .password-meter {
  margin-top: -4px;
}

.reference-signup__form .btn {
  margin-top: 4px;
  min-height: 48px;
}

.reference-signup__secure {
  align-items: center;
  background: var(--ref-panel);
  border-radius: 6px;
  color: #b9bbbe;
  display: flex;
  font-size: 0.69rem;
  gap: 6px;
  justify-content: center;
  margin-top: 17px;
  padding: 10px;
}

.reference-signup__secure svg {
  color: var(--ref-green);
  height: 15px;
  width: 15px;
}

.reference-landing .alert {
  margin-top: 16px;
}

.reference-section {
  border-top: 1px solid #292c30;
  margin-top: 57px;
  padding-top: 53px;
  scroll-margin-top: 82px;
}

.reference-section__head {
  margin-bottom: 26px;
  max-width: 740px;
}

.reference-section__head > span,
.reference-final-cta > div > span {
  color: var(--ref-orange-soft);
  display: block;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reference-section__head--split > div > .reference-section__eyebrow {
  background: #3d2118;
  border: 1px solid rgba(255, 181, 156, 0.58);
  border-radius: 4px;
  color: #ffd0c1;
  display: inline-flex;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-bottom: 5px;
  padding: 5px 8px;
}

.reference-section__head h2,
.reference-final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  letter-spacing: 0;
  line-height: 1.17;
  margin: 7px 0 0;
}

.reference-section__head p,
.reference-final-cta p {
  color: #afb2b5;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 9px 0 0;
}

.reference-section__head--split {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  max-width: none;
}

.reference-section__head--split > div {
  max-width: 780px;
}

.reference-section__head--split > p {
  flex: 0 1 355px;
  margin: 0;
}

.reference-section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.reference-steps article {
  background: var(--ref-low);
  border-radius: var(--radius-lg);
  min-height: 238px;
  padding: 19px;
  position: relative;
}

.reference-step-number {
  color: var(--ref-orange);
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 31px;
}

.reference-steps article > svg {
  color: var(--ref-gold);
  height: 25px;
  width: 25px;
}

.reference-steps h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 18px 0 6px;
}

.reference-steps p {
  color: #aeb1b5;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
}

.reference-calculator {
  display: grid;
  border-radius: var(--radius-lg);
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  overflow: hidden;
}

.reference-calculator__controls,
.reference-calculator__result {
  background: var(--ref-low);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.reference-calculator__controls {
  display: grid;
  gap: 22px;
}

.reference-range > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.reference-range label {
  color: #d6d8da;
  font-size: 0.84rem;
  font-weight: 700;
}

.reference-range strong {
  color: var(--ref-green);
  font-size: 0.8rem;
}

.reference-range input {
  accent-color: var(--ref-orange);
  cursor: pointer;
  margin: 14px 0 0;
  width: 100%;
}

.reference-calculator__controls > p {
  align-items: center;
  background: var(--ref-panel);
  border-radius: var(--radius-sm);
  color: #aeb1b5;
  display: flex;
  font-size: 0.75rem;
  gap: 7px;
  line-height: 1.45;
  margin: 0;
  padding: 10px;
}

.reference-calculator__controls > p svg {
  color: var(--ref-orange-soft);
  flex: 0 0 auto;
  height: 16px;
  margin-top: 1px;
  width: 16px;
}

.reference-calculator__result {
  background: var(--ref-panel-high);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reference-calculator__result > span {
  color: #c7c9cc;
  font-size: 0.78rem;
  font-weight: 700;
}

.reference-calculator__result > strong {
  color: var(--ref-orange-soft);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-top: 9px;
}

.reference-calculator__result > b {
  color: #aeb1b5;
  font-size: 0.79rem;
  font-weight: 600;
  margin-top: 3px;
}

.reference-calculator__result > div {
  align-items: center;
  border-top: 1px solid #45484d;
  display: flex;
  justify-content: space-between;
  margin-top: 21px;
  padding-top: 14px;
}

.reference-calculator__result > div span {
  color: #b9bbbf;
  font-size: 0.76rem;
}

.reference-calculator__result > div strong {
  color: var(--ref-green);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.reference-calculator__result button {
  align-items: center;
  background: var(--ref-orange);
  border: 0;
  border-radius: var(--radius-sm);
  color: #511500;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  margin-top: 22px;
  min-height: 42px;
}

.reference-calculator__result button:hover {
  background: #ff7641;
}

.reference-calculator__result button svg {
  height: 16px;
  width: 16px;
}

.reference-demo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 820px;
}

.reference-menu-demo,
.reference-whatsapp-demo {
  background: var(--ref-lowest);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.reference-menu-demo > header {
  align-items: center;
  background: var(--ref-panel);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 10px;
  padding: 10px;
}

.reference-demo-avatar {
  align-items: center;
  background: var(--ref-orange);
  border-radius: var(--radius-sm);
  color: #511500;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  height: 39px;
  justify-content: center;
  width: 39px;
}

.reference-menu-demo > header > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.reference-menu-demo > header strong {
  display: block;
  font-size: 0.86rem;
}

.reference-menu-demo > header span {
  align-items: center;
  color: var(--ref-green);
  display: flex;
  font-size: 0.67rem;
  gap: 5px;
  margin-top: 3px;
}

.reference-menu-demo > header b {
  background: var(--ref-panel-high);
  border-radius: 999px;
  color: #d4d6d8;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px;
  white-space: nowrap;
}

.reference-demo-menu-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.reference-demo-menu-list button {
  align-items: center;
  background: var(--ref-panel);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ref-text);
  display: flex;
  gap: 11px;
  justify-content: space-between;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.reference-demo-menu-list button:hover {
  background: #323438;
}

.reference-demo-menu-list button > span {
  min-width: 0;
}

.reference-demo-menu-list strong {
  display: block;
  font-size: 0.84rem;
}

.reference-demo-menu-list p {
  color: #adb0b4;
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 4px 0;
}

.reference-demo-menu-list b {
  color: var(--ref-orange-soft);
  font-size: 0.8rem;
}

.reference-demo-menu-list button > svg {
  align-items: center;
  background: var(--ref-orange);
  border-radius: var(--radius-sm);
  color: #511500;
  display: flex;
  flex: 0 0 auto;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.reference-menu-demo > footer {
  align-items: center;
  background: var(--ref-panel-high);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  padding: 10px;
}

.reference-menu-demo > footer small {
  color: #8f9397;
  display: block;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reference-menu-demo > footer strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-top: 2px;
}

.reference-menu-demo > footer button {
  align-items: center;
  background: var(--ref-green);
  border: 0;
  border-radius: var(--radius-sm);
  color: #003915;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 6px;
  min-height: 34px;
  padding: 0 9px;
}

.reference-menu-demo > footer button svg {
  height: 15px;
  width: 15px;
}

.reference-whatsapp-demo {
  display: flex;
  flex-direction: column;
}

.reference-whatsapp-demo > header {
  align-items: center;
  background: var(--ref-panel-high);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 5px;
  min-height: 43px;
  padding: 0 11px;
}

.reference-whatsapp-demo > header i {
  background: var(--ref-green);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.reference-whatsapp-demo > header i:first-child {
  background: #e85c55;
}

.reference-whatsapp-demo > header i:nth-child(2) {
  background: var(--ref-gold);
}

.reference-whatsapp-demo > header span {
  color: #aeb1b5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
  margin-left: 7px;
}

.reference-whatsapp-demo__message {
  background: var(--ref-panel);
  border-left: 3px solid var(--ref-green);
  border-radius: var(--radius-sm);
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  margin-top: 10px;
  padding: 15px;
}

.reference-whatsapp-demo__message > strong {
  color: var(--ref-green);
  display: block;
  font-size: 0.74rem;
}

.reference-whatsapp-demo__message p {
  margin: 6px 0;
}

.reference-whatsapp-demo__line {
  border-top: 1px dashed #55595d;
  display: block;
  margin: 11px 0;
}

.reference-whatsapp-demo__message em {
  align-items: center;
  color: var(--ref-gold);
  display: flex;
  font-style: normal;
  gap: 5px;
  margin-top: 11px;
}

.reference-whatsapp-demo__message em svg {
  height: 14px;
  width: 14px;
}

.reference-whatsapp-demo > footer {
  align-items: center;
  color: #aeb1b5;
  display: flex;
  font-size: 0.7rem;
  gap: 6px;
  margin-top: 11px;
}

.reference-whatsapp-demo > footer svg {
  color: var(--ref-green);
  height: 15px;
  width: 15px;
}

.reference-pricing {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1080px;
}

.reference-pricing article {
  background: var(--ref-low);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 23px;
  position: relative;
}

.reference-pricing article.is-featured {
  border: 1px solid var(--ref-orange);
}

.reference-recommended {
  background: var(--ref-orange);
  border-radius: 0 var(--radius-lg) 0 var(--radius-sm);
  color: #511500;
  font-size: 0.57rem;
  font-weight: 800;
  padding: 6px 8px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  top: 0;
}

.reference-pricing article > header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.reference-free-chip {
  background: var(--ref-panel-high);
  border-radius: 999px;
  color: #e2e2e6;
  flex: 0 0 auto;
  font-size: 0.56rem;
  font-weight: 800;
  padding: 4px 6px;
  text-transform: uppercase;
}

.reference-pricing h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 3px;
}

.reference-pricing article > header p {
  color: #aeb1b5;
  font-size: 0.67rem;
  margin: 0;
}

.reference-plan-price {
  align-items: baseline;
  display: flex;
  gap: 7px;
  margin-top: 17px;
}

.reference-plan-price strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.reference-pricing article.is-featured .reference-plan-price strong {
  color: var(--ref-orange);
}

.reference-plan-price span {
  color: #aeb1b5;
  font-size: 0.66rem;
}

.reference-plan-price--pending strong {
  color: #c7c9cb;
  font-size: 1.35rem;
}

.reference-plan-cycle,
.reference-plan-savings,
.reference-plan-availability {
  color: #aeb1b5;
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 10px 0 0;
}

.reference-plan-savings {
  color: var(--ref-green);
  font-weight: 700;
}

.reference-plan-availability {
  border-top: 1px solid #383b3e;
  margin-top: auto;
  padding-top: 12px;
}

.reference-pricing ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.reference-pricing li {
  align-items: flex-start;
  color: #d2d4d6;
  display: flex;
  font-size: 0.68rem;
  gap: 7px;
  line-height: 1.4;
}

.reference-pricing li svg {
  color: var(--ref-green);
  flex: 0 0 auto;
  height: 16px;
  margin-top: 1px;
  width: 16px;
}

.reference-pricing li.is-disabled {
  color: #7f8387;
  text-decoration: line-through;
}

.reference-pricing li.is-disabled svg {
  color: #9a6257;
}

.reference-pricing li small {
  color: #aeb1b5;
  font-size: inherit;
}

.reference-pricing .btn {
  font-size: 0.74rem;
  min-height: 38px;
  margin-top: auto;
}

.reference-faq {
  margin: 64px auto 0;
  max-width: 896px;
  padding-top: 0;
}

.reference-faq__list {
  display: grid;
  gap: 7px;
}

.reference-faq__item {
  align-items: center;
  background: var(--ref-low);
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ref-text);
  display: grid;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 9px;
  grid-template-columns: 1fr auto;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.reference-faq__item:hover {
  background: var(--ref-panel);
}

.reference-faq__item > svg {
  color: var(--ref-orange-soft);
  height: 19px;
  transition: transform 150ms ease;
  width: 19px;
}

.reference-faq__item > p {
  color: #b5b8bc;
  display: none;
  font-size: 0.8rem;
  font-weight: 400;
  grid-column: 1 / -1;
  line-height: 1.5;
  margin: 0;
}

.reference-faq__item.is-open > p {
  display: block;
}

.reference-faq__item.is-open > svg {
  transform: rotate(180deg);
}

.reference-final-cta {
  align-items: center;
  background: var(--ref-panel-high);
  border-left: 3px solid var(--ref-orange);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 32px auto 0;
  max-width: 896px;
  padding: 22px;
}

.reference-final-cta h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.reference-final-cta .btn {
  flex: 0 0 auto;
  min-height: 42px;
}

.reference-footer {
  align-items: center;
  background: var(--ref-lowest);
  display: grid;
  gap: 25px;
  grid-template-columns: 1.1fr 1fr auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 48px;
  padding: 32px max(24px, calc((100vw - 1440px) / 2));
}

.reference-footer > div {
  align-items: center;
  display: flex;
  gap: 9px;
}

.reference-footer .brand-mark {
  color: var(--ref-text);
  font-size: 1rem;
}

.reference-footer > div > span {
  color: #8f9397;
  font-size: 0.67rem;
}

.reference-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.reference-footer nav a,
.reference-footer nav button {
  background: transparent;
  border: 0;
  color: #aeb1b5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0;
}

.reference-footer nav a:hover,
.reference-footer nav button:hover {
  color: #fff;
}

.reference-footer small {
  color: #8a8d91;
  font-size: 0.66rem;
  white-space: nowrap;
}

@media (max-width: 1190px) {
  .reference-context-tabs {
    display: none;
  }

  .reference-primary-nav {
    gap: 14px;
  }

  .reference-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  }
}

@media (max-width: 940px) {
  .reference-header__inner {
    padding: 0 17px;
  }

  .reference-primary-nav {
    display: none;
  }

  .reference-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-hero > * {
    min-width: 0;
  }

  .reference-hero__copy {
    padding-top: 4px;
  }

  .reference-signup {
    max-width: 650px;
  }

  .reference-section__head--split {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .reference-section__head--split > p {
    align-self: stretch;
    flex: 0 1 auto;
    max-width: 620px;
  }

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

  .reference-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reference-footer > div,
  .reference-footer nav {
    justify-content: center;
  }
}

@media (max-width: 650px) {
  .reference-header {
    height: 60px;
  }

  .reference-header__inner {
    padding: 0 14px;
  }

  .reference-header .brand-mark {
    font-size: 1.08rem;
  }

  .reference-login {
    display: inline-flex;
    font-size: 0.72rem;
  }

  .reference-header__actions .btn {
    font-size: 0.7rem;
    min-height: 31px;
    padding: 0 8px;
  }

  .reference-page {
    padding: 72px 14px 22px;
  }

  .reference-operation-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 19px;
  }

  .reference-operation-strip__left > span:last-child,
  .reference-operation-strip__divider {
    display: none;
  }

  .reference-operation-strip__right {
    width: 100%;
  }

  .reference-operation-strip__right button {
    margin-left: auto;
  }

  .reference-hero h1 {
    font-size: 2.28rem;
    margin-top: 16px;
  }

  .reference-hero__copy > p {
    font-size: 0.94rem;
  }

  .reference-badge-row {
    gap: 5px;
  }

  .reference-badge {
    font-size: 0.61rem;
    min-height: 25px;
    padding: 0 7px;
  }

  .reference-link-preview {
    margin-top: 21px;
    padding: 10px;
  }

  .reference-link-preview__head > span:first-child {
    font-size: 0.58rem;
  }

  .reference-link-preview__url strong {
    font-size: 0.75rem;
  }

  .reference-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-hero__actions .btn {
    width: 100%;
  }

  .reference-social-stats {
    margin-top: 17px;
    padding: 10px;
  }

  .reference-social-stats div + div {
    padding-left: 8px;
  }

  .reference-social-stats strong {
    font-size: 0.98rem;
  }

  .reference-social-stats span {
    font-size: 0.61rem;
  }

  .reference-signup {
    margin-top: 5px;
    padding: 17px;
  }

  .reference-signup h2 {
    font-size: 1.2rem;
  }

  .reference-signup__head > b {
    display: none;
  }

  .reference-section {
    margin-top: 41px;
    padding-top: 38px;
    scroll-margin-top: 82px;
  }

  #como-funciona.reference-section {
    padding-inline: 2px;
  }

  .reference-section__head h2,
  .reference-final-cta h2 {
    font-size: 1.45rem;
  }

  .reference-section__head p {
    font-size: 0.84rem;
  }

  .reference-steps,
  .reference-calculator,
  .reference-demo-grid,
  .reference-pricing {
    grid-template-columns: 1fr;
  }

  .reference-steps article {
    min-height: 0;
    padding: 16px;
  }

  .reference-step-number {
    margin-bottom: 12px;
  }

  .reference-steps h3 {
    margin-top: 12px;
  }

  .reference-calculator__controls,
  .reference-calculator__result,
  .reference-pricing article {
    padding: 18px;
  }

  .reference-menu-demo,
  .reference-whatsapp-demo {
    padding: 10px;
  }

  .reference-menu-demo > header b {
    display: none;
  }

  .reference-whatsapp-demo__message {
    font-size: 0.65rem;
  }

  .reference-final-cta {
    align-items: stretch;
    flex-direction: column;
    margin-top: 41px;
    padding: 20px;
  }

  .reference-final-cta .btn {
    width: 100%;
  }

  .reference-footer {
    margin-top: 41px;
    padding: 25px 14px;
  }

  .reference-footer > div {
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .orders-table-wrap {
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .orders-table {
    border-collapse: separate;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table tbody {
    display: grid;
    gap: 10px;
  }

  .orders-table tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px;
  }

  .orders-table td {
    align-items: start;
    background: transparent;
    border: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(88px, 0.72fr) minmax(0, 1.28fr);
    overflow-wrap: anywhere;
    padding: 7px 0;
  }

  .orders-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .orders-table td[data-label="Detalhes"] {
    justify-content: end;
  }

  .orders-table .status-select {
    max-width: 100%;
  }
}

/* Product version and platform administration */
.app-version {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.app-version--sidebar {
  color: #7e8b91;
  margin: 4px 10px 0;
}

.app-version--mobile {
  display: none;
}

.app-version--onboarding {
  color: #8a5a49;
}

.auth-brand-panel__version {
  color: #879297;
  margin-top: 18px;
}

.public-menu__version {
  background: #f8f6f2;
  color: #8a9195;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 15px 18px 18px;
  text-align: center;
}

.admin-sidebar__label {
  color: #9ba6ac;
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 7px;
  text-transform: uppercase;
}

.admin-topbar__title {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-mobile-tabs {
  display: none;
}

.admin-metrics .metric-card__head svg {
  color: var(--orange);
}

.admin-v1-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-data-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  margin-top: 18px;
}

.admin-data-grid > .panel,
.admin-recent-restaurants {
  min-width: 0;
}

.admin-period-filter {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  padding: 16px;
}

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

.admin-period-filter > p {
  color: var(--muted);
  font-size: 0.76rem;
  grid-column: 1 / -1;
  line-height: 1.5;
  margin: 0;
}

.admin-period-filter .btn {
  min-height: 44px;
}

.admin-inline-empty,
.admin-order-breakdown__empty {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  padding: 16px;
}

.admin-order-total-list {
  display: grid;
  padding: 0 18px 14px;
}

.admin-order-total-list > div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 42px;
}

.admin-order-total-list > div:last-child {
  border-bottom: 0;
}

.admin-order-total-list strong,
.admin-order-breakdown b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.admin-recent-restaurants {
  margin-top: 18px;
}

.admin-conversion-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
  padding: 14px 18px;
}

.admin-restaurant-row {
  grid-template-columns: minmax(180px, 1.2fr) minmax(110px, 0.6fr) auto 20px;
}

.admin-restaurant-row__tags .tag {
  max-width: 220px;
  white-space: normal;
}

.admin-restaurants-table {
  min-width: 1040px;
}

.admin-period-cell {
  min-width: 190px;
}

.admin-restaurants-table td > span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  line-height: 1.45;
  margin-top: 4px;
}

.admin-period-lines {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-period-line {
  align-items: baseline;
  column-gap: 8px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  min-width: 0;
}

.admin-period-line__label {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.admin-period-line__value {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-period-summary .admin-period-lines {
  gap: 10px;
}

.admin-order-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  max-width: 340px;
}

.admin-order-breakdown > span {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.admin-detail-order-total {
  display: block;
  margin-bottom: 12px;
}

.admin-dashboard-columns {
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
}

.admin-restaurant-list {
  display: grid;
}

.admin-restaurant-row {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e8ecee;
  color: var(--ink);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(150px, 1.1fr) minmax(150px, 1fr) minmax(110px, 0.6fr) auto auto;
  padding: 16px 18px;
  text-align: left;
  width: 100%;
}

.admin-restaurant-row:hover {
  background: #f8faf9;
}

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

.admin-restaurant-row > svg {
  color: #8a969b;
  height: 18px;
  width: 18px;
}

.admin-restaurant-row__identity,
.admin-restaurant-row__owner,
.admin-restaurant-row__usage {
  min-width: 0;
}

.admin-restaurant-row strong,
.admin-restaurant-row span:not(.tag):not(.status-pill) {
  display: block;
}

.admin-restaurant-row strong {
  font-size: 0.83rem;
}

.admin-restaurant-row__identity > span,
.admin-restaurant-row__owner > span,
.admin-restaurant-row__usage > span {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-restaurant-row__tags {
  align-items: flex-start;
  display: grid;
  gap: 5px;
  justify-items: start;
}

.admin-attention {
  align-content: start;
  background: #171d22;
  border-radius: var(--radius-md);
  color: #fff;
  display: grid;
  overflow: hidden;
}

.admin-attention__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.admin-attention__head h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
}

.admin-attention__head p {
  color: #b7c0c4;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 5px 0 0;
}

.admin-attention__item {
  align-items: start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 15px 17px;
  text-align: left;
  width: 100%;
}

.admin-attention__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-attention__item > svg:first-child {
  color: #ffb45d;
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.admin-attention__item > svg:last-child {
  color: #9ba6ac;
  height: 16px;
  margin-top: 3px;
  width: 16px;
}

.admin-attention__item strong,
.admin-attention__item span span {
  display: block;
}

.admin-attention__item strong {
  font-size: 0.82rem;
}

.admin-attention__item span span {
  color: #b7c0c4;
  font-size: 0.74rem;
  line-height: 1.42;
  margin-top: 3px;
}

.admin-attention__empty {
  align-items: center;
  color: #c8d4d8;
  display: flex;
  font-size: 0.8rem;
  gap: 9px;
  line-height: 1.45;
  padding: 20px;
}

.admin-attention__empty svg {
  color: #3bdc78;
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.admin-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 17px;
}

.admin-filter-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(230px, 1.6fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr);
}

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

.admin-table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-table-card__head {
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.admin-table-card__head h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
}

.admin-table-card__head p {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 4px 0 0;
}

.admin-table-wrap {
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.admin-table-wrap:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.admin-table-scroll {
  min-width: 0;
}

.admin-table-scroll__hint {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0;
  padding: 10px 14px 8px;
}

.admin-table-scroll__hint[hidden] {
  display: none;
}

.admin-table {
  border-collapse: collapse;
  min-width: 1020px;
  width: 100%;
}

.admin-table th {
  background: #fafbfb;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 15px;
  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  border-bottom: 1px solid #e9edef;
  font-size: 0.8rem;
  padding: 14px 15px;
  vertical-align: middle;
}

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

.admin-table tr:hover td {
  background: #fbfcfc;
}

.admin-table td strong,
.admin-table td > span {
  display: block;
}

.admin-table td > span {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 3px;
}

.admin-empty-state {
  border: 0;
  min-height: 250px;
}

.admin-restaurant-summary {
  align-items: center;
  background: #171d22;
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 22px;
}

.admin-restaurant-summary .eyebrow {
  color: #ff9f7d;
}

.admin-restaurant-summary h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 5px 0 6px;
}

.admin-restaurant-summary a {
  align-items: center;
  color: #ffb29b;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 5px;
}

.admin-restaurant-summary a:hover {
  color: #fff;
}

.admin-restaurant-summary a svg {
  height: 14px;
  width: 14px;
}

.admin-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.admin-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.admin-detail-list div {
  align-items: center;
  border-bottom: 1px solid #e9edef;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(130px, 0.6fr) minmax(0, 1.4fr);
  min-height: 47px;
  padding: 10px 0;
}

.admin-detail-list div:last-child {
  border-bottom: 0;
}

.admin-detail-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-detail-list dd {
  font-size: 0.83rem;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-plan-card {
  background: #f7f9f8;
  border: 1px solid #e4e9e7;
  border-radius: var(--radius-sm);
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 14px;
}

.admin-plan-card strong {
  font-size: 0.9rem;
}

.admin-plan-card span {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.admin-audit-list {
  display: grid;
}

.admin-audit-row {
  align-items: start;
  border-bottom: 1px solid #e9edef;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 14px 18px;
}

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

.admin-audit-row > span {
  align-items: center;
  background: #fff0e9;
  border-radius: 50%;
  color: #ca4b17;
  display: flex;
  height: 29px;
  justify-content: center;
  width: 29px;
}

.admin-audit-row > span svg {
  height: 15px;
  width: 15px;
}

.admin-audit-row strong,
.admin-audit-row div span {
  display: block;
}

.admin-audit-row strong {
  font-size: 0.82rem;
}

.admin-audit-row div span,
.admin-audit-empty {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  margin-top: 3px;
}

.admin-audit-empty {
  margin: 0;
  padding: 18px;
}

.admin-access {
  align-content: center;
  background: #f4f6f5;
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.admin-access__brand {
  left: 28px;
  position: absolute;
  top: 28px;
}

.admin-access > section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  max-width: 430px;
  padding: 36px;
}

.admin-access__icon {
  align-items: center;
  background: #fff0e9;
  border-radius: 50%;
  color: #be420d;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.admin-access__icon svg {
  height: 28px;
  width: 28px;
}

.admin-access h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 18px 0 8px;
}

.admin-access p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 22px;
}

.admin-access__version {
  bottom: 24px;
  position: absolute;
}

@media (max-width: 980px) {
  .admin-filter-grid {
    grid-template-columns: minmax(210px, 1fr) minmax(150px, 0.7fr);
  }

  .admin-filter-grid .field:first-child {
    grid-column: 1 / -1;
  }

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

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

  .admin-data-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .app-version--mobile {
    color: var(--muted);
    display: inline;
  }

  .app-topbar__left .app-version--mobile + .save-indicator {
    display: none;
  }

  .admin-topbar__title {
    display: none;
  }

  .admin-mobile-tabs {
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 18px;
    padding: 0 16px;
  }

  .admin-mobile-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    min-height: 43px;
    padding: 0;
  }

  .admin-mobile-tabs button.is-active {
    border-bottom-color: var(--orange);
    color: var(--ink);
  }

  .admin-restaurant-row {
    gap: 11px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 15px 16px;
  }

  .admin-restaurant-row__owner,
  .admin-restaurant-row__usage {
    grid-column: 1 / 2;
  }

  .admin-restaurant-row__tags {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }

  .admin-period-filter {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-period-filter > p {
    grid-column: auto;
  }

  .admin-restaurant-row > svg {
    display: none;
  }

  .admin-restaurant-summary {
    align-items: flex-start;
    flex-direction: column;
    padding: 19px;
  }

  .admin-summary-tags {
    justify-content: flex-start;
  }

  .admin-detail-list div {
    align-items: start;
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .admin-access__brand {
    left: 18px;
    top: 20px;
  }
}

@media (max-width: 560px) {
  .admin-v1-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-period-filter__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-restaurant-row__tags .tag {
    max-width: 150px;
  }

  .admin-topbar .app-topbar__right > .btn {
    min-width: 38px;
    padding: 0;
    width: 38px;
  }

  .admin-topbar .app-topbar__right > .btn span {
    display: none;
  }

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

  .admin-filter-grid .field:first-child {
    grid-column: auto;
  }

  .admin-filter-actions {
    justify-content: stretch;
  }

  .admin-filter-actions .btn {
    flex: 1;
  }

  .admin-restaurant-summary h2 {
    font-size: 1.18rem;
  }

  .admin-access > section {
    padding: 29px 22px;
  }

  .auth-brand-panel__version {
    margin-top: 14px;
  }
}

/* Internal support conversations */
.support-list-panel {
  margin-top: 18px;
}

.support-ticket-list {
  display: grid;
}

.support-ticket-row {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e8ecee;
  color: var(--ink);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(250px, 1.25fr) minmax(180px, 0.9fr) auto auto;
  padding: 16px 18px;
  text-align: left;
  width: 100%;
}

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

.support-ticket-row:hover {
  background: #f8faf9;
}

.support-ticket-row > svg {
  color: #8a969b;
  height: 18px;
  width: 18px;
}

.support-ticket-row__main {
  align-items: flex-start;
  display: grid;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.support-ticket-row__icon {
  align-items: center;
  background: #fff0e9;
  border-radius: 8px;
  color: #c84a16;
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.support-ticket-row__icon svg {
  height: 17px;
  width: 17px;
}

.support-ticket-row__main strong,
.support-ticket-row__main > span > span,
.support-ticket-row__preview,
.support-ticket-row__status > span:last-child {
  display: block;
}

.support-ticket-row__main strong {
  font-size: 0.84rem;
  line-height: 1.35;
}

.support-ticket-row__main > span > span,
.support-ticket-row__preview,
.support-ticket-row__status > span:last-child {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.42;
  margin-top: 3px;
}

.support-ticket-row__restaurant {
  color: #42515a !important;
  font-weight: 700;
}

.support-ticket-row__preview {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-row__status {
  display: grid;
  gap: 5px;
  justify-items: start;
  min-width: 132px;
}

.support-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.support-status--open {
  background: #fff2e9;
  color: #b94c13;
}

.support-status--in_progress {
  background: #eaf2ff;
  color: #225fb5;
}

.support-status--waiting_restaurant {
  background: #fff6d9;
  color: #8d6100;
}

.support-status--resolved {
  background: #e9f8ef;
  color: #087b47;
}

.support-status--closed {
  background: #eef1f2;
  color: #58666c;
}

.support-empty-state {
  border: 0;
  min-height: 280px;
}

.support-detail-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.6fr);
}

.support-thread-card {
  min-width: 0;
}

.support-thread-card__head {
  align-items: flex-start;
}

.support-thread-card__head h2 {
  font-family: var(--font-display);
  font-size: 1.03rem;
  margin: 5px 0 3px;
}

.support-thread-card__head p {
  color: var(--muted);
  font-size: 0.76rem;
  margin: 0;
}

.support-thread {
  background: #fbfcfc;
  display: grid;
  gap: 13px;
  max-height: 510px;
  min-height: 230px;
  overflow: auto;
  padding: 19px;
}

.support-message {
  background: #fff;
  border: 1px solid #e4e9e8;
  border-radius: 8px;
  max-width: min(84%, 580px);
  padding: 12px 14px;
}

.support-message--admin {
  background: #fff5ef;
  border-color: #fed7c6;
  justify-self: end;
}

.support-message__meta {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.support-message__meta strong {
  font-size: 0.77rem;
}

.support-message__meta span {
  color: var(--muted);
  font-size: 0.68rem;
}

.support-message p {
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.support-thread__empty,
.support-thread__loading {
  align-self: center;
  color: var(--muted);
  font-size: 0.81rem;
  justify-self: center;
  text-align: center;
}

.support-thread__loading::after {
  animation: support-loading 1.1s steps(4, end) infinite;
  content: "";
}

@keyframes support-loading {
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.support-reply {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 13px;
  padding: 18px;
}

.support-reply .field__textarea {
  min-height: 106px;
  resize: vertical;
}

.support-reply__footer {
  display: flex;
  justify-content: flex-end;
}

.support-closed-note {
  align-items: center;
  background: #eef8f2;
  border-top: 1px solid #d8ecdf;
  color: #32634b;
  display: flex;
  font-size: 0.79rem;
  gap: 9px;
  line-height: 1.45;
  padding: 16px 18px;
}

.support-closed-note svg {
  color: #14935a;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.support-ticket-details {
  display: grid;
  margin: 0;
}

.support-ticket-details div {
  align-items: center;
  border-bottom: 1px solid #e9edef;
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(105px, 0.7fr) minmax(0, 1.3fr);
  min-height: 44px;
  padding: 9px 0;
}

.support-ticket-details div:last-child {
  border-bottom: 0;
}

.support-ticket-details dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.support-ticket-details dd {
  font-size: 0.79rem;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.support-admin-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.support-admin-metrics article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 5px;
  padding: 17px;
}

.support-admin-metrics span,
.support-admin-metrics small {
  color: var(--muted);
  font-size: 0.74rem;
}

.support-admin-metrics span {
  font-weight: 800;
}

.support-admin-metrics strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.admin-support-filter-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(230px, 1.55fr) minmax(185px, 0.75fr);
}

@media (max-width: 980px) {
  .support-detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .support-ticket-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 15px 16px;
  }

  .support-ticket-row__preview {
    grid-column: 1 / 2;
    white-space: normal;
  }

  .support-ticket-row__status {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }

  .support-ticket-row > svg {
    display: none;
  }

  .support-thread {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .support-admin-metrics,
  .admin-support-filter-grid {
    grid-template-columns: 1fr;
  }

  .support-admin-metrics {
    gap: 10px;
  }

  .support-admin-metrics article {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 15px;
  }

  .support-admin-metrics small {
    grid-column: 1 / -1;
  }

  .support-message {
    max-width: 94%;
  }

  .support-thread,
  .support-reply {
    padding: 15px;
  }

  .support-thread-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-ticket-details div {
    align-items: start;
    gap: 4px;
    grid-template-columns: 1fr;
  }

  .support-reply__footer .btn {
    width: 100%;
  }
}

/* ---- Área de parceiros/indicação ---- */
.partner-page {
  background: var(--paper);
  min-height: 100vh;
}

.partner-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 18px 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.partner-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.partner-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-brand__suffix {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  font-size: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 10px;
}

.partner-topbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.85rem;
}

.partner-topbar__user .btn {
  color: var(--white);
}

.partner-terms__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.partner-terms__row input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.partner-link__box {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  overflow-x: auto;
}

.partner-link__box code {
  font-size: 0.85rem;
  color: var(--green);
  word-break: break-all;
}

.partner-link__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.partner-link__actions .btn,
.partner-link__actions a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.partner-link__hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.partner-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.partner-list {
  display: flex;
  flex-direction: column;
}

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

.partner-row:last-child {
  border-bottom: none;
}

.partner-row__identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.partner-row__identity strong {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-row__identity span {
  font-size: 0.78rem;
  color: var(--muted);
}

.partner-row__tags {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.partner-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
}

.partner-empty svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

.partner-empty strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.partner-empty p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 420px;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .dashboard-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .partner-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-topbar__user span {
    display: none;
  }
}

@media (max-width: 560px) {
  .partner-shell {
    padding: 14px 12px 56px;
  }

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

  .partner-link__actions .btn,
  .partner-link__actions a.btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .metrics-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .metrics-period-control {
    min-width: 0;
  }

  .metrics-controls .btn {
    justify-content: center;
    width: 100%;
  }

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

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

@media (min-width: 561px) and (max-width: 1180px) {
  .order-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* Suporte externo da V1: CTA para conversa no WhatsApp. */
.support-external {
  display: grid;
  gap: 6px;
}

.support-external__link {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.support-external__link.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.support-external__hint {
  color: #8a9297;
  display: block;
  font-size: 0.74rem;
  line-height: 1.4;
  text-align: center;
}

.sidebar__bottom .support-external__hint {
  color: #aeb8bd;
}

.sidebar__bottom .support-external__link {
  font-size: 0.84rem;
  justify-content: flex-start;
  padding-inline: 10px;
  white-space: nowrap;
}

.sidebar__bottom .support-external__link svg {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .support-external__link {
    min-height: 44px;
    width: 100%;
  }
}

.overview-v1-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}

.dashboard-grid--single {
  grid-template-columns: minmax(0, 420px);
}

.settings-shortcuts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
}

.settings-shortcuts .quick-action {
  min-height: 76px;
}

.checkout-section > .alert {
  margin-top: 14px;
}

.business-hours-editor {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.business-hours-editor__head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.business-hours-editor__head h2 {
  font-size: 1rem;
  margin: 0 0 5px;
}

.business-hours-editor__head p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  max-width: 620px;
}

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

.business-hours-row {
  align-items: end;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1.3fr) minmax(100px, 1fr) minmax(100px, 1fr) 56px;
  padding: 10px;
}

.business-hours-row__day {
  align-items: center;
  align-self: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.business-hours-row__day strong {
  font-size: 0.84rem;
}

.business-hours-time {
  color: var(--muted);
  display: grid;
  font-size: 0.7rem;
  gap: 4px;
  min-width: 0;
}

.business-hours-time input {
  min-width: 0;
  width: 100%;
}

.business-hours-copy-trigger {
  background: transparent;
  border: 0;
  color: var(--orange-hover);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 40px;
}

.business-hours-copy-trigger:disabled {
  color: #aab1b4;
  cursor: not-allowed;
}

.business-hours-copy-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
}

.business-hours-copy-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.business-hours-copy-targets label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  min-height: 36px;
}

.business-hours-copy-panel > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-media-upload.is-busy {
  cursor: progress;
  opacity: 0.75;
}

.brand-media-card__error {
  color: #a53318 !important;
  line-height: 1.45;
}

.brand-media-image-error {
  align-items: center;
  background: #283238;
  color: #fff;
  display: flex;
  font-size: 0.78rem;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.cart-item {
  align-items: center;
  grid-template-columns: 76px minmax(0, 1fr) 88px;
}

.cart-item__main,
.cart-item__actions {
  min-width: 0;
}

.cart-item__main > strong {
  overflow-wrap: anywhere;
}

.cart-item__actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  min-height: 67px;
}

.cart-item__actions .icon-button {
  height: 40px;
  width: 40px;
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.cart-next-step {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.cart-next-step .btn {
  min-height: 50px;
}

@media (max-width: 560px) {
  .business-hours-row {
    grid-template-columns: minmax(0, 1fr) minmax(74px, 1fr) minmax(74px, 1fr) 48px;
  }

  .business-hours-row__day strong {
    font-size: 0.77rem;
  }

  .business-hours-row {
    gap: 6px;
    padding: 8px;
  }

  .business-hours-copy-trigger {
    font-size: 0.7rem;
  }

  .cart-item {
    align-items: start;
    column-gap: 9px;
    grid-template-columns: 58px minmax(0, 1fr);
    row-gap: 4px;
  }

  .cart-item__photo {
    height: 58px;
    width: 58px;
  }

  .cart-item__main {
    align-self: center;
  }

  .cart-item__actions {
    align-items: center;
    flex-direction: row;
    grid-column: 2;
    min-height: 44px;
  }

  .cart-item__actions .icon-button {
    height: 40px;
    width: 40px;
  }

  .cart-summary {
    margin-top: 0;
    padding: 14px;
  }

  .public-page-content--checkout .checkout-fields--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-page-content--checkout .delivery-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-page-content--checkout .delivery-choice button {
    min-width: 0;
    padding: 8px;
  }
}

@media (max-width: 359px) {
  .business-hours-row {
    grid-template-columns: minmax(0, 1fr) minmax(68px, 1fr) minmax(68px, 1fr) 42px;
  }

  .business-hours-time {
    font-size: 0.65rem;
  }

  .business-hours-copy-trigger {
    font-size: 0.65rem;
  }
}

@media (max-width: 820px) {
  .overview-v1-grid,
  .settings-shortcuts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.legal-document {
  background: var(--white);
  min-height: 100vh;
}

body.has-legal-reader {
  overflow: hidden;
}

.legal-reader-backdrop {
  z-index: 80;
}

.modal.legal-reader {
  max-height: calc(100vh - 40px);
  max-height: min(920px, calc(100dvh - 40px));
  max-width: 1080px;
  width: 100%;
}

.legal-reader__head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 24px 17px;
}

.legal-reader__identity {
  min-width: 0;
}

.legal-reader__eyebrow {
  color: var(--orange-hover);
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.legal-reader__head h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-reader__version {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 5px 0 0;
}

.legal-reader__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 25px clamp(22px, 4vw, 52px) 34px;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

.legal-reader__scroll:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -3px;
}

.legal-reader__content {
  margin: 0 auto;
  max-width: 820px;
}

.legal-reader__footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  justify-content: space-between;
  padding: 13px 20px calc(13px + env(safe-area-inset-bottom, 0px));
}

.legal-reader__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-reader__footer .btn {
  min-height: 44px;
  min-width: 0;
  white-space: normal;
}

.legal-reader__full-document {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  text-align: center;
}

.legal-document__top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(22px, calc((100vw - 1120px) / 2));
}

.legal-document__top nav,
.legal-document__bottom {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-document__top nav a,
.legal-document__bottom a,
.legal-acceptance a,
.legal-account__links a {
  color: var(--orange-hover);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-document__body {
  margin: 0 auto;
  max-width: 900px;
  padding: 56px 28px 72px;
}

.legal-document__eyebrow {
  color: var(--orange-hover);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.legal-document__body > h1 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.18;
  margin: 0;
}

.legal-document__metadata {
  color: var(--muted);
  line-height: 1.6;
  margin: 14px 0 26px;
}

.legal-document__draft {
  border-left: 3px solid var(--yellow);
  color: #654700;
  display: grid;
  gap: 3px;
  line-height: 1.55;
  margin: 0 0 36px;
  padding: 10px 14px;
}

.legal-document__draft strong {
  font-size: 0.94rem;
}

.legal-document__content {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-document__section {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 23px;
}

.legal-document__section h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.35;
  margin: 0 0 14px;
}

.legal-document__content p {
  margin: 0 0 15px;
}

.legal-document__list {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-document__list li + li {
  margin-top: 8px;
}

.legal-document__bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 24px;
}

.legal-document__footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  padding: 20px 24px;
  text-align: center;
}

.legal-acceptance {
  border-top: 1px solid var(--line);
  margin: 6px 0 0;
  padding-top: 14px;
}

.legal-acceptance__row {
  align-items: flex-start;
  color: var(--ink-soft);
  display: flex;
  gap: 11px;
  line-height: 1.55;
}

.legal-acceptance__row input {
  accent-color: var(--orange);
  flex: 0 0 18px;
  height: 18px;
  margin: 3px 0 0;
  width: 18px;
}

.legal-acceptance__status,
.legal-acceptance__error {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 8px 0 0 29px;
}

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

.legal-acceptance__error {
  color: var(--red);
  font-weight: 700;
}

.legal-acceptance.is-invalid {
  border-top-color: var(--red);
}

.legal-precontract {
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 14px 0 18px;
}

.legal-precontract p {
  margin: 0 0 10px;
}

.legal-precontract ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-account__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.legal-account__pending {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.legal-account__records {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-account__records li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 12px 0;
}

.legal-account__records span {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 600px) {
  .product-photo-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-photo-editor__preview {
    max-width: 240px;
  }

  .legal-document__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .legal-document__top nav,
  .legal-document__bottom {
    gap: 12px 18px;
  }

  .legal-document__body {
    padding: 36px 20px 52px;
  }

  .legal-document__body > h1 {
    font-size: 1.75rem;
  }

  .legal-document__section h2 {
    font-size: 1.15rem;
  }

  .legal-reader-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .modal.legal-reader {
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    max-width: none;
    width: 100%;
  }

  .legal-reader__head {
    gap: 12px;
    padding: max(12px, env(safe-area-inset-top, 0px)) 16px 12px;
  }

  .legal-reader__head h2 {
    font-size: 1.08rem;
  }

  .legal-reader__version {
    font-size: 0.82rem;
  }

  .legal-reader__scroll {
    padding: 20px 16px 28px;
    scrollbar-gutter: auto;
  }

  .legal-reader__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  }

  .legal-reader__full-document {
    width: 100%;
  }

  .legal-reader__actions {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .legal-reader__actions .btn {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
  }
}
