/* The signed-in side: the sign-in sheet over the teaser, and the dashboard app.
   Loaded after app.css, so it shares its paper, ink, rust and type. */

@view-transition { navigation: auto; }

/* ---------- Landing: words on the left, Shabs on the right ---------- */
.welcome-body { overflow: hidden; height: 100vh; height: 100dvh; }
.welcome-split {
  --pad: clamp(20px, 4vh, 48px);
  height: 100vh; height: 100dvh; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(24px, 5vw, 88px);
  padding: var(--pad) clamp(24px, 6vw, 96px);
  transition: transform 0.6s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.5s ease, filter 0.6s ease;
}
.ws-copy { display: grid; gap: 26px; align-content: center; max-width: 38rem; }
.ws-copy .display { font-size: clamp(2.6rem, 6.2vw, 7.4rem); line-height: 0.86; letter-spacing: -0.05em; max-width: 8.5ch; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-actions .btn { min-width: 9.5rem; }
.ws-meta { font-size: 13.5px; color: var(--ink-soft); }
.ws-meta a { color: var(--ink-soft); }
.ws-meta a:hover { color: var(--ink); }
.ws-stage { position: relative; margin: 0; display: grid; place-items: center; }
.ws-stage::before {
  content: ""; position: absolute; inset: 8% -10% 4% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, oklch(0.52 0.13 45 / 0.12), transparent);
  filter: blur(20px);
}
.ws-stage img {
  display: block; width: auto; aspect-ratio: 2 / 3; object-fit: cover;
  height: min(calc(100vh - 2 * var(--pad)), 45vw * 1.5);
  height: min(calc(100dvh - 2 * var(--pad)), 45vw * 1.5);
  border-radius: 28px; background: var(--paper-2);
  box-shadow: 0 40px 80px -40px oklch(0.215 0.012 60 / 0.45), 0 0 0 1px oklch(0.215 0.012 60 / 0.06);
}
.ws-copy > * { animation: ws-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ws-copy > :nth-child(2) { animation-delay: 0.06s; }
.ws-copy > :nth-child(3) { animation-delay: 0.14s; }
.ws-copy > :nth-child(4) { animation-delay: 0.22s; }
.ws-copy > :nth-child(5) { animation-delay: 0.3s; }
.ws-stage img { animation: ws-photo 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes ws-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes ws-photo { from { opacity: 0; transform: scale(1.04); } }
.leaving .welcome-split { transform: scale(0.96); opacity: 0; filter: blur(6px); }
.leaving .sheet { opacity: 0; transition: opacity 0.4s ease; }
@media (max-width: 820px) {
  .welcome-split { grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 18px; text-align: center; }
  .ws-stage { order: -1; }
  .ws-stage img { height: min(42vh, 64vw * 1.5); height: min(42svh, 64vw * 1.5); border-radius: 22px; }
  .ws-copy { justify-items: center; gap: 14px; }
  .ws-copy .display { font-size: clamp(2.3rem, 11vw, 3.4rem); max-width: none; }
  .welcome-actions { justify-content: center; }
}

/* ---------- Sheet (sign in, confirm) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.sheet-backdrop { position: absolute; inset: 0; background: oklch(0.215 0.012 60 / 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.3s ease; }
.sheet-card {
  position: relative; width: min(100%, 440px); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--paper); border-radius: 26px; padding: 30px 26px 24px;
  box-shadow: 0 30px 80px -20px oklch(0.215 0.012 60 / 0.45), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-card { opacity: 1; transform: none; }
.sheet-body { display: grid; gap: 14px; }
.sheet-body h2 { font-size: clamp(1.8rem, 5vw, 2.3rem); margin-bottom: 2px; }
/* Sign up / sign in switch: a pill that slides between the two. */
.tabs.sliding { position: relative; }
.tabs.sliding button { position: relative; z-index: 1; transition: color 0.3s ease; }
.tabs.sliding button[aria-selected="true"] { background: none; box-shadow: none; }
.tabs.sliding button:active { transform: scale(0.96); }
.tabs.sliding button { transition: color 0.3s ease, transform 0.2s ease; }
.tab-pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--pill-w, 0px); transform: translateX(var(--pill-x, 0px));
  border-radius: 999px; background: var(--paper); box-shadow: 0 1px 3px oklch(0.215 0.012 60 / 0.12);
  transition: transform 0.46s cubic-bezier(0.3, 1.15, 0.4, 1), width 0.46s cubic-bezier(0.3, 1.15, 0.4, 1);
}
.tab-pill.still { transition: none; }
.welcome-body .sheet { place-items: start center; }
/* Rows stacked with margins rather than gap, so a row can fold all the way shut. */
.sheet-body.auth-body { display: flex; flex-direction: column; gap: 0; }
.auth-body > * + * { margin-top: 14px; }
.auth-body > .tabs { align-self: flex-start; }
.auth-body > .forgot-link { align-self: center; }
/* Words rolling over: the new line in the flow, the old one laid on top of it. */
.rolling { position: relative; }
.rolling > .roll-in { display: block; }
.rolling > .roll-out { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.rolling.btn > .roll-out, .rolling.link > .roll-out { bottom: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.rolling.link > .roll-out { left: -50%; right: -50%; }
@media (prefers-reduced-motion: reduce) { .tab-pill { transition: none; } }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-soft); }
.sheet-x:hover { background: var(--paper-3); color: var(--ink); }
.sheet-card .btn[type="submit"] { width: 100%; }
.sheet-done { display: grid; justify-items: center; gap: 8px; padding: 26px 0 14px; text-align: center; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.done-mark svg { width: 30px; height: 30px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.45s 0.2s ease forwards; }
.done-hi { font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 1.8rem; letter-spacing: -0.03em; margin-top: 6px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- App shell ---------- */
.app-body { height: 100vh; height: 100dvh; overflow: hidden; background: var(--paper); }
.shell { display: grid; grid-template-columns: 250px 1fr; height: 100%; }
.side {
  display: flex; flex-direction: column; gap: 30px;
  padding: 26px 16px 18px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  animation: side-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.side .mark { padding-inline: 10px; }
.side-nav { display: grid; gap: 4px; }
.side-nav button, .side-nav a {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border: 0; border-radius: 12px; background: none;
  font-size: 15px; font-weight: 600; color: var(--ink-soft); text-decoration: none; text-align: left; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-nav button:hover, .side-nav a:hover { background: oklch(0.215 0.012 60 / 0.05); color: var(--ink); }
.side-nav { position: relative; }
.side-nav > button, .side-nav > a { position: relative; z-index: 1; }
.side-nav [aria-current="page"] { color: var(--ink); }
/* One highlight that slides to whichever tab is open. */
.nav-pill {
  position: absolute; left: 0; top: 0; width: 100%; height: 44px; z-index: 0;
  border-radius: 12px; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 4px 12px -4px oklch(0.215 0.012 60 / 0.16);
  pointer-events: none;
}
.nav-pill.ready { transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1), height 0.45s cubic-bezier(0.2, 0.9, 0.2, 1), width 0.45s cubic-bezier(0.2, 0.9, 0.2, 1); }
.side-nav svg, .tabbar svg { width: 19px; height: 19px; flex: none; }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.me {
  display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0;
  padding: 10px; border: 0; border-radius: 16px; text-align: left; cursor: pointer;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.me:hover { box-shadow: 0 0 0 1px var(--line-2), 0 8px 18px -12px oklch(0.215 0.012 60 / 0.35); transform: translateY(-1px); }
.me[aria-expanded="true"] { box-shadow: 0 0 0 1.5px var(--ink); }
.me-text { display: grid; min-width: 0; flex: 1; }
.me-text b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text span { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-chev { width: 16px; height: 16px; flex: none; color: var(--ink-soft); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.me[aria-expanded="true"] .me-chev { transform: rotate(180deg); }

/* The account menu */
.me-menu {
  position: fixed; z-index: 70; display: grid; gap: 2px; padding: 8px;
  background: var(--paper); border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px oklch(0.215 0.012 60 / 0.45);
}
.me-menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.avatar.big { width: 44px; height: 44px; font-size: 16px; }
.me-menu [role="menuitem"] {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border: 0; border-radius: 12px; background: none;
  font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, padding 0.2s ease;
}
.me-menu [role="menuitem"]:hover, .me-menu [role="menuitem"]:focus-visible { background: var(--paper-2); outline: none; padding-left: 15px; }
.me-menu [role="menuitem"] svg { width: 19px; height: 19px; flex: none; color: var(--ink-soft); }
.me-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.me-menu .out { color: oklch(0.5 0.16 30); }
.me-menu .out svg { color: currentColor; }

.avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-weight: 750; font-stretch: 112%; font-size: 14px; letter-spacing: 0.02em;
}
.side-out { border: 0; background: none; padding: 8px 12px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-radius: 10px; }
.side-out:hover { color: var(--ink); background: oklch(0.215 0.012 60 / 0.05); }

.main { overflow-y: auto; overscroll-behavior: contain; padding: clamp(22px, 3.2vw, 44px) clamp(18px, 3.2vw, 48px) 60px; }
.main-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: clamp(22px, 3vw, 34px); animation: rise-in 0.6s 0.05s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.main-head h1 { font-family: var(--display); font-weight: 800; font-stretch: 122%; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 0.95; letter-spacing: -0.045em; margin-top: 6px; }

@keyframes side-in { from { opacity: 0; transform: translateX(-18px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.card {
  position: relative; min-width: 0;
  background: oklch(0.99 0.003 75); border-radius: 24px; padding: 22px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px oklch(0.215 0.012 60 / 0.25);
  animation: rise-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.1s + var(--i, 0) * 70ms);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 1.25rem; font-stretch: 110%; letter-spacing: -0.015em; }
.card-head .link { font-size: 14px; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }

/* The next call: the one dark card. */
.next { background: var(--ink); color: var(--paper); box-shadow: 0 24px 50px -24px oklch(0.215 0.012 60 / 0.6); display: grid; gap: 22px; align-content: space-between; min-height: 290px; overflow: hidden; }
.next::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.52 0.13 45 / 0.45), transparent 70%); pointer-events: none;
}
.next .label { color: oklch(0.972 0.006 75 / 0.6); }
.next-when { font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 0.98; letter-spacing: -0.035em; margin-top: 8px; }
.next-sub { color: oklch(0.972 0.006 75 / 0.7); margin-top: 8px; }
.with { display: flex; align-items: center; gap: 10px; font-size: 14px; color: oklch(0.972 0.006 75 / 0.75); }
.with img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 45%; box-shadow: 0 0 0 2px oklch(0.972 0.006 75 / 0.25); }
.count { display: flex; gap: 8px; }
.count div { min-width: 64px; padding: 10px 12px; border-radius: 14px; background: oklch(0.972 0.006 75 / 0.08); box-shadow: inset 0 0 0 1px oklch(0.972 0.006 75 / 0.12); }
.count b { display: block; font-family: var(--display); font-weight: 750; font-stretch: 112%; font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1; }
.count span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.972 0.006 75 / 0.6); }
.next-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; position: relative; z-index: 1; }
.next-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn.outline-light { background: transparent; color: var(--paper); border-color: oklch(0.972 0.006 75 / 0.35); }
.btn.outline-light:hover { background: oklch(0.972 0.006 75 / 0.12); border-color: var(--paper); }
.due-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: oklch(0.972 0.006 75 / 0.85); }
.due-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px oklch(0.52 0.13 45 / 0.3); }
.next-empty { display: grid; gap: 14px; align-content: center; }
.next-empty h3 { font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -0.035em; }

.grid-mini { display: grid; gap: 14px; }
.next-side { display: grid; gap: 12px; justify-items: end; }
@media (max-width: 860px) { .next-side { justify-items: start; } }
.settled .card, .settled .main-head, .settled .side { animation: none; }

/* At a glance */
.glance { display: grid; align-content: space-between; gap: 6px; }
.glance-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.glance-row:last-child { border-bottom: 0; }
.glance-row span { color: var(--ink-soft); font-size: 14px; }
.glance-row b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; text-align: right; }
.glance-row b small { font-family: var(--ui); font-size: 13px; color: var(--ink-soft); margin-left: 4px; }

/* Open times */
.days { display: grid; gap: 14px; }
.day-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px; align-items: center; }
.day-row > span { font-size: 14px; font-weight: 650; }
.day-row > span small { display: block; font-weight: 500; color: var(--ink-soft); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-weight: 620; font-stretch: 105%; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.slot:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-1px); }
@media (max-width: 560px) { .day-row { grid-template-columns: 1fr; } }

/* Call lists */
.mini-calls { display: grid; }
.mini { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini .d { text-align: center; line-height: 1; }
.mini .d b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.mini .d span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.mini strong { font-weight: 650; font-size: 15px; }
.mini p { font-size: 13px; color: var(--ink-soft); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.paid { background: var(--ink); }
.dot.pending { background: var(--accent); }
.dot.closed { background: var(--line-2); }

.full-calls { display: grid; gap: 12px; }
.call-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 20px; align-items: center; }
.call-card .d { width: 64px; height: 64px; border-radius: 18px; background: var(--paper-2); display: grid; place-items: center; align-content: center; line-height: 1; }
.call-card .d b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.call-card .d span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.call-card .info { display: grid; gap: 3px; min-width: 0; }
.call-card .info strong { font-family: var(--display); font-weight: 720; font-stretch: 110%; font-size: 1.1rem; }
.call-card .info p { font-size: 14px; color: var(--ink-soft); }
.call-card .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.call-card.past { opacity: 0.62; }
@media (max-width: 700px) {
  .call-card { grid-template-columns: auto 1fr; }
  .call-card .acts { grid-column: 1 / -1; justify-content: flex-start; }
}
.section-label { margin: 26px 0 12px; }

/* Book view: the calendar animates in place */
.cal-title { overflow: hidden; }
.cal-title span, .times-head h3 span { display: inline-block; }
.dow-row { margin-bottom: 4px; }
.cal-wrap, .times-wrap { position: relative; }
.cal-wrap > .leaving, .times-wrap > .leaving { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.times-col { display: grid; align-content: start; }
.cal .day { transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.cal .day.has:hover:not(.sel) { transform: translateY(-2px); box-shadow: 0 8px 16px -10px oklch(0.215 0.012 60 / 0.35); }
.cal .day.sel { box-shadow: 0 10px 22px -10px oklch(0.215 0.012 60 / 0.55); }
.cal-nav button { transition: background 0.2s, color 0.2s, transform 0.15s; }
.cal-nav button:active:not([disabled]) { transform: scale(0.92); }
.times .time { transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.times .time:hover:not(.taken) { transform: translateY(-2px); }

/* Book view */
.book-card { display: grid; grid-template-columns: 6fr 5fr; gap: 28px; }
@media (max-width: 1000px) { .book-card { grid-template-columns: 1fr; } }

/* Skeleton while loading */
.skeleton { background: linear-gradient(90deg, var(--paper-2) 0%, var(--paper-3) 50%, var(--paper-2) 100%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 24px; min-height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toasts */
.toasts { position: fixed; z-index: 80; right: 18px; bottom: 18px; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast-pop {
  pointer-events: auto; max-width: min(92vw, 380px);
  padding: 13px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); font-size: 14.5px;
  box-shadow: 0 16px 40px -16px oklch(0.215 0.012 60 / 0.6);
  animation: toast-in 0.4s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.toast-pop.out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* Confirm sheet extras */
.confirm-when { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 1.7rem; line-height: 1.02; letter-spacing: -0.03em; }
.confirm-price { display: flex; align-items: baseline; gap: 10px; }
.confirm-price b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.confirm-price s { color: var(--ink-faint); }
.confirm-price span { color: var(--accent); font-size: 14px; }

/* ---------- The booking questions ---------- */
.sheet-card.flow { width: min(100%, 520px); padding-top: 22px; }
.flow-top { display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding-right: 44px; }
.flow-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 8px 6px 0; font-weight: 600; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.flow-back span { font-size: 20px; line-height: 1; }
.flow-back:hover { color: var(--ink); }
.flow-count { font: 500 11px/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.flow-bar { height: 4px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 10px 0 22px; }
.flow-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.flow-stage { overflow: hidden; }
.flow-step { display: grid; gap: 14px; }
.flow-q { font-size: clamp(1.7rem, 4.6vw, 2.2rem); line-height: 1.02; }
.flow-options { display: grid; gap: 8px; margin-top: 4px; }
.flow-opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 54px; padding: 12px 16px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.flow-opt:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 16px -10px oklch(0.215 0.012 60 / 0.35); }
.flow-opt:active { transform: scale(0.99); }
.flow-opt i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; transition: background 0.18s ease, border-color 0.18s ease;
}
.flow-opt[role="checkbox"] i { border-radius: 7px; }
.flow-opt i::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform 0.22s cubic-bezier(0.2, 1.4, 0.4, 1); }
.flow-opt.on { border-color: var(--ink); background: var(--paper-2); }
.flow-opt.on i { background: var(--ink); border-color: var(--ink); }
.flow-opt.on i::after { transform: rotate(-45deg) scale(1); }
.flow-text { width: 100%; min-height: 140px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--paper); resize: vertical; font-size: 15.5px; line-height: 1.5; }
.flow-text:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.flow-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 6px; }
.flow-actions.center { justify-content: center; }
.flow-actions .btn[disabled] { opacity: 0.35; }
.flow-recap { display: grid; border-top: 1px solid var(--line); }
.flow-recap div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.flow-recap dt { font-size: 13px; color: var(--ink-soft); }
.flow-recap dd { font-size: 14.5px; white-space: pre-line; }
.flow-done { justify-items: center; text-align: center; padding: 10px 0 6px; }
.note-text { white-space: pre-line; }

/* ---------- Messages ---------- */
.badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: var(--paper); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.tabbar .badge { position: absolute; top: 2px; left: calc(50% + 4px); margin: 0; min-width: 18px; height: 18px; font-size: 10.5px; }
/* The conversation: fills the whole area, no page heading. */
.main.is-chat { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.main.is-chat .main-head { display: none; }
.main.is-chat [data-panel="messages"] { flex: 1; min-height: 0; display: flex; }
.msg-pane { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.msg-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.msg-head img, .msg-head .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.msg-head strong { font-family: var(--display); font-weight: 750; font-stretch: 112%; font-size: 1.1rem; letter-spacing: -0.01em; }
.msg-head .who { display: grid; }
.msg-head .who span { font-size: 13px; color: var(--ink-soft); }
.msg-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px clamp(16px, 3vw, 32px) 8px; }
.msg-inner { max-width: 760px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: flex-end; }
.msg-day { align-self: center; margin: 18px 0 8px; }
.msg-day span { display: inline-block; padding: 4px 11px; border-radius: 99px; background: var(--paper-2); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.msg { display: flex; flex-direction: column; max-width: min(76%, 520px); margin-top: 10px; }
.msg.follow { margin-top: 3px; }
.msg p { padding: 10px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: none; margin-top: 4px; padding-inline: 6px; font-size: 11px; color: var(--ink-faint); }
.msg.tail time { display: block; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine p { background: var(--ink); color: var(--paper); }
.msg.mine.tail p { border-bottom-right-radius: 6px; }
.msg.his { align-self: flex-start; }
.msg.his p { background: oklch(0.995 0.002 75); box-shadow: 0 0 0 1px var(--line), 0 1px 2px oklch(0.215 0.012 60 / 0.05); }
.msg.his.tail p { border-bottom-left-radius: 6px; }
.msg.sending { opacity: 0.5; }
.msg-seen { align-self: flex-end; margin: 2px 6px 0; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.msg-empty { margin: auto; display: grid; justify-items: center; gap: 4px; padding: 24px 0; text-align: center; }
.msg-empty img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.msg-empty strong { font-family: var(--display); font-weight: 780; font-stretch: 114%; font-size: 1.3rem; }
.msg-empty p { color: var(--ink-soft); }
.msg-ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.msg-ideas button { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; background: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.msg-ideas button:hover { background: var(--paper-2); border-color: var(--ink); }
.msg-compose { padding: 10px clamp(16px, 3vw, 32px) 18px; }
.msg-field {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 5px 5px 5px 18px; border-radius: 26px;
  background: oklch(0.995 0.002 75);
  box-shadow: 0 0 0 1px var(--line-2), 0 10px 26px -18px oklch(0.215 0.012 60 / 0.4);
  transition: box-shadow 0.2s ease;
}
.msg-field:focus-within { box-shadow: 0 0 0 1.5px var(--ink), 0 10px 26px -18px oklch(0.215 0.012 60 / 0.4); }
.msg-field textarea { flex: 1; min-height: 40px; max-height: 160px; padding: 9px 0; border: 0; background: none; resize: none; outline: none; font-size: 15.5px; line-height: 1.45; }
.msg-send {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: var(--paper);
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
}
.msg-send svg { width: 18px; height: 18px; }
.msg-send[disabled] { opacity: 0.2; cursor: default; }
.msg-send:not([disabled]):hover { background: var(--accent); }
.msg-send:not([disabled]):active { transform: scale(0.9); }
@media (max-width: 860px) { .msg { max-width: 84%; } .msg-compose { padding-bottom: 12px; } }

/* Shabs's inbox (admin) */
.inbox { display: grid; grid-template-columns: 320px 1fr; min-height: 560px; height: 70vh; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: oklch(0.99 0.003 75); }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 8px; display: grid; align-content: start; gap: 2px; }
.thread { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; transition: background 0.15s; }
.thread:hover { background: var(--paper-2); }
.thread.on { background: var(--paper-2); box-shadow: 0 0 0 1px var(--line-2); }
.thread-text { display: grid; min-width: 0; flex: 1; }
.thread-text b { font-size: 14.5px; }
.thread-text span { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread.unread .thread-text b, .thread.unread .thread-text span { color: var(--ink); font-weight: 700; }
.thread-meta { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--ink-soft); }
.thread-meta .badge { margin: 0; }
.inbox-convo { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.inbox-empty { margin: auto; padding: 20px; text-align: center; }
.adm-tabs .badge { margin-left: 6px; }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; height: auto; } .inbox-list { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); } .inbox-convo { height: 60vh; } }

/* ---------- Admin ---------- */
.span-3 { grid-column: span 3; }
.span-6 { grid-column: span 6; }
.small { font-size: 14px; }
.side-back { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.side-back:hover { color: var(--ink); background: oklch(0.215 0.012 60 / 0.05); }
.side-back svg { width: 16px; height: 16px; }
.stat { display: grid; gap: 6px; padding: 18px 20px; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.stat b { font-family: var(--display); font-weight: 780; font-stretch: 116%; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.empty-note { padding: 28px 4px; color: var(--ink-soft); text-align: center; }

/* Segmented filter */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.seg button span { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: oklch(0.215 0.012 60 / 0.08); font-size: 12px; font-variant-numeric: tabular-nums; }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px oklch(0.215 0.012 60 / 0.14); }

/* Booking rows */
.bcard { padding-bottom: 10px; }
.blist { display: grid; }
.blist-day { margin: 18px 0 6px; font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.blist-day:first-child { margin-top: 4px; }
.brow { border-radius: 16px; transition: background 0.2s ease, box-shadow 0.2s ease; }
.brow + .brow { margin-top: 2px; }
.brow.open { background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.brow-head {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto 4rem 18px; align-items: center; gap: 14px;
  width: 100%; padding: 14px 14px; border: 0; border-radius: 16px; background: none; text-align: left; cursor: pointer;
  transition: background 0.15s;
}
.brow:not(.open) .brow-head:hover { background: oklch(0.215 0.012 60 / 0.04); }
.brow-time { font-family: var(--display); font-weight: 720; font-stretch: 110%; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.brow-who { display: grid; min-width: 0; }
.brow-who b { font-weight: 650; }
.brow-who span { font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow-price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.brow-head svg { width: 16px; height: 16px; color: var(--ink-soft); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.brow.open .brow-head svg { transform: rotate(180deg); }
.brow-body { overflow: hidden; }
.brow-inner { padding: 4px 14px 16px; display: grid; gap: 14px; }
.brow-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; margin: 0; }
.brow-facts .wide { grid-column: 1 / -1; }
.brow-facts dt { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.brow-facts dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.brow-facts a { color: var(--ink); }
.brow-acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .brow-head { grid-template-columns: 4.2rem minmax(0, 1fr) auto 16px; }
  .brow-price { display: none; }
}

/* Switches */
.switch-btn {
  flex: none; position: relative; width: 44px; height: 26px; border-radius: 99px; border: 0; padding: 0;
  background: var(--paper-3); cursor: pointer; transition: background 0.25s ease;
}
.switch-btn i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px oklch(0.215 0.012 60 / 0.3); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1.2); }
.switch-btn.on { background: var(--ink); }
.switch-btn.on i { transform: translateX(18px); }
.switch-btn.big { width: 56px; height: 32px; }
.switch-btn.big i { width: 26px; height: 26px; }
.switch-btn.big.on i { transform: translateX(24px); }

/* Weekly hours */
.hscale { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 0 0 4px auto; width: min(34%, 260px); font-size: 11px; color: var(--ink-soft); }
.hscale span:nth-child(2) { text-align: center; }
.hscale span:nth-child(3) { text-align: right; }
.week { display: grid; }
.day-line { display: grid; grid-template-columns: 11rem minmax(0, 1fr) min(34%, 260px); gap: 12px 20px; align-items: center; padding: 14px 8px; border-top: 1px solid var(--line); border-radius: 12px; }
.day-line.off .day-name b { color: var(--ink-soft); }
.day-name { display: flex; align-items: center; gap: 12px; }
.day-name b { font-weight: 650; }
.ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.range input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); font-variant-numeric: tabular-nums; }
.range input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--ink-soft); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 14px; height: 14px; }
.add-range { font-size: 14px; }
.day-bar { display: grid; gap: 4px; }
.hbar { position: relative; height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.hbar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--ink); transition: left 0.3s, width 0.3s; }
.hcount { font-size: 12px; color: var(--ink-soft); text-align: right; min-height: 1em; }
.add-day { margin-top: 14px; }
@media (max-width: 860px) {
  .day-line { grid-template-columns: 1fr; }
  .hscale { display: none; }
}

/* Settings */
.taking { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.taking h2 { font-size: 1.25rem; font-stretch: 110%; }
.sgroup .card-head h2 { font-size: 1.15rem; }
.sfields { display: grid; gap: 16px; }
.affix { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.affix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.affix input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px; border: 0; background: none; outline: none; box-shadow: none !important; }
.affix em { font-style: normal; font-size: 14px; color: var(--ink-soft); padding: 0 12px; white-space: nowrap; }
.affix em:first-child { padding-right: 0; }
.affix em:last-child { padding-left: 0; }
@media (max-width: 860px) { .span-6, .span-3 { grid-column: span 12; } .stat.span-3 { grid-column: span 6; } }

/* People */
.search { min-height: 42px; width: min(100%, 300px); padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.search:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.card-head:has(.search) { flex-wrap: wrap; align-items: center; }
.plist { display: grid; }
.prow { padding: 12px 4px; border-top: 1px solid var(--line); }
.prow-main { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1.4fr) auto; align-items: center; gap: 14px; }
.prow-who { display: grid; min-width: 0; }
.prow-who b { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.prow-who span { font-size: 13.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.prow-meta a { color: var(--ink); }
.prow-acts { display: flex; gap: 8px; }
.prow-extra { padding: 10px 0 2px 52px; display: grid; gap: 6px; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
  .prow-main { grid-template-columns: auto minmax(0, 1fr); }
  .prow-meta, .prow-acts { grid-column: 2; }
  .prow-extra { padding-left: 0; }
}

/* The save bar */
.save-bar {
  position: fixed; z-index: 75; left: 50%; bottom: 24px; transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  box-shadow: 0 20px 50px -20px oklch(0.215 0.012 60 / 0.7);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.save-bar span { margin-right: 8px; }
.save-bar .btn.ghost { color: var(--paper); border-color: oklch(0.972 0.006 75 / 0.3); }
.save-bar .btn.ghost:hover { background: oklch(0.972 0.006 75 / 0.12); }
.save-bar .btn:not(.ghost) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.save-bar .btn:not(.ghost):hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
@media (max-width: 860px) { .save-bar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } .save-bar span { display: none; } }

/* The inbox, full height */
.main.is-chat .inbox { flex: 1; height: auto; min-height: 0; border-radius: 0; box-shadow: none; background: none; }
.main.is-chat .inbox-list { background: oklch(0.215 0.012 60 / 0.02); }

/* ---------- Sign-up extras ---------- */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); }

/* ---------- Booking flow: birthday and photo ---------- */
.flow-date { width: 100%; min-height: 54px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--paper); font-size: 16px; }
.flow-date:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.photo-drop {
  position: relative; width: 100%; min-height: 220px; margin-top: 4px;
  display: grid; place-items: center; align-content: center; gap: 6px;
  border: 1.5px dashed var(--line-2); border-radius: 20px; background: var(--paper);
  cursor: pointer; overflow: hidden; text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.photo-drop:hover { border-color: var(--ink); background: var(--paper-2); }
.photo-drop .photo-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); margin-bottom: 6px; }
.photo-drop .photo-icon svg { width: 24px; height: 24px; }
.photo-drop strong { font-size: 16px; }
.photo-drop .soft { font-size: 13.5px; }
.photo-drop.has { border-style: solid; border-color: var(--line); padding: 0; min-height: 0; }
.photo-drop.has img { display: block; width: 100%; max-height: 340px; object-fit: contain; background: var(--paper-2); }
.photo-change { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 99px; background: oklch(0.215 0.012 60 / 0.78); color: var(--paper); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.photo-drop.busy { opacity: 0.6; pointer-events: none; }
.recap-photo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }

/* ---------- The last step: confirm ---------- */
.flow-sum { gap: 16px; }
.sum-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--paper-2); }
.sum-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--paper); }
.sum-when { display: grid; gap: 2px; min-width: 0; }
.sum-when strong { font-family: var(--display); font-weight: 720; font-stretch: 110%; font-size: 1.12rem; letter-spacing: -0.01em; }
.sum-when span { font-size: 14px; color: var(--ink-soft); }
.sum-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px; }
.sum-total > span:first-child { display: grid; gap: 2px; font-weight: 600; }
.sum-total em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--accent); }
.sum-price { display: flex; align-items: baseline; gap: 8px; }
.sum-price s { font-size: 14px; color: var(--ink-faint); }
.sum-price b { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1; }
.sum-book { width: 100%; margin-top: 4px; }
.sum-fine { text-align: center; font-size: 13px; color: var(--ink-soft); }

.sheet-card.is-done .flow-top, .sheet-card.is-done .flow-bar { display: none; }
.sheet-card.is-done { padding-top: 34px; }
.flow-done { gap: 14px; }
.flow-done .sum-card { width: 100%; text-align: left; margin-top: 4px; }
.flow-done .done-mark { margin-bottom: 2px; }
.done-later { justify-self: center; font-size: 14px; margin-top: -2px; }

.mail-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.mail-row b { font-size: 15px; }
.forgot-link { justify-self: center; }

/* ---------- Moving a call ---------- */
.move-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 4px -2px 0; scrollbar-width: none; }
.move-days::-webkit-scrollbar { display: none; }
.move-day { flex: none; width: 58px; padding: 10px 0; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper); display: grid; justify-items: center; gap: 2px; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.move-day span { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.move-day b { font-family: var(--display); font-weight: 750; font-size: 1.3rem; }
.move-day.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.move-day.on span { color: oklch(0.972 0.006 75 / 0.7); }

/* ---------- Notifications ---------- */
.notify-list, .install-steps { display: grid; gap: 10px; margin: 4px 0 6px; }
.notify-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.notify-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.install-steps { list-style: decimal; padding-left: 22px; }
.install-steps li { font-size: 15px; padding-left: 4px; }
.notify-hint { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; }
.notify-hint p { flex: 1; font-size: 14.5px; color: var(--ink-soft); }
.notify-hint p b { color: var(--ink); }
.notify-bell { width: 38px; height: 38px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; flex: none; }
.notify-bell svg { width: 18px; height: 18px; }
.icon-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 20px; line-height: 1; color: var(--ink-soft); cursor: pointer; flex: none; }
.icon-x:hover { background: var(--paper-2); color: var(--ink); }
button.side-back { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
button.side-back svg { width: 18px; height: 18px; }

/* ---------- Admin: photos, decline, outcome ---------- */
.brow-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brow-photo, .avatar.tiny { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.tiny { font-size: 10.5px; }
.age { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--paper-2); color: var(--ink-soft); }
.brow.open .age { background: var(--paper); }
.photo-cell { grid-row: span 3; }
.photo-btn { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; display: block; }
.photo-btn img { width: 140px; height: 176px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.photo-btn:hover img { transform: scale(1.04); }
.decline-box { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.5 0.16 30 / 0.35); }
.decline-box textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); resize: vertical; font-size: 14.5px; }
.seg.small { padding: 3px; border-radius: 12px; }
.seg.small button { padding: 6px 12px; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: oklch(0.215 0.012 60 / 0.82); backdrop-filter: blur(8px); cursor: zoom-out; }
.lightbox img { max-width: min(92vw, 720px); max-height: 86vh; border-radius: 18px; object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.lightbox-x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: oklch(0.972 0.006 75 / 0.18); color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- Admin bookings, simpler ---------- */
.sum-line { margin: -10px 0 22px; color: var(--ink-soft); font-size: 15px; }
.bk-bar { margin-bottom: 8px; }
[data-panel="bookings"] .blist-day { margin: 22px 4px 8px; }
[data-panel="bookings"] .brow { background: oklch(0.99 0.003 75); box-shadow: 0 0 0 1px var(--line); border-radius: 18px; overflow: hidden; }
[data-panel="bookings"] .brow + .brow { margin-top: 8px; }
[data-panel="bookings"] .brow.open { box-shadow: 0 0 0 1px var(--line-2), 0 16px 34px -22px oklch(0.215 0.012 60 / 0.4); }
[data-panel="bookings"] .brow-head { grid-template-columns: 5rem auto minmax(0, 1fr) auto 18px; padding: 14px 18px; border-radius: 0; }
[data-panel="bookings"] .brow-who b { display: flex; align-items: center; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.status.paid::before { background: var(--ink); }
.status.unpaid { color: var(--accent); }
.status.unpaid::before { background: var(--accent); }

.bk-panel { border-top: 1px solid var(--line); }
.bk-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; align-items: start; padding: 18px 18px 16px; }
.bk-body .photo-btn { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.bk-body .photo-btn img { width: 132px; height: 164px; }
.bk-info { display: grid; gap: 14px; min-width: 0; }
.bk-facts { display: grid; gap: 10px; margin: 0; }
.bk-facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.bk-facts dt { font-size: 13px; color: var(--ink-soft); }
.bk-facts dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.bk-facts a { color: var(--ink); }
.bk-pay { font-weight: 600; }
.bk-pay.unpaid { color: var(--accent); }
.bk-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bk-tags span { padding: 3px 10px; border-radius: 99px; background: var(--paper-2); font-size: 13px; font-weight: 600; }
.bk-quote { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); font-size: 14.5px; line-height: 1.5; white-space: pre-line; }
.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); background: oklch(0.215 0.012 60 / 0.015); }
.bk-foot-left, .bk-foot-right { display: flex; align-items: center; gap: 8px; }
.more-box { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.decline-box { display: grid; gap: 10px; padding: 14px 18px 16px; border-top: 1px solid var(--line); background: oklch(0.5 0.16 30 / 0.04); }
.decline-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.decline-box textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); resize: vertical; font-size: 14.5px; line-height: 1.45; }
.decline-box textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.decline-acts { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.btn.danger-text { color: oklch(0.5 0.16 30); border-color: var(--line-2); }
.btn.danger-text:hover { background: oklch(0.5 0.16 30); color: var(--paper); border-color: oklch(0.5 0.16 30); }
.btn.solid-danger { background: oklch(0.5 0.16 30); border-color: oklch(0.5 0.16 30); color: var(--paper); }
.btn.solid-danger:hover { background: oklch(0.44 0.15 30); border-color: oklch(0.44 0.15 30); }
@media (max-width: 700px) {
  [data-panel="bookings"] .brow-head { grid-template-columns: 4.2rem auto minmax(0, 1fr) 16px; }
  [data-panel="bookings"] .brow-head .status { display: none; }
  .bk-body { grid-template-columns: 1fr; }
  .bk-facts > div { grid-template-columns: 7rem minmax(0, 1fr); }
}

/* ---------- Terms and privacy ---------- */
.doc-body { background: var(--paper); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 46rem; margin: 0 auto; padding: 22px var(--edge) 0; }
.doc-top nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.doc-top nav a:hover { color: var(--ink); }
.doc { max-width: 46rem; margin: 0 auto; padding: 40px var(--edge) 96px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-stretch: 122%; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 0.95; letter-spacing: -0.045em; margin: 10px 0 18px; }
.doc-lede { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; margin-bottom: 12px; }
.doc h2 { font-size: 1.35rem; font-stretch: 112%; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); line-height: 1.65; }
.doc p + p { margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); font-weight: 650; }
.doc a { color: var(--ink); }

/* Mobile: the sidebar becomes a tab bar. */
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .side { display: none; }
  .main { padding-bottom: 28px; }
  .span-8, .span-7, .span-5, .span-4 { grid-column: span 12; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line); background: oklch(0.972 0.006 75 / 0.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar button, .tabbar a {
    display: grid; justify-items: center; gap: 3px; padding: 7px 4px; border: 0; background: none; border-radius: 12px;
    font-size: 11px; font-weight: 600; color: var(--ink-soft); text-decoration: none; cursor: pointer;
  }
  .tabbar { position: relative; }
  .tabbar > button, .tabbar > a { position: relative; z-index: 1; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar .nav-pill { top: 6px; left: 0; height: calc(100% - 12px - env(safe-area-inset-bottom, 0px)); width: 20%; background: var(--paper-2); box-shadow: none; }
  .main-head .btn { display: none; }
  .next { min-height: 0; }
}

/* ---------- Backstage: Shabs's own sign-in page ---------- */
.bs-body { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--paper); }
.bs { width: min(100%, 400px); display: grid; gap: 26px; justify-items: center; }
.bs .mark span { font-size: 1.05rem; }
.bs-card {
  width: 100%; display: grid; gap: 14px; background: var(--paper); border-radius: 26px; padding: 30px 26px 24px;
  box-shadow: 0 30px 80px -30px oklch(0.215 0.012 60 / 0.35), 0 0 0 1px var(--line);
  animation: ws-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.bs-card h1 { font-size: clamp(1.8rem, 6vw, 2.3rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 4px; }
.bs-card .btn[type="submit"] { width: 100%; }
.bs-card [data-forgot] { justify-self: center; }

/* The 6-digit email code in the booking flow. */
.flow-code { font-size: 22px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

/* Message requests */
.msg-gate { margin: 0 clamp(16px, 3vw, 32px); padding: 10px 14px; border-radius: 14px; background: var(--paper-2); color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }
.msg-compose.off { opacity: 0.55; }
.inbox-section { margin: 10px 10px 4px; font: 600 11px/1.4 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.thread-meta .tag { font-size: 11px; }
.req-bar { display: grid; gap: 10px; margin: 0 clamp(16px, 3vw, 32px); padding: 12px 14px; border-radius: 16px; background: var(--paper-2); font-size: 14px; line-height: 1.45; }
.req-bar p { margin: 0; color: var(--ink-soft); }
.req-bar b { color: var(--ink); }
.req-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-head .head-block { margin-left: auto; }

/* Reviews */
.star-pick { display: flex; gap: 4px; margin-top: 2px; }
.star { border: 0; background: none; cursor: pointer; padding: 2px 3px; font-size: 38px; line-height: 1; color: var(--line-2); transition: color 0.15s ease; }
.star.on { color: var(--accent); }
.star:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.star-said { margin-top: -4px; min-height: 1.4em; }
.review-text { min-height: 110px; }
.stars { color: var(--accent); letter-spacing: 1px; }
.my-review .stars { font-size: 15px; }
.star-bell { font-size: 18px; color: var(--accent); }
.seg .badge { margin-left: 6px; }
.rv { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rv.new { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); padding-left: 12px; margin-left: -12px; border-radius: 12px; }
.rv-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.rv-top .stars { font-size: 17px; }
.rv-body { font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.rv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rv-sum { margin-bottom: 4px; }
.bk-review { color: var(--ink-soft); }
.bk-review .stars { margin-right: 4px; }

/* Landing page: a review on the corner of the photo */
.ws-review {
  position: absolute; left: clamp(-44px, -3vw, -16px); bottom: 32px; width: min(310px, 82%); margin: 0;
  display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--paper); text-align: left;
  box-shadow: 0 22px 50px -22px oklch(0.215 0.012 60 / 0.45), 0 0 0 1px var(--line);
  animation: ws-in 0.9s 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ws-review-stars { color: var(--accent); font-size: 14px; letter-spacing: 1px; }
.ws-review-stars small { margin-left: 8px; color: var(--ink-soft); font-size: 12.5px; letter-spacing: 0; }
.ws-review blockquote { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.45; color: var(--ink); }
.ws-review-who { font: 600 11px/1.4 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 820px) {
  .ws-review { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 11px 13px; gap: 3px; border-radius: 14px; }
  .ws-review blockquote { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
