/**
 * Lightsword - Apple Aesthetic Stylesheet
 * Tipografía: Plus Jakarta Sans | Base >= 16px
 * Cero Emojis | 100% FontAwesome Icons
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root,
html[data-theme="light"],
[data-theme="light"] {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Paleta Crema y Ocre/Ladrillo Cálido Suave */
  --bg-app: #f6f1ee;                /* Blanco cálido con sutil matiz terracota/ocre (cero amarillo) */
  --bg-app-gradient: radial-gradient(135% 125% at 85% 12%, #fffdfa 0%, #f6f1ee 50%, #eae2dc 100%);
  --bg-surface: #ffffff;            /* Superficie blanca limpia */
  --bg-elevated: #eee6e0;           /* Tono cálido limpio para tarjetas e inputs */
  --bg-hover: #e4dad2;              /* Hover cálido limpio sin tono grisáceo/sucio */
  --bg-active: #d8ccc2;             /* Activo */
  --border-subtle: rgba(140, 94, 45, 0.10); /* Borde cálido sutil */
  --border-strong: rgba(140, 94, 45, 0.20);
  
  --text-primary: #24282e;          /* Gris oscuro para textos normales */
  --text-secondary: #4a515a;        /* Gris medio oscuro */
  --text-muted: #747d8a;            /* Gris neutro */
  
  --accent-primary: #8c5e2d;        /* Bronce para acentos y títulos */
  --accent-primary-hover: #734a1f;  /* Bronce oscuro */
  --accent-glow: rgba(140, 94, 45, 0.25);
  
  --btn-bronze-bg: linear-gradient(135deg, #9f6f3b, #7d4f20);
  --btn-bronze-text: #ffffff;
  
  --strong-pill-bg: rgba(140, 94, 45, 0.14);
  --strong-pill-text: #8c5e2d;      /* Bronce */
  --verse-highlight-bg: rgba(140, 94, 45, 0.10);
  --verse-highlight-border: #8c5e2d;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(90, 60, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(90, 60, 30, 0.10);
  --shadow-lg: 0 16px 48px rgba(90, 60, 30, 0.15);

  --header-height: 69px;
  --bottom-bar-height: 64px;
}

html[data-theme="dark"],
[data-theme="dark"] {
  /* Modo Bronce Nocturno / Café Expreso */
  --bg-app: #151311;
  --bg-app-gradient: radial-gradient(135% 125% at 85% 12%, #241f1a 0%, #151311 50%, #0b0908 100%);
  --bg-surface: #1e1a17;
  --bg-elevated: #292420;
  --bg-hover: #36302a;
  --bg-active: #423b34;
  --border-subtle: rgba(212, 163, 115, 0.15);
  --border-strong: rgba(212, 163, 115, 0.28);
  
  --text-primary: #e8e4dc;
  --text-secondary: #b5ada2;
  --text-muted: #82796e;
  
  --accent-primary: #d4a373;        /* Bronce claro dorado */
  --accent-primary-hover: #e0b68a;
  --accent-glow: rgba(212, 163, 115, 0.3);
  
  --btn-bronze-bg: linear-gradient(135deg, #c4925e, #966635);
  --btn-bronze-text: #151311;
  
  --strong-pill-bg: rgba(212, 163, 115, 0.18);
  --strong-pill-text: #d4a373;
  --verse-highlight-bg: rgba(212, 163, 115, 0.14);
  --verse-highlight-border: #d4a373;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
}

html[data-theme="steel"],
[data-theme="steel"] {
  /* Modo Moderno / Acero Claro - Escala de Grises Neutros */
  --bg-app: #e8ebed;                /* Gris neutro sutil no blanco */
  --bg-app-gradient: radial-gradient(135% 125% at 85% 12%, #f3f6f8 0%, #e8ebed 50%, #d8dfe4 100%);
  --bg-surface: #f4f6f8;            /* Superficie gris clara limpia */
  --bg-elevated: #dbe0e5;           /* Gris elevado para cajas e inputs */
  --bg-hover: #cfd6dc;              /* Hover gris neutro */
  --bg-active: #bfc8d1;             /* Activo */
  --border-subtle: rgba(45, 60, 75, 0.12); /* Borde neutro */
  --border-strong: rgba(45, 60, 75, 0.22);
  
  --text-primary: #1e252d;          /* Carbón oscuro de alta legibilidad */
  --text-secondary: #4b5563;        /* Gris medio */
  --text-muted: #6e7a88;            /* Gris neutro */
  
  --accent-primary: #3b5266;        /* Tono acero refinado */
  --accent-primary-hover: #263847;
  --accent-glow: rgba(59, 82, 102, 0.22);
  
  --btn-bronze-bg: linear-gradient(135deg, #475a6c, #2d3e4e);
  --btn-bronze-text: #ffffff;
  
  --strong-pill-bg: rgba(59, 82, 102, 0.13);
  --strong-pill-text: #3b5266;
  --verse-highlight-bg: rgba(59, 82, 102, 0.12);
  --verse-highlight-border: #3b5266;
  
  --shadow-sm: 0 2px 8px rgba(30, 45, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 45, 60, 0.10);
  --shadow-lg: 0 16px 48px rgba(30, 45, 60, 0.15);
}

html[data-theme="steel"] .header,
html[data-theme="steel"] .bottom-nav,
[data-theme="steel"] .header,
[data-theme="steel"] .bottom-nav {
  background: rgba(232, 235, 237, 0.94);
}

html[data-theme="steel-dark"],
[data-theme="steel-dark"] {
  /* Modo Moderno / Acero Oscuro - Carbón Slate Noche */
  --bg-app: #0f1318;
  --bg-app-gradient: radial-gradient(135% 125% at 85% 12%, #1b2430 0%, #0f1318 50%, #070a0d 100%);
  --bg-surface: #171c23;
  --bg-elevated: #212832;
  --bg-hover: #2b3442;
  --bg-active: #374254;
  --border-subtle: rgba(126, 169, 203, 0.14);
  --border-strong: rgba(126, 169, 203, 0.26);
  
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #82a4bf;        /* Acero luminoso frío */
  --accent-primary-hover: #9dbbd4;
  --accent-glow: rgba(130, 164, 191, 0.28);
  
  --btn-bronze-bg: linear-gradient(135deg, #3a546d, #24384a);
  --btn-bronze-text: #ffffff;
  
  --strong-pill-bg: rgba(130, 164, 191, 0.16);
  --strong-pill-text: #9ec1dc;
  --verse-highlight-bg: rgba(130, 164, 191, 0.13);
  --verse-highlight-border: #82a4bf;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
}

[data-theme="steel-dark"] .header,
[data-theme="steel-dark"] .bottom-nav {
  background: rgba(15, 19, 24, 0.94);
}

[data-theme="steel-dark"] .verse-action-bar {
  background: rgba(23, 28, 35, 0.95);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: var(--font-family);
  font-size: 16px; /* Base mínima obligatoria para iOS Safari */
  background: var(--bg-app-gradient, var(--bg-app));
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* App Shell Layout (Unified Center Frame max-width: 1024px) */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  background: var(--bg-app-gradient, var(--bg-app));
  background-attachment: fixed;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.12);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

/* Top App Header (Apple Glassmorphic Style) */
.header {
  height: var(--header-height);
  background: rgba(246, 241, 238, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 1050;
  position: relative;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

body.has-bottom-sheet-open .header,
.header.hide-header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

[data-theme="dark"] .header {
  background: rgba(21, 19, 17, 0.92);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: visible;
  white-space: nowrap;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-desktop {
  display: block;
  height: 38px;
  width: 89px;
  background-color: var(--accent-primary);
  -webkit-mask: url('../img/ed_horizontal.svg') no-repeat center / contain;
  mask: url('../img/ed_horizontal.svg') no-repeat center / contain;
  transition: opacity 0.15s ease;
}

.brand-logo-mobile {
  display: none;
  height: 36px;
  width: 84px;
  background-color: var(--accent-primary);
  -webkit-mask: url('../img/ed_vertical.svg') no-repeat center / contain;
  mask: url('../img/ed_vertical.svg') no-repeat center / contain;
  transition: opacity 0.15s ease;
}

.brand:hover .brand-logo-desktop,
.brand:hover .brand-logo-mobile {
  opacity: 0.85;
}

.brand-icon {
  display: none;
}

.brand:hover .brand-icon {
  background: transparent;
  border: none;
  transform: scale(1.08);
  box-shadow: none;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
  transition: filter 0.2s ease;
}

[data-theme="dark"] .brand-logo-img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 1;
  pointer-events: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  z-index: 2;
}

/* Central Unified Stacked Navigation Controls */
.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.header-nav-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.header-nav-title-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1.03rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.header-nav-title-btn:hover {
  color: var(--accent-primary);
  background: var(--bg-hover);
}

.header-nav-title-btn:active {
  transform: scale(0.97);
}

.header-nav-title-btn .arrow {
  font-size: 0.70rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}

.header-nav-version-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.header-nav-version-btn:hover {
  color: var(--accent-primary);
  background: var(--bg-hover);
}

.header-nav-version-btn:active {
  transform: scale(0.96);
}

.header-nav-version-btn .arrow {
  font-size: 0.56rem;
  color: inherit;
  opacity: 0.75;
}

.nav-pill-btn i:first-child {
  color: var(--accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-btn {
  width: 41px;
  height: 41px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.24rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--accent-primary-hover);
  border-color: transparent;
  transform: scale(1.08);
}

#globalSearchBtn,
#globalSearchBtn i {
  font-size: 1.30rem;
}

/* Main Workspace: Unified Single-Column Layout */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--header-height) - calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px)));
  max-height: calc(100dvh - var(--header-height) - calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px)));
}

.sidebar-collapse-handle,
#sidebar,
#inspector {
  display: none !important;
}

/* Panel 1: Sidebar (Books & Selector) */
.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  min-width: 260px;
}

.sidebar-section-header,
.inspector-section-header {
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
}

.search-input-wrapper i {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.search-input,
.inspector-select {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  box-sizing: border-box;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s ease;
  line-height: 30px;
}

.search-input {
  padding-left: 2.1rem;
}

.search-input:focus,
.search-input:hover,
.inspector-select:focus,
.inspector-select:hover {
  border-color: var(--accent-primary);
}

.books-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testament-label {
  padding: 0.75rem 0.75rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.book-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
  min-height: 44px;
}

.book-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.book-item.active {
  background: var(--bg-elevated);
  color: var(--accent-primary);
  font-weight: 600;
}

.book-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-app);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Sidebar Cascading Navigation (Capítulos & Versículos) */
.sidebar-back-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-back-btn:hover {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.sidebar-grid-nums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  padding: 0.85rem;
}

.sidebar-num-btn {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-num-btn:hover {
  background: var(--btn-bronze-bg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.sidebar-num-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.sidebar-read-all-btn {
  width: calc(100% - 1.7rem);
  margin: 0.75rem 0.85rem 0 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--accent-primary);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-read-all-btn:hover {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border-color: var(--accent-primary);
}

/* Panel 2: Central Bible Reader */
.reader-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
  scroll-behavior: smooth;
  position: relative;
}

.reader-toolbar {
  padding: 0.75rem 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chapter-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chapter-badge-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.chapter-badge-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.chapter-badge-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.reader-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem 0rem calc(var(--bottom-bar-height) + 1.5rem);
  box-sizing: border-box;
}

.chapter-header {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.chapter-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text-primary);
}

.btn-book-context {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: transparent;
}

.btn-book-context:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-primary);
  color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-book-context:active {
  transform: scale(0.96);
}

.btn-book-context i {
  font-size: 0.82rem;
}

/* Inversión para resaltar Contexto Histórico en temas claros */
:root .btn-book-context,
html[data-theme="light"] .btn-book-context,
[data-theme="light"] .btn-book-context,
html[data-theme="steel"] .btn-book-context,
[data-theme="steel"] .btn-book-context {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px var(--accent-glow);
}

:root .btn-book-context:hover,
html[data-theme="light"] .btn-book-context:hover,
[data-theme="light"] .btn-book-context:hover,
html[data-theme="steel"] .btn-book-context:hover,
[data-theme="steel"] .btn-book-context:hover {
  background: var(--accent-primary-hover);
  color: #ffffff;
  border-color: var(--accent-primary-hover);
  box-shadow: 0 4px 14px var(--accent-glow);
}

:root .btn-book-context i,
html[data-theme="light"] .btn-book-context i,
[data-theme="light"] .btn-book-context i,
html[data-theme="steel"] .btn-book-context i,
[data-theme="steel"] .btn-book-context i {
  color: #ffffff;
}

html[data-theme="light"] .context-h-btn,
[data-theme="light"] .context-h-btn,
html[data-theme="steel"] .context-h-btn,
[data-theme="steel"] .context-h-btn {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
}

html[data-theme="light"] .context-h-btn:hover,
[data-theme="light"] .context-h-btn:hover,
html[data-theme="steel"] .context-h-btn:hover,
[data-theme="steel"] .context-h-btn:hover {
  background: var(--accent-primary-hover) !important;
  color: #ffffff !important;
}

/* Verses Styling */
.verses-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0;
}

/* Verse Rows & Smooth Animated Spacing */
.verse-row {
  display: flex;
  flex-direction: column;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  line-height: 1.75;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  margin: 0.15rem 0;
  transition: margin 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.2s ease, 
              border-color 0.2s ease, 
              box-shadow 0.25s ease;
}

.verse-row.paragraph-break {
  margin-bottom: 0.85rem;
}

.verse-row:hover:not(.selected) {
  background: var(--bg-hover);
  border-color: var(--border-subtle);
}

/* Selected Verse Card - Seamlessly Integrated Dock Frame */
.verse-row.selected {
  margin: 0.95rem 0;
  padding: 0;
  background: var(--verse-highlight-bg);
  border: 1.5px solid var(--accent-primary);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.06);
}

.verse-row-content {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 0rem 0.85rem 0rem;
}

.verse-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 14px;
  text-align: right;
  padding-top: 3px;
  user-select: none;
}

.verse-row.selected .verse-num {
  color: var(--accent-primary);
}

.verse-text {
  flex: 1;
  word-break: break-word;
}

/* Seamless Integrated Bottom Dock (100% Semantic Theme Aware) */
.verse-row .verse-action-dock {
  display: none;
}

.verse-row.selected .verse-action-dock {
  display: flex;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 3px 6px;
  animation: fadeInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.verse-dock-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.48rem 0.65rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.verse-dock-btn i {
  color: var(--accent-primary);
  font-size: 0.84rem;
  transition: color 0.15s ease;
}

.verse-dock-btn:hover {
  background: var(--bg-hover);
  color: var(--accent-primary);
}

.verse-dock-btn:active {
  transform: scale(0.96);
}

.verse-dock-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
  margin: 0 2px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verse-comm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--accent-primary);
  opacity: 0.65;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
  float: right;
  margin-top: 2px;
  margin-left: 0.5rem;
  margin-right: 0;
  padding: 2px;
  width: auto;
  height: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.verse-comm-btn:hover {
  opacity: 1;
  background: transparent;
  color: var(--accent-primary-hover);
  border: none;
  box-shadow: none;
  transform: scale(1.15);
}

.verse-comm-btn:active {
  transform: scale(0.92);
}

.verse-row.selected .verse-comm-btn {
  opacity: 0.95;
  background: transparent;
}

/* Chapter & Book Bottom Navigation Footer */
.chapter-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.chapter-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  min-height: 44px;
}

.chapter-nav-btn:hover {
  background: var(--btn-bronze-bg);
  border-color: var(--accent-primary);
  color: var(--btn-bronze-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.chapter-nav-btn.next {
  margin-left: auto;
}

.chapter-nav-btn i {
  font-size: 0.85rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}

.chapter-nav-btn:hover i {
  color: var(--btn-bronze-text);
}

.chapter-nav-btn.prev:hover i {
  transform: translateX(-3px);
}

.chapter-nav-btn.next:hover i {
  transform: translateX(3px);
}

/* Strong Number Interactive Badges (Sutil y Elegante) */
.str-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 2px 5px;
  margin: 0 3px;
  border-radius: 4px;
  color: var(--strong-pill-text);
  background: var(--strong-pill-bg);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  vertical-align: 1px;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  opacity: 0.9;
}

.str-num::before {
  content: attr(data-strong);
}

.str-num:hover {
  opacity: 1;
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 6px var(--accent-glow);
  transform: translateY(-1px) scale(1.04);
}

/* Panel 3: Right Sidebar (Inspector de Comentarios Exegéticos) */
.inspector {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  height: 100%;
  overflow: hidden;
  z-index: 20;
}

.inspector-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  cursor: pointer;
}

.inspector-header-bottom {
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  display: flex;
  align-items: center;
}

.inspector-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inspector-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  font-weight: 700;
}

.accordion-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.accordion-toggle-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.accordion-toggle-btn i {
  transition: transform 0.25s ease;
}

.inspector-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.inspector-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  gap: 0.6rem;
}

.inspector-empty-state i {
  font-size: 1.8rem;
  opacity: 0.4;
  color: var(--accent-primary);
}

.inspector-empty-state p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.inspector-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
  line-height: 1.65;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.inspector-card:last-child {
  margin-bottom: 0;
}

.inspector-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.inspector-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.inspector-dict-lemma {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.inspector-dict-phonetic {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-muted);
}

.inspector-dict-def {
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.commentary-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.commentary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.commentary-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-primary);
}

/* Normalización segura de texto enriquecido (sin interferir con botones, inputs o iconos de modales) */
.dict-tab-content p,
.inspector-dict-def p,
.commentary-reader-body p,
.inspector-card p {
  color: var(--text-primary);
  line-height: 1.85;
}

.dict-tab-content a,
.inspector-dict-def a,
.commentary-reader-body a,
.inspector-card a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dict-tab-content a:hover,
.inspector-dict-def a:hover,
.commentary-reader-body a:hover,
.inspector-card a:hover {
  color: var(--accent-hover);
}

/* Blindaje robusto de Iconografía FontAwesome para evitar fallbacks '≡' */
.fa,
.fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.commentary-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 1rem 0;
  opacity: 0.7;
}

/* Cascade Picker (Paso 1: Libro -> Paso 2: Capítulo -> Paso 3: Versículo) */
.cascade-filter-wrapper {
  width: 100%;
}

.cascade-filter-wrapper .search-input {
  width: 100%;
  box-sizing: border-box;
}

.cascade-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg-elevated);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
}

.cascade-step-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 38px;
}

.cascade-step-btn.active {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.cascade-step-btn.completed {
  color: var(--accent-primary);
}

.cascade-grid-books {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  overflow: visible;
  width: 100%;
}

.cascade-grid-books::-webkit-scrollbar,
.cascade-grid-numbers::-webkit-scrollbar {
  width: 5px;
}

.cascade-grid-books::-webkit-scrollbar-track,
.cascade-grid-numbers::-webkit-scrollbar-track {
  background: transparent;
}

.cascade-grid-books::-webkit-scrollbar-thumb,
.cascade-grid-numbers::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 9999px;
}

.cascade-book-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 48px;
  text-align: left;
}

.cascade-book-pill:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.cascade-book-pill.active {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border-color: var(--accent-primary);
}

.cascade-book-pill .abbr {
  font-size: 0.7rem;
  opacity: 0.7;
}

.btn-read-full-chapter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: transparent;
}

.btn-read-full-chapter:hover {
  background: var(--bg-hover);
  color: var(--accent-primary-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.btn-read-full-chapter:active {
  transform: scale(0.96);
}

.cascade-grid-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  overflow: visible;
  width: 100%;
}

.cascade-num-btn {
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cascade-num-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-hover);
}

/* Strong Action Menu Modal */
.strong-word-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.strong-word-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.strong-word-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.strong-word-title span.word-hl {
  color: var(--accent-primary);
}

.strong-word-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.strong-menu-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.strong-menu-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
  font-family: var(--font-family);
}

.strong-menu-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.strong-menu-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.strong-menu-info {
  flex: 1;
}

.strong-menu-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.strong-menu-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.strong-back-btn {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Dictionary Tabs (Segmented Control Style) */
.dict-tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.dict-tab-bar::-webkit-scrollbar {
  display: none;
}

.dict-tab-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
}

.dict-tab-btn i {
  color: var(--accent-primary);
  font-size: 0.95rem;
}

.dict-tab-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

.dict-tab-btn.active {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.dict-tab-btn.active i {
  color: var(--btn-bronze-text);
}

.dict-tab-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  line-height: 1.7;
  font-size: 0.95rem;
  animation: fadeInTab 0.2s ease;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Apple-Crafted Floating Sheets, Modals & Human Interface Polish
   ========================================================================== */

/* ==========================================================================
   Top Dropdown (Selector de Libros y Versiones - Despliegue desde ARRIBA)
   ========================================================================== */
.top-dropdown-backdrop {
  position: fixed;
  top: var(--header-height, 69px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1024px;
  bottom: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-dropdown-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.top-dropdown-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 24px 24px;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - var(--header-height, 69px) - 24px);
  max-height: calc(100dvh - var(--header-height, 69px) - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-dropdown-backdrop.open .top-dropdown-sheet {
  transform: translateY(0);
}

.top-dropdown-header {
  display: none !important;
}

.top-dropdown-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.top-dropdown-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.top-dropdown-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.top-dropdown-body {
  padding: 1.15rem 1.25rem 1.35rem;
  overflow-y: auto;
  flex: 1;
}

.search-with-close-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.search-with-close-row .search-input-wrapper,
.search-with-close-row .search-input {
  flex: 1;
  min-width: 0;
  margin-bottom: 0 !important;
}

.header-close-inline-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-close-inline-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: scale(1.04);
}

.header-close-inline-btn:active {
  transform: scale(0.95);
}

.cascade-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg-elevated);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
}

.cascade-step-btn {
  flex: 1;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 20px;
}

.cascade-book-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 48px;
  text-align: left;
}

/* ==========================================================================
   Bottom Sheet (Ajustes, Ilustraciones, Comentarios - Despliegue desde ABAJO)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1024px;
  bottom: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0);
}

/* Modal Header with Apple Sheet Handle */
.modal-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  background: var(--bg-surface);
  gap: 0.75rem;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 4px;
  border-radius: 9999px;
  background: var(--border-subtle);
  opacity: 0.8;
}

.modal-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
}

.modal-title i {
  color: var(--accent-primary);
  font-size: 1.15rem;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.modal-close-btn:active {
  transform: scale(0.95);
}

.modal-back-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.82rem;
  margin-right: 0.2rem;
  flex-shrink: 0;
}

.modal-back-btn:hover {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.modal-back-btn:active {
  transform: scale(0.95);
}

/* Strong Modal 2-Row Header Layout */
.strong-header-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}

.strong-header-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.strong-header-title-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.strong-header-word {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strong-header-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border: 1px solid var(--accent-primary);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.strong-header-row-2 {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding-top: 0.1rem;
}

.original-word-tag {
  font-family: 'Times New Roman', 'SBL Hebrew', 'Ezra SIL', 'Cardo', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.original-phonetic-tag {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0;
}

.audio-pronounce-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  font-size: 0.80rem;
  flex-shrink: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  padding: 0;
}

.audio-progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.audio-progress-ring .ring-bg {
  fill: transparent;
  stroke: var(--border-subtle);
  stroke-width: 1.8;
}

.audio-progress-ring .ring-fill {
  fill: transparent;
  stroke: var(--accent-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 75.4;
  stroke-dashoffset: 75.4;
  transition: stroke-dashoffset 0.25s ease, stroke 0.2s ease;
}

.audio-pronounce-btn i {
  position: relative;
  z-index: 1;
  color: var(--accent-primary);
  font-size: 0.78rem;
  display: inline-block;
  line-height: 1;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* 1. Loading / Descargando State (El borde circular se va completando suavemente 0% -> 100%) */
.audio-pronounce-btn.loading {
  cursor: wait;
}

.audio-pronounce-btn.loading .ring-fill {
  animation: ringFillProgress 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.audio-pronounce-btn.loading i {
  opacity: 0.65;
}

/* 2. Ready State (Borde circular 100% lleno y completado) */
.audio-pronounce-btn.ready .ring-fill {
  stroke-dashoffset: 0;
}

.audio-pronounce-btn.ready i {
  opacity: 1;
}

.audio-pronounce-btn.ready:hover {
  transform: scale(1.08);
}

.audio-pronounce-btn.ready:active {
  transform: scale(0.94);
}

/* 3. Playing State (Pulsación de reproducción activa) */
.audio-pronounce-btn.playing {
  animation: audioPulseRing 1s infinite ease-in-out;
}

@keyframes ringFillProgress {
  0% {
    stroke-dashoffset: 75.4;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes audioPulseRing {
  0% {
    box-shadow: 0 0 0 0px var(--accent-glow);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px var(--accent-glow);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 0px var(--accent-glow);
    transform: scale(1);
  }
}

/* Modal Body Scroll Container */
.modal-body {
  padding: 1.5rem 1.5rem calc(var(--bottom-bar-height, 64px) + env(safe-area-inset-bottom, 0px) + 1.5rem);
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  box-sizing: border-box;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 9999px;
}

/* Unified Smart Search Modal Components */
.search-modal-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.search-modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.search-modal-input-wrap i {
  position: absolute;
  left: 0.95rem;
  color: var(--accent-primary);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-modal-input {
  width: 100%;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.search-modal-input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-modal-btn {
  height: 32px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.search-modal-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.search-modal-btn:active {
  transform: translateY(0) scale(0.98);
}

.search-actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.search-action-btn {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  box-sizing: border-box;
}

.search-action-btn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.search-action-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-action-desc {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-action-btn i {
  font-size: 1.05rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.search-action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.search-action-btn:hover .search-action-title {
  color: var(--accent-primary);
}

.search-action-btn.active {
  background: var(--btn-bronze-bg);
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.search-action-btn.active .search-action-title,
.search-action-btn.active .search-action-desc,
.search-action-btn.active i {
  color: var(--btn-bronze-text) !important;
}

.search-action-btn.active .search-action-desc {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .search-action-btn {
    padding: 0.5rem 0.45rem;
    gap: 0.4rem;
  }
  .search-action-title {
    font-size: 0.78rem;
  }
  .search-action-desc {
    font-size: 0.64rem;
  }
  .search-action-btn i {
    font-size: 0.95rem;
  }
}

/* Search Modal Placeholder & Disclaimer */
.search-modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem 1.5rem;
  color: var(--text-muted);
}

.search-placeholder-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
}

.search-placeholder-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.search-placeholder-options {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 1.25rem;
}

.search-placeholder-options strong {
  color: var(--text-primary);
  font-weight: 700;
}

.search-placeholder-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 90%;
  line-height: 1.4;
}

.search-placeholder-disclaimer i {
  color: var(--accent-primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* AI Answer Display Card */
.ai-response-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.65;
}

.ai-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.ai-response-body {
  font-size: 0.94rem;
  color: var(--text-primary);
  line-height: 1.7;
  word-break: break-word;
}

.ai-response-body .ai-md-h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 1.25rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.ai-response-body .ai-md-h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.1rem 0 0.4rem;
}

.ai-response-body .ai-md-h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0.9rem 0 0.35rem;
}

.ai-response-body .ai-md-hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 1.25rem 0;
}

.ai-response-body .ai-md-ul,
.ai-response-body .ai-md-ol {
  margin: 0.6rem 0 0.8rem 1.25rem;
  padding: 0;
}

.ai-response-body .ai-md-li,
.ai-response-body .ai-md-oli {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.ai-response-body .ai-md-quote {
  margin: 0.85rem 0;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.ai-response-body strong {
  font-weight: 700;
  color: var(--text-primary);
}

.ai-sources-section {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Tactile Word Preview Banner */
.strong-word-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1rem 1.35rem;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
}

.strong-word-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.strong-word-title span.word-hl {
  color: var(--accent-primary);
}

.strong-word-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Human Tactile Action Cards */
.strong-menu-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.strong-menu-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  text-align: left;
  width: 100%;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

.strong-menu-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, var(--verse-highlight-bg) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.strong-menu-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px var(--accent-glow);
}

.strong-menu-card:hover::after {
  opacity: 1;
}

.strong-menu-card:active {
  transform: scale(0.98) translateY(0);
}

.strong-menu-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.strong-menu-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.strong-menu-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Segmented Control Tabs (Apple Style) */
.dict-tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.dict-tab-bar::-webkit-scrollbar {
  display: none;
}

.dict-tab-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  min-height: 42px;
}

.dict-tab-btn i {
  color: var(--accent-primary);
  font-size: 0.95rem;
}

.dict-tab-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.dict-tab-btn.active {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.dict-tab-btn.active i {
  color: var(--btn-bronze-text);
}

.dict-tab-btn:active {
  transform: scale(0.96);
}

/* Editorial Definition & Commentary Content Container */
.dict-tab-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.5rem;
  line-height: 1.85;
  font-size: 0.98rem;
  color: var(--text-primary);
  animation: fadeInTab 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.05);
}

.dict-tab-content p {
  margin-bottom: 1rem;
}

.dict-tab-content p:last-child {
  margin-bottom: 0;
}

.dict-tab-content hr.commentary-divider {
  border: 0;
  height: 1px;
  background: var(--border-subtle);
  margin: 1.5rem 0;
}

/* Premium Apple Commentary Modal */
.comm-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comm-modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.15rem;
  width: 100%;
  box-sizing: border-box;
}

.comm-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 100%;
}

.comm-select-icon {
  position: absolute;
  left: 0.95rem;
  color: var(--accent-primary);
  font-size: 0.9rem;
  pointer-events: none;
}

.comm-styled-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 2.5rem 0.65rem 2.45rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.comm-styled-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.comm-select-chevron {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.comm-count-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.comm-reader-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.comm-reader-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.comm-reader-body p {
  margin-bottom: 1rem;
}

.comm-reader-body p:last-child {
  margin-bottom: 0;
}

.comm-reader-body b,
.comm-reader-body strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.comm-reader-body hr.commentary-divider {
  border: none;
  border-top: 1px dashed var(--border-subtle);
  margin: 1.5rem 0;
}

/* Warm Hero Concordance Counter */
.concordance-hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.08);
}

.concordance-hero-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}

.concordance-hero-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Curated Book Selection Pills */
.concordance-books-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px 2px;
}

/* Apple Native Inset Grouped Table View (Version Picker) */
.version-picker-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.version-table-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 72vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.version-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: var(--font-family);
}

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

.version-table-row:hover {
  background: var(--bg-hover);
}

.version-table-row.active {
  background: var(--verse-highlight-bg);
}

.version-table-main {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.version-table-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.version-table-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.version-table-row.active .version-table-title {
  color: var(--accent-primary);
  font-weight: 700;
}

.version-table-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.version-table-aside {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.version-table-abbr {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.version-table-check {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.version-check-svg {
  stroke: var(--accent-primary);
}

.conc-books-chips {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.86rem;
}

.conc-book-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}

.conc-book-btn span.count-badge {
  background: var(--bg-hover);
  color: var(--accent-primary);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.conc-book-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.conc-book-btn.active {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.conc-book-btn.active span.count-badge {
  background: rgba(255, 255, 255, 0.28);
  color: var(--btn-bronze-text);
}

/* Verses Grid & Tactile Verse Pill Chips */
.conc-verses-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  animation: fadeInTab 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.conc-verses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.conc-verse-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.conc-verse-pill:hover {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  border-color: var(--accent-primary);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.conc-verse-pill:active {
  transform: scale(0.96);
}

/* Floating Verse Action Toolbar is replaced with inline integrated pills */
.verse-action-bar {
  display: none !important;
}

.action-bar-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
}

.action-bar-btn i {
  color: var(--accent-primary);
}

.action-bar-btn:hover {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
}

.action-bar-btn:hover i {
  color: var(--btn-bronze-text);
}

/* Drawer Backdrop Overlay (Mobile) */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Bottom Navigation Bar (Unified Base max-width: 1024px) */
.bottom-nav {
  display: flex !important;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1024px;
  height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(246, 241, 238, 0.94);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  z-index: 1050;
  justify-content: space-around;
  align-items: center;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

body.has-top-dropdown-open .bottom-nav,
.bottom-nav.hide-bottom-nav {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
}

[data-theme="dark"] .bottom-nav {
  background: rgba(21, 19, 17, 0.94);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  opacity: 0.75;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  height: 100%;
  transition: opacity 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover {
  opacity: 0.95;
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

.bottom-nav-item i {
  font-size: 1.18rem;
  color: var(--accent-primary);
  transition: transform 0.18s ease;
}

.bottom-nav-item.active {
  color: var(--accent-primary);
  opacity: 1;
  font-weight: 700;
}

.bottom-nav-item.active i {
  transform: translateY(-1px);
}

#versionsDrawer,
#settingsDrawer {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  bottom: 0;
  width: 380px;
  max-width: 86vw;
  height: calc(100vh - var(--header-height) - env(safe-area-inset-top, 0px));
  height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px));
  background: var(--bg-surface);
  z-index: 50;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 0;
  padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
}

#versionsDrawer {
  left: 0;
  transform: translateX(-100%);
}

#settingsDrawer {
  right: 0;
  transform: translateX(100%);
}

#versionsDrawer.open,
#settingsDrawer.open {
  transform: translateX(0);
}

.reader-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem 0rem calc(var(--bottom-bar-height) + 1.5rem);
}

@media (max-width: 768px) {
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.85rem;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    position: relative;
  }

  .brand-logo-desktop {
    display: none;
  }

  .brand-logo-mobile {
    display: block;
  }

  .splash-logo-desktop {
    display: none;
  }

  .splash-logo-mobile {
    display: block;
  }

  .header-center {
    position: absolute;
    left: 50%;
    top: calc(50% + (env(safe-area-inset-top, 0px) / 2));
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: calc(100% - 150px);
    z-index: 1;
  }

  .header-nav-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
  }

  .header-nav-title-btn {
    font-size: 1.0rem;
    padding: 0 4px;
    max-width: 180px;
  }

  .header-nav-title-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-nav-version-btn {
    font-size: 0.76rem;
    padding: 0 4px;
    background: transparent;
    border: none;
    display: inline-flex !important;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .icon-btn {
    width: 39px;
    height: 39px;
    font-size: 1.03rem;
  }

  #settingsBtn {
    display: none;
  }

  /* iOS Bottom Sheet Modals on Mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-sheet {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  .modal-backdrop.open .modal-sheet {
    transform: translateY(0);
  }

  /* Mobile Top Dropdown Sheets */
  .top-dropdown-backdrop {
    top: calc(var(--header-height, 69px) + env(safe-area-inset-top, 0px)) !important;
    height: calc(100vh - var(--header-height, 69px) - env(safe-area-inset-top, 0px)) !important;
    height: calc(100dvh - var(--header-height, 69px) - env(safe-area-inset-top, 0px)) !important;
    align-items: flex-start !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .top-dropdown-sheet {
    border-radius: 0 0 24px 24px !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: translateY(-100%) !important;
    max-height: calc(100dvh - var(--header-height, 69px) - env(safe-area-inset-top, 0px) - 10px) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .top-dropdown-backdrop.open .top-dropdown-sheet {
    transform: translateY(0) !important;
  }

  .modal-header {
    padding: 1.1rem 1.25rem 0.85rem;
    border-radius: 24px 24px 0 0;
  }

  .modal-backdrop.bottom-sheet .modal-body,
  .modal-body {
    padding: 1rem 1rem calc(var(--bottom-bar-height, 64px) + env(safe-area-inset-bottom, 0px) + 20px) 1rem;
    max-height: calc(88vh - 70px);
    max-height: calc(88dvh - 70px);
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  /* Mobile Verse Floating Action Toolbar */
  .verse-action-bar {
    bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px) + 12px);
    width: calc(100% - 24px);
    max-width: 390px;
    justify-content: space-between;
    padding: 0.35rem 0.5rem;
  }

  .action-bar-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
    min-height: 34px;
    gap: 0.25rem;
  }

  .verse-item {
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    line-height: 1.85;
  }

  .str-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    min-width: 26px;
    padding: 2px 4px;
    margin: 0 1px;
    touch-action: manipulation;
  }
}

/* Version Comparison Modal Grid */
.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.25rem 1.45rem;
  transition: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.04);
}

.comparison-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px var(--accent-glow);
}

.comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.comparison-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--accent-primary);
}

.comparison-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.comparison-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 400;
}

/* Toast Notification (Apple Minimalist) */
.toast-notice {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

[data-theme="light"] .toast-notice {
  background: rgba(255, 255, 255, 0.95);
}

.toast-notice.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Highlight Colors on Verses */
.verse-row.hl-yellow {
  background: rgba(255, 214, 10, 0.15) !important;
  border-color: rgba(255, 214, 10, 0.4) !important;
}

.verse-row.hl-green {
  background: rgba(48, 209, 88, 0.15) !important;
  border-color: rgba(48, 209, 88, 0.4) !important;
}

.verse-row.hl-blue {
  background: rgba(10, 132, 255, 0.15) !important;
  border-color: rgba(10, 132, 255, 0.4) !important;
}

/* Custom Scrollbars Apple Style */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Minimalist Apple-grade Settings & Preferences */
.settings-modal-wrapper,
.settings-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-drawer-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.settings-header-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.settings-theme-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-theme-label i {
  color: var(--accent-primary);
  font-size: 1rem;
}

.settings-group-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.settings-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-group-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.settings-theme-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

@media (max-width: 600px) {
  .settings-theme-container {
    grid-template-columns: 1fr;
  }
}

.settings-theme-family-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
}

.settings-theme-family-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.settings-theme-family-header i {
  color: var(--accent-primary);
  font-size: 1.15rem;
}

.settings-drawer-theme-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.drawer-theme-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 0.5rem;
}

.drawer-theme-sublabel {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.drawer-theme-sublabel i {
  color: var(--accent-primary);
  font-size: 0.85rem;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.settings-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.settings-row-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-row-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.theme-segmented-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.theme-segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto !important;
  user-select: none;
  position: relative;
  z-index: 10;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-segment-btn * {
  pointer-events: none;
}

.theme-segment-btn:hover {
  color: var(--text-primary);
}

.theme-segment-btn:active {
  transform: scale(0.95);
}

.theme-segment-btn.active {
  background: var(--btn-bronze-bg);
  color: var(--btn-bronze-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.ios-switch input:checked + .ios-slider {
  background: var(--btn-bronze-bg);
  border-color: var(--accent-primary);
}

.ios-switch input:checked + .ios-slider:before {
  transform: translateX(18px);
}

/* Splash Screen (Apple Minimalist Style) */
.app-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-app) !important;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

.app-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  transform: translateY(-12px);
}

.splash-logo-desktop {
  display: block;
  width: 140px;
  max-width: 80vw;
  height: 60px;
  background-color: var(--accent-primary);
  -webkit-mask: url('../img/ed_horizontal.svg') no-repeat center / contain;
  mask: url('../img/ed_horizontal.svg') no-repeat center / contain;
}

.splash-logo-mobile {
  display: none;
  width: 90px;
  max-width: 70vw;
  height: 38px;
  background-color: var(--accent-primary);
  -webkit-mask: url('../img/ed_vertical.svg') no-repeat center / contain;
  mask: url('../img/ed_vertical.svg') no-repeat center / contain;
}

.splash-loader-bar {
  width: 130px;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.splash-loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 9999px;
  animation: splashSlide 1.2s infinite ease-in-out;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes splashSlide {
  0% { left: -40%; width: 30%; }
  50% { width: 50%; }
  100% { left: 100%; width: 30%; }
}

/* Branding AMWEB Signature */
.splash-signature,
.settings-footer-signature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-family);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  user-select: none;
}

.splash-signature span,
.settings-footer-signature span {
  font-weight: 600;
  opacity: 0.65;
  letter-spacing: 0.16em;
}

.splash-signature a,
.splash-signature strong,
.settings-footer-signature a,
.settings-footer-signature strong {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.splash-signature a:hover,
.settings-footer-signature a:hover {
  color: #1A6BFF;
  opacity: 1;
}

.splash-signature {
  position: absolute;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
}

.settings-modal-wrapper {
  min-height: 100%;
}

.settings-footer-signature {
  margin-top: auto;
  padding: 1.5rem 1rem 0.25rem;
}

.settings-drawer {
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 0 !important;
}

.settings-drawer .settings-drawer-inner {
  flex: 1;
}

.settings-drawer .settings-drawer-footer {
  margin-top: auto;
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Historical Context Accordion / Desplegables */
.context-modal-container {
  display: flex;
  flex-direction: column;
}

.context-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.context-accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.context-accordion-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.context-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.context-accordion-header:hover {
  background: var(--bg-elevated);
}

.context-accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.context-accordion-title i {
  font-size: 0.9rem;
}

.context-accordion-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.context-accordion-item.open .context-accordion-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.context-accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  visibility: hidden;
}

.context-accordion-item.open .context-accordion-content {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.context-accordion-inner {
  overflow: hidden;
  padding: 0 1.15rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.75;
  border-top: 1px solid transparent;
  transition: padding 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.context-accordion-item.open .context-accordion-inner {
  padding: 0.75rem 1.15rem 1.1rem;
  border-top-color: var(--border-subtle);
}

.context-hero-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.context-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.context-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.context-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.context-sections-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.context-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.context-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.context-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.context-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.context-card-title i {
  font-size: 0.95rem;
}

.context-card-body {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.context-para {
  margin-bottom: 0.85rem;
}

.context-para:last-child {
  margin-bottom: 0;
}

.context-data-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.context-data-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  line-height: 1.6;
  font-size: 0.92rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
}

.context-data-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.context-data-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-width: 100px;
}

.context-data-label i {
  color: var(--accent-primary);
  font-size: 0.82rem;
}

.context-data-val {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.context-chars-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.context-char-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.context-char-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.context-char-integrated {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.context-char-integrated strong {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.25rem;
}

/* Botón H de Contexto Histórico en cuadrícula de capítulos */
.context-h-btn {
  background: var(--bg-surface) !important;
  color: var(--accent-primary) !important;
  border: 1.5px solid var(--accent-primary) !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.02em;
}

.context-h-btn:hover {
  background: var(--bg-elevated) !important;
  color: var(--accent-primary-hover) !important;
  border-color: var(--accent-primary) !important;
  transform: scale(1.08);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.context-h-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Galería de Ilustraciones y Mapas Bíblicos
   ========================================================================== */
.ill-modal-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.25rem 0.5rem 1.5rem;
}

.ill-controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.ill-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.ill-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  font-size: 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.ill-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.ill-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.ill-category-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.ill-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ill-pill:hover {
  background: var(--bg-elevated);
  color: var(--accent-primary);
}

.ill-pill.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.ill-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.15rem;
}

.ill-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.ill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-primary);
}

.ill-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}

.ill-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ill-card:hover .ill-thumb-img {
  transform: scale(1.05);
}

.ill-category-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ill-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ill-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.ill-card-ref {
  font-size: 0.74rem;
  color: var(--accent-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ill-card-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Visor ampliado de Ilustraciones (Despliegue desde abajo / Negro) */
.ill-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.ill-lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ill-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  font-size: 1.25rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ill-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: #ffffff;
  transform: scale(1.08);
}

.ill-lightbox-close:active {
  transform: scale(0.92);
}

.ill-lightbox-body {
  flex: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.ill-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.25s ease-out;
}

/* Story Progress Indicator Bar (Instagram / WhatsApp style) */
.ill-story-progress-bar {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  right: 4.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 30;
}

.ill-story-segment {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: all 0.25s ease;
}

.ill-story-segment.active {
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.ill-story-segment.completed {
  background: rgba(255, 255, 255, 0.75);
}

.ill-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 25;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ill-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.38);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.ill-nav-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.ill-nav-prev {
  left: 1.25rem;
}

.ill-nav-next {
  right: 1.25rem;
}

@media (max-width: 600px) {
  .ill-story-progress-bar {
    top: 0.75rem;
    left: 0.85rem;
    right: 3.8rem;
    gap: 4px;
  }
  .ill-nav-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
  .ill-nav-prev { left: 0.75rem; }
  .ill-nav-next { right: 0.75rem; }
  .ill-lightbox-close {
    top: 0.65rem;
    right: 0.85rem;
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
}

#illustrationsBtn:disabled,
.bottom-nav-item[data-tab="illustrations"]:disabled,
.bottom-nav-item[data-tab="illustrations"].disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

.bottom-nav-icon-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-count-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--btn-bronze-bg, var(--accent-primary));
  color: var(--btn-bronze-text, #ffffff);
  font-family: var(--font-family);
  font-size: 0.65rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--bg-surface, #ffffff);
  line-height: 1;
}

.bottom-nav-item[data-tab="illustrations"].has-illustrations .bottom-nav-count-badge {
  display: flex;
}

.bottom-nav-item[data-tab="illustrations"].has-illustrations {
  color: var(--accent-primary) !important;
  opacity: 1 !important;
}

/* Lightbox Image Loader */
.ill-lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-primary, #ffffff);
  font-size: 2.2rem;
  z-index: 15;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Chapter Illustrations Picker Modal - Premium Redesign */
.chapter-ill-picker {
  padding: 0.2rem 0 0.5rem;
}

.chapter-ill-picker-desc {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.4;
  padding: 0 0.2rem;
}

.chapter-ill-picker-desc strong {
  color: var(--text-primary);
}

.chapter-ill-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chapter-ill-card {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--bg-surface-elevated, var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chapter-ill-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.chapter-ill-card:active {
  transform: translateY(0);
}

.chapter-ill-cover-wrap {
  position: relative;
  width: 68px;
  min-width: 68px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: #151515;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.chapter-ill-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.chapter-ill-card:hover .chapter-ill-cover {
  transform: scale(1.06);
}

.chapter-ill-badge {
  position: absolute;
  bottom: 0.3rem;
  left: 0.3rem;
  right: 0.3rem;
  padding: 0.18rem 0.35rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.chapter-ill-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0.35rem;
}

.chapter-ill-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chapter-ill-card-topic {
  font-size: 0.76rem;
  color: var(--accent-primary);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-ill-card-topic i {
  margin-top: 2px;
  font-size: 0.7rem;
  opacity: 0.85;
}

.chapter-ill-card-action {
  margin-top: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.chapter-ill-card:hover .chapter-ill-card-action {
  color: var(--accent-primary);
  transform: translateX(2px);
}

