/* Search begins with the query. Its height follows its results, including on
   phones with the keyboard open. The full tool directory remains opt-in. */
html body dialog.mushaf-command.finder-compact {
  position:fixed;inset-inline:0;inset-block:8dvh auto;margin:0 auto;
  inline-size:min(36rem,calc(100% - 1rem));block-size:auto;min-block-size:0;
  max-block-size:calc(84dvh - 1rem);padding:.65rem;
  border:1px solid var(--line);border-radius:1rem;box-sizing:border-box;
  background:var(--panel);color:var(--ink);box-shadow:0 1rem 4rem #102b2b33;
  font-family:var(--font-ui,system-ui);overflow:hidden;
}
html body dialog.mushaf-command.finder-compact[open] {display:flex;flex-direction:column;gap:0}
html body .mushaf-command.finder-compact::backdrop {background:#102b2b66;backdrop-filter:blur(3px)}
html body .mushaf-command.finder-compact .finder-accessible-label {
  position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;
}
html body .mushaf-command.finder-compact .finder-header {
  display:flex;flex:none;align-items:center;gap:.45rem;margin:0;padding:0;
  min-block-size:48px;border:0;background:transparent;
}
html body .mushaf-command.finder-compact .mushaf-command-search {
  display:flex;flex:1 1 auto;align-items:center;gap:0;min-inline-size:0;
  min-block-size:48px;padding:0 .2rem;border:1px solid var(--line);
  border-radius:.7rem;background:var(--light,var(--bg));
}
html body .mushaf-command.finder-compact .mushaf-command-search:focus-within {
  outline:2px solid var(--green);outline-offset:1px;
}
html body .mushaf-command.finder-compact .finder-search-symbol {
  display:grid;place-items:center;flex:none;inline-size:2.1rem;color:var(--muted);
}
html body .mushaf-command.finder-compact .finder-search-symbol svg {inline-size:1.2rem;block-size:1.2rem}
html body .mushaf-command.finder-compact .mushaf-command-search input {
  flex:1 1 auto;inline-size:100%;min-inline-size:0;min-block-size:46px;
  padding:.45rem .25rem;border:0;background:transparent;color:var(--ink);
  font:400 1rem/1.5 var(--font-ui,system-ui);box-shadow:none;
}
/* The search field and its icon share the wrapper's visible focus ring. */
html body .mushaf-command.finder-compact .mushaf-command-search input:is(:focus,:focus-visible) {
  outline:none;box-shadow:none;
}
html body .mushaf-command.finder-compact .finder-header button {
  display:grid;place-items:center;flex:0 0 44px;inline-size:44px;block-size:44px;
  min-inline-size:44px;min-block-size:44px;padding:.6rem;
  border:0;border-radius:.6rem;background:transparent;color:var(--muted);
}
html body .mushaf-command.finder-compact .finder-header button[hidden] {display:none}
html body .mushaf-command.finder-compact .finder-header button svg {inline-size:1.2rem;block-size:1.2rem}
html body .mushaf-command.finder-compact .mushaf-command-results {
  display:flex;flex:0 1 auto;flex-direction:column;gap:.65rem;min-block-size:0;
  max-block-size:min(62dvh,35rem);overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;scrollbar-gutter:auto;scroll-padding:.3rem;
  padding:.75rem .15rem .1rem;margin:0;
}
html body .mushaf-command.finder-compact .mushaf-command-group {margin:0;padding:0}
html body .mushaf-command.finder-compact .mushaf-command-group h3 {
  margin:0;padding:0 .45rem .2rem;font:600 .875rem/1.5 var(--font-ui,system-ui);
  color:var(--muted);text-transform:none;letter-spacing:normal;
}
html body .mushaf-command.finder-compact .mushaf-command-group-list {
  display:flex;flex-direction:column;gap:0;
}
html body .mushaf-command.finder-compact .mushaf-command-group-list :is(button,a) {
  display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:.1rem .6rem;
  align-items:center;align-content:center;inline-size:100%;min-inline-size:0;
  min-block-size:48px;padding:.45rem;border:0;border-radius:.5rem;
  background:transparent;color:var(--ink);box-shadow:none;text-align:start;
}
html body .mushaf-command.finder-compact .mushaf-command-group-list :is(button,a)>.mushaf-module-symbol {
  display:grid;place-items:center;grid-column:1;grid-row:1 / span 2;
  inline-size:1.5rem;block-size:1.5rem;min-inline-size:0;margin:0;padding:0;
  color:var(--find-ink,var(--green));background:transparent;border:0;border-radius:0;
}
html body .mushaf-command.finder-compact .mushaf-module-symbol svg {inline-size:1.25rem;block-size:1.25rem}
html body .mushaf-command.finder-compact .mushaf-command-group-list :is(button,a)>strong {
  grid-column:2;grid-row:1;min-inline-size:0;margin:0;
  font:550 .9375rem/1.5 var(--font-ui,system-ui);overflow-wrap:break-word;color:var(--ink);
}
html body .mushaf-command.finder-compact .mushaf-command-group-list :is(button,a)>span:not(.mushaf-module-symbol) {
  grid-column:2;grid-row:2;max-inline-size:none;max-width:none;margin:0;
  font:400 .875rem/1.55 var(--font-ui,system-ui);color:var(--muted);overflow-wrap:break-word;
}
html body .mushaf-command.finder-compact .finder-shortcuts .mushaf-command-group-list {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.1rem .45rem;
}
html body .mushaf-command.finder-compact .finder-shortcuts .mushaf-command-group-list :is(button,a) {
  background:var(--light,var(--bg));min-block-size:48px;
}
html body .mushaf-command.finder-compact .finder-directory-link {
  display:inline-flex;align-items:center;gap:.6rem;align-self:flex-start;
  min-block-size:44px;margin:0;padding:.35rem .45rem;border:0;border-radius:.5rem;
  background:transparent;box-shadow:none;color:var(--green);font:550 .9375rem/1.5 var(--font-ui,system-ui);
}
html body .mushaf-command.finder-compact .finder-directory-link svg {inline-size:1.2rem;block-size:1.2rem}
html body .mushaf-command.finder-compact .command-pager {
  display:flex;align-items:center;justify-content:space-between;gap:.4rem;
  margin:.2rem 0 0;padding:0;border:0;
}
html body .mushaf-command.finder-compact .command-pager button {
  display:grid;place-items:center;inline-size:44px;min-block-size:44px;padding:.5rem;
  border:0;background:transparent;border-radius:.5rem;
}
html body .mushaf-command.finder-compact :is(.mushaf-command-empty,.mushaf-command-count) {
  padding:.4rem;margin:0;font:400 .9375rem/1.6 var(--font-ui,system-ui);
}
html body .mushaf-command.finder-compact :is(a,button,summary):hover {background:var(--pale)}
html body .mushaf-command.finder-compact :is(a,button,summary):focus-visible {
  outline:2px solid var(--green);outline-offset:-2px;
}
@media(max-width:600px) {
  html body dialog.mushaf-command.finder-compact {
    inset-block:max(.5rem,env(safe-area-inset-top)) auto;
    inline-size:calc(100% - 1rem);max-block-size:calc(100dvh - 1rem - env(safe-area-inset-top));
    padding:.6rem;border-radius:.9rem;
  }
  html body .mushaf-command.finder-compact .mushaf-command-results {
    max-block-size:calc(100dvh - 6rem - env(safe-area-inset-top));
  }
}
@media(max-width:350px) {
  html body .mushaf-command.finder-compact .finder-shortcuts .mushaf-command-group-list {grid-template-columns:minmax(0,1fr)}
  html body .mushaf-command.finder-compact .finder-search-symbol {inline-size:1.65rem}
}
@media(forced-colors:active) {
  html body dialog.mushaf-command.finder-compact {border:1px solid CanvasText}
  html body .mushaf-command.finder-compact .mushaf-command-search:focus-within {outline-color:Highlight}
  html body .mushaf-command.finder-compact :is(a,button,summary):focus-visible {outline-color:Highlight}
}

.app-index-page {max-inline-size:42rem;margin-inline:auto;padding-block:clamp(.45rem,2vw,1.4rem) 2rem;color:var(--ink)}
.app-index-page h1 {font-size:clamp(1.4rem,4.5vw,1.95rem);margin:0 0 .85rem;line-height:1.45}
html body .mushaf-command.finder-inline {position:static;inset:auto;display:block;margin:0;padding:0;inline-size:auto;max-inline-size:none;block-size:auto;max-block-size:none;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink)}
html body .mushaf-command.finder-inline .mushaf-command-results {max-block-size:none;overflow:visible}
html body .mushaf-command.finder-inline .finder-area-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}
html body .mushaf-command.finder-inline .finder-area-list button {border:0;border-block-end:1px solid var(--line);border-radius:0;background:transparent;min-block-size:54px}
html body .mushaf-command.finder-compact a {text-decoration:none;color:var(--ink)}
html body .mushaf-command.finder-compact .finder-result-anchor {display:grid;gap:.2rem;padding:.58rem .4rem;min-block-size:44px;align-content:center;font:550 1rem/1.45 var(--font-ui,system-ui)}
html body .mushaf-command.finder-compact .finder-result-anchor span {color:var(--muted);font-size:.88rem;font-weight:400}
html body .mushaf-command.finder-inline .mushaf-command-group {border:0;border-block-end:1px solid var(--line);padding-block:.75rem}
html body .mushaf-command.finder-compact a.finder-directory-link {color:var(--green)}
@media(max-width:320px){html body .mushaf-command.finder-inline .finder-area-list{grid-template-columns:minmax(0,1fr)}}
.finder-more-results>summary {display:flex;align-items:center;cursor:pointer;min-block-size:44px;color:var(--green);font-weight:550}
.finder-more-results>summary::after {content:'⌄';margin-inline-start:.5rem}
.finder-more-results[open]>summary::after {transform:rotate(180deg)}
