:root {
  --ink: #17151f;
  --ink-2: #595464;
  --ink-3: #918a9c;
  --paper: #fffdf9;
  --surface: #ffffff;
  --surface-2: #f7f4ef;
  --line: #e9e0d7;
  --coral: #d94f45;
  --coral-2: #fff0ed;
  --sage: #2f8b72;
  --sage-2: #e9f7f1;
  --teal: #227d93;
  --teal-2: #e7f6f9;
  --lavender: #755cc4;
  --lavender-2: #f1edff;
  --warn: #d88b1f;
  --danger: #c93636;
  --shadow: 0 2px 8px rgba(23, 21, 31, .06), 0 16px 42px rgba(23, 21, 31, .07);
  --soft-shadow: 0 1px 3px rgba(23, 21, 31, .06), 0 8px 24px rgba(23, 21, 31, .05);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 79, 69, .13), transparent 34%),
    radial-gradient(circle at 78% 10%, rgba(47, 139, 114, .18), transparent 30%),
    linear-gradient(145deg, #fbf7f1 0%, #f6efe7 55%, #f8f5ef 100%);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
}

svg {
  fill: currentColor;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 0 0 1px rgba(23, 21, 31, .06), 0 28px 80px rgba(23, 21, 31, .12);
  position: relative;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  background: rgba(255, 253, 249, .88);
  border-bottom: 1px solid rgba(233, 224, 215, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--ink), #44364a 52%, var(--coral));
  box-shadow: 0 12px 24px rgba(217, 79, 69, .18);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-copy h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy p {
  margin: 3px 0 0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.demo-chip {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 79, 69, .24);
  background: #fff0ed;
  color: #93312b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sync-chip {
  min-height: 27px;
  max-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(233, 224, 215, .92);
  background: #fff;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-chip.cloud {
  border-color: rgba(47, 139, 114, .24);
  background: var(--sage-2);
  color: #16624d;
}

.sync-chip.syncing {
  border-color: rgba(34, 125, 147, .24);
  background: var(--teal-2);
  color: #14596a;
}

.sync-chip.offline {
  border-color: rgba(217, 79, 69, .22);
  background: var(--coral-2);
  color: #93312b;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
  flex-shrink: 0;
}

.sync-chip.syncing .sync-dot {
  animation: pulseSync 1.1s var(--ease) infinite;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid rgba(233, 224, 215, .92);
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  position: relative;
}

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

.icon-btn:hover {
  color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
}

.icon-btn:active,
.small-btn:active,
.tab:active,
.nav-btn:active {
  transform: scale(.96);
}

.icon-btn.plain {
  background: transparent;
  border-color: transparent;
}

.dot-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(201, 54, 54, .28);
}

main {
  padding: 14px 14px 0;
}

.page {
  display: none;
  animation: pageIn .28s var(--ease) both;
}

.page.active {
  display: block;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-panel {
  position: relative;
  min-height: 292px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: 292px;
  object-fit: cover;
  filter: saturate(.98) contrast(1.02);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 21, 31, .08), rgba(23, 21, 31, .76)),
    linear-gradient(90deg, rgba(23, 21, 31, .68), transparent 68%);
}

.hero-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.eyebrow,
.card-title {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-overlay .eyebrow {
  color: #ffd8d4;
}

.hero-overlay h2,
.page-intro h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: .96;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-overlay p,
.page-intro p,
.body-copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.42;
  color: rgba(255, 255, 255, .82);
}

.page-intro {
  padding: 18px 4px 10px;
}

.page-intro h2 {
  color: var(--ink);
}

.page-intro p {
  color: var(--ink-2);
}

.demo-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(217, 79, 69, .2);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff7f4, #fffdf9);
  box-shadow: var(--soft-shadow);
}

.demo-note p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.demo-note strong {
  color: var(--ink);
  font-weight: 950;
}

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

.kpi {
  min-height: 122px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  text-align: left;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 79, 69, .36);
  box-shadow: var(--shadow);
}

.kpi .value {
  display: block;
  font-size: 31px;
  line-height: .92;
  font-weight: 950;
  color: var(--ink);
  letter-spacing: 0;
}

.kpi .label,
.kpi .sub {
  display: block;
}

.kpi .label {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-2);
}

.kpi .sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}

.kpi.alert .value,
.kpi.warning .value {
  color: var(--coral);
}

.card {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(233, 224, 215, .9);
  box-shadow: var(--soft-shadow);
}

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

.section-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 920;
  letter-spacing: 0;
}

.body-copy {
  color: var(--ink-2);
}

.small-btn,
.btn-primary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.small-btn:hover {
  border-color: rgba(217, 79, 69, .4);
  background: var(--coral-2);
}

.small-btn.filled,
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.small-btn.filled:hover,
.btn-primary:hover {
  background: #2a2533;
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface-2);
  white-space: nowrap;
}

.pill.coral {
  background: var(--coral-2);
  color: #93312b;
}

.pill.demo {
  background: #17151f;
  color: #fff;
}

.pill.sage {
  background: var(--sage-2);
  color: #16624d;
}

.pill.teal {
  background: var(--teal-2);
  color: #14596a;
}

.pill.lavender {
  background: var(--lavender-2);
  color: #5639a6;
}

.stack-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.list-item,
.mini-alert {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fffaf5);
  position: relative;
  overflow: hidden;
}

.empty-state {
  min-height: 92px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(217, 79, 69, .38);
  background: #fff7f4;
  color: var(--ink-2);
  grid-column: 1 / -1;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.empty-state span {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
}

.list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sage);
}

.list-item.risk::before {
  background: var(--danger);
}

.list-item.color::before {
  background: var(--lavender);
}

.list-item.retail::before {
  background: var(--teal);
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  border: 1px solid rgba(233, 224, 215, .95);
}

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

.item-main h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.18;
}

.item-main p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.34;
}

.item-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.item-side strong {
  font-size: 14px;
  font-weight: 950;
}

.day-strip,
.tab-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar,
.tab-row::-webkit-scrollbar {
  display: none;
}

.day-pill,
.tab {
  min-width: 58px;
  min-height: 43px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.day-pill span {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
}

.day-pill.active,
.tab.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.day-pill.active span {
  color: rgba(255, 255, 255, .72);
}

.timeline {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.appt-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.appt-row.completed {
  opacity: .72;
}

.appt-row.completed .appt-card {
  background: #f7f4ef;
}

.appt-time {
  display: grid;
  place-items: center;
  min-height: 86px;
  border-radius: 15px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.appt-card {
  min-height: 86px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 8px;
}

.appt-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.appt-top h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 920;
}

.appt-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-2);
}

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

.slot-card {
  min-height: 112px;
  padding: 13px;
  border-radius: 16px;
  border: 1px dashed rgba(217, 79, 69, .45);
  background: var(--coral-2);
}

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

.slot-card strong {
  font-size: 15px;
  font-weight: 950;
}

.slot-card span {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.32;
  color: var(--ink-2);
}

.search-box {
  display: block;
  margin: 4px 0 10px;
}

.search-box span {
  display: block;
  margin: 0 0 6px 3px;
  font-size: 10px;
  font-weight: 900;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-box input,
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.search-box input:focus,
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: rgba(217, 79, 69, .55);
  box-shadow: 0 0 0 4px rgba(217, 79, 69, .12);
}

.more-panel {
  display: none;
}

.more-panel.active {
  display: block;
  animation: pageIn .24s var(--ease) both;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 750;
}

.check-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage);
}

.ticket-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.ticket-summary div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid rgba(233, 224, 215, .92);
}

.proof-grid div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7f4ef);
  border: 1px solid rgba(233, 224, 215, .92);
}

.ticket-summary span {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.proof-grid span {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ticket-summary strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.proof-grid strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.policy-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid rgba(233, 224, 215, .92);
}

.policy-box p {
  margin: 0;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.compact-checks {
  margin-top: 10px;
  gap: 7px;
}

.compact-checks label {
  min-height: 38px;
  background: #fff;
}

.audit-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.proof-meter {
  position: relative;
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7df;
  border: 1px solid rgba(233, 224, 215, .95);
}

.proof-meter.compact {
  max-width: 236px;
  margin-top: 2px;
}

.proof-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--sage));
  transition: width .24s var(--ease);
}

.proof-meter strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.compact-list {
  margin-top: 9px;
}

.data-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 18;
  transform: translateX(-50%);
  width: min(100%, 520px);
  min-height: calc(76px + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  background: rgba(255, 253, 249, .94);
  border-top: 1px solid rgba(233, 224, 215, .86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-btn {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 17px;
  color: var(--ink-3);
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.nav-btn svg {
  width: 21px;
  height: 21px;
}

.nav-btn span {
  font-size: 10px;
  font-weight: 900;
}

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

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 21, 31, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease);
}

.sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.action-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 41;
  transform: translate(-50%, 110%);
  width: min(100%, 520px);
  max-height: 88dvh;
  overflow-y: auto;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 -20px 50px rgba(23, 21, 31, .2);
  transition: transform .28s var(--ease);
}

.action-sheet.active {
  transform: translate(-50%, 0);
}

.action-sheet.compact {
  max-height: 62dvh;
}

.sheet-handle {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  margin: 0 auto 14px;
  background: #d8cec4;
}

.booking-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

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

.booking-form label {
  display: grid;
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.booking-form .inline-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 800;
}

.booking-form .inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage);
}

.booking-form textarea {
  min-height: 92px;
  resize: vertical;
}

.checkout-client {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff7f4);
  border: 1px solid var(--line);
}

.checkout-client span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.checkout-client strong,
.checkout-client p {
  display: block;
}

.checkout-client strong {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 950;
}

.checkout-client p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.34;
}

.ticket-lines {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid rgba(233, 224, 215, .92);
}

.ticket-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.ticket-lines span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ticket-lines strong {
  font-size: 14px;
  font-weight: 950;
}

.ticket-lines .ticket-total {
  min-height: 42px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ticket-lines .ticket-total strong {
  font-size: 24px;
}

.btn-primary {
  min-height: 48px;
  width: 100%;
  margin-top: 4px;
  font-size: 15px;
}

.mini-alert {
  grid-template-columns: 1fr;
  min-height: unset;
  padding-left: 14px;
}

.mini-alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--coral);
}

.mini-alert.fresh::before {
  background: var(--sage);
}

.mini-alert strong,
.mini-alert span {
  display: block;
}

.mini-alert strong {
  font-size: 13px;
  font-weight: 950;
}

.mini-alert span {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.35;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translate(-50%, 18px);
  width: min(calc(100% - 28px), 492px);
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(23, 21, 31, .94);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  box-shadow: 0 18px 42px rgba(23, 21, 31, .25);
}

.toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes pulseSync {
  0%,
  100% {
    transform: scale(1);
    opacity: .72;
  }
  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

@media (min-width: 760px) {
  body {
    padding: 22px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 44px);
    border-radius: 34px;
    overflow: hidden;
  }

  .bottom-nav {
    border-radius: 0 0 34px 34px;
  }

}

@media (max-width: 380px) {
  .topbar {
    padding-inline: 12px;
  }

  .brand-mark,
  .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-copy h1 {
    font-size: 14px;
  }

  .sync-chip {
    max-width: 82px;
    padding-inline: 7px;
  }

  .demo-chip {
    display: none;
  }

  .hero-overlay h2,
  .page-intro h2 {
    font-size: 25px;
  }

  .kpi .value {
    font-size: 28px;
  }

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

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

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

  .list-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .item-side {
    grid-column: 1 / -1;
    justify-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .item-side strong,
  .item-side .pill {
    justify-self: start;
  }

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

}
