/* Reading Plans (READING-PLANS-SPEC-2026-08-17, Deploy R1).
   Posture rules are binding: no red anywhere except the user's heart mark;
   references never truncate (band 1 wraps, chips move beneath); every hit
   target ≥44px; nothing under 12px. Palette rides the site variables so
   light/dark themes both work. */

#plans-overlay.active,
#plan-reader-overlay.active {
  display: flex;
  flex-direction: column;
}

#plans-overlay .plans-body,
#plan-reader-overlay .plan-reader-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 0 16px 96px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

#plans-overlay .overlay-header,
#plan-reader-overlay .overlay-header { flex-shrink: 0; }

.plans-loading, .plans-empty {
  color: var(--fg-secondary);
  font-family: var(--font-family-sans);
  font-size: 15px;
  padding: 40px 8px;
  text-align: center;
}

.plans-header-btn {
  background: none;
  border: none;
  color: var(--fg);
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

/* ---------- progress header ---------- */

.plan-progress-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--overlay-bg);
  padding: 14px 4px 12px;
  border-bottom: 1px solid var(--ui-chrome);
}

.plan-head-title {
  font-family: var(--font-family-serif);
  font-size: 19px;
  color: var(--fg);
}

.plan-head-sub {
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-secondary);
  margin-top: 3px;
}

.plan-bar {
  height: 5px;
  border-radius: 3px;
  background: var(--ui-chrome);
  margin-top: 9px;
  overflow: hidden;
}

.plan-bar-fill {
  height: 100%;
  background: #B08D2F; /* the site's warm gold, not a status color */
  border-radius: 3px;
}

.plan-grace-line {
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-secondary);
  margin-top: 8px;
}

.plan-gentle-line {
  font-family: var(--font-family-sans);
  font-size: 14px;
  color: var(--fg-secondary);
  background: var(--highlight);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0 0;
}

.plan-device-note { display: flex; align-items: center; gap: 10px; }

.plan-note-ok {
  margin-left: auto;
  background: none;
  border: 1px solid var(--ui-chrome-border);
  border-radius: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 14px;
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
}

.plan-complete-card {
  font-family: var(--font-family-serif);
  font-size: 17px;
  color: var(--fg);
  background: var(--highlight);
  border-radius: 12px;
  padding: 22px 18px;
  margin: 18px 0;
  text-align: center;
}

/* ---------- banded day sections (spec §6b) ---------- */

.plan-days { margin-top: 10px; }

.plan-day { margin: 0 -16px; }

.plan-day-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--highlight);
  border: none;
  border-top: 1px solid var(--ui-chrome);
  min-height: 44px;
  padding: 8px 20px;
  font-family: var(--font-family-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  cursor: pointer;
  text-align: left;
}

.plan-day.is-today > .plan-day-head {
  color: var(--fg);
  border-left: 4px solid #B08D2F;
  padding-left: 16px;
}

.plan-day.is-done > .plan-day-head { opacity: 0.75; }

.plan-today-tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #8A6D23;
}

.plan-day-body { padding: 4px 20px 14px; }

.plan-rest {
  font-family: var(--font-family-sans);
  font-size: 14px;
  color: var(--fg-tertiary);
  font-style: italic;
  padding: 12px 2px;
}

/* ---------- two-band rows (spec §6c — the reference NEVER truncates) ---------- */

.plan-row {
  border-bottom: 1px solid var(--ui-chrome);
  padding: 8px 0 10px;
}

.plan-row:last-child { border-bottom: none; }

.plan-row-band1 {
  display: flex;
  flex-wrap: wrap;            /* long references push the chips to their own line */
  align-items: center;
  gap: 6px 10px;
}

.plan-check {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  border: 2px solid var(--ui-chrome-border);
  background: none;
  color: #8A6D23;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  position: relative;
}

.plan-check::after {           /* invisible 44px hit target */
  content: '';
  position: absolute;
  inset: -8px;
}

.plan-row.is-checked .plan-check {
  border-color: #B08D2F;
  background: rgba(176, 141, 47, 0.12);
}

.plan-row-ref {
  font-family: var(--font-family-serif);
  font-size: 17px;
  color: var(--fg);
  white-space: normal;         /* binding: no nowrap, no ellipsis, ever */
  overflow: visible;
}

.plan-row.is-checked .plan-row-ref { color: var(--fg-secondary); }

.plan-row-chips {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.plan-chip {
  font-family: var(--font-family-sans);
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 18px;
  border: 1px solid var(--ui-chrome-border);
  background: var(--overlay-bg);
  color: var(--fg);
  cursor: pointer;
  position: relative;
}

.plan-chip::after { content: ''; position: absolute; inset: -4px; }

.plan-row-band2 {
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-tertiary);
  padding-left: 40px;
  margin-top: 4px;
}

/* ---------- cards / picker / browse ---------- */

.plans-group-head {
  font-family: var(--font-family-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin: 26px 4px 8px;
}

.plan-card, .plans-browse-main {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--overlay-bg);
  border: 1px solid var(--ui-chrome);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

.plan-card-title {
  display: block;
  font-family: var(--font-family-serif);
  font-size: 16px;
  color: var(--fg);
}

.plan-card-meta {
  display: block;
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-secondary);
  margin-top: 3px;
}

.plan-card-blurb {
  display: block;
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-tertiary);
  margin-top: 6px;
  line-height: 1.5;
}

.plan-current-strip {
  display: block;
  width: 100%;
  background: var(--highlight);
  border: none;
  border-radius: 10px;
  min-height: 44px;
  margin: 14px 0 4px;
  font-family: var(--font-family-sans);
  font-size: 14px;
  color: var(--fg);
  cursor: pointer;
}

.plan-primary-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-family-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin: 16px 0 8px;
}

.plans-browse-btn { background: var(--overlay-bg); color: var(--fg); border: 1px solid var(--ui-chrome-border); }

.plan-link {
  background: none;
  border: none;
  color: #8A6D23;
  font-family: var(--font-family-sans);
  font-size: 14px;
  cursor: pointer;
  padding: 10px 6px;
  min-height: 44px;
}

.plans-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--fg-tertiary);
  margin-top: 18px;
}

.plans-credit {
  font-family: var(--font-family-sans);
  font-size: 12px;
  color: var(--fg-tertiary);
  text-align: center;
  margin: 26px 0 8px;
  line-height: 1.6;
}

.plans-credit a { color: var(--fg-tertiary); }

/* browse tools */

.plans-browse-tools {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--overlay-bg);
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-chrome);
}

.plans-search {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--ui-chrome-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-family-sans);
  font-size: 15px;
  background: var(--overlay-bg);
  color: var(--fg);
}

.plans-mark-filters { display: flex; gap: 6px; }

.plans-mark-filter {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ui-chrome-border);
  background: var(--overlay-bg);
  font-size: 16px;
  cursor: pointer;
  color: var(--fg-tertiary);
  position: relative;
}

.plans-mark-count {
  font-family: var(--font-family-sans);
  font-size: 12px;
  margin-left: 2px;
  vertical-align: 2px;
}

/* "What would you like to read?" scope row */

.plans-scope { padding: 12px 0 4px; }

.plans-scope-label {
  font-family: var(--font-family-sans);
  font-size: 14px;
  color: var(--fg-secondary);
  margin-bottom: 8px;
}

.plans-scope-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plans-scope-sub {
  margin-top: 8px;
  padding-left: 14px;
}

.plans-scope-chip {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--ui-chrome-border);
  border-radius: 10px;
  background: var(--overlay-bg);
  color: var(--fg);
  font-family: var(--font-family-sans);
  font-size: 15px;
  cursor: pointer;
}

.plans-scope-chip.on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
  font-weight: 600;
}

.plans-scope-count {
  font-size: 13px;
  margin-left: 6px;
  opacity: 0.7;
}

.plans-browse-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.plans-browse-row .plans-browse-main { flex: 1; }

.plans-row-marks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.plans-mark {
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: none;
  font-size: 15px;
  color: var(--ui-chrome-border);
  cursor: pointer;
  line-height: 1;
}

/* Delete on a My Plans row. NOT .plans-mark: an unlit heart is meant to be
   faint until it is switched on, but a control that destroys someone's
   progress has to be legible before they can decide to use it. */
.plans-row-remove {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: none;
  background: none;
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-secondary);
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

/* the three marks: shapes differ, and the heart is the one permitted red */
.plans-mark.mark-heart.on, .plans-mark-filter.mark-heart.on { color: #D64541; }
.plans-mark.mark-star.on, .plans-mark-filter.mark-star.on { color: #D9A62E; }
.plans-mark.mark-bang.on, .plans-mark-filter.mark-bang.on { color: #3D6DB5; font-weight: 800; }
.plans-mark-filter.on { border-color: currentColor; }
.plans-head-glyph { font-size: 14px; min-width: 0; min-height: 0; padding: 0; cursor: default; }

/* ---------- sheets ---------- */

/* stacking: the base .overlay class is z-index 3001 — everything that must
   paint ABOVE the plans overlay has to clear it.
   The sheet must also clear #plan-snackbar (3010): the undo toast is fixed to
   the bottom centre, exactly where a confirm sheet puts "Never mind", and at
   3005 the toast swallowed that tap — or worse, the tap landed on Undo and
   quietly reversed the previous delete while this confirm was still open. */
.plan-sheet-wrap { position: fixed; inset: 0; z-index: 3015; }

.plan-sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }

.plan-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--overlay-bg);
  border-radius: 18px 18px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  max-width: 560px;
  margin: 0 auto;
}

.plan-sheet-close {
  position: absolute;
  top: 8px; right: 8px;
  min-width: 44px; min-height: 44px;
  background: none; border: none;
  font-size: 17px;
  color: var(--fg-secondary);
  cursor: pointer;
}

.plan-sheet-title {
  font-family: var(--font-family-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--fg);
  margin: 0 28px 6px 0;
}

.plan-sheet-blurb {
  font-family: var(--font-family-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-secondary);
}

.plan-preview { margin: 14px 0; }

.plan-preview-day {
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--ui-chrome);
  line-height: 1.5;
}

.plan-preview-day span {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
  margin-right: 8px;
  color: var(--fg-tertiary);
}

.plan-mode-pick { margin: 16px 0 4px; }

.plan-mode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-family-sans);
  font-size: 15px;
  color: var(--fg);
}

.plan-mode-row input[type="date"] {
  border: 1px solid var(--ui-chrome-border);
  border-radius: 8px;
  min-height: 38px;
  padding: 4px 8px;
  font-family: var(--font-family-sans);
  background: var(--overlay-bg);
  color: var(--fg);
}

.plan-attribution {
  font-family: var(--font-family-sans);
  font-size: 12px;
  color: var(--fg-tertiary);
  margin-top: 14px;
  line-height: 1.6;
}

.plan-copyright {
  font-family: var(--font-family-sans);
  font-size: 12px;
  color: var(--fg-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

.plan-sheet-row {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--ui-chrome);
  min-height: 50px;
  padding: 12px 4px;
  font-family: var(--font-family-sans);
  font-size: 15px;
  color: var(--fg);
  cursor: pointer;
}

.plan-confirm-row .plan-sheet-row:first-child { font-weight: 600; }

/* ---------- snackbar (5s focusable undo, aria-live) ---------- */

#plan-snackbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg);
  color: var(--bg);
  border-radius: 12px;
  padding: 10px 10px 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-sans);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 3010;
  max-width: min(92vw, 480px);
}

#plan-snackbar.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }

.plan-undo-btn {
  background: none;
  border: none;
  color: #E8C56A;
  font-family: var(--font-family-sans);
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  min-width: 56px;
  cursor: pointer;
}

/* ---------- the plan reader (spec §6h/§6i) ---------- */

#plan-reader-overlay { z-index: 3003; }

.plan-reader-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 0 6px;
  border-bottom: 1px solid var(--ui-chrome);
  background: var(--overlay-bg);
  flex-shrink: 0;
}

.plan-reader-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-family-sans);
  font-size: 14px;
  color: var(--fg-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-weight: 500;
}

#plan-reader-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ui-chrome);
  background: var(--overlay-bg);
  position: sticky;
  top: 0;
  z-index: 6;
  flex-shrink: 0;
  flex-wrap: wrap;
}

#plan-reader-player[hidden] { display: none; }

.plan-pl-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ui-chrome-border);
  background: var(--overlay-bg);
  color: var(--fg);
  font-size: 13px;
  cursor: pointer;
}

.plan-pl-main { min-width: 46px; min-height: 46px; font-size: 17px; }

.plan-pl-track {
  flex: 1;
  min-width: 80px;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.plan-pl-track::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--ui-chrome);
}

.plan-pl-fill {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 2px;
  background: #B08D2F;
  pointer-events: none;
}

.plan-pl-time, .plan-pl-status {
  font-family: var(--font-family-sans);
  font-size: 12px;
  color: var(--fg-secondary);
  white-space: nowrap;
}

.plan-reader-text {
  font-family: var(--font-family-serif);
  font-size: var(--pr-size, 19px);
  line-height: var(--pr-line, 1.75);
  word-spacing: var(--pr-word, 0);
  padding: 18px var(--pr-margin, 22px) 10px;
  color: var(--fg);
}

.plan-reader-chapter {
  font-size: 1.35em;
  font-weight: 400;
  margin: 6px 0 14px;
}

.plan-reader-pericope {
  font-family: var(--font-family-sans);
  font-size: max(12px, 0.68em);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin: 1.8em 0 0.7em;
}

.plan-reader-verses sup {
  font-size: max(12px, 0.62em);
  color: var(--verse-num);
  margin-right: 2px;
  font-family: var(--font-family-sans);
}

.plan-explain-block { margin-bottom: 1.4em; }
.plan-explain-block img { max-width: 100%; }

.plan-explain-none {
  font-family: var(--font-family-sans);
  font-size: max(12px, 0.78em);
  color: var(--fg-tertiary);
  font-style: italic;
}

.plan-reader-footer {
  padding: 10px var(--pr-margin, 22px) 40px;
  text-align: center;
}

.plan-markread-btn { max-width: 340px; margin: 10px auto; }

.plan-next-link { display: block; margin: 4px auto; }

.plan-next-done {
  font-family: var(--font-family-sans);
  font-size: 14px;
  color: var(--fg-secondary);
  padding: 8px 0;
}

/* Aa panel */

.plan-aa-panel {
  position: absolute;
  top: 100%;
  right: 8px;
  z-index: 3006;
  background: var(--overlay-bg);
  border: 1px solid var(--ui-chrome);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 14px 16px;
  width: min(320px, calc(100vw - 24px));
}

.plan-aa-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-secondary);
}

.plan-aa-row span { width: 92px; flex-shrink: 0; }
.plan-aa-row input[type="range"] { flex: 1; }
.plan-aa-reset { display: block; margin: 4px auto 0; }

/* note box */

.plan-note-box {
  margin: 8px var(--pr-margin, 22px) 30px;
  border: 1px solid var(--ui-chrome);
  border-radius: 12px;
  padding: 14px;
  background: var(--highlight);
}

.plan-note-title {
  font-family: var(--font-family-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-secondary);
  margin-bottom: 8px;
}

.plan-note-text {
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--ui-chrome-border);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-family-sans);
  font-size: 15px;
  line-height: 1.5;
  background: var(--overlay-bg);
  color: var(--fg);
  box-sizing: border-box;
  resize: vertical;
}

.plan-note-actions { display: flex; align-items: center; gap: 12px; }

.plan-note-save { max-width: 160px; margin: 10px 0 0; min-height: 42px; }

.plan-note-status {
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-secondary);
}

/* ---------- main-reader injections (spec §6a) ---------- */

.plan-inline-mark { text-align: center; padding: 6px 0 30px; }

.plan-inline-mark .plan-primary-btn {
  max-width: 420px;
  margin: 0 auto;
  background: var(--overlay-bg);
  color: var(--fg);
  border: 1px solid var(--ui-chrome-border);
}

.plan-today-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--highlight);
  border-radius: 12px;
  margin: 4px 0 14px;
  font-family: var(--font-family-sans);
}

.plan-today-chip-open {
  flex: 1;
  text-align: left;
  background: none;
  border: none;
  min-height: 44px;
  padding: 8px 14px;
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-secondary);
  cursor: pointer;
}

.plan-today-chip-x {
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  color: var(--fg-tertiary);
  font-size: 14px;
  cursor: pointer;
}

/* hide the dock while the plan reader shows its own view of the player */
body.plans-reader-open #tts-dock { display: none !important; }

/* scroll-lock the page under the plans surfaces (house overlay protocol) */
body.plans-open { overflow: hidden; }

.plans-count-line {
  font-family: var(--font-family-sans);
  font-size: 12px;
  color: var(--fg-tertiary);
  padding: 8px 4px 0;
}

.plan-window-more {
  display: block;
  width: 100%;
  text-align: center;
}

.plan-detail-marks { flex-direction: row; margin: 6px 0 0; }

/* verse-level readings: the called-out verses stand out, the rest recede */
.plan-verse-outside { color: var(--fg-tertiary); }
.plan-verse-called sup { color: #8A6D23; font-weight: 700; }

@media (max-width: 430px) {
  #plans-overlay .plans-body, #plan-reader-overlay .plan-reader-body { padding: 0 12px 96px; }
  .plan-day { margin: 0 -12px; }
  .plan-day-head { padding: 8px 16px; }
  .plan-day.is-today > .plan-day-head { padding-left: 12px; }
  .plan-day-body { padding: 4px 16px 14px; }
}

/* ---- detail-sheet facts + variant-family picker (browse revamp Phase 2) ---- */

.plan-facts {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
}

.plan-facts li {
  font-family: var(--font-family-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  padding: 2px 0 2px 22px;
  position: relative;
}

.plan-facts li::before {
  content: '✓';
  position: absolute;
  left: 2px;
  color: var(--fg-secondary);
}

.plan-fam-pick { margin: 12px 0 4px; }

.plan-fam-label {
  font-family: var(--font-family-sans);
  font-size: 13px;
  color: var(--fg-secondary);
  margin-bottom: 8px;
}

.plan-fam-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-fam-chip {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--ui-chrome-border);
  border-radius: 10px;
  background: var(--overlay-bg);
  color: var(--fg);
  font-family: var(--font-family-sans);
  font-size: 14px;
  cursor: pointer;
}

.plan-fam-chip.on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
  font-weight: 600;
}

/* ---------- "Help me choose" (browse revamp Phase 3) ---------- */

.plans-choose-row {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0 0 10px;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--ui-chrome-border);
  border-radius: 10px;
  background: var(--overlay-bg);
  color: var(--fg);
  font-family: var(--font-family-sans);
  font-size: 15px;
  cursor: pointer;
}

.plans-choose-card {
  margin: 0 0 14px;
  padding: 12px 14px 14px;
  border: 1px solid var(--ui-chrome-border);
  border-radius: 12px;
  background: var(--overlay-bg);
}

.plans-choose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-family-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
}

.plans-choose-q {
  margin: 12px 0 6px;
  font-family: var(--font-family-sans);
  font-size: 14px;
  opacity: 0.8;
  color: var(--fg);
}

.plans-choose-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plans-choose-opt {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--ui-chrome-border);
  border-radius: 10px;
  background: var(--overlay-bg);
  color: var(--fg);
  font-family: var(--font-family-sans);
  font-size: 15px;
  cursor: pointer;
}

.plans-choose-opt.on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
  font-weight: 600;
}

.plans-choose-all {
  margin-top: 10px;
}
