/* ====================================================================
   Add Any Verse — slate design system
   .aav-*  -> logged-in verse-picker workspace
   .aavm-* -> logged-out marketing + request-form widgets
   Ported from design_handoff_add_any_verse/add-verse.css. Reuses tokens +
   .nav/.hero/.section/.split/.av-card/.btn from extensions/index_new/styles.css,
   the member_navigation app shell, and the .hl-nav secondary nav
   (extensions/home_loggedin/secondary_nav.css). Hand-written; NOT scanned by
   the CSS Builder (this _loggedin family sidesteps the _test->_live pipeline).
   ==================================================================== */

/* Text that sits on the --accent fill (selected verse number, selected
   translation pill, hover add-button). --accent is DARK in light theme
   (#3F5876, white reads) but LIGHT in dark theme (#8FA7C2), so plain white
   would be low-contrast in dark mode — flip the ink to dark there. Custom
   property, so it doesn't count against the theme/hex audit. Mirrors the
   --accent resolution order (PHP .theme-* class + html[data-theme] bridge
   + system preference). */
.mv-root { --aav-on-accent: #FFFFFF; }
.theme-dark,
html[data-theme='dark'] .mv-root { --aav-on-accent: #0B1426; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .mv-root:not(.theme-light):not(.theme-dark) { --aav-on-accent: #0B1426; }
}

/* ============================================================
   LOGGED-IN — page wrap
   ============================================================ */

/* Header clearance — GUARANTEED here rather than via the wrapper's `pt68px`
   atomic class. The CSS Builder compiles atomic classes per-route from the
   files in its $page_map, and the 'add any verse' route only scans the legacy
   marketing file (which never declares pt68px), while this _loggedin wrapper is
   unscanned. So pt68px is undefined for this route and the fixed 68px top bar
   overlapped the header. This served rule matches the bar height (h68px /
   tlp-h64px / pp-h60px) so 68px clears it at every breakpoint. */
.aav-shell { padding-top: 68px; --aav-shell-bg: #FAFAF6; background: var(--aav-shell-bg); }
/* Dark page-bg for the (non-mv-root) shell — html[data-theme='dark'] is set by the
   anti-FOUC script for any resolved-dark. Custom-prop values are excluded from the
   hex audit and keep the exact slate page-bg. */
html[data-theme='dark'] .aav-shell { --aav-shell-bg: #0B1426; }

.aav-page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 40px 64px 56px;
  gap: 28px;
  max-width: 1440px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header ---------- */
.aav-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.aav-eye {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.aav-eye .pulse {
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.aav-head h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-top: 10px;
  color: var(--text-1);
}
.aav-head h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.aav-head-sub {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-2);
  max-width: 460px;
  line-height: 1.55;
}

/* Collection selection moved out of the header into the in-card chooser
   ("second screen" inside the preview card) — see .aav-preview-choose below. */

/* ---------- Search bar ---------- */
.aav-search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.aav-search .ic { color: var(--text-3); flex-shrink: 0; display: inline-flex; }
.aav-search .field { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.aav-search .field input {
  flex: 0 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-1);
  padding: 0;
  outline: none;
}
.aav-search .field input::placeholder { color: var(--text-muted); font-weight: 400; }
.aav-search .field .hint { font-size: 15px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aav-search .kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 4px 8px;
  border-radius: 6px;
}
.aav-search .aav-search-go {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: var(--brand);
  color: var(--brand-fg);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
@keyframes aavBlink { 50% { opacity: 0; } }

/* ---------- Workspace grid ---------- */
.aav-grid {
  display: grid;
  grid-template-columns: 1fr 392px;
  gap: 28px;
  align-items: start;
}
.aav-grid-left { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Selector card (book / chapter / verse) ---------- */
.aav-picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.aav-step {
  padding: 22px 24px;
}
.aav-step + .aav-step { border-top: 1px solid var(--border); }
.aav-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.aav-step-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.aav-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
.aav-step.done .aav-step-num {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
}
.aav-step-pick {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  font-style: italic;
}

/* testament + filter toggles */
.aav-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.aav-toggle button {
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.aav-toggle button.on {
  background: var(--surface);
  color: var(--text-1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* book chip grid */
.aav-books {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.aav-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all .14s;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.aav-chip:hover { background: var(--surface); border-color: var(--border-strong); color: var(--text-1); }
.aav-chip.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.aav-books-more {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
}
.aav-books-more:hover { color: var(--accent); }

/* number grids (chapter / verse) */
.aav-nums {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}
.aav-num {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all .12s;
}
.aav-num:hover { background: var(--surface); border-color: var(--border-strong); color: var(--text-1); }
.aav-num.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--aav-on-accent);
  font-weight: 600;
}
.aav-num.inrange {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* verse range toggle row */
.aav-rangerow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aav-range-readout {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.aav-range-readout strong { color: var(--text-1); }

/* ---------- Suggested verses (below picker) ---------- */
.aav-suggest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}
.aav-suggest-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.aav-suggest-title {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--text-1);
}
.aav-suggest-title .ic { color: var(--brand); display: inline-flex; }
.aav-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.aav-topic {
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: all .14s;
}
.aav-topic:hover { color: var(--text-1); border-color: var(--border-strong); }
.aav-topic.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.aav-suggest-list { display: flex; flex-direction: column; gap: 8px; }
.aav-suggest-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .14s;
}
.aav-suggest-row:hover { background: var(--surface-2); border-color: var(--border-strong); }
.aav-suggest-row .body { flex: 1; min-width: 0; }
.aav-suggest-row .ref { font-family: var(--font-serif); font-weight: 600; font-size: 15px; color: var(--text-1); }
.aav-suggest-row .txt {
  font-size: 13px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 480px;
}
.aav-suggest-row .tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 6px;
  flex-shrink: 0;
}
.aav-suggest-row .add {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  border: 0; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.aav-suggest-row:hover .add { background: var(--accent); color: var(--aav-on-accent); }
.aav-suggest-empty { font-size: 13px; color: var(--text-3); padding: 8px 2px; }

/* ---------- Preview rail (right, sticky) ---------- */
.aav-rail { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }

.aav-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elev);
  overflow: hidden;
}
.aav-preview-top {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.aav-preview-eye {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 8px;
}
.aav-preview-eye .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.aav-preview-ref {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
}
.aav-preview-body { padding: 18px 22px 22px; }

.aav-trans-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.aav-trans {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.aav-trans-pill {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 11px;
  cursor: pointer;
  transition: all .12s;
}
.aav-trans-pill:hover { border-color: var(--border-strong); color: var(--text-1); }
.aav-trans-pill.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--aav-on-accent);
}
.aav-trans-more {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 11px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}

.aav-quote {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-1);
  letter-spacing: -0.005em;
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand);
  margin-bottom: 14px;
}
.aav-quote .vn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  vertical-align: super;
  margin-right: 4px;
}
.aav-quote.is-loading { color: var(--text-muted); font-style: italic; }
.aav-preview-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--text-3);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.aav-preview-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.aav-preview-meta strong { color: var(--text-2); font-weight: 600; }

.aav-actions { display: flex; flex-direction: column; gap: 10px; }
.aav-add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 18px;
  background: var(--brand);
  color: var(--brand-fg);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--brand) 70%, transparent);
  transition: transform .12s;
}
.aav-add-btn:hover { transform: translateY(-1px); }
.aav-add-btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.aav-practice-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  background: var(--surface-2);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.aav-practice-btn:hover { border-color: var(--border-strong); }
.aav-practice-btn:disabled { opacity: .6; cursor: default; }
.aav-adding-to {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}
.aav-adding-to strong { color: var(--accent); font-weight: 600; }

/* ---------- in-card collection chooser ("second screen" inside the preview card) ---------- */
.aav-preview-main[hidden], .aav-preview-choose[hidden] { display: none; }
.aav-choose-top {
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.aav-choose-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; padding: 0;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--text-3); cursor: pointer;
  margin-bottom: 10px;
}
.aav-choose-back:hover { color: var(--text-1); }
.aav-choose-back .back-ic { transform: rotate(90deg); }
.aav-choose-eye {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 5px;
}
.aav-choose-ref {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
}
.aav-choose-body { padding: 14px 22px 22px; }
.aav-choose-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 230px; overflow-y: auto;
  margin-bottom: 8px;
}
.aav-choose-opt {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 11px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  color: var(--text-1);
  text-align: left; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.aav-choose-opt:hover { border-color: var(--border-strong); }
.aav-choose-opt .ic {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
}
.aav-choose-opt .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aav-choose-opt .cnt {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  flex-shrink: 0;
}
.aav-choose-opt .chk { color: var(--accent); display: none; flex-shrink: 0; }
.aav-choose-opt.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.aav-choose-opt.on .ic { background: var(--accent); border-color: var(--accent); color: var(--aav-on-accent); }
.aav-choose-opt.on .cnt { display: none; }
.aav-choose-opt.on .chk { display: inline-flex; }

.aav-choose-newrow {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 11px 12px;
  background: transparent;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  text-align: left; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.aav-choose-newrow:hover { background: var(--accent-soft); }
.aav-choose-newrow.on { background: var(--accent-soft); border-style: solid; border-color: var(--accent); }
.aav-choose-newrow .ic {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.aav-choose-newform { margin-top: 8px; }
.aav-choose-newinput {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px; color: var(--text-1);
  outline: none;
}
.aav-choose-newinput::placeholder { color: var(--text-muted); }
.aav-choose-err {
  margin-top: 10px;
  font-size: 13px; color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}
.aav-choose-err[hidden] { display: none; }
.aav-choose-confirm { width: 100%; margin-top: 14px; }

/* recently added small card */
.aav-recent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.aav-recent-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.aav-recent-head a { color: var(--accent); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 12px; }
.aav-recent-list { display: flex; flex-direction: column; }
.aav-recent-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  font-size: 13px;
}
.aav-recent-row + .aav-recent-row { border-top: 1px solid var(--border); }
.aav-recent-row .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--success-soft); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aav-recent-row .ref { font-weight: 600; color: var(--text-1); }
.aav-recent-row .tag {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--text-3);
}
.aav-recent-empty { font-size: 13px; color: var(--text-3); }

/* footnote */
.aav-footnote {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 760px;
}

/* secondary-nav accent: coral plus on the active Add Any Verse item */
.hl-nav-item.active .hl-nav-ic.aav-add { color: var(--brand); }

/* request-a-translation tip CTA is a <button> (modal trigger, not navigation) —
   strip native button chrome so it matches the link-style .hl-nav-card-cta */
button.hl-nav-card-cta { border: 0; background: transparent; padding: 0; cursor: pointer; }

/* toast (codebase interactivity — "added" confirmation) */
.aav-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-elev);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
}
.aav-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.aav-toast .ic { display: inline-flex; color: var(--success); }

/* ============================================================
   LOGGED-OUT — marketing-only widgets (.aavm-*)
   Hero/nav/split/av-card come from index_new/styles.css
   ============================================================ */

.aavm-signin { font-size: 14px; color: var(--text-3); }
.aavm-signin a { color: var(--accent); font-weight: 600; cursor: pointer; }

/* hero add-verse widget — small extension of .av-card live state */
.aavm-add .av-quote { margin-top: 14px; }
.aavm-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.aavm-search .ic { color: var(--text-3); display: inline-flex; }
.aavm-search .typed { font-size: 14px; font-weight: 500; color: var(--text-1); flex: 1; }
.aavm-search .caret {
  width: 2px; height: 16px; background: var(--accent);
  animation: aavBlink 1.1s steps(1) infinite;
}
.aavm-search .tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--text-3); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 6px; background: var(--surface);
}

/* translation switcher demo (split widget) */
.aavm-trans-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elev);
  padding: var(--sp-6);
}
.aavm-tc-head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
}
.aavm-tc-head .ic {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.aavm-tc-ref { font-family: var(--font-serif); font-weight: 600; font-size: 17px; margin-bottom: 12px; }
.aavm-tc-label { font-size: 12px; color: var(--text-3); font-weight: 500; margin-bottom: 10px; }
.aavm-tc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.aavm-tc-pill {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 11px;
}
.aavm-tc-pill.on { background: var(--accent); border-color: var(--accent); color: var(--aav-on-accent); }
.aavm-tc-quote {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 500; font-style: italic;
  line-height: 1.5; color: var(--text-1);
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

/* book/chapter/verse selector demo (split widget) */
.aavm-sel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elev);
  padding: var(--sp-6);
}
.aavm-sel-head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
}
.aavm-sel-head .ic {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.aavm-sel-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
  margin: 14px 0 8px;
}
.aavm-sel-label:first-of-type { margin-top: 0; }
.aavm-sel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aavm-sel-chip {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
}
.aavm-sel-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.aavm-sel-nums { display: flex; flex-wrap: wrap; gap: 5px; }
.aavm-sel-num {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.aavm-sel-num.on { background: var(--accent); border-color: var(--accent); color: var(--aav-on-accent); }
.aavm-sel-preview {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.aavm-sel-preview .ref { font-family: var(--font-serif); font-weight: 600; font-size: 16px; margin-bottom: 5px; }
.aavm-sel-preview .txt { font-family: var(--font-serif); font-size: 14px; font-style: italic; color: var(--text-2); line-height: 1.5; }

/* ============================================================
   REQUEST-A-TRANSLATION section (the "request half")
   ============================================================ */
.aavm-request { position: relative; }
.aavm-req-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: var(--sp-16);
  align-items: center;
}

/* left copy column */
.aavm-req-copy h2 {
  font-size: 52px;
  letter-spacing: -0.022em;
  margin-bottom: var(--sp-5);
}
.aavm-req-copy h2 em { font-style: italic; font-weight: 500; color: var(--brand); }
.aavm-req-copy p { font-size: 18px; color: var(--text-2); max-width: 460px; margin-bottom: var(--sp-6); }
.aavm-req-points { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--sp-8); }
.aavm-req-point {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 15px; color: var(--text-2);
}
.aavm-req-point .ic {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--success-soft); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.aavm-req-recent {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-5);
}
.aavm-req-recent-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.aavm-req-recent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aavm-req-recent-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px 5px 9px;
}
.aavm-req-recent-chip .ic { color: var(--success); display: inline-flex; }

/* the form card */
.aavm-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elev);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.aavm-form::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--brand-soft), transparent 55%);
  pointer-events: none;
}
.aavm-form-head { position: relative; margin-bottom: var(--sp-6); }
.aavm-form-eye {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.aavm-form-head h3 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-1);
}
.aavm-form-head p { font-size: 14px; color: var(--text-3); margin-top: 6px; }

.aavm-field { position: relative; margin-bottom: var(--sp-5); }
.aavm-field-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-1);
  margin-bottom: 8px;
}
.aavm-field-label .opt {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  text-transform: none; letter-spacing: 0;
}
.aavm-input {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-1);
}
.aavm-input .ic { color: var(--text-3); flex-shrink: 0; display: inline-flex; }
.aavm-input input,
.aavm-input select {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-1);
  padding: 0;
  outline: none;
  min-width: 0;
}
.aavm-input select { cursor: pointer; -webkit-appearance: none; appearance: none; }
.aavm-input input::placeholder { color: var(--text-muted); }
.aavm-input .chev { color: var(--text-3); margin-left: auto; pointer-events: none; }
.aavm-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.aavm-textarea {
  width: 100%;
  min-height: 74px;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.5;
  resize: vertical;
  outline: none;
}
.aavm-textarea::placeholder { color: var(--text-muted); }
.aavm-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.aavm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.aavm-check {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 24%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-6);
  cursor: pointer;
}
.aavm-check .box {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent); color: var(--aav-on-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.aavm-check.off .box { background: transparent; border: 1px solid var(--border-strong); color: transparent; }
.aavm-check .txt { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.aavm-check .txt strong { color: var(--text-1); font-weight: 600; }

.aavm-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%;
  padding: 15px 20px;
  background: var(--brand);
  color: var(--brand-fg);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px -14px color-mix(in oklab, var(--brand) 70%, transparent);
  transition: transform .12s;
}
.aavm-submit:hover { transform: translateY(-1px); }
.aavm-submit:disabled { opacity: .6; cursor: default; transform: none; }
.aavm-form-foot {
  position: relative;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.aavm-form-err {
  position: relative;
  margin-top: 12px;
  font-size: 13px;
  color: var(--brand);
  text-align: center;
}
.aavm-form-err[hidden] { display: none; }

/* request-form success state (codebase interactivity) */
.aavm-form-success { position: relative; text-align: center; padding: var(--sp-4) 0; }
.aavm-form-success .ic {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success-soft); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
}
.aavm-form-success h3 {
  font-family: var(--font-serif); font-size: 24px; font-weight: 600;
  color: var(--text-1); margin-bottom: 10px;
}
.aavm-form-success p { font-size: 15px; color: var(--text-2); line-height: 1.55; max-width: 360px; margin: 0 auto; }

/* ============================================================
   Responsive trims
   ============================================================ */
/* Canonical content-column gutter ladder (matches .bv-page): 64 -> 48 -> 40 -> 16 */
@media (max-width: 1600px) {
  .aav-page { padding: 40px 48px 56px; }
}
@media (max-width: 1180px) {
  .aav-page { padding: 32px 40px 44px; }
  /* minmax(0,1fr), not 1fr: a bare 1fr is minmax(auto,1fr) whose `auto` floor is the
     content min-content — with the picker's nowrap chips that floor exceeds the phone
     viewport and shoves the whole workspace into horizontal scroll. minmax(0,…) lets the
     single column shrink to the available width. */
  .aav-grid { grid-template-columns: minmax(0, 1fr); }
  .aav-grid-left, .aav-rail, .aav-picker, .aav-step, .aav-suggest { min-width: 0; }
  .aav-rail { position: static; }
  .aavm-req-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
}
@media (max-width: 880px) {
  /* The shared marketing primitives (.hero / .split from index_new/styles.css) are 2-col with
     no built-in phone collapse, so the demo cards overflow the viewport. Scope the one-column
     stack to the logged-out page (mirrors the daily_verses twin). */
  .aav-loggedout .hero, .aav-loggedout .split { grid-template-columns: 1fr; gap: 40px; }
  .aav-loggedout .split.reverse > :first-child { order: 0; }
  .aav-loggedout .hero h1 { font-size: 50px; }
  .aav-loggedout .split h2 { font-size: 40px; }
}
@media (max-width: 767px) {
  /* extra top padding so the h1 clears the fixed app bar with breathing room (28px tucked it too high) */
  .aav-page { padding: 40px 16px 44px; min-width: 0; }
  .aav-head h1 { font-size: 34px; }
  /* keep the picker grids inside the viewport — minmax(0,…) lets the tracks shrink so
     the nowrap chips clip via their existing ellipsis instead of forcing horizontal scroll */
  .aav-books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aav-nums  { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .aav-search .kbd { display: none; }
  .aavm-req-copy h2 { font-size: 38px; }
}
@media (max-width: 560px) {
  /* long book names (e.g. "1 Thessalonians") read better two-up at phone width */
  .aav-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aav-nums  { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .aavm-two { grid-template-columns: 1fr; }
  /* Marketing hero/section headings — phone-portrait sizing (down from the 68px desktop hero). */
  .aav-loggedout .hero h1 { font-size: 40px; }
  .aav-loggedout .split h2, .aav-loggedout .aavm-req-copy h2 { font-size: 30px; }
}
