:root {
  color-scheme: light;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --text: #17212b;
  --muted: #64748b;
  --primary: #16324f;
  --primary-contrast: #ffffff;
  --accent: #d9a441;
  --border: #dbe3ea;
  --shadow: 0 12px 30px rgba(22, 50, 79, 0.10);
  --danger: #a33a3a;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1620;
  --surface: #142331;
  --text: #eef5f8;
  --muted: #aebfcb;
  --primary: #68b8b0;
  --primary-contrast: #071319;
  --accent: #e5b95f;
  --border: #2b4152;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100% - 28px, 720px); margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) 0 calc(36px + env(safe-area-inset-bottom)); }
.topbar, .section-heading, .result-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.9rem, 7vw, 2.8rem); }
h2 { margin-bottom: 18px; font-size: 1.25rem; }
.eyebrow { margin-bottom: 4px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card { margin-top: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
label { display: block; margin: 16px 0 8px; font-weight: 750; }
select, input { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 13px; }
select:focus, input:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 2px; }
.icon-button { width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 50%; color: var(--text); background: var(--surface); }
.mic-button { display: grid; place-items: center; gap: 8px; width: 190px; height: 190px; margin: 26px auto 12px; border: 8px solid color-mix(in srgb, var(--primary) 18%, transparent); border-radius: 50%; color: var(--primary-contrast); background: var(--primary); box-shadow: 0 16px 35px color-mix(in srgb, var(--primary) 28%, transparent); font-weight: 850; }
.mic-button.listening { animation: pulse 1.25s infinite; }
.mic-icon { font-size: 3.2rem; }
.helper, .muted { color: var(--muted); }
.helper { text-align: center; line-height: 1.5; }
.recognized { margin: 20px 0; padding: 14px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border-radius: 14px; }
.recognized span { display: block; color: var(--muted); font-size: .82rem; }
.recognized strong { display: block; margin-top: 3px; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.primary-button, .secondary-button { min-height: 50px; border-radius: 13px; font-weight: 800; }
.primary-button { padding: 0 20px; border: 0; color: var(--primary-contrast); background: var(--primary); }
.secondary-button { padding: 10px 14px; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.text-button { padding: 6px; border: 0; color: var(--primary); background: transparent; font-weight: 800; }
.status { min-height: 24px; margin: 14px 0 0; color: var(--muted); }
.status.error { color: var(--danger); }
.result-card { border-top: 5px solid var(--accent); }
.verse-text { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 4.7vw, 1.48rem); line-height: 1.75; }
.verse-line { margin-bottom: 12px; }
.verse-number { margin-right: 6px; color: var(--primary); font-family: system-ui, sans-serif; font-size: .72em; font-weight: 850; vertical-align: super; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.section-heading h2 { margin-bottom: 0; }
.history-list { display: grid; gap: 9px; margin-top: 16px; }
.history-item { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: transparent; text-align: left; }
.history-item span:last-child { color: var(--muted); font-size: .84rem; }
.hidden { display: none; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (max-width: 560px) {
  .action-grid { grid-template-columns: 1fr; }
  .input-row { grid-template-columns: 1fr; }
  .primary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

.build-number { text-align:center; opacity:.55; font-size:.75rem; margin:1rem 0 0; }

html { scroll-behavior: smooth; }
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 750;
}
.loading-indicator.hidden { display: none; }
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.result-card { padding: clamp(22px, 5vw, 34px); }
.result-heading { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.result-heading h2 { margin-bottom: 0; font-size: clamp(1.55rem, 6vw, 2.1rem); }
.verse-text {
  max-width: 62ch;
  margin: 24px auto 0;
  font-size: clamp(1.38rem, 5.4vw, 1.72rem);
  line-height: 1.9;
  letter-spacing: .005em;
  text-wrap: pretty;
}
.verse-line { margin: 0 0 1.05em; }
.verse-number {
  display: inline-block;
  min-width: 1.45em;
  margin-right: .25em;
  color: var(--primary);
  font-size: .66em;
  line-height: 1;
}
.read-controls { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 10px; margin-top: 28px; }
.read-controls .secondary-button:first-child { color: var(--primary-contrast); background: var(--primary); border-color: var(--primary); }
.secondary-button:disabled { cursor: not-allowed; opacity: .46; }
.secondary-actions { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
.settings-card { margin: 18px 2px 0; color: var(--muted); font-size: .86rem; }
.settings-card summary { cursor: pointer; width: fit-content; font-weight: 750; }
.settings-version { margin: 8px 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .read-controls { grid-template-columns: 1fr 1fr; }
  .read-controls .secondary-button:first-child { grid-column: 1 / -1; }
  .secondary-actions { grid-template-columns: 1fr; }
}

/* Build 1.0.8 Compare Mode */
.app-shell { width: min(100% - 28px, 960px); }
.passages-layout { display: grid; gap: 0; }
.passage-panel { min-width: 0; }
.compare-panel {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.compare-panel summary {
  cursor: pointer;
  width: fit-content;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 850;
}
.compare-panel[open] summary { margin-bottom: 8px; }
.compare-panel label { margin-top: 12px; }
.comparison-passage {
  opacity: 1;
  transition: opacity 240ms ease, transform 240ms ease;
}
.comparison-passage.is-switching {
  opacity: .2;
  transform: translateY(4px);
}
.comparison-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.comparison-actions .text-button {
  grid-column: 1 / -1;
  justify-self: center;
}
.comparison-text:empty { margin-top: 0; }

@media (min-width: 760px) {
  .passages-layout.comparing {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }
  .passages-layout.comparing .comparison-passage {
    padding-left: 30px;
    border-left: 1px solid var(--border);
  }
  .passages-layout.comparing .verse-text {
    font-size: clamp(1.18rem, 2.15vw, 1.48rem);
    line-height: 1.82;
  }
  .passages-layout.comparing .read-controls {
    grid-template-columns: 1fr 1fr;
  }
  .passages-layout.comparing .read-controls .secondary-button:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 759px) {
  .comparison-passage {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid var(--accent);
  }
}

/* Build 1.0.9 desktop comparison layout and stylesheet cache fix */
@media screen and (min-width: 700px) {
  #passagesLayout.comparing {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 32px;
    align-items: start;
  }
  #passagesLayout.comparing > .original-passage,
  #passagesLayout.comparing > .comparison-passage {
    width: auto;
    min-width: 0;
  }
  #passagesLayout.comparing > .comparison-passage {
    margin-top: 0;
    padding-top: 0;
    padding-left: 32px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

/* Build 1.0.10 passage control alignment */
.passage-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.passage-control-grid .full-width-control {
  grid-column: 1 / -1;
  width: 100%;
}

.comparison-actions .text-button {
  min-height: 44px;
  justify-self: stretch;
}


/* Build 1.0.14 voice guidance */
.voice-guidance {
  margin: 0.75rem 0 0;
  color: var(--muted);
  text-align: center;
}
.voice-guidance-lead {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}
.voice-example-primary {
  margin: 0.3rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
}
.voice-examples {
  margin-top: 0.45rem;
}
.voice-examples summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  list-style: none;
}
.voice-examples summary::-webkit-details-marker { display: none; }
.voice-examples summary::before {
  content: "▾";
  margin-right: 0.35rem;
  transition: transform 200ms ease;
}
.voice-examples[open] summary::before { transform: rotate(180deg); }
.voice-examples .hide-label { display: none; }
.voice-examples[open] .more-label { display: none; }
.voice-examples[open] .hide-label { display: inline; }
.voice-example-list {
  display: grid;
  gap: 0.45rem;
  max-width: 34rem;
  margin: 0.45rem auto 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 88%, var(--primary) 12%);
  text-align: left;
  animation: voiceExamplesIn 200ms ease both;
}
.voice-example-list p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}
@keyframes voiceExamplesIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Build 1.0.15 AskBaileyAI and VideoBizCard brand alignment */
:root {
  --bg: #F8FBFF;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --primary: #06B6D4;
  --primary-contrast: #FFFFFF;
  --accent: #FFBF00;
  --border: #D6E8F2;
  --shadow: 0 12px 30px rgba(6, 21, 47, 0.12);
  --danger: #B42318;
  --navy: #06152F;
  --navy-2: #0F172A;
  --blue: #06B6D4;
  --blue-soft: #ECFEFF;
  --pink: #EC4899;
  --gold: #FFBF00;
  --card: #FFFFFF;
}

:root[data-theme="dark"] {
  --bg: #071426;
  --surface: #0D2038;
  --text: #F8FBFF;
  --muted: #A8BED0;
  --primary: #22D3EE;
  --primary-contrast: #06152F;
  --accent: #FFBF00;
  --border: #24425C;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  --navy: #F8FBFF;
  --navy-2: #E7F5FB;
  --blue: #22D3EE;
  --blue-soft: #102E45;
  --pink: #F472B6;
  --gold: #FFD34D;
  --card: #0D2038;
}

body {
  background:
    radial-gradient(circle at 88% 8%, rgba(6, 182, 212, 0.13), transparent 30%),
    radial-gradient(circle at 8% 92%, rgba(236, 72, 153, 0.08), transparent 28%),
    var(--bg);
}

h1, h2, .result-heading h2 { color: var(--navy); }
.eyebrow { color: var(--blue); }

.card {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.controls-card {
  position: relative;
  overflow: hidden;
}
.controls-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--gold));
}

.icon-button {
  color: var(--navy);
  border-color: rgba(6, 182, 212, 0.28);
  background: var(--blue-soft);
}
.icon-button:hover { border-color: var(--blue); }

.mic-button {
  border-color: rgba(255, 191, 0, 0.72);
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow:
    0 0 0 8px rgba(6, 182, 212, 0.10),
    0 18px 38px rgba(6, 21, 47, 0.20);
}
.mic-button:hover { transform: translateY(-1px); }
.mic-button.listening {
  box-shadow:
    0 0 0 9px rgba(255, 191, 0, 0.16),
    0 18px 38px rgba(236, 72, 153, 0.25);
}

.voice-guidance {
  max-width: 38rem;
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(6, 182, 212, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue-soft), color-mix(in srgb, var(--surface) 92%, var(--blue) 8%));
}
.voice-example-primary { color: var(--navy); }
.voice-examples summary, .text-button, .compare-panel summary { color: var(--blue); }
.voice-example-list { background: var(--surface); }

.recognized {
  border: 1px solid rgba(6, 182, 212, 0.22);
  background: var(--blue-soft);
}
.recognized strong { color: var(--navy); }

select:focus, input:focus, button:focus-visible {
  outline-color: rgba(255, 191, 0, 0.75);
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 8px 18px rgba(6, 182, 212, 0.20);
}
.primary-button:hover { filter: brightness(1.03); }

.secondary-button {
  color: var(--navy);
  border-color: rgba(6, 182, 212, 0.24);
  background: var(--blue-soft);
}
.secondary-button:hover:not(:disabled) {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue-soft) 82%, var(--blue) 18%);
}

#readButton, #comparisonReadButton {
  color: #FFFFFF;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--pink));
}

#againButton {
  color: #06152F;
  border-color: var(--gold);
  background: var(--gold);
}

.result-card {
  border-top-color: var(--gold);
}
.result-heading {
  border-bottom-color: var(--border);
}
.verse-number { color: var(--pink); }

.compare-panel {
  border-top-color: var(--border);
}
.comparison-passage {
  border-color: var(--border) !important;
}

.history-item:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.loading-indicator { color: var(--blue); }
.spinner {
  border-color: rgba(6, 182, 212, 0.22);
  border-top-color: var(--pink);
}

.settings-card summary { color: var(--navy); }

:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] #readButton,
:root[data-theme="dark"] #comparisonReadButton {
  color: #FFFFFF;
}
:root[data-theme="dark"] #againButton { color: #06152F; }
:root[data-theme="dark"] .voice-guidance,
:root[data-theme="dark"] .recognized,
:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .history-item:hover {
  background: #102E45;
}



/* Build 1.0.16 automatic day and night appearance */
.theme-setting {
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--blue-soft);
}
.theme-setting label { margin-top: 0; }
.theme-setting select { background: var(--surface); }
.settings-hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
:root[data-theme-mode="auto"] .icon-button {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent);
}

/* Build 1.1.0: Today's Walk with God */
.daily-walk-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 191, 0, 0.42);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--gold) 6%), var(--surface));
}
.daily-walk-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 0, 0.18), rgba(6, 182, 212, 0.06) 55%, transparent 72%);
  pointer-events: none;
}
.daily-walk-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.daily-walk-heading h2 { margin-bottom: 5px; }
.daily-date { margin: 0; color: var(--muted); font-weight: 650; }
.reading-time {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(6, 182, 212, 0.24);
  border-radius: 999px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 800;
}
.daily-walk-intro {
  position: relative;
  max-width: 58ch;
  margin: 16px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}
.daily-walk-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.20);
  font-weight: 850;
}
.daily-walk-button:disabled { opacity: 0.65; cursor: wait; }
.daily-walk-content {
  margin-top: 22px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.daily-section {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.daily-section p:last-child { margin-bottom: 0; }
.daily-section-label {
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.daily-scripture-section {
  border-left: 5px solid var(--gold);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--blue-soft) 35%, var(--surface)));
}
.daily-scripture-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
}
.daily-translation { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }
.daily-scripture-text {
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.72;
}
.daily-verse-line { margin: 0 0 0.75em; }
.daily-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.encouragement-section { border-left: 5px solid var(--pink); }
.prayer-section { border-left: 5px solid var(--blue); background: var(--blue-soft); }
.reflect-section { border-left: 5px solid var(--gold); background: color-mix(in srgb, var(--surface) 88%, var(--gold) 12%); }
.reflect-section p:last-child { font-size: 1.08rem; font-weight: 750; line-height: 1.55; }
.tomorrow-note {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.close-daily-button { display: block; margin: 4px auto 0; }
:root[data-theme="dark"] .daily-walk-card { background: linear-gradient(145deg, #0b2035, var(--surface)); }
:root[data-theme="dark"] .daily-section { background: #0e263a; }
:root[data-theme="dark"] .daily-scripture-section { background: linear-gradient(180deg, #102e45, #0e263a); }
:root[data-theme="dark"] .prayer-section { background: #102e45; }
:root[data-theme="dark"] .reflect-section { background: #2a2718; }
@media (max-width: 560px) {
  .daily-walk-heading { flex-direction: column; }
  .reading-time { align-self: flex-start; }
  .daily-control-grid { grid-template-columns: 1fr; }
}

.devotion-note {
  margin: 8px auto 4px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}


/* Walk by His Word Build 1.2.1: install and share */
.share-app-card {
  border-color: rgba(6, 182, 212, 0.34);
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--blue-soft) 64%, var(--surface)));
}
.share-app-heading { display: flex; align-items: center; gap: 14px; }
.share-app-heading h2 { margin: 2px 0 0; }
.share-app-icon {
  width: 68px; height: 68px; flex: 0 0 auto; border-radius: 17px;
  box-shadow: 0 10px 24px rgba(6, 21, 47, 0.22);
}
.share-app-copy { margin: 16px 0; color: var(--muted); line-height: 1.6; }
.share-app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-app-actions .full-width-control { grid-column: 1 / -1; }
.share-app-actions button { min-height: 50px; }
.install-dialog {
  width: min(92vw, 440px); padding: 0; border: 0; border-radius: 22px;
  color: var(--text); background: var(--surface); box-shadow: 0 24px 80px rgba(6, 21, 47, 0.38);
}
.install-dialog::backdrop { background: rgba(6, 21, 47, 0.68); backdrop-filter: blur(3px); }
.install-dialog-content { position: relative; padding: 28px; text-align: center; }
.install-dialog-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 28px rgba(6, 21, 47, 0.22); }
.install-dialog h2 { margin: 15px 0 10px; }
.install-help-steps { text-align: left; color: var(--muted); line-height: 1.55; }
.install-help-steps li { margin: 9px 0; }
.dialog-close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent;
  font-size: 1.7rem; line-height: 1;
}
.install-dialog .primary-button { width: 100%; margin-top: 12px; }
:root[data-theme="dark"] .share-app-card { background: linear-gradient(145deg, #0b2035, #102e45); }
:root[data-theme="dark"] .install-dialog { color: var(--text); background: #0e263a; }
@media (max-width: 560px) {
  .share-app-actions { grid-template-columns: 1fr; }
  .share-app-actions .full-width-control { grid-column: auto; }
  .share-app-icon { width: 60px; height: 60px; border-radius: 15px; }
}


/* Walk by His Word Build 1.3.1: first-time welcome and beta polish */
.welcome-dialog {
  width: min(92vw, 520px);
  max-height: min(90vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 26px 90px rgba(6, 21, 47, 0.42);
}
.welcome-dialog::backdrop {
  background: rgba(6, 21, 47, 0.72);
  backdrop-filter: blur(4px);
}
.welcome-dialog-content {
  position: relative;
  padding: 28px;
  text-align: center;
  overflow-y: auto;
}
.welcome-app-icon {
  width: 94px;
  height: 94px;
  border-radius: 23px;
  box-shadow: 0 12px 30px rgba(6, 21, 47, 0.25);
}
.welcome-dialog .eyebrow { margin-top: 15px; }
.welcome-dialog h2 { margin: 3px 0 10px; font-size: clamp(1.7rem, 5vw, 2.15rem); }
.welcome-lead {
  max-width: 42ch;
  margin: 0 auto 20px;
  color: var(--muted);
  line-height: 1.6;
}
.welcome-steps {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  text-align: left;
}
.welcome-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--blue-soft);
}
.welcome-step-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--surface);
  font-size: 1.25rem;
}
.welcome-step strong,
.welcome-step span { display: block; }
.welcome-step strong { margin: 1px 0 3px; color: var(--navy); }
.welcome-step div span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.welcome-actions { display: grid; gap: 10px; }
.welcome-actions button { width: 100%; min-height: 50px; }
.welcome-actions .text-button { min-height: 42px; }
.welcome-highlight {
  animation: welcomePulse 0.8s ease-in-out 3;
  position: relative;
  z-index: 1;
}
@keyframes welcomePulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(6, 182, 212, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(255, 191, 0, 0.30), 0 14px 30px rgba(6, 182, 212, 0.34); }
}
:root[data-theme="dark"] .welcome-dialog { background: #0e263a; }
:root[data-theme="dark"] .welcome-step { background: #102e45; }
:root[data-theme="dark"] .welcome-step-icon { background: #0e263a; }
@media (max-width: 560px) {
  .welcome-dialog-content { padding: 24px 18px 20px; }
  .welcome-app-icon { width: 82px; height: 82px; border-radius: 20px; }
  .welcome-step { padding: 12px; }
}

/* Dialog fallback for private browsing or browsers without showModal support */
.welcome-dialog.dialog-fallback-open {
  display: block;
  position: fixed;
  inset: 0;
  width: min(92vw, 560px);
  height: fit-content;
  max-height: 92vh;
  margin: auto;
  z-index: 9999;
  overflow: auto;
}
.welcome-dialog.dialog-fallback-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(3, 12, 28, 0.72);
  z-index: -1;
}


/* Build 1.3.2 feature instructions */
.feature-guide > summary {
  position: relative;
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
  list-style: none;
  padding-left: 1.45rem;
}
.feature-guide > summary::-webkit-details-marker { display: none; }
.feature-guide > summary::before {
  content: "▸";
  position: absolute;
  left: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}
.feature-guide[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
}
.feature-guide[open] > summary { margin-bottom: 0.9rem; }
.feature-guide-content { display: grid; gap: 0.75rem; }
.feature-guide-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.feature-guide-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.feature-guide-item > span {
  font-size: 1.2rem;
  line-height: 1.3;
  text-align: center;
}
.feature-guide-item strong { color: var(--navy); }
.feature-guide-item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
:root[data-theme="dark"] .feature-guide > summary,
:root[data-theme="dark"] .feature-guide-item strong { color: var(--text); }


/* Build 1.3.5 daily share controls */
.daily-share-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.78rem 1rem;
  border: 1px solid #15803d;
  border-radius: 0.8rem;
  background: #16a34a;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.2);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.daily-share-section-button:hover {
  background: #15803d;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
}
.daily-share-section-button:active { transform: translateY(1px); }
.daily-share-section-button:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.3);
  outline-offset: 2px;
}
