/* Dr. Aammar Tufail · 1:1 Mentorship — warm, minimal, professional */
:root {
  --bg: #f6f1ea;
  --bg-tint: #efe7db;
  --surface: #fffdf9;
  --ink: #1c1a17;
  --ink-2: #3a362f;
  --muted: #706859;
  --line: #e4d9c9;
  --accent: #b5692a;
  --accent-ink: #8f4f1b;
  --accent-soft: #f6e6d3;
  --dark: #1c1a17;
  --ok: #2f7a55; --ok-soft: #e3f1e8;
  --warn: #9a6a00; --warn-soft: #fbf0d4;
  --info: #2d5f8a; --info-soft: #e3edf6;
  --bad: #b3412e; --bad-soft: #f8e3df;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28,26,23,.04), 0 12px 32px -12px rgba(28,26,23,.14);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; }
code { background: var(--accent-soft); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.break { word-break: break-all; }
.pre-line { white-space: pre-line; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.opt { color: var(--muted); font-weight: 400; font-size: .8rem; }

/* Type */
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -.02em; line-height: 1.04; }
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -.015em; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: 1.85rem; }
.h3 { font-size: 1.15rem; }
.h4 { font-size: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; }
.kicker, .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .9rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; background: var(--surface); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 999px; letter-spacing: .08em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(47,122,85,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47,122,85,0); } 100% { box-shadow: 0 0 0 0 rgba(47,122,85,0); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: 999px; padding: .72rem 1.3rem; font: 600 .95rem/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(143,79,27,.6); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #8e3122; color: #fff; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .48rem .95rem; font-size: .85rem; }
.btn-block { width: 100%; }
.link-danger { background: none; border: 0; color: var(--bad); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246,241,234,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(228,217,201,.7); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.brand small { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .93rem; padding: .45rem .7rem; border-radius: 999px; }
.nav-links > a:not(.btn):hover, .nav-links > a.on { background: var(--surface); color: var(--ink); }
.nav-links .btn { margin-left: .4rem; }
.dot { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; vertical-align: middle; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: .7rem .5rem; }
  .nav-links .btn { margin: .5rem 0 0; }
}

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--dark); color: #efe7db; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.flash-wrap { padding-top: 1.25rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 620px; height: 620px; right: -160px; top: -120px; background: radial-gradient(closest-side, rgba(181,105,42,.13), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }
.hero-copy .display { margin: .2rem 0 1.25rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0 2.5rem; }
.hero-facts { list-style: none; display: flex; gap: 2.25rem; padding: 1.5rem 0 0; margin: 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.hero-facts span { font-size: .85rem; color: var(--muted); }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { border-radius: 28px 28px 28px 120px; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 22%; width: 100%; box-shadow: var(--shadow); }
.hero-photo figcaption { position: absolute; left: -1.5rem; bottom: 2rem; background: var(--surface); border: 1px solid var(--line); padding: .9rem 1.15rem; border-radius: 16px; box-shadow: var(--shadow); max-width: 80%; display: flex; flex-direction: column; }
.hero-photo figcaption strong { font-family: var(--serif); font-weight: 600; }
.hero-photo figcaption span { font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; margin-inline: auto; order: -1; }
  .hero-photo img { aspect-ratio: 1/1; border-radius: 28px 28px 28px 90px; }
  .hero-photo figcaption { left: .75rem; bottom: .75rem; }
}

/* About + topics */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.prose p { font-size: 1.08rem; color: var(--ink-2); }
.chip-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.chip { display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s; }
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-n { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; display: block; margin-bottom: 1.6rem; }
.topic h3 { font-size: 1.02rem; }
.topic p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 1rem; } .topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .topics { grid-template-columns: 1fr; } }

/* Pricing */
.currency-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.currency-switch button { border: 0; background: none; padding: .45rem .9rem; border-radius: 999px; font: 600 .85rem var(--sans); cursor: pointer; color: var(--muted); }
.currency-switch button.on { background: var(--ink); color: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem 1.75rem; display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
.price-card.is-popular { border-color: var(--ink); box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -12px; left: 1.75rem; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.price-min { font-size: .9rem; color: var(--muted); margin-bottom: .2rem; }
.price-min span { font-family: var(--serif); font-size: 3.2rem; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.price-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.price-amount { font-family: var(--serif); font-size: 1.6rem; margin: .4rem 0 .8rem; color: var(--accent-ink); }
.price-card .muted { font-size: .93rem; margin-bottom: 1.6rem; }
.note { margin-top: 1.75rem; color: var(--muted); font-size: .93rem; }

/* How */
.how { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.how li { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.how li span { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); display: block; line-height: 1; margin-bottom: .9rem; }
.how p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }

/* Payment band */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.kicker-light { color: #e9b872; }
.lead-light { color: #c9bfae; font-size: 1.05rem; }
.pay-cards { display: grid; gap: 1rem; }
.pay-cards article { border: 1px solid #3a352d; border-radius: var(--radius); padding: 1.5rem; background: #24211c; }
.pay-cards h3 { color: #fff; font-size: 1.05rem; }
.pay-cards p { color: #c9bfae; margin: 0; font-size: .95rem; }
.pay-cards code { background: #3a352d; color: #f2d7b0; }
@media (max-width: 860px) { .pay-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: .7rem 0 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { width: 6rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Cards & forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.card-accent { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stack { display: grid; gap: 1.25rem; align-content: start; }
.form { display: grid; gap: 1rem; }
.form h3 { margin: .5rem 0 0; font-size: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
label.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
input, select, textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
textarea { resize: vertical; min-height: 3rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { background: var(--bg); color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.alert { border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1rem; font-size: .95rem; border: 1px solid; }
.alert-success { background: var(--ok-soft); border-color: #bfdcc9; color: #1f5a3d; }
.alert-error { background: var(--bad-soft); border-color: #eec2b9; color: #8e3122; }
.alert-info { background: var(--info-soft); border-color: #c4d7e8; color: #234b6d; }
.alert a { color: inherit; font-weight: 600; }

/* Auth */
.auth-wrap { width: min(460px, 100% - 2.5rem); margin: clamp(2rem, 6vw, 4rem) auto; }
.auth-page { padding: 1rem 0; }
.auth-alt { text-align: center; margin: 1rem 0 0; font-size: .93rem; }
.steps-list li { margin-bottom: .6rem; }

/* Booking */
.booking { display: grid; gap: 1.25rem; margin-top: 2rem; }
.booking-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.step-title { display: flex; align-items: center; gap: .7rem; font-size: 1.1rem; margin: 0; }
.step-title span { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.duration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.duration { cursor: pointer; display: block; }
.duration input { position: absolute; opacity: 0; pointer-events: none; }
.duration-body { display: flex; flex-direction: column; gap: .1rem; border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; transition: border-color .15s, background .15s; font-weight: 400; }
.duration-body strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.duration-body em { font-style: normal; color: var(--muted); font-size: .88rem; }
.duration-price { font-weight: 700; margin-top: .35rem; color: var(--accent-ink); }
.duration:hover .duration-body { border-color: #c9b9a2; }
.duration input:checked + .duration-body { border-color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.duration input:focus-visible + .duration-body { box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--ink); }

.picker { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 1.5rem; margin-top: .5rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.cal-head strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .3rem 0; }
.day { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; font: 500 .93rem var(--sans); color: #bdb3a4; cursor: default; position: relative; }
.day.has { color: var(--ink); background: var(--accent-soft); cursor: pointer; font-weight: 700; }
.day.has:hover { background: #efd6b8; }
.day.on { background: var(--ink) !important; color: #fff; }
.day.today::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.times-title { font-weight: 700; margin-bottom: .8rem; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; max-height: 330px; overflow: auto; padding: 2px; }
.time { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: .65rem .4rem; font: 600 .93rem var(--sans); cursor: pointer; color: var(--ink); }
.time:hover { border-color: var(--ink); }
.time.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.summary { display: flex; flex-direction: column; justify-content: center; background: var(--bg); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .9rem; }
.summary strong { font-size: 1rem; }
@media (max-width: 760px) { .picker { grid-template-columns: 1fr; } }

/* Booking detail */
.back { display: inline-block; text-decoration: none; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.booking-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.booking-head .h1 { margin-bottom: .2rem; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.pre { white-space: pre-wrap; background: var(--bg); border: 1px dashed var(--line); padding: 1rem; border-radius: var(--radius-sm); font: 500 .93rem/1.6 var(--sans); margin: 0 0 1rem; }
.pay-details { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; }
.dl { margin: 0 0 1.25rem; display: grid; gap: .1rem; }
.dl dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: .8rem; }
.dl dd { margin: 0; }
.reveal { margin-top: .75rem; }
.reveal > summary { list-style: none; cursor: pointer; display: inline-flex; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal[open] > summary { margin-bottom: 1rem; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.timeline li { padding: .5rem 0 .5rem 1rem; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: .85rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline span { display: block; color: var(--muted); font-size: .78rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending_payment { background: var(--warn-soft); color: var(--warn); }
.badge-payment_submitted { background: var(--info-soft); color: var(--info); }
.badge-confirmed { background: var(--ok-soft); color: var(--ok); }
.badge-completed { background: #ece7df; color: var(--ink-2); }
.badge-cancelled { background: var(--bad-soft); color: var(--bad); }

/* Booking list rows */
.b-list { display: grid; gap: .5rem; }
.b-row { display: flex; align-items: center; gap: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.b-row:hover { border-color: var(--ink); background: var(--bg); color: var(--ink); }
.b-date { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.b-date strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.b-date small { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); font-weight: 700; margin-top: 2px; }
.b-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 520px) { .b-row { flex-wrap: wrap; } .b-row .badge { margin-left: calc(52px + 1rem); } }

/* Chat */
.chat-page { max-width: 820px; }
.chat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.chat-head img { border-radius: 50%; }
.chat-head .h3 { margin: 0; }
.chat-head p { margin: 0; }
.chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-log { height: min(58vh, 560px); overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem; background: linear-gradient(var(--surface), var(--bg)); }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; }
.bubble { padding: .7rem 1rem; border-radius: 18px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.mine .bubble a { color: #f2d7b0; }
.msg.theirs .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg .meta { font-size: .72rem; color: var(--muted); margin-top: .2rem; padding: 0 .4rem; }
.chat-form { display: flex; gap: .6rem; padding: .9rem; border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; align-items: end; }
.chat-form textarea { flex: 1; min-width: 200px; }
.chat-context { width: 100%; margin: 0; color: var(--muted); }

/* Admin */
.area-admin .site-header { background: rgba(28,26,23,.96); border-color: #2c2823; }
.area-admin .brand, .area-admin .nav-links > a:not(.btn) { color: #e7dfd2; }
.area-admin .brand small { color: #a69c8b; }
.area-admin .nav-links > a:not(.btn):hover, .area-admin .nav-links > a.on { background: #34302a; color: #fff; }
.area-admin .nav-links .btn-ghost { background: transparent; color: #e7dfd2; border-color: #4a443b; }
.area-admin .nav-toggle span { background: #fff; }
@media (max-width: 960px) { .area-admin .nav-links { background: #1c1a17; } }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: border-color .15s; }
.stat:hover { border-color: var(--ink); color: var(--ink); }
.stat strong { font-family: var(--serif); font-size: 2.3rem; font-weight: 500; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
.stat-hot { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .9rem; }
.filters select, .filters input { width: auto; flex: 1 1 160px; padding: .55rem .75rem; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .9rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr[onclick] { cursor: pointer; }
.table tbody tr[onclick]:hover { background: var(--bg); }
.table-edit td { padding: .45rem .4rem; vertical-align: middle; }
.table-edit input:not([type="checkbox"]):not([type="radio"]) { padding: .45rem .55rem; font-size: .9rem; }
.row-new { background: var(--bg); }
.week { display: grid; gap: .25rem; }
.week-day { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.week-wins { display: flex; gap: .75rem; flex-wrap: wrap; }
.win { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); }
.win input { width: 7.2rem; padding: .45rem .5rem; font-size: .9rem; }
@media (max-width: 620px) { .week-day { grid-template-columns: 1fr; gap: .4rem; } }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.blocked li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.pay-proof { background: var(--bg); border-radius: var(--radius-sm); padding: 1rem; }
.pay-proof p { margin: 0 0 .35rem; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs a { padding: .5rem 1rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tabs a.on { background: var(--ink); color: #fff; }
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 1.25rem; align-items: start; }
.inbox-list { padding: .75rem; display: grid; gap: .25rem; max-height: 75vh; overflow-y: auto; }
.inbox-list .form { margin-bottom: .5rem; }
.thread { display: flex; flex-direction: column; padding: .75rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.thread:hover { background: var(--bg); color: var(--ink); }
.thread.on { background: var(--accent-soft); }
@media (max-width: 860px) { .inbox { grid-template-columns: 1fr; } .inbox-list { max-height: 260px; } }
.enquiry-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.row-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.enquiry.is-done { opacity: .6; }
.sticky-save { position: sticky; top: 90px; }

/* Footer */
.site-footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr; gap: 2.5rem; }
.brand-footer { margin-bottom: 1rem; }
.site-footer h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.social a { display: inline-block; padding: .38rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); font-size: .85rem; font-weight: 600; }
.social a:hover { border-color: var(--ink); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .93rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- v2 additions ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nowrap { white-space: nowrap; }
.policy-box { background: var(--warn-soft); border: 1px solid #ecd9a6; border-radius: var(--radius-sm); padding: 1rem 1.1rem; display: grid; gap: .75rem; }
.policy-box .check { font-weight: 600; align-items: flex-start; }
.policy-box .check input { margin-top: .25rem; }
.policy-line { color: var(--warn); }
.pay-cards .pay-policy { border-color: #6b5320; background: #2b2518; }
.pay-cards .pay-policy h3 { color: #f2d7b0; }
.zoom-tips { background: var(--bg); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1rem; }
.zoom-tips strong { color: var(--ink); }
.picked { border-top: 1px dashed var(--line); padding-top: 1rem; }
.chip-x { cursor: pointer; font-family: var(--sans); }
.chip-x:hover { border-color: var(--bad); color: var(--bad); }
.chip-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.proposals li { padding: .55rem .8rem; background: var(--bg); border-radius: var(--radius-sm); font-weight: 600; }
.proposal-list { display: grid; gap: .5rem; }
.proposal { display: flex; align-items: center; gap: .75rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; cursor: pointer; font-weight: 400; }
.proposal span { display: flex; flex-direction: column; }
.proposal:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); }
.proposal.is-off { opacity: .5; cursor: not-allowed; }
.mode-card { margin-bottom: 1.25rem; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.mode-opt { display: flex; gap: .75rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem; cursor: pointer; font-weight: 400; }
.mode-opt span { display: flex; flex-direction: column; gap: .2rem; }
.mode-opt input { margin-top: .3rem; }
.mode-opt:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); }
@media (max-width: 700px) { .mode-grid { grid-template-columns: 1fr; } }
.inline-pair { display: flex; align-items: center; gap: .5rem; }
.inline-pair input { width: 5rem; }
.weekday-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.weekday-pick legend { font-weight: 600; margin-bottom: .4rem; width: 100%; }
.is-dim { opacity: .65; }
.fx-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 620px) { .fx-rates { grid-template-columns: 1fr; } }
input.is-auto { background: var(--bg); color: var(--muted); }
.auto-price { display: block; font-size: .75rem; margin-top: .15rem; }
.attach-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 1.15rem; background: #fff; }
.attach-btn:hover { border-color: var(--ink); }
.file-label { width: 100%; color: var(--accent-ink); }
.file-label:empty { display: none; }
.att { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); max-width: 100%; margin-top: .3rem; }
.att:hover { border-color: var(--ink); color: var(--ink); }
.att span { display: flex; flex-direction: column; min-width: 0; }
.att strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.att small { color: var(--muted); font-size: .75rem; }
.att-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-ink); font-weight: 700; flex: none; }
.msg.mine .att { background: #2a2722; color: #fff; border-color: #2a2722; }
.msg.mine .att small { color: #c9bfae; }
.att-img img { max-width: 260px; max-height: 220px; border-radius: 14px; border: 1px solid var(--line); margin-top: .3rem; }
.sig-preview iframe, .mail-frame { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f6f1ea; }
.mail-frame { height: 60vh; background: #fff; }
.mail-text { background: var(--bg); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .95rem; overflow-wrap: anywhere; }
.mail-table tbody tr { cursor: pointer; }
.mail-table tbody tr:hover { background: var(--bg); }
.mail-table tr.unread td { font-weight: 700; }
.mail-table td a { color: inherit; text-decoration: none; }
@media (max-width: 1180px) and (min-width: 961px) { .area-admin .nav-links > a:not(.btn) { padding: .45rem .5rem; font-size: .88rem; } }
.badge-requested { background: #efe4f6; color: #6b3d8f; }

/* New-message pop-ups (assets/js/notify.js) */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.toast { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); box-shadow: var(--shadow), 0 18px 40px -16px rgba(28,26,23,.35); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; overflow: hidden; }
.toast.in { opacity: 1; transform: none; }
.toast-body { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 8px; color: var(--ink); text-decoration: none; }
.toast-body:hover { color: var(--ink); background: var(--bg); }
.toast-ico { font-size: 1.3rem; line-height: 1.2; }
.toast-body strong { display: block; font-size: .95rem; }
.toast-text { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast-actions { display: flex; justify-content: space-between; padding: 0 10px 8px 52px; }
.toast-actions button { background: none; border: 0; padding: 4px 6px; font: inherit; font-size: .78rem; color: var(--muted); cursor: pointer; border-radius: 6px; }
.toast-actions button:hover { color: var(--ink); background: var(--bg-tint); }
@media (max-width: 600px) { .toast-stack { left: 16px; right: 16px; bottom: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.notify-optin { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 18px; padding: 12px 16px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; }
.notify-optin[hidden] { display: none; }
.notify-optin-actions { display: flex; gap: 8px; }

/* reCAPTCHA v3: the floating badge is replaced by the text note Google allows */
.grecaptcha-badge { visibility: hidden !important; }
.captcha-note { font-size: .75rem; color: var(--muted); margin: .25rem 0 0; order: 99; }
.captcha-note a { color: inherit; }

/* Booking page: sign up or sign in without leaving the page */
.account-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 1rem; background: var(--bg-tint); border-radius: 999px; }
.account-switch label { display: flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); }
.account-switch input { position: absolute; opacity: 0; pointer-events: none; }
.account-switch label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(28,26,23,.12); }
.account-switch label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-account-panel] { border: 0; padding: 0; margin: 0; min-width: 0; }
[data-account-panel][hidden] { display: none; }

/* About: experience line + wide "05" card across the whole row */
.about-badge { margin: 1.25rem 0 0; color: var(--muted); font-size: .98rem; max-width: 22rem; }
.about-badge strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; color: var(--accent-ink); }
.topic-wide { grid-column: 1 / -1; background: var(--accent-soft); border-color: var(--accent-soft); }
.topic-wide .topic-n { margin-bottom: .9rem; }
.topic-wide-body { display: flex; gap: 1.5rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.topic-wide-body > div { flex: 1 1 28rem; }
.topic-wide p { color: var(--ink-2); max-width: 46rem; }
.topic-wide .btn { flex: none; }

/* ---------- Messenger-style chat (assets/js/widget.js) ---------- */
.mchat { position: fixed; right: 20px; bottom: 20px; z-index: 210; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.mchat > * { pointer-events: auto; }
.mchat-launch { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(28,26,23,.55); transition: transform .15s, background .15s; }
.mchat-launch:hover { transform: scale(1.06); background: var(--accent-ink); }
.mchat.is-open .mchat-launch { transform: scale(.92); }
.mchat-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.mchat-badge[hidden] { display: none; }
.mchat-panel { width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(28,26,23,.45); display: flex; flex-direction: column; overflow: hidden; animation: mchat-in .2s ease-out; }
.mchat-panel[hidden] { display: none; }
@keyframes mchat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.mchat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--ink); color: #fff; }
.mchat-head img { border-radius: 50%; object-fit: cover; }
.mchat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mchat-who strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mchat-who small { font-size: .78rem; opacity: .8; display: flex; align-items: center; gap: 6px; }
.mchat-online { width: 8px; height: 8px; border-radius: 50%; background: #3ecf7a; display: inline-block; }
.mchat-icon { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 1rem; }
.mchat-icon:hover { background: rgba(255,255,255,.14); color: #fff; }
.mchat-icon[hidden] { display: none; }
.mchat-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--bg); overscroll-behavior: contain; }
.mchat-log { display: flex; flex-direction: column; gap: 8px; }
.mchat-log[hidden] { display: none; }
.mchat-empty { color: var(--muted); font-size: .88rem; text-align: center; margin: 2rem .5rem; }
.mchat-msg { display: flex; flex-direction: column; max-width: 82%; }
.mchat-msg.mine { align-self: flex-end; align-items: flex-end; }
.mchat-msg.theirs { align-self: flex-start; }
.mchat-bubble { padding: 8px 12px; border-radius: 18px; font-size: .93rem; line-height: 1.45; overflow-wrap: anywhere; }
.mchat-msg.mine .mchat-bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.mchat-msg.mine .mchat-bubble a { color: #fff; }
.mchat-msg.theirs .mchat-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.mchat-time { font-size: .7rem; color: var(--muted); margin: 2px 6px 0; }
.mchat-img img { max-width: 220px; border-radius: 12px; display: block; }
.mchat-file { font-size: .88rem; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mchat-send { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.mchat-send[hidden] { display: none; }
.mchat-send textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; font: inherit; font-size: .93rem; max-height: 120px; background: var(--bg); }
.mchat-send textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.mchat-go { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-size: 1rem; flex: none; }
.mchat-go:disabled { opacity: .5; }
.mchat-intro { display: flex; flex-direction: column; gap: .7rem; }
.mchat-intro[hidden] { display: none; }
.mchat-intro label { font-size: .85rem; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.mchat-intro input, .mchat-intro textarea { font: inherit; font-size: .93rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.mchat-hello { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: .9rem; margin: 0; }
.mchat-error { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 8px 10px; font-size: .85rem; margin: 0; }
.mchat-alt { text-align: center; margin: 0; }
.mchat-peek { position: relative; display: flex; gap: 10px; align-items: flex-start; width: min(300px, calc(100vw - 100px)); padding: 12px 30px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; box-shadow: 0 14px 34px -12px rgba(28,26,23,.4); cursor: pointer; animation: mchat-in .25s ease-out; }
.mchat-peek[hidden] { display: none; }
.mchat-peek img { border-radius: 50%; flex: none; }
.mchat-peek strong { display: block; font-size: .88rem; }
.mchat-peek span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; color: var(--muted); }
.mchat-peek-x { position: absolute; top: 6px; right: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 4px; }
.mchat .captcha-note { font-size: .7rem; text-align: center; }
/* WhatsApp button sits above the chat button */
.wa-float { position: fixed; right: 26px; bottom: 92px; z-index: 205; width: 48px; height: 48px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px -8px rgba(0,0,0,.45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float.wa-solo { bottom: 20px; right: 20px; width: 56px; height: 56px; }
body.mchat-open .wa-float { display: none; }
/* keep alerts clear of the chat button / window */
.has-mchat .toast-stack { bottom: 96px; }
.area-admin.mchat-open .toast-stack { right: 410px; }
/* Admin's docked reply window has no launcher button */
.mchat[data-mode="admin"] .mchat-panel { height: min(500px, calc(100vh - 100px)); }
@media (max-width: 600px) {
  .mchat { right: 12px; bottom: 12px; }
  .mchat.is-open { left: 0; right: 0; bottom: 0; top: 0; align-items: stretch; gap: 0; }
  .mchat.is-open .mchat-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .mchat.is-open .mchat-launch, .mchat.is-open .mchat-peek { display: none; }
  .wa-float { right: 18px; bottom: 84px; }
  .area-admin.mchat-open .toast-stack { right: 16px; }
  .has-mchat .toast-stack { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .mchat-panel, .mchat-peek { animation: none; } }
.ask-first { margin: .75rem 0 0; padding: .7rem 1rem; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: .93rem; display: inline-block; }
.ask-link { text-align: center; margin: .6rem 0 0; font-size: .88rem; }
.topic-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.tag-guest { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .02em; padding: .1rem .45rem; border-radius: 999px; background: var(--info-soft); color: var(--info); vertical-align: middle; }
.past-enquiries { margin-bottom: 1rem; padding: .9rem 1.2rem; }
.past-enquiries summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.past-enquiry { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .6rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 1.4rem; }
/* Admin chat bubble: conversation list */
.mchat-threads { display: flex; flex-direction: column; gap: 2px; margin: -6px -8px; }
.mchat-threads[hidden] { display: none; }
.mchat-thread { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.mchat-thread:hover { background: var(--surface); }
.mchat-ava { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-family: var(--serif); }
.mchat-peek .mchat-ava { width: 32px; height: 32px; font-size: .9rem; }
.mchat-thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mchat-thread-main strong { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mchat-thread em, .mchat-peek em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--info); background: var(--info-soft); border-radius: 999px; padding: 0 .4rem; margin-left: .3rem; }
.mchat-thread-main small { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mchat-thread.unread strong, .mchat-thread.unread small { font-weight: 700; color: var(--ink); }
.mchat-thread-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.mchat-thread-side small { color: var(--muted); font-size: .72rem; }
.mchat-thread-side b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.mchat-head [data-back] { font-size: 1.5rem; margin-left: -6px; }
.mchat-head img[hidden] { display: none; }

/* ---------- Reviews ---------- */
.stars { display: inline-flex; gap: 2px; font-size: 1.15rem; line-height: 1; }
.stars .on { color: #e8a317; }
.stars .off { color: var(--line); }
.star-field { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.star-field legend { font-weight: 600; font-size: .92rem; margin-bottom: .3rem; padding: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.3rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s, transform .1s; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #e8a317; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.star-word { color: var(--muted); font-size: .9rem; min-width: 6rem; }
.alert-review { background: #fdf3dc; border-color: #f1dca8; color: var(--ink); }
.review-card .stars { font-size: 1.4rem; margin: .2rem 0 .6rem; }
.review-summary { display: flex; align-items: center; gap: .8rem; }
.review-summary > strong { font-family: var(--serif); font-size: 3rem; font-weight: 500; line-height: 1; }
.review-summary > div { display: flex; flex-direction: column; gap: .2rem; }
.review-grid { columns: 3 300px; column-gap: 1rem; margin-top: 2rem; }
.review { break-inside: avoid; margin: 0 0 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.review blockquote { margin: .7rem 0 1rem; font-size: .97rem; line-height: 1.6; color: var(--ink-2); }
.review figcaption { display: flex; flex-direction: column; }
/* Admin notifications */
.notif-list { padding: .5rem; }
.notif { display: flex; align-items: flex-start; gap: .9rem; padding: .85rem .9rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.notif + .notif { border-top: 1px solid var(--line); }
.notif:hover { background: var(--bg); color: var(--ink); }
.notif-ico { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-tint); font-size: 1.05rem; }
.notif.unread .notif-ico { background: var(--accent-soft); }
.notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.notif-main strong { font-weight: 500; }
.notif.unread .notif-main strong { font-weight: 700; }
.notif.unread::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 15px; flex: none; order: 9; }
.notif-time { flex: none; white-space: nowrap; }
.nav-bell { position: relative; font-size: 1.1rem; text-decoration: none; }
.nav-bell .dot { position: absolute; top: -6px; right: -12px; }
.inline-form { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.inline-form label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: var(--muted); }
.inline-form input { font: inherit; font-size: .88rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; }
.nav-bell-label { display: none; }
@media (max-width: 960px) { .nav-bell-label { display: inline; } .nav-bell .dot { position: static; margin-left: .3rem; } }
/* Safepay online payment */
.pay-online { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1rem 1.1rem; margin: .5rem 0 0; border: 1.5px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); }
.pay-online > div { flex: 1 1 16rem; }
.pay-online p { margin: .2rem 0 0; }
.pay-or { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 .4rem; }
.pay-or::before, .pay-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.alert-warn { background: var(--warn-soft); border-color: #ecd9a3; color: #6e4c00; }

/* ---------- Admin settings: sidebar layout ---------- */
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; align-items: start; }
.settings-nav { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: .4rem .2rem 1rem 0; }
.settings-find input { width: 100%; font: inherit; font-size: .9rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: .8rem; }
.settings-nav-group { margin: 1rem 0 .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.settings-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.settings-nav a { display: block; padding: .42rem .75rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .93rem; border-left: 3px solid transparent; }
.settings-nav a:hover { background: var(--surface); color: var(--ink); }
.settings-nav a.on { background: var(--surface); color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.settings-main { display: flex; flex-direction: column; gap: 2.2rem; min-width: 0; }
.settings-head .h1 { margin-bottom: .3rem; }
.settings-group { display: flex; flex-direction: column; gap: 1rem; }
.settings-group-title { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.settings-main .card { scroll-margin-top: 90px; }
.settings-main .card:target { box-shadow: 0 0 0 2px var(--accent); }
.settings-main .card > .btn:last-child, .settings-main form.card > .btn-primary:last-of-type { align-self: flex-start; }
.settings-group[hidden], .settings-main .card[hidden] { display: none; }
.settings-nomatch { color: var(--muted); }
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; gap: 1rem; }
  .settings-nav { position: sticky; top: 64px; z-index: 20; max-height: none; overflow-x: auto; overflow-y: hidden; display: flex; align-items: center; gap: .4rem; padding: .5rem 0; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-find, .settings-nav-group { display: none; }
  .settings-nav ul { flex-direction: row; gap: .4rem; }
  .settings-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: .35rem .8rem; font-size: .85rem; }
  .settings-nav a.on { border-color: var(--ink); background: var(--ink); color: #fff; }
}

/* Bank / payment details with copy buttons */
.pay-box { margin: .8rem 0; }
.pay-list { list-style: none; margin: 0 0 .6rem; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.pay-row { display: grid; grid-template-columns: minmax(7rem, 34%) 1fr auto; align-items: center; gap: .4rem .9rem; padding: .6rem .8rem; }
.pay-row + .pay-row, .pay-heading + .pay-row { border-top: 1px solid var(--line); }
.pay-row:not(:has(.pay-label)) { grid-template-columns: 1fr auto; }
.pay-label { color: var(--muted); font-size: .85rem; }
.pay-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; overflow-wrap: anywhere; user-select: all; }
.pay-heading { padding: .7rem .8rem .3rem; font-weight: 700; font-size: .9rem; background: var(--bg); border-top: 1px solid var(--line); }
.pay-heading:first-child { border-top: 0; }
.pay-gap { height: 0; }
.copy-btn { flex: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: .28rem .8rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.copied, .copy-all.copied { background: var(--ok-soft); border-color: #bfdcc9; color: #1f5a3d; }
.pay-ref .copy-btn { margin-left: .4rem; }
@media (max-width: 520px) {
  .pay-row { grid-template-columns: 1fr auto; }
  .pay-label { grid-column: 1 / -1; margin-bottom: -.2rem; }
}
.pay-note { padding: .6rem .8rem; font-size: .88rem; color: var(--ink-2); background: var(--bg); border-top: 1px solid var(--line); }
.pay-note:first-child { border-top: 0; }
.pay-note + .pay-row { border-top: 1px solid var(--line); }

/* ---------- News & events ---------- */
.post-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.post-list-title { margin-top: 2rem; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.3rem; }
.post-card-body strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.3; }
.post-card-body small { font-size: .88rem; line-height: 1.5; }
.post-when { color: var(--ink-2); font-weight: 600; }
.post-tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; background: var(--bg-tint); color: var(--muted); }
.post-tag.is-event { background: var(--accent-soft); color: var(--accent-ink); }
.post-tag.is-past { background: var(--bg-tint); color: var(--muted); }
.post-cta { color: var(--accent-ink); font-weight: 700; font-size: .9rem; margin-top: .2rem; }
.post-wrap .lead { margin-top: .5rem; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.post-grid:not(:has(.event-card)) { grid-template-columns: minmax(0, 760px); }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 1.4rem; display: block; }
.event-card { position: sticky; top: 90px; display: flex; flex-direction: column; gap: .8rem; }
.event-card .dl { margin: 0; }
.post-thumb { display: flex; align-items: center; gap: 1rem; }
.post-thumb img { width: 140px; border-radius: var(--radius-sm); }
[data-event-only][hidden] { display: none; }
tr.is-muted td { opacity: .5; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } .event-card { position: static; } }

/* ---------- Admin panel: sidebar layout ---------- */
.area-admin { --side: 248px; }
.admin-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #1c1a17; color: #e7dfd2; display: flex; flex-direction: column; padding: 1rem .75rem; scrollbar-width: thin; scrollbar-color: #4a443b transparent; }
.admin-brand { display: flex; align-items: center; gap: .65rem; padding: .3rem .5rem 1rem; text-decoration: none; color: #fff; border-bottom: 1px solid #2f2b25; margin-bottom: .5rem; }
.admin-brand img { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #34302a; }
.admin-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.admin-brand strong { font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.admin-brand small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #a69c8b; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav-group { margin: 1.1rem .6rem .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8c8273; }
.admin-nav a, .admin-side-foot a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: #d9d0c2; text-decoration: none; font-size: .93rem; font-weight: 500; }
.admin-nav a:hover, .admin-side-foot a:hover { background: #2a2722; color: #fff; }
.admin-nav a.on { background: #34302a; color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.admin-ico { width: 1.4rem; text-align: center; font-size: 1rem; flex: none; }
.admin-label { flex: 1; }
.admin-nav .dot { margin-left: auto; }
.admin-side-foot { border-top: 1px solid #2f2b25; padding-top: .6rem; margin-top: .8rem; display: flex; flex-direction: column; gap: 2px; }
.admin-side-foot a { font-size: .88rem; color: #b8ae9e; }
.admin-body { min-width: 0; display: flex; flex-direction: column; }
.admin-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .8rem; height: 58px; padding: 0 1.4rem; background: rgba(246,241,234,.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.admin-top-title { font-weight: 700; font-size: .98rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-top-actions { display: flex; align-items: center; gap: .6rem; }
.admin-top-bell { position: relative; text-decoration: none; font-size: 1.15rem; padding: .3rem .4rem; border-radius: 999px; }
.admin-top-bell:hover { background: var(--surface); }
.admin-top-bell .dot { position: absolute; top: -4px; right: -8px; }
.admin-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 9px; border-radius: 10px; }
.admin-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.admin-toggle:hover { background: var(--surface); }
.admin-main { flex: 1; }
.admin-main > .section:first-child, .admin-main > .flash-wrap + .section { padding-top: 1.6rem; }
.admin-backdrop { position: fixed; inset: 0; background: rgba(20,18,15,.45); z-index: 59; }
.admin-backdrop[hidden] { display: none; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(280px, 84vw); z-index: 60; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .admin-side.open { transform: none; }
  .admin-toggle { display: flex; }
  .admin-top { padding: 0 .8rem; }
  .admin-top-site { display: none; }
}
@media (prefers-reduced-motion: reduce) { .admin-side { transition: none; } }
/* Settings has its own section menu: use the compact tab row when space is tight next to the admin sidebar */
@media (max-width: 1250px) and (min-width: 901px) {
  .area-admin .settings-layout { grid-template-columns: 1fr; gap: 1rem; }
  .area-admin .settings-nav { position: sticky; top: 58px; z-index: 20; max-height: none; overflow-x: auto; overflow-y: hidden; display: flex; align-items: center; gap: .4rem; padding: .5rem 0; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .area-admin .settings-find, .area-admin .settings-nav-group { display: none; }
  .area-admin .settings-nav ul { flex-direction: row; gap: .4rem; }
  .area-admin .settings-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: .35rem .8rem; font-size: .85rem; }
  .area-admin .settings-nav a.on { border-color: var(--ink); background: var(--ink); color: #fff; }
}
.area-admin .settings-nav { top: 70px; }
@media (max-width: 900px) { .area-admin .settings-nav { top: 58px; } }
/* Post editor + rendered post content */
.format-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; }
.format-row label { min-width: 11rem; }
.format-help { flex: 1 1 18rem; margin: 0 0 .35rem; }
.format-help[hidden] { display: none; }
.format-help code { font-size: .78rem; }
.post-body-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.55; }
.post-content h2 { font-size: 1.5rem; margin: 1.8rem 0 .6rem; }
.post-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.post-content h4, .post-content h5 { font-size: 1.02rem; margin: 1.2rem 0 .4rem; }
.post-content ul, .post-content ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.post-content li { margin: .25rem 0; }
.post-content blockquote { margin: 1.2rem 0; padding: .4rem 0 .4rem 1rem; border-left: 3px solid var(--accent); color: var(--ink-2); }
.post-content pre { background: var(--dark); color: #f3ede4; padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: .88rem; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.post-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.post-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .93rem; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.post-content th { background: var(--bg-tint); }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- Phones (iPhone / Android) ---------- */
/* iOS zooms the page when you tap a field with text under 16px: keep form text at 16px on touch screens */
@media (pointer: coarse), (max-width: 600px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea,
  .mchat-send textarea, .mchat-intro input, .mchat-intro textarea, .chat-form textarea, .settings-find input, .inline-form input { font-size: 16px !important; }
}
@media (max-width: 600px) {
  /* Floating chat: full screen, sized to the area above the keyboard (set by widget.js) */
  html.mchat-lock, html.mchat-lock body { overflow: hidden; overscroll-behavior: none; }
  .mchat.is-open { top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100dvh); }
  @supports not (height: 100dvh) { .mchat.is-open { height: var(--vvh, 100vh); } }
  .mchat.is-open .mchat-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .mchat-send { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .mchat-send textarea { max-height: 96px; }
  .mchat-body { -webkit-overflow-scrolling: touch; }
  .mchat-msg { max-width: 88%; }
  .mchat-img img { max-width: 100%; }
  .mchat-peek { width: calc(100vw - 96px); }
  .mchat { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Messages page: conversation fills the phone screen, reply box stays on one line */
  .chat-page { padding-inline: 0; }
  .chat-head { gap: .7rem; }
  .chat-head .small { font-size: .82rem; }
  .chat-log { height: max(320px, calc(100dvh - 300px)); padding: .9rem; }
  .chat-form { padding: .6rem; gap: .45rem; padding-bottom: calc(.6rem + env(safe-area-inset-bottom)); }
  .chat-form textarea { min-width: 0; flex: 1 1 0; }
  .chat-form .btn { padding-inline: .9rem; }
  .chat-form .file-label { flex-basis: 100%; order: 9; }
  .msg { max-width: 88%; }
  .att-img img { max-width: 100%; height: auto; }
}

/* Chat history: day dividers + "Load earlier messages" */
.chat-day, .mchat-day { display: flex; align-items: center; gap: .7rem; margin: .6rem 0 .2rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .02em; align-self: stretch; }
.chat-day::before, .chat-day::after, .mchat-day::before, .mchat-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.chat-day span, .mchat-day span { padding: .15rem .6rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.chat-more { align-self: center; margin: .2rem 0 .6rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: .35rem .9rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.chat-more:hover { border-color: var(--ink); }
.meta time, .mchat-time time { font-variant-numeric: tabular-nums; }
.meta[title], .mchat-time[title] { cursor: help; }
