:root {
  --primary: var(--coral, #ff6b6b);
  --primary-strong: var(--coral-dark, #d94a4a);
  --primary-container: var(--coral-pale, #fff0ed);
  --primary-border: #fecaca;
  --on-primary: var(--white, #fff);
  --surface: var(--cream, #f6f3eb);
  --surface-container: var(--paper, #fffdf8);
  --outline: var(--line, #d8ddd7);
  --on-surface: var(--ink, #172b2d);
  --on-variant: var(--soft, #4b5f61);
  --success: #059669;
  --success-container: #ecfdf5;
  --warning: #d97706;
  --error: #dc2626;
  --scrim: rgba(24, 24, 27, 0.32);
  --page-bg: var(--paper, #fffdf8);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--page-bg);
  color: var(--on-surface);
}

.process-site-header {
  position: relative;
  height: 86px;
  background: var(--surface);
  color: var(--on-surface);
  font-family: "DM Sans", sans-serif;
}

.process-site-header .logo {
  color: var(--on-surface);
}

.process-footer {
  margin-top: 0;
  font-family: "DM Sans", sans-serif;
}

.process-footer a {
  color: inherit;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }

.page { max-width: 1280px; margin: 0 auto; padding: 28px 20px 72px; }
.crumb { font-size: 12px; font-weight: 600; color: var(--on-variant); margin-bottom: 10px; }
.crumb a { color: var(--primary); }
h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.02em; }
.lede { color: var(--on-variant); font-size: 14px; line-height: 1.5; margin: 0 0 22px; max-width: 52rem; }

.process-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.process-nav a {
  border: 1px solid var(--outline); background: #fff; border-radius: 999px;
  padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--on-variant);
}
.process-nav a.on, .process-nav a:hover {
  background: var(--primary-container); border-color: var(--primary); color: var(--primary-strong);
}

.flow {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x proximity;
}
.step {
  flex: 0 0 auto; width: 292px; scroll-snap-align: start;
}
.step-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--on-variant); margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.step-label .n {
  width: 22px; height: 22px; border-radius: 999px; background: var(--primary);
  color: #fff; display: grid; place-items: center; font-size: 11px;
}

.phone {
  width: 292px; height: 600px; background: var(--surface);
  border-radius: 30px; border: 9px solid #27272a; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.status {
  height: 22px; padding: 5px 14px 0; display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 600; background: var(--surface-container); flex-shrink: 0;
}
.topbar {
  background: var(--surface-container); padding: 2px 8px 8px;
  border-bottom: 1px solid var(--outline); flex-shrink: 0;
}
.topbar.large h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 8px 0; }
.topbar.nav-row {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 10px;
}
.topbar.nav-row h2 { font-size: 16px; font-weight: 800; margin: 0; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--outline);
  background: #fafafa; display: grid; place-items: center; font-size: 14px; color: #52525b;
}

.body { flex: 1; overflow: auto; padding: 10px 12px 84px; }
.body.white { background: #fff; padding-bottom: 100px; }
.section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--on-variant); margin: 8px 0 8px;
}

.card {
  background: var(--surface-container);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
}
.card.featured { padding: 14px; }
.card.row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; }
.kicker { font-size: 11px; color: var(--on-variant); font-weight: 600; }
.big { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 10px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.btn {
  height: 36px; border-radius: 10px; border: none; font-weight: 700; font-size: 12px;
  cursor: default; padding: 0 12px;
}
.btn.filled { background: var(--primary); color: var(--on-primary); }
.btn.tonal { background: var(--primary-container); color: var(--primary-strong); }
.btn.text { background: transparent; color: var(--primary); }
.btn.block { width: 100%; height: 44px; font-size: 14px; margin-top: 8px; }
.btn.disabled { background: #e4e4e7; color: #a1a1aa; }

.leading {
  width: 40px; height: 40px; border-radius: 999px; background: var(--primary-container);
  color: var(--primary-strong); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.leading.date {
  border-radius: 10px; background: #fafafa; border: 1px solid var(--outline); color: var(--on-variant);
  font-size: 9px; font-weight: 700; text-align: center; line-height: 1.15; padding-top: 6px;
}
.leading.date b { display: block; font-size: 14px; color: var(--on-surface); }
.leading.icon { border-radius: 10px; font-size: 16px; }
.mid { flex: 1; min-width: 0; }
.mid .t1 { font-size: 13px; font-weight: 700; }
.mid .t2 { font-size: 11px; color: var(--on-variant); margin-top: 2px; }
.trail { text-align: right; flex-shrink: 0; }
.trail .money { font-weight: 800; font-size: 13px; }
.chip-status {
  display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 2px 7px; border-radius: 5px; margin-top: 3px;
}
.chip-status.pending { background: #fffbeb; color: var(--warning); }
.chip-status.ok { background: var(--success-container); color: var(--success); }
.chip-status.brand { background: var(--primary-container); color: var(--primary-strong); }
.chip-status.info { background: #eff6ff; color: #2563eb; }
.chip-status.warn { background: #fff7ed; color: #c2410c; }

.tabs {
  display: flex; border-bottom: 1px solid var(--outline); background: var(--surface-container); padding: 0 6px;
  flex-shrink: 0;
}
.tabs button {
  flex: 1; border: none; background: transparent; padding: 11px 4px; font-size: 11px; font-weight: 650;
  color: var(--on-variant); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }

.search {
  margin: 8px 0 4px; height: 40px; border: 1px solid var(--outline); border-radius: 10px;
  background: var(--surface-container); display: flex; align-items: center; gap: 8px; padding: 0 12px;
  color: var(--on-variant); font-size: 12px;
}

.fab {
  position: absolute; right: 14px; bottom: 70px; height: 48px; padding: 0 16px 0 14px;
  border-radius: 14px; border: none; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: 6px; z-index: 5;
}

.nav {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: var(--surface-container); border-top: 1px solid var(--outline);
  display: flex; z-index: 4;
}
.nav span {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 9px; font-weight: 600; color: var(--on-variant); padding-bottom: 4px;
}
.nav span.on { color: var(--primary); }
.nav .dot { width: 18px; height: 2px; border-radius: 999px; background: transparent; margin-bottom: 1px; }
.nav span.on .dot { background: var(--primary); }

.field {
  border: 1px solid var(--outline); border-radius: 10px; min-height: 48px; padding: 7px 10px;
  display: flex; flex-direction: column; justify-content: center; margin-bottom: 8px; background: #fff;
}
.field label { font-size: 10px; font-weight: 600; color: var(--on-variant); }
.field .val { font-size: 14px; font-weight: 600; margin-top: 1px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: none; padding: 0; background: transparent; min-height: 0; }
.field.row2 .field { margin: 0; }

.wizard-progress {
  display: flex; gap: 6px; padding: 8px 16px 4px; background: #fff;
}
.wizard-progress i {
  flex: 1; height: 4px; border-radius: 999px; background: #e4e4e7;
}
.wizard-progress i.on { background: var(--primary); }

.footer-cta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px 18px;
  background: rgba(255,255,255,0.95); border-top: 1px solid var(--outline); z-index: 5;
}

.hero-mark {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary-container);
  border: 1px solid var(--primary-border); display: grid; place-items: center; font-size: 22px; color: var(--primary);
  margin-bottom: 12px;
}
.headline { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 8px; }
.headline .accent { color: var(--primary); }
.sub { font-size: 13px; color: var(--on-variant); line-height: 1.45; margin: 0 0 14px; }

.day-strip { display: flex; gap: 5px; padding: 6px 10px 10px; background: var(--surface-container); overflow-x: auto; border-bottom: 1px solid var(--outline); }
.day {
  width: 38px; height: 48px; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 10px; color: var(--on-variant); flex-shrink: 0;
}
.day.on { background: var(--primary); color: #fff; font-weight: 700; }
.day b { font-size: 13px; }

.sheet-scrim {
  position: absolute; inset: 0; background: var(--scrim); display: flex; align-items: flex-end; z-index: 10;
}
.sheet {
  width: 100%; background: var(--surface-container); border-radius: 22px 22px 0 0;
  padding: 6px 14px 22px;
}
.handle { width: 36px; height: 3px; background: #d4d4d8; border-radius: 999px; margin: 6px auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 17px; }
.sheet p { margin: 0 0 12px; color: var(--on-variant); font-size: 12px; line-height: 1.4; }

.icon-actions { display: flex; gap: 5px; }
.icon-actions i {
  width: 36px; height: 36px; border-radius: 999px; background: var(--primary-container);
  color: var(--primary-strong); display: grid; place-items: center; font-size: 14px; font-style: normal; font-weight: 700;
}
.icon-actions i.deny { background: #fef2f2; color: var(--error); }

.profile-header { text-align: center; padding: 6px 0 12px; }
.avatar-lg {
  width: 64px; height: 64px; border-radius: 999px; background: var(--primary-container);
  color: var(--primary-strong); display: grid; place-items: center; font-size: 22px; font-weight: 800; margin: 0 auto 8px;
  border: 3px solid #fff;
}
.group-card { padding: 0; overflow: hidden; }
.group-card .card.row { margin: 0; border: none; border-radius: 0; border-bottom: 1px solid var(--outline); }
.group-card .card.row:last-child { border-bottom: none; }

.notes {
  background: #fff; border: 1px solid var(--outline); border-radius: 14px; padding: 14px;
  font-size: 13px; line-height: 1.5; color: var(--on-variant); margin-top: 24px;
}
.notes h2 { font-size: 14px; color: var(--on-surface); margin: 0 0 8px; }
.notes ul { margin: 0; padding-left: 18px; }
.notes li { margin-bottom: 6px; }
.notes strong { color: var(--on-surface); }

.hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.hub-card {
  background: #fff; border: 1px solid var(--outline); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px; min-height: 168px;
}
.hub-card:hover { border-color: var(--primary); }
.hub-card .num {
  width: 28px; height: 28px; border-radius: 999px; background: var(--primary-container);
  color: var(--primary-strong); display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.hub-card h2 { font-size: 16px; margin: 0; letter-spacing: -0.02em; }
.hub-card p { margin: 0; font-size: 13px; color: var(--on-variant); line-height: 1.45; flex: 1; }
.hub-card .meta { font-size: 11px; font-weight: 700; color: var(--primary); }

.map {
  background: #fff; border: 1px solid var(--outline); border-radius: 16px; padding: 16px 18px;
  margin-bottom: 22px; font-size: 13px; line-height: 1.55; color: var(--on-variant);
}
.map strong { color: var(--on-surface); }
.map code {
  font-size: 11px; background: #f4f4f5; border-radius: 4px; padding: 1px 5px; color: #3f3f46;
}

.design-principles { margin: 0 0 28px; }
.design-principles > h2 { margin: 0 0 14px; font-size: 18px; }
.design-principles > div { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--outline); border-left: 1px solid var(--outline); }
.design-principles article { min-height: 175px; padding: 18px; display: flex; flex-direction: column; border-right: 1px solid var(--outline); border-bottom: 1px solid var(--outline); background: var(--surface-container); }
.design-principles article span { color: var(--primary); font-size: 10px; font-weight: 800; }
.design-principles article h3 { margin: auto 0 8px; font-size: 15px; }
.design-principles article p { margin: 0; color: var(--on-variant); font-size: 12px; line-height: 1.55; }
.design-principles__note { margin: 0; padding: 13px 15px; background: var(--primary-container); color: var(--on-variant); font-size: 11px; line-height: 1.55; }
.design-principles__note strong { color: var(--on-surface); }

.design-intent { margin: 18px 0 24px; padding: 22px; background: var(--on-surface); color: #fff; border-top: 4px solid var(--primary); }
.design-intent > span { color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.design-intent h2 { max-width: 760px; margin: 28px 0 10px; color: #fff; font-size: 21px; line-height: 1.25; }
.design-intent p { max-width: 850px; margin: 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.65; }
.design-intent small { display: block; margin-top: 18px; color: rgba(255,255,255,.5); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }

.otp-row { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.otp-row span {
  width: 36px; height: 44px; border: 2px solid var(--outline); border-radius: 10px;
  display: grid; place-items: center; font-size: 18px; font-weight: 800;
}
.otp-row span.filled { border-color: var(--primary); }

.success-mark {
  width: 72px; height: 72px; border-radius: 999px; background: var(--success-container); color: var(--success);
  display: grid; place-items: center; font-size: 32px; margin: 40px auto 16px;
}

.muted { color: var(--on-variant); font-size: 12px; }
.center { text-align: center; }
.mt { margin-top: 10px; }
.mb0 { margin-bottom: 0; }

/* —— Live app patterns (match Expo UI, not MD3 redesign) —— */
.greet { padding: 14px 14px 6px; }
.greet .hi { font-size: 11px; font-weight: 500; color: var(--on-variant); margin: 0 0 2px; }
.greet .name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.greet.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.invite-pill {
  margin-top: 2px; padding: 5px 10px; border-radius: 999px;
  background: var(--primary-container); border: 1px solid var(--primary-border);
  color: var(--primary); font-size: 10px; font-weight: 800; white-space: nowrap;
}

.coral-hero {
  background: var(--primary); border-radius: 22px; padding: 18px 16px;
  color: #fff; margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.28);
}
.coral-hero .label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9); margin-bottom: 6px;
}
.coral-hero .amount {
  display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px;
}
.coral-hero .amount .sym { font-size: 18px; font-weight: 600; color: rgba(255,255,255,0.9); }
.coral-hero .amount .num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.coral-hero .hint { font-size: 12px; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.coral-hero .cta {
  width: 100%; height: 42px; border: none; border-radius: 12px;
  background: #fff; color: var(--primary); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.coral-cash {
  background: var(--primary); border-radius: 16px; padding: 16px;
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; box-shadow: 0 8px 18px rgba(255, 107, 107, 0.25);
}
.coral-cash .label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8); margin-bottom: 2px;
}
.coral-cash .num { font-size: 22px; font-weight: 800; }
.coral-cash .hint { font-size: 10px; color: rgba(255,255,255,0.8); margin-top: 2px; }
.coral-cash .cta {
  background: #fff; color: var(--primary); border: none; border-radius: 10px;
  padding: 9px 12px; font-weight: 800; font-size: 11px; white-space: nowrap;
}

.metrics { display: flex; gap: 8px; margin-bottom: 8px; }
.metrics .card { flex: 1; margin-bottom: 0; }
.metrics .card .kicker { margin-bottom: 2px; }
.metrics .card .val { font-size: 15px; font-weight: 800; }

.nav-tiles { display: flex; gap: 8px; margin-bottom: 12px; }
.nav-tiles .card {
  flex: 1; margin-bottom: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 12px;
}
.nav-tiles .card .t1 { font-size: 12px; }
.nav-tiles .chev { color: #a1a1aa; font-size: 14px; }

.clock-wrap { display: flex; flex-direction: column; align-items: center; padding: 10px 0 14px; }
.clock-btn {
  width: 148px; height: 148px; border-radius: 999px; background: #fff;
  border: 4px solid #fff; box-shadow: 0 8px 20px rgba(24,24,27,0.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.clock-btn .disc {
  width: 52px; height: 52px; border-radius: 999px; background: var(--primary-container);
  display: grid; place-items: center; color: var(--primary); font-size: 20px; font-weight: 800; margin-bottom: 2px;
}
.clock-btn .disc.on { background: var(--success-container); color: var(--success); }
.clock-btn .lbl { font-size: 15px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.clock-btn .lbl.on { color: var(--success); }
.clock-btn .time { font-size: 11px; color: #a1a1aa; font-weight: 600; }
.break-pill {
  margin-top: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--outline);
  background: #fff; font-size: 11px; font-weight: 700; color: #3f3f46;
}

.pill-tabs { display: flex; gap: 8px; padding: 0 12px 10px; flex-shrink: 0; overflow-x: auto; }
.pill-tabs span {
  padding: 8px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: #fff; border: 1px solid var(--outline); color: #52525b; white-space: nowrap;
}
.pill-tabs span.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.title-xl {
  font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 0; padding: 12px 14px 8px;
}

.fab-pill {
  position: absolute; right: 14px; bottom: 72px; height: auto; padding: 12px 18px;
  border-radius: 999px; border: none; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 12px; z-index: 5;
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.35);
}

.badge-active {
  background: #ffe3e3; color: #e03a3a; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
}

.card { box-shadow: 0 1px 2px rgba(24,24,27,0.04); }
.card.featured { box-shadow: none; }

/* Schedule shift cards (match EmployeeScheduleView / OwnerScheduleView) */
.shift {
  background: #fff; border: 1px solid #f4f4f5; border-radius: 14px;
  overflow: hidden; display: flex; margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(24,24,27,0.04);
}
.shift .bar { width: 5px; flex-shrink: 0; }
.shift .bar.mine { background: var(--primary); }
.shift .bar.open { background: #fbbf24; }
.shift .bar.assigned { background: #3b82f6; }
.shift .inner { flex: 1; padding: 12px 12px 12px 10px; }
.shift .title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.shift .title { font-size: 13px; font-weight: 700; }
.shift .loc { font-size: 11px; color: var(--on-variant); margin-top: 2px; }
.shift .hrs {
  background: #f4f4f5; color: #52525b; font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 7px;
}
.shift .foot {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #fafafa;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.shift .time { font-size: 12px; font-weight: 700; color: #27272a; }
.shift .decline { font-size: 12px; font-weight: 700; color: #ef4444; }
.shift .accept {
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 7px 14px; font-size: 11px; font-weight: 700;
}
.shift .assign {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 5px 12px; font-size: 10px; font-weight: 700;
}
.shift .who { font-size: 12px; font-weight: 700; }
.open-count {
  background: var(--primary-container); color: var(--primary);
  font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px;
}
.fab-round {
  position: absolute; right: 14px; bottom: 72px; width: 52px; height: 52px;
  border-radius: 999px; border: none; background: var(--primary); color: #fff;
  font-size: 24px; font-weight: 400; z-index: 5;
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.35);
  display: grid; place-items: center;
}
.day-strip.full {
  justify-content: space-between; padding: 10px 12px 12px; gap: 0;
}
.day-strip.full .day { width: 36px; height: 52px; border-radius: 12px; }

@media (max-width: 760px) {
  .design-principles > div { grid-template-columns: 1fr; }
  .design-principles article { min-height: 150px; }
}
