body {
  min-width: 320px;
}
.topbar {
  gap: 24px;
}
.topbar nav {
  min-width: 0;
}
.hero {
  min-height: 580px;
}
.art-card p {
  font-size: 38px;
}
.reader-shell {
  scroll-margin-top: 20px;
}
.surah-sidebar {
  min-width: 0;
}
.surah-list {
  scrollbar-color: #bdd8cb transparent;
  scrollbar-width: thin;
}
.reading-pane {
  min-width: 0;
}
.ayah-text {
  overflow-wrap: anywhere;
}
.reader-audio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #56786b;
}
.reader-audio audio {
  width: min(100%, 330px);
  height: 38px;
}
.bismillah[hidden] {
  display: none;
}
.reading-toolbar select {
  max-width: 210px;
}
.icon-button:hover,
.ayah-play:hover {
  background: #dcefe5;
}
.ayah.playing {
  border-radius: 12px;
  padding-inline: 12px;
}
.hero-actions .button {
  gap: 22px;
}
.page-hero > *,
.hero-copy > * {
  position: relative;
  z-index: 1;
}
.page-hero-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.video-frame {
  background: radial-gradient(circle at center, #14534b, #061f1d 85%);
}
.video-border {
  border-color: #8dd9c966;
  padding: 16px 13px;
}
.preview-caption {
  font-size: 11px;
  color: #b8d9d0;
  margin-top: 13px;
  border-bottom: 1px solid #90cdbf88;
  padding-bottom: 12px;
}
.preview-verse-card {
  width: 100%;
  margin: auto 0 15px;
  min-height: 215px;
  border: 1px solid #97d3c577;
  border-radius: 12px;
  background: #0b302ddd;
  display: grid;
  place-items: center;
  padding: 10px;
}
.preview-verse {
  display: block;
  max-height: 205px;
  overflow: hidden;
  font:
    19px/1.8 Amiri,
    serif;
  color: #fffaf0;
}
.preview-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}
.preview-tags span {
  border: 1px solid #7fc9ba99;
  border-radius: 20px;
  background: #174c45;
  padding: 4px 7px;
  font-size: 8px;
  color: #e4f4ec;
}
.preview-tags span:last-child {
  width: 100%;
}
.preview-site {
  margin-top: auto;
  padding-top: 22px;
  color: #9dc8bd;
  font-size: 9px;
  letter-spacing: 0.3px;
}
.studio-preview {
  position: sticky;
  top: 18px;
}
.job-status[hidden] {
  display: none;
}
.create-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-inline-start-color: transparent;
  border-radius: 50%;
  animation: ourmithaq-spin 0.7s linear infinite;
}
.create.is-loading {
  opacity: 0.76;
  cursor: wait;
}
.create.is-loading .create-spinner {
  display: inline-block;
}
.create.is-loading .create-arrow {
  display: none;
}
.create.is-loading .create-label::after {
  content: " · جارٍ الإنشاء";
}
@keyframes ourmithaq-spin {
  to {
    transform: rotate(360deg);
  }
}
.job-status {
  padding: 18px;
  border: 1px solid #cbded3;
  border-radius: 16px;
  background: #f6faf7;
}
.job-status #job-detail {
  margin: 9px 0 0;
  font-size: 12px;
  color: #56786b;
}
.job-status.indeterminate .progress-track div {
  width: 30% !important;
  animation: ourmithaq-progress 1.4s ease-in-out infinite;
}
@keyframes ourmithaq-progress {
  from {
    transform: translateX(340%);
  }
  to {
    transform: translateX(-340%);
  }
}
.job-status.has-error {
  border-color: #e2a6a2;
  background: #fff5f4;
}
#job-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fae3e1;
  color: #8f2424;
  font-weight: 700;
  line-height: 1.8;
}
#job-error[hidden] {
  display: none;
}
.clip-card.clip-error {
  outline: 2px solid #c43c3c;
  outline-offset: 3px;
}
.site-footer {
  display: block;
  padding: 0 5%;
  background: #062f2b;
  color: #bed6cd;
}
.footer-inner {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding: 50px 0 42px;
}
.footer-main p {
  margin: 12px 0 0;
  line-height: 1.8;
}
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #8ce1d3;
  font-size: 27px;
  font-weight: 700;
  text-decoration: none;
}
.footer-brand small {
  font-size: 11px;
  color: #b8d6c9;
  font-weight: 400;
}
.footer-nav,
.footer-sources {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.footer-nav a,
.footer-sources a {
  color: #d1e5db;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-sources a:hover,
.footer-bottom a:hover {
  color: #84e0d1;
}
.footer-sources span {
  color: #82b4a5;
  font-weight: 700;
}
.footer-bottom {
  max-width: 1320px;
  margin: auto;
  border-top: 1px solid #ffffff20;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9ebdb1;
}
.footer-bottom a {
  text-decoration: none;
  color: inherit;
}
@media (max-width: 900px) {
  .topbar nav {
    gap: 14px;
  }
  .footer-inner {
    gap: 25px;
  }
  .studio-preview {
    position: static;
  }
  .reader-audio {
    flex-wrap: wrap;
  }
}
@media (max-width: 620px) {
  .topbar nav a.active:after {
    bottom: -12px;
  }
  .hero {
    min-height: 0;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .hero-meta {
    flex-wrap: wrap;
  }
  .section-ornament {
    display: none;
  }
  .reader-shell {
    display: block;
  }
  .surah-list {
    max-height: 95px;
  }
  .surah-option {
    min-width: 145px;
  }
  .reading-pane {
    padding: 18px;
  }
  .reader-audio audio {
    width: 100%;
  }
  .ayah-text {
    font-size: 23px;
    line-height: 1.9;
  }
  .ayah-number {
    min-width: 34px;
    height: 34px;
  }
  .ayah-play {
    min-width: 36px;
  }
  .studio-layout {
    min-width: 0;
  }
  .studio-form,
  .studio-preview {
    min-width: 0;
    padding: 20px;
  }
  .studio .section-head {
    flex-wrap: wrap;
    gap: 15px;
  }
  .fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .fields select,
  .reciter-field select {
    min-width: 0;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-main {
    grid-column: 1/-1;
  }
  .footer-bottom {
    margin: 0;
  }
  .page-hero {
    min-height: 330px;
    padding: 55px 5%;
  }
  .page-hero > p {
    font-size: 15px;
  }
}

@font-face {
  font-family: "IBM Plex Sans Arabic Local";
  src: url("/assets/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.clip-card,
.clip-card select,
.clip-template,
.preview-caption,
.preview-tags,
.preview-site,
.preview-number,
.preview-controls,
.template-swatch {
  font-family: "IBM Plex Sans Arabic Local", "IBM Plex Sans Arabic", sans-serif;
}
.clip-card {
  animation: clip-enter 0.28s ease both;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.clip-card.active-clip {
  border-color: #69b69c;
  box-shadow: 0 0 0 2px #69b69c22;
}
@keyframes clip-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.clip-head {
  gap: 10px;
}
.clip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.random-clip {
  border: 1px solid #a6d3bb;
  border-radius: 30px;
  padding: 5px 10px;
  background: #ecf8ef;
  color: #17674d;
  font-size: 12px;
  font-weight: 700;
}
.random-clip:hover {
  background: #d9f0e1;
}
.random-clip:disabled {
  opacity: 0.6;
}
.remove-clip[hidden] {
  display: none;
}
.clip-card select {
  direction: rtl;
  text-align: right;
}
.clip-template-label {
  font-size: 12px;
  font-weight: 700;
  color: #547568;
  margin: 16px 0 8px;
}
.clip-template-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.clip-template {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #dce9df;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.clip-template:hover {
  transform: translateY(-2px);
}
.clip-template.selected {
  border-color: #2d9479;
  background: #f4fbf6;
  box-shadow: 0 0 0 1px #2d947922;
}
.clip-template .template-swatch {
  width: 100%;
  height: 47px;
}
.clip-template strong {
  font-size: 11px;
}
.clip-template small {
  font-size: 9px;
  color: #74877e;
  line-height: 1.3;
}
.video-frame {
  transition:
    background 0.32s ease,
    box-shadow 0.32s ease;
}
.video-frame .video-border {
  padding-inline: 22px;
}
.video-frame .preview-verse-card {
  width: calc(100% - 6px);
  transition:
    opacity 0.23s ease,
    transform 0.23s ease,
    background 0.32s ease,
    border-color 0.32s ease;
}
.video-frame .preview-caption,
.video-frame .preview-tags,
.video-frame .preview-number,
.video-frame .preview-site {
  transition:
    opacity 0.23s ease,
    color 0.32s ease;
}
.video-frame.changing .preview-verse-card,
.video-frame.changing .preview-caption,
.video-frame.changing .preview-tags,
.video-frame.changing .preview-number,
.video-frame.changing .preview-site {
  opacity: 0;
  transform: translateY(4px);
}
.preview-tags {
  direction: rtl;
}
.preview-tags span {
  font-family: "IBM Plex Sans Arabic Local", "IBM Plex Sans Arabic", sans-serif;
}
.preview-site {
  direction: ltr;
}
@media (max-width: 620px) {
  .clip-actions {
    gap: 5px;
  }
  .random-clip {
    font-size: 10px;
    padding: 5px 7px;
  }
  .clip-template-options {
    gap: 5px;
  }
  .clip-template {
    padding: 5px;
  }
  .clip-template .template-swatch {
    height: 40px;
  }
  .clip-template small {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clip-card,
  .video-frame,
  .video-frame *,
  .clip-template {
    animation: none !important;
    transition: none !important;
  }
}

/* Compact centered footer */
.site-footer {
  padding: 24px 4% 30px;
  background: var(--cream);
  text-align: center;
}
.site-footer .footer-inner {
  max-width: 1060px;
  margin: auto;
  padding: 28px 24px 18px;
  border-radius: 26px;
  background: #063a35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  box-shadow: 0 14px 40px #073e3920;
}
.site-footer .footer-brand {
  font-size: 24px;
  line-height: 1.2;
}
.footer-motto {
  font:
    700 22px/1.6 "IBM Plex Sans Arabic",
    sans-serif;
  color: #f2fbf5;
  margin: 0;
}
.footer-verse {
  font:
    18px/1.3 Amiri,
    serif;
  color: #8bdccd;
  margin: 0;
}
.site-footer .footer-nav,
.site-footer .footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 7px;
}
.site-footer .footer-nav a,
.site-footer .footer-social a {
  font-size: 12px;
  color: #c9e4d9;
  text-decoration: none;
}
.site-footer .footer-social a {
  border: 1px solid #ffffff36;
  border-radius: 30px;
  padding: 4px 12px;
}
.site-footer .footer-bottom {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 11px 0 0;
  border-top: 1px solid #ffffff22;
  color: #a7c9bb;
  font-size: 10px;
}
.site-footer .footer-bottom a {
  color: inherit;
  text-decoration: none;
}
body[data-page="duas"] .page-hero {
  min-height: 320px;
  padding-top: 34px;
  padding-bottom: 34px;
}
body[data-page="duas"] .page-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.5;
  margin: 8px 0;
}
body[data-page="duas"] .page-hero > p {
  font-size: 15px;
  line-height: 1.7;
}

/* Three selectable video templates */
.template-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.template-heading strong {
  font-size: 18px;
}
.template-heading span {
  font-size: 12px;
  color: var(--muted);
}
.template-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.template-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.template-choice.selected {
  border-color: #3a9a83;
  box-shadow: 0 0 0 2px #3a9a8322;
  background: #f7fcf8;
}
.template-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.template-choice strong {
  font-size: 12px;
}
.template-choice small {
  font-size: 10px;
  color: var(--muted);
}
.template-swatch {
  width: 100%;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font:
    18px Amiri,
    serif;
}
.classic-swatch {
  background: #0b403a;
  color: #8cdaca;
}
.rose-swatch {
  background: #211714;
  color: #e8bdac;
}
.noir-swatch {
  background: #030303;
  color: #f1f1f1;
  border: 1px solid #444;
}
.preview-number,
.preview-progress,
.preview-controls {
  display: none;
}
.video-frame[data-template="rose"] {
  background: #211714;
}
.video-frame[data-template="rose"] .video-border {
  border-color: #7b5b54;
}
.video-frame[data-template="rose"] .preview-caption {
  color: #efc5b7;
  border: 0;
  font-size: 13px;
}
.video-frame[data-template="rose"] .preview-number {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid #e8bdae;
  background: #7c584e;
  color: #fff;
  font-size: 17px;
}
.video-frame[data-template="rose"] .preview-verse-card {
  background: #30231f;
  border-color: #8b6b62;
  min-height: 170px;
  margin-top: auto;
}
.video-frame[data-template="rose"] .preview-tags span {
  background: #51332e;
  border-color: #976f67;
}
.video-frame[data-template="rose"] .preview-progress,
.video-frame[data-template="noir"] .preview-progress {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background: #ffffff35;
  margin-top: 15px;
}
.video-frame[data-template="rose"] .preview-progress span {
  display: block;
  width: 34%;
  height: 100%;
  background: #e6ad99;
}
.video-frame[data-template="rose"] .preview-controls,
.video-frame[data-template="noir"] .preview-controls {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 12px 0;
  color: #fff;
}
.preview-controls b {
  font-size: 20px;
}
.video-frame[data-template="rose"] .preview-site {
  color: #d3aea3;
}
.video-frame[data-template="noir"] {
  background: #020202;
}
.video-frame[data-template="noir"] .video-border {
  border-color: #555;
}
.video-frame[data-template="noir"] .preview-caption {
  color: #eee;
  border: 0;
}
.video-frame[data-template="noir"] .preview-verse-card {
  background: #050505;
  border-color: #555;
  min-height: 150px;
  margin-top: auto;
}
.video-frame[data-template="noir"] .preview-tags span {
  background: #181818;
  border-color: #555;
  color: #eee;
}
.video-frame[data-template="noir"] .preview-progress span {
  display: block;
  width: 34%;
  height: 100%;
  background: #f5f5f5;
}
.video-frame[data-template="noir"] .preview-site {
  color: #bbb;
}
@media (max-width: 620px) {
  .site-footer {
    padding: 16px 3% 22px;
  }
  .site-footer .footer-inner {
    padding: 22px 13px 14px;
    border-radius: 20px;
  }
  .footer-motto {
    font-size: 17px;
  }
  .footer-verse {
    font-size: 15px;
  }
  .site-footer .footer-bottom {
    gap: 7px;
  }
  .template-options {
    gap: 6px;
  }
  .template-choice {
    padding: 6px;
  }
  .template-choice small {
    font-size: 9px;
  }
  .template-swatch {
    height: 48px;
  }
  .template-heading {
    display: block;
  }
  .template-heading span {
    display: block;
    margin-top: 2px;
  }
  body[data-page="duas"] .page-hero {
    min-height: 190px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}
/* Image studio */
.dua-publish-hero {
  min-height: 260px;
  padding-block: 48px;
}
.dua-publish-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
}
.dua-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: 32px;
  align-items: start;
}
.dua-studio-panel,
.dua-image-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.dua-studio-panel label {
  display: block;
  margin: 14px 0;
  color: #42685b;
  font-weight: 600;
  font-size: 14px;
}
.dua-studio-panel select,
.dua-studio-panel textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d6e5dc;
  background: #fbfdf9;
  border-radius: 10px;
  padding: 11px 14px;
  color: #183d35;
  font: inherit;
  direction: rtl;
  text-align: right;
}
.dua-studio-panel textarea {
  resize: vertical;
  min-height: 135px;
  line-height: 1.9;
}
.source-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 20px;
}
.source-tab {
  flex: 1;
  border: 1px solid #cfe2d5;
  background: #f8fbf7;
  padding: 11px;
  border-radius: 10px;
  color: #3d6757;
  font: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.source-tab.active {
  background: #e6f4ec;
  border-color: #6da98d;
  font-weight: 700;
}
.source-note {
  font-size: 12px;
  color: #688176;
  line-height: 1.7;
}
.custom-dua-count {
  margin: -7px 0 8px;
  text-align: left;
  color: #648577;
  font-size: 12px;
}
.custom-dua-count.limit-reached {
  color: #a34d3e;
  font-weight: 700;
}
.dua-image-preview img {
  width: min(100%, 325px);
  height: auto;
  aspect-ratio: 4/5;
  box-shadow: 0 14px 38px #24463828;
  border-radius: 6px;
  display: block;
  margin: auto;
  transition: opacity 0.2s ease;
}
.dua-image-preview img.loading {
  opacity: 0.55;
}
.dua-template-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.dua-template {
  border: 1px solid #d9e5dc;
  background: #fff;
  border-radius: 11px;
  padding: 7px 5px;
  color: #294d42;
  cursor: pointer;
  min-width: 0;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.dua-template:hover {
  transform: translateY(-3px);
}
.dua-template.selected {
  border-color: #32977d;
  box-shadow: 0 0 0 2px #32977d24;
}
.dua-swatch {
  display: grid;
  place-items: center;
  height: 60px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b));
  color: var(--swatch-ink);
  font-size: 21px;
}
.dua-template strong,
.dua-template small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dua-template strong {
  font-size: 12px;
  margin-top: 5px;
}
.dua-template small {
  font-size: 10px;
  color: #82938a;
}
.dua-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}
.dua-actions .button {
  border: 0;
  cursor: pointer;
  flex: 1;
  text-align: center;
}
.dua-actions .secondary {
  background: #e7f2ea;
  color: #206a55;
}
.dua-image-preview {
  background: #eef4ed;
  text-align: center;
  position: sticky;
  top: 20px;
}
.dua-image-preview canvas {
  width: min(100%, 325px);
  height: auto;
  box-shadow: 0 14px 38px #24463828;
  border-radius: 6px;
  display: block;
  margin: auto;
  transition: opacity 0.3s;
}
.dua-image-preview p {
  font-size: 12px;
  color: #698075;
  margin: 16px 0 0;
}
.download-item {
  width: min(100%, 300px);
  background: #f4faf5;
  border: 1px solid #dcece0;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
}
.download-banner {
  position: relative;
  min-height: 225px;
  padding: 17px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  color: #f9f5e9;
  background: radial-gradient(circle at 50% 43%, #245b52, #123d37 72%);
  border: 1px solid #89b6a9;
  border-radius: 16px;
  text-align: center;
}
.download-banner::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #a9d4c650;
  border-radius: 11px;
  pointer-events: none;
}
.banner-top {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #d6eee4;
}
.banner-play {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50% !important;
  background: #e6cba7 !important;
  color: #164238 !important;
  box-shadow: 0 5px 22px #0004;
  font-size: 23px !important;
  line-height: 1;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.banner-play:hover,
.banner-play:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 7px 26px #0007;
}
.banner-play span {
  transform: translateX(-2px);
}
.banner-ayah {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  color: #fffaf0;
  font:
    20px/1.8 "Uthmanic Hafs",
    Amiri,
    serif;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.banner-meta {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-size: 10px;
  color: #c7e6d9;
  line-height: 1.7;
}
#downloads .download-item .download-link {
  display: block;
  text-align: center;
}
.download-actions {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid #dcece0;
}
#downloads .download-zip {
  width: min(100%, 300px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  background: #0d554a;
  color: #fffaf0;
  border-radius: 11px;
  text-align: center;
}
#downloads .download-zip:hover,
#downloads .download-zip:focus-visible {
  background: #083e37;
}
.video-caption {
  font-size: 13px;
  color: #315c4a;
  line-height: 1.8;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.copy-caption {
  border: 1px solid #88bba1;
  border-radius: 8px;
  background: #fff;
  color: #2a7257;
  padding: 5px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
@media (max-width: 900px) {
  .dua-studio-layout {
    grid-template-columns: 1fr;
  }
  .dua-image-preview {
    position: static;
  }
  .dua-studio-panel,
  .dua-image-preview {
    padding: 20px;
  }
}
@media (max-width: 550px) {
  .dua-template-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
  .dua-swatch {
    height: 42px;
  }
  .dua-template strong {
    font-size: 10px;
  }
  .dua-template small {
    display: none;
  }
  .dua-actions {
    flex-direction: column;
  }
  .source-tab {
    font-size: 12px;
  }
}
/* Video template refinements */
.clip-template-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cream-swatch {
  background: linear-gradient(145deg, #fbf4e8, #e5d3b8) !important;
  color: #866d4d !important;
  border: 1px solid #d1b998;
}
.video-frame.changing .preview-verse-card,
.video-frame.changing .preview-caption,
.video-frame.changing .preview-tags,
.video-frame.changing .preview-number,
.video-frame.changing .preview-site {
  opacity: 1;
  transform: none;
}
.video-frame .preview-verse,
.video-frame #preview-ayah {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.video-frame.changing .preview-verse,
.video-frame.changing #preview-ayah {
  opacity: 0;
  transform: translateY(5px);
}
.video-frame[data-template="cream"] {
  background: linear-gradient(145deg, #faf3e8, #e7d8c0);
  box-shadow: 0 18px 40px #70583b25;
}
.video-frame[data-template="cream"] .video-border {
  border-color: #c2a886;
  color: #37433c;
}
.video-frame[data-template="cream"] .preview-caption {
  color: #806950;
  border-color: #c3aa88;
}
.video-frame[data-template="cream"] .preview-verse-card {
  background: #fffaf2;
  border-color: #ccb596;
  color: #38423b;
}
.video-frame[data-template="cream"] .preview-tags span {
  background: #eee0cc;
  border-color: #ccb596;
  color: #4a463c;
}
.video-frame[data-template="cream"] .preview-site {
  color: #8b795f;
}
.video-frame[data-template="rose"] .preview-tags,
.video-frame[data-template="noir"] .preview-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 9px 0;
}
.video-frame[data-template="rose"] .preview-tags span,
.video-frame[data-template="noir"] .preview-tags span {
  font-size: 9px;
  padding: 3px 7px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 620px) {
  .clip-template-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .clip-template strong {
    font-size: 9px;
  }
  .clip-template small {
    display: none;
  }
}
.video-frame,
.video-frame .preview-verse-card,
.video-frame .preview-caption,
.video-frame .preview-tags,
.video-frame .preview-number,
.video-frame .preview-site {
  transition: none;
}
.video-frame .preview-verse,
.video-frame #preview-ayah {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
/* Cream template contrast */
.cream-swatch {
  background: linear-gradient(145deg, #e8dbc6, #cdb58f) !important;
  color: #3e3529 !important;
  border-color: #a78964;
}
.video-frame[data-template="cream"] {
  background: linear-gradient(145deg, #e8dbc6, #cdb58f);
}
.video-frame[data-template="cream"] .video-border {
  border-color: #a78964;
  color: #2e342d;
}
.video-frame[data-template="cream"] .preview-caption {
  color: #504638;
  border-color: #a78964;
}
.video-frame[data-template="cream"] .preview-verse-card {
  background: #f2e6d4;
  border-color: #a78964;
  color: #2e342d;
}
.video-frame[data-template="cream"] .preview-verse {
  color: #2e342d !important;
  text-shadow: none;
}
.video-frame[data-template="cream"] .preview-tags span {
  background: #ddc6a7;
  border-color: #a78964;
  color: #2e342d;
}
.video-frame[data-template="cream"] .preview-site {
  color: #504638;
}
/* Dhikr library and mobile navigation */
.mobile-nav {
  display: none;
}
.duaa-hero {
  min-height: 290px;
  padding-block: 45px;
}
.duaa-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
}
.duaa-hero p {
  max-width: 650px;
}
.duaa-explorer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 50px #0d4f3b0a;
}
.duaa-modes {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.duaa-mode {
  border: 1px solid #cfe1d5;
  background: #f6faf6;
  border-radius: 12px;
  padding: 12px 21px;
  font: inherit;
  color: #356252;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.duaa-mode.active {
  background: #0d5147;
  color: white;
  border-color: #0d5147;
  font-weight: 700;
}
.duaa-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #c9ded1;
  border-radius: 14px;
  background: #f9fcf8;
  padding: 0 14px;
  max-width: 760px;
}
.duaa-search-wrap:focus-within {
  border-color: #56a98d;
  box-shadow: 0 0 0 3px #56a98d1f;
}
.duaa-search-wrap > span {
  font-size: 27px;
  color: #629581;
}
.duaa-search-wrap input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  padding: 13px 0;
  font: inherit;
  color: #1b4b3d;
  direction: rtl;
}
.duaa-search-wrap button {
  border: 0;
  background: none;
  color: #387560;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.duaa-featured {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 15px 0 4px;
  scrollbar-width: thin;
}
.duaa-feature {
  border: 1px solid #b7d3c1;
  background: #edf6ee;
  color: #276750;
  border-radius: 99px;
  padding: 7px 15px;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.duaa-feature:hover {
  background: #dcefe3;
}
.duaa-groups {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 15px 0 20px;
  border-bottom: 1px solid #e2ece4;
  scrollbar-width: thin;
}
.duaa-groups[hidden] {
  display: none;
}
.duaa-group {
  border: 1px solid #e0eae1;
  background: #fff;
  border-radius: 10px;
  padding: 9px 13px;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: #587264;
}
.duaa-group.active {
  background: #dff1e6;
  border-color: #70ad90;
  color: #17674c;
  font-weight: 700;
}
.duaa-browse-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
}
.duaa-category-panel {
  align-self: start;
  position: sticky;
  top: 16px;
  background: #f8fbf7;
  border: 1px solid #e0eae0;
  border-radius: 16px;
  padding: 14px;
}
.duaa-panel-label {
  font-size: 13px;
  font-weight: 700;
  color: #577769;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.duaa-category-panel .category-list {
  display: grid;
  gap: 7px;
  max-height: 65vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.duaa-category {
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 9px;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.duaa-category:hover {
  border-color: #9cccb0;
  background: #f4fbf5;
}
.duaa-category.active:hover {
  background: var(--green);
}
.duaa-category-icon {
  font-size: 15px !important;
  width: 20px !important;
  flex: none;
}
.duaa-category-name {
  flex: 1;
  text-align: right;
  min-width: 0;
}
.duaa-category-count {
  font-size: 11px;
  opacity: 0.65;
}
.duaa-browse-layout .dua-content {
  min-width: 0;
  border-color: #e0eae0;
  padding: 25px;
}
.duaa-browse-layout .dua-content-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #e9efe9;
}
.duaa-browse-layout .dua-content-head h3 {
  font-size: clamp(22px, 3vw, 30px);
}
.duaa-browse-layout .dua-content-head p {
  font-size: 13px;
  margin: 5px 0;
}
.duaa-entry {
  cursor: default;
  padding: 22px;
  margin-top: 12px;
}
.duaa-entry p.duaa-text {
  font:
    26px/1.95 Amiri,
    serif;
  color: #223d32;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.duaa-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.duaa-entry-category,
.duaa-repeat {
  background: #edf5ec;
  color: #357861;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 11px;
}
.duaa-entry-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e5ede5;
  padding-top: 12px;
  flex-wrap: wrap;
}
.duaa-ref {
  font-size: 12px;
  color: #627b6d;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.duaa-copy {
  border: 1px solid #a6d1b6;
  background: #f3faf4;
  color: #216b4e;
  border-radius: 8px;
  padding: 7px 13px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.duaa-copy:hover {
  background: #e3f2e6;
}
.duaa-empty,
.duaa-empty-small {
  padding: 24px;
  color: #688374;
  text-align: center;
}
.duaa-browse-layout .source-note {
  border-top: 1px solid #e7eee7;
  margin-top: 25px;
  padding-top: 16px;
  font-size: 11px;
  line-height: 1.8;
}
.duaa-browse-layout .source-note a {
  color: #176c50;
}
@media (max-width: 900px) {
  .duaa-browse-layout {
    grid-template-columns: 1fr;
  }
  .duaa-category-panel {
    position: static;
  }
  .duaa-category-panel .category-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    scroll-snap-type: x proximity;
    padding-bottom: 5px;
  }
  .duaa-category {
    min-width: 165px;
    max-width: 215px;
    scroll-snap-align: start;
  }
  .duaa-category-name {
    line-height: 1.4;
  }
  .duaa-category-count {
    display: none;
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  .topbar {
    height: auto;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4%;
  }
  .topbar .primary-nav,
  .topbar .social {
    display: none !important;
  }
  .topbar .brand {
    margin: auto;
  }
  .mobile-nav {
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    background: #fff;
    border-top: 1px solid #d6e7d9;
    box-shadow: 0 -5px 22px #183d2d16;
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    text-decoration: none;
    color: #657c6d;
    font-size: 10px;
    white-space: nowrap;
    border-radius: 9px;
    padding: 4px 1px;
  }
  .mobile-nav a span {
    font-size: 21px;
    line-height: 1;
  }
  .mobile-nav a.active {
    background: #e8f5ec;
    color: #0b674d;
    font-weight: 700;
  }
  .duaa-hero {
    min-height: 230px;
    padding: 35px 5%;
  }
  .duaa-hero h1 {
    font-size: 42px;
  }
  .duaa-hero p {
    font-size: 14px;
  }
  .duas-section {
    padding-top: 34px;
  }
  .duaa-explorer {
    padding: 14px;
    border-radius: 15px;
  }
  .duaa-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .duaa-mode {
    padding: 10px 5px;
    font-size: 11px;
  }
  .duaa-featured {
    padding-top: 12px;
  }
  .duaa-groups {
    padding: 12px 0;
  }
  .duaa-browse-layout {
    margin-top: 14px;
    gap: 14px;
  }
  .duaa-browse-layout .dua-content {
    padding: 17px;
  }
  .duaa-entry {
    padding: 16px;
  }
  .duaa-entry p.duaa-text {
    font-size: 23px;
    line-height: 1.85;
  }
  .duaa-entry-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .duaa-copy {
    align-self: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .duaa-mode,
  .duaa-category,
  .mobile-nav a {
    transition: none;
  }
}
/* Reader and publishing controls */
.clip-aspects {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
  color: #517264;
  font-size: 12px;
  font-weight: 700;
}
.clip-extra {
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px solid #d8e9df;
  border-radius: 14px;
  background: #f8fcf9;
  color: #234c3c;
}
.clip-extra > strong {
  display: block;
  font-size: 13px;
  margin-bottom: 9px;
}
.clip-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  font-size: 13px;
  cursor: pointer;
}
.clip-option[hidden] {
  display: none;
}
.clip-option input {
  width: 17px;
  height: 17px;
  accent-color: #218367;
  flex: none;
}
.clip-option.is-disabled {
  color: #87988e;
  cursor: not-allowed;
}
.opening-note,
.clip-option-help {
  margin: 2px 26px 9px 0;
  color: #617d6d;
  font-size: 11px;
  line-height: 1.6;
}
.opening-note:empty {
  display: none;
}
.clip-duration {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #e9f5ec;
  color: #21634a;
  font-size: 12px;
  line-height: 1.6;
}
.clip-duration.too-long,
.clip-duration.unavailable {
  background: #fff0ec;
  color: #a42f2f;
}
.clip-aspect {
  border: 1px solid #c9ded0;
  border-radius: 9px;
  background: #fff;
  color: #426755;
  padding: 7px 11px;
  font: inherit;
  cursor: pointer;
}
.clip-aspect.selected {
  background: #e1f3e8;
  border-color: #3d9c76;
  color: #126448;
}
.video-frame[data-aspect="16:9"] {
  width: min(100%, 430px);
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 18px;
  padding: 8px;
  overflow: hidden;
}
.video-frame[data-aspect="16:9"] .video-border {
  width: 75%;
  height: 130%;
  aspect-ratio: 1;
  margin: -9% auto 0;
  border-radius: 50%;
  padding: 16% 10% 8%;
}
.video-frame[data-aspect="16:9"] .preview-caption {
  display: none;
}
.video-frame[data-aspect="16:9"] .preview-number {
  width: 28px;
  height: 28px;
  font-size: 13px;
  flex: none;
}
.video-frame[data-aspect="16:9"] .preview-verse-card {
  min-height: 0;
  height: 38%;
  margin: 5px 0;
  padding: 4px;
}
.video-frame[data-aspect="16:9"] .preview-verse {
  font-size: 11px;
  line-height: 1.35;
  max-height: 100%;
}
.video-frame[data-aspect="16:9"] .preview-tags {
  margin: 1px 0;
  gap: 2px;
}
.video-frame[data-aspect="16:9"] .preview-tags span {
  font-size: 7px;
  padding: 1px 4px;
}
.video-frame[data-aspect="16:9"] .preview-progress {
  margin-top: 1px;
}
.video-frame[data-aspect="16:9"] .preview-controls {
  margin: 0;
  font-size: 10px;
}
.video-frame[data-aspect="16:9"] .preview-controls b {
  font-size: 14px;
}
.video-frame[data-aspect="16:9"] .preview-site {
  font-size: 8px;
}
@media (max-width: 900px) {
  .duaa-explorer,
  .duaa-browse-layout,
  .duaa-browse-layout .dua-content {
    min-width: 0;
  }
  .duaa-browse-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .duaa-category-panel {
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .source-tabs {
    flex-wrap: wrap;
  }
  .source-tab {
    min-width: calc(50% - 8px);
  }
  .duaa-explorer {
    max-width: 100%;
    overflow: hidden;
  }
}
.video-frame .video-border {
  position: relative;
}
.video-frame .preview-number {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 17px;
  flex: none;
}
.video-frame .preview-progress {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: #ffffff44;
  margin-top: 8px;
  flex: none;
}
.video-frame .preview-progress span {
  display: block;
  width: 36%;
  height: 100%;
  background: currentColor;
  border-radius: 4px;
}
.video-frame .preview-controls {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  margin: 8px 0;
  flex: none;
}
.video-frame[data-aspect="16:9"] .preview-number {
  position: absolute;
  right: 10%;
  top: 17%;
  width: 24px;
  height: 24px;
  font-size: 11px;
}
.video-frame[data-aspect="16:9"] .preview-verse-card {
  height: 33%;
  margin: 31px 0 4px;
}
.video-frame[data-aspect="16:9"] .preview-progress {
  height: 2px;
  margin-top: 2px;
}
.video-frame[data-aspect="16:9"] .preview-controls {
  margin: 2px 0;
}
.video-frame[data-aspect="16:9"] .preview-site {
  padding-top: 0;
  margin-top: 0;
}
/* Studio preview uses the same SVG renderer as the exported video. */
.studio-preview .video-frame,
.studio-preview .video-frame[data-aspect="16:9"] {
  width: min(100%, 270px);
  height: auto;
  aspect-ratio: 9/16;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0807;
  box-shadow: 0 18px 40px #163f312c;
  position: relative;
}
.studio-preview .video-frame[data-aspect="16:9"] {
  width: min(100%, 500px);
  aspect-ratio: 16/9;
}
.studio-preview .video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: none;
}
.studio-preview .video-frame.changing img {
  opacity: 1;
}
.studio-preview .video-frame[data-error]::after {
  content: attr(data-error);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #102822cc;
  font-size: 13px;
}

/* Searchable surah and reciter pickers in the clip studio. */
.clip-card .fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.clip-picker {
  position: relative;
  min-width: 0;
  font-family: "IBM Plex Sans Arabic Local", "IBM Plex Sans Arabic", sans-serif;
}
.clip-picker-surah {
  grid-column: 1 / -1;
}
.clip-picker-label {
  display: block;
  margin-bottom: 6px;
  color: #486f5e;
  font-size: 13px;
  font-weight: 700;
}
.clip-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid #cbded2;
  border-radius: 12px;
  background: #fff;
  color: #193d32;
  text-align: right;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.clip-picker-trigger:hover,
.clip-picker-trigger:focus-visible,
.clip-picker.open .clip-picker-trigger {
  border-color: #61aa8d;
  background: #f7fbf8;
  outline: none;
}
.clip-picker-chevron {
  color: #5b8976;
  font-size: 21px;
  line-height: 1;
}
.clip-card:has(.clip-picker.open) {
  position: relative;
  z-index: 30;
}
.clip-picker-popover {
  position: absolute;
  top: calc(100% + 7px);
  inset-inline: 0;
  z-index: 40;
  padding: 12px;
  border: 1px solid #c4ddcf;
  border-radius: 15px;
  background: #fffefa;
  box-shadow: 0 12px 30px #103b2920;
  animation: clip-picker-in 0.16s ease both;
}
.clip-picker-popover[hidden] {
  display: none;
}
@keyframes clip-picker-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.clip-picker-search-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #cbded2;
  border-radius: 10px;
  background: #f8fbf9;
}
.clip-picker-search-wrap:focus-within {
  border-color: #61aa8d;
}
.clip-picker-search-wrap span {
  color: #6d907c;
  font-size: 20px;
}
.clip-picker-search {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #193d32;
  direction: rtl;
  font: inherit;
  font-size: 14px;
}
.clip-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 10px;
  padding: 2px;
}
.clip-picker-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  padding: 7px 4px;
  border: 1px solid #deebe1;
  border-radius: 11px;
  background: #fbfdfb;
  color: #20483a;
  text-align: center;
  cursor: pointer;
  font: inherit;
}
.clip-picker-option strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.clip-picker-option small {
  color: #758e7d;
  font-size: 11px;
}
.clip-picker-option:hover,
.clip-picker-option:focus-visible {
  background: #edf7ef;
  border-color: #84bda1;
  outline: none;
}
.clip-picker-option[aria-selected="true"] {
  background: #e3f2e9;
  border-color: #62a981;
}
.clip-picker-empty {
  margin: 10px 2px 0;
  color: #637d6c;
  font-size: 12px;
}
.surah-empty {
  padding: 15px 10px;
  color: #617b6f;
  font-size: 13px;
  text-align: center;
}
.duaa-entry p.duaa-text .duaa-opening {
  display: block;
  margin-bottom: 8px;
  color: #6d8e7d;
  font-size: 0.73em;
  line-height: 1.7;
}
.duaa-entry p.duaa-text .duaa-main-text {
  display: block;
}
@media (max-width: 480px) {
  .clip-picker-popover {
    padding: 9px;
  }
  .clip-picker-grid {
    gap: 5px;
    max-height: 240px;
  }
  .clip-picker-option {
    min-height: 62px;
    padding-inline: 2px;
  }
  .clip-picker-option strong {
    font-size: 11px;
  }
  .clip-picker-option small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clip-picker-popover {
    animation: none;
  }
}


.clip-quality-options { margin: 12px 0 16px; color: #315b49; }
.clip-quality-options > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.clip-quality-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.clip-quality { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 11px 13px; border: 1px solid #cbded2; border-radius: 12px; background: #fff; color: #315b49; text-align: right; font: inherit; cursor: pointer; transition: border-color .2s, background-color .2s; }
.clip-quality:hover, .clip-quality:focus-visible { border-color: #58a485; outline: none; }
.clip-quality.selected { border-color: #338564; background: #e7f4eb; }
.clip-quality strong { font-size: 15px; color: #154938; }
.clip-quality small { direction: ltr; font: 600 12px/1.5 Arial, sans-serif; color: #52705f; }
.clip-quality span { font-size: 11px; color: #577163; }
.clip-quality-note { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: #60796c; }
