/* Stitchbook styles — Cobalt Fade (DM Sans).
   White page, cobalt blocks that fade into white (home visual, closing panel, app headers), sunny yellow used sparingly.
   Sections: tokens + base · shared sheets/forms/toasts (core.js, via --sb-* tokens) · design pieces · home page · sign in ·
   dashboard · tab pages · detail screens · bottom bar · dialog · motion · desktop. */

/* ===== tokens ===== */
:root {
  color-scheme: light;
  --cobalt: #2F5BEA; --logo-blue: #2350DD; --deep: #1E3FB8; --tint: #EAF0FF; --ring: #2953DE;
  --fade-1: #5F82F0; --fade-2: #AFC2FA; --fade-3: #E6ECFE; --hello: #E4EBFF;
  --sun: #FFC83D; --sun-deep: #8A5A00; --sun-tint: #FFF6DC;
  --ink: #0E1424; --grey: #667085; --black: #0B0D12; --white: #FFFFFF;
  --line: #ECEFF5; --line-2: #DCE1EB; --track: #E3E8F4; --soft: #F5F7FC;
  --green: #12B76A;
  --wa: #D9FDD3; --wa-ink: #2E6B3F;
  --late-bg: #FDECEA; --late-ink: #B42318; --late-text: #D92D20;
  --due-bg: #FFF2D6; --due-ink: #8A5300;
  --ok-bg: #E3F5EA; --ok-ink: #067647;
  --bar: rgba(255,255,255,.32);
  --scrim: rgba(11,13,18,.45);
  --shadow: 0 12px 32px rgba(22,44,120,.10);
  --float-shadow: 0 10px 26px rgba(16,32,96,.16);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --fade-head: linear-gradient(180deg, var(--cobalt) 0, var(--cobalt) calc(100% - 156px), var(--fade-1) calc(100% - 106px), var(--fade-2) calc(100% - 54px), var(--fade-3) calc(100% - 20px), var(--white) 100%);

  /* shared sheets and forms (core.js) */
  --sb-font: var(--font); --sb-ink: var(--ink); --sb-ink-2: var(--grey); --sb-ink-3: #98A2B3;
  --sb-line: var(--line); --sb-surface: var(--white); --sb-surface-2: var(--soft);
  --sb-field: var(--white); --sb-field-line: var(--line-2); --sb-focus: var(--cobalt); --sb-focus-ring: rgba(47,91,234,.18);
  --sb-primary: var(--black); --sb-primary-ink: var(--white);
  --sb-danger: var(--late-text); --sb-danger-bg: var(--late-bg); --sb-ok: var(--ok-ink); --sb-ok-bg: var(--ok-bg); --sb-warn: var(--due-ink); --sb-warn-bg: var(--due-bg);
  --sb-backdrop: var(--scrim);
  --sb-radius-sheet: 24px; --sb-radius-field: 14px; --sb-radius-btn: 999px; --sb-radius-chip: 999px;
  --sb-chip-on: var(--black); --sb-chip-on-ink: var(--white);
  --sb-wa: var(--black); --sb-wa-ink: var(--white);
  --sb-toast-bg: var(--black); --sb-toast-ink: var(--white);
  --sb-sheet-shadow: 0 -8px 30px rgba(11,13,18,.12);
  --sb-toast-bottom: calc(var(--nav-h) + 30px);
  --sb-label-size: 13px; --sb-label-weight: 600; --sb-label-case: none; --sb-label-track: 0;
  --sb-title-font: var(--font); --sb-title-size: 18px; --sb-title-weight: 700;
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { background: var(--white); color: var(--ink); }
body { margin: 0; font-family: var(--font); font-size: 13.5px; line-height: 1.5; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-i { width: 20px; height: 20px; flex: none; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sb-vh { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
html.sb-lock, html.sb-lock body, html.dlg-open, html.dlg-open body { overflow: hidden; }
.app { min-height: 100vh; min-height: 100dvh; }

/* ===== shared sheets (core.js) ===== */
.sb-sheet-wrap { position: fixed; inset: 0; z-index: 500; font-family: var(--sb-font); color: var(--sb-ink); }
.sb-backdrop { position: absolute; inset: 0; background: var(--sb-backdrop); opacity: 0; transition: opacity .22s ease; }
.sb-sheet {
  position: absolute; left: 0; right: 0; bottom: var(--sb-kb, 0px); margin-inline: auto; width: 100%; max-width: 480px;
  max-height: calc(var(--sb-vh, 100dvh) - 24px - var(--safe-t));
  display: flex; flex-direction: column; background: var(--sb-surface); color: var(--sb-ink);
  border-radius: var(--sb-radius-sheet) var(--sb-radius-sheet) 0 0; box-shadow: var(--sb-sheet-shadow);
  transform: translateY(104%); transition: transform .26s cubic-bezier(.2,.8,.2,1); outline: none; overflow: hidden;
}
.sb-sheet-wrap.open .sb-backdrop { opacity: 1; }
.sb-sheet-wrap.open .sb-sheet { transform: none; }
.sb-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 8px auto 0; flex: none; }
.sb-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 20px 8px; flex: none; }
.sb-sheet-titles { min-width: 0; padding-top: 6px; }
.sb-sheet-head h2 { margin: 0; font-family: var(--sb-title-font); font-size: var(--sb-title-size); font-weight: var(--sb-title-weight); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.sb-sheet-sub { margin: 3px 0 0; font-size: 13px; color: var(--grey); overflow-wrap: anywhere; }
.sb-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; margin-right: -4px; }
.sb-x .sb-i { width: 20px; height: 20px; }
.sb-sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 20px 24px; flex: 1 1 auto; min-height: 0; }
.sb-sheet-foot { flex: none; display: flex; gap: 10px; padding: 12px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--white); }
.sb-sheet-foot > * { flex: 1 1 0; min-width: 0; }
.sb-sheet-foot > .sb-btn-primary, .sb-sheet-foot > .sb-btn-wa, .sb-sheet-foot > .sb-btn-danger { flex-grow: 1.6; }
.sb-sheet-wrap:not(:has(.sb-sheet-foot)) .sb-sheet-body { padding-bottom: calc(24px + var(--safe-b)); }

/* buttons */
.sb-btn { min-height: 52px; padding: 0 18px; border-radius: var(--sb-radius-btn); font-weight: 600; font-size: 14.5px; border: 1.5px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; line-height: 1.1; text-align: center; white-space: nowrap; transition: transform .12s ease, background-color .15s ease; }
.sb-btn .sb-i { width: 19px; height: 19px; }
.sb-btn-primary { background: var(--black); border-color: var(--black); color: var(--white); }
.sb-btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.sb-btn-danger { background: var(--late-text); border-color: var(--late-text); color: #fff; }
.sb-btn-wa { background: var(--sb-wa); border-color: var(--sb-wa); color: var(--sb-wa-ink); }
.sb-btn:active { transform: scale(.98); }
.sb-btn-text { background: none; border: 0; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; justify-self: start; }
.sb-danger-text { color: var(--late-text); }
.sb-link { background: none; border: 0; padding: 4px 0 4px 8px; color: var(--cobalt); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; min-height: 32px; }
.sb-link .sb-i { width: 16px; height: 16px; }
.sb-btn-sm { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--sb-radius-btn); border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.sb-btn-sm .sb-i { width: 16px; height: 16px; }
.sb-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--track); border-top-color: var(--cobalt); animation: sbspin .8s linear infinite; flex: none; }
.sb-spin-sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,.35); border-top-color: currentColor; }
.sb-btn-ghost .sb-spin-sm, .sb-btn-text .sb-spin-sm, .btn-line .sb-spin-sm { border-color: rgba(14,20,36,.18); border-top-color: currentColor; }
@keyframes sbspin { to { transform: rotate(360deg); } }
.is-busy { opacity: .85; cursor: progress; }

/* forms */
.sb-form { display: grid; gap: 18px; min-width: 0; }
.sb-field { display: grid; gap: 6px; min-width: 0; margin: 0; align-content: start; }
.sb-label { font-size: var(--sb-label-size); font-weight: var(--sb-label-weight); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; }
.sb-opt { font-weight: 400; color: var(--grey); font-size: 12px; }
.sb-input {
  display: block; width: 100%; min-width: 0; font-size: 16px; line-height: 1.35; padding: 12px 16px; min-height: 52px;
  border-radius: var(--sb-radius-field); border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink);
  -webkit-appearance: none; appearance: none; transition: border-color .12s, box-shadow .12s;
}
.sb-input::placeholder { color: #98A2B3; opacity: 1; }
textarea.sb-input { min-height: 96px; resize: vertical; }
select.sb-input { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
input[type="date"].sb-input { min-height: 52px; text-align: left; }
input[type="date"].sb-input::-webkit-date-and-time-value { text-align: left; min-height: 1.35em; }
input[type="date"].sb-input::-webkit-calendar-picker-indicator { opacity: .6; }
.sb-input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--sb-focus-ring); }
.sb-affix { position: relative; min-width: 0; }
.sb-affix .sb-pre, .sb-affix .sb-suf { position: absolute; top: 50%; transform: translateY(-50%); color: var(--grey); pointer-events: none; font-size: 14.5px; }
.sb-affix .sb-pre { left: 16px; }
.sb-affix .sb-suf { right: 14px; font-size: 13px; }
.sb-affix.has-pre .sb-input { padding-left: 34px; }
.sb-affix.has-suf .sb-input { padding-right: 36px; }
.sb-field.invalid .sb-input { border-color: var(--late-text); box-shadow: 0 0 0 3px rgba(217,45,32,.12); }
.sb-err { margin: 0; color: var(--late-text); font-size: 13px; font-weight: 500; }
.sb-err:empty { display: none; }
.sb-help { margin: 0; font-size: 13px; color: var(--grey); line-height: 1.45; }
.sb-row2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; align-items: start; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-field .sb-chips { margin-top: 4px; }
.sb-paid-chips { margin-top: -8px; }
.sb-chip { min-height: 44px; padding: 0 16px; border-radius: var(--sb-radius-chip); border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-chip.on, .sb-chip[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.sb-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 22px; background: var(--soft); border: 1px solid var(--line); }
.sb-seg-btn { min-width: 0; min-height: 44px; padding: 0 2px; border-radius: 999px; border: 0; background: transparent; color: var(--grey); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-seg-btn[aria-checked="true"] { background: var(--black); color: var(--white); }
@media (max-width: 359px) { .sb-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sb-date-hint { font-weight: 600; color: var(--ink); }
.sb-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--soft); font-size: 13.5px; color: var(--grey); }
.sb-balance small { display: block; font-size: 12px; color: var(--grey); }
.sb-balance strong { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; letter-spacing: -.01em; }
.sb-balance.is-paid strong { color: var(--ok-ink); }
.sb-balance.is-bad strong { color: var(--late-text); font-size: 13.5px; }
fieldset.sb-meas-group { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.sb-meas-group legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.sb-meas-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; align-items: start; }
.sb-meas .sb-label { font-size: 13px; font-weight: 500; color: var(--grey); }
.sb-meas-intro { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--tint); color: var(--deep); border-radius: 14px; }
.sb-meas-intro b { color: var(--deep); }
.sb-meas-intro .sb-i { margin-top: 1px; color: var(--cobalt); }

/* photo */
.sb-photo-empty { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--soft); cursor: pointer; color: var(--ink); }
.sb-photo-empty .sb-i { width: 24px; height: 24px; color: var(--cobalt); }
.sb-photo-empty b { display: block; font-size: 13.5px; }
.sb-photo-empty small { display: block; color: var(--grey); font-size: 12px; margin-top: 2px; }
.sb-photo-has { position: relative; border-radius: 16px; overflow: hidden; background: var(--soft); }
.sb-photo-has img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.sb-photo-acts { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; }
.sb-photo-acts .sb-btn-sm { background: var(--white); border-color: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(11,13,18,.14); }
.sb-photo-full { display: block; width: 100%; border-radius: 16px; }

/* progress sheet */
.sb-steps { display: grid; gap: 8px; }
.sb-step { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; min-height: 64px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--white); text-align: left; cursor: pointer; color: var(--ink); }
.sb-step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--soft); color: var(--grey); flex: none; }
.sb-step-n .sb-i { width: 16px; height: 16px; stroke-width: 2.4; }
.sb-step.done .sb-step-n { background: var(--tint); color: var(--cobalt); }
.sb-step.on { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47,91,234,.14); }
.sb-step.on .sb-step-n { background: var(--cobalt); color: var(--white); }
.sb-step-t { flex: 1; min-width: 0; }
.sb-step-t b { display: block; font-size: 14.5px; font-weight: 700; }
.sb-step-t small { display: block; font-size: 13px; color: var(--grey); margin-top: 1px; }
.sb-step em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cobalt); }

/* payment */
.sb-pay-sum { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.sb-pay-sum > div { padding: 12px; border-radius: 14px; background: var(--soft); min-width: 0; }
.sb-pay-sum span { display: block; font-size: 12px; color: var(--grey); }
.sb-pay-sum b { display: block; font-size: 13.5px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sb-pay-sum > div:last-child { background: var(--tint); }
.sb-pay-sum > div:last-child span, .sb-pay-sum > div:last-child b { color: var(--deep); }

/* whatsapp */
.sb-wa { display: grid; gap: 16px; }
.sb-wa-to { display: flex; align-items: center; gap: 12px; }
.sb-wa-av { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--deep); display: grid; place-items: center; font-weight: 700; font-size: 13.5px; flex: none; }
.sb-wa-av .sb-i { width: 20px; height: 20px; }
.sb-wa-to b { display: block; font-size: 14.5px; font-weight: 700; }
.sb-wa-to small { display: block; color: var(--grey); font-size: 13px; }
.sb-wa-msg { min-height: 220px; line-height: 1.5; background: var(--wa); border-color: #BFEFB6; }
.sb-wa-msg:focus { background: var(--white); }

/* confirm */
.sb-confirm-text { margin: 0 0 4px; font-size: 14.5px; line-height: 1.5; color: var(--grey); }

/* toast */
.sb-toast { position: fixed; left: 50%; bottom: calc(var(--sb-toast-bottom) + var(--safe-b)); z-index: 900; transform: translate(-50%, 10px); opacity: 0; transition: opacity .18s, transform .18s; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); width: max-content; padding: 12px 16px; border-radius: 14px; background: var(--sb-toast-bg); color: var(--sb-toast-ink); font-family: var(--font); font-size: 13px; font-weight: 500; line-height: 1.35; box-shadow: 0 10px 26px rgba(11,13,18,.22); pointer-events: none; }
.sb-toast.in { opacity: 1; transform: translate(-50%, 0); }
.sb-toast-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.sb-toast.err .sb-toast-ic { background: var(--late-text); }
.sb-toast-ic .sb-i { width: 14px; height: 14px; stroke-width: 2.6; }
html.sb-lock .sb-toast { top: calc(14px + var(--safe-t)); bottom: auto; transform: translate(-50%, -10px); }
html.sb-lock .sb-toast.in { transform: translate(-50%, 0); }
.app.is-landing ~ .sb-toast, .app.is-auth ~ .sb-toast { --sb-toast-bottom: 24px; }
.app.has-dock ~ .sb-toast { --sb-toast-bottom: 96px; }

/* customer picker + account */
.sb-pick-wrap { display: grid; gap: 10px; }
.sb-pick-wrap .sb-affix .sb-pre { color: var(--grey); }
.sb-pick-wrap .sb-affix .sb-pre .sb-i { width: 18px; height: 18px; }
.sb-pick-wrap .sb-affix.has-pre .sb-input { padding-left: 44px; border-radius: 999px; }
.sb-pick-list { display: grid; gap: 2px; }
.sb-pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 8px; margin-inline: -8px; width: calc(100% + 16px); border: 0; background: none; text-align: left; cursor: pointer; border-radius: 16px; color: var(--ink); }
.sb-pick:active { background: var(--soft); }
.sb-pick > .sb-i { color: var(--grey); width: 18px; height: 18px; }
.sb-pick-t { flex: 1; min-width: 0; }
.sb-pick-t b { display: block; font-size: 14.5px; font-weight: 700; }
.sb-pick-t small { display: block; font-size: 13px; color: var(--grey); }
.sb-pick-new .sb-wa-av { background: var(--black); color: var(--white); }
.sb-pick-new .sb-wa-av .sb-i { width: 18px; height: 18px; }
.sb-pick-empty { padding: 16px 4px; }
.sb-acct { display: grid; gap: 14px; }
.sb-acct-av { background: var(--cobalt) !important; color: var(--white) !important; }
.sb-acct .sb-wa-to small { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .sb-sheet, .sb-backdrop, .sb-toast { transition: none !important; } }

/* ===== design pieces ===== */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); line-height: 1.3; }
.sec-title { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 6px; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-size: 14.5px; font-weight: 600; white-space: nowrap; text-decoration: none; line-height: 1.1; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 19px; height: 19px; }
.btn-black { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-line { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 13.5px; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn-full { width: 100%; }
.btn-tint { margin-top: 16px; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: 13.5px; font-weight: 600; transition: transform .12s ease; }
.btn-tint:active { transform: scale(.98); }
.btn-tint .ic { width: 18px; height: 18px; stroke-width: 2; }
.link-btn { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--cobalt); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-btn .ic { width: 17px; height: 17px; stroke-width: 2; }
.tile { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--tint); color: var(--cobalt); display: grid; place-items: center; }
.r-tile { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tint); color: var(--cobalt); display: grid; place-items: center; }
.r-tile .ic { width: 20px; height: 20px; }
.r-tile.pay { background: var(--ok-bg); color: var(--ok-ink); }
.r-tile.pay.neg { background: var(--soft); color: var(--grey); }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.pill-late { background: var(--late-bg); color: var(--late-ink); }
.pill-due { background: var(--due-bg); color: var(--due-ink); }
.pill-ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill-done { background: var(--soft); color: var(--grey); }
.pill-soft { background: var(--tint); color: var(--deep); }
.late { color: var(--late-text); font-weight: 600; white-space: nowrap; }
.paid { color: var(--ok-ink); font-weight: 700; }
.av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #FFFFFF 0%, #D3DEFF 100%); color: var(--deep); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; border: 0; padding: 0; }
.av.lg { width: 64px; height: 64px; font-size: 19.5px; }
.rings { position: absolute; pointer-events: none; color: var(--ring); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 72%); mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 72%); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -.025em; }
.tp-mark { display: block; width: 100%; height: 100%; }
.logo-mark { width: 32px; height: 32px; flex: none; color: var(--logo-blue); display: block; }
.logo-mark.lg { width: 60px; height: 60px; }
.boot-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--late-bg); color: var(--late-text); display: grid; place-items: center; }
.boot-ic .ic { width: 26px; height: 26px; }
.dh-brand { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--white); font-size: 18px; font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.dh-brand .tp-mark { width: 26px; height: 26px; flex: none; }
.ring-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--white); background: transparent; color: var(--white); display: grid; place-items: center; padding: 0; }
.ring-btn .ic { width: 20px; height: 20px; }
.chips { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips.scroll { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; overscroll-behavior-x: contain; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chip span { font-size: 12px; color: var(--grey); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.chip[aria-pressed="true"] span { color: #C4C9D4; }
.empty { padding: 28px 8px 12px; text-align: center; }
.empty-ic { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: var(--tint); color: var(--cobalt); display: grid; place-items: center; }
.empty h3 { margin-top: 12px; font-size: 14.5px; font-weight: 700; }
.empty p { margin: 4px auto 0; font-size: 13px; color: var(--grey); max-width: 32ch; }
.empty .btn { margin-top: 14px; }
.empty.in-card { padding: 4px 0 2px; }
.empty.in-card p { margin-top: 10px; }

/* list rows */
.rows { margin: 8px -8px 0; }
.rows.anim > li { animation: rowIn .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(min(var(--i, 0), 10) * 40ms); }
.row { width: 100%; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: center; min-height: 80px; padding: 12px 8px; border: 0; border-radius: 16px; background: transparent; text-align: left; color: var(--ink); transition: background-color .3s ease; }
.row.flash { background: var(--tint); }
.r-main { min-width: 0; }
.r-title, .r-sub { display: block; }
.r-title { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.r-sub { margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--grey); overflow-wrap: anywhere; }
.prog { display: flex; gap: 3px; max-width: 150px; margin-top: 8px; }
.prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--track); }
.prog i.on { background: var(--cobalt); }
.prog.late i.on { background: var(--late-text); }
.prog.ready i.on { background: var(--green); }
.r-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; }
.r-amt { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-amt.pos { color: var(--ok-ink); }
.r-amt.neg { color: var(--grey); }
.r-note { font-size: 12px; color: var(--grey); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-row, .c-row { min-height: 72px; }

/* ===== home page (visitors) ===== */
@keyframes rise { from { transform: translateY(12px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(-2.5deg); } 50% { transform: translateY(-5px) rotate(-2.5deg); } }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rowIn { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }

.land .wrap { max-width: 1080px; margin: 0 auto; padding: var(--safe-t) 20px 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.hgrid { display: grid; gap: 28px; grid-template-areas: "intro" "cta" "visual"; padding-block: 12px 8px; }
.h-intro { grid-area: intro; min-width: 0; }
.h-title { margin-top: 14px; font-size: clamp(32px, 8.4vw, 56px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.mark { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.mark-svg { position: absolute; z-index: -1; left: -5%; width: 110%; bottom: -.04em; height: .42em; overflow: visible; }
.mark-svg path { fill: none; stroke: var(--sun); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; animation: draw .7s cubic-bezier(.3,.7,.3,1) .3s both; }
.mark-svg path + path { animation-delay: .55s; }
.h-sub { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--grey); max-width: 34em; }
.h-cta { grid-area: cta; min-width: 0; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.hv { grid-area: visual; position: relative; overflow: hidden; border-radius: 28px; padding: 22px 18px 26px; min-width: 0;
  background: linear-gradient(180deg, var(--cobalt) 0, var(--cobalt) 150px, var(--fade-1) 232px, var(--fade-2) 322px, var(--fade-3) 404px, var(--white) 100%); }
.hv .rings { top: -70px; right: -90px; width: 360px; height: 360px; }
.hv-top { position: relative; display: flex; align-items: center; gap: 12px; color: var(--white); }
.hv-top > div { min-width: 0; flex: 1; }
.hv-shop { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.hv-loc { font-size: 12px; color: var(--hello); }
.hv-tag { flex: none; font-size: 12px; font-weight: 600; color: var(--white); border: 1.5px solid var(--hello); border-radius: 999px; padding: 3px 10px; }
.pc-wrap { position: relative; max-width: 360px; margin: 14px auto 0; padding-block: 44px 62px; }
.pcard { position: relative; z-index: 1; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: 20px 18px 18px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-label { font-size: 13px; color: var(--grey); font-weight: 500; }
.pc-chip { font-size: 12px; font-weight: 600; color: var(--deep); background: var(--tint); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pc-amt { margin-top: 4px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.pc-in { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ok-ink); }
.pc-eb { margin-top: 18px; }
.pc-list { margin-top: 4px; }
.mrow { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding-block: 10px; }
.float { position: absolute; z-index: 2; box-shadow: var(--float-shadow); }
.float-pay { top: 0; right: -6px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--white); transform: rotate(3deg); animation: floatA 6s ease-in-out infinite; }
.fl-check { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; }
.fl-check .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.float-pay b { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; }
.float-pay small { display: block; font-size: 12px; color: var(--grey); line-height: 1.3; }
.float-wa { bottom: 0; left: -6px; max-width: 250px; padding: 10px 12px 7px; border-radius: 16px 16px 16px 4px; background: var(--wa); transform: rotate(-2.5deg); animation: floatB 7s ease-in-out .6s infinite; }
.float-wa p { font-size: 13px; line-height: 1.4; color: var(--ink); }
.wa-meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 2px; font-size: 12px; color: var(--wa-ink); }
.wa-meta .ic { width: 16px; height: 16px; stroke-width: 2.2; }

.sec { margin-top: 56px; min-width: 0; }
.feat-list { margin-top: 14px; display: grid; gap: 4px; }
.feat { display: flex; align-items: flex-start; gap: 16px; padding-block: 12px; }
.feat h3 { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.feat p { margin-top: 3px; font-size: 13.5px; color: var(--grey); line-height: 1.5; }
.made { display: grid; gap: 12px; }
.made-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.ticker { overflow: hidden; margin-inline: -20px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.ticker-track { display: flex; width: max-content; animation: tick 32s linear infinite; }
.t-set { display: flex; gap: 10px; padding-right: 10px; }
.t-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.t-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }
.t-chip:nth-child(3n+2) { background: var(--tint); border-color: var(--tint); color: var(--deep); }
.steps { margin-top: 18px; display: grid; gap: 6px; }
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; padding-block: 10px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 58px; bottom: -6px; border-left: 2px dashed var(--fade-2); }
.step-n { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--cobalt); color: var(--white); display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.step-n .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.step h3 { font-size: 14.5px; font-weight: 700; line-height: 1.3; padding-top: 2px; }
.step p { margin-top: 3px; font-size: 13.5px; color: var(--grey); line-height: 1.5; }
.panel { position: relative; overflow: hidden; border-radius: 28px; padding: 36px 22px 30px;
  background: linear-gradient(180deg, var(--cobalt) 0, var(--cobalt) 130px, var(--fade-1) 196px, var(--fade-2) 250px, var(--fade-3) 296px, var(--white) 100%); }
.panel .rings { top: -110px; right: -120px; width: 380px; height: 380px; }
.panel > :not(.rings) { position: relative; }
.panel .eyebrow { color: var(--hello); }
.panel-title { margin-top: 8px; font-size: clamp(25px, 6.3vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--white); text-wrap: balance; max-width: 18em; }
.panel .cta-btns { margin-top: 26px; flex-direction: column; }
.note { margin-top: 16px; font-size: 13px; color: var(--grey); }
.foot { margin-top: 40px; border-top: 1px solid var(--line); padding-block: 22px calc(28px + var(--safe-b)); font-size: 12px; color: var(--grey); }

/* ===== sign in / create account ===== */
.auth { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(28px + var(--safe-b)); }
.auth-head { position: relative; overflow: hidden; padding: calc(16px + var(--safe-t)) 0 128px; color: var(--white); background: var(--fade-head); }
.auth-in { position: relative; max-width: 440px; margin: 0 auto; padding-inline: 16px; }
.auth-head .rings { top: -130px; right: -170px; width: 400px; height: 400px; }
.auth-top { position: relative; display: flex; align-items: center; gap: 12px; }
.logo-w .logo-mark { color: var(--white); }
.auth-h { position: relative; margin-top: 28px; font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.auth-p { position: relative; margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--hello); max-width: 34ch; }
.auth-body { margin-top: -92px; }
.auth-card { position: relative; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 16px 18px 20px; display: grid; gap: 18px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 3px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.seg button { min-width: 0; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--grey); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.auth-go { margin-top: 4px; }
.auth-foot { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--grey); }
.auth-foot .link-btn { font-size: 13.5px; }

/* ===== app headers (cobalt fading into white) ===== */
.col { position: relative; max-width: 480px; margin: 0 auto; padding-inline: 16px; }
.dhead { position: relative; overflow: hidden; padding-block: calc(18px + var(--safe-t)) 104px; color: var(--white); background: var(--fade-head); }
.dhead .rings { top: -120px; right: -150px; width: 400px; height: 400px; }
.dh-top { position: relative; display: flex; align-items: center; gap: 12px; }
.dh-hello { flex: 1; min-width: 0; }
.dh-greet { font-size: 13px; color: var(--hello); line-height: 1.35; }
.dh-shop { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.dh-bal { position: relative; margin-top: 24px; }
.dh-label { font-size: 13px; color: var(--hello); font-weight: 500; }
.dh-amt { display: flex; align-items: center; gap: 6px; margin-top: 2px; min-width: 0; }
.dh-amt output { min-width: 0; font-size: 37px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dh-amt output.long { font-size: 30px; }
.eye { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--white); display: grid; place-items: center; padding: 0; }
.dh-sub { font-size: 13px; color: var(--hello); margin-top: 2px; }
.dh-sub output { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }

.glance { position: relative; margin-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.owes { min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--white); text-align: left; }
.owes-label { font-size: 12px; color: var(--hello); font-weight: 500; }
.owes-row { display: flex; align-items: center; }
.owes-none { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13px; font-weight: 600; }
.owes-none .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.mini-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--cobalt); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.mini-av + .mini-av { margin-left: -7px; }
.mini-more { background: var(--white); color: var(--deep); }
.owes-row .ic { width: 18px; height: 18px; margin-left: 4px; stroke-width: 2.2; }
.wk { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.wk-pill { position: relative; display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.wk-pill::after { content: ""; position: absolute; right: 5px; bottom: -4px; width: 8px; height: 8px; background: var(--sun); transform: rotate(45deg); }
.wk-bars { display: flex; align-items: flex-end; gap: 7px; height: 42px; }
.wk-col { position: relative; width: 14px; height: 100%; display: flex; align-items: flex-end; }
.wk-bar { display: block; width: 100%; border-radius: 5px; background: var(--bar); transform-origin: bottom; }
.wk-col.today .wk-bar { background: var(--white); }
.wk-days { display: flex; gap: 7px; margin-top: 5px; }
.wk-days span { width: 14px; text-align: center; font-size: 12px; line-height: 1.2; color: var(--hello); }
.wk-days span.today { color: var(--white); font-weight: 700; }

.dh-actions { position: relative; display: flex; gap: 10px; margin-top: 20px; }
.pill-w { flex: 1 1 0; min-width: 0; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: transform .12s ease; }
.pill-w:active, .sq-black:active { transform: scale(.97); }
.pill-w .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.sq-black { flex: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--black); color: var(--white); display: grid; place-items: center; transition: transform .12s ease; }
.sq-black .ic { width: 20px; height: 20px; }

/* ===== dashboard body ===== */
.dbody { padding-bottom: calc(var(--nav-h) + 44px + var(--safe-b)); }
.insight { position: relative; z-index: 1; margin-top: -66px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.in-head { display: flex; align-items: center; gap: 12px; }
.in-chip { width: 40px; height: 40px; flex: none; border-radius: 13px; background: var(--cobalt); color: var(--white); display: grid; place-items: center; }
.in-chip .ic { width: 20px; height: 20px; }
.in-chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.in-chip.ok .ic { stroke-width: 2.4; }
.in-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; }
.badge-sun { flex: none; min-width: 28px; height: 28px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center; background: var(--sun-tint); color: var(--sun-deep); border: 1px solid #FFE6A6; font-size: 12px; font-weight: 700; }
.in-text { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--grey); }
.in-text b { color: var(--ink); font-weight: 600; }
.orders { margin-top: 34px; }
.see-all { margin-top: 6px; }

/* welcome (new account) */
.wl-intro { position: relative; margin-top: 24px; }
.wl-title { margin-top: 2px; font-size: 26.5px; font-weight: 700; letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; }
.welcome .in-text { margin-top: 10px; }
.wsteps { margin-top: 10px; display: grid; }
.ws { position: relative; display: flex; align-items: center; gap: 14px; padding-block: 10px; min-height: 64px; }
.ws:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: calc(50% + 26px); bottom: calc(-50% + 26px); border-left: 2px dashed var(--fade-2); }
.ws.off .step-n { background: var(--track); color: var(--grey); }
.ws.done .step-n { background: var(--ok-bg); color: var(--ok-ink); }
.ws-t { flex: 1; min-width: 0; }
.ws-t b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.ws-t small { display: block; font-size: 13px; color: var(--grey); line-height: 1.4; }
.ws.done .ws-t small { color: var(--ok-ink); font-weight: 600; }
.ws.off .ws-t { opacity: .7; }
.ws .btn { flex: none; padding: 0 16px; }

/* ===== tab pages (orders, activity, customers) ===== */
.page { max-width: 480px; margin: 0 auto; padding: calc(8px + var(--safe-t)) 16px calc(var(--nav-h) + 44px + var(--safe-b)); }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; padding-top: 8px; }
.ph-t { min-width: 0; }
.ph-title { margin-top: 4px; font-size: 26.5px; font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.av.acct-sm { background: var(--tint); }
.search { position: relative; display: flex; align-items: center; margin-top: 10px; }
.search > .ic { position: absolute; left: 17px; width: 20px; height: 20px; color: var(--grey); pointer-events: none; }
.search input { width: 100%; min-height: 52px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--white); padding: 0 50px 0 48px; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color .12s, box-shadow .12s; }
.search input::placeholder { color: #98A2B3; opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47,91,234,.16); }
.search .clr { position: absolute; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--grey); display: grid; place-items: center; }
.search .clr .ic { width: 18px; height: 18px; }
.res { margin-top: 14px; font-size: 13px; color: var(--grey); overflow-wrap: anywhere; }
.res + .rows { margin-top: 2px; }
.c-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.c-bar .chips { margin-top: 0; min-width: 0; }
.c-bar .btn { flex: none; padding: 0 16px; }
#clist .rows { margin-top: 10px; }

/* activity */
.act-sum { position: relative; overflow: hidden; margin-top: 10px; border-radius: 24px; padding: 20px 20px 22px; color: var(--white); background: var(--cobalt); }
.act-sum .rings { top: -96px; right: -120px; width: 360px; height: 360px; -webkit-mask-image: none; mask-image: none; }
.act-sum > p { position: relative; }
.as-label { font-size: 13px; font-weight: 500; color: var(--hello); }
.as-amt { margin-top: 2px; font-size: 32px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.as-sub { margin-top: 4px; font-size: 13px; color: var(--hello); font-variant-numeric: tabular-nums; }
.act-day { margin-top: 26px; }
.act-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); line-height: 1.3; }
.act-tot { letter-spacing: 0; text-transform: none; color: var(--grey); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.act-day .rows { margin-top: 4px; }

/* ===== detail screens ===== */
.dhead-sub .bar { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.bar-t { flex: 1; min-width: 0; text-align: center; font-size: 14.5px; font-weight: 600; }
.bar-sp { width: 44px; flex: none; }
.od-intro { position: relative; margin-top: 18px; }
.od-eb { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hello); line-height: 1.3; }
.od-title { margin-top: 6px; font-size: 26.5px; font-weight: 700; letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.od-cust { max-width: 100%; margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 4px; border: 1.5px solid var(--hello); border-radius: 999px; background: transparent; color: var(--white); font-size: 13.5px; font-weight: 600; text-align: left; }
.od-cust .mini-av { width: 32px; height: 32px; border: 0; font-size: 12px; }
.od-cn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-cust .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.od-body { padding-bottom: calc(110px + var(--safe-b)); }
.cv-body { padding-bottom: calc(40px + var(--safe-b)); }
.card { position: relative; margin-top: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-width: 0; }
.card.first { z-index: 1; margin-top: -66px; border-color: transparent; box-shadow: var(--shadow); }
.card.has-photo { padding: 8px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; margin-bottom: 12px; }
.card-h h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.card-h .link-btn { margin: -8px -4px -8px 0; }
.unit { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--grey); letter-spacing: 0; }
.od-photo { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 320px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--soft); }
.od-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-tag { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 12px; font-weight: 600; }
.od-tag .ic { width: 16px; height: 16px; }
.od-addph { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 14px 12px 12px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--soft); color: var(--ink); text-align: left; }
.od-addph .tile { width: 44px; height: 44px; background: var(--white); }
.od-addph > .ic { width: 20px; height: 20px; color: var(--grey); }
.od-addt { flex: 1; min-width: 0; }
.od-addt b { display: block; font-size: 13.5px; font-weight: 700; }
.od-addt small { display: block; font-size: 12px; color: var(--grey); }
.steps5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.steps5 li { min-width: 0; display: grid; gap: 7px; }
.steps5 i { display: block; height: 8px; border-radius: 4px; background: var(--track); }
.steps5 li.done i, .steps5 li.on i { background: var(--cobalt); }
.steps5.late li.done i, .steps5.late li.on i { background: var(--late-text); }
.steps5.ready li.done i, .steps5.ready li.on i { background: var(--green); }
.steps5 span { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps5 li.on span { color: var(--ink); font-weight: 700; }
.st-desc { margin-top: 14px; font-size: 13.5px; color: var(--grey); }
.st-desc b { color: var(--ink); font-weight: 700; }
.two { display: flex; gap: 10px; margin-top: 16px; }
.two .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
.two .btn-black { flex: 1.7 1 0; }
.m-lbl { font-size: 13px; color: var(--grey); font-weight: 500; }
.m-amt { margin-top: 2px; font-size: 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.m-amt.paid { color: var(--ok-ink); font-size: 25px; }
.m-bar { display: flex; height: 6px; margin-top: 12px; border-radius: 3px; background: var(--track); overflow: hidden; }
.m-bar i { display: block; border-radius: 3px; background: var(--cobalt); }
.m-bar.full i { background: var(--green); }
.sum { margin-top: 16px; background: var(--soft); border-radius: 16px; padding: 6px 16px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; font-size: 13.5px; }
.sum dt { color: var(--grey); }
.sum dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.sum .total { border-top: 1px solid var(--line-2); }
.sum .total dt { color: var(--ink); font-weight: 600; }
.sum .total dd { font-weight: 700; }
.dl-date { display: flex; align-items: center; gap: 14px; }
.dl-cal { width: 52px; height: 56px; flex: none; border-radius: 14px; background: var(--tint); color: var(--deep); display: grid; place-content: center; text-align: center; line-height: 1.1; }
.dl-cal small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dl-cal b { font-size: 19.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-t { min-width: 0; }
.dl-t b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.dl-t small { display: block; font-size: 13px; color: var(--grey); }
.dl-t small.late { color: var(--late-text); }
.mini-h { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.notes { margin-top: 6px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-h + .notes { margin-top: 0; }
.notes.muted { color: var(--grey); }
.plist { display: grid; }
.plist li { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding-block: 8px; }
.log { position: relative; display: grid; }
.log::before { content: ""; position: absolute; left: 5px; top: 20px; bottom: 20px; border-left: 2px dashed var(--fade-2); }
.log li { display: flex; align-items: center; gap: 14px; min-height: 40px; font-size: 13.5px; }
.log li i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--fade-2); }
.log li.now i { background: var(--cobalt); box-shadow: 0 0 0 4px var(--tint); }
.log li.now span { font-weight: 700; }
.log li span { flex: 1; min-width: 0; }
.log li small { font-size: 12px; color: var(--grey); white-space: nowrap; font-variant-numeric: tabular-nums; }

.dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + var(--safe-b)); }
.dock-in { max-width: 480px; margin: 0 auto; padding-inline: 16px; display: flex; gap: 10px; }
.dock-in .btn-black { flex: 1; min-width: 0; padding: 0 16px; }
.sq-line { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); display: grid; place-items: center; padding: 0; }
.sq-line .ic { width: 20px; height: 20px; }

/* customer detail */
.cv-prof { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.cv-t { min-width: 0; }
.cv-name { font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.cv-phone { margin-top: 2px; font-size: 13.5px; color: var(--hello); font-variant-numeric: tabular-nums; }
.cv-acts .pill-w { font-size: 13px; gap: 5px; padding: 0 8px; }
.cv-acts .pill-w .ic { width: 17px; height: 17px; }
.cv-note { margin-top: 10px; font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; }
.cv-calm { display: flex; align-items: center; gap: 14px; }
.cv-calm b { display: block; font-size: 14.5px; font-weight: 700; }
.cv-calm small { display: block; font-size: 13px; color: var(--grey); }
.cv-calm .in-chip:not(.ok) { background: var(--tint); color: var(--cobalt); }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mchip { min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--soft); }
.mchip span { display: block; font-size: 12px; line-height: 1.25; color: var(--grey); overflow-wrap: anywhere; }
.mchip b { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mchip b small { font-size: 12px; font-weight: 600; color: var(--grey); }
.m-note { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--tint); color: var(--deep); font-size: 13px; overflow-wrap: anywhere; }
.cv-orders { margin-top: 30px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-row .link-btn { margin-top: 6px; }

/* ===== bottom bar ===== */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.bnav-in { max-width: 480px; height: var(--nav-h); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 76px repeat(2, minmax(0, 1fr)); }
.nav-i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--grey); font-size: 12px; font-weight: 500; white-space: nowrap; }
.nav-i .ic { width: 23px; height: 23px; }
.nav-i[aria-current="page"] { color: var(--black); font-weight: 700; }
.nav-c { display: flex; justify-content: center; }
.fab { width: 58px; height: 58px; margin-top: -22px; border-radius: 50%; border: 4px solid var(--sun); background: var(--black); color: var(--white); display: grid; place-items: center; padding: 0; box-shadow: 0 0 0 4px var(--white); transition: transform .12s ease; }
.fab:active { transform: scale(.95); }
.fab .ic { width: 24px; height: 24px; stroke-width: 2.4; }

/* app sheets: create menu, record payment picker, send updates */
.menu { display: grid; gap: 2px; }
.mi { display: flex; align-items: center; gap: 14px; width: calc(100% + 16px); margin-inline: -8px; min-height: 72px; padding: 10px 8px; border: 0; border-radius: 16px; background: none; text-align: left; color: var(--ink); }
.mi-t { flex: 1; min-width: 0; }
.mi-t b { display: block; font-size: 14.5px; font-weight: 700; }
.mi-t small { display: block; font-size: 13px; color: var(--grey); }
.mi > .ic { width: 20px; height: 20px; color: var(--grey); }
.pk .search { margin: 0 0 6px; }
.pk-list { display: grid; }
.pk-row { width: calc(100% + 16px); margin-inline: -8px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 68px; padding: 10px 8px; border: 0; border-radius: 16px; background: none; text-align: left; color: var(--ink); }
.pk-empty { padding: 18px 4px; font-size: 13px; color: var(--grey); }
.up-list { display: grid; }
.up-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 72px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.up-row:last-child { border-bottom: 0; }
.wa-btn { padding: 0 16px; gap: 6px; }

/* ===== payment recorded dialog ===== */
.dlg-wrap { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 16px; background: var(--scrim); opacity: 0; transition: opacity .2s ease; font-family: var(--font); }
.dlg-wrap.on { opacity: 1; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; left: 50%; top: 44%; display: block; border-radius: 2px; }
.dlg { position: relative; z-index: 1; width: 100%; max-width: 360px; background: var(--white); border-radius: 24px; padding: 28px 22px 20px; text-align: center; transform: scale(.96); transition: transform .2s ease; }
.dlg-wrap.on .dlg { transform: none; }
.check { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; }
.check .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.dlg h2 { margin-top: 16px; font-size: 18px; font-weight: 700; }
.dlg p { margin-top: 6px; font-size: 13.5px; color: var(--grey); line-height: 1.5; }
.dlg p b { color: var(--ink); font-weight: 600; }
.dlg-btns { margin-top: 22px; display: grid; gap: 10px; }
.dlg-btns .btn { padding: 0 16px; }

/* ===== loading / offline ===== */
.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px 16px; text-align: center; }
.boot p { color: var(--grey); font-size: 13.5px; max-width: 32ch; }
.boot b { font-size: 16px; font-weight: 700; }

/* ===== hover (mouse and trackpad only, so tints don't stick after a tap) ===== */
@media (hover: hover) {
  .sb-btn-primary:hover { background: #22252E; }
  .sb-btn-ghost:hover { background: var(--soft); }
  .sb-chip:not(.on):not([aria-pressed="true"]):hover { background: var(--soft); }
  .sb-step:hover { background: var(--soft); }
  .sb-pick:hover { background: var(--soft); }
  .btn-black:hover { background: #22252E; }
  .btn-line:hover { background: var(--soft); }
  .btn-tint:hover { background: #DDE7FF; }
  .ring-btn:hover { background: var(--deep); }
  button.row:hover { background: var(--soft); }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .eye:hover { background: var(--deep); }
  .od-cust:hover { background: var(--deep); }
  .sq-line:hover { background: var(--soft); }
  .mi:hover { background: var(--soft); }
  .pk-row:hover { background: var(--soft); }
}

/* ===== small phones ===== */
@media (max-width: 380px) {
  .pill-w { font-size: 13px; gap: 4px; padding: 0 8px; }
  .pill-w .ic { width: 16px; height: 16px; }
  .cv-acts .pill-w .ic { display: none; }
  .wl-title, .od-title, .ph-title { font-size: 25px; }
}
@media (max-width: 359px) {
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-amt output { font-size: 32px; }
}

/* ===== motion ===== */
@media (prefers-reduced-motion: reduce) {
  *:not(.sb-spin), *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== desktop ===== */
@media (min-width: 900px) {
  .land .wrap { padding-inline: 32px; }
  .hgrid { grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto 1fr; column-gap: 72px; row-gap: 28px;
    grid-template-areas: "intro visual" "cta visual"; padding-block: 36px 0; }
  .h-intro { padding-top: 40px; }
  .pc-wrap .float-pay { right: -18px; }
  .pc-wrap .float-wa { left: -18px; }
  .sec { margin-top: 80px; }
  .feat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .made { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; }
  .ticker { margin-inline: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .step { flex-direction: column; gap: 14px; }
  .step:not(:last-child)::after { left: 60px; right: -14px; top: 31px; bottom: auto; border-left: 0; border-top: 2px dashed var(--fade-2); }
  .panel { padding: 56px 40px 40px; text-align: center; }
  .panel-title { margin-inline: auto; }
  .panel .cta-btns { flex-direction: row; justify-content: center; }
}

/* ===== agreement, policy links and policy sheets ===== */
.forgot-row { display: flex; justify-content: flex-end; margin: -16px -4px -10px 0; }
.agree-field { margin-top: -2px; }
.agree { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; font-size: 13px; line-height: 1.45; color: var(--ink); }
.agree-in { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; left: 0; top: 6px; cursor: pointer; }
.agree-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--white); display: grid; place-items: center; color: transparent; transition: background .12s, border-color .12s; }
.agree-box .sb-i, .agree-box svg { width: 14px; height: 14px; stroke-width: 2.6; }
.agree-in:checked + .agree-box { background: var(--black); border-color: var(--black); color: #fff; }
.agree-in:focus-visible + .agree-box { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.agree-field.invalid .agree-box { border-color: var(--late-text); }
.agree-t { flex: 1; min-width: 0; padding-top: 2px; }
.agree .link-btn, .legal-foot .link-btn { font: inherit; font-weight: 600; color: var(--cobalt-ink, var(--cobalt)); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 0; }
.legal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; margin: 18px 0 0; font-size: 12px; color: var(--grey); text-align: center; }
.legal-foot .link-btn { font-weight: 500; color: var(--grey); min-height: 32px; }
.foot .legal-foot { justify-content: flex-start; margin: 0; }
.sb-legal-sheet .sb-sheet { max-width: 640px; }
.legal { font-size: 14px; line-height: 1.6; color: var(--ink); padding-bottom: 8px; }
.legal h3 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; }
.legal p { margin: 0 0 10px; color: var(--ink); }
.legal ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; list-style: disc; }
.legal li { display: list-item; }
.legal li::marker { color: var(--cobalt); }
.nowrap { white-space: nowrap; }
.legal .legal-meta { color: var(--grey); font-size: 12px; margin-bottom: 12px; }

/* ===== reminders ===== */
.ring-btn.bell { position: relative; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--sun); color: var(--ink); border: 2px solid var(--cobalt); font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.insight + .insight { margin-top: 14px; box-shadow: none; border: 1px solid var(--line); }
.in-chip.due { background: var(--sun); color: var(--ink); }
.badge-due { flex: none; min-width: 28px; height: 28px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center; background: var(--late-bg); color: var(--late-ink); font-size: 12px; font-weight: 700; }
.rem-card .rems { margin-top: 10px; }
.rem-card .see-all { margin-top: 4px; }
.rems { display: grid; gap: 2px; }
.rem { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 6px; }
.rem-check { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; color: transparent; }
.rem-check .sb-i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; border: 1.8px solid var(--line-2); stroke-width: 2.6; transition: background .15s, border-color .15s, color .15s; }
.rem.due .rem-check .sb-i { border-color: var(--late-text); }
.rem-check[aria-pressed="true"] .sb-i { background: var(--ok-ink); border-color: var(--ok-ink); color: var(--white); }
.rem-main { min-width: 0; display: grid; gap: 1px; padding: 8px 6px 8px 0; min-height: 56px; border: 0; background: none; text-align: left; color: var(--ink); border-radius: 12px; align-content: center; }
.rem-t { font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.rem-s { font-size: 12.5px; color: var(--grey); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rem-when { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--grey); font-variant-numeric: tabular-nums; }
.rem-when .sb-i { width: 14px; height: 14px; }
.rem.due .rem-when { color: var(--late-text); font-weight: 600; }
.rem.done .rem-t { color: var(--grey); text-decoration: line-through; text-decoration-color: var(--line-2); }
.card .rems + .btn-tint, .card .notes + .btn-tint { margin-top: 12px; }
.rl-h { margin: 16px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.rl-push { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--tint); color: var(--deep); font-size: 13.5px; font-weight: 600; text-align: left; }
.rl-push span { flex: 1; }
.rl-push .sb-i { width: 18px; height: 18px; flex: none; }
.rl-push.on { background: var(--ok-bg); color: var(--ok-ink); }
.rl-empty { padding-block: 24px 8px; }

/* reminder in the new order form */
.sb-rem-add { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--white); text-align: left; color: var(--ink); }
.sb-rem-add > .sb-i { width: 18px; height: 18px; color: var(--grey); }
.sb-rem-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--sun-tint); color: var(--sun-deep); display: grid; place-items: center; }
.sb-rem-ic .sb-i { width: 20px; height: 20px; }
.sb-rem-t { flex: 1; min-width: 0; }
.sb-rem-t b { display: block; font-size: 14px; font-weight: 700; }
.sb-rem-t small { display: block; font-size: 12.5px; color: var(--grey); }
.sb-rem-box { display: grid; gap: 14px; padding: 14px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.sb-rem-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: -4px; }
.sb-rem-head .sb-label span { display: inline-flex; align-items: center; gap: 6px; }
.sb-rem-head .sb-label .sb-i { width: 16px; height: 16px; color: var(--sun-deep); }
.sb-rem-chips { gap: 6px; }
.sb-rem-chips .sb-chip { min-height: 40px; padding: 0 12px; font-size: 12.5px; }
.sb-rem-when { margin-top: -6px; min-height: 0; color: var(--deep); font-weight: 500; }
.sb-rem-when:empty { display: none; }
.rem-sheet .sb-rem-when { margin-top: -6px; }

/* ===== dashboard set-up card (install, notifications) ===== */
.setup { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin-top: 14px; padding: 16px 44px 16px 16px; border-radius: 20px; background: var(--tint); }
.welcome + .setup { margin-top: 14px; }
.setup-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--white); color: var(--cobalt); display: grid; place-items: center; }
.setup-ic .sb-i { width: 22px; height: 22px; }
.setup-t h2 { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.setup-t p { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.setup-t .btn { margin-top: 12px; }
.setup-t .btn .sb-i { width: 17px; height: 17px; }
.setup-x { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--grey); display: grid; place-items: center; }
.setup-x .sb-i { width: 18px; height: 18px; }

/* ===== install guide ===== */
.ig { display: grid; gap: 14px; }
.ig-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ig-steps { display: grid; gap: 4px; counter-reset: none; }
.ig-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 8px; }
.ig-n { width: 32px; height: 32px; border-radius: 50%; background: var(--cobalt); color: var(--white); display: grid; place-items: center; font-size: 13.5px; font-weight: 700; }
.ig-steps p { margin: 0; padding-top: 5px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.key { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: -4px 1px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line-2); color: var(--cobalt); vertical-align: middle; }
.key .sb-i { width: 16px; height: 16px; }
.ig-tip { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--sun-tint); color: var(--ink); font-size: 13px; line-height: 1.5; }
.ig-tip .sb-i { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--sun-deep); }
.ig-note { display: flex; gap: 8px; align-items: flex-start; }
.ig-note .sb-i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ig-done { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok-ink); }
.ig-done .sb-i { width: 22px; height: 22px; stroke-width: 2.4; }
.ig-done b { display: block; font-size: 14px; }
.ig-done small { display: block; font-size: 12.5px; }
.ig-now { width: 100%; }
.ig-or { margin-top: -4px; }
.ig-sec .ig-lead, .price-sec .ig-lead { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--grey); max-width: 40em; }
.ig-cards { margin-top: 18px; display: grid; gap: 14px; }
.ig-card { border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: var(--white); }
.ig-card-h { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.ig-card-h h3 { font-size: 16px; font-weight: 700; }
.ig-card-h p { font-size: 13px; color: var(--grey); }
.ig-card .tile .sb-i { width: 22px; height: 22px; }
.ig-now-land { margin: 6px 0 4px; }
.ig-sec .ig-tip { margin-top: 14px; }

/* ===== notifications sheet ===== */
.nt { display: grid; gap: 14px; }
.nt-status { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--soft); }
.nt-status.on { background: var(--ok-bg); }
.nt-status.warn { background: var(--due-bg); }
.nt-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--white); color: var(--cobalt); display: grid; place-items: center; }
.nt-status.on .nt-ic { color: var(--ok-ink); }
.nt-status.warn .nt-ic { color: var(--due-ink); }
.nt-status b { display: block; font-size: 14.5px; }
.nt-status small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.nt-row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.nt-row > span { flex: 1; min-width: 0; }
.nt-row b { display: block; font-size: 14px; }
.nt-row small { display: block; font-size: 12.5px; color: var(--grey); }
.nt-sw { -webkit-appearance: none; appearance: none; flex: none; width: 50px; height: 30px; margin: 0; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .18s; }
.nt-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(11,13,18,.25); transition: transform .18s; }
.nt-sw:checked { background: var(--ok-ink); }
.nt-sw:checked::after { transform: translateX(20px); }
.nt-sw:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; }
.nt-test, .nt-on { width: 100%; }

/* ===== Stitchbook Pro (coming soon) ===== */
.pro-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--tint); color: var(--ink); font-size: 13px; line-height: 1.5; }
.pro-note .sb-i { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--cobalt); }
.plans { margin-top: 14px; display: grid; gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 12px; background: var(--white); }
.plan.pro { border: 1.5px solid var(--cobalt); background: linear-gradient(180deg, var(--tint) 0, var(--white) 120px); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.plan.pro .plan-name { color: var(--deep); }
.plan-name .sb-i { width: 17px; height: 17px; }
.soon { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan-price { margin-top: 6px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 13px; color: var(--grey); }
.plan-list { margin-top: 10px; display: grid; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; padding-block: 6px; font-size: 13.5px; line-height: 1.45; }
.plan-list .sb-i { width: 18px; height: 18px; flex: none; color: var(--ok-ink); stroke-width: 2.4; margin-top: 1px; }
.pro-btn { width: 100%; margin-top: 16px; }
.pro-in { margin-top: 16px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok-ink); font-size: 13.5px; font-weight: 600; }
.pro-in .sb-i { width: 20px; height: 20px; stroke-width: 2.4; flex: none; }
.price-sec .plans { margin-top: 18px; }
@media (min-width: 600px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ig-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 900px) {
  .price-sec .plans { max-width: 760px; }
}

/* ===== customer type + own measurement lists ===== */
.sb-kind { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kind-tag { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: 11.5px; font-weight: 600; line-height: 18px; vertical-align: 1px; }
.kind-pill { display: inline-block; margin-right: 8px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.2); color: var(--white); font-size: 12px; font-weight: 600; line-height: 22px; }
.c-bar .chips { flex: 1; overflow-x: auto; margin-left: -16px; padding-left: 16px; overscroll-behavior-x: contain; }
.sb-meas .sb-label { min-height: 20px; }
.sb-meas-x { flex: none; width: 28px; height: 28px; margin: -6px -6px -6px 0; border: 0; border-radius: 50%; background: none; color: var(--grey); display: grid; place-items: center; }
.sb-meas-x .sb-i { width: 15px; height: 15px; }
.sb-meas-sheet fieldset.sb-meas-group { margin-top: 18px; }
.sb-addm-btn .sb-rem-ic { background: var(--tint); color: var(--cobalt); }
.sb-addm-row { display: flex; gap: 8px; }
.sb-addm-row .sb-input { flex: 1; min-width: 0; }
.sb-addm-row .sb-btn { flex: none; min-height: 50px; padding: 0 18px; }
.ms { display: grid; gap: 16px; }
.ms-block { display: grid; gap: 8px; }
.ms-list { display: grid; gap: 8px; }
.ms-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 36px 36px 36px; gap: 6px; align-items: center; }
.ms-n { font-size: 12px; font-weight: 600; color: var(--grey); text-align: right; font-variant-numeric: tabular-nums; }
.ms-in { min-height: 46px; padding-block: 10px; }
.ms-b { width: 36px; height: 44px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); display: grid; place-items: center; padding: 0; }
.ms-b:disabled { opacity: .35; }
.ms-b .sb-i { width: 17px; height: 17px; }
.ms-b[data-up] .sb-i { transform: rotate(90deg); }
.ms-b[data-down] .sb-i { transform: rotate(-90deg); }
.ms-del { color: var(--late-text); background: var(--late-bg); }
.ms-add { margin-top: 2px; }
.c-top { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.c-top .search { flex: 1; min-width: 0; margin-top: 0; }
.c-add { width: 52px; height: 52px; border-radius: 50%; }
.c-add .ic { width: 22px; height: 22px; stroke-width: 2.2; }

/* ===== customer type: three tick boxes ===== */
.kind-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kind-box { position: relative; min-width: 0; min-height: 92px; padding: 14px 6px 12px; border: 1.5px solid var(--line-2); border-radius: 18px; background: var(--white); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: border-color .12s, background-color .12s, transform .12s; }
.kind-box:active { transform: scale(.97); }
.kind-box[aria-checked="true"] { border: 2px solid var(--cobalt); background: var(--tint); padding: 13.5px 5.5px 11.5px; }
.kind-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--grey); display: grid; place-items: center; }
.kind-ic .sb-i { width: 30px; height: 30px; stroke-width: 1.6; }
.kind-box[aria-checked="true"] .kind-ic { background: var(--white); color: var(--cobalt); }
.kind-l { font-size: 14px; font-weight: 700; line-height: 1.2; }
.kind-tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white); color: transparent; display: grid; place-items: center; }
.kind-tick .sb-i { width: 14px; height: 14px; stroke-width: 2.8; }
.kind-box[aria-checked="true"] .kind-tick { border-color: var(--cobalt); background: var(--cobalt); color: var(--white); }
.sb-field.invalid .kind-box { border-color: var(--late-text); }
