/* ══════════════════════════════════════════════════════════════
   AHAVA=ECHAD Slide-Out Command Center v1 — Chunk 1 Shell
   12 Nisan 5786 / April 10, 2026
   ══════════════════════════════════════════════════════════════ */

:root {
  --sp-bg: #f5f5f5;
  --sp-surface: #ffffff;
  --sp-text: #1a1a1a;
  --sp-text-dim: #666666;
  --sp-border: #e5e5e5;
  --sp-lime: #b4e600;
  --sp-magenta: #d6336c;
  --sp-cyan: #22d3ee;
  --sp-purple: #a020f0;
  --sp-active: #39ff14;
  --sp-width: 360px;
}

/* Overlay */
.ae-slideout-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
  z-index: 2147483640;
  direction: ltr;
}
.ae-slideout-overlay.is-visible {
  opacity: 1; visibility: visible;
  transition: opacity 300ms ease;
}

/* Panel shell */
.ae-slideout {
  position: fixed; top: 0; left: 0;
  width: var(--sp-width); max-width: 100vw; height: 100vh;
  background: var(--sp-bg); color: var(--sp-text);
  box-shadow: 6px 0 30px rgba(0,0,0,0.25);
  transform: translateX(-105%);
  transition: transform 300ms cubic-bezier(.22,.9,.3,1);
  z-index: 2147483641;
  direction: ltr;
  display: flex; flex-direction: column;
  font-family: 'Montserrat', -apple-system, system-ui, sans-serif;
}
.ae-slideout.is-open { transform: translateX(0); }

/* Header + close button */
.ae-slideout__header {
  display: flex; justify-content: flex-end;
  padding: 14px 14px 6px;
  flex: 0 0 auto;
}
.ae-slideout__close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--sp-border);
  background: var(--sp-surface);
  color: var(--sp-text);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, transform 200ms, box-shadow 200ms, color 160ms;
}
.ae-slideout__close:hover {
  background: var(--sp-magenta);
  color: #fff;
  border-color: var(--sp-magenta);
  transform: rotate(90deg);
  box-shadow: 0 0 16px rgba(214,51,108,0.45);
}

/* Scroll area */
.ae-slideout__scroll {
  flex: 1 1 auto;
  overflow-y: auto; overflow-x: hidden;
  padding: 0 18px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--sp-border) transparent;
}
.ae-slideout__scroll::-webkit-scrollbar { width: 6px; }
.ae-slideout__scroll::-webkit-scrollbar-thumb { background: var(--sp-border); border-radius: 3px; }

.ae-slideout__section { padding: 12px 0; }
.ae-slideout__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sp-border) 20%, var(--sp-border) 80%, transparent);
  margin: 4px 0;
}

/* Feature rows */
.sp-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px; margin-bottom: 8px;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  background: var(--sp-surface);
  color: var(--sp-text);
  font: 500 15px/1.2 inherit;
  cursor: pointer; text-align: left; text-decoration: none;
  transition: all 180ms ease;
  position: relative;
}
.sp-row:hover { transform: translateX(3px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.sp-row[data-accent="cyan"]:hover    { border-color: var(--sp-cyan);    box-shadow: 0 0 0 3px rgba(34,211,238,0.15), 0 4px 18px rgba(34,211,238,0.28); }
.sp-row[data-accent="magenta"]:hover { border-color: var(--sp-magenta); box-shadow: 0 0 0 3px rgba(214,51,108,0.15), 0 4px 18px rgba(214,51,108,0.28); }
.sp-row[data-accent="lime"]:hover    { border-color: var(--sp-lime);    box-shadow: 0 0 0 3px rgba(180,230,0,0.18), 0 4px 18px rgba(180,230,0,0.28); }
.sp-row[data-accent="purple"]:hover  { border-color: var(--sp-purple);  box-shadow: 0 0 0 3px rgba(160,32,240,0.15), 0 4px 18px rgba(160,32,240,0.28); }
.sp-row[data-accent="neutral"]:hover { border-color: var(--sp-text-dim); }

.sp-row__icon { font-size: 20px; flex: 0 0 28px; display: inline-flex; justify-content: center; }
.sp-row__label { flex: 1 1 auto; font-weight: 500; }

/* Active-feature indicator dot (lime pulse) */
.sp-active-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sp-active);
  box-shadow: 0 0 10px var(--sp-active), 0 0 4px var(--sp-active);
  flex: 0 0 auto;
  animation: spPulse 2s infinite ease-in-out;
}
.sp-active-dot[hidden] { display: none; }
@keyframes spPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* Reference number variant [22] [33] */
.sp-ref { gap: 16px; }
.sp-ref__num {
  display: inline-flex; justify-content: center; align-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #fafafa);
  border: 2px solid currentColor;
  font-weight: 800; font-size: 16px;
  flex: 0 0 46px;
}
.sp-ref[data-accent="cyan"] .sp-ref__num    { color: var(--sp-cyan); }
.sp-ref[data-accent="magenta"] .sp-ref__num { color: var(--sp-magenta); }

/* Placeholder containers for later chunks */
.sp-placeholder {
  padding: 22px 18px;
  border-radius: 14px;
  background: var(--sp-surface);
  border: 2px dashed var(--sp-border);
  text-align: center;
  font: 600 12px/1.4 inherit;
  color: var(--sp-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sp-placeholder[data-accent="purple"]  { border-color: rgba(160,32,240,0.4);  color: var(--sp-purple); }
.sp-placeholder[data-accent="cyan"]    { border-color: rgba(34,211,238,0.4);  color: var(--sp-cyan); }
.sp-placeholder[data-accent="magenta"] { border-color: rgba(214,51,108,0.4);  color: var(--sp-magenta); }
.sp-placeholder[data-accent="lime"]    { border-color: rgba(180,230,0,0.55);  color: #6fa600; }

/* Alpha111 anchor (Chunk 10 will fill this) */
.ae-slideout__alpha {
  margin-top: auto;
  padding-top: 16px !important;
  border-top: 1px solid var(--sp-border);
}

/* Mobile: full width */
@media (max-width: 480px) {
  .ae-slideout { --sp-width: 100vw; }
  .ae-slideout__close { width: 42px; height: 42px; font-size: 24px; }
}

/* Body lock when panel open */
body.ae-slideout-open { overflow: hidden; }

/* Brand clickability hint */
.global-bar__brand, .ae-header__logo { cursor: pointer; }

/* ══════════════════════════════════════════════════════════════
   Chunk 2 — User Profile
   ══════════════════════════════════════════════════════════════ */
.sp-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 6px 0 4px;
}
.sp-profile__avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.sp-profile__avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--sp-purple), var(--sp-magenta));
  border: 3px solid var(--sp-surface);
  box-shadow: 0 4px 20px rgba(160, 32, 240, 0.25), 0 0 0 1px var(--sp-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
  user-select: none;
  touch-action: none;
  flex: 0 0 auto;
}
.sp-profile__avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 28px rgba(160, 32, 240, 0.38), 0 0 0 1px var(--sp-border);
}
.sp-profile__avatar.is-dragover {
  box-shadow: 0 0 0 4px var(--sp-lime), 0 6px 28px rgba(180, 230, 0, 0.5);
}
.sp-profile__avatar.is-editing { cursor: grab; }
.sp-profile__avatar.is-editing.is-panning { cursor: grabbing; }

.sp-profile__initials {
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
  line-height: 1;
}

.sp-profile__img {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  pointer-events: none;
  display: block;
}

.sp-profile__zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  box-sizing: border-box;
}
.sp-profile__zoom input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--sp-purple);
}
.sp-profile__save,
.sp-profile__cancel {
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font: 700 11px/1 'Montserrat', -apple-system, sans-serif;
  cursor: pointer;
  transition: transform 120ms, box-shadow 160ms;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
}
.sp-profile__save {
  background: var(--sp-lime);
  color: #1a1a1a;
}
.sp-profile__save:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(180, 230, 0, 0.45); }
.sp-profile__cancel {
  background: var(--sp-surface);
  color: var(--sp-text-dim);
  border: 1px solid var(--sp-border);
}
.sp-profile__cancel:hover { transform: translateY(-1px); }

.sp-profile__fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-profile__field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  font-size: 13px;
}
.sp-profile__label {
  color: var(--sp-text-dim);
  font-weight: 500;
  flex: 0 0 auto;
}
.sp-profile__val {
  color: var(--sp-text);
  font-weight: 600;
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  outline: none;
}
.sp-profile__val[contenteditable="true"] {
  background: #fff;
  box-shadow: 0 0 0 2px var(--sp-cyan);
  cursor: text;
  overflow: visible;
}
.sp-profile__val[data-empty="1"]::before {
  content: attr(data-placeholder);
  color: #aaa;
  font-style: italic;
  font-weight: 400;
}
.sp-profile__val[data-empty="1"] { color: transparent; }
.sp-profile__val--ro {
  cursor: default;
  color: var(--sp-text-dim);
  font-weight: 500;
}
.sp-profile__val--ro:hover { background: none; }

/* ══════════════════════════════════════════════════════════════
   Chunk 3 — Dictionary Sub-view
   ══════════════════════════════════════════════════════════════ */

/* Sub-view container — slides in from right, covers scroll area below header */
.ae-slideout__subview {
  position: absolute;
  top: 58px; left: 0; right: 0; bottom: 0;
  background: var(--sp-bg);
  transform: translateX(105%);
  transition: transform 300ms cubic-bezier(.22,.9,.3,1);
  display: flex;
  flex-direction: column;
  z-index: 3;
  visibility: hidden;
}
.ae-slideout__subview.is-active {
  transform: translateX(0);
  visibility: visible;
}

/* Sub-view header bar with back button + title + count */
.sp-sub__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sp-border);
  flex: 0 0 auto;
  background: var(--sp-surface);
}
.sp-sub__back {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--sp-border);
  background: #fff;
  color: var(--sp-text);
  font-size: 18px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 160ms;
  flex: 0 0 auto;
}
.sp-sub__back:hover {
  background: var(--sp-cyan);
  color: #fff;
  border-color: var(--sp-cyan);
  transform: translateX(-2px);
  box-shadow: 0 0 12px rgba(34,211,238,0.4);
}
.sp-sub__title {
  font: 700 15px/1 'Montserrat', -apple-system, sans-serif;
  margin: 0;
  flex: 1 1 auto;
  color: var(--sp-text);
}
.sp-sub__count {
  font: 500 10px/1.3 inherit;
  color: var(--sp-text-dim);
  text-align: right;
  flex: 0 0 auto;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sub-view body — scrolls */
.sp-sub__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--sp-border) transparent;
}
.sp-sub__body::-webkit-scrollbar { width: 6px; }
.sp-sub__body::-webkit-scrollbar-thumb { background: var(--sp-border); border-radius: 3px; }

/* Dictionary controls (search + sort + chips) */
.sp-dict__controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.sp-dict__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  transition: border-color 160ms, box-shadow 160ms;
}
.sp-dict__search:focus-within {
  border-color: var(--sp-cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.sp-dict__search input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font: 500 14px/1.2 inherit;
  color: var(--sp-text);
  min-width: 0;
}
.sp-dict__search input::placeholder { color: #aaa; font-weight: 400; }
.sp-dict__search-icon {
  opacity: 0.5;
  flex: 0 0 auto;
  font-size: 14px;
}

.sp-dict__sort {
  display: flex;
  gap: 2px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  padding: 3px;
}
.sp-dict__sort-btn {
  flex: 1 1 auto;
  padding: 7px 10px;
  border: none;
  background: transparent;
  color: var(--sp-text-dim);
  font: 600 11px/1 'Montserrat', -apple-system, sans-serif;
  cursor: pointer;
  border-radius: 6px;
  transition: all 140ms;
  letter-spacing: 0.02em;
}
.sp-dict__sort-btn:hover:not(.is-active) { color: var(--sp-text); }
.sp-dict__sort-btn.is-active {
  background: var(--sp-cyan);
  color: #fff;
  box-shadow: 0 1px 4px rgba(34,211,238,0.35);
}

.sp-dict__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sp-dict__chip {
  padding: 5px 12px;
  border: 1px solid var(--sp-border);
  border-radius: 999px;
  background: var(--sp-surface);
  font: 600 11px/1 'Montserrat', -apple-system, sans-serif;
  color: var(--sp-text-dim);
  cursor: pointer;
  transition: all 160ms;
  letter-spacing: 0.02em;
}
.sp-dict__chip.is-active {
  background: var(--sp-cyan);
  color: #fff;
  border-color: var(--sp-cyan);
  box-shadow: 0 1px 4px rgba(34,211,238,0.35);
}
.sp-dict__chip:not(.is-active):not(.is-stub):hover {
  border-color: var(--sp-cyan);
  color: var(--sp-text);
}
.sp-dict__chip.is-stub {
  opacity: 0.4;
  cursor: not-allowed;
  position: relative;
}
.sp-dict__chip.is-stub::after {
  content: '·';
  margin-left: 3px;
  color: var(--sp-magenta);
  font-weight: 900;
}

/* Dictionary word list */
.sp-dict__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-dict__empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--sp-text-dim);
  font-size: 12px;
  line-height: 1.5;
  border: 2px dashed var(--sp-border);
  border-radius: 12px;
  background: var(--sp-surface);
}
.sp-dict__empty strong {
  color: var(--sp-text);
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.sp-dict__word {
  padding: 12px 14px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 160ms;
}
.sp-dict__word:hover {
  border-color: var(--sp-cyan);
  box-shadow: 0 2px 10px rgba(34,211,238,0.15);
}
.sp-dict__word.is-expanded {
  border-color: var(--sp-cyan);
  box-shadow: 0 0 0 2px rgba(34,211,238,0.2);
}
.sp-dict__word-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.sp-dict__base {
  font-size: 22px;
  font-weight: 700;
  direction: rtl;
  font-family: 'TorahFont', 'SBL Hebrew', 'Frank Ruehl CLM', serif;
  color: var(--sp-text);
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.2;
}
.sp-dict__meta {
  font-size: 10px;
  color: var(--sp-text-dim);
  font-weight: 700;
  flex: 0 0 auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.sp-dict__variants {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sp-border);
  direction: rtl;
  display: none;
}
.sp-dict__word.is-expanded .sp-dict__variants { display: block; }
.sp-dict__variant {
  display: inline-block;
  padding: 4px 12px;
  margin: 3px 4px 3px 0;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 999px;
  font-family: 'TorahFont', 'SBL Hebrew', 'Frank Ruehl CLM', serif;
  font-size: 16px;
  color: var(--sp-text);
  line-height: 1.4;
}
.sp-dict__variant-count {
  font-size: 9px;
  color: var(--sp-magenta);
  margin-right: 3px;
  vertical-align: super;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

/* Deferred feature placeholders (3B/3C) — shown in expanded word */
.sp-dict__future {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px dashed var(--sp-border);
  border-radius: 8px;
  font-size: 11px;
  color: var(--sp-text-dim);
  direction: ltr;
  font-family: 'Montserrat', -apple-system, sans-serif;
}
.sp-dict__future-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.sp-dict__future-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sp-text-dim);
}
.sp-dict__future-val {
  font-style: italic;
  opacity: 0.6;
}

/* Mobile: sub-view fills full-width panel */
@media (max-width: 480px) {
  .ae-slideout__subview { top: 62px; }
}

/* ═══════════════════════════════════════════════════════════════
   Chunks 4-10 — Fonts, Shin, Reference, Settings, Alpha111
   ═══════════════════════════════════════════════════════════════ */

/* --- Shared row variants --- */
.sp-row--shin .sp-shin__icon {
  font-size: 26px;
  line-height: 1;
  color: var(--sp-lime);
  font-family: TorahFont, Georgia, serif;
  margin-right: 12px;
  flex-shrink: 0;
}
.sp-row__sub {
  margin-left: auto;
  font-size: 11px;
  color: var(--sp-text-dim);
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.sp-row--alpha .sp-alpha__icon {
  font-size: 28px;
  font-weight: 700;
  color: var(--sp-lime);
  font-family: Georgia, serif;
  margin-right: 12px;
  line-height: 1;
}

/* --- Reference pills (square, 66px) --- */
.sp-refs {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 10px 16px;
}
.sp-ref-pill {
  width: 66px; height: 66px;
  border-radius: 14px;
  background: var(--sp-surface);
  border: 2px solid var(--sp-border, #e2e2e2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  padding: 0;
  font-family: inherit;
}
.sp-ref-pill:hover {
  transform: translateY(-2px);
  background: #fafafa;
}
.sp-ref-pill[data-accent="cyan"]:hover { border-color: var(--sp-cyan); }
.sp-ref-pill[data-accent="magenta"]:hover { border-color: var(--sp-magenta); }
.sp-ref-pill__num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.sp-ref-pill__lbl {
  font-family: TorahFont, Georgia, serif;
  font-size: 14px;
  margin-top: 4px;
  color: var(--sp-text-dim);
}

/* --- Subview buttons & hints --- */
.sp-hint {
  font-size: 11px;
  color: var(--sp-text-dim);
  line-height: 1.45;
  margin: 10px 0 6px;
  opacity: 0.8;
}
.sp-btn {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--sp-border, #e2e2e2);
  background: var(--sp-surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}
.sp-btn:hover { background: #fafafa; }
.sp-btn:active { transform: translateY(1px); }
.sp-btn--primary {
  background: var(--sp-lime);
  border-color: var(--sp-lime);
  color: #1a1a1a;
}
.sp-btn--primary:hover { background: #c9ff1a; }
.sp-btn--ghost { background: transparent; }

/* --- Chunk 4: Fonts --- */
.sp-fonts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sp-font-row {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border, #e2e2e2);
  border-radius: 10px;
  padding: 10px 12px;
}
.sp-font-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.sp-font-row__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-text-dim);
}
.sp-font-row__select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--sp-border, #e2e2e2);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  margin-bottom: 8px;
  font-family: inherit;
}
.sp-font-row__slider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sp-font-row__slider input[type="range"] {
  flex: 1;
  accent-color: var(--sp-magenta);
}
.sp-font-row__scale {
  font-size: 11px;
  color: var(--sp-text-dim);
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sp-font-row__preview {
  padding: 8px 10px;
  background: #f9f9f9;
  border-radius: 6px;
  border: 1px dashed #e0e0e0;
  min-height: 32px;
  font-size: 1rem;
}

/* --- Chunk 5: Torah Library (TaNaKh 24 books, white theme) --- */
.sp-tanakh { padding-bottom: 20px; }

.sp-tanakh__section {
  margin-bottom: 22px;
}

.sp-tanakh__title {
  font-family: TorahFont, 'AE-SS-Ashurith', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  text-align: center;
  direction: rtl;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid currentColor;
  line-height: 1.1;
}
.sp-tanakh__title--torah   { color: var(--sp-cyan); }
.sp-tanakh__title--neviim  { color: var(--sp-purple); }
.sp-tanakh__title--ketuvim { color: var(--sp-magenta); }

.sp-tanakh__row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  direction: rtl;
}
.sp-tanakh__row--five {
  flex-wrap: wrap;
}
.sp-tanakh__row--five .sp-tanakh__book {
  flex: 1 1 46%;
  min-width: 0;
}
.sp-tanakh__row--center {
  justify-content: center;
}
.sp-tanakh__row--center .sp-tanakh__book {
  flex: 0 0 auto;
  min-width: 160px;
}

.sp-tanakh__book {
  flex: 1;
  min-width: 0;
  padding: 10px 6px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border, #e2e2e2);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.sp-tanakh__book:hover {
  background: #fafafa;
  border-color: var(--sp-cyan);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sp-tanakh__book:active {
  transform: translateY(0);
}
.sp-tanakh__heb {
  font-family: TorahFont, 'AE-SS-Ashurith', Georgia, serif;
  font-size: 18px;
  line-height: 1.15;
  color: #1a1a1a;
  direction: rtl;
  font-weight: 400;
}
.sp-tanakh__en {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 9.5px;
  color: var(--sp-text-dim);
  direction: ltr;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.sp-tanakh__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 11px;
}
.sp-tanakh__count {
  color: var(--sp-text-dim);
  font-family: TorahFont, Georgia, serif;
  font-size: 13px;
  direction: rtl;
}
.sp-tanakh__src {
  color: var(--sp-magenta);
  text-decoration: none;
  font-family: TorahFont, Georgia, serif;
  font-size: 13px;
  direction: rtl;
}
.sp-tanakh__src:hover { text-decoration: underline; }

/* --- Chunk 6: Ref card --- */
.sp-ref__card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border, #e2e2e2);
  border-radius: 10px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
}
.sp-ref__h {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.sp-ref__src {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--sp-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sp-ref__desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}
.sp-ref__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Chunk 7: Settings --- */
.sp-set__group {
  margin-bottom: 18px;
}
.sp-set__h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-text-dim);
  margin: 0 0 8px;
  font-weight: 700;
}
.sp-set__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.sp-set__row:last-child { border-bottom: none; }
.sp-set__row select {
  padding: 4px 8px;
  border: 1px solid var(--sp-border, #e2e2e2);
  border-radius: 5px;
  font-size: 12px;
  background: #fff;
  font-family: inherit;
}
.sp-set__row input[type="checkbox"] {
  accent-color: var(--sp-lime);
  width: 16px;
  height: 16px;
}
.sp-set__row--slider {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.sp-set__row--slider span {
  font-size: 12px;
}
.sp-set__row--slider input[type="range"] {
  accent-color: var(--sp-magenta);
}

/* --- Chunk 10: Alpha111 placeholder --- */
.sp-alpha__hero {
  text-align: center;
  padding: 28px 16px;
}
.sp-alpha__bigicon {
  font-size: 68px;
  font-weight: 700;
  color: var(--sp-lime);
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.sp-alpha__hero h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.sp-alpha__soon {
  margin-top: 16px;
  font-size: 11px;
  color: var(--sp-lime);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
