/* Tinta: one stylesheet for every Tinta page (customers' booking pages, the studio sign-up and the studio
   app). Mwela's stylesheets are not loaded on these pages; Mwela's look is untouched by this file.

   Palette "Blush": ivory pages, white cards, blush panels, deep rose for actions, champagne gold for thin
   accents only (never text: its contrast is too low), plum black text. Light only, by design.
   Type: DM Serif Display (with its italic for one accent word) for headings, Poppins for everything else.
   Motion: one spring curve, 200-460ms, all of it switched off for people who reduce motion. */

:root {
  --t-ivory: #FBF7F4;
  --t-surface: #FFFFFF;
  --t-blush: #F6E4E1;
  --t-blush-2: #FBEEEB;
  --t-line: #EADFDB;
  --t-line-2: #DDCBC6;
  --t-rose: #A8475F;
  --t-rose-press: #923C52;
  --t-rose-soft: rgba(168, 71, 95, .10);
  --t-gold: #C6A46C;
  --t-ink: #2A1A21;
  --t-muted: #6E5A62;
  --t-ok-bg: #E7F0E8; --t-ok: #2E6243;
  --t-wait-bg: #FBEFD9; --t-wait: #7C5310;
  --t-error: #A33A3A;
  --t-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --t-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t-ease: cubic-bezier(.32, .72, 0, 1);
  --t-r-card: 20px;
  --t-r-field: 14px;
  --t-shadow: 0 1px 2px rgba(42, 26, 33, .04), 0 10px 30px rgba(42, 26, 33, .06);
  --t-shadow-sheet: 0 -12px 48px rgba(42, 26, 33, .14);
  --t-safe-top: env(safe-area-inset-top, 0px);
  --t-safe-bottom: env(safe-area-inset-bottom, 0px);
  --t-kb: 0px;                                  /* the on-screen keyboard's height, set by tinta.js */
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.t-body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--t-ivory); color: var(--t-ink);
  font: 400 16px/1.55 var(--t-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--t-rose); text-decoration: none; }
a:hover { color: var(--t-rose-press); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, label, input, select, textarea, summary { touch-action: manipulation; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--t-rose); outline-offset: 2px; border-radius: 10px; }
p { margin: 0 0 12px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.t-icon { flex: none; }
.t-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.t-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- type ---------- */
.t-display { font: 400 clamp(34px, 9.4vw, 46px)/1.04 var(--t-display); letter-spacing: -.01em; text-wrap: balance; }
.t-h1 { font: 400 clamp(30px, 8vw, 38px)/1.08 var(--t-display); letter-spacing: -.01em; text-wrap: balance; }
.t-title { font: 400 22px/1.2 var(--t-display); }
.t-display em, .t-h1 em, .t-title em { font-style: italic; color: var(--t-rose); }
.t-lead { font-size: 17px; color: var(--t-muted); margin: 12px 0 0; text-wrap: pretty; }
.t-help { font-size: 13px; line-height: 1.5; color: var(--t-muted); }
.t-strong { font-weight: 500; }
.t-num { font-variant-numeric: tabular-nums; }
.t-price { font: 400 22px/1 var(--t-display); white-space: nowrap; }
.t-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--t-muted); margin-bottom: 10px; }
.t-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--t-gold); }
.t-center { text-align: center; }
.t-center .t-eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px; background: var(--t-rose); color: #fff;
  font: 500 16px/1.2 var(--t-body); text-align: center; text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--t-ease), background-color .2s, border-color .2s, box-shadow .2s, opacity .2s;
  -webkit-user-select: none; user-select: none;
}
.t-btn:hover { background: var(--t-rose-press); color: #fff; }
.t-btn:active { transform: scale(.97); }
.t-btn:focus-visible { outline: 2px solid var(--t-rose); outline-offset: 3px; border-radius: 999px; }
.t-btn[disabled], .t-btn.is-busy { opacity: .55; pointer-events: none; }
.t-btn-soft { background: var(--t-blush); color: var(--t-ink); }
.t-btn-soft:hover { background: #F1D7D3; color: var(--t-ink); }
.t-btn-line { background: var(--t-surface); color: var(--t-ink); border-color: var(--t-line-2); }
.t-btn-line:hover { background: var(--t-blush-2); color: var(--t-ink); border-color: var(--t-line-2); }
.t-btn-quiet { background: transparent; color: var(--t-rose); padding: 0 12px; min-height: 44px; }
.t-btn-quiet:hover { background: var(--t-rose-soft); color: var(--t-rose-press); }
.t-btn-danger { background: transparent; color: var(--t-error); border-color: #E8C9C9; }
.t-btn-danger:hover { background: #FBEDED; color: var(--t-error); }
.t-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.t-btn-block { display: flex; width: 100%; }
.t-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.t-btns-stack { display: grid; gap: 10px; }
.t-round {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0;
  border-radius: 50%; border: 0; background: transparent; color: var(--t-ink); transition: background-color .2s, transform .16s var(--t-ease);
}
.t-round:hover { background: var(--t-rose-soft); color: var(--t-ink); }
.t-round:active { transform: scale(.94); }
.t-round.is-filled { background: var(--t-surface); box-shadow: 0 0 0 1px var(--t-line); }
.t-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.t-busy-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: t-spin .7s linear infinite; }

/* ---------- forms ---------- */
.t-field { display: grid; gap: 8px; margin-bottom: 18px; }
.t-label { font-size: 14px; font-weight: 500; color: var(--t-ink); }
.t-label .t-optional { font-weight: 400; color: var(--t-muted); }
.t-input, .t-field input[type="text"], .t-field input[type="email"], .t-field input[type="password"],
.t-field input[type="number"], .t-field input[type="time"], .t-field input[type="datetime-local"], .t-field input[type="url"],
.t-field input[type="tel"], .t-field select, .t-field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--t-line-2); border-radius: var(--t-r-field);
  background: var(--t-surface); color: var(--t-ink); font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.t-field textarea { min-height: 96px; resize: vertical; }
.t-field select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236E5A62' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.t-field input::placeholder, .t-field textarea::placeholder { color: #A8979D; }
.t-input:focus, .t-field input:focus, .t-field select:focus, .t-field textarea:focus {
  outline: none; border-color: var(--t-rose); box-shadow: 0 0 0 3px var(--t-rose-soft);
}
.t-field.has-error input, .t-field.has-error select, .t-field.has-error textarea, .t-field.has-error .phone-local-input,
.t-field.has-error .country-code-toggle { border-color: var(--t-error); }
.t-error { font-size: 13px; color: var(--t-error); }
.t-error:empty { display: none; }
.t-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t-row2 > .t-field { min-width: 0; }
.t-input-icon { position: relative; }
.t-input-icon > input { padding-right: 52px !important; }
.t-input-icon > .t-round { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--t-muted); }
.t-input-icon > .t-round:active { transform: translateY(-50%) scale(.94); }

/* The flag phone input (Mwela's PhoneNumberWidget), dressed for Tinta. */
.t-body .phone-input-group { position: relative; display: flex; width: 100%; }
.t-body .phone-input-group .country-code-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; border: 1px solid var(--t-line-2);
  border-right: 0; border-radius: var(--t-r-field) 0 0 var(--t-r-field); background: var(--t-blush-2); color: var(--t-ink);
  font-size: 15px; font-weight: 500;
}
.t-body .phone-input-group .country-code-toggle::after { content: ''; width: 7px; height: 7px; margin-left: 2px;
  border-right: 1.5px solid var(--t-muted); border-bottom: 1.5px solid var(--t-muted); transform: rotate(45deg) translateY(-2px); }
.t-body .phone-input-group .phone-local-input {
  flex: 1; min-width: 0; min-height: 52px; padding: 13px 16px; border: 1px solid var(--t-line-2);
  border-radius: 0 var(--t-r-field) var(--t-r-field) 0; background: var(--t-surface); font-size: 16px; -webkit-appearance: none;
}
.t-body .phone-input-group:focus-within .phone-local-input, .t-body .phone-input-group:focus-within .country-code-toggle {
  border-color: var(--t-rose);
}
.t-body .phone-input-group .phone-local-input:focus { outline: none; box-shadow: 0 0 0 3px var(--t-rose-soft); }
.t-body .phone-input-group .country-code-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: min(320px, 86vw); margin: 0; padding: 6px 0;
  max-height: 300px; overflow-y: auto; list-style: none; color: var(--t-ink); background: var(--t-surface);
  border: 1px solid var(--t-line); border-radius: 16px; box-shadow: var(--t-shadow);
}
.t-body .phone-input-group .country-code-menu.show { display: block; animation: t-pop .22s var(--t-ease) both; }
.t-body .phone-input-group .country-search-item { background: var(--t-surface); padding: 6px 10px 8px; }
.t-body .phone-input-group .country-search { min-height: 40px; border: 1px solid var(--t-line-2); border-radius: 12px; font-size: 16px; }
.t-body .phone-input-group .country-code-option { padding: 10px 14px; border: 0; background: transparent; font-size: 15px; }
.t-body .phone-input-group .country-code-option:hover, .t-body .phone-input-group .country-code-option:focus { background: var(--t-blush-2); }

/* On/off switch. */
.t-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; -webkit-user-select: none; user-select: none; position: relative; }
.t-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.t-switch-track { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: var(--t-line-2);
  transition: background-color .25s var(--t-ease); }
.t-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(42, 26, 33, .25); transition: transform .3s var(--t-ease); }
.t-switch input:checked + .t-switch-track { background: var(--t-rose); }
.t-switch input:checked + .t-switch-track::after { transform: translateX(20px); }
.t-switch input:focus-visible + .t-switch-track { outline: 2px solid var(--t-rose); outline-offset: 2px; }

/* Choice chips (durations). */
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
button.t-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--t-line-2); border-radius: 999px; background: var(--t-surface); font-size: 15px; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s, transform .16s var(--t-ease); }
button.t-chip.is-on { background: var(--t-rose); border-color: var(--t-rose); color: #fff; }
button.t-chip:active { transform: scale(.96); }

/* Photo pickers: a dashed tile that becomes the chosen photo. The real file input sits over it. */
.t-pick { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  overflow: hidden; border: 1.5px dashed var(--t-line-2); background: var(--t-blush-2); color: var(--t-muted); cursor: pointer;
  transition: border-color .2s, background-color .2s; font-size: 14px; font-weight: 500; text-align: center; }
.t-pick:hover { border-color: var(--t-rose); color: var(--t-rose); }
.t-pick input[type="file"] { position: absolute; inset: 0; z-index: 2; opacity: 0; cursor: pointer; font-size: 0; width: 100%; height: 100%; }
.t-pick img.t-pick-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-pick.has-photo { border-style: solid; border-color: transparent; }
.t-pick.has-photo .t-pick-empty { display: none; }
.t-pick-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.t-pick-photo { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--t-r-card); }
.t-pick-round { width: 124px; height: 124px; border-radius: 50%; margin: 0 auto; }
.t-pick-badge { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: none; padding: 6px 12px; border-radius: 999px;
  background: rgba(42, 26, 33, .72); color: #fff; font-size: 13px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.t-pick.has-photo .t-pick-badge { display: inline-flex; }
.t-pick-round .t-pick-badge { right: 50%; transform: translateX(50%); bottom: 10px; padding: 3px 10px; font-size: 12px; }
.t-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.t-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--t-rose); }

/* ---------- surfaces ---------- */
.t-card { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r-card); padding: 20px; }
.t-stack > * + * { margin-top: 16px; }
.t-card-blush { background: var(--t-blush); border-color: transparent; }
.t-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.t-card-head .t-title { font-size: 20px; }
.t-section-title { font: 400 20px/1.2 var(--t-display); margin: 28px 0 12px; }
.t-divider { height: 1px; background: var(--t-line); margin: 16px 0; border: 0; }
.t-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover; background: var(--t-blush); color: var(--t-rose); font: 400 18px/1 var(--t-display); }
.t-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 500; white-space: nowrap; background: var(--t-blush); color: var(--t-rose); }
.t-pill.is-ok { background: var(--t-ok-bg); color: var(--t-ok); }
.t-pill.is-wait { background: var(--t-wait-bg); color: var(--t-wait); }
.t-pill.is-off { background: #F1ECEA; color: var(--t-muted); }
.t-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--t-blush);
  font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.t-note .t-icon { color: var(--t-rose); margin-top: 1px; }
.t-note.is-warn { background: var(--t-wait-bg); }
.t-note.is-warn .t-icon { color: var(--t-wait); }
.t-note.is-error { background: #FBEDED; }
.t-note.is-error .t-icon { color: var(--t-error); }
.t-note > div > *:last-child { margin-bottom: 0; }

/* Rows: settings lists, appointments, services. */
.t-list { list-style: none; margin: 0; padding: 0; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r-card); overflow: hidden; }
.t-row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; color: var(--t-ink); text-decoration: none;
  border: 0; border-top: 1px solid var(--t-line); transition: background-color .15s; width: 100%; background: transparent; text-align: left; font-size: 16px; }
.t-list > li:first-child > .t-row, .t-list > .t-row:first-child, .t-list > li:first-child > form > .t-row { border-top: 0; }
.t-list form { margin: 0; }
a.t-row:hover, button.t-row:hover { background: var(--t-blush-2); color: var(--t-ink); }
a.t-row:active, button.t-row:active { background: var(--t-blush); }
.t-row-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none;
  border-radius: 12px; background: var(--t-blush-2); color: var(--t-rose); }
.t-row-main { flex: 1; min-width: 0; }
.t-row-main > * { display: block; overflow: hidden; text-overflow: ellipsis; }
.t-row-title { font-weight: 500; white-space: nowrap; }
.t-row-sub { font-size: 13px; color: var(--t-muted); }
.t-row-end { display: flex; align-items: center; gap: 8px; color: var(--t-muted); flex: none; }
.t-row.is-danger { color: var(--t-error); }
.t-row.is-danger .t-row-icon { background: #FBEDED; color: var(--t-error); }

/* Price summary. */
.tinta-sum { margin: 0; }
.tinta-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--t-line); }
.tinta-sum > div:first-child { border-top: 0; }
.tinta-sum dt { font-weight: 400; color: var(--t-muted); font-size: 15px; }
.tinta-sum dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.tinta-sum .total dt { color: var(--t-ink); font-weight: 500; }
.tinta-sum .total dd { font: 400 24px/1 var(--t-display); }

/* Toasts (Django messages): slide down from the top, then leave by themselves. */
.t-toasts { position: fixed; z-index: 90; left: 50%; top: calc(var(--t-safe-top) + 12px); width: min(440px, calc(100vw - 32px));
  transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.t-toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: var(--t-ink); color: var(--t-ivory);
  font-size: 14px; box-shadow: 0 10px 30px rgba(42, 26, 33, .22); pointer-events: auto; animation: t-toast-in .42s var(--t-ease) both; }
.t-toast .t-icon { color: var(--t-gold); }
.t-toast.is-error { background: #6E2230; }
.t-toast.is-leaving { animation: t-toast-out .3s var(--t-ease) both; }

/* ---------- motion ---------- */
@keyframes t-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes t-fade { from { opacity: 0; } }
@keyframes t-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes t-spin { to { transform: rotate(360deg); } }
@keyframes t-toast-in { from { opacity: 0; transform: translateY(-16px) scale(.97); } }
@keyframes t-toast-out { to { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes t-in-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes t-in-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes t-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.t-rise > * { animation: t-rise .56s var(--t-ease) both; }
.t-rise > *:nth-child(2) { animation-delay: .04s; } .t-rise > *:nth-child(3) { animation-delay: .08s; }
.t-rise > *:nth-child(4) { animation-delay: .12s; } .t-rise > *:nth-child(5) { animation-delay: .16s; }
.t-rise > *:nth-child(6) { animation-delay: .2s; } .t-rise > *:nth-child(7) { animation-delay: .24s; }
.t-rise > *:nth-child(n+8) { animation-delay: .28s; }
.t-skel { border-radius: 14px; background: linear-gradient(90deg, var(--t-blush-2) 0%, var(--t-blush) 50%, var(--t-blush-2) 100%);
  background-size: 200% 100%; animation: t-shimmer 1.4s linear infinite; }

/* Page-to-page glide (Safari 18, Chrome): the bars stay put, the page underneath fades up. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .18s var(--t-ease) both t-vt-out; }
::view-transition-new(root) { animation: .34s var(--t-ease) both t-vt-in; }
@keyframes t-vt-out { to { opacity: 0; } }
@keyframes t-vt-in { from { opacity: 0; transform: translateY(8px); } }
.t-tabbar { view-transition-name: t-tabbar; }
.t-rail { view-transition-name: t-rail; }

/* The confirmation moment: a ring and a tick draw themselves, and a few gold sparkles open around them. */
.t-done-mark { position: relative; width: 88px; height: 88px; margin: 0 auto 22px; }
.t-done-mark svg { width: 88px; height: 88px; overflow: visible; }
.t-done-mark .ring { fill: var(--t-blush); stroke: var(--t-rose); stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: t-draw .9s var(--t-ease) .1s forwards; }
.t-done-mark .tick { fill: none; stroke: var(--t-rose); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; animation: t-draw .5s var(--t-ease) .7s forwards; }
.t-done-mark.is-still .ring, .t-done-mark.is-still .tick { animation: none; stroke-dashoffset: 0; }
.t-done-mark.is-still .t-sparkle { display: none; }
@keyframes t-draw { to { stroke-dashoffset: 0; } }
.t-sparkle { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; background: var(--t-gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0;
  animation: t-sparkle 1.3s var(--t-ease) forwards; }
.t-sparkle:nth-of-type(1) { --x: -62px; --y: -40px; animation-delay: .75s; }
.t-sparkle:nth-of-type(2) { --x: 60px; --y: -48px; animation-delay: .82s; width: 9px; height: 9px; margin: -4.5px; }
.t-sparkle:nth-of-type(3) { --x: -54px; --y: 46px; animation-delay: .9s; width: 8px; height: 8px; margin: -4px; }
.t-sparkle:nth-of-type(4) { --x: 66px; --y: 30px; animation-delay: .86s; }
.t-sparkle:nth-of-type(5) { --x: 4px; --y: -70px; animation-delay: .95s; width: 7px; height: 7px; margin: -3.5px; }
@keyframes t-sparkle {
  0% { opacity: 0; transform: translate(0, 0) scale(.2) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(1) rotate(90deg); }
}

/* ==========================================================================================================
   Customers: the studio's booking page and its slide-up sheet
   ========================================================================================================== */
.t-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.t-cover { position: relative; height: calc(230px + var(--t-safe-top)); overflow: hidden; background: var(--t-blush); }
.t-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.t-cover::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42, 26, 33, .12) 0%, rgba(251, 247, 244, 0) 42%, rgba(251, 247, 244, .55) 78%, var(--t-ivory) 100%); }
.t-studio { position: relative; z-index: 1; display: grid; justify-items: start; gap: 6px; margin-top: -52px; padding-bottom: 6px; }
.t-studio-avatar { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--t-ivory); background: var(--t-surface);
  object-fit: cover; box-shadow: 0 6px 20px rgba(42, 26, 33, .12); display: flex; align-items: center; justify-content: center;
  color: var(--t-rose); font: 400 40px/1 var(--t-display); }
.t-studio h1 { font: 400 clamp(32px, 8.8vw, 44px)/1.04 var(--t-display); margin-top: 8px; letter-spacing: -.01em; }
.t-studio-tagline { font-size: 16px; color: var(--t-muted); max-width: 46ch; }
.t-studio-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--t-muted); font-size: 14px; margin-top: 2px; }
.t-studio-meta span, .t-studio-meta a { display: inline-flex; align-items: center; gap: 6px; }
.t-studio-meta a { color: var(--t-muted); }
.t-studio-meta a:hover { color: var(--t-rose); }
.t-public-section { margin: 30px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.t-public-section h2 { font: 400 26px/1.2 var(--t-display); }
.t-public-section h2 em { font-style: italic; color: var(--t-rose); }

.t-services { display: grid; grid-template-columns: 1fr; gap: 16px; }
.t-svc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--t-line); border-radius: 24px;
  background: var(--t-surface); color: var(--t-ink); text-decoration: none; transition: transform .2s var(--t-ease), box-shadow .3s; }
.t-svc:hover { color: var(--t-ink); box-shadow: var(--t-shadow); }
.t-svc:active { transform: scale(.985); }
.t-svc-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--t-blush); }
.t-svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--t-ease); }
.t-svc:hover .t-svc-photo img { transform: scale(1.03); }
.t-monogram { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 30% 20%, var(--t-blush-2) 0%, var(--t-blush) 70%); }
.t-monogram span { font: italic 400 88px/1 var(--t-display); color: var(--t-gold); }
.t-monogram::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(198, 164, 108, .5); border-radius: 16px; }
.t-svc-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; padding: 16px 18px 18px; flex: 1; }
.t-svc-name { font-size: 17px; font-weight: 500; line-height: 1.35; }
.t-svc-desc { grid-column: 1 / -1; font-size: 14px; color: var(--t-muted); line-height: 1.5; margin: 2px 0 0; }
.t-svc-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t-muted); }
.t-svc-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; align-self: end; }
.t-svc-book { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--t-rose); color: #fff; font-size: 14px; font-weight: 500; transition: background-color .2s; }
.t-svc:hover .t-svc-book { background: var(--t-rose-press); }
.t-empty { padding: 28px 20px; text-align: center; color: var(--t-muted); }
.t-empty img { width: 132px; height: 132px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; }
/* The studio's own logo in the middle of the empty calendar: whole logo on white, or the first letter. */
.t-empty .t-avatar-big { display: flex; width: 132px; height: 132px; margin: 0 auto 16px; background: var(--t-surface);
  box-shadow: 0 0 0 1px var(--t-line); font-size: 56px; }
.t-empty img.t-avatar-big { object-fit: contain; padding: 10px; background: var(--t-surface); }
.t-empty span.t-avatar-big { background: var(--t-blush); }
.t-fine { margin: 28px 0 0; font-size: 13px; color: var(--t-muted); line-height: 1.6; }
.t-powered { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto;
  padding: 32px 16px calc(28px + var(--t-safe-bottom)); color: var(--t-muted); font-size: 12px; }
.t-powered-by { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.t-powered img { height: 18px; width: auto; }
.t-powered .t-built-by { display: inline-flex; line-height: 0; }
.t-powered .t-built-by img { height: 28px; width: auto; }
.t-public-page { max-width: 560px; margin: 0 auto; padding: calc(var(--t-safe-top) + 10px) 16px 0; }
.t-public-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; min-height: 48px; }
.t-public-bar a.t-studio-link { display: flex; align-items: center; gap: 10px; color: var(--t-ink); font-weight: 500; min-width: 0; }
.t-public-bar a.t-studio-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Booking steps line: four short segments, the current one in rose. */
.t-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.t-steps li { display: grid; gap: 6px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.t-steps li::before { content: ''; height: 3px; border-radius: 3px; background: var(--t-line); transition: background-color .4s var(--t-ease); }
.t-steps li.is-done::before, .t-steps li.is-on::before { background: var(--t-rose); }
.t-steps li.is-on { color: var(--t-ink); }

.t-chosen { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.t-chosen img, .t-chosen .t-chosen-mono { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.t-chosen-mono { display: flex; align-items: center; justify-content: center; background: var(--t-blush); color: var(--t-gold);
  font: italic 400 30px/1 var(--t-display); }
.t-chosen h2 { font: 400 24px/1.15 var(--t-display); }
.t-chosen p { margin: 3px 0 0; font-size: 14px; color: var(--t-muted); }

/* The month calendar. Free days are white with a rose dot; the chosen day is rose with a thin gold ring. */
.tinta-cal { margin: 0; }
.t-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.t-cal-title { font: 400 20px/1.2 var(--t-display); }
.t-cal-nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--t-ink); transition: background-color .2s; }
.t-cal-nav:hover { background: var(--t-rose-soft); color: var(--t-ink); }
.t-cal-nav.is-off { opacity: .25; pointer-events: none; }
.t-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 2px; }
.t-cal-dow { text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); padding-bottom: 4px; }
.tinta-day { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 46px; aspect-ratio: 1;
  margin: 0 auto; border-radius: 50%; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--t-ink); text-decoration: none;
  transition: background-color .2s, color .2s, transform .16s var(--t-ease), box-shadow .25s; }
.tinta-day.is-off { color: #B9A9AE; cursor: default; }
.tinta-day.is-available { background: var(--t-surface); font-weight: 500; box-shadow: inset 0 0 0 1px var(--t-line); }
.tinta-day.is-available::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--t-rose); }
.tinta-day.is-available:hover { color: var(--t-ink); box-shadow: inset 0 0 0 1px var(--t-rose); }
.tinta-day.is-available:active { transform: scale(.92); }
.tinta-day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1.5px var(--t-ink); }
.tinta-day.is-selected { background: var(--t-rose); color: #fff; box-shadow: 0 0 0 2px var(--t-ivory), 0 0 0 3px var(--t-gold); }
.tinta-day.is-selected::after { background: #fff; }
.t-cal-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--t-muted); }
.t-cal-legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--t-rose); }
.t-times-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--t-line); }
.t-day-label { font: 400 19px/1.2 var(--t-display); margin-bottom: 12px; }
.tinta-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; transition: opacity .2s; }
.tinta-times.is-loading { opacity: .35; }
.tinta-times.is-new > * { animation: t-rise .42s var(--t-ease) both; }
.tinta-times.is-new > *:nth-child(2n) { animation-delay: .03s; } .tinta-times.is-new > *:nth-child(3n) { animation-delay: .06s; }
.tinta-time { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--t-line-2);
  border-radius: 999px; background: var(--t-surface); color: var(--t-ink); font-size: 15px; font-weight: 500; padding: 0;
  font-variant-numeric: tabular-nums; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s, transform .16s var(--t-ease); }
.tinta-time:hover { border-color: var(--t-rose); color: var(--t-rose); }
.tinta-time:active { transform: scale(.95); background: var(--t-rose); border-color: var(--t-rose); color: #fff; }

/* The sheet: slides up from the bottom on phones, in from the right on laptops. */
.t-sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(42, 26, 33, .34); opacity: 0;
  transition: opacity .38s var(--t-ease); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.t-sheet { position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  height: calc(100dvh - var(--t-safe-top) - 28px);
  background: var(--t-ivory); border-radius: 28px 28px 0 0; box-shadow: var(--t-shadow-sheet);
  transform: translateY(100%); transition: transform .46s var(--t-ease); will-change: transform; }
.t-sheet.is-open { transform: translateY(0); }
.t-sheet-backdrop.is-open { opacity: 1; }
.t-sheet.is-dragging { transition: none; }
.t-sheet-grip { display: flex; justify-content: center; padding: 10px 0 2px; cursor: grab; touch-action: none; }
.t-sheet-grip::before { content: ''; width: 40px; height: 5px; border-radius: 5px; background: var(--t-line-2); }
.t-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 4px; touch-action: none; }
.t-sheet-head .t-round.is-hidden { visibility: hidden; }
.t-sheet-label { font-size: 13px; font-weight: 500; color: var(--t-muted); text-align: center; }
.t-sheet-body { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 6px 20px calc(28px + var(--t-safe-bottom)); }
.t-sheet-page.is-forward { animation: t-in-right .38s var(--t-ease) both; }
.t-sheet-page.is-back { animation: t-in-left .38s var(--t-ease) both; }
.t-sheet-page.is-up { animation: t-rise .42s var(--t-ease) both; }
.t-sheet-loading { display: grid; gap: 12px; padding-top: 8px; }
html.t-locked, html.t-locked body { overflow: hidden; }

/* Appointment page: holding, paying, booked. */
.t-appt { text-align: center; padding: 6px 0 4px; }
.t-appt .t-display { margin-bottom: 8px; }
.t-when { display: grid; justify-items: center; gap: 2px; margin: 18px 0 6px; }
.t-when-day { font: 400 26px/1.15 var(--t-display); }
.t-when-time { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.t-countdown { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--t-blush);
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--t-rose); margin: 4px 0 16px; }
.t-pay-options { display: grid; gap: 10px; }
.t-pay-options .t-btn { justify-content: space-between; padding: 0 22px; }
.t-pay-options .t-btn span { display: inline-flex; align-items: center; gap: 10px; }

/* ==========================================================================================================
   Studio sign-up, sign-in, business and setup: one question per screen
   ========================================================================================================== */
.t-flow-page { min-height: 100vh; min-height: 100dvh; }
.t-flow-art { display: none; }
.t-flow { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; width: 100%; max-width: 520px; margin: 0 auto;
  padding: calc(var(--t-safe-top) + 6px) 20px 0; }
.t-flow-top { display: flex; align-items: center; gap: 8px; height: 52px; margin: 0 -8px; }
.t-flow-top .t-round.is-hidden { visibility: hidden; }
.t-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--t-line); overflow: hidden; }
.t-progress i { display: block; height: 100%; width: var(--p, 0%); border-radius: 3px; background: var(--t-rose); transition: width .6s var(--t-ease); }
.t-flow-logo { height: 26px; width: auto; }
.t-flow-main { flex: 1; display: flex; flex-direction: column; padding: 3.5vh 0 20px; }
.t-step { display: block; }
html.js [data-stepper] .t-step { display: none; }
html.js [data-stepper] .t-step.is-current { display: block; }
.t-step.is-forward { animation: t-in-right .44s var(--t-ease) both; }
.t-step.is-back { animation: t-in-left .44s var(--t-ease) both; }
html:not(.js) .t-step + .t-step { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--t-line); }
.t-step-head { margin-bottom: 26px; }
.t-step-head .t-lead { margin-top: 10px; font-size: 16px; }
.t-flow-actions { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 12px; margin: auto -20px 0; padding: 14px 20px calc(16px + var(--t-safe-bottom));
  background: linear-gradient(180deg, rgba(251, 247, 244, 0) 0%, var(--t-ivory) 30%); transform: translateY(calc(-1 * var(--t-kb)));
  transition: transform .2s var(--t-ease); }
.t-flow-alt { text-align: center; font-size: 14px; color: var(--t-muted); margin: 0; }
.t-flow-alt a { font-weight: 500; }
.t-welcome-photo { position: relative; aspect-ratio: 4 / 4.2; max-height: 48vh; width: 100%; overflow: hidden; border-radius: 28px; margin-bottom: 26px; background: var(--t-blush); }
.t-welcome-photo .t-welcome-img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.t-welcome-photo.is-poster .t-welcome-img { object-position: 50% 50%; }
.t-welcome-photo .t-flow-logo { position: absolute; left: 16px; top: 16px; height: 24px; padding: 7px 12px; box-sizing: content-box;
  background: rgba(251, 247, 244, .92); border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.t-points { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.t-points li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.t-points .t-icon { color: var(--t-rose); }
.t-guide-link { margin: 20px 0 0; font-size: 14px; }
.t-guide-link a { display: inline-flex; gap: 8px; align-items: center; color: var(--t-rose); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* What the studio does: photo tiles, tap as many as apply. */
.t-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .t-tiles { grid-template-columns: repeat(2, 1fr); } }
.t-tile { position: relative; display: block; cursor: pointer; }
.t-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.t-tile-photo { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 22px; background: var(--t-blush);
  box-shadow: 0 0 0 1px var(--t-line); transition: box-shadow .25s var(--t-ease), transform .3s var(--t-ease); }
.t-tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-tile-name { display: block; margin-top: 10px; font: 400 22px/1.2 var(--t-display); text-align: center; }
.t-tile-tick { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--t-rose); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--t-ease); }
.t-tile input:checked + .t-tile-photo { box-shadow: 0 0 0 2.5px var(--t-rose); transform: scale(.97); }
.t-tile input:checked + .t-tile-photo .t-tile-tick { opacity: 1; transform: scale(1); }
.t-tile input:focus-visible + .t-tile-photo { outline: 2px solid var(--t-rose); outline-offset: 3px; }
.t-link-preview { display: flex; align-items: center; gap: 8px; margin-top: -4px; padding: 10px 14px; border-radius: 12px; background: var(--t-blush-2);
  font-size: 13px; color: var(--t-muted); overflow: hidden; }
.t-link-preview .t-icon { color: var(--t-rose); }
.t-link-preview b { color: var(--t-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The week: one row per day, a switch and from/to times. */
.t-week { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r-card); overflow: hidden; }
.t-week-row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--t-line); }
.t-week-row:first-child { border-top: 0; }
.t-week-break > summary { cursor: pointer; list-style: none; font-size: 13px; color: var(--t-rose); padding: 2px 0; }
.t-week-break > summary::-webkit-details-marker { display: none; }
.t-week-break[open] > summary { margin-bottom: 6px; }
.t-week-break .t-help { margin: 6px 0 0; }
.t-week-break > summary .t-help { margin: 0; color: var(--t-muted); }
.t-week-day { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.t-week-name { font-weight: 500; }
.t-week-state { font-size: 13px; color: var(--t-muted); margin-left: auto; }
.t-week-times { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.t-week-times input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 8px; border: 1px solid var(--t-line-2); border-radius: 12px;
  background: var(--t-surface); font-size: 16px; text-align: center; -webkit-appearance: none; appearance: none; }
.t-week-times input:focus { outline: none; border-color: var(--t-rose); box-shadow: 0 0 0 3px var(--t-rose-soft); }
.t-week-times input.is-invalid { border-color: var(--t-error); }
.t-week-row.is-closed .t-week-times, .t-week-row.is-closed .t-week-break { display: none; }
.t-week-row .t-error { grid-column: 1 / -1; }

/* Live preview of the studio's own page, in a phone frame. */
.t-phone { position: relative; width: min(240px, 66vw); aspect-ratio: 9 / 18.5; margin: 4px auto 22px; padding: 8px; border-radius: 38px;
  background: var(--t-ink); box-shadow: 0 24px 60px rgba(42, 26, 33, .22); }
.t-phone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 30px; background: var(--t-ivory); position: relative; }
.t-phone iframe { position: absolute; left: 0; top: 0; width: 390px; height: 802px; border: 0; transform-origin: 0 0; pointer-events: none; }
.t-a2hs { display: none; }
.t-a2hs.is-shown { display: flex; }

/* ==========================================================================================================
   The studio app: a bottom tab bar on phones, a slim rail on laptops
   ========================================================================================================== */
.t-app { padding-bottom: calc(76px + var(--t-safe-bottom)); }
.t-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; min-height: calc(56px + var(--t-safe-top));
  padding: var(--t-safe-top) 8px 0 16px; background: rgba(251, 247, 244, .86); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.t-topbar.is-scrolled { border-bottom-color: var(--t-line); }
.t-topbar-studio { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: var(--t-ink); font-weight: 500; font-size: 15px; }
.t-topbar-studio:hover { color: var(--t-ink); }
.t-topbar-studio span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-topbar-studio .t-avatar { width: 32px; height: 32px; font-size: 15px; }
.t-main { width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; }
.t-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 22px; }
.t-page-head .t-help { margin: 6px 0 0; font-size: 14px; }
.t-page-head-actions { display: none; }
.t-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 8px -6px; font-size: 15px; font-weight: 500; color: var(--t-muted); }
.t-back:hover { color: var(--t-rose); }

.t-tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 4px 8px var(--t-safe-bottom); background: rgba(251, 247, 244, .9); -webkit-backdrop-filter: saturate(1.4) blur(20px);
  backdrop-filter: saturate(1.4) blur(20px); border-top: 1px solid var(--t-line); }
.t-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 14px;
  color: var(--t-muted); font-size: 11px; font-weight: 500; letter-spacing: .01em; transition: color .2s, transform .16s var(--t-ease); }
.t-tab:hover { color: var(--t-ink); }
.t-tab:active { transform: scale(.94); }
.t-tab.is-on { color: var(--t-rose); }
.t-tab.is-on .t-icon { stroke-width: 2; }
.t-fab { position: fixed; z-index: 45; right: 18px; bottom: calc(84px + var(--t-safe-bottom)); display: inline-flex; align-items: center;
  justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--t-rose); color: #fff;
  box-shadow: 0 10px 26px rgba(168, 71, 95, .36); transition: transform .16s var(--t-ease), background-color .2s; }
.t-fab:hover { background: var(--t-rose-press); color: #fff; }
.t-fab:active { transform: scale(.93); }
.t-rail { display: none; }

/* Home. */
.t-hello { margin: 4px 0 22px; }
.t-home-grid > * + * { margin-top: 16px; }
.t-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t-stat { padding: 16px 18px; border-radius: var(--t-r-card); background: var(--t-surface); border: 1px solid var(--t-line); }
.t-stat b { display: block; font: 400 34px/1 var(--t-display); margin-bottom: 6px; }
.t-stat span { font-size: 13px; color: var(--t-muted); }
.t-next { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--t-r-card); background: var(--t-blush);
  color: var(--t-ink); text-decoration: none; transition: transform .2s var(--t-ease); }
.t-next:hover { color: var(--t-ink); }
.t-next:active { transform: scale(.985); }
.t-next-time { font: 400 30px/1 var(--t-display); font-variant-numeric: tabular-nums; }
.t-next-main { flex: 1; min-width: 0; }
.t-next-main > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-next-main .t-eyebrow { display: flex; margin-bottom: 6px; }
.t-share-link { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 16px; border-radius: 999px;
  background: var(--t-blush-2); border: 1px solid var(--t-line); margin-bottom: 12px; }
.t-share-link .t-icon { color: var(--t-rose); }
.t-share-link input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; color: var(--t-ink); padding: 0; }
.t-share-link input:focus { outline: none; }
.t-ring { position: relative; width: 56px; height: 56px; flex: none; }
.t-ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.t-ring circle { fill: none; stroke-width: 4; }
.t-ring .bg { stroke: var(--t-line); }
.t-ring .fg { stroke: var(--t-rose); stroke-linecap: round; transition: stroke-dashoffset .9s var(--t-ease); }
.t-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.t-todo { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.t-todo a, .t-todo .t-todo-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; margin: 0 -8px; color: var(--t-ink); border-radius: 12px; }
.t-todo a:hover { background: var(--t-blush-2); color: var(--t-ink); }
.t-todo-dot { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--t-line-2); display: flex;
  align-items: center; justify-content: center; color: #fff; }
.t-todo .is-done .t-todo-dot { background: var(--t-rose); border-color: var(--t-rose); }
.t-todo .is-done .t-todo-text { color: var(--t-muted); text-decoration: line-through; text-decoration-color: var(--t-line-2); }
.t-todo-text { flex: 1; }
.t-todo-text small { display: block; font-size: 13px; color: var(--t-muted); text-decoration: none; }

/* Calendar: a week strip and the week's appointments. */
.t-weekbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.t-weekbar .t-title { font-size: 20px; }
.t-weekbar > div { display: flex; }
.t-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 22px; }
.t-strip a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 12px; border-radius: 16px; color: var(--t-ink);
  transition: background-color .2s, transform .16s var(--t-ease); }
.t-strip a:hover { background: var(--t-blush-2); color: var(--t-ink); }
.t-strip a:active { transform: scale(.95); }
.t-strip small { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.t-strip b { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; font-weight: 500; }
.t-strip a.is-today b { background: var(--t-rose); color: #fff; }
.t-strip a.has-items::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--t-rose); }
.t-agenda-day { margin-bottom: 22px; scroll-margin-top: calc(70px + var(--t-safe-top)); }
.t-agenda-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.t-agenda-head h2 { font: 400 19px/1.2 var(--t-display); }
.t-appt-row { align-items: stretch; }
.t-appt-time { display: flex; flex-direction: column; justify-content: center; min-width: 48px; font-variant-numeric: tabular-nums; }
.t-appt-time b { font-weight: 500; }
.t-appt-time span { font-size: 13px; color: var(--t-muted); }
.t-appt-bar { width: 3px; border-radius: 3px; background: var(--t-rose); flex: none; }
.t-appt-bar.is-held { background: var(--t-gold); }
.t-appt-bar.is-off { background: var(--t-line-2); }
.t-free { padding: 14px 16px; border: 1px dashed var(--t-line-2); border-radius: 16px; font-size: 14px; color: var(--t-muted); }

/* Appointment detail. */
.t-hero-card .t-h1 { font-size: 30px; margin: 12px 0 4px; }
.t-contact { display: flex; gap: 8px; margin-top: 16px; }
.t-contact .t-btn { flex: 1; padding: 0 12px; }

/* Services in the studio. */
.t-svc-row img, .t-svc-row .t-chosen-mono { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; flex: none; font-size: 26px; }
.t-fold { border: 1px solid var(--t-line); border-radius: var(--t-r-card); background: var(--t-surface); }
.t-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 18px;
  list-style: none; cursor: pointer; font-weight: 500; }
.t-fold > summary::-webkit-details-marker { display: none; }
.t-fold > summary .t-icon { transition: transform .3s var(--t-ease); color: var(--t-muted); }
.t-fold[open] > summary .t-icon { transform: rotate(180deg); }
.t-fold > .t-fold-body { padding: 4px 18px 18px; }
.t-fold[open] > .t-fold-body { animation: t-rise .4s var(--t-ease) both; }

/* Me. */
.t-me-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 24px; }
.t-me-head .t-avatar { width: 64px; height: 64px; font-size: 28px; }
.t-me-head .t-h1 { font-size: 28px; }
.t-group-label { margin: 24px 4px 8px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); }

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .t-services { grid-template-columns: 1fr 1fr; }
  .t-svc-photo { aspect-ratio: 4 / 5; }
  .t-week-row { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); align-items: center; gap: 6px 12px; padding: 10px 14px; }
  .t-week-row .t-week-break, .t-week-row .t-error { grid-column: 2; }
  .t-week-row .t-week-state { display: none; }
}
@media (min-width: 900px) {
  .t-cover { height: 340px; max-width: 1048px; margin: 24px auto 0; border-radius: 32px; }
  .t-cover::after { background: linear-gradient(180deg, rgba(42, 26, 33, 0) 55%, rgba(42, 26, 33, .16) 100%); }
  .t-studio { margin-top: -66px; padding-left: 28px; }
  .t-services { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .t-sheet { left: auto; top: 0; width: 500px; height: 100dvh; border-radius: 28px 0 0 28px; transform: translateX(100%);
    box-shadow: -16px 0 60px rgba(42, 26, 33, .16); }
  .t-sheet.is-open { transform: translateX(0); }
  .t-sheet-grip { visibility: hidden; height: 14px; padding: 0; }
  .t-sheet-body { padding: 6px 32px 32px; }

  /* Sign-up on a laptop: the photo on the left, the questions on the right. */
  .t-flow-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(540px, 620px); }
  .t-flow-art { display: block; position: sticky; top: 0; height: 100vh; padding: 20px 0 20px 20px; }
  .t-flow-art figure { position: relative; height: 100%; margin: 0; overflow: hidden; border-radius: 32px; background: var(--t-blush); }
  .t-flow-art .t-flow-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
  .t-flow-art figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 26, 33, 0) 50%, rgba(42, 26, 33, .42) 100%); }
  .t-flow-art figure.is-poster::after { display: none; }                /* the words are already in the picture */
  .t-flow-art figure.is-poster .t-flow-photo { object-position: 50% 50%; }
  .t-flow-art figcaption { position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 34px; color: #fff; font: 400 38px/1.08 var(--t-display); }
  .t-flow-art figcaption em { font-style: italic; }
  .t-flow-art .t-flow-logo { position: absolute; z-index: 1; left: 28px; top: 28px; height: 28px; padding: 8px 14px; box-sizing: content-box;
    background: rgba(251, 247, 244, .92); border-radius: 999px; }
  .t-flow { max-width: 540px; padding-left: 32px; padding-right: 32px; }
  .t-flow-actions { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
  .t-flow-main { padding-top: min(9vh, 56px); }
  .t-welcome-photo { display: none; }
}
@media (min-width: 992px) {
  .t-app { padding-bottom: 0; padding-left: 256px; }
  .t-topbar, .t-tabbar, .t-fab { display: none; }
  .t-rail { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; width: 256px; padding: 28px 18px 22px;
    background: var(--t-surface); border-right: 1px solid var(--t-line); }
  .t-rail-logo { height: 30px; width: auto; margin: 0 10px 34px; }
  .t-rail nav { display: grid; gap: 4px; }
  .t-rail nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 14px; color: var(--t-muted);
    font-weight: 500; font-size: 15px; transition: background-color .2s, color .2s; }
  .t-rail nav a:hover { background: var(--t-blush-2); color: var(--t-ink); }
  .t-rail nav a.is-on { background: var(--t-blush); color: var(--t-rose); }
  .t-rail-foot { margin-top: auto; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--t-blush-2); }
  .t-rail-foot .t-topbar-studio { font-size: 14px; }
  .t-main { max-width: 1000px; padding: 44px 48px 64px; margin: 0; }
  .t-page-head { margin-bottom: 28px; }
  .t-page-head-actions { display: flex; gap: 10px; }
  .t-home-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .t-home-grid > * + * { margin-top: 0; }
  .t-toasts { top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .t-done-mark .ring, .t-done-mark .tick { stroke-dashoffset: 0; }
  .t-sparkle { display: none; }
}

/* A studio with several categories: a heading above each group of services. */
.t-group-title { margin: 26px 0 10px; font: 400 24px/1.2 var(--t-display); }
.t-group-title:first-of-type { margin-top: 6px; }
