/* tab-tour.css — Per-tab feature discovery tablet modals
   All viewports use an inset, centred modal.
   ─────────────────────────────────────────────────────────────── */

/* ── Overlay ──────────────────────────────────────────── */
#tab-tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 40, 0.65);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

#tab-tour-overlay.tt-visible {
  opacity: 1;
}

/* ── Sheet ────────────────────────────────────────────── */
.tt-sheet {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 28px;
  width: min(560px, 100%);
  max-width: 560px;
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(60px);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow: -16px 28px 80px rgba(35, 22, 32, 0.28), 0 4px 18px rgba(35, 22, 32, 0.1);
}

.tt-sheet-up {
  transform: translateY(0) !important;
}

.tt-sheet::before { display:none; }

/* ── Header ───────────────────────────────────────────── */
.tt-header {
  padding: 16px 20px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}

.tt-header-emoji {
  display: none; /* removed — header is text-only */
}

.tt-header-text {
  flex: 1;
  padding-right: 44px; /* space for close btn */
}

.tt-title {
  margin: 0 0 3px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.tt-intro {
  margin: 0;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.tt-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.40);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.tt-close-btn:hover {
  background: rgba(0, 0, 0, 0.45);
  transform: scale(1.08);
}

/* ── Full Prinda Guides picker ───────────────────────────────────────────── */
.pg-picker-overlay { box-sizing:border-box; }
.pg-picker-shell {
  width:min(480px,100%);
  max-height:calc(100dvh - 24px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--border,#e2e8f0);
  border-radius:28px;
  background:var(--surface,var(--card-bg,#fff));
  box-shadow:-16px 28px 80px rgba(35,22,32,.28),0 4px 18px rgba(35,22,32,.1);
}
.pg-picker-header {
  min-height:88px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  position:relative;
  border-radius:27px 27px 0 0;
  background-color:#2878c8;
  background-image:linear-gradient(168deg,#1f6fd6 0%,#3f8fe8 55%,#7cc0f4 100%);
}
.pg-picker-heading { width:100%;min-width:0;padding:0 52px;text-align:center; }
.pg-picker-heading h3 { margin:0;color:#fff;font-size:1.05rem;font-weight:800; }
.pg-picker-close { position:absolute;right:18px;top:50%;transform:translateY(-50%);width:42px;height:42px;min-width:42px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.3);border-radius:13px;background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18);backdrop-filter:blur(8px);font:inherit;cursor:pointer; }
.pg-picker-close:hover { background:rgba(255,255,255,.25); }
.pg-picker-body { padding:12px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overscroll-behavior:contain;background:var(--bg2,#f8fafc); }
.pg-picker-section-label { padding:6px 4px 2px;color:var(--text-muted,#718096);font-size:.64rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase; }
.pg-guide-row { width:100%;min-height:62px;padding:10px 12px 10px 16px;display:flex;align-items:center;gap:12px;border:1px solid var(--border,#e2e8f0);border-radius:15px;background:var(--surface,#fff);color:var(--text,#263746);font:inherit;text-align:left;cursor:pointer;box-shadow:0 8px 26px rgba(41,31,39,.04);transition:border-color .15s,transform .15s,background .15s; }
.pg-guide-row:hover { border-color:color-mix(in srgb,#e04a58 32%,var(--border,#e2e8f0));background:color-mix(in srgb,#fff1f2 35%,var(--surface,#fff));transform:translateY(-1px); }
.pg-guide-copy { flex:1;min-width:0; }
.pg-guide-copy strong { display:block;color:var(--text,#263746);font-size:.86rem;line-height:1.25; }
.pg-guide-copy span { display:block;margin-top:3px;color:var(--text-muted,#718096);font-size:.72rem;line-height:1.3; }
.pg-guide-chevron { color:#c8848e;font-size:1.15rem; }
.pg-picker-reset-wrap { margin-top:4px;padding:10px 4px 2px;border-top:1px solid var(--border,#e2e8f0);text-align:center; }
.pg-picker-reset { min-height:42px;padding:8px 12px;border:0;border-radius:12px;background:transparent;color:var(--text-muted,#718096);font:inherit;font-size:.75rem;cursor:pointer; }
.pg-picker-reset:hover { background:var(--surface,#fff);color:var(--text,#263746); }

/* ── Body ────────────────────────────────────────────── */
.tt-body {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0 4px;
  -webkit-overflow-scrolling: touch;
}

/* ── Feature list — vertical rows ────────────────────── */
.tt-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Feature row ─────────────────────────────────────── */
.tt-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border, #f1f5f9);
  transition: background 0.12s;
  cursor: default;
}

.tt-feature:last-child {
  border-bottom: none;
}

.tt-feature:hover {
  background: var(--hover-bg, #fafafa);
}

.tt-feature-icon {
  font-size: 1.55rem;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-top: 2px;
}

.tt-feature-body {
  flex: 1;
  min-width: 0;
}

.tt-feature-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.25;
  margin-bottom: 3px;
}

.tt-feature-desc {
  font-size: 0.79rem;
  color: var(--muted, #64748b);
  line-height: 1.45;
}

/* ── Footer ──────────────────────────────────────────── */
.tt-footer {
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border, #e2e8f0);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* tt-btn-primary kept for backwards compat */
.tt-btn-primary {
  background: var(--blue, #6C3CE1);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: filter 0.15s;
}

.tt-btn-primary:hover {
  filter: brightness(1.1);
}

/* Single dismiss button — colour injected inline per-tour via style attribute */
.tt-btn-ghost {
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 32px;
  min-height: 44px;
  border-radius: 24px;
  transition: filter 0.15s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.tt-btn-ghost:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HomeChipWizard — spotlight wizard for the home location & weather chips
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Overlay — transparent click-catcher; dark effect comes from highlight ring only ── */
#hcw-overlay {
  position: fixed;
  inset: 0;
  background: transparent; /* NO background — highlight ring box-shadow darkens everything */
  /* Must create a stacking context above the Weather modal (99999). Child
     z-index values cannot escape a lower parent stacking context. */
  z-index: 100100;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: all;
  /* Prevent the page behind from scrolling when the wizard is open */
  touch-action: none;
  overscroll-behavior: none;
}

#hcw-overlay.hcw-visible {
  opacity: 1;
}

/* ── Animated arrow — points up at the highlighted button ────────────────── */
#hcw-arrow {
  position: fixed;
  z-index: 100001; /* above highlight ring */
  pointer-events: none;
  /* JS sets left/top; transform centres it horizontally */
  transform: translateX(-50%);
  width: 36px;
  height: 50px;
  opacity: 0.95;
  animation: hcw-arrow-bounce 1.2s ease-in-out infinite;
  /* Outer CSS glow on top of the SVG inner glow filter */
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.80))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
}

#hcw-arrow svg {
  width: 100%;
  height: 100%;
}

@keyframes hcw-arrow-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.92; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1.00; }
}

/* Hero Spotlight: arrow sits above the large hero and points down into it. */
#hcw-arrow.hcw-arrow--down {
  animation-name: hcw-arrow-bounce-down;
}
@keyframes hcw-arrow-bounce-down {
  0%, 100% { transform: translateX(-50%) rotate(180deg) translateY(0); opacity: .92; }
  50% { transform: translateX(-50%) rotate(180deg) translateY(6px); opacity: 1; }
}

/* ── Highlight ring — the ONLY source of darkness; punches a lit box around the button ── */
#hcw-highlight {
  position: fixed;
  /*
   * Layer 1: dark vignette — 0.45 opacity so page context is still visible
   * Layer 2: thick bright white border ring
   * Layer 3: inner glow (tight)
   * Layer 4: outer glow (wide, diffuse) — makes it very obvious
   */
  box-shadow:
    0 0 0 9999px rgba(8, 12, 30, 0.45),
    0 0 0 4px rgba(255, 255, 255, 1.00),
    0 0 0 8px rgba(255, 255, 255, 0.40),
    0 0 32px 12px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 99999;
  animation: hcw-pulse 1.8s ease-in-out infinite;
}

@keyframes hcw-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 9999px rgba(8, 12, 30, 0.45),
      0 0 0 4px rgba(255, 255, 255, 1.00),
      0 0 0 8px rgba(255, 255, 255, 0.40),
      0 0 32px 12px rgba(255, 255, 255, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 9999px rgba(8, 12, 30, 0.45),
      0 0 0 4px rgba(255, 255, 255, 1.00),
      0 0 0 12px rgba(255, 255, 255, 0.55),
      0 0 48px 18px rgba(255, 255, 255, 0.75);
  }
}

/* ── Nav-step highlight — stronger coloured glow for small bottom-nav buttons ── */
/* Applied via JS (highlight.classList.add('hcw-highlight--nav')) for targetSelector steps */
#hcw-highlight.hcw-highlight--nav {
  animation: hcw-pulse-nav 1.4s ease-in-out infinite;
}

@keyframes hcw-pulse-nav {
  0%, 100% {
    box-shadow:
      0 0 0 9999px rgba(8, 12, 30, 0.62),   /* deeper vignette — nav bar context */
      0 0 0 3px  rgba(255, 255, 255, 1.00),  /* crisp white ring */
      0 0 0 7px  rgba(224, 74, 88, 0.70),    /* coloured inner halo */
      0 0 24px 10px rgba(224, 74, 88, 0.55), /* coloured mid glow */
      0 0 48px 20px rgba(255, 140, 105, 0.40); /* wide warm outer bloom */
  }
  50% {
    box-shadow:
      0 0 0 9999px rgba(8, 12, 30, 0.62),
      0 0 0 3px  rgba(255, 255, 255, 1.00),
      0 0 0 10px rgba(224, 74, 88, 0.85),
      0 0 32px 16px rgba(224, 74, 88, 0.70),
      0 0 64px 28px rgba(255, 140, 105, 0.55);
  }
}

/* ── Card — floating tablet, centred with margin all around ──────────────── */
#hcw-card {
  position: fixed;
  /*
   * Sit in the lower-middle of the screen.
   * top:50% + translateY(-10%) keeps it visible above the safe-area/home bar
   * on all devices — never clips at the bottom.
   */
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: calc(100% - 32px);   /* 16px margin each side */
  max-width: 440px;
  z-index: 100000;
  background: var(--card-bg, #fff);
  border-radius: 20px;         /* fully rounded on all corners */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 120px); /* never taller than viewport minus margins */
  /* Scale + fade in from slightly small */
  transform: translateX(-50%) translateY(-10%) scale(0.94);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.20s ease;
}

#hcw-card.hcw-card-up {
  transform: translateX(-50%) translateY(-10%) scale(1);
  opacity: 1;
}

/* ── No drag handle — floating card doesn't need one ─────────────────────── */
.hcw-card-handle {
  display: none;
}

/* ── Card header (gradient) ───────────────────────────────────────────────── */
.hcw-card-header {
  padding: 16px 52px 14px 16px; /* right padding leaves room for close btn */
  position: relative;
  flex-shrink: 0;
  text-align: center;
}

.hcw-card-header-text {
  /* centred within the header — close btn is absolute so doesn't affect flow */
}

.hcw-title {
  margin: 0 0 5px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
}

.hcw-intro {
  margin: 0;
  font-size: 0.80rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  text-align: center;
}

/* ── Close button ─────────────────────────────────────────────────────────── */
.hcw-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.hcw-close-btn:hover {
  background: rgba(0, 0, 0, 0.42);
  transform: scale(1.08);
}

/* ── Card body (scrollable bullet list) ───────────────────────────────────── */
.hcw-card-body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

/* ── Bullet rows ──────────────────────────────────────────────────────────── */
.hcw-bullets {
  display: flex;
  flex-direction: column;
}

.hcw-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border, #f1f5f9);
}

.hcw-bullet:last-child {
  border-bottom: none;
}

.hcw-bullet-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  width: 30px;
  text-align: center;
  margin-top: 1px;
}

.hcw-bullet-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hcw-bullet-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.25;
}

.hcw-bullet-desc {
  font-size: 0.77rem;
  color: var(--muted, #64748b);
  line-height: 1.45;
}

/* ── Card footer ──────────────────────────────────────────────────────────── */
.hcw-card-footer {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Step dot indicators ──────────────────────────────────────────────────── */
.hcw-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hcw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border, #cbd5e1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hcw-dot--active {
  transform: scale(1.3);
  /* background set inline per-step via accentColor */
}

/* Skip link */
.hcw-skip-btn {
  background: none;
  border: none;
  color: var(--muted, #94a3b8);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 8px 4px;
  min-height: 44px;
  font-family: inherit;
  transition: color 0.15s;
}

.hcw-skip-btn:hover {
  color: var(--text, #475569);
}

/* Next / Got it button */
.hcw-next-btn {
  border: none;
  color: #fff;
  font-size: 0.90rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 24px;
  min-height: 44px;
  border-radius: 22px;
  transition: filter 0.15s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.hcw-next-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #hcw-overlay,
  #hcw-card,
  #hcw-highlight {
    transition: none;
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPOTLIGHT WIZARD v2 — shared premium design (July 2026)
   Used by App Tour, My People, Gatherings, Weather and Person Card guides.
   Logic/IDs remain shared, so every spotlight receives the same visual system.
   ═══════════════════════════════════════════════════════════════════════════ */

#hcw-overlay {
  --hcw-peach: #e04a58;
  --hcw-coral: #ff8c69;
  --hcw-ink: #241b38;
}

/* Branded spotlight: crisper aperture with a warm outer bloom. */
#hcw-highlight {
  border: 1px solid rgba(255,255,255,.95);
  box-shadow:
    0 0 0 9999px rgba(10, 8, 24, .58),
    0 0 0 3px rgba(255,255,255,.98),
    0 0 0 7px rgba(255,140,105,.52),
    0 0 28px 11px rgba(224,74,88,.52),
    0 0 54px 22px rgba(255,140,105,.26);
  animation: hcw-premium-pulse 1.9s ease-in-out infinite;
}
#hcw-highlight.hcw-highlight--nav {
  animation: hcw-premium-pulse 1.55s ease-in-out infinite;
}
@keyframes hcw-premium-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 9999px rgba(10, 8, 24, .58),
      0 0 0 3px rgba(255,255,255,.98),
      0 0 0 7px rgba(255,140,105,.48),
      0 0 26px 10px rgba(224,74,88,.46),
      0 0 50px 20px rgba(255,140,105,.22);
  }
  50% {
    box-shadow:
      0 0 0 9999px rgba(10, 8, 24, .58),
      0 0 0 3px rgba(255,255,255,1),
      0 0 0 10px rgba(255,140,105,.7),
      0 0 38px 16px rgba(224,74,88,.68),
      0 0 68px 29px rgba(255,140,105,.38);
  }
}

#hcw-arrow {
  width: 40px;
  height: 54px;
  filter:
    drop-shadow(0 0 4px rgba(255,255,255,.95))
    drop-shadow(0 0 10px rgba(255,140,105,.9))
    drop-shadow(0 0 20px rgba(224,74,88,.65));
}

/* Floating guide card */
#hcw-card {
  width: min(calc(100% - 28px), 470px);
  max-width: 470px;
  max-height: min(calc(100dvh - 88px), 610px);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,249,255,.98));
  box-shadow:
    0 30px 80px rgba(8, 6, 24, .38),
    0 10px 28px rgba(41, 23, 68, .2),
    inset 0 1px 0 rgba(255,255,255,.9);
  isolation: isolate;
}
#hcw-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 54%, rgba(255,140,105,.08), transparent 28%),
    radial-gradient(circle at 94% 75%, rgba(108,60,225,.07), transparent 30%);
}

/* Rich branded header while retaining each step's inline gradient. */
.hcw-card-header {
  min-height: 104px;
  padding: 24px 58px 19px 22px;
  overflow: hidden;
  box-sizing: border-box;
  text-align: left;
}
.hcw-card-header::before,
.hcw-card-header::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.hcw-card-header::before {
  width: 150px;
  height: 150px;
  right: -74px;
  top: -96px;
  border: 24px solid rgba(255,255,255,.10);
}
.hcw-card-header::after {
  width: 84px;
  height: 84px;
  left: -44px;
  bottom: -61px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 38px rgba(255,255,255,.12);
}
.hcw-card-header-text {
  position: relative;
  z-index: 1;
  text-align: left;
}
.hcw-title {
  margin-bottom: 5px;
  font-size: clamp(1.2rem, 4vw, 1.42rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-align: left;
  text-shadow: 0 2px 10px rgba(68,18,35,.18);
}
.hcw-intro {
  max-width: 350px;
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  line-height: 1.38;
  text-align: left;
}
.hcw-close-btn {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(40,15,36,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 4px 14px rgba(45,14,36,.16);
  backdrop-filter: blur(8px);
}
.hcw-close-btn:active { transform: scale(.92); }

/* Compact header-level persistence controls shared by every Spotlight guide. */
.hcw-card-header { padding-right: 150px; }
.hcw-header-actions {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hcw-header-action {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 9px;
  background: rgba(40,15,36,.16);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  font: 750 .64rem/1 inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.hcw-header-action:hover { background: rgba(40,15,36,.3); }
.hcw-header-action:active { transform: scale(.95); }
.hcw-header-action--dont { background: rgba(40,15,36,.24); }

/* Feature points become compact mini-cards instead of plain divided rows. */
.hcw-card-body {
  padding: 10px 10px 4px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(108,60,225,.22) transparent;
}
.hcw-bullets { gap: 8px; }
.hcw-bullet {
  position: relative;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid rgba(108,60,225,.10);
  border-bottom: 1px solid rgba(108,60,225,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 4px 14px rgba(45,29,76,.045), inset 0 1px 0 rgba(255,255,255,.8);
  box-sizing: border-box;
}
.hcw-bullet:last-child { border-bottom: 1px solid rgba(108,60,225,.10); }
.hcw-bullet-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin: 0;
  border: 1px solid rgba(224,74,88,.13);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,140,105,.16), rgba(108,60,225,.09));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  font-size: 1.3rem;
}
.hcw-bullet-label {
  color: var(--hcw-ink, #241b38);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.24;
}
.hcw-bullet-desc {
  color: var(--muted, #687086);
  font-size: .75rem;
  line-height: 1.42;
}

/* Clear progress and stronger primary action. */
.hcw-card-footer {
  min-height: 64px;
  padding: 9px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 0;
  background: rgba(255,255,255,.76);
  box-shadow: 0 -8px 24px rgba(41,23,68,.045);
  backdrop-filter: blur(10px);
}
.hcw-card-footer .hcw-dots:first-child { margin-left: 0; }
.hcw-back-btn {
  min-width: 68px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(108,60,225,.10);
  border-radius: 11px;
  background: rgba(108,60,225,.045);
  color: #6f6680;
  font: 750 .77rem/1 inherit;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.hcw-back-btn:hover:not(:disabled) { background: rgba(108,60,225,.1); color: #4f3c72; }
.hcw-back-btn:active:not(:disabled) { transform: scale(.96); }
.hcw-back-btn:disabled { opacity: .3; cursor: default; }
.hcw-dots {
  gap: 4px;
  max-width: 42%;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(108,60,225,.08);
  border-radius: 999px;
  background: rgba(108,60,225,.045);
}
.hcw-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: #d8d2e4;
}
.hcw-dot--active {
  width: 15px;
  flex-basis: 15px;
  border-radius: 999px;
  transform: none;
  box-shadow: 0 2px 7px rgba(224,74,88,.3);
}
.hcw-skip-btn {
  min-width: 54px;
  padding: 8px 7px;
  border-radius: 10px;
  color: #8d849e;
  font-size: .78rem;
  font-weight: 700;
}
.hcw-skip-btn:hover { background: rgba(108,60,225,.06); color: #5c4c78; }
.hcw-next-btn {
  min-width: 92px;
  padding: 10px 19px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 13px;
  font-size: .86rem;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(224,74,88,.24) !important;
}
.hcw-next-btn:hover {
  filter: brightness(1.04) saturate(1.05);
  transform: translateY(-1px);
}
.hcw-next-btn:active { transform: scale(.97); }
.hcw-close-btn:focus-visible,
.hcw-skip-btn:focus-visible,
.hcw-next-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(108,60,225,.55) !important;
}

@media (max-width: 420px) {
  #hcw-card {
    width: calc(100% - 18px);
    border-radius: 20px;
    max-height: calc(100dvh - 44px);
  }
  .hcw-card-header { min-height: 96px; padding: 21px 51px 16px 17px; }
  .hcw-title { font-size: 1.18rem; }
  .hcw-card-body { padding: 8px 8px 3px; }
  .hcw-bullet { min-height: 66px; padding: 9px; gap: 9px; }
  .hcw-bullet-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; font-size: 1.18rem; }
  .hcw-bullet-label { font-size: .83rem; }
  .hcw-bullet-desc { font-size: .71rem; }
  .hcw-card-footer { min-height: 58px; padding-left: 9px; padding-right: 9px; }
  .hcw-dots { max-width: 36%; padding-left: 6px; padding-right: 6px; gap: 3px; }
  .hcw-next-btn { min-width: 82px; padding-left: 14px; padding-right: 14px; }
}

@media (prefers-color-scheme: dark) {
  #hcw-card {
    border-color: rgba(255,255,255,.13);
    background: linear-gradient(180deg, rgba(31,27,44,.99), rgba(24,21,35,.99));
  }
  .hcw-bullet {
    border-color: rgba(255,255,255,.09);
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  }
  .hcw-bullet:last-child { border-bottom-color: rgba(255,255,255,.09); }
  .hcw-bullet-label { color: #f5f2fb; }
  .hcw-bullet-desc { color: #b0a9bc; }
  .hcw-card-footer { background: rgba(22,19,32,.84); }
  .hcw-dots { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.045); }
  .hcw-dot { background: #5e566c; }
  .hcw-skip-btn { color: #aaa2b7; }
}

[data-theme='dark'] #hcw-card {
  border-color: rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(31,27,44,.99), rgba(24,21,35,.99));
}
[data-theme='dark'] .hcw-bullet {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
}
[data-theme='dark'] .hcw-bullet-label { color: #f5f2fb; }
[data-theme='dark'] .hcw-bullet-desc { color: #b0a9bc; }
[data-theme='dark'] .hcw-card-footer { background: rgba(22,19,32,.84); }

@media (prefers-reduced-motion: reduce) {
  #hcw-arrow { animation: none !important; }
  #hcw-highlight { animation: none !important; }
  .hcw-next-btn,
  .hcw-close-btn,
  .hcw-dot { transition: none !important; }
}

/* ── Spotlight contextual-header refinement ──────────────────────────────── */
.hcw-card-header {
  min-height:68px;
  padding:14px 62px 14px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background-color:#2878c8;
  background-image:linear-gradient(168deg,#1f6fd6 0%,#3f8fe8 55%,#7cc0f4 100%);
}
.hcw-card-header::before,.hcw-card-header::after { display:none; }
.hcw-card-header-text { width:100%;text-align:center; }
.hcw-title { margin:0;font-size:1.15rem;line-height:1.2;text-align:center; }
.hcw-card-header .hcw-intro,.hcw-header-actions { display:none; }
.hcw-card-body { padding:12px 10px 4px; }
.hcw-card-header .hcw-close-btn {
  top:50%;
  right:12px;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  min-width:42px;
  min-height:42px;
  border-radius:13px;
  background:rgba(255,255,255,.14);
}
.hcw-card-header .hcw-close-btn:hover { transform:translateY(-50%);background:rgba(255,255,255,.25); }
.hcw-card-header .hcw-close-btn:active { transform:translateY(-50%) scale(.93); }
@media (max-width:420px) {
  .hcw-card-header { min-height:64px;padding:12px 60px 12px 16px; }
  .hcw-title { font-size:1.08rem; }
}
.hcw-bullet-label { font-size:.95rem;font-weight:850; }
.hcw-bullet-desc { font-size:.8125rem;font-weight:700;line-height:1.45; }
