:root {
  color-scheme: light;
  --paper: #f7f6fa; --surface: #fff; --ink: #292535; --muted: #6e667b;
  --accent: #675083; --accent-hover: #503968; --on-accent: #fff; --soft: #eee8f5;
  --line: #e4dfea; --control: #9b90a6; --mark: #f5e6b5; --ring: #785995;
  --book-bible: #675083; --book-revival: #436d63; --book-psalm: #a26148;
  --shadow: 0 8px 32px #3a244908; --reader-size: 21px;
  --safe-top: max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1d1b24; --surface: #27232f; --ink: #f2edf6; --muted: #b9afc4;
  --accent: #cfb5eb; --accent-hover: #e0c9f5; --on-accent: #2c203a; --soft: #393043;
  --line: #453b50; --control: #8f819f; --mark: #574826; --ring: #d4b4f2;
  --book-bible: #8261a2; --book-revival: #467669; --book-psalm: #9b5d45;
  --shadow: 0 8px 32px #00000012;
}
* { box-sizing: border-box; }
html { scroll-padding: 90px 0 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button, a, select { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, opacity 140ms ease; }
button:disabled { cursor: wait; opacity: .55; }
button:not(:disabled):active { opacity: .75; }
a { color: var(--accent); text-underline-offset: 4px; }
:where(button, a, input, select, summary):focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0 0 12px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 30px; letter-spacing: -.7px; }
h2 { font-size: 23px; margin-top: 28px; }
p { max-width: 65ch; text-wrap: pretty; }
.muted { color: var(--muted); }.small { font-size: 13px; }
.icon, .selection-check { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 30; transform: translateY(-150%); background: var(--surface); padding: 12px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.shell { max-width: 720px; min-height: 100dvh; margin: auto; }
.masthead { padding: calc(20px + var(--safe-top)) 24px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 42px; height: 46px; border-radius: 10px 15px 15px 10px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); border-left: 3px solid #ffffff55; }
.brand-mark .icon { width: 25px; height: 25px; }
.brand-name { display: block; font: 25px/1.2 Georgia, serif; letter-spacing: -.6px; }
.brand-note { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.icon-button { width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex-shrink: 0; }
.icon-button:hover { background: var(--soft); border-color: var(--control); }
.sun { display: none; }[data-theme="dark"] .sun { display: block; }[data-theme="dark"] .moon { display: none; }
main { padding: 0 24px calc(106px + var(--safe-bottom)); }
main:focus { outline: none; }
.collections { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 0 0 24px; padding: 2px 0 20px; border-bottom: 1px solid var(--line); }
.collections button { position: relative; padding: 12px 5px 10px; border: 1px solid transparent; border-radius: 13px; background: transparent; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.collections button:hover { background: var(--soft); }
.collections button.selected { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.cover { position: relative; display: grid; place-items: center; width: 42px; height: 49px; border-radius: 3px 7px 7px 3px; color: #fff; border-left: 4px solid #ffffff33; box-shadow: 2px 2px 0 #2925350d; margin-bottom: 11px; }
.cover::after { content: ""; position: absolute; right: 3px; left: 3px; bottom: 4px; height: 2px; border-radius: 2px; background: #ffffff50; }
.bible-cover { background: var(--book-bible); }.revival-cover { background: var(--book-revival); }.psalm-cover { background: var(--book-psalm); }
.selection-check { display: none; position: absolute; right: -8px; top: -6px; width: 19px; height: 19px; padding: 3px; background: var(--accent); color: var(--on-accent); border-radius: 50%; box-shadow: 0 0 0 3px var(--surface); }
.selected .selection-check { display: block; }
.collection-name { display: block; flex: 1; align-content: center; font-size: 13px; line-height: 1.3; font-weight: 600; min-height: 34px; overflow-wrap: normal; hyphens: manual; }
.collection-caption { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.section-heading { margin: 0 0 20px; }.section-heading h1 { margin-bottom: 5px; }.section-heading p { margin: 0; font-size: 14px; }
.search-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 16px; box-shadow: var(--shadow); }
.search-modes { display: flex; gap: 4px; padding: 4px; background: var(--paper); border-radius: 10px; margin-bottom: 18px; }
.search-modes button { flex: 1; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 4px; border: 1px solid transparent; background: none; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
.search-modes .icon { width: 17px; height: 17px; }
.search-modes button[aria-pressed="true"] { background: var(--surface); border-color: var(--line); color: var(--accent); box-shadow: 0 2px 5px #29253508; font-weight: 600; }
.search-modes button:hover { color: var(--accent); }
.field-label { display: block; color: var(--ink); font-size: 13px; font-weight: 600; margin: 0 0 9px; }
.search-box { min-height: 54px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--control); border-radius: 10px; padding: 0 12px; background: var(--surface); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); outline: 2px solid var(--accent); outline-offset: 1px; }
.search-box > .icon { color: var(--muted); width: 20px; height: 20px; }
.search-box input { width: 100%; min-width: 0; border: none; background: transparent; color: var(--ink); padding: 15px 0; font-size: 16px; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: var(--muted); font-size: 14px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box .icon-button { margin-right: -8px; border: 0; background: transparent; width: 44px; }
.field-hint { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.search-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; }
.search-options label { color: var(--muted); }
.search-options select { min-height: 44px; padding: 8px 4px; max-width: 72%; border: 0; background: var(--surface); color: var(--ink); font-size: 14px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.primary { background: var(--accent); color: var(--on-accent); }.primary:hover { background: var(--accent-hover); }
.secondary { background: var(--soft); color: var(--accent); border-color: var(--line); }.secondary:hover { border-color: var(--accent); }
.primary .icon, .secondary .icon { width: 18px; height: 18px; }
.full { width: 100%; }#semantic { margin-top: 14px; }#semantic:disabled .icon { animation: loading-turn 1.5s linear infinite; }
.text-button { min-height: 44px; padding: 10px 2px; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--accent); font-size: 15px; }
.text-button:hover { color: var(--accent-hover); }
.browse-trigger { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; text-align: left; margin: 6px 0 0; }
.browse-trigger:hover { color: var(--accent); }
.browse-icon, .example-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--soft); flex-shrink: 0; }
.browse-icon .icon, .example-icon .icon { width: 19px; height: 19px; }
.chevron { width: 16px; height: 16px; color: var(--muted); margin-left: auto; }
.browse-trigger[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.browse-panel { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding: 16px; background: var(--soft); border-radius: 12px; }
.browse-panel label { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 66px; font-size: 13px; }
.browse-panel label:first-child { flex: 3; min-width: 150px; }
.browse-panel select { min-height: 46px; width: 100%; border: 1px solid var(--control); border-radius: 8px; padding: 8px; background: var(--surface); color: var(--ink); font-size: 16px; }
.result-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 24px 0 10px; font-size: 13px; font-weight: 600; }
#result-count { font-weight: 400; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status { font-size: 14px; margin: 0; color: var(--muted); }.status:not(:empty) { padding: 16px 0; }
.status.loading { display: flex; align-items: center; gap: 12px; }
.status.loading::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: loading-turn .8s linear infinite; }
@keyframes loading-turn { to { transform: rotate(360deg); } }
.result { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; display: flex; align-items: flex-start; gap: 13px; padding: 18px 2px; text-align: left; }
.result:hover { background: var(--soft); }.result:focus-visible { border-radius: 5px; }
.result-number { min-width: 46px; padding: 6px 4px; background: var(--soft); border-radius: 8px; color: var(--accent); font: 21px/1.3 Georgia, serif; text-align: center; font-variant-numeric: tabular-nums; }
.result-copy { min-width: 0; flex: 1; }.result-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.result-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.6; }
.result-arrow { color: var(--muted); width: 16px; height: 16px; margin-top: 6px; }
mark { background: var(--mark); color: var(--ink); border-radius: 2px; padding: 0 1px; }
.results { padding-bottom: 10px; }.results[aria-busy="true"] { opacity: .65; }
.results .result:nth-child(n+41) { content-visibility: auto; contain-intrinsic-size: auto 112px; }
.empty { color: var(--muted); }.examples { display: grid; }
.examples button { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 74px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.examples button:hover { background: var(--soft); }.example-icon { background: transparent; border: 1px solid var(--line); }
.examples button > span:nth-child(2) { min-width: 0; flex: 1; }.examples strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }.examples small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.reading-note { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.bottom-nav { position: fixed; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; width: 100%; max-width: 720px; padding: 8px 12px calc(8px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.bottom-nav button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; min-height: 57px; color: var(--muted); font-size: 12px; }
.nav-icon { width: 48px; height: 29px; display: grid; place-items: center; border-radius: 16px; }.nav-icon .icon { width: 21px; height: 21px; }
.bottom-nav button[aria-current] { color: var(--accent); font-weight: 600; }.bottom-nav button[aria-current] .nav-icon { background: var(--soft); }.bottom-nav button:hover .nav-icon { background: var(--soft); }
.reader { position: fixed; inset: 0; margin: 0 auto; width: 100%; max-width: 720px; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; color: var(--ink); background: var(--surface); overscroll-behavior: contain; scroll-padding-top: 90px; }
.reader::backdrop { background: #1e162db3; }.reader-wrap { max-width: 62ch; margin: auto; padding: 0 26px calc(40px + var(--safe-bottom)); }
.reader-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-top)) 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.font-controls { display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.font-controls button { min-width: 44px; min-height: 44px; border: 0; background: none; border-radius: 7px; color: var(--ink); font-family: Georgia, serif; }.font-controls button:hover { background: var(--soft); }
.reader-meta { font-size: 12px; color: var(--muted); margin: 0 0 10px; }.reader h1 { font-size: 33px; line-height: 1.3; margin-bottom: 22px; overflow-wrap: anywhere; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 22px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }.reader-actions:empty { display: none; }
.reader-actions .secondary { font-size: 13px; }.reader-actions button[aria-pressed="true"] { border-color: var(--accent); }
#reader-content { font-family: Georgia, "Times New Roman", serif; font-size: var(--reader-size); line-height: 1.85; overflow-wrap: anywhere; }
#reader-content p { margin: 0 0 22px; scroll-margin-top: 100px; }#reader-content .song-text { white-space: pre-wrap; line-height: 1.8; }
.verse-number { font: 12px/1.5 -apple-system, sans-serif; color: var(--accent); margin-right: 10px; vertical-align: super; font-variant-numeric: tabular-nums; }
.chosen-verse { background: var(--soft); padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.reader-footer { margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }.reader-footer p { white-space: pre-line; }.reader-footer summary { min-height: 48px; padding: 12px 0; cursor: pointer; color: var(--ink); }
.chapter-navigation { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; }
.page-heading { padding: 20px 0 24px; }.page-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--soft); color: var(--accent); border-radius: 14px; margin-bottom: 20px; }.page-heading h1 { font-size: 32px; }.page-heading p { margin: 0; font-size: 14px; }
.about-intro { border: 1px solid var(--line); padding: 20px; border-radius: 16px; background: var(--surface); }.about-intro h2 { font-size: 22px; margin: 0 0 12px; }.about-intro p { margin: 0; font-size: 15px; }
.edition { border-bottom: 1px solid var(--line); padding: 18px 0; }.edition h3 { font: 20px/1.4 Georgia, serif; margin: 0 0 10px; }.edition p { white-space: pre-line; color: var(--muted); font-size: 13px; }.edition a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; }
.external-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; margin: 12px 0; font-size: 14px; }.external-link .icon { width: 16px; height: 16px; }
.privacy-details { border-top: 1px solid var(--line); margin-top: 24px; }.privacy-details summary { cursor: pointer; padding: 18px 0; font-size: 15px; }.privacy-details p { font-size: 14px; color: var(--muted); }
.favorite-empty { padding: 28px 20px; border: 1px dashed var(--control); border-radius: 16px; text-align: center; }.favorite-empty .icon { width: 32px; height: 32px; color: var(--accent); }.favorite-empty h2 { margin-top: 16px; }.favorite-empty p { font-size: 14px; color: var(--muted); }.favorite-empty button { margin-top: 10px; }
.gate { max-width: 530px; margin: auto; padding: 40px 26px; text-align: center; }.gate-art { width: 104px; height: 122px; border-left: 8px solid #ffffff33; border-radius: 5px 18px 18px 5px; display: grid; place-items: center; color: #fff; background: var(--book-bible); margin: 0 auto 32px; }.gate-art .icon { width: 52px; height: 52px; stroke-width: 1.1; }.gate h1 { font-size: 35px; }.gate p { margin: 22px 0; }.gate .primary { min-width: 240px; }
.toast { position: fixed; z-index: 20; bottom: calc(100px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: 90vw; padding: 12px 18px; border-radius: 10px; color: var(--paper); background: var(--ink); font-size: 14px; text-align: center; }
@media (min-width: 650px) {
  .masthead { padding: calc(32px + var(--safe-top)) 48px 24px; }.brand-name { font-size: 29px; }
  main { padding-left: 48px; padding-right: 48px; }.collections { gap: 16px; margin-bottom: 30px; }.collections button { padding: 16px 12px; }.collection-name { font-size: 15px; }.collection-caption { font-size: 12px; }
  .cover { width: 47px; height: 55px; }.section-heading h1 { font-size: 34px; }.search-panel { padding: 22px; }.search-modes { margin-bottom: 20px; }.search-modes button { font-size: 14px; }
  .search-box input::placeholder { font-size: 16px; }.reader-wrap { padding-left: 40px; padding-right: 40px; }.reader h1 { font-size: 38px; }.bottom-nav { padding-left: 48px; padding-right: 48px; }
}
@media (min-width: 1000px) { .shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }.bottom-nav { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
@media (max-width: 359px) { .masthead { padding-left: 16px; padding-right: 16px; }main { padding-left: 16px; padding-right: 16px; }.collections { gap: 4px; }.collection-name { font-size: 12px; }.collection-caption { font-size: 12px; }.search-panel { padding: 12px; }.search-modes button { font-size: 12px; gap: 5px; }.brand-name { font-size: 24px; }.reader-wrap { padding-left: 18px; padding-right: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.resume-button { justify-content: flex-start; text-align: left; margin-bottom: 14px; overflow-wrap: anywhere; }
.history-panel { margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.history-panel summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--accent); font-size: 14px; }
.history-item { width: 100%; display: flex; align-items: start; flex-direction: column; gap: 4px; padding: 12px 8px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.history-item span { overflow-wrap: anywhere; }.history-item small { color: var(--muted); }.history-item:hover { background: var(--soft); }
.folder-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.folder-toolbar select { flex: 1; min-width: 0; }.folder-toolbar > label { font-size: 14px; }
.folder-toolbar .secondary { min-width: 44px; font-size: 22px; }
.folder-toolbar select, .favorite-folder select, .settings-panel select, .folder-dialog input { color: var(--ink); background: var(--surface); border: 1px solid var(--control); border-radius: 8px; min-height: 46px; padding: 10px; font-size: 16px; max-width: 100%; }
.favorite-card { border-bottom: 1px solid var(--line); padding-bottom: 12px; }.favorite-card .result { border: 0; }
.favorite-folder { display: flex; align-items: center; gap: 10px; font: 13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: var(--muted); min-width: 0; }
.favorite-folder select { flex: 1; min-width: 0; width: 160px; font-size: 14px; }
.favorite-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; max-width: 100%; }
.settings-panel { display: grid; gap: 12px; border: 1px solid var(--line); padding: 20px; border-radius: 16px; background: var(--surface); }
.settings-panel > label { font-size: 14px; font-weight: 600; }.settings-panel > select { width: 100%; margin-bottom: 10px; }
.check-label { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; }.check-label input { width: 24px; height: 24px; flex-shrink: 0; accent-color: var(--accent); }
.settings-panel p { margin: 0; }#settings-status:not(:empty) { color: var(--accent); font-size: 14px; }
.folder-dialog { width: min(440px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface); color: var(--ink); }
.folder-dialog::backdrop { background: #1e162db3; }.folder-dialog h2 { margin-top: 0; }.folder-dialog label { display: block; font-size: 14px; margin-bottom: 8px; }.folder-dialog input { width: 100%; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
#folder-error { font-size: 14px; margin-top: 8px; color: var(--accent); }
.parallel-columns { display: grid; gap: 28px; }.parallel-columns > section { min-width: 0; }.parallel-columns h2 { font-size: 23px; margin-top: 0; }.parallel-columns h3 { font: 17px/1.4 Georgia,serif; color: var(--muted); }.parallel-columns > section + section { border-top: 1px solid var(--line); padding-top: 24px; }
#reader-content .parallel-note { font: 13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: var(--muted); margin-bottom: 24px; }
@media(min-width:700px) { .reader.comparing { max-width: 1120px; }.comparing .reader-wrap { max-width: none; }.parallel-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }.parallel-columns > section + section { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 28px; } }
@media(max-width:359px) { .bottom-nav { padding-left: 4px; padding-right: 4px; }.bottom-nav button { font-size: 11px; }.settings-panel { padding: 14px; } }

.folder-actions { width: 100%; display: flex; gap: 20px; flex-wrap: wrap; }.folder-actions:has(button:not([hidden])) { margin-top: 4px; }

/* Voice controls stay in the search panel and retain the existing theme. */
.search-box { gap: 8px; }
.search-box .icon-button { flex: 0 0 44px; margin-right: 0; }
.search-box > .icon { flex-shrink: 0; }
.voice-panel { scroll-margin-bottom: 110px; margin: 12px 0; padding: 12px; border-radius: 10px; background: var(--soft); }
.voice-panel p { margin-bottom: 8px; font-size: 14px; }
.voice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-actions button { min-height: 44px; }
#voice-time { display: block; font-variant-numeric: tabular-nums; }
#voice-start[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
#voice-search { margin-top: 12px; }
@media (max-width: 359px) { .search-box > .icon { display: none; } }

#admin-open { margin-bottom: 20px; }
.admin-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.admin-stat { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-stat strong { display: block; font-size: 26px; font-variant-numeric: tabular-nums; color: var(--accent); }
.admin-stat span { display: block; font-size: 13px; color: var(--muted); }
.admin-filters { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 16px; }
.admin-filters label { font-size: 14px; }.admin-filters input,.admin-filters select { min-width: 0; width: 100%; min-height: 44px; }
.admin-users { display: grid; gap: 14px; }.admin-user { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.admin-user h2 { margin: 0 0 6px; font-size: 23px; }.admin-badge,.admin-active { font-size: 13px; color: var(--accent); }
.admin-dates { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; font-size: 13px; }
.admin-dates dt { color: var(--muted); }.admin-dates dd { margin: 0; text-align: right; }
.admin-actions,.admin-pages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#admin-target { overflow-wrap: anywhere; }#admin-message,#admin-error { font-size: 14px; }
@media(min-width:700px) { .admin-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }.admin-users { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.admin-filters input,.admin-filters select { padding: 10px 12px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--ink); }

.search-feedback { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); scroll-margin-block: 24px 110px; }
.feedback-symbol { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); }
.feedback-symbol .icon { width: 19px; height: 19px; }
.feedback-copy { min-width: 0; flex: 1; }
.search-feedback .status { padding: 3px 0; color: var(--ink); font-size: 15px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.search-feedback[data-phase="loading"] .feedback-symbol { border-color: var(--control); border-top-color: var(--accent); animation: loading-turn .9s linear infinite; }
.search-feedback[data-phase="loading"] .feedback-symbol .icon { visibility: hidden; }
.search-feedback[data-phase="success"] { border-color: var(--accent); }
.search-feedback[data-phase="success"] .feedback-symbol { background: var(--accent); color: var(--on-accent); }
#show-results { font-size: 14px; padding-bottom: 0; text-align: left; }
#result-heading { scroll-margin-top: 24px; }
#result-heading.search-complete { font-size: 18px; color: var(--accent); }
.search-complete #result-count { background: var(--soft); color: var(--accent); border-radius: 20px; padding: 4px 10px; font-size: 15px; font-weight: 600; }
.results-arrived .result { animation: results-arrive .25s ease-out; }
@keyframes results-arrive { from { opacity: .25; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media(prefers-reduced-motion: reduce) { .search-feedback[data-phase="loading"] .feedback-symbol,.results-arrived .result { animation: none; } }
