/* SyNC therapist schedule. Mobile first; the rail appears from 900px. */

:root {
  --canvas: #F5F3EF;
  --surface: #FFFFFF;
  --ink: #1D1A17;
  --ink-2: #4A433C;
  --muted: #6F675F;
  --line: #E6E1DA;
  --line-2: #CFC7BD;
  --clay: #A9562F;
  --clay-deep: #8A4424;
  --clay-tint: #F7E9E0;

  /* the diary's states */
  --open: #CDE9D6;
  --open-edge: #4E9A6C;
  --open-ink: #1F5A3A;
  --booked: #26304A;
  --blocked: #F2EDE7;
  --hatch: #C9BBAD;
  --closed: #E9E5DF;
  --danger: #B3261E;
  --danger-tint: #FCEBE9;
  --warn-tint: #FFF4DC;
  --warn-edge: #D9A441;
  --focus: #2458D3;

  --ui: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--clay-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { padding: 48px 20px; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ shell */

.shell {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "mark account" "main main";
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}
.rail { display: contents; }
.mark {
  grid-area: mark;
  padding: 14px 16px 6px;
  text-decoration: none;
  color: var(--ink);
  font: 600 23px/1 var(--display);
  letter-spacing: .005em;
  display: flex; align-items: baseline; gap: 8px;
}
.mark small { font: 500 14px/1 var(--ui); color: var(--muted); letter-spacing: 0; }
.account {
  grid-area: account;
  margin: 10px 12px 0 0;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 999px;
  height: 36px; padding: 0 14px 0 6px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-2);
}
.account .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--clay-tint); color: var(--clay-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.main {
  grid-area: main;
  align-self: start;
  min-width: 0;
  padding: 8px 16px calc(var(--nav-h) + var(--safe-b) + 32px);
}

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted);
  font-size: 12.5px; font-weight: 600;
  position: relative;
}
.nav a svg { width: 22px; height: 22px; }
.nav a[aria-current="page"] { color: var(--clay-deep); }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; border-radius: 0 0 3px 3px; background: var(--clay);
}

@media (min-width: 900px) {
  .shell { grid-template-columns: 232px minmax(0, 1fr); grid-template-areas: "rail main"; align-items: stretch; }
  .rail {
    grid-area: rail;
    display: flex; flex-direction: column; gap: 8px;
    position: sticky; top: 0; height: 100vh;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: var(--surface);
  }
  .mark { padding: 6px 10px 18px; font-size: 26px; flex-direction: column; gap: 6px; }
  .nav {
    position: static; height: auto; padding: 0; border: 0; background: none;
    display: flex; flex-direction: column; gap: 2px;
  }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
  .nav a:hover { background: var(--canvas); color: var(--ink); }
  .nav a[aria-current="page"] { background: var(--clay-tint); }
  .nav a[aria-current="page"]::before { display: none; }
  .account { margin: auto 0 0; align-self: stretch; justify-content: flex-start; border-radius: 12px; height: 48px; }
  .main { padding: 28px 36px 64px; max-width: 1180px; }
}

/* ------------------------------------------------------------- type & bits */

h1 { font: 600 26px/1.15 var(--display); margin: 0; letter-spacing: -.005em; }
h2 { font-size: 18px; line-height: 1.3; margin: 0; font-weight: 700; }
h3 { font-size: 15px; margin: 0; font-weight: 700; }
.lede { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; line-height: 1.45; }
.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 18px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 4px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 6px 0; }
.back svg { width: 18px; height: 18px; }
.icon { width: 18px; height: 18px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 15.5px; text-decoration: none;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn.primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn.danger { color: var(--danger); border-color: #E4B4AF; }
.btn.danger:hover { border-color: var(--danger); }
.btn.quiet { border-color: transparent; background: none; color: var(--clay-deep); padding: 0 8px; }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 14.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row.stack { flex-direction: column; }
.btn-row.stack .btn { width: 100%; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.panel { padding: 16px; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 10px; }
.empty { color: var(--muted); padding: 18px 16px; margin: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; line-height: 1;
  padding: 5px 8px; border-radius: 6px;
  background: var(--canvas); color: var(--ink-2);
}
.pill svg { width: 14px; height: 14px; }
.pill.off { background: var(--closed); color: var(--muted); }
.pill.clay { background: var(--clay-tint); color: var(--clay-deep); }
.pill.green { background: var(--open); color: var(--open-ink); }

/* ---------------------------------------------------------------- calendar */

.who-strip {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 6px -16px 0; padding: 4px 16px 10px;
  scroll-snap-type: x proximity;
}
.who-strip::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .who-strip { flex-wrap: wrap; margin: 0; padding: 0 0 12px; } }
.chip {
  flex: none; scroll-snap-align: start;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.week-nav { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
.week-nav h1 { flex: 1; font-size: 22px; }
.icon-btn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 14px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 0 8px; border-radius: 12px;
  border: 1px solid transparent; background: none;
}
.day .dow { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.day .dnum { font-size: 19px; font-weight: 700; line-height: 1.2; }
.day .dcount { font-size: 11.5px; color: var(--open-ink); font-weight: 700; min-height: 15px; }
.day.is-today .dnum { color: var(--clay-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.day.is-closed .dnum, .day.is-closed .dow { color: #A79F96; }
.day.is-past { opacity: .5; }
.day[aria-pressed="true"] { background: var(--surface); border-color: var(--ink); }

.alert {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  padding: 12px 14px; margin: 0 0 10px;
  border-radius: 12px; border: 1px solid #EBC2BD; background: var(--danger-tint); color: #6E1712;
  font-size: 14.5px; font-weight: 600;
}
.alert svg { width: 20px; height: 20px; color: var(--danger); margin-top: 1px; }
.alert u { text-underline-offset: 2px; }
.note {
  padding: 10px 12px; border-radius: 10px;
  background: var(--warn-tint); border-left: 4px solid var(--warn-edge);
  font-size: 14px; color: #5A430F; margin: 10px 0;
}
.note.info { background: var(--canvas); border-left-color: var(--line-2); color: var(--ink-2); }

.day-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.day-title h2 { font-size: 16.5px; }
.day-title span { color: var(--muted); font-size: 14px; }

.grid-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 8px 0;
  overscroll-behavior-x: contain;
}
.grid { display: grid; gap: 3px; min-width: min-content; }
.day-grid { grid-template-columns: minmax(96px, 8.5rem) repeat(var(--cols), minmax(32px, 1fr)); grid-auto-rows: 44px; }
/* On phones the grids run edge to edge, so an ordinary 10–6 day fits without sideways scrolling. */
@media (max-width: 599px) {
  .grid-wrap { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 8px 6px 8px 0; }
}
.week-grid { grid-template-columns: 46px repeat(7, minmax(38px, 1fr)); grid-auto-rows: 42px; }
.paint-grid { grid-template-columns: 46px repeat(7, minmax(38px, 1fr)); grid-auto-rows: 36px; user-select: none; -webkit-user-select: none; }

.corner, .colhead, .rowhead { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.colhead { position: static; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.1; padding-bottom: 3px; }
.colhead small { font-size: 11px; font-weight: 600; color: var(--muted); }
.colhead b { font-size: 16px; }
.colhead.is-today b { color: var(--clay-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.colhead.is-closed { color: #A79F96; }
.rowhead { display: flex; align-items: center; padding: 0 8px 0 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.week-grid .rowhead, .paint-grid .rowhead { justify-content: flex-end; padding: 0 6px 0 4px; flex-direction: column; align-items: flex-end; justify-content: center; line-height: 1.05; }
.rowhead small { font-size: 10.5px; }
.rowhead.person {
  flex-direction: column; align-items: flex-start; justify-content: center;
  border: 0; text-align: left; line-height: 1.15;
  color: var(--ink); font-size: 14.5px; font-weight: 700;
  border-right: 1px solid var(--line);
  margin-right: 3px;
}
.rowhead.person .nm, .rowhead.person small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowhead.person small { color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }

.cell {
  position: relative;
  border: 0; padding: 0; margin: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: inset 0 0 0 1px #EFEBE5;
  display: grid; place-items: center;
  color: var(--open-ink);
  min-width: 0;
}
.cell svg { width: 15px; height: 15px; }
.cell.c-open { background: var(--open); box-shadow: inset 0 0 0 1.5px var(--open-edge); }
.cell.c-blocked {
  background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 7px), var(--blocked);
  box-shadow: inset 0 0 0 1px #E3D9CF;
}
.cell.c-closed { background: var(--closed); box-shadow: none; }
.cell.is-faded { opacity: .5; }
.cell.is-past { opacity: .32; }
.cell.is-booked { background: var(--booked); color: #fff; box-shadow: none; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.cell.is-held { background: var(--surface); color: var(--booked); box-shadow: inset 0 0 0 2px var(--booked); }
.cell.is-held::after { content: ""; position: absolute; inset: 3px; border: 1.5px dashed rgba(38, 48, 74, .45); border-radius: 4px; }
.cell.is-clash { box-shadow: 0 0 0 2.5px var(--danger); }
.cell.is-clash::before {
  content: "!"; position: absolute; top: -6px; right: -5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center;
}
.cell:hover { filter: brightness(.97); }
.cell.is-selected { outline: 3px solid var(--ink); outline-offset: 1px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 2px 0; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .cell { width: 18px; height: 18px; display: inline-grid; pointer-events: none; }
.legend .cell svg { width: 11px; height: 11px; }

.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.person-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.person-bar .summary { flex: 1 1 100%; color: var(--ink-2); font-size: 14.5px; }

/* ---------------------------------------------------------------- lists */

.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line); }
.row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: none; border: 0; text-align: left; text-decoration: none; color: inherit;
}
.row:hover { background: #FBFAF8; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 700; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.row .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.row .side { color: var(--ink-2); font-size: 13.5px; text-align: right; font-weight: 600; white-space: nowrap; }
.row .chev { width: 18px; height: 18px; color: var(--line-2); flex: none; }
.row.inactive .title { color: var(--muted); }
.list-actions { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }

/* ---------------------------------------------------------------- forms */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span:not(.hint), .field legend { font-weight: 700; font-size: 14.5px; color: var(--ink-2); padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface);
  font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236F675F' stroke-width='2'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(36, 88, 211, .18); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; padding: 4px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--clay); flex: none; }
.check small { display: block; color: var(--muted); font-size: 13.5px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ai-note { border-left: 4px solid var(--clay); background: var(--clay-tint); color: #5E2D14; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; }
.form-error { color: var(--danger); font-weight: 600; font-size: 14.5px; margin: 0; }
.form-error:empty { display: none; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 600; font-size: 14.5px; color: var(--ink-2);
}
.seg span svg { width: 16px; height: 16px; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; margin: 0; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--open-edge); }
.switch input:checked::after { transform: translateX(18px); }

form[data-repeat="weekly"] .only-dated,
form[data-repeat="dated"] .only-weekly,
form[data-allday="true"] .only-timed { display: none; }

/* ---------------------------------------------------------------- weekly editor */

.editor-tools { display: grid; gap: 10px; margin-bottom: 12px; }
.paint-grid .cell:not(.c-open) { box-shadow: inset 0 0 0 1px #E8E3DC; }
.paint-grid .cell.under-block { background: repeating-linear-gradient(135deg, #DCD1C5 0 1.5px, transparent 1.5px 7px), #FAF7F3; }
.paint-grid .cell.under-closed { background: var(--closed); }
.paint-grid .cell.c-open.under-block, .paint-grid .cell.c-open.under-closed {
  background: repeating-linear-gradient(135deg, rgba(78, 154, 108, .45) 0 1.5px, transparent 1.5px 7px), #E3F1E7;
  box-shadow: inset 0 0 0 1.5px var(--warn-edge);
}
.save-bar {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 20;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 12px;
  background: var(--ink); color: #fff; border-radius: 14px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.45);
}
.save-bar p { margin: 0; flex: 1 1 140px; font-weight: 600; font-size: 14.5px; }
.save-bar .btn { min-height: 40px; }
.save-bar .btn.ghost { background: none; color: #fff; border-color: rgba(255,255,255,.35); }
@media (min-width: 900px) { .save-bar { bottom: 16px; } }
.warnings { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.warnings li { font-size: 14px; background: var(--warn-tint); border-left: 4px solid var(--warn-edge); padding: 8px 10px; border-radius: 8px; color: #5A430F; }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 0 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------------------------------------------------------------- sheet */

.sheet {
  border: 0; padding: 0; margin: 0;
  width: 100%; max-width: 100%;
  max-height: 90dvh;
  position: fixed; inset: auto 0 0 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 -12px 40px -12px rgba(0,0,0,.35);
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet[open] { animation: rise .22s cubic-bezier(.2, .9, .3, 1); }
.sheet::backdrop { background: rgba(29, 26, 23, .42); }
@keyframes rise { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-in { padding: 10px 18px calc(22px + var(--safe-b)); }
.sheet-in::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-head h2 { font: 600 21px/1.2 var(--display); }
.sheet-head p { margin: 3px 0 0; color: var(--ink-2); font-weight: 600; }
.sheet-block { margin-top: 18px; }
.sheet-block > h3 { margin-bottom: 8px; }
.state {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px; font-weight: 700; font-size: 15px;
}
.state .cell { width: 26px; height: 26px; flex: none; pointer-events: none; }
.state.s-open { background: #EDF7F0; color: var(--open-ink); }
.state.s-blocked, .state.s-closed, .state.s-off { background: var(--canvas); color: var(--ink-2); }
.state.s-booked { background: #E9ECF3; color: var(--booked); }
.state.s-clash { background: var(--danger-tint); color: #6E1712; }
.hit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 8px; }
.hit .what { font-weight: 700; }
.hit .when { color: var(--ink-2); font-size: 14.5px; margin: 2px 0 10px; }
.booking-box { border-radius: 12px; background: #F2F4F8; padding: 12px; margin-top: 10px; }
.booking-box .name { font-weight: 700; font-size: 17px; }
.booking-box a { font-weight: 700; }
@media (min-width: 700px) {
  .sheet { inset: 0; margin: auto; width: 460px; max-height: 86vh; border-radius: 20px; height: fit-content; }
  .sheet-in::before { display: none; }
  .sheet-in { padding: 20px 22px 22px; }
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 12px; right: 12px; z-index: 60;
  bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  animation: rise .2s ease-out;
}
.toast p { margin: 0; flex: 1; }
.toast button { background: none; border: 0; color: #F3C3A8; font-weight: 700; padding: 6px 4px; }
.toast.error { background: #6E1712; }
@media (min-width: 900px) { .toast { left: auto; right: 24px; bottom: 24px; max-width: 420px; } }

/* ---------------------------------------------------------------- sign in */

.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; padding: 26px 22px; display: grid; gap: 16px; }
.login-card .mark { grid-area: auto; padding: 0; font-size: 34px; }
.login-card h1 { font: 700 20px/1.3 var(--ui); }
.login-card .lede { margin-top: -10px; }
