/* Lockett Lesson Tools 4.0 — app journey
   Mobile: full-screen, one card, one Continue.
   Desktop (≥960px): cleaned centered card, same sequence. */

:root {
  --lhp-navy: #02426E;
  --lhp-navy-deep: #0A3756;
  --lhp-ink: #073653;
  --lhp-green: #3A6B16;
  --lhp-green-mid: #4A791E;
  --lhp-green-soft: #80AB52;
  --lhp-bar: #D7E8C2;
  --lhp-cream: #FCFBF9;
  --lhp-page: #F4F1EB;
  --lhp-muted: #6B7A84;
  --lhp-line: #E3E6E3;
  --lhp-white: #ffffff;
  --lhp-shadow: 0 10px 36px rgba(7, 54, 83, 0.08);
  --lhp-radius: 1.35rem;
  --lhp-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --lhp-kb: 0px;
  --lhp-chrome: 3.4rem;
}

.lhp-app-active {
  background: var(--lhp-page);
  color: var(--lhp-ink);
  font-family: var(--lhp-sans);
  font-size: 1.125rem; /* 18px */
  line-height: 1.55;
  margin: 0;
}
.lhp-app-active .lhp-header,
.lhp-app-active .lhp-sidebar,
.lhp-app-active .lhp-wave,
.lhp-app-active .lhp-contents-toggle,
.lhp-app-active .lhp-crumb,
.lhp-app-active .lhp-progress-strip,
.lhp-app-active footer,
.lhp-app-active .site-header,
.lhp-app-active .site-footer,
.lhp-app-active #masthead,
.lhp-app-active #colophon { display: none !important; }

.lhp-skip {
  position: absolute; left: -999px; top: 0;
}
.lhp-skip:focus { left: 1rem; top: 1rem; z-index: 200; background: #fff; padding: 0.5rem 1rem; }

.lhp-sr, .lhp-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

/* Desktop header is hidden on mobile */
.lhp-app-desk-header { display: none; }

.lhp-app {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--lhp-page);
  padding-top: env(safe-area-inset-top);
}

.lhp-lesson-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-height: 100dvh;
  min-height: 100svh;
  padding-top: env(safe-area-inset-top);
}

/* Chrome: home + progress + safety */
.lhp-app-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem 0.45rem;
  background: var(--lhp-page);
  z-index: 8;
}
.lhp-app.is-welcome .lhp-app-chrome { visibility: hidden; height: 0; padding: 0; overflow: hidden; }
.lhp-app.is-welcome .lhp-app-actions { display: none; }
.lhp-app.is-milestone .lhp-app-actions { display: none; }

.lhp-app-home,
.lhp-sheet-close,
.lhp-map-close {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--lhp-navy);
  border-radius: 999px; cursor: pointer; padding: 0;
}
.lhp-app-home svg, .lhp-sheet-close svg, .lhp-map-close svg { width: 1.45rem; height: 1.45rem; }
.lhp-app-home:hover, .lhp-app-home:focus-visible,
.lhp-sheet-close:hover, .lhp-sheet-close:focus-visible { background: rgba(2,66,110,0.08); outline: none; }

.lhp-app-progress { flex: 1; display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.lhp-app-progress-track {
  flex: 1; height: 6px; background: var(--lhp-bar); border-radius: 99px; overflow: hidden;
}
.lhp-app-progress-fill {
  display: block; height: 100%; width: 0%; background: var(--lhp-green-mid);
  border-radius: 99px;
  transition: width 0.35s ease;
}
.lhp-app-progress-pct {
  flex: 0 0 auto;
  font-weight: 700; font-size: 0.95rem; color: var(--lhp-green-mid);
  min-width: 2.6rem; text-align: right;
}
.lhp-app-safety-btn {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 0.2rem;
  border: 0; background: none;
  color: var(--lhp-muted);
  font: inherit; font-size: 0.85rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 0.15em;
  cursor: pointer;
}

/* Stage */
.lhp-app-stage {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.lhp-app-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.4rem 1.15rem 1.2rem;
  display: none;
  background: var(--lhp-page);
}
.lhp-app-screen.is-active { display: block; }
.lhp-app-screen:focus { outline: none; }
.lhp-app-screen.is-enter-forward { animation: lhp-in-right 0.32s ease; }
.lhp-app-screen.is-enter-back { animation: lhp-in-left 0.32s ease; }
@keyframes lhp-in-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes lhp-in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes lhp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lhp-app-screen.is-enter-forward,
  .lhp-app-screen.is-enter-back { animation: lhp-fade 0.18s ease; }
  .lhp-app-progress-fill, .lhp-milestone-badge { transition: none; }
}

/* Fixed bottom action */
.lhp-app-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem calc(0.75rem + env(safe-area-inset-bottom) + var(--lhp-kb));
  background: var(--lhp-cream);
  box-shadow: 0 -8px 24px rgba(7, 54, 83, 0.06);
  z-index: 9;
}
.lhp-app-continue,
.lhp-welcome-cta,
.lhp-btn-next-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff !important;
  background: var(--lhp-green) !important;
  border: 0 !important;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(14, 58, 81, 0.12);
}
.lhp-app-continue svg,
.lhp-welcome-cta svg { width: 1.2rem; height: 1.2rem; margin-left: 0.4rem; }
.lhp-app-continue:hover, .lhp-app-continue:focus-visible,
.lhp-welcome-cta:hover, .lhp-welcome-cta:focus-visible,
.lhp-btn-next-seg:hover, .lhp-btn-next-seg:focus-visible {
  background: var(--lhp-green-mid) !important;
  outline: 3px solid var(--lhp-navy);
  outline-offset: 2px;
}
.lhp-app-continue.is-disabled,
.lhp-app-continue:disabled,
.lhp-app-continue[aria-disabled="true"] {
  background: #8AA08A !important;
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}
.lhp-app-continue.is-disabled:hover,
.lhp-app-continue:disabled:hover,
.lhp-app-continue[aria-disabled="true"]:hover,
.lhp-app-continue.is-disabled:focus-visible,
.lhp-app-continue:disabled:focus-visible {
  background: #8AA08A !important;
  outline: none;
}
.lhp-btn-next-seg.is-locked,
.lhp-btn-next-seg[aria-disabled="true"] {
  background: #8AA08A !important;
  cursor: default;
  pointer-events: none;
}
.lhp-app-back {
  order: 2;
  min-height: 48px;
  border: 0; background: none !important;
  color: var(--lhp-navy) !important;
  font: inherit; font-weight: 700;
  text-decoration: underline; text-underline-offset: 0.18em;
  cursor: pointer;
}
.lhp-app-back[hidden] { display: none !important; }

/* Welcome card — Charles's Screen A */
.lhp-type-welcome { padding: 0.7rem 1rem 1.25rem; }
.lhp-welcome-card {
  background: var(--lhp-white);
  border-radius: var(--lhp-radius);
  padding: 1.05rem 1.05rem 1.25rem;
  box-shadow: var(--lhp-shadow);
}
.lhp-welcome-brand { display: flex; align-items: center; gap: 0.6rem; }
.lhp-welcome-leaf { color: var(--lhp-green-mid); flex: 0 0 auto; }
.lhp-welcome-leaf svg { width: 1.7rem; height: 1.7rem; display: block; }
.lhp-welcome-names { display: flex; flex-direction: column; min-width: 0; }
.lhp-welcome-program {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lhp-navy);
  line-height: 1.2;
}
.lhp-welcome-course { font-size: 1rem; font-weight: 600; color: var(--lhp-navy); line-height: 1.2; }
.lhp-welcome-pct { margin-left: auto; font-weight: 700; color: var(--lhp-green-mid); font-size: 1.05rem; }
.lhp-welcome-bar { height: 5px; background: var(--lhp-bar); border-radius: 99px; margin: 0.65rem 0 0.9rem; overflow: hidden; }
.lhp-welcome-bar > span { display: block; height: 100%; background: var(--lhp-green-soft); border-radius: 99px; }
.lhp-welcome-photo {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: 1rem; display: block;
  margin: 0 0 0.95rem;
}
.lhp-welcome-kicker {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lhp-muted);
}
.lhp-welcome-title {
  margin: 0 0 0.65rem;
  text-align: center;
  font-family: var(--lhp-sans);
  font-weight: 800;
  font-size: clamp(1.7rem, 7vw, 2.05rem);
  line-height: 1.15;
  color: var(--lhp-navy);
  letter-spacing: -0.02em;
}
.lhp-welcome-body {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--lhp-ink);
}
.lhp-welcome-note {
  margin: 0 0 1.15rem;
  text-align: center;
  font-size: 1rem;
  color: var(--lhp-muted);
}
.lhp-welcome-cta { margin-top: 0.2rem; }

/* Screen typography */
.lhp-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lhp-green-mid);
}
.lhp-prompt, .lhp-app-screen h1.lhp-prompt {
  margin: 0 0 0.7rem;
  font-family: var(--lhp-sans);
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--lhp-navy);
  letter-spacing: -0.02em;
}
.lhp-prompt:focus, .lhp-app-screen h1.lhp-prompt:focus { outline: none; }
.lhp-app-screen p { margin: 0 0 0.85rem; }
.lhp-callout {
  margin: 0.9rem 0 1rem;
  padding: 0.75rem 0.9rem;
  background: #EAF2DC;
  border-left: 4px solid var(--lhp-green-mid);
  border-radius: 0 0.6rem 0.6rem 0;
  color: var(--lhp-navy);
  font-weight: 600;
}
.lhp-text-link, button.lhp-text-link {
  font: inherit; font-weight: 700;
  color: var(--lhp-green-mid);
  background: none; border: 0; padding: 0.4rem 0; min-height: 48px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 0.15em;
}
.lhp-listen[hidden], .lhp-listen.is-pending { display: none !important; }
.lhp-listen-label { display: block; font-weight: 700; color: var(--lhp-navy); margin: 0 0 0.4rem; }

/* Chips + fields */
.lhp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.lhp-chips button {
  min-height: 48px; padding: 0.45rem 0.95rem;
  font: inherit; font-weight: 700; color: var(--lhp-navy);
  background: #EAF2DC; border: 2px solid var(--lhp-navy);
  border-radius: 999px; cursor: pointer;
}
.lhp-chips button.is-selected,
.lhp-chips button:hover,
.lhp-chips button:focus-visible {
  background: var(--lhp-green-mid); color: #fff; border-color: var(--lhp-green-mid); outline: none;
}

/* Multi-select activity picker */
.lhp-pick-count {
  margin: 0 0 0.85rem;
  color: var(--lhp-muted);
  font-weight: 600;
}
.lhp-chips-multi {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
  width: 100%;
}
.lhp-chips-multi button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.75rem 1rem;
  text-align: left;
  border-radius: 1rem;
  background: #fff;
  border: 1.5px solid var(--lhp-line);
  box-shadow: 0 1px 2px rgba(7, 54, 83, 0.04);
}
.lhp-chips-multi button:hover,
.lhp-chips-multi button:focus-visible {
  background: #fff;
  color: var(--lhp-navy);
  border-color: var(--lhp-green-soft);
  outline: none;
}
.lhp-chips-multi button:focus-visible {
  outline: 3px solid rgba(74,121,30,0.35);
  outline-offset: 1px;
}
.lhp-chips-multi button.is-selected,
.lhp-chips-multi button.is-selected:hover,
.lhp-chips-multi button.is-selected:focus-visible {
  background: var(--lhp-green-mid);
  color: #fff;
  border-color: var(--lhp-green-mid);
}
.lhp-chips-multi button.is-selected::after {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 1.05rem;
  margin-left: 0.75rem;
  margin-bottom: 0.25rem;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}
.lhp-chips-multi button[data-add-own] {
  background: #fff;
  border-style: dashed;
  border-color: var(--lhp-navy);
  color: var(--lhp-navy);
}
.lhp-chips-multi button[data-add-own].is-selected,
.lhp-chips-multi button[data-add-own].is-selected:hover {
  background: #EAF2DC;
  color: var(--lhp-navy);
  border-style: solid;
  border-color: var(--lhp-green-mid);
}
.lhp-chips-multi button[data-add-own].is-selected::after { content: none; }
.lhp-chips-multi button.is-disabled,
.lhp-chips-multi button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}
.lhp-own-list { margin: 0 0 0.4rem; }
.lhp-own-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.lhp-own-row .lhp-own-input { flex: 1 1 auto; min-width: 0; }
.lhp-own-remove {
  flex: 0 0 auto;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--lhp-navy);
  background: #fff;
  border: 2px solid var(--lhp-navy);
  border-radius: 0.55rem;
  cursor: pointer;
}
.lhp-own-remove:hover, .lhp-own-remove:focus-visible {
  outline: 3px solid rgba(74,121,30,0.35);
  outline-offset: 1px;
}
.lhp-type-pick p { margin-bottom: 0.65rem; }
.lhp-type-pick .lhp-prompt { margin-bottom: 0.5rem; }
.lhp-type-pick .lhp-chips-multi { gap: 0.4rem; }
.lhp-type-pick .lhp-pick-count { margin: 0 0 0.55rem; }

.lhp-field { margin: 0 0 1.1rem; }
.lhp-field label { display: block; font-weight: 700; color: var(--lhp-navy); margin: 0 0 0.4rem; }
.lhp-app input[type="text"],
.lhp-app textarea,
.lhp-app input[type="time"] {
  width: 100%; font: inherit; color: var(--lhp-navy); background: #fff;
  border: 2px solid var(--lhp-navy); border-radius: 0.55rem;
  padding: 0.75rem 0.85rem; min-height: 48px; box-sizing: border-box;
}
.lhp-app textarea { min-height: 6.5rem; resize: vertical; }
.lhp-app input:focus, .lhp-app textarea:focus { outline: 3px solid rgba(74,121,30,0.35); outline-offset: 1px; }

/* Rating slider */
.lhp-slider { margin: 1.1rem 0 0.5rem; }
.lhp-slider-value {
  text-align: center;
  font-size: 3rem; font-weight: 800; color: var(--lhp-navy);
  line-height: 1; margin: 0 0 0.85rem;
}
.lhp-slider.is-empty .lhp-slider-value { color: var(--lhp-muted); font-weight: 650; font-size: 1.35rem; line-height: 3rem; }
.lhp-slider-input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 48px; background: transparent; margin: 0; padding: 0;
}
.lhp-slider-input::-webkit-slider-runnable-track {
  height: 8px; background: var(--lhp-bar); border-radius: 99px;
}
.lhp-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 48px; height: 48px; margin-top: -20px;
  border-radius: 50%; background: var(--lhp-green);
  border: 4px solid #fff; box-shadow: 0 2px 8px rgba(7,54,83,0.25);
  cursor: pointer;
}
.lhp-slider-input::-moz-range-track { height: 8px; background: var(--lhp-bar); border-radius: 99px; border: 0; }
.lhp-slider-input::-moz-range-thumb {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--lhp-green); border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(7,54,83,0.25); cursor: pointer;
}
.lhp-slider-ends {
  display: flex; justify-content: space-between; gap: 0.8rem;
  margin-top: 0.45rem; font-size: 0.98rem; font-weight: 600; color: var(--lhp-ink);
}
.lhp-slider-ticks {
  display: flex; justify-content: space-between;
  margin-top: 0.15rem; font-size: 0.8rem; color: var(--lhp-muted);
}

.lhp-goal-picks { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1rem; }
.lhp-goal-picks:empty { display: none; }
.lhp-goal-pick {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 48px; text-align: left; font: inherit; font-weight: 700;
  color: var(--lhp-navy); background: #fff;
  border: 2px solid var(--lhp-navy); border-radius: 0.8rem;
  padding: 0.7rem 0.9rem; cursor: pointer;
}
.lhp-goal-pick.is-selected, .lhp-goal-pick:hover, .lhp-goal-pick:focus-visible {
  background: #EAF2DC; border-color: var(--lhp-green-mid); outline: none;
}
.lhp-goal-score { margin-left: auto; color: var(--lhp-green-mid); }

.lhp-journal-questions { margin: 0 0 1rem; padding-left: 1.3rem; }
.lhp-journal-questions li { margin: 0 0 0.35rem; }

/* Calendar */
.lhp-add-to-calendar {
  background: #EAF2DC; border-radius: 0.9rem; padding: 0.95rem 1rem; margin: 1rem 0;
}
.lhp-cal-heading { margin: 0 0 0.35rem; font-weight: 700; color: var(--lhp-navy); }
.lhp-cal-help { margin: 0 0 0.8rem; }
.lhp-cal-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.7rem; }
.lhp-cal-time-label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; flex: 1; min-width: 9rem; }
.lhp-cal-ics, .lhp-app .lhp-btn, .lhp-summary-actions .lhp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.55rem 1.05rem;
  font: inherit; font-weight: 700; color: #fff;
  background: var(--lhp-green-mid); border: 2px solid var(--lhp-green-mid);
  border-radius: 999px; cursor: pointer; text-decoration: none;
}
.lhp-app .lhp-btn-secondary {
  color: var(--lhp-navy); background: #fff; border-color: var(--lhp-navy);
}
.lhp-cal-gcal { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--lhp-green-mid); }
.lhp-cal-status { margin: 0.55rem 0 0; min-height: 1.2em; }

/* Summary */
.lhp-summary-card { background: #fff; border-radius: 0.9rem; padding: 1rem 1.1rem; margin: 0 0 1rem; }
.lhp-summary-card dl { margin: 0; }
.lhp-summary-card dt {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--lhp-green-mid); margin: 0.7rem 0 0.15rem;
}
.lhp-summary-card dt:first-child { margin-top: 0; }
.lhp-summary-card dd { margin: 0; font-weight: 600; color: var(--lhp-navy); }
.lhp-summary-card .is-empty { font-weight: 500; color: var(--lhp-muted); font-style: italic; }
.lhp-summary-actions { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1rem; }
.lhp-privacy { font-size: 1rem; color: var(--lhp-ink); }

/* Milestone */
.lhp-type-milestone { padding-bottom: 2.2rem; }
.lhp-milestone { text-align: center; padding: 1rem 0 0.4rem; }
.lhp-milestone-badge {
  width: 5.4rem; height: 5.4rem; margin: 0.2rem auto 0.9rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #EAF2DC; color: var(--lhp-green);
  box-shadow: 0 0 0 6px rgba(74,121,30,0.12);
}
.lhp-milestone-badge svg { width: 2.6rem; height: 2.6rem; }
.lhp-app-screen.is-active .lhp-milestone-badge { animation: lhp-pop 0.55s ease; }
@keyframes lhp-pop { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
.lhp-milestone-kicker {
  margin: 0 0 0.35rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--lhp-green-mid);
}
.lhp-milestone-title {
  margin: 0 0 0.7rem; font-size: clamp(1.8rem, 6vw, 2.2rem);
  font-weight: 800; color: var(--lhp-navy); letter-spacing: -0.02em;
}
.lhp-milestone-body { font-size: 1.15rem; }
.lhp-milestone-actions { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.85rem 0 0.5rem; }
.lhp-next-seg-note, .lhp-disclaimer-short { text-align: center; color: var(--lhp-muted); margin: 0.45rem 0; }
.lhp-optional-link { padding-bottom: 0.4rem; }
.lhp-optional-link { text-align: center; margin-top: 0.8rem; }

/* Journey map — Charles's Screen B */
.lhp-map,
.lhp-map-list,
.lhp-map-list > li,
.lhp-map-row { box-sizing: border-box; }
.lhp-map {
  flex: 1; overflow-y: auto; background: var(--lhp-cream);
  padding: 1.15rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom));
  min-height: 100dvh;
}
.lhp-map[hidden] { display: none !important; }
.lhp-app.is-map .lhp-lesson-view { display: none; }
.lhp-map-head {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  margin: 0.15rem 0 1.25rem;
  text-align: center;
}
.lhp-map-head h1 {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  padding: 0 48px;
  font-size: 1.85rem; font-weight: 800; color: var(--lhp-navy); letter-spacing: -0.02em;
  line-height: 1.2;
}
.lhp-map-head h1:focus { outline: none; }
.lhp-map-sub {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0.3rem 0 0;
  padding: 0 48px;
  color: var(--lhp-muted); font-size: 1.1rem;
  text-align: center;
}
.lhp-map-close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  position: static;
  z-index: 1;
}
.lhp-map-close[hidden] { display: none !important; }
.lhp-map-close:hover, .lhp-map-close:focus-visible { background: rgba(2,66,110,0.08); outline: none; }
.lhp-map-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.7rem;
}
.lhp-map-list > li {
  margin: 0;
  width: 100%;
  display: block;
}
body .lhp-app .lhp-map-row,
.lhp-map-row {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box !important;
  min-height: 6.75rem;
  padding: 0.85rem 1rem;
  margin: 0 auto;
  gap: 0.9rem;
  border: 1.5px solid var(--lhp-line) !important;
  background: var(--lhp-white) !important;
  text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  text-decoration: none;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(7, 54, 83, 0.04);
}
.lhp-map-row:hover, .lhp-map-row:focus-visible {
  background: #fff;
  border-color: var(--lhp-green-soft) !important;
  outline: none;
}
.lhp-map-icon {
  flex: 0 0 auto; width: 2.7rem; height: 2.7rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--lhp-navy);
  background: #EEF1EF; border: 2px solid #D5DCE0;
}
.lhp-map-icon svg { width: 1.35rem; height: 1.35rem; }
.lhp-map-row.is-done .lhp-map-icon,
.lhp-map-row.is-current .lhp-map-icon {
  background: var(--lhp-green-mid); color: #fff; border-color: var(--lhp-green-mid);
}
.lhp-map-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.lhp-map-copy strong { font-weight: 700; color: var(--lhp-navy); font-size: 1.08rem; }
.lhp-map-copy span { color: var(--lhp-muted); font-size: 0.98rem; }
.lhp-map-status { flex: 0 0 auto; color: #C5CED3; position: relative; width: 1.8rem; height: 1.8rem; }
.lhp-status-check { display: none; color: var(--lhp-green-mid); }
.lhp-map-row.is-done .lhp-status-dot { display: none; }
.lhp-map-row.is-done .lhp-status-check { display: block; }
.lhp-map-status svg { width: 1.8rem; height: 1.8rem; display: block; }
.lhp-map-note {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  text-align: center;
  color: var(--lhp-muted);
  font-size: 1rem;
}

/* Sheet / bonus */
.lhp-sheet {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(7, 54, 83, 0.4);
  display: flex; align-items: flex-end; justify-content: center;
}
.lhp-sheet[hidden] { display: none !important; }
.lhp-sheet-panel {
  background: #fff; width: 100%; max-height: 86dvh;
  border-radius: 1.2rem 1.2rem 0 0;
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.lhp-sheet-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.7rem 0.5rem 1.1rem;
  border-bottom: 1px solid var(--lhp-line);
}
.lhp-sheet-title { flex: 1; margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--lhp-navy); }
.lhp-sheet-body { overflow-y: auto; padding: 1rem 1.15rem 1.4rem; }
.lhp-sheet-body h3 { font-size: 1.2rem; color: var(--lhp-navy); margin: 1.2rem 0 0.45rem; }
.lhp-refs { padding-left: 1.2rem; }
.lhp-chart { overflow-x: auto; background: #F7F8F5; border-radius: 0.8rem; padding: 0.8rem; margin: 0.8rem 0; }
.lhp-resource-list { list-style: none; margin: 0; padding: 0; }
.lhp-resource-list li { margin: 0 0 0.6rem; }
.lhp-resource-list a { font-weight: 700; color: var(--lhp-green-mid); }

/* Desktop: cleaned 3.0-style centered card, same sequence, no clutter */
@media (min-width: 960px) {
  .lhp-app-desk-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.7rem 1.5rem;
    background: var(--lhp-cream); border-bottom: 1px solid var(--lhp-line);
  }
  .lhp-app-desk-brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--lhp-navy); }
  .lhp-app-desk-brand img { height: 48px; width: auto; }
  .lhp-app-desk-brand span { display: flex; flex-direction: column; }
  .lhp-app-desk-brand strong { font-size: 1rem; }
  .lhp-app-desk-brand em { font-style: normal; color: var(--lhp-muted); font-size: 0.95rem; }
  .lhp-app-desk-learn {
    min-height: 48px; display: inline-flex; align-items: center;
    padding: 0 1rem; border-radius: 999px;
    background: var(--lhp-green-mid); color: #fff; text-decoration: none; font-weight: 700;
  }
  .lhp-app {
    max-width: 34rem; margin: 0 auto;
    min-height: calc(100dvh - 4.2rem);
    background: transparent;
    padding-top: 1.2rem; padding-bottom: 2rem;
  }
  .lhp-lesson-view {
    min-height: 0;
    background: var(--lhp-white);
    border-radius: 1.5rem;
    box-shadow: var(--lhp-shadow);
    overflow: hidden;
  }
  .lhp-app-chrome, .lhp-app-actions, .lhp-app-screen { background: var(--lhp-white); }
  .lhp-app.is-welcome .lhp-app-chrome { display: none; }
  .lhp-app-stage { min-height: 22rem; }
  .lhp-app-screen { padding: 0.6rem 1.6rem 1.4rem; }
  .lhp-type-welcome { padding: 1.2rem 1.4rem 1.5rem; }
  .lhp-welcome-card { box-shadow: none; padding: 0; }
  .lhp-app-actions { box-shadow: none; border-top: 1px solid var(--lhp-line); flex-direction: row; align-items: center; }
  .lhp-app-continue { width: auto; min-width: 14rem; margin-left: auto; }
  .lhp-app-back { order: 0; }
  .lhp-summary-actions { flex-direction: row; flex-wrap: wrap; }
  .lhp-map {
    min-height: 0; background: var(--lhp-cream);
    border-radius: 1.5rem; box-shadow: var(--lhp-shadow); padding: 1.6rem 1.8rem;
  }
  .lhp-sheet { align-items: center; }
  .lhp-sheet-panel { max-width: 36rem; border-radius: 1.2rem; max-height: 80vh; }
}

@media (max-width: 360px) {
  .lhp-welcome-title { font-size: 1.55rem; }
  .lhp-app-safety-btn { font-size: 0.78rem; }
  .lhp-type-pick p { margin-bottom: 0.65rem; }
  .lhp-type-pick .lhp-chips-multi { gap: 0.4rem; }
}
