/* ============ Theme palettes ============ */
/* Each theme class supplies a color scale; layout rules map the scale to roles. */
.t-default { --c50:#eff6ff; --c100:#dbeafe; --c200:#bfdbfe; --c300:#93c5fd; --c400:#60a5fa; --c600:#2563eb; --c700:#1d4ed8; --c800:#1e40af; --c900:#1e3a8a; --c950:#172554; }
.t-love    { --c50:#fff1f2; --c100:#ffe4e6; --c200:#fecdd3; --c300:#fda4af; --c400:#fb7185; --c600:#e11d48; --c700:#be123c; --c800:#9f1239; --c900:#881337; --c950:#4c0519; }
.t-faith   { --c50:#f0f9ff; --c100:#e0f2fe; --c200:#bae6fd; --c300:#7dd3fc; --c400:#38bdf8; --c600:#0284c7; --c700:#0369a1; --c800:#075985; --c900:#0c4a6e; --c950:#082f49; }
.t-sin     { --c50:#fef2f2; --c100:#fee2e2; --c200:#fecaca; --c300:#fca5a5; --c400:#f87171; --c600:#dc2626; --c700:#b91c1c; --c800:#991b1b; --c900:#7f1d1d; --c950:#450a0a; }
.t-law     { --c50:#fffbeb; --c100:#fef3c7; --c200:#fde68a; --c300:#fcd34d; --c400:#fbbf24; --c600:#d97706; --c700:#b45309; --c800:#92400e; --c900:#78350f; --c950:#451a03; }
.t-grace   { --c50:#faf5ff; --c100:#f3e8ff; --c200:#e9d5ff; --c300:#d8b4fe; --c400:#c084fc; --c600:#9333ea; --c700:#7e22ce; --c800:#6b21a8; --c900:#581c87; --c950:#3b0764; }
.t-justice { --c50:#fff7ed; --c100:#ffedd5; --c200:#fed7aa; --c300:#fdba74; --c400:#fb923c; --c600:#ea580c; --c700:#c2410c; --c800:#9a3412; --c900:#7c2d12; --c950:#431407; }
.t-redemption { --c50:#ecfdf5; --c100:#d1fae5; --c200:#a7f3d0; --c300:#6ee7b7; --c400:#34d399; --c600:#059669; --c700:#047857; --c800:#065f46; --c900:#064e3b; --c950:#022c22; }
.t-covenant { --c50:#f0fdfa; --c100:#ccfbf1; --c200:#99f6e4; --c300:#5eead4; --c400:#2dd4bf; --c600:#0d9488; --c700:#0f766e; --c800:#115e59; --c900:#134e4a; --c950:#042f2e; }
.t-suffering { --c50:#f8fafc; --c100:#f1f5f9; --c200:#e2e8f0; --c300:#cbd5e1; --c400:#94a3b8; --c600:#475569; --c700:#334155; --c800:#1e293b; --c900:#0f172a; --c950:#020617; }
.t-kingdom { --c50:#eef2ff; --c100:#e0e7ff; --c200:#c7d2fe; --c300:#a5b4fc; --c400:#818cf8; --c600:#4f46e5; --c700:#4338ca; --c800:#3730a3; --c900:#312e81; --c950:#1e1b4b; }

/* ============ Design tokens ============ */
:root {
  --page-bg: #F9FAFB;
  --surface: #FFFFFF;
  --surface-alt: #F3F4F6;
  --heading: #1E3A8A;
  --btn: #2563EB;
  --btn-hover: #1D4ED8;
  --btn-text: #FFFFFF;
  --verse: #1F2937;
  --text: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
  --card-border: #E5E7EB;
  --danger: #DC2626;
  --success: #15803D;
  --warn-bg: #FFFBEB;
  --warn-text: #92400E;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 4px 16px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.25);
  --focus: 0 0 0 3px color-mix(in srgb, var(--btn) 40%, transparent);
  --skeleton: #E5E7EB;
  color-scheme: light;
}

/* Theme-colored elements resolve the scale of their own theme class */
.badge, .verse-ref, .theme-card, .result, .result-icon {
  --badge-bg: var(--c100);
  --badge-text: var(--c800);
  --ref: var(--c700);
}

html.themed {
  --page-bg: var(--c50);
  --heading: var(--c800);
  --btn: var(--c700);
  --btn-hover: var(--c800);
  --card-border: var(--c200);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #0B1120;
    --surface: #111827;
    --surface-alt: #1F2937;
    --heading: #93C5FD;
    --btn: #2563EB;
    --btn-hover: #1D4ED8;
    --verse: #F3F4F6;
    --text: #E5E7EB;
    --muted: #9CA3AF;
    --border: #1F2937;
    --card-border: #1F2937;
    --danger: #F87171;
    --success: #4ADE80;
    --warn-bg: #2A1E0A;
    --warn-text: #FCD34D;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --skeleton: #1F2937;
    color-scheme: dark;
  }
  html.themed {
    --page-bg: color-mix(in srgb, var(--c950) 45%, #0B1120);
    --heading: var(--c300);
    --btn: var(--c600);
    --btn-hover: var(--c700);
    --card-border: color-mix(in srgb, var(--c700) 45%, #1F2937);
  }
  
  .badge, .verse-ref, .theme-card, .result, .result-icon {
    --badge-bg: color-mix(in srgb, var(--c900) 55%, transparent);
    --badge-text: var(--c200);
    --ref: var(--c300);
  }
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page-bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease;
}
button, input, select { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.muted { color: var(--muted); }
.block { display: block; }
.center { text-align: center; }
.strong { font-weight: 600; color: var(--text); }
.small-text { font-size: 0.875rem; }

.page {
  max-width: 672px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 24px) 16px calc(env(safe-area-inset-bottom) + 24px);
}

/* ============ Header ============ */
.header { position: relative; text-align: center; padding: 8px 48px 4px; }
.title {
  margin: 0; font-size: 1.875rem; line-height: 1.2; font-weight: 700;
  color: var(--heading); letter-spacing: -0.02em; transition: color 0.5s ease;
}
.date { margin: 6px 0 0; font-size: 0.875rem; color: var(--muted); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid transparent; background: transparent;
  color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--surface-alt); color: var(--heading); }
.icon-btn svg { width: 20px; height: 20px; }
.bell { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.bell-dot {
  position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--btn); box-shadow: 0 0 0 2px var(--page-bg);
}
.bell-dot[hidden] { display: none; }

/* ============ Theme bar ============ */
.theme-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px;
  margin: 24px 0 16px; min-height: 40px;
}
.theme-current { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; color: var(--muted); font-size: 0.9rem; }
.theme-chip { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.theme-chip .badge { white-space: normal; }
.theme-bar .btn { margin-left: auto; }
.remove-filter {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  border: none; background: transparent; color: var(--muted); cursor: pointer;
}
.remove-filter:hover { background: var(--surface-alt); color: var(--text); }
.remove-filter svg { width: 14px; height: 14px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.08s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover:not(:disabled) { background: var(--btn-hover); }
.btn-outline { background: var(--surface); color: var(--btn); border-color: color-mix(in srgb, var(--btn) 45%, var(--border)); }
.btn-outline:hover:not(:disabled) { background: color-mix(in srgb, var(--btn) 8%, var(--surface)); border-color: var(--btn); }
@media (prefers-color-scheme: dark) {
  .btn-outline { color: color-mix(in srgb, var(--btn) 45%, #ffffff); }
}
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; flex-shrink: 0; }
.link-btn {
  background: none; border: none; color: var(--btn); font-weight: 600; cursor: pointer;
  padding: 10px 8px; border-radius: 8px; min-height: 44px;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.center-block { display: block; margin: 8px auto 0; }

.refresh-icon.spinning { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Cards ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: border-color 0.5s ease, background-color 0.5s ease;
}
.verse-card { padding: 32px; min-height: 220px; }
.verse-card.fade-in #verse-content { animation: fadeIn 0.45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; line-height: 1.4;
  background: var(--badge-bg); color: var(--badge-text);
  max-width: 100%; overflow-wrap: anywhere; text-align: center;
}
.badge-neutral { background: var(--surface-alt); color: var(--muted); }

.verse-text {
  margin: 0; padding: 0; text-align: center;
  font-style: italic; font-weight: 300; font-size: 1.25rem; line-height: 1.75;
  color: var(--verse); overflow-wrap: break-word;
}
.verse-text::before { content: "\201C"; }
.verse-text::after { content: "\201D"; }
.verse-ref {
  margin: 20px 0 0; text-align: center; font-weight: 600; font-size: 1.125rem;
  color: var(--ref); transition: color 0.4s ease;
}

/* Skeletons */
.sk { display: block; background: var(--skeleton); border-radius: 6px; position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-badges { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.sk-pill { width: 96px; height: 24px; border-radius: 999px; }
.sk-line { height: 16px; margin: 0 auto 12px; width: 100%; }
.sk-line.short { width: 60%; }
.sk-ref { height: 18px; width: 140px; margin: 24px auto 0; }
.skeleton-wrap[hidden], #verse-content[hidden] { display: none; }

/* Empty states */
.empty { text-align: center; padding: 16px 8px; }
.empty-title { margin: 0 0 4px; font-weight: 600; color: var(--text); }
.empty p { margin: 0; }
.empty.small { padding: 20px 16px; font-size: 0.9rem; }
.empty[hidden] { display: none; }

/* ============ Actions ============ */
.actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 20px 0 24px; }

/* ============ Accordion ============ */
.accordion { overflow: hidden; }
.accordion-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; min-height: 56px; background: none; border: none; cursor: pointer;
  font-weight: 600; color: var(--heading); text-align: left; transition: color 0.5s ease;
}
.accordion-head:hover { background: color-mix(in srgb, var(--surface-alt) 60%, transparent); }
.chevron { width: 20px; height: 20px; color: var(--muted); transition: transform 0.25s ease; flex-shrink: 0; }
.accordion-head[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.accordion-panel { border-top: 1px solid var(--border); }
.accordion-panel[hidden] { display: none; }
.history-skeleton { padding: 16px 20px; }
.history-skeleton[hidden] { display: none; }
.history-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.history-list li + li { border-top: 1px solid var(--border); }
.history-row {
  width: 100%; display: block; text-align: left; background: none; border: none; cursor: pointer;
  padding: 14px 20px;
}
.history-row:hover { background: color-mix(in srgb, var(--surface-alt) 60%, transparent); }
.history-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.history-ref { font-weight: 600; color: var(--text); }
.history-date { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.history-row .badge { margin-top: 6px; font-size: 0.72rem; padding: 2px 10px; }
.history-excerpt {
  margin: 6px 0 0; font-size: 0.9rem; font-style: italic; font-weight: 300; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.history-foot { border-top: 1px solid var(--border); text-align: center; padding: 4px; }
.history-foot[hidden] { display: none; }
.history-foot .link-btn { font-size: 0.875rem; color: var(--muted); font-weight: 500; }

/* ============ Footer ============ */
.footer { text-align: center; padding: 40px 0 8px; color: var(--muted); font-size: 0.875rem; }
.footer p { margin: 0 0 6px; }
.made-with { display: flex; align-items: center; justify-content: center; gap: 6px; }
.heart { width: 16px; height: 16px; fill: #3B82F6; stroke: #3B82F6; }
.kofi {
  display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 8px;
  padding: 8px 16px; min-height: 40px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 500; font-size: 0.875rem; text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.kofi:hover { border-color: var(--btn); color: var(--btn); }
.kofi svg { width: 16px; height: 16px; }
.kofi svg:first-child { color: #F43F5E; fill: #F43F5E; stroke: #F43F5E; }
.support-note { font-size: 0.8rem; }

/* ============ Dialogs ============ */
.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dialog[open] { animation: pop 0.2s ease; }
.dialog::backdrop { background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); animation: fadeOnly 0.2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
.dialog-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.dialog-head {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: 12px 12px 4px;
}
.dialog-head h2 { margin: 0; text-align: center; font-size: 1.25rem; color: var(--heading); }
.dialog-head .icon-btn[hidden] { visibility: hidden; display: inline-grid; }
.dialog-body { padding: 8px 24px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dialog-body[hidden] { display: none; }

.menu-options { display: grid; gap: 12px; margin: 16px 0 8px; }
.menu-option {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.menu-option:hover { border-color: var(--btn); background: color-mix(in srgb, var(--btn) 5%, var(--surface)); }
.menu-option strong { color: var(--text); }
.menu-option .muted { font-size: 0.875rem; }
.menu-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: color-mix(in srgb, var(--btn) 12%, var(--surface)); color: var(--btn);
}
.menu-icon svg { width: 22px; height: 22px; }

.theme-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.theme-card {
  display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%;
  padding: 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.theme-card:hover { border-color: var(--c400); background: color-mix(in srgb, var(--c50) 50%, var(--surface)); }
.theme-card[aria-pressed="true"] { border-color: var(--c600); box-shadow: 0 0 0 1px var(--c600); }
.theme-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--badge-bg); color: var(--badge-text);
}
.theme-icon svg { width: 18px; height: 18px; }
.theme-card strong { display: block; color: var(--text); font-size: 0.95rem; }
.theme-card span.desc { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin-top: 2px; }
@media (prefers-color-scheme: dark) {
  .theme-card:hover { background: color-mix(in srgb, var(--c900) 25%, var(--surface)); }
  .theme-card[aria-pressed="true"] { border-color: var(--c400); box-shadow: 0 0 0 1px var(--c400); }
}

/* Quiz */
.quiz-progress { display: grid; gap: 8px; margin: 4px 0 16px; }
.progress { height: 6px; background: var(--surface-alt); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--btn); border-radius: inherit; transition: width 0.3s ease; }
.quiz-q { border: none; margin: 0; padding: 0; min-width: 0; }
.quiz-q legend { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 14px; padding: 0; }
.quiz-answers { display: grid; gap: 10px; }
.quiz-answer {
  width: 100%; text-align: left; padding: 14px 16px; min-height: 52px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.quiz-answer:hover { border-color: var(--btn); background: color-mix(in srgb, var(--btn) 6%, var(--surface)); }

.result { text-align: center; padding-top: 8px; }
.result p { margin: 0; }
.result-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 14px auto 10px;
  border-radius: 16px; background: var(--badge-bg); color: var(--badge-text);
}
.result-icon svg { width: 30px; height: 30px; }
.result h3 { margin: 0 0 8px; font-size: 1.4rem; color: var(--ref); }
.result-actions { display: grid; gap: 10px; margin-top: 20px; }

/* Notifications */
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 8px 0 16px; border-bottom: 1px solid var(--border); }
.switch-row p { margin: 2px 0 0; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #D1D5DB; transition: background 0.2s; }
.slider::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s;
}
.switch input:checked + .slider { background: var(--btn); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { box-shadow: var(--focus); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .slider { opacity: 0.5; }
@media (prefers-color-scheme: dark) { .slider { background: #374151; } }

.notify-fields { border: none; margin: 0; padding: 16px 0 0; min-width: 0; display: grid; gap: 18px; transition: opacity 0.2s; }
.notify-fields:disabled { opacity: 0.45; }
.field { display: grid; gap: 8px; }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.input:disabled { cursor: not-allowed; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day {
  min-height: 44px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 0.85rem; cursor: pointer; color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.day[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.day:disabled { cursor: not-allowed; }

.notice { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); font-size: 0.875rem; }
.notice[hidden] { display: none; }
.status { min-height: 1.4em; margin: 16px 0 4px; font-size: 0.875rem; color: var(--muted); }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }
.notify-actions { display: grid; gap: 10px; margin-top: 8px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 100;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 10px;
  background: #111827; color: #F9FAFB; font-size: 0.9rem; font-weight: 500; text-align: center;
  box-shadow: var(--shadow-lg); transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #B91C1C; }
@media (prefers-color-scheme: dark) { .toast { background: #F9FAFB; color: #111827; } .toast.error { background: #FCA5A5; color: #450A0A; } }

/* ============ Larger screens ============ */
@media (min-width: 640px) {
  .page { padding-top: calc(env(safe-area-inset-top) + 40px); padding-left: 24px; padding-right: 24px; }
  .verse-text { font-size: 1.5rem; }
  .actions { grid-template-columns: 1fr 1fr; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .result-actions { grid-template-columns: 1fr 1fr; }
  .result-actions .link-btn { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
