:root {
  /* Layout: one centred column (max 1040px); booking is one stepped panel (where → appointments → details → deposit);
     the owner page is a filtered list of booking cards. Light-only on purpose, to sit with the Glam by Masa logo.
     The logo carries the playfulness; everything else stays calm: a refined serif, square-ish corners, hairlines. */
  --bg: #FFFAFB; --surface: #FFFFFF; --sunk: #FBF0F3; --ink: #3E2430; --muted: #7F6370; --line: #EEDDE4;
  --pink: #E88EA9;           /* the logo pink: lines, dots and highlights, never small text */
  --rose: #B8436F; --on-rose: #FFFFFF; --blush: #FCEAF0;
  --ok: #2E7A57; --ok-soft: #E5F3EA; --warn: #8F560C; --warn-soft: #FDF1DC; --bad: #B3261E; --bad-soft: #FCE6E4;
  --info: #5B4A9E; --info-soft: #EEEAFB;
  --display: "DM Serif Display", "Didot", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1040px; margin-inline: auto; padding-inline: 20px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; text-wrap: balance; margin: 0; }
h3 { font-family: var(--body); font-weight: 700; line-height: 1.25; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--rose); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); font-weight: 700; }
.minor { color: var(--muted); font-size: 13px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: var(--r); border: 1px solid var(--rose); background: var(--rose); color: var(--on-rose);
  font: 600 15px var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: var(--surface); color: var(--rose); }
.btn.ghost:hover { background: var(--blush); color: var(--rose); border-color: var(--rose); }
.btn.quiet { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.quiet:hover { background: var(--sunk); border-color: var(--line); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; background: var(--rose); border-color: var(--rose); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.demo-bar { background: var(--info-soft); color: var(--ink); font-size: 14px; text-align: center; padding: 8px 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--muted); }
.brand img { height: 50px; width: auto; mix-blend-mode: multiply; display: block; }
.brand span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; border-left: 1px solid var(--line); padding-left: 14px; }
@media (max-width: 480px) { .brand span { display: none; } .brand img { height: 42px; } }
.top nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--rose); }
@media (max-width: 480px) { .top nav { gap: 14px; } .top nav a:not(.btn) { font-size: 14px; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 56px 64px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 66px); letter-spacing: -.01em; }
.hero h1 em { color: var(--rose); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 32em; margin-block: 18px 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.how { border-left: 1px solid var(--pink); padding-left: 28px; }
.how .eyebrow { display: block; margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--display); font-size: 30px; line-height: 1; color: var(--pink); }
.steps b { display: block; font-weight: 700; }
.steps span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 32px 40px; } .how { padding-left: 20px; } }

/* Sections */
.section { padding-block: 60px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 5vw, 44px); }
.section-head p { color: var(--muted); max-width: 34em; }

/* Prices */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.svc-top { display: flex; gap: 12px; align-items: center; }
.svc h3 { font-size: 19px; }
.svc p { color: var(--muted); font-size: 14px; flex: 1; }
.svc-prices { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.svc-prices span:first-child { color: var(--muted); }
.price { font-family: var(--display); font-size: 22px; line-height: 1.2; color: var(--ink); }
.price small { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* Lookbook */
.lookbook { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.lookbook button { padding: 0; border: 0; background: var(--sunk); border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5; max-width: 100%; display: block; }
.lookbook img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.lookbook button:hover img { transform: scale(1.03); }
.lookbook-empty { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lookbook-empty div { aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--sunk); border: 1px dashed var(--line); }
.lookbook-empty p { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 600px) { .lookbook-empty { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(62, 36, 48, .82); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-height: 78vh; width: auto; border-radius: var(--r); }
.lightbox figcaption { color: #FFFFFF; font-size: 15px; text-align: center; }
.lightbox .lb-bar { display: flex; gap: 10px; justify-content: center; }

/* Booker */
.booker { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.progress li { list-style: none; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: baseline; }
.progress li b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.progress li.on { color: var(--ink); border-bottom-color: var(--rose); }
.progress li.done { color: var(--rose); }
@media (max-width: 640px) { .progress li { padding: 12px 6px; justify-content: center; } .progress li span { display: none; } }
.pane { padding: 28px; }
@media (max-width: 560px) { .pane { padding: 22px 16px; } }
.pane h3 { font-size: 22px; margin-bottom: 4px; }
.pane h4 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.pane-intro { color: var(--muted); margin-bottom: 20px; }

.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .places { grid-template-columns: 1fr; } }
.place { display: grid; gap: 6px; align-content: start; text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: inherit; color: inherit; cursor: pointer; transition: border-color .15s; }
.place:hover { border-color: var(--pink); }
.place.sel { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.place b { font-size: 17px; }
.place .note { font-size: 14px; color: var(--muted); }
.place .tag { justify-self: start; font-size: 12px; font-weight: 700; color: var(--rose); background: var(--blush); padding: 2px 8px; border-radius: 6px; }
.map-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; margin-top: 14px; }

.added { display: grid; gap: 8px; margin-bottom: 24px; }
.added-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.appt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.appt b { display: block; }
.appt .sub { font-size: 14px; color: var(--muted); }
.appt .amt { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.x { border: 1px solid var(--line); background: var(--surface); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font: 600 16px var(--body); flex: none; }
.x:hover { color: var(--bad); border-color: var(--bad); }
.need { font-size: 14px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: var(--r); }

.editor { border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 22px; }
@media (max-width: 560px) { .editor { padding: 16px; } }
.editor-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.looks { display: grid; gap: 8px; }
.look { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; }
.look:hover { border-color: var(--pink); }
.look.sel { border-color: var(--rose); background: var(--blush); }
.look .grow { flex: 1; min-width: 0; }
.look .name { font-weight: 600; display: block; }
.look .amt { white-space: nowrap; }

.dt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 760px) { .dt { grid-template-columns: 1fr; } }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head h5 { margin: 0; font-weight: 700; font-size: 16px; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: 600 18px var(--body); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .dow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 0; font-weight: 600; }
.cal button { aspect-ratio: 1; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font: 500 15px var(--body); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.cal button:hover:not(:disabled) { border-color: var(--rose); }
.cal button:disabled { border-color: transparent; background: transparent; color: var(--muted); opacity: .4; cursor: default; }
.cal button.today { box-shadow: inset 0 -2px 0 var(--pink); }
.cal button.sel { background: var(--rose); color: var(--on-rose); border-color: var(--rose); }
.slots-head { font-weight: 700; margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.slot { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 500 14px var(--body); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--rose); }
.slot.sel { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.empty-note { color: var(--muted); font-size: 14px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--r); }

.totals { display: grid; gap: 2px; justify-items: end; padding-top: 6px; font-variant-numeric: tabular-nums; }
.totals .big { font-family: var(--display); font-size: 24px; }

.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 500; }
.req { color: var(--rose); }
input, select, textarea { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: 0; border-color: transparent; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: auto; margin-top: 4px; accent-color: var(--rose); }
.actions { display: flex; gap: 12px 16px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.error { background: var(--bad-soft); color: var(--bad); padding: 12px 14px; border-radius: var(--r); font-size: 14px; font-weight: 600; margin-top: 16px; }

.photos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.photo { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--sunk); flex: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; font-size: 14px; }
.upload { display: inline-flex; gap: 8px; align-items: center; justify-content: center; width: 84px; height: 84px; border: 1px dashed var(--pink); border-radius: 8px;
  color: var(--rose); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; background: var(--surface); padding: 6px; line-height: 1.25; }
.upload:hover { background: var(--blush); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload:focus-within { outline: 2px solid var(--rose); outline-offset: 2px; }

.pay { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 760px) { .pay { grid-template-columns: 1fr; } }
.cliq { border-radius: 12px; padding: 24px; background: var(--blush); display: grid; gap: 16px; }
.cliq.quote { background: var(--info-soft); }
.amount { font-family: var(--display); font-size: 54px; line-height: 1; }
.amount small { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.alias-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px dashed var(--rose); border-radius: var(--r); padding: 12px 14px; }
.alias-row .lbl { width: 100%; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.alias { font: 700 22px var(--mono); letter-spacing: .06em; flex: 1; min-width: 0; word-break: break-all; user-select: all; }
.todo { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.ref { font: 700 1em var(--mono); background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.summary { display: grid; gap: 14px; align-content: start; }
.summary h3 { font-size: 22px; }
.appt-list { list-style: none; margin: 0; padding: 0; display: grid; }
.appt-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.appt-list b { display: block; font-size: 15px; }
.appt-list .amt { font-weight: 700; white-space: nowrap; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sum-line.strong { font-weight: 700; }

.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.overdue { background: var(--bad-soft); color: var(--bad); }
.pill.confirmed { background: var(--ok-soft); color: var(--ok); }
.pill.cancelled { background: var(--sunk); color: var(--muted); }
.pill.quote { background: var(--info-soft); color: var(--info); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
@media (max-width: 760px) { .faq-wrap { grid-template-columns: 1fr; gap: 24px; } }
.faq-side { display: grid; gap: 16px; align-content: start; }
.faq-side h2 { font-size: clamp(32px, 5vw, 44px); }
.faq-side p { color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: 17px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--rose); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 62ch; }

.foot { border-top: 1px solid var(--line); padding-block: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 14px; }
.foot a { color: var(--ink); font-weight: 600; }

/* Owner dashboard */
.login { max-width: 420px; margin-block: 56px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; display: grid; gap: 16px; }
.login h1 { font-size: 32px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-block: 24px 4px; }
.dash-head h1 { font-size: clamp(30px, 5vw, 42px); }
.dash-head p { color: var(--muted); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 20px; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 14px; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
.tab.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tab .n { font-variant-numeric: tabular-nums; opacity: .65; margin-left: 4px; }
.bk-list { display: grid; gap: 12px; padding-bottom: 64px; }
.bk { display: grid; grid-template-columns: 88px minmax(0, 1fr) 230px; gap: 20px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bk.attn { border-left: 3px solid var(--warn); }
.bk.attn-quote { border-left: 3px solid var(--info); }
.bk-date { text-align: center; background: var(--sunk); border-radius: var(--r); padding: 10px 6px; display: grid; gap: 2px; }
.bk-date .m { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bk-date .d { font-family: var(--display); font-size: 34px; line-height: 1.05; }
.bk-date .more { font-size: 12px; font-weight: 700; color: var(--rose); margin-top: 4px; }
.bk-main { display: grid; gap: 8px; min-width: 0; }
.bk-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bk-title h3 { font-size: 18px; }
.bk-appts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bk-appts li { display: flex; gap: 6px 12px; align-items: baseline; font-size: 14px; background: var(--bg); border-radius: 8px; padding: 7px 10px; flex-wrap: wrap; }
.bk-appts .when { font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-line { font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.bk-notes { font-size: 14px; color: var(--muted); font-style: italic; }
.bk-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-photos a { font-size: 13px; font-weight: 600; }
.bk-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.bk-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-actions { display: grid; gap: 8px; }
.bk-actions .ask { font-size: 14px; font-weight: 700; }
.bk-actions input { padding: 9px 12px; }
.bk-result { font-size: 13px; color: var(--ok); font-weight: 700; }
@media (max-width: 760px) {
  .bk { grid-template-columns: 66px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .bk-date .d { font-size: 28px; }
  .bk-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .bk-actions .ask, .bk-actions .bk-result, .bk-actions .full { grid-column: 1 / -1; }
}
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--surface);
  padding: 12px 20px; border-radius: var(--r); font-size: 14px; font-weight: 600; z-index: 10; max-width: calc(100% - 32px); text-align: center; }

/* ---------- Services by category ---------- */
.cat { display: grid; gap: 14px; }
.cat + .cat { margin-top: 36px; }
.cat-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: flex; gap: 12px; align-items: center; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.svc .meta { font-size: 13px; color: var(--muted); }
.svc .addon { font-size: 13px; background: var(--blush); border-radius: 8px; padding: 8px 10px; }

/* ---------- Toggles and small inputs in the appointment editor ---------- */
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.toggle { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.toggle input { width: auto; margin: 0; accent-color: var(--rose); }
.toggle .grow { flex: 1; min-width: 0; }
.slot.best { border-color: var(--pink); }
.slot .best-tag { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); font-weight: 700; }
.slot.sel .best-tag { color: var(--on-rose); }
.welcome { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; background: var(--sunk); border-radius: var(--r); padding: 10px 14px; font-size: 14px; margin-bottom: 18px; }

/* ---------- Vouchers ---------- */
.vouchers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .vouchers { grid-template-columns: 1fr; } }
.voucher-cards { display: grid; gap: 12px; }
.voucher { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; padding: 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); font: inherit; color: inherit; cursor: pointer;
  background-image: radial-gradient(circle at 0 50%, var(--bg) 9px, transparent 10px), radial-gradient(circle at 100% 50%, var(--bg) 9px, transparent 10px); }
.voucher:hover { border-color: var(--pink); }
.voucher.sel { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.voucher b { display: block; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
@media (max-width: 560px) { .panel { padding: 18px 16px; } }

/* ---------- My booking ---------- */
.lookup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 640px) { .lookup { grid-template-columns: 1fr; } }
.mine { display: grid; gap: 12px; margin-top: 20px; }
.mine-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 10px; background: var(--bg); }
.mine-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.balance { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.balance .big { font-family: var(--display); font-size: 26px; }

/* ---------- Owner dashboard sections ---------- */
.sections { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 8px; overflow-x: auto; }
.sections button { border: 0; background: none; padding: 12px 14px; font: 600 15px var(--body); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.sections button.on { color: var(--ink); border-bottom-color: var(--rose); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-block: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 2px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-family: var(--display); font-weight: 400; font-size: 28px; font-variant-numeric: tabular-nums; }
.month-nav { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.month-nav h2 { font-size: 26px; min-width: 9em; text-align: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.days { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.days th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.days td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
table.days td.sched { white-space: normal; min-width: 260px; }
table.days .num { text-align: right; }
table.days tr.today td { background: var(--blush); }
table.days tfoot td { font-weight: 700; border-bottom: 0; }
.sched-line { display: block; font-size: 13px; }
.sched-line b { font-weight: 700; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-block: 20px 64px; align-items: start; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }
.panel h2 { font-size: 24px; margin-bottom: 4px; }
.panel > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1; min-width: 140px; }
.blocked-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.blocked-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 12px; background: var(--sunk); border-radius: 8px; font-size: 14px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 8px; }
.price-table td { padding: 6px 8px; border-top: 1px solid var(--line); }
.price-table input { width: 96px; padding: 8px 10px; }
.add-form { display: grid; gap: 18px; margin-block: 20px 64px; }
.add-rows { display: grid; gap: 10px; }
.add-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .8fr) auto; gap: 8px; align-items: end; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
@media (max-width: 860px) { .add-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .add-row .x { justify-self: end; } }
.add-row label { font-size: 12px; font-weight: 600; color: var(--muted); }
.add-row input, .add-row select { padding: 9px 10px; font-size: 15px; }
.source { font-size: 12px; font-weight: 700; color: var(--info); background: var(--info-soft); padding: 2px 8px; border-radius: 6px; }
.returning { font-size: 12px; font-weight: 700; color: var(--rose); background: var(--blush); padding: 2px 8px; border-radius: 6px; }

/* ---------- Booking v2: appointments first ---------- */
.look-group { display: grid; gap: 8px; }
.look-group + .look-group { margin-top: 10px; }
.look-group h5 { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.look .amt { text-align: right; line-height: 1.3; }
.look .amt .alt { display: block; font-size: 12px; color: var(--muted); }
.price-line { font-size: 14px; background: var(--sunk); border-radius: var(--r); padding: 10px 14px; }
.price-line b { font-variant-numeric: tabular-nums; }
.place[disabled] { opacity: .55; cursor: not-allowed; }
.place[disabled]:hover { border-color: var(--line); }
.place .why { font-size: 13px; color: var(--warn); font-weight: 600; }
.place .amount-line { font-weight: 700; font-size: 15px; }
.block-title { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.divider { border: 0; border-top: 1px solid var(--line); margin-block: 26px; }

/* ---------- Gift voucher: an ivory ticket with a gold frame ---------- */
.gift { --gold: #A8834F; position: relative; display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  background: #FFFFFF; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(62, 36, 48, .12); border-left: 8px solid #F4D3DE; }
.gift::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(168, 131, 79, .55); border-radius: 8px; pointer-events: none; }
.gift-left { display: grid; place-items: center; align-content: center; gap: 14px; padding: 30px 18px; border-right: 1px dashed rgba(168, 131, 79, .6); text-align: center; }
.gift-left img { width: 100%; max-width: 170px; display: block; }
.gift-label { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.gift-right { padding: 30px 30px 26px 26px; display: grid; gap: 10px; align-content: center; min-width: 0; }
.gift-kicker { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.gift-name { font-family: var(--display); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.05; color: var(--ink); }
.gift-value { font-family: var(--display); font-size: 18px; color: var(--rose); }
.gift-people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 4px; }
.gift-people span { display: block; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.gift-people b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; border-bottom: 1px solid rgba(168, 131, 79, .45); padding-bottom: 2px; min-height: 30px; overflow-wrap: anywhere; }
.gift-msg { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.gift-foot { display: flex; justify-content: space-between; gap: 8px 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--muted); }
.gift-code { font: 700 13px var(--mono); letter-spacing: .1em; color: var(--ink); border: 1px solid var(--gold); padding: 4px 10px; border-radius: 4px; }
.gift-code.pending { font: 600 11px var(--body); letter-spacing: .04em; color: var(--muted); border-style: dashed; }
@media (max-width: 560px) {
  .gift { grid-template-columns: 1fr; border-left: 0; border-top: 8px solid #F4D3DE; }
  .gift-left { border-right: 0; border-bottom: 1px dashed rgba(168, 131, 79, .6); padding: 24px 18px 18px; }
  .gift-right { padding: 20px 22px 24px; }
}
.voucher-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 18px; }
.voucher-pick button { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.voucher-pick button.sel { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); background: var(--blush); }
.voucher-pick b { display: block; }
.vouchers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.voucher-side { display: grid; gap: 14px; padding-top: 26px; }
.sub-title { font-size: 15px; font-weight: 700; grid-column: 1 / -1; margin-top: 6px; }

/* ---------- What's included chips ---------- */
.incl { display: flex; flex-wrap: wrap; gap: 6px; }
.incl span { font-size: 12px; font-weight: 600; color: var(--rose); background: var(--blush); padding: 3px 9px; border-radius: 999px; }
.incl span::before { content: "✓ "; }

/* ---------- Makeup lessons ---------- */
.lessons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .lessons { grid-template-columns: 1fr; } }
.lesson-list { display: grid; gap: 12px; }
.lesson { display: grid; gap: 8px; text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.lesson:hover { border-color: var(--pink); }
.lesson.sel { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.lesson-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.lesson-top b { font-size: 17px; }
.lesson p { font-size: 14px; color: var(--muted); }
.kit-note { display: flex; gap: 10px; align-items: flex-start; background: var(--blush); border-radius: var(--r); padding: 12px 14px; font-size: 14px; }
.kit-note b { white-space: nowrap; }

/* ---------- Home page: photo boxes that open their own page ---------- */
.view[hidden] { display: none !important; }
.back { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; text-decoration: none; margin-block: 22px 6px; }
.view > .section-head { margin-top: 10px; }
.view.section { border-top: 0; padding-top: 8px; }
.hero2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 40px 48px; }
.hero2 h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.01em; }
.hero2 h1 em { color: var(--rose); }
.hero2 .lead { font-size: 18px; color: var(--muted); max-width: 30em; margin-block: 16px 26px; }
.hero-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--sunk); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .hero2 { grid-template-columns: 1fr; gap: 24px; padding-block: 20px 32px; } .hero-photo { aspect-ratio: 4 / 3; } .hero-photo img { object-position: 50% 30%; } }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 14px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; max-width: 100%; text-decoration: none; color: #FFFFFF; background: var(--sunk); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(40, 20, 30, .78)); display: grid; gap: 2px; }
.tile .cap b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.tile .cap span { font-size: 13px; opacity: .9; }
.links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 56px; }
@media (max-width: 860px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-box { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.link-box:hover { border-color: var(--pink); }
.link-box b { font-size: 16px; }
.link-box span { font-size: 13px; color: var(--muted); }
.link-box i { font-style: normal; color: var(--rose); font-size: 20px; line-height: 1; }

/* ---------- Choosing the place with the price ---------- */
.look-card { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.look-card.sel { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.look-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.look-head b { font-size: 16px; }
.pp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pp { display: grid; gap: 0; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font: inherit; color: var(--ink); cursor: pointer; }
.pp:hover { border-color: var(--rose); }
.pp b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.2; }
.pp span { font-size: 12px; color: var(--muted); }
.pp.sel { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.pp.sel span { color: var(--on-rose); opacity: .9; }
.pp[disabled] { opacity: .45; cursor: not-allowed; }
.place-note { font-size: 14px; background: var(--sunk); border-radius: var(--r); padding: 10px 14px; }
/* The PDF copy always uses the wide ticket layout, whatever the screen size */
.gift.print { grid-template-columns: minmax(0, 36%) minmax(0, 1fr) !important; border-left: 8px solid #F4D3DE !important; border-top: 0 !important; box-shadow: none; }
.gift.print .gift-left { border-right: 1px dashed rgba(168, 131, 79, .6) !important; border-bottom: 0 !important; padding: 30px 18px !important; }
.gift.print .gift-right { padding: 30px 30px 26px 26px !important; }
.top nav a[aria-current] { color: var(--rose); }

/* ---------- Home without photos ---------- */
.hero2.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; text-align: center; padding-block: 56px 40px; }
.hero2.solo .lead { margin-inline: auto; }
.hero2.solo .hero-cta { justify-content: center; }
.tile.plain { aspect-ratio: auto; min-height: 190px; display: flex; color: var(--ink); border: 1px solid var(--line); }
.tile.plain .cap { position: static; background: none; padding: 22px; align-self: flex-end; width: 100%; gap: 4px; }
.tile.plain .cap span { color: var(--muted); opacity: 1; }
.tile.plain .cap i { font-style: normal; font-size: 22px; color: var(--rose); margin-top: 6px; transition: transform .2s; }
.tile.plain:hover .cap i { transform: translateX(4px); }
.tile.plain:hover { border-color: var(--pink); }
.t-blush { background: var(--blush); }
.t-sunk { background: var(--sunk); }
.t-rose { background: var(--rose); border-color: var(--rose) !important; }
.t-rose .cap b, .t-rose .cap i { color: var(--on-rose) !important; }
.t-rose .cap span { color: var(--on-rose) !important; opacity: .85 !important; }
@media (max-width: 480px) { .tile.plain { min-height: 150px; } .tile.plain .cap { padding: 16px; } .tile.plain .cap b { font-size: 19px; } }
.top-faq { padding-bottom: 64px; }
.top-faq .section-head { align-items: center; margin-bottom: 14px; }
.top-faq h2 { font-size: clamp(28px, 4vw, 36px); }
.faq-search { margin-bottom: 18px; }
.faq details[hidden] { display: none; }

/* ---------- Home photo boxes: one cohesive, warm set ---------- */
/* A very light warm grade on every photo; skin tones stay natural */
.tile:not(.plain) img { filter: sepia(.08) saturate(1.04) contrast(1.02); }
/* The makeup chair: a little brighter and more inviting */
.tile-book img { filter: sepia(.08) saturate(1.04) contrast(1.02) brightness(1.12); }
/* Lessons: about 6% closer, centred between Masa and her client so neither face is cut */
.tile-lessons img { transform: scale(1.06); transform-origin: 43% 40%; }
.tile-lessons:hover img { transform: scale(1.1); }
/* Softer, taller fade at the bottom so the white text reads on every photo */
.tile:not(.plain) .cap { padding-top: 72px; background: linear-gradient(rgba(40, 20, 30, 0), rgba(40, 20, 30, .35) 40%, rgba(40, 20, 30, .8)); }
.tile:not(.plain) .cap b, .tile:not(.plain) .cap span { text-shadow: 0 1px 8px rgba(40, 20, 30, .35); }
/* Lessons: ~22% closer and shifted right, so the clothes rack on the far left is cropped out
   and Masa and her client fill the frame (both faces stay in the upper half) */
.tile-lessons img { transform: scale(1.22); transform-origin: 67% 50%; }
.tile-lessons:hover img { transform: scale(1.26); }
/* Lookbook: ~1.55x closer so her face is about the same size as in Services & prices,
   centred horizontally with eyes and makeup in the upper-middle of the card */
.tile-lookbook img { transform: scale(1.55); transform-origin: 51% 53%; }
.tile-lookbook:hover img { transform: scale(1.6); }

/* ---------- Hero with Masa's portrait: headline left (55%), portrait right (45%) ---------- */
.hero2:not(.solo) { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 48px; align-items: center; padding-block: 40px 36px; }
.hero2:not(.solo) h1 { font-size: clamp(42px, 5.6vw, 70px); }
.hero-photo { margin: 0; aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; justify-self: center;
  width: min(100%, 340px); display: grid; gap: 12px; }
.hero-photo img { width: 100%; height: clamp(350px, 34vw, 410px); object-fit: cover; border-radius: 16px; display: block; }
.hero-photo figcaption { display: grid; gap: 2px; }
.hero-photo figcaption b { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.hero-photo figcaption span { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  .hero2:not(.solo) { gap: 26px; padding-block: 20px 28px; }
  .hero-photo { width: 100%; max-width: 420px; justify-self: start; }
  .hero-photo img { height: 320px; }
}

/* ---------- Hero: Masa as an editorial cutout on the cream background (no frame) ---------- */
.hero2:not(.solo) { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 32px; align-items: center; padding-block: 24px 0; }
.hero2:not(.solo) > div:first-child { padding-bottom: 48px; }
.hero-cutout { margin: 0; align-self: end; justify-self: center; display: grid; justify-items: center; gap: 4px; max-width: 100%; }
.hero-cutout img {
  display: block; width: auto; max-width: 100%; height: clamp(400px, 36vw, 480px); object-fit: contain;
  /* soften the edges where the original photo was cut off: bottom, and the far left and right */
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 20%), linear-gradient(to right, transparent 0, #000 9%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, transparent 0, #000 20%), linear-gradient(to right, transparent 0, #000 9%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
.hero-cutout figcaption { display: grid; gap: 2px; text-align: center; padding-bottom: 6px; }
.hero-cutout figcaption b { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.hero-cutout figcaption span { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  .hero2:not(.solo) { gap: 8px; padding-block: 20px 0; }
  .hero2:not(.solo) > div:first-child { padding-bottom: 8px; }
  .hero-cutout img { height: 360px; }
}
/* No fade on the cutout edges */
.hero-cutout img { -webkit-mask-image: none; mask-image: none; }
/* Paper-sticker portrait: the ivory border is part of the image; a soft shadow makes it sit on the page */
.hero-cutout img { filter: drop-shadow(0 8px 12px rgba(62, 36, 48, .13)) drop-shadow(0 1px 2px rgba(62, 36, 48, .10)); }

/* ---------- Sticker portrait: tucked against the right edge of the page, a little tilted ---------- */
[data-view="home"] { overflow-x: clip; }   /* the part past the page edge is hidden, never a sideways scroll */
.hero-cutout {
  position: relative; justify-self: end;
  /* move it from the content column to the right edge of the screen, plus a bit past it so the straight side never shows */
  left: calc((100vw - min(1040px, 100vw)) / 2 + 20px + 30px);
}
.hero-cutout img { transform: rotate(3deg); transform-origin: 100% 60%; }
.hero-cutout figcaption { justify-self: start; text-align: left; margin-left: 6px; transform: rotate(-1.5deg); }
.doodle { position: absolute; width: 26px; height: 26px; fill: var(--pink); z-index: 1; pointer-events: none; }
.doodle.line { fill: none; stroke: var(--rose); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.d-spark1 { top: 4%; left: -34px; width: 30px; height: 30px; }
.d-spark2 { top: 15%; left: -6px; width: 14px; height: 14px; fill: var(--rose); }
.d-heart { top: 44%; left: -40px; transform: rotate(-12deg); }
.d-lipstick { bottom: 16%; left: -46px; width: 30px; height: 30px; transform: rotate(-18deg); }
.d-brush { top: -14px; left: 34%; width: 30px; height: 30px; transform: rotate(8deg); }
@media (max-width: 760px) {
  .hero-cutout { left: 42px; }
  .d-heart { left: -32px; }
  .d-lipstick { left: -34px; }
}

/* ---------- Bigger sticker portrait, cropped at the bottom so the hero stays compact ---------- */
.hero2:not(.solo) { grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); }
.cut-frame { overflow: hidden; max-height: clamp(440px, 40vw, 560px); padding: 18px 0 0 18px; margin: -18px 0 0 -18px; }
.hero-cutout .cut-frame img { height: clamp(520px, 50vw, 760px); max-width: none; }
.hero-cutout figcaption { position: absolute; right: calc(100% + 14px); bottom: 22px; margin: 0; text-align: right; white-space: nowrap; transform: rotate(-1.5deg); }
@media (max-width: 760px) {
  .hero2:not(.solo) { grid-template-columns: 1fr; }
  .cut-frame { max-height: 380px; }
  .hero-cutout .cut-frame img { height: 460px; }
  .hero-cutout figcaption { position: static; text-align: left; justify-self: start; margin: 8px 0 0 6px; }
}

/* ---------- Meet the artist ---------- */
.about { display: grid; grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); gap: 32px; align-items: center; padding-block: 24px 0; }
.about-text { display: grid; gap: 14px; align-content: center; padding-bottom: 48px; }
.about-text h2 { font-size: clamp(32px, 5vw, 46px); }
.about-text p { color: var(--muted); font-size: 17px; max-width: 34em; }
.about-text .hero-cta { margin-top: 6px; }
/* name caption: a little smaller, perfectly straight */
.hero-cutout figcaption { transform: none; }
.hero-cutout figcaption b { font-size: 10px; letter-spacing: .22em; }
.hero-cutout figcaption span { font-size: 13px; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 8px; padding-block: 8px 0; }
  .about-text { padding-bottom: 20px; }
}
/* Meet Masa text */
.about-text h2 .heart { color: var(--rose); font-size: .8em; }
.about-sub { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--rose); margin-top: -6px; }
.about-body { display: grid; gap: 12px; }
.about-body p { color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 34em; }
.about-body p.signoff { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--ink); }
.about-text { padding-bottom: 32px; }
/* Filled heart icons in the Meet Masa text */
.heart-icon { width: .62em; height: .62em; fill: var(--rose); display: inline-block; vertical-align: .02em; margin-left: .15em; }
.about-body p.signoff .heart-icon { width: .7em; height: .7em; }
.d-heart { fill: var(--pink); stroke: none; }
/* Meet Masa: a bigger portrait that comes closer to the text */
.about { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
.about .cut-frame { max-height: clamp(480px, 46vw, 620px); }
.about .hero-cutout .cut-frame img { height: clamp(560px, 56vw, 800px); }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about .cut-frame { max-height: 400px; }
  .about .hero-cutout .cut-frame img { height: 480px; }
}
/* Refined accents: just two fine sparkles in a soft, muted rose */
.d-spark1, .d-spark2 { fill: var(--pink); opacity: .55; }
.d-spark1 { width: 20px; height: 20px; top: 6%; left: -22px; }
.d-spark2 { width: 10px; height: 10px; top: 13%; left: 2px; opacity: .45; }
/* Breathing room between the portrait and Quick answers */
.about { margin-bottom: 56px; }
@media (max-width: 760px) { .about { margin-bottom: 40px; } }
/* Sparkles sprinkled lightly around the portrait (a touch bigger) */
.d-spark1, .d-spark2, .d-spark3, .d-spark4, .d-spark5 { fill: var(--pink); }
.d-spark1 { width: 24px; height: 24px; top: 5%; left: -28px; opacity: .55; }
.d-spark2 { width: 13px; height: 13px; top: 13%; left: 2px; opacity: .45; }
.d-spark3 { width: 17px; height: 17px; top: 46%; left: -34px; opacity: .45; }
.d-spark4 { width: 11px; height: 11px; top: 72%; left: -12px; opacity: .4; }
.d-spark5 { width: 15px; height: 15px; top: -6px; left: 48%; opacity: .5; }
.d-spark1 { opacity: .7; } .d-spark2 { opacity: .6; } .d-spark3 { opacity: .6; } .d-spark4 { opacity: .55; } .d-spark5 { opacity: .65; }

/* ---------- Owner dashboard: lookbook photos ---------- */
.lb-admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.lb-admin-head label.btn { position: relative; }
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lb-admin-head label.btn:focus-within { outline: 2px solid var(--rose); outline-offset: 2px; }
.lb-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.lb-item { margin: 0; display: grid; gap: 6px; align-content: start; }
.lb-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); display: block; background: var(--sunk); }
.lb-item figcaption { font-size: 13px; min-height: 18px; overflow-wrap: anywhere; }
.lb-item.fixed img { opacity: .85; }
.lb-ask { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }

/* "Don't have CliQ?" option for clients abroad */
.no-cliq { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.no-cliq div { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.no-cliq b { font-size: 14px; }
.no-cliq span { font-size: 13px; color: var(--muted); }
.mine-card .no-cliq { background: var(--bg); }

/* =========================================================
   Owner dashboard v2: calendar first, a short to-do list, simple cards
   ========================================================= */
.dash-head { align-items: center; }
.dash-head p .link-btn { font-weight: 700; }
.sections .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  background: var(--rose); color: var(--on-rose); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.sections .count:empty { display: none; }
.back-link { margin-block: 18px 4px; display: inline-block; }

/* Month calendar */
.cal2-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin-block: 18px 12px; }
.cal2-head .month-nav { margin: 0; }
.cal2-legend { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend-blk { padding: 3px 8px; border-radius: 6px; border: 1px dashed var(--line);
  background: repeating-linear-gradient(-45deg, var(--sunk) 0 6px, var(--surface) 6px 12px); color: var(--muted); }
.cal2 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); gap: 1px; }
.cal2-dow { background: var(--sunk); text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding: 8px 0; }
.cal2-cell { background: var(--surface); min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: left;
  border: 0; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; }
.cal2-cell.empty { cursor: default; background: var(--bg); }
.cal2-cell:hover:not(.empty) { background: var(--bg); }
.cal2-cell.past { color: var(--muted); }
.cal2-cell.past .ev { opacity: .65; }
.cal2-cell.blocked { background: repeating-linear-gradient(-45deg, var(--sunk) 0 6px, var(--surface) 6px 12px); }
.cal2-cell.sel { box-shadow: inset 0 0 0 2px var(--rose); }
.cal2-num { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal2-cell.today .cal2-num { background: var(--rose); color: var(--on-rose); }
.ev { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.3; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.ok { background: var(--blush); color: var(--rose); }
.ev.unpaid { background: var(--surface); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.cal2-legend .ev { display: inline-block; }
.ev-more { font-size: 11px; color: var(--muted); font-weight: 600; padding-left: 4px; }
.ev-dots { display: none; gap: 3px; flex-wrap: wrap; }
.ev-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.ev-dots i.unpaid { background: none; box-shadow: inset 0 0 0 1.5px var(--warn); }
.blk { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: auto; }
@media (max-width: 700px) {
  .cal2-cell { min-height: 58px; padding: 4px; align-items: center; }
  .cal2-cell .ev, .cal2-cell .ev-more, .cal2-cell .blk { display: none; }
  .ev-dots { display: flex; justify-content: center; }
}

/* The selected day */
.day-panel { margin-block: 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 10px; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.day-head h3 { font-family: var(--display); font-weight: 400; font-size: 24px; }
.day-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--bg); border-left: 3px solid var(--rose); }
.ev-row.unpaid { border-left-color: var(--warn); }
.ev-time { display: grid; font-variant-numeric: tabular-nums; }
.ev-time span { font-size: 12px; color: var(--muted); }
.ev-main { display: grid; gap: 2px; min-width: 0; }
.ev-main span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ev-side { display: grid; gap: 4px; justify-items: end; }
@media (max-width: 600px) { .ev-row { grid-template-columns: 70px minmax(0, 1fr); } .ev-side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; } }

/* To do */
.todo-groups { display: grid; gap: 28px; margin-block: 20px 64px; }
.todo-head { margin-bottom: 10px; }
.todo-head h2 { font-size: 24px; display: flex; gap: 8px; align-items: center; }
.todo-head .count { font-family: var(--body); font-size: 13px; font-weight: 700; background: var(--blush); color: var(--rose); border-radius: 999px; padding: 1px 9px; }
.all-done { display: grid; gap: 4px; text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.all-done b { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--ink); }

/* All bookings */
.list-tools { display: grid; gap: 12px; margin-block: 20px 16px; }
.list-tools .tabs { margin: 0; }
#search { max-width: 460px; }

/* Simple booking card */
.bk2 { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 8px; }
.bk2.attn { border-left: 3px solid var(--warn); }
.bk2.attn-quote { border-left: 3px solid var(--info); }
.day-panel .bk2 { margin-left: 18px; }
.bk2-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bk2-head h3 { font-size: 17px; }
.bk2-what { font-weight: 600; font-size: 15px; }
.bk2-appts { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.bk2-appts li { display: flex; gap: 4px 10px; flex-wrap: wrap; }
.bk2-appts .when { font-weight: 700; font-variant-numeric: tabular-nums; }
.bk2 > .minor { font-size: 13.5px; }
.bk2-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--rose); width: fit-content; }
.bk2-more ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13.5px; color: var(--muted); }
.bk2-more .bk-photos { margin-top: 8px; }
.bk2-actions { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.bk2-actions .ask { font-size: 14px; font-weight: 700; width: 100%; }
.link-btn.danger { color: var(--bad); font-weight: 500; font-size: 14px; }
@media (max-width: 600px) {
  .sections { flex-wrap: wrap; overflow: visible; }
  .sections button { padding: 10px 10px; }
  .dash-head { align-items: flex-start; }
}

/* ---------- Earnings: periods, chart, costs ---------- */
.earn-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-block: 20px 4px; }
.earn-toolbar .month-nav { margin: 0; }
.earn-toolbar .month-nav h2 { min-width: 8.5em; font-size: 24px; }
.period-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--sunk); border-radius: var(--r); padding: 3px; }
.period-seg button { border: 0; background: transparent; border-radius: 8px; padding: 8px 12px; font: 600 13.5px var(--body); color: var(--muted); cursor: pointer; }
.period-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(62, 36, 48, .12); }
.stat em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.chart-panel { margin-bottom: 16px; padding: 18px 18px 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-head h3 { font-size: 16px; }
.chart-legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.chart-legend span, .chart-tip span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i, .chart-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { position: relative; overflow: hidden; }
.chart svg { display: block; max-width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .grid.base { stroke: var(--muted); stroke-opacity: .45; }
.chart .tick { fill: var(--muted); font: 500 11px var(--body); font-variant-numeric: tabular-nums; }
.chart .vlabel { fill: var(--ink); font: 700 11px var(--body); font-variant-numeric: tabular-nums; }
.chart .hit { cursor: pointer; outline: none; }
.chart .hit:hover, .chart .hit:focus { fill: rgba(62, 36, 48, .05); }
.chart-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 3px; background: var(--ink); color: var(--surface);
  font-size: 12.5px; padding: 8px 10px; border-radius: 8px; min-width: 150px; font-variant-numeric: tabular-nums; }
.costs-panel { margin-block: 20px 64px; display: grid; gap: 14px; }
.costs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; }
.cost-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .cost-form { grid-template-columns: 1fr 1fr; } .cost-form .btn { grid-column: 1 / -1; } }
.cost-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cost-cats span { font-size: 13px; background: var(--sunk); border-radius: 999px; padding: 4px 10px; color: var(--muted); }
.cost-cats b { color: var(--ink); margin-left: 4px; font-variant-numeric: tabular-nums; }
.cost-month { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; display: grid; gap: 4px; }
.cost-month-head { display: flex; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; }
.cost-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; font-size: 14px; padding: 4px 0; }
.cost-row .num { font-variant-numeric: tabular-nums; }
.cost-row .x { width: 26px; height: 26px; font-size: 14px; }
#sec-days .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { #sec-days .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } #sec-days .stat b { font-size: 22px; } }
.todo-group .bk-list { padding-bottom: 0; }

/* Blocked times */
.ev.blk-time { background: repeating-linear-gradient(-45deg, var(--sunk) 0 5px, var(--surface) 5px 10px); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.ev-dots i.blk { background: var(--muted); border-radius: 2px; }
.ev-row.blocked-row { border-left-color: var(--muted); background: repeating-linear-gradient(-45deg, var(--sunk) 0 6px, var(--bg) 6px 12px); }
.ev-row.blocked-row .ev-main b { color: var(--muted); }
.block-time-form { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.6fr) auto; gap: 10px; align-items: end;
  background: var(--sunk); border-radius: var(--r); padding: 12px; }
.block-time-form .bt-actions { display: flex; gap: 8px; }
@media (max-width: 700px) { .block-time-form { grid-template-columns: 1fr 1fr; } .block-time-form .field:nth-child(3), .block-time-form .bt-actions { grid-column: 1 / -1; } }
#sec-settings .inline-form .field { min-width: 120px; }
.travel-panel { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.travel-panel > div:first-child { flex: 1 1 360px; }
.travel-panel p { color: var(--muted); font-size: 14px; max-width: 46em; }

/* ---------- Leaner booking steps ---------- */
.editor-title { align-items: center; }
.looks { display: grid; gap: 8px; }
.look-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.look-head b { font-size: 16px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-row .toggle { padding: 8px 12px; border-radius: 999px; font-size: 14px; }
.sticky-total { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 3; background: var(--surface);
  margin-inline: -28px; padding: 14px 28px; border-top: 1px solid var(--line); margin-bottom: -28px; border-radius: 0 0 14px 14px; }
@media (max-width: 560px) { .sticky-total { margin-inline: -16px; padding: 12px 16px; margin-bottom: -22px; } }
.sticky-total .big { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.extras { border: 1px dashed var(--line); border-radius: var(--r); padding: 10px 14px; }
.extras summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--rose); }
.extras-body { margin-top: 12px; }
.checks { display: grid; gap: 8px; }
.policy summary { cursor: pointer; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; width: fit-content; margin-left: 26px; }
.policy ul { margin: 6px 0 0 26px; padding-left: 16px; font-size: 13.5px; color: var(--muted); display: grid; gap: 2px; }
/* Payment: three numbered steps */
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pay-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.pay-n { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); color: var(--rose); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.pay-steps li > div { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pay-label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.pay-steps .alias-row { padding: 8px 12px; width: 100%; }
.pay-steps .alias-row .alias { font-size: 20px; }
.pay-steps .ref { font-size: 17px; padding: 4px 10px; }
.no-cliq-link { font-size: 14px; font-weight: 600; color: var(--rose); }
/* fixes from the phone check */
.top nav a.btn[aria-current] { color: var(--on-rose); }
.pay-steps .alias-row .alias { font-size: 18px; word-break: normal; white-space: nowrap; letter-spacing: .04em; }
.pp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pp-row:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.pp b { font-size: 18px; }
@media (max-width: 640px) {
  .progress li.on span { display: inline; }
  .progress li.on { justify-content: center; }
}

/* =========================================================
   Phone view: app-style header, bottom tab bar, one-column pages
   ========================================================= */
.menu-btn, .tabbar, .phone-menu { display: none; }
@media (max-width: 760px) {
  /* header: logo + menu button, stays at the top */
  .top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); padding-block: 10px; flex-wrap: nowrap; }
  .site-top nav { display: none; }
  .brand img { height: 38px; }
  .brand span { display: none; }
  .menu-btn { display: grid; gap: 4px; place-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .phone-menu:not([hidden]) { display: grid; position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 19; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(62, 36, 48, .08); padding: 6px 16px 12px; }
  .phone-menu a { padding: 14px 4px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .phone-menu a:last-child { border-bottom: 0; color: var(--rose); }

  /* bottom tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 18px rgba(62, 36, 48, .06); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current] { color: var(--rose); }
  .tabbar .tab-book svg { width: 44px; height: 44px; margin-top: -18px; padding: 10px; border-radius: 50%; background: var(--rose); color: var(--on-rose); stroke: var(--on-rose);
    box-shadow: 0 6px 14px rgba(184, 67, 111, .35); }
  .tabbar .tab-book { color: var(--rose); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  /* while booking, the booking's own Continue bar takes the bottom of the screen */
  body[data-page="book"] .tabbar { display: none; }
  body[data-page="book"] { padding-bottom: 0; }

  /* pages */
  .vouchers { grid-template-columns: 1fr; }
  .voucher-side { padding-top: 0; order: -1; }
  .lookbook { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: 32px; }
  .view.section { padding-top: 0; padding-bottom: 32px; }
  .back { margin-block: 14px 4px; }
  .foot { padding-block: 22px; }
}
@media (max-width: 760px) {
  main [data-view] { scroll-margin-top: calc(70px + env(safe-area-inset-top, 0px)); }
  .back { display: none; }
  .view.section { padding-top: 18px; }
}
/* the booking box clips without becoming a scroll box, so the total + Continue bar can stick to the bottom of the screen */
.booker { overflow: clip; }

/* Meet Masa on phones: the portrait comes first, and the heading tucks in beside its lower edge */
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .about .hero-cutout { order: -1; justify-self: end; margin-bottom: -72px; }
  .about .cut-frame { max-height: 360px; }
  .about .hero-cutout .cut-frame img { height: 440px; }
  .about-text { position: relative; z-index: 2; padding-bottom: 8px; }
  .about-text h2 { font-size: 40px; max-width: 6em; }
  .about-sub { max-width: 13em; }
}
@media (max-width: 760px) {
  .about .hero-cutout { margin-bottom: -48px; }   /* only "Meet Masa" overlaps the photo; the line under it starts below */
}

/* Clients list */
.clients-wrap { margin-bottom: 64px; }
.clients-table td { vertical-align: middle; }
.clients-table .c-rank { color: var(--muted); font-variant-numeric: tabular-nums; width: 36px; }
.clients-table .c-name { white-space: normal; min-width: 170px; }
.clients-table .c-name b, .clients-table .c-name .minor { display: block; }
.clients-table .c-name .pill { margin-top: 4px; }
.clients-table .c-act { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
#clientSearch { max-width: 460px; }
@media (max-width: 600px) { .clients-table .c-opt { display: none; } .clients-table td, .clients-table th { padding: 10px 8px; } }

/* ---------- Google reviews on the home page ---------- */
.reviews { padding-block: 8px 48px; }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.reviews-head h2 { font-size: clamp(30px, 4.6vw, 42px); margin-top: 6px; }
.rating-badge { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.rating-badge > b { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; }
.rating-badge div { display: grid; gap: 2px; }
.rating-badge span:not(.stars) { font-size: 13px; color: var(--muted); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; }
.stars svg.on { fill: #D99A2B; }
.stars svg.off { fill: var(--line); }
.rev-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 84%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; scrollbar-width: none; outline: none; }
.rev-track::-webkit-scrollbar { display: none; }
.rev-card { margin: 0; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.rev-text { margin: 0; font-family: var(--display); font-size: 17px; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rev-card.open .rev-text { -webkit-line-clamp: unset; display: block; }
.rev-text::before { content: "“"; } .rev-text::after { content: "”"; }
.rev-more { justify-self: start; font-size: 13px; }
.rev-card figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.rev-card figcaption > span:last-child { display: grid; }
.rev-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blush); color: var(--rose); display: grid; place-items: center; font-weight: 700; flex: none; }
.rev-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.rev-arrows, .rev-links { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .rev-arrows { display: none; } .rev-links { width: 100%; } .rev-links .btn { flex: 1; } }

/* ---------- Dashboard: Google reviews panel ---------- */
.reviews-admin .inline-form { flex-wrap: wrap; align-items: flex-end; }
.review-form { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 10px 12px; margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-form textarea { min-height: 84px; }
.rv-list { display: grid; gap: 8px; margin-top: 14px; }
.rv-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rv-row p { margin: 4px 0 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-stars { color: #D99A2B; letter-spacing: 1px; }
@media (max-width: 640px) { .review-form { grid-template-columns: 1fr 1fr; } .review-form .field:first-child { grid-column: 1 / -1; } }
/* Reviews: the "Reviews" menu link lands here below the sticky header; note shown before any reviews are added */
#reviews { scroll-margin-top: 90px; }
.rev-empty { margin: 0 0 18px; max-width: 56ch; color: var(--muted); font-size: 16px; }

/* ---------- Meet Masa on phones: title beside the portrait (in a blush arch), the story underneath ---------- */
@media (max-width: 760px) {
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 50%);
    grid-template-areas: "title photo" "sub photo" "body body" "cta cta";
    grid-template-rows: 1fr auto auto auto;
    column-gap: 18px; row-gap: 0; align-items: end; padding-top: 16px;
  }
  .about-text { display: contents; }
  .about-text h2 { grid-area: title; align-self: end; font-size: 40px; line-height: 1; max-width: none; }
  .about-sub { grid-area: sub; align-self: end; margin: 10px 0 0; font-size: 17px; line-height: 1.35; max-width: none; }
  .about-body { grid-area: body; margin-top: 24px; }
  .about-text .hero-cta { grid-area: cta; margin-top: 18px; }

  /* the portrait sits inside the content column, lined up with the text, not bleeding off the edge */
  .about .hero-cutout { grid-area: photo; order: 0; position: relative; left: auto; justify-self: stretch; align-self: end; margin: 0; padding: 7px; display: block; min-width: 0; box-sizing: border-box; }
  .about .hero-cutout::before {   /* a fine pink arch traced just outside the photo */
    content: ""; position: absolute; inset: 0; border: 1px solid var(--pink); border-radius: 999px 999px 22px 22px; opacity: .7; pointer-events: none;
  }
  .about .cut-frame {
    height: 236px; max-height: none; margin: 0; padding: 0; overflow: hidden; width: 100%; box-sizing: border-box;
    border-radius: 999px 999px 16px 16px; background: var(--blush);
    display: flex; align-items: flex-start; justify-content: center;
  }
  .about .hero-cutout .cut-frame img { height: 330px; width: auto; max-width: none; transform: none; filter: none; margin-top: 10px; flex: none; }

  /* sparkles around the arch */
  .about .d-spark1 { top: 6px; left: -14px; width: 20px; height: 20px; }
  .about .d-spark2 { top: 34px; left: -2px; width: 10px; height: 10px; }
  .about .d-spark3 { top: auto; bottom: 40px; left: -16px; width: 14px; height: 14px; }
  .about .d-spark4 { top: 48%; left: auto; right: -12px; width: 11px; height: 11px; }
  .about .d-spark5 { top: -10px; left: auto; right: 14px; width: 15px; height: 15px; }
}

/* Weekly blocks (Settings → Blocked days) */
.repeat-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.repeat-block h3 { font-size: 16px; }
.repeat-block p { margin: 0; }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chips button { font: inherit; font-size: 14px; font-weight: 600; min-width: 42px; padding: 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.day-chips button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.repeat-block .blocked-list { margin-top: 4px; }
.repeat-block .blocked-list .minor { display: block; font-size: 12px; }
/* Recurring blocks: how often + which dates of the month */
.rb-freq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rb-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; max-width: 360px; }
.month-days button { font: inherit; font-size: 13.5px; font-weight: 600; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.month-days button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }

/* ---------- Mesa's Space: private events ---------- */
.space-facts { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.space-facts li { padding: 7px 14px; border-radius: 999px; background: var(--blush); color: var(--rose); font-size: 14px; font-weight: 600; }
.space-photos { display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 80%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 26px; padding-bottom: 4px; }
.space-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; scroll-snap-align: start; }
.space-detail { display: grid; gap: 10px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.space-detail h3 { font-size: 15px; margin-top: 4px; }
.incl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.incl-list li { position: relative; padding-left: 22px; }
.incl-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--rose); border-bottom: 2px solid var(--rose); transform: rotate(-45deg); }
.terms-list { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14px; color: var(--ink); }
.terms-list li::marker { color: var(--rose); font-weight: 700; }
.terms-check { padding: 12px 14px; border-radius: var(--r); background: var(--sunk); }
.ev-services { border: 0; padding: 0; margin: 0; }
.ev-services legend { padding: 0; margin-bottom: 6px; }
#guestHint.bad { color: var(--bad); font-weight: 600; }
.form .full { grid-column: 1 / -1; }
/* dashboard: approved events */
.ev.space-ev { background: var(--info-soft); color: var(--info); }
.ev-dots i.space { background: var(--info); }
.ev-row.space-row { border-left-color: var(--info); background: var(--info-soft); }
.warn-text { color: var(--warn); }
.bk2-vision { font-size: 14px; font-style: italic; color: var(--ink); margin: 6px 0 0; white-space: pre-line; }
/* date boxes open the calendar when tapped anywhere */
input[type="date"] { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }

/* ---------- Home: two halves, makeup (rose) and Mesa's Space events (mauve, like its logo) ---------- */
:root { --mauve: #8A4A7C; --mauve-soft: #F6EAF3; --mauve-line: #E6CFE0; }
.home-intro { padding-block: 48px 28px; max-width: 1040px; }
.home-intro > div:first-child { max-width: 720px; margin-inline: auto; }
.home-intro .lead { margin-bottom: 30px; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; }
.door { display: grid; gap: 18px; align-content: space-between; padding: 26px; border-radius: 20px; border: 1px solid var(--line); }
.door-makeup { background: var(--blush); border-color: #F4D3DF; }
.door-events { background: var(--mauve-soft); border-color: var(--mauve-line); }
.door-link { display: grid; gap: 6px; text-decoration: none; color: var(--ink); }
.door-link b { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.05; }
.door-link span:last-child { color: var(--muted); font-size: 15px; max-width: 30em; }
.door-kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--rose); }
.door-events .door-kicker, .part-events .eyebrow, .ev-card .door-kicker { color: var(--mauve); }
.door-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.btn-mauve { background: var(--mauve); border-color: var(--mauve); color: #FFFFFF; }
.btn.btn-mauve:hover { background: #763F69; border-color: #763F69; }
.btn.ghost.ghost-mauve { color: var(--mauve); border-color: var(--mauve); background: transparent; }
@media (max-width: 760px) {
  .home-intro { padding-block: 28px 12px; }
  .doors { grid-template-columns: 1fr; gap: 12px; }
  .door { padding: 20px; gap: 14px; }
  .door-cta .btn { flex: 1; text-align: center; }
}
.home-part { padding-top: 40px; scroll-margin-top: 80px; }
.part-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 40px; flex-wrap: wrap; margin-bottom: 20px; }
.part-head h2 { font-size: clamp(32px, 4.6vw, 44px); margin-top: 6px; }
.part-head p { color: var(--muted); max-width: 32em; margin: 0; }
.part-events { margin-bottom: 56px; padding: 36px 32px 32px; border-radius: 24px; background: var(--mauve-soft); }
.part-events .space-facts li { background: var(--surface); color: var(--mauve); }
.ev-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ev-card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--mauve-line); }
.ev-card h3 { font-family: var(--display); font-weight: 400; font-size: 26px; }
.ev-card p { margin: 0; color: var(--muted); font-size: 15px; }
.ev-card .incl-list li::before { border-color: var(--mauve); }
.ev-card .btn { justify-self: start; margin-top: 8px; }
.ev-acts-label { font-weight: 700; color: var(--ink) !important; font-size: 14px !important; margin-top: 4px !important; }
.ev-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-acts span { padding: 6px 12px; border-radius: 999px; background: var(--mauve-soft); color: var(--mauve); font-size: 13.5px; font-weight: 600; }
.ev-acts span.own { background: none; box-shadow: inset 0 0 0 1px var(--mauve-line); font-weight: 500; }
@media (max-width: 760px) {
  .home-part { padding-top: 28px; }
  .part-events { padding: 26px 18px 18px; border-radius: 20px; margin-inline: 16px; }
  .ev-cards { grid-template-columns: 1fr; }
  .ev-card { padding: 20px; }
}
.btn.ghost.ghost-mauve:hover { background: var(--surface); color: var(--mauve); border-color: var(--mauve); }
.hero2.solo.home-intro { max-width: 1040px; }
@media (max-width: 760px) { .door-cta .btn { flex: 1 1 auto; padding-inline: 12px; white-space: nowrap; } }
/* Mesa's Space photos: a strip that keeps each photo's own shape; a photo on top of each home card */
.space-photos { grid-auto-columns: auto; }
.space-photos img { width: auto; height: 300px; aspect-ratio: auto; max-width: none; }
@media (max-width: 760px) { .space-photos img { height: 220px; } }
.ev-card { overflow: hidden; }
.ev-card-img { display: block; width: calc(100% + 48px); max-width: none; margin: -24px -24px 6px; height: 220px; object-fit: cover; }
@media (max-width: 760px) { .ev-card-img { width: calc(100% + 40px); margin: -20px -20px 4px; height: 190px; } }
/* taller card photos, so the whole event table shows */
.ev-card-img { height: 300px; }
@media (max-width: 760px) { .ev-card-img { height: 240px; } }

/* ---------- Welcome: choose makeup or events ---------- */
[data-view="makeup"] { overflow-x: clip; }   /* the Meet Masa portrait now lives on the makeup page */
.chooser { padding-block: 40px 56px; min-height: calc(100svh - 140px); display: grid; align-content: center; gap: 28px; }
.chooser-head { text-align: center; display: grid; gap: 10px; }
.chooser-head h1 { font-size: clamp(36px, 5.4vw, 58px); }
.chooser-head h1 em { color: var(--rose); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice { position: relative; display: block; min-height: min(62vh, 560px); border-radius: 24px; overflow: hidden; text-decoration: none; color: #FFFFFF; background: var(--rose); }
.choice-events { background: var(--mauve); }
.choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.choice:hover img { transform: scale(1.04); }
.choice-cap { position: absolute; inset: auto 0 0 0; display: grid; gap: 6px; padding: 80px 28px 26px; background: linear-gradient(transparent, rgba(40, 18, 30, .82) 55%); }
.choice-events .choice-cap { background: linear-gradient(transparent, rgba(48, 20, 42, .85) 55%); }
.choice-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #F7C9DA; }
.choice-events .choice-kicker { color: #EBC9E3; }
.choice-cap b { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.8vw, 44px); line-height: 1.05; }
.choice-cap > span:not(.choice-kicker) { font-size: 15px; opacity: .92; max-width: 30em; }
.choice-cap i { font-style: normal; font-weight: 700; font-size: 15px; margin-top: 8px; display: inline-flex; align-self: start; padding: 10px 18px; border-radius: 999px; background: #FFFFFF; color: var(--rose); }
.choice-events .choice-cap i { color: var(--mauve); }
@media (max-width: 760px) {
  .chooser { padding-block: 22px 28px; min-height: 0; gap: 18px; }
  .choices { grid-template-columns: 1fr; gap: 12px; }
  .choice { min-height: 300px; border-radius: 20px; }
  .choice-cap { padding: 60px 20px 20px; }
}
/* makeup page: the back link sits above the intro */
#makeup .hero2 .back { display: inline-block; margin-bottom: 18px; }
/* events page */
.events-page { padding-block: 24px 64px; }
.events-page .back { display: inline-block; margin-bottom: 16px; }
.ev-title { font-size: clamp(38px, 5.4vw, 56px); margin-top: 6px; }
.events-page .part-events, .events-page .ev-cards { margin-bottom: 8px; }
.ev-sub { font-size: clamp(26px, 3.4vw, 34px); margin: 44px 0 16px; }
.events-page .space-facts li { background: var(--mauve-soft); color: var(--mauve); }
.events-page .eyebrow { color: var(--mauve); }
.ev-cta { margin-top: 40px; padding: 28px; border-radius: 20px; background: var(--mauve-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ev-cta p { margin: 0; font-family: var(--display); font-size: 26px; }
#makeup .hero2 .back { display: table; margin: 0 auto 18px; }
@media (max-width: 760px) {
  .chooser-head h1 { font-size: 30px; }
  .choice { min-height: 250px; }
  .choice-cap { gap: 4px; padding: 48px 18px 16px; }
  .choice-cap b { font-size: 30px; }
  .choice-cap > span:not(.choice-kicker) { font-size: 14px; }
  .choice-cap i { padding: 8px 16px; font-size: 14px; }
}

/* ---------- Videos: Lookbook, Mesa's Space and the dashboard ---------- */
.lookbook button.is-video, .space-photos button { position: relative; }
.lookbook video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px; font-size: 20px; color: var(--rose); background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(40, 20, 30, .25); pointer-events: none; }
.is-video { background: linear-gradient(160deg, var(--blush), var(--sunk)) !important; }
/* Mesa's Space strip: each photo or video is a button that opens the viewer */
.space-photos button { padding: 0; border: 0; background: var(--sunk); border-radius: 14px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; height: 300px; min-width: 169px; }
.space-photos button img, .space-photos button video { height: 100%; width: auto; display: block; border-radius: 0; }
.space-photos button.is-video { cursor: pointer; }
@media (max-width: 760px) { .space-photos button { height: 220px; min-width: 124px; } }
/* viewer */
.lightbox video { max-height: 78vh; max-width: 100%; border-radius: var(--r); background: #000; }
.lightbox iframe { width: min(92vw, 480px); aspect-ratio: 9 / 16; max-height: 78vh; border: 0; border-radius: var(--r); background: #000; }
/* dashboard */
.lb-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--sunk); }
.lb-thumb img, .lb-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-item .lb-thumb img { aspect-ratio: auto; border-radius: 0; }
.vid-tag { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(40, 20, 30, .75); color: #FFFFFF; font-size: 12px; font-weight: 700; }
.lb-item.fixed .lb-thumb { opacity: .85; }
/* dashboard: Events tab */
.events-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.events-intro h2 { font-size: 24px; margin-bottom: 4px; }
.events-intro p { max-width: 60ch; margin: 0; }
.ev-past summary { cursor: pointer; font-weight: 700; padding: 10px 0; }

/* ---------- Pop-up calendar for event and lesson dates ---------- */
.date-wrap { position: relative; }
.date-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 16px var(--body); text-align: left; cursor: pointer; }
.date-field.empty { color: var(--muted); }
.date-field:hover, .date-field[aria-expanded="true"] { border-color: var(--rose); }
.date-field svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--rose); stroke-width: 1.7; stroke-linecap: round; }
.date-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(330px, calc(100vw - 32px)); padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(62, 36, 48, .18); }
/* spam trap: off-screen, never seen by visitors */
.hp-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
