@font-face {
  font-family: "SBL Hebrew";
  src: local("SBL Hebrew"), url("fonts/SBL_Hbrw.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bar-h: 60px;
  --panel-w: 400px;
  --sheet-h: min(50dvh, 460px);
  --scale: 1;
  --measure: 46rem;
  --leading: 2.15;
  --dock-h: 0px;
  --hebrew: "SBL Hebrew", "Noto Serif Hebrew", "Ezra SIL", "Times New Roman", serif;
  --reading: var(--hebrew);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root, [data-preview] {
  --bg: light-dark(#faf7f2, #171512);
  --surface: light-dark(#ffffff, #1f1d19);
  --raised: light-dark(#ffffff, #27241f);
  --text: light-dark(#1f1b16, #ece6dc);
  --muted: light-dark(#6f665b, #a69d90);
  --faint: light-dark(#a39a8e, #6f675d);
  --line: light-dark(#e8e1d6, #34302a);
  --hover: light-dark(#f0ebe2, #2a2721);
  --accent: light-dark(#2f5b8f, #8db4e6);
  --accent-text: light-dark(#1f4777, #b5cff0);
  --accent-soft: light-dark(#e2ebf6, #233349);
  --accent-line: light-dark(#b9cde6, #35507a);
  --verse-soft: light-dark(#f3eee4, #25221d);
  --shade: light-dark(rgb(40 30 20 / 0.08), rgb(0 0 0 / 0.35));
  --shadow: 0 1px 2px var(--shade), 0 8px 24px var(--shade);
}

:root[data-theme="paper"], [data-preview="paper"] { color-scheme: light; }
:root[data-theme="night"], [data-preview="night"] { color-scheme: dark; }

:root[data-theme="parchment"], [data-preview="parchment"] {
  color-scheme: light;
  --bg: #f3ead5;
  --surface: #faf4e4;
  --raised: #fffaee;
  --text: #3a2d1c;
  --muted: #6f5f47;
  --faint: #ad9c7f;
  --line: #e0d2b2;
  --hover: #ebdfc2;
  --accent: #8e4a1c;
  --accent-text: #723a13;
  --accent-soft: #efd9bd;
  --accent-line: #d8b089;
  --verse-soft: #ece0c3;
  --shade: rgb(90 60 20 / 0.12);
}

:root[data-theme="sage"], [data-preview="sage"] {
  color-scheme: light;
  --bg: #eff3ed;
  --surface: #f9fbf8;
  --raised: #ffffff;
  --text: #1c2a21;
  --muted: #5b6e61;
  --faint: #98aa9d;
  --line: #d8e1d9;
  --hover: #e3ebe4;
  --accent: #2d6a4d;
  --accent-text: #1e5038;
  --accent-soft: #d9eadf;
  --accent-line: #a6c9b4;
  --verse-soft: #e5ece5;
  --shade: rgb(20 50 30 / 0.1);
}

:root[data-theme="midnight"], [data-preview="midnight"] {
  color-scheme: dark;
  --bg: #0e1524;
  --surface: #131c2f;
  --raised: #1a253c;
  --text: #e3e8f2;
  --muted: #97a2ba;
  --faint: #5b6782;
  --line: #233049;
  --hover: #1b263d;
  --accent: #8ab4f0;
  --accent-text: #b3cef7;
  --accent-soft: #1e2f4d;
  --accent-line: #3d5f94;
  --verse-soft: #172136;
  --shade: rgb(0 0 0 / 0.4);
}

:root[data-theme="candle"], [data-preview="candle"] {
  color-scheme: dark;
  --bg: #1c170e;
  --surface: #221b12;
  --raised: #2b2218;
  --text: #f1e3c6;
  --muted: #bba583;
  --faint: #7d6a4f;
  --line: #3a2f21;
  --hover: #2f261a;
  --accent: #e59a66;
  --accent-text: #f2bb92;
  --accent-soft: #3e2718;
  --accent-line: #80502f;
  --verse-soft: #272015;
  --shade: rgb(0 0 0 / 0.45);
}

:root[data-theme="sky"], [data-preview="sky"] {
  color-scheme: light;
  --bg: #f1f5f9;
  --surface: #f9fbfd;
  --raised: #ffffff;
  --text: #16202c;
  --muted: #556476;
  --faint: #93a0b1;
  --line: #d9e2ec;
  --hover: #e5ecf4;
  --accent: #2563a8;
  --accent-text: #1b4d86;
  --accent-soft: #dbe8f7;
  --accent-line: #a8c4e6;
  --verse-soft: #e7eef6;
  --shade: rgb(20 40 70 / 0.1);
}

:root[data-theme="rose"], [data-preview="rose"] {
  color-scheme: light;
  --bg: #faf1f1;
  --surface: #fdf8f8;
  --raised: #ffffff;
  --text: #2e1c1f;
  --muted: #785b60;
  --faint: #b0979b;
  --line: #ecdadb;
  --hover: #f3e5e6;
  --accent: #9b2c4a;
  --accent-text: #7d1f3a;
  --accent-soft: #f5dce3;
  --accent-line: #deaab8;
  --verse-soft: #f5e7e8;
  --shade: rgb(70 20 30 / 0.1);
}

:root[data-theme="forest"], [data-preview="forest"] {
  color-scheme: dark;
  --bg: #111a15;
  --surface: #16211b;
  --raised: #1d2a23;
  --text: #e2ece5;
  --muted: #9bb3a3;
  --faint: #5f7668;
  --line: #25352c;
  --hover: #1f2d25;
  --accent: #7fd1a0;
  --accent-text: #a8e3bf;
  --accent-soft: #1e3a2a;
  --accent-line: #3f7a57;
  --verse-soft: #18251e;
  --shade: rgb(0 0 0 / 0.45);
}

:root[data-theme="plum"], [data-preview="plum"] {
  color-scheme: dark;
  --bg: #19131c;
  --surface: #201824;
  --raised: #29202e;
  --text: #efe4f1;
  --muted: #b39cb8;
  --faint: #76617b;
  --line: #362a3b;
  --hover: #2b2130;
  --accent: #e39bd0;
  --accent-text: #f0bfe3;
  --accent-soft: #3d2437;
  --accent-line: #85547a;
  --verse-soft: #231a27;
  --shade: rgb(0 0 0 / 0.45);
}

:root[data-theme="contrast-light"], [data-preview="contrast-light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --raised: #ffffff;
  --text: #000000;
  --muted: #1a1a1a;
  --faint: #474747;
  --line: #6b6b6b;
  --hover: #e6e6e6;
  --accent: #0038b8;
  --accent-text: #002a8a;
  --accent-soft: #dbe6ff;
  --accent-line: #0038b8;
  --verse-soft: #eeeeee;
  --shade: rgb(0 0 0 / 0.2);
}

:root[data-theme="contrast-dark"], [data-preview="contrast-dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0a0a0a;
  --raised: #141414;
  --text: #ffffff;
  --muted: #ebebeb;
  --faint: #c2c2c2;
  --line: #8f8f8f;
  --hover: #242424;
  --accent: #ffd60a;
  --accent-text: #ffe45c;
  --accent-soft: #332b00;
  --accent-line: #ffd60a;
  --verse-soft: #1c1c1c;
  --shade: rgb(0 0 0 / 0.6);
}

:root[data-theme="colorblind-light"], [data-preview="colorblind-light"] {
  color-scheme: light;
  --bg: #fbfbf8;
  --surface: #ffffff;
  --raised: #ffffff;
  --text: #1a1a1a;
  --muted: #545454;
  --faint: #888888;
  --line: #dcdcd6;
  --hover: #eeeeea;
  --accent: #0072b2;
  --accent-text: #005a8c;
  --accent-soft: #d9ecf7;
  --accent-line: #7fb6d9;
  --verse-soft: #fdefd2;
  --shade: rgb(0 0 0 / 0.1);
}

:root[data-theme="colorblind-dark"], [data-preview="colorblind-dark"] {
  color-scheme: dark;
  --bg: #121417;
  --surface: #181b1f;
  --raised: #20242a;
  --text: #eceff2;
  --muted: #a7adb5;
  --faint: #6b727b;
  --line: #2e333a;
  --hover: #23282e;
  --accent: #56b4e9;
  --accent-text: #8fd0f5;
  --accent-soft: #16324a;
  --accent-line: #2f78a6;
  --verse-soft: #33280f;
  --shade: rgb(0 0 0 / 0.45);
}

[data-theme^="contrast"] .w.sel, [data-theme^="contrast"] .cell.sel .cell-he,
[data-theme^="colorblind"] .w.sel, [data-theme^="colorblind"] .cell.sel .cell-he {
  text-decoration: underline 2px;
  text-underline-offset: 0.3em;
  text-decoration-skip-ink: none;
}

[data-theme^="contrast"] .w.in-verse, [data-theme^="colorblind"] .w.in-verse { outline: 1px dashed var(--accent-line); outline-offset: -1px; }
[data-theme^="contrast"] .vn.sel, [data-theme^="colorblind"] .vn.sel { outline: 2px solid var(--text); outline-offset: 1px; }
[data-theme^="contrast"] .switch.on span, [data-theme^="colorblind"] .switch.on span { box-shadow: inset 0 0 0 5px var(--accent); background: var(--bg); }

.font-serif { --reading: "Noto Serif Hebrew", var(--hebrew); }
.font-sans { --reading: "Noto Sans Hebrew", var(--hebrew); }
.font-rashi { --reading: "Noto Rashi Hebrew", var(--hebrew); }
.font-sbl { --reading: var(--hebrew); }

.width-0 { --measure: 36rem; }
.width-1 { --measure: 46rem; }
.width-2 { --measure: 60rem; }

.spacing-0 { --leading: 1.8; }
.spacing-1 { --leading: 2.15; }
.spacing-2 { --leading: 2.6; }

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

button, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.size-0 { --scale: 0.85; }
.size-1 { --scale: 1; }
.size-2 { --scale: 1.15; }
.size-3 { --scale: 1.32; }
.size-4 { --scale: 1.5; }

/* Loader */

.loader {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
}

.loader-mark { font: 600 44px var(--hebrew); color: var(--accent); }

.loader-bar {
  width: 200px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: var(--accent);
  animation: slide 1.2s ease-in-out infinite;
}

.loader-bar.determinate span { width: 0; animation: none; transition: width 0.2s; }

.loader p { margin: 0; }

.loader.failed .loader-bar { display: none; }

@keyframes slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}

/* Header */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  transition: transform 0.25s ease;
}

.bar-hidden .autohide:not(.menu-open) .bar { transform: translateY(-100%); }

.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.brand { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.brand-mark { font: 600 22px var(--hebrew); color: var(--accent); }
.brand-name { font-weight: 600; letter-spacing: 0.01em; }

.picker { display: flex; align-items: center; gap: 6px; min-width: 0; }

.tools { flex: 1; display: flex; justify-content: flex-end; gap: 2px; position: relative; }

.select { position: relative; min-width: 0; }

.select select {
  appearance: none;
  -webkit-appearance: none;
  height: 38px;
  max-width: 12rem;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 500;
  cursor: pointer;
  text-overflow: ellipsis;
}

.select.narrow select { width: 4.5rem; }

.select select:hover { border-color: var(--faint); }

.select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.icon-btn:hover, .icon-btn.on { background: var(--hover); }
.icon-btn.disabled { opacity: 0.25; cursor: default; background: none; }
.text-btn { font: 600 16px var(--serif); }

.i {
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.i-left { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E"); }
.i-right { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E"); }
.i-gear { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E"); }
.i-pin { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5'/%3E%3Cpath d='M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z'/%3E%3C/svg%3E"); }
.pin-btn.on .i-pin { transform: rotate(0deg); }
.pin-btn:not(.on) .i-pin { transform: rotate(35deg); }
.i-close { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E"); }

/* Settings menu */

.menu-backdrop { position: fixed; inset: 0; z-index: 40; }
.tools > .icon-btn { position: relative; z-index: 42; }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 41;
  width: 368px;
  max-height: calc(100dvh - var(--bar-h) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  box-shadow: var(--shadow);
}

.menu-section { padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
.menu-section:first-child { padding-top: 4px; }
.menu-section.last, .menu > div > .menu-section:last-child { border-bottom: 0; padding-bottom: 0; }

.menu-section h2 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2-value {
  margin-left: 8px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  font-size: 12px;
  color: var(--faint);
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  font-weight: 500;
}

.menu-label { display: flex; align-items: baseline; gap: 8px; }
.menu-sample { font: 1.05rem var(--hebrew); color: var(--muted); }

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--hover);
}

.segmented button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.segmented button.on { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px var(--shade); }
.segmented button:disabled { opacity: 0.4; cursor: default; }

.theme-groups { display: grid; gap: 10px; padding: 8px 0 6px; }
.theme-group { display: grid; gap: 6px; }
.theme-group-label { font-size: 11.5px; font-weight: 500; color: var(--faint); }
.swatches { display: grid; grid-template-columns: repeat(7, 30px); justify-content: space-between; }

.swatch {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.15s, box-shadow 0.15s;
}

.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--accent); }

.swatch-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font: 600 14px var(--hebrew);
  box-shadow: inset 0 0 0 1px var(--line);
}

.swatch-face + .swatch-face { clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px 0 6px; }

.face {
  display: grid;
  place-items: center;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.face:hover { border-color: var(--faint); }
.face.on { border-color: var(--accent); background: var(--accent-soft); }
.face-sample { font: 1.45rem/1 var(--reading); color: var(--text); }

.layouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 14px; }

.layout-card {
  display: grid;
  gap: 2px;
  padding: 8px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.layout-card:hover { border-color: var(--faint); }
.layout-card.on { border-color: var(--accent); background: var(--accent-soft); }
.layout-card .thumb { margin-bottom: 6px; }
.layout-name { font-weight: 600; font-size: 13.5px; padding-inline: 2px; }
.layout-desc { font-size: 11.5px; line-height: 1.35; color: var(--muted); padding-inline: 2px; }
.layout-card.on .layout-name { color: var(--accent-text); }

.thumb {
  display: grid;
  height: 58px;
  padding: 8px;
  gap: 4px;
  border-radius: 9px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.thumb span { border-radius: 2px; }
.thumb-study { grid-template-columns: 1fr 32%; gap: 6px; }
.thumb-study span:first-child { background: repeating-linear-gradient(var(--faint) 0 3px, transparent 3px 8px); opacity: 0.8; }
.thumb-study span:last-child { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); border-radius: 4px; }
.thumb-interlinear { grid-template-columns: repeat(4, 1fr); gap: 5px 4px; }
.thumb-interlinear span { background: linear-gradient(var(--text) 0 40%, transparent 40% 62%, var(--accent) 62% 84%, transparent 84%); opacity: 0.7; }
.thumb-scroll { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumb-scroll span { background: repeating-linear-gradient(var(--faint) 0 2px, transparent 2px 6px); opacity: 0.8; }
.thumb-scroll span + span { box-shadow: 3px 0 0 -2px var(--line); }
.thumb-focus { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.thumb-focus span:nth-child(1) { width: 70%; height: 7px; background: var(--text); opacity: 0.75; }
.thumb-focus span:nth-child(2) { width: 46%; height: 3px; background: var(--faint); }
.thumb-focus span:nth-child(3) { width: 36%; height: 3px; background: var(--accent); border-radius: 9px; margin-top: 6px; }

.thumb.mini { width: 22px; height: 18px; padding: 3px; gap: 2px; border-radius: 5px; background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.thumb.mini span { opacity: 1; }
.thumb.mini.thumb-study { gap: 2px; }
.thumb.mini.thumb-study span:first-child { background: repeating-linear-gradient(currentColor 0 1.5px, transparent 1.5px 3.5px); }
.thumb.mini.thumb-study span:last-child { background: currentColor; box-shadow: none; opacity: 0.35; border-radius: 1px; }
.thumb.mini.thumb-interlinear { grid-template-columns: repeat(4, 1fr); gap: 2px 1px; }
.thumb.mini.thumb-interlinear span { background: linear-gradient(currentColor 0 45%, transparent 45% 65%, currentColor 65% 85%, transparent 85%); opacity: 0.8; }
.thumb.mini.thumb-scroll { gap: 2px; }
.thumb.mini.thumb-scroll span { background: repeating-linear-gradient(currentColor 0 1.5px, transparent 1.5px 3px); box-shadow: none; }
.thumb.mini.thumb-focus { gap: 2px; }
.thumb.mini.thumb-focus span:nth-child(1) { height: 3px; background: currentColor; }
.thumb.mini.thumb-focus span:nth-child(2) { height: 1.5px; background: currentColor; opacity: 0.5; }
.thumb.mini.thumb-focus span:nth-child(3) { display: none; }

.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.menu-foot .link-btn { margin: 0; font-size: 12.5px; }
.confirm-text { font-weight: 600; color: var(--text); }
.confirm-actions { display: flex; gap: 6px; }

.confirm-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.confirm-btn.danger { border-color: #c2413a; background: #c2413a; color: #fff; }

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s;
}

.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.2s;
}

.switch.on { background: var(--accent); }
.switch.on span { transform: translateX(18px); }
.switch:disabled { opacity: 0.45; cursor: default; }

.stepper { display: flex; align-items: center; gap: 8px; }

.stepper button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.stepper button:disabled { opacity: 0.35; cursor: default; }

.dots { display: flex; gap: 4px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots span.on { background: var(--accent); }

/* Layout */

.layout { align-items: start; }

.reader { padding: 48px 40px 96px; min-width: 0; }
.reader > * { max-width: var(--measure); margin-inline: auto; }

/* Chapter */

.chapter-head { text-align: center; margin-bottom: 40px; }

.chapter-head h1 {
  margin: 0;
  font: 600 calc(2.4rem * var(--scale)) / 1.2 var(--reading);
  color: var(--text);
}

.chapter-head p {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose p, .verse .hebrew {
  margin: 0 0 1.1em;
  font: calc(1.75rem * var(--scale)) / var(--leading) var(--reading);
  text-align: justify;
}

.w {
  border-radius: 6px;
  padding: 0.04em 0.06em;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

@media (hover: hover) {
  .w:hover { background: var(--hover); }
  .vn:hover { background: var(--accent-soft); }
}

.w.in-verse { background: var(--verse-soft); }
.w.sel { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); }

.vn {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.1em 0.35em;
  border-radius: 99px;
  font: 600 0.42em/1.4 var(--sans);
  text-align: center;
  vertical-align: 0.9em;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  font-variant-numeric: tabular-nums;
}

.vn.sel { background: var(--accent); color: var(--bg); }
.hebrew-numerals .vn { font: 600 0.55em/1.4 var(--reading); vertical-align: 0.7em; }

.setuma { display: inline-block; width: 1.8em; }
.pmark { font-size: 0.7em; color: var(--faint); }

.verses { display: grid; }

.verse {
  padding: 14px 16px;
  margin-inline: -16px;
  transition: background 0.15s;
}

.verse + .verse { border-top: 1px solid var(--line); }
.verse.sel { background: var(--verse-soft); border-color: transparent; border-radius: 14px; }
.verse.sel + .verse { border-color: transparent; }

.verse .hebrew { margin: 0 0 6px; }

.verse .english {
  margin: 0;
  font: calc(1.08rem * var(--scale)) / calc(var(--leading) * 0.75) var(--serif);
  color: var(--muted);
  cursor: pointer;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.chapter-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.15s, transform 0.15s;
}

.chapter-link:hover { border-color: var(--accent-line); }
.chapter-link.i-right { flex-direction: row-reverse; text-align: right; }
.chapter-link .i { color: var(--accent); }
.chapter-link .label { display: block; font-size: 12px; color: var(--muted); }
.chapter-link .ref { font-weight: 600; }

.chapter + .chapter { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.scroll-chapter + .scroll-chapter { break-before: column; }
html:has(.continuous), html:has(.continuous) body, .continuous .scroller { overflow-anchor: none; }

/* Interlinear */

.interlinear { display: grid; }

.il-verse { padding: 14px 12px; margin-inline: -12px; }
.il-verse + .il-verse { border-top: 1px solid var(--line); }
.il-verse.sel { background: var(--verse-soft); border-radius: 14px; border-color: transparent; }
.il-verse.sel + .il-verse { border-color: transparent; }

.il-words { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 2px; }

.il-words .vn { font-size: 12px; vertical-align: 0; margin: 0.7em 0 0 6px; }
.hebrew-numerals .il-words .vn { font-size: 15px; }

.cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 8.5rem;
  padding: 2px 7px 7px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s;
}

.cell-he { font: calc(1.6rem * var(--scale)) / calc(var(--leading) * 0.8) var(--reading); white-space: nowrap; }

.cell-gloss {
  font: 500 calc(0.74rem * var(--scale)) / 1.25 var(--sans);
  color: var(--muted);
  text-align: center;
}

@media (hover: hover) { .cell:hover { background: var(--hover); } }
.cell.in-verse { background: var(--verse-soft); }
.cell.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.cell.sel .cell-he, .cell.sel .cell-gloss { color: var(--accent-text); }

.il-verse .english {
  margin: 8px 0 0;
  font: calc(1.02rem * var(--scale)) / 1.6 var(--serif);
  color: var(--muted);
  cursor: pointer;
}

/* Scroll */

.app.layout-scroll .reader { padding: 0; }
.layout-scroll .reader > * { max-width: none; }

.scroller {
  height: calc(100dvh - var(--bar-h) - var(--dock-h));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.scroll-sheet {
  height: 100%;
  padding: 36px 64px 28px;
  column-width: min(calc(19rem * var(--scale)), calc(100vw - 72px));
  column-gap: 64px;
  column-rule: 1px solid var(--line);
  column-fill: auto;
}

.scroll-chapter > p {
  margin: 0 0 0.9em;
  font: calc(1.55rem * var(--scale)) / var(--leading) var(--reading);
  text-align: justify;
}

.scroll-sheet .chapter-head { margin-bottom: 24px; break-inside: avoid; break-after: avoid; }

.scroll-verse { margin: 0 -10px 0.9em; padding: 2px 10px; border-radius: 10px; transition: background 0.15s; }
.scroll-verse.sel { background: var(--verse-soft); }
.scroll-verse .hebrew { margin: 0; font: calc(1.55rem * var(--scale)) / var(--leading) var(--reading); text-align: justify; }

.scroll-verse .english {
  margin: 2px 0 0;
  font: calc(0.98rem * var(--scale)) / 1.55 var(--serif);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.scroll-edge { display: flex; break-inside: avoid; }
.scroll-edge.start { justify-content: flex-end; margin-bottom: 20px; }
.scroll-edge.end { justify-content: flex-start; margin-top: 32px; }
.scroll-edge:not(:has(a)) { display: none; }

html:has(.layout-scroll), html:has(.layout-scroll) body { overscroll-behavior-x: none; }

.layout-scroll .reader::before,
.layout-scroll .reader::after {
  content: "";
  position: fixed;
  top: var(--bar-h);
  bottom: 0;
  z-index: 5;
  width: 36px;
  pointer-events: none;
}

.layout-scroll .reader::before { right: 0; background: linear-gradient(to left, color-mix(in srgb, var(--text) 10%, transparent), transparent); }
.layout-scroll .reader::after { left: 0; background: linear-gradient(to right, color-mix(in srgb, var(--text) 10%, transparent), transparent); }

/* Focus */

.app.layout-focus .reader { padding: 0; }
.layout-focus .reader > * { max-width: none; }

.focus {
  min-height: calc(100dvh - var(--bar-h) - var(--dock-h));
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 24px 28px;
  transition: padding 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.focus-ref { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.focus-ref-he { font: 600 1.15rem var(--reading); letter-spacing: 0; text-transform: none; color: var(--text); }

.focus-stage { display: grid; place-items: center; padding: 24px 0; }

.focus-verse {
  max-width: 50rem;
  text-align: center;
  animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.focus-hebrew { margin: 0; font: calc(2.8rem * var(--scale)) / var(--leading) var(--reading); }

.focus-verse .english {
  max-width: 38rem;
  margin: 28px auto 0;
  font: calc(1.2rem * var(--scale)) / 1.6 var(--serif);
  color: var(--muted);
}

.focus-controls { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 32rem; margin: 0 auto; }

.focus-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.focus-btn:hover { border-color: var(--accent-line); }
.focus-btn:active { transform: scale(0.94); }

.focus-meter { flex: 1; display: grid; gap: 8px; justify-items: center; }
.focus-track { position: relative; width: 100%; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.focus-track span { position: absolute; top: 0; right: 0; bottom: 0; border-radius: inherit; background: var(--accent); transition: width 0.3s ease; }
.focus-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Panel */

.panel {
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
}

.empty { position: relative; }
.empty-pin { position: absolute; top: 12px; right: 12px; }
.pin-btn { color: var(--muted); }
.pin-btn.on { color: var(--accent); }

.panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.panel-ref { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.panel-ref .kind { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.panel-actions { display: flex; gap: 2px; }

.panel-body { padding: 20px 20px 32px; }

.panel-word {
  margin: 0 0 18px;
  font: 600 2.4rem/1.5 var(--reading);
  text-align: center;
  color: var(--accent-text);
}

.translation { margin: 0; font: 1.2rem/1.65 var(--serif); }

.credit { margin: 20px 0 0; font-size: 12px; color: var(--faint); }

.entry {
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.entry-summary {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

button.entry-summary { cursor: pointer; padding-right: 28px; }
.entry-head { display: flex; align-items: baseline; gap: 10px; }

.chevron {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 0.2s;
}

.entry.collapsed .chevron { transform: none; }
.entry.collapsed { padding-block: 12px; }
.lemma { font: 600 1.6rem/1.3 var(--hebrew); }
.translit { font: italic 1rem var(--serif); color: var(--muted); }

.strongs {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--hover);
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gloss { display: block; margin-top: 4px; font-weight: 600; font-size: 1.05rem; }

.defs { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.defs li { padding: 2px 0; }
.defs li.sub { padding-left: 1.4em; }
.defs .marker { display: inline-block; min-width: 1.8em; font-weight: 600; color: var(--text); }

.link-btn {
  padding: 0;
  margin-top: 6px;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
}

.link-btn:hover { text-decoration: underline; }

.empty { padding: 36px 28px; color: var(--muted); }
.empty h2 { margin: 0 0 20px; font-size: 1.05rem; color: var(--text); }
.empty ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.empty li { display: flex; align-items: center; gap: 14px; }

.empty .sample {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--accent-text);
  font: 600 1.25rem var(--hebrew);
  vertical-align: baseline;
}

.empty .sample.vn { font: 600 13px var(--sans); color: var(--accent); }
.hebrew-numerals .empty .sample.vn { font: 600 1.15rem var(--hebrew); }
.empty .sample.key { font: 500 13px var(--sans); color: var(--text); }

/* Mobile: panel becomes a bottom sheet */

@media (min-width: 1200px) {
  .layout-study.english-beside .reader > * { max-width: calc(var(--measure) * 1.7); }
  .layout-study.english-beside .verse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .layout-study.english-beside .verse .hebrew { order: 2; margin: 0; }
  .layout-study.english-beside .verse .english { order: 1; padding-top: 0.45em; }
}

@media (min-width: 1100px) {
  .layout-focus.english-beside .focus-verse { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 76rem; }
  .layout-focus.english-beside .focus-hebrew { order: 2; }
  .layout-focus.english-beside .focus-verse .english { order: 1; margin: 0; text-align: left; }
}

@media (min-width: 800px) {
  .layout-scroll.english-beside .scroll-sheet { column-width: min(calc(36rem * var(--scale)), calc(100vw - 72px)); }
  .layout-scroll.english-beside .scroll-verse { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
  .layout-scroll.english-beside .scroll-verse .english { margin-top: 0.3em; }
}

@media (min-width: 960px) {
  .panel-pinned.panel-top, .panel-pinned.panel-bottom { --dock-h: 36dvh; }

  .panel-pinned.panel-left .layout, .panel-pinned.panel-right .layout { display: grid; }
  .panel-pinned.panel-right .layout { grid-template-columns: minmax(0, 1fr) var(--panel-w); }
  .panel-pinned.panel-left .layout { grid-template-columns: var(--panel-w) minmax(0, 1fr); }

  .panel-pinned .panel {
    position: sticky;
    top: var(--bar-h);
    z-index: 10;
    height: calc(100dvh - var(--bar-h));
    transition: top 0.25s ease, height 0.25s ease;
  }

  .panel-pinned.panel-right .panel { border-left: 1px solid var(--line); }
  .panel-pinned.panel-left .panel { order: -1; border-right: 1px solid var(--line); }
  .bar-hidden .autohide:not(.menu-open).panel-pinned:is(.panel-left, .panel-right) .panel { top: 0; height: 100dvh; }

  .panel-pinned.panel-top .layout, .panel-pinned.panel-bottom .layout { display: flex; flex-direction: column; align-items: stretch; }
  .panel-pinned.panel-top .panel { order: -1; height: var(--dock-h); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px -12px var(--shade); }
  .panel-pinned.panel-bottom .panel { top: auto; bottom: 0; height: var(--dock-h); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px var(--shade); }
  .panel-pinned.panel-top .reader, .panel-pinned.panel-bottom .reader { width: 100%; }

  .panel-floating .panel {
    position: fixed;
    top: calc(var(--bar-h) + 16px);
    z-index: 20;
    width: 380px;
    max-height: calc(100dvh - var(--bar-h) - 32px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .panel-floating .panel-head { border-radius: 16px 16px 0 0; }
  .panel-floating.panel-left .panel { left: 16px; transform: translateX(-12px); }
  .panel-floating.panel-right .panel { right: 16px; transform: translateX(12px); }
  .panel-floating.panel-top .panel, .panel-floating.panel-bottom .panel { left: 50%; width: min(860px, calc(100vw - 32px)); max-height: 42dvh; }
  .panel-floating.panel-top .panel { transform: translate(-50%, -12px); }
  .panel-floating.panel-bottom .panel { top: auto; bottom: 16px; transform: translate(-50%, 12px); }
  .panel-floating.has-selection .panel { opacity: 1; visibility: visible; transform: none; }
  .panel-floating.has-selection:is(.panel-top, .panel-bottom) .panel { transform: translateX(-50%); }

  .panel-top .panel-body, .panel-bottom .panel-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    align-items: start;
    direction: rtl;
  }

  :is(.panel-top, .panel-bottom) .panel-body > * { direction: ltr; }
  .panel-top .panel-word, .panel-bottom .panel-word { margin: 0; align-self: center; }
  .panel-top .entry, .panel-bottom .entry { margin: 0; }
  :is(.panel-top, .panel-bottom) .panel-body > :is(.link-btn, .credit, .translation) { grid-column: 1 / -1; justify-self: end; margin: 0; }
  :is(.panel-top, .panel-bottom) .empty ul { grid-template-columns: repeat(3, 1fr); }
  :is(.panel-top, .panel-bottom) .empty { padding: 24px 28px; }

  .layout-scroll.panel-pinned.panel-right .reader::before { right: var(--panel-w); }
  .layout-scroll.panel-pinned.panel-left .reader::after { left: var(--panel-w); }
  .layout-scroll.panel-pinned.panel-top .reader::before, .layout-scroll.panel-pinned.panel-top .reader::after { top: calc(var(--bar-h) + var(--dock-h)); }
  .layout-scroll.panel-pinned.panel-bottom .reader::before, .layout-scroll.panel-pinned.panel-bottom .reader::after { bottom: var(--dock-h); }

  .layout-focus.panel-floating.has-selection.panel-left .focus { padding-left: 420px; }
  .layout-focus.panel-floating.has-selection.panel-right .focus { padding-right: 420px; }
  .layout-focus.panel-floating.has-selection.panel-top .focus { padding-top: 44dvh; }
  .layout-focus.panel-floating.has-selection.panel-bottom .focus { padding-bottom: 44dvh; }
}

@media (max-width: 959px) {
  .layout { display: block; }
  .wide-only, .pin-btn, .empty-pin { display: none; }
  .reader { padding: 32px 20px 72px; }
  .has-selection .reader { padding-bottom: calc(var(--sheet-h) + 32px); }
  .layout-focus.has-selection .focus { padding-bottom: calc(var(--sheet-h) + 16px); }
  .scroll-sheet { padding-inline: 20px; column-gap: 40px; }

  .panel {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    height: var(--sheet-h);
    padding-bottom: env(safe-area-inset-bottom);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgb(0 0 0 / 0.12);
    transform: translateY(calc(100% + 40px));
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.28s;
  }

  .has-selection .panel { transform: none; visibility: visible; }
  .panel-head { border-radius: 18px 18px 0 0; padding-top: 16px; }

  .panel-head::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 99px;
    background: var(--line);
  }

  .panel-word { font-size: 2rem; margin-bottom: 12px; }
}

@media (max-width: 600px) {
  :root { --bar-h: 56px; }
  .bar { gap: 6px; padding-inline: 10px; }
  .brand-name { display: none; }
  .tools { gap: 0; }
  .focus-hebrew { font-size: calc(1.9rem * var(--scale)); }
  .brand { flex: none; }
  .picker { flex: 1; justify-content: center; gap: 2px; }
  .tools { flex: none; }
  .select select { max-width: 8rem; padding-left: 10px; }
  .select.narrow select { width: 3.9rem; }
  .icon-btn { width: 34px; }
  .reader { padding-inline: 16px; }
  .chapter-head { margin-bottom: 28px; }
  .prose p, .verse .hebrew { font-size: calc(1.5rem * var(--scale)); text-align: right; }
  .verse { padding-inline: 12px; margin-inline: -12px; }
  .chapter-link { padding: 8px 12px; }
  .menu {
    position: fixed;
    inset: auto 0 0 0;
    width: auto;
    max-height: 85dvh;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    animation: sheet-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .menu-backdrop { background: rgb(0 0 0 / 0.32); animation: fade-in 0.2s; }
}

@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 420px) {
  .brand { display: none; }
  .select select { max-width: 7.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
