/* ════════════════════════════════════════════════════════════════
   BIRCHES HEALTH — PROVIDER TRAINING
   Design system. Built for accessibility (large targets, high
   contrast, calm animations) so a 70-year-old can use this on a
   laptop without confusion.
   ════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  /* Brand */
  --deep:    #1B2038;
  --navy:    #252B47;
  --accent:  #4F7DB5;
  --light:   #6BA8C4;
  --amber:   #E8935A;
  --red:     #D94F4F;
  --green:   #4CAF82;
  --yellow:  #E2B24A;

  /* Greys */
  --off:  #F5F6F9;
  --g1:   #EAECF2;
  --g2:   #D5D9E5;
  --g3:   #C2C8D8;
  --g4:   #8E97B0;
  --g5:   #6B7494;
  --g6:   #4A5170;
  --text: #2D3355;

  /* Typography */
  --base: 18px;            /* deliberately large */
  --headline: clamp(28px, 3.4vw, 44px);
  --hero: clamp(36px, 5vw, 64px);

  /* Layout */
  --topbar-h: 72px;
  --footer-h: 88px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 30px rgba(27, 32, 56, 0.10);
  --shadow-lg: 0 20px 60px rgba(27, 32, 56, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { font-size: var(--base); }
body {
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79,125,181,0.12), transparent 70%),
    radial-gradient(900px 500px at 0% 100%, rgba(107,168,196,0.10), transparent 70%),
    var(--off);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a { color: var(--accent); }

/* ── App shell ────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr var(--footer-h);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Top bar ──────────────────────────────────────────────────── */
.topbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--g1);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 36px; height: 36px; position: relative; }
.brand-mark .sq { position: absolute; border: 2.5px solid var(--deep); border-radius: 4px; }
.brand-mark .sq1 { width: 36px; height: 36px; }
.brand-mark .sq2 { width: 24px; height: 24px; top: 6px; left: 6px; border-color: var(--accent); }
.brand-mark .sq3 { width: 12px; height: 12px; top: 12px; left: 12px; border-color: var(--light); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; letter-spacing: -0.01em; color: var(--deep); }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--g4); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }

.chapter-meta {
  display: grid;
  grid-template-columns: minmax(auto, 220px) 1fr auto;
  align-items: center;
  gap: 14px;
  max-width: 600px;
  justify-self: center;
  width: 100%;
}
.chapter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chapter-count { font-size: 12px; font-weight: 600; color: var(--g5); white-space: nowrap; }
.progress-track { height: 6px; background: var(--g1); border-radius: 999px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--light));
  border-radius: 999px;
  transition: width 600ms var(--ease);
}

.topbar-actions { display: flex; gap: 8px; }
.ghost-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--g2); color: var(--g6);
  background: white;
  font-size: 16px; font-weight: 700;
  transition: all 200ms var(--ease);
}
.ghost-btn:hover { background: var(--off); border-color: var(--g3); color: var(--deep); }

/* ── Stage ────────────────────────────────────────────────────── */
.stage {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 28px 32px;
  outline: none;
}
.stage:focus { outline: none; }

/* Each chapter is a "panel" — fades in on enter */
.panel {
  animation: panel-in 380ms var(--ease) both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero / narration block ──────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background: white;
  border: 1px solid var(--g1);
  border-radius: var(--radius-lg);
  padding: 56px clamp(28px, 5vw, 80px);
  box-shadow: var(--shadow);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em;
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--accent); border-radius: 2px;
}
.hero h1 {
  font-size: var(--hero);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--deep);
  max-width: 22ch;
}
.hero h2 {
  font-size: var(--headline);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--deep);
  max-width: 24ch;
}
.hero-lead {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--g6);
  max-width: 56ch;
}
.hero-emoji {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(27,32,56,0.10));
}

/* ── Two-column split (sim + instruction) ────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
}

.coach {
  background: white;
  border: 1px solid var(--g1);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky; top: calc(var(--topbar-h) + 16px);
  height: fit-content;
  max-height: calc(100vh - var(--topbar-h) - var(--footer-h) - 32px);
  overflow: auto;
}
.coach-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}
.coach h3 { font-size: 22px; font-weight: 800; color: var(--deep); letter-spacing: -0.01em; }
.coach p { font-size: 1rem; color: var(--g6); line-height: 1.6; }
.coach .hint {
  margin-top: 4px;
  background: var(--off);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--g6);
}
.coach .hint strong { color: var(--deep); }

.coach-bullets { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.coach-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; color: var(--g6); }
.coach-bullets li::before {
  content: ''; flex-shrink: 0; margin-top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ── Form inputs ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; max-width: 480px; }
.field label { font-weight: 700; color: var(--deep); font-size: 0.95rem; }
.field input[type="text"], .field input[type="email"] {
  font: inherit;
  font-size: 1.1rem;
  padding: 16px 18px;
  border: 2px solid var(--g2);
  border-radius: 12px;
  background: white;
  color: var(--deep);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79,125,181,0.15);
}

/* ── Primary CTAs (in-stage) ─────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: var(--deep);
  color: white;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  transition: transform 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
  box-shadow: 0 6px 20px rgba(27,32,56,0.20);
}
.cta:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(27,32,56,0.25); }
.cta:active { transform: translateY(0); }
.cta-secondary {
  background: white;
  color: var(--deep);
  border: 1.5px solid var(--g2);
  box-shadow: none;
}
.cta-secondary:hover { background: var(--off); border-color: var(--g3); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: white;
  border-top: 1px solid var(--g1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
  position: sticky; bottom: 0; z-index: 50;
}
.footer-status { font-size: 0.92rem; color: var(--g4); flex: 1; text-align: center; }
.footer-btn {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 200ms var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-btn-back {
  color: var(--g5);
  background: transparent;
}
.footer-btn-back:hover { color: var(--deep); background: var(--off); }
.footer-btn-back:disabled { opacity: 0.35; cursor: not-allowed; }
.footer-btn-next {
  color: white;
  background: var(--deep);
  padding: 0 36px;
  box-shadow: 0 6px 20px rgba(27,32,56,0.18);
}
.footer-btn-next:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(27,32,56,0.24); }
.footer-btn-next:disabled {
  opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
  background: var(--g3);
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--footer-h) + 18px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--deep);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  z-index: 100;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.warn { background: var(--amber); }

/* ── Simulated browser frame ─────────────────────────────────── */
.browser {
  background: white;
  border: 1px solid var(--g2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  min-height: 580px;
}
.browser-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: linear-gradient(#F8F9FC, #F0F2F8);
  border-bottom: 1px solid var(--g1);
  flex-shrink: 0;
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots span { width: 12px; height: 12px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1; min-width: 0;
  background: white; border: 1px solid var(--g2); border-radius: 8px;
  padding: 7px 14px; font-size: 13px; color: var(--g6);
  display: flex; align-items: center; gap: 8px;
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-url::before {
  content: '🔒'; font-size: 11px; opacity: 0.6;
}
.browser-body {
  flex: 1;
  position: relative;
  background: white;
  overflow: hidden;
}

/* ── Click-target highlighter ────────────────────────────────── */
.tap-target {
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.tap-target::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: inherit;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(79,125,181,0.20);
  animation: pulse 1.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,125,181,0.45); }
  60%  { box-shadow: 0 0 0 14px rgba(79,125,181,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,125,181,0); }
}
.tap-success {
  animation: tap-success 600ms var(--ease);
}
@keyframes tap-success {
  0%   { background: var(--green) !important; color: white !important; transform: scale(1); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Used to gently dim non-target elements when teaching */
.dim { opacity: 0.55; filter: saturate(0.7); transition: all 280ms var(--ease); pointer-events: none; }

/* ── Quiz / choice cards ─────────────────────────────────────── */
.choices {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 18px;
}
.choice {
  text-align: left;
  background: white;
  border: 2px solid var(--g2);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 1.02rem;
  color: var(--deep);
  font-weight: 600;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 200ms var(--ease);
  min-height: 96px;
}
.choice:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.choice.selected { border-color: var(--accent); background: rgba(79,125,181,0.06); }
.choice.correct { border-color: var(--green); background: rgba(76,175,130,0.10); }
.choice.wrong { border-color: var(--red); background: rgba(217,79,79,0.07); }
.choice .choice-sub { font-size: 0.86rem; font-weight: 500; color: var(--g5); }

/* Match-pairs game */
.match {
  display: grid; gap: 18px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .match { grid-template-columns: 1fr; }
}
.match-col { display: flex; flex-direction: column; gap: 10px; }
.match-col h4 {
  font-size: 12px; font-weight: 700; color: var(--g5);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.match-tile {
  background: white; border: 2px solid var(--g2);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600; color: var(--deep);
  text-align: left;
  transition: all 180ms var(--ease);
}
.match-tile:hover { border-color: var(--accent); }
.match-tile.active { border-color: var(--accent); background: rgba(79,125,181,0.08); }
.match-tile.matched { border-color: var(--green); background: rgba(76,175,130,0.08); cursor: default; }
.match-tile.matched::after { content: ' ✓'; color: var(--green); font-weight: 700; }

/* ── Pay schedule visual ─────────────────────────────────────── */
.pay-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 18px;
}
.pay-card {
  background: white; border: 1px solid var(--g1);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  transition: all 200ms var(--ease);
}
.pay-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.pay-period { font-size: 12px; font-weight: 700; color: var(--g5); letter-spacing: 0.06em; text-transform: uppercase; }
.pay-paid { font-size: 1.4rem; font-weight: 800; color: var(--deep); letter-spacing: -0.01em; }
.pay-hint { font-size: 0.85rem; color: var(--g4); }

/* ── Certificate ─────────────────────────────────────────────── */
.cert {
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(79,125,181,0.08), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(232,147,90,0.06), transparent 70%),
    white;
  border: 1px solid var(--g1);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 18px;
  align-items: center; text-align: center;
}
.cert-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.cert h1 { font-size: clamp(28px, 4vw, 44px); color: var(--deep); letter-spacing: -0.02em; }
.cert .name { font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--deep); border-bottom: 2px solid var(--accent); padding: 8px 24px; }
.cert .meta { font-size: 0.95rem; color: var(--g5); }
.cert .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* ── Confetti ────────────────────────────────────────────────── */
.confetti {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 200;
  width: 100vw; height: 100vh;
  display: none;
}
.confetti.on { display: block; }

/* ── Tiny utilities ──────────────────────────────────────────── */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--g5); }
.tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--off); color: var(--g6);
}
.tag-accent { background: rgba(79,125,181,0.12); color: var(--accent); }
.tag-green { background: rgba(76,175,130,0.14); color: #2C7857; }
.tag-amber { background: rgba(232,147,90,0.18); color: #B05F25; }
.tag-red { background: rgba(217,79,79,0.14); color: #9D2E2E; }

/* Subtle scrollbar inside coach panel */
.coach::-webkit-scrollbar { width: 8px; }
.coach::-webkit-scrollbar-thumb { background: var(--g2); border-radius: 4px; }

/* ════════════════════════════════════════════════════════════════
   SIMULATED PRODUCT UIs
   These are scoped to .sim-* containers so they don't bleed.
   Real screenshots can drop in via <img> later — same containers.
   ════════════════════════════════════════════════════════════════ */

/* ── Gmail-like inbox ────────────────────────────────────────── */
.sim-gmail { display: grid; grid-template-columns: 240px 1fr; height: 100%; min-height: 540px; font-size: 14px; }
.sim-gmail-side {
  background: #F6F8FC; padding: 18px 14px;
  display: flex; flex-direction: column; gap: 14px;
  border-right: 1px solid var(--g1);
}
.sim-gmail-side .compose {
  background: #C2E7FF; color: #001D35;
  padding: 12px 16px; border-radius: 999px;
  font-weight: 600; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
}
.sim-gmail-side ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sim-gmail-side li { padding: 8px 12px; border-radius: 0 999px 999px 0; color: #444; font-weight: 500; }
.sim-gmail-side li.active { background: #D3E3FD; color: #001D35; font-weight: 700; }
.sim-gmail-side li .count { float: right; font-size: 12px; color: #5F6368; }

.sim-gmail-main { display: flex; flex-direction: column; min-width: 0; }
.sim-gmail-search {
  padding: 12px 18px; background: white; border-bottom: 1px solid var(--g1);
  display: flex; align-items: center; gap: 12px;
}
.sim-gmail-search .search-pill {
  flex: 1; background: #EAF1FB; border-radius: 8px;
  padding: 9px 16px; color: #5F6368; font-size: 14px;
}
.sim-gmail-list { display: flex; flex-direction: column; }
.sim-gmail-row {
  display: grid; grid-template-columns: 28px 200px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #F1F3F8;
  background: white;
  cursor: pointer;
  transition: background 160ms var(--ease);
}
.sim-gmail-row:hover { background: #F8FAFD; box-shadow: inset 0 0 0 1px var(--g1); }
.sim-gmail-row.unread { font-weight: 700; }
.sim-gmail-row .star { color: #DADCE0; font-size: 16px; }
.sim-gmail-row .from { color: #202124; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-gmail-row .subject { color: #202124; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-gmail-row .preview { color: #5F6368; font-weight: 500; }
.sim-gmail-row .time { color: #5F6368; font-size: 12px; }
.sim-gmail-row.healthie .from { color: #1B2038; }
.sim-gmail-row.healthie::before {
  content: ''; width: 4px; height: 100%; background: var(--accent);
  position: absolute; left: 0; top: 0;
}
.sim-gmail-row { position: relative; }

/* Healthie invite email body (when opened) */
.sim-email-body {
  padding: 28px clamp(20px, 4vw, 60px);
  background: white;
  font-size: 15px;
  color: #202124;
  display: flex; flex-direction: column; gap: 18px;
  height: 100%; overflow: auto;
}
.sim-email-body .from-line { color: #5F6368; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.sim-email-body h2 { font-size: 22px; color: #1B2038; }
.sim-email-body .invite-btn {
  align-self: flex-start;
  background: #2563EB; color: white; font-weight: 700;
  padding: 14px 26px; border-radius: 8px;
  text-decoration: none; font-size: 15px;
  box-shadow: 0 6px 20px rgba(37,99,235,0.22);
}

/* ── Healthie-like UI ────────────────────────────────────────── */
.sim-healthie { display: grid; grid-template-columns: 220px 1fr; height: 100%; min-height: 540px; background: #F6F8FB; }
.sim-h-side {
  background: linear-gradient(180deg, #1A2A44 0%, #20355A 100%);
  color: white;
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.sim-h-side .h-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  font-weight: 700;
}
.sim-h-side .h-brand .h-logo {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #4F7DB5, #6BA8C4);
  display: grid; place-items: center; font-size: 12px;
}
.sim-h-side a, .sim-h-side .h-link {
  color: rgba(255,255,255,0.78);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  cursor: pointer;
}
.sim-h-side .h-link:hover { background: rgba(255,255,255,0.06); color: white; }
.sim-h-side .h-link.active { background: rgba(255,255,255,0.10); color: white; font-weight: 600; }
.sim-h-side .h-link .icn { width: 18px; text-align: center; opacity: 0.85; }

.sim-h-main { display: flex; flex-direction: column; min-width: 0; overflow: auto; }
.sim-h-top {
  background: white; border-bottom: 1px solid var(--g1);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.sim-h-top h3 { font-size: 18px; font-weight: 700; color: var(--deep); }
.sim-h-top .h-user {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--g6);
}
.sim-h-top .h-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: white; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.sim-h-content { padding: 24px; display: flex; flex-direction: column; gap: 18px; }

/* Healthie cards */
.h-card {
  background: white; border: 1px solid var(--g1);
  border-radius: 10px;
  padding: 18px 22px;
}
.h-card h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--g5); margin-bottom: 10px; }

/* Appointment row */
.h-appt-row {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--g1);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.h-appt-row:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.h-appt-time { font-weight: 700; color: var(--deep); }
.h-appt-time small { display: block; font-weight: 500; font-size: 12px; color: var(--g4); }
.h-appt-name { font-weight: 600; color: var(--deep); }
.h-appt-name small { display: block; font-weight: 500; font-size: 13px; color: var(--g5); }
.h-appt-status {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--off); color: var(--g5); text-transform: uppercase; letter-spacing: 0.06em;
}

/* Appointment side panel (the SOP "homepage of the session") */
.h-panel {
  background: white;
  border: 1px solid var(--g1);
  border-radius: 14px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.h-panel h4 { font-size: 17px; color: var(--deep); }
.h-panel .h-zoom-btn {
  background: #2D8CFF; color: white;
  font-weight: 700; padding: 14px 18px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px;
}
.h-panel .h-zoom-btn::before { content: '🎥'; }

.h-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.h-status-btn {
  text-align: left;
  background: white; border: 1.5px solid var(--g2); color: var(--deep);
  padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: all 160ms var(--ease);
}
.h-status-btn:hover { border-color: var(--accent); background: rgba(79,125,181,0.04); }
.h-status-btn.selected { border-color: var(--green); background: rgba(76,175,130,0.10); }

.h-duration {
  display: flex; gap: 10px; align-items: center;
}
.h-duration input {
  font: inherit; font-size: 16px; font-weight: 700;
  width: 100px; padding: 10px 14px;
  border: 1.5px solid var(--g2); border-radius: 8px; color: var(--deep);
}
.h-duration input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,125,181,0.18); }

/* Zoom-like screen (placeholder when launched) */
.sim-zoom {
  position: absolute; inset: 0;
  background: #1F1F1F;
  display: grid; place-items: center; color: white;
  text-align: center; padding: 40px;
}
.sim-zoom h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.sim-zoom p { color: rgba(255,255,255,0.7); }
.sim-zoom .zoom-tile {
  margin-top: 24px;
  width: min(420px, 80%); aspect-ratio: 16/9;
  border-radius: 14px;
  background: linear-gradient(135deg, #2A2A2A, #3A3A3A);
  display: grid; place-items: center; font-size: 18px;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Login screen (Healthie) ─────────────────────────────────── */
.sim-login {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #F0F4FA, #E1EAF6);
  display: grid; place-items: center;
}
.sim-login-card {
  background: white; border-radius: 14px;
  padding: 36px 40px; width: min(420px, 90%);
  box-shadow: 0 20px 50px rgba(27,32,56,0.10);
  display: flex; flex-direction: column; gap: 16px;
}
.sim-login-card .login-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #4F7DB5, #6BA8C4);
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 18px;
}
.sim-login-card h3 { font-size: 22px; color: var(--deep); }
.sim-login-card .login-field { display: flex; flex-direction: column; gap: 6px; }
.sim-login-card label { font-size: 13px; font-weight: 600; color: var(--g6); }
.sim-login-card input {
  font: inherit; padding: 11px 13px;
  border: 1.5px solid var(--g2); border-radius: 8px;
  font-size: 15px;
}
.sim-login-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,125,181,0.18); }
.sim-login-card .login-btn {
  background: var(--accent); color: white;
  padding: 13px; border-radius: 8px; font-weight: 700;
}
.sim-login-card .login-btn:hover { background: #3F6FA9; }

/* ── Note template picker ────────────────────────────────────── */
.h-note-picker {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.h-note-tile {
  text-align: left;
  background: white; border: 1.5px solid var(--g2);
  border-radius: 10px; padding: 14px 16px;
  transition: all 180ms var(--ease);
}
.h-note-tile:hover { border-color: var(--accent); background: rgba(79,125,181,0.04); }
.h-note-tile h5 { font-size: 14.5px; font-weight: 700; color: var(--deep); margin-bottom: 4px; }
.h-note-tile p { font-size: 12.5px; color: var(--g5); line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════
   CHECKPOINT STEPS — image placeholder + checklist confirm
   ════════════════════════════════════════════════════════════════ */

.screenshot-col { display: flex; flex-direction: column; gap: 10px; }

.screenshot {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
}
.screenshot-frame {
  background: white;
  border: 1px solid var(--g2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  min-height: 360px;
  display: flex; align-items: stretch;
}
.screenshot-frame img {
  width: 100%; height: auto; display: block;
  background: white;
}
/* Placeholder is shown by default; hidden once image loads */
.screenshot-frame .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  padding: 36px 28px;
  text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(79,125,181,0.04) 0,
      rgba(79,125,181,0.04) 14px,
      rgba(79,125,181,0.08) 14px,
      rgba(79,125,181,0.08) 28px
    ),
    var(--off);
  color: var(--g6);
}
.screenshot-frame.loaded .placeholder { display: none; }
.screenshot-frame.loaded { min-height: 0; }

.placeholder-icon { font-size: 36px; opacity: 0.6; }
.placeholder-filename {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: white;
  padding: 8px 14px; border-radius: 8px;
  border: 1px dashed var(--accent);
  word-break: break-all;
  max-width: 100%;
}
.placeholder-meta {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.placeholder-caption {
  font-size: 0.95rem;
  color: var(--g6);
  line-height: 1.55;
  max-width: 48ch;
}

.screenshot figcaption {
  font-size: 0.88rem;
  color: var(--g5);
  padding: 0 4px;
}
.screenshot-empty .placeholder { background: var(--off); border-radius: var(--radius); }
.screenshot-empty { min-height: 200px; }

/* Clickable hotspots overlaid on a real screenshot */
.screenshot-hotspots .screenshot-frame { min-height: 0; }
.screenshot-hotspots img { display: block; }
.hotspot {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 5;
  border-radius: 6px;
  transition: background 200ms var(--ease);
}
.hotspot:hover { background: rgba(79,125,181,0.10); }
.hotspot.tap-target {
  background: rgba(79,125,181,0.06);
  border-radius: 6px;
}

/* ════════════════════════════════════════════════════════════════
   IMAGE-STEP LAYOUT — side-by-side, with a PROMINENT sticky coach
   panel so the verbiage is impossible to miss.
   ════════════════════════════════════════════════════════════════ */
.split-stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1080px) {
  .split-stacked { grid-template-columns: 1fr; }
}

.split-stacked .screenshot-col { width: 100%; min-width: 0; }
.split-stacked .screenshot,
.split-stacked .screenshot-frame { width: 100%; }
.split-stacked .screenshot-frame img { width: 100%; height: auto; }
.split-stacked .screenshot-frame {
  box-shadow: 0 10px 36px rgba(27,32,56,0.10);
  border-radius: 12px;
}

/* The prominent coach panel — accent border, stronger shadow,
   sticky so it follows on scroll, eyebrow + headline scaled up. */
.split-stacked .coach {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  max-height: calc(100vh - var(--topbar-h) - var(--footer-h) - 32px);
  overflow: auto;

  background: linear-gradient(180deg, #ffffff 0%, #F6F9FE 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 16px 44px rgba(79,125,181,0.18);
  position: sticky;
}
.split-stacked .coach::before {
  content: 'Read this';
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.split-stacked .coach h3 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--deep);
  letter-spacing: -0.015em;
}
.split-stacked .coach .coach-eyebrow {
  color: var(--accent);
  font-weight: 800;
}
.split-stacked .coach-bullets li {
  font-size: 0.98rem;
  color: var(--deep);
  line-height: 1.55;
}
.split-stacked .coach-bullets li::before {
  background: var(--accent);
  width: 7px; height: 7px;
}
.split-stacked .coach .hint {
  background: white;
  border-left-width: 4px;
  font-size: 0.95rem;
}

/* ── Checklist (confirm-to-advance) ──────────────────────── */
.checklist {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--g1);
}
.checklist-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--g5);
  margin-bottom: 4px;
}
.check-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: var(--off);
  border: 1.5px solid var(--g1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms var(--ease);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--deep);
}
.check-row:hover { border-color: var(--g3); background: white; }
.check-row input[type="checkbox"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.check-box-ui {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 2px solid var(--g3);
  border-radius: 7px;
  background: white;
  position: relative;
  margin-top: 1px;
  transition: all 180ms var(--ease);
}
.check-box-ui::after {
  content: ''; position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 180ms var(--ease);
}
.check-row.checked {
  background: rgba(76,175,130,0.08);
  border-color: var(--green);
  color: var(--deep);
}
.check-row.checked .check-box-ui {
  background: var(--green);
  border-color: var(--green);
}
.check-row.checked .check-box-ui::after {
  transform: rotate(45deg) scale(1);
}
.check-row .check-text { flex: 1; }

/* ── "Open in a new tab" callout ─────────────────────────── */
.newtab-callout {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(79,125,181,0.08), rgba(107,168,196,0.08));
  border: 1.5px solid rgba(79,125,181,0.30);
  border-radius: 12px;
  text-decoration: none;
  color: var(--deep);
  margin: 16px 0 8px;
  transition: all 200ms var(--ease);
}
.newtab-callout:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(79,125,181,0.14), rgba(107,168,196,0.12));
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.newtab-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.newtab-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.newtab-body strong { font-size: 0.96rem; color: var(--deep); }
.newtab-body span:not(:first-child) { font-size: 0.92rem; color: var(--g5); }

/* ── Footer help link ────────────────────────────────────── */
.status-help { font-size: 0.92rem; color: var(--g4); }
.status-help a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.status-help a:hover { color: var(--deep); border-bottom-color: var(--deep); }
.status-msg { font-size: 0.92rem; color: var(--g5); }

/* Make coach panel a bit taller now that it carries checklist */
.checkpoint-coach { max-height: none; }

/* Bookmark star inside URL bar */
.browser-url { position: relative; }
.browser-star {
  margin-left: auto;
  font-size: 14px;
  color: var(--g4);
  cursor: pointer;
  padding: 0 6px;
  font-family: inherit;
}
.browser-url.tap-target { cursor: pointer; }
.browser-url.tap-target .browser-star { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════
   GENERIC WEBMAIL MOCK (.sim-webmail)
   Provider-agnostic — used for the personal inbox so it doesn't
   bias toward any specific email service.
   ════════════════════════════════════════════════════════════════ */
.sim-webmail {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100%;
  min-height: 540px;
  background: #FAFBFD;
  font-size: 14px;
  color: #2D3355;
}
.wm-side {
  background: #F2F4F8;
  border-right: 1px solid #E5E8F0;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.wm-side-head {
  font-size: 16px; font-weight: 800; color: #2D3355;
  letter-spacing: -0.01em; padding: 0 4px 4px;
}
.wm-compose {
  background: #2D3355; color: white;
  padding: 11px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  align-self: stretch; text-align: center;
  transition: background 160ms var(--ease);
}
.wm-compose:hover { background: #1B2038; }
.wm-folders {
  list-style: none; display: flex; flex-direction: column; gap: 2px;
  padding: 0; margin: 6px 0 0;
}
.wm-folders li {
  padding: 8px 12px; border-radius: 6px;
  font-size: 14px; color: #4A5170;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.wm-folders li.active { background: #DCE3F0; color: #1B2038; font-weight: 700; }
.wm-folders li:hover:not(.active) { background: #E8ECF4; }
.wm-count { font-size: 12px; color: #6B7494; font-weight: 600; }
.wm-side-foot {
  margin-top: auto;
  font-size: 11px;
  color: #8E97B0;
  padding: 6px;
  border-top: 1px solid #E5E8F0;
  word-break: break-all;
}

.wm-main { display: flex; flex-direction: column; min-width: 0; }
.wm-search {
  padding: 12px 18px;
  background: white;
  border-bottom: 1px solid #E5E8F0;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #6B7494;
}
.wm-list { display: flex; flex-direction: column; }
.wm-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px; align-items: center;
  padding: 12px 18px;
  background: white;
  border-bottom: 1px solid #F1F3F8;
  cursor: pointer;
  transition: background 160ms var(--ease);
}
.wm-row:hover { background: #F8FAFD; }
.wm-row.wm-unread { font-weight: 700; }
.wm-row.wm-unread .wm-from, .wm-row.wm-unread .wm-sub { color: #1B2038; }
.wm-from { color: #4A5170; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-sub { color: #6B7494; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.wm-time { font-size: 12px; color: #8E97B0; font-weight: 500; }
.wm-row.wm-highlight {
  position: relative;
  background: linear-gradient(90deg, rgba(79,125,181,0.06), transparent);
}
.wm-row.wm-highlight::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent);
}

/* Reading view */
.sim-webmail-reading .wm-main { background: white; }
.wm-message {
  padding: 26px clamp(20px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 16px;
  overflow: auto;
}
.wm-msg-head h2 {
  font-size: 22px; color: #1B2038; margin-bottom: 12px;
  letter-spacing: -0.01em; font-weight: 700;
}
.wm-msg-meta {
  font-size: 13px; color: #6B7494;
  display: flex; flex-direction: column; gap: 2px;
}
.wm-msg-meta strong { color: #2D3355; font-weight: 700; }
.wm-msg-to { font-size: 12px; }
.wm-msg-body { font-size: 15px; line-height: 1.65; color: #2D3355; display: flex; flex-direction: column; gap: 14px; }
.wm-callout-mono {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace !important;
  font-size: 16px;
  background: #F5F6F9;
  padding: 12px 16px;
  border-radius: 8px;
  align-self: flex-start;
  color: #1B2038;
  font-weight: 600;
}
.wm-cta {
  align-self: flex-start;
  background: #1B2038;
  color: white !important;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(27,32,56,0.18);
  margin-top: 4px;
  transition: background 160ms var(--ease);
}
.wm-cta:hover { background: #252B47; }
.wm-fineprint { color: #8E97B0; font-size: 13px; margin-top: 8px; }

/* Birches Gmail variant — Gmail-flavored colors */
.sim-webmail-gmail .wm-side-gmail { background: #F6F8FC; }
.sim-webmail-gmail .wm-side-head { font-size: 22px; }
.wm-compose-gmail {
  background: #C2E7FF !important; color: #001D35 !important;
  border-radius: 999px !important;
  align-self: flex-start !important;
  padding: 12px 22px !important;
}
.wm-compose-gmail:hover { background: #B0DDF7 !important; }

/* ════════════════════════════════════════════════════════════════
   GOOGLE PASSWORD CREATION PAGE (.sim-google)
   ════════════════════════════════════════════════════════════════ */
.sim-google {
  height: 100%;
  min-height: 540px;
  display: flex; flex-direction: column;
  background: white;
}
.g-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #DADCE0;
}
.g-logo { font-size: 24px; font-weight: 500; letter-spacing: -0.5px; }
.g-l-b { color: #4285F4; }
.g-l-r { color: #EA4335; }
.g-l-y { color: #FBBC04; }
.g-l-g { color: #34A853; }
.g-acct { display: flex; align-items: center; gap: 10px; }
.g-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #1A73E8);
  color: white; font-weight: 600;
  display: grid; place-items: center;
  font-size: 14px;
}
.g-acct-meta { font-size: 13px; color: #202124; line-height: 1.3; }
.g-acct-email { font-size: 12px; color: #5F6368; }

.g-card {
  margin: 32px auto; max-width: 480px; width: 100%;
  padding: 0 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.g-card h1 { font-size: 24px; font-weight: 400; color: #202124; margin-bottom: 4px; }
.g-sub { font-size: 14px; color: #5F6368; line-height: 1.55; }
.g-field { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.g-field label { font-size: 12px; color: #5F6368; }
.g-field input {
  font: inherit; font-size: 16px;
  padding: 14px 14px;
  border: 1px solid #DADCE0;
  border-radius: 4px;
  color: #202124;
  background: white;
}
.g-tip { font-size: 12.5px; color: #5F6368; line-height: 1.5; }
.g-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px;
}
.g-link {
  color: #1A73E8; font-weight: 500; font-size: 13px;
  background: none; padding: 8px 12px; border-radius: 4px;
}
.g-link:hover { background: #F1F8FE; }
.g-next {
  background: #1A73E8; color: white;
  font-weight: 500; font-size: 14px;
  padding: 10px 24px; border-radius: 4px;
  transition: background 160ms var(--ease);
}
.g-next:hover { background: #1765CC; }
.g-foot {
  margin-top: auto;
  padding: 14px 28px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: #5F6368;
  border-top: 1px solid #DADCE0;
}

/* ════════════════════════════════════════════════════════════════
   GOOGLE HOMEPAGE WITH APPS MENU (.sim-google-home)
   ════════════════════════════════════════════════════════════════ */
.sim-google-home {
  height: 100%; min-height: 540px;
  background: white;
  display: flex; flex-direction: column;
  position: relative;
  font-size: 14px;
}
.gh-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  font-size: 13px; color: #202124;
}
.gh-links, .gh-right { display: flex; align-items: center; gap: 18px; }
.gh-links a, .gh-right a {
  color: #202124; text-decoration: none;
  font-weight: 500;
}
.gh-links a:hover, .gh-right a:hover { text-decoration: underline; }
.gh-apps {
  background: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-weight: 800; color: #5F6368;
  font-size: 18px;
  letter-spacing: -2px;
  transition: background 160ms var(--ease);
}
.gh-apps:hover { background: #F1F3F4; }
.gh-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #1A73E8);
  color: white; font-weight: 600;
  display: grid; place-items: center;
  font-size: 14px;
}

.gh-center {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  padding-bottom: 90px;
}
.gh-logo { font-size: 86px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.gh-search {
  display: flex; align-items: center; gap: 14px;
  width: min(560px, 86%);
  background: white;
  border: 1px solid #DADCE0;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 1px 6px rgba(32,33,36,0.06);
}
.gh-search:hover { box-shadow: 0 1px 6px rgba(32,33,36,0.18); border-color: transparent; }
.gh-s-icon { color: #9AA0A6; }
.gh-s-placeholder { flex: 1; color: #5F6368; font-size: 16px; }
.gh-mic { color: #4285F4; }
.gh-buttons { display: flex; gap: 10px; }
.gh-buttons button {
  background: #F8F9FA; color: #3C4043;
  font-size: 13.5px; font-weight: 500;
  padding: 10px 18px;
  border: 1px solid #F8F9FA;
  border-radius: 4px;
  transition: all 140ms var(--ease);
}
.gh-buttons button:hover { box-shadow: 0 1px 1px rgba(0,0,0,0.10); border-color: #DADCE0; }

/* Apps menu popover (always visible — easier UX than two-click) */
.gh-apps-menu {
  position: absolute;
  top: 60px; right: 60px;
  width: 320px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 14px 8px 8px;
  z-index: 5;
  border: 1px solid #E8EAED;
}
.gh-apps-menu::before {
  content: '';
  position: absolute; top: -8px; right: 24px;
  width: 16px; height: 16px;
  background: white;
  border-left: 1px solid #E8EAED;
  border-top: 1px solid #E8EAED;
  transform: rotate(45deg);
}
.gh-apps-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5F6368;
  padding: 4px 10px 8px;
  font-weight: 600;
}
.gh-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.gh-app {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px;
  border-radius: 8px;
  font-size: 12px; color: #3C4043;
  text-align: center;
  transition: background 140ms var(--ease);
}
.gh-app:hover { background: #F1F3F4; }
.gh-app-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

@media (max-width: 1080px) {
  .gh-apps-menu { right: 24px; top: 56px; width: 280px; }
}

/* ════════════════════════════════════════════════════════════════
   HEALTHIE — INVITE EMAIL (in Gmail body)
   Reuses the .wm-* webmail body styling, just adds Healthie brand
   inside the email body.
   ════════════════════════════════════════════════════════════════ */
.hh-mail-brand {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 18px; border-bottom: 1px solid #EAECF2;
  margin-bottom: 6px;
}
.hh-mail-logo {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: #2563EB;
  font-family: 'Inter', sans-serif;
}
.hh-mail-logo-lg { font-size: 32px; }
.hh-mail-cta {
  align-self: flex-start;
  background: #2563EB;
  color: white !important;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(37,99,235,0.30);
  margin-top: 4px;
  transition: background 160ms var(--ease);
}
.hh-mail-cta:hover { background: #1E40AF; }

/* ════════════════════════════════════════════════════════════════
   HEALTHIE — ACCOUNT SETUP PAGE (.sim-hh-setup)
   ════════════════════════════════════════════════════════════════ */
.sim-hh-setup {
  height: 100%; min-height: 540px;
  background: linear-gradient(135deg, #F0F9F8, #E1F2EE);
  display: grid; place-items: center;
  padding: 36px 24px;
}
.hh-setup-card {
  background: white;
  border-radius: 14px;
  padding: 40px 44px;
  width: min(540px, 100%);
  box-shadow: 0 24px 60px rgba(19, 111, 101, 0.18);
  display: flex; flex-direction: column; gap: 14px;
}
.hh-setup-card h1 { font-size: 26px; color: #1B2038; letter-spacing: -0.01em; font-weight: 800; }
.hh-setup-sub { font-size: 14.5px; color: #6B7494; line-height: 1.6; }
.hh-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.hh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hh-field { display: flex; flex-direction: column; gap: 5px; }
.hh-field label { font-size: 12px; color: #6B7494; font-weight: 600; }
.hh-field input {
  font: inherit; font-size: 15px;
  padding: 11px 13px;
  border: 1.5px solid var(--g2);
  border-radius: 8px;
  color: var(--deep);
  background: white;
}
.hh-field input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.20); }
.hh-field input[readonly] { background: #F5F6F9; color: var(--g6); }
.hh-setup-tip { font-size: 12.5px; color: #6B7494; line-height: 1.5; }
.hh-setup-btn {
  background: #2563EB;
  color: white;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: 8px;
  margin-top: 6px;
  transition: background 160ms var(--ease);
}
.hh-setup-btn:hover { background: #1E40AF; }
.hh-setup-tos { font-size: 11.5px; color: #8E97B0; line-height: 1.5; text-align: center; margin-top: 4px; }

/* ════════════════════════════════════════════════════════════════
   HEALTHIE — APP SHELL (sidebar + topbar + content)
   ════════════════════════════════════════════════════════════════ */
.sim-hh {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100%;
  min-height: 600px;
  background: #F4F6FA;
  font-size: 14px;
}
.hh-side {
  background: linear-gradient(180deg, #16263F 0%, #1A2D4A 100%);
  color: white;
  padding: 18px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.hh-side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 18px;
  font-weight: 700;
  font-size: 17px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 14px;
}
.hh-side-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563EB, #1E40AF);
  display: grid; place-items: center;
  color: white; font-weight: 800;
  font-size: 14px;
}
.hh-side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 14px; font-weight: 500;
  text-align: left;
  transition: all 160ms var(--ease);
  position: relative;
}
.hh-side-link:hover { background: rgba(255,255,255,0.06); color: white; }
.hh-side-link.active { background: rgba(37,99,235,0.20); color: white; font-weight: 600; }
.hh-side-link.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: #2563EB;
}
.hh-side-icn { width: 18px; text-align: center; opacity: 0.85; flex-shrink: 0; }
.hh-badge {
  margin-left: auto;
  background: #2563EB;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.hh-main {
  display: flex; flex-direction: column;
  min-width: 0;
  overflow: auto;
}
.hh-top {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 24px;
  background: white;
  border-bottom: 1px solid var(--g1);
  position: sticky; top: 0; z-index: 5;
}
.hh-search-bar {
  flex: 1; max-width: 540px;
  display: flex; align-items: center; gap: 10px;
  background: #F4F6FA;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--g5);
  transition: all 180ms var(--ease);
}
.hh-search-bar:hover { border-color: var(--g2); background: white; }
.hh-search-icn { font-size: 14px; }
.hh-search-placeholder { flex: 1; }
.hh-search-kbd {
  background: white; border: 1px solid var(--g2);
  padding: 2px 6px; border-radius: 4px;
  font-size: 11px; color: var(--g5); font-family: 'SF Mono', monospace;
}
.hh-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hh-icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--g5);
  transition: background 140ms var(--ease);
}
.hh-icon-btn:hover { background: var(--off); }
.hh-icon-dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.hh-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F7DB5, #6BA8C4);
  color: white;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
}

.hh-content {
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.hh-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px;
}
.hh-page-head h2 { font-size: 28px; color: var(--deep); font-weight: 800; letter-spacing: -0.015em; }

/* ── Widgets ─────────────────────────────────────────────── */
.hh-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hh-widget {
  background: white;
  border: 1.5px solid var(--g1);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: all 200ms var(--ease);
  min-height: 200px;
}
.hh-widget:hover { border-color: var(--g3); box-shadow: var(--shadow); }
.hh-widget-head {
  display: flex; align-items: baseline; justify-content: space-between;
}
.hh-widget-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--g5);
}
.hh-widget-num {
  font-size: 32px; font-weight: 800; color: var(--deep);
  letter-spacing: -0.02em;
}
.hh-widget-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hh-widget-list li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 13px; color: var(--g6);
  padding: 4px 0;
}
.hh-w-time { font-weight: 700; color: var(--deep); min-width: 64px; }
.hh-w-name { color: var(--g6); }
.hh-widget-foot {
  font-size: 11.5px; color: var(--g5); line-height: 1.5;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--g1);
}

/* Weekly bars */
.hh-week-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  align-items: end;
  padding-top: 10px;
}
.hh-week-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hh-bar {
  width: 100%; height: 100px;
  display: flex; align-items: flex-end;
  background: rgba(79,125,181,0.05);
  border-radius: 6px 6px 0 0;
  padding: 4px;
}
.hh-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #6BA8C4, #4F7DB5);
  border-radius: 4px;
  transition: height 800ms var(--ease);
}
.hh-bar-label { font-size: 10px; color: var(--g5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.hh-bar-num { font-size: 11px; color: var(--deep); font-weight: 700; }

/* ── Today's appointments card ──────────────────────────── */
.hh-card {
  background: white;
  border: 1px solid var(--g1);
  border-radius: 12px;
  padding: 20px 22px;
}
.hh-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.hh-card-head h3 { font-size: 16px; color: var(--deep); font-weight: 700; }
.hh-appt-list { display: flex; flex-direction: column; gap: 8px; }
.hh-appt-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px; align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--g1);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.hh-appt-row:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.hh-appt-time { font-weight: 700; color: var(--deep); font-size: 14px; }
.hh-appt-time small { display: block; font-weight: 500; font-size: 11.5px; color: var(--g4); }
.hh-appt-name { font-weight: 600; color: var(--deep); font-size: 14px; }

.hh-pill {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hh-pill-blue { background: rgba(79,125,181,0.14); color: #2D5A8A; }
.hh-pill-green { background: rgba(76,175,130,0.16); color: #1F6B4A; }
.hh-pill-amber { background: rgba(232,147,90,0.18); color: #B05F25; }

.hh-btn-primary {
  background: #2563EB; color: white;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.hh-btn-primary:hover { background: #1E40AF; }
.hh-search-mini {
  display: flex; align-items: center; gap: 8px;
  background: var(--off);
  border: 1px solid var(--g2);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--g5);
}

/* ── Chat view ───────────────────────────────────────────── */
.hh-chat {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  border-top: 1px solid var(--g1);
  min-height: 480px;
}
.hh-chat-list {
  border-right: 1px solid var(--g1);
  background: white;
  display: flex; flex-direction: column;
}
.hh-chat-search {
  padding: 14px 16px;
  border-bottom: 1px solid var(--g1);
  font-size: 13px;
  color: var(--g5);
  display: flex; gap: 8px; align-items: center;
}
.hh-chat-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--g1);
  cursor: pointer;
  transition: background 140ms var(--ease);
  align-items: center;
}
.hh-chat-row:hover { background: var(--off); }
.hh-chat-row.hh-chat-active { background: rgba(37,99,235,0.07); border-left: 3px solid #2563EB; padding-left: 13px; }
.hh-chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  color: white; font-weight: 700;
  display: grid; place-items: center;
  font-size: 12px;
}
.hh-chat-meta { min-width: 0; }
.hh-chat-name { font-weight: 700; color: var(--deep); font-size: 13.5px; }
.hh-chat-snippet {
  font-size: 12.5px; color: var(--g5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500;
  max-width: 180px;
}
.hh-chat-time { font-size: 11px; color: var(--g4); font-weight: 600; }

.hh-chat-thread {
  display: flex; flex-direction: column;
  background: #FAFBFD;
  min-width: 0;
}
.hh-chat-thread-head {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 22px;
  background: white;
  border-bottom: 1px solid var(--g1);
}
.hh-chat-msgs {
  flex: 1;
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: auto;
}
.hh-msg {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.hh-msg-them { background: white; border: 1px solid var(--g1); align-self: flex-start; border-bottom-left-radius: 4px; color: var(--deep); }
.hh-msg-me { background: #2563EB; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

.hh-chat-input {
  display: flex; gap: 8px;
  padding: 14px 22px;
  background: white;
  border-top: 1px solid var(--g1);
}
.hh-chat-input input {
  font: inherit; font-size: 14px;
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--g2);
  border-radius: 999px;
  background: var(--off);
}
.hh-chat-input input:focus { outline: none; border-color: #2563EB; background: white; }
.hh-chat-input button {
  background: #2563EB; color: white;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 13px;
}

/* ── Clients table ───────────────────────────────────────── */
.hh-clients-table {
  background: white;
  border: 1px solid var(--g1);
  border-radius: 12px;
  overflow: hidden;
}
.hh-ct-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr 0.8fr;
  gap: 14px;
  padding: 12px 18px;
  background: var(--off);
  font-size: 11px;
  font-weight: 700;
  color: var(--g5);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  border-bottom: 1px solid var(--g1);
}
.hh-ct-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr 0.8fr;
  gap: 14px; align-items: center;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--g6);
  border-bottom: 1px solid var(--g1);
  cursor: pointer;
  transition: background 140ms var(--ease);
}
.hh-ct-row:last-child { border-bottom: none; }
.hh-ct-row:hover { background: var(--off); }
.hh-ct-name {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--deep);
}
.hh-ct-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  color: white; font-weight: 700;
  display: grid; place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   PREVIEW BANNER
   ════════════════════════════════════════════════════════════════ */
.preview-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 1.5px solid #F59E0B;
  border-radius: 12px 12px 0 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
.preview-eye {
  flex-shrink: 0;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
  background: #92400E; color: white;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase;
  font-family: 'SF Mono', ui-monospace, monospace;
}
.preview-msg { font-size: 0.92rem; color: #78350F; line-height: 1.5; }
.preview-msg strong { color: #451A03; font-weight: 700; }
.preview-banner + .browser { border-top-left-radius: 0; border-top-right-radius: 0; }

/* ════════════════════════════════════════════════════════════════
   HEALTHIE — UPDATED HOME (matches real screenshot)
   ════════════════════════════════════════════════════════════════ */
/* Override sidebar width and padding */
.hh-side { padding: 12px 8px; }
.hh-side-brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px 14px;
  border-bottom: none;
  margin-bottom: 8px;
}
.hh-side-org { display: flex; align-items: center; gap: 8px; opacity: 0.9; }
.hh-side-org-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.10);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.70);
}
.hh-side-org > span {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.78);
  letter-spacing: -0.01em;
}
.hh-side-collapse {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.55);
  font-size: 16px; font-weight: 600;
  border-radius: 4px;
  background: none;
}
.hh-side-collapse:hover { background: rgba(255,255,255,0.06); color: white; }
.hh-side-nav { display: flex; flex-direction: column; gap: 1px; }

/* Override active state for blue Healthie accent */
.hh-side-link.active {
  background: rgba(59,130,246,0.12);
  color: #93C5FD;
  font-weight: 600;
}
.hh-side-link.active::before {
  content: ''; position: absolute; left: -8px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0; background: #3B82F6;
}
.hh-side-link.active .hh-side-icn { color: #3B82F6; }
.hh-side-icn {
  width: 18px; flex-shrink: 0;
  color: rgba(255,255,255,0.78);
  display: grid; place-items: center;
}
.hh-side-link svg { display: block; }

/* Topbar refinements */
.hh-top { padding: 10px 24px; }
.hh-search-bar {
  flex: 0 1 320px;
  background: white;
  border: 1px solid var(--g2);
  border-radius: 6px;
  padding: 7px 12px;
  max-width: none;
}
.hh-search-bar:hover { border-color: var(--g3); }
.hh-search-icn { color: #6B7494; font-size: 13px; }
.hh-search-placeholder { color: #6B7494; font-size: 13px; flex: 1; }

.hh-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hh-icon-btn {
  width: 34px; height: 34px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--g6);
  display: grid; place-items: center;
  position: relative;
  transition: background 140ms var(--ease);
  background: none;
}
.hh-icon-btn:hover { background: var(--off); }
.hh-icon-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.hh-top-name {
  font-size: 14px; font-weight: 600; color: var(--deep);
  margin: 0 4px 0 8px;
}

/* Sub-tabs row */
.hh-tabs {
  display: flex; gap: 24px;
  padding: 0 24px;
  background: white;
  border-bottom: 1px solid var(--g1);
}
.hh-tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--g5);
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.hh-tab.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  font-weight: 600;
}
.hh-tab:hover:not(.active) { color: var(--deep); }

/* Greeting */
.hh-greeting {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 6px;
}
.hh-greet-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  display: grid; place-items: center;
  font-size: 28px;
}
.hh-greeting h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--deep);
}

/* Two-column layout */
.hh-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 6px;
}
@media (max-width: 1080px) {
  .hh-cols { grid-template-columns: 1fr; gap: 24px; }
}
.hh-col { display: flex; flex-direction: column; gap: 12px; }
.hh-col-head {
  display: flex; align-items: baseline; justify-content: space-between;
}
.hh-col-head h3 {
  font-size: 22px; font-weight: 700;
  color: var(--deep); letter-spacing: -0.01em;
}
.hh-col-head .row { gap: 10px; align-items: center; }

.hh-link {
  color: #2563EB; text-decoration: none;
  font-size: 14px; font-weight: 500; cursor: pointer;
  background: none; padding: 0;
}
.hh-link:hover { text-decoration: underline; }
.hh-link-soft {
  background: white;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.hh-link-soft:hover { background: #EFF6FF; }

/* Appointments tabs */
.hh-appt-tabs {
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--g1);
}
.hh-appt-tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--g5);
  padding: 10px 0 12px;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  position: relative;
}
.hh-appt-tab.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  font-weight: 600;
}
.hh-appt-tab:hover:not(.active) { color: var(--deep); }
.hh-tab-num { color: var(--g4); font-weight: 500; margin-left: 2px; }
.hh-appt-tab.active .hh-tab-num { color: #2563EB; }
.hh-appt-content { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }

/* Week view — day-grouped appointments */
.hh-week-content { display: flex; flex-direction: column; gap: 18px; }
.hh-day-block { display: flex; flex-direction: column; gap: 6px; }
.hh-day-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g5);
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--g1);
}
.hh-day-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--g4);
  background: var(--off);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0;
}
.hh-appt-row-compact {
  padding: 10px 12px;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
}
.hh-appt-row-compact .hh-appt-time { font-size: 13px; }
.hh-appt-row-compact .hh-appt-name { font-size: 13.5px; }

/* Unconfirmed view — heads-up banner */
.hh-unconfirmed-banner {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-left: 4px solid #F59E0B;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #78350F;
  line-height: 1.55;
  margin-bottom: 6px;
}
.hh-unconfirmed-banner strong { color: #451A03; font-weight: 700; }

/* Greeting icon container — accommodate the SVG */
.hh-greet-icon {
  width: 56px; height: 56px;
  background: transparent !important;
  display: grid; place-items: center;
}
.hh-greet-icon svg { display: block; }

/* Accordion arrow */
.hh-acc-arrow {
  color: var(--g4);
  font-size: 14px;
}

/* Tasks panel */
.hh-tasks-tabs {
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--g1);
}
.hh-task-tab {
  font-size: 14px; font-weight: 500;
  color: var(--g5);
  padding: 10px 0 12px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.hh-task-tab.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  font-weight: 600;
}

.hh-task-accordion {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid var(--g1);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}
.hh-task-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--deep);
  border-bottom: 1px solid var(--g1);
  cursor: pointer;
}
.hh-task-row:hover { background: var(--off); }
.hh-task-row + .hh-task-empty {
  padding: 14px 18px;
  font-size: 13px; color: var(--g5);
  border-bottom: 1px solid var(--g1);
}
.hh-task-row:last-child, .hh-task-empty:last-child { border-bottom: none; }

/* Account setup pieces */
.hh-setup-logo { display: flex; justify-content: center; margin-bottom: 4px; }
.hh-setup-account {
  background: var(--off);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  margin: 8px 0;
}
.hh-setup-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
}
.hh-setup-k { color: var(--g5); font-weight: 600; }
.hh-setup-v { color: var(--deep); font-weight: 600; font-family: 'SF Mono', monospace; font-size: 12.5px; }

/* ════════════════════════════════════════════════════════════════
   GOOGLE APP ICONS (apps menu)
   ════════════════════════════════════════════════════════════════ */
.gh-app-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
}
.gh-icn-account { background: #E8EAED !important; color: #5F6368 !important; box-shadow: none; }
.gh-icn-maps { background: linear-gradient(135deg, #34A853, #4285F4); color: #EA4335; font-size: 18px; }
.gh-icn-youtube { background: #FF0000; color: white; font-size: 12px; padding-left: 2px; }
.gh-icn-play { background: linear-gradient(135deg, #4285F4 0%, #FBBC04 50%, #EA4335 100%); }
.gh-icn-news { background: #4285F4; }
.gh-icn-meet { background: #00897B; font-size: 14px; }
.gh-icn-chat { background: #00A47C; font-size: 14px; }
.gh-icn-contacts { background: #4285F4; font-size: 14px; }
.gh-icn-drive { background: white; box-shadow: inset 0 0 0 1px #E8EAED; }
.gh-icn-calendar {
  background: white;
  color: #4285F4;
  font-weight: 800;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px #E8EAED;
  position: relative;
  padding-top: 4px;
}
.gh-icn-calendar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: #4285F4;
  border-radius: 8px 8px 0 0;
}
.gh-icn-translate { background: #4285F4; font-size: 14px; }
.gh-icn-photos { background: linear-gradient(135deg, #4285F4, #34A853 33%, #FBBC04 66%, #EA4335); font-size: 14px; }
.gh-icn-docs { background: #4285F4; font-size: 12px; }
.gh-icn-sheets { background: #0F9D58; font-size: 14px; }
.gh-icn-slides { background: #F4B400; color: white; }
.gh-icn-keep { background: #FBBC04; font-size: 14px; }
.gh-icn-gmail { background: white; box-shadow: inset 0 0 0 1px #E8EAED; padding: 6px; }
.gh-icn-gmail svg { display: block; }

.gh-apps-foot {
  text-align: center;
  font-size: 12px; color: #1A73E8;
  padding: 12px 8px 6px;
  border-top: 1px solid #E8EAED;
  margin-top: 6px;
  cursor: pointer;
}
.gh-apps-foot:hover { text-decoration: underline; }
.gh-apps-menu { width: 320px; max-height: 460px; overflow: auto; }
.gh-apps-grid { gap: 2px; }

@media (max-width: 720px) {
  .sim-webmail { grid-template-columns: 1fr; }
  .wm-side { display: none; }
  .wm-row { grid-template-columns: 140px 1fr; gap: 10px; }
  .wm-time { display: none; }
  .gh-logo { font-size: 64px; }
  .gh-apps-menu { right: 12px; top: 52px; width: 280px; }
  .gh-search { width: 90%; }
  .sim-hh { grid-template-columns: 1fr; }
  .hh-side { display: none; }
  .hh-widgets { grid-template-columns: 1fr; }
  .hh-week-bars .hh-bar { height: 70px; }
  .hh-chat { grid-template-columns: 1fr; }
  .hh-chat-list { display: none; }
  .hh-ct-head, .hh-ct-row { grid-template-columns: 1.6fr 1fr 0.8fr; }
  .hh-ct-head span:nth-child(3), .hh-ct-head span:nth-child(4),
  .hh-ct-row span:nth-child(3), .hh-ct-row span:nth-child(4) { display: none; }
}

/* ── Mobile tweaks ───────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --base: 17px; }
  .topbar-inner { gap: 12px; padding: 0 16px; }
  .brand-text { display: none; }
  .chapter-meta { gap: 8px; }
  .stage { padding: 20px 16px; }
  .hero { padding: 36px 24px; border-radius: 18px; }
  .footer { padding: 0 12px; }
  .footer-status { display: none; }
  .footer-btn { padding: 0 18px; min-height: 48px; }
  .footer-btn-next { padding: 0 22px; }
  .sim-gmail { grid-template-columns: 1fr; }
  .sim-gmail-side { display: none; }
  .sim-healthie { grid-template-columns: 1fr; }
  .sim-h-side { display: none; }
}
