/*
 * Salaty web demo – phone frame, landing demo section, /demo page and the app screens.
 * Loaded on the landing and demo pages only. build.py replaces data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M19.80 0.00L14.00 5.80L14.00 14.00L5.80 14.00L0.00 19.80L-5.80 14.00L-14.00 14.00L-14.00 5.80L-19.80 0.00L-14.00 -5.80L-14.00 -14.00L-5.80 -14.00L-0.00 -19.80L5.80 -14.00L14.00 -14.00L14.00 -5.80ZM75.80 0.00L70.00 5.80L70.00 14.00L61.80 14.00L56.00 19.80L50.20 14.00L42.00 14.00L42.00 5.80L36.20 0.00L42.00 -5.80L42.00 -14.00L50.20 -14.00L56.00 -19.80L61.80 -14.00L70.00 -14.00L70.00 -5.80ZM19.80 56.00L14.00 61.80L14.00 70.00L5.80 70.00L0.00 75.80L-5.80 70.00L-14.00 70.00L-14.00 61.80L-19.80 56.00L-14.00 50.20L-14.00 42.00L-5.80 42.00L-0.00 36.20L5.80 42.00L14.00 42.00L14.00 50.20ZM75.80 56.00L70.00 61.80L70.00 70.00L61.80 70.00L56.00 75.80L50.20 70.00L42.00 70.00L42.00 61.80L36.20 56.00L42.00 50.20L42.00 42.00L50.20 42.00L56.00 36.20L61.80 42.00L70.00 42.00L70.00 50.20ZM47.80 28.00L42.00 33.80L42.00 42.00L33.80 42.00L28.00 47.80L22.20 42.00L14.00 42.00L14.00 33.80L8.20 28.00L14.00 22.20L14.00 14.00L22.20 14.00L28.00 8.20L33.80 14.00L42.00 14.00L42.00 22.20Z' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='0.7'/%3E%3Cpath d='M7.68 3.18L3.18 7.68L-3.18 7.68L-7.68 3.18L-7.68 -3.18L-3.18 -7.68L3.18 -7.68L7.68 -3.18ZM63.68 3.18L59.18 7.68L52.82 7.68L48.32 3.18L48.32 -3.18L52.82 -7.68L59.18 -7.68L63.68 -3.18ZM7.68 59.18L3.18 63.68L-3.18 63.68L-7.68 59.18L-7.68 52.82L-3.18 48.32L3.18 48.32L7.68 52.82ZM63.68 59.18L59.18 63.68L52.82 63.68L48.32 59.18L48.32 52.82L52.82 48.32L59.18 48.32L63.68 52.82ZM35.68 31.18L31.18 35.68L24.82 35.68L20.32 31.18L20.32 24.82L24.82 20.32L31.18 20.32L35.68 24.82ZM33.94 0.00L28.00 5.94L22.06 0.00L28.00 -5.94ZM5.94 28.00L0.00 33.94L-5.94 28.00L-0.00 22.06ZM61.94 28.00L56.00 33.94L50.06 28.00L56.00 22.06ZM33.94 56.00L28.00 61.94L22.06 56.00L28.00 50.06Z' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='0.6'/%3E%3C/svg%3E (star lattice) and
 * /* Quran preview disabled (DEMO_QURAN_PREVIEW=0): no mushaf font. */ (the DigitalKhatt @font-face) and writes public/assets/demo.<hash>.css.
 * Logical properties throughout; the Qibla dial and the countdown ring are never mirrored.
 */

/* Quran preview disabled (DEMO_QURAN_PREVIEW=0): no mushaf font. */

/* ---------- Landing: demo section ---------- */

.demo-section {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  scroll-margin-block-start: 1rem;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "stage" "more";
  gap: 1.5rem;
}

.demo-intro {
  grid-area: intro;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.demo-stage {
  grid-area: stage;
  min-width: 0;
}

.demo-more {
  grid-area: more;
  max-width: 40rem;
  margin-inline: auto;
}

.demo-intro h2 {
  margin-block-end: 0.4em;
}

.demo-intro .section-lead {
  margin: 0;
}

@media (min-width: 60rem) {
  .demo-layout {
    grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "stage ." "stage intro" "stage more" "stage .";
    column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
    row-gap: 1.5rem;
    align-items: start;
  }

  .demo-intro {
    margin: 0;
    text-align: start;
  }

  .demo-more {
    margin: 0;
  }
}

.demo-points {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  text-align: start;
}

.demo-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm, 14px);
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.45;
}

.demo-points .icon {
  flex: none;
  margin-block-start: 0.1em;
  color: var(--emerald);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-end: 1.25rem;
}

.demo-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 24rem;
  margin: 0 auto 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--glass-bg-strong);
  color: var(--heading);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.demo-label .icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--emerald);
}

.demo-note {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- Device ---------- */

.demo-device {
  --sd-bezel: 12px;
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
}

.demo-frame {
  position: relative;
  width: min(100%, 414px, calc(88svh * 414 / 868));
  aspect-ratio: 414 / 868;
  max-width: 100%;
  padding: var(--sd-bezel);
  border-radius: 68px;
  background:
    linear-gradient(145deg, #3a3f4b 0%, #14161c 40%, #0b0c10 60%, #2c313b 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 4px #07080b,
    0 40px 80px -30px rgba(3, 8, 19, 0.65),
    0 18px 36px -18px rgba(3, 8, 19, 0.45);
}

.demo-screen {
  --sd-framed: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 56px;
  background: #0a1733;
  isolation: isolate;
  transform: translateZ(0);
}

.demo-island {
  position: absolute;
  inset-block-start: calc(var(--sd-bezel) + 11px);
  left: 50%;
  width: 30%;
  height: 30px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

/* Fills the screen; once the demo runs in the frame (data-scaled) it is laid out at 390 × 844 and scaled to fit. */
.demo-root {
  position: absolute;
  inset: 0;
}

.demo-device[data-scaled] .demo-root {
  inset: 0 auto auto 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--sd-scale, 1));
  transform-origin: 0 0;
}

/* Phones: no frame, the app fills a box of the page */
@media (max-width: 39.99rem) {
  .demo-frame {
    width: 100%;
    height: min(80svh, 46rem);
    aspect-ratio: auto;
    padding: 0;
    border-radius: 32px;
    background: none;
    box-shadow: 0 24px 48px -24px rgba(3, 8, 19, 0.55), 0 0 0 1px var(--glass-border);
  }

  .demo-screen {
    --sd-framed: 0;
    border-radius: 32px;
  }

  .demo-island {
    display: none;
  }

  .demo-device[data-scaled] .demo-root {
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
  }
}

.demo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  background:
    radial-gradient(120% 60% at 50% 105%, rgba(255, 148, 88, 0.55), transparent 60%),
    linear-gradient(180deg, #241e5b 0%, #6f3584 55%, #f26a4e 100%);
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 600;
  text-align: center;
}

.demo-placeholder img {
  width: 88px;
  height: 88px;
  border-radius: 22.37%;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
}

.demo-root[data-ready] .demo-placeholder,
[data-ready] .demo-placeholder {
  display: none;
}

.demo-noscript {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #0a1733;
  color: #fff;
}

.demo-noscript p {
  margin: 0;
  padding: 3.4rem 1.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.demo-noscript img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 39.99rem) {
  .demo-noscript p {
    padding-block-start: 1rem;
  }
}

.demo-fullscreen-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-block-start: 1rem;
  font-weight: 650;
}

/* ---------- /demo page ---------- */

.app-page {
  min-height: 100vh;
  min-height: 100dvh;
}

.app-bar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.6rem;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.app-bar .brand {
  font-size: 1rem;
}

.app-bar .brand img {
  width: 2rem;
  height: 2rem;
}

.app-bar-back .icon {
  width: 1.1em;
  height: 1.1em;
}

.app-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  margin: 0;
  margin-inline-start: auto;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.app-bar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.app-bar-links a:hover {
  background: var(--chip-bg);
}

.app-main {
  display: grid;
  justify-items: center;
  padding-block: 0.25rem 1.5rem;
  padding-inline: var(--gutter);
}

.app-main .demo-frame {
  width: min(100%, 414px, calc((100svh - 10.5rem) * 414 / 868));
}

.app-main .demo-note {
  max-width: 30rem;
  margin: 1rem auto 0;
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 39.99rem) {
  .app-page .app-bar {
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding-block: 0.3rem;
  }

  .app-page .app-bar .brand > span:not(.visually-hidden) {
    display: none;
  }

  .app-page .app-bar .lang-button {
    gap: 0.15rem;
    min-height: 2.5rem;
    padding-inline: 0.55rem;
    font-size: 0;
  }

  .app-page .app-bar .lang-button .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .app-page .app-bar .lang-button .chevron {
    width: 0.8rem;
    height: 0.8rem;
  }

  .app-page .app-bar-links {
    flex-wrap: nowrap;
    gap: 0;
    font-size: 0.8125rem;
  }

  .app-page .app-bar-links a {
    padding-inline: 0.45rem;
  }

  .app-main .demo-label {
    max-width: none;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }

  .app-main {
    padding: 0;
  }

  .app-main .demo-label {
    margin: 0 var(--gutter) 0.5rem;
  }

  .app-main .demo-device,
  .app-main .demo-frame {
    width: 100%;
  }

  .app-main .demo-frame {
    height: calc(100dvh - 5.75rem);
    min-height: 32rem;
    border-radius: 0;
    box-shadow: none;
  }

  .app-main .demo-screen {
    border-radius: 0;
  }

  .app-main .demo-note {
    padding-inline: var(--gutter);
  }
}

/* ======================================================================================================== */
/* ---------- The app ---------- */

.sd-app {
  --sd-rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sd-arabic: system-ui, -apple-system, "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.5);
  --sd-gold: #f3c468;
  --sd-gold-light: #ffe096;
  --sd-gold-deep: #eca43a;
  --sd-emerald: #4fd8ad;
  --sd-accent-text: #ffd678;
  --sd-highlight: #ffd678;
  --sd-glass-bg: rgba(255, 255, 255, 0.11);
  --sd-glass-strong: rgba(255, 255, 255, 0.18);
  --sd-glass-border: rgba(255, 255, 255, 0.16);
  --sd-glass-rim: rgba(255, 255, 255, 0.24);
  --sd-surface: #1c1c20;
  --sd-surface-ink: #f5f5f5;
  --sd-surface-ink-2: #b3b3b3;
  --sd-surface-accent: #5cdbb0;
  --sd-badge: #057059;
  --sd-danger: #ff6961;
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  color: var(--ink);
  font-family: var(--sd-rounded);
  font-size: 15px;
  line-height: 1.35;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background: var(--sky-bg, #0a1733);
}

.sd-app[data-ink="dark"] {
  --sd-gold: #d49a32;
  --sd-emerald: #129e7e;
  --sd-accent-text: #724a00;
  --sd-highlight: #cc8c1a;
  --sd-glass-bg: rgba(255, 255, 255, 0.36);
  --sd-glass-strong: rgba(255, 255, 255, 0.5);
  --sd-glass-border: rgba(255, 255, 255, 0.5);
  --sd-glass-rim: rgba(255, 255, 255, 0.75);
}

@media (prefers-color-scheme: light) {
  .sd-app {
    --sd-surface: #fff;
    --sd-surface-ink: #121212;
    --sd-surface-ink-2: #5c5c5c;
    --sd-surface-accent: #057059;
  }
}

@media (prefers-contrast: more) {
  .sd-app {
    --ink-2: var(--ink);
    --ink-3: var(--ink);
    --sd-glass-bg: var(--sd-glass-strong);
  }
}

.sd-app :lang(ar),
.sd-app[lang="ar"] {
  font-family: var(--sd-arabic);
}

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

.sd-app h2,
.sd-app h3,
.sd-app h4,
.sd-app h5,
.sd-app p {
  margin: 0;
  color: inherit;
  font-family: inherit;
  letter-spacing: normal;
  hyphens: manual;
}

.sd-app button,
.sd-app input {
  font: inherit;
  color: inherit;
}

.sd-app a {
  color: inherit;
}

.sd-app :focus-visible {
  outline: 3px solid var(--sd-highlight);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(3, 8, 19, 0.55);
}

.sd-app[data-ink="dark"] :focus-visible {
  outline-color: #0a2342;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.75);
}

.sd-app [hidden],
.demo-device [hidden] {
  display: none !important;
}

.sd-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sd-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}

[dir="rtl"] .sd-flip {
  transform: scaleX(-1);
}

.sd-ink-2 {
  color: var(--ink-2);
}

.sd-ink-3 {
  color: var(--ink-3);
}

.sd-accent {
  color: var(--sd-accent-text);
  display: inline-flex;
}

/* ---------- Sky ---------- */

.sd-sky,
.sd-sky > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sd-sky {
  z-index: 0;
  pointer-events: none;
}

.sd-sky-mesh {
  image-rendering: auto;
}

.sd-sky-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 30%);
}

.sd-sky-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M19.80 0.00L14.00 5.80L14.00 14.00L5.80 14.00L0.00 19.80L-5.80 14.00L-14.00 14.00L-14.00 5.80L-19.80 0.00L-14.00 -5.80L-14.00 -14.00L-5.80 -14.00L-0.00 -19.80L5.80 -14.00L14.00 -14.00L14.00 -5.80ZM75.80 0.00L70.00 5.80L70.00 14.00L61.80 14.00L56.00 19.80L50.20 14.00L42.00 14.00L42.00 5.80L36.20 0.00L42.00 -5.80L42.00 -14.00L50.20 -14.00L56.00 -19.80L61.80 -14.00L70.00 -14.00L70.00 -5.80ZM19.80 56.00L14.00 61.80L14.00 70.00L5.80 70.00L0.00 75.80L-5.80 70.00L-14.00 70.00L-14.00 61.80L-19.80 56.00L-14.00 50.20L-14.00 42.00L-5.80 42.00L-0.00 36.20L5.80 42.00L14.00 42.00L14.00 50.20ZM75.80 56.00L70.00 61.80L70.00 70.00L61.80 70.00L56.00 75.80L50.20 70.00L42.00 70.00L42.00 61.80L36.20 56.00L42.00 50.20L42.00 42.00L50.20 42.00L56.00 36.20L61.80 42.00L70.00 42.00L70.00 50.20ZM47.80 28.00L42.00 33.80L42.00 42.00L33.80 42.00L28.00 47.80L22.20 42.00L14.00 42.00L14.00 33.80L8.20 28.00L14.00 22.20L14.00 14.00L22.20 14.00L28.00 8.20L33.80 14.00L42.00 14.00L42.00 22.20Z' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='0.7'/%3E%3Cpath d='M7.68 3.18L3.18 7.68L-3.18 7.68L-7.68 3.18L-7.68 -3.18L-3.18 -7.68L3.18 -7.68L7.68 -3.18ZM63.68 3.18L59.18 7.68L52.82 7.68L48.32 3.18L48.32 -3.18L52.82 -7.68L59.18 -7.68L63.68 -3.18ZM7.68 59.18L3.18 63.68L-3.18 63.68L-7.68 59.18L-7.68 52.82L-3.18 48.32L3.18 48.32L7.68 52.82ZM63.68 59.18L59.18 63.68L52.82 63.68L48.32 59.18L48.32 52.82L52.82 48.32L59.18 48.32L63.68 52.82ZM35.68 31.18L31.18 35.68L24.82 35.68L20.32 31.18L20.32 24.82L24.82 20.32L31.18 20.32L35.68 24.82ZM33.94 0.00L28.00 5.94L22.06 0.00L28.00 -5.94ZM5.94 28.00L0.00 33.94L-5.94 28.00L-0.00 22.06ZM61.94 28.00L56.00 33.94L50.06 28.00L56.00 22.06ZM33.94 56.00L28.00 61.94L22.06 56.00L28.00 50.06Z' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='0.6'/%3E%3C/svg%3E");
  background-size: 96px 96px;
  background-position: center top;
  opacity: var(--pattern-opacity, 0.05);
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
}

.sd-sky-pattern[data-blend="light"] {
  mix-blend-mode: plus-lighter;
}

.sd-app[data-tab="calendar"] .sd-sky-pattern {
  display: none;
}

/* ---------- Layout ---------- */

.sd-content,
.sd-panels,
.sd-panel {
  position: absolute;
  inset: 0;
}

.sd-content {
  z-index: 1;
}

.sd-panel {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  outline: none;
}

.sd-panel::-webkit-scrollbar {
  display: none;
}

.sd-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 58px 20px 112px;
}

@media (max-width: 39.99rem) {
  .sd-screen {
    padding-block-start: 22px;
  }
}

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

/* ---------- Glass ---------- */

.sd-glass {
  position: relative;
  background: linear-gradient(var(--sky-tint, transparent), var(--sky-tint, transparent)), var(--sd-glass-bg);
  border: 1px solid var(--sd-glass-border);
  box-shadow: inset 0 1px 0 var(--sd-glass-rim), 0 10px 30px -18px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

@media (prefers-reduced-transparency: reduce) {
  .sd-glass {
    background: rgba(20, 28, 48, 0.92);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .sd-app[data-ink="dark"] .sd-glass {
    background: rgba(255, 255, 255, 0.92);
  }
}

.sd-card {
  border-radius: 24px;
  padding: 16px;
}

.sd-capsule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 17px;
  font-weight: 600;
}

.sd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sd-pill .sd-icon {
  width: 17px;
  height: 17px;
}

.sd-tint-gold {
  background: linear-gradient(rgba(243, 196, 104, 0.4), rgba(243, 196, 104, 0.4)), var(--sd-glass-bg);
}

.sd-app[data-ink="dark"] .sd-tint-gold {
  background: linear-gradient(rgba(255, 212, 118, 0.5), rgba(255, 212, 118, 0.5)), rgba(255, 255, 255, 0.3);
  border-color: rgba(214, 160, 60, 0.45);
}

.sd-tint-emerald {
  background: linear-gradient(rgba(79, 216, 173, 0.35), rgba(79, 216, 173, 0.35)), var(--sd-glass-bg);
}

.sd-caption {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sd-app[lang="ar"] .sd-caption {
  font-size: 13px;
  letter-spacing: normal;
}

.sd-footnote {
  font-size: 13px;
  line-height: 1.4;
}

.sd-note {
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  text-wrap: pretty;
}

.sd-title {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
}

.sd-nav-title {
  font-size: 17px;
  font-weight: 650;
  text-align: center;
}

.sd-nav {
  display: grid;
  justify-items: center;
  gap: 1px;
}

.sd-nav-subtitle {
  font-size: 12px;
}

.sd-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.sd-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.sd-message .sd-icon {
  margin-block-start: 1px;
}

.sd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

.sd-button-primary {
  color: #fff;
  background: linear-gradient(180deg, #19b08c, #057059);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -12px rgba(5, 112, 89, 0.8);
}

.sd-button-glass {
  background: var(--sd-glass-strong);
  border-color: var(--sd-glass-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.sd-button-danger {
  color: #fff;
  background: #c9302c;
}

.sd-button-danger-text {
  color: var(--sd-danger);
}

.sd-app[data-ink="dark"] .sd-button-danger-text {
  color: #b3261e;
}

.sd-icon-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.sd-icon-button:hover {
  background: var(--sd-glass-bg);
}

.sd-icon-button .sd-icon {
  width: 18px;
  height: 18px;
}

/* ---------- Tab bar ---------- */

.sd-tabbar {
  position: absolute;
  inset-inline: 8px;
  inset-block-end: 20px;
  z-index: 4;
}

@media (max-width: 39.99rem) {
  .sd-tabbar {
    inset-block-end: max(12px, env(safe-area-inset-bottom));
  }
}

.sd-tabbar-glass {
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(var(--sky-tint, transparent), var(--sky-tint, transparent)), rgba(22, 26, 40, 0.42);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 36px -14px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

.sd-app[data-ink="dark"] .sd-tabbar-glass {
  background: linear-gradient(var(--sky-tint, transparent), var(--sky-tint, transparent)), rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.6);
}

.sd-tablist {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}

.sd-tab {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 54px;
  padding: 6px 0 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.sd-tab .sd-icon {
  width: 24px;
  height: 24px;
}

.sd-tab-label {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  font-size: clamp(9px, 2.65cqi, 10.5px);
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sd-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.16);
  color: var(--sd-highlight);
}

.sd-app[data-ink="dark"] .sd-tab[aria-selected="true"] {
  background: rgba(10, 35, 66, 0.1);
  color: #0b6b55;
}

/* ---------- Today ---------- */

.sd-today-header {
  display: grid;
  gap: 10px;
}

.sd-location {
  max-width: 100%;
  min-height: 44px;
  border-width: 1px;
  cursor: pointer;
}

.sd-location .sd-icon {
  width: 15px;
  height: 15px;
}

.sd-location .sd-chevron {
  width: 12px;
  height: 12px;
}

.sd-location-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sd-display {
  font-size: 32px;
  font-weight: 750;
  line-height: 1.12;
  text-wrap: balance;
}

.sd-hijri {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block-start: -6px;
  font-size: 17px;
  font-weight: 500;
}

.sd-hijri .sd-icon {
  width: 13px;
  height: 13px;
}

.sd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sd-hint {
  display: flex;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
}

.sd-hint .sd-icon {
  width: 16px;
  height: 16px;
  margin-block-start: 1px;
}

.sd-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-block: 4px;
}

.sd-hero-title {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.sd-hero-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 12px;
  font-size: 42px;
  font-weight: 750;
  line-height: 1.15;
}

.sd-hero-ar {
  font-family: "Diwan Mishafi", "Geeza Pro", var(--sd-arabic);
  font-size: 30px;
  font-weight: 400;
}

/* Countdown ring: conic arc masked to a band (the arc runs clockwise from the top, also in RTL) */
.sd-ring {
  --p: 0;
  --ring-w: 11px;
  position: relative;
  width: 244px;
  height: 244px;
  margin: 10px;
  direction: ltr;
}

.sd-ring > span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.sd-ring-glass {
  inset: -12px !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sd-app[data-ink="dark"] .sd-ring-glass {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.sd-ring-track {
  border: var(--ring-w) solid var(--ink-hair, rgba(255, 255, 255, 0.12));
}

.sd-ring-arc {
  background: conic-gradient(from 0deg, #129e7e 0deg, #7ef0c8 calc(var(--p) * 180deg), #ffe096 calc(var(--p) * 360deg), transparent 0deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-w) - 0.5px), #000 calc(100% - var(--ring-w)), #000 calc(100% - 0.5px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-w) - 0.5px), #000 calc(100% - var(--ring-w)), #000 calc(100% - 0.5px), transparent 100%);
}

.sd-ring-glow {
  filter: blur(9px);
  opacity: 0.75;
}

.sd-ring-cap {
  inset: 0 auto auto calc(50% - var(--ring-w) / 2) !important;
  width: var(--ring-w);
  height: var(--ring-w);
  background: #129e7e;
}

.sd-ring-head {
  border-radius: 0 !important;
  transform: rotate(calc(var(--p) * 1turn));
}

.sd-ring-head > span {
  position: absolute;
  inset-block-start: 0;
  left: calc(50% - var(--ring-w) / 2);
  width: var(--ring-w);
  height: var(--ring-w);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 27%, #ffe096 29% 100%);
  box-shadow: 0 0 7px rgba(255, 224, 150, 0.9);
}

.sd-ring[data-empty] .sd-ring-cap,
.sd-ring[data-empty] .sd-ring-head {
  display: none;
}

.sd-ring-label {
  display: grid !important;
  place-content: center;
  justify-items: center;
  gap: 2px;
  padding: 18px;
  border-radius: 50%;
}

.sd-ring-icon {
  width: 30px;
  height: 30px;
}

.sd-countdown {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.sd-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sd-schedule {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-prayer-row {
  border-radius: 20px;
  padding: 12px 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.sd-prayer-row.is-sunrise {
  min-height: 44px;
  padding-block: 8px;
}

.sd-prayer-content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.sd-prayer-row.is-passed .sd-prayer-content {
  opacity: 0.55;
}

.sd-prayer-row.is-current {
  background: linear-gradient(rgba(243, 196, 104, 0.42), rgba(243, 196, 104, 0.42)), var(--sd-glass-bg);
  border-color: rgba(255, 224, 150, 0.75);
}

.sd-app[data-ink="dark"] .sd-prayer-row.is-current {
  background: linear-gradient(rgba(255, 212, 118, 0.52), rgba(255, 212, 118, 0.52)), rgba(255, 255, 255, 0.3);
  border-color: rgba(200, 140, 40, 0.55);
}

.sd-prayer-row.is-next {
  background: linear-gradient(rgba(79, 216, 173, 0.14), rgba(79, 216, 173, 0.14)), var(--sd-glass-bg);
}

.sd-prayer-icon {
  width: 28px;
  height: 28px;
}

.is-sunrise .sd-prayer-icon {
  width: 23px;
  height: 23px;
}

.sd-prayer-icon.is-active {
  filter: drop-shadow(0 0 8px rgba(255, 224, 150, 0.7));
}

.sd-prayer-text {
  display: grid;
  min-width: 0;
}

.sd-prayer-name {
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
}

.is-sunrise .sd-prayer-name {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}

.sd-prayer-status {
  color: var(--sd-accent-text);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sd-prayer-ar {
  margin-inline-start: auto;
  font-family: "Geeza Pro", var(--sd-arabic);
  font-size: 17px;
}

.sd-prayer-time {
  margin-inline-start: auto;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sd-prayer-ar + .sd-prayer-time {
  margin-inline-start: 12px;
}

.is-sunrise .sd-prayer-time {
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 500;
}

.sd-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sd-mini-card {
  display: grid;
  align-content: start;
  gap: 6px;
  border-radius: 28px;
  text-align: start;
}

button.sd-mini-card {
  cursor: pointer;
}

.sd-mini-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-block-end: 2px;
}

.sd-mini-top .sd-chevron {
  width: 12px;
  height: 12px;
}

.sd-badge-circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.sd-badge-circle .sd-icon {
  width: 17px;
  height: 17px;
}

.sd-gold {
  background: linear-gradient(135deg, #ffe096, #eca43a);
  color: #0e1b33;
}

.sd-night {
  background: linear-gradient(135deg, #0e1b33, #7687ff);
  color: #ffe096;
}

.sd-mini-value {
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.sd-app[dir="rtl"] .sd-mini-value[dir="ltr"],
.sd-app[dir="rtl"] .sd-info-value[dir="ltr"] {
  text-align: end;
}

.sd-today-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.sd-today-footer .sd-method {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: center;
}

/* ---------- Qibla ---------- */

.sd-qibla {
  align-items: stretch;
}

.sd-qibla-status {
  justify-self: center;
  align-self: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 20px;
  text-align: center;
}

.sd-qibla-status[data-aligned] {
  background: rgba(255, 224, 150, 0.9);
  color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 22px rgba(236, 164, 58, 0.5);
}

.sd-status-icon .sd-icon {
  width: 16px;
  height: 16px;
}

.sd-dial-wrap {
  display: grid;
  place-items: center;
  padding-inline: 4px;
}

.sd-dial {
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
  color: var(--ink);
  direction: ltr;
}

.sd-dial-disc {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.2);
}

.sd-app[data-ink="dark"] .sd-dial-disc {
  fill: rgba(255, 255, 255, 0.38);
  stroke: rgba(255, 255, 255, 0.6);
}

.sd-dial-glow {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sd-dial[data-aligned] .sd-dial-glow {
  opacity: 1;
}

.sd-dial[data-aligned] .sd-dial-indicator {
  fill: #ffe096;
}

.sd-dial-hub {
  fill: rgba(3, 8, 19, 0.35);
  stroke: rgba(255, 255, 255, 0.3);
}

.sd-app[data-ink="dark"] .sd-dial-hub {
  fill: rgba(255, 255, 255, 0.6);
}

.sd-dial[data-aligned] .sd-dial-hub {
  fill: rgba(243, 196, 104, 0.7);
}

.sd-dial text {
  fill: currentColor;
  font-family: var(--sd-rounded);
}

.sd-dial-degree {
  fill-opacity: 0.74;
  font-weight: 500;
}

.sd-dial-cardinal {
  font-weight: 700;
}

.sd-dial-north {
  fill: #ff5c54 !important;
  font-weight: 800;
}

.sd-dial-hub-text {
  font-weight: 600;
}

.sd-dial-needle {
  filter: drop-shadow(0 0 3px rgba(236, 164, 58, 0.5));
}

.sd-qibla-actions {
  display: grid;
  justify-items: center;
}

.sd-qibla-actions:empty,
.sd-qibla-messages:empty {
  display: none;
}

.sd-info-card {
  display: grid;
  gap: 4px;
}

.sd-info-card .sd-caption {
  letter-spacing: 0.04em;
}

.sd-info-card .sd-caption .sd-icon {
  width: 13px;
  height: 13px;
}

.sd-info-value {
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* ---------- Calendar ---------- */

.sd-cal-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 24px;
}

.sd-cal-title {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.sd-cal-title .sd-title {
  font-size: 19px;
}

.sd-segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
}

.sd-segment {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.sd-segment input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.sd-segment span {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.sd-segment input:checked + span {
  background: rgba(255, 255, 255, 0.92);
  color: #0e1b33;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.sd-segment input:focus-visible + span {
  outline: 3px solid var(--sd-highlight);
  outline-offset: 1px;
}

.sd-surface {
  background: var(--sd-surface);
  color: var(--sd-surface-ink);
  border: 0.5px solid rgba(127, 127, 127, 0.2);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
  --ink-2: var(--sd-surface-ink-2);
  --ink-3: var(--sd-surface-ink-2);
  --sd-accent-text: var(--sd-surface-accent);
}

.sd-cal-month {
  padding: 4px 4px 8px;
  border-radius: 20px;
}

.sd-cal-weekdays,
.sd-cal-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.sd-cal-weekdays {
  padding-block: 8px 4px;
  color: var(--sd-surface-ink-2);
  font-size: 12px;
  text-align: center;
}

.sd-cal-weekdays .is-friday {
  color: var(--sd-surface-ink);
  font-weight: 800;
}

.sd-cal-grid {
  touch-action: pan-y;
}

.sd-cal-cell {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  height: 56px;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.sd-cal-cell.is-blank {
  cursor: default;
}

.sd-cal-cell.is-ramadan::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  z-index: 0;
  background: rgba(212, 154, 50, 0.14);
}

.sd-cal-cell.band-start::before {
  border-start-start-radius: 14px;
  border-end-start-radius: 14px;
  inset-inline-start: 3px;
}

.sd-cal-cell.band-end::before {
  border-start-end-radius: 14px;
  border-end-end-radius: 14px;
  inset-inline-end: 3px;
}

.sd-cal-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.sd-cal-cell.is-past .sd-cal-number {
  color: var(--sd-surface-ink-2);
}

.sd-cal-cell.is-today .sd-cal-number {
  background: var(--sd-badge);
  color: #fff;
  font-weight: 700;
}

.sd-cal-cell.is-selected .sd-cal-number {
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--sd-surface-accent);
}

.sd-cal-cell.is-today.is-selected .sd-cal-number {
  box-shadow: 0 0 0 2px var(--sd-surface), 0 0 0 4px var(--sd-surface-accent);
}

.sd-app .sd-cal-cell:focus-visible {
  outline: none;
  box-shadow: none;
}

.sd-cal-cell:focus-visible .sd-cal-number {
  outline: 3px solid var(--sd-surface-accent);
  outline-offset: 3px;
}

.sd-cal-hijri {
  position: relative;
  color: var(--sd-surface-ink-2);
  font-size: 10.5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sd-cal-hijri.is-first {
  color: var(--sd-surface-ink);
  font-weight: 650;
}

.sd-cal-diamond {
  position: relative;
  display: flex;
  height: 8px;
  color: #b07a1c;
}

.sd-cal-diamond .sd-icon {
  width: 8px;
  height: 8px;
}

.sd-cal-diamond.is-empty {
  visibility: hidden;
}

.sd-day-panel {
  display: grid;
  gap: 10px;
  border-radius: 20px;
}

.sd-day-panel .sd-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.sd-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sd-badge);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.sd-day-hijri {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block-start: -6px;
}

.sd-events {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-event {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(212, 154, 50, 0.14);
  font-size: 14px;
}

.sd-event > span {
  display: grid;
}

.sd-event strong {
  color: inherit;
  font-weight: 650;
}

.sd-event .sd-icon {
  width: 9px;
  height: 9px;
  color: #b07a1c;
}

.sd-day-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-day-time {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-size: 16px;
}

.sd-day-time + .sd-day-time {
  border-block-start: 0.5px solid rgba(127, 127, 127, 0.22);
}

.sd-day-time.is-next .sd-day-time-value {
  color: var(--sd-surface-accent);
}

.sd-day-time .sd-prayer-icon {
  width: 20px;
  height: 20px;
}

.sd-day-time-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sd-day-time-value {
  margin-inline-start: auto;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sd-day-time.is-sunrise {
  color: var(--sd-surface-ink-2);
}

.sd-cal-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
}

/* ---------- Settings ---------- */

.sd-group {
  display: grid;
  gap: 7px;
}

.sd-group-title {
  padding-inline: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sd-app[lang="ar"] .sd-group-title {
  letter-spacing: normal;
}

.sd-group-body {
  display: grid;
  border-radius: 24px;
  overflow: visible;
}

.sd-group-body > * + * {
  border-block-start: 0.5px solid var(--sd-glass-border);
}

.sd-setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 16px;
}

.sd-setting-stack {
  display: grid;
  gap: 8px;
}

.sd-setting-text {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 1px;
}

.sd-setting-label {
  font-size: 16px;
  font-weight: 500;
}

.sd-row-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
}

.sd-row-button .sd-setting-label {
  color: var(--sd-accent-text);
  font-weight: 600;
}

.sd-row-button[aria-busy="true"] {
  opacity: 0.6;
}

.sd-place-row .sd-check {
  color: var(--sd-accent-text);
}

.sd-check .sd-icon {
  width: 18px;
  height: 18px;
}

.sd-geo-status {
  padding: 8px 16px 12px;
}

.sd-geo-status[hidden] {
  display: none;
}

.sd-search {
  position: relative;
  padding: 10px 12px;
}

.sd-search-icon {
  position: absolute;
  inset-inline-start: 24px;
  inset-block-start: 50%;
  display: flex;
  transform: translateY(-50%);
  pointer-events: none;
}

.sd-search-icon .sd-icon {
  width: 16px;
  height: 16px;
}

.sd-search-input {
  width: 100%;
  min-height: 42px;
  padding-block: 8px;
  padding-inline: 36px 12px;
  border: 1px solid var(--sd-glass-border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.sd-app[data-ink="dark"] .sd-search-input {
  background: rgba(255, 255, 255, 0.55);
}

.sd-search-input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.sd-search-input::-webkit-search-cancel-button {
  filter: grayscale(1);
}

.sd-results {
  position: absolute;
  inset-inline: 12px;
  inset-block-start: calc(100% - 6px);
  z-index: 10;
  max-height: 318px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border-radius: 18px;
  background: var(--sd-surface);
  color: var(--sd-surface-ink);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(127, 127, 127, 0.35);
  --ink-2: var(--sd-surface-ink-2);
}

.sd-results[hidden] {
  display: none;
}

.sd-result {
  display: grid;
  gap: 1px;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.sd-result[aria-selected="true"],
.sd-result:hover {
  background: rgba(18, 158, 126, 0.16);
}

.sd-result-name {
  font-size: 16px;
  font-weight: 600;
}

.sd-result-detail {
  font-size: 13px;
}

.sd-switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  margin: 0;
  margin-inline-start: auto;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.4);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sd-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.sd-switch:checked {
  background: #19b08c;
}

.sd-switch:checked::after {
  transform: translateX(20px);
}

.sd-app[dir="rtl"] .sd-switch::after {
  left: auto;
  right: 2px;
}

.sd-app[dir="rtl"] .sd-switch:checked::after {
  transform: translateX(-20px);
}

.sd-disclosure > summary {
  list-style: none;
  cursor: pointer;
}

.sd-disclosure > summary::-webkit-details-marker {
  display: none;
}

.sd-disclosure-chevron {
  display: flex;
}

.sd-disclosure-chevron .sd-icon {
  width: 14px;
  height: 14px;
}

.sd-disclosure[open] .sd-disclosure-chevron {
  transform: rotate(180deg);
}

.sd-method-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 8px 10px;
  border: 0;
}

.sd-method-list[disabled] {
  opacity: 0.55;
}

.sd-method {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 12px;
  cursor: pointer;
}

.sd-method-list[disabled] .sd-method {
  cursor: default;
}

.sd-method input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #19b08c;
}

.sd-method-name {
  font-size: 15px;
  font-weight: 550;
}

.sd-app-only .sd-icon {
  width: 18px;
  height: 18px;
}

.sd-app-only .sd-setting-label {
  flex: 1;
  font-size: 15px;
}

.sd-tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--sd-glass-border);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.sd-group-note {
  padding: 10px 16px 14px;
}

.sd-settings-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

/* ---------- Quran ---------- */

.sd-sura-header {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.sd-sura-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sd-sura-ar {
  font-family: "Salaty Mushaf", "Geeza Pro", var(--sd-arabic);
  font-size: 24px;
}

.sd-paper {
  padding: 18px 14px 10px;
  border-radius: 24px;
  background: #fbfaf7;
  color: #1b1b1b;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(114, 74, 0, 0.18);
}

@media (prefers-color-scheme: dark) {
  .sd-paper {
    background: #16181d;
    color: #ece8df;
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(243, 196, 104, 0.2);
  }
}

.sd-mushaf {
  font-family: "Salaty Mushaf", "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", serif;
  font-size: 25px;
  line-height: 2.3;
  word-spacing: 0.18em;
  text-align: center;
  transition: opacity 0.4s ease;
}

.sd-mushaf[data-font="loading"] {
  opacity: 0.35;
}

.sd-mushaf-text {
  margin: 0;
  padding-block-start: 0.2em;
}

.sd-ayah-mark {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.2em;
  overflow: visible;
}

.sd-ayah-mark-shape {
  fill: rgba(114, 74, 0, 0.1);
  stroke: #724a00;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.sd-ayah-mark-text {
  fill: #724a00;
  font-family: var(--sd-rounded);
  font-size: 12px;
  font-weight: 650;
}

@media (prefers-color-scheme: dark) {
  .sd-ayah-mark-shape {
    fill: rgba(243, 196, 104, 0.12);
    stroke: #f3c468;
  }

  .sd-ayah-mark-text {
    fill: #f3c468;
  }
}

.sd-font-status {
  min-height: 1.2em;
  color: #5f5b53;
  text-align: center;
}

.sd-credit {
  text-align: center;
}

/* ---------- Dialog ---------- */

.sd-dialog {
  width: min(320px, calc(100% - 40px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--sd-surface);
  color: var(--sd-surface-ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.sd-dialog::backdrop {
  background: rgba(3, 8, 19, 0.45);
}

.sd-dialog-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.sd-dialog-title {
  font-size: 18px;
  font-weight: 700;
}

.sd-dialog-text {
  color: var(--sd-surface-ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.sd-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-block-start: 6px;
}

.sd-dialog .sd-button {
  min-height: 44px;
  padding-inline: 10px;
  font-size: 15px;
}

.sd-dialog .sd-button-glass {
  background: rgba(127, 127, 127, 0.16);
  color: inherit;
}

.sd-boot-error {
  position: absolute;
  inset: auto 20px 50%;
  padding: 16px;
  border-radius: 20px;
  background: rgba(3, 8, 19, 0.7);
  color: #fff;
  text-align: center;
}

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

@media (forced-colors: active) {
  .sd-glass,
  .sd-surface {
    border: 1px solid CanvasText;
  }

  .sd-ring-arc {
    forced-color-adjust: none;
  }
}
