/* ════════════════════════════════════════════════════════════════════
 * APOSTOLIC GUIDE — v3 STYLES
 * Layered on top of styles.css. All v3 selectors prefixed:
 *   .ws-*    Workspace sheets
 *   .ms-*    My Study tabs/cards
 *   .nb-*    Notebook manager
 *   .rs-*    Reader settings
 *   .ps-*    Personal Study results (some legacy reuse)
 *   .hl-*    Highlights
 *   .ag-offline-indicator
 *
 * Plus a dark mode contrast pass that overrides muddy spots from styles.css.
 * ══════════════════════════════════════════════════════════════════ */

/* ── CSS variables — v3 tokens that sit alongside the existing ones ── */
:root {
  --ag-radius-sm: 8px;
  --ag-radius-md: 12px;
  --ag-radius-lg: 16px;
  --ag-shadow-sheet: 0 -8px 40px rgba(0,0,0,0.18);
  --ag-hl-gold: rgba(184, 150, 62, 0.32);
  --ag-hl-yellow: rgba(247, 213, 99, 0.40);
}

body.theme-dark {
  --ag-hl-gold: rgba(212, 175, 75, 0.34);
  --ag-hl-yellow: rgba(247, 213, 99, 0.30);
}

/* Disable scroll under the sheet */
body.sheet-open { overflow: hidden; }

/* ════════════════════════════════════════════════════════════════════
 * WORKSPACE SHEETS — universal modal pattern
 * ══════════════════════════════════════════════════════════════════ */

.ws-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.ws-backdrop.open { opacity: 1; pointer-events: auto; }

.ws-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--surface, #faf9f5);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 14px 22px 26px;
  z-index: 1001;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--ag-shadow-sheet);
  transform: translateY(100%);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.ws-sheet.open { transform: translateY(0); }
.ws-sheet-large { max-height: 92vh; }

@media (min-width: 720px) {
  .ws-sheet {
    left: 50%;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -45%);
    max-width: 560px;
    border-radius: 16px;
    padding: 18px 26px 24px;
  }
  .ws-sheet.open { transform: translate(-50%, -50%); }
  .ws-sheet-large { max-width: 680px; max-height: 84vh; }
}

.ws-sheet-handle {
  width: 38px; height: 4px;
  background: rgba(0,0,0,0.18);
  border-radius: 2px;
  margin: 0 auto 14px;
}

.ws-sheet-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal, #2a2d25);
  margin-bottom: 4px;
}
.ws-sheet-sub {
  font-size: 12px;
  color: var(--text-3, #6c6e6a);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ws-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3, #6c6e6a);
  margin: 14px 0 6px;
}

.ws-input,
.ws-textarea,
.ws-select {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(42,45,37,0.16);
  border-radius: 10px;
  color: var(--charcoal, #2a2d25);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.ws-input:focus,
.ws-textarea:focus,
.ws-select:focus {
  outline: none;
  border-color: rgba(184,150,62,0.55);
  background: #fff;
}
.ws-textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
  font-family: var(--serif, Georgia, serif);
}

.ws-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 22px;
}
.ws-sheet-actions .btn { min-width: 88px; }
.ws-danger { color: #b14a4a; }

/* ════════════════════════════════════════════════════════════════════
 * MY STUDY — hero, segment, onboarding, tabs
 * ══════════════════════════════════════════════════════════════════ */

.ms-hero {
  padding: 8px 0 18px;
}
.ms-hero-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--charcoal, #2a2d25);
}
.ms-hero-sub {
  font-size: 14px;
  color: var(--text-3, #6c6e6a);
  margin-top: 4px;
}

.ms-segment {
  display: flex;
  background: rgba(42,45,37,0.06);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.ms-seg-btn {
  flex: 1;
  padding: 9px 14px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2, #4a4d47);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ms-seg-btn.active {
  background: var(--surface, #faf9f5);
  color: var(--charcoal, #2a2d25);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ── Onboarding card (Part 4.5) ──────────────────────────────── */

.ms-onboarding { margin-bottom: 22px; }
.ms-onb-card {
  background: linear-gradient(180deg, rgba(184,150,62,0.10) 0%, rgba(184,150,62,0.02) 100%);
  border: 1px solid rgba(184,150,62,0.22);
  border-radius: var(--ag-radius-lg);
  padding: 22px 22px 18px;
}
.ms-onb-headline {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal, #2a2d25);
  margin-bottom: 6px;
}
.ms-onb-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2, #4a4d47);
  margin-bottom: 6px;
}
.ms-onb-tagline {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--gold, #b8963e);
  font-style: italic;
  margin-bottom: 18px;
}
.ms-onb-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
@media (min-width: 720px) {
  .ms-onb-quick { grid-template-columns: repeat(4, 1fr); }
}
.ms-onb-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(42,45,37,0.10);
  border-radius: 12px;
  padding: 14px 12px 12px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s, background 0.15s;
}
.ms-onb-quick-btn:hover {
  border-color: rgba(184,150,62,0.40);
  transform: translateY(-1px);
  background: #fff;
}
.ms-onb-quick-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}
.ms-onb-quick-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--charcoal, #2a2d25);
}
.ms-onb-quick-sub {
  font-size: 12px;
  color: var(--text-3, #6c6e6a);
}

/* ── Start Here cards ────────────────────────────────────────── */

.ms-onb-start-here {
  margin-top: 22px;
  margin-bottom: 8px;
}
.ms-onb-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 600px) {
  .ms-onb-cards { grid-template-columns: repeat(2, 1fr); }
}
.ms-onb-card-btn {
  position: relative;
  text-align: left;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(42,45,37,0.08));
  border-radius: 14px;
  padding: 18px 18px 16px 56px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  width: 100%;
}
.ms-onb-card-btn:hover {
  border-color: rgba(184,150,62,0.40);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.ms-onb-card-num {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  color: var(--gold, #b8963e);
  background: rgba(184,150,62,0.10);
  border-radius: 50%;
  flex-shrink: 0;
}
.ms-onb-card-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal, #2a2d25);
  margin-bottom: 4px;
}
.ms-onb-card-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2, #6c6e6a);
}

.ms-onb-dismiss-row {
  margin-top: 14px;
  text-align: center;
}
.ms-onb-dismiss {
  display: inline-block;
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-3, #6c6e6a);
  cursor: pointer;
}
.ms-onb-dismiss:hover { color: var(--charcoal, #2a2d25); text-decoration: underline; }

/* ── Continue + stats ───────────────────────────────────────── */

.ms-continue {
  background: var(--surface, #faf9f5);
  border: 1px solid rgba(42,45,37,0.10);
  border-radius: var(--ag-radius-md);
  padding: 18px 20px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 0.15s, transform 0.12s;
}
.ms-continue:hover { border-color: rgba(184,150,62,0.40); transform: translateY(-1px); }
.ms-continue-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3, #6c6e6a);
  margin-bottom: 4px;
}
.ms-continue-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 19px;
  color: var(--charcoal, #2a2d25);
  margin-bottom: 6px;
}
.ms-continue-action {
  font-size: 13px;
  color: var(--gold, #b8963e);
}

.ms-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.ms-stats-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3, #6c6e6a);
  margin-bottom: 14px;
}
.ms-stat-chip {
  flex: 1 1 80px;
  background: rgba(42,45,37,0.04);
  border: 1px solid rgba(42,45,37,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}
.ms-stat-n {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  color: var(--charcoal, #2a2d25);
  line-height: 1;
}
.ms-stat-l {
  font-size: 11px;
  color: var(--text-3, #6c6e6a);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Tabs (Workspace + Library) ─────────────────────────────── */

.ms-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.ms-tabs::-webkit-scrollbar { display: none; }
.ms-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(42,45,37,0.10);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2, #4a4d47);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.ms-tab.active {
  background: var(--charcoal, #2a2d25);
  border-color: var(--charcoal, #2a2d25);
  color: var(--surface, #faf9f5);
}

.ms-tab-body { padding-top: 4px; }

.ms-section-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3, #6c6e6a);
  margin: 18px 0 10px;
}

.ms-row-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* ── Lists, rows, cards ─────────────────────────────────────── */

.ms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ms-row {
  background: var(--surface, #faf9f5);
  border: 1px solid rgba(42,45,37,0.08);
  border-radius: var(--ag-radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.ms-row:hover {
  border-color: rgba(184,150,62,0.40);
  transform: translateY(-1px);
}
.ms-row-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #b8963e);
  margin-bottom: 4px;
}
.ms-row-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal, #2a2d25);
}
.ms-row-snip {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2, #4a4d47);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ms-row-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3, #6c6e6a);
}

.ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.ms-card {
  background: var(--surface, #faf9f5);
  border: 1px solid rgba(42,45,37,0.08);
  border-radius: var(--ag-radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}
.ms-card:hover { border-color: rgba(184,150,62,0.40); transform: translateY(-1px); }
.ms-card-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3, #6c6e6a);
  margin-bottom: 4px;
}
.ms-card-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal, #2a2d25);
  margin-bottom: 4px;
}
.ms-card-body {
  font-size: 13px;
  color: var(--text-2, #4a4d47);
  line-height: 1.55;
}
.ms-card-action {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold, #b8963e);
}

.ms-resource-card {
  display: block;
  text-decoration: none;
  background: var(--surface, #faf9f5);
  border: 1px solid rgba(42,45,37,0.10);
  border-radius: var(--ag-radius-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.ms-resource-card:hover { border-color: rgba(184,150,62,0.40); }
.ms-resource-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #b8963e);
  background: rgba(184,150,62,0.10);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.ms-resource-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 16px;
  color: var(--charcoal, #2a2d25);
  margin-bottom: 4px;
}
.ms-resource-sub {
  font-size: 13px;
  color: var(--text-2, #4a4d47);
}

/* ── Empty states ───────────────────────────────────────────── */

.ms-empty {
  background: rgba(42,45,37,0.03);
  border: 1px dashed rgba(42,45,37,0.18);
  border-radius: var(--ag-radius-md);
  padding: 28px 22px;
  text-align: center;
}
.ms-empty-msg {
  font-size: 14px;
  color: var(--text-2, #4a4d47);
  line-height: 1.55;
  margin-bottom: 12px;
}
.ms-empty-actions { display: flex; gap: 8px; justify-content: center; }
.ms-empty-actions .btn { min-width: 110px; }

/* ── Saved answer modal body ────────────────────────────────── */

.ms-answer-body {
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal, #2a2d25);
  white-space: pre-wrap;
  margin: 6px 0 14px;
  max-height: 50vh;
  overflow-y: auto;
}
.ms-answer-note {
  background: rgba(184,150,62,0.08);
  border-left: 3px solid var(--gold, #b8963e);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--text-2, #4a4d47);
  margin-bottom: 14px;
}

/* ── FAQ ────────────────────────────────────────────────────── */

.ms-faq-search { margin-bottom: 12px; }
.ms-input {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(42,45,37,0.16);
  border-radius: 10px;
  color: var(--charcoal, #2a2d25);
  font-family: inherit;
  box-sizing: border-box;
}
.ms-input:focus {
  outline: none;
  border-color: rgba(184,150,62,0.55);
  background: #fff;
}

.ms-faq {
  background: var(--surface, #faf9f5);
  border: 1px solid rgba(42,45,37,0.08);
  border-radius: var(--ag-radius-md);
  padding: 0;
  overflow: hidden;
}
.ms-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal, #2a2d25);
  cursor: pointer;
}
.ms-faq-q:hover { background: rgba(42,45,37,0.04); }
.ms-faq-chev { font-size: 12px; color: var(--text-3, #6c6e6a); }
.ms-faq-a { padding: 0 16px 14px; border-top: 1px solid rgba(42,45,37,0.08); }
.ms-faq-body {
  font-family: var(--serif, Georgia, serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2, #4a4d47);
  margin: 12px 0;
}
.ms-faq-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.ms-faq-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Video frame ────────────────────────────────────────────── */

.ms-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin: 6px 0 14px;
}
.ms-video-frame iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ════════════════════════════════════════════════════════════════════
 * NOTEBOOK MANAGER
 * ══════════════════════════════════════════════════════════════════ */

.nb-cap {
  font-size: 12px;
  color: var(--text-3, #6c6e6a);
  margin-bottom: 12px;
}
.nb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.nb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(42,45,37,0.03);
  border-radius: 10px;
}
.nb-row-title {
  font-size: 14px;
  color: var(--charcoal, #2a2d25);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nb-system-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(42,45,37,0.10);
  color: var(--text-3, #6c6e6a);
  padding: 2px 6px;
  border-radius: 999px;
}
.nb-row-actions { display: flex; gap: 4px; }
.nb-link {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-2, #4a4d47);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.nb-link:hover { background: rgba(42,45,37,0.06); }
.nb-danger { color: #b14a4a; }
.nb-danger:hover { background: rgba(177,74,74,0.10); }

.ms-nb-card {
  background: var(--surface, #faf9f5);
  border: 1px solid rgba(42,45,37,0.10);
  border-radius: var(--ag-radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}
.ms-nb-card:hover { border-color: rgba(184,150,62,0.40); transform: translateY(-1px); }
.ms-nb-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal, #2a2d25);
  margin-bottom: 4px;
}
.ms-nb-count {
  font-size: 12px;
  color: var(--text-3, #6c6e6a);
}

/* ════════════════════════════════════════════════════════════════════
 * READER SETTINGS + READER PREFS APPLIED VIA BODY DATA-* ATTRS
 * ══════════════════════════════════════════════════════════════════ */

.rs-group { margin-bottom: 18px; }
.rs-group-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3, #6c6e6a);
  margin-bottom: 8px;
}
.rs-segment {
  display: flex;
  background: rgba(42,45,37,0.06);
  border-radius: 10px;
  padding: 4px;
}
.rs-seg-btn {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-2, #4a4d47);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rs-seg-btn.active {
  background: var(--surface, #faf9f5);
  color: var(--charcoal, #2a2d25);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ── Reader prefs applied at body level ────────────────────── */

body[data-reader-size="compact"] .verse-row,
body[data-reader-size="compact"] .verse-text { font-size: 14px !important; }
body[data-reader-size="normal"]  .verse-row,
body[data-reader-size="normal"]  .verse-text { font-size: 16px !important; }
body[data-reader-size="large"]   .verse-row,
body[data-reader-size="large"]   .verse-text { font-size: 19px !important; }

body[data-reader-spacing="compact"]  .verse-row,
body[data-reader-spacing="compact"]  .verse-text { line-height: 1.45 !important; }
body[data-reader-spacing="normal"]   .verse-row,
body[data-reader-spacing="normal"]   .verse-text { line-height: 1.7 !important; }
body[data-reader-spacing="spacious"] .verse-row,
body[data-reader-spacing="spacious"] .verse-text { line-height: 2.05 !important; }

body[data-reader-font="sans"]    .verse-row,
body[data-reader-font="sans"]    .verse-text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important; }
body[data-reader-font="serif"]   .verse-row,
body[data-reader-font="serif"]   .verse-text { font-family: Georgia, 'Times New Roman', Times, serif !important; }
body[data-reader-font="classic"] .verse-row,
body[data-reader-font="classic"] .verse-text { font-family: 'Hoefler Text', 'Cormorant Garamond', 'Garamond', Georgia, serif !important; }

/* ── Highlights ────────────────────────────────────────────── */

.verse-row.hl-gold,
[data-ref].hl-gold {
  background: linear-gradient(180deg, transparent 0%, var(--ag-hl-gold) 35%, var(--ag-hl-gold) 100%);
  border-radius: 4px;
}
.verse-row.hl-yellow,
[data-ref].hl-yellow {
  background: linear-gradient(180deg, transparent 0%, var(--ag-hl-yellow) 35%, var(--ag-hl-yellow) 100%);
  border-radius: 4px;
}
.hl-icon-gold   { color: #b8963e; }
.hl-icon-yellow { color: #d4af37; }

/* ════════════════════════════════════════════════════════════════════
 * CONCORDANCE RESULTS (Personal Study search)
 * ══════════════════════════════════════════════════════════════════ */

.ps-results-header {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3, #6c6e6a);
  margin: 14px 0 10px;
}
.ps-results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.ps-result-card {
  background: var(--surface, #faf9f5);
  border: 1px solid rgba(42,45,37,0.10);
  border-radius: var(--ag-radius-md);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}
.ps-result-card:hover { border-color: rgba(184,150,62,0.45); transform: translateY(-1px); }
.ps-result-id {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold, #b8963e);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.ps-result-lemma {
  font-family: var(--serif, Georgia, serif);
  font-size: 16px;
  color: var(--charcoal, #2a2d25);
}
.ps-result-translit {
  font-size: 12px;
  font-style: italic;
  color: var(--text-2, #4a4d47);
  margin-top: 2px;
}
.ps-result-kjv {
  font-size: 12px;
  color: var(--text-3, #6c6e6a);
  margin-top: 4px;
}

.ps-empty-result {
  padding: 24px 18px;
  text-align: center;
  background: rgba(42,45,37,0.03);
  border: 1px dashed rgba(42,45,37,0.18);
  border-radius: var(--ag-radius-md);
  color: var(--text-2, #4a4d47);
}
.ps-dym {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3, #6c6e6a);
}
.ps-dym-pill {
  display: inline-block;
  padding: 4px 12px;
  margin: 4px 4px 0 4px;
  background: rgba(184,150,62,0.10);
  border: 1px solid rgba(184,150,62,0.25);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gold, #b8963e);
  cursor: pointer;
  transition: background 0.15s;
}
.ps-dym-pill:hover { background: rgba(184,150,62,0.20); }
.ps-loading {
  padding: 24px;
  text-align: center;
  color: var(--text-3, #6c6e6a);
  font-size: 13px;
}

/* ════════════════════════════════════════════════════════════════════
 * BIBLE GUIDE — save / copy buttons appended to assistant turns
 * ══════════════════════════════════════════════════════════════════ */

.guide-save-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(42,45,37,0.08);
}
.guide-save-row .btn-ghost {
  font-size: 12px;
  padding: 5px 11px;
  background: transparent;
  border: 1px solid rgba(42,45,37,0.14);
  border-radius: 6px;
  color: var(--text-2, #4a4d47);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.guide-save-row .btn-ghost:hover {
  border-color: rgba(184,150,62,0.45);
  color: var(--gold, #b8963e);
}

/* ════════════════════════════════════════════════════════════════════
 * OFFLINE INDICATOR
 * ══════════════════════════════════════════════════════════════════ */

.ag-offline-indicator {
  position: fixed;
  bottom: 76px; /* sits above bottom nav on mobile */
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(42,45,37,0.92);
  color: #faf9f5;
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
}
@media (min-width: 720px) {
  .ag-offline-indicator { bottom: 18px; }
}

/* ════════════════════════════════════════════════════════════════════
 * DARK MODE — contrast pass (Part 21)
 * Override muddy spots from styles.css and reinforce v3 components.
 * ══════════════════════════════════════════════════════════════════ */

body.theme-dark {
  --surface: #1f2024;
  --charcoal: #ecebe6;
  --text-2: #c9c8c2;
  --text-3: #94938e;
  --gold: #d4b15a;
  --gold-dim: rgba(212,177,90,0.14);
  --border: 1px solid rgba(255,255,255,0.10);
  --border-gold: 1px solid rgba(212,177,90,0.32);
}

/* Bible body text — bump contrast in dark mode */
body.theme-dark .verse-row,
body.theme-dark .verse-text {
  color: #ecebe6;
}
body.theme-dark .verse-num { color: #d4b15a; }

/* Cards / inputs / buttons */
body.theme-dark .ws-sheet,
body.theme-dark .ms-row,
body.theme-dark .ms-card,
body.theme-dark .ms-faq,
body.theme-dark .ms-nb-card,
body.theme-dark .ps-result-card,
body.theme-dark .ms-resource-card {
  background: #1f2024;
  border-color: rgba(255,255,255,0.10);
}
body.theme-dark .ms-row:hover,
body.theme-dark .ms-card:hover,
body.theme-dark .ms-nb-card:hover,
body.theme-dark .ps-result-card:hover {
  border-color: rgba(212,177,90,0.45);
}

body.theme-dark .ws-input,
body.theme-dark .ws-textarea,
body.theme-dark .ws-select,
body.theme-dark .ms-input {
  background: #2a2c30;
  border-color: rgba(255,255,255,0.14);
  color: #ecebe6;
}
body.theme-dark .ws-input:focus,
body.theme-dark .ws-textarea:focus,
body.theme-dark .ws-select:focus,
body.theme-dark .ms-input:focus {
  border-color: rgba(212,177,90,0.65);
  background: #303236;
}

body.theme-dark .ms-segment,
body.theme-dark .rs-segment {
  background: rgba(255,255,255,0.06);
}
body.theme-dark .ms-seg-btn.active,
body.theme-dark .rs-seg-btn.active {
  background: #2a2c30;
  color: #ecebe6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.30);
}
body.theme-dark .ms-seg-btn { color: #c9c8c2; }
body.theme-dark .rs-seg-btn { color: #c9c8c2; }

body.theme-dark .ms-tab {
  border-color: rgba(255,255,255,0.14);
  color: #c9c8c2;
}
body.theme-dark .ms-tab.active {
  background: #d4b15a;
  border-color: #d4b15a;
  color: #1a1a1a;
}

body.theme-dark .ms-onb-card {
  background: linear-gradient(180deg, rgba(212,177,90,0.16) 0%, rgba(212,177,90,0.04) 100%);
  border-color: rgba(212,177,90,0.32);
}
body.theme-dark .ms-onb-tagline { color: #d4b15a; }
body.theme-dark .ms-onb-quick-btn {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
body.theme-dark .ms-onb-quick-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,177,90,0.45);
}
body.theme-dark .ms-onb-quick-label { color: rgba(255,255,255,0.92); }
body.theme-dark .ms-onb-quick-sub   { color: rgba(255,255,255,0.55); }
body.theme-dark .ms-onb-card-btn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
body.theme-dark .ms-onb-card-btn:hover {
  border-color: rgba(212,177,90,0.45);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
body.theme-dark .ms-onb-card-num {
  color: #d4b15a;
  background: rgba(212,177,90,0.14);
}
body.theme-dark .ms-onb-card-title { color: rgba(255,255,255,0.92); }
body.theme-dark .ms-onb-card-sub   { color: rgba(255,255,255,0.6); }

body.theme-dark .ms-empty {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.14);
}
body.theme-dark .ms-stat-chip {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
body.theme-dark .nb-row {
  background: rgba(255,255,255,0.05);
}
body.theme-dark .nb-system-badge {
  background: rgba(255,255,255,0.10);
  color: #c9c8c2;
}

body.theme-dark .ms-faq-q:hover { background: rgba(255,255,255,0.05); }
body.theme-dark .ms-faq-a { border-top-color: rgba(255,255,255,0.10); }
body.theme-dark .ms-answer-note {
  background: rgba(212,177,90,0.10);
  border-left-color: #d4b15a;
}

body.theme-dark .guide-save-row { border-top-color: rgba(255,255,255,0.10); }
body.theme-dark .guide-save-row .btn-ghost {
  border-color: rgba(255,255,255,0.18);
  color: #c9c8c2;
}
body.theme-dark .guide-save-row .btn-ghost:hover {
  border-color: rgba(212,177,90,0.55);
  color: #d4b15a;
}

body.theme-dark .ag-offline-indicator {
  background: #d4b15a;
  color: #1a1a1a;
}

/* Highlights stay readable on dark background */
body.theme-dark [data-ref].hl-gold {
  background: linear-gradient(180deg, transparent 0%, rgba(212,177,90,0.34) 35%, rgba(212,177,90,0.34) 100%);
}
body.theme-dark [data-ref].hl-yellow {
  background: linear-gradient(180deg, transparent 0%, rgba(247,213,99,0.30) 35%, rgba(247,213,99,0.30) 100%);
}

/* Action button contrast lift in dark mode */
body.theme-dark .vs-action {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: #ecebe6;
}
body.theme-dark .vs-action:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,177,90,0.45);
}
body.theme-dark .vs-action-primary {
  background: #d4b15a;
  color: #1a1a1a;
  border-color: #d4b15a;
}

/* ════════════════════════════════════════════════════════════════════
 * LOGO INTEGRATION (Part 20)
 * ══════════════════════════════════════════════════════════════════ */

.nav-mark-img {
  display: block;
  border-radius: 6px;
  object-fit: cover;
  background: var(--charcoal, #2a2d25); /* fallback if image fails */
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
 * RECOMMENDED / PRODUCTS TAB (Part 22)
 * ══════════════════════════════════════════════════════════════════ */

.ms-affiliate-disclosure {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2, #6c6e6a);
  background: rgba(184, 150, 62, 0.06);
  border: 1px solid rgba(184, 150, 62, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.ms-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.ms-product-card {
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(0,0,0,0.08));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.1s;
}
.ms-product-card:hover {
  border-color: rgba(184, 150, 62, 0.4);
}
.ms-product-card:active { transform: translateY(1px); }

.ms-product-img {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: rgba(42, 45, 37, 0.04);
}
.ms-product-img-placeholder {
  background-image: linear-gradient(135deg, rgba(184, 150, 62, 0.10), rgba(42, 45, 37, 0.06));
  position: relative;
}
.ms-product-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/logo/logo-180.png') center / 30% no-repeat;
  opacity: 0.18;
}

.ms-product-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ms-product-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal, #1a1c1e);
  line-height: 1.3;
}
.ms-product-sub {
  font-size: 12.5px;
  color: var(--text-2, #6c6e6a);
}
.ms-product-desc {
  font-size: 13px;
  color: var(--text-2, #6c6e6a);
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ms-product-price {
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  color: var(--gold, #b8963e);
  margin-top: 6px;
}

.ms-product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.ms-product-btn {
  flex: 1;
  font-size: 13px;
  padding: 8px 12px;
}
.ms-product-save {
  font-size: 13px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line, rgba(0,0,0,0.12));
  border-radius: 8px;
  color: var(--text-2, #6c6e6a);
  cursor: pointer;
  font-family: inherit;
}
.ms-product-save:hover {
  background: rgba(42, 45, 37, 0.04);
  color: var(--charcoal, #1a1c1e);
}

/* Dark mode */
body.theme-dark .ms-affiliate-disclosure {
  background: rgba(212, 177, 90, 0.08);
  border-color: rgba(212, 177, 90, 0.20);
  color: rgba(255, 255, 255, 0.7);
}
body.theme-dark .ms-product-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}
body.theme-dark .ms-product-card:hover {
  border-color: rgba(212, 177, 90, 0.4);
}
body.theme-dark .ms-product-title { color: rgba(255, 255, 255, 0.92); }
body.theme-dark .ms-product-sub,
body.theme-dark .ms-product-desc { color: rgba(255, 255, 255, 0.6); }
body.theme-dark .ms-product-price { color: #d4b15a; }
body.theme-dark .ms-product-save {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
}
body.theme-dark .ms-product-save:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 480px) {
  .ms-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ms-product-body { padding: 12px 10px 14px; }
  .ms-product-title { font-size: 14px; }
  .ms-product-actions { flex-direction: column; gap: 6px; }
}

/* ════════════════════════════════════════════════════════════════════
 * MY STUDY DASHBOARD (Part 23)
 * --------------------------------------------------------------------
 * Stacked sections, no tabs. Single vertical scroll.
 * ══════════════════════════════════════════════════════════════════ */

.ms-block {
  margin-bottom: 26px;
}
.ms-block-hero { margin-bottom: 20px; }

.ms-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ms-block-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal, #2a2d25);
  letter-spacing: 0.01em;
}
.ms-block-action {
  font-size: 12.5px;
  background: transparent;
  border: none;
  padding: 4px 8px;
  margin: -4px -8px -4px 0;
  color: var(--gold, #b8963e);
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  transition: background 0.15s;
}
.ms-block-action:hover {
  background: rgba(184, 150, 62, 0.08);
}

/* ── Continue Studying — refined hero card ─────────────────── */

.ms-continue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ms-continue-side {
  flex: 1;
  min-width: 0;
}
.ms-continue-meta {
  font-size: 11.5px;
  color: var(--text-3, #6c6e6a);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ms-continue-meta .ms-row-type {
  display: inline-block;
  margin: 0;
}
.ms-continue-row .ms-continue-action {
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Quick Actions — compact row ───────────────────────────── */

.ms-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ms-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px 12px;
  background: var(--surface, #faf9f5);
  border: 1px solid rgba(42,45,37,0.08);
  border-radius: var(--ag-radius-md, 12px);
  cursor: pointer;
  font-family: inherit;
  color: var(--charcoal, #2a2d25);
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
}
.ms-quick-btn:hover {
  border-color: rgba(184, 150, 62, 0.40);
  background: #fff;
}
.ms-quick-btn:active { transform: translateY(1px); }
.ms-quick-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--gold, #b8963e);
  font-family: var(--serif, Georgia, serif);
}
.ms-quick-label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .ms-quick-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ms-quick-btn { padding: 12px 6px; }
  .ms-quick-icon { font-size: 18px; }
  .ms-quick-label { font-size: 11.5px; }
}

/* View All sheet body */
.ms-viewall-body {
  margin-top: 8px;
  margin-bottom: 12px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Saved-this-week stat label is now part of the block-head, not separate */
.ms-block .ms-stats { margin-bottom: 0; }

/* Dark mode */
body.theme-dark .ms-block-title { color: rgba(255, 255, 255, 0.92); }
body.theme-dark .ms-block-action { color: #d4b15a; }
body.theme-dark .ms-block-action:hover { background: rgba(212, 177, 90, 0.10); }
body.theme-dark .ms-quick-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
}
body.theme-dark .ms-quick-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 177, 90, 0.40);
}
body.theme-dark .ms-quick-icon { color: #d4b15a; }
body.theme-dark .ms-continue-meta { color: rgba(255, 255, 255, 0.55); }

/* ════════════════════════════════════════════════════════════════════
 * NO-ZOOM HARDENING (iOS Safari)
 * --------------------------------------------------------------------
 * iOS auto-zooms when an <input> is focused and font-size < 16px. The
 * viewport meta tag already disables pinch-zoom; this stops the focus
 * zoom too. 16px is the threshold — anything ≥ 16 prevents the zoom.
 * ══════════════════════════════════════════════════════════════════ */

input,
textarea,
select {
  font-size: 16px;
}

/* Allow specific small inputs to opt-in to 14/13px on larger screens */
@media (min-width: 768px) {
  input.input-sm,
  textarea.input-sm,
  select.input-sm {
    font-size: 14px;
  }
}

/* Prevent iOS double-tap zoom on tap targets */
button,
.btn,
[role="button"],
.nav-link,
.bottom-nav-link,
.mobile-nav-link,
.ms-tab,
.ms-seg-btn,
.ms-onb-quick-btn,
.ms-onb-card-btn,
.ms-product-btn,
.ms-quick-btn,
.dash-quick-card {
  touch-action: manipulation;
}

/* ════════════════════════════════════════════════════════════════════
 * MY STUDY — STICKY SEARCH BAR
 * Floats above the segment control. Sticks while you scroll.
 * ══════════════════════════════════════════════════════════════════ */

.ms-search-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg, #faf9f6);
  padding: 8px 0 4px;
  margin: 4px 0 12px;
}
body.theme-dark .ms-search-wrap {
  background: var(--bg, #1a1c1e);
}

.ms-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(42,45,37,0.10));
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ms-search:focus-within {
  border-color: rgba(184,150,62,0.55);
  box-shadow: 0 0 0 3px rgba(184,150,62,0.10);
}
.ms-search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-3, #6c6e6a);
  flex-shrink: 0;
}
.ms-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px; /* keeps iOS from auto-zooming on focus */
  color: var(--charcoal, #2a2d25);
  font-family: inherit;
}
.ms-search-input::placeholder {
  color: var(--text-3, #8a8c87);
  font-size: 14.5px;
}
.ms-search-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--charcoal, #2a2d25);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.ms-search-btn:hover { background: #1a1c1e; }
.ms-search-clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  background: rgba(42,45,37,0.06);
  color: var(--text-2, #4a4d47);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ms-search-clear:hover { background: rgba(42,45,37,0.12); }

/* Results dropdown */
.ms-search-results {
  margin-top: 8px;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(42,45,37,0.10));
  border-radius: 14px;
  padding: 6px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.ms-search-loading,
.ms-search-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-2, #6c6e6a);
}
.ms-search-empty strong { color: var(--charcoal, #2a2d25); }

.ms-search-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ms-search-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
.ms-search-row:hover { background: rgba(184,150,62,0.06); }
.ms-search-row-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold, #b8963e);
  margin-bottom: 3px;
}
.ms-search-row-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  color: var(--charcoal, #2a2d25);
  line-height: 1.3;
  margin-bottom: 2px;
}
.ms-search-row-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2, #6c6e6a);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dark mode */
body.theme-dark .ms-search {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
body.theme-dark .ms-search:focus-within {
  border-color: rgba(212,177,90,0.55);
  box-shadow: 0 0 0 3px rgba(212,177,90,0.10);
}
body.theme-dark .ms-search-input { color: rgba(255,255,255,0.92); }
body.theme-dark .ms-search-input::placeholder { color: rgba(255,255,255,0.45); }
body.theme-dark .ms-search-btn { background: #d4b15a; color: #1a1c1e; }
body.theme-dark .ms-search-btn:hover { background: #e0bf6a; }
body.theme-dark .ms-search-clear {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
body.theme-dark .ms-search-clear:hover { background: rgba(255,255,255,0.14); }
body.theme-dark .ms-search-results {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
body.theme-dark .ms-search-row:hover { background: rgba(212,177,90,0.10); }
body.theme-dark .ms-search-row-label { color: #d4b15a; }
body.theme-dark .ms-search-row-title { color: rgba(255,255,255,0.92); }
body.theme-dark .ms-search-row-sub   { color: rgba(255,255,255,0.6); }

@media (max-width: 480px) {
  .ms-search-input::placeholder { font-size: 13px; }
  .ms-search-btn { padding: 8px 13px; font-size: 12.5px; }
}
