
:root{
  --c1:#8b7cff;--c2:#50d8d0;--c3:#ff7cac;--bg0:#060810;--bg1:#0b1020;--bg2:#10192c;
  --glass:rgba(13,18,31,.62);--glass2:rgba(24,31,49,.72);--line:rgba(255,255,255,.105);
  --text:#f8fbff;--muted:#a9b4c5;--pointer-x:50%;--pointer-y:30%;--dock-h:78px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Inter,sans-serif;background:var(--bg0);overflow-x:hidden}
body:before{content:"";position:fixed;inset:0;z-index:-4;background:
radial-gradient(circle at var(--pointer-x) var(--pointer-y),color-mix(in srgb,var(--c1) 28%,transparent),transparent 22%),
radial-gradient(circle at 12% 18%,color-mix(in srgb,var(--c2) 21%,transparent),transparent 28%),
radial-gradient(circle at 86% 22%,color-mix(in srgb,var(--c3) 18%,transparent),transparent 26%),
linear-gradient(145deg,var(--bg0),var(--bg1) 45%,var(--bg2));transition:background 1.2s ease}
body:after{content:"";position:fixed;inset:0;z-index:-3;opacity:.45;background-image:
radial-gradient(circle at 20% 30%,rgba(255,255,255,.16) 0 1px,transparent 1.8px),
radial-gradient(circle at 70% 18%,rgba(255,255,255,.09) 0 1px,transparent 1.8px),
radial-gradient(circle at 45% 78%,rgba(255,255,255,.08) 0 1px,transparent 1.8px);
background-size:72px 72px,110px 110px,140px 140px;animation:stars 22s linear infinite}
@keyframes stars{to{transform:translate3d(0,-26px,0)}}@keyframes drift{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(22px,-18px,0) scale(1.07)}}@keyframes breathe{50%{transform:scale(1.05);filter:saturate(1.15)}}@keyframes rise{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
button,input,textarea,select{font:inherit}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{text-transform:uppercase;letter-spacing:.17em;font-size:11px;color:#b8c2d1}.glass{background:linear-gradient(180deg,color-mix(in srgb,var(--glass2) 88%,transparent),var(--glass));border:1px solid var(--line);backdrop-filter:blur(28px) saturate(135%);box-shadow:0 24px 80px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.035)}
.app{min-height:100vh;padding-bottom:calc(var(--dock-h) + 44px)}.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px clamp(14px,4vw,42px);background:linear-gradient(180deg,rgba(5,8,15,.78),rgba(5,8,15,.2));backdrop-filter:blur(18px)}
.brand{display:flex;align-items:center;gap:11px;cursor:pointer}.logo{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;font-weight:800;background:linear-gradient(140deg,var(--c1),var(--c2));box-shadow:0 10px 36px color-mix(in srgb,var(--c1) 35%,transparent),inset 0 1px rgba(255,255,255,.45)}.brand h1{font-size:20px;margin:0;letter-spacing:-.45px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.top-actions{display:flex;align-items:center;gap:8px}.icon-btn{border:1px solid var(--line);background:rgba(255,255,255,.055);color:#fff;border-radius:14px;padding:10px 12px;cursor:pointer;transition:.2s}.icon-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.095)}
.main{width:min(1380px,100%);margin:0 auto;padding:12px clamp(14px,4vw,42px) 40px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:10px 0 20px}.page-head h2{font-size:clamp(30px,5vw,54px);line-height:1;margin:5px 0 0;letter-spacing:-1.8px}.page-head p{color:var(--muted);max-width:620px;line-height:1.55}
.hero{position:relative;min-height:500px;border-radius:34px;overflow:hidden;padding:clamp(24px,5vw,58px);display:grid;align-items:center}.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;filter:blur(4px);animation:drift 10s ease-in-out infinite}.hero:before{width:min(42vw,520px);height:min(42vw,520px);right:-8%;top:-22%;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.48),color-mix(in srgb,var(--c1) 64%,transparent) 15%,color-mix(in srgb,var(--c2) 35%,transparent) 45%,transparent 69%)}.hero:after{width:420px;height:420px;left:38%;bottom:-55%;background:radial-gradient(circle,color-mix(in srgb,var(--c3) 35%,transparent),transparent 68%);animation-delay:-4s}.hero-content{position:relative;z-index:2;max-width:870px}.hero h2{font-size:clamp(46px,8vw,96px);line-height:.91;letter-spacing:-4px;margin:0 0 18px}.gradient-text{background:linear-gradient(90deg,#fff 0%,color-mix(in srgb,var(--c1) 48%,white) 34%,color-mix(in srgb,var(--c2) 64%,white) 70%,color-mix(in srgb,var(--c3) 58%,white));background-clip:text;-webkit-background-clip:text;color:transparent}.hero p{font-size:clamp(15px,2vw,19px);max-width:730px;line-height:1.62;color:#c5cedb}
.composer{margin-top:28px;padding:16px;border-radius:24px;background:rgba(4,8,17,.62);border:1px solid rgba(255,255,255,.12);box-shadow:0 28px 60px rgba(0,0,0,.28)}.composer textarea{width:100%;min-height:110px;resize:vertical;border:0;outline:0;color:#fff;background:transparent;font-size:18px;line-height:1.5;padding:5px}.composer textarea::placeholder{color:#7f8a9c}.capture-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:13px}.tool-group{display:flex;gap:8px;flex-wrap:wrap}.tool{border:1px solid var(--line);background:rgba(255,255,255,.055);color:#dfe6ef;border-radius:14px;padding:10px 12px;cursor:pointer;transition:.2s}.tool:hover,.tool.active{background:color-mix(in srgb,var(--c1) 15%,rgba(255,255,255,.06));border-color:color-mix(in srgb,var(--c1) 38%,transparent);transform:translateY(-1px)}.tool.recording{background:rgba(255,77,111,.18);border-color:rgba(255,77,111,.42);color:#ffdce5}
.btn{border:1px solid var(--line);background:rgba(255,255,255,.06);color:#fff;border-radius:14px;padding:11px 16px;cursor:pointer;transition:.2s;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.10)}.btn.primary{border:0;background:linear-gradient(135deg,var(--c1),color-mix(in srgb,var(--c1) 55%,var(--c2)));box-shadow:0 13px 34px color-mix(in srgb,var(--c1) 32%,transparent)}.btn.danger{color:#ffd7e1;border-color:rgba(255,91,132,.28);background:rgba(255,91,132,.08)}
.input,select,textarea{width:100%;border:1px solid var(--line);border-radius:15px;background:rgba(5,9,18,.64);color:#fff;padding:13px 14px;outline:0}.input:focus,select:focus,textarea:focus{border-color:color-mix(in srgb,var(--c1) 64%,white);box-shadow:0 0 0 3px color-mix(in srgb,var(--c1) 12%,transparent)}
.preview-strip{display:flex;gap:10px;overflow:auto;margin-top:12px}.preview{position:relative;flex:0 0 116px;height:92px;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:#0b101c}.preview img,.preview video{width:100%;height:100%;object-fit:cover}.preview.audio{display:grid;place-items:center;padding:10px;color:#dfe6ef;background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 18%,#0d1320),#0d1320)}.preview button{position:absolute;right:5px;top:5px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(0,0,0,.66);color:#fff;cursor:pointer}.context-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.context-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.055);border:1px solid var(--line);font-size:12px;color:#c9d2df}.context-pill.location{background:color-mix(in srgb,var(--c2) 12%,rgba(255,255,255,.04))}
.grid{display:grid;gap:15px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.section{margin-top:30px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:13px}.section-head h3{margin:0;font-size:24px;letter-spacing:-.6px}.section-head p{margin:4px 0 0;color:var(--muted)}
.stat{padding:19px;border-radius:22px;min-height:115px;position:relative;overflow:hidden}.stat:after{content:"";position:absolute;right:-24px;bottom:-40px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--accent,var(--c1)) 42%,transparent),transparent 65%)}.stat b{display:block;font-size:32px;margin-top:8px;letter-spacing:-1px}.stat span{position:relative;z-index:2}
.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.memory-card{border-radius:24px;overflow:hidden;transition:.25s;animation:rise .35s ease both}.memory-card:hover{transform:translateY(-4px) scale(1.003);border-color:rgba(255,255,255,.18)}.memory-media{height:230px;background:linear-gradient(140deg,color-mix(in srgb,var(--c1) 25%,#0b1120),color-mix(in srgb,var(--c2) 15%,#0b1120));overflow:hidden}.memory-media img,.memory-media video{width:100%;height:100%;object-fit:cover}.memory-body{padding:18px}.memory-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.memory-title{font-size:18px;font-weight:700;line-height:1.3;margin-top:12px}.memory-original{color:#bcc6d4;line-height:1.52;margin-top:8px}.memory-meta{display:flex;gap:7px;flex-wrap:wrap;color:#8f9bac;font-size:12px;margin-top:13px}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:11px;background:color-mix(in srgb,var(--c1) 14%,transparent);border:1px solid color-mix(in srgb,var(--c1) 26%,transparent);color:#e7e3ff}.badge.alt{background:color-mix(in srgb,var(--c2) 12%,transparent);border-color:color-mix(in srgb,var(--c2) 24%,transparent);color:#d8fffb}.kebab{border:0;background:transparent;color:#9ba7b8;cursor:pointer;font-size:19px}
.filter-row{display:flex;gap:8px;flex-wrap:wrap}.chip{padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.04);color:#b7c0cd;cursor:pointer}.chip.active{background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 24%,transparent),color-mix(in srgb,var(--c2) 12%,transparent));border-color:color-mix(in srgb,var(--c1) 34%,transparent);color:#fff}
.timeline{position:relative;display:grid;gap:14px}.timeline:before{content:"";position:absolute;left:19px;top:12px;bottom:10px;width:1px;background:linear-gradient(var(--c1),var(--c2),transparent)}.timeline-entry{display:grid;grid-template-columns:40px 1fr;gap:13px}.timeline-dot{width:13px;height:13px;border-radius:50%;margin:20px auto 0;background:linear-gradient(135deg,var(--c1),var(--c2));box-shadow:0 0 0 5px color-mix(in srgb,var(--c1) 10%,transparent),0 0 28px color-mix(in srgb,var(--c1) 44%,transparent)}.timeline-card{padding:18px;border-radius:22px}
.ask-shell{min-height:calc(100vh - 210px);display:grid;grid-template-rows:1fr auto;gap:14px}.chat-panel{padding:18px;border-radius:25px;overflow:auto}.chat{display:grid;gap:13px;align-content:start}.bubble{max-width:min(780px,88%);padding:15px 17px;border-radius:19px;background:rgba(22,29,45,.74);border:1px solid var(--line);line-height:1.55}.bubble.user{justify-self:end;background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 34%,rgba(20,26,40,.7)),color-mix(in srgb,var(--c2) 16%,rgba(20,26,40,.7)))}.source{font-size:12px;color:#94a0b1;margin-top:8px}.ask-box{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;border-radius:20px}
.vault-grid,.source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.vault-card,.source-card{position:relative;min-height:205px;padding:20px;border-radius:24px;overflow:hidden;cursor:pointer;transition:.25s}.vault-card:hover,.source-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.18)}.vault-icon,.source-icon{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;font-size:22px;background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 22%,rgba(255,255,255,.07)),rgba(255,255,255,.04));margin-bottom:18px}.vault-card h3,.source-card h3{margin:0 0 6px}.vault-card p,.source-card p{color:var(--muted);line-height:1.5;margin:0}.status{position:absolute;right:14px;top:14px;padding:5px 8px;border-radius:999px;font-size:10px;background:rgba(255,255,255,.06);border:1px solid var(--line);color:#bcc7d5}.status.live{background:color-mix(in srgb,var(--c2) 13%,transparent);color:#d8fff8}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(560px,100%);padding:30px;border-radius:30px;position:relative;overflow:hidden}.auth-card:before{content:"";position:absolute;width:340px;height:340px;right:-100px;top:-140px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--c1) 50%,transparent),transparent 65%);animation:breathe 8s ease-in-out infinite}.auth-card>*{position:relative;z-index:2}.auth-card h2{font-size:38px;letter-spacing:-1.3px;margin:22px 0 8px}.auth-card form{display:grid;gap:11px;margin-top:18px}.social-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:13px}.social{padding:11px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.045);color:#fff;cursor:pointer}.social:hover{background:rgba(255,255,255,.08)}.divider{display:flex;align-items:center;gap:10px;color:#7f8999;font-size:11px;margin:14px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}
.empty{padding:40px;text-align:center;color:var(--muted);border-radius:24px}.empty strong{display:block;color:#fff;font-size:18px;margin-bottom:6px}
.file-zone{display:block;border:1px dashed rgba(255,255,255,.20);border-radius:20px;padding:28px;text-align:center;background:rgba(255,255,255,.025);cursor:pointer}.file-zone:hover{border-color:color-mix(in srgb,var(--c1) 48%,transparent);background:color-mix(in srgb,var(--c1) 6%,transparent)}.file-zone input{display:none}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(2,4,9,.72);backdrop-filter:blur(12px);display:grid;place-items:center;padding:18px}.modal{width:min(690px,100%);max-height:90vh;overflow:auto;border-radius:28px;padding:24px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.modal-head h3{font-size:26px;margin:0}.close{border:0;background:rgba(255,255,255,.06);color:#fff;width:36px;height:36px;border-radius:12px;cursor:pointer}.toast{position:fixed;right:18px;bottom:calc(var(--dock-h) + 28px);z-index:120;padding:13px 16px;border-radius:14px;background:rgba(18,24,38,.93);border:1px solid var(--line);backdrop-filter:blur(20px);box-shadow:0 18px 55px rgba(0,0,0,.32);animation:rise .2s ease}
.dock{position:fixed;z-index:70;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:8px;border-radius:24px;background:rgba(12,17,29,.76);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(28px) saturate(145%);box-shadow:0 18px 65px rgba(0,0,0,.42)}.dock button{min-width:70px;border:0;background:transparent;color:#9da9ba;border-radius:16px;padding:9px 10px;cursor:pointer;display:grid;gap:3px;place-items:center;transition:.2s}.dock button span:first-child{font-size:17px}.dock button small{font-size:10px}.dock button:hover,.dock button.active{color:#fff;background:rgba(255,255,255,.07)}.dock .capture{width:54px;min-width:54px;height:54px;border-radius:18px;color:#fff;font-size:26px;background:linear-gradient(140deg,var(--c1),var(--c2));box-shadow:0 12px 30px color-mix(in srgb,var(--c1) 32%,transparent);margin:0 3px}.dock .capture:hover{transform:translateY(-3px) scale(1.03)}
.theme-menu{display:flex;gap:8px;flex-wrap:wrap}.theme-swatch{width:52px;height:52px;border-radius:16px;border:1px solid var(--line);cursor:pointer;box-shadow:inset 0 1px rgba(255,255,255,.24)}.theme-swatch.auto{display:grid;place-items:center;background:linear-gradient(135deg,#6d74ff,#53d8d0,#ff7cac);font-size:11px;font-weight:700}
@media(max-width:1100px){.memory-grid,.vault-grid,.source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h2{font-size:clamp(48px,9vw,78px)}}
@media(max-width:760px){:root{--dock-h:72px}.topbar{padding:13px 12px}.brand small{display:none}.top-actions .theme-text{display:none}.main{padding:8px 12px 30px}.page-head{align-items:flex-start;flex-direction:column}.hero{min-height:530px;padding:23px 16px;border-radius:27px}.hero h2{font-size:46px;letter-spacing:-2.4px}.hero p{font-size:15px}.composer{padding:12px}.capture-tools{align-items:stretch}.capture-tools>.btn.primary{width:100%}.tool-group{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.tool{padding:10px 7px;font-size:12px}.grid.two,.grid.three,.grid.four,.memory-grid,.vault-grid,.source-grid{grid-template-columns:1fr}.memory-media{height:230px}.social-grid{grid-template-columns:1fr 1fr}.dock{left:8px;right:8px;transform:none;justify-content:space-between;border-radius:21px;overflow-x:auto}.dock button{min-width:54px;padding:8px 5px}.dock button small{font-size:9px}.dock .capture{min-width:50px;width:50px;height:50px}.ask-box{grid-template-columns:1fr}.bubble{max-width:94%}}
@media(max-width:430px){.hero h2{font-size:40px}.tool-group{grid-template-columns:repeat(2,1fr)}.social-grid{grid-template-columns:1fr}.auth-card{padding:24px 18px}.auth-card h2{font-size:34px}.dock button:nth-child(2) small,.dock button:nth-child(6) small{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.camera-stage{position:relative;border-radius:22px;overflow:hidden;background:#02040a;aspect-ratio:16/10;border:1px solid var(--line)}
.camera-stage video{width:100%;height:100%;object-fit:cover;display:block;background:#02040a}
.camera-status{position:absolute;left:12px;bottom:12px;padding:7px 10px;border-radius:999px;background:rgba(2,5,10,.68);backdrop-filter:blur(12px);font-size:12px;color:#e8edf5;border:1px solid rgba(255,255,255,.12)}
.camera-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:14px}
@media(max-width:760px){.camera-stage{aspect-ratio:3/4;max-height:68vh}.camera-actions .btn{flex:1;min-width:120px}}

.chat-evidence-image{display:block;max-width:min(420px,100%);max-height:300px;object-fit:contain;border-radius:14px;border:1px solid var(--line);margin-bottom:12px;background:#090c12}
.bubble .source{padding-top:8px;border-top:1px solid rgba(255,255,255,.06);margin-top:10px}

/* Production source hub */
.source-hero{position:relative;overflow:hidden;border-radius:28px;padding:26px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}
.source-hero:after{content:"";position:absolute;width:340px;height:340px;right:-120px;top:-150px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--c1) 38%,transparent),transparent 66%);pointer-events:none}
.source-hero h3{position:relative;z-index:1;font-size:clamp(28px,4vw,46px);letter-spacing:-1.4px;margin:5px 0 8px;max-width:760px}
.source-hero p{position:relative;z-index:1;color:var(--muted);line-height:1.58;max-width:820px;margin:0}
.source-summary{position:relative;z-index:2;min-width:145px;padding:18px;border-radius:21px;text-align:center;border:1px solid var(--line);background:rgba(5,9,18,.38)}
.source-summary b{display:block;font-size:29px;letter-spacing:-.8px}.source-summary span{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.source-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;position:relative;z-index:2}.btn.ghost{background:transparent}
.source-card{background:linear-gradient(165deg,color-mix(in srgb,var(--glass2) 92%,transparent),color-mix(in srgb,var(--c1) 3%,var(--glass)))}
.source-card:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 5%,transparent),transparent 45%,color-mix(in srgb,var(--c2) 4%,transparent))}
.source-card .source-icon{box-shadow:inset 0 1px rgba(255,255,255,.12),0 8px 30px color-mix(in srgb,var(--c1) 10%,transparent)}

/* Theme universe */
.theme-picker-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;margin:14px 0 16px}
.theme-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:58vh;overflow:auto;padding:3px}
.theme-card{position:relative;min-height:88px;border:1px solid var(--line);border-radius:17px;background:var(--tb);color:#fff;cursor:pointer;overflow:hidden;text-align:left;padding:11px;transition:.2s}
.theme-card:before{content:"";position:absolute;inset:-25% -10%;background:radial-gradient(circle at 20% 25%,var(--t1),transparent 35%),radial-gradient(circle at 82% 20%,var(--t2),transparent 34%),radial-gradient(circle at 55% 85%,var(--t3),transparent 38%);opacity:.76;filter:blur(3px)}
.theme-card span{position:relative;display:block;height:35px}.theme-card small{position:relative;z-index:1;display:block;font-size:11px;font-weight:700;text-shadow:0 1px 8px rgba(0,0,0,.56)}
.theme-card:hover,.theme-card.selected{transform:translateY(-2px);border-color:rgba(255,255,255,.42);box-shadow:0 12px 26px rgba(0,0,0,.22)}
.theme-card.selected:after{content:"✓";position:absolute;right:8px;top:7px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.54);font-size:11px}

@media(max-width:900px){
  .source-hero{align-items:flex-start;flex-direction:column}
  .source-summary{width:100%;min-width:0;display:flex;justify-content:center;align-items:center;gap:10px}
  .source-summary span{margin:0}
  .theme-picker-tools{grid-template-columns:1fr 1fr}
  .theme-picker-tools .input{grid-column:1/-1}
  .theme-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:560px){
  .theme-picker-tools{grid-template-columns:1fr}
  .theme-picker-tools .input{grid-column:auto}
  .theme-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .source-actions .btn{flex:1}
}

/* Ask mobile production layout */
.ask-box{position:sticky;bottom:calc(var(--dock-h) + 28px);z-index:32}
.chat-panel{scroll-padding-bottom:150px}
@media(max-width:760px){
  .ask-shell{min-height:calc(100dvh - 190px);padding-bottom:18px}
  .ask-box{bottom:calc(var(--dock-h) + max(18px,env(safe-area-inset-bottom)));border-radius:22px}
  .chat-panel{max-height:none;min-height:52dvh;padding-bottom:34px}
  .app{padding-bottom:calc(var(--dock-h) + 110px)}
}

/* Production conversational motion */
.ask-intelligence{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:20px;margin-bottom:12px;position:sticky;top:78px;z-index:15;backdrop-filter:blur(18px)}
.ask-intelligence>div:nth-child(2){min-width:0;flex:1}.ask-intelligence strong{display:block;font-size:13px}.ask-intelligence small{display:block;color:var(--muted);font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.intelligence-orb{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--c3),var(--c1) 48%,color-mix(in srgb,var(--c2) 70%,transparent));box-shadow:0 0 22px color-mix(in srgb,var(--c1) 36%,transparent);position:relative;flex:0 0 auto}
.intelligence-orb:before,.intelligence-orb:after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1px solid color-mix(in srgb,var(--c2) 50%,transparent);animation:intelPulse 2.6s ease-out infinite}
.intelligence-orb:after{animation-delay:1.3s}.intelligence-orb span{width:8px;height:8px;border-radius:50%;background:white;box-shadow:0 0 12px white}
@keyframes intelPulse{0%{transform:scale(.75);opacity:.85}100%{transform:scale(1.65);opacity:0}}

.thinking-bubble{overflow:hidden;min-height:84px;background:linear-gradient(135deg,color-mix(in srgb,var(--glass2) 94%,transparent),color-mix(in srgb,var(--c1) 7%,var(--glass)))}
.thinking-card{display:flex;align-items:center;gap:14px;position:relative}
.thinking-card:after{content:"";position:absolute;inset:-18px -30%;background:linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--c2) 12%,transparent),transparent 70%);animation:thinkingSweep 1.8s linear infinite;pointer-events:none}
.thinking-card strong,.thinking-card small{position:relative;z-index:1}.thinking-card strong{display:block;font-size:13px}.thinking-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.thinking-status.swap{animation:thinkingText .32s ease}
.thinking-orb{width:42px;height:42px;border-radius:50%;position:relative;display:grid;place-items:center;flex:0 0 auto;background:radial-gradient(circle at 30% 28%,color-mix(in srgb,var(--c3) 92%,white),var(--c1) 52%,color-mix(in srgb,var(--c2) 55%,#10131d));box-shadow:0 0 28px color-mix(in srgb,var(--c1) 28%,transparent)}
.thinking-orb span{position:absolute;width:6px;height:6px;border-radius:50%;background:white;top:50%;left:50%;margin:-3px;transform-origin:3px 3px;box-shadow:0 0 9px white}
.thinking-orb span:nth-child(1){animation:orbitOne 1.15s linear infinite}.thinking-orb span:nth-child(2){animation:orbitTwo 1.55s linear infinite}.thinking-orb span:nth-child(3){animation:orbitThree 1.95s linear infinite}
@keyframes orbitOne{from{transform:rotate(0deg) translateX(13px)}to{transform:rotate(360deg) translateX(13px)}}
@keyframes orbitTwo{from{transform:rotate(120deg) translateX(9px)}to{transform:rotate(480deg) translateX(9px)}}
@keyframes orbitThree{from{transform:rotate(240deg) translateX(16px)}to{transform:rotate(600deg) translateX(16px)}}
@keyframes thinkingSweep{from{transform:translateX(-45%)}to{transform:translateX(45%)}}
@keyframes thinkingText{0%{opacity:.2;transform:translateY(5px)}100%{opacity:1;transform:translateY(0)}}
@keyframes answerIn{0%{opacity:0;transform:translateY(9px) scale(.985)}100%{opacity:1;transform:translateY(0) scale(1)}}

.bubble.assistant.fresh{animation:answerIn .38s cubic-bezier(.2,.8,.2,1)}
.bubble-text{white-space:pre-wrap;line-height:1.58;overflow-wrap:anywhere}
.answer-engine{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:9px;margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}
.live-dot{width:7px;height:7px;border-radius:50%;background:var(--c2);box-shadow:0 0 10px var(--c2);animation:liveDot 1.5s ease-in-out infinite}
@keyframes liveDot{50%{opacity:.35;transform:scale(.75)}}

.provider-disabled{opacity:.66;border-style:dashed!important;cursor:pointer}
.provider-disabled:after{content:"Setup";font-size:8px;margin-left:6px;padding:3px 6px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid var(--line)}
.auth-loading{min-height:250px;display:grid;align-content:center;gap:20px}
.auth-loader{display:flex;gap:8px;justify-content:center}.auth-loader span{width:9px;height:9px;border-radius:50%;background:var(--c1);animation:authBounce 1s ease-in-out infinite}.auth-loader span:nth-child(2){animation-delay:.15s;background:var(--c2)}.auth-loader span:nth-child(3){animation-delay:.3s;background:var(--c3)}
@keyframes authBounce{0%,100%{transform:translateY(0);opacity:.45}50%{transform:translateY(-9px);opacity:1}}

.ask-box{box-shadow:0 18px 60px rgba(0,0,0,.22),0 0 40px color-mix(in srgb,var(--c1) 6%,transparent)}
.ask-box .input:focus{box-shadow:0 0 0 1px color-mix(in srgb,var(--c1) 55%,transparent),0 0 30px color-mix(in srgb,var(--c1) 10%,transparent)}
.ask-suggestions{scrollbar-width:none}.ask-suggestions::-webkit-scrollbar{display:none}

@media(max-width:760px){
  .ask-intelligence{top:70px;margin-inline:-2px}
  .ask-intelligence .status{font-size:8px;padding:5px 8px}
  .ask-suggestions{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}
  .ask-suggestions .chip{flex:0 0 auto}
  .thinking-bubble{min-height:78px}
  .thinking-orb{width:38px;height:38px}
  .bubble{font-size:16px;line-height:1.55}
}

/* Live AI diagnostics */
.ai-diagnostic{margin-top:14px;padding:11px 12px;border-radius:14px;border:1px solid var(--line);background:rgba(4,8,16,.28);display:grid;gap:4px;position:relative;z-index:2}
.ai-diagnostic strong{font-size:11px}
.ai-diagnostic span{font-size:9px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}


/* Memora product shell v2 */
.app{position:relative;isolation:isolate}
.main{position:relative;z-index:2}
.top-left{display:flex;align-items:center;gap:10px;min-width:0}
.back-btn{width:40px;height:40px;flex:0 0 auto;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.055);color:#fff;font-size:30px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:.22s}
.back-btn:hover{background:rgba(255,255,255,.11);transform:translateX(-2px)}
.sound-button[data-enabled="false"]{opacity:.65}
.sound-icon{width:18px;height:18px;display:inline-grid;place-items:center;border-radius:50%;background:radial-gradient(circle,var(--c2),var(--c1));box-shadow:0 0 14px color-mix(in srgb,var(--c1) 30%,transparent)}
.sound-button[data-enabled="false"] .sound-icon{background:#788394;box-shadow:none}

/* Live daypart and seasonal scene */
.scene-layer{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;opacity:.72;transition:opacity 1s ease,filter 1s ease}
html[data-dynamic-background="off"] .scene-layer{opacity:0}
.scene-layer span{position:absolute;border-radius:50%;filter:blur(2px);opacity:.22;animation:sceneFloat 18s ease-in-out infinite;will-change:transform}
.scene-layer span:nth-child(1){width:42vw;height:42vw;left:-12vw;top:8vh;background:radial-gradient(circle,color-mix(in srgb,var(--c2) 32%,transparent),transparent 67%)}
.scene-layer span:nth-child(2){width:34vw;height:34vw;right:-8vw;top:17vh;background:radial-gradient(circle,color-mix(in srgb,var(--c3) 28%,transparent),transparent 68%);animation-duration:22s;animation-delay:-7s}
.scene-layer span:nth-child(3){width:28vw;height:28vw;left:35vw;bottom:-12vw;background:radial-gradient(circle,color-mix(in srgb,var(--c1) 30%,transparent),transparent 68%);animation-duration:25s;animation-delay:-12s}
.scene-layer span:nth-child(4),.scene-layer span:nth-child(5){width:8px;height:8px;background:rgba(255,255,255,.65);box-shadow:0 0 18px rgba(255,255,255,.35);filter:none;animation:sceneParticle 14s linear infinite}
.scene-layer span:nth-child(4){left:18%;top:78%;animation-delay:-3s}.scene-layer span:nth-child(5){left:78%;top:65%;animation-delay:-9s}
html[data-daypart="dawn"] .scene-layer{filter:saturate(1.08) brightness(1.08)}
html[data-daypart="morning"] .scene-layer{filter:saturate(1.12) brightness(1.05)}
html[data-daypart="sunset"] .scene-layer{filter:saturate(1.25) hue-rotate(-8deg)}
html[data-daypart="night"] .scene-layer{filter:saturate(.92) brightness(.72)}
html[data-season="spring"] .scene-layer span:nth-child(4),html[data-season="spring"] .scene-layer span:nth-child(5){background:#ffd7ec}
html[data-season="summer"] .scene-layer span:nth-child(4),html[data-season="summer"] .scene-layer span:nth-child(5){background:#ffeaa0}
html[data-season="autumn"] .scene-layer span:nth-child(4),html[data-season="autumn"] .scene-layer span:nth-child(5){background:#ffb36b}
html[data-season="winter"] .scene-layer span:nth-child(4),html[data-season="winter"] .scene-layer span:nth-child(5){background:#d9f4ff}
@keyframes sceneFloat{0%,100%{transform:translate3d(0,0,0) scale(1)}35%{transform:translate3d(32px,-24px,0) scale(1.08)}70%{transform:translate3d(-20px,18px,0) scale(.96)}}
@keyframes sceneParticle{0%{transform:translate3d(0,0,0) scale(.5);opacity:0}12%{opacity:.55}70%{opacity:.28}100%{transform:translate3d(35px,-70vh,0) scale(1.4);opacity:0}}

/* Compact organized Home */
.home-hero{min-height:430px}
.home-hero h2{font-size:clamp(44px,7vw,82px)}
.home-hub{margin-top:22px;padding:20px;border-radius:28px;overflow:hidden}
.home-hub-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}
.home-hub-head h3{margin:5px 0 0;font-size:clamp(22px,3vw,32px);letter-spacing:-.7px}
.home-tabs{display:flex;gap:6px;padding:5px;border-radius:16px;background:rgba(3,6,12,.38);border:1px solid var(--line)}
.home-tab{border:0;color:var(--muted);background:transparent;padding:9px 13px;border-radius:11px;cursor:pointer;transition:.22s}
.home-tab.active{color:#fff;background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 24%,rgba(255,255,255,.05)),color-mix(in srgb,var(--c2) 12%,rgba(255,255,255,.04)));box-shadow:inset 0 0 0 1px var(--line)}
.home-panel{display:none;animation:panelReveal .3s ease}
.home-panel.active{display:block}
@keyframes panelReveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.stat-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mini-stat{text-align:left;color:#fff;cursor:pointer;border:1px solid var(--line);width:100%}
.mini-stat small{display:block;color:var(--muted);font-size:10px;margin-top:5px}
.compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.compact-card .memory-media{height:150px}
.compact-card .memory-body{padding:15px}
.compact-card .memory-title{font-size:15px}
.panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.panel-head h3{margin:0}.panel-head p{margin:4px 0 0}
.shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.shortcut-card{display:flex;align-items:center;gap:12px;text-align:left;padding:16px;border-radius:19px;border:1px solid var(--line);background:rgba(255,255,255,.035);color:#fff;cursor:pointer;transition:.22s}
.shortcut-card:hover{transform:translateY(-2px);background:rgba(255,255,255,.07)}
.shortcut-card>span{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 24%,transparent),color-mix(in srgb,var(--c2) 12%,transparent));font-size:20px}
.shortcut-card b,.shortcut-card small{display:block}.shortcut-card small{color:var(--muted);margin-top:3px;font-size:10px}

/* Memory disclosure */
.memory-title,.memory-original{overflow-wrap:anywhere}
.memory-original{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.compact-card .memory-original{-webkit-line-clamp:3}
.memory-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:12px}
.memory-footer .memory-meta{margin-top:0}
.memory-open{border:1px solid var(--line);background:rgba(255,255,255,.05);color:#fff;border-radius:10px;padding:7px 10px;cursor:pointer;font-size:11px;flex:0 0 auto}
.memory-detail h3{font-size:clamp(22px,4vw,34px);line-height:1.15;margin:10px 0 12px;overflow-wrap:anywhere}
.memory-detail p{color:#c6cfdb;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}

/* Multi-chat Ask */
.ask-layout{display:grid;grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:14px;min-height:calc(100dvh - 200px);align-items:start}
.ask-main{min-width:0;display:grid;grid-template-rows:auto minmax(420px,1fr) auto;gap:12px}
.chat-sidebar{position:sticky;top:92px;max-height:calc(100dvh - 190px);padding:14px;border-radius:23px;overflow:hidden;display:flex;flex-direction:column;z-index:18}
.chat-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 3px 12px}
.chat-sidebar-head h3{margin:3px 0 0;font-size:18px}
.btn.compact{padding:8px 10px;font-size:11px}
.thread-list{display:grid;gap:7px;overflow:auto;padding-right:2px}
.chat-thread{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:4px;border:1px solid transparent;border-radius:15px;transition:.2s}
.chat-thread:hover,.chat-thread.active{background:rgba(255,255,255,.055);border-color:var(--line)}
.thread-open{border:0;background:transparent;color:#fff;text-align:left;padding:10px 8px 10px 11px;min-width:0;cursor:pointer}
.thread-open strong,.thread-open small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-open strong{font-size:12px}.thread-open small{color:var(--muted);font-size:9px;margin-top:4px}
.thread-menu{border:0;background:transparent;color:var(--muted);cursor:pointer;border-radius:10px}
.thread-menu:hover{background:rgba(255,255,255,.06);color:#fff}
.thread-toggle{display:none;width:34px;height:34px;border-radius:11px;border:1px solid var(--line);background:rgba(255,255,255,.05);color:#fff;cursor:pointer;flex:0 0 auto}
.ask-title-block{min-width:0;flex:1}.ask-title-block strong,.ask-title-block small{display:block}.ask-title-block strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ask-title-block small{color:var(--muted);font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ask-intelligence .intelligence-orb{flex:0 0 34px!important;min-width:34px!important}
.ask-main .chat-panel{min-height:0;max-height:calc(100dvh - 330px);overflow:auto}
.ask-main .ask-box{position:sticky;bottom:calc(var(--dock-h) + 18px)}
.chat-drawer-scrim{display:none}
.compact-empty{padding:20px!important;font-size:11px}

/* Soundscapes and settings */
.soundscape-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.soundscape-head h3{font-size:28px;margin:4px 0 7px}.soundscape-head p{margin:0;line-height:1.5}
.soundscape-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:18px 0}
.soundscape-card{border:1px solid var(--line);background:rgba(255,255,255,.04);color:#fff;border-radius:16px;padding:13px;text-align:left;cursor:pointer;transition:.2s}
.soundscape-card b,.soundscape-card small{display:block}.soundscape-card small{color:var(--muted);font-size:10px;margin-top:4px}
.soundscape-card:hover,.soundscape-card.selected{transform:translateY(-1px);border-color:color-mix(in srgb,var(--c1) 45%,white);background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 15%,transparent),color-mix(in srgb,var(--c2) 7%,rgba(255,255,255,.03)))}
.volume-row,.setting-switch{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px;border-radius:15px;border:1px solid var(--line);background:rgba(255,255,255,.03)}
.volume-row input{flex:1}.volume-row b{min-width:42px;text-align:right}.setting-switch input{width:auto}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-card{padding:21px;border-radius:24px}.settings-card h3{font-size:24px;margin:5px 0 9px}.settings-card p{line-height:1.55}.settings-stack{display:grid;gap:10px;margin-top:14px}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.055);font-size:12px}.setting-row span{color:var(--muted)}

@media(max-width:980px){
  .shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ask-layout{grid-template-columns:1fr}
  .chat-sidebar{position:fixed;left:12px;top:82px;bottom:calc(var(--dock-h) + 18px);width:min(330px,calc(100vw - 34px));max-height:none;transform:translateX(calc(-100% - 28px));transition:transform .3s cubic-bezier(.2,.8,.2,1);z-index:72}
  .chat-sidebar.open{transform:none}
  .thread-toggle{display:grid;place-items:center}
  .chat-drawer-scrim{display:block;position:fixed;inset:0;border:0;background:rgba(1,3,7,.58);backdrop-filter:blur(6px);opacity:0;pointer-events:none;transition:.25s;z-index:70}
  .chat-drawer-scrim.open{opacity:1;pointer-events:auto}
  .ask-main .chat-panel{max-height:none;min-height:52dvh}
}

@media(max-width:760px){
  .top-left{gap:7px}.back-btn{width:36px;height:36px;border-radius:12px;font-size:26px}
  .sound-label{display:none}.sound-button{padding-inline:11px}
  .home-hero{min-height:460px;padding:22px 15px}.home-hero h2{font-size:42px;letter-spacing:-2.2px}
  .home-hub{padding:14px;border-radius:23px}
  .home-hub-head{align-items:stretch;flex-direction:column}
  .home-tabs{width:100%;overflow:auto}.home-tab{flex:1;white-space:nowrap}
  .stat-strip{display:flex;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:3px}.mini-stat{flex:0 0 78%;scroll-snap-align:start}
  .compact-grid{grid-template-columns:1fr}
  .shortcut-grid{grid-template-columns:1fr 1fr}
  .shortcut-card{padding:12px}.shortcut-card>span{width:36px;height:36px}.shortcut-card small{display:none}
  .ask-layout{min-height:calc(100dvh - 160px)}
  .ask-main{grid-template-rows:auto minmax(0,1fr) auto}
  .ask-main .chat-panel{min-height:50dvh;padding:14px}
  .ask-main .ask-box{bottom:calc(var(--dock-h) + max(12px,env(safe-area-inset-bottom)))}
  .ask-intelligence{top:68px;padding:11px 12px}
  .ask-title-block small{max-width:44vw}
  .settings-grid{grid-template-columns:1fr}
  .soundscape-grid{grid-template-columns:1fr 1fr}
  .soundscape-head{flex-direction:column}
}

@media(max-width:430px){
  .top-actions{gap:5px}.top-actions .icon-btn{padding:9px 10px}
  .brand h1{font-size:18px}.logo{width:39px;height:39px}
  .shortcut-grid{grid-template-columns:1fr}
  .soundscape-grid{grid-template-columns:1fr}
  .chat-sidebar{left:8px;width:calc(100vw - 16px)}
}

@media(prefers-reduced-motion:reduce){
  .scene-layer,.scene-layer span{animation:none!important}
}

/* Source category tabs */
.source-tabs{display:flex;gap:7px;padding:6px;border-radius:18px;margin:0 0 15px;overflow:auto;position:sticky;top:82px;z-index:14;backdrop-filter:blur(20px)}
.source-tab{border:0;background:transparent;color:var(--muted);padding:9px 12px;border-radius:12px;white-space:nowrap;cursor:pointer;transition:.2s}
.source-tab.active{color:#fff;background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 22%,rgba(255,255,255,.05)),color-mix(in srgb,var(--c2) 10%,rgba(255,255,255,.04)));box-shadow:inset 0 0 0 1px var(--line)}
.provider-status-list{display:grid;gap:7px;margin-top:13px}.provider-status-list span{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px}.provider-status-list b{color:#fff}
@media(max-width:760px){.source-tabs{top:66px;margin-inline:-1px}.source-tab{font-size:11px;padding:8px 10px}}


/* Memora Audio and interaction refinement v21 */
:root{--player-h:78px;--player-gap:16px}
body.has-memora-player .app{padding-bottom:calc(var(--dock-h) + var(--player-h) + 72px)}
body.has-memora-player .toast{bottom:calc(var(--dock-h) + var(--player-h) + 48px)}
body.has-memora-player .ask-main .ask-box{bottom:calc(var(--dock-h) + var(--player-h) + 34px)}
body.has-memora-player .chat-panel{scroll-padding-bottom:calc(var(--player-h) + 170px)}

.memora-player{
  position:fixed;
  z-index:68;
  left:50%;
  bottom:calc(var(--dock-h) + 30px);
  transform:translateX(-50%);
  width:min(860px,calc(100vw - 28px));
  min-height:72px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:24px;
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--glass2) 94%,transparent),color-mix(in srgb,var(--c1) 8%,var(--glass))),
    rgba(7,11,20,.82);
  border:1px solid color-mix(in srgb,var(--c1) 18%,var(--line));
  backdrop-filter:blur(32px) saturate(155%);
  box-shadow:
    0 22px 70px rgba(0,0,0,.52),
    0 0 42px color-mix(in srgb,var(--c1) 8%,transparent),
    inset 0 1px rgba(255,255,255,.055);
  overflow:hidden;
  isolation:isolate;
}
.memora-player:before{
  content:"";
  position:absolute;
  inset:-70% -15%;
  z-index:-1;
  background:
    radial-gradient(circle at 14% 48%,color-mix(in srgb,var(--c1) 30%,transparent),transparent 22%),
    radial-gradient(circle at 75% 30%,color-mix(in srgb,var(--c2) 22%,transparent),transparent 27%),
    radial-gradient(circle at 90% 80%,color-mix(in srgb,var(--c3) 16%,transparent),transparent 24%);
  filter:blur(18px);
  animation:playerAura 13s ease-in-out infinite;
}
.memora-player[data-mode="radio"]:before{
  animation-duration:8s;
  filter:blur(12px) saturate(1.25);
}
@keyframes playerAura{
  0%,100%{transform:translate3d(-3%,0,0) scale(1)}
  40%{transform:translate3d(7%,-5%,0) scale(1.1)}
  75%{transform:translate3d(1%,5%,0) scale(.97)}
}

.player-live-orb{
  position:relative;
  width:48px;height:48px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.13);
  background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 48%,#111827),color-mix(in srgb,var(--c2) 35%,#111827));
  color:#fff;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:3px;
  padding:11px 9px;
  cursor:pointer;
  box-shadow:0 9px 28px color-mix(in srgb,var(--c1) 30%,transparent),inset 0 1px rgba(255,255,255,.18);
  overflow:hidden;
}
.player-live-orb span{
  position:absolute;inset:8px;border-radius:50%;
  border:1px solid rgba(255,255,255,.24);
  animation:orbRing 3.3s ease-in-out infinite;
}
.player-live-orb i{
  display:block;width:4px;border-radius:8px;
  background:#fff;opacity:.84;
  height:10px;transform-origin:bottom;
}
.memora-player.playing .player-live-orb i:nth-of-type(1){animation:eqOne .72s ease-in-out infinite}
.memora-player.playing .player-live-orb i:nth-of-type(2){animation:eqTwo .58s ease-in-out infinite}
.memora-player.playing .player-live-orb i:nth-of-type(3){animation:eqThree .82s ease-in-out infinite}
@keyframes orbRing{50%{transform:scale(1.18);opacity:.45}}
@keyframes eqOne{50%{transform:scaleY(2.1)}}
@keyframes eqTwo{50%{transform:scaleY(3)}}
@keyframes eqThree{50%{transform:scaleY(1.65)}}

.player-track{min-width:0;display:grid;gap:2px}
.player-track small{font-size:9px;text-transform:uppercase;letter-spacing:.11em;color:color-mix(in srgb,var(--c2) 68%,#b8c4d5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-track strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.12px}
.player-track span{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.player-actions{display:flex;align-items:center;gap:5px;flex-wrap:nowrap}
.player-action{
  min-width:48px;
  height:38px;
  padding:0 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.045);
  color:#e8edf5;
  cursor:pointer;
  font-size:9px;
  font-weight:650;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.player-action:hover{background:rgba(255,255,255,.095);transform:translateY(-1px);border-color:rgba(255,255,255,.18)}
.player-action:active{transform:scale(.96)}
.player-action.primary{background:linear-gradient(135deg,var(--c1),color-mix(in srgb,var(--c1) 48%,var(--c2)));border-color:transparent;box-shadow:0 8px 22px color-mix(in srgb,var(--c1) 25%,transparent)}
.player-action.library{min-width:58px;background:color-mix(in srgb,var(--c2) 9%,rgba(255,255,255,.045))}

.audio-library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.audio-library-head h3{font-size:clamp(28px,5vw,42px);letter-spacing:-1.3px;line-height:1.02;margin:5px 0 8px}
.audio-library-head p{max-width:600px;margin:0;line-height:1.52}
.audio-mode-tabs{display:flex;gap:6px;padding:5px;margin:18px 0 12px;border-radius:16px;border:1px solid var(--line);background:rgba(4,8,16,.42)}
.audio-mode-tab{flex:1;border:0;border-radius:11px;padding:10px 12px;background:transparent;color:var(--muted);cursor:pointer;font-size:11px;transition:.2s}
.audio-mode-tab.active{color:#fff;background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 22%,rgba(255,255,255,.04)),color-mix(in srgb,var(--c2) 12%,rgba(255,255,255,.04)));box-shadow:inset 0 0 0 1px var(--line)}
.audio-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.audio-presets{display:flex;gap:7px;overflow:auto;padding:10px 0 4px;scrollbar-width:none}
.audio-presets::-webkit-scrollbar{display:none}
.audio-presets .chip{flex:0 0 auto;text-transform:capitalize}
.audio-library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 8px}
.audio-library-toolbar b{font-size:11px}
.audio-library-results{
  display:grid;
  gap:7px;
  max-height:43vh;
  overflow:auto;
  padding:2px 3px 4px;
  overscroll-behavior:contain;
}
.audio-library-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  min-height:58px;
  width:100%;
  padding:9px 11px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:#fff;
  cursor:pointer;
  text-align:left;
  transition:.2s;
}
.audio-library-card:hover,.audio-library-card.selected{background:color-mix(in srgb,var(--c1) 9%,rgba(255,255,255,.04));border-color:color-mix(in srgb,var(--c1) 35%,rgba(255,255,255,.16));transform:translateY(-1px)}
.audio-card-orb{width:36px;height:36px;border-radius:13px;background:radial-gradient(circle at 35% 28%,var(--c3),var(--c1) 48%,var(--c2));box-shadow:0 5px 19px color-mix(in srgb,var(--c1) 18%,transparent)}
.audio-card-copy{min-width:0}.audio-card-copy b,.audio-card-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audio-card-copy b{font-size:12px}.audio-card-copy small{font-size:9px;color:var(--muted);margin-top:3px}
.audio-card-play{font-size:9px;padding:6px 8px;border-radius:9px;background:rgba(255,255,255,.055);border:1px solid var(--line)}
.audio-library-card.selected .audio-card-play{background:color-mix(in srgb,var(--c2) 14%,rgba(255,255,255,.04));color:#e4fff9}
.audio-loading{min-height:130px;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:11px}
.audio-loading span{width:7px;height:7px;border-radius:50%;background:var(--c1);animation:authBounce 1s ease-in-out infinite}.audio-loading span:nth-child(2){animation-delay:.13s;background:var(--c2)}.audio-loading span:nth-child(3){animation-delay:.26s;background:var(--c3)}
.audio-library-footer{margin-top:12px}

/* Stronger living interface */
.topbar{
  border-bottom:1px solid rgba(255,255,255,.035);
  box-shadow:0 14px 50px rgba(0,0,0,.10);
}
.topbar:after{
  content:"";position:absolute;left:10%;right:10%;bottom:-1px;height:1px;
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--c1) 40%,transparent),color-mix(in srgb,var(--c2) 35%,transparent),transparent);
  opacity:.55;
}
.logo{animation:logoBreath 7s ease-in-out infinite}
@keyframes logoBreath{50%{box-shadow:0 12px 42px color-mix(in srgb,var(--c1) 48%,transparent),inset 0 1px rgba(255,255,255,.55);transform:translateY(-1px)}}
.main>*{animation:pageLift .42s cubic-bezier(.2,.8,.2,1) both}
@keyframes pageLift{from{opacity:.72;transform:translateY(7px)}to{opacity:1;transform:none}}
.btn,.chip,.tool,.icon-btn,.dock button,.memory-card,.vault-card,.source-card,.shortcut-card{will-change:transform}
.btn:active,.chip:active,.tool:active,.icon-btn:active,.dock button:active,.shortcut-card:active{transform:scale(.965)}
.dock{transition:border-color .35s ease,box-shadow .35s ease}
.dock:before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(110deg,transparent 12%,color-mix(in srgb,var(--c1) 5%,transparent),transparent 44%,color-mix(in srgb,var(--c2) 5%,transparent),transparent 82%);
  background-size:220% 100%;
  animation:dockSheen 10s linear infinite;
}
@keyframes dockSheen{to{background-position:-220% 0}}
.dock button.active{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c1) 15%,transparent),0 4px 18px rgba(0,0,0,.12)}
.home-hero:before{animation:drift 8s ease-in-out infinite,breathe 13s ease-in-out infinite}
.home-hero .composer{transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.home-hero .composer:focus-within{transform:translateY(-2px);border-color:color-mix(in srgb,var(--c1) 28%,rgba(255,255,255,.12));box-shadow:0 32px 80px rgba(0,0,0,.34),0 0 50px color-mix(in srgb,var(--c1) 8%,transparent)}

@media(max-width:760px){
  :root{--player-h:108px}
  .sound-label{display:inline!important}
  .sound-button{padding-inline:10px!important}
  .memora-player{
    width:calc(100vw - 18px);
    bottom:calc(var(--dock-h) + 24px);
    min-height:100px;
    grid-template-columns:42px minmax(0,1fr);
    grid-template-rows:auto auto;
    gap:7px 9px;
    padding:9px 10px;
    border-radius:21px;
  }
  .player-live-orb{width:42px;height:42px;border-radius:14px;grid-row:1}
  .player-track{grid-column:2;grid-row:1}
  .player-track strong{font-size:12px}
  .player-actions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
  .player-action{min-width:0;height:32px;padding:0 5px;font-size:8px;border-radius:10px}
  .player-action.library{min-width:0}
  body.has-memora-player .app{padding-bottom:calc(var(--dock-h) + var(--player-h) + 88px)}
  body.has-memora-player .ask-main .ask-box{bottom:calc(var(--dock-h) + var(--player-h) + 28px)}
  .audio-library-head{flex-direction:column}
  .audio-library-head .btn{align-self:stretch}
  .audio-library-results{max-height:38vh}
  .modal{padding:19px 15px;border-radius:23px}
}
@media(max-width:430px){
  .sound-button .sound-icon{display:none}
  .sound-button{font-size:10px}
  .audio-search-row{grid-template-columns:1fr}
  .audio-library-toolbar{align-items:flex-start;flex-direction:column}
}


/* Audio reactive living background */
.scene-layer:before{
  content:"";
  position:absolute;
  inset:-15%;
  opacity:0;
  pointer-events:none;
  transition:opacity .8s ease,filter .8s ease;
}
html[data-audio-playing="true"][data-audio-scene="rain"] .scene-layer:before{
  opacity:.26;
  background:repeating-linear-gradient(102deg,transparent 0 17px,rgba(205,230,255,.32) 18px,transparent 20px 38px);
  background-size:170px 220px;
  animation:memoraRain 1.2s linear infinite;
  filter:blur(.25px);
}
html[data-audio-playing="true"][data-audio-scene="ocean"] .scene-layer:before,
html[data-audio-playing="true"][data-audio-scene="water"] .scene-layer:before{
  opacity:.32;
  background:
    radial-gradient(ellipse at 18% 100%,color-mix(in srgb,var(--c2) 34%,transparent),transparent 38%),
    radial-gradient(ellipse at 62% 115%,color-mix(in srgb,var(--c1) 23%,transparent),transparent 42%),
    radial-gradient(ellipse at 92% 105%,rgba(110,210,255,.13),transparent 36%);
  animation:memoraWave 7s ease-in-out infinite;
}
html[data-audio-playing="true"][data-audio-scene="forest"] .scene-layer:before{
  opacity:.34;
  background:
    radial-gradient(circle at 12% 70%,rgba(130,255,174,.18) 0 2px,transparent 3px),
    radial-gradient(circle at 35% 54%,rgba(220,255,164,.14) 0 1.5px,transparent 3px),
    radial-gradient(circle at 68% 78%,rgba(136,255,202,.16) 0 2px,transparent 3px),
    radial-gradient(circle at 87% 42%,rgba(235,255,171,.13) 0 1.5px,transparent 3px);
  background-size:160px 180px,210px 240px,250px 210px,190px 230px;
  animation:forestFireflies 13s ease-in-out infinite;
}
html[data-audio-playing="true"][data-audio-scene="night"] .scene-layer:before{
  opacity:.3;
  background:
    radial-gradient(circle at 20% 22%,rgba(225,236,255,.28) 0 1px,transparent 2px),
    radial-gradient(circle at 72% 18%,rgba(206,225,255,.18) 0 1px,transparent 2px),
    radial-gradient(circle at 48% 68%,rgba(185,212,255,.16) 0 1px,transparent 2px);
  background-size:110px 130px,170px 190px,230px 260px;
  animation:nightDrift 24s linear infinite;
}
html[data-audio-playing="true"][data-audio-scene="wind"] .scene-layer:before{
  opacity:.22;
  background:repeating-linear-gradient(170deg,transparent 0 38px,rgba(255,255,255,.08) 40px,transparent 44px 90px);
  animation:windSweep 9s linear infinite;
}
html[data-audio-playing="true"][data-audio-scene="radio"] .scene-layer:before{
  opacity:.22;
  background:
    radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--c1) 25%,transparent),transparent 23%),
    conic-gradient(from 0deg at 50% 50%,transparent,color-mix(in srgb,var(--c2) 12%,transparent),transparent,color-mix(in srgb,var(--c3) 10%,transparent),transparent);
  animation:radioPulse 9s linear infinite;
}
@keyframes memoraRain{to{background-position:-42px 220px}}
@keyframes memoraWave{0%,100%{transform:translate3d(-3%,2%,0) scale(1)}50%{transform:translate3d(4%,-2%,0) scale(1.06)}}
@keyframes forestFireflies{0%,100%{transform:translate3d(0,0,0);filter:brightness(.8)}50%{transform:translate3d(20px,-25px,0);filter:brightness(1.4)}}
@keyframes nightDrift{to{background-position:80px -180px,-120px -210px,90px -240px}}
@keyframes windSweep{to{background-position:420px -90px}}
@keyframes radioPulse{50%{transform:scale(1.08) rotate(180deg)}100%{transform:scale(1) rotate(360deg)}}

@media(prefers-reduced-motion:reduce){
  .scene-layer:before{animation:none!important}
}


/* Audio discovery clarity v23 */
.audio-library-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.audio-library-actions .btn.compact{min-height:32px;padding:7px 10px;font-size:9px;white-space:nowrap}
.audio-library-actions .btn[hidden]{display:none!important}
.audio-source-note{margin-top:9px;padding:10px 12px;border-radius:13px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.055);font-size:9px;line-height:1.45;color:var(--muted)}
.audio-source-note a{color:color-mix(in srgb,var(--c2) 78%,#fff);text-decoration:none}
.audio-source-note a:hover{text-decoration:underline}
@media(max-width:760px){
  .audio-library-actions{width:100%;justify-content:space-between}
  .audio-library-actions .small{max-width:58%}
  .audio-library-actions .btn.compact{flex:0 0 auto}
}


/* World radio controls v25 */
.radio-world-controls{
  display:grid;
  gap:10px;
  margin:14px 0 10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.035),color-mix(in srgb,var(--c1) 5%,transparent));
}
.radio-country-field{display:grid;gap:6px}
.radio-country-field>span{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}
.radio-country-field select.input{
  appearance:auto;
  min-height:44px;
  background:rgba(5,9,18,.72);
}
.radio-sort-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.radio-sort-btn{
  min-height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:10px;
  font-weight:650;
  cursor:pointer;
  transition:.2s;
}
.radio-sort-btn.active{
  color:#fff;
  background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 20%,rgba(255,255,255,.04)),color-mix(in srgb,var(--c2) 10%,rgba(255,255,255,.03)));
  border-color:color-mix(in srgb,var(--c1) 34%,rgba(255,255,255,.13));
  box-shadow:0 6px 18px color-mix(in srgb,var(--c1) 10%,transparent);
}
.radio-country-quick{
  display:flex;
  gap:6px;
  overflow:auto;
  scrollbar-width:none;
  padding-bottom:2px;
}
.radio-country-quick::-webkit-scrollbar{display:none}
.radio-country-quick .chip{flex:0 0 auto}
.audio-library-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.audio-source-note{
  margin-top:8px;
  padding:9px 11px;
  border-radius:12px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.045);
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}
.audio-source-note a{color:color-mix(in srgb,var(--c2) 70%,white);text-decoration:none}
.audio-source-note a:hover{text-decoration:underline}

@media(max-width:760px){
  .radio-sort-switch{grid-template-columns:1fr}
  .audio-library-actions{justify-content:flex-start}
  .radio-world-controls{padding:10px}
}


/* Devotional and spiritual audio v26 */
.audio-mode-tabs.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.devotional-panel{
  display:grid;
  gap:12px;
  margin:14px 0;
  padding:14px;
  border-radius:20px;
  border:1px solid color-mix(in srgb,var(--c2) 18%,var(--line));
  background:
    radial-gradient(circle at 8% 0%,color-mix(in srgb,var(--c1) 11%,transparent),transparent 34%),
    radial-gradient(circle at 92% 100%,color-mix(in srgb,var(--c3) 9%,transparent),transparent 30%),
    rgba(255,255,255,.025);
}
.devotional-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.devotional-intro strong{display:block;margin-top:4px;font-size:15px}
.devotional-intro>.small{max-width:330px;text-align:right;line-height:1.45}
.devotional-group{display:grid;gap:8px}
.devotional-group h4{
  margin:0;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:color-mix(in srgb,var(--c2) 66%,#dbe4f0);
}
.devotional-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.devotional-chip{
  min-height:42px;
  padding:9px 10px;
  border-radius:13px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  color:#edf2f8;
  text-align:left;
  font-size:10px;
  font-weight:650;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.devotional-chip:hover,.devotional-chip.selected{
  transform:translateY(-1px);
  background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 15%,rgba(255,255,255,.04)),color-mix(in srgb,var(--c2) 8%,rgba(255,255,255,.03)));
  border-color:color-mix(in srgb,var(--c1) 34%,rgba(255,255,255,.14));
  box-shadow:0 8px 24px color-mix(in srgb,var(--c1) 8%,transparent);
}
html[data-audio-playing="true"][data-audio-scene="devotional"] .scene-layer:before{
  opacity:.28;
  background:
    radial-gradient(circle at 22% 28%,color-mix(in srgb,var(--c3) 18%,transparent),transparent 18%),
    radial-gradient(circle at 72% 38%,color-mix(in srgb,var(--c1) 15%,transparent),transparent 24%),
    radial-gradient(circle at 48% 82%,color-mix(in srgb,var(--c2) 12%,transparent),transparent 28%);
  animation:devotionalGlow 11s ease-in-out infinite;
  filter:blur(2px);
}
@keyframes devotionalGlow{
  0%,100%{transform:scale(1) translate3d(-2%,1%,0);filter:blur(2px) brightness(.92)}
  50%{transform:scale(1.08) translate3d(3%,-2%,0);filter:blur(4px) brightness(1.15)}
}
@media(max-width:900px){
  .devotional-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:620px){
  .audio-mode-tabs.three{grid-template-columns:1fr}
  .devotional-intro{flex-direction:column}
  .devotional-intro>.small{text-align:left}
  .devotional-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Devotional and spiritual audio v26 */
.audio-mode-tabs.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.radio-sort-switch.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.devotional-panel{
  display:grid;
  gap:14px;
  margin:14px 0 10px;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--c1) 14%,var(--line));
  border-radius:22px;
  background:
    radial-gradient(circle at 12% 8%,color-mix(in srgb,var(--c1) 10%,transparent),transparent 32%),
    radial-gradient(circle at 88% 16%,color-mix(in srgb,var(--c2) 8%,transparent),transparent 34%),
    rgba(255,255,255,.025);
}
.devotional-hero{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 10%,rgba(255,255,255,.025)),color-mix(in srgb,var(--c2) 5%,rgba(255,255,255,.02)));
  border:1px solid rgba(255,255,255,.05);
}
.devotional-hero strong{display:block;font-size:18px;margin:4px 0 5px}
.devotional-hero p{margin:0;color:var(--muted);font-size:10px;line-height:1.55}
.devotional-symbols{
  width:58px;height:58px;border-radius:19px;
  display:grid;place-items:center;
  position:relative;overflow:hidden;
  background:radial-gradient(circle at 30% 24%,color-mix(in srgb,var(--c3) 60%,white),var(--c1) 48%,color-mix(in srgb,var(--c2) 74%,#101624));
  box-shadow:0 10px 28px color-mix(in srgb,var(--c1) 18%,transparent),inset 0 1px rgba(255,255,255,.2);
}
.devotional-symbols span{position:absolute;color:#fff;font-size:13px;animation:devotionalOrbit 7s linear infinite}
.devotional-symbols span:nth-child(1){transform:translateY(-15px)}
.devotional-symbols span:nth-child(2){animation-delay:-2.3s}
.devotional-symbols span:nth-child(3){animation-delay:-4.6s}
@keyframes devotionalOrbit{0%{transform:rotate(0deg) translateY(-15px) rotate(0deg)}100%{transform:rotate(360deg) translateY(-15px) rotate(-360deg)}}

.devotional-group{display:grid;gap:8px}
.devotional-group h4{margin:0;font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:color-mix(in srgb,var(--c2) 58%,#c8d2df)}
.devotional-grid{display:flex;flex-wrap:wrap;gap:7px}
.devotional-chip{
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:#dfe5ee;
  padding:8px 11px;
  font-size:10px;
  cursor:pointer;
  transition:.2s ease;
}
.devotional-chip:hover{transform:translateY(-1px);background:rgba(255,255,255,.07)}
.devotional-chip.selected{
  color:#fff;
  border-color:color-mix(in srgb,var(--c1) 42%,rgba(255,255,255,.12));
  background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 24%,rgba(255,255,255,.04)),color-mix(in srgb,var(--c2) 10%,rgba(255,255,255,.03)));
  box-shadow:0 6px 18px color-mix(in srgb,var(--c1) 11%,transparent);
}
.devotional-note{
  margin:0;
  padding:10px 12px;
  border-radius:14px;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.04);
}
.audio-card-art{
  width:38px;height:38px;border-radius:13px;
  overflow:hidden;
  display:grid;place-items:center;
  background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 28%,#1a2130),color-mix(in srgb,var(--c2) 12%,#121925));
  box-shadow:0 4px 16px rgba(0,0,0,.2);
}
.audio-card-art img{width:100%;height:100%;object-fit:cover}
.audio-card-art.fallback:after{
  content:"♫";
  color:#fff;
  font-size:14px;
  opacity:.85;
}
html[data-audio-playing="true"][data-audio-scene="devotional"] .scene-layer:before{
  opacity:.26;
  background:
    radial-gradient(circle at 18% 28%,color-mix(in srgb,var(--c3) 18%,transparent),transparent 24%),
    radial-gradient(circle at 78% 34%,color-mix(in srgb,var(--c1) 18%,transparent),transparent 28%),
    conic-gradient(from 45deg at 50% 50%,transparent,color-mix(in srgb,var(--c2) 6%,transparent),transparent,color-mix(in srgb,var(--c1) 7%,transparent),transparent);
  animation:devotionalGlow 18s ease-in-out infinite;
}
@keyframes devotionalGlow{
  0%,100%{transform:scale(1) rotate(0deg);filter:brightness(.9)}
  50%{transform:scale(1.07) rotate(5deg);filter:brightness(1.18)}
}
@media(max-width:760px){
  .audio-mode-tabs.three{grid-template-columns:1fr}
  .radio-sort-switch.three{grid-template-columns:1fr}
  .devotional-hero{grid-template-columns:1fr}
  .devotional-symbols{width:50px;height:50px}
}


/* Devotional and spiritual discovery v26 */
.world-filter-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.devotional-feature-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.devotional-feature{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:64px;
  padding:11px 12px;
  border-radius:17px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  color:#fff;
  text-align:left;
  cursor:pointer;
  transition:.2s;
}
.devotional-feature>span{
  width:38px;height:38px;border-radius:13px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 28%,transparent),color-mix(in srgb,var(--c2) 14%,transparent));
  flex:0 0 auto;
  font-size:17px;
}
.devotional-feature b,.devotional-feature small{display:block}
.devotional-feature b{font-size:11px}
.devotional-feature small{margin-top:3px;color:var(--muted);font-size:8px;line-height:1.35}
.devotional-feature:hover,.devotional-feature.selected{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--c1) 35%,rgba(255,255,255,.14));
  background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 14%,rgba(255,255,255,.04)),color-mix(in srgb,var(--c2) 8%,rgba(255,255,255,.025)));
  box-shadow:0 10px 30px color-mix(in srgb,var(--c1) 8%,transparent);
}
.devotional-language-quick{
  display:grid;
  gap:7px;
  padding:10px 0 2px;
  border-top:1px solid rgba(255,255,255,.05);
  border-bottom:1px solid rgba(255,255,255,.05);
}
.devotional-language-quick>span{
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.devotional-language-quick>div{
  display:flex;
  gap:6px;
  overflow:auto;
  scrollbar-width:none;
}
.devotional-language-quick>div::-webkit-scrollbar{display:none}
.devotional-language-quick .chip{flex:0 0 auto}
.devotional-language-quick .chip.active{
  color:#fff;
  background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 18%,rgba(255,255,255,.04)),color-mix(in srgb,var(--c2) 10%,rgba(255,255,255,.03)));
  border-color:color-mix(in srgb,var(--c1) 32%,rgba(255,255,255,.14));
}
.devotional-panel .devotional-group{
  padding-top:4px;
}
.devotional-panel .devotional-group+.devotional-group{
  border-top:1px solid rgba(255,255,255,.045);
  padding-top:12px;
}
.devotional-chip{
  position:relative;
  overflow:hidden;
}
.devotional-chip:after{
  content:"";
  position:absolute;
  inset:auto -20% -70% 20%;
  height:100%;
  border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--c1) 12%,transparent),transparent 70%);
  opacity:0;
  transition:.2s;
}
.devotional-chip:hover:after,.devotional-chip.selected:after{opacity:1}
.memora-player[data-mode="radio"] .player-live-orb{
  box-shadow:0 9px 28px color-mix(in srgb,var(--c2) 28%,transparent),inset 0 1px rgba(255,255,255,.18);
}

@media(max-width:760px){
  .world-filter-grid{grid-template-columns:1fr}
  .devotional-feature-row{grid-template-columns:1fr}
  .devotional-panel{padding:12px}
  .devotional-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:390px){
  .devotional-grid{grid-template-columns:1fr}
}


/* Public app polish, accessibility and support v31 */
html,body{overscroll-behavior-y:none}
body{padding-top:env(safe-area-inset-top);-webkit-tap-highlight-color:transparent}
button,a,input,textarea,select{touch-action:manipulation}
button,a{min-height:44px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid color-mix(in srgb,var(--c2) 75%,white);
  outline-offset:3px;
}

.skip-link{
  position:fixed;
  z-index:200;
  left:12px;
  top:max(8px,env(safe-area-inset-top));
  transform:translateY(-160%);
  padding:10px 14px;
  border-radius:12px;
  background:#fff;
  color:#111827;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
  transition:transform .18s ease;
}
.skip-link:focus{transform:translateY(0)}

.brand-button{
  border:0;
  padding:0;
  margin:0;
  background:transparent;
  color:inherit;
  text-align:left;
  font:inherit;
}
.brand-button strong{
  display:block;
  font-size:20px;
  line-height:1.05;
  letter-spacing:-.45px;
}
.brand-button small{margin-top:3px}
.topbar{
  padding-top:max(12px,env(safe-area-inset-top));
}
.main{
  padding-bottom:calc(52px + env(safe-area-inset-bottom));
}

.app-footer{
  margin:42px 0 calc(var(--dock-h) + 28px);
  padding:18px 4px 4px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  border-top:1px solid rgba(255,255,255,.06);
}
.footer-copy{display:grid;gap:4px;min-width:0}
.footer-copy strong{color:#fff;font-size:13px}
.footer-copy span{font-size:10px;line-height:1.5}
.footer-help{
  flex:0 0 auto;
  border:1px solid var(--line);
  background:rgba(255,255,255,.045);
  color:#fff;
  border-radius:13px;
  padding:9px 12px;
  cursor:pointer;
  transition:.2s;
}
.footer-help:hover{transform:translateY(-1px);background:rgba(255,255,255,.085)}

.support-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:clamp(24px,5vw,54px);
  border-radius:32px;
  min-height:260px;
  background:
    radial-gradient(circle at 84% 15%,color-mix(in srgb,var(--c2) 24%,transparent),transparent 34%),
    radial-gradient(circle at 15% 90%,color-mix(in srgb,var(--c1) 22%,transparent),transparent 42%),
    linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.02));
}
.support-hero:after{
  content:"";
  position:absolute;
  width:260px;height:260px;
  right:-80px;top:-110px;
  border-radius:50%;
  border:1px solid color-mix(in srgb,var(--c3) 26%,transparent);
  box-shadow:
    0 0 0 28px color-mix(in srgb,var(--c1) 4%,transparent),
    0 0 0 58px color-mix(in srgb,var(--c2) 3%,transparent);
  animation:supportOrbit 14s ease-in-out infinite;
}
.support-hero-copy{position:relative;z-index:2;max-width:780px}
.support-hero h3{
  margin:6px 0 12px;
  font-size:clamp(34px,6vw,70px);
  line-height:.98;
  letter-spacing:-2.5px;
}
.support-hero p{margin:0;color:var(--muted);max-width:680px;line-height:1.6}
.support-status{
  position:relative;z-index:2;
  display:flex;align-items:center;gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(6,10,18,.48);
  white-space:nowrap;
}
.support-status span{
  width:9px;height:9px;border-radius:50%;
  background:#67f0a7;
  box-shadow:0 0 18px rgba(103,240,167,.65);
  animation:supportPulse 2.2s ease-in-out infinite;
}
.support-status b{font-size:9px;letter-spacing:.02em}
@keyframes supportPulse{50%{transform:scale(.72);opacity:.58}}
@keyframes supportOrbit{50%{transform:translate(-20px,26px) rotate(8deg)}}

.contact-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.contact-card{
  min-height:158px;
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:start;
  gap:13px;
  padding:20px;
  border-radius:24px;
  color:#fff;
  text-decoration:none;
  transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease;
  overflow:hidden;
}
.contact-card:before{
  content:"";
  position:absolute;
  width:160px;height:160px;
  right:-80px;bottom:-100px;
  border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--c1) 20%,transparent),transparent 70%);
  transition:transform .3s ease;
}
.contact-card:hover{
  transform:translateY(-4px);
  border-color:color-mix(in srgb,var(--c1) 35%,rgba(255,255,255,.14));
  box-shadow:0 22px 54px rgba(0,0,0,.24);
}
.contact-card:hover:before{transform:scale(1.25)}
.contact-card small{
  display:block;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:8px;
  margin-bottom:5px;
}
.contact-card strong{display:block;font-size:15px;overflow-wrap:anywhere}
.contact-card p{margin:8px 0 0;color:var(--muted);font-size:10px;line-height:1.55}
.contact-icon{
  width:45px;height:45px;
  display:grid;place-items:center;
  border-radius:15px;
  flex:0 0 auto;
  background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 34%,#161c2a),color-mix(in srgb,var(--c2) 18%,#101622));
  box-shadow:0 8px 24px color-mix(in srgb,var(--c1) 14%,transparent);
  font-size:18px;
}
.whatsapp-icon{
  background:linear-gradient(145deg,#31d477,#159957);
}
.whatsapp-icon svg{width:24px;height:24px;fill:#fff}
.phone-icon{font-size:20px}
.contact-arrow{color:var(--muted);font-size:18px}
.accessibility-card,.support-note{
  margin-top:14px;
  padding:22px;
  border-radius:24px;
}
.accessibility-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
}
.accessibility-card h3{margin:5px 0 8px;font-size:24px}
.accessibility-card p,.support-note p{margin:0;line-height:1.6}
.support-note strong{display:block;margin-bottom:6px}

html[data-high-contrast="on"]{
  --muted:#d4dbe6;
  --line:rgba(255,255,255,.22);
}
html[data-high-contrast="on"] .glass,
html[data-high-contrast="on"] .memora-player,
html[data-high-contrast="on"] .dock{
  border-color:rgba(255,255,255,.22);
}
html[data-large-text="on"] body{font-size:18px}
html[data-large-text="on"] .muted,
html[data-large-text="on"] p,
html[data-large-text="on"] .setting-row,
html[data-large-text="on"] .source-card p,
html[data-large-text="on"] .memory-card p{font-size:1.08em}
html[data-large-text="on"] .dock button small,
html[data-large-text="on"] .player-track span,
html[data-large-text="on"] .player-track small{font-size:10px}

html[data-reduce-motion="on"] *,
html[data-reduce-motion="on"] *:before,
html[data-reduce-motion="on"] *:after{
  animation-duration:.001ms!important;
  animation-iteration-count:1!important;
  transition-duration:.001ms!important;
  scroll-behavior:auto!important;
}

::view-transition-old(root){animation:memoraViewOut .18s ease both}
::view-transition-new(root){animation:memoraViewIn .28s cubic-bezier(.2,.8,.2,1) both}
@keyframes memoraViewOut{to{opacity:.72;transform:translateX(-8px) scale(.995)}}
@keyframes memoraViewIn{from{opacity:.72;transform:translateX(10px) scale(.995)}to{opacity:1;transform:none}}

.dock{
  bottom:max(18px,calc(env(safe-area-inset-bottom) + 8px));
}
.memora-player{
  bottom:calc(var(--dock-h) + max(30px,env(safe-area-inset-bottom) + 18px));
}

/* Devotional regional discovery */
.devotional-language-quick>div{padding-bottom:2px}
.devotional-language-quick .chip{min-height:38px}
.world-filter-grid select{min-height:46px}
.radio-sort-btn{min-height:44px}
.audio-library-card{min-height:62px}
.audio-card-art{flex:0 0 auto}

@media(max-width:900px){
  .contact-grid{grid-template-columns:1fr}
  .contact-card{min-height:126px}
  .accessibility-card{align-items:flex-start;flex-direction:column}
}
@media(max-width:760px){
  .app-footer{
    align-items:flex-start;
    flex-direction:column;
    margin-bottom:calc(var(--dock-h) + var(--player-h,0px) + 34px);
    padding-inline:4px;
  }
  .footer-help{width:100%}
  .support-hero{min-height:320px;align-items:flex-start;flex-direction:column;padding:25px 18px;border-radius:26px}
  .support-hero h3{font-size:42px;letter-spacing:-1.8px}
  .support-status{white-space:normal}
  .contact-card{padding:17px;border-radius:20px}
  .brand-button strong{font-size:18px}
}
@media(max-width:430px){
  .top-actions{gap:5px}
  .icon-btn{padding:9px 10px}
  .contact-card{grid-template-columns:auto minmax(0,1fr)}
  .contact-arrow{display:none}
}
@media(prefers-reduced-motion:reduce){
  ::view-transition-old(root),::view-transition-new(root){animation:none!important}
}


.auth-public-footer{
  margin-top:18px;
  padding-top:13px;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
}
.auth-public-footer a{
  color:#fff;
  text-decoration:none;
  flex:0 0 auto;
}
.auth-public-footer a:hover{text-decoration:underline}

@media(max-width:560px){
  .auth-public-footer{flex-direction:column}
  .auth-public-footer a{width:100%}
}


/* Memora Audio v33 - compact mini player and iPhone-style Now Playing */
:root{--player-h:64px;--player-gap:12px}

body.has-memora-player .app{padding-bottom:calc(var(--dock-h) + var(--player-h) + 66px)}
body.has-memora-player .ask-main .ask-box{bottom:calc(var(--dock-h) + var(--player-h) + 26px)}
body.has-memora-player .toast{bottom:calc(var(--dock-h) + var(--player-h) + 42px)}

.memora-player.compact-player{
  position:fixed;
  z-index:68;
  left:50%;
  bottom:calc(var(--dock-h) + 22px);
  transform:translateX(-50%);
  width:min(720px,calc(100vw - 24px));
  min-height:62px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:7px 8px;
  border-radius:19px;
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--glass2) 94%,transparent),color-mix(in srgb,var(--c1) 7%,var(--glass))),
    rgba(7,11,20,.9);
  border:1px solid color-mix(in srgb,var(--c1) 17%,rgba(255,255,255,.1));
  backdrop-filter:blur(30px) saturate(155%);
  box-shadow:0 18px 54px rgba(0,0,0,.48),0 0 30px color-mix(in srgb,var(--c1) 7%,transparent),inset 0 1px rgba(255,255,255,.055);
  overflow:hidden;
}
.memora-player.compact-player:before{
  content:"";
  position:absolute;
  inset:-110% -20%;
  z-index:-1;
  opacity:.48;
  background:
    radial-gradient(circle at 15% 52%,color-mix(in srgb,var(--c1) 34%,transparent),transparent 22%),
    radial-gradient(circle at 78% 42%,color-mix(in srgb,var(--c2) 24%,transparent),transparent 26%);
  filter:blur(20px);
  animation:miniPlayerAura 12s ease-in-out infinite;
}
@keyframes miniPlayerAura{50%{transform:translate3d(8%,-4%,0) scale(1.08)}}

.player-mini-art{
  width:46px;height:46px;
  position:relative;
  border:0;
  padding:0;
  overflow:hidden;
  border-radius:14px;
  cursor:pointer;
  background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 70%,#111827),color-mix(in srgb,var(--c2) 55%,#111827));
  box-shadow:0 7px 20px rgba(0,0,0,.26),inset 0 1px rgba(255,255,255,.18);
}
.player-mini-art img{width:100%;height:100%;object-fit:cover;display:block}
.player-mini-art img.hidden{display:none}
.player-art-fallback{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:11px}
.player-mini-art.has-image .player-art-fallback{display:none}
.player-art-fallback i{width:4px;height:11px;border-radius:9px;background:#fff;opacity:.86;transform-origin:bottom}
.memora-player.playing .player-art-fallback i:nth-child(1){animation:eqOne .68s ease-in-out infinite}
.memora-player.playing .player-art-fallback i:nth-child(2){animation:eqTwo .54s ease-in-out infinite}
.memora-player.playing .player-art-fallback i:nth-child(3){animation:eqThree .78s ease-in-out infinite}

.player-track-button{
  border:0;
  background:transparent;
  color:#fff;
  text-align:left;
  min-width:0;
  padding:3px 4px;
  cursor:pointer;
}
.player-track-button small,.player-track-button strong,.player-track-button span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.player-track-button small{font-size:8px;letter-spacing:.08em;text-transform:uppercase;color:color-mix(in srgb,var(--c2) 65%,#c8d1df)}
.player-track-button strong{font-size:12px;line-height:1.2;margin-top:2px}
.player-track-button span{font-size:8px;color:var(--muted);margin-top:2px}

.mini-actions{display:flex;align-items:center;gap:4px}
.mini-actions .player-action{
  min-width:38px;
  height:38px;
  padding:0 8px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.045);
  color:#eef3fa;
  font-size:10px;
  font-weight:700;
}
.mini-actions .player-action.primary{
  background:linear-gradient(135deg,var(--c1),color-mix(in srgb,var(--c1) 50%,var(--c2)));
  color:#fff;
  border-color:transparent;
}
.mini-actions .expand-action{font-size:17px;line-height:1}

.now-playing-backdrop{
  align-items:flex-end;
  padding:0;
  background:rgba(1,3,8,.72);
  backdrop-filter:blur(20px) saturate(125%);
}
.now-playing-modal{
  width:min(620px,100%);
  max-height:94dvh;
  border-radius:32px 32px 0 0;
  padding:18px 20px calc(22px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% -8%,color-mix(in srgb,var(--c1) 28%,transparent),transparent 38%),
    linear-gradient(180deg,rgba(20,25,39,.97),rgba(7,11,20,.98));
  box-shadow:0 -34px 100px rgba(0,0,0,.62);
}
.now-playing-modal .modal-head{margin-bottom:8px}
.now-playing{display:grid;gap:16px}
.now-playing-art{
  width:min(320px,72vw);
  aspect-ratio:1;
  margin:4px auto 2px;
  border-radius:30px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 35% 28%,color-mix(in srgb,var(--c3) 75%,white),transparent 18%),
    linear-gradient(145deg,var(--c1),var(--c2));
  box-shadow:0 34px 80px rgba(0,0,0,.42),0 0 70px color-mix(in srgb,var(--c1) 14%,transparent);
}
.now-playing-art img{width:100%;height:100%;object-fit:cover}
.now-playing-art>span{display:flex;align-items:flex-end;gap:8px;height:64px}
.now-playing-art>span i{width:10px;height:30px;border-radius:12px;background:rgba(255,255,255,.9);animation:eqOne .8s ease-in-out infinite}
.now-playing-art>span i:nth-child(2){animation: eqTwo .62s ease-in-out infinite}
.now-playing-art>span i:nth-child(3){animation: eqThree .92s ease-in-out infinite}
.now-playing-art>span i:nth-child(4){animation: eqTwo .72s ease-in-out infinite}
.now-playing-copy{text-align:center}
.now-playing-copy h3{font-size:clamp(25px,6vw,36px);line-height:1.05;margin:6px auto 4px;letter-spacing:-1px;max-width:520px}
.now-playing-copy p{margin:0;color:var(--muted);font-size:12px}
.now-playing-progress input{width:100%}
.now-playing-progress>div{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;margin-top:4px}
.now-playing-controls{display:flex;align-items:center;justify-content:center;gap:26px}
.now-control{
  border:0;color:#fff;background:transparent;cursor:pointer;
  width:54px;height:54px;border-radius:50%;font-size:24px;
  display:grid;place-items:center;transition:.18s;
}
.now-control.play{
  width:70px;height:70px;
  background:linear-gradient(135deg,var(--c1),color-mix(in srgb,var(--c1) 42%,var(--c2)));
  box-shadow:0 16px 36px color-mix(in srgb,var(--c1) 26%,transparent);
}
.now-control.secondary{background:rgba(255,255,255,.05);border:1px solid var(--line)}
.now-control:active{transform:scale(.92)}
.now-playing-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.now-volume{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;color:var(--muted);font-size:10px}
.now-volume input{width:100%}
.now-playing-meta{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:9px;text-align:center}
.now-playing-meta a{color:color-mix(in srgb,var(--c2) 75%,white);text-decoration:none}

/* Four compact audio sections */
.audio-mode-tabs.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.audio-mode-panel{display:none;animation:panelReveal .25s ease}
.audio-mode-panel.active{display:grid;gap:12px}
.audio-hub{display:grid;gap:12px}
.compact-head{margin-bottom:0}
.audio-section-intro{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 13px;border-radius:17px;border:1px solid var(--line);
  background:rgba(255,255,255,.025)
}
.audio-section-intro strong,.audio-section-intro small{display:block}
.audio-section-intro strong{font-size:15px;margin:3px 0}
.audio-section-intro small{color:var(--muted);font-size:9px;line-height:1.45}
.source-pill{padding:7px 9px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.04);font-size:9px;white-space:nowrap}
.open-music-note{
  font-size:9px;color:var(--muted);line-height:1.5;padding:9px 11px;
  border-radius:12px;border:1px solid rgba(255,255,255,.045);background:rgba(255,255,255,.02)
}
.audio-disclosure,.audio-settings-disclosure{
  border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.025);overflow:hidden
}
.audio-disclosure summary,.audio-settings-disclosure summary{
  cursor:pointer;padding:11px 13px;color:#e8edf5;font-size:10px;font-weight:650;list-style:none
}
.audio-disclosure summary::-webkit-details-marker,.audio-settings-disclosure summary::-webkit-details-marker{display:none}
.audio-disclosure summary:after,.audio-settings-disclosure summary:after{content:"＋";float:right;color:var(--muted)}
.audio-disclosure[open] summary:after,.audio-settings-disclosure[open] summary:after{content:"−"}
.devotional-directory{padding:0 12px 12px;display:grid;gap:12px}
.devotional-directory .devotional-group h4{margin:0 0 7px;font-size:10px;color:var(--muted)}
.regional-devotional{display:grid;gap:7px}
.regional-devotional>span{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.regional-devotional>div{display:flex;gap:6px;overflow:auto;scrollbar-width:none;padding-bottom:2px}
.regional-devotional>div::-webkit-scrollbar{display:none}
.regional-devotional .chip{flex:0 0 auto}
.compact-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.audio-library-toolbar>div{display:grid;gap:3px}
.audio-library-toolbar .small{font-size:9px}

/* Open Music scene */
html[data-audio-playing="true"][data-audio-scene="music"] .scene-layer:before{
  opacity:.24;
  background:
    radial-gradient(circle at 20% 34%,color-mix(in srgb,var(--c1) 24%,transparent),transparent 26%),
    radial-gradient(circle at 78% 62%,color-mix(in srgb,var(--c2) 22%,transparent),transparent 28%),
    conic-gradient(from 90deg at 50% 50%,transparent,color-mix(in srgb,var(--c3) 8%,transparent),transparent,color-mix(in srgb,var(--c1) 8%,transparent),transparent);
  animation:musicBloom 12s ease-in-out infinite;
}
@keyframes musicBloom{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.08) rotate(12deg)}}

/* Native-feeling route transitions */
::view-transition-old(root){animation:memoraViewOut .18s ease both}
::view-transition-new(root){animation:memoraViewIn .28s cubic-bezier(.2,.8,.2,1) both}
@keyframes memoraViewOut{to{opacity:.35;transform:translateX(-8px) scale(.995)}}
@keyframes memoraViewIn{from{opacity:.25;transform:translateX(12px) scale(.995)}to{opacity:1;transform:none}}

@media(max-width:760px){
  :root{--player-h:62px}
  .memora-player.compact-player{
    width:calc(100vw - 16px);
    bottom:calc(var(--dock-h) + 18px);
    min-height:58px;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:7px;
    padding:6px 7px;
    border-radius:18px;
  }
  .player-mini-art{width:42px;height:42px;border-radius:12px}
  .player-track-button small{font-size:7px}
  .player-track-button strong{font-size:11px}
  .player-track-button span{font-size:7px}
  .mini-actions{gap:3px}
  .mini-actions .player-action{width:32px;min-width:32px;height:32px;padding:0 4px;border-radius:10px;font-size:9px}
  .mini-actions .player-action:nth-child(3){display:none}
  .now-playing-modal{width:100%;max-width:none}
  .now-playing-art{width:min(300px,74vw);border-radius:26px}
  .audio-mode-tabs.four{display:flex;overflow:auto;scrollbar-width:none}
  .audio-mode-tabs.four::-webkit-scrollbar{display:none}
  .audio-mode-tabs.four .audio-mode-tab{flex:0 0 auto;min-width:105px}
  .compact-features{grid-template-columns:1fr}
  .audio-library-head.compact-head{display:grid}
  .audio-library-head.compact-head .btn{justify-self:start}
}
@media(max-width:430px){
  .mini-actions .player-action:nth-child(2){display:none}
  .now-playing-tools{grid-template-columns:1fr 1fr 1.3fr}
  .now-playing-art{width:min(270px,78vw)}
  .audio-mode-tabs.four .audio-mode-tab{min-width:98px}
}

@media(prefers-reduced-motion:reduce){
  ::view-transition-old(root),::view-transition-new(root){animation:none!important}
  .memora-player.compact-player:before,.now-playing-art>span i{animation:none!important}
}


/* Global audio library refinement v34 */
.audio-hub-backdrop{align-items:center}
.audio-hub-modal{
  width:min(980px,calc(100vw - 28px));
  max-height:min(92vh,940px);
  overflow:hidden;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
}
.audio-hub-modal>.modal-head{margin-bottom:8px}
.audio-hub-modal>.audio-hub{
  min-height:0;
  overflow:auto;
  padding-right:3px;
  overscroll-behavior:contain;
}
.audio-hub .audio-mode-tabs.four{
  position:sticky;
  top:0;
  z-index:8;
  margin:0 0 12px;
  padding:5px;
  background:color-mix(in srgb,var(--glass2) 95%,rgba(4,8,16,.82));
  backdrop-filter:blur(24px) saturate(150%);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}
.audio-hub .audio-mode-tab{
  min-height:42px;
  font-weight:700;
  letter-spacing:-.1px;
}
.audio-hub .audio-mode-tab.active{
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c1) 25%,rgba(255,255,255,.1)),0 8px 24px color-mix(in srgb,var(--c1) 9%,transparent);
}
.audio-mode-panel{
  border:1px solid rgba(255,255,255,.045);
  border-radius:20px;
  padding:14px;
  background:linear-gradient(145deg,rgba(255,255,255,.022),color-mix(in srgb,var(--c1) 2.5%,transparent));
}
.audio-mode-panel.active{animation:audioPanelIn .28s cubic-bezier(.2,.8,.2,1)}
@keyframes audioPanelIn{from{opacity:.45;transform:translateY(8px)}to{opacity:1;transform:none}}

.music-world-grid{display:grid;gap:13px;padding:0 12px 13px}
.music-world-grid section{display:grid;gap:7px}
.music-world-grid h4{margin:0;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.09em}
.music-world-grid section>div{display:flex;flex-wrap:wrap;gap:6px}

.audio-library-results{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  max-height:46vh;
}
.audio-library-card{
  min-height:66px;
  border-radius:17px;
  padding:9px 11px;
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.018));
}
.audio-card-art{
  width:46px;height:46px;border-radius:13px;overflow:hidden;
  display:grid;place-items:center;
  background:linear-gradient(145deg,color-mix(in srgb,var(--c1) 26%,#111827),color-mix(in srgb,var(--c2) 14%,#0b1020));
  box-shadow:0 7px 20px rgba(0,0,0,.18);
  flex:0 0 auto;
}
.audio-card-art img{width:100%;height:100%;object-fit:cover;display:block}
.audio-card-art.fallback:after{
  content:"♫";
  font-size:17px;
  color:rgba(255,255,255,.8);
}
.audio-card-copy b{font-size:12px;line-height:1.25}
.audio-card-copy small{font-size:8.5px;line-height:1.35}
.audio-card-play{min-width:42px;text-align:center}

.devotional-feature-row.compact-features{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.devotional-language-quick,.regional-devotional{
  padding:10px 0;
}
.devotional-language-quick>div,.regional-devotional>div{
  padding:2px 0 4px;
  mask-image:linear-gradient(90deg,#000 94%,transparent);
}
.devotional-language-quick .chip,.regional-devotional .chip{
  min-height:36px;
  padding:7px 10px;
}
.audio-disclosure{transition:border-color .2s ease,background .2s ease}
.audio-disclosure[open]{border-color:color-mix(in srgb,var(--c1) 20%,var(--line));background:color-mix(in srgb,var(--c1) 4%,rgba(255,255,255,.02))}
.audio-disclosure summary{min-height:44px;display:flex;align-items:center;justify-content:space-between}
.audio-disclosure summary:after{float:none}

.open-music-note{
  background:linear-gradient(135deg,color-mix(in srgb,var(--c2) 5%,rgba(255,255,255,.02)),rgba(255,255,255,.018));
}
.audio-library-toolbar{
  position:sticky;
  bottom:0;
  z-index:5;
  padding:9px 4px 6px;
  margin:7px 0 0;
  background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--bg0) 94%,transparent) 28%);
}
.audio-library-toolbar>.btn{backdrop-filter:blur(18px)}

@media(max-width:900px){
  .audio-library-results{grid-template-columns:1fr}
}

@media(max-width:760px){
  .audio-hub-backdrop{
    align-items:flex-end;
    padding:0;
  }
  .audio-hub-modal{
    width:100%;
    max-width:none;
    height:min(92dvh,920px);
    max-height:92dvh;
    border-radius:28px 28px 0 0;
    padding:14px 12px calc(18px + env(safe-area-inset-bottom));
    border-bottom:0;
    animation:audioSheetUp .34s cubic-bezier(.2,.85,.2,1);
  }
  @keyframes audioSheetUp{from{transform:translateY(18%);opacity:.55}to{transform:none;opacity:1}}
  .audio-hub-modal>.modal-head{position:sticky;top:0;z-index:12;background:color-mix(in srgb,var(--bg0) 88%,transparent);backdrop-filter:blur(22px);padding:2px 0 8px}
  .audio-hub .audio-mode-tabs.four{top:52px}
  .audio-hub .audio-mode-tabs.four .audio-mode-tab{min-width:96px}
  .audio-mode-panel{padding:11px;border-radius:18px}
  .compact-head h3{font-size:30px}
  .compact-head p{font-size:11px}
  .audio-library-results{max-height:none;overflow:visible}
  .audio-library-toolbar{bottom:-1px}
  .audio-card-art{width:48px;height:48px;border-radius:13px}
  .audio-library-card{min-height:68px}
  .devotional-feature-row.compact-features{grid-template-columns:1fr}
  .music-world-grid section>div{flex-wrap:nowrap;overflow:auto;scrollbar-width:none;padding-bottom:3px}
  .music-world-grid section>div::-webkit-scrollbar{display:none}
  .music-world-grid .chip{flex:0 0 auto}
}

@media(max-width:430px){
  .audio-hub-modal{height:94dvh;max-height:94dvh}
  .audio-hub .audio-mode-tabs.four{top:50px}
  .audio-mode-panel{padding:10px}
  .audio-card-play{min-width:38px;padding-inline:6px}
}


/* Memora companion experience */
.scene-photo-layer{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background-image:
    linear-gradient(180deg,rgba(4,7,14,.46),rgba(4,7,14,.76) 55%,rgba(4,7,14,.94)),
    var(--scene-photo);
  background-size:cover;
  background-position:center;
  opacity:0;
  transform:scale(1.025);
  filter:saturate(.84) contrast(1.04);
  transition:opacity 1.2s ease,filter 1.2s ease,transform 10s ease;
}
html[data-scene-photo="on"][data-dynamic-background="on"] .scene-photo-layer{opacity:.58;transform:scale(1.045)}
html[data-daypart="night"] .scene-photo-layer{filter:saturate(.72) brightness(.66) contrast(1.08)}
html[data-high-contrast="on"] .scene-photo-layer{opacity:.3!important}
.footer-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.scene-credit{font-size:9px;color:var(--muted);text-decoration:none;border-bottom:1px dotted rgba(255,255,255,.18)}
.scene-credit:hover{color:#fff}

/* Compact mood memory */
.mood-checkin{
  margin-top:14px;
  display:grid;
  grid-template-columns:minmax(190px,.9fr) minmax(0,1.7fr);
  gap:12px 18px;
  align-items:center;
  padding:14px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.065);
  background:linear-gradient(135deg,rgba(255,255,255,.025),color-mix(in srgb,var(--c1) 5%,transparent));
}
.mood-copy strong,.mood-copy small{display:block}.mood-copy strong{font-size:14px;margin-top:3px}.mood-copy small{font-size:9px;color:var(--muted);margin-top:4px;line-height:1.45}
.mood-pills{display:flex;gap:6px;overflow:auto;scrollbar-width:none;padding:2px}.mood-pills::-webkit-scrollbar{display:none}
.mood-pill{flex:0 0 auto;border:1px solid var(--line);background:rgba(255,255,255,.035);color:#dce5f1;padding:8px 11px;border-radius:999px;font-size:10px;cursor:pointer;transition:.2s}
.mood-pill:hover,.mood-pill.selected{background:color-mix(in srgb,var(--c1) 14%,rgba(255,255,255,.04));border-color:color-mix(in srgb,var(--c1) 36%,rgba(255,255,255,.14));transform:translateY(-1px)}
.mood-response{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid rgba(255,255,255,.055);font-size:10px;color:var(--muted)}
.mood-response.hidden{display:none}

/* Chat action and voice */
.chat-action-row{margin-top:10px}
.chat-action{border:1px solid color-mix(in srgb,var(--c1) 35%,var(--line));background:color-mix(in srgb,var(--c1) 10%,rgba(255,255,255,.04));color:#fff;padding:8px 11px;border-radius:11px;font-size:10px;cursor:pointer;transition:.2s}
.chat-action:hover{transform:translateY(-1px);background:color-mix(in srgb,var(--c1) 18%,rgba(255,255,255,.05))}
.voice-btn{min-width:52px}
.voice-btn.listening{background:linear-gradient(135deg,var(--c1),var(--c2));color:#fff;animation:voicePulse 1.1s ease-in-out infinite}
@keyframes voicePulse{50%{box-shadow:0 0 0 8px color-mix(in srgb,var(--c1) 0%,transparent),0 0 28px color-mix(in srgb,var(--c1) 28%,transparent)}}

/* First-run tour */
.tour-backdrop{backdrop-filter:blur(24px) saturate(130%)}
.tour-modal{width:min(620px,calc(100vw - 26px));padding:28px!important;text-align:center;overflow:hidden}
.tour-modal .modal-head{position:absolute;right:14px;top:14px;z-index:4}.tour-modal .modal-head h3{display:none}
.tour-progress{display:flex;gap:6px;justify-content:center;margin-bottom:24px}.tour-progress span{width:34px;height:4px;border-radius:999px;background:rgba(255,255,255,.09);transition:.3s}.tour-progress span.active{background:linear-gradient(90deg,var(--c1),var(--c2))}
.tour-visual{width:122px;height:122px;margin:0 auto 20px;border-radius:38px;display:grid;place-items:center;position:relative;background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--c3) 44%,transparent),color-mix(in srgb,var(--c1) 12%,rgba(255,255,255,.02)) 60%,transparent);border:1px solid var(--line);box-shadow:0 24px 70px color-mix(in srgb,var(--c1) 14%,transparent)}
.tour-orb{width:58px;height:58px;border-radius:50%;background:radial-gradient(circle at 33% 28%,#fff 0 4%,var(--c3) 12%,var(--c1) 48%,var(--c2));box-shadow:0 0 32px color-mix(in srgb,var(--c1) 48%,transparent);animation:tourFloat 4.4s ease-in-out infinite}.tour-orb span{display:block;width:100%;height:100%;border-radius:inherit;border:1px solid rgba(255,255,255,.18);animation:orbRing 2.8s ease-in-out infinite}
.tour-visual small{position:absolute;bottom:9px;font-size:8px;text-transform:uppercase;letter-spacing:.13em;color:var(--muted)}
.tour-modal h2{font-size:clamp(30px,6vw,48px);letter-spacing:-1.7px;line-height:1.04;margin:0 auto 12px;max-width:520px}.tour-modal p{color:var(--muted);line-height:1.65;max-width:520px;margin:0 auto}
.tour-actions{display:flex;gap:8px;justify-content:center;margin-top:24px}.tour-actions .btn{min-width:130px}
@keyframes tourFloat{50%{transform:translateY(-7px) scale(1.035)}}

/* Audio simplicity by default */
.audio-filter-toggle{
  width:max-content;
  margin-top:9px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  color:var(--muted);
  padding:7px 11px;
  border-radius:999px;
  font-size:9px;
  cursor:pointer;
}
.audio-filter-toggle:hover{color:#fff;background:rgba(255,255,255,.065)}
.audio-mode-panel[data-audio-panel="radio"]:not(.filters-open) .world-filter-grid,
.audio-mode-panel[data-audio-panel="radio"]:not(.filters-open) .radio-sort-switch,
.audio-mode-panel[data-audio-panel="radio"]:not(.filters-open) .radio-country-quick{display:none}
.audio-mode-panel[data-audio-panel="devotional"]:not(.filters-open) .world-filter-grid,
.audio-mode-panel[data-audio-panel="devotional"]:not(.filters-open) .radio-sort-switch,
.audio-mode-panel[data-audio-panel="devotional"]:not(.filters-open) .regional-devotional,
.audio-mode-panel[data-audio-panel="devotional"]:not(.filters-open) .devotional-language-quick,
.audio-mode-panel[data-audio-panel="devotional"]:not(.filters-open) .audio-disclosure{display:none}
.audio-mode-panel[data-audio-panel="music"]:not(.filters-open) .music-sort,
.audio-mode-panel[data-audio-panel="music"]:not(.filters-open) .audio-disclosure{display:none}
.audio-mode-panel[data-audio-panel="music"]:not(.filters-open) .music-presets .chip:nth-child(n+9){display:none}
.audio-for-you{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;margin:10px 0 12px;border-radius:17px;border:1px solid color-mix(in srgb,var(--c2) 18%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--c1) 8%,rgba(255,255,255,.025)),color-mix(in srgb,var(--c2) 5%,transparent))}
.audio-for-you strong,.audio-for-you small{display:block}.audio-for-you strong{font-size:11px;margin-top:2px}.audio-for-you small{font-size:9px;color:var(--muted);margin-top:3px}

/* Devotional reactive backdrop */
html[data-audio-playing="true"][data-audio-scene="devotional"] .scene-layer:before{
  opacity:.24;
  background:
    radial-gradient(circle at 50% 20%,color-mix(in srgb,var(--c3) 19%,transparent),transparent 25%),
    radial-gradient(circle at 20% 80%,color-mix(in srgb,var(--c1) 13%,transparent),transparent 26%),
    radial-gradient(circle at 80% 70%,color-mix(in srgb,var(--c2) 12%,transparent),transparent 28%);
  animation:devotionalGlow 11s ease-in-out infinite;
}
@keyframes devotionalGlow{50%{transform:scale(1.08);filter:brightness(1.18)}}

@media(max-width:760px){
  .mood-checkin{grid-template-columns:1fr;padding:12px}.mood-response{grid-column:auto;align-items:flex-start;flex-direction:column}.mood-response .btn{width:100%}
  .tour-modal{padding:24px 17px!important}.tour-visual{width:104px;height:104px}.tour-actions{flex-direction:column-reverse}.tour-actions .btn{width:100%}
  .audio-for-you{align-items:flex-start;flex-direction:column}.audio-for-you .btn{width:100%}
  .footer-actions{justify-content:flex-start}
}


/* Memora Music collections */
.music-kind-switch{
  display:inline-flex;
  gap:5px;
  padding:4px;
  margin:10px 0 2px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.025);
  border-radius:13px;
}
.music-kind-btn{
  border:0;
  background:transparent;
  color:var(--muted);
  padding:8px 11px;
  border-radius:9px;
  font-size:10px;
  cursor:pointer;
  transition:.2s;
}
.music-kind-btn.active{
  color:#fff;
  background:color-mix(in srgb,var(--c1) 16%,rgba(255,255,255,.045));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c1) 24%,var(--line));
}
.music-collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.music-collection-card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.028);
  color:#fff;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:8px;
  border-radius:17px;
  text-align:left;
  cursor:pointer;
  transition:.2s;
}
.music-collection-card:hover{transform:translateY(-1px);background:color-mix(in srgb,var(--c1) 8%,rgba(255,255,255,.035));border-color:color-mix(in srgb,var(--c1) 28%,var(--line))}
.collection-art{width:64px;height:64px;border-radius:13px;overflow:hidden;background:linear-gradient(135deg,var(--c1),var(--c2));display:block}
.collection-art img{width:100%;height:100%;object-fit:cover;display:block}
.collection-art.fallback:after{content:"♫";display:grid;place-items:center;width:100%;height:100%;font-size:21px}
.collection-copy{min-width:0}.collection-copy small,.collection-copy b,.collection-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-copy small{font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.collection-copy b{font-size:12px;margin-top:3px}.collection-copy span{font-size:9px;color:var(--muted);margin-top:4px}
.collection-arrow{font-size:24px;color:var(--muted);padding-right:4px}
.collection-open-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 2px 12px;border-bottom:1px solid rgba(255,255,255,.055);margin-bottom:7px}.collection-open-head div{min-width:0}.collection-open-head small,.collection-open-head strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-open-head small{font-size:8px;color:var(--muted)}.collection-open-head strong{font-size:13px;margin-top:2px}
.audio-for-you-actions{display:flex;gap:6px;flex-wrap:wrap}

@media(max-width:760px){
  .music-collection-grid{grid-template-columns:1fr}
  .music-collection-card{grid-template-columns:54px minmax(0,1fr) auto}
  .collection-art{width:54px;height:54px}
  .collection-open-head{grid-template-columns:1fr}.collection-open-head>a{justify-self:start}
  .music-kind-switch{width:100%}.music-kind-btn{flex:1}
}

/* v43.1: mobile touch targets, safe areas and short-screen audio sheets. */
.auth-card .input{font-size:16px}
.auth-card .btn,.auth-card .social{min-height:44px}
.player-track-button strong,.player-track-button small,.player-track-button span{max-width:100%}
.now-playing-modal{overflow-y:auto;overscroll-behavior:contain}
.now-playing-copy h3{overflow-wrap:anywhere}
.audio-hub-modal,.audio-hub,.audio-mode-panel,.audio-library-results{min-width:0}
@media(max-width:760px){
  :root{--player-h:70px}
  .memora-player.compact-player{
    bottom:calc(var(--dock-h) + env(safe-area-inset-bottom) + 12px);
    min-height:66px;
    grid-template-columns:44px minmax(0,1fr) auto;
  }
  .player-mini-art{width:44px;height:44px}
  .player-track-button small{font-size:10px;letter-spacing:.01em}
  .player-track-button strong{font-size:13px}
  .player-track-button span{font-size:10px}
  .mini-actions .player-action{width:44px;min-width:44px;height:44px;font-size:13px}
  .audio-hub-modal{max-height:92dvh;width:calc(100vw - 16px)}
  .audio-hub input,.audio-hub select,.ask-input,.composer textarea{font-size:16px}
  .audio-hub .btn,.audio-mode-tab,.music-kind-btn{min-height:44px}
  .audio-mode-tab{font-size:12px}
  .now-playing-art{width:min(280px,68vw,34dvh)}
  .now-playing-meta,.open-music-note,.audio-section-intro small{font-size:12px;line-height:1.5}
  .now-playing-tools .btn{min-height:44px;white-space:normal}
  .collection-copy b{font-size:14px}
  .collection-copy small,.collection-copy span{font-size:11px}
}
@media(max-height:520px) and (max-width:900px){
  .now-playing{gap:10px}
  .now-playing-art{width:min(180px,30dvh)}
  .now-playing-copy h3{font-size:22px}
}

.auth-card .social-grid[hidden], .auth-card .divider[hidden] { display: none !important; }

/* Keep audio controls and results in one scroll area at every viewport size. */
.audio-hub-modal > .audio-hub {
  grid-auto-rows: max-content;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-bottom: 16px;
}
.audio-hub .audio-library-results {
  max-height: none;
  overflow: visible;
}
.audio-hub .audio-library-toolbar { position: static; }
.audio-hub .audio-mode-tabs.four { top: 0; }

/* Search remains reachable without covering the page or modal content. */
.global-search-form{display:grid;gap:10px}
.global-search-results{display:grid;gap:12px}
.search-external{display:flex;flex-wrap:wrap;gap:8px}
.search-result{padding:15px;border:1px solid var(--line);border-radius:14px;overflow-wrap:anywhere}
.search-result p{white-space:pre-wrap}
.search-result a{display:inline-block;margin:10px}
@media(max-width:600px){.global-search-label{display:none}.topbar{flex-wrap:wrap}.top-actions{flex-wrap:wrap}.auth-wrap{padding:16px;align-items:start}.auth-card{padding:22px 18px}}

.social{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px}
.provider-icon{width:20px;height:20px;flex:0 0 20px}
.search-result a,#youtubePlayerSlot a{color:#c9d9ff;text-decoration:underline}
.youtube-music-player{display:block;width:100%;height:340px;min-height:200px;border:0;border-radius:12px;margin:12px 0}
.music-artist-examples{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
#songFinderLinks{margin-top:12px}
#worldSongFinder{width:100%;margin-bottom:12px}
@media(max-width:520px){.social-grid{grid-template-columns:1fr}.youtube-music-player{height:240px}}


/* Memora compact navigation and accessible memory editing */
.header-shortcuts{display:flex;align-items:center;gap:5px;flex:0 1 auto}
.header-shortcuts .icon-btn{font-size:12px;padding:9px 11px}
.topbar{padding-top:10px;padding-bottom:10px;gap:10px}
.top-actions{gap:6px;min-width:0}
.top-actions .icon-btn{white-space:nowrap}
.main{width:min(1200px,100%);padding-top:8px}
.page-head{margin:7px 0 16px}
.page-head h2{font-size:clamp(28px,4vw,42px);letter-spacing:-1.1px}
.home-hero{min-height:0;padding:clamp(18px,3vw,32px)}
.home-hero h2{font-size:clamp(32px,5vw,56px);letter-spacing:-1.8px;line-height:1.08}
.home-hero p{font-size:clamp(13px,1.5vw,16px);line-height:1.5}
.home-hero .composer{margin-top:15px}
.home-hero .composer textarea{min-height:75px}
.home-quick-nav{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;margin:16px 0 4px}
.home-quick-nav .btn{flex:1 1 140px;min-height:42px;font-size:13px}
.memory-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.memory-actions .memory-open{min-height:36px}
.memory-edit-form{display:grid;gap:12px}
.memory-edit-form label{font-size:13px;font-weight:650}
.memory-edit-form textarea{min-height:170px;resize:vertical;line-height:1.6}
.devotional-feature-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.audio-hub .devotional-feature{min-height:56px;padding:9px}
.audio-hub .audio-disclosure{margin-top:10px}
@media(max-width:1100px){
  .header-shortcuts{display:none}
}
@media(max-width:760px){
  .topbar{padding:8px 10px}
  .top-actions #themeButton{display:none}
  .top-actions #soundButton .sound-label{display:none}
  .top-actions .icon-btn{padding:9px 11px;border-radius:12px}
  .topbar .brand small{display:none}
  .topbar .brand strong{font-size:15px}
  .brand .logo{width:36px;height:36px;border-radius:12px}
  .page-head h2{font-size:30px}
  .home-hero{min-height:0;padding:18px 13px}
  .home-hero h2{font-size:34px}
  .home-hero .composer textarea{min-height:80px;font-size:15px}
  .home-hub{padding:13px}
  .home-hub-head{flex-wrap:wrap;gap:10px}
  .home-hub-head h3{font-size:19px}
  .home-quick-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .home-quick-nav .btn{min-width:0;font-size:12px;padding:10px 6px}
  .memory-footer{align-items:center}
  .memory-actions .memory-open{min-width:46px}
  .devotional-feature-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .audio-hub-modal{width:calc(100vw - 12px);padding:12px}
  .audio-hub .audio-mode-panel{min-width:0}
  .dock button small{font-size:10px}
}
@media(max-width:375px){
  .dock button{min-width:46px}
  .home-quick-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .devotional-feature-row{grid-template-columns:1fr}
}


/* Every primary mobile destination must retain its label. */
@media(max-width:430px){
  .dock button:nth-child(2) small{display:block}
  .dock button{gap:2px}
}


/* Accessibility: display-based CSS must never override the semantic hidden attribute.
   This resolves the three stacked forms seen on the mobile signup page. */
[hidden], .auth-card [hidden], .auth-card form[hidden], .auth-card p[hidden],
.auth-card button[hidden] { display:none !important; }
.auth-wrap{min-height:100dvh;align-items:center;padding:16px}
.auth-card{width:min(420px,100%);padding:22px;border-radius:22px;overflow:visible}
.auth-card:before{display:none}
.auth-card h2{font-size:clamp(24px,4vw,28px);line-height:1.18;margin:12px 0 5px;letter-spacing:-.7px}
.auth-card .eyebrow{display:none}
.auth-card>.muted{font-size:12px;line-height:1.45;margin:0 0 8px}
.auth-card .brand{gap:9px}
.auth-card .brand .logo{width:36px;height:36px;border-radius:11px}
.auth-card .brand h1{font-size:17px}
.auth-card .brand small{font-size:10px}
.auth-card .social-grid{gap:7px;margin-top:13px;grid-template-columns:repeat(2,minmax(0,1fr))}
.auth-card .social{min-height:43px;padding:8px;font-size:12px;border-radius:12px}
.auth-card .divider{margin:11px 0 9px;font-size:10px}
.auth-card form{margin-top:8px;gap:9px}
.auth-card .input{min-height:46px;padding:11px 12px;border-radius:12px;font-size:16px}
.auth-card .btn{min-height:42px;padding:9px 11px;border-radius:12px;font-size:13px}
.auth-card .auth-method-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:rgba(255,255,255,.035);padding:4px;border:1px solid var(--line);border-radius:13px;margin:4px 0 10px}
.auth-card .auth-method-tabs button{min-width:0;background:transparent;border:0;box-shadow:none;color:#cdd3dc;font-weight:650}
.auth-card .auth-method-tabs button.active{background:color-mix(in srgb,var(--c1) 27%,#161b24);color:#fff}
.auth-card .phone-field-row{display:grid;grid-template-columns:minmax(116px,0.9fr) minmax(0,1.4fr);gap:8px;align-items:stretch}
.auth-card .phone-field-row select{min-width:0;max-width:100%;font-size:14px}
.auth-card .phone-field-row input{min-width:0;width:100%}
.auth-card .phone-extra-code{margin-top:7px}
.auth-card .auth-help{font-size:11px;line-height:1.45;color:#acb6c3}
.auth-card .auth-availability{font-size:12px;line-height:1.5;border:1px solid var(--line);background:rgba(255,255,255,.045);border-radius:12px;padding:11px 12px;margin-top:10px}
.auth-card .auth-availability a{color:#d9e4fb;text-decoration:underline}
.auth-card #phoneOtpForm .filter-row{display:grid;grid-template-columns:1fr 1fr}
.auth-card .auth-otp-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.auth-card .auth-secondary{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px}
.auth-card .auth-secondary button{width:100%}
.auth-card .auth-legal-note{font-size:10px;line-height:1.45;color:#9ca6b3;margin-top:8px}
.auth-card .auth-passkey{width:100%;margin-top:9px}
.auth-card .auth-public-footer{font-size:9px;line-height:1.4;margin-top:15px}
@media(max-width:520px){
  .auth-wrap{padding:10px;align-items:start}
  .auth-card{width:100%;padding:16px 15px;border-radius:18px}
  .auth-card h2{font-size:25px}
  .auth-card .social-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Compact, accessible navigation for the shared desktop and mobile client. */
.memora-explore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.memora-explore-grid .btn{min-height:64px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;text-align:left;padding:12px 14px;white-space:normal}
.memora-explore-grid .btn small{font-size:.75rem;line-height:1.3;opacity:.74;font-weight:400}
.topbar .top-actions{gap:6px}
.topbar #memoraExploreButton{white-space:nowrap;font-weight:650}
@media (max-width:720px){
  .topbar .top-actions{gap:5px}
  #memoraExploreButton{padding:9px 11px}
  .memora-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-head{margin-bottom:12px}
  .main .section{margin-top:16px}
  .topbar .brand small{display:none}
  .topbar .theme-text{max-width:65px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (max-width:390px){
  .memora-explore-grid{grid-template-columns:1fr}
}


/* Keep browser autofill consistent with dark Memora login, including mobile Chrome. */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus{
  -webkit-text-fill-color:#f5f7fb !important;
  -webkit-box-shadow:0 0 0 1000px #101821 inset !important;
  box-shadow:0 0 0 1000px #101821 inset !important;
  caret-color:#f5f7fb;
  transition:background-color 9999s ease-out 0s;
}
.auth-card input::placeholder{color:#8894a6;opacity:1}

/* Memora compact navigation and audio discovery: October 2026 */
.topbar{padding:10px clamp(12px,2.5vw,26px);gap:8px;background:rgba(9,13,22,.9)}
.topbar .top-actions{gap:6px;flex-wrap:nowrap}
.topbar .icon-btn{padding:9px 12px;border-radius:12px;font-size:13px;white-space:nowrap}
.page-head{margin:8px 0 14px}
.page-head h2{font-size:clamp(27px,3.6vw,39px);line-height:1.1;letter-spacing:-1.1px}
.page-head p{margin:6px 0 0}
.main{max-width:1160px;padding-top:8px}
.main .section{margin-top:20px}
.memora-explore-grid .btn{min-height:58px}
.audio-for-you{margin-block:10px}
.audio-hub .audio-mode-panel{padding-top:10px}
.audio-presets,.radio-country-quick{max-height:88px;overflow:auto;scrollbar-width:thin}
.audio-hub-modal .audio-library-results{scrollbar-width:thin}
@media(max-width:760px){
  .topbar{padding:8px 10px}
  .topbar .top-actions #settingsButton{display:none}
  .topbar .top-actions .icon-btn{padding:8px 9px;font-size:12px}
  .topbar .top-actions #soundButton{padding:8px 9px}
  .topbar .brand strong{font-size:14px}
  .topbar .logo{width:32px;height:32px}
  .page-head{margin:7px 0 12px}
  .page-head h2{font-size:28px}
  .audio-presets,.radio-country-quick{max-height:72px}
  .memora-explore-grid .btn{min-height:55px;padding:10px 11px}
}
@media(max-width:430px){
  .topbar .global-search-label{display:none}
  .topbar .top-actions #soundButton{display:none}
  .topbar .top-actions{margin-left:auto}
}


/* Identity and phone linking: concise, two-step, mobile-first interface */
.settings-grid{gap:12px;align-items:start}
.settings-card{min-width:0}
.settings-card h3{font-size:clamp(18px,2.4vw,22px);line-height:1.25}
.settings-card .eyebrow{font-size:10px;letter-spacing:.09em}
.settings-card .muted{font-size:12px;line-height:1.55}
.settings-card .setting-row{gap:8px}
.phone-link-flow{max-width:450px;display:grid;gap:12px}
.phone-link-flow form{display:grid;gap:10px}
.phone-link-flow .phone-field-row{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1.2fr);gap:8px}
.phone-link-flow .phone-field-row>*{min-width:0;width:100%}
.phone-link-flow .input{min-height:46px;font-size:16px;padding:11px 12px}
.phone-link-flow .btn{min-height:44px}
.phone-link-flow label{font-size:12px;font-weight:650}
.phone-link-flow .auth-help{font-size:12px;line-height:1.55}
.phone-link-flow .auth-availability{font-size:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.045)}
@media(max-width:420px){
 .phone-link-flow .phone-field-row{grid-template-columns:1fr}
 .settings-grid{gap:9px}
 .settings-card{padding:14px}
}


/* Unified discovery, conversation-first Ask and clear persistent audio controls.
   Overrides intentionally live at the end of the stylesheet to avoid changing
   other screens. All touch controls meet or exceed a practical 44px target. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.global-search-trigger{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:650}
.home-quick-nav #homeSearchQuick{flex:1.35 1 170px}
.modal:has(.unified-scope-tabs){width:min(760px,100%);max-height:min(86dvh,880px)}
.search-intro{margin:0 0 12px;line-height:1.5;font-size:13px}
.unified-search-input{min-height:55px;font-size:16px;border-radius:17px;padding:14px 16px}
.unified-scope-select{position:absolute!important;width:1px;height:1px;opacity:0;pointer-events:none}
.unified-scope-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.scope-chip{color:#cbd4df;cursor:pointer;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:10px 14px;min-height:44px;font-size:13px}
.scope-chip.active,.scope-chip[aria-pressed="true"]{background:color-mix(in srgb,var(--c1) 28%,#172030);border-color:color-mix(in srgb,var(--c1) 48%,transparent);color:#fff;font-weight:700}
.unified-search-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.unified-search-actions .btn{min-height:48px}
.global-search-results{display:grid;gap:10px;margin-top:13px}
.global-search-results .search-result{border-radius:17px;background:rgba(255,255,255,.035);padding:13px 15px}
.global-search-results .search-result strong{font-size:14px;line-height:1.35}
.global-search-results .search-result p{color:#bdc6d4;font-size:12px;line-height:1.6;margin:7px 0 9px}
.global-search-results .search-result .btn{min-height:41px;margin:4px 6px 0 0;font-size:12px}
#globalSearchStatus{font-size:12px;color:#c6d0dd;min-height:18px;margin:9px 0 0}
#globalSearchNote{font-size:11px;line-height:1.5}
#globalMusicFinder[hidden]{display:none!important}
.app:has(.ask-layout) .scene-photo-layer{opacity:.12}
.main:has(.ask-layout){max-width:1200px}
.main:has(.ask-layout) .page-head{margin:4px 0 10px}
.main:has(.ask-layout) .page-head h2{font-size:clamp(27px,3vw,35px);letter-spacing:-.9px}
.main:has(.ask-layout) .page-head p{font-size:12px;margin:7px 0 0}
.ask-layout{display:grid;grid-template-columns:minmax(0,1fr);width:min(970px,100%);min-height:0;margin:0 auto;gap:0}
.ask-main{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:clamp(420px,calc(100dvh - 245px),770px);min-height:0;gap:9px}
.ask-intelligence{min-height:64px;position:relative!important;top:auto!important;padding:10px 13px;border-radius:17px}
.ask-title-block strong{font-size:15px;line-height:1.35}
.ask-title-block small{display:block;font-size:11px;color:#c8d0df}
.ask-memory-status{margin-left:auto;white-space:nowrap;padding:6px 9px;border:1px solid rgba(157,207,168,.35);border-radius:999px;background:rgba(113,176,119,.09);color:#b9e8c1;font-size:10px}
.chat-sidebar{position:fixed!important;top:68px!important;left:clamp(10px,5vw,46px);bottom:max(94px,env(safe-area-inset-bottom));width:min(330px,calc(100vw - 34px));max-height:none!important;transform:translateX(calc(-100% - 70px));opacity:0;visibility:hidden;pointer-events:none;transition:transform .2s ease,opacity .2s ease;z-index:95!important;background:#101720}
.chat-sidebar.open{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto}
.chat-drawer-scrim.open{position:fixed!important;inset:0;background:rgba(0,0,0,.58);z-index:90}
.chat-panel{min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;padding:13px 15px 20px;border-radius:19px;background:rgba(11,17,28,.91);border:1px solid rgba(255,255,255,.12)}
.chat{display:grid;gap:12px;align-content:start;min-height:90px}
.chat .bubble{max-width:min(700px,90%);font-size:13px;line-height:1.65;padding:12px 15px}
.ask-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 13px}
.ask-suggestions .chip{font-size:11px;min-height:38px;padding:7px 11px}
.ask-box{position:relative!important;bottom:auto!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px;padding:10px;border-radius:17px;background:rgba(15,21,33,.97);box-shadow:0 8px 30px rgba(0,0,0,.18)}
.ask-box #askInput{font-size:15px;min-height:52px;max-height:130px;resize:vertical;padding:12px 14px;line-height:1.45}
.ask-box .btn{min-height:48px;align-self:start}
.ask-box #askButton{min-width:94px;font-size:14px;font-weight:700}
.ask-hint{grid-column:1/-1;font-size:10px;color:#9faabd;margin:0 3px}
.memora-player{z-index:74!important;bottom:calc(var(--dock-h) + 21px)!important;width:min(860px,calc(100vw - 20px))!important;min-height:78px;grid-template-columns:auto minmax(0,1fr) auto!important;gap:11px;padding:9px 13px;border:1px solid rgba(255,255,255,.20);border-radius:22px;background:rgba(13,19,29,.97);box-shadow:0 10px 45px rgba(0,0,0,.56);backdrop-filter:blur(22px)}
.memora-player .player-track{min-width:0}
.memora-player .player-kicker{display:block;font-size:10px;font-weight:750;letter-spacing:.08em;color:#b9e3b1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.memora-player #playerSource{font-weight:500;letter-spacing:0;color:#a9b9ca}
.memora-player #playerTitle{font-size:13px;line-height:1.3;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.memora-player #playerStatus{font-size:10px;line-height:1.3}
.memora-player .player-actions{gap:7px;flex-wrap:nowrap}
.memora-player .player-action{min-width:48px!important;width:48px;height:48px!important;padding:0 6px!important;border-radius:13px;font-size:16px!important;font-weight:800}
.memora-player #playerPlay{width:53px;min-width:53px!important;font-size:20px!important}
.memora-player .player-mute-action{font-size:11px!important;width:53px}
.memora-player .player-mini-art{min-width:50px;min-height:50px}
body.has-memora-player .app{padding-bottom:calc(var(--dock-h) + 170px)}
@media(max-width:760px){
 .global-search-label{display:inline!important}
 .top-actions #globalSearchButton{font-size:12px;padding:9px 10px}
 .top-actions #memoraExploreButton{font-size:12px}
 .ask-main{height:clamp(380px,calc(100dvh - 230px),690px)}
 .chat-panel{padding:12px 11px 16px}
 .ask-memory-status{font-size:9px;padding:5px}
 .ask-box{grid-template-columns:minmax(0,1fr) auto auto!important;gap:6px}
 .ask-box #askInput{font-size:14px;min-height:47px;padding:10px}
 .ask-box .btn{padding:9px;min-width:45px}
 .ask-box #askButton{min-width:70px;font-size:12px}
 .ask-hint{font-size:9px}
 .memora-player{min-height:66px;padding:7px 8px!important;gap:7px!important;border-radius:16px}
 .memora-player .player-mini-art{min-width:43px;min-height:43px;width:43px;height:43px}
 .memora-player .player-action{min-width:42px!important;width:42px;height:45px!important;font-size:13px!important;padding:0!important}
 .memora-player #playerPlay{min-width:46px!important;width:46px;font-size:17px!important}
 .memora-player .player-mute-action{display:none}
}
@media(max-width:430px){
 .memora-player #playerExpand{display:none}
 .memora-player .player-kicker{font-size:9px}
 .memora-player #playerTitle{font-size:12px}
 .memora-player .player-actions{gap:4px}
 .memora-player .player-mini-art{min-width:39px;width:39px;height:39px;min-height:39px}
 .ask-main{height:calc(100dvh - 205px);min-height:400px}
 .ask-title-block small{display:none}
 .ask-suggestions .chip{min-height:36px}
 .unified-scope-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .scope-chip{font-size:11px;padding:8px 4px;min-height:42px}
 .unified-search-actions .btn{font-size:12px;padding:9px}
}


/* Keep the Ask composer ABOVE the persistent music player on short screens. */
body.has-memora-player .ask-main{height:clamp(320px,calc(100dvh - 355px),645px)}
@media(max-width:760px){
 body.has-memora-player .ask-main{height:clamp(315px,calc(100dvh - 305px),560px)}
}
@media(max-width:430px){
 body.has-memora-player .ask-main{height:clamp(290px,calc(100dvh - 320px),530px)}
 .memora-player .player-track{min-width:76px}
}


/* Desktop also uses the conversation drawer; never hide its toggle/scrim. */
.ask-main .thread-toggle{display:grid;place-items:center;min-width:44px;min-height:44px;font-size:17px}
.chat-drawer-scrim.open{display:block;opacity:1;pointer-events:auto}
.memora-player .player-actions{display:flex;grid-column:3;grid-row:1;align-items:center;flex-wrap:nowrap}
@media(max-width:760px){
 .memora-player .player-actions{grid-column:3;grid-row:1}
}


/* Users decide whether typed text is a memory or a question. */
.composer-submit-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.composer-submit-group .btn{min-height:45px;white-space:nowrap;font-size:13px}
.composer-submit-group #askFromMemoryInput{background:rgba(255,255,255,.065)}
@media(max-width:760px){
 .composer-submit-group{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}
 .composer-submit-group .btn{min-width:0;padding:10px 7px}
}


/* Memora v2 responsive navigation and persistent player placement */
.top-primary-nav{display:flex;align-items:center;gap:3px;flex-wrap:nowrap}
.top-primary-nav button{border:0;background:transparent;color:#cbd4df;border-radius:11px;padding:10px 11px;min-height:44px;cursor:pointer;font-weight:650;font-size:12px;white-space:nowrap}
.top-primary-nav button:hover,.top-primary-nav button:focus-visible{background:rgba(255,255,255,.10);color:#fff}
.topbar{gap:12px}
.top-left{flex-shrink:0}
.global-search-trigger{min-width:210px;justify-content:flex-start;text-align:left;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18)}
.brand .logo{display:grid;place-items:center}
.brand .logo svg{max-width:100%;height:auto}
.back-btn:disabled{opacity:.35;cursor:default}
.memora-player{position:fixed!important;z-index:110!important;bottom:max(18px,env(safe-area-inset-bottom))!important;pointer-events:auto;visibility:visible;opacity:1}
body.has-memora-player .app{padding-bottom:calc(var(--dock-h) + 190px)!important}
body.has-memora-player .main{padding-bottom:190px!important}
body.has-memora-player .modal-backdrop{padding-bottom:108px}
body.has-memora-player .modal{max-height:calc(100dvh - 165px)}
body.has-memora-player .modal-backdrop .memora-player{z-index:110}
.memora-player #playerPlay svg,.memora-player #playerPrevious svg,.memora-player #playerNext svg{display:block;margin:auto}
@media(max-width:1350px){.top-primary-nav button{padding:9px 7px}.global-search-trigger{min-width:145px}}
@media(max-width:1150px){.top-primary-nav{display:none}.global-search-trigger{min-width:170px}}
@media(max-width:760px){
 .global-search-trigger{min-width:0}
 .memora-player{bottom:calc(var(--dock-h) + 10px + env(safe-area-inset-bottom))!important;z-index:110!important}
 body.has-memora-player .modal-backdrop{padding-bottom:calc(var(--dock-h) + 100px)}
 body.has-memora-player .modal{max-height:calc(100dvh - var(--dock-h) - 130px)}
 body.has-memora-player .main{padding-bottom:165px!important}
}


/* Memora 2.0 navigation and persistent music dock */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px clamp(12px,2vw,26px)}
.top-left{display:flex;align-items:center;gap:8px;min-width:max-content}
.top-primary-nav{flex:0 0 auto}
.top-primary-nav button{padding:10px 12px}
.top-global-search{flex:1 1 330px;display:flex;align-items:center;min-width:190px;max-width:450px;height:45px;background:#121d2b;border:1px solid rgba(183,211,247,.27);border-radius:15px;padding:0 5px 0 13px;transition:border-color .2s,box-shadow .2s}
.top-global-search:focus-within{border-color:var(--c1);box-shadow:0 0 0 3px color-mix(in srgb,var(--c1) 16%,transparent)}
.top-global-search .top-search-symbol{font-size:23px;line-height:1;color:#b5c6db;margin-right:8px}
.top-global-search input{min-width:0;flex:1;background:transparent;border:none;outline:none;color:#f3f7fc;font:500 13px inherit;font-size:13px}
.top-global-search input::placeholder{color:#adb9c9}
.top-global-search button{border:0;background:color-mix(in srgb,var(--c1) 18%,#202836);color:#e7f2ff;border-radius:11px;width:36px;height:35px;display:grid;place-items:center;cursor:pointer}
.search-mobile-launch{display:none!important}
#topThemeNav{color:#d6f4ff}
.top-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.memora-player.compact-player{position:fixed!important;left:50%;transform:translateX(-50%);bottom:max(18px,env(safe-area-inset-bottom))!important;z-index:240!important;visibility:visible!important;opacity:1!important;max-width:calc(100vw - 20px);box-sizing:border-box}
body.has-memora-player .main,body.has-memora-player .app{padding-bottom:calc(var(--active-player-height,78px) + 84px)!important}
body.player-with-dialog .modal-backdrop{z-index:200!important;padding-bottom:calc(var(--active-player-height,78px) + 35px)!important;box-sizing:border-box}
body.player-with-dialog .modal{max-height:calc(100dvh - var(--active-player-height,78px) - 70px)!important;overscroll-behavior:contain}
body.player-with-dialog .memora-player{z-index:240!important}
body.player-with-dialog .modal-backdrop.now-playing-backdrop{z-index:250!important;padding-bottom:18px!important}
body.player-with-dialog .now-playing-backdrop .modal{max-height:calc(100dvh - 36px)!important}
body.player-with-dialog:has(.now-playing-backdrop) .memora-player{visibility:hidden!important;pointer-events:none}
body.player-keyboard-open .memora-player{opacity:.96;transform:translateX(-50%) scale(.88);transform-origin:bottom center}
.memora-player .player-action svg{display:block;margin:auto}
.memora-player .player-mini-art{flex-shrink:0}
@media(min-width:941px){.top-primary-nav{display:flex!important}}
@media(min-width:941px) and (max-width:1350px){.top-primary-nav button{padding:9px 7px;font-size:11px}.top-global-search{flex-basis:210px;min-width:150px}}
@media(max-width:1100px){.top-global-search{max-width:270px}.top-actions .sound-button{display:none}}
@media(max-width:940px){.top-primary-nav{display:none!important}.top-global-search{display:flex;max-width:none}.top-actions #memoraExploreButton{display:block}}
@media(max-width:700px){
 .top-global-search{display:none}
 .search-mobile-launch{display:flex!important;min-width:48px!important;align-items:center;justify-content:center}
 .topbar .top-actions{gap:4px}
 .topbar .top-actions #settingsButton{display:none}
 .topbar .top-actions .sound-button{display:none}
 .memora-player.compact-player{bottom:calc(var(--dock-h,70px) + 10px + env(safe-area-inset-bottom))!important}
 body.has-memora-player .main,body.has-memora-player .app{padding-bottom:calc(var(--dock-h,70px) + var(--active-player-height,75px) + 40px)!important}
 body.player-with-dialog .modal-backdrop{padding-bottom:calc(var(--dock-h,70px) + var(--active-player-height,75px) + 35px)!important}
 body.player-with-dialog .modal{max-height:calc(100dvh - var(--dock-h,70px) - var(--active-player-height,75px) - 52px)!important}
}


/* Distinct Memora visual worlds. Styles change material, typography,
   shapes, texture and background, rather than merely changing hue. */
.brand-symbol{background:none!important;overflow:hidden;box-shadow:0 5px 24px rgba(0,0,0,.22)!important}
.brand-symbol img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.visual-world-dialog{width:min(1020px,calc(100vw - 30px))!important;max-height:86dvh}
.world-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px}
.world-intro p{margin:0;font-size:13px;line-height:1.5;color:#c8d5df;max-width:560px}
.world-preferences{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:8px}
.world-preferences label{font-size:11px;color:#bdc7d8;display:grid;gap:6px}
.world-preferences select{min-height:43px;padding:8px;font-size:13px}
.world-privacy-note{font-size:11px;color:#a6b4c7;line-height:1.5;margin:4px 0 12px}
.world-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin:10px 0}
.world-search-row .input{min-height:46px}
.world-categories{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.world-categories .chip{min-height:37px;font-size:11px}
.world-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;max-height:380px;overflow-y:auto;overscroll-behavior:contain;padding:2px 3px 8px}
.world-card{text-align:left;border:1px solid rgba(255,255,255,.16);color:#fff;background:#172031;border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:5px;cursor:pointer;min-width:0;transition:transform .2s,border-color .2s}
.world-card:hover,.world-card:focus-visible{transform:translateY(-2px);border-color:var(--world-a)}
.world-card.selected{border:2px solid var(--world-a);box-shadow:0 0 0 2px color-mix(in srgb,var(--world-a) 14%,transparent)}
.world-card[hidden]{display:none!important}
.world-preview{display:block;height:86px;position:relative;border-radius:11px;overflow:hidden;background:
radial-gradient(ellipse at 70% 25%,var(--world-a),transparent 46%),
radial-gradient(ellipse at 15% 80%,var(--world-b),transparent 56%),
linear-gradient(135deg,var(--world-bg0),var(--world-bg1),var(--world-bg2))}
.world-preview-orb{display:block;position:absolute;right:13%;top:14%;width:47px;height:47px;border-radius:50%;background:var(--world-c);opacity:.4;filter:blur(3px)}
.world-preview-card{display:block;position:absolute;inset:auto 12% 12% 10%;height:31px;border:1px solid rgba(255,255,255,.24);border-radius:8px;background:rgba(11,17,25,.35);backdrop-filter:blur(8px)}
.world-title{font-weight:700;font-size:12px;padding:0 3px}
.world-card small{color:#b6c4d1;padding:0 3px 3px;font-size:10px}
.world-classic{margin:15px 0;border:1px solid var(--line);border-radius:13px;padding:10px 14px}
.world-classic summary{font-weight:650;cursor:pointer;font-size:12px;min-height:27px}
.world-selection-status{font-size:11px;color:#d3e7c6;padding:9px 12px;border-radius:10px;background:rgba(80,130,80,.12)}
html[data-visual-style="paper"]{--glass:rgba(65,53,41,.78);--glass2:rgba(86,73,55,.82);--line:rgba(255,223,186,.22);--muted:#ebd8c1}
html[data-visual-style="paper"] body{font-family:Georgia,"Times New Roman",serif}
html[data-visual-style="paper"] .glass,html[data-visual-style="paper"] .hero{border-radius:9px;box-shadow:5px 8px 0 rgba(0,0,0,.15)}
html[data-visual-style="paper"] body:after{animation:none;opacity:.10;background-size:16px 16px}
html[data-visual-style="zen"] .glass,html[data-visual-style="zen"] .hero{border-radius:36px}
html[data-visual-style="zen"] .hero:before{opacity:.3}
html[data-visual-style="coastal"] .glass{backdrop-filter:blur(36px) saturate(170%);border-color:rgba(195,240,247,.27)}
html[data-visual-style="coastal"] .hero{border-radius:42px}
html[data-visual-style="rain"] .glass{border-left:2px solid rgba(159,228,202,.35)}
html[data-visual-style="rain"] body:after{background-image:repeating-linear-gradient(113deg,transparent 0 21px,rgba(193,236,247,.07) 22px 23px,transparent 24px 65px);animation:none;opacity:.5}
html[data-visual-style="frost"] .glass{backdrop-filter:blur(40px);border:1px solid rgba(229,243,255,.3)}
html[data-visual-style="frost"] .hero{background:linear-gradient(130deg,rgba(159,214,254,.13),rgba(23,31,62,.5))}
html[data-visual-style="autumn"] body{font-family:Georgia,"Segoe UI",serif}
html[data-visual-style="autumn"] .hero{border-radius:8px 46px 8px 46px}
html[data-visual-style="desert"] .glass{border-radius:7px 24px 7px 24px}
html[data-visual-style="desert"] .hero{border-radius:4px 68px 4px 68px}
html[data-visual-style="mountain"] .hero{border-radius:45px}
html[data-visual-style="aurora"] body:after{opacity:.65}
html[data-visual-style="festival"] .glass{border-color:color-mix(in srgb,var(--c1) 36%,transparent)}
html[data-visual-style="festival"] .hero:before{background:radial-gradient(circle,var(--c1),transparent 64%);filter:blur(40px);opacity:.33}
html[data-visual-style="retro"] .glass{border:1px solid rgba(255,136,233,.42);box-shadow:0 0 35px rgba(233,111,227,.09)}
html[data-visual-style="retro"] .hero{border-radius:5px}
html[data-visual-style="retro"] body:after{background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px);background-size:100% 8px;animation:none}
html[data-visual-style="cosmic"] body:after{opacity:.75}
html[data-visual-style="nordic"] body{font-family:"Segoe UI",system-ui,sans-serif}
html[data-visual-style="nordic"] .glass{border:1px solid rgba(233,220,194,.25);border-radius:4px}
html[data-visual-style="nordic"] .hero{border-radius:4px}
html[data-visual-style="botanical"] .glass{border-color:rgba(198,234,177,.2)}
html[data-visual-style="cyber"] .glass{border:1px solid rgba(109,232,252,.42);box-shadow:0 0 29px rgba(66,208,225,.07)}
html[data-visual-style="cyber"] body:after{background-image:linear-gradient(rgba(102,229,246,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(102,229,246,.13) 1px,transparent 1px);background-size:52px 52px;animation:none}
html[data-visual-style="library"] body{font-family:Georgia,serif}
html[data-visual-style="library"] .glass{border:1px solid rgba(229,201,163,.28);border-radius:9px}
html[data-visual-style="cafe"] .glass{box-shadow:0 8px 45px rgba(0,0,0,.45);border-radius:20px}
@media(max-width:800px){.world-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.world-intro{flex-direction:column;align-items:start}}
@media(max-width:540px){
 .world-preferences{grid-template-columns:1fr}
 .world-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:44dvh}
 .world-intro .btn{width:100%}
 .world-preview{height:76px}
 .visual-world-dialog{padding:15px!important}
 .world-selection-status{font-size:10px}
}

/* Visual worlds v44: real visual distinctions, not recolored orb thumbnails */
.world-preview-orb,.world-preview-card{display:none!important}
.world-preview{height:112px;border-radius:12px;isolation:isolate;box-shadow:inset 0 0 0 1px #fff2}
.world-preview::before,.world-preview::after{content:"";position:absolute;display:block;pointer-events:none}
.world-preview[data-preview-style="photo"]{background:radial-gradient(ellipse at 55% 80%,var(--world-b),transparent 62%),linear-gradient(158deg,var(--world-a),var(--world-bg1) 70%);background-size:cover}
.world-preview[data-preview-style="photo"]::before{inset:25% -10% 0;clip-path:polygon(0 100%,21% 38%,43% 75%,57% 24%,80% 64%,100% 15%,100% 100%);background:var(--world-bg2);opacity:.85}
.world-preview[data-preview-style="sunrise"]{background:linear-gradient(180deg,var(--world-b) 0%,var(--world-a) 49%,var(--world-bg2) 100%)}
.world-preview[data-preview-style="sunrise"]::before{width:54px;height:54px;border-radius:50%;top:16%;left:43%;background:#fff6cc;box-shadow:0 0 28px #fff8}
.world-preview[data-preview-style="sunrise"]::after{inset:70% 0 0;background:repeating-linear-gradient(180deg,#fff4 0 1px,transparent 1px 6px);opacity:.45}
.world-preview[data-preview-style="noir"]{background:radial-gradient(ellipse at 55% 45%,var(--world-b),transparent 45%),linear-gradient(115deg,#040816,var(--world-bg0),#111);filter:contrast(1.15)}
.world-preview[data-preview-style="noir"]::before{width:35px;height:35px;border-radius:50%;top:15%;right:18%;background:#f3edcd;box-shadow:0 0 20px #fff8}
.world-preview[data-preview-style="illustrated"]{background:repeating-linear-gradient(-18deg,transparent 0 17px,#fff2 17px 19px),linear-gradient(150deg,var(--world-a),var(--world-b),var(--world-c))}
.world-preview[data-preview-style="illustrated"]::before{inset:35% -10% 0;clip-path:polygon(0 100%,0 65%,15% 40%,30% 60%,51% 10%,70% 55%,84% 25%,100% 70%,100% 100%);background:var(--world-bg1)}
.world-preview[data-preview-group="Space"]{background:radial-gradient(circle at 70% 45%,var(--world-c) 0 8px,transparent 22px),radial-gradient(circle at 20% 35%,var(--world-a),transparent 30%),linear-gradient(130deg,#050b23,var(--world-bg1))}
.world-preview[data-preview-group="Space"]::before{inset:0;background-image:radial-gradient(#fff 1px,transparent 1px);background-size:18px 23px;clip-path:none;opacity:.65}
.world-preview[data-preview-group="Music"]{background:repeating-linear-gradient(90deg,var(--world-bg0) 0 7px,var(--world-a) 7px 11px,var(--world-bg2) 11px 18px,var(--world-b) 18px 24px)}
.world-preview[data-preview-group="Music"]::before{inset:0;background:radial-gradient(circle at 78% 40%,#0b1028 0 24px,var(--world-c) 25px 30px,#101724 31px 32px,transparent 33px);clip-path:none}
.world-preview[data-preview-group="Creative"]::after{inset:0;clip-path:polygon(0 0,35% 0,20% 100%,0 100%);background:var(--world-c);opacity:.45}
.world-preview[data-preview-group="Places"]::after{inset:auto 0 0;height:55%;background:repeating-linear-gradient(90deg,var(--world-bg1) 0 12px,var(--world-bg2) 12px 25px,var(--world-b) 25px 31px);clip-path:polygon(0 35%,15% 35%,15% 0,35% 0,35% 70%,60% 70%,60% 10%,85% 10%,85% 52%,100% 52%,100% 100%,0 100%)}
.world-preview[data-preview-group="Nature"]::after{inset:auto 0 0;height:55%;background:linear-gradient(0deg,var(--world-bg0),var(--world-b));clip-path:polygon(0 100%,0 50%,17% 20%,30% 60%,49% 10%,64% 67%,80% 23%,100% 55%,100% 100%)}
.world-preview[data-preview-group="People"]::after{width:38px;height:48px;top:36%;right:21%;border-radius:45% 45% 30% 30%;background:var(--world-bg0);box-shadow:0 -23px 0 -8px var(--world-bg0)}
html[data-appearance="light"] body{--text:#13263b;--muted:#47566a;--glass:rgba(255,255,255,.91);--glass2:rgba(246,249,255,.94);--line:rgba(24,43,63,.19);color:var(--text)}
html[data-appearance="light"] .glass{color:var(--text)}
html[data-appearance="light"] .topbar,html[data-appearance="light"] .topbar button{color:#f4f6ff}
html[data-appearance="light"] .world-card{color:#fff}
@media(max-width:640px){.world-preview{height:90px}.world-card{min-height:138px}}

/* Header accessibility and responsive menu v44 */
.header-menu-trigger{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;min-height:42px;font-weight:700}
.back-btn{color:#12243a!important;background:#b8e7f7!important;border:1px solid #dbf7ff!important;border-radius:11px!important;padding-inline:12px!important;min-width:76px}
.back-btn:disabled{opacity:.44;cursor:default}
.top-actions .sound-label{white-space:nowrap}
@media(max-width:720px){.header-menu-trigger{font-size:10px;min-height:36px;padding:5px 8px!important}.back-btn{min-width:68px!important;padding:5px!important}.top-left{gap:4px!important}}

/* v45 contrast and visual architecture */
.back-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:auto!important;min-width:84px!important;height:40px!important;padding:0 12px!important;line-height:1!important;font-size:13px!important;white-space:nowrap!important;overflow:visible!important;position:relative!important;transform:none!important}
.back-btn span{position:static!important;display:inline!important;line-height:1!important;letter-spacing:normal!important;font-size:inherit!important;color:inherit!important}
.back-btn span:first-child{font-size:20px!important}
.back-btn:disabled{opacity:.6}
#soundButton{display:inline-flex;align-items:center;gap:7px;min-width:116px;font-size:12px;font-weight:700}
#soundButton .sound-icon{font-size:14px;width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:var(--c1);color:#101622}
html[data-appearance="light"]{color-scheme:light;--text:#14233b!important;--muted:#39495d!important;--glass:rgba(255,255,255,.94)!important;--glass2:rgba(249,251,255,.98)!important;--line:rgba(27,50,75,.21)!important}
html[data-appearance="light"] body{color:#14233b!important;background:#edf2f8!important}
html[data-appearance="light"] .main,html[data-appearance="light"] .page-head,html[data-appearance="light"] .page-head h2,html[data-appearance="light"] .page-head p{color:#14233b!important}
html[data-appearance="light"] .glass,html[data-appearance="light"] .modal,html[data-appearance="light"] .visual-world-dialog{background:#f7f9fd!important;color:#17253c!important;border-color:#aebac9!important;box-shadow:0 16px 65px #26334a2b}
html[data-appearance="light"] .visual-world-dialog :is(h2,h3,p,small,label,.world-privacy-note,.world-intro,.muted,.small,.eyebrow){color:#24364c!important;opacity:1!important}
html[data-appearance="light"] .visual-world-dialog .btn,html[data-appearance="light"] .visual-world-dialog .chip{color:#14233b!important;background:#e4eaf2!important;border-color:#a7b4c3!important}
html[data-appearance="light"] .visual-world-dialog .btn.primary,html[data-appearance="light"] .visual-world-dialog .chip.active{background:#174e7a!important;color:#fff!important}
html[data-appearance="light"] .visual-world-dialog .input{background:#fff!important;color:#12233b!important;border:1px solid #92a5bc!important}
html[data-appearance="light"] .visual-world-dialog .input::placeholder{color:#566780!important}
html[data-appearance="light"] .visual-world-dialog .world-card{background:#f2f5f9!important;border-color:#a2b2c6!important;color:#15263b!important}
html[data-appearance="light"] .visual-world-dialog .world-card :is(.world-title,small){color:#1a2e46!important}
html[data-appearance="light"] .visual-world-dialog .world-card.selected{border-color:#1269b3!important;box-shadow:0 0 0 2px #1269b340}
html[data-appearance="light"] .visual-world-dialog .world-selection-status{color:#213d5a!important;background:#dfeafa!important}
html[data-appearance="light"] .memora-player{background:#f8fbff!important;color:#182942!important;border-color:#8296ae!important}
html[data-appearance="light"] .memora-player *{color:inherit}
html[data-appearance="light"] :is(.memory-card,.home-panel,.overview-card,.home-metric,.stat-card){background:#fff!important;color:#16283e!important;border-color:#bac6d2!important}
html[data-appearance="light"] :is(.memory-card,.home-panel,.overview-card,.home-metric,.stat-card) :is(h2,h3,h4,b,strong,p,small){color:#16283e!important}
html[data-appearance="light"] .input{color:#142940}
html[data-appearance="light"] .scene-photo-layer{opacity:.14!important}
html[data-appearance="light"] .scene-layer{opacity:.08!important}
html[data-appearance="light"] .topbar,html[data-appearance="light"] .topbar *{color:#f5f8ff}
html[data-appearance="light"] .topbar .back-btn,html[data-appearance="light"] .topbar .back-btn *{color:#102638!important}
html[data-visual-style="illustrated"] .hero,html[data-visual-style="anime"] .hero{border-radius:38px 14px 38px 14px!important;box-shadow:11px 11px 0 color-mix(in srgb,var(--c1) 19%,transparent)}
html[data-visual-style="noir"] .hero,html[data-visual-style="cosmic"] .hero{border-radius:4px!important;border-left:5px solid var(--c1)!important;box-shadow:0 16px 45px #0008}
html[data-visual-style="sunrise"] .hero,html[data-visual-style="coastal"] .hero{border-radius:70px 24px 70px 24px!important;backdrop-filter:blur(24px)}
html[data-visual-style="photo"] .hero,html[data-visual-style="mountain"] .hero{border-radius:20px!important;border-bottom:5px solid var(--c2)!important}
html[data-visual-style="festival"] .hero{border-radius:22px!important;outline:2px dashed color-mix(in srgb,var(--c3) 65%,transparent);outline-offset:5px}
html[data-visual-style="illustrated"] .memory-card,html[data-visual-style="illustrated"] .glass{border-radius:24px 6px 24px 6px}
html[data-visual-style="noir"] .memory-card,html[data-visual-style="noir"] .glass{border-radius:2px}
html[data-visual-style="sunrise"] .memory-card{border-radius:32px}
html[data-visual-style="festival"] .memory-card{border-radius:6px 32px 6px 32px}
html[data-visual-style="cosmic"] .scene-layer{animation:memora-drift 25s ease-in-out infinite alternate}
html[data-visual-style="festival"] .scene-layer{animation:memora-drift 16s ease-in-out infinite alternate}
html[data-visual-style="sunrise"] .scene-layer{animation:memora-breathe 13s ease-in-out infinite alternate}
@keyframes memora-drift{from{transform:translate3d(-2%,0,0) scale(1.03)}to{transform:translate3d(2%,-2%,0) scale(1.07)}}
@keyframes memora-breathe{from{opacity:.25;transform:scale(1)}to{opacity:.66;transform:scale(1.07)}}
@media(prefers-reduced-motion:reduce){html[data-visual-style] .scene-layer{animation:none!important}}
@media(max-width:760px){.back-btn{min-width:71px!important;font-size:11px!important;height:35px!important;padding:0 7px!important}.back-btn span:first-child{font-size:16px!important}#soundButton{min-width:auto}}

/* v45 theme genres: distinct ambient scene and layout designs */
html[data-world-group="music"] .scene-layer{background:repeating-linear-gradient(90deg,transparent 0 20px,color-mix(in srgb,var(--c2) 18%,transparent) 20px 28px,transparent 28px 44px);mask-image:linear-gradient(transparent,black,transparent);animation:musicEqualizer 9s ease-in-out infinite alternate}
html[data-world-group="space"] .scene-layer{background-image:radial-gradient(#dceeff 1px,transparent 2px),radial-gradient(var(--c1) 2px,transparent 3px);background-size:27px 34px,78px 94px;animation:memora-drift 30s linear infinite alternate}
html[data-world-group="creative"] .scene-layer{background:repeating-conic-gradient(from 0deg at 50% 50%,color-mix(in srgb,var(--c1) 18%,transparent) 0deg 20deg,transparent 21deg 45deg);mask-image:linear-gradient(90deg,black,transparent);animation:memora-drift 28s ease-in-out infinite alternate}
html[data-world-group="places"] .scene-layer{background:linear-gradient(140deg,transparent 38%,color-mix(in srgb,var(--c1) 18%,transparent) 40%,transparent 45%),repeating-linear-gradient(90deg,transparent 0 60px,color-mix(in srgb,var(--c2) 10%,transparent) 60px 63px)}
html[data-world-group="nature"] .scene-layer{background:repeating-radial-gradient(ellipse at 50% 120%,transparent 0 70px,color-mix(in srgb,var(--c2) 15%,transparent) 72px 80px,transparent 83px 150px);animation:memora-breathe 16s ease-in-out infinite alternate}
html[data-world-group="festivals"] .scene-layer{background:radial-gradient(circle at 9% 14%,var(--c1) 0 2px,transparent 3px),radial-gradient(circle at 82% 33%,var(--c3) 0 3px,transparent 4px),radial-gradient(circle at 47% 76%,var(--c2) 0 3px,transparent 4px);background-size:76px 82px;animation:memora-drift 18s linear infinite alternate}
html[data-world-group="editorial"] .hero{font-family:Georgia,serif;letter-spacing:-.03em}
html[data-world-group="creative"] .hero h2{letter-spacing:-.065em;text-transform:none}
html[data-world-group="places"] .hero{border-radius:4px 48px 4px 48px!important}
html[data-world-group="music"] .hero{border-radius:28px!important;box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--c1) 35%,transparent),0 22px 65px #0005}
html[data-world-group="nature"] .hero{border-radius:40px 40px 12px 12px!important}
html[data-world-group="space"] .hero{border-radius:42px!important;border:1px solid color-mix(in srgb,var(--c1) 55%,transparent);box-shadow:0 0 40px color-mix(in srgb,var(--c2) 14%,transparent)}
html[data-world-group="festivals"] .hero{border-radius:10px 32px 10px 32px!important}
html[data-world-group="music"] .memory-card{border-radius:10px!important}
html[data-world-group="places"] .memory-card{border-radius:4px 24px!important}
html[data-world-group="nature"] .memory-card{border-radius:30px 10px!important}
html[data-world-group="space"] .memory-card{border-radius:26px!important}
@keyframes musicEqualizer{0%{transform:scaleY(.4) translateY(20%)}100%{transform:scaleY(1.15) translateY(-5%)}}
@media(prefers-reduced-motion:reduce){html[data-world-group] .scene-layer{animation:none!important}}

/* v46 remove the shared globe, orb and concentric rings across visual worlds */
html[data-visual-world] .hero:before,html[data-visual-world] .hero:after,
html[data-visual-world] .home-hero:before,html[data-visual-world] .home-hero:after{content:none!important;display:none!important;animation:none!important}
html[data-visual-world] .scene-layer span:nth-child(-n+3){display:none!important}
html[data-visual-world] .scene-layer:before{border-radius:0!important}
html[data-world-group="nature"] .scene-layer{background:linear-gradient(155deg,transparent 30%,color-mix(in srgb,var(--c2) 13%,transparent) 31%,transparent 32%),repeating-linear-gradient(145deg,transparent 0 110px,color-mix(in srgb,var(--c1) 7%,transparent) 110px 114px)!important}
html[data-world-group="space"] .scene-layer{background:radial-gradient(#fff9 1px,transparent 1.5px),radial-gradient(var(--c1) 1.5px,transparent 2.5px)!important;background-size:37px 53px,131px 107px!important}
html[data-world-group="music"] .scene-layer{background:repeating-linear-gradient(90deg,transparent 0 24px,color-mix(in srgb,var(--c2) 16%,transparent) 25px 31px,transparent 32px 64px)!important}
html[data-world-group="creative"] .scene-layer{background:repeating-conic-gradient(from 45deg at 50% 50%,transparent 0deg 28deg,color-mix(in srgb,var(--c1) 12%,transparent) 29deg 44deg)!important}
html[data-world-group="places"] .scene-layer{background:repeating-linear-gradient(90deg,transparent 0 90px,color-mix(in srgb,var(--c1) 10%,transparent) 90px 93px)!important}
html[data-world-group="festivals"] .scene-layer{background-image:radial-gradient(var(--c1) 1px,transparent 2px),radial-gradient(var(--c3) 2px,transparent 3px)!important;background-size:37px 47px,81px 107px!important}
html[data-world-group="minimal"] .scene-layer{background:repeating-linear-gradient(0deg,transparent 0 79px,color-mix(in srgb,var(--c1) 7%,transparent) 80px 81px)!important}
.topbar .top-left{order:0;flex-shrink:0;gap:9px}
.topbar .top-actions{order:1;display:flex;align-items:center;gap:8px;flex:1;min-width:0;justify-content:flex-end}
.topbar .top-actions .top-global-search{order:0;min-width:145px;flex:1 1 240px;max-width:390px}
.topbar .top-actions .top-primary-nav{order:1;flex:0 0 auto}
.topbar .top-actions #soundButton{order:2}
.topbar .top-actions #settingsButton{order:3}
.header-home-button{display:inline-flex;align-items:center;justify-content:center;min-height:39px;font-size:12px;font-weight:700}
@media(max-width:1160px){.topbar .top-actions .top-primary-nav{display:none!important}}
@media(max-width:780px){.header-home-button{font-size:11px;min-height:35px}.topbar .top-actions .top-global-search{display:none}.topbar .top-actions{flex:0 1 auto}}

/* v47 universal appearance system, readable surfaces on light themes */
html[data-appearance="light"] .hero.home-hero{background:#f7fbff!important;color:#14283e!important;border:1px solid #a9bdce!important}
html[data-appearance="light"] .home-hero :is(.eyebrow,p,h2),html[data-appearance="light"] .home-hero .hero-content{color:#1d354b!important;opacity:1!important}
html[data-appearance="light"] .home-hero .gradient-text{background:none!important;background-clip:initial!important;-webkit-background-clip:initial!important;-webkit-text-fill-color:#173550!important;color:#173550!important}
html[data-appearance="light"] .home-hero .composer{background:#eef4fb!important;border:1px solid #95adc4!important;box-shadow:0 12px 33px #2940581b!important}
html[data-appearance="light"] .home-hero .composer textarea{color:#162d45!important;background:#fff!important;border:1px solid #a3b5c9!important;border-radius:12px!important}
html[data-appearance="light"] .home-hero .composer textarea::placeholder{color:#576b80!important}
html[data-appearance="light"] .home-hero .tool{background:#e5edf6!important;color:#172f48!important;border:1px solid #9aafc4!important}
html[data-appearance="light"] .home-hero .btn:not(.primary){background:#e2eaf4!important;color:#1c344e!important;border-color:#a0b2c4!important}
html[data-appearance="light"] .home-quick-nav .btn:not(.primary){background:#f7faff!important;color:#173149!important;border-color:#a3b5c6!important}
html[data-appearance="light"] .home-quick-nav .btn.primary{color:#10293f!important;background:#6bdddf!important}
html[data-appearance="light"] .home-hub :is(.eyebrow,.mood-copy,.mood-copy small,.mood-copy strong){color:#233b53!important;opacity:1!important}
html[data-appearance="light"] .home-hub .mood-checkin{background:#f1f6fc!important;border:1px solid #b5c5d6!important}
html[data-appearance="light"] .home-hub .mood-pill{color:#17314b!important;background:#e5edf6!important;border-color:#9fb2c8!important}
html[data-appearance="light"] .home-hub .mood-pill.selected{background:#18577d!important;color:#fff!important}
html[data-appearance="light"] .home-hub .mood-response{color:#1b3752!important}
html[data-appearance="light"] .btn.primary{color:#10243a!important}
html[data-appearance="light"] .memory-card :is(.memory-title,.memory-original,.memory-meta){color:#1c334b!important}
html[data-appearance="light"] .stat:after{opacity:.15}
.daily-quote{margin:17px 0;padding:clamp(18px,3vw,27px);border-radius:24px;position:relative;overflow:hidden;transition:background .5s ease,transform .3s ease}
.daily-quote:hover{transform:translateY(-2px)}
.daily-quote .quote-heading,.daily-quote .quote-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.daily-quote .quote-date,.daily-quote .quote-actions span{font-size:12px;color:var(--muted)}
.daily-quote blockquote{font-size:clamp(20px,2.3vw,31px);line-height:1.3;font-weight:650;max-width:860px;margin:18px 0;letter-spacing:-.025em}
html[data-appearance="light"] .daily-quote{background:#fff!important;color:#1a3049!important;border:1px solid #a8bbce!important}
html[data-appearance="light"] .daily-quote :is(.eyebrow,.quote-date,.quote-actions span){color:#37556e!important;opacity:1!important}
html[data-appearance="light"] .daily-quote .btn{color:#173957!important;background:#e6eff8!important;border-color:#a1b7c9!important}
@media(prefers-reduced-motion:reduce){.daily-quote{transition:none!important}.daily-quote:hover{transform:none!important}}

/* v48 Theme dialog: permanently visible actions, close contrast, selectable previews */
.visual-world-dialog{position:relative!important;padding-bottom:96px!important}
.visual-world-dialog .modal-head{position:sticky!important;top:-1px!important;z-index:30!important;background:var(--glass2)!important;padding:8px 5px!important}
.visual-world-dialog .modal-head .close,.visual-world-dialog .close{display:grid!important;place-items:center!important;position:relative!important;opacity:1!important;visibility:visible!important;min-width:40px!important;min-height:40px!important;font-size:23px!important;font-weight:800!important;background:#273a53!important;color:#fff!important;border:2px solid #a4b7cc!important;border-radius:12px!important}
.visual-world-dialog .world-commit-actions{position:sticky;bottom:-1px;z-index:35;display:flex;justify-content:flex-end;gap:12px;padding:14px 8px;background:var(--glass2);border-top:1px solid var(--line);box-shadow:0 -12px 28px #1112}
.visual-world-dialog .world-commit-actions .btn{min-width:146px;font-weight:750}
.visual-world-dialog .world-commit-actions #worldApply{background:#12649a!important;color:#fff!important;border:1px solid #12649a!important}
.visual-world-dialog .world-commit-actions #worldCancel{background:#e9eff7!important;color:#203247!important;border:1px solid #94aac0!important}
html[data-appearance="light"] .visual-world-dialog{background:#eaf1f9!important;color:#162a42!important}
html[data-appearance="light"] .visual-world-dialog .modal-head,html[data-appearance="light"] .visual-world-dialog .world-commit-actions{background:#eaf1f9!important}
html[data-appearance="light"] .visual-world-dialog .modal-head .close{background:#183957!important;color:#fff!important}
html[data-appearance="light"] .visual-world-dialog :is(.world-intro,.world-privacy-note,.world-selection-status,label,p,small,.eyebrow){color:#263d55!important;opacity:1!important}
html[data-appearance="light"] .visual-world-dialog .world-card :is(.world-title,small){color:#243b54!important}
html[data-appearance="light"] .visual-world-dialog .world-commit-actions #worldApply{color:#fff!important}
html[data-appearance="light"] .visual-world-dialog .world-commit-actions #worldCancel{color:#203247!important}
html[data-appearance="light"] :is(.chat-bubble,.message-bubble,.chat-message,.assistant-message,.user-message){color:#172e47!important;text-shadow:none!important}
html[data-appearance="light"] :is(.chat-bubble,.message-bubble,.chat-message,.assistant-message,.user-message) :is(p,small,span){color:inherit!important;opacity:1!important}
html[data-appearance="light"] .main :is(.page-head h2,.page-head p,.section-head h3,.section-head p){color:#20364e!important}
html[data-appearance="light"] .scene-photo-layer{opacity:.23!important}
html[data-appearance="light"] .scene-layer{opacity:.14!important}
.world-preview[data-preview-style="hemisphere"]{background:radial-gradient(ellipse at 65% 65%,var(--world-c),transparent 64%),linear-gradient(145deg,var(--world-a),var(--world-bg1))!important}
.world-preview[data-preview-style="hemisphere"]::before{content:"";display:block;position:absolute;right:-15%;top:-30%;width:85%;height:140%;border-radius:50%;background:radial-gradient(circle at 35% 40%,#fff7,var(--world-b),transparent 68%)}
.world-preview[data-preview-style="grid"],.world-preview[data-preview-style="blueprint"]{background:linear-gradient(#fff2 1px,transparent 1px),linear-gradient(90deg,#fff2 1px,transparent 1px),var(--world-bg1)!important;background-size:17px 17px}
.world-preview[data-preview-style="kaleidoscope"],.world-preview[data-preview-style="prism"]{background:repeating-conic-gradient(from 35deg,var(--world-a) 0 18deg,var(--world-b) 18deg 35deg,var(--world-c) 35deg 52deg)!important}
.world-preview[data-preview-style="wave"],.world-preview[data-preview-style="inkflow"]{background:repeating-radial-gradient(ellipse at 20% 120%,var(--world-a) 0 12px,var(--world-b) 18px 34px,var(--world-c) 36px 54px)!important}
.world-preview[data-preview-style="pixel"]{background:repeating-conic-gradient(var(--world-a) 0 25%,var(--world-b) 25% 50%,var(--world-c) 50% 75%,var(--world-bg0) 75% 100%)!important;background-size:31px 31px!important}
.world-preview[data-preview-style="confetti"]{background:radial-gradient(var(--world-a) 2px,transparent 3px),radial-gradient(var(--world-c) 3px,transparent 4px),var(--world-bg0)!important;background-size:21px 33px,37px 19px!important}
html[data-visual-style="hemisphere"] .home-hero:before{display:block!important;content:""!important;opacity:.38!important}
@media(max-width:650px){.visual-world-dialog .world-commit-actions{flex-wrap:wrap}.visual-world-dialog .world-commit-actions .btn{flex:1}}

/* v49: dedicated one-row Android mobile header with accessible account avatar */
.profile-avatar{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,var(--c1),var(--c2))!important;color:#10213b!important;font-size:17px!important;font-weight:800!important;border:2px solid #ffffff60!important}
@media(max-width:700px){
 :root{--dock-h:66px}
 .topbar{position:sticky!important;top:0!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:6px!important;padding:8px max(10px,env(safe-area-inset-left))!important;min-height:62px!important;max-height:68px!important;background:#0a1120f5!important}
 .topbar .top-left{display:flex!important;align-items:center!important;flex:0 1 auto!important;min-width:0!important;gap:5px!important}
 .topbar .top-left .brand{padding:0!important;min-width:0!important;gap:5px!important}
 .topbar .brand-symbol,.topbar .brand-symbol img{width:34px!important;height:34px!important;min-width:34px!important}
 .topbar .brand strong{font-size:15px!important;white-space:nowrap!important}
 .topbar .brand small{display:none!important}
 .topbar .header-home-button{display:none!important}
 .topbar .back-btn{display:none!important}
 .topbar .header-menu-trigger{font-size:0!important;min-width:37px!important;max-width:37px!important;width:37px!important;height:38px!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important}
 .topbar .header-menu-trigger::first-letter{font-size:20px!important}
 .topbar .top-actions{display:flex!important;flex:0 0 auto!important;min-width:0!important;gap:7px!important;margin-left:auto!important}
 .topbar .top-actions .top-global-search,.topbar .top-actions .top-primary-nav,.topbar .top-actions .sound-button{display:none!important}
 .topbar .top-actions .search-mobile-launch{display:grid!important;place-items:center!important;width:39px!important;min-width:39px!important;height:39px!important;padding:0!important;font-size:21px!important}
 .topbar .top-actions .search-mobile-launch .global-search-label{display:none!important}
 .topbar .top-actions #settingsButton{display:grid!important;width:40px!important;min-width:40px!important;height:40px!important;visibility:visible!important}
 .main{padding:10px 12px 18px!important}
 .main .hero{margin-top:5px!important}
 .dock{position:fixed!important;left:8px!important;right:8px!important;bottom:calc(env(safe-area-inset-bottom) + 5px)!important;z-index:90!important;min-height:58px!important;max-height:66px!important;padding:5px!important;border-radius:20px!important;overflow:visible!important}
 .dock button{min-width:46px!important;padding:5px!important}
 .dock .capture{height:45px!important;width:45px!important;min-width:45px!important}
 .memora-player.compact-player{bottom:calc(env(safe-area-inset-bottom) + 76px)!important;left:10px!important;transform:none!important;width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;min-height:65px!important;padding:7px 9px!important;gap:6px!important}
 .memora-player .player-mini-art{height:39px!important;width:39px!important;min-width:39px!important}
 .memora-player .player-track{min-width:0!important;overflow:hidden!important}
 .memora-player .player-actions{gap:4px!important}
 .memora-player .player-action{height:38px!important;width:38px!important;min-width:38px!important}
 .memora-player #playerPrevious,.memora-player #playerNext{display:none!important}
 body.has-memora-player .main,body.has-memora-player .app{padding-bottom:calc(175px + env(safe-area-inset-bottom))!important}
 .settings-card{scroll-margin-top:84px}
}
@media(max-width:360px){.topbar .brand strong{font-size:13px!important}.topbar .top-left{gap:3px!important}.topbar .top-actions{gap:4px!important}}

@media(max-width:700px){.topbar .header-menu-trigger .menu-symbol{display:block!important;font-size:21px!important;line-height:1!important}.topbar .header-menu-trigger .menu-caption{display:none!important}}


/* Mobile dialogs stay above the persistent music player. */
html,body{max-width:100%;overflow-x:clip}
.modal-backdrop{z-index:10000!important;overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(20px,env(safe-area-inset-bottom))}
.modal-backdrop .modal{max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain}
body:has(.modal-backdrop) .memora-player,body:has(.modal-backdrop) .dock{pointer-events:none;filter:brightness(.65)}
.memory-map-link{display:inline-flex;margin-top:10px;max-width:100%;white-space:normal;text-align:center}
@media(max-width:760px){.modal-backdrop{align-items:center;padding:12px}.modal-backdrop .modal{width:min(100%,520px);max-height:calc(100dvh - 24px)}.ask-main,.chat-panel,.ask-box,.bubble{min-width:0;max-width:100%}.bubble-text{overflow-wrap:anywhere}}


/* Hide floating player during Android location permission, and keep the composer visible. */
body.location-permission-active .memora-player{visibility:hidden!important;pointer-events:none!important}
body.location-permission-active .dock{pointer-events:none!important}
@media(max-width:760px){
  .modal-backdrop{z-index:2147483000!important;isolation:isolate}
  .modal-backdrop .modal{position:relative;z-index:1;max-height:calc(100dvh - 32px);overflow-y:auto}
  .memora-player.compact-player{max-width:calc(100vw - 24px)}
  body.has-memora-player .app{padding-bottom:calc(var(--dock-h) + var(--player-h) + 110px)}
  .memory-card{scroll-margin-bottom:calc(var(--dock-h) + var(--player-h) + 24px)}
}

/* Location confirmation must remain above the persistent player and bottom dock. */
.toast.location-toast{position:fixed!important;z-index:2147483646!important;left:50%!important;right:auto!important;top:max(84px,calc(env(safe-area-inset-top) + 72px))!important;bottom:auto!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100vw - 32px)!important;white-space:normal!important;text-align:center!important;padding:13px 18px!important;border:1px solid #94d8ef!important;background:#102840!important;color:#fff!important;box-shadow:0 12px 36px #0008!important;pointer-events:none!important}
@media(max-width:760px){.toast.location-toast{top:max(80px,calc(env(safe-area-inset-top) + 74px))!important;max-width:calc(100vw - 24px)!important;font-size:13px!important;line-height:1.4!important}}

/* Fix location notification overlapping the mobile music player */
.toast:has(+ .nonexistent),.toast.location-toast{z-index:2147483646!important}
body .toast{position:fixed!important;z-index:2147483645!important;top:max(85px,calc(env(safe-area-inset-top) + 72px))!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 28px)!important;white-space:normal!important;text-align:center!important;pointer-events:none!important;background:#15324b!important;color:white!important;border:1px solid #84c9ea!important;box-shadow:0 12px 36px #0009!important}

/* Mobile Ask: keep every grid item, user bubble and composer inside the viewport */
@media(max-width:760px){
 html,body,#app,.app,.main{max-width:100%;overflow-x:clip!important}
 .main:has(.ask-layout){min-width:0!important;width:100%!important;padding-inline:12px!important;box-sizing:border-box!important}
 .ask-layout,.ask-main,.ask-shell,.chat-panel,.chat,.ask-box,.ask-intelligence{
  width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important
 }
 .ask-layout,.ask-main,.chat{grid-template-columns:minmax(0,1fr)!important}
 .chat-panel{overflow-x:hidden!important;padding-inline:10px!important}
 .chat .bubble,.bubble.user,.bubble.assistant{
  box-sizing:border-box!important;min-width:0!important;
  width:fit-content!important;max-width:min(100%,calc(100vw - 56px))!important;
  overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important
 }
 .chat .bubble.user{justify-self:end!important;margin-left:auto!important;margin-right:0!important}
 .chat .bubble.assistant{justify-self:start!important;margin-right:auto!important;margin-left:0!important}
 .bubble-text,.bubble .source,.bubble p,.bubble a{max-width:100%!important;overflow-wrap:anywhere!important;white-space:pre-wrap!important}
 .ask-box{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;padding:9px!important}
 .ask-box #askInput{min-width:0!important;max-width:100%!important;width:100%!important;grid-column:1/-1!important}
 .ask-box #askVoice{grid-column:1!important;justify-self:start!important;min-width:56px!important}
 .ask-box #askButton{grid-column:2!important;justify-self:end!important;min-width:78px!important}
 .ask-box .ask-hint{grid-column:1/-1!important}
 .ask-intelligence,.ask-title-block{min-width:0!important;overflow-wrap:anywhere!important}
}

/* Mobile audio transport controls: do not hide Previous/Next. */
@media(max-width:700px){
 .memora-player.compact-player{grid-template-columns:34px minmax(0,1fr) auto!important;gap:4px!important;padding:6px!important}
 .memora-player .player-mini-art{width:34px!important;min-width:34px!important;height:34px!important}
 .memora-player .mini-actions{display:flex!important;gap:2px!important;flex-wrap:nowrap!important}
 .memora-player #playerPrevious,.memora-player #playerNext{display:inline-flex!important;align-items:center!important;justify-content:center!important}
 .memora-player .mini-actions .player-action{width:32px!important;min-width:32px!important;height:36px!important;padding:2px!important}
 .memora-player .mini-actions #playerMute{display:none!important}
 .memora-player .mini-actions .player-action svg{width:19px;height:19px}
}
@media(max-width:370px){.memora-player .mini-actions .player-action{width:29px!important;min-width:29px!important}}

/* iPhone Safari audio sheet: contain content within the visual viewport. */
@supports (-webkit-touch-callout:none){
 .audio-hub-backdrop{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important;padding:0!important;align-items:flex-end!important}
 .audio-hub-modal{box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:calc(100dvh - env(safe-area-inset-top))!important;max-height:calc(100dvh - env(safe-area-inset-top))!important;margin:0!important;border-radius:18px 18px 0 0!important;overflow:hidden!important;padding:12px 12px calc(12px + env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column!important}
 .audio-hub-modal>.modal-head{flex:0 0 auto!important;min-width:0!important}
 .audio-hub-modal>.audio-hub{flex:1 1 auto!important;min-height:0!important;min-width:0!important;width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;scrollbar-gutter:auto!important;padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
 .audio-hub .audio-mode-panel,.audio-hub .audio-mode-panel>*{max-width:100%;min-width:0;box-sizing:border-box}
 .audio-hub input,.audio-hub select,.audio-hub textarea{max-width:100%;min-width:0;box-sizing:border-box}
 .audio-hub .audio-mode-tabs.four{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 .audio-hub .btn{white-space:normal;overflow-wrap:anywhere}
 body:has(.audio-hub-backdrop) .memora-player{visibility:hidden!important;pointer-events:none!important}
}

/* iOS Safari and installed Home Screen web app: prevent viewport clipping and overlapping sheets. */
@media(max-width:760px){
 html,body,#app{width:100%;max-width:100%;min-width:0}
 .audio-hub-modal,.now-playing-modal{overscroll-behavior:contain;max-width:100vw;box-sizing:border-box}
 .audio-hub-modal .audio-hub,.audio-mode-panel{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .audio-hub .audio-mode-tabs.four{flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:none}
 .audio-hub .audio-mode-tab{flex:0 0 auto}
 .audio-hub .audio-mode-panel .btn,.audio-hub .audio-mode-panel button{max-width:100%;overflow-wrap:anywhere}
 body:has(.audio-hub-backdrop) .dock,body:has(.audio-hub-backdrop) .memora-player{visibility:hidden!important;pointer-events:none!important}
}
@supports (-webkit-touch-callout:none){
 @media(max-width:760px){
  .audio-hub-modal{height:calc(100dvh - env(safe-area-inset-top))!important;max-height:calc(100dvh - env(safe-area-inset-top))!important}
  .audio-hub-modal>.audio-hub{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;min-height:0!important}
  .now-playing-backdrop{padding:0!important;align-items:flex-end!important}
  .now-playing-modal{max-height:calc(100dvh - env(safe-area-inset-top))!important;padding-bottom:calc(20px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
 }
}

/* iPhone Safari and Home Screen app: keep dialogs below Dynamic Island. */
@supports (-webkit-touch-callout:none){
 @media(max-width:760px){
  html{overflow-x:hidden}
  body{padding-top:env(safe-area-inset-top,0px)}
  .audio-hub-backdrop{inset:0!important;height:100dvh!important;padding:env(safe-area-inset-top,0px) 0 0!important;box-sizing:border-box!important;align-items:stretch!important}
  .audio-hub-modal{height:100%!important;max-height:100%!important;min-height:0!important;width:100%!important;max-width:100%!important;border-radius:18px 18px 0 0!important;padding:12px 12px calc(16px + env(safe-area-inset-bottom,0px))!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important}
  .audio-hub-modal>.modal-head{position:relative!important;top:auto!important;z-index:50!important;flex:0 0 auto!important;min-height:48px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;overflow:visible!important}
  .audio-hub-modal>.modal-head .close,.audio-hub-modal>.modal-head button{position:relative!important;top:auto!important;right:auto!important;flex-shrink:0!important;min-width:44px!important;min-height:44px!important;z-index:51!important;pointer-events:auto!important}
  .audio-hub-modal>.audio-hub{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important}
 }
}
/* Keep the accessible skip link hidden until keyboard focus, including on iOS. */
.skip-link:not(:focus-visible){position:fixed!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;transform:none!important}
.skip-link:focus-visible{position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;left:12px!important;z-index:2147483647!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;transform:none!important}

/* Light appearance contrast correction across all theme families and screens. */
html[data-appearance="light"]{
 color-scheme:light;
 --text:#17283c!important;--muted:#40546b!important;
 --glass:rgba(255,255,255,.96)!important;--glass2:rgba(247,250,254,.98)!important;
 --line:rgba(40,64,91,.28)!important;
}
html[data-appearance="light"] body{color:var(--text)!important}
html[data-appearance="light"] :is(.glass,.modal,.audio-hub-modal,.audio-mode-panel,.audio-for-you,.audio-library-toolbar,.home-panel,.memory-card,.vault-card,.source-card,.chat-panel,.ask-box,.setting-row,.collection-card,.theme-picker,.mood-checkin,.mood-response){
 color:#17283c!important;
}
html[data-appearance="light"] :is(.glass,.modal,.audio-hub-modal,.audio-mode-panel,.audio-for-you,.chat-panel,.ask-box,.mood-checkin){
 background:rgba(248,250,254,.97)!important;border-color:#aebed0!important;
}
html[data-appearance="light"] :is(.glass,.modal,.audio-hub-modal,.audio-mode-panel,.audio-for-you,.chat-panel,.ask-box,.mood-checkin) :is(h1,h2,h3,h4,h5,h6,p,b,strong,small,label,span,.eyebrow,.muted,.small){
 color:#20354d!important;opacity:1!important;text-shadow:none!important;
}
html[data-appearance="light"] :is(.glass,.modal,.audio-hub-modal,.audio-mode-panel,.audio-for-you,.chat-panel,.ask-box,.mood-checkin) :is(.muted,small,.eyebrow){color:#40546b!important}
html[data-appearance="light"] :is(.btn:not(.primary),.tool,.chip:not(.active),.audio-mode-tab,.home-tab,.source-tab,.mood-pill,.icon-btn,.close){
 background:#e9eff7!important;color:#172b43!important;border-color:#a3b4c8!important;text-shadow:none!important;
}
html[data-appearance="light"] :is(.btn.primary,.chip.active,.audio-mode-tab.active,.home-tab.active,.source-tab.active,.mood-pill.selected){
 background:#194e82!important;color:#fff!important;border-color:#194e82!important;box-shadow:none!important;
}
html[data-appearance="light"] :is(.btn.primary,.chip.active,.audio-mode-tab.active,.home-tab.active,.source-tab.active,.mood-pill.selected) :is(span,b,strong,small){color:#fff!important}
html[data-appearance="light"] :is(input,textarea,select,.input){
 background:#fff!important;color:#152a42!important;border-color:#8fa4bc!important;
}
html[data-appearance="light"] :is(input,textarea,.input)::placeholder{color:#53677f!important;opacity:1!important}
html[data-appearance="light"] .composer{background:#fff!important;border-color:#9aacc1!important}
html[data-appearance="light"] .composer textarea{color:#17283c!important}
html[data-appearance="light"] .composer textarea::placeholder{color:#50647d!important}
html[data-appearance="light"] .hero.home-hero .gradient-text{background:none!important;-webkit-text-fill-color:#162d46!important;color:#162d46!important}
html[data-appearance="light"] .topbar{background:rgba(18,36,58,.94)!important}
html[data-appearance="light"] .topbar :is(.brand,.brand h1,.brand small){color:#fff!important}
html[data-appearance="light"] .theme-card{color:#fff!important}
html[data-appearance="light"] .theme-card small{color:#fff!important;text-shadow:0 1px 5px #000!important}
html[data-appearance="light"] .memora-player :is(.player-action,.player-track,.player-track-button){color:#17283c!important}
html[data-appearance="light"] .audio-hub-modal>.modal-head{background:#f8fafd!important}
html[data-appearance="light"] .audio-hub-modal>.modal-head .close{background:#dfe8f4!important;color:#152c46!important}
@media(prefers-color-scheme:light){
 html:not([data-appearance]){--text:#17283c;--muted:#40546b}
}

/* Light mode: targeted accessibility corrections for search, footer, navigation, and mood. */
html[data-appearance="light"] .scope-chip:not(.active){color:#20354d!important;background:#e5ecf5!important;border-color:#a6b8cc!important}
html[data-appearance="light"] .scope-chip.active,html[data-appearance="light"] .scope-chip[aria-pressed="true"]{color:#fff!important;background:#185487!important;border-color:#185487!important}
html[data-appearance="light"] .global-search-form :is(label,.search-intro),html[data-appearance="light"] :is(#globalSearchNote,#globalSearchStatus,.global-search-results,.global-search-results p,.global-search-results small){color:#283e56!important;opacity:1!important}
html[data-appearance="light"] .global-search-results .search-result{background:#edf3fa!important;color:#172b43!important;border:1px solid #a6b8cc!important}
html[data-appearance="light"] .app-footer,html[data-appearance="light"] .footer-copy,html[data-appearance="light"] .footer-copy strong,html[data-appearance="light"] .footer-copy span{color:#273c53!important;opacity:1!important}
html[data-appearance="light"] .footer-help{background:#e4edf7!important;color:#17334f!important;border-color:#99adc3!important}
html[data-appearance="light"] .home-hub .mood-checkin :is(h2,h3,h4,p,small,.mood-copy,.mood-copy strong,.mood-copy small,.mood-response){color:#253a53!important;opacity:1!important}
html[data-appearance="light"] .home-hub .mood-pill:not(.selected){color:#233950!important;background:#e5edf6!important;border-color:#9fb2c8!important}
html[data-appearance="light"] .home-hub .mood-pill.selected{color:#fff!important;background:#185487!important}
html[data-appearance="light"] .topbar .icon-btn{background:#e5edf6!important;color:#17324c!important;border-color:#a5b7c9!important}
html[data-appearance="light"] .topbar .icon-btn :is(svg,span){color:#17324c!important}
html[data-appearance="light"] .topbar .brand :is(h1,small,span){color:#fff!important}
html[data-appearance="light"] .memora-player :is(.player-track span,.player-track b,.player-track small){color:#253b52!important}
html[data-appearance="light"] .dock{background:rgba(25,45,65,.94)!important}
html[data-appearance="light"] .dock :is(button,small,span){color:#e8f1fb!important}
html[data-appearance="light"] .dock button.active{background:#375d79!important}
html[data-appearance="light"] .dock .capture{background:#168c6d!important}

/* Persistent refresh control for Safari Home Screen PWAs and browsers. */
.memora-refresh-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;padding:0!important;font-size:27px!important;font-weight:600!important;line-height:1!important;cursor:pointer!important;touch-action:manipulation!important}
@media(max-width:760px){.top-actions{gap:6px!important}.memora-refresh-button{flex-basis:42px!important;width:42px!important;height:44px!important}}
html[data-appearance="light"] .topbar .memora-refresh-button{background:#e5edf6!important;color:#17324c!important;border:1px solid #a5b7c9!important}

/* Restore accessible back navigation on narrow screens. */
@media(max-width:780px){
 .topbar .back-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;width:44px!important;height:44px!important;padding:0!important;font-size:21px!important;flex:0 0 44px!important}
 .topbar .back-btn span:last-child{display:none!important}
 .topbar .top-left{min-width:0!important;gap:5px!important}
 .topbar .brand-button{min-width:0!important}
 .topbar .brand-button small{display:none!important}
 .topbar .top-actions{gap:5px!important}
}

/* Compact, theme-neutral mobile navigation: no neon blocks or oversized glyphs. */
@media(max-width:780px){
 .topbar .back-btn,.topbar .memora-refresh-button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:39px!important;min-width:39px!important;max-width:39px!important;
  height:39px!important;min-height:39px!important;flex:0 0 39px!important;
  padding:0!important;border-radius:12px!important;
  background:rgba(255,255,255,.065)!important;
  border:1px solid rgba(210,226,246,.16)!important;
  color:#edf5ff!important;box-shadow:none!important;
  font-size:25px!important;font-weight:400!important;line-height:1!important;
 }
 .topbar .back-btn span:first-child{display:block!important;font-size:30px!important;line-height:1!important;transform:translateY(-2px)}
 .topbar .back-btn span:last-child{display:none!important}
 .topbar .back-btn:disabled{display:none!important}
 .topbar .memora-refresh-button svg{width:19px!important;height:19px!important;display:block!important}
 .topbar .top-left{gap:4px!important}
 .topbar .top-actions{gap:4px!important}
}
html[data-appearance="light"] .topbar .back-btn,
html[data-appearance="light"] .topbar .memora-refresh-button{
 background:rgba(255,255,255,.07)!important;color:#edf5ff!important;
 border-color:rgba(210,226,246,.16)!important;
}

/* Required versioned terms acknowledgement, including small mobile screens. */
.memora-consent-page{position:fixed;inset:0;z-index:9999;overflow:auto;background:#0a1324;display:flex;align-items:center;justify-content:center;padding:max(18px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom));color:#eef5ff}
.memora-consent-card{width:min(650px,100%);max-height:95dvh;display:flex;flex-direction:column;gap:12px;padding:clamp(16px,4vw,26px);border-radius:20px;background:#141f32;border:1px solid #41516b;box-shadow:0 22px 90px #0009}
.memora-consent-card h1{font-size:clamp(23px,5vw,31px);margin:0;color:#fff}
.memora-consent-card>p{margin:0;line-height:1.45;color:#d4e0ed}
.memora-consent-tabs,.memora-consent-actions{display:flex;gap:8px;flex-wrap:wrap}
.memora-consent-card button{border:1px solid #52647f;border-radius:11px;padding:10px 13px;background:#26354e;color:#f4f8ff;font:inherit;cursor:pointer}
.memora-consent-tabs button{font-size:12px}
.memora-consent-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:100px;max-height:42dvh;border:1px solid #3b4b62;border-radius:12px;padding:14px;background:#0e1929;line-height:1.5}
.memora-consent-scroll h2{font-size:19px}.memora-consent-scroll h3{font-size:15px;margin-top:15px}.memora-consent-scroll p{font-size:13px;color:#e1e8f3;margin:9px 0}
.memora-consent-check{display:flex;align-items:flex-start;gap:10px;line-height:1.4;font-size:14px;color:#f5f8ff}
.memora-consent-check input{width:20px;height:20px;flex:none;accent-color:#4bcb9b}
.memora-consent-actions{justify-content:space-between}
.memora-consent-actions #memoraAccept{background:#20795e;border-color:#45b794;font-weight:700}
.memora-consent-actions #memoraAccept:disabled{opacity:.4;cursor:not-allowed}
.memora-consent-card small{color:#afc1d3}
#memoraPolicyError{color:#ffb9b9!important}

/* Minimal authenticated Ask-only entry point for home-screen shortcuts. */
body.memora-quick-ask .top-primary-nav,
body.memora-quick-ask .dock,
body.memora-quick-ask .app-footer,
body.memora-quick-ask .top-global-search,
body.memora-quick-ask .header-menu-trigger,
body.memora-quick-ask .header-home-button{display:none!important}
body.memora-quick-ask .main{padding-bottom:max(90px,env(safe-area-inset-bottom))!important}
body.memora-quick-ask .topbar{padding:8px 12px!important}
body.memora-quick-ask .page-head{padding-top:6px!important;padding-bottom:6px!important}

/* Dedicated Quick Ask conversation UI */
body.memora-quick-ask{background:radial-gradient(circle at top left,#233458,#101526 65%)!important;color:#f4f6ff}
body.memora-quick-ask .topbar,body.memora-quick-ask .page-head{display:none!important}
body.memora-quick-ask .main{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
body.memora-quick-ask .quick-chat-header{display:flex;align-items:center;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;background:#101b32;position:sticky;top:0;z-index:20}
body.memora-quick-ask .quick-chat-brand{display:flex;align-items:center;gap:10px}
body.memora-quick-ask .quick-chat-brand strong,body.memora-quick-ask .quick-chat-brand small{display:block;color:#fff}
body.memora-quick-ask .quick-chat-brand img{width:42px;height:42px}
body.memora-quick-ask .quick-chat-new{border:1px solid #7182a2;border-radius:24px;padding:10px;color:#fff;background:#273a5c}
body.memora-quick-ask .ask-layout{display:block!important;max-width:760px!important;margin:auto!important;padding:12px 12px 130px!important}
body.memora-quick-ask .chat-sidebar,body.memora-quick-ask .chat-drawer-scrim,body.memora-quick-ask .ask-intelligence,body.memora-quick-ask .ask-suggestions,body.memora-quick-ask .ask-hint{display:none!important}
body.memora-quick-ask .chat-panel{background:transparent!important;border:0!important;box-shadow:none!important}
body.memora-quick-ask .chat{min-height:calc(100dvh - 240px)!important;max-height:none!important;overflow:visible!important}
body.memora-quick-ask .ask-box{position:fixed!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;left:50%!important;transform:translateX(-50%);width:min(95%,740px)!important;z-index:25;background:#1b2943!important;border-radius:22px!important;padding:10px!important}
body.memora-quick-ask .ask-box textarea{color:#fff!important;background:#293b5b!important}

/* Ormemora: selected neural M identity and accessible retrieval citations. */
.brand-symbol{border-radius:14px!important;box-shadow:0 6px 22px rgba(10,42,102,.27)!important;isolation:isolate}
.brand-symbol img{object-fit:contain!important;border-radius:14px!important}
.chat-evidence-sources{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;padding-top:9px;border-top:1px solid color-mix(in srgb,var(--text) 14%,transparent);font-size:12px;line-height:1.5;color:var(--text)}
.chat-evidence-sources strong{font-weight:700;font-size:12px;color:var(--text)}
.chat-evidence-tag{display:inline-flex;max-width:100%;overflow-wrap:anywhere;padding:4px 8px;border:1px solid color-mix(in srgb,var(--c1) 42%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--c1) 9%,var(--glass2));color:var(--text)}
html[data-appearance="light"] .chat-evidence-tag{background:#e8f4fc!important;color:#173956!important;border-color:#91b7d5!important}
@media(max-width:430px){.chat-evidence-sources{font-size:11px;gap:5px}.chat-evidence-tag{font-size:11px;max-width:100%}}

/* Accessible Ormemora FAQ disclosure panels. */
.ormemora-faq details{border:1px solid var(--line);border-radius:13px;margin:9px 0;overflow:hidden;background:var(--glass2)}
.ormemora-faq summary{cursor:pointer;list-style-position:inside;padding:13px 15px;color:var(--text);font-weight:650;line-height:1.45}
.ormemora-faq summary:focus-visible{outline:3px solid var(--c1);outline-offset:-3px}
.ormemora-faq details[open] summary{border-bottom:1px solid var(--line)}
.ormemora-faq details p{color:var(--text);line-height:1.6;font-size:14px;padding:13px 15px;margin:0}
html[data-appearance="light"] .ormemora-faq details{background:#f8fbff!important}


/* Ormemora v45 — ONE player, ONE dock, ONE viewport-safe header.
   Android WebView host applies system bar insets. Do not double-apply CSS env().
   The audio browser shares the same floating player as the Home screen. */
:root{
  --orm-ui-safe-top:env(safe-area-inset-top,0px);
  --orm-ui-safe-bottom:env(safe-area-inset-bottom,0px);
  --orm-dock-height:74px;
  --orm-player-height:76px;
  --orm-dock-bottom:calc(var(--orm-ui-safe-bottom) + 8px);
  --orm-player-bottom:calc(var(--orm-dock-bottom) + var(--orm-dock-height) + 8px);
  --orm-chrome-height:calc(var(--orm-player-bottom) + var(--orm-player-height) + 8px);
}
html.ormemora-native{
  --orm-ui-safe-top:0px;
  --orm-ui-safe-bottom:0px;
}
html,body{overscroll-behavior-y:none!important}
body:has(.app){padding-top:0!important}
body.has-memora-player .dock{
  bottom:var(--orm-dock-bottom)!important;
  height:var(--orm-dock-height)!important;
  min-height:var(--orm-dock-height)!important;
  max-height:var(--orm-dock-height)!important;
  box-sizing:border-box!important;
  z-index:90!important;
}
body.has-memora-player .memora-player.compact-player{
  bottom:var(--orm-player-bottom)!important;
  height:var(--orm-player-height)!important;
  min-height:var(--orm-player-height)!important;
  max-height:var(--orm-player-height)!important;
  box-sizing:border-box!important;
  z-index:110!important;
}
body.has-memora-player .app::after{
  content:"";position:fixed;left:0;right:0;bottom:0;
  height:var(--orm-chrome-height);pointer-events:none;
  background:linear-gradient(180deg,rgba(8,19,35,.96) 0%,#081323 32%,#081323 100%);
  z-index:69;
}
body.has-memora-player .main{
  padding-bottom:calc(var(--orm-chrome-height) + 28px)!important;
}
body.has-memora-player .app{
  padding-bottom:0!important;
}
@media(max-width:700px){
  :root{--orm-dock-height:70px;--orm-player-height:72px}
  body:not(.memora-quick-ask) .app{
    padding-top:calc(64px + var(--orm-ui-safe-top))!important;
    min-height:100dvh!important;
  }
  body:not(.memora-quick-ask) .topbar{
    position:fixed!important;
    top:var(--orm-ui-safe-top)!important;
    bottom:auto!important;left:0!important;right:0!important;
    width:100%!important;
    box-sizing:border-box!important;
    height:64px!important;min-height:64px!important;max-height:64px!important;
    transform:none!important;
    background:#0a1528!important;
    border-bottom:1px solid #253b56!important;
    z-index:500!important;
    overscroll-behavior:contain!important;
  }
  body.memora-quick-ask .app{padding-top:0!important}
  body.memora-quick-ask .memora-player.compact-player{
    bottom:calc(var(--orm-ui-safe-bottom) + 8px)!important;
  }
  body.has-memora-player .dock{bottom:var(--orm-dock-bottom)!important}
  body.has-memora-player .memora-player.compact-player{
    bottom:var(--orm-player-bottom)!important;
    margin:0!important;
  }
}
@media(max-width:360px){
 body:not(.memora-quick-ask) .topbar .brand strong{font-size:12px!important}
 body:not(.memora-quick-ask) .topbar .top-left{gap:2px!important}
 body:not(.memora-quick-ask) .topbar .top-actions{gap:3px!important}
 body:not(.memora-quick-ask) .topbar .search-mobile-launch,
 body:not(.memora-quick-ask) .topbar .memora-refresh-button,
 body:not(.memora-quick-ask) .topbar #settingsButton{min-width:35px!important;width:35px!important;flex-basis:35px!important}
}
/* Audio browser is a full viewport surface with a bounded scrolling catalog.
   Only the existing Home player and dock are drawn above it. */
body.ormemora-audio-open{overflow:hidden!important}
html:has(body.ormemora-audio-open){overflow:hidden!important}
body.ormemora-audio-open .app::after{display:none!important}
body.ormemora-audio-open .modal-backdrop.audio-hub-backdrop{
  position:fixed!important;inset:0!important;
  width:100%!important;height:100dvh!important;max-height:100dvh!important;
  display:flex!important;align-items:stretch!important;justify-content:center!important;
  overflow:hidden!important;box-sizing:border-box!important;
  padding:calc(var(--orm-ui-safe-top) + 8px) 8px calc(var(--orm-chrome-height) + 8px)!important;
  background:#081323!important;
  border:0!important;
  z-index:2147483000!important;
  overscroll-behavior:contain!important;
}
body.ormemora-audio-open .audio-hub-backdrop .audio-hub-modal{
  width:min(980px,100%)!important;
  min-width:0!important;max-width:100%!important;
  height:100%!important;max-height:100%!important;min-height:0!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  padding:9px!important;
  overflow:hidden!important;
  border-radius:18px!important;
}
body.ormemora-audio-open .audio-hub-backdrop .audio-hub-modal>.modal-head{
  position:relative!important;top:auto!important;
  flex:none!important;min-height:50px!important;
  display:flex!important;align-items:center!important;
  justify-content:space-between!important;
  padding:6px 10px!important;margin:0 0 7px!important;
  background:#102742!important;border-radius:14px!important;
}
body.ormemora-audio-open .audio-hub-modal>.modal-head h3{
  font:750 clamp(18px,4vw,24px)/1.2 system-ui,-apple-system,"Segoe UI",sans-serif!important;
  color:#fff!important;margin:0!important;
}
body.ormemora-audio-open .audio-hub-modal>.modal-head .close{
  position:static!important;flex:0 0 44px!important;
  min-width:44px!important;min-height:44px!important;width:44px!important;
  display:grid!important;place-items:center!important;
  color:#fff!important;background:#244564!important;
}
body.ormemora-audio-open .audio-hub-backdrop .audio-hub-modal>.audio-hub{
  flex:1 1 auto!important;min-height:0!important;min-width:0!important;
  width:100%!important;max-height:none!important;
  box-sizing:border-box!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  padding:0 3px 12px!important;
  -webkit-overflow-scrolling:touch!important;
}
body.ormemora-audio-open .audio-hub-modal .audio-mode-tabs.four{
  top:0!important;background:#112b44!important;border:1px solid #3f6485!important;
}
html[data-appearance="light"] body.ormemora-audio-open .modal-backdrop.audio-hub-backdrop{
  background:#e9f1fa!important;
}
html[data-appearance="light"] body.ormemora-audio-open .audio-hub-modal .audio-mode-tabs.four{
  background:#e6f0f8!important;border-color:#a9c0d6!important;
}
html[data-appearance="light"] body.ormemora-audio-open .audio-hub-modal>.modal-head{
  background:#dfeaf5!important;
}
html[data-appearance="light"] body.ormemora-audio-open .audio-hub-modal>.modal-head h3,
html[data-appearance="light"] body.ormemora-audio-open .audio-hub-modal>.modal-head .close{
  color:#133049!important;
}
body.ormemora-audio-open .memora-player.compact-player,
body.ormemora-audio-open #memoraMediaPlayer{
  visibility:visible!important;opacity:1!important;
  pointer-events:auto!important;filter:none!important;
  bottom:var(--orm-player-bottom)!important;
  z-index:2147483011!important;
}
body.ormemora-audio-open .dock{
  visibility:visible!important;opacity:1!important;
  pointer-events:auto!important;filter:none!important;
  bottom:var(--orm-dock-bottom)!important;
  z-index:2147483012!important;
}
@media(max-width:760px){
 body.ormemora-audio-open .audio-hub-backdrop .audio-hub-modal{
   width:100%!important;max-width:100%!important;
 }
 body.ormemora-audio-open .audio-hub-modal .audio-mode-tabs.four{
   display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
   overflow:hidden!important;gap:2px!important;
 }
 body.ormemora-audio-open .audio-hub-modal .audio-mode-tabs.four .audio-mode-tab{
   min-width:0!important;width:auto!important;
   padding:7px 2px!important;font-size:clamp(9px,2.4vw,11px)!important;
   flex:none!important;
 }
}

/* Prevent the legacy .app isolation layer trapping the dock below the
   audio browser; disable the old modal entrance slide, which could
   overlap the persistent player before the animation settled. */
body.ormemora-audio-open .app{isolation:auto!important}
body.ormemora-audio-open .audio-hub-backdrop .audio-hub-modal{
  animation:none!important;
  transform:none!important;
  transition:none!important;
}

/* Keep Play/Pause visible on small screens. Older rules hid nth-child(2),
   which is the actual Play button. Preserve previous, play, next, expand. */
@media(max-width:700px){
 body.has-memora-player .memora-player.compact-player .mini-actions #playerPrevious,
 body.has-memora-player .memora-player.compact-player .mini-actions #playerNext,
 body.has-memora-player .memora-player.compact-player .mini-actions #playerPlay{
  display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
  min-width:40px!important;width:40px!important;
  height:44px!important;flex:0 0 auto!important;
 }
 body.has-memora-player .memora-player.compact-player .mini-actions #playerPlay{
  min-width:46px!important;width:46px!important;
 }
 body.has-memora-player .memora-player.compact-player .mini-actions #playerExpand{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:38px!important;min-width:38px!important;height:44px!important;
 }
}
@media(max-width:360px){
 body.has-memora-player .memora-player.compact-player .mini-actions #playerExpand{
  display:none!important;
 }
}
