.pose-figure {
  margin: 0;
  min-width: 0;
}
.pose-art {
  aspect-ratio: 1.5;
  background-size: 200% 200%;
  background-repeat: no-repeat;
  background-color: #f1f5f9;
  border-radius: 18px;
  width: 100%;
  overflow: hidden;
}
.pose-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--text);
}
.pose-figure figcaption span {
  color: var(--muted);
  font-size: 12px;
}
.step-visual {
  margin: 22px 0 25px;
  max-width: 620px;
}
.step-visual .pose-art {
  max-height: 300px;
  aspect-ratio: 1.5;
  width: auto;
  margin: auto;
}
.focus-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 19px 22px;
  border-radius: 18px;
  margin: 0 0 25px;
}
.focus-launch h3 {
  font-size: 17px;
  margin: 0 0 5px;
  letter-spacing: -0.03em;
}
.focus-launch p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.focus-launch button {
  flex-shrink: 0;
}
.pose-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pose-gallery .pose-art {
  border: 1px solid var(--line);
}
.pose-gallery figcaption {
  display: block;
}
.pose-gallery figcaption span {
  display: block;
  margin-top: 3px;
}
.visual-reference-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}
.follow-dialog {
  border: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0;
  max-width: none;
  max-height: none;
  font-family: inherit;
}
.follow-dialog::backdrop {
  background: #06132370;
  backdrop-filter: blur(8px);
}
.follow-setup {
  width: min(560px, calc(100vw - 30px));
  border-radius: 28px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-shadow: 0 35px 100px #0003;
}
.follow-setup-inner {
  padding: 32px;
  position: relative;
}
.follow-x {
  position: absolute;
  top: 17px;
  right: 18px;
  font-size: 25px;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: var(--surface2);
  color: var(--muted);
}
.follow-setup h2 {
  font-size: 2rem;
  margin: 0 0 16px;
}
.setup-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.follow-dialog fieldset {
  padding: 0;
  border: 0;
  margin: 21px 0;
}
.follow-dialog legend {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.setup-options {
  display: flex;
  gap: 10px;
}
.setup-options label {
  flex: 1;
  cursor: pointer;
}
.setup-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.setup-options span {
  display: block;
  border: 1px solid var(--line);
  padding: 11px 15px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
}
.setup-options input:checked + span {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--bluewash);
}
.setup-options input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.setup-note {
  background: var(--bluewash);
  padding: 17px 19px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.8;
  margin: 23px 0;
}
.setup-note p {
  margin: 5px 0 8px;
  color: var(--muted);
}
.setup-note a {
  font-size: 12px;
  text-decoration: underline;
}
.focus-start {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 16px;
  color: #fff;
  background: #0071e3;
  font-size: 16px;
  font-weight: 700;
}
.setup-foot {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin: 13px 0 0;
}
/* Shown only when an interrupted session for this prayer can be resumed. */
.focus-resume {
  min-height: 58px;
  line-height: 1.35;
}
.focus-start small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.88;
}
.focus-restart {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}
.following {
  overflow: hidden !important;
}
.follow-active {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg);
}
.follow-shell {
  height: 100%;
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-rows: 52px 86px minmax(0, 1fr) 106px;
  padding: env(safe-area-inset-top) 30px env(safe-area-inset-bottom);
  overflow: hidden;
}
.follow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.follow-header button {
  padding: 7px 13px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
}
.follow-header > span:not(.wake-status) {
  color: var(--text);
  font-weight: 700;
}
.follow-header i {
  font-style: normal;
  padding: 0 6px;
  color: var(--muted);
}
.wake-status {
  font-size: 11px;
}
.follow-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.focus-phase {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.follow-heading h2 {
  font-size: 1.65rem;
  margin: 0;
  letter-spacing: -0.04em;
}
.focus-type {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  max-width: 130px;
}
.follow-display {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px 35px;
  min-height: 0;
  overflow: hidden;
  padding: 10px 0 22px;
}
.follow-image {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
}
.follow-image .pose-figure {
  width: 100%;
  max-height: 100%;
}
.follow-image .pose-art {
  max-height: 100%;
  border-radius: 24px;
}
.follow-cue {
  grid-column: 1;
  grid-row: 2;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.follow-reading {
  grid-column: 2;
  grid-row: 1/3;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 3px;
  --focus-arabic-size: 34px;
  --focus-rumi-size: 17px;
}
.focus-unit {
  flex-shrink: 0;
}
.focus-unit + .focus-unit {
  margin-top: 24px;
}
.focus-unit p {
  margin: 0;
}
.focus-unit-label {
  font-size: 11px !important;
  color: var(--blue);
  margin: 0 0 8px !important;
  text-align: center;
}
.focus-arabic {
  font-family: 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  font-size: var(--focus-arabic-size);
  line-height: 1.95;
  text-align: center;
  overflow-wrap: normal;
}
.focus-rumi {
  font-size: var(--focus-rumi-size);
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
  margin-top: 13px !important;
}
.focus-text {
  font-size: 1.6rem;
  line-height: 1.65;
  text-align: center;
  color: var(--text);
  letter-spacing: -0.02em;
}
.reading-large .follow-reading {
  --focus-arabic-size: 42px;
  --focus-rumi-size: 20px;
}
.follow-footer {
  padding: 6px 0 16px;
  min-height: 0;
}
.follow-position {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  height: 22px;
  align-items: center;
}
.focus-next-label {
  text-align: right;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.follow-progress {
  height: 3px;
  background: var(--line);
  border-radius: 5px;
  margin: 0 0 12px;
  overflow: hidden;
}
.follow-progress span {
  display: block;
  background: var(--blue);
  height: 100%;
}
.follow-actions {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 12px;
}
.follow-actions button {
  height: 51px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 700;
}
.focus-previous {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.focus-next {
  background: #0071e3;
  color: #fff;
}
.follow-actions button:active {
  transform: scale(0.985);
}
.follow-complete {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  max-width: 530px;
  margin: auto;
}
.complete-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--bluewash);
  border-radius: 50%;
  font-size: 34px;
  margin-bottom: 30px;
}
.follow-complete h2 {
  font-size: 2.2rem;
}
.follow-complete p:not(.eyebrow) {
  color: var(--muted);
}
.complete-back {
  background: transparent;
  color: var(--blue);
  margin-top: 20px;
  font-size: 14px;
}
.focus-tight .focus-unit + .focus-unit {
  margin-top: 12px;
}
.focus-tight .focus-rumi {
  margin-top: 7px !important;
}
.focus-tight .focus-arabic {
  line-height: 1.75;
}
.focus-tight .focus-text {
  font-size: 1.35rem;
}
.focus-tighter .follow-cue {
  font-size: 13px;
}
.focus-tighter .focus-unit-label {
  margin-bottom: 3px !important;
}
@media (max-width: 800px) {
  .focus-launch {
    padding: 18px;
    gap: 14px;
    align-items: flex-start;
    flex-direction: column;
  }
  .focus-launch button {
    width: 100%;
    min-height: 45px;
  }
  .step-visual .pose-art {
    max-height: none;
    width: 100%;
  }
  .pose-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .pose-gallery figcaption {
    font-size: 13px;
  }
  .follow-shell {
    grid-template-rows: 48px 75px minmax(0, 1fr) 101px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .follow-header {
    gap: 8px;
    font-size: 12px;
  }
  .follow-header button {
    font-size: 12px;
  }
  .wake-status {
    font-size: 10px;
    max-width: 83px;
    text-align: right;
  }
  .follow-heading h2 {
    font-size: 1.4rem;
  }
  .focus-type {
    font-size: 10px;
    max-width: 97px;
  }
  .follow-display {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(88px, 20dvh, 175px) auto minmax(0, 1fr);
    gap: 8px;
    padding: 0 0 8px;
  }
  .follow-image {
    grid-row: 1;
    grid-column: 1;
  }
  .follow-image .pose-figure {
    height: 100%;
    width: auto;
    aspect-ratio: 1.5;
  }
  .follow-image .pose-art {
    width: 100%;
    height: 100%;
    border-radius: 18px;
  }
  .follow-cue {
    grid-column: 1;
    grid-row: 2;
    font-size: 13px;
    line-height: 1.5;
    padding: 0 4px;
  }
  .follow-reading {
    grid-column: 1;
    grid-row: 3;
    --focus-arabic-size: 30px;
    --focus-rumi-size: 16px;
    padding: 8px 0;
  }
  .focus-arabic {
    line-height: 1.85;
  }
  .focus-rumi {
    line-height: 1.65;
  }
  .focus-text {
    font-size: 1.4rem;
  }
  .focus-unit + .focus-unit {
    margin-top: 19px;
  }
  .follow-actions button {
    height: 50px;
    font-size: 15px;
  }
  .follow-position {
    font-size: 10px;
  }
  .follow-footer {
    padding: 5px 0 13px;
  }
  .follow-setup-inner {
    padding: 28px 23px;
  }
  .follow-setup h2 {
    font-size: 1.8rem;
  }
  .setup-lead {
    font-size: 14px;
  }
  .setup-note {
    font-size: 12px;
  }
  .reading-large .follow-reading {
    --focus-arabic-size: 38px;
    --focus-rumi-size: 19px;
  }
  .focus-tight .follow-display {
    grid-template-rows: 70px auto minmax(0, 1fr);
  }
  .focus-tighter .follow-display {
    grid-template-rows: 50px auto minmax(0, 1fr);
  }
  .focus-tight .focus-rumi {
    line-height: 1.55;
  }
  .focus-tight .follow-reading {
    padding: 2px 0;
  }
  .focus-tight .focus-text {
    font-size: 1.2rem;
  }
}
@media (max-height: 570px) and (orientation: landscape) {
  .follow-shell {
    grid-template-rows: 42px 60px minmax(0, 1fr) 88px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .follow-display,
  .focus-tight .follow-display,
  .focus-tighter .follow-display {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 5px 20px;
    padding: 0;
  }
  .follow-image {
    grid-column: 1;
    grid-row: 1;
  }
  .follow-image .pose-figure {
    width: auto;
    height: 100%;
    max-width: 100%;
  }
  .follow-cue {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
  }
  .follow-reading {
    grid-column: 2;
    grid-row: 1/3;
    --focus-arabic-size: 26px;
    --focus-rumi-size: 15px;
  }
  .focus-arabic {
    line-height: 1.6;
  }
  .focus-rumi {
    margin-top: 6px !important;
    line-height: 1.5;
  }
  .focus-unit + .focus-unit {
    margin-top: 10px;
  }
  .reading-large .follow-reading {
    --focus-arabic-size: 32px;
    --focus-rumi-size: 17px;
  }
  .follow-actions button {
    height: 44px;
  }
  .follow-heading h2 {
    font-size: 1.3rem;
  }
  .follow-position {
    height: 18px;
  }
  .follow-progress {
    margin-bottom: 8px;
  }
}
@media (max-width: 350px) {
  .follow-shell {
    padding-left: 15px;
    padding-right: 15px;
  }
  .follow-heading h2 {
    font-size: 1.25rem;
  }
  .follow-header > span:not(.wake-status) {
    font-size: 11px;
  }
  .follow-actions {
    grid-template-columns: 1fr 2fr;
    gap: 9px;
  }
  .follow-actions button {
    font-size: 14px;
  }
  .pose-gallery {
    grid-template-columns: 1fr;
  }
}
.guide-toolbar {
  flex-wrap: wrap;
}
.follow-display .pose-art {
  background-color: #f1f5f9;
}
.focus-text-only .follow-display {
  grid-template-rows: 0 0 minmax(0, 1fr);
}
.focus-text-only .follow-image,
.focus-text-only .follow-cue {
  visibility: hidden;
  overflow: hidden;
}
.focus-text-only .follow-reading {
  grid-row: 3;
  grid-column: 1/-1;
}
@media (max-width: 800px) {
  .guide-toolbar {
    justify-content: space-between;
  }
  .guide-toolbar a {
    white-space: normal;
    max-width: 49%;
    font-size: 12px;
  }
}

/* Keep the in-prayer controls independent of the site footer layout. */
.follow-footer {
  display: block;
  margin: 0;
  border: 0;
  flex-wrap: nowrap;
}
.pose-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pose-tile {
  display: block;
  text-align: left;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  align-self: start;
}
.pose-tile:hover .pose-art {
  outline: 2px solid var(--blue);
}
.pose-zoom {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  width: min(760px, calc(100vw - 28px));
  max-height: 90dvh;
  padding: 28px;
  overflow: auto;
}
.pose-zoom::backdrop {
  background: #06132380;
  backdrop-filter: blur(8px);
}
.pose-zoom h2 {
  font-size: 1.5rem;
  padding-right: 35px;
}
.pose-zoom figcaption {
  display: block;
}
.pose-zoom figcaption span {
  display: block;
  margin-top: 8px;
}
