/* Lime Institute — brand tokens */
:root {
  --red: #ED3237;
  --red-d: #C9252A;
  --red-soft: #FDEDED;
  --ink: #171414;
  --ink-2: #3A3433;
  --muted: #7A7170;
  --line: #ECE6E3;
  --line-2: #F3EEEB;
  --paper: #FAF7F5;
  --card: #FFFFFF;
  --ok: #1F7A47;
  --ok-soft: #E6F4EC;
  --warn: #A86A12;
  --warn-soft: #FBF1DF;
  --radius: 9px;
  --shadow: 0 1px 2px rgba(23, 20, 20, .04), 0 6px 20px rgba(23, 20, 20, .05);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.wordmark b { color: var(--red); font-weight: 700; }
.wordmark span { font-weight: 500; color: var(--ink-2); }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font-weight: 500; cursor: pointer; background: var(--red); color: #fff; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--red-d); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: #fff; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.danger-ghost { background: transparent; color: var(--red); border-color: #F5C9CA; }
.btn.danger-ghost:hover { background: var(--red-soft); }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn.block { width: 100%; }
.icon-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-grid; place-items: center; font-size: 18px; line-height: 1; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; border-color: var(--line); }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.input, input:not([type]), input[type=password], input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 20, 20, .06); }
input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }
.err { background: var(--red-soft); color: var(--red-d); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.chip.red { background: var(--red-soft); color: var(--red-d); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; font-size: 15px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.badge.upcoming { background: var(--red-soft); color: var(--red-d); }
.badge.completed { background: var(--ok-soft); color: var(--ok); }
.badge.cancelled { background: var(--line-2); color: var(--muted); }
.badge.no-show, .badge.awaiting { background: var(--warn-soft); color: var(--warn); }

/* toast */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow); animation: pop .2s ease; }
.toast.error { background: var(--red-d); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* =================== Booking page =================== */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topnav { display: flex; gap: 6px; }
.topnav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.topnav a:hover { background: var(--line-2); }
.topnav a.on { background: var(--ink); color: #fff; }

.book-wrap { max-width: 1120px; margin: 28px auto; padding: 0 16px; display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.book-side { padding: 24px; position: sticky; top: 20px; }
.book-side .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 600; }
.book-side h1 { font-size: 22px; margin: 6px 0 6px; }
.side-contact { margin-top: 14px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.summary { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 14px; }
.sum-item { display: flex; gap: 12px; align-items: flex-start; }
.sum-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.sum-ic svg { width: 16px; height: 16px; }
.sum-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sum-val { font-weight: 500; }
.sum-item.empty .sum-val { color: #B8AFAD; font-weight: 400; }

.book-main { padding: 28px; min-height: 520px; }
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--line-2); }
.steps li i { font-style: normal; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: #fff; font-size: 12px; font-weight: 600; }
.steps li.on { background: var(--ink); color: #fff; }
.steps li.on i { background: var(--red); color: #fff; }
.steps li.done { color: var(--ink); cursor: pointer; }
.steps li.done i { background: var(--ink); color: #fff; }
.stage-head { margin-bottom: 18px; }
.stage-head p { margin: 4px 0 0; }

.choice-list { display: grid; gap: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.choice { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.choice:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.choice.sel { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.choice-body { flex: 1; min-width: 0; }
.choice-title { font-weight: 600; font-size: 15px; }
.choice .chips { margin-top: 8px; }
.choice .chev { font-size: 22px; color: var(--muted); }
.choice-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.choice-ic svg { width: 22px; height: 22px; }
.choice.staff { flex-direction: column; align-items: flex-start; }
.choice.staff .avatar { width: 52px; height: 52px; font-size: 17px; }

.picker { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(240px, 1fr); gap: 16px; }
.cal, .slots { padding: 18px; box-shadow: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow span { font-size: 11.5px; color: var(--muted); padding: 4px 0; font-weight: 500; }
.day { aspect-ratio: 1; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; position: relative; }
.day.avail { background: var(--line-2); }
.day.avail:hover { background: var(--ink); color: #fff; }
.day:disabled { color: #C9C1BF; cursor: default; background: transparent; }
.day.today::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 9px; background: var(--red); }
.day.sel, .day.sel:hover { background: var(--red); color: #fff; }
.cal-legend { margin-top: 12px; display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 9px; background: var(--line-2); margin-right: 5px; vertical-align: -1px; }
.slots-head { font-weight: 600; margin-bottom: 4px; }
.slot-group { margin-top: 14px; }
.slot-group h4 { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 6px; cursor: pointer; font-weight: 500; font-size: 13px; }
.slot:hover { border-color: var(--ink); }
.slot.sel { background: var(--red); border-color: var(--red); color: #fff; }
.slots-foot { margin-top: 18px; display: flex; justify-content: flex-end; }
.empty-state { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; color: #D6CDCA; margin-bottom: 8px; }
.loading { color: var(--muted); padding: 20px 0; }

.mode-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-pills label { cursor: pointer; }
.mode-pills input { position: absolute; opacity: 0; pointer-events: none; }
.mode-pills span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; background: #fff; }
.mode-pills input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-d); }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.done-wrap { text-align: center; max-width: 520px; margin: 10px auto; }
.done-check { width: 64px; height: 64px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.done-check svg { width: 30px; height: 30px; }
.booking-id { display: inline-block; margin: 14px 0 20px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; letter-spacing: .06em; }
.detail-list { text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; margin-bottom: 20px; }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 500; text-align: right; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .book-wrap { grid-template-columns: 1fr; margin-top: 16px; }
  .book-side { position: static; padding: 18px; }
  .book-main { padding: 18px; }
  .picker { grid-template-columns: 1fr; }
  .steps li span { display: none; }
  .steps li { padding: 6px; }
  .steps li.on span { display: inline; }
  .steps li.on { padding-right: 14px; }
}

/* =================== Admin =================== */
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #EDE7E5; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .brand { padding: 4px 10px 20px; }
.sidebar .wordmark span { color: #CFC7C5; }
.side-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8C8381; padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #CFC7C5; font-weight: 500; margin-bottom: 2px; }
.nav a svg { width: 18px; height: 18px; opacity: .85; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: var(--red); color: #fff; }
.nav a .count { margin-left: auto; font-size: 11px; background: rgba(255, 255, 255, .14); padding: 1px 8px; border-radius: 99px; }
.side-foot { margin-top: auto; padding: 12px; font-size: 12px; color: #8C8381; }
.side-foot a { color: #EDE7E5; }

.main { min-width: 0; }
.main-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.main-top h1 { font-size: 20px; }
.main-top .sub { font-size: 12.5px; color: var(--muted); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }
.content { padding: 24px 28px 60px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 16px 18px; }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 28px; font-weight: 600; margin-top: 4px; letter-spacing: -.02em; }
.stat.hl { background: var(--red); color: #fff; border-color: var(--red); }
button.stat { text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s, border-color .2s; }
button.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 20, 20, .08); border-color: var(--red); }
button.stat.hl { color: #fff; box-shadow: 0 10px 24px rgba(237, 50, 55, .3); }
.stat.hl .k { color: rgba(255, 255, 255, .85); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.grid-2 > * { min-width: 0; } /* long links / names must not push a card wider than a phone screen */
.panel { padding: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mini-list { display: grid; gap: 2px; }
.mini { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; cursor: pointer; min-width: 0; }
.mini-list { grid-template-columns: minmax(0, 1fr); }
.mini:hover { background: var(--paper); }
.mini .t { font-weight: 600; font-size: 13px; width: 74px; flex: none; }
.mini .b { flex: 1; min-width: 0; }
.mini .b div:first-child { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 9px; display: inline-block; flex: none; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar select, .toolbar input { width: auto; min-width: 140px; padding: 8px 12px; }
.toolbar .grow { flex: 1 1 200px; }
.tabs { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.tabs button.on { background: var(--ink); color: #fff; }
.tabs button em { font-style: normal; font-size: 11px; opacity: .7; margin-left: 4px; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #FFFBFA; }
.tbl tr:last-child td { border-bottom: 0; }
.who { display: flex; gap: 10px; align-items: center; }
.who b { font-weight: 500; display: block; }

/* calendar week */
.wk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.wk-head .ttl { font-weight: 600; font-size: 16px; margin-right: auto; }
.legend { display: flex; gap: 14px; font-size: 12.5px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.week { overflow-x: auto; }
.week-in { display: grid; grid-template-columns: 56px repeat(7, minmax(120px, 1fr)); min-width: 900px; }
.wk-col-h { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); font-size: 12.5px; position: sticky; top: 0; background: #fff; }
.wk-col-h b { display: block; font-size: 18px; font-weight: 600; }
.wk-col-h.today b { color: var(--red); }
.wk-times { position: relative; }
.wk-times div { position: absolute; right: 8px; font-size: 11px; color: var(--muted); transform: translateY(-50%); }
.wk-day { position: relative; border-left: 1px solid var(--line-2); cursor: copy; }
.wk-day.off { background: repeating-linear-gradient(135deg, #FBF9F8 0 6px, #F5F1EF 6px 12px); }
.wk-day .hr { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); pointer-events: none; }
.wk-ev { position: absolute; border-radius: 6px; padding: 4px 6px; font-size: 11.5px; color: #fff; overflow: hidden; cursor: pointer; line-height: 1.3; border: 1px solid rgba(255, 255, 255, .5); }
.wk-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev.cancelled { opacity: .35; text-decoration: line-through; }
.wk-ev.completed { opacity: .75; }
.wk-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--red); z-index: 2; pointer-events: none; }
.wk-now::before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 9px; background: var(--red); }

/* staff editor */
.staff-card { padding: 22px; margin-bottom: 18px; }
.staff-top { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.staff-top .grow { flex: 1; }
.sec-title { font-size: 13px; font-weight: 600; margin: 18px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.hours { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--paper); }
.hours-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.hours-row .times { display: flex; gap: 8px; align-items: center; }
.hours-row .times input { flex: 1; min-width: 0; padding: 6px 10px; }
.staff-card .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 28px; }
.hours-row.closed .times { opacity: .35; pointer-events: none; }
.break-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.break-row input { width: 120px; padding: 6px 10px; }
.offdays { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.offdays .chip button { border: 0; background: none; cursor: pointer; padding: 0 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1; }
.copy-line { display: flex; gap: 8px; align-items: center; }
.copy-line input { flex: 1; font-size: 12.5px; background: var(--paper); }

.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.svc { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.svc.inactive { opacity: .6; }
.svc .foot { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }

/* overlay / modal / drawer */
.overlay { position: fixed; inset: 0; background: rgba(23, 20, 20, .45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
form.dirty > .modal-foot::before { content: '● Unsaved changes'; order: -1; margin-right: auto; align-self: center; color: var(--red); font-size: 12.5px; font-weight: 600; }
form.dirty > .modal-foot > .btn:not(.ghost):not(.danger-ghost) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
.overlay.drawer-ov { justify-content: flex-end; padding: 0; }
.drawer { background: #fff; width: 100%; max-width: 460px; height: 100vh; overflow: auto; padding: 24px; animation: slide .2s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.drawer-head .grow { flex: 1; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13.5px; margin-bottom: 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.timeline li { padding: 6px 0 6px 16px; position: relative; color: var(--ink-2); }
.timeline li::before { content: ''; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 9px; background: var(--line); }
.timeline li:first-child::before { background: var(--red); }
.timeline time { display: block; color: var(--muted); font-size: 11.5px; }
.admin-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; margin: 8px 0; max-height: 180px; overflow: auto; }
.admin-slots .slot { padding: 6px; font-size: 12.5px; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 250px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(23, 20, 20, .45); }
  .menu-btn { display: inline-grid; }
  .main-top { padding: 14px 16px; }
  .content { padding: 16px 16px 60px; }
  .main-top .sub { display: none; }
  .hours-row { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
}

/* one-on-one / group */
.group-field .lbl { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.who-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who-pills label { cursor: pointer; }
.who-pills input { position: absolute; opacity: 0; pointer-events: none; }
.who-pills span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.who-pills span b { font-weight: 600; }
.who-pills span small { color: var(--muted); font-size: 12px; }
.who-pills input:checked + span { border-color: var(--red); background: var(--red-soft); box-shadow: 0 6px 16px rgba(237, 50, 55, .12); }
.who-pills input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.group-box { margin-top: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; display: grid; gap: 10px; animation: rise .3s both; }
.grp-members { display: flex; flex-wrap: wrap; gap: 8px; }
.grp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.grp-chip.me { background: var(--red); padding-right: 12px; }
.grp-chip small { opacity: .8; font-weight: 400; }
.grp-chip button { border: 0; background: rgba(255, 255, 255, .2); color: #fff; width: 20px; height: 20px; border-radius: 99px; cursor: pointer; line-height: 1; }
.grp-search input { padding: 11px 14px 11px 44px; font-size: 14px; }
.grp-search .stu-ic { left: 14px; }
.group-box .stu-res { margin-top: 0; }
.group-box .stu-card { padding: 10px 12px; }
.chip.group { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .who-pills { grid-template-columns: 1fr; } .grp-search input { font-size: 16px; } }

/* calendar: readable blocks in each consultant's colour */
.wk-ev { display: flex; gap: 6px; align-items: flex-start; padding: 4px 6px; border-radius: 7px; border: 0; border-left: 4px solid var(--c);
  background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 20, 20, .08); transition: transform .12s, box-shadow .12s; }
.wk-ev:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23, 20, 20, .14); z-index: 3; }
.wk-ev .ev-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.wk-ev b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev .ev-grp { display: inline-block; background: var(--c); color: #fff; border-radius: 99px; padding: 0 5px; font-size: 9.5px; line-height: 15px; vertical-align: 1px; }
.wk-ev b, .wk-ev small { line-height: 1.25; }
.wk-ev.completed { opacity: .65; }
.wk-ev.no-show { opacity: .55; background: repeating-linear-gradient(135deg, #fff 0 5px, color-mix(in srgb, var(--c) 10%, #fff) 5px 10px); }
.avatar.ev-av { width: 18px; height: 18px; font-size: 8px; flex: none; border: 1.5px solid var(--c); }
.cal-legend-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.cal-person { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--c) 45%, #fff);
  background: color-mix(in srgb, var(--c) 10%, #fff); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: opacity .15s, box-shadow .15s; }
.cal-person .avatar.ev-av { width: 24px; height: 24px; font-size: 10px; }
.cal-person:hover { box-shadow: 0 4px 12px rgba(23, 20, 20, .1); }
.cal-person.on { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 30%, #fff); }
.cal-person.dim { opacity: .45; }
.cal-hint { flex: 1 1 100%; }
.day-count { display: inline-block; margin-top: 4px; font-size: 10.5px; font-weight: 600; color: var(--red-d); background: var(--red-soft); border: 0; border-radius: 99px; padding: 2px 9px; cursor: pointer; font-family: inherit; }
.day-count:hover { background: var(--red); color: #fff; }
/* the week grid scrolls inside its card; day names stay pinned on top */
.card.week { max-height: calc(100vh - 230px); min-height: 360px; overflow: auto; position: relative; }
.card.week .wk-col-h { z-index: 6; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #fff; }
.cal-list { display: grid; gap: 12px; }
.wk-ev.cancelled { opacity: .45; text-decoration: line-through; }

/* appointments: day quick-filters + download */
.day-bar { align-items: center; }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.day-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: border-color .15s, background .15s; }
.day-chip:hover { border-color: var(--ink); }
.day-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dl-btn { margin-left: auto; }
.dl-group { display: inline-flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .day-chips { flex-wrap: nowrap; overflow-x: auto; } .day-chip { flex: none; } .dl-btn { margin-left: 0; } }

/* per-consultant booking questions */
.sq-list { display: grid; gap: 8px; }
.sq-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); flex-wrap: wrap; }
.sq-item .grow { flex: 1 1 240px; min-width: 0; }

/* combine suggestions */
.combine-panel { border-color: #F5C9CA; background: linear-gradient(180deg, #FFF8F8, #fff); }
.combine-row { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.combine-row:first-child { border-top: 0; }
.combine-row .grow { flex: 1 1 260px; min-width: 0; }
.combine-hint { background: #FFF8F8; border-color: #F5C9CA; font-size: 13.5px; }
.moved-note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 500; margin-bottom: 14px; }

/* transfer appointment */
.transfer-list { display: grid; gap: 8px; }
.transfer-opt { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.transfer-opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.transfer-opt .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.transfer-opt .free { color: var(--ok); font-weight: 500; }
.transfer-opt.busy { opacity: .7; }

/* consultant photos */
.has-photo { overflow: hidden; background: var(--line-2) !important; padding: 0; }
.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.m-avatar.has-photo { overflow: visible; }
.m-avatar.has-photo img { border-radius: 50%; position: relative; z-index: 1; }
.staff-face { width: 64px; height: 64px; font-size: 20px; }

/* admin login */
.login-screen { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 500px at 80% -10%, #3a1416 0%, transparent 60%), linear-gradient(160deg, #1b1717, #120f0f); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: stageIn .4s cubic-bezier(.2, .8, .2, 1); }
.login-card h2 { margin: 18px 0 6px; }
.login-card p { margin: 0 0 18px; }
.login-logo .brand img { height: 52px; }

/* admin: logo on a white plate so the dark lettering reads on the ink sidebar */
.sidebar .brand img { height: 46px; background: #fff; padding: 6px 12px; border-radius: 10px; }

/* =================== Public site (landing + booking) =================== */
.site { background: #fff; }
.site .brand img { height: 44px; transition: transform .3s; }
.site .brand:hover img { transform: scale(1.04) rotate(-1deg); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* sticky glass topbar */
.site .topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site .topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(23, 20, 20, .06); }
.site .topbar-in { max-width: 1160px; padding: 10px 20px; }
.site .topnav { align-items: center; }
.site .topnav a { position: relative; }
.site .topnav a.nav-cta { background: var(--red); color: #fff; padding: 9px 18px; box-shadow: 0 6px 18px rgba(237, 50, 55, .3); transition: transform .2s, box-shadow .2s, background .2s; }
.site .topnav a.nav-cta:hover { background: var(--red-d); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(237, 50, 55, .38); }
.site .topnav a.on:not(.nav-cta) { background: var(--ink); color: #fff; }

/* buttons */
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn .arr { display: inline-block; transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.shine { position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(237, 50, 55, .4); }
.shine::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, #3a1416 0%, transparent 60%), linear-gradient(160deg, #1b1717 0%, #120f0f 100%); color: #fff; padding: 84px 0 110px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.b1 { width: 460px; height: 460px; background: #ED3237; top: -120px; right: -60px; }
.b2 { width: 360px; height: 360px; background: #8f1d21; bottom: -140px; left: -80px; animation-duration: 20s; }
.b3 { width: 220px; height: 220px; background: #ff6a5c; top: 40%; left: 45%; opacity: .25; animation-duration: 13s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
.orbit { position: absolute; border: 1.5px solid rgba(255, 255, 255, .1); border-radius: 50%; border-top-color: rgba(237, 50, 55, .7); animation: spin 22s linear infinite; }
.o1 { width: 620px; height: 620px; right: -160px; top: -120px; }
.o2 { width: 420px; height: 420px; right: -60px; top: -20px; animation-direction: reverse; animation-duration: 16s; border-top-color: rgba(255, 255, 255, .35); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 500; }
.pulse { width: 8px; height: 8px; border-radius: 99px; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 22px 0 18px; }
.swoosh-word { position: relative; color: #fff; white-space: nowrap; display: inline-block; }
.swoosh-word svg { position: absolute; left: -2%; bottom: -12px; width: 104%; height: 22px; overflow: visible; }
.swoosh-word path { fill: none; stroke: var(--red); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s .7s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-sub { font-size: 17px; color: rgba(255, 255, 255, .72); max-width: 520px; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }

.hero-visual { position: relative; min-height: 380px; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.main-card { width: 320px; right: 30px; top: 20px; padding: 18px 20px 20px; animation: float 6s ease-in-out infinite; }
.fc-head { display: flex; gap: 6px; margin-bottom: 18px; }
.fc-dot { width: 9px; height: 9px; border-radius: 9px; background: var(--line); }
.fc-dot:first-child { background: var(--red); }
.fc-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fc-slot { font-size: 22px; font-weight: 700; margin: 6px 0 16px; min-height: 64px; line-height: 1.3; }
.fc-slot small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.fc-mentors { display: flex; align-items: center; margin-bottom: 16px; font-size: 13px; color: var(--ink-2); gap: 10px; }
.fc-mentors .stack { display: flex; }
.fc-mentors .stack .avatar { width: 34px; height: 34px; font-size: 12px; border: 2px solid #fff; margin-left: -8px; }
.fc-mentors .stack .avatar:first-child { margin-left: 0; }
.mini-card { display: flex; gap: 12px; align-items: center; padding: 12px 16px; font-size: 13px; }
.mini-card b { display: block; font-weight: 600; }
.mini-card small { color: var(--muted); font-size: 12px; }
.mc-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.mc-ic.dark { background: var(--ink); }
.c1 { left: 0; bottom: 40px; animation: float 7s 1s ease-in-out infinite; }
.c2 { right: -10px; bottom: -10px; animation: float 5.5s .5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.shimmer { display: block; height: 20px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), #fff, var(--line-2)); background-size: 200% 100%; animation: shim 1.2s linear infinite; margin-bottom: 8px; }
@keyframes shim { to { background-position: -200% 0; } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* sections */
.section { padding: 90px 0; scroll-margin-top: 60px; }
.section.alt { background: var(--paper); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; margin: 10px 0 8px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); background: var(--red-soft); padding: 5px 14px; border-radius: 999px; }

/* mentors */
/* 3 cards per row; extra cards start a new row from the left */
.mentor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 960px) { .mentor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 600px) { .mentor-grid { grid-template-columns: 1fr; } }
.mentor { position: relative; padding: 30px; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.mentor::before { content: ''; position: absolute; inset: 0 0 auto; height: 110px; background: linear-gradient(135deg, var(--c, var(--red)) 0%, transparent 100%); opacity: .1; transition: opacity .35s, height .35s; }
.mentor:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(23, 20, 20, .12); border-color: transparent; }
.mentor:hover::before { opacity: .18; height: 140px; }
.m-avatar { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff; background: var(--c, var(--red)); margin-bottom: 18px; }
.mentor h3 { font-size: 21px; }
.mentor .role { color: var(--red); font-weight: 500; font-size: 13.5px; margin-top: 2px; }
.mentor p { margin: 12px 0 0; }
.mentor .chips { margin: 16px 0 22px; }
.mentor .avail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.mentor .avail .pulse { background: #2bb673; }

/* how it works */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; position: relative; }
.how { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; transition: transform .3s, box-shadow .3s; }
.how:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 20px 40px rgba(23, 20, 20, .06); }
.how-n { position: absolute; top: 18px; right: 22px; font-size: 44px; font-weight: 800; color: var(--line-2); letter-spacing: -.04em; line-height: 1; }
.how-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(237, 50, 55, .3); transition: transform .4s; }
.how:hover .how-ic { transform: rotate(-8deg) scale(1.08); }
.how-ic svg { width: 26px; height: 26px; }
.how h3 { font-size: 18px; margin-bottom: 6px; }
.how p { margin: 0; }

/* booking area */
.site .book-wrap { max-width: none; margin: 0; padding: 0; grid-template-columns: 300px 1fr; }
.site .book-side { top: 84px; border-radius: 18px; padding: 26px; }
.side-brand img { height: 54px; margin-bottom: 14px; }
.site .book-main { scroll-margin-top: 84px; border-radius: 18px; padding: 30px; box-shadow: 0 20px 60px rgba(23, 20, 20, .07); }
.progress { height: 4px; background: var(--line-2); border-radius: 9px; margin: -12px 0 26px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #ff6a5c); border-radius: 9px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.steps li { transition: background .3s, color .3s; }
.stage-anim { animation: stageIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes stageIn { from { opacity: 0; transform: translateY(14px); } }
.stage-anim .choice, .stage-anim .slot, .stage-anim .field { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.site .choice { border-radius: 14px; position: relative; overflow: hidden; }
.site .choice::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transition: transform .3s; }
.site .choice:hover { transform: translateY(-2px); border-color: var(--line); box-shadow: 0 14px 30px rgba(23, 20, 20, .08); }
.site .choice:hover::before, .site .choice.sel::before { transform: scaleY(1); }
.site .choice:hover .chev { transform: translateX(4px); color: var(--red); }
.site .choice .chev { transition: transform .25s, color .25s; }
.site .choice-ic { transition: transform .3s, background .3s, color .3s; }
.site .choice:hover .choice-ic { background: var(--red); color: #fff; transform: rotate(-6deg); }
.site .day { transition: transform .15s, background .15s, color .15s; }
.site .day.avail:hover { transform: scale(1.1); }
.site .slot { transition: transform .15s, background .15s, border-color .15s, color .15s; }
.site .slot:hover { transform: translateY(-2px); border-color: var(--red); color: var(--red); }
.site .slot.sel { color: #fff; box-shadow: 0 8px 18px rgba(237, 50, 55, .3); }
.note-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.limit-box { border: 1px solid #F5C9CA; background: #FFF8F8; border-radius: 14px; padding: 18px; max-width: 560px; animation: rise .3s both; }
.limit-box p { margin: 6px 0 14px; }
.cutoff-note { margin-top: 10px; display: inline-block; background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 13px; }

/* student lookup */
.stu-search { position: relative; max-width: 560px; }
.stu-search input { padding: 15px 18px 15px 50px; font-size: 16px; border-radius: 14px; border-width: 1.5px; transition: border-color .2s, box-shadow .2s; }
.stu-search input:focus { border-color: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.stu-ic { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.stu-ic svg { width: 20px; height: 20px; }
.stu-res { display: grid; gap: 10px; margin-top: 14px; max-width: 560px; }
.stu-res .loading { padding: 8px 4px; }
.stu-card { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; animation: rise .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); transition: border-color .2s, box-shadow .2s, transform .2s; }
.stu-card:hover { border-color: var(--red); box-shadow: 0 12px 28px rgba(237, 50, 55, .12); transform: translateY(-2px); }
.stu-card .btn { flex: none; }
.stu-card.static { cursor: default; background: var(--paper); }
.stu-card.static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.stu-card mark { background: var(--red-soft); color: var(--red-d); border-radius: 4px; padding: 0 2px; }
.stu-help { margin-top: 18px; }
.verify-box { margin-top: 16px; padding: 18px; border: 1px dashed var(--line); border-radius: 14px; animation: rise .35s .1s both; }
.verify-box .last4 { max-width: 180px; font-size: 24px; letter-spacing: .5em; text-align: center; font-weight: 600; padding: 12px; }
.stu-help a { color: var(--red); }
@media (max-width: 640px) { .stu-card { flex-wrap: wrap; } .stu-card .btn { width: 100%; } }

/* confirmation */
.done-check { position: relative; width: 84px; height: 84px; animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1) both; box-shadow: 0 0 0 10px var(--red-soft); }
.done-check svg { width: 40px; height: 40px; }
.done-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .35s ease forwards; }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } }
.booking-id { animation: rise .5s .4s both; }
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 90; pointer-events: none; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--x), 105vh, 0) rotate(var(--r)); opacity: .9; } }

/* footer */
.footer { background: #141111; color: rgba(255, 255, 255, .7); padding: 56px 0 24px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-brand img { height: 56px; background: #fff; padding: 8px 14px; border-radius: 12px; }
.footer-brand p { max-width: 300px; margin-top: 14px; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { text-decoration: none; transition: color .2s, transform .2s; width: fit-content; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 36px; padding-top: 20px; color: rgba(255, 255, 255, .45); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* manage mode: only the booking card */
.manage-mode .hero, .manage-mode #mentors, .manage-mode #how { display: none; }
.manage-mode #book { padding-top: 40px; }

@media (max-width: 960px) {
  .hero { padding: 56px 0 90px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 300px; max-width: 420px; width: 100%; margin: 0 auto; }
  .main-card { right: auto; left: 50%; margin-left: -160px; top: 0; }
  .c1 { left: -6px; bottom: 0; }
  .c2 { right: -6px; bottom: auto; top: 150px; }
  .footer-in { grid-template-columns: 1fr; }
  .site .book-wrap { grid-template-columns: 1fr; }
  .site .book-side { position: static; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .site .brand img { height: 36px; }
  .site .topnav a { padding: 7px 10px; font-size: 12.5px; }
  .section { padding: 64px 0; }
  .site .book-main { padding: 18px; }
  .main-card { width: 290px; margin-left: -145px; }
  .c1, .c2 { display: none; }
  .hero-visual { min-height: 290px; }
}
/* =================== Phone layout =================== */
@media (max-width: 860px) {
  /* booking: form first, the selection summary after it */
  .site .book-wrap { display: flex; flex-direction: column; gap: 14px; }
  .site .book-side { order: 2; padding: 18px; }
  .site .book-side .side-brand, .site .book-side #biz-tag, .site .book-side h3 { display: none; }
  .site .book-side .summary { margin-top: 0; padding-top: 0; border-top: 0; grid-template-columns: 1fr 1fr; gap: 12px; }
  /* keep "Continue" in reach after picking a slot */
  .slots-foot { position: sticky; bottom: 12px; z-index: 3; margin-top: 14px; }
  .slots-foot .btn { width: 100%; box-shadow: 0 10px 26px rgba(237, 50, 55, .35); }
  .slots { scroll-margin-top: 80px; }
}

@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; } /* stops iPhone zooming into fields */
  .hero { padding: 40px 0 70px; }
  .hero h1 { margin: 18px 0 14px; }
  .hero-sub { font-size: 15.5px; margin-bottom: 22px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .trust { gap: 6px 14px; margin-top: 22px; font-size: 12.5px; }
  .sec-head { margin-bottom: 28px; }
  .mentor { padding: 24px; }
  .mentor .btn { width: 100%; }
  .site .book-main { padding: 16px; border-radius: 16px; }
  .stage-head h2 { font-size: 20px; }
  .choice { padding: 14px; gap: 12px; }
  .choice-ic { width: 38px; height: 38px; }
  .site .choice .chev { display: none; }
  .choice-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .choice.staff { padding: 14px; }
  .choice.staff .avatar, .choice.staff .choice-ic { width: 44px !important; height: 44px !important; }
  .cal, .slots { padding: 14px; }
  .day { font-size: 14px; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slot { padding: 10px 4px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .detail-list { padding: 4px 14px; }
  .detail-list div { flex-direction: column; gap: 2px; }
  .detail-list dd { text-align: left; }
  .done-wrap h2 { font-size: 22px; }
  .footer { padding: 40px 0 20px; }
  #toasts { left: 16px; right: 16px; transform: none; bottom: 16px; }
  .toast { border-radius: 14px; text-align: center; }

  /* admin */
  .hide-xs { display: none; }
  .main-top { gap: 8px; }
  .main-top h1 { font-size: 18px; }
  .main-top .btn { padding: 9px 16px; }
  .content { padding: 14px 12px 60px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .stat { padding: 14px; }
  .stat .v { font-size: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .panel { padding: 14px; }
  .toolbar > * { flex: 1 1 100%; min-width: 0 !important; }
  .toolbar input[type=date] { flex: 1 1 calc(50% - 5px); }
  .toolbar .btn { flex: 1 1 calc(50% - 5px); }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs button { flex: none; }
  /* tables become stacked cards */
  .table-wrap { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
  .tbl td { padding: 0; border: 0 !important; min-width: 0; }
  .tbl td:first-child { grid-column: 1 / -1; }
  .tbl td:last-child { justify-self: end; }
  .tbl td:last-child:nth-child(even) { grid-column: 1 / -1; justify-self: start; }
  .tbl tr.click:hover td { background: transparent; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; }
  /* modals slide up from the bottom like a phone sheet */
  .overlay:not(.drawer-ov) { align-items: flex-end; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; padding: 20px 16px; animation: sheet .25s ease; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .drawer { padding: 18px 16px; }
  .kv { grid-template-columns: 96px 1fr; }
  .staff-card { padding: 16px; }
  .hours-row .times input { padding: 6px; }
  .break-row input { width: auto; flex: 1; min-width: 0; }
  .wk-head .ttl { flex: 1 1 100%; }
  .login-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- phone-call appointments ---------- */
.call-stack { display: grid; gap: 10px; margin: 4px 0 18px; }
.call-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-align: left; transition: border-color .3s, background .3s, box-shadow .3s; }
.call-stack .call-card { margin: 0; }
.call-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.call-ic svg { width: 20px; height: 20px; }
.call-body { flex: 1; min-width: 0; }
.call-k { font-size: 12px; color: var(--muted); font-weight: 500; }
.call-num { font-size: 18px; font-weight: 600; letter-spacing: .3px; color: var(--ink); font-variant-numeric: tabular-nums; }
.call-state { font-size: 12.5px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.call-state b { color: var(--ink); font-weight: 600; }
.call-note { font-size: 13px; color: var(--ink); margin-top: 2px; }
.call-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.call-btn svg { width: 16px; height: 16px; }
.call-btn[aria-disabled] { background: var(--line); color: var(--muted); border-color: transparent; box-shadow: none; cursor: not-allowed; transform: none; }
.call-card.live { border-color: var(--ok); background: var(--ok-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 12%, transparent); }
.call-card.live .call-ic { background: var(--ok); color: #fff; border-color: var(--ok); animation: ring 1.6s ease-in-out infinite; }
.call-card.live .call-btn { background: var(--ok); border-color: var(--ok); color: #fff; animation: call-pulse 1.8s ease-out infinite; }
.call-card.over { opacity: .7; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 4px; vertical-align: 1px; animation: call-pulse 1.4s ease-out infinite; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } }
.call-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--paper); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.call-pill svg { width: 12px; height: 12px; }
.call-pill.live { background: var(--ok); color: #fff; border-color: var(--ok); animation: call-pulse 1.8s ease-out infinite; }
.chip.call-chip { display: inline-flex; align-items: center; gap: 5px; }
.chip.call-chip svg { width: 12px; height: 12px; }
@media (max-width: 560px) {
  .call-card { flex-wrap: wrap; }
  .call-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .call-card.live .call-ic, .call-card.live .call-btn, .call-pill.live, .live-dot { animation: none; } }
/* "My bookings" list on phones: the action button drops below the details */
@media (max-width: 560px) {
  .choice.bk-item { flex-wrap: wrap; }
  .choice.bk-item .choice-body { flex: 1 1 0; min-width: 0; }
  .choice.bk-item > .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}
