/* PrayAlong Personal: the few things Framework7 doesn't cover. */
:root { --good: #18794e; --bad: #c4291c; --muted: rgba(0, 0, 0, .6); --line: rgba(0, 0, 0, .16);
  --heat-0: #e3e8ee; --heat-1: #bfe3ff; --heat-2: #6cbcf7; --heat-3: #1f8fe5; --heat-4: #07549a; --sun: #ffd23f; }
:root.dark { color-scheme: dark; --good: #4cc38a; --bad: #ff7a70; --muted: rgba(255, 255, 255, .62); --line: rgba(255, 255, 255, .2);
  --heat-0: #2b3139; --heat-1: #123f66; --heat-2: #1768aa; --heat-3: #2f9bf0; --heat-4: #9ed6ff; }

.sprite { position: absolute; }
.ico { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.button .ico { width: 18px; height: 18px; margin-right: 6px; }
.offscreen { position: fixed; top: 0; left: -999px; }
.file-pick { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.column { max-width: 640px; margin: 0 auto; padding-bottom: 88px; }
.page-content { -webkit-user-select: text; user-select: text; }
:focus-visible { outline: 2px solid var(--f7-theme-color); outline-offset: 2px; }
.list input:focus-visible, .list textarea:focus-visible { outline: 0; }
.item-checkbox input[type=checkbox] { display: block; position: absolute; opacity: 0; }
.item-checkbox:focus-within { outline: 2px solid var(--f7-theme-color); outline-offset: -2px; }
button:disabled { opacity: .5; }
button.list-button { width: 100%; border: 0; background: none; font-family: inherit; cursor: pointer; }

.small { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 6px 0; }
.foot { margin-top: -16px; margin-bottom: 24px; padding: 0 32px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; font-size: 16px; }
.list .wrap { white-space: normal; overflow-wrap: anywhere; }
.good, .list-button.good { color: var(--good); }
.list-button.bad { color: var(--bad); }
.buttons, .stack { display: grid; gap: 10px; }
.stack { margin-top: 16px; }
.empty { text-align: center; padding: 24px 16px; font-size: 16px; color: var(--muted); }
.empty-title { font-size: 20px; font-weight: 600; color: var(--f7-text-color); margin: 0; }
.empty p + p { margin: 6px 0 0; }
.steps { margin: 0 0 16px; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.navbar h1 { font: inherit; margin: 0; }
h2.block-title { font-weight: 600; }

.prayer-head { font-size: 22px; line-height: 1.25; margin: 0 0 6px; overflow-wrap: anywhere; }
.prayer .item-inner { gap: 12px; }
.prayer-main { color: inherit; flex: 1; min-width: 0; }
.prayer .item-title, .answered-item .item-title { font-weight: 500; }
.prayer .item-footer { margin-top: 2px; }
.pray-btn.button-small { width: auto; min-width: 84px; height: 36px; padding: 0 14px; flex-shrink: 0; }
.pray-btn.is-done { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.answer { font-size: 15px; margin: 2px 0; overflow-wrap: anywhere; }

.streak-link .ico { width: 20px; height: 20px; }
.streak-link { gap: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.streak-link.is-lit .ico, .streak-hero.is-lit .ico { fill: var(--sun); stroke: #d99a00; }
.streak-hero { text-align: center; font-size: 16px; color: var(--muted); }
.streak-hero p { margin: 0; }
.streak-hero .ico { width: 40px; height: 40px; }
.streak-num { font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--f7-text-color); }
.streak-unit { font-size: 20px; font-weight: 600; color: var(--f7-text-color); margin-bottom: 4px !important; }

.heat-scroll { overflow-x: auto; scrollbar-width: none; }
.heat-grid, .heat-months { display: grid; grid-auto-flow: column; gap: 3px; width: max-content; }
.heat-grid { grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; cursor: pointer; }
.heat-months { grid-auto-columns: 13px; margin-bottom: 4px; font-size: 11px; color: var(--muted); height: 15px; }
.heat-months span { white-space: nowrap; }
.heat-fit .heat-grid { width: 100%; grid-auto-columns: 1fr; grid-template-rows: repeat(7, auto); }
.heat-fit .heat-cell { aspect-ratio: 1; }
.heat-cell { border-radius: 3px; background: var(--heat-0); }
.heat-cell.l1 { background: var(--heat-1); }
.heat-cell.l2 { background: var(--heat-2); }
.heat-cell.l3 { background: var(--heat-3); }
.heat-cell.l4 { background: var(--heat-4); }
.heat-cell.is-future { visibility: hidden; }
.heat-cell.is-today, .heat-cell.is-picked { box-shadow: inset 0 0 0 1.5px var(--f7-text-color); }
.heat-read { margin: 10px 0 0; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-bottom: 0; }
.heat-legend .heat-cell { width: 11px; height: 11px; }

.log { list-style: none; margin: 0; padding: 0; }
.log-item { position: relative; padding: 0 0 16px 22px; }
.log-item:last-child { padding-bottom: 0; }
.log-item::before { content: ''; position: absolute; left: 1px; top: 4px; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--f7-theme-color); }
.log-item::after { content: ''; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.log-item:last-child::after { display: none; }
.log-answered::before { border-color: var(--good); background: var(--good); }
.log-created::before { border-color: var(--muted); }
.log p { margin: 0; }
.log + *, * + .log { margin-top: 16px; }

.fab a { background: var(--fab-bg, var(--sun)) !important; color: var(--fab-ink, #2b2300) !important; }
.md .tab-link .ico { box-sizing: content-box; padding: 4px 20px; border-radius: 16px; margin-bottom: 4px; }
.md .tab-link-active .ico { background: var(--f7-tabbar-link-active-icon-bg-color); }
.md .toolbar-pane { display: flex; width: 100%; height: 100%; }
.ios .toolbar-pane { width: 100%; max-width: 480px; }

.swatches { display: grid; grid-template-columns: repeat(8, 1fr); justify-items: center; }
.swatch { width: 100%; max-width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.swatch span { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.swatch[aria-pressed=true] span { outline: 2px solid var(--f7-text-color); outline-offset: 3px; }
.color-pick { width: 48px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.color-row { cursor: pointer; }

#toast { position: fixed; z-index: 9000; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); pointer-events: none; }
#toast p { max-width: 480px; margin: 0 auto; padding: 14px 18px; border-radius: 12px; background: #20262d; color: #fff; font-size: 15px; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.dark #toast p { background: #e6eaef; color: #14181d; }

/* Framework7 adjustments */
.button-fill { --f7-button-border-color: var(--f7-button-fill-bg-color, var(--f7-theme-color)); }
.ios, .ios.dark { --f7-bars-bg-color: var(--f7-page-bg-color); }
.ios .tab-link-active .ico { box-sizing: content-box; margin: -3px; padding: 3px; border-radius: 50%; background: var(--tab-mark, transparent); }
.ios .navbar .title { position: absolute; left: 80px; right: 80px; margin: 0; text-align: center; }
.ios .navbar .right { margin-left: auto; }
.ios .navbar .subtitle { font-size: 12px; margin-top: 2px; }
.ios .navbar-bg { background: linear-gradient(var(--f7-page-bg-color) 72%, transparent); }
.ios { --f7-glass-bg-color: rgba(255, 255, 255, .92); }
.ios.dark { --f7-glass-bg-color: rgba(38, 38, 40, .92); --f7-tabbar-link-active-color: #5db2ff; --f7-list-button-text-color: #5db2ff; }
.ios.dark .button-tonal:not(.is-done) { color: var(--tonal-ink, #8cc8ff); }
.ios .fab a { box-shadow: 0 3px 10px rgba(0, 0, 0, .28) !important; }
.block-title + form > .list:first-child { margin-top: 0; }
.column #view > :first-child, .column #notice > :first-child { margin-top: 12px; }
.md { --f7-page-bg-color: #eef1f5; --f7-list-strong-bg-color: #fff; --f7-block-strong-bg-color: #fff; --f7-input-item-bg-color: var(--field-bg, #eef1f5); }
.md.dark { --f7-page-bg-color: #0c0e12; --f7-list-strong-bg-color: #1a1f26; --f7-block-strong-bg-color: #1a1f26; --f7-input-item-bg-color: var(--field-bg, #262d36); }
