/* Health & Harmony — Cycle Reset companion
   Tokens from healthnharmony.net (Wix theme) */

:root {
  --cream: #F9F2F8;
  --blush: #FFE4EC;
  --peach: #F9C5B4;
  --peach-deep: #F3A78F;
  --mauve: #C9B7C3;
  --mauve-deep: #938B9B;
  --navy: #263149;
  --navy-soft: rgba(38, 49, 73, 0.72);
  --line: rgba(38, 49, 73, 0.1);
  --card: #FFFBFD;
  --white: #FFFFFF;
  --felt-1: #FFE4EC;
  --felt-2: #F9C5B4;
  --felt-3: #C9B7C3;
  --felt-4: #938B9B;
  --felt-5: #263149;
  --empty: rgba(38, 49, 73, 0.055);
  --shadow: 0 10px 28px -18px rgba(38, 49, 73, 0.28), 0 2px 8px rgba(38, 49, 73, 0.05);
  --radius: 18px;
  --header-h: 56px;
  --tab-h: 64px;
  --font-display: "League Spartan", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-nova: "Playfair Display", Georgia, "Times New Roman", serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --season: #5C3D5E;
  --season-soft: rgba(92, 61, 94, 0.14);
  --page-pad-x: clamp(14px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  max-width: 100%;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body { padding: env(safe-area-inset-top) 0 0; }

button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

#app { min-height: 100dvh; width: 100%; max-width: 100%; min-width: 0; overflow-x: hidden; }

/* ── Shell ─────────────────────────────────────────────── */

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 16px;
  background: rgba(249, 242, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: max(var(--page-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-pad-x), env(safe-area-inset-right, 0px));
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.brand span {
  font-size: 11px;
  color: var(--mauve-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.who {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--blush);
  max-width: 46%;
  min-width: 0;
  flex-shrink: 0;
}

.who span:last-child {
  min-width: 0;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blush);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.avatar.photo-maya img { object-position: 70% 42%; }
.avatar.photo-nurse img { object-position: center; }
.avatar.photo-priya img { object-position: center 28%; }

.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.avatar.md { width: 40px; height: 40px; font-size: 14px; }
.avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.avatar.photo { background: var(--peach); }
.avatar.lead { background: var(--mauve); color: var(--navy); }
.avatar.member { background: var(--peach); }

.who small {
  display: block;
  font-size: 10px;
  color: var(--mauve-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.who b { font-size: 13px; font-weight: 500; }

.main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  padding: 20px max(var(--page-pad-x), env(safe-area-inset-right, 0px)) calc(var(--tab-h) + var(--safe-b) + 16px) max(var(--page-pad-x), env(safe-area-inset-left, 0px));
}

.main.wide,
.main.sky-main { max-width: 100%; }

.sidenav { display: none; }
.topnav { display: none; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  width: 100%;
  max-width: 100%;
  padding: 4px 6px calc(6px + var(--safe-b));
  background: rgba(255, 251, 253, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.tab {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  color: var(--mauve-deep);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

.tabbar .tab { width: 100%; }

.tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--navy); background: var(--blush); }

/* ── Enter ─────────────────────────────────────────────── */

.enter {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: max(12px, env(safe-area-inset-top, 0px)) 18px max(12px, env(safe-area-inset-bottom, 0px));
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Site gate (passphrase) ────────────────────────────── */

.gate-body {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 228, 236, 0.95), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(249, 197, 180, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(201, 183, 195, 0.28), transparent 45%),
    linear-gradient(165deg, #F9F2F8 0%, #F4E8F0 48%, #F9F2F8 100%);
}

.gate {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top, 0px)) 22px max(28px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow: hidden;
}

.gate-glow {
  position: absolute;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 236, 0.55), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: gate-breathe 8s ease-in-out infinite;
}

@keyframes gate-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

.gate-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.gate-panel .enter-logo {
  margin-bottom: 22px;
}

.gate-mark {
  display: block;
  width: clamp(72px, 18vw, 104px);
  height: clamp(72px, 18vw, 104px);
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 42%;
  filter: drop-shadow(0 10px 24px rgba(120, 40, 55, 0.12));
}

.gate-panel .enter-logo strong {
  font-size: clamp(34px, 10vw, 52px);
}

.gate-panel h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 7vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 10px;
}

.gate-panel .lede {
  color: var(--navy-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 auto 28px;
  max-width: 28rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-align: left;
}

.gate-form.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.gate-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  font-weight: 500;
}

.gate-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 253, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gate-input:focus {
  border-color: var(--peach-deep);
  box-shadow: 0 0 0 3px rgba(243, 167, 143, 0.25);
}

.gate-input::placeholder {
  color: var(--mauve);
  letter-spacing: 0.2em;
}

.gate-err {
  margin: 0;
  font-size: 13px;
  color: #8B3A4A;
  text-align: center;
}

.gate-form .btn {
  margin-top: 6px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.gate-form .btn:hover {
  transform: translateY(-1px);
}

.enter-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 10px;
  flex-shrink: 0;
}

.enter-logo strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 9vw, 44px);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--navy);
}

.enter-logo span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(10px, 2.8vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mauve-deep);
}

.enter h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 5.5vw, 28px);
  line-height: 1.15;
  margin: 0 0 6px;
  text-align: center;
  flex-shrink: 0;
}
.enter .lede {
  color: var(--navy-soft);
  margin: 0 auto 12px;
  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 1.35;
  overflow-wrap: break-word;
  text-align: center;
  max-width: 34em;
  flex-shrink: 0;
}

.role-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  flex: 0 0 auto;
}

.role-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--blush);
  box-shadow: var(--shadow);
}

.role-tile-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blush);
}

.role-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.role-tile[data-enter="maya"] img { object-position: 72% 62%; }
.role-tile[data-enter="nurse"] img { object-position: center 46%; }
.role-tile[data-enter="priya"] img { object-position: center 22%; }

.role-tile-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(38, 49, 73, 0.78));
  color: var(--cream);
  text-align: left;
}

.role-tile-copy b {
  display: block;
  font-family: var(--font-nova);
  font-size: clamp(16px, 4.2vw, 22px);
  font-weight: 400;
  font-style: italic;
}

.role-tile-copy span {
  display: block;
  margin-top: 2px;
  font-size: clamp(11px, 2.8vw, 13px);
  color: rgba(249, 242, 248, 0.88);
}

.role-tile:hover { border-color: var(--peach-deep); }
.role-tile:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.enter .quiet {
  margin-top: 8px;
  flex-shrink: 0;
  align-self: center;
  font-size: 11px;
  color: var(--mauve-deep);
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px), (orientation: landscape) and (min-width: 500px) {
  .enter {
    max-width: 1120px;
    padding: 24px;
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow: visible;
  }
  .enter-logo { margin-bottom: 18px; }
  .enter-logo strong { font-size: clamp(36px, 5vw, 56px); }
  .enter h1 {
    font-size: clamp(28px, 3.5vw, 36px);
    margin-bottom: 10px;
  }
  .enter .lede {
    margin-bottom: 20px;
    font-size: 15px;
    max-width: 42rem;
  }
  .role-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: clamp(12px, 1.6vw, 20px);
    flex: 0 0 auto;
  }
  .role-tile {
    height: auto;
    border-radius: 22px;
  }
  .role-tile-copy { padding: 22px 14px 12px; }
  .enter .quiet { margin-top: 14px; font-size: 12px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .enter {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    padding: 10px 16px;
    overflow: hidden;
  }
  .enter-logo { margin-bottom: 4px; }
  .enter-logo strong { font-size: 22px; }
  .enter-logo span { font-size: 9px; }
  .enter h1 { font-size: 18px; margin-bottom: 2px; }
  .enter .lede { margin-bottom: 8px; font-size: 12px; }
  .role-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 0;
  }
  .role-tile {
    height: auto;
  }
  .role-tile-copy { padding: 14px 10px 8px; }
  .role-tile-copy b { font-size: 15px; }
  .role-tile-copy span { font-size: 10px; }
}

.quiet {
  margin-top: 14px;
  font-size: 12px;
  color: var(--mauve-deep);
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Cards & type ──────────────────────────────────────── */

.kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin-bottom: 6px;
}

.page-title {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--navy);
}
.sub { color: var(--navy-soft); font-size: 15px; margin-bottom: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.card p { overflow-wrap: break-word; }
.card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.card.season-edge { border-left: 3px solid var(--season); }
.card p + p { margin-top: 8px; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blush);
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
}
.chip.season { background: var(--season-soft); color: var(--season); }
.chip .moon-ico { width: 14px; height: 14px; }

.chip.mute { background: rgba(201, 183, 195, 0.35); color: var(--navy-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  width: 100%;
}

.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn.soft { background: var(--blush); color: var(--navy); }
.btn.sm { min-height: 38px; width: auto; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: default; }

.disclaimer {
  margin-top: 22px;
  font-size: 12px;
  color: var(--mauve-deep);
  line-height: 1.4;
}

.split { display: grid; gap: 10px; }
@media (min-width: 560px) {
  .split-2 { grid-template-columns: 1fr 1fr; }
}

/* ── Check-in sliders ──────────────────────────────────── */

.metric { margin: 18px 0; }
.metric label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.metric label span { color: var(--mauve-deep); font-weight: 500; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--felt-1), var(--felt-3), var(--felt-5));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow);
}

.ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mauve-deep);
  margin-top: 6px;
}

.note {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 12px 14px;
  resize: none;
  min-height: 72px;
}

.seg {
  display: flex;
  background: var(--blush);
  border-radius: 999px;
  padding: 3px;
  margin: 8px 0 16px;
}

.seg button {
  flex: 1;
  min-height: 36px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-soft);
}

.seg button.on { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--mauve-deep);
}

/* ── Bucket grids (GEOWELL-7 structure, H&H palette) ───── */

.grain-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.grain-bar .period {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blush);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--mauve-deep);
  margin: 10px 0 4px;
}

.legend i {
  display: inline-block;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--felt-1), var(--felt-3), var(--felt-5));
}

.hm-day {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.hm-day-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.hm-day-band {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  font-weight: 500;
}
.hm-day-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}
.hm-hcell-day {
  min-height: 48px;
  aspect-ratio: 1;
  border-radius: 8px;
}

@media (max-width: 560px) {
  .hm-day-row {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: stretch;
  }
}

.hm-hcell {
  position: relative;
  aspect-ratio: 1 / 1.2;
  border-radius: 6px;
  background: var(--empty);
  border: 1px solid transparent;
  min-height: 28px;
}

.hm-hcell.has { background: var(--cell-color, var(--blush)); }
.hm-hcell.dark { color: var(--cream); }
.hm-hcell-corner {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 8px;
  opacity: 0.7;
  font-weight: 600;
}
.hm-hcell-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
}

.hm-week-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -6px;
  padding: 0 6px 8px;
}

.hm-week-grid { min-width: 680px; }

.hm-week-header, .hm-week-row {
  display: grid;
  grid-template-columns: 28px repeat(24, minmax(18px, 1fr));
  gap: 2px;
  align-items: center;
  margin-bottom: 2px;
}

.hm-week-header span {
  font-size: 8px;
  color: var(--mauve-deep);
  text-align: center;
}

.hm-week-day-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--mauve-deep);
}

.hm-hcell-week { aspect-ratio: 1; min-height: 16px; border-radius: 3px; }

.hm-month-header, .hm-month-body {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.hm-month-header span {
  font-size: 10px;
  color: var(--mauve-deep);
  text-align: center;
  padding-bottom: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
}
.hm-hcell-month {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: auto;
  border-radius: 8px;
  overflow: hidden;
}
.hm-hcell-blank { background: transparent; border: 0; }
.hm-empty { color: var(--mauve-deep); font-size: 14px; padding: 24px 8px; text-align: center; }

.main:has(.chat) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
}
.main:has(.chat) > * {
  min-width: 0;
  max-width: 100%;
}

/* ── Messages (WhatsApp layout, HH colours) ────────────── */

.chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.chat .page-title { margin-bottom: 4px; }
.chat .sub { margin-bottom: 8px; }

.chat-log {
  display: block;
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 4px 10px 72px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-day {
  display: table;
  margin: 10px auto 8px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  color: var(--navy-soft);
  box-shadow: var(--shadow);
}

.wa-row {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: right;
  padding: 1px 4px;
}
.wa-row.them { text-align: left; }
.wa-row.tight { padding-top: 0; }

.wa-bubble {
  position: relative;
  display: inline-block;
  text-align: left;
  vertical-align: bottom;
  min-width: 0;
  max-width: min(78%, 32rem);
  width: fit-content;
  padding: 6px 8px 4px 10px;
  border-radius: 8px 8px 8px 2px;
  font-size: 14.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 1px 0.5px rgba(38, 49, 73, 0.08);
}
.wa-row.me .wa-bubble {
  background: var(--blush);
  color: var(--navy);
  border-radius: 8px 8px 2px 8px;
}
.wa-row.them .wa-bubble {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}
.wa-row.tail.them .wa-bubble::after {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-color: var(--white);
  border-bottom-color: var(--white);
}
.wa-row.tail.me .wa-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 0;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-color: var(--blush);
  border-bottom-color: var(--blush);
}
.wa-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--navy-soft);
  line-height: 1;
}
.wa-row.me .wa-meta { color: rgba(38, 49, 73, 0.55); }
.wa-ticks { font-size: 11px; letter-spacing: -0.08em; opacity: 0.7; }

.wa-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  max-width: 100%;
}
.wa-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
}
.wa-play svg { width: 14px; height: 14px; fill: currentColor; }
.wa-play.is-on { background: var(--peach-deep); color: var(--navy); }
.wa-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  flex: 1;
}
.wa-wave i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: var(--navy);
  opacity: 0.45;
}
.wa-dur { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--navy-soft); }

.wa-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  gap: 8px;
  position: fixed;
  left: 0;
  bottom: calc(var(--tab-h) + var(--safe-b));
  z-index: 25;
  width: 100vw;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--cream);
  padding: 8px max(var(--page-pad-x), env(safe-area-inset-right, 0px)) 10px max(var(--page-pad-x), env(safe-area-inset-left, 0px));
}
.wa-composer textarea {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  max-height: 120px;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  background: var(--white);
  resize: none;
}
.wa-rec-bar {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  min-width: 0;
  padding: 0 14px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--navy);
}
.wa-icon {
  grid-column: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--cream);
}
.wa-icon svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.wa-icon.ghost {
  background: var(--blush);
  color: var(--navy);
}
.wa-icon.is-rec {
  background: #8B3A4A;
  color: var(--cream);
  animation: wa-pulse 1.1s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.wa-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c45c6a;
  flex-shrink: 0;
}
.wa-rec-bar[hidden], .wa-composer.is-rec textarea, .wa-composer.is-rec .wa-send { display: none; }
.wa-composer.is-rec .wa-rec-bar { display: flex; }
.wa-composer:not(.is-rec):not(.has-text) .wa-send { display: none; }
.wa-composer.has-text .wa-icon[data-voice-rec] { display: none; }
.wa-cancel {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 2px;
}
.wa-bubble.booking {
  background: var(--season-soft);
  border: 1px solid var(--season);
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
}

.bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
}

.bubble.them {
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.bubble.me {
  background: var(--navy);
  color: var(--cream);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.bubble.voice { font-style: italic; opacity: 0.92; }
.bubble time {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
}

.composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  position: sticky;
  bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  background: var(--cream);
  padding-top: 8px;
}

.composer textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--white);
  resize: none;
}

.inbox-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.inbox-item p { font-size: 13px; color: var(--navy-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 0; max-width: 100%; }
.inbox-item:last-child { border-bottom: 0; }
.inbox-item.on { background: var(--blush); }
.inbox-item:hover { background: rgba(255, 228, 236, 0.55); }
.inbox-item.on:hover { background: var(--blush); }
.inbox-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.inbox-row b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.inbox-item .n-label {
  flex-shrink: 0;
  margin-top: 0;
  font-size: 11px;
  white-space: nowrap;
  color: var(--mauve-deep);
}
.inbox-copy { min-width: 0; overflow: hidden; }
.unread { width: 8px; height: 8px; border-radius: 50%; background: var(--peach-deep); flex-shrink: 0; margin-top: 10px; }

.desk-inbox .cycle-card { display: none; }
.desk-inbox { min-width: 0; width: 100%; max-width: 100%; }
.desk-inbox-list {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 16px 0 8px;
}
.inbox-list { padding-top: 6px; padding-bottom: 6px; max-width: 100%; min-width: 0; }
.desk-inbox-list .kicker,
.desk-inbox-list .page-title,
.desk-inbox-list .sub {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.desk-inbox-list .page-title { margin-bottom: 4px; }
.desk-inbox-pane { min-width: 0; min-height: 0; }
.desk-empty {
  min-height: 40vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  color: var(--navy-soft);
}
.desk-empty p { font-family: var(--font-heading); font-size: 22px; color: var(--navy); margin: 0 0 6px; }
.desk-empty span { font-size: 14px; max-width: 28ch; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(8px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 251, 253, 0.94);
}
.chat-head-copy { min-width: 0; flex: 1; }
.chat-head-copy b { display: block; font-size: 16px; font-weight: 500; line-height: 1.2; }
.chat-head-copy small {
  display: block;
  font-size: 12px;
  color: var(--navy-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-back {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.main:has(.desk-inbox) {
  padding: 0 0 calc(var(--tab-h) + var(--safe-b));
}

@media (max-width: 899px) {
  .desk-inbox.is-open .desk-inbox-list { display: none; }
  .desk-inbox:not(.is-open) .desk-inbox-pane { display: none; }
  .main:has(.desk-inbox.is-open) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
  }
  .main:has(.desk-inbox.is-open) .desk-inbox {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .desk-inbox.is-open .desk-inbox-pane {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .desk-inbox.is-open .chat { flex: 1; min-height: 0; }
}

/* ── Circle feed ───────────────────────────────────────── */

.post { padding-bottom: 4px; }
.post .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mauve-deep);
  margin-bottom: 8px;
}
.post .meta b { font-weight: 500; color: var(--navy); }
.replies { margin: 10px 0 0 4px; padding-left: 10px; border-left: 2px solid var(--blush); display: flex; flex-direction: column; gap: 10px; }
.reply { font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.reply b { font-weight: 600; margin-right: 6px; }

/* ── Advice ────────────────────────────────────────────── */

.type,
.advice-card .type {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin-bottom: 4px;
}

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--white);
}

.hidden-tag { opacity: 0.5; }

/* ── Lead ──────────────────────────────────────────────── */

.insight {
  font-size: 13.5px;
  color: var(--navy-soft);
  margin-top: 8px;
}

.dept-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dept-head h3 { font-size: 18px; }
.n-label { font-size: 12px; color: var(--mauve-deep); }

.privacy-note {
  font-size: 12px;
  color: var(--mauve-deep);
  margin-bottom: 16px;
}

a.btn { text-decoration: none; color: var(--cream); }
a.btn.ghost { color: var(--navy); }

.quiet-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--navy-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.moon-ico {
  width: 12px;
  height: 12px;
  display: block;
  color: var(--navy);
  flex-shrink: 0;
}
.moon-ico.lg { width: 16px; height: 16px; }
.moon-disc .md-dark { fill: var(--navy); }
.moon-disc .md-lit { fill: #F4EDE6; }
.moon-disc .md-rim {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.2;
}
.chip .moon-disc { width: 14px; height: 14px; }

.moon-cal-cell {
  min-height: 58px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 2px 6px;
  background: var(--season-soft, var(--empty));
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  overflow: hidden;
  box-sizing: border-box;
}
.moon-cal-cell.blank { background: transparent; border: 0; min-height: 0; }
.moon-cal-cell.is-today {
  border: 2px solid var(--navy);
  background: var(--white);
}
.moon-cal-cell.logged { box-shadow: inset 0 -3px 0 var(--season, var(--navy)); }
.moon-cal-cell.bleed {
  background: #C45C6A;
  border-color: #C45C6A;
}
.moon-cal-cell.bleed .d { color: var(--cream); }
.moon-cal-cell.bleed .moon-disc .md-dark { fill: #4A1C28; }
.moon-cal-cell.bleed .moon-disc .md-lit { fill: #FFE4EC; }
.moon-cal-cell.bleed .moon-disc .md-rim { stroke: #FFE4EC; }
.moon-cal-cell.pred {
  background: repeating-linear-gradient(
    -45deg,
    rgba(243, 167, 143, 0.88),
    rgba(243, 167, 143, 0.88) 4px,
    rgba(243, 167, 143, 0.32) 4px,
    rgba(243, 167, 143, 0.32) 8px
  );
  box-shadow: inset 0 0 0 1.5px #E08970;
}
.moon-cal-cell.pred.is-today,
.moon-cal-cell.bleed.is-today {
  border-color: var(--navy);
}
.moon-cal-cell .d {
  font-size: 11px;
  color: var(--navy-soft);
  font-weight: 500;
  line-height: 1;
}
.moon-cal-cell.is-today .d { color: var(--navy); font-weight: 700; }
.moon-cal-cell .moon-ico {
  width: 16px;
  height: 16px;
  max-width: 100%;
}
.moon-cal-legend { margin: 0 0 12px; }

.sky-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.sky-thumb {
  margin: 0;
  min-width: 0;
  text-align: center;
}
.sky-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #05060c;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sky-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.sky-frame.is-new {
  position: relative;
  background-color: #070b18;
}
.sky-frame.is-new::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 85% 60% at 50% 115%, rgba(72, 86, 150, 0.42), transparent 68%),
    radial-gradient(ellipse 40% 30% at 18% 8%, rgba(90, 100, 160, 0.18), transparent),
    radial-gradient(1.2px 1.2px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 22% 68%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.4px 1.4px at 31% 14%, #fff8e8, transparent),
    radial-gradient(1px 1px at 38% 46%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.6px 1.6px at 47% 78%, #fff, transparent),
    radial-gradient(1px 1px at 54% 18%, rgba(255, 248, 230, 0.9), transparent),
    radial-gradient(1px 1px at 61% 58%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.3px 1.3px at 69% 32%, #fff, transparent),
    radial-gradient(1px 1px at 76% 72%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 84% 16%, #fff8e8, transparent),
    radial-gradient(1px 1px at 91% 48%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 8% 88%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 43% 8%, #fff, transparent),
    radial-gradient(1px 1px at 95% 86%, rgba(255, 248, 230, 0.75), transparent),
    radial-gradient(1px 1px at 16% 42%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.4px 1.4px at 73% 91%, #fff, transparent);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.sky-frame.is-new img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  /* Disc only — starfield stays behind and in the corners */
  clip-path: circle(46% at 50% 50%);
  filter: brightness(1.35) contrast(1.08);
}
.sky-label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 242, 248, 0.7);
  font-weight: 500;
}

.sky-so {
  text-align: left;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(249, 242, 248, 0.14);
}
.sky-so h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: var(--cream);
  margin: 4px 0 10px;
}
.sky-together {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(249, 242, 248, 0.88);
  max-width: 40em;
  margin-bottom: 18px;
}
.sky-legend {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}
@media (min-width: 720px) {
  .sky-legend { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
}
.sky-legend-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(249, 242, 248, 0.14);
  border-radius: 12px;
}
.sky-legend-item b {
  font-weight: 500;
  font-size: 13px;
  color: var(--cream);
}
.sky-legend-item span {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(249, 242, 248, 0.68);
}
.sky-meters {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 720px) {
  .sky-meters { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
}
.sky-meter {
  padding: 12px 14px;
  border: 1px solid rgba(249, 242, 248, 0.14);
  border-radius: 14px;
}
.sky-meter b {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--cream);
  margin: 4px 0 6px;
}
.sky-meter p {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(249, 242, 248, 0.68);
}
.sky-meter .sky-level {
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 4px;
}
.sky-meter[data-sky-level="warning"] .sky-level { color: #E4C57A; }
.sky-meter[data-sky-level="alert"] .sky-level { color: #F3A78F; }
.moon-cal-cell .moon-emoji {
  font-size: 13px;
  line-height: 1;
}
.sky-why-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .sky-why-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.sky-why-grid p { color: rgba(249, 242, 248, 0.8); font-size: 15px; }
.sky-do {
  margin-top: 8px;
  color: var(--blush) !important;
}
.sky-so[data-sky-risk="watch"] h2 { color: #E4C57A; }
.sky-so[data-sky-risk="active"] h2 { color: #F3A78F; }
.sky-so[data-sky-risk="watch"] .sky-do { color: #E4C57A !important; }
.sky-so[data-sky-risk="active"] .sky-do { color: #F3A78F !important; }

html.sky-night,
body.sky-night {
  background: #000;
  color: var(--cream);
}
.shell.sky-night {
  background: #000;
  color: var(--cream);
}
.shell.sky-night .topbar {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(249, 242, 248, 0.14);
  color: var(--cream);
}
.shell.sky-night .brand span,
.shell.sky-night .who small,
.shell.sky-night .kicker,
.shell.sky-night .sub,
.shell.sky-night .disclaimer {
  color: rgba(249, 242, 248, 0.7);
}
.shell.sky-night .page-title {
  color: var(--cream);
}
.shell.sky-night .who {
  background: rgba(255, 228, 236, 0.18);
  color: var(--cream);
}
.shell.sky-night .who small { color: rgba(249, 242, 248, 0.65); }
.shell.sky-night .tabbar {
  background: rgba(0, 0, 0, 0.94);
  border-top-color: rgba(249, 242, 248, 0.14);
}
.shell.sky-night .tab { color: rgba(249, 242, 248, 0.5); }
.shell.sky-night .tab.on {
  color: var(--cream);
  background: rgba(255, 228, 236, 0.28);
}
.shell.sky-night .brand strong { color: var(--cream); }
.shell.sky-night .composer,
.shell.sky-night .wa-composer {
  background: #000;
}
.shell.sky-night .composer textarea,
.shell.sky-night .wa-composer textarea,
.shell.sky-night .wa-rec-bar {
  background: #111;
  color: var(--cream);
  border-color: rgba(249, 242, 248, 0.22);
}
.shell.sky-night .chat-day {
  background: #111;
  color: var(--cream);
  border-color: rgba(249, 242, 248, 0.22);
}
.shell.sky-night .wa-row.them .wa-bubble {
  background: #161616;
  color: var(--cream);
  border-color: rgba(249, 242, 248, 0.18);
}
.shell.sky-night .seg {
  background: rgba(255, 228, 236, 0.12);
}
.shell.sky-night .seg button { color: rgba(249, 242, 248, 0.55); }
.shell.sky-night .seg button.on {
  background: var(--blush);
  color: var(--navy);
  box-shadow: none;
}
.main.sky-main { max-width: 980px; }

.check-stage {
  --load: #C9B7C3;
  --load-core: #FFE4EC;
  --load-hot: #F9C5B4;
  --load-speed: 7.2s;
  --load-amp: 0.045;
  --load-spin: 18s;
}
.check-stage[data-load="low"] {
  --load: #C9B7C3;
  --load-core: #FFE4EC;
  --load-hot: #F9C5B4;
  --load-speed: 7.2s;
  --load-amp: 0.045;
  --load-spin: 18s;
}
.check-stage[data-load="moderate"] {
  --load: #C4A15A;
  --load-core: #E4C57A;
  --load-hot: #F3A78F;
  --load-speed: 4.4s;
  --load-amp: 0.07;
  --load-spin: 11s;
}
.check-stage[data-load="high"] {
  --load: #5C3D5E;
  --load-core: #8B5A8E;
  --load-hot: #C4A15A;
  --load-speed: 2.6s;
  --load-amp: 0.1;
  --load-spin: 7s;
}
.check-stage[data-load="very-high"] {
  --load: #6B3030;
  --load-core: #A34448;
  --load-hot: #F3A78F;
  --load-speed: 1.7s;
  --load-amp: 0.14;
  --load-spin: 4.2s;
}

.check-stage .check-group h3 { color: var(--load); }
.check-stage .check-list label { border-bottom-color: var(--line); }
.check-stage .check-list input[type="checkbox"] { border-color: var(--load); }
.check-stage .check-list input[type="checkbox"]:checked {
  background: var(--load);
  box-shadow: inset 0 0 0 3px var(--cream);
}
.check-stage .btn:not(.ghost) { background: var(--load); color: var(--cream); }
.check-stage[data-load="low"] .btn:not(.ghost),
.check-stage[data-load="moderate"] .btn:not(.ghost) { color: var(--navy); }

.load-live,
.load-result {
  text-align: center;
  margin: 8px 0 22px;
}
.load-count {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--load);
  margin-top: 8px;
}
.load-hint {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--load);
  margin-top: 4px;
}
.load-title {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--load);
  margin-top: 4px;
}
.load-title { font-size: 26px; }
.load-hint { font-size: 15px; }
.score-band {
  overflow-wrap: break-word;
  hyphens: manual;
}
.load-result .score-band {
  max-width: 36em;
  margin: 8px auto 0;
  padding: 0 8px;
}
.load-result .quiet-link { color: var(--load); }

.stress-orb {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 4px auto 0;
}
.stress-orb.lg {
  width: 200px;
  height: 200px;
  margin: 6px auto 10px;
}
.stress-orb span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.orb-haze {
  inset: -22%;
  background: radial-gradient(circle, var(--load-core) 0%, transparent 68%);
  filter: blur(18px);
  opacity: 0.9;
  animation: orb-breathe var(--load-speed) ease-in-out infinite;
}
.orb-swirl {
  background: conic-gradient(from 120deg, var(--load-core), var(--load-hot), var(--load), var(--load-core));
  filter: blur(10px);
  opacity: 0.72;
  animation: orb-spin var(--load-spin) linear infinite;
}
.orb-core {
  inset: 16%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0%, transparent 32%),
    radial-gradient(circle at 50% 58%, var(--load-core), var(--load) 72%);
  box-shadow: 0 0 36px var(--load-core);
  animation: orb-breathe var(--load-speed) ease-in-out infinite;
}
.orb-sheen {
  inset: 20%;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.55), transparent 40%);
  mix-blend-mode: screen;
  animation: orb-drift calc(var(--load-speed) * 1.3) ease-in-out infinite;
}
.check-stage[data-load="very-high"] .orb-core {
  animation:
    orb-breathe var(--load-speed) ease-in-out infinite,
    orb-flicker 0.9s ease-in-out infinite;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(calc(1 + var(--load-amp))); }
}
@keyframes orb-spin {
  to { transform: rotate(360deg); }
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.85; }
  50% { transform: translate(4%, 6%); opacity: 1; }
}
@keyframes orb-flicker {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(1.18); }
  55% { filter: brightness(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .stress-orb span { animation: none; }
}

.cycle-card h3 { margin-bottom: 6px; }
.cycle-card h4 { margin: 14px 0 8px; font-size: 16px; }
.cycle-status { font-weight: 500; color: var(--navy); margin: 4px 0 8px; }
.cycle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 12px;
  color: var(--navy-soft);
  margin: 10px 0 14px;
}
.cycle-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: -1px;
}
.cycle-legend .swatch.bleed { background: #C45C6A; }
.cycle-legend .swatch.pred {
  background: repeating-linear-gradient(
    -45deg,
    #F3A78F,
    #F3A78F 2px,
    rgba(243, 167, 143, 0.25) 2px,
    rgba(243, 167, 143, 0.25) 4px
  );
  border: 1.5px solid #E08970;
}
.cycle-legend .swatch.today {
  box-shadow: inset 0 0 0 2px var(--navy);
  background: var(--white);
}
.cycle-legend .swatch.logged {
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--season, var(--navy));
}
.cycle-months {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .cycle-months { grid-template-columns: 1fr 1fr 1fr; }
}
.cycle-dow, .cycle-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.cycle-dow span {
  text-align: center;
  font-size: 10px;
  color: var(--navy-soft);
  padding-bottom: 4px;
}
.cycle-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 11px;
  border-radius: 6px;
  background: rgba(38, 49, 73, 0.05);
  color: var(--navy-soft);
}
.cycle-cell.blank { background: transparent; }
.cycle-cell.bleed {
  background: #C45C6A;
  color: var(--cream);
}
.cycle-cell.pred {
  background: repeating-linear-gradient(
    -45deg,
    rgba(243, 167, 143, 0.92),
    rgba(243, 167, 143, 0.92) 3px,
    rgba(243, 167, 143, 0.35) 3px,
    rgba(243, 167, 143, 0.35) 6px
  );
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px #E08970;
  font-weight: 600;
}
.cycle-cell.today {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
  font-weight: 700;
  color: var(--navy);
}
.cycle-cell.today:not(.bleed):not(.pred) {
  background: var(--white);
}
.cycle-cell.bleed.today {
  outline-color: var(--cream);
  color: var(--cream);
}
.cycle-actions { margin: 14px 0 4px; }
.cycle-actions .btn { width: 100%; }

.nova-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 20%, var(--blush), transparent 46%),
    var(--card);
}
.nova-orb-wrap { flex-shrink: 0; }
.nova-card .stress-orb { width: 84px; height: 84px; margin: 0; }
.nova-name {
  font-family: var(--font-nova);
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 0 0 4px;
}
.nova-stress {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--load, var(--mauve-deep));
  margin-bottom: 6px;
}
.nova-card p { color: var(--navy-soft); font-size: 14px; }

.check-group { margin-bottom: 18px; }
.check-group h3 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin-bottom: 4px;
}
.check-list label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy-soft);
  cursor: pointer;
}
.check-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  border: 1.4px solid var(--navy);
  border-radius: 2px;
  background: transparent;
}
.check-list input[type="checkbox"]:checked {
  background: var(--navy);
  box-shadow: inset 0 0 0 3px var(--cream);
}

.action-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
@media (min-width: 560px) {
  .action-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.score-band {
  font-size: 15px;
  color: var(--navy-soft);
  margin-top: 6px;
}

.bubble.booking {
  background: var(--season-soft);
  color: var(--navy);
  border: 1px solid var(--season);
}

/* ── Desktop ───────────────────────────────────────────── */

@media (min-width: 900px) {
  .lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }
  .lead-grid .card { margin-bottom: 0; }
  .shell {
    display: flex;
    flex-direction: column;
  }
  .topbar {
    padding: 8px 24px;
    gap: 18px;
  }
  .brand { flex: 0 0 auto; }
  .who { max-width: none; flex-shrink: 0; }
  .topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
  }
  .topnav .tab {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 999px;
  }
  .topnav .tab svg { width: 18px; height: 18px; }
  .tabbar { display: none; }
  .main { padding: 28px 32px 48px; }
  .composer { bottom: 16px; }
  .wa-composer {
    position: static;
    padding: 8px 0 4px;
  }
  .chat-log { padding-bottom: 12px; }

  .main:has(.desk-inbox) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
  .shell:has(.desk-inbox) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .desk-inbox {
    display: grid;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    flex: 1;
    min-height: 0;
    height: 100%;
  }
  .desk-inbox-list {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 20px 0 0;
    background: var(--white);
    border-right: 1px solid var(--line);
  }
  .desk-inbox-list .inbox-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0 16px;
  }
  .desk-inbox-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--cream);
  }
  .desk-inbox .chat {
    flex: 1;
    min-height: 0;
  }
  .desk-inbox .wa-composer {
    position: static;
    width: auto;
    max-width: none;
    padding: 8px 16px 16px;
  }
  .desk-inbox .chat-log { padding: 8px 16px 16px; }
  .chat-back { display: none; }
  .desk-empty { display: flex; min-height: 0; flex: 1; }
}

@media (max-width: 560px) {
  .chat .kicker, .chat .sub { display: none; }
  .chat .page-title { font-size: 22px; margin: 0 0 8px; }
  .wa-bubble { max-width: 78%; }
  .wa-voice { min-width: 0; }
  .who { max-width: none; padding: 3px; }
  .who span:last-child { display: none; }
  .brand strong { font-size: 13px; letter-spacing: 0.04em; }
}
@media (max-width: 400px) {
  .hm-hcell-val { font-size: 8px; }
  .hm-hcell-corner { font-size: 7px; }
  .tab { font-size: 9px; letter-spacing: 0; }
  .tab svg { width: 20px; height: 20px; }
}
