:root {
  color-scheme: dark;
  --ink: #f6f5ef;
  --muted: #bdcfdf;
  --line: #e1edff23;
  --safe: env(safe-area-inset-bottom, 0px);
  --nav-height: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #0b2443;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-padding: 30px 0 210px; }
body { margin: 0; min-height: 100svh; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { border: 0; color: inherit; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #dfd1a8; outline-offset: 4px; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; display: block; flex-shrink: 0; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
::selection { background: #bdd0e5; color: #102c4d; }
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky-fallback { position: absolute; inset: 0; background: radial-gradient(ellipse at 52% 85%, #66849d 0, #2d5274 25%, transparent 64%), linear-gradient(#071b35, #153b64 67%, #688498); }
#shaderSky { position: absolute; inset: 0; }
#shaderSky canvas { width: 100%; height: 100%; display: block; }
.reading-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #061a2b05 15%, #071e365e 65%, #091d378f 100%); }
.app { width: min(100%, 560px); height: 100svh; margin: auto; padding: 0 25px max(12px, var(--safe)); display: flex; flex-direction: column; }
.header { position: relative; padding-top: env(safe-area-inset-top); height: calc(106px + env(safe-area-inset-top)); flex-shrink: 0; }
.wordmark { position: absolute; left: 50%; top: calc(57px + env(safe-area-inset-top)); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; transform: translateX(-50%); }
.wordmark img, .verse-divider img { filter: brightness(0) invert(1); opacity: .9; }
.wordmark img { width: 32px; height: 32px; }
.island-shell { position: absolute; z-index: 12; left: 50%; top: calc(10px + env(safe-area-inset-top)); width: 78px; max-width: 100%; overflow: hidden; transform: translateX(-50%); border-radius: 19px; border: 1px solid #e2edff20; color: #edf2f4; background: linear-gradient(145deg,#061522f2,#0a1e31ee); box-shadow: 0 8px 28px #020c1960, inset 0 1px #ffffff0c; backdrop-filter: blur(22px); transition: width 280ms var(--ease), border-radius 280ms var(--ease), box-shadow 240ms ease, background-color 180ms ease; }
.island-shell.is-open { width: min(410px,100%); border-radius: 25px; box-shadow: 0 24px 70px #010914b8, inset 0 1px #ffffff0f; }
.day-island { width: 100%; min-width: 0; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: inherit; color: inherit; background: transparent; text-align: left; transition: height 280ms var(--ease); }
.island-shell.is-open .day-island { height: 56px; padding: 6px 12px 6px 15px; display: grid; grid-template-columns: auto 1px minmax(0,1fr) auto; gap: 11px; }
.island-time { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.island-shell.is-open .island-time { min-width: 54px; align-items: flex-start; }
#headerTime { font: 17px/1 Newsreader, Georgia, serif; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.island-shell.is-open #headerTime { font-size: 23px; letter-spacing: -.45px; }
#headerDate { display: none; max-width: 88px; margin-top: 4px; color: #a8bbcb; font-size: 10px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island-shell.is-open #headerDate { display: block; }
.island-divider { width: 1px; height: 30px; background: #dceaff1c; }
.island-prayer { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prayer-place { display: flex; align-items: center; gap: 5px; min-width: 0; color: #b5c6d4; font-size: 10px; }
.prayer-place svg { width: 11px; height: 11px; }
#prayerPlace, #nextPrayer { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
#nextPrayer { color: #f0f1eb; font-size: 10px; font-weight: 550; font-variant-numeric: tabular-nums; }
.island-divider, .island-prayer, .island-chevron { display: none; }
.island-shell.is-open .island-divider, .island-shell.is-open .island-prayer, .island-shell.is-open .island-chevron { display: flex; }
.island-chevron svg { width: 12px; height: 12px; color: #8fa9bf; transition: transform 280ms var(--ease); }
.island-shell.is-open .island-chevron svg { transform: rotate(180deg); }
.island-panel { max-height: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-7px); transition: max-height 280ms var(--ease), opacity 150ms ease, transform 240ms var(--ease), visibility 0s linear 280ms; }
.island-shell.is-open .island-panel { max-height: 360px; opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.island-panel-inner { padding: 1px 13px 14px; }
.island-panel-heading { min-height: 40px; padding: 2px 2px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #dceaff14; color: #a8bbcb; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.island-panel-heading button { min-height: 40px; padding: 0 4px; display: inline-flex; align-items: center; gap: 5px; color: #d1dbe2; background: transparent; font-size: 10px; letter-spacing: 0; text-transform: none; }
.island-panel-heading button svg { width: 11px; height: 11px; }
.island-prayer-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.island-prayer-item { min-width: 0; min-height: 54px; padding: 8px 9px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-radius: 13px; background: #b9d2e609; border: 1px solid #dbeaff0e; }
.island-prayer-item span { color: #a9bdcc; font-size: 10px; }
.island-prayer-item strong { color: #e8edf0; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
.island-prayer-item.next { background: #e5e2d3; border-color: transparent; }
.island-prayer-item.next span, .island-prayer-item.next strong { color: #17334e; }
.island-status { min-height: 0; color: #d5dee5; font-size: 11px; line-height: 1.45; }
.island-status:not(:empty) { margin: 0 2px 9px; }
.island-retry { width: 100%; min-height: 40px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; color: #eef2f2; background: #d7e8f010; border: 1px solid #dfedfa20; font-size: 11px; }
.island-retry svg { width: 14px; height: 14px; }
.island-source { margin: 10px 2px 0; color: #91a7b9; font-size: 10px; line-height: 1.45; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #ffffff07; border: 1px solid #ffffff20; flex-shrink: 0; }
.icon-button svg { width: 18px; height: 18px; }
main { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; scroll-padding: 18px 0 24px; }
main::-webkit-scrollbar { display: none; }
main:focus { outline: none; }
.today { min-height: 100%; padding-bottom: 14px; display: flex; flex-direction: column; justify-content: safe center; }
.reading { width: 100%; padding: 0 0 12px; }
.reading-heading { display: flex; align-items: center; justify-content: center; }
.reading-heading h1 { color: #b9c9d7; font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
#topicLabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#verse { text-align: center; padding: 17px 3px 0; }
.arabic { font: 24px/1.9 Amiri, "Times New Roman", serif; color: #edf1ee; text-shadow: 0 2px 20px #071e3680; overflow-wrap: anywhere; }
.verse-divider { display: flex; justify-content: center; align-items: center; gap: 15px; margin: 20px 0; }
.verse-divider span { width: 30px; height: 1px; background: #dce8f235; }
.verse-divider img { opacity: .53; width: 18px; height: 18px; }
.translation { font: 27px/1.48 Newsreader, Georgia, serif; letter-spacing: -.25px; color: #f5f4ed; text-wrap: pretty; overflow-wrap: anywhere; text-shadow: 0 1px 15px #071a3259; }
.verse-meta { min-height: 44px; margin-top: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #aebfd0; }
.reference { font-size: 10px; }
.meal-source { max-width: 310px; color: #94aabd; font-size: 10px; line-height: 1.45; }
.bottom-dock { position: relative; z-index: 6; flex-shrink: 0; align-self: center; width: max-content; max-width: 100%; min-height: 62px; margin: 9px 0 0; padding: 6px; display: flex; align-items: center; gap: 4px; border: 1px solid #dbeaff1f; border-radius: 31px; background: #0a243ce8; box-shadow: 0 14px 42px #020d1d54, inset 0 1px #ffffff0a; backdrop-filter: blur(22px) saturate(1.15); transition: width 320ms var(--ease), border-radius 320ms var(--ease); }
.bottom-nav { display: flex; align-items: center; gap: 2px; }
.bottom-nav a { position: relative; width: 46px; height: 48px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; overflow: hidden; color: #a9bed1; border-radius: 24px; font-size: 10px; white-space: nowrap; transition: width 300ms var(--ease), color 180ms ease, background-color 180ms ease; }
.bottom-nav a > [data-icon] + span { display: none; }
.bottom-nav a[aria-current="page"] { width: 91px; padding: 0 14px; color: #f6f3e9; background: #d9e9f012; box-shadow: inset 0 0 0 1px #e0edff0e; }
.bottom-nav a[aria-current="page"] > [data-icon] + span { display: inline; }
.bottom-nav svg { width: 20px; height: 20px; }
.nav-count { position: absolute; right: 5px; top: 4px; background: #d7d9c0; color: #16334f; border-radius: 8px; min-width: 12px; padding: 1px 3px; font-size: 8px; text-align: center; }
.nav-count:empty { display: none; }
.verse-actions { display: flex; align-items: center; gap: 2px; padding-left: 5px; border-left: 1px solid #dceaff1a; }
.save-button, .share-button { height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 24px; background: transparent; color: #dce6eb; transition: width 300ms var(--ease), background-color 180ms ease, color 180ms ease; }
.save-button { width: 76px; min-width: 76px; padding: 0 10px; gap: 6px; }
.share-button { width: 46px; min-width: 46px; padding: 0; }
.save-button span:last-child { display: inline; font-size: 9px; }
.save-button svg, .share-button svg { width: 19px; height: 19px; }
.save-button { background: #f0eee4; color: #16334f; }
.save-button[aria-pressed="true"] { background: #ded8c3; color: #193550; }
.save-button[aria-pressed="true"] svg { fill: #19355025; }
.library-page { padding: 18px 0 28px; }
.page-heading { padding: 8px 0 26px; }
.eyebrow { display: none; }
.page-heading h1 { font: 35px/1.25 Newsreader, Georgia, serif; margin: 11px 0; letter-spacing: -.65px; text-wrap: balance; }
.page-heading p { color: #c6d4e1; font-size: 12px; line-height: 1.8; }
.library-tools { display: flex; gap: 8px; margin-top: 18px; }
.library-tools .outline-button { min-width: 0; }
.entry-list { display: grid; gap: 11px; }
.date-heading { font-size: 12px; font-weight: 400; color: #c6d4e1; padding: 12px 0 4px; }
.entry-card { position: relative; background: #14314ddb; border: 1px solid #e4edff23; border-radius: 16px; overflow: hidden; content-visibility: auto; contain-intrinsic-size: auto 160px; }
.entry-open { width: 100%; min-width: 0; background: none; text-align: left; padding: 22px; display: flex; flex-direction: column; gap: 13px; }
.entry-card:has(.entry-remove) .entry-open { padding-right: 53px; }
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entry-title { font-size: 12px; font-weight: 500; color: #e2e5d6; }
.entry-time { font-size: 10px; color: #b0c6da; }
.entry-preview { font: 21px/1.55 Newsreader, Georgia, serif; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entry-topic { color: #b8ccdd; font-size: 10px; }
.entry-remove { position: absolute; right: 4px; top: 7px; background: transparent; border: 0; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 0 16px; margin-bottom: 22px; border: 1px solid #e2ecff36; border-radius: 14px; background: #102d48c9; }
.search-box input { min-width: 0; width: 100%; padding: 17px 0; font-size: 14px; border: 0; background: none; color: #f4f5ec; outline: none; }
.search-box input::placeholder { color: #b9cada; }
.search-box:focus-within { outline: 2px solid #dfd1a8; outline-offset: 3px; }
.empty-state { padding: 52px 22px; text-align: center; background: #13304ac7; border: 1px solid var(--line); border-radius: 17px; }
.empty-state > svg { width: 30px; height: 30px; margin: 0 auto 24px; color: #d5dabf; }
.empty-state h2 { font: 28px/1.3 Newsreader, Georgia, serif; }
.empty-state p { font-size: 12px; line-height: 1.8; margin: 14px 0; color: #c4d2e1; }
.empty-state a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 17px; border-radius: 22px; background: #e4e9de; color: #193650; font-size: 12px; margin-top: 7px; }
.privacy-note { display: flex; justify-content: center; align-items: flex-start; gap: 6px; font-size: 10px; line-height: 1.85; color: #bccfdf; margin-top: 25px; text-align: center; }
.privacy-note svg { width: 13px; height: 13px; margin-top: 3px; }
.quran-surah-label { display: block; margin-bottom: 7px; color: #aebfd0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.quran-surah { width: 100%; min-height: 48px; padding: 0 42px 0 14px; appearance: none; border: 1px solid #e2ecff36; border-radius: 14px; color: #f4f5ec; background-color: #102d48; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c8d7e2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; font: 13px Manrope, sans-serif; }
.quran-topics { display: flex; gap: 7px; margin: 14px 0 22px; padding: 0 0 5px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.quran-topics::-webkit-scrollbar { display: none; }
.quran-chip { min-height: 38px; padding: 0 13px; flex: 0 0 auto; border: 1px solid #d5e8ff2c; border-radius: 19px; color: #becfdd; background: #102d48a8; font-size: 10px; scroll-snap-align: start; }
.quran-chip[aria-pressed="true"] { color: #16334f; background: #edece3; border-color: transparent; }
.quran-result-head { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #bdcfdd; font-size: 10px; }
#quranSource { color: #92aabc; text-align: right; }
.quran-card .entry-open { gap: 11px; }
.surah-opening { padding: 19px 12px 7px; text-align: center; color: #b8cad8; }
.surah-opening > span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.surah-opening p { margin-top: 12px; color: #eef1ed; font: 23px/1.8 Amiri, "Times New Roman", serif; }
.quran-arabic { color: #edf1ee; font: 21px/1.8 Amiri, "Times New Roman", serif; text-align: right; }
.quran-more { width: 100%; margin-top: 14px; }
.quran-detail { text-align: center; }
.quran-detail-arabic { color: #f0f2ee; font: 27px/1.9 Amiri, "Times New Roman", serif; }
.quran-detail-translation { color: #f5f3eb; font: 25px/1.55 Newsreader, Georgia, serif; }
.quran-detail-source { margin-top: 22px; color: #9fb3c4; font-size: 10px; line-height: 1.6; }
.quran-detail-actions { display: flex; gap: 8px; margin-top: 22px; }
.quran-detail-actions .outline-button { flex: 1; }
.quran-page .privacy-note a { color: #e2e7df; text-decoration: underline; text-underline-offset: 3px; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; font-size: 11px; background: #ffffff05; border: 1px solid #d5e8ff3b; border-radius: 10px; }
.outline-button svg { width: 14px; height: 14px; }
.danger-button { width: 100%; min-height: 48px; border-radius: 12px; color: #fff3ef; background: #a7483c; font-size: 13px; }
dialog { position: fixed; inset: auto 0 0; margin: 0 auto; width: min(100%, 560px); max-width: 100%; max-height: 88svh; padding: 0; border: 1px solid #adc4da30; border-radius: 28px 28px 0 0; background: #102943; color: var(--ink); overscroll-behavior: contain; box-shadow: 0 -20px 90px #04132755; }
dialog::backdrop { background: #020c1c96; opacity: var(--sheet-backdrop-opacity, 1); }
.sheet-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 30px 24px 22px; border-bottom: 1px solid var(--line); background: #102943; touch-action: pan-x; }
.sheet-header::before { content: ""; position: absolute; top: 10px; left: calc(50% - 17px); width: 34px; height: 4px; border-radius: 5px; background: #afc3d954; }
.sheet-header h2 { font: 29px/1.2 Newsreader, Georgia, serif; margin-top: 9px; text-wrap: balance; }
.sheet-body { padding: 20px 24px calc(27px + var(--safe)); }
.sheet-intro { font-size: 13px; line-height: 1.8; color: #b9cbde; margin-bottom: 18px; }
.topic-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 57px; padding: 15px 16px; background: transparent; border-radius: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.topic-row[aria-current] { background: #d8e2d7; color: #14314c; border-color: transparent; }
.topic-row > span:last-child { font-size: 10px; }
.city-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.city-list button { min-height: 48px; background: #c4daf208; border: 1px solid var(--line); border-radius: 11px; font-size: 13px; }
.city-list button[aria-current] { background: #d8e2d7; color: #14314c; }
#useLocation { width: 100%; }
#locationMessage:empty { display: none; }
#locationMessage { margin-top: 15px; }
.share-text { width: 100%; min-height: 230px; padding: 16px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: #0a2038; color: var(--ink); font-size: 16px; line-height: 1.7; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(88px + var(--safe)); transform: translate(-50%, 7px); max-width: calc(100% - 35px); width: max-content; opacity: 0; pointer-events: none; padding: 13px 18px; border-radius: 14px; color: #15324d; background: #f3f2e7; font-size: 12px; line-height: 1.7; box-shadow: 0 6px 30px #05162933; transition: opacity 160ms ease, transform 160ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { min-height: 32px; color: #15324d; background: none; text-decoration: underline; margin-left: 10px; }
.skip-link { position: fixed; top: -60px; left: 15px; z-index: 50; padding: 12px; color: #14314c; background: #fff; border-radius: 6px; }
.skip-link:focus { top: 10px; }
.body-locked { overflow: hidden; }
.noscript { padding: 25px; background: #102943; }
@media (min-width: 600px) {
  .app { padding: 0 30px 21px; }
  .header { height: 110px; }
  .wordmark img { width: 36px; height: 36px; }
  .reading { padding-top: 27px; }
  #verse { padding: 22px 12px 0; }
  .arabic { font-size: 27px; line-height: 1.9; }
  .translation { font-size: 28px; }
  .verse-divider { margin: 23px 0; }
  .reading-shade { background: radial-gradient(ellipse at 50% 50%, #061b3152, transparent 70%), linear-gradient(0deg, #091d3775, transparent 30%); }
}
@media (max-width: 360px) {
  .app { padding: 0 20px max(12px, var(--safe)); }
  .header { height: 102px; }
  .wordmark { width: 38px; min-width: 38px; }
  .wordmark img { width: 29px; height: 29px; }
  .island-shell { width: 72px; }
  .island-shell.is-open { width: 100%; }
  .island-shell.is-open .day-island { height: 52px; padding-inline: 12px 10px; gap: 8px; }
  .island-time { min-width: 48px; }
  #headerTime { font-size: 16px; }
  .island-shell.is-open #headerTime { font-size: 21px; }
  #headerDate { max-width: 70px; font-size: 9px; }
  .prayer-place { font-size: 9px; }
  #nextPrayer { font-size: 9px; }
  .arabic { font-size: 22px; }
  .translation { font-size: 25px; }
  .reading { padding-top: 18px; }
  #verse { padding-top: 16px; }
  .bottom-nav a { width: 40px; }
  .bottom-nav a[aria-current="page"] { width: 78px; padding-inline: 10px; }
  .save-button, .share-button { width: 40px; min-width: 40px; padding: 0; }
  .save-button span:last-child { display: none; }
  .bottom-nav a { font-size: 9px; }
}
@media (hover: hover) and (pointer: fine) {
  .icon-button:hover, .share-button:hover, .topic-row:hover:not([aria-current]), .entry-open:hover, .outline-button:hover { background: #c2d9f41c; }
  .island-shell:hover { background: linear-gradient(145deg,#0a1e31ed,#102b45e9); }
  .save-button:hover { background: #fffef5; }
  .bottom-nav a:hover { color: #fff; }
}
.bottom-dock { width: min(100%,380px); padding: 0; height: 62px; border: 0; background: none; box-shadow: none; backdrop-filter: none; display: block; }
.bottom-nav { position: absolute; inset: 0; padding: 6px; border-radius: 31px; background: #0a243ce8; border: 1px solid #dbeaff26; box-shadow: 0 12px 36px #020d1d45,inset 0 1px #ffffff10; backdrop-filter: blur(22px); display: flex; transform-origin: left center; transition: width 280ms var(--ease),opacity 180ms ease,transform 280ms var(--ease); width: 100%; }
.bottom-nav a,.bottom-nav a[aria-current="page"] { width: auto; flex: 1; padding: 0 5px; height: 48px; flex-direction: column; gap: 4px; font-size: 9px; }
.bottom-nav a > [data-icon] + span { display: inline; }
.dock-menu { position: absolute; left: 0; top: 0; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0a243ce8; border: 1px solid #dbeaff26; box-shadow: 0 12px 36px #020d1d45,inset 0 1px #ffffff10; backdrop-filter: blur(22px); opacity: 0; visibility: hidden; transition: opacity 180ms ease,visibility 180ms; }
.verse-actions { position: absolute; left: 72px; right: 0; top: 0; height: 62px; padding: 6px; gap: 3px; border: 1px solid #dbeaff26; border-radius: 31px; background: #0a243ce8; box-shadow: 0 12px 36px #020d1d45,inset 0 1px #ffffff10; backdrop-filter: blur(22px); opacity: 0; transform: translateX(20px) scale(.94); visibility: hidden; transition: opacity 180ms ease,transform 280ms var(--ease),visibility 180ms; }
.bottom-dock[data-mode="actions"] .bottom-nav { width: 62px; opacity: 0; transform: scale(.9); pointer-events: none; }
.bottom-dock[data-mode="actions"] .dock-menu { opacity: 1; visibility: visible; }
.bottom-dock[data-mode="actions"] .verse-actions { opacity: 1; visibility: visible; transform: none; }
.save-button { width: 70px; min-width: 70px; }
.share-button { width: 44px; min-width: 44px; }
@media (max-width:360px) { .save-button { width:44px; min-width:44px; } }
/* One navigation surface contracts left as the contextual toolbar enters. */
.bottom-dock { width: min(100%,390px); }
.bottom-nav,.dock-menu,.verse-actions { background: linear-gradient(150deg,#41617b6b,#0a233ac9); border-color: #e3f0ff30; box-shadow: inset 0 1px 0 #ffffff25,inset 0 -1px 0 #06172850,0 10px 30px #03142330; backdrop-filter: blur(24px) saturate(1.3); }
.bottom-nav { overflow: hidden; }
.bottom-nav a,.bottom-nav a[aria-current="page"] { flex: 1; min-width: 0; height: 48px; }
.bottom-nav a { font-size: 10px; }
.bottom-dock[data-mode="actions"] .bottom-nav { transform: none; }
.verse-actions { left: auto; width: calc(100% - 76px); justify-content: flex-end; padding: 6px; gap: 6px; }
.save-button { flex: 1; width: auto; min-width: 0; height: 48px; padding: 0 13px; gap: 8px; background: #f1f0e6; font-weight: 600; }
.save-button span:last-child { display: inline; font-size: 12px; }
.save-button[aria-pressed="true"] { background: #d8e8f018; color: #e1ebe9; box-shadow: inset 0 0 0 1px #e5f3ff20; }
.share-button { width: 48px; min-width: 48px; height: 48px; }
.dock-menu { width: 62px; }
.bottom-dock.instant *, .bottom-dock.instant { transition-duration: 0s !important; }
@media (max-width:360px) { .save-button { padding: 0 7px; gap: 5px; } .save-button span:last-child { font-size: 11px; } .share-button { width: 44px; min-width: 44px; } .bottom-nav a { font-size: 9px; } }
html[data-page="today"] main { scroll-snap-type: y mandatory; scroll-padding: 0; overflow-anchor: none; }
.today { display: block; padding: 0; }
.feed-slide { position: relative; min-height: var(--feed-height, 65svh); display: flex; align-items: center; padding: 22px 0; scroll-snap-align: start; scroll-snap-stop: always; }
.feed-slide .reading { padding-top: 0; padding-bottom: 0; }
.reading-topic { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 22px; color: #bacbd9; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.reading-topic svg { width: 11px; height: 11px; opacity: .65; }
.reading-topic:active { background: #e4f0ff0b; }
.reading-topic-separator, #topicLabel, .reading-topic span:nth-child(3) { opacity: .65; font-weight: 450; }
#topicLabel, .reading-topic span:nth-child(3) { text-transform: none; letter-spacing: .03em; }
.feed-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; color: #b8cad8; font-size: 10px; white-space: nowrap; animation: hint-enter 240ms var(--ease) both; }
.feed-hint span:last-child { font-size: 15px; animation: hint-drift 1.6s ease-in-out infinite; }
.feed-end { min-height: var(--feed-height,65svh); padding: 48px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; scroll-snap-align: start; }
.feed-end .eyebrow { display: block; color: #a9bed0; font-size: 10px; letter-spacing: .13em; }
.feed-end h2 { margin-top: 15px; font: 30px/1.25 Newsreader, Georgia, serif; }
.feed-end p { max-width: 300px; margin-top: 12px; color: #bfd0dd; font-size: 12px; line-height: 1.7; }
.feed-end > div { display: flex; gap: 8px; margin-top: 22px; }
@keyframes hint-enter { from { opacity: 0; transform: translate(-50%,8px); } }
@keyframes hint-drift { 50% { transform: translateY(-4px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feed-slide .reading { animation: feed-reveal linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes feed-reveal { 0%,100% { opacity: .35; transform: translateY(12px); } 30%,70% { opacity: 1; transform: translateY(0); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
