/* =========================
   EsSelqm reader — standalone styles.
   The 13 theme blocks are the same tokens as the main site
   (assets/css/style.css), so both apps look like a family.
   The active theme is set as <html data-theme="…"> by js/theme.js
   (and by the inline no-flash script in reader.html). Brown is the default.
   ========================= */
[data-theme="brown"] {
  color-scheme: dark;
  --bg: #1e1b18;  --panel: #2a2521;  --panel-2: #322c27;  --hover: #3a322c;  --border: #3a332d;
  --text: #f2e9e4;  --muted: #c9b8a8;
  --accent: #d4a373;  --accent-soft: rgba(212, 163, 115, 0.14);  --accent-line: rgba(212, 163, 115, 0.35);  --on-accent: #2a1d12;
  --danger: #e07a6a;  --shadow: rgba(0, 0, 0, 0.35);  --backdrop: rgba(0, 0, 0, 0.6);
  --footer-bg: #1a1715;  --toast-bg: #3d342d;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212;  --panel: #1e1e1e;  --panel-2: #262626;  --hover: #2f2f2f;  --border: #333333;
  --text: #ededed;  --muted: #a8a8a8;
  --accent: #8ab4f8;  --accent-soft: rgba(138, 180, 248, 0.14);  --accent-line: rgba(138, 180, 248, 0.4);  --on-accent: #0d1b2e;
  --danger: #f28b82;  --shadow: rgba(0, 0, 0, 0.5);  --backdrop: rgba(0, 0, 0, 0.65);
  --footer-bg: #0d0d0d;  --toast-bg: #2b2b2b;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f6;  --panel: #ffffff;  --panel-2: #eceef2;  --hover: #e3e6eb;  --border: #d6dae0;
  --text: #1f2328;  --muted: #5b6470;
  --accent: #2563eb;  --accent-soft: rgba(37, 99, 235, 0.1);  --accent-line: rgba(37, 99, 235, 0.35);  --on-accent: #ffffff;
  --danger: #c62828;  --shadow: rgba(20, 30, 50, 0.12);  --backdrop: rgba(20, 25, 35, 0.35);
  --footer-bg: #e9ebef;  --toast-bg: #ffffff;
}

[data-theme="orange"] {
  color-scheme: dark;
  --bg: #18191b;  --panel: #222326;  --panel-2: #2a2c30;  --hover: #33363a;  --border: #34373c;
  --text: #f2f2f2;  --muted: #b5b8bd;
  --accent: #ff9a3c;  --accent-soft: rgba(255, 154, 60, 0.14);  --accent-line: rgba(255, 154, 60, 0.4);  --on-accent: #2a1300;
  --danger: #ff8a80;  --shadow: rgba(0, 0, 0, 0.45);  --backdrop: rgba(0, 0, 0, 0.6);
  --footer-bg: #121314;  --toast-bg: #2d2f33;
}

[data-theme="peach"] {
  color-scheme: light;
  --bg: #fff2e8;  --panel: #fffaf6;  --panel-2: #ffe8d6;  --hover: #ffdec6;  --border: #f1d3bd;
  --text: #3b2417;  --muted: #7a5442;
  --accent: #c2410c;  --accent-soft: rgba(194, 65, 12, 0.1);  --accent-line: rgba(194, 65, 12, 0.35);  --on-accent: #ffffff;
  --danger: #b42318;  --shadow: rgba(120, 60, 20, 0.15);  --backdrop: rgba(60, 30, 10, 0.35);
  --footer-bg: #ffe9da;  --toast-bg: #fffaf6;
}

[data-theme="green"] {
  color-scheme: dark;
  --bg: #142019;  --panel: #1c2b22;  --panel-2: #233529;  --hover: #2b4033;  --border: #2b3d31;
  --text: #e9f3ec;  --muted: #a9c2b2;
  --accent: #7fd49b;  --accent-soft: rgba(127, 212, 155, 0.14);  --accent-line: rgba(127, 212, 155, 0.4);  --on-accent: #0d2615;
  --danger: #ff9a8f;  --shadow: rgba(0, 0, 0, 0.4);  --backdrop: rgba(0, 10, 5, 0.6);
  --footer-bg: #101a14;  --toast-bg: #24382b;
}

[data-theme="mint"] {
  color-scheme: light;
  --bg: #eef6f0;  --panel: #ffffff;  --panel-2: #e2efe6;  --hover: #d6e9dc;  --border: #cfe0d4;
  --text: #17301f;  --muted: #4f6b58;
  --accent: #23774a;  --accent-soft: rgba(35, 119, 74, 0.1);  --accent-line: rgba(35, 119, 74, 0.35);  --on-accent: #ffffff;
  --danger: #b3261e;  --shadow: rgba(20, 60, 35, 0.12);  --backdrop: rgba(10, 30, 20, 0.35);
  --footer-bg: #e3efe7;  --toast-bg: #ffffff;
}

[data-theme="blue"] {
  color-scheme: dark;
  --bg: #0f1a2b;  --panel: #16243a;  --panel-2: #1c2d47;  --hover: #243857;  --border: #24375a;
  --text: #eaf1fb;  --muted: #a7b8d0;
  --accent: #6cb4ff;  --accent-soft: rgba(108, 180, 255, 0.14);  --accent-line: rgba(108, 180, 255, 0.4);  --on-accent: #06203d;
  --danger: #ff8f8f;  --shadow: rgba(0, 0, 0, 0.45);  --backdrop: rgba(0, 5, 15, 0.6);
  --footer-bg: #0b1422;  --toast-bg: #1f3150;
}

[data-theme="sky"] {
  color-scheme: light;
  --bg: #eef4fb;  --panel: #ffffff;  --panel-2: #e1ecf8;  --hover: #d4e4f5;  --border: #cddcee;
  --text: #142336;  --muted: #4c607a;
  --accent: #1d6fd1;  --accent-soft: rgba(29, 111, 209, 0.1);  --accent-line: rgba(29, 111, 209, 0.35);  --on-accent: #ffffff;
  --danger: #c0262d;  --shadow: rgba(20, 40, 80, 0.12);  --backdrop: rgba(10, 25, 50, 0.35);
  --footer-bg: #e3edf8;  --toast-bg: #ffffff;
}

[data-theme="slate"] {
  color-scheme: dark;
  --bg: #415669;  --panel: #4b6176;  --panel-2: #556c82;  --hover: #5f778e;  --border: #62798f;
  --text: #f4f8fb;  --muted: #d5e0ea;
  --accent: #b0e8dd;  --accent-soft: rgba(176, 232, 221, 0.16);  --accent-line: rgba(176, 232, 221, 0.45);  --on-accent: #1f3a40;
  --danger: #ffb4a8;  --shadow: rgba(15, 25, 35, 0.3);  --backdrop: rgba(20, 30, 40, 0.55);
  --footer-bg: #3a4e60;  --toast-bg: #2f4252;
}

[data-theme="purple"] {
  color-scheme: dark;
  --bg: #1c1626;  --panel: #261e33;  --panel-2: #2e2540;  --hover: #382d4d;  --border: #3a2f4d;
  --text: #f1ecf8;  --muted: #bfb3d1;
  --accent: #c3a6ff;  --accent-soft: rgba(195, 166, 255, 0.14);  --accent-line: rgba(195, 166, 255, 0.4);  --on-accent: #261447;
  --danger: #ff9aa8;  --shadow: rgba(0, 0, 0, 0.45);  --backdrop: rgba(5, 0, 15, 0.6);
  --footer-bg: #16111f;  --toast-bg: #33294a;
}

[data-theme="sepia"] {
  color-scheme: light;
  --bg: #f4ecd8;  --panel: #fbf6e9;  --panel-2: #efe4cb;  --hover: #e8dcc0;  --border: #dccdaa;
  --text: #3b2f22;  --muted: #6e5d48;
  --accent: #a0522d;  --accent-soft: rgba(160, 82, 45, 0.12);  --accent-line: rgba(160, 82, 45, 0.35);  --on-accent: #fff8ee;
  --danger: #b3261e;  --shadow: rgba(80, 60, 30, 0.15);  --backdrop: rgba(60, 45, 25, 0.35);
  --footer-bg: #ebe0c5;  --toast-bg: #fbf6e9;
}

[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #000000;  --panel: #0d0d0d;  --panel-2: #1a1a1a;  --hover: #262626;  --border: #5c5c5c;
  --text: #ffffff;  --muted: #e0e0e0;
  --accent: #ffd60a;  --accent-soft: rgba(255, 214, 10, 0.16);  --accent-line: #ffd60a;  --on-accent: #000000;
  --danger: #ff6b6b;  --shadow: rgba(0, 0, 0, 0.6);  --backdrop: rgba(0, 0, 0, 0.75);
  --footer-bg: #000000;  --toast-bg: #1a1a1a;
}

:root { --radius: 12px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.4; cursor: default; }

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

.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* visually hidden, still reachable for screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   BOOKSHELF
   ========================= */
.shelf {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
}

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 14px 8px;
}
.shelf-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-ic {
  width: 40px; height: 40px; padding: 7px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
}
.shelf-brand h1 { margin: 0; font-size: 17px; font-weight: 700; }
.shelf-brand p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }

.shelf-main {
  flex: 1;
  overflow-y: auto;
  padding: 6px 14px 16px;
  overscroll-behavior: contain;
}

.shelf-footer {
  text-align: center;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
}

.shelf-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

/* category headings */
.shelf-section {
  margin: 18px 0 8px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted);
}
.shelf-section:first-child { margin-top: 4px; }

/* continue banner */
.continue {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
}
.continue-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.continue-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
}
.continue-text strong, .continue-text span:last-child {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.continue-text span:last-child { font-size: 12px; color: var(--muted); }

/* book cards */
.book-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.book-card:hover { border-color: var(--accent-line); }

.book-head { display: flex; align-items: flex-start; gap: 10px; }
.book-titles { flex: 1; min-width: 0; }
.book-titles h2 {
  margin: 0;
  font-size: 16px; font-weight: 600; line-height: 1.3;
}
.book-author { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.book-note { margin: 1px 0 0; font-size: 12px; color: var(--muted); opacity: 0.85; }

.book-status {
  flex: none;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.book-status.is-progress {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.book-bar {
  height: 4px;
  margin: 12px 0 2px;
  background: var(--panel-2);
  border-radius: 2px;
  overflow: hidden;
}
.book-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

.book-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.book-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.book-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.book-dl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 50%;
  background: transparent; color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.book-dl:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* =========================
   READER
   ========================= */
.reader {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
}

.reader-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  background: linear-gradient(180deg, var(--panel), var(--bg));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  z-index: 2;
}
.reader-title { flex: 1; min-width: 0; }
.reader-title h1 {
  margin: 0;
  font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reader-title p {
  margin: 1px 0 0;
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 44px; height: 44px;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, transform 0.08s;
}
.icon-btn:hover:not(:disabled) { background: var(--panel-2); color: var(--accent); }
.icon-btn:active:not(:disabled) { transform: scale(0.94); }
.icon-btn.is-on { color: var(--accent); background: var(--accent-soft); }

/* progress hairline */
.reader-progress {
  flex: none;
  height: 3px;
  background: var(--border);
}
.reader-progress i {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

/* stage */
.page-stage {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* The epub.js iframe fills the stage; the padding keeps the book off the edges. */
.epub-viewer {
  position: absolute;
  inset: 0;
  padding: 14px 12px;
}
.epub-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  display: block;
}

/* Status/error overlays sit above the (empty) book area while loading. */
.page-holder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  z-index: 1;
}
.page-status, .page-error { pointer-events: auto; }

/* status (loading / error-ish) */
.page-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
}
.page-status p { margin: 0; font-size: 14px; }
.page-status-pct {
  margin: 0;
  font-size: 24px; font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.page-status.compact { padding: 18px 24px; }
.page-status.compact p { font-size: 13px; }

.spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 24px;
  text-align: center;
}
.page-error-title { margin: 0; font-size: 16px; font-weight: 600; }
.page-error-msg {
  margin: 0;
  max-width: 440px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.page-error .primary-btn { margin-top: 6px; }

/* bottom bar */
.reader-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--panel), var(--bg));
  border-top: 1px solid var(--border);
  z-index: 2;
}
.nav-group { display: flex; align-items: center; gap: 4px; }
.page-jump {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.page-jump input[type="range"] {
  width: 120px;
  margin: 0;
  accent-color: var(--accent);
  touch-action: manipulation;
}
.page-jump #pos-pct {
  min-width: 38px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.zoom-group { display: flex; align-items: center; gap: 4px; }
.zoom-label {
  min-width: 52px;
  padding: 7px 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: 13px;
  color: var(--text);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.zoom-label:hover { border-color: var(--accent-line); color: var(--accent); }

/* =========================
   BUTTONS
   ========================= */
.primary-btn {
  padding: 9px 16px;
  border: 0; border-radius: 20px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600;
  transition: filter 0.15s;
}
.primary-btn:hover { filter: brightness(1.06); }

.danger-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--danger); color: var(--danger);
}
.danger-btn:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

/* =========================
   SETTINGS SHEET
   ========================= */
.sheet {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  background: transparent; backdrop-filter: blur(0);
  transition: background 0.25s, backdrop-filter 0.25s;
}
.sheet.open { background: var(--backdrop); backdrop-filter: blur(4px); }

.sheet-body {
  width: 100%; max-width: 640px; max-height: 85vh; max-height: 85dvh;
  display: flex; flex-direction: column;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px var(--shadow);
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
}
.sheet.open .sheet-body { transform: translateY(0); }

.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sheet-head h2 {
  margin: 0; font-size: 18px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sheet-close { color: var(--muted); }
.sheet-scroll { overflow-y: auto; flex: 1; padding-right: 4px; }

.setting {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.setting:last-child { border-bottom: 0; }
.setting span { display: block; font-size: 15px; font-weight: 500; }
.setting p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }

.select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
}

/* theme picker */
.setting-block { padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting-title { display: block; font-size: 15px; font-weight: 500; }
.setting-desc { margin: 3px 0 10px; font-size: 12px; color: var(--muted); }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
/* The swatch carries its own data-theme, so the attribute-only theme
   blocks above paint it in its own colors. */
.theme-swatch {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px;
  background: var(--bg); color: var(--text);
  border: 2px solid var(--border);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}
.theme-swatch:hover { border-color: var(--accent-line); }
.theme-swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.swatch-preview {
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 6px;
  background: var(--panel-2);
  border-radius: 6px;
}
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; }
.swatch-line { flex: 1; height: 4px; border-radius: 2px; background: var(--muted); opacity: 0.7; }
.swatch-name { font-size: 13px; font-weight: 600; }
.theme-swatch .ic {
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px;
  color: var(--accent);
  display: none;
}
.theme-swatch[aria-pressed="true"] .ic { display: block; }

/* related sites (family links) — same style as the main site */
.site-links { display: flex; flex-direction: column; gap: 8px; }
.site-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.site-link:hover { background: var(--hover); border-color: var(--accent-line); }
.site-link:active { transform: scale(0.99); }
.site-link-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-link-title { font-size: 14px; font-weight: 600; }
.site-link-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-link .ic { flex: none; }
.site-link-ic { color: var(--accent); display: inline-flex; }
.site-link-ic .ic { width: 20px; height: 20px; }
.site-link-ext { color: var(--muted); display: inline-flex; }
.site-link-ext .ic { width: 16px; height: 16px; }

/* =========================
   TOAST
   ========================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(60px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: 90vw;
  padding: 10px 16px;
  background: var(--toast-bg);
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 16px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2000;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================
   SMALL SCREENS + MOTION
   ========================= */
@media (max-width: 600px) {
  .zoom-group { display: none; } /* zoom stays in Настройки */
  .icon-btn { min-width: 40px; }
}

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