/* Zolai GPT web app — the Android app's design, taken from its code:
   colours from brand/Theme.kt (Palette), Google Sans Flex + Instrument Serif,
   pill shapes, the Welcome orb fountain, Gemini-style Live and the navy Plans page. */
@font-face{font-family:GSF;src:url(/app/fonts/google-sans-flex.woff2) format('woff2');font-weight:1 1000;font-display:swap}
@font-face{font-family:ISerif;src:url(/app/fonts/instrument-serif.woff2) format('woff2');font-display:swap}
@font-face{font-family:MM;src:url(/assets/fonts/noto-sans-myanmar-myanmar-wght-normal.woff2) format('woff2');font-weight:100 900;font-display:swap}
:root{
  --bg:#f8f9fb;--surface:#ffffff;--high:#eef1f5;--text:#1b1c1e;--muted:#6b6e75;--accent:#16171a;--onaccent:#fff;
  --soft:#dce8fd;--onsoft:#0e3e9e;--line:#dcdfe4;--danger:#d93025;--scrim:rgba(0,0,0,.32);--glow:#bfd6fb;--link:#1a62e8;
  --safe-t:env(safe-area-inset-top);--safe-b:env(safe-area-inset-bottom);
  --pill:999px;--tile:20px;color-scheme:light
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0f1012;--surface:#1e1f23;--high:#2a2c31;--text:#ecedef;--muted:#a1a5ad;--accent:#f2f3f5;--onaccent:#111214;
  --soft:#1d355e;--onsoft:#cfe0ff;--line:#3a3d43;--danger:#ff6b60;--scrim:rgba(0,0,0,.54);--glow:#203f78;--link:#8ab4f8;color-scheme:dark}}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font:16px/26px GSF,MM,system-ui,-apple-system,sans-serif;overscroll-behavior:none}
body{overflow:hidden}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
a{color:inherit}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.serif{font-family:ISerif,MM,Georgia,serif;font-weight:400}
.muted{color:var(--muted)}
.screen{position:fixed;inset:0;display:flex;flex-direction:column}
.logo{display:block}
@media (prefers-color-scheme:dark){.logo,.bot-mark{filter:invert(1)}}
.splash{align-items:center;justify-content:center;background:var(--bg)}
.splash .logo{animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.06)}}

/* ---------- Welcome ---------- */
.welcome{background:#f1f1f2;color:#111214;overflow:hidden}
.orbs{position:absolute;inset:0;pointer-events:none}
.orb-b{position:absolute;border-radius:50%;display:grid;place-items:center;color:#fff;box-shadow:0 8px 18px rgba(0,0,0,.18);opacity:0;transform:translate(var(--fx),var(--fy)) scale(.2);animation:pop .9s cubic-bezier(.2,.9,.3,1.2) forwards,bob 5s ease-in-out infinite alternate;animation-delay:var(--d),calc(var(--d) + .9s)}
.orb-b::after{content:"";position:absolute;inset:6% 18% 50% 18%;border-radius:50%;background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,0))}
.orb-b svg{width:46%;height:46%;stroke:#fff;stroke-width:2;position:relative;z-index:1}
@keyframes pop{to{opacity:1;transform:translate(0,0) scale(1)}}
@keyframes bob{from{translate:0 0}to{translate:0 -8px}}
.plus{position:absolute;left:50%;top:40%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 10px 24px rgba(0,0,0,.2);z-index:2}
.plus svg{width:28px;height:28px;stroke-width:2.2}
.welcome-text{position:absolute;left:28px;right:28px;top:calc(40% + 48px);text-align:center;z-index:2;animation:rise .7s ease-out both .2s}
.welcome-text h1{margin:0;font-size:28px;line-height:36px;font-weight:500;letter-spacing:-.01em}
@keyframes rise{from{opacity:0;transform:translateY(24px)}}
.welcome-bottom{position:absolute;left:0;right:0;bottom:0;padding:0 18px calc(14px + var(--safe-b));display:flex;flex-direction:column;align-items:center;gap:10px;z-index:3;max-width:520px;margin:0 auto}
.pill{width:100%;height:56px;border-radius:var(--pill);display:flex;align-items:center;justify-content:center;gap:12px;font-size:17px;font-weight:500;text-decoration:none}
.pill.light{background:#fff;color:#111214;box-shadow:0 4px 14px rgba(0,0,0,.1)}
.pill.black{background:#111214;color:#fff}
.pill:disabled{opacity:.5}
.gmark svg{width:20px;height:20px;stroke:none;display:block}
#emailForm{width:100%;display:flex;flex-direction:column;gap:10px}
#emailForm input{width:100%;height:54px;border-radius:var(--pill);border:1px solid #dcdfe4;background:#fff;padding:0 22px;font-size:16px;color:#111214}
#emailForm input:focus{outline:none;border-color:#111214}
.small-link{font-size:14px;color:#1a62e8;text-align:center;text-decoration:none}
.agree{display:flex;align-items:center;gap:10px;font-size:12.5px;line-height:18px;color:#6b6e76;margin-top:2px}
.agree input{width:20px;height:20px;accent-color:#111214;flex:none}
.agree a{color:#111214;text-decoration:underline}
.agree.nudge{animation:shake .4s}
.agree.nudge input{outline:2px solid #e53935;outline-offset:1px}
@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.fine{margin:0;font-size:12px;color:#6b6e76;text-align:center}
.status{margin:0;min-height:18px;font-size:13px;line-height:18px;color:#c62828;text-align:center}
.status.ok{color:#6b6e76}
.lang-row{display:flex;gap:2px;background:rgba(0,0,0,.06);border-radius:var(--pill);padding:3px;width:max-content;margin:0 auto}
.lang-row button{padding:5px 14px;border-radius:var(--pill);font-size:13px;color:var(--muted)}
.lang-row button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.14)}
.welcome .lang-row button[aria-pressed=true]{background:#fff;color:#111214}

/* ---------- Home / chat ---------- */
.main{background:linear-gradient(180deg,var(--bg) 0%,var(--bg) 55%,color-mix(in srgb,var(--glow) 55%,var(--bg)) 100%)}
.top{display:flex;align-items:center;gap:2px;padding:calc(4px + var(--safe-t)) 4px 4px 6px;z-index:6}
.icon-btn{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--text)}
.icon-btn:active{background:color-mix(in srgb,var(--text) 8%,transparent)}
.icon-btn.small{width:36px;height:36px}
.icon-btn.small svg{width:19px;height:19px}
.model-btn{flex:1;display:flex;align-items:center;gap:8px;min-width:0;padding:8px 4px;font-size:20px;line-height:28px;font-weight:500}
.model-btn b{color:var(--muted);font-weight:500;white-space:nowrap}
.model-btn svg{width:20px;height:20px;color:var(--muted);margin-left:-4px}
.install{display:flex;align-items:center;gap:8px;margin:2px 14px 0;padding:10px 6px 10px 16px;border-radius:var(--tile);background:var(--surface);border:1px solid var(--line);font-size:14px;line-height:20px}
.install-text{flex:1}
.install .share svg{width:17px;height:17px;vertical-align:-3px;color:var(--link)}
.scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:8px 20px 16px;display:flex;flex-direction:column}
.empty{margin:auto 0;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:0 12px}
.empty h2{margin:0;font-size:34px;line-height:40px;max-width:520px}
.msgs{max-width:760px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:22px}
.msgs:empty{display:none}
.msg.user{align-self:flex-end;max-width:84%;background:var(--high);border-radius:24px;padding:12px 18px;white-space:pre-wrap;word-wrap:break-word}
.msg.user img{max-width:200px;max-height:200px;border-radius:16px;display:block;margin:2px 0 8px}
.msg.bot{width:100%}
.bot-mark{width:24px;height:24px;display:block;margin-bottom:8px}
.bot-model{font-size:12px;color:var(--muted);margin:-4px 0 4px}
.md{word-wrap:break-word;overflow-wrap:anywhere;font-size:16px;line-height:26px}
.md p{margin:0 0 12px}
.md>:last-child{margin-bottom:0}
.md h1,.md h2,.md h3{font-weight:600;margin:18px 0 8px}
.md h1{font-size:22px;line-height:30px}.md h2{font-size:20px;line-height:28px}.md h3{font-size:17px;line-height:24px}
.md ul,.md ol{padding-left:22px;margin:4px 0 12px}
.md li{margin:4px 0}
.md a{color:var(--link);text-decoration:none}
.md code{background:var(--high);padding:2px 6px;border-radius:6px;font-size:14px}
.md pre{background:var(--high);border-radius:var(--tile);padding:14px 16px;overflow-x:auto}
.md pre code{background:none;padding:0}
.md blockquote{margin:8px 0;padding:2px 0 2px 14px;border-left:3px solid var(--line);color:var(--muted)}
.md table{border-collapse:collapse;display:block;overflow-x:auto;margin:8px 0;font-size:14px}
.md th,.md td{border:1px solid var(--line);padding:8px 12px;text-align:left}
.md th{background:var(--high);font-weight:600}
.md img{max-width:100%;border-radius:16px}
.cursor::after{content:"";display:inline-block;width:10px;height:10px;margin-left:4px;border-radius:50%;background:var(--text);animation:blink 1s infinite}
@keyframes blink{50%{opacity:.2}}
.thinking{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px}
.shimmer{background:linear-gradient(90deg,var(--muted) 30%,var(--text) 50%,var(--muted) 70%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shim 1.4s linear infinite}
@keyframes shim{to{background-position:-200% 0}}
.actions{display:flex;align-items:center;gap:2px;margin:10px 0 0 -12px;color:var(--muted);flex-wrap:wrap}
.actions .icon-btn{width:40px;height:40px;color:var(--muted)}
.actions .icon-btn.on{color:var(--text)}
.actions svg{width:20px;height:20px}
.src-chip{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px 0 6px;border-radius:var(--pill);font-size:13px;color:var(--muted)}
.src-chip:active{background:var(--high)}
.favs{display:flex}
.favs img,.favs i{width:20px;height:20px;border-radius:50%;background:var(--surface);border:2px solid var(--bg);margin-left:-6px;display:block}
.favs :first-child{margin-left:0}
.fu{margin-top:12px;border:1px solid var(--line);border-radius:var(--tile);overflow:hidden;background:color-mix(in srgb,var(--surface) 60%,transparent)}
.fu button{display:flex;gap:12px;width:100%;text-align:left;padding:14px 16px;font-size:15px;line-height:22px}
.fu button+button{border-top:1px solid var(--line)}
.fu button svg{width:18px;height:18px;margin-top:2px;color:var(--muted)}
.files{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.file{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--tile);background:var(--surface);border:1px solid var(--line);text-decoration:none}
.file .ext{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#d93025;color:#fff;font-weight:700;font-size:12px}
.err-box{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:22px}
.err-box .btn{margin-top:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 20px;border-radius:var(--pill);font-weight:500;text-decoration:none}
.btn.wide{width:100%}
.btn.dark,.btn.gold{background:var(--accent);color:var(--onaccent)}
.btn.glass{background:var(--surface);border:1px solid var(--line)}
.btn.green{background:#1faf54;color:#fff;min-height:52px}
.btn:disabled{opacity:.45}

.composer-wrap{padding:0 12px calc(4px + var(--safe-b));max-width:784px;width:100%;margin:0 auto}
.suggest{display:flex;flex-direction:column;margin:0 0 6px}
.suggest button{display:flex;align-items:center;gap:18px;padding:13px 16px;border-radius:var(--pill);text-align:left;font-size:16px}
.suggest button:active{background:color-mix(in srgb,var(--text) 6%,transparent)}
.suggest svg{width:24px;height:24px}
.attach-row{display:flex;gap:8px;margin:0 4px 8px;overflow-x:auto;padding-top:6px}
.attach-row .th{position:relative;flex:none}
.attach-row img{width:64px;height:64px;object-fit:cover;border-radius:16px;display:block}
.attach-row button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;background:var(--text);color:var(--bg);display:grid;place-items:center;font-size:11px}
.composer{display:flex;align-items:flex-end;gap:2px;padding:6px;border-radius:36px;background:var(--surface);box-shadow:0 6px 24px rgba(16,24,40,.08),0 1px 3px rgba(16,24,40,.06)}
.composer>.icon-btn{width:48px;height:48px}
.composer textarea{flex:1;resize:none;border:0;background:none;padding:11px 4px;font-size:16px;line-height:26px;max-height:168px;min-width:0;outline:none}
.composer textarea::placeholder{color:var(--muted)}
.mic.rec{color:#d93025;animation:pulse 1s infinite}
.send{width:48px;height:48px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--soft);color:var(--onsoft)}
.send.go,.send.stop{background:var(--accent);color:var(--onaccent)}
.send svg{width:24px;height:24px}
.foot{text-align:center;font-size:12px;line-height:16px;margin:8px 0 0;color:var(--muted)}

/* model menu: a dropdown card under the title, as in the app */
.menu-shade{position:fixed;inset:0;z-index:7}
.model-menu{position:absolute;top:calc(56px + var(--safe-t));left:12px;width:min(340px,calc(100vw - 24px));z-index:8;background:var(--surface);border-radius:24px;padding:12px 8px 8px;box-shadow:0 12px 40px rgba(0,0,0,.18),0 2px 6px rgba(0,0,0,.08);animation:drop .16s ease-out;max-height:calc(100vh - 120px);overflow-y:auto}
@keyframes drop{from{opacity:0;transform:translateY(-6px) scale(.98)}}
.mm-label{font-size:12px;color:var(--muted);padding:0 12px 6px}
.mm-tabs{display:flex;gap:2px;background:var(--high);border-radius:var(--pill);padding:3px;margin:0 6px 8px;overflow-x:auto}
.mm-tabs button{flex:1;padding:6px 10px;border-radius:var(--pill);font-size:13px;color:var(--muted);white-space:nowrap}
.mm-tabs button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.14)}
.mm-row{display:flex;align-items:center;gap:14px;width:100%;padding:10px 12px;border-radius:16px;text-align:left}
.mm-row:active{background:var(--high)}
.mm-row svg{width:22px;height:22px}
.mm-row .tx{flex:1;min-width:0;line-height:20px}
.mm-row .tx b{font-weight:500;font-size:15px}
.mm-row .tx .d{display:block;font-size:13px;color:var(--muted)}
.badge{display:inline-block;margin-left:6px;padding:0 8px;border-radius:var(--pill);background:var(--accent);color:var(--onaccent);font-size:11px;line-height:18px;vertical-align:1px;font-weight:500}
.mm-row .check{color:var(--text)}

/* ---------- Drawer ---------- */
.shade{position:fixed;inset:0;background:var(--scrim);z-index:20;animation:fade .2s}
@keyframes fade{from{opacity:0}}
.drawer{position:fixed;top:0;bottom:0;left:0;width:min(86vw,340px);z-index:21;background:var(--bg);display:flex;flex-direction:column;padding:calc(4px + var(--safe-t)) 0 var(--safe-b);transform:translateX(-102%);transition:transform .26s cubic-bezier(.2,.8,.2,1);border-radius:0 24px 24px 0}
.drawer.open{transform:none}
.drawer-head{padding:12px 20px 4px;font-size:24px;line-height:32px}
.drawer-head b{font-weight:500}
.drawer-search{display:flex;align-items:center;gap:12px;margin:8px 12px;padding:0 18px;height:50px;border-radius:var(--pill);background:var(--high)}
.drawer-search svg{width:22px;height:22px;color:var(--muted)}
.drawer-search input{flex:1;border:0;background:none;font-size:16px;outline:none;min-width:0}
.drawer-search input::placeholder{color:var(--muted)}
.drawer-scroll{flex:1;overflow-y:auto;padding:0 8px}
.row-btn{display:flex;align-items:center;gap:18px;width:100%;padding:13px 16px;border-radius:var(--pill);text-align:left;font-size:16px}
.row-btn:active,.chat-item:active{background:var(--high)}
.row-btn em{margin-left:auto;font-style:normal;font-size:13px;color:var(--muted)}
.label{font-size:14px;font-weight:500;color:var(--muted);padding:20px 16px 6px}
.chat-item{display:flex;align-items:center;border-radius:var(--pill)}
.chat-item.active{background:var(--high)}
.chat-item button.open{flex:1;text-align:left;padding:12px 16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px}
.chat-item .icon-btn{opacity:.5;width:40px;height:40px}
.empty-note{padding:8px 16px;font-size:14px;color:var(--muted)}
.me{display:flex;align-items:center;gap:14px;padding:12px 16px;text-align:left;width:100%}
.avatar{width:44px;height:44px;border-radius:50%;background:#5b6b7a center/cover;color:#fff;display:grid;place-items:center;font-weight:600;flex:none;font-size:18px}
.me-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:20px}
.me-text b{font-weight:500;font-size:16px}
.me-text span{font-size:13px;color:var(--muted)}

/* ---------- Sheets ---------- */
.sheet-shade{z-index:30}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:31;max-height:90vh;overflow-y:auto;background:var(--surface);border-radius:28px 28px 0 0;padding:8px 18px calc(18px + var(--safe-b));transform:translateY(105%);transition:transform .28s cubic-bezier(.2,.8,.2,1);max-width:640px;margin:0 auto}
.sheet.open{transform:none}
.grab{width:36px;height:4px;border-radius:2px;background:var(--line);margin:6px auto 14px}
.sheet h3{margin:4px 4px 12px;font-size:20px;line-height:28px;font-weight:500}
.set-row{display:flex;align-items:center;gap:16px;width:100%;padding:14px 8px;text-align:left;font-size:16px;border-radius:14px;text-decoration:none}
.set-row:active{background:var(--high)}
.set-row .r{margin-left:auto;color:var(--muted);font-size:14px}
.set-row.danger{color:var(--danger)}
.toast{position:fixed;left:50%;bottom:calc(120px + var(--safe-b));transform:translateX(-50%) translateY(20px);background:#303134;color:#fff;padding:12px 20px;border-radius:12px;font-size:14px;opacity:0;pointer-events:none;transition:.2s;z-index:50;max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%)}
.src-list a{display:flex;gap:12px;align-items:center;padding:12px 6px;text-decoration:none;border-bottom:1px solid var(--line)}
.src-list img{width:22px;height:22px;border-radius:6px}
.src-list b{font-weight:500;display:block;font-size:15px;line-height:20px}
.src-list span{font-size:12px;color:var(--muted)}

/* Plans & credits — navy, as in the app */
.sheet.plans-sheet{background:linear-gradient(180deg,#0b1a2a,#0a0c16 45%,#120a22);color:#f5f6fa}
.plans-sheet .grab{background:rgba(255,255,255,.25)}
.plans-sheet .muted{color:rgba(230,232,242,.66)}
.plans-sheet h3{color:#fff}
.credit-card{display:flex;align-items:center;gap:12px;padding:22px;border-radius:28px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);margin-bottom:14px}
.credit-card .n{font-size:56px;line-height:1;font-weight:500;letter-spacing:-.03em}
.credit-card .coin{margin-left:auto;font-size:58px;filter:drop-shadow(0 6px 18px rgba(247,183,51,.5))}
.plan-pill{display:inline-block;margin-top:12px;padding:4px 16px;border-radius:var(--pill);border:1px solid rgba(255,255,255,.3);font-size:15px}
.promo{padding:20px;border-radius:28px;background:linear-gradient(140deg,#5c1524,#2b0b13);border:1.5px solid #f3d58a;margin-bottom:16px;position:relative;overflow:hidden}
.promo .pct{display:inline-block;margin:8px 0;padding:2px 18px;border-radius:var(--pill);background:linear-gradient(90deg,#ffe29a,#f7b733,#ffd36e);color:#2b1a08;font-weight:600;font-size:24px;line-height:36px}
.promo .gift{position:absolute;right:16px;top:16px;font-size:60px}
.plan{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:24px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);margin-bottom:10px;width:100%;text-align:left;color:#f5f6fa}
.plan.on{border:1.5px solid #f3d58a;background:linear-gradient(120deg,rgba(92,21,36,.9),rgba(43,11,19,.9))}
.plan .tx{flex:1}
.plan .tx b{font-size:18px;font-weight:500}
.plan .tx span{display:block;font-size:13px;color:rgba(230,232,242,.66)}
.plan .pr{text-align:right}
.plan .pr s{font-size:13px;color:rgba(230,232,242,.55)}
.plan .pr b{display:block;font-size:24px;font-weight:500}
.pay-tabs{display:flex;gap:2px;margin:14px 0 10px;background:rgba(255,255,255,.08);padding:3px;border-radius:var(--pill)}
.pay-tabs button{flex:1;padding:10px;border-radius:var(--pill);font-weight:500;color:rgba(230,232,242,.7)}
.pay-tabs button[aria-pressed=true]{background:rgba(255,255,255,.2);color:#fff}
.qr-img{display:block;max-width:280px;width:100%;margin:0 auto;border-radius:18px;background:#fff}
.steps{margin:6px 0 12px;padding-left:1.2em;font-size:15px;line-height:22px}
.steps li{margin:6px 0}
.plans-sheet .btn.glass{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:#fff}
.plans-sheet .getpro{width:100%;height:56px;border-radius:var(--pill);background:linear-gradient(90deg,#ffe29a,#f7b733,#ffd36e);color:#2b1a08;font-size:17px;font-weight:500;margin-top:6px}

/* ---------- Full-screen tools ---------- */
.view{position:fixed;inset:0;z-index:15;display:flex;flex-direction:column;background:var(--bg)}
.view-title{flex:1;font-size:20px;line-height:28px;font-weight:500;padding-left:4px}
.view-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.view.live-view .top{background:transparent;position:absolute;left:0;right:0;z-index:3}
.view.live-view .view-title{visibility:hidden}

/* Live (LiveAssistant.kt / MoodOrb.kt): white to blue, glowing at the bottom */
.live{position:relative;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#eaf1ff 55%,#8db4ff 100%);color:#1f1f1f}
.live::before,.live::after{content:"";position:absolute;border-radius:50%;filter:blur(40px);animation:glow 5s ease-in-out infinite alternate;pointer-events:none}
.live::before{width:110vw;height:110vw;left:-20vw;bottom:-60vw;background:rgba(79,125,243,.6)}
.live::after{width:90vw;height:90vw;right:-25vw;bottom:-55vw;background:rgba(47,184,168,.5);animation-delay:-2.5s}
@keyframes glow{to{transform:translateX(8vw) scale(1.1)}}
.live-cam{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.live-cam.mirror{transform:scaleX(-1)}
.live-shade{position:absolute;inset:0;pointer-events:none;z-index:1;display:none;background:linear-gradient(180deg,rgba(0,0,0,.3),transparent 25%,transparent 60%,rgba(0,0,0,.4))}
.with-cam .live-shade{display:block}
.live-top{position:absolute;top:calc(60px + var(--safe-t));left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:8px;z-index:2}
.live-dot{display:none}
.live-state{font-size:14px;color:#5f6368}
.with-cam .live-state{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.orb-wrap{position:relative;z-index:2;margin-top:-90px}
.orb{display:block;width:250px;height:250px;border-radius:50%}
.orb canvas{width:100%;height:100%;display:block}
.with-cam .orb-wrap{position:absolute;bottom:calc(118px + var(--safe-b));left:50%;margin:0 0 0 -40px}
.with-cam .orb{width:80px;height:80px}
.live-log{position:absolute;left:16px;right:16px;bottom:calc(118px + var(--safe-b));z-index:2;display:flex;flex-direction:column;gap:8px}
.with-cam .live-log{bottom:calc(210px + var(--safe-b))}
.ll{font-size:17px;line-height:23px;color:#1f1f1f;background:rgba(242,242,242,.94);border-radius:26px;padding:16px 20px;max-height:108px;overflow:hidden}
.ll.you{align-self:flex-end;font-size:14px;line-height:20px;color:#5f6368;background:rgba(255,255,255,.8);padding:8px 14px;border-radius:18px;max-width:85%}
.ll:empty{display:none}
.live-bar{position:absolute;bottom:calc(28px + var(--safe-b));left:0;right:0;z-index:2;display:flex;justify-content:center;gap:16px}
.round{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#1f1f1f;box-shadow:0 2px 10px rgba(0,0,0,.1)}
.round svg{width:26px;height:26px}
.round.on{background:#c2dcff;color:#0b57d0}
.round.off{background:#1f1f1f;color:#fff}

/* Bible */
.bible{max-width:720px;margin:0 auto;padding:4px 20px calc(96px + var(--safe-b))}
.seg{display:flex;gap:2px;background:var(--high);border-radius:var(--pill);padding:4px;margin-bottom:14px}
.seg button{flex:1;padding:8px;border-radius:var(--pill);font-weight:500;color:var(--muted);font-size:15px}
.seg button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.14)}
.book-btn{display:inline-flex;align-items:center;gap:6px;font-family:ISerif,MM,Georgia,serif;font-size:34px;line-height:44px;margin:6px 0 10px}
.verses p{margin:0 0 6px;font-size:18px;line-height:32px;padding:2px 6px;margin-left:-6px;border-radius:8px;cursor:pointer}
.verses p.sel{background:var(--soft);text-decoration:underline dotted var(--muted)}
.verses sup{color:var(--muted);font-size:11px;font-weight:600;margin-right:6px;vertical-align:6px}
.bible-nav{display:flex;align-items:center;gap:10px;margin-top:22px}
.bible-nav .copy{flex:1;text-align:center;font-size:11.5px;line-height:16px}
.bible-nav .btn{min-height:48px;width:48px;font-size:22px;padding:0;border-radius:50%}
.verse-bar{position:fixed;left:12px;right:12px;bottom:calc(14px + var(--safe-b));display:flex;gap:8px;max-width:600px;margin:0 auto;z-index:16;padding:6px;border-radius:var(--pill);background:var(--surface);box-shadow:0 8px 28px rgba(0,0,0,.16)}
.verse-bar .btn{flex:1;min-height:48px}
.books{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.books button,.chaps button{padding:12px 14px;border-radius:16px;background:var(--high);font-size:15px;text-align:left}
.testament{grid-column:1/-1;font-size:14px;font-weight:500;color:var(--muted);margin:10px 4px 2px}
.chaps{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.chaps button{text-align:center;padding:12px 0}

/* PDF */
.pdf{max-width:560px;margin:0 auto;padding:8px 20px calc(30px + var(--safe-b));display:flex;flex-direction:column;gap:14px}
.pdf-hero{display:flex;gap:16px;align-items:center;padding:18px;border-radius:24px;background:var(--surface)}
.pdf-hero p{margin:0;font-size:15px;line-height:22px}
.pdf-ic{width:56px;height:68px;border-radius:12px;background:#fff;border:1px solid var(--line);color:#d93025;font-weight:700;display:grid;place-items:center;flex:none}
.pdf .pick{cursor:pointer;height:56px}
.pdf-info{font-size:14px;line-height:20px;min-height:20px;color:var(--muted)}
.pdf-info b{color:var(--text);font-weight:500}
.field-label{font-size:13px;color:var(--muted);margin-bottom:-8px;padding-left:4px}
.pdf select{width:100%;height:54px;border-radius:var(--pill);border:1px solid var(--line);background:var(--surface);padding:0 20px;font-size:16px;appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 24px) 24px,calc(100% - 19px) 24px;background-size:5px 5px;background-repeat:no-repeat}
.pdf .go{height:56px}
.progress .bar{height:8px;border-radius:4px;background:var(--high);overflow:hidden}
.progress .bar i{display:block;height:100%;width:0;background:var(--accent);transition:width .4s}
.ptext{font-size:14px;margin-top:8px;color:var(--muted)}
.pdf .err-box,.bible .err-box{padding:14px 16px;border-radius:var(--tile);background:color-mix(in srgb,var(--danger) 10%,var(--surface))}

/* ===== v5: more of the app's screens ===== */
:root[data-theme=light]{--bg:#f8f9fb;--surface:#fff;--high:#eef1f5;--text:#1b1c1e;--muted:#6b6e75;--accent:#16171a;--onaccent:#fff;--soft:#dce8fd;--onsoft:#0e3e9e;--line:#dcdfe4;--danger:#d93025;--scrim:rgba(0,0,0,.32);--glow:#bfd6fb;--link:#1a62e8;color-scheme:light}
:root[data-theme=dark]{--bg:#0f1012;--surface:#1e1f23;--high:#2a2c31;--text:#ecedef;--muted:#a1a5ad;--accent:#f2f3f5;--onaccent:#111214;--soft:#1d355e;--onsoft:#cfe0ff;--line:#3a3d43;--danger:#ff6b60;--scrim:rgba(0,0,0,.54);--glow:#203f78;--link:#8ab4f8;color-scheme:dark}
:root[data-theme=dark] .logo,:root[data-theme=dark] .bot-mark{filter:invert(1)}
:root[data-theme=light] .logo,:root[data-theme=light] .bot-mark{filter:none}
html{font-size:16px}
/* drawer like the app */
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 8px 20px}
.chat-item{display:flex;align-items:center;gap:10px;width:100%;padding:12px 16px;border-radius:var(--pill);text-align:left;font-size:16px}
.chat-item .ci-t{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-item.active{background:var(--high)}
.ci-gem .gav{display:inline-grid}
/* popover + sheets */
.pop-shade{position:fixed;inset:0;z-index:40}
.pop{position:fixed;z-index:41;min-width:220px;max-width:calc(100vw - 16px);background:var(--surface);border-radius:24px;padding:8px;box-shadow:0 12px 40px rgba(0,0,0,.2);animation:drop .15s ease-out;max-height:80vh;overflow-y:auto}
.pop-t{padding:8px 14px 10px;color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.pop button,.srow{display:flex;align-items:center;gap:16px;width:100%;padding:12px 14px;border-radius:14px;text-align:left;font-size:16px}
.pop button:active,.srow:active{background:var(--high)}
.pop .danger,.srow.danger{color:var(--danger)}
.sheet-t{padding:4px 8px 12px;color:var(--muted);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet{background:var(--bg)}
.sheet.tall{max-height:94vh;min-height:70vh}
.pill-btn{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border-radius:var(--pill);background:var(--high);font-size:16px;margin-top:8px;text-decoration:none}
.pill-btn.dark{background:var(--accent);color:var(--onaccent)}
/* + attach sheet */
.att-head{display:flex;align-items:center;justify-content:space-between;margin:-4px -4px 12px}
.att-head b{font-weight:500;font-size:17px}
.att-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.att-tiles button{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 6px;border:1px solid var(--line);border-radius:22px;font-size:16px}
.att-pills{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 6px}
.att-pills button{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid var(--line);border-radius:var(--pill);font-size:16px}
.att-row{display:flex;align-items:center;gap:18px;width:100%;padding:14px 8px;text-align:left}
.att-row b{display:block;font-weight:400;font-size:17px}
.att-row small{color:var(--muted);font-size:14px}
.attach-row .th.doc{display:flex;align-items:center;gap:8px;height:64px;padding:0 14px 0 8px;border-radius:16px;background:var(--surface);border:1px solid var(--line);max-width:220px}
.attach-row .th.doc .ext{width:40px;height:40px;border-radius:10px;background:#d93025;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:700;flex:none}
.attach-row .th.doc .dn{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pics{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;margin-top:8px}
.pics img{width:100%;border-radius:18px;display:block}
.gem-tag{display:block;font-size:15px;color:var(--muted);font-family:GSF,MM,sans-serif;margin-top:4px}
#hello:not(.serif){font-size:26px;line-height:34px;font-weight:500}
/* pages (Gems, Profile) */
.view-top #viewHeadExtra{margin-left:auto}
.head-pill{display:flex;align-items:center;gap:8px;height:46px;padding:0 18px;border-radius:var(--pill);background:var(--high);font-size:16px;margin-right:6px}
.page{max-width:680px;margin:0 auto;padding:4px 16px calc(30px + var(--safe-b))}
.pg-sec{font-size:14px;color:var(--muted);padding:18px 10px 8px}
.pg-note{margin:0 10px 6px;font-size:15px}
.gcard{display:flex;align-items:center;margin-bottom:10px;border:1px solid var(--line);border-radius:28px;background:var(--surface);padding:4px 8px 4px 4px}
.gmain{flex:1;display:flex;align-items:center;gap:16px;padding:12px 14px;text-align:left}
.gmain b{display:block;font-weight:400;font-size:18px}
.gmain small{color:var(--muted);font-size:15px}
.gav{display:grid;place-items:center;border-radius:50%;flex:none;font-weight:500}
.gem-ed .ge-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.gem-ed .ge-head b{font-size:20px;font-weight:500}
.ge-av{display:flex;justify-content:center;margin:6px 0 10px}
.chips-row{display:flex;flex-wrap:wrap;gap:8px}
.chips-row.center{justify-content:center}
.chips-row button{padding:9px 18px;border-radius:var(--pill);background:var(--high);font-size:15px}
.chips-row button.on{background:var(--accent);color:var(--onaccent)}
.ge-box{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:16px;display:flex;flex-direction:column;gap:12px}
.ge-box.chips-row{flex-direction:row}
.ge-box input,.ge-box textarea{width:100%;border:1px solid var(--line);border-radius:4px;background:var(--surface);padding:16px;font-size:16px;color:var(--text);resize:vertical}
.ge-box.colors{flex-direction:row;gap:14px}
.cl{width:40px;height:40px;border-radius:50%}
.cl.on{outline:3px solid var(--text);outline-offset:2px}
.pcard-w{display:flex;align-items:center;gap:16px;padding:18px;border-radius:28px;background:var(--surface);margin:6px 0 12px}
.pav{width:64px;height:64px;border-radius:50%;background:#5b6b7a center/cover;color:#fff;display:grid;place-items:center;font-size:26px;flex:none}
.pnm b{display:block;font-weight:400;font-size:20px}
.pnm small{color:var(--muted);font-size:14px}
.pgroup{background:var(--surface);border-radius:28px;padding:6px 0;margin-bottom:8px}
.prow{display:flex;align-items:center;gap:14px;width:100%;padding:10px 14px 10px 12px;text-align:left}
.prow .pic{width:46px;height:46px;border-radius:16px;background:var(--high);display:grid;place-items:center;flex:none}
.prow .pl{flex:1;font-size:17px}
.prow .pv{color:var(--muted);font-size:15px;white-space:nowrap;max-width:40%;overflow:hidden;text-overflow:ellipsis}
.prow>svg:last-child{width:20px;height:20px;color:var(--muted)}
.prow.danger .pl,.prow.danger .pic{color:var(--danger)}
.sv-row{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:var(--surface);margin-bottom:6px}
.sv-row span{flex:1}
.sv-add{display:flex;gap:8px;margin-top:8px}
.sv-add input{flex:1;height:48px;border-radius:var(--pill);border:1px solid var(--line);background:var(--surface);padding:0 18px;font-size:16px}
/* glass tabs (the app's segmented glass bar) */
.glass-tabs{display:flex;gap:2px;padding:5px;border-radius:var(--pill);background:var(--high);overflow-x:auto;scrollbar-width:none}
.glass-tabs::-webkit-scrollbar{display:none}
.glass-tabs button{flex:1 0 auto;padding:10px 18px;border-radius:var(--pill);font-size:16px;color:var(--muted);white-space:nowrap}
.glass-tabs button.on{background:var(--surface);color:var(--text);box-shadow:0 2px 8px rgba(0,0,0,.12),inset 0 0 0 1px rgba(0,0,0,.06)}
.glass-tabs.dark{background:rgba(255,255,255,.08)}
.glass-tabs.dark button{color:rgba(230,232,242,.6)}
.glass-tabs.dark button.on{background:rgba(255,255,255,.16);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 4px 12px rgba(0,0,0,.4)}
/* Discover */
.disc{max-width:720px;margin:0 auto;padding:2px 16px calc(30px + var(--safe-b))}
.disc .glass-tabs{margin-bottom:16px}
.story{display:block;text-decoration:none;margin-bottom:22px}
.story.hero img{width:100%;aspect-ratio:7/5;object-fit:cover;border-radius:24px;display:block;background:var(--high)}
.story .when{color:#2e7d5b;font-size:14px;margin-top:12px}
.story.hero h3{font-size:27px;line-height:34px;margin:6px 0}
.story.hero p{margin:0;color:var(--text);font-size:16px;line-height:24px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.story .src{font-size:13px;color:var(--muted);margin-top:6px}
.story:not(.hero){display:flex;gap:14px;align-items:flex-start;padding-top:16px;border-top:1px solid var(--line)}
.story:not(.hero) .tx{flex:1}
.story:not(.hero) .when{margin:0;color:var(--muted);font-size:13px}
.story h4{margin:4px 0 0;font-size:17px;line-height:24px;font-weight:500}
.story .thumb img{width:96px;height:96px;object-fit:cover;border-radius:16px;display:block}
.sk{background:linear-gradient(90deg,var(--high) 25%,var(--surface) 50%,var(--high) 75%);background-size:200% 100%;animation:shim 1.4s linear infinite;border-radius:16px;margin-bottom:12px}
.sk-hero{aspect-ratio:7/5;border-radius:24px}.sk-line{height:26px}.sk-line.short{width:60%}.sk-row{height:96px}
.levels{margin:0 0 6px}
.hint{font-size:14px;margin:8px 6px 12px}
.site{display:flex;gap:16px;align-items:center;width:100%;text-align:left;background:var(--surface);border-radius:24px;padding:18px 20px;margin-bottom:12px}
.site img{width:40px;height:40px;border-radius:50%;flex:none}
.site b{display:block;font-weight:400;font-size:18px}
.site small{display:block;color:var(--muted);font-size:13.5px}
.site .about{display:block;color:var(--muted);font-size:15px;line-height:22px;margin-top:4px}
/* Plans screen (PlusScreen) */
.view.plus-view{background:linear-gradient(180deg,#0b1a2a,#0a0c16 45%,#120a22)}
.view.plus-view .view-top{position:absolute;left:0;right:0;z-index:3;color:#f7b733}
.view.plus-view .view-title{color:#fff;text-align:center;padding-right:48px;font-size:22px}
.plusx{position:relative;min-height:100%;color:#f5f6fa;padding-bottom:110px}
.plusx .sky{position:absolute;left:0;right:0;top:0;height:560px;overflow:hidden;pointer-events:none;background:linear-gradient(180deg,#2f6b56 0%,#1d4a3c 40%,rgba(11,26,42,0) 100%)}
.plusx .hill{position:absolute;left:-20%;right:-20%;top:120px;height:300px;border-radius:50%;background:radial-gradient(ellipse at 50% 30%,#2a5a4b,#0f2a26 70%);opacity:.9}
.plusx .lights{position:absolute;left:0;right:0;top:-10px;height:90px;background:radial-gradient(circle,#ffe9a8 0 3px,transparent 4px) 0 30px/60px 30px repeat-x,radial-gradient(circle,#fff 0 2px,transparent 3px) 30px 12px/60px 30px repeat-x;animation:twinkle 2s ease-in-out infinite alternate}
@keyframes twinkle{to{opacity:.55}}
.plusx .snow{position:absolute;inset:0}
.plusx .snow i{position:absolute;top:-10px;border-radius:50%;background:#fff;opacity:.85;animation:fall linear infinite}
@keyframes fall{to{transform:translate(20px,600px)}}
.plus-in{position:relative;z-index:1;padding:calc(76px + var(--safe-t)) 16px 0;max-width:640px;margin:0 auto}
.pcard{display:flex;align-items:center;padding:24px;border-radius:32px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.pcard>div:first-child{flex:1}
.pcard .pn{font-size:64px;line-height:1;font-weight:500;letter-spacing:-.03em}
.pcard .pl{font-size:21px;margin-top:10px}
.ppill{display:inline-block;margin-top:16px;padding:6px 18px;border-radius:var(--pill);border:1px solid rgba(255,255,255,.3);font-size:16px}
.coins{position:relative;width:120px;height:110px;flex:none}
.coins i{position:absolute;right:0;width:76px;height:14px;border-radius:50%;background:linear-gradient(180deg,#f7d68a,#c9973f);box-shadow:0 2px 0 #a8782c}
.coins i:nth-child(1){bottom:6px}.coins i:nth-child(2){bottom:18px}.coins i:nth-child(3){bottom:30px}.coins i:nth-child(4){bottom:42px}.coins i:nth-child(5){bottom:54px}
.coins b{position:absolute;left:0;top:4px;width:84px;height:84px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#ffe8a6,#e2b250 60%,#b8862e);display:grid;place-items:center;color:#fff3c8;font-size:34px;box-shadow:0 0 30px rgba(247,183,51,.45),inset 0 -4px 0 rgba(0,0,0,.15)}
.sale{position:relative;margin-top:18px;padding:24px;border-radius:32px;background:linear-gradient(140deg,#5c1524,#2b0b13);border:1.5px solid #f3d58a;overflow:hidden}
.sale-t{font-size:34px;line-height:42px}
.sale-row{display:flex;align-items:center;gap:10px;margin:10px 0}
.sale .pct{padding:2px 22px;border-radius:var(--pill);background:linear-gradient(90deg,#ffe29a,#f7b733,#ffd36e);color:#2b1a08;font-size:30px;line-height:46px}
.sale .holly{font-size:30px}
.sale-d{font-size:17px}
.count{display:flex;gap:8px;margin-top:14px}
.count span{padding:6px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.3);font-size:24px}
.count small{font-size:14px;margin-left:1px}
.sale .gift{position:absolute;right:16px;top:64px;font-size:64px}
.sale-t{padding-right:80px}
.view.plus-view .view-top{background:linear-gradient(180deg,rgba(11,26,42,.92),rgba(11,26,42,0))}
.ph{font-size:26px;font-weight:400;margin:30px 0 14px}
.why{list-style:none;padding:0;margin:0;font-size:17px;line-height:24px}
.why li{display:flex;gap:16px;margin:16px 0}
.pfree{font-size:16px;margin:-6px 0 14px}
.ptabs{margin-bottom:16px}
.plan-card{padding:24px;border-radius:32px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04)}
.pc-top{display:flex;justify-content:space-between;align-items:flex-start}
.pc-top>b{font-size:26px;font-weight:400}
.pc-top .pr{text-align:right}
.pc-top .pr s{display:block;font-size:15px;color:rgba(230,232,242,.6)}
.pc-top .pr b{font-size:34px;font-weight:400}
.pc-top .pr small{font-size:15px;color:rgba(230,232,242,.7);vertical-align:14px}
.pc-cr{font-size:20px;margin:6px 0 10px}
.pc-li{color:rgba(230,232,242,.78);font-size:16px;margin:6px 0}
.topup{display:flex;align-items:center;width:100%;margin-top:14px;padding:20px 24px;border-radius:32px;border:1px solid rgba(255,255,255,.16);text-align:left;color:#f5f6fa}
.topup.on{border-color:#f3d58a}
.topup>span:first-child{flex:1}
.topup b{display:block;font-size:22px;font-weight:400}
.topup small{color:rgba(230,232,242,.66);font-size:14px}
.topup .pr{text-align:right}.topup .pr s{display:block;font-size:14px;color:rgba(230,232,242,.6)}.topup .pr b{font-size:28px}
.steps2{list-style:none;padding:20px;margin:0;border-radius:28px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12)}
.steps2 li{display:flex;gap:16px;margin:10px 0;font-size:16px;line-height:23px}
.steps2 i{width:34px;height:34px;border-radius:50%;background:#fff;color:#111;display:grid;place-items:center;font-style:normal;flex:none}
.paytabs{margin:16px 0 14px}
.plusx .qr-img{max-width:300px}
.wa{width:100%;height:56px;border-radius:var(--pill);background:#1faf54;color:#fff;font-size:17px;margin-top:16px}
.wa:disabled{background:#8a8c90}
.costs{display:flex;flex-wrap:wrap;gap:8px}
.costs span{padding:6px 14px;border-radius:var(--pill);background:rgba(255,255,255,.1);font-size:14px}
.plus-bar{position:fixed;left:0;right:0;bottom:0;z-index:5;display:flex;gap:12px;padding:12px 16px calc(14px + var(--safe-b));background:linear-gradient(0deg,#120a22 60%,rgba(18,10,34,0))}
.getbtn{flex:1;height:62px;border-radius:var(--pill);background:linear-gradient(90deg,#f7e1a5,#e0b85c 50%,#f2d189);color:#3a2a10;font-size:19px}
.refresh{width:62px;height:62px;border-radius:50%;border:1px solid rgba(255,255,255,.25);display:grid;place-items:center;color:#fff}
/* Bible reader (BiblePages) */
.view.reader-view .view-top,.view.live-view .view-top{display:none}
.reader{--rsize:19px;--rline:1.9;position:relative;height:100%;display:flex;flex-direction:column;background:var(--bg);color:var(--text)}
.reader[data-theme=sepia]{--bg:#f5ecd9;--text:#3b2f20;--muted:#8a7a63;--high:#eadfc6}
.reader[data-theme=night]{--bg:#0f1012;--text:#d9dadc;--muted:#8a8d93;--high:#24262a}
.rd-top{display:flex;align-items:center;gap:0;padding:calc(4px + var(--safe-t)) 4px 4px}
.rd-top .icon-btn{width:40px;height:44px}
.rd-title{flex:1;min-width:0;font-size:18px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ver-pill{display:flex;align-items:center;gap:5px;height:44px;padding:0 12px;flex:none;border-radius:var(--pill);background:var(--high);font-size:16px}
.ver-pill svg{width:22px;height:22px}
.ver-pill.small{height:44px;font-size:15px}
.rd-menu{position:absolute;right:70px;top:calc(56px + var(--safe-t));z-index:6;background:var(--surface);border-radius:24px;padding:8px;box-shadow:0 12px 40px rgba(0,0,0,.2)}
.rd-menu button{display:flex;align-items:center;gap:16px;width:100%;padding:12px 16px;font-size:17px;white-space:nowrap;border-radius:14px}
.rd-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.rd-page{max-width:720px;margin:0 auto;padding:6px 26px 130px}
.rd-label{text-align:center;color:var(--muted);font-size:15px}
.rd-num{font-size:84px;line-height:1.1;color:var(--muted);margin:6px 0 10px}
.reader .verses p{margin:0 0 2px;font-size:var(--rsize);line-height:var(--rline);text-align:justify;padding:0 2px;border-radius:4px;cursor:pointer}
.reader.serif-text .verses p{font-family:ISerif,MM,Georgia,serif;font-size:calc(var(--rsize) * 1.12)}
.reader .verses p.sel{background:var(--high);text-decoration:none}
.reader .verses p.reading{background:color-mix(in srgb,var(--glow) 40%,transparent)}
.reader .verses sup{color:var(--muted);font-size:.6em;font-weight:400;vertical-align:.7em;margin-right:4px}
.rd-copy{font-size:12px;color:var(--muted);text-align:center;margin-top:24px}
.reader[data-layout=book] .rd-scroll{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory}
.reader[data-layout=book] .rd-page{height:100%;columns:calc(100vw - 52px) 1;column-gap:52px;column-fill:auto;max-width:none;padding-bottom:110px}
.reader[data-layout=book] .rd-page>*{break-inside:auto}
.rd-pageno{position:absolute;left:0;right:0;bottom:calc(86px + var(--safe-b));text-align:center;font-size:13px;color:var(--muted);pointer-events:none}
.rd-bar{position:absolute;left:0;right:0;bottom:calc(16px + var(--safe-b));display:flex;justify-content:center;align-items:center;gap:8px;z-index:4}
.rd-time{display:flex;align-items:center;gap:6px;height:56px;padding:0 16px;white-space:nowrap;border-radius:var(--pill);background:#1b1c1e;color:#fff;font-size:16px}
.rd-time svg{width:20px;height:20px}
.rd-seg{display:flex;gap:2px;padding:5px;border-radius:var(--pill);background:#1b1c1e}
.rd-seg button{height:46px;padding:0 18px;border-radius:var(--pill);color:#cfd1d4;font-size:17px}
.rd-seg button.on{background:#fff;color:#111}
.rd-round{width:56px;height:56px;border-radius:50%;background:#1b1c1e;color:#fff;display:grid;place-items:center}
.reader .verse-bar{bottom:calc(88px + var(--safe-b))}
.vlabel{font-size:15px;color:var(--muted);margin:14px 6px 8px}
.vrow{display:flex;align-items:center;width:100%;padding:14px 16px;border-radius:22px;text-align:left}
.vrow.on{background:var(--high)}
.vrow span{flex:1}
.vrow b{display:block;font-weight:400;font-size:18px}
.vrow small{color:var(--muted);font-size:15px}
.vrow i{font-style:normal;font-size:24px}
.vnote{font-size:13px;margin:12px 6px}
.chips-row button[data-k]{border:1px solid var(--line);background:transparent}
.chips-row button[data-k].on{background:var(--accent);color:var(--onaccent);border-color:var(--accent)}
.set-l{font-size:15px;color:var(--muted);margin:16px 4px 8px}
.size-row{display:flex;align-items:center;gap:14px;margin:18px 4px 4px}
.size-row input{flex:1;accent-color:var(--accent)}
.size-row .big{font-size:28px}
.rd-search{width:100%;height:52px;border-radius:var(--pill);border:1px solid var(--line);background:var(--surface);padding:0 20px;font-size:16px;margin-bottom:12px}
.books-page .bp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.books-page .bp-head b{font-size:24px;font-weight:400}
.recent-chip{padding:10px 18px;border-radius:16px;background:var(--surface);font-size:16px;margin:0 0 14px 4px}
.testaments{margin-bottom:10px}
.brow{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 18px;border-radius:20px;font-size:19px;text-align:left}
.brow.on{background:var(--high)}
.brow small{color:var(--muted);font-size:15px}
/* Live, as in the app: light top, a purple-blue glow below, a big companion */
.live{background:var(--bg)}
.live::before,.live::after{display:none}
.live-glow{position:absolute;left:-10%;right:-10%;bottom:-10%;height:68%;background:radial-gradient(60% 50% at 80% 90%,rgba(176,64,230,.9),transparent 70%),radial-gradient(80% 70% at 30% 75%,#3b3fe8,transparent 75%),linear-gradient(180deg,transparent 0%,rgba(120,118,240,.6) 22%,#4a45ea 55%,#3a2fd6 100%);filter:blur(6px);animation:breathe2 6s ease-in-out infinite alternate}
@keyframes breathe2{to{transform:translateY(-14px) scale(1.03)}}
.live-top{top:calc(8px + var(--safe-t));flex-direction:row;justify-content:space-between;padding:0 8px;align-items:center}
.lt-btn{width:48px;height:48px;display:grid;place-items:center;color:var(--text)}
.lt-btn.cc:not(.on){opacity:.4}
.live-state{font-size:14px;color:var(--muted)}
.orb-wrap{position:absolute;left:50%;top:auto;bottom:calc(170px + var(--safe-b));margin:0 0 0 -145px;z-index:2}
.orb{width:290px;height:290px}
.live-log{bottom:calc(98px + var(--safe-b));gap:4px;text-align:center}
.ll{background:none;color:#fff;font-size:20px;line-height:27px;padding:0 8px;max-height:82px;text-shadow:0 1px 10px rgba(0,0,0,.25)}
.ll.you{display:none}
.live-bar{bottom:calc(20px + var(--safe-b));gap:12px;align-items:center}
.wavepill{width:180px;height:62px;border-radius:var(--pill);background:rgba(30,30,140,.55);display:flex;align-items:center;justify-content:center}
.wavepill.off{background:rgba(20,20,40,.7)}
.ticks{display:flex;align-items:center;gap:5px;height:24px}
.ticks i{width:3px;height:6px;border-radius:2px;background:#fff;transition:height .08s}
.hang{width:70px;height:70px;border-radius:50%;background:#ea4335;color:#fff;display:grid;place-items:center}
.hang svg{width:30px;height:30px}
.dots{width:58px;height:58px;border-radius:50%;background:rgba(90,40,200,.55);color:#fff;display:grid;place-items:center}
.live-menu{position:absolute;right:16px;bottom:calc(96px + var(--safe-b));z-index:4;background:var(--surface);border-radius:20px;padding:6px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.live-menu button{display:flex;align-items:center;gap:12px;padding:12px 16px;font-size:16px;white-space:nowrap;width:100%;border-radius:12px;color:var(--text)}
.with-cam .live-glow{display:none}
.with-cam .orb-wrap{bottom:calc(200px + var(--safe-b));margin-left:-45px}
.with-cam .orb{width:90px;height:90px}
.with-cam .lt-btn{color:#fff}

/* Discover cards, as in the app */
.story.card{display:block;margin-bottom:26px;padding:0;border:0}
.story.card .st-main{display:block;width:100%;text-align:left}
.story.card img{width:100%;aspect-ratio:7/5;object-fit:cover;border-radius:24px;display:block;background:var(--high)}
.story.card .when{color:#2e7d5b;font-size:15px;margin-top:14px}
.story.card h3{font-size:27px;line-height:34px;margin:6px 0}
.story.card p{margin:0;font-size:16px;line-height:25px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.st-meta{display:flex;align-items:center;gap:6px;margin-top:10px;color:var(--muted);font-size:14px}
.st-meta>span{flex:1}
.st-listen{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;font-size:15px;color:var(--text)}
.st-listen.on{background:var(--soft);color:var(--onsoft)}
.st-listen svg,.st-share svg{width:20px;height:20px}
.st-share{width:40px;height:40px;display:grid;place-items:center;color:var(--text)}
.st-src{display:inline-block;margin-top:8px;padding:8px 16px;border-radius:999px;background:var(--surface);color:var(--link);font-size:14px;text-decoration:none}
