:root{color-scheme:light;--orange:#f87922;--action:#e75b00;--deep:#b74604;--ink:#11151a;--muted:#77777b;--line:#eee9e5;--wash:#fff5ec;--verse-size:2.25rem}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#f5f3f1;color:var(--ink);font:1rem/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{max-width:760px;min-height:100vh;margin:auto;background:#fdfbf9;padding:38px 26px 122px}button,input,textarea,select{font:inherit}button{cursor:pointer;min-height:44px}button:disabled{opacity:.55;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #943800;outline-offset:4px}.icon{width:30px;height:30px;flex-shrink:0}.topbar{position:relative;margin-bottom:34px}.topbar h1{font:700 clamp(2rem,6vw,3.35rem)/.98 Georgia,serif;letter-spacing:-.025em;color:#d9360b;margin:0;padding-right:20px}.topbar p{font:700 clamp(1.3rem,4.2vw,2.1rem)/1.3 Georgia,serif;margin:10px 0 0}.settings-shortcut{position:absolute;right:0;top:0;border:0;background:transparent;color:var(--action);padding:0}.settings-shortcut .icon{width:36px;height:36px}h2{font:700 1.8rem/1.25 Georgia,serif;margin:24px 0 16px}h3{font-size:1.15rem}.frequency-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.frequency-grid button,.reading-options>button{border:1px solid #f66b32;border-radius:16px;background:#fff;color:var(--deep);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px 4px;font:1.35rem/1.1 Georgia,serif}.frequency-grid button .icon{width:40px;height:40px}.frequency-grid button[aria-pressed=true]{background:var(--action);border-color:var(--action);color:#fff}.verse-card{padding:24px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 2px 12px #3e241307;margin-top:24px}.verse-heading{display:flex;align-items:center;gap:12px}.verse-heading>.icon{color:var(--action);width:44px;height:44px}.verse-heading h3{font:700 1.5rem/1.2 Georgia,serif;margin:0}.verse-heading #today{margin-left:auto;color:var(--muted);font-size:.875rem;text-align:right}.verse-body{display:grid;grid-template-columns:minmax(0,1fr) 66px;gap:8px;align-items:center}blockquote{font:700 var(--verse-size)/1.2 Georgia,serif;margin:26px 0 10px;overflow-wrap:anywhere}.reference{font-size:1.2rem;color:var(--muted);margin:0 0 18px}.next-verse{padding:0;border:0;background:transparent;display:flex;align-items:center;flex-direction:column;gap:6px;color:var(--muted);font-size:.875rem;line-height:1.15}.next-circle{display:grid;place-items:center;border-radius:50%;width:56px;height:56px;background:var(--action);color:#fff;box-shadow:0 2px 8px #e75b0040}.listen-button{width:100%;padding:16px;background:var(--action);border:0;border-radius:15px;color:white;display:flex;align-items:center;justify-content:center;gap:20px;font:700 1.7rem/1.2 Georgia,serif}.listen-button .icon{width:38px;height:38px}.voice-options{display:flex;gap:8px;margin-top:16px}.voice-options button{flex:1;background:#fff;border:1px solid #edc4a8;border-radius:10px;color:var(--deep);font-size:.9rem;padding:8px}.voice-options button[aria-pressed=true]{background:var(--wash);border:2px solid var(--action);font-weight:700}.help,.footer-note,.demo-note{font-size:.875rem;color:var(--muted)}.help:empty{display:none}.reading-title{margin:22px 0 18px}.reading-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 1.14fr;gap:8px;align-items:stretch}.reading-options>button{font-size:1.05rem;min-height:132px;padding:12px 3px}.reading-options>button .icon{width:40px;height:40px}.reading-options>button[aria-pressed=true]{background:var(--wash);box-shadow:inset 0 0 0 1px var(--action)}.reading-options>.amen-button{background:var(--orange);color:#fff;border:3px solid white;border-radius:22px;outline:1px solid #ffc296;box-shadow:0 3px 16px #ef761c50;transform:translateY(-8px);min-height:148px;gap:2px;font:700 1.5rem/1 Georgia,serif}.amen-button strong{display:block;font-size:1.75rem;letter-spacing:.02em;color:#fff;text-shadow:0 1px 2px #963e00}.prayer-hands{font-size:2.6rem;line-height:1.3;filter:grayscale(1) brightness(0) invert(1)}.mode-panel{margin:16px 0}.mode-panel p{margin:8px 0}.mode-panel label{display:block}.status{font-size:.9rem;color:var(--muted);margin:14px 0}.status.success{padding:12px;background:#eef7f0;color:#285435;border-radius:10px}.status.error{padding:12px;background:#fff0eb;color:#9d2d16;border-radius:10px}.next-row{padding:4px 0 16px}.check-label{display:flex;align-items:center;gap:8px;font-size:.875rem;color:var(--muted)}.ad-placeholder{min-height:100px;background:#f1f1f1;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#878787;margin:8px 0 22px;gap:4px}.ad-placeholder small{font-size:.875rem}.routine-card{border-top:1px solid var(--line);padding-top:12px}.eyebrow{font-size:.875rem;color:var(--deep);font-weight:700;letter-spacing:.06em}.footer-note{text-align:center;border-top:1px solid var(--line);padding-top:20px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:12px 8px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e6e3df;background:#fff;z-index:10}.bottom-nav button{border:0;background:transparent;color:#929294;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding:4px 0;font-size:.875rem;min-width:0;overflow-wrap:anywhere}.bottom-nav .icon{width:34px;height:34px}.bottom-nav button[aria-current=page]{color:var(--action);font-weight:700}.bottom-nav button[aria-current=page] .icon{stroke-width:2.5}.option{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:14px;border-radius:14px;margin:10px 0;background:#fff}.option small{font-size:.875rem;color:var(--muted)}input[type=checkbox],input[type=radio]{accent-color:var(--action);width:20px;height:20px;flex-shrink:0}select,textarea,input[type=time]{padding:12px;border:1px solid #d6cec8;border-radius:12px;background:#fff;color:var(--ink);max-width:100%}select,textarea{width:100%;margin:8px 0 16px}textarea{resize:vertical}fieldset{border:0;padding:0;margin:26px 0}legend{font-weight:700;margin-bottom:6px}.time-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}.time-row label{max-width:65%}.primary,.secondary{padding:12px 18px;border-radius:12px;font-weight:700}.primary{background:var(--action);color:#fff;border:0;width:100%}.secondary{background:#fff;color:var(--deep);border:1px solid #edc4a8}.text-button{border:0;background:transparent;color:var(--deep);padding:8px 0;font-weight:600}.info-card{border-top:1px solid var(--line);margin-top:30px;font-size:.9rem;color:var(--muted)}#transcript{border-left:3px solid var(--orange);padding-left:12px}#transcript:empty{display:none}.menu-button{width:100%;justify-content:space-between}.verse-library button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;padding:18px;margin:12px 0;color:var(--ink)}.verse-library strong{color:var(--deep)}
@media(max-width:520px){.app-shell{padding:26px 14px 112px}.topbar{margin-bottom:28px}.topbar h1{padding-right:10px}.settings-shortcut .icon{width:28px;height:28px}h2{font-size:1.4rem}.frequency-grid{gap:7px}.frequency-grid button{font-size:1.07rem;min-height:105px;padding:12px 3px}.frequency-grid button .icon{width:32px;height:32px}.verse-card{padding:16px 12px}.verse-heading{gap:8px}.verse-heading h3{font-size:1.1rem}.verse-heading>.icon{width:30px;height:30px}.verse-heading #today{font-size:.875rem;max-width:100px}.verse-body{grid-template-columns:minmax(0,1fr) 54px}.next-circle{width:46px;height:46px}blockquote{font-size:calc(var(--verse-size)*.8)}.listen-button{font-size:1.35rem}.reading-options{gap:5px}.reading-options>button{font-size:.875rem;min-height:116px;border-radius:12px;overflow-wrap:anywhere}.reading-options>button .icon{width:30px;height:30px}.reading-options>.amen-button{min-height:132px;font-size:1.2rem;border-radius:16px}.amen-button strong{font-size:1.28rem}.prayer-hands{font-size:2rem}.bottom-nav{padding-inline:2px}.bottom-nav button{font-size:.875rem}.bottom-nav .icon{width:28px;height:28px}.time-row{flex-wrap:wrap}.time-row label{max-width:100%}}
@media(max-width:360px){.reading-options{grid-template-columns:repeat(4,minmax(0,1fr))}.reading-options>.amen-button{grid-column:1/-1;transform:none;min-height:64px;flex-direction:row;gap:12px}.amen-button strong{display:inline}.topbar h1{font-size:1.85rem}.bottom-nav button{hyphens:auto}.voice-options{flex-wrap:wrap}.voice-options button{flex-basis:100%}}

.bedtime-card{border:1px solid #edc4a8;border-radius:16px;padding:14px 16px;background:var(--wash);margin:16px 0}.bedtime-card .help{margin:6px 0}.bedtime-toggle{color:var(--deep);font-size:1rem;margin:12px 0}.bedtime-card .time-row{margin:12px 0}
.translation-label{display:block;color:var(--deep);font-size:.8rem;margin:0 0 12px}#backToChapter{display:block;text-align:left;margin-bottom:12px}.bible-search-row{display:flex;gap:8px;margin-top:8px}.bible-search-row input{width:100%;min-width:0;padding:12px;border:1px solid #d6cec8;border-radius:12px;background:#fff;color:var(--ink)}.bible-search-row button{flex-shrink:0}.bible-selectors{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:14px;margin-top:24px}.bible-selectors>div{min-width:0}.chapter-nav{display:flex;justify-content:space-between;gap:12px}.chapter-nav button{min-width:0}#chapterHeading{font:700 1.5rem/1.3 Georgia,serif;margin:26px 0 12px}#bibleView a,.info-card a{color:var(--deep);text-underline-offset:3px}#bibleSearchSection{padding:12px 0 24px;border-bottom:1px solid var(--line)}#bibleView .verse-library span{font-size:calc(var(--verse-size)*.5);line-height:1.6;overflow-wrap:anywhere}#bibleView .verse-library button:hover{border-color:var(--orange);background:var(--wash)}
@media(max-width:360px){.bible-selectors{grid-template-columns:1fr;gap:0}.chapter-nav button{font-size:.9rem;padding:10px}.bible-search-row{flex-wrap:wrap}.bible-search-row button{width:100%}}
.chat-shortcut{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;margin:16px 0 12px;padding:16px;border:1px solid #efb98f;border-radius:14px;background:var(--wash);color:var(--deep);text-align:left}.chat-shortcut strong{display:block;font-size:1rem}.chat-shortcut small{display:block;font-size:.875rem;margin-top:3px;font-weight:400}.chat-shortcut-icon{font-size:1.6rem}.chat-shortcut>span:nth-last-child(2){flex:1}.chat-setup{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;margin:20px 0}.chat-setup progress{width:100%;height:16px;accent-color:var(--action);margin-top:16px}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);font-size:.875rem;color:var(--muted);margin-top:24px}.chat-messages{display:flex;flex-direction:column;gap:18px;margin:18px 0}.chat-message{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff;overflow-wrap:anywhere}.chat-message.user{background:var(--wash);border-color:#f1d1b8;margin-left:30px}.chat-message-label{display:block;color:var(--deep);font-size:.875rem}.chat-message p{margin:10px 0;white-space:pre-wrap}.chat-message h3{font-size:1rem;margin:18px 0 8px}.chat-source{display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;border:0;border-left:3px solid var(--orange);padding:12px 14px;margin:12px 0;background:#fdf8f3;border-radius:0 10px 10px 0;color:var(--ink)}.chat-source strong,.chat-source small{color:var(--deep);font-size:.875rem}.chat-source span{font-size:1rem;line-height:1.6}.chat-actions{display:flex;gap:10px;align-items:center}.chat-actions .secondary{flex-shrink:0}#chatScriptureOnly{text-align:left}#bibleChatForm{margin-top:24px}#chatView .help{color:#68686b}
@media(max-width:420px){.chat-message{padding:14px}.chat-message.user{margin-left:16px}.chat-actions{flex-wrap:wrap}.chat-actions .secondary{width:100%}.bottom-nav button span{text-align:center}}

.chat-setup .config-check{display:flex;align-items:flex-start;gap:10px;line-height:1.5;font-size:16px;margin:16px 0}.chat-setup .config-check input{width:20px;height:20px;flex-shrink:0}.chat-setup details{margin-top:18px}.chat-setup summary{cursor:pointer;font-size:16px}.chat-setup>button{margin-top:12px}

/* Focused chat layout; the devotional home retains its original design. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-shell.chat-active{height:100dvh;min-height:0;padding:0 24px calc(98px + env(safe-area-inset-bottom));background:#fff;overflow:hidden}
.chat-active>.topbar{display:none}.chat-active>main{height:100%;min-height:0}
#chatView{height:100%;min-height:0;display:flex;flex-direction:column;background:#fff}
.chat-header{display:flex;align-items:center;gap:10px;flex-shrink:0;min-height:68px;padding-top:8px}
#chatTitle{font:600 1.2rem/1.4 system-ui,sans-serif;margin:0;flex:1}
.chat-icon-button{display:grid;place-items:center;background:transparent;color:#444;border:0;width:44px;height:44px;border-radius:12px;padding:10px}.chat-icon-button svg{width:24px;height:24px}.chat-icon-button:hover{background:#f4f4f4}
.chat-options{align-self:stretch;flex-shrink:0;border:0;margin:0 0 8px;font-size:.875rem}.chat-options>summary{cursor:pointer;color:var(--deep);width:fit-content;padding:10px 12px;border-radius:20px;min-height:44px}.chat-options>summary:hover{background:var(--wash)}.chat-options-body{max-height:40dvh;overflow-y:auto;padding:0 4px 10px}.chat-options .chat-setup{margin:8px 0 12px}.chat-options a{color:var(--deep)}
.chat-thread{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 4px 12px;scrollbar-width:thin}
.chat-welcome{margin:auto;text-align:center;padding:30px 8px}.chat-welcome h3{font:600 clamp(1.5rem,5vw,2rem)/1.3 system-ui,sans-serif;margin:0 0 10px}.chat-welcome p{color:#747474;font-size:1rem;margin:0}
#chatView .chat-messages{gap:28px;margin:8px 0 18px}#chatView .chat-messages:empty{display:none}
#chatView .chat-message{border:0;background:transparent;padding:0;border-radius:0;line-height:1.7;min-width:0}
#chatView .chat-message.user{align-self:flex-end;background:#f3f3f3;border:0;margin:0;max-width:85%;border-radius:22px;padding:12px 18px}
#chatView .chat-message.user .chat-message-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#chatView .chat-message.user p{margin:0}
#chatView .chat-message.assistant{max-width:100%;align-self:stretch;padding:0 4px}#chatView .chat-message-label{color:#666;font-weight:500}#chatView .chat-message h3{font-size:.875rem;color:#68686b;font-weight:500;margin:12px 0 8px}
.chat-composer-area{flex-shrink:0;background:#fff;padding-top:8px}#chatView #bibleChatForm{margin:0;border:1px solid #e5e5e5;border-radius:26px;padding:12px 14px 10px;background:#f8f8f8;box-shadow:0 2px 9px #00000005}#chatView #bibleChatForm:focus-within{border-color:#c7c7c7}
#chatView #bibleChatInput{display:block;border:0;background:transparent;box-shadow:none;outline:none;padding:4px 6px;margin:0;resize:none;min-height:38px;max-height:140px;font-size:1rem;line-height:1.5;overflow-y:auto}#chatView #bibleChatInput::placeholder{color:#737373}
.chat-compose-actions{display:flex;align-items:center;gap:8px;margin-top:6px}.chat-search-button{margin-right:auto;background:transparent;border:0;border-radius:18px;padding:6px 10px;color:#626262;font-size:.875rem}.chat-search-button:hover{background:#ededed}
.chat-send-button{display:grid;place-items:center;border:0;border-radius:50%;width:44px;height:44px;min-height:44px;flex-shrink:0;background:var(--orange);color:#fff;padding:10px}.chat-send-button svg{width:24px;height:24px}.chat-send-button:disabled{background:#e8e8e8;color:#888;opacity:1}
#chatReplyStatus{font-size:.875rem;margin:6px 4px;max-height:3.2em;overflow:auto}.chat-footnote{text-align:center;font-size:.875rem;color:#777;line-height:1.4;margin:8px 0 0}
@media(max-width:520px){.app-shell.chat-active{padding:0 12px calc(94px + env(safe-area-inset-bottom))}.chat-header{min-height:58px}.chat-thread{padding-inline:2px}#chatView .chat-message.user{max-width:92%}.chat-footnote{font-size:.8125rem}}

.plan-strip{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 .5rem;font-size:.9rem;color:var(--muted,#666)}
.plan-strip .text-button{margin:0}#planStatus:empty{display:none}#settingsForm details{margin-top:1rem}#settingsForm summary{cursor:pointer;font-size:1rem}#settingsForm details p{font-size:.9rem;line-height:1.6}
