:root{
  --bg: #FFFFFF;
  /* Neutral, slightly warm greys so the light sections sit with the photo. */
  --bg-soft: #F6F5F3;
  --panel: #FFFFFF;
  --panel-2: #EFEDEA;
  --ink: #211F1D;
  --ink-soft: #5E5A55;
  --muted: #78736C;
  --primary: #2F7A73;
  --primary-deep: #235D57;
  --primary-soft: #E5F0EE;
  /* Teal is the only brand colour; red is reserved for errors and destructive actions. */
  --danger: #B42318;
  --danger-soft: #FEF3F2;
  --danger-line: #F1B8B2;
  --line: #E8E5E1;
  --line-strong: #D8D4CE;
  --focus: #2F7A73;
  --shadow-sm: 0 1px 2px rgba(33,31,29,.06);
  --shadow-md: 0 6px 20px rgba(33,31,29,.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --font-brand: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --hero-bg: #121212; /* matches the studio backdrop in img/darius-hero.jpg */
  --nav-h: 74px;
}
/* This design commits to a single light theme by intent — no dark-mode switch. */

*{ box-sizing: border-box; }
/* Classes like .btn set display, which would otherwise override the hidden attribute. */
[hidden]{ display: none !important; }
html{ background: var(--bg); scroll-behavior: smooth; }
#book{ scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
body{
  margin:0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); line-height: 1.6; font-size: 16px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3{ font-family: var(--font-display); font-weight:600; line-height:1.3; margin: 0; color: var(--ink); }
p{ margin: 0; }
a{ color: inherit; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family:var(--font-body); }
:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }
img,svg{ max-width: 100%; display:block; }

.wrap{ max-width: 1140px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px){ .wrap{ padding: 0 20px; } }

.eyebrow{
  font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary-deep);
}

/* ---------- Top nav ---------- */
.topnav{
  position: sticky; top:0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}
.topnav__row{ display:flex; align-items:center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
/* Over the hero photo: no background of its own, light text. */
.topnav.is-transparent{ background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.topnav.is-transparent .brand__mark,
.topnav.is-transparent .navlinks a{ color: #fff; }
.topnav.is-transparent .brand__sub{ color: rgba(255,255,255,.7); }
.topnav.is-transparent .navlinks a:hover{ border-color: rgba(255,255,255,.5); }
.brand{ display:flex; align-items:baseline; gap:10px; text-decoration:none; }
.brand__mark{ font-family: var(--font-brand); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand__sub{ font-family: var(--font-body); font-size: 11px; color: var(--muted); letter-spacing:.04em; }
/* Text wordmark: a serif name above a centred, widely spaced subtitle. */
.topnav .brand--wordmark{
  flex-direction: column; align-items: center; gap: 5px;
  flex-shrink: 0; text-align: center;
}
.brand--wordmark .brand__mark{
  font-family: var(--font-brand); font-size: 28px;
  font-weight: 700; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap;
}
.brand--wordmark .brand__sub{
  font-family: var(--font-body); font-size: 9px; font-weight: 400; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .3em; padding-left: .3em; white-space: nowrap;
}
.topnav.is-transparent .brand--wordmark .brand__mark{ color: #F3F0E5; }
.topnav.is-transparent .brand--wordmark .brand__sub{ color: #BCB8AA; }
.navlinks{ display:flex; align-items:center; gap: 26px; font-size: 14px; }
.navlinks a{ text-decoration:none; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
.navlinks a:hover{ color: var(--ink); border-color: var(--line-strong); }

@media (max-width: 480px){
  :root{ --nav-h: 68px; }
  .topnav .wrap{ padding-left: 28px; padding-right: 28px; }
  .topnav__row{ gap: 10px; }
  .brand{ flex-direction: column; align-items: flex-start; gap: 1px; }
  .brand__sub{ font-size: 10px; }
  .brand--wordmark .brand__mark{ font-size: 23px; }
  .brand--wordmark .brand__sub{ font-size: 7.5px; letter-spacing: .25em; padding-left: .25em; }
  .topnav .social-link span{ display:none; }
}

.btn{
  display:inline-flex; align-items:center; gap:8px; border:1px solid var(--ink); background: var(--ink);
  color: var(--bg); padding: 11px 20px; font-size: 14px; font-weight: 600; text-decoration:none;
  border-radius: var(--radius-sm); transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover{ box-shadow: var(--shadow-sm); }
.btn:active{ transform: translateY(1px); }
.btn--ghost{ background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover{ background: var(--panel-2); }
.btn--primary{ background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover{ background: var(--primary-deep); border-color: var(--primary-deep); }
.btn--sm{ padding: 8px 14px; font-size: 13px; }
.btn[disabled]{ opacity:.4; cursor: not-allowed; box-shadow:none; }

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

.cal__day, .slot, .dur-pill, .recap, .confirm-recap__row span:last-child, .confirm-recap__total span:last-child{ font-variant-numeric:tabular-nums; }

/* ================= SITE VIEW ================= */
#site-view.is-hidden, #admin-view.is-hidden, #legal-view.is-hidden{ display:none; }

/* ---------- Hero ---------- */
/* Full-bleed dark header; the photo's black studio backdrop blends into it.
   It slides up under the (transparent) sticky nav. */
.hero{
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 48px) 0 72px;
  display:flex; align-items:center;
  background: var(--hero-bg);
  color: #fff;
}
.hero__photo{
  position: absolute; top: 0; right: max(0px, calc(50% - 570px));
  height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 88%, transparent 100%);
}
.hero__content{ position: relative; z-index: 1; width: 100%; }
.hero__content > *{ max-width: 520px; }
.hero__eyebrow{
  font-family: var(--font-body); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin-bottom: 14px;
}
.hero h1{
  font-size: clamp(44px, 7vw, 86px); font-weight: 600; letter-spacing: -0.055em; line-height: 1.08; color: #fff;
}
.hero__sub{ margin-top: 18px; font-size: 17px; color: rgba(255,255,255,.86); line-height: 1.5; }
.hero__ctas{ margin-top: 32px; display:flex; gap: 14px; flex-wrap:wrap; }
.hero__meta{ margin-top: 36px; display:flex; flex-direction:column; gap: 6px; font-family: var(--font-body); font-size: 12.5px; color: rgba(255,255,255,.72); }
.hero__meta b{ color: #fff; font-weight: 600; }

/* Narrow screens: the photo fills the whole header, text sits on a fade at the bottom. */
@media (max-width: 820px){
  .hero{ align-items: flex-end; padding-bottom: 44px; }
  .hero__photo{
    inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero::after{
    content:""; position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(18,18,18,.35) 0%, rgba(18,18,18,0) 22%, rgba(18,18,18,.2) 45%, rgba(18,18,18,.94) 80%);
  }
}

.diagram{ position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; }
.diagram__caption{ font-family: var(--font-body); font-size: 11px; color: var(--muted); text-align:center; margin-top: 6px; letter-spacing:.04em; }

/* ---------- Sections generic ---------- */
section.section{ padding: 80px 0; border-bottom: 1px solid var(--line); }
.section__head{ max-width: 620px; margin-bottom: 44px; }
.section__head h2{ font-size: clamp(24px, 3vw, 33px); font-weight: 600; letter-spacing: -0.035em; margin-top: 10px; }
.section__head p{ margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }


/* ---------- About ---------- */
.about__grid{ display:grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
@media (max-width: 820px){ .about__grid{ grid-template-columns: 1fr; } }
.about__figure{ aspect-ratio: 3/4; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); display:flex; align-items:center; justify-content:center; }
.about h2{ font-size: clamp(22px,2.8vw,30px); font-weight:700; }
.about p{ margin-top: 16px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; max-width: 56ch; }
.about__facts{ margin-top: 24px; display:flex; flex-wrap:wrap; gap: 10px 26px; font-family: var(--font-body); font-size: 12.5px; color: var(--muted); }
.about__facts b{ color: var(--ink-soft); }

/* ================= BOOKING WIZARD ================= */
.book{ background: var(--bg-soft); }
.wizard{ max-width: 720px; margin: 0 auto; }
.wizard__card{
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 32px 34px 26px;
}
@media (max-width: 560px){ .wizard__card{ padding: 24px 18px 20px; } }

.stepper{ list-style:none; margin:0 0 22px; padding:0; display:flex; align-items:flex-start; }
.stepper__item{ flex:1; display:flex; flex-direction:column; align-items:center; text-align:center; position:relative; }
.stepper__item:not(:last-child)::after{
  content:""; position:absolute; top:16px; left: 50%; width: 100%; height: 2px; background: var(--line-strong); z-index:0;
}
.stepper__item.is-done:not(:last-child)::after{ background: var(--primary); }
.stepper__circle{
  width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); border: 2px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-body); font-size: 13px; font-weight:700;
  color: var(--muted); position: relative; z-index: 1; flex-shrink:0;
}
.stepper__item.is-active .stepper__circle{ background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper__item.is-done .stepper__circle{ background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); }
.stepper__item.is-done .stepper__circle::after{ content:"✓"; }
.stepper__item.is-done .stepper__circle{ font-size:0; }
.stepper__item.is-done .stepper__circle::after{ font-size: 14px; }
.stepper__label{ margin-top: 8px; font-size: 11.5px; font-family: var(--font-body); color: var(--muted); font-weight:500; letter-spacing:-.01em; }
.stepper__item.is-active .stepper__label{ color: var(--ink); font-weight:600; }
.stepper__item.is-clickable{ cursor:pointer; background:none; border:none; }
.stepper__item.is-clickable:focus-visible{ outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.recap{ display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 20px; min-height: 0; }
.recap:empty{ display:none; margin:0; }
.recap__chip{
  font-family: var(--font-body); font-size: 12px; color: var(--primary-deep); background: var(--primary-soft);
  border-radius: 999px; padding: 6px 13px;
}

.step-panel h3{ font-size: 15px; letter-spacing:-.02em; color: var(--ink); font-family: var(--font-body); font-weight:600; }
.step-panel .step-hint{ font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; margin-bottom: 18px; }

.svc-picker{ display:grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
@media (max-width: 480px){ .svc-picker{ grid-template-columns: 1fr; } }
.svc-card{
  text-align:left; border: 1.5px solid var(--line-strong); background: var(--bg); border-radius: var(--radius-md);
  padding: 14px 15px; font-family: var(--font-body); color: var(--ink);
}
.svc-card b{ display:block; font-size: 13.5px; font-weight:700; }
.svc-card span{ display:block; margin-top: 6px; font-family: var(--font-body); font-size: 11.5px; color: var(--muted); }
.svc-card.is-selected{ border-color: var(--primary); background: var(--primary-soft); }

.dur-picker{ margin-top: 14px; display:flex; gap: 10px; flex-wrap:wrap; }
.dur-pill{
  border: 1.5px solid var(--line-strong); background: var(--bg); border-radius: 999px; padding: 8px 16px;
  font-family: var(--font-body); font-size: 12.5px; color: var(--ink-soft);
}
.dur-pill.is-selected{ background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cal{ border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--bg); overflow:hidden; }
.cal__head{ display:flex; align-items:center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cal__month{ font-weight: 700; font-size: 14.5px; }
.cal__nav{ display:flex; gap: 6px; }
.cal__nav button{ width: 30px; height: 30px; border:1px solid var(--line-strong); background: transparent; border-radius:var(--radius-sm); color: var(--ink); font-size: 15px; }
.cal__nav button:hover:not([disabled]){ background: var(--panel-2); }
.cal__grid{ display:grid; grid-template-columns: repeat(7,1fr); gap: 1px; background: var(--line); }
.cal__dow{ background: var(--panel-2); text-align:center; font-family: var(--font-body); font-size: 10.5px; color: var(--muted); padding: 8px 0; text-transform: uppercase; }
.cal__day{
  background: var(--bg); aspect-ratio: 1/.82; border:none; font-family: var(--font-body); font-size: 13px; color: var(--ink);
  display:flex; align-items:flex-start; justify-content:flex-end; padding: 6px 8px; position:relative;
}
.cal__day.is-empty{ background: var(--panel-2); }
.cal__day.is-closed{ color: var(--muted); }
.cal__day.is-past{ color: var(--line-strong); }
.cal__day.is-selectable:hover{ background: var(--primary-soft); }
.cal__day.is-selected{ background: var(--primary); color: #fff; }
.cal__day.is-today::before{ content:""; position:absolute; left:8px; top:9px; width:4px; height:4px; border-radius:50%; background: var(--primary); }
.cal__day.is-selected.is-today::before{ background: #fff; }
.cal__day-badge{
  position:absolute; right:6px; bottom:6px; min-width:16px; height:16px; padding:0 4px; border-radius:999px;
  background: var(--primary); color:#fff; font-family: var(--font-body); font-size:9.5px; line-height:16px; text-align:center;
}
.cal__day.is-selected .cal__day-badge{ background:#fff; color: var(--primary-deep); }

.slots{ margin-top: 16px; display:flex; flex-wrap:wrap; gap: 10px; }
.slot{ border: 1.5px solid var(--line-strong); background: var(--bg); padding: 9px 15px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 12.5px; color: var(--ink); }
.slot.is-selected{ background: var(--primary); color: #fff; border-color: var(--primary); }
.slot.is-taken{ text-decoration: line-through; color: var(--muted); background: var(--panel-2); cursor: not-allowed; }
.slots__empty{ font-size: 13px; color: var(--muted); font-family: var(--font-body); }
.slots-hint{ margin-top:16px; font-size: 13px; color: var(--ink-soft); font-family: var(--font-body); }

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .form-grid{ grid-template-columns: 1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: 12px; font-family: var(--font-body); color: var(--ink-soft); font-weight:500; letter-spacing:0; }
.field input, .field textarea{
  font-family: var(--font-body); font-size: 14.5px; padding: 11px 12px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
}
.field textarea{ resize: vertical; min-height: 70px; }

.confirm-recap{ border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-soft); padding: 6px 20px; margin-bottom: 18px; }
.confirm-recap__row{ display:flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.confirm-recap__row:last-child{ border-bottom:none; }
.confirm-recap__row span:first-child{ color: var(--ink-soft); }
.confirm-recap__row span:last-child{ font-family: var(--font-body); text-align:right; font-weight:600; }
.confirm-recap__total{ display:flex; justify-content:space-between; padding: 14px 0 6px; font-weight: 700; font-size: 16px; }
.confirm-recap__total span:last-child{ font-family: var(--font-body); color: var(--primary-deep); }
.notice{
  font-size: 13.5px; line-height: 1.55; color: #8A5A00; background: #FFF3D6; border: 1px solid #F0D9A0;
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px;
}
.notice b{ color: #6B4500; }
.confirm-success .notice{ margin: 14px auto 0; max-width: 460px; text-align: left; }
.contact-alt{
  margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.55;
}
.contact-alt a{ color: var(--primary-deep); font-weight: 600; }

.wizard__footer{ display:flex; justify-content: space-between; align-items:center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.wizard__footer .btn{ min-width: 108px; justify-content:center; }

.confirm-success{ text-align:center; padding: 12px 6px; }
.confirm-success .eyebrow{ color: var(--primary); }
.confirm-success h3{ margin-top: 10px; font-size: 22px; font-weight: 700; }
.confirm-success p{ margin-top: 10px; color: var(--ink-soft); font-size: 14px; }
.confirm-success code{ display:block; margin-top: 18px; font-family: var(--font-body); font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line); padding: 14px; border-radius: var(--radius-md); text-align:left; white-space:pre-wrap; }

.error-banner{ margin-top: 4px; margin-bottom: 16px; font-size: 13px; color: var(--danger); background: var(--danger-soft); border: 1px solid var(--danger-line); padding: 10px 14px; border-radius: var(--radius-sm); }

/* ---------- Find us ---------- */
.find-us{ background: var(--bg-soft); }
.find-us__grid{ display:grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
@media (max-width: 860px){ .find-us__grid{ grid-template-columns: 1fr; gap: 30px; } }
.find-us__info{ display:flex; flex-direction:column; align-items:flex-start; gap: 22px; }
.find-us__row{ display:flex; flex-direction:column; gap: 4px; }
.find-us__row b{ font-size: 11.5px; text-transform:uppercase; letter-spacing:.05em; color: var(--muted); font-family: var(--font-body); font-weight:600; }
.find-us__row span, .find-us__row a{ font-size: 15.5px; color: var(--ink-soft); }
.find-us__row a{ text-decoration: none; }
.find-us__row a:hover{ color: var(--ink); text-decoration: underline; }
.find-us__steps{ margin: 2px 0 0; padding-left: 20px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.find-us__map{
  width: 100%; min-height: 380px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden;
  box-shadow: var(--shadow-sm); background: var(--panel-2);
}
@media (max-width: 860px){ .find-us__map{ min-height: 0; aspect-ratio: 4/3; } }
.find-us__map iframe{
  width:100%; height:100%; border:0; display:block;
  filter: grayscale(.55) contrast(1.05) brightness(1.03) saturate(1.1);
}

/* ---------- Footer ---------- */
.site-footer{ padding: 56px 0 28px; background: var(--hero-bg); color: rgba(255,255,255,.72); font-size: 14px; }
.site-footer a{ color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover{ color: #fff; }
.footer__grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px){ .footer__grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer__grid{ grid-template-columns: 1fr; gap: 26px; } }
.footer__brand .brand__mark{ color: #fff; font-size: 22px; }
.footer__brand p{ margin-top: 8px; max-width: 28ch; line-height: 1.5; font-size: 13.5px; }
.footer__col{ display:flex; flex-direction:column; align-items:flex-start; gap: 6px; }
.footer__col b{
  font-family: var(--font-body); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 4px;
}
.footer__bottom{
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.5);
}
.footer__legal-links{ display:flex; gap: 18px; flex-wrap:wrap; }
.social-link{ display:inline-flex; align-items:center; gap: 6px; }
.social-link svg{ width: 15px; height: 15px; flex-shrink:0; }

/* ---------- Legal (privacy / terms) ---------- */
.legal__wrap{ max-width: 720px; }
.legal__back{ display:inline-block; margin-bottom: 34px; font-size: 13.5px; color: var(--ink-soft); text-decoration:none; font-family: var(--font-body); }
.legal__back:hover{ color: var(--ink); }
.legal__doc{ margin-bottom: 56px; }
.legal__doc:last-child{ margin-bottom: 0; }
.legal__doc h1{ font-size: clamp(26px, 3.6vw, 34px); font-weight:700; letter-spacing:-.01em; margin-top: 10px; }
.legal__updated{ margin-top: 8px; font-size: 12.5px; font-family: var(--font-body); color: var(--muted); }
.legal__doc h2{ font-size: 16px; font-weight:700; margin-top: 32px; margin-bottom: 8px; }
.legal__doc p{ font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }

/* ================= ADMIN VIEW ================= */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#admin-view{
  --admin-bg:#F5F7F9; --admin-line:#E5E9EE; --admin-ink:#1D2939; --admin-muted:#667085;
  min-height:100vh; min-height:100svh; background:var(--admin-bg); color:var(--admin-ink);
}
#admin-view h1, #admin-view h2, #admin-view h3, #admin-view legend{ font-family:var(--font-body); color:var(--admin-ink); }
#admin-view .btn{ border-radius:8px; font-size:13px; min-height:40px; justify-content:center; gap:8px; }
#admin-view .btn--ghost{ border-color:var(--admin-line); background:#fff; }
#admin-view .btn--ghost:hover{ background:#F8FAFB; border-color:#C9D3DD; }
.admin-icon{ width:19px; height:19px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.admin-eyebrow{ font-size:10px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:var(--admin-muted); }
.admin-body{ padding-top:40px; padding-bottom:64px; }
.has-dashboard .admin-body{ margin-left:252px; max-width:none; padding:0 36px 64px; }
#admin-dashboard{ max-width:1500px; margin:0 auto; min-width:0; }

/* Permanent workspace navigation on desktop. */
.admin-nav{ position:fixed; inset:0 auto 0 0; width:252px; z-index:60; background:#fff; border-right:1px solid var(--admin-line); }
.admin-nav > .wrap{ display:flex; flex-direction:column; height:100%; width:100%; max-width:none; padding:30px 18px 20px; }
.admin-brand{ display:flex; align-items:center; gap:10px; color:var(--admin-ink); text-decoration:none; margin-bottom:43px; padding:0 2px; }
.admin-brand__symbol{ display:grid; place-items:center; width:39px; height:43px; border-radius:11px; flex-shrink:0; background:#285E57; color:#F6F4E9; font:700 20px Georgia,serif; letter-spacing:-.06em; }
.admin-brand__name{ display:block; font:700 19px Georgia,serif; letter-spacing:-.035em; white-space:nowrap; }
.admin-brand__caption{ display:block; margin-top:5px; font-size:8.5px; font-weight:500; color:#7C8794; text-transform:uppercase; letter-spacing:.15em; }
.admin-nav__label{ padding:0 14px; margin-bottom:13px; font-size:9.5px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:#667085; }
.admin-tabs{ display:flex; flex-direction:column; gap:5px; margin:0; min-width:0; }
.admin-tab{ display:flex; align-items:center; gap:12px; width:100%; padding:12px 13px; background:transparent; border:1px solid transparent; border-radius:8px; text-align:left; font-size:13px; font-weight:500; color:var(--admin-muted); white-space:nowrap; }
.admin-tab .admin-icon{ width:18px; height:18px; color:#8993A1; }
.admin-tab:hover{ background:#F7F9FA; color:var(--admin-ink); }
.admin-tab.is-active{ border-color:#E1EEE9; background:#EDF6F2; color:#245C50; font-weight:600; }
.admin-tab.is-active .admin-icon{ color:#327863; }
.admin-nav__count{ display:grid; place-items:center; min-width:21px; height:21px; padding:0 5px; margin-left:auto; border-radius:6px; background:#DBEDE4; color:#2C6C55; font-size:10px; font-weight:700; }
.admin-nav__actions{ display:flex; flex-direction:column; gap:3px; margin-top:auto; padding-top:20px; border-top:1px solid var(--admin-line); }
.admin-account{ display:flex; align-items:center; gap:9px; padding:0 9px; margin-bottom:16px; }
.admin-account__avatar{ display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#EFF2F5; color:#67758B; font-size:10px; font-weight:600; }
.admin-account b{ display:block; font-size:10.5px; font-weight:600; }
.admin-account small{ display:block; margin-top:3px; font-size:10px; color:var(--admin-muted); }
.admin-nav__link{ display:flex; align-items:center; gap:11px; padding:10px 13px; border:0; border-radius:8px; background:transparent; color:var(--admin-muted); text-decoration:none; font-family:inherit; font-size:12px; text-align:left; }
.admin-nav__link .admin-icon{ width:16px; height:16px; }
.admin-nav__link:hover{ background:#F7F9FA; color:var(--admin-ink); }
.admin-nav__logout:hover{ background:#FFF3F1; color:#B42318; }
.admin-nav__burger{ display:none; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:36px; height:36px; padding:0; border:1px solid var(--admin-line); border-radius:8px; background:#fff; }
.admin-nav__burger span{ display:block; width:15px; height:1.5px; border-radius:2px; background:#586477; }

/* Header and overview. */
.admin-topbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; height:77px; margin-bottom:30px; border-bottom:1px solid var(--admin-line); }
.admin-breadcrumb{ display:flex; align-items:center; gap:12px; font-size:11px; color:#667085; }
.admin-breadcrumb b{ color:#5D6979; font-weight:500; }
.admin-date{ display:flex; align-items:center; gap:8px; font-size:11px; color:var(--admin-muted); }
.admin-date .admin-icon{ width:15px; height:15px; color:#667085; }
.admin-head{ display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:29px; }
.admin-head h1{ margin-top:9px; font-size:30px; font-weight:650; letter-spacing:-.045em; line-height:1.2; }
.admin-head p{ margin-top:10px; font-size:12.5px; line-height:1.7; color:var(--admin-muted); max-width:600px; }
.admin-head > .btn{ flex-shrink:0; }
.admin-panel{ min-width:0; }
.stats{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:27px; }
.stat{ min-width:0; padding:17px 17px 15px; border:1px solid var(--admin-line); border-radius:11px; background:#fff; box-shadow:0 1px 2px rgba(16,24,40,.025); }
.stat__top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.stat__top span{ font-size:11px; font-weight:500; color:#667085; }
.stat__icon{ display:grid; place-items:center; width:27px; height:27px; border-radius:7px; background:#F3F6F8; color:#8A96A5; flex-shrink:0; }
.stat__icon .admin-icon{ width:15px; height:15px; }
.stat > b{ display:block; margin-top:14px; font-size:30px; font-weight:600; line-height:1; letter-spacing:-.055em; font-variant-numeric:tabular-nums; }
.stat__hint{ display:block; margin-top:9px; color:#667085; font-size:9.5px; line-height:1.4; }
.stat--today .stat__icon{ background:#EDF6F2; color:#35816A; }
.stat--pending .stat__icon{ background:#FFF6E7; color:#B7862B; }
.stat--pending > b{ color:#9D7425; }

/* Search, filters, and bookings. */
.bookings-card{ overflow:hidden; border:1px solid var(--admin-line); border-radius:12px; background:#fff; box-shadow:0 2px 4px rgba(16,24,40,.02); }
.bookings-card__head{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding:23px 23px 18px; }
.bookings-card__head h2{ font-size:15px; font-weight:600; letter-spacing:-.02em; }
.bookings-card__head p{ margin-top:5px; font-size:11px; color:#667085; }
.admin-search{ display:flex; align-items:center; gap:9px; width:260px; max-width:100%; padding:0 12px; border:1px solid var(--admin-line); border-radius:8px; background:#FAFBFC; color:#667085; }
.admin-search .admin-icon{ width:16px; height:16px; }
.admin-search input{ min-width:0; width:100%; padding:10px 0; border:0; outline:none; background:transparent; color:var(--admin-ink); font:12px var(--font-body); }
.admin-search input::placeholder{ color:#667085; }
.admin-search:focus-within{ border-color:#7EAE9D; box-shadow:0 0 0 3px #EDF6F2; }
.admin-toolbar{ padding:0 23px 17px; }
.seg{ display:flex; flex-wrap:wrap; gap:4px; }
.seg button{ padding:7px 11px; border:1px solid transparent; border-radius:6px; background:transparent; color:#667085; font:500 11px var(--font-body); }
.seg button:hover{ background:#F6F8FA; color:var(--admin-ink); }
.seg button.is-active{ background:#EDF6F2; border-color:#E1EEE9; color:#2B6E58; }
.admin-table-wrap{ overflow:auto; border:1px solid var(--admin-line); border-radius:11px; background:#fff; }
.bookings-card > .admin-table-wrap{ border:0; border-top:1px solid var(--admin-line); border-radius:0; }
table.admin-table{ width:100%; min-width:950px; border-collapse:collapse; }
table.admin-table th{ padding:12px 15px; background:#F9FAFB; border-bottom:1px solid var(--admin-line); color:#667085; text-align:left; font-size:10.5px; font-weight:500; letter-spacing:0; white-space:nowrap; }
table.admin-table td{ padding:17px 15px; border-bottom:1px solid #EFF2F5; font-size:12px; vertical-align:middle; }
table.admin-table tr:last-child td{ border-bottom:0; }
table.admin-table tbody tr:hover{ background:#FCFDFD; }
table.admin-table .mono{ font-family:var(--font-body); font-variant-numeric:tabular-nums; white-space:nowrap; }
.booking-cell--visit{ min-width:115px; }
.booking-cell--visit time{ display:block; color:#687587; font-size:10.5px; }
.booking-time{ display:block; margin-top:5px; font-size:13px; font-weight:600; color:#344054; }
.client-cell{ display:flex; align-items:center; gap:9px; min-width:155px; }
.client-avatar{ display:grid; place-items:center; width:30px; height:30px; flex-shrink:0; border-radius:50%; background:#EEF4F3; color:#5A8078; font-size:9px; font-weight:600; }
.client-cell > div{ min-width:0; }
.client-name{ display:block; max-width:25ch; overflow-wrap:anywhere; font-size:12px; font-weight:600; line-height:1.5; }
.booking-notes{ margin-top:4px; color:#667085; font-size:10px; }
.booking-notes summary{ cursor:pointer; }
.cell-note{ margin-top:5px; max-width:27ch; white-space:pre-wrap; font-size:11px; line-height:1.6; color:var(--admin-muted); }
.booking-phone{ color:#667085; text-decoration:none; font-size:11.5px; white-space:nowrap; }
.booking-phone:hover{ color:var(--primary); text-decoration:underline; }
.booking-service{ font-weight:500; white-space:nowrap; }
.booking-duration{ display:block; margin-top:4px; font-size:10px; color:#667085; }
.booking-price{ font-weight:600; white-space:nowrap; }
.pill{ display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:5px; font-size:10px; font-weight:500; line-height:1.4; white-space:nowrap; }
.pill::before{ content:""; width:4px; height:4px; flex-shrink:0; border-radius:50%; background:currentColor; }
.pill--pending, .pill--processing, .pill--uncertain{ color:#A17A31; background:#FFF7E9; }
.pill--confirmed, .pill--sent{ color:#367A5A; background:#EDF7F0; }
.pill--completed{ color:#657B9B; background:#F0F4FA; }
.pill--cancelled{ color:#667085; background:#F2F4F7; }
.pill--failed{ color:#B34B44; background:#FEF0EE; }
.row-actions{ display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.row-actions button{ padding:6px 8px; min-height:29px; border:1px solid #E7EBEF; border-radius:5px; background:#fff; color:#667085; font-size:10.5px; font-weight:500; white-space:nowrap; }
.row-actions button:hover{ border-color:#C2D4CC; background:#F7FAF8; color:#285E4E; }
.row-actions .action--primary{ border-color:#D7E9E0; background:#EDF6F1; color:#2E7556; }
.row-actions button.danger:hover{ border-color:#F3CBC6; background:#FFF7F5; color:#B42318; }
.row-actions .action--icon{ display:grid; place-items:center; padding:6px; color:#A2ABB7; }
.action--icon .admin-icon{ width:14px; height:14px; }
.admin-empty{ padding:65px 24px; text-align:center; }
.admin-empty > .admin-icon{ width:34px; height:34px; color:#A0B1AB; margin:0 auto 15px; }
.admin-empty h3{ font-size:15px; margin-bottom:8px; }
.admin-empty p{ font-size:12px; color:var(--admin-muted); line-height:1.7; }

/* Calendar, weekly availability, and service cards. */
.admin-section__head{ display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.admin-section__head h2, .admin-section__head h3{ font-size:16px; font-weight:600; letter-spacing:-.02em; }
.admin-section__head p{ margin-top:6px; max-width:650px; font-size:12px; line-height:1.7; color:var(--admin-muted); }
.admin-calendar-legend{ display:flex; align-items:center; gap:7px; font-size:10px; color:#8893A3; white-space:nowrap; }
.admin-calendar-legend i{ width:6px; height:6px; border-radius:50%; background:#3F8B70; }
.admin-calendar__grid{ display:grid; grid-template-columns:330px minmax(0,1fr); gap:22px; align-items:start; }
#admin-cal{ padding:22px; border-color:var(--admin-line); border-radius:12px; background:#fff; box-shadow:none; }
#admin-cal .cal__month{ font-family:var(--font-body); font-size:15px; font-weight:600; }
#admin-cal .cal__day{ font-size:12px; border-radius:7px; }
#admin-cal .cal__day.is-selected{ background:#327B66; }
.day-detail{ padding:23px; border:1px solid var(--admin-line); border-radius:12px; background:#fff; }
.day-detail h3{ font-size:15px; font-weight:600; }
.day-detail__actions{ margin-top:14px; }
.day-detail__actions:empty{ margin-top:0; }
.day-slots{ display:flex; flex-direction:column; gap:8px; margin-top:20px; }
.day-slot-row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:13px; border:1px solid var(--admin-line); border-radius:8px; background:#fff; }
.day-slot-row__time{ min-width:48px; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.day-slot-row__status{ display:flex; align-items:center; flex-wrap:wrap; gap:7px; flex:1; font-size:12px; color:var(--admin-muted); }
.day-slot-row__status.is-blocked{ color:#AE625C; }
.day-slot-row--break{ background:#F9FAFB; border-style:dashed; color:#667085; }
.day-slot-row--break .day-slot-row__status{ color:#667085; font-size:11px; }
.hours-form, .type-form{ padding:25px; border:1px solid var(--admin-line); border-radius:12px; background:#fff; margin-bottom:22px; box-shadow:0 1px 3px rgba(16,24,40,.02); }
.hours-row{ display:grid; grid-template-columns:150px 130px 1fr 1fr; align-items:center; gap:20px; padding:17px 0; border-bottom:1px solid #EDF0F3; }
.hours-row--head{ padding-top:0; padding-bottom:14px; color:#667085; font-size:10px; font-weight:500; }
.hours-row__label{ font-size:13px; font-weight:500; }
.hours-row__toggle{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--admin-muted); }
.hours-row__toggle input{ accent-color:var(--primary); width:15px; height:15px; }
.hours-row input[type="text"]{ width:100%; padding:10px; border:1px solid var(--admin-line); border-radius:7px; background:#FAFBFC; color:#465467; font:12px var(--font-body); text-align:center; font-variant-numeric:tabular-nums; }
.hours-row input:disabled{ opacity:.4; }
.hours-row input.is-invalid{ border-color:var(--danger); }
.hours-time-field{ display:flex; align-items:center; gap:8px; }
.hours-time-field__label{ display:none; font-size:10px; color:#667085; }
.hours-interval-field{ max-width:340px; margin-top:24px; }
#admin-view .field label, .type-form__durations > label{ font-family:var(--font-body); font-size:11px; font-weight:500; color:#5B687A; text-transform:none; letter-spacing:0; }
#admin-view .field input, #admin-view .field textarea, .duration-row input{ min-width:0; padding:11px 12px; border:1px solid #DDE3E9; border-radius:7px; background:#fff; font-family:var(--font-body); font-size:13px; color:var(--admin-ink); }
#admin-view .field input:focus, #admin-view .field textarea:focus, .duration-row input:focus{ outline:none; border-color:#7DAD9B; box-shadow:0 0 0 3px #EDF6F2; }
#admin-view input:disabled{ opacity:.55; cursor:not-allowed; }
#admin-view input::placeholder, #admin-view textarea::placeholder{ color:#A0A9B6; }
.type-form h3{ margin-bottom:20px; font-size:16px; font-weight:600; }
.types-list{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.type-card{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:23px; border:1px solid var(--admin-line); border-radius:12px; background:#fff; }
.type-card__info > b{ font-size:14px; font-weight:600; }
.type-card__info p{ margin-top:8px; max-width:48ch; font-size:12px; line-height:1.7; color:var(--admin-muted); }
.type-card__prices{ display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; font-size:11px; color:#667085; }
.type-card__prices b{ margin-left:3px; color:#36755E; font-weight:600; }
.duration-row{ display:flex; align-items:center; gap:10px; margin-top:12px; }
.duration-row input{ width:140px; }
.duration-row__remove{ width:32px; height:32px; border:1px solid var(--admin-line); border-radius:6px; background:#fff; color:#667085; font-size:18px; flex-shrink:0; }
.duration-row__remove:hover{ color:var(--danger); border-color:#F0C3BD; }
.type-form__actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:23px; padding-top:20px; border-top:1px solid var(--admin-line); }

/* Notification settings and delivery history. */
#notification-settings-form{ padding:0; border:0; background:transparent; box-shadow:none; margin-bottom:30px; }
.admin-settings-grid{ display:grid; grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr); gap:22px; align-items:start; }
.settings-card{ min-width:0; padding:25px; border:1px solid var(--admin-line); border-radius:12px; background:#fff; }
.settings-card h3{ margin-bottom:10px; font-size:15px; font-weight:600; }
.settings-card__icon{ display:grid; place-items:center; width:35px; height:35px; border-radius:9px; background:#EEF6F2; color:#42866E; margin-bottom:20px; }
.settings-card__description{ color:var(--admin-muted); font-size:12px; line-height:1.75; margin-bottom:26px; }
#admin-view .step-hint{ margin:0; font-size:11px; line-height:1.75; color:#667085; }
.notification-options{ margin:0; }
.notification-options > .step-hint{ margin-bottom:20px !important; }
.notification-option{ display:grid; grid-template-columns:minmax(0,1fr) 37px; align-items:center; gap:17px; padding:16px; margin-top:11px; border:1px solid var(--admin-line); border-radius:9px; cursor:pointer; font-size:12px; font-weight:500; }
.notification-option:has(input:checked){ background:#F7FBF9; border-color:#D8E9DF; }
.notification-option > span{ order:0; }
.notification-option small{ display:block; margin-top:5px; color:#667085; font-size:10.5px; font-weight:400; line-height:1.7; }
.notification-option input{ appearance:none; order:1; position:relative; width:37px; height:21px; margin:0; border:1px solid #DDE3E9; border-radius:20px; background:#E7EBEF; cursor:pointer; transition:background .15s ease; }
.notification-option input::before{ content:""; position:absolute; left:2px; top:2px; width:15px; height:15px; border-radius:50%; background:#fff; box-shadow:0 1px 2px #0002; transition:transform .15s ease; }
.notification-option input:checked{ background:#3B866E; border-color:#3B866E; }
.notification-option input:checked::before{ transform:translateX(16px); }
.notification-lead-time{ margin-top:20px; padding:17px; border:1px solid var(--admin-line); border-radius:9px; background:#FAFBFC; }
.notification-lead-time input{ width:115px; max-width:100%; }
.settings-savebar{ position:sticky; bottom:20px; z-index:5; display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:20px; padding:13px 17px; border:1px solid var(--admin-line); border-radius:10px; background:#fff; box-shadow:0 4px 14px rgba(16,24,40,.035); }
.settings-savebar .type-form__actions{ margin:0 0 0 auto; padding:0; border:0; }
.settings-savebar .error-banner{ margin:0; flex-basis:100%; }
.settings-savebar [role="status"]{ color:#39755F !important; }
table.admin-table.notification-history{ min-width:620px; }
.notification-history .cell-note{ max-width:40ch; }

/* Login. */
.admin-login{ display:flex; justify-content:center; padding:clamp(40px,8vh,90px) 0 80px; }
.admin-login__card{ width:100%; max-width:420px; padding:36px; border:1px solid var(--admin-line); border-radius:16px; background:#fff; box-shadow:0 14px 45px rgba(30,55,47,.045); }
.admin-login__mark{ display:grid; place-items:center; width:48px; height:48px; margin-bottom:27px; border-radius:13px; background:#2F6D5F; color:#F6F4EA; font:700 24px Georgia,serif; letter-spacing:-.07em; }
.admin-login__card h1{ margin-top:12px; font-size:28px; font-weight:600; letter-spacing:-.045em; }
.admin-login__card > p{ color:var(--admin-muted); font-size:12px; line-height:1.8; margin:12px 0 27px; }
.admin-login__card .form-grid{ gap:18px; }
.admin-login__card .type-form__actions{ border:0; padding:0; margin-top:24px; }
.admin-login__card .type-form__actions .btn{ width:100%; }

/* The workspace adapts to a compact top navigation on smaller screens. */
@media (max-width:1100px){
  .has-dashboard .admin-body{ padding-left:25px; padding-right:25px; }
  .admin-calendar__grid{ grid-template-columns:300px minmax(0,1fr); gap:18px; }
  .admin-settings-grid{ grid-template-columns:1fr; }
  .settings-card{ padding:23px; }
  .admin-calendar-legend{ display:none; }
}
@media (max-width:1024px){
  .admin-nav{ inset:0 0 auto; width:100%; height:119px; border-right:0; border-bottom:1px solid var(--admin-line); }
  .admin-nav > .wrap{ display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:51px 47px; gap:8px 16px; padding:10px 24px 0; }
  .admin-brand{ margin:0; padding:0; }
  .admin-brand__symbol{ width:33px; height:35px; font-size:18px; border-radius:9px; }
  .admin-brand__name{ font-size:18px; }
  .admin-brand__caption{ font-size:7.5px; margin-top:4px; }
  .admin-nav__label{ display:none; }
  .admin-nav__burger{ display:flex; justify-self:end; align-self:center; }
  .admin-tabs{ grid-column:1 / -1; flex-direction:row; align-self:stretch; gap:5px; overflow-x:auto; padding-bottom:8px; scrollbar-width:none; }
  .admin-tabs::-webkit-scrollbar{ display:none; }
  .admin-tab{ width:auto; padding:8px 12px; font-size:11px; flex-shrink:0; gap:8px; }
  .admin-tab .admin-icon{ width:16px; height:16px; }
  .admin-nav__count{ width:17px; min-width:17px; height:17px; font-size:9px; border-radius:4px; }
  .admin-nav__actions{ display:none; position:absolute; right:24px; top:62px; z-index:70; width:240px; padding:17px 12px 10px; margin:0; border:1px solid var(--admin-line); border-radius:12px; background:#fff; box-shadow:0 12px 36px #1D29391A; }
  .admin-nav__actions.is-open{ display:flex; }
  .has-dashboard .admin-body{ margin-left:0; padding:119px 24px 48px; }
  .admin-settings-grid{ grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr); }
}
@media (max-width:760px){
  .stats{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .stat{ padding:16px; }
  .admin-settings-grid, .admin-calendar__grid{ grid-template-columns:1fr; }
  .types-list{ grid-template-columns:1fr; }
  .hours-row{ grid-template-columns:120px 90px 1fr 1fr; gap:14px; }
}
@media (max-width:640px){
  .admin-nav > .wrap{ padding-left:16px; padding-right:16px; }
  .has-dashboard .admin-body{ padding-left:16px; padding-right:16px; }
  .admin-topbar{ height:auto; min-height:67px; margin-bottom:23px; gap:10px; }
  .admin-breadcrumb{ font-size:9px; gap:7px; }
  .admin-date{ font-size:9px; text-align:right; max-width:50%; }
  .admin-date .admin-icon{ display:none; }
  .admin-head{ align-items:flex-start; gap:12px; margin-bottom:22px; }
  .admin-head h1{ font-size:26px; }
  .admin-head p{ font-size:11.5px; }
  .admin-eyebrow{ font-size:8px; letter-spacing:.1em; }
  .admin-head > .btn{ min-height:34px !important; padding:8px 10px; font-size:10px !important; }
  .admin-head > .btn .admin-icon{ width:14px; height:14px; }
  .stats{ gap:9px; margin-bottom:22px; }
  .stat__top{ align-items:flex-start; }
  .stat__top span{ font-size:10px; }
  .stat__icon{ width:23px; height:23px; }
  .stat > b{ font-size:27px; }
  .stat__hint{ font-size:9px; }
  .bookings-card__head{ align-items:stretch; flex-direction:column; gap:17px; padding:20px 18px 15px; }
  .admin-search{ width:100%; }
  .admin-search input, #admin-view .field input, #admin-view .field textarea, .hours-row input[type="text"], .duration-row input{ font-size:16px; }
  .admin-toolbar{ padding:0 14px 15px; }
  .seg{ gap:2px; }
  .seg button{ padding:7px 8px; font-size:10px; }
  .hours-form, .type-form, .settings-card{ padding:20px 17px; }
  .hours-row--head{ display:none; }
  .hours-row{ grid-template-columns:1fr 1fr; grid-template-areas:"label toggle" "opens closes"; gap:13px 18px; padding:18px 0; }
  .hours-row__label{ grid-area:label; }
  .hours-row__toggle{ grid-area:toggle; justify-self:end; }
  .hours-time-field--opens{ grid-area:opens; }
  .hours-time-field--closes{ grid-area:closes; }
  .hours-time-field__label{ display:block; font-size:10px; flex-shrink:0; }
  .duration-row input{ width:auto; flex:1 1 0; }
  .settings-savebar{ bottom:10px; gap:10px; padding:12px; }
  .settings-savebar .type-form__actions{ width:100%; }
  .settings-savebar .btn{ width:100%; }
  .admin-section__head{ align-items:flex-start; gap:15px; }
  .admin-section__head h2, .admin-section__head h3{ font-size:15px; }
  .admin-section__head .btn{ flex-shrink:0; }
  .admin-login__card{ padding:28px 23px; }
  /* Keep complete booking details readable without horizontal scrolling. */
  .bookings-card > .admin-table-wrap{ background:#F8FAFB; }
  #admin-table{ display:block; min-width:0; }
  #admin-table thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  #admin-table tbody{ display:grid; gap:12px; padding:14px; }
  #admin-table tr{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-areas:"visit status" "client client" "contact service" "price price" "actions actions"; gap:16px 12px; padding:17px; border:1px solid var(--admin-line); border-radius:10px; background:#fff; }
  #admin-table td{ display:block; min-width:0; padding:0; border:0; overflow-wrap:anywhere; }
  #admin-table .booking-cell--visit{ grid-area:visit; min-width:0; }
  #admin-table .booking-cell--status{ grid-area:status; justify-self:end; }
  #admin-table .booking-cell--client{ grid-area:client; padding:14px 0; border-top:1px solid #F0F2F5; border-bottom:1px solid #F0F2F5; }
  #admin-table .booking-cell--contact{ grid-area:contact; }
  #admin-table .booking-cell--service{ grid-area:service; text-align:right; }
  #admin-table .booking-cell--price{ grid-area:price; align-self:center; }
  #admin-table .booking-cell--actions{ grid-area:actions; grid-column:1 / -1; justify-self:stretch; padding-top:12px; border-top:1px solid #F0F2F5; }
  #admin-table .booking-cell--price{ grid-column:1 / -1; }
  #admin-table .booking-service{ white-space:normal; }
  #admin-table .booking-phone{ white-space:normal; }
  #admin-table .booking-cell--contact::before, #admin-table .booking-cell--service::before{ content:attr(data-label); display:block; margin-bottom:6px; color:#667085; font-size:9px; }
  #admin-table .client-name{ font-size:13px; max-width:none; }
  #admin-table .client-avatar{ width:33px; height:33px; font-size:10px; }
  #admin-table .booking-price{ font-size:16px; }
  #admin-table .row-actions{ justify-content:flex-end; gap:8px; }
  #admin-table .row-actions button{ min-height:40px; font-size:11px; padding:8px 12px; }
  #admin-table .row-actions .action--icon{ min-width:40px; margin-left:0; order:-1; margin-right:auto; }
}
@media (max-width:420px){
  .stats{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stat:last-child{ grid-column:1 / -1; }
  .stat:last-child{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 18px; }
  .stat:last-child .stat__icon{ display:none; }
  .stat:last-child > b{ grid-column:2; grid-row:1 / 3; align-self:center; margin-top:0; }
  .stat:last-child .stat__hint{ margin-top:4px; }
  .admin-breadcrumb > span:first-child, .admin-breadcrumb > span:nth-child(2){ display:none; }
  .notification-option{ padding:13px; gap:12px; }
}
@media (prefers-reduced-motion:reduce){
  .notification-option input, .notification-option input::before{ transition:none; }
}
@media (forced-colors:active){
  .notification-option input{ appearance:auto; }
  .notification-option input::before{ display:none; }
}
