:root {
  --ink: #243039;
  --ink-soft: #5a6670;
  --teal: #2f6f69;
  --teal-deep: #1f524e;
  --teal-soft: #6fa8a1;
  --rose: #c47b74;
  --brass: #c4a574;
  --brass-soft: #dfc7a3;
  --mist: #f3f0ea;
  --paper: #faf7f2;
  --line: rgba(36, 48, 57, 0.1);
  --radius: 1.1rem;
  --radius-sm: 0.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --nav-width: 16rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.7;
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(111, 168, 161, 0.22), transparent 55%),
    radial-gradient(800px 480px at 100% 18%, rgba(196, 123, 116, 0.12), transparent 50%),
    radial-gradient(700px 420px at 70% 100%, rgba(196, 165, 116, 0.14), transparent 55%),
    var(--mist);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: min(1080px, calc(100% - 2.75rem));
  margin-inline: auto;
}

.page {
  margin-left: var(--nav-width);
  min-height: 100vh;
}

.site-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--nav-width);
  padding: 2.4rem 1.5rem;
  background:
    linear-gradient(165deg, rgba(255, 250, 244, 0.96), rgba(236, 245, 242, 0.92));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--teal-deep);
  line-height: 1.05;
}

.nav-tag,
.nav-foot {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--rose);
  font-weight: 500;
}

.nav-menu {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.nav-menu a {
  display: block;
  padding: 0.8rem 1rem;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-radius: 0.9rem;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--teal-deep);
  background: rgba(47, 111, 105, 0.1);
  transform: translateX(4px);
}

.nav-menu a[aria-current="page"] {
  color: var(--teal-deep);
  background: rgba(47, 111, 105, 0.12);
  font-weight: 600;
}

.nav-cta {
  margin-top: auto;
  text-align: center;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  background: var(--teal) !important;
  color: #fff9f2 !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--teal-deep) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.nav-reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.nav-reach a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  color: #fff9f2;
  background: var(--teal);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-reach a.is-th {
  background: #1c1c1c;
}

.nav-reach a.is-yt {
  background: #c4302b;
}

.nav-reach a.is-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}

.nav-reach a:hover,
.nav-reach a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(47, 111, 105, 0.18);
}

.nav-reach a.is-th:hover,
.nav-reach a.is-th:focus-visible {
  background: #000;
  box-shadow: 0 8px 16px rgba(28, 28, 28, 0.2);
}

.nav-reach a.is-yt:hover,
.nav-reach a.is-yt:focus-visible {
  background: #a82824;
  box-shadow: 0 8px 16px rgba(196, 48, 43, 0.22);
}

.nav-reach a.is-ig:hover,
.nav-reach a.is-ig:focus-visible {
  box-shadow: 0 8px 16px rgba(221, 42, 123, 0.24);
}

.nav-foot {
  margin-top: 0.75rem;
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 60;
  width: 2.85rem;
  height: 2.85rem;
  border: 0;
  border-radius: 1.1rem;
  background: rgba(255, 249, 242, 0.95);
  box-shadow: 0 8px 24px rgba(36, 48, 57, 0.1);
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px auto;
  width: 1.1rem;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.nav-close {
  display: none;
}

.nav-backdrop {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: start;
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(196, 123, 116, 0.18), transparent 60%),
    radial-gradient(ellipse 55% 50% at 15% 30%, rgba(111, 168, 161, 0.28), transparent 55%),
    linear-gradient(160deg, #e8f1ee 0%, #f7efe6 46%, #e4ebe8 100%);
}

.hero-glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  right: 8%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-note {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: var(--teal);
  opacity: 0.28;
  animation: drift 9s ease-in-out infinite;
}

.float-note::after {
  content: "";
  position: absolute;
  left: 11px;
  top: -18px;
  width: 2px;
  height: 22px;
  background: currentColor;
  border-radius: 2px;
}

.float-note.n1 { top: 18%; right: 14%; background: var(--rose); color: var(--rose); animation-delay: 0s; }
.float-note.n2 { top: 32%; right: 28%; width: 11px; height: 11px; color: var(--teal); animation-delay: -3s; }
.float-note.n3 { top: 22%; right: 40%; background: var(--brass); color: var(--brass); animation-delay: -5.5s; }

.hero-visual {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: min(46vh, 400px);
  display: flex;
  align-items: stretch;
  padding: 0;
  pointer-events: none;
}

.piano-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.melody-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem 0.55rem;
  background: linear-gradient(180deg, rgba(247, 245, 241, 0.55), rgba(36, 48, 57, 0.08));
  backdrop-filter: blur(8px);
}

@media (min-width: 901px) {
  .melody-bar {
    position: relative;
    top: -1.15rem;
    margin-bottom: -0.35rem;
    padding: 0.7rem 1.15rem 0.65rem;
    border-radius: 0.9rem 0.9rem 0 0;
  }
}

.melody-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--teal-deep);
  margin-right: 0.35rem;
}

.melody-btn {
  border: 1px solid rgba(47, 111, 105, 0.22);
  background: rgba(255, 249, 242, 0.88);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.melody-btn:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  transform: translateY(-1px);
}

.melody-btn.is-playing {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border-color: transparent;
  color: #fff9f2;
}

.melody-stop {
  border-color: rgba(196, 123, 116, 0.45);
  color: #8b4540;
}

.piano {
  position: relative;
  width: 100%;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.piano-rail {
  height: 18px;
  border-radius: 0;
  background: linear-gradient(180deg, #3a4656, #1a222c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.piano-keys {
  position: relative;
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 0.22%;
  min-height: 0;
  padding: 0 0 0.45%;
  background: linear-gradient(180deg, #252e3a, #141a22);
  border-radius: 0;
  user-select: none;
  touch-action: none;
}

.key {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform-origin: top center;
  transition: transform 0.16s ease-out, filter 0.16s ease-out, background 0.16s ease-out, box-shadow 0.16s ease-out;
}

.key-white {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #fffdf8 0%, #f3ebe0 72%, #e4d8c8 100%);
  box-shadow:
    inset 0 -3px 0 rgba(36, 48, 57, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.65),
    0 8px 14px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.key-white.is-pressed,
.key-white:active,
.key-white.is-lit {
  transform: translateY(7px) scaleY(0.985);
  background: linear-gradient(180deg, #e8f4f1 0%, #d5e8e3 55%, #c4a574 140%);
  box-shadow:
    inset 0 4px 10px rgba(36, 48, 57, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.12);
  filter: brightness(0.96);
}

.key-white.is-lit {
  background: linear-gradient(180deg, #f3fffb 0%, #b8e0d8 55%, #6fa8a1 130%);
  box-shadow:
    inset 0 3px 8px rgba(47, 111, 105, 0.2),
    0 0 18px rgba(111, 168, 161, 0.35);
}

.key-black {
  position: absolute;
  top: 0;
  width: 18px;
  height: 58%;
  z-index: 2;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #3a4452 0%, #171d26 70%, #0d1117 100%);
  box-shadow:
    inset 0 -2px 0 rgba(255, 255, 255, 0.08),
    0 8px 12px rgba(0, 0, 0, 0.35);
}

.key-black.is-pressed,
.key-black:active,
.key-black.is-lit {
  transform: translateY(5px) scaleY(0.97);
  background: linear-gradient(180deg, #2f6f69 0%, #1a222c 75%, #0d1117 100%);
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.25);
}

.key-black.is-lit {
  background: linear-gradient(180deg, #4a9e96 0%, #1f524e 70%, #0d1117 100%);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(111, 168, 161, 0.45);
}

.key:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 2.75rem));
  margin: 0 auto;
  padding: 4rem 0 calc(min(46vh, 400px) + 1.5rem);
}

.brand {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  font-weight: 600;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 12ch;
  background: linear-gradient(120deg, var(--teal-deep) 20%, var(--rose) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lede {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 1.35rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff9f2;
  box-shadow: 0 12px 28px rgba(47, 111, 105, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(47, 111, 105, 0.3);
}

.btn-ghost {
  background: rgba(255, 249, 242, 0.55);
  border-color: rgba(36, 48, 57, 0.12);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--rose);
  color: var(--teal-deep);
}

.wave {
  color: var(--paper);
  line-height: 0;
  margin-top: -1px;
  background: transparent;
}

.wave svg {
  width: 100%;
  height: 48px;
}

.section {
  padding: clamp(4.2rem, 9vw, 7rem) 0;
  position: relative;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--rose);
}

.section h2 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 5vw, 3.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.08;
  max-width: 12ch;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  background: linear-gradient(125deg, var(--teal-deep) 15%, #2a5f5a 55%, var(--rose) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-copy {
  margin: 0 0 2.6rem;
  max-width: 40ch;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.08rem;
}

.about {
  background: var(--paper);
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.values li {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1.75rem 1.55rem 1.65rem;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(111, 168, 161, 0.1) 100%);
  border: 1px solid rgba(47, 111, 105, 0.1);
  box-shadow: 0 12px 28px rgba(36, 48, 57, 0.04);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.values li:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(36, 48, 57, 0.07);
}

.values strong {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.65;
  color: var(--ink-soft);
  -webkit-text-fill-color: var(--ink-soft);
}

.values span {
  font-family: var(--font-body);
  color: var(--ink-soft);
  -webkit-text-fill-color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 36ch;
}

.lessons {
  background:
    radial-gradient(600px 320px at 90% 10%, rgba(196, 123, 116, 0.1), transparent 60%),
    linear-gradient(180deg, #f0ebe4, var(--mist));
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  max-width: 52rem;
  margin-top: 1.5rem;
}

.lesson {
  padding: 1.9rem 1.65rem 1.8rem;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(111, 168, 161, 0.1) 100%);
  border: 1px solid rgba(47, 111, 105, 0.1);
  box-shadow: 0 12px 28px rgba(36, 48, 57, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.lesson:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(36, 48, 57, 0.07);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(111, 168, 161, 0.12) 100%);
}

.lesson-mark {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--rose);
  opacity: 0.85;
}

.lesson h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  color: var(--teal-deep);
}

.lesson p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.65;
  font-size: 1.02rem;
}

.lesson p.lesson-lead {
  margin: 0;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--rose);
  border-right: 3px solid var(--rose);
  color: var(--teal-deep);
  -webkit-text-fill-color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.55rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
}

.lesson-points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.lesson-points li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0.9rem 0.7rem 1.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lesson-points li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 1.05rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
  box-shadow: 0 0 0 3px rgba(111, 168, 161, 0.18);
}

.lesson-points li:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.path {
  background:
    linear-gradient(145deg, #245853 0%, #1a3f3c 55%, #2a4f55 100%);
  color: #f4f8f6;
  overflow: hidden;
}

.path-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.28), transparent 70%);
  pointer-events: none;
  animation: pulse 10s ease-in-out infinite;
}

.path .eyebrow {
  color: var(--brass-soft);
}

.path h2 {
  max-width: 16ch;
  color: #f7f3ee;
  background: linear-gradient(125deg, #fff9f2 10%, #dfc7a3 55%, #e8b4ae 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.path .section-copy {
  color: rgba(244, 248, 246, 0.78);
}

.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(10, 22, 20, 0.12);
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.steps li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(223, 199, 163, 0.28);
  transform: translateY(-2px);
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  font-style: italic;
  color: #f7f3ee;
  line-height: 1.15;
}

.steps p {
  margin: 0;
  color: rgba(244, 248, 246, 0.78);
  font-weight: 300;
  line-height: 1.55;
}

.steps a {
  color: var(--brass-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 400;
}

.steps a:hover,
.steps a:focus-visible {
  color: #fff9f2;
  outline: none;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--brass-soft);
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}

.contact {
  background:
    radial-gradient(700px 380px at 10% 0%, rgba(111, 168, 161, 0.14), transparent 60%),
    var(--paper);
}

.contact-shell {
  display: grid;
  gap: 0;
}

.contact-main {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-intro .section-copy {
  margin-bottom: 0;
}

.contact-channels {
  display: grid;
  gap: 1rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: calc(var(--radius) + 0.15rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(111, 168, 161, 0.12) 100%);
  border: 1px solid rgba(47, 111, 105, 0.12);
  box-shadow: 0 12px 28px rgba(36, 48, 57, 0.04);
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.contact-channel:hover,
.contact-channel:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(47, 111, 105, 0.32);
  box-shadow: 0 18px 40px rgba(36, 48, 57, 0.1);
  outline: none;
}

.contact-channel-icon {
  display: grid;
  place-items: center;
  flex: 0 0 3.1rem;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  background: var(--teal);
  color: #fff9f2;
}

.contact-channel.is-th .contact-channel-icon {
  background: var(--ink);
}

.contact-channel-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.contact-channel-text strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.1;
}

.contact-channel-text span {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 1.02rem;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.95rem;
}

.form-status.is-ok {
  color: var(--teal);
}

.form-status.is-err,
.form-status.is-error {
  color: #9a4444;
}

.blog-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 1.25rem;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.blog-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blog-atmosphere::after {
  content: "♪";
  position: absolute;
  right: 4%;
  bottom: -0.4rem;
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 16rem);
  font-style: italic;
  line-height: 0.8;
  color: rgba(47, 111, 105, 0.07);
}

.blog-glow {
  position: absolute;
  right: -8rem;
  bottom: 6%;
  width: min(34rem, 70vw);
  height: min(34rem, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 168, 161, 0.28), transparent 68%);
}

.blog-glow.is-warm {
  right: auto;
  left: 12%;
  bottom: auto;
  top: 8%;
  width: min(22rem, 50vw);
  height: min(22rem, 50vw);
  background: radial-gradient(circle, rgba(196, 123, 116, 0.16), transparent 68%);
}

.blog-atmosphere .float-note.n1 { top: auto; bottom: 26%; right: 16%; }
.blog-atmosphere .float-note.n2 { top: auto; bottom: 12%; right: 30%; }
.blog-atmosphere .float-note.n3 { top: auto; bottom: 20%; left: 36%; right: auto; }

.blog-page .shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.blog-page.is-article .eyebrow,
.blog-page.is-article .blog-toolbar,
.blog-page.is-article .blog-search,
.blog-page.is-article .blog-atmosphere {
  display: none;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  max-width: 46rem;
  margin: 0 0 1.35rem;
}

.blog-page.is-grid .blog-toolbar,
.blog-page.is-grid .blog-list {
  max-width: none;
}

.blog-search {
  display: block;
  flex: 1 1 14rem;
  margin: 0;
  min-width: 0;
}

.blog-view {
  display: flex;
  gap: 0.3rem;
  padding: 0.28rem;
  border: 1px solid rgba(47, 111, 105, 0.18);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
}

.blog-view button {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.blog-view button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}

.blog-view button:hover,
.blog-view button:focus-visible {
  color: var(--teal-deep);
  outline: none;
}

.blog-view button[aria-pressed="true"]:hover,
.blog-view button[aria-pressed="true"]:focus-visible {
  color: #fff;
}

.blog-search input {
  width: 100%;
  border: 1px solid rgba(47, 111, 105, 0.18);
  border-radius: 0.85rem;
  padding: 0.85rem 1.05rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(36, 48, 57, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search input::placeholder {
  color: rgba(36, 48, 57, 0.42);
}

.blog-search input:focus {
  outline: none;
  border-color: rgba(47, 111, 105, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 111, 105, 0.12);
}

.blog-list {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  align-items: start;
  grid-auto-rows: min-content;
  max-width: 46rem;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.15rem 0.45rem 0.4rem 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 111, 105, 0.4) transparent;
}

.blog-list::-webkit-scrollbar {
  width: 0.55rem;
}

.blog-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(47, 111, 105, 0.35);
}

.blog-list.is-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: stretch;
  /* auto = row height from content; stretch equalizes cards in the row.
     1fr was filling the viewport and left huge empty gaps inside cards. */
  grid-auto-rows: auto;
  gap: 1.15rem;
  max-width: none;
}

.blog-list.is-grid .blog-card {
  height: auto;
  min-height: 100%;
  max-height: none;
  align-self: stretch;
  overflow: hidden;
  padding: 1.2rem 1.35rem 1.25rem;
}

.blog-list.is-grid .blog-card h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.blog-list.is-grid .blog-excerpt {
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 760px) {
  .blog-list.is-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: min-content;
  max-height: none;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
  padding: 1.2rem 1.45rem 1.35rem 1.45rem;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(111, 168, 161, 0.12) 58%, rgba(196, 165, 116, 0.1) 100%);
  border: 1px solid rgba(47, 111, 105, 0.12);
  box-shadow: 0 12px 28px rgba(36, 48, 57, 0.04);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  bottom: 0.85rem;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal-soft), var(--rose));
  opacity: 0.55;
}

.blog-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a.blog-card:hover,
a.blog-card:focus-visible {
  border-color: rgba(47, 111, 105, 0.32);
  box-shadow: 0 18px 40px rgba(36, 48, 57, 0.1);
  transform: translateY(-3px);
  outline: none;
}

.blog-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
}

.blog-card time,
.blog-article time {
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-card time {
  order: -1;
  flex: 0 0 auto;
  margin: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.blog-article time {
  display: block;
  margin-bottom: 0.55rem;
}

.blog-card h3 {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  max-height: none;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.2vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  color: var(--teal-deep);
  line-height: 1.4;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.blog-excerpt {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.7;
}

.blog-excerpt:empty {
  display: none;
}

.blog-list--single {
  max-width: 46rem;
}

.blog-article {
  min-width: 0;
  max-width: 100%;
  padding: 0.2rem 0 1rem;
}

.blog-article h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 600;
  font-style: italic;
  color: var(--teal-deep);
  line-height: 1.15;
  max-width: none;
  overflow-wrap: break-word;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.blog-article-nav {
  margin: 0 0 1.25rem;
}

.blog-article-nav a {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 500;
}

.blog-article-nav a:hover,
.blog-article-nav a:focus-visible {
  text-decoration: underline;
}

.blog-body {
  min-width: 0;
  max-width: 100%;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.blog-body p {
  margin: 0 0 0.85rem;
}

.blog-body p:last-child {
  margin-bottom: 0;
}

.blog-empty {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
}

.admin-body .nav-menu a,
.admin-body .nav-menu .nav-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-body .nav-menu a svg,
.admin-body .nav-menu .nav-menu-btn svg {
  flex: 0 0 auto;
  opacity: 0.88;
}

.admin-body .nav-menu a[aria-current="page"] svg {
  opacity: 1;
}

.admin-body .nav-logout-item {
  margin-top: auto;
  padding-top: 0.75rem;
}

.admin-body .nav-logout-btn:hover,
.admin-body .nav-logout-btn:focus-visible {
  color: #8b4540;
  background: rgba(196, 123, 116, 0.12);
}

.admin-body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(111, 168, 161, 0.22), transparent 55%),
    radial-gradient(800px 480px at 100% 18%, rgba(196, 123, 116, 0.12), transparent 50%),
    linear-gradient(160deg, #e8f1ee 0%, #f7efe6 46%, #e4ebe8 100%);
}

.admin-body [hidden] {
  display: none !important;
}

.admin-body .page {
  min-height: 100vh;
}

.nav-menu-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.9rem;
  background: transparent;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-menu-btn:hover,
.nav-menu-btn:focus-visible {
  color: var(--teal-deep);
  background: rgba(47, 111, 105, 0.1);
  transform: translateX(4px);
}

.admin-shell {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.8rem 0 4rem;
}

.admin-body.is-bookings-page .admin-shell {
  width: calc(100% - 2.5rem);
  max-width: none;
}

.admin-body.is-telegram-page .admin-shell {
  max-width: 46rem;
}

.telegram-lead {
  margin: 0 0 1rem;
}

.telegram-hint {
  margin: -0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.telegram-form {
  margin: 0;
  padding: 0;
  border: 0;
}

.telegram-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(47, 111, 105, 0.14);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.65);
}

.telegram-link-status {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.telegram-link-status.is-ok {
  color: var(--teal-deep);
}

.telegram-enabled-option {
  justify-self: start;
}

.telegram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.9rem 1rem;
}

/* Однакова структура рядків у всіх трьох колонках:
   підпис → поле → рядок перемикача (навіть якщо він порожній). */
.admin-form .telegram-grid > * {
  display: grid;
  grid-template-rows: auto auto 1.5rem;
  align-content: start;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
}

.telegram-field {
  display: grid;
  min-width: 0;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.telegram-field-title {
  display: block;
  line-height: 1.35;
}

.telegram-grid input[type="time"],
.telegram-grid input[type="number"] {
  min-height: 3.05rem;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}

.telegram-minutes-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.telegram-minutes-wrap input {
  width: 100%;
  padding-right: 2.6rem;
}

.telegram-minutes-wrap input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.telegram-minutes-wrap > span {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-weight: 600;
  pointer-events: none;
}

/* .admin-form label має grid — тут потрібен саме inline-flex. */
.admin-form .telegram-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.5rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.admin-form .telegram-toggle input {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border-radius: 0.3rem;
  accent-color: var(--teal);
  cursor: pointer;
}

.telegram-toggle-spacer {
  display: block;
  min-height: 1.5rem;
}

@media (max-width: 760px) {
  .telegram-grid {
    grid-template-columns: 1fr;
  }

  .admin-form .telegram-grid > * {
    grid-template-rows: auto auto auto;
  }
}

.telegram-minutes-wrap > span {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-weight: 600;
  pointer-events: none;
}

@media (max-width: 760px) {
  .telegram-grid {
    grid-template-columns: 1fr;
  }
}

.admin-body.is-people-page .admin-shell {
  width: calc(100% - 2.5rem);
  max-width: none;
}

.booking-client-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.booking-client-label {
  display: block;
}

.client-combobox {
  position: relative;
}

.client-combobox-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid rgba(47, 111, 105, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 12px 28px rgba(36, 48, 57, 0.12);
}

.client-combobox-option {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.client-combobox-option:hover,
.client-combobox-option.is-active,
.client-combobox-option[aria-selected="true"] {
  background: rgba(47, 111, 105, 0.1);
}

.client-combobox-option strong {
  font-weight: 600;
}

.client-combobox-option span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.client-combobox-empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 400;
}

.admin-body.is-bookings-page #bookings {
  min-height: calc(100vh - 8.5rem);
}

.admin-body.is-bookings-page .schedule-board {
  min-height: calc(100vh - 14rem);
}

.admin-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 2.75rem;
  margin-bottom: 2rem;
}

.admin-brand-block {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
  margin: 0;
  text-align: center;
  pointer-events: none;
}

.admin-header .eyebrow {
  margin: 0;
}

.admin-brand {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(120deg, var(--teal-deep) 20%, var(--rose) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.admin-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.02em;
  background: linear-gradient(125deg, var(--teal-deep) 15%, #2a5f5a 55%, var(--rose) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
  .admin-header {
    margin-bottom: 1.35rem;
    padding-left: 3.1rem; /* місце під кнопку меню */
  }

  .admin-header .eyebrow {
    font-size: 1.2rem;
  }
}

.admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(47, 111, 105, 0.18);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-deep);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.admin-icon-btn:hover,
.admin-icon-btn:focus-visible {
  background: rgba(47, 111, 105, 0.1);
  border-color: rgba(47, 111, 105, 0.28);
  color: var(--teal-deep);
  transform: translateY(-1px);
}

.admin-workspace {
  display: grid;
  gap: 1.35rem;
}

.admin-card {
  padding: 1.9rem 1.7rem;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(111, 168, 161, 0.1) 100%);
  border: 1px solid rgba(47, 111, 105, 0.1);
  box-shadow: 0 12px 28px rgba(36, 48, 57, 0.04);
}

#login-panel {
  width: min(100%, 24rem);
  margin-inline: auto;
  padding: 1.75rem 1.5rem 1.6rem;
}

#login-panel .admin-form {
  gap: 0.95rem;
}

#login-panel .btn-primary {
  width: auto;
  min-width: 8.5rem;
  justify-self: start;
}

.admin-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  color: var(--teal-deep);
  -webkit-text-fill-color: var(--teal-deep);
}

.admin-editor-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.admin-editor-title {
  display: grid;
  gap: 0.45rem;
}

.admin-editor-top h2 {
  margin: 0;
}

.admin-back {
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.admin-back:hover,
.admin-back:focus-visible {
  text-decoration: underline;
}

.admin-post-date {
  color: var(--rose);
  font-size: 0.95rem;
  font-weight: 500;
}

.admin-lead {
  margin: 0 0 1.35rem;
  max-width: 36ch;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.65;
}

.admin-form {
  display: grid;
  gap: 1.05rem;
}

.admin-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid rgba(36, 48, 57, 0.14);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 111, 105, 0.14);
}

.booking-form {
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(47, 111, 105, 0.12);
}

.booking-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 0.9rem 1rem;
  align-items: end;
}

.people-country-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.85fr);
  gap: 0.9rem 1rem;
  align-items: end;
}

.people-country-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.people-local-time {
  display: grid;
  gap: 0.2rem;
  min-height: 3.35rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(47, 111, 105, 0.16);
  border-radius: 0.85rem;
  background: rgba(111, 168, 161, 0.1);
  color: var(--teal-deep);
}

.people-local-time-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.people-local-time strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.people-local-time-zone {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 400;
}

.people-country-chip {
  color: var(--teal-deep);
  font-weight: 500;
}

.admin-body.is-settings-page .admin-shell {
  max-width: 46rem;
}

.settings-clients-time {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(47, 111, 105, 0.12);
}

.settings-clients-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  font-style: italic;
  color: var(--teal-deep);
}

.settings-clients-clocks {
  display: grid;
  gap: 0.55rem;
}

.settings-client-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(47, 111, 105, 0.12);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.settings-client-row strong {
  font-weight: 600;
  color: var(--ink);
}

.settings-client-row .settings-client-meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 400;
}

.settings-client-time {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: var(--teal-deep);
  white-space: nowrap;
}

.booking-when {
  margin: 0 0 0.35rem !important;
  color: var(--rose) !important;
  font-weight: 500 !important;
}

.booking-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.35rem !important;
}

.admin-badge.is-new {
  background: rgba(196, 165, 116, 0.18);
  color: #7a5a2e;
}

.admin-badge.is-done {
  background: rgba(90, 102, 112, 0.12);
  color: var(--ink-soft);
}

.admin-badge.is-paid {
  background: rgba(47, 111, 105, 0.16);
  color: var(--teal-deep);
}

.admin-badge.is-unpaid {
  background: rgba(196, 112, 98, 0.14);
  color: var(--rose);
}

.booking-notes-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem 1rem;
  align-items: end;
}

.booking-notes-field {
  min-width: 0;
}

.booking-pay-block {
  display: grid;
  gap: 0.55rem;
  align-content: end;
  min-width: 11.5rem;
}

.booking-paid-option {
  margin: 0;
  white-space: nowrap;
}

.booking-amount-field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.booking-amount-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: stretch;
}

.admin-form .booking-amount-wrap input {
  width: 100%;
  min-width: 0;
}

.admin-form .booking-amount-wrap .booking-amount-currency {
  width: auto;
  min-width: 3.4rem;
  margin: 0;
  padding: 0.85rem 0.7rem;
  border: 1px solid rgba(36, 48, 57, 0.14);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
}

.admin-form .booking-amount-wrap .booking-amount-currency:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 111, 105, 0.14);
}

.admin-badge.is-amount {
  background: rgba(47, 111, 105, 0.1);
  color: var(--teal-deep);
}

@media (max-width: 760px) {
  .booking-notes-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .booking-pay-block {
    justify-self: stretch;
    min-width: 0;
  }
}

.booking-when-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid rgba(47, 111, 105, 0.14);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.95), rgba(236, 245, 242, 0.72));
}

.booking-when-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.booking-when-inner {
  display: grid;
  grid-template-columns: minmax(11rem, 0.9fr) minmax(0, 1.4fr);
  gap: 0.85rem 1rem;
  align-items: stretch;
}

.booking-day-field {
  margin: 0;
  gap: 0 !important;
}

.booking-day-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border: 1px solid rgba(47, 111, 105, 0.16);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.booking-day-card input[type="number"] {
  width: 3.6rem;
  height: 3.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: linear-gradient(160deg, var(--teal), var(--teal-deep));
  color: #fff9f2;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  font-style: italic;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.booking-day-card input[type="number"]::-webkit-outer-spin-button,
.booking-day-card input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.booking-day-card input[type="number"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 111, 105, 0.22);
}

.booking-month-year {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  color: var(--teal-deep);
}

.booking-time-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: end;
  min-width: 0;
}

.booking-time-field {
  margin: 0;
  gap: 0.35rem !important;
  min-width: 0;
}

.booking-time-field input[type="time"] {
  min-height: 3.1rem;
  padding-inline: 0.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.booking-time-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 3.1rem;
  color: var(--rose);
  font-size: 1.15rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .booking-when-inner {
    grid-template-columns: 1fr;
  }

  .booking-time-range {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .booking-time-sep {
    display: none;
  }
}

@media (max-width: 980px) {
  .booking-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-client-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .booking-form-grid {
    grid-template-columns: 1fr;
  }

  .people-country-row {
    grid-template-columns: 1fr;
  }

  .booking-client-field {
    grid-column: auto;
  }
}

.booking-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex: 1 1 16rem;
}

.booking-view {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid rgba(47, 111, 105, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.55);
}

.booking-view button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.booking-view button[aria-pressed="true"] {
  background: rgba(47, 111, 105, 0.14);
  color: var(--teal-deep);
}

.booking-view button:hover,
.booking-view button:focus-visible {
  color: var(--teal-deep);
  background: rgba(47, 111, 105, 0.1);
}

.booking-cal {
  --schedule-ink: #2a4f9b;
  --schedule-accent: #c45a4a;
  --schedule-paper: #fffaf2;
  --schedule-line: rgba(42, 79, 155, 0.55);
  margin-top: 0.35rem;
}

.schedule-board {
  position: relative;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.25rem;
  border: 1px solid rgba(42, 79, 155, 0.18);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 8% 12%, rgba(196, 90, 74, 0.08), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(42, 79, 155, 0.08), transparent 26%),
    linear-gradient(180deg, var(--schedule-paper), #fff7eb);
  overflow: hidden;
}

.schedule-deco {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.schedule-deco-item {
  position: absolute;
  width: 3.2rem;
  height: 3.2rem;
  opacity: 0.55;
  background: no-repeat center / contain;
}

.schedule-deco-item.is-tl {
  top: 0.55rem;
  left: 0.55rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23c45a4a' stroke-width='2'%3E%3Cpath d='M32 8c2 8 8 14 16 16-8 2-14 8-16 16-2-8-8-14-16-16 8-2 14-8 16-16Z'/%3E%3C/svg%3E");
}

.schedule-deco-item.is-tr {
  top: 0.7rem;
  right: 0.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%232a4f9b' stroke-width='2'%3E%3Cpath d='M18 40c8-10 18-16 28-18-4 10-4 20 0 30-12-4-22-2-28-2 4-4 4-8 0-10Z'/%3E%3Ccircle cx='44' cy='18' r='5'/%3E%3C/svg%3E");
}

.schedule-deco-item.is-bl {
  bottom: 0.5rem;
  left: 0.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%232a4f9b' stroke-width='2'%3E%3Cpath d='M18 12 14 52h12L22 12Zm28 0-4 40h12L50 12Z'/%3E%3Cpath d='M10 52c8 4 36 4 44 0'/%3E%3C/svg%3E");
}

.schedule-deco-item.is-br {
  bottom: 0.45rem;
  right: 0.65rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%232a4f9b' stroke-width='2'%3E%3Cpath d='M18 52V28m0 0c-6-2-8-8-4-12 6 0 8 6 4 12Zm14 24V22m0 0c-7-2-9-10-4-14 8 0 10 8 4 14Zm14 30V26m0 0c-7-2-9-10-4-14 8 0 10 8 4 14Z'/%3E%3C/svg%3E");
}

.schedule-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 0.85rem;
  padding: 0 0.35rem;
}

.schedule-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--schedule-ink);
}

.schedule-meta {
  display: grid;
  gap: 0.25rem;
}

.schedule-meta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--schedule-accent);
}

.schedule-meta span {
  border-bottom: 1.5px solid rgba(196, 90, 74, 0.55);
  padding: 0 0.2rem 0.05rem;
  color: var(--schedule-ink);
}

.schedule-nav {
  display: inline-flex;
  gap: 0.35rem;
}

.schedule-nav .btn {
  min-width: 2.3rem;
  padding: 0.35rem 0.65rem;
  color: var(--schedule-ink);
  border-color: rgba(42, 79, 155, 0.22);
}

.schedule-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3.4rem repeat(7, minmax(0, 1fr));
  border-top: 2px solid var(--schedule-line);
  border-left: 2px solid var(--schedule-line);
  background: rgba(255, 255, 255, 0.35);
}

.schedule-corner {
  border-right: 2px solid var(--schedule-line);
  border-bottom: 2px solid var(--schedule-line);
  background: rgba(255, 250, 242, 0.8);
}

.schedule-dayhead,
.schedule-time,
.schedule-slot {
  border-right: 2px solid var(--schedule-line);
  border-bottom: 2px solid var(--schedule-line);
}

.schedule-dayhead {
  display: grid;
  gap: 0.1rem;
  justify-items: center;
  padding: 0.55rem 0.3rem;
  background: rgba(255, 250, 242, 0.9);
  color: var(--schedule-ink);
  font: inherit;
  cursor: pointer;
}

.schedule-dayhead span {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.schedule-dayhead small {
  color: var(--schedule-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.schedule-dayhead.is-today,
.schedule-dayhead.is-selected,
.schedule-slot.is-selected {
  background: rgba(42, 79, 155, 0.08);
}

.schedule-time {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.25rem;
  color: var(--schedule-accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 250, 242, 0.88);
}

.schedule-slot {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 3.1rem;
  padding: 0.25rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.schedule-slot:hover,
.schedule-slot:focus-visible {
  background: rgba(42, 79, 155, 0.06);
  outline: none;
}

.schedule-chip {
  display: grid;
  gap: 0.05rem;
  padding: 0.28rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(42, 79, 155, 0.12);
  color: var(--schedule-ink);
  cursor: pointer;
}

.schedule-chip em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--schedule-accent);
}

.schedule-chip strong {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-chip.is-live {
  background: rgba(47, 111, 105, 0.16);
}

.schedule-chip.is-paid {
  box-shadow: inset 0 0 0 1px rgba(47, 111, 105, 0.35);
}

.schedule-chip.is-unpaid {
  box-shadow: inset 0 0 0 1px rgba(196, 90, 74, 0.35);
}

.booking-modal[hidden] {
  display: none !important;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(36, 48, 57, 0.42);
  cursor: pointer;
}

.booking-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: min(82vh, 40rem);
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.1rem;
  border: 1px solid rgba(42, 79, 155, 0.18);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #fffaf2, #fff7eb);
  box-shadow: 0 22px 48px rgba(36, 48, 57, 0.18);
}

.booking-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.booking-modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  font-style: italic;
  color: var(--schedule-ink, #2a4f9b);
  text-transform: capitalize;
}

.booking-modal-body {
  display: grid;
  gap: 0.7rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding-right: 0.15rem;
}

.booking-modal-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(42, 79, 155, 0.14);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.88);
}

.booking-modal-card h4 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--schedule-ink, #2a4f9b);
}

.booking-modal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.booking-modal-card-actions .admin-icon-btn {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.85rem;
}

.booking-modal-card-actions .admin-icon-btn.is-danger:hover,
.booking-modal-card-actions .admin-icon-btn.is-danger:focus-visible {
  background: rgba(196, 123, 116, 0.12);
  border-color: rgba(196, 123, 116, 0.35);
  color: #8b4540;
}

.booking-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(42, 79, 155, 0.12);
}

body.booking-modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .schedule-head {
    grid-template-columns: 1fr auto;
  }

  .schedule-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .schedule-grid {
    overflow-x: auto;
    min-width: 0;
  }
}

.schedule-day-strip {
  display: none;
}

.schedule-grid.is-day-view {
  grid-template-columns: 3.4rem minmax(0, 1fr);
}

@media (max-width: 760px) {
  .admin-body.is-bookings-page .page {
    overflow-x: hidden;
  }

  .admin-body.is-bookings-page .admin-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 0.75rem 2.5rem;
    overflow-x: hidden;
  }

  .admin-body.is-bookings-page #bookings.admin-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1.1rem 0.75rem 1.25rem;
    overflow-x: hidden;
  }

  .admin-body.is-bookings-page .booking-cal,
  .admin-body.is-bookings-page .schedule-board {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .schedule-board {
    padding: 0.75rem 0.55rem 0.9rem;
    overflow-x: hidden;
  }

  .schedule-deco {
    display: none;
  }

  .schedule-head {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
    padding: 0;
    min-width: 0;
  }

  .schedule-head h3 {
    font-size: 1.35rem;
    min-width: 0;
  }

  .schedule-meta {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .schedule-meta p {
    font-size: 0.95rem;
  }

  .schedule-day-strip {
    display: flex;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 0 0.7rem;
    padding: 0.15rem 0.1rem 0.35rem;
  }

  .schedule-day-strip::-webkit-scrollbar {
    display: none;
  }

  .schedule-day-pill {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    gap: 0.1rem;
    justify-items: center;
    min-width: 3rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(42, 79, 155, 0.18);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.78);
    color: var(--schedule-ink);
    font: inherit;
    cursor: pointer;
  }

  .schedule-day-pill span {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: lowercase;
  }

  .schedule-day-pill small {
    color: var(--schedule-accent);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .schedule-day-pill em {
    position: absolute;
    top: -0.2rem;
    right: -0.15rem;
    min-width: 1.1rem;
    padding: 0.05rem 0.28rem;
    border-radius: 999px;
    background: var(--schedule-accent);
    color: #fffaf2;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }

  .schedule-day-pill.is-today {
    border-color: rgba(42, 79, 155, 0.35);
  }

  .schedule-day-pill.is-selected {
    background: rgba(42, 79, 155, 0.12);
    border-color: rgba(42, 79, 155, 0.4);
    box-shadow: inset 0 0 0 1px rgba(42, 79, 155, 0.12);
  }

  .schedule-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .schedule-grid.is-day-view {
    grid-template-columns: 2.85rem minmax(0, 1fr);
  }

  .schedule-dayhead,
  .schedule-time,
  .schedule-slot {
    min-width: 0;
  }

  .schedule-dayhead span {
    font-size: 1rem;
  }

  .schedule-dayhead small {
    font-size: 0.85rem;
  }

  .schedule-time {
    min-height: 3.4rem;
    font-size: 0.85rem;
  }

  .schedule-slot {
    min-height: 3.4rem;
    padding: 0.35rem;
  }

  .schedule-chip {
    padding: 0.4rem 0.5rem;
  }

  .schedule-chip em {
    font-size: 0.78rem;
  }

  .schedule-chip strong {
    font-size: 0.9rem;
    white-space: normal;
  }

  .booking-toolbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: stretch;
  }

  .booking-toolbar .admin-search {
    flex: 1 1 auto;
    min-width: 0;
  }

  .admin-body.is-bookings-page .admin-list-header {
    min-width: 0;
  }
}

.admin-status {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-status-option {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(47, 111, 105, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.admin-status-option input {
  width: auto;
  margin: 0;
  accent-color: var(--teal);
}

.admin-status-option:has(input:checked) {
  border-color: var(--teal);
  background: rgba(47, 111, 105, 0.1);
  color: var(--teal-deep);
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rte-field {
  display: grid;
  gap: 0.45rem;
}

.rte-label {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.rte {
  border: 1px solid rgba(36, 48, 57, 0.14);
  border-radius: 0.95rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.rte:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 111, 105, 0.14);
}

.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid rgba(47, 111, 105, 0.12);
  background: linear-gradient(180deg, rgba(247, 245, 241, 0.95), rgba(236, 245, 242, 0.7));
}

.rte-toolbar button {
  min-height: 2.1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(47, 111, 105, 0.16);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.rte-toolbar button:hover,
.rte-toolbar button:focus-visible {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: #fff;
}

.rte-sep {
  width: 1px;
  align-self: stretch;
  margin: 0.2rem 0.15rem;
  background: rgba(47, 111, 105, 0.18);
}

.rte-editor {
  min-height: 240px;
  max-height: 520px;
  overflow: auto;
  padding: 1rem 1.05rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  outline: none;
}

.rte-editor.is-empty::before {
  content: attr(data-placeholder);
  color: rgba(36, 48, 57, 0.38);
  pointer-events: none;
}

.rte-editor h2,
.rte-editor h3 {
  margin: 0.4rem 0 0.7rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--teal-deep);
  line-height: 1.2;
}

.rte-editor h2 {
  font-size: 1.55rem;
}

.rte-editor h3 {
  font-size: 1.3rem;
}

.rte-editor p {
  margin: 0 0 0.75rem;
}

.rte-editor ul,
.rte-editor ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.rte-editor blockquote {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.85rem;
  border-left: 3px solid var(--rose);
  color: var(--ink-soft);
  font-style: italic;
  background: rgba(247, 245, 241, 0.7);
  border-radius: 0 0.55rem 0.55rem 0;
}

.rte-editor a {
  color: var(--teal-deep);
  text-decoration: underline;
}

.blog-embed {
  position: relative;
  width: 100%;
  max-width: min(40rem, 100%);
  aspect-ratio: 16 / 9;
  margin: 0.85rem 0 1.1rem;
  border-radius: 0.75rem;
  overflow: visible;
  background: transparent;
}

.blog-body .blog-embed {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
}

.blog-embed iframe,
.blog-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.75rem;
  background: #12211f;
}

.blog-embed video {
  object-fit: contain;
}

.rte-editor .blog-embed {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 62%),
    #12211f;
}

.rte-editor .blog-embed::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 3.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: #c4302b;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.rte-editor .blog-embed::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.95rem;
  border-color: transparent transparent transparent #fff;
  transform: translate(-35%, -50%);
  pointer-events: none;
}

.rte-editor .blog-embed.is-file::before {
  background: var(--teal);
}

.rte-editor .blog-embed:hover {
  outline: 1px solid rgba(47, 111, 105, 0.35);
  outline-offset: 2px;
}

.rte-embed-edges {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.rte-embed-edge {
  position: absolute;
  pointer-events: auto;
}

.rte-embed-edge.is-e {
  top: 12px;
  right: -3px;
  bottom: 12px;
  width: 10px;
  cursor: ew-resize;
}

.rte-embed-edge.is-s {
  left: 12px;
  right: 12px;
  bottom: -3px;
  height: 10px;
  cursor: ns-resize;
}

.rte-embed-edge.is-se {
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
}

.rte-editor.is-resizing-embed,
.rte-editor.is-resizing-embed iframe {
  user-select: none;
  pointer-events: none;
}

.rte-editor img,
.blog-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0.55rem 0 0.85rem;
}

.blog-body img {
  max-width: 100% !important;
  height: auto !important;
  cursor: zoom-in;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: 1fr auto;
  background: rgba(18, 26, 32, 0.92);
}

body:has(.photo-viewer:not([hidden])) .nav-toggle {
  visibility: hidden;
  pointer-events: none;
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer-stage {
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: grab;
}

.photo-viewer-stage.is-dragging {
  cursor: grabbing;
}

.photo-viewer-stage img {
  max-width: min(92vw, 100%);
  max-height: min(82vh, 100%);
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
}

.photo-viewer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem 1.15rem;
}

.photo-viewer-bar button,
.photo-viewer-bar a {
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f7f3ee;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.photo-viewer-bar button:hover,
.photo-viewer-bar a:hover,
.photo-viewer-bar button:focus-visible,
.photo-viewer-bar a:focus-visible {
  background: var(--teal);
  outline: none;
}

.rte-image {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0.55rem 0 0.85rem;
  vertical-align: top;
}

.rte-image img {
  margin: 0;
  display: block;
}

.rte-image-handle {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  z-index: 2;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.2rem;
  border: 2px solid #fff;
  background: var(--teal);
  box-shadow: 0 2px 8px rgba(36, 48, 57, 0.25);
  cursor: nwse-resize;
}

.rte-media-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 2;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 35, 48, 0.82);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.rte-media-remove:hover,
.rte-media-remove:focus-visible {
  background: #9a4444;
  outline: none;
}

.blog-body h2,
.blog-body h3 {
  margin: 0.35rem 0 0.7rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--teal-deep);
  line-height: 1.2;
}

.blog-body h2 {
  font-size: 1.55rem;
}

.blog-body h3 {
  font-size: 1.3rem;
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.blog-body blockquote {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.85rem;
  border-left: 3px solid var(--rose);
  color: var(--ink-soft);
  font-style: italic;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 0 0.55rem 0.55rem 0;
}

.blog-body a {
  color: var(--teal-deep);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.admin-list-header h2 {
  margin: 0;
}

.admin-list-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 0.7rem;
  border: 1px solid rgba(47, 111, 105, 0.2);
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff9f2;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 111, 105, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.admin-add-btn:hover,
.admin-add-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(47, 111, 105, 0.24);
}

.admin-search {
  flex: 1 1 14rem;
  max-width: 18rem;
  margin: 0;
}

.admin-search input {
  width: 100%;
  border: 1px solid rgba(36, 48, 57, 0.14);
  border-radius: 0.85rem;
  padding: 0.7rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.admin-search input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 111, 105, 0.14);
}

.admin-list {
  display: grid;
  gap: 0.9rem;
}

.admin-post {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(247, 245, 241, 0.7);
  border: 1px solid rgba(47, 111, 105, 0.08);
}

.admin-post h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: var(--teal-deep);
}

.admin-post p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.55;
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.65rem !important;
  font-size: 0.9rem;
}

.admin-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.admin-badge.is-live {
  background: rgba(47, 111, 105, 0.12);
  color: var(--teal-deep);
}

.admin-badge.is-draft {
  background: rgba(196, 123, 116, 0.14);
  color: #8b4540;
}

.admin-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

@media (min-width: 760px) {
  .admin-post {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.14s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.42s; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 900px) {
  .values,
  .lesson-grid,
  .contact-main {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }

  .hero-visual {
    height: min(42vh, 360px);
  }

  .hero-content {
    padding-bottom: calc(min(42vh, 360px) + 1.25rem);
  }

  :root {
    --nav-width: 0px;
  }

  .page {
    margin-left: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    transform: translateX(-105%);
    transition: transform 0.35s var(--ease);
    box-shadow: 12px 0 40px rgba(36, 48, 57, 0.14);
    width: min(18rem, 88vw);
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  html.nav-open,
  body.nav-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  body.nav-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
  }

  body.nav-open .nav-toggle {
    visibility: hidden;
    pointer-events: none;
  }

  .nav-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.85rem;
    background: rgba(47, 111, 105, 0.08);
    cursor: pointer;
    padding: 0;
    touch-action: manipulation;
  }

  .nav-close span {
    position: absolute;
    width: 1.05rem;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  .nav-close span:first-child {
    transform: rotate(45deg);
  }

  .nav-close span:last-child {
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    padding-top: 3.5rem;
  }

  .site-nav .nav-brand {
    padding-right: 2.5rem;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(36, 48, 57, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-content {
    padding-top: 4.8rem;
  }

  .float-note.n3 {
    display: none;
  }

  .shell {
    width: min(1080px, calc(100% - 1.6rem));
  }

  .blog-page {
    padding: 4.6rem 0 1.6rem;
  }

  .blog-page .eyebrow {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    height: 2.85rem;
    margin: 0;
    padding: 0 0.15rem;
    font-size: 1.25rem;
    line-height: 1;
  }

  body.nav-open .blog-page .eyebrow,
  body:has(.photo-viewer:not([hidden])) .blog-page .eyebrow {
    visibility: hidden;
    pointer-events: none;
  }

    .blog-page.is-article {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .blog-atmosphere::after {
    font-size: 7.5rem;
    right: 0.4rem;
    bottom: 0;
  }

  .blog-page.is-article .blog-list {
    overflow: visible;
    padding-right: 0;
    flex: 0 1 auto;
  }

  .blog-article h2 {
    font-size: clamp(1.5rem, 7.4vw, 2.05rem);
  }

  .blog-article time {
    font-size: 0.86rem;
  }

  .blog-toolbar {
    max-width: none;
  }

  .blog-view {
    display: none;
  }

  .blog-list,
  .blog-list.is-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    align-items: start;
    gap: 1.25rem;
    max-width: 46rem;
  }

  .blog-card {
    height: auto;
    min-height: min-content;
    max-height: none;
    align-self: start;
    overflow: visible;
  }

  .blog-card h3 {
    font-size: clamp(1.3rem, 5.4vw, 1.65rem);
    line-height: 1.4;
  }

  .photo-viewer-bar {
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
  }

  .photo-viewer-bar button,
  .photo-viewer-bar a {
    min-height: 2.75rem;
    padding: 0.55rem 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .float-note,
  .hero-glow,
  .path-orb,
  .btn,
  .reveal-on-scroll,
  .key {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .key.is-pressed,
  .key:active {
    filter: brightness(0.9);
  }
}
