/* Centered, larger-type MindDuck layout. Real controls, original category artwork. */
.category-rail{overflow-x:hidden!important}.category-rail button{min-width:0;width:100%}
:root{--panel:min(1120px,calc(100vw - 440px))}
.app-header{background:#fffffff5;margin:14px 24px 0;padding:18px 30px;border:3px solid white;border-radius:30px;box-shadow:0 7px 24px #174b6f1f;min-height:112px;gap:24px}
.wordmark{font-size:clamp(36px,3.3vw,58px);letter-spacing:-2.7px;transform:rotate(-1deg)}
.wordmark em{font-size:15px;margin-top:12px;color:#163e57;text-shadow:none}
.app-header .nav-pill{font-size:17px;padding:13px 20px;background:#edf8ff;border:1px solid #cfe6f4;box-shadow:none}
.app-header .profile-bubble{font-size:17px;background:#edf8ff;padding:6px 18px 6px 7px;border:1px solid #cfe6f4;box-shadow:none;min-height:50px}
.profile-bubble #profileAvatar,.profile-bubble img{width:38px;height:38px;font-size:19px}
.hero-content{width:min(900px,calc(100vw - 520px));margin:32px auto 160px;text-align:center}
.speech{padding:25px 36px 30px;max-width:100%;transform:rotate(-1deg)}
.speech h1{font-size:clamp(35px,3.6vw,62px);line-height:1.1;letter-spacing:-1.8px}
.speech .eyebrow{font-size:12px;letter-spacing:2px}
.discover-form{margin-top:30px;padding:8px 9px 8px 20px;min-height:76px}
.discover-form input{font-size:clamp(18px,1.4vw,24px);min-height:46px}
.discover-form button{width:59px;height:53px;font-size:32px}
.search-meta{justify-content:center;gap:12px;flex-wrap:wrap;margin:14px 0;font-size:14px}
.search-meta>span{padding:8px 13px}.search-meta button{font-size:14px;padding:9px 15px}
.hero-actions{justify-content:center;margin:20px 0 12px;gap:12px}
.hero-actions button{font-size:16px;padding:12px 20px}.hero-caption{font-size:14px}
.category-rail{left:24px;top:151px;bottom:151px;width:218px;max-height:calc(100svh - 302px);overflow-y:auto;scrollbar-width:thin;gap:9px;align-content:start;padding:4px 4px 10px}
.category-rail button{position:relative;min-height:79px;padding:5px 10px 5px 5px;gap:10px;border-radius:22px;border:3px solid white;box-shadow:0 4px 0 #17436a32;background:linear-gradient(110deg,color-mix(in srgb,var(--cat) 60%,white),color-mix(in srgb,var(--cat) 18%,white));color:#123b59;text-shadow:none;font-size:19px;font-weight:1000;flex-shrink:0}
.category-rail button img{display:block;width:63px;height:63px;aspect-ratio:1/1;object-fit:contain;border-radius:15px;flex:0 0 auto;background:#ffffff5e;border:2px solid #ffffffd9}
.category-rail button span{text-align:left}.category-rail button b{font-size:24px;margin-left:auto;color:#163d62}.category-rail button:hover{transform:translateY(-1px);box-shadow:0 5px 0 #17436a42}
.ad-row{left:50%;right:auto;transform:translateX(-50%);width:min(1120px,calc(100vw - 540px));bottom:22px;gap:12px}
.ad-slot{padding:13px 18px;min-height:100px}.ad-slot strong{font-size:20px}.ad-slot span{font-size:13px}.ad-slot small{font-size:10px}
.discovery-panel{width:var(--panel);left:50%;right:auto;top:150px;bottom:22px;transform:translateX(-50%);border-radius:28px;box-shadow:0 20px 65px #0c3d6650}
.panel-header{justify-content:center;padding:20px 26px;position:relative;text-align:center;min-height:88px}
.panel-header>div{width:100%;padding:0 30px}.panel-header h2{font-size:25px;line-height:1.35;max-width:950px;margin:6px auto 0;font-weight:900}
.panel-header .eyebrow{font-size:12px;letter-spacing:1.5px}.panel-header .icon-button{position:absolute;right:16px;top:18px;width:38px;height:38px;font-size:17px}
.panel-content{padding:26px 34px}.turn{font-size:20px;line-height:1.8;margin-bottom:28px;color:#163b53}
.turn.user{padding:16px 20px}.turn .speaker{font-size:12px;letter-spacing:1.5px;margin-bottom:8px}
.folder-chip{font-size:14px;padding:9px 13px;margin-bottom:19px;gap:9px;flex-wrap:wrap}.folder-picker{font-size:14px;padding:7px 11px}
.source-list strong{font-size:18px}.source-list a{font-size:16px;padding:12px 15px;line-height:1.55}.source-list .source-note{font-size:12px;line-height:1.5}
.step-card,.trail-card{padding:18px 20px;border-radius:20px;margin:17px 0}.step-card strong,.trail-card strong{font-size:17px}.step-card p,.trail-card p{font-size:18px;line-height:1.7;margin:8px 0 0}.trail-card button{font-size:16px;line-height:1.6}
.record-actions{gap:9px;margin:17px 0}.record-actions button,.filter-row button,.library-controls button{font-size:15px;padding:10px 14px;border-radius:22px}
.followup-form{padding:16px 22px;gap:11px}.followup-form textarea{font-size:19px;min-height:54px;line-height:1.5;border-radius:24px;padding:12px 16px}.followup-form>button{width:49px;height:49px;font-size:28px}.attach-button{font-size:29px}
.library-search{font-size:18px;padding:14px 17px}.saved-card{padding:20px}.saved-card .open-record{font-size:20px;line-height:1.6}.saved-card small{font-size:13px}.saved-card .excerpt{font-size:17px;line-height:1.65}.lab-intro h3{font-size:25px}.lab-intro p{font-size:18px;line-height:1.65}.empty-state{font-size:18px;line-height:1.7}
.panel-open .hero-content{display:none}.panel-open .category-rail{display:grid;bottom:24px;max-height:calc(100svh - 175px)}
.panel-open .scene-wash{background:#174d792b}
@media(prefers-reduced-motion:no-preference){@keyframes panel-in{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}}
@media(min-width:1800px){.hero-content{margin-top:40px}.category-rail{width:245px;left:30px;gap:11px}.category-rail button{font-size:21px;min-height:88px}.category-rail button img{width:72px;height:72px}.ad-row{bottom:26px}.ad-slot{min-height:112px}}
@media(min-width:701px) and (max-width:1350px){
 :root{--panel:calc(100vw - 410px)}.app-header{margin:12px 16px 0;padding:15px 22px;min-height:100px}.wordmark{font-size:42px}.wordmark em{font-size:12px}.app-header .nav-pill{font-size:15px;padding:11px 15px}.app-header .profile-bubble{font-size:15px}
 .category-rail{left:14px;top:132px;bottom:125px;width:185px;max-height:calc(100svh - 257px);gap:8px}.category-rail button{min-height:70px;font-size:16px;border-radius:19px;padding-right:7px;gap:6px}.category-rail button img{width:50px;height:50px;border-radius:12px}.category-rail button b{font-size:20px}
 .hero-content{width:calc(100vw - 455px);margin:28px auto 150px}.speech{padding:23px 27px}.speech h1{font-size:clamp(32px,3.4vw,45px)}.speech .eyebrow{font-size:10px}.discover-form{margin-top:26px;min-height:68px}.discover-form input{font-size:18px}.discover-form button{width:51px;height:47px}.hero-actions button{font-size:14px}.hero-caption{font-size:12px}.search-meta{font-size:12px;gap:7px}.search-meta button{font-size:12px}
 .discovery-panel{top:133px}.panel-header{padding:17px 20px}.panel-header h2{font-size:23px}.panel-content{padding:24px}.turn{font-size:19px}.ad-row{width:calc(100vw - 440px);bottom:16px}.ad-slot strong{font-size:17px}.ad-slot span{font-size:11px}.ad-slot{min-height:90px;padding:11px 13px}.ad-slot small{font-size:9px}
}
@media(min-width:701px) and (max-width:1000px){
 :root{--panel:calc(100vw - 230px)}.app-header .nav-pill{padding:10px 12px;font-size:13px}.category-rail{width:170px;left:10px}.category-rail button{font-size:15px}.category-rail button img{width:47px;height:47px}.discovery-panel{left:auto;right:16px;transform:none}.hero-content{width:calc(100vw - 390px);margin:28px 30px 150px auto}.speech{padding:19px 23px}.speech h1{font-size:32px}.ad-row{width:calc(100vw - 240px);left:auto;right:20px;transform:none}.ad-slot:not(:first-child){display:none}.ad-row{grid-template-columns:1fr}.panel-header h2{font-size:21px}.panel-content{padding:20px}.turn{font-size:18px}
}
@media(max-height:800px) and (min-width:1001px){.hero-content{margin-top:22px}.speech{padding:19px 28px}.speech h1{font-size:clamp(34px,3.2vw,49px)}.discover-form{margin-top:23px}.hero-actions{margin-top:12px}.category-rail{top:134px;bottom:130px;max-height:calc(100svh - 264px)}.category-rail button{min-height:67px;font-size:16px}.category-rail button img{width:51px;height:51px}.panel-open .category-rail{max-height:calc(100svh - 162px)}}
@media(max-width:700px){
 :root{--panel:calc(100vw - 20px)}
 .app-header{margin:10px 10px 0;padding:13px 14px;border-width:2px;border-radius:24px;min-height:82px;gap:10px}.wordmark{font-size:32px;letter-spacing:-2px}.wordmark em{font-size:10px;margin-top:9px}.app-header .profile-bubble{font-size:12px;padding:5px 10px 5px 5px;min-height:43px;gap:6px}.profile-bubble #profileAvatar,.profile-bubble img{width:29px;height:29px;font-size:16px}
 .hero-content{display:block;width:auto;max-width:none;margin:24px 16px 0;text-align:center}.speech{padding:23px 17px 25px;border-radius:34px 34px 34px 12px;transform:rotate(-1deg)}.speech h1{font-size:clamp(31px,8vw,40px);line-height:1.12;letter-spacing:-1px}.speech .eyebrow{font-size:10px;letter-spacing:1.5px}
 .discover-form{margin-top:112px;padding:6px 7px 6px 13px;gap:5px;min-height:62px}.discover-form input{font-size:17px;min-height:44px;padding:10px 0}.discover-form button{width:45px;height:45px;font-size:27px}.search-meta{justify-content:center;font-size:12px;gap:7px;margin:12px 0}.search-meta>span{padding:7px 9px}.search-meta button{font-size:12px;padding:7px 11px}.hero-actions{margin:16px 0 8px;gap:9px}.hero-actions button{font-size:13px;padding:11px 14px}.hero-caption{font-size:12px;line-height:1.5}
 .category-rail{position:relative;top:auto;left:auto;bottom:auto;width:auto;max-height:none;overflow:visible;margin:24px 16px 20px;padding:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:normal}.category-rail:before{font-size:11px;letter-spacing:1.4px;text-align:center;margin-bottom:4px}.category-rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:8px 7px 10px;border-radius:23px;gap:6px;font-size:17px;border-width:3px;box-shadow:0 4px #194e6b22}.category-rail button img{width:100%;height:auto;aspect-ratio:1/1;max-width:160px;object-fit:contain;display:block;border:0;border-radius:16px;background:none}.category-rail button span{text-align:center;font-size:17px;line-height:1.35;color:#14384c;text-shadow:none}.category-rail button b{display:none}
 .ad-row{position:relative;left:auto;right:auto;bottom:auto;transform:none;width:auto;margin:0 16px 18px}.ad-slot{min-height:90px;padding:13px}.ad-slot strong{font-size:19px}.ad-slot span{font-size:13px}.ad-slot small{font-size:10px}
 .discovery-panel{left:10px;right:10px;top:111px;bottom:calc(78px + env(safe-area-inset-bottom));width:auto;transform:none;border-radius:24px}.panel-header{padding:16px 13px;min-height:82px;text-align:center}.panel-header>div{padding:0 26px;width:100%}.panel-header h2{max-width:none;font-size:20px;line-height:1.35;margin-top:6px}.panel-header .eyebrow{font-size:10px;letter-spacing:1px}.panel-header .icon-button{width:30px;height:30px;font-size:15px;right:9px;top:10px}
 .panel-content{padding:18px 16px}.turn{font-size:18px;line-height:1.75;margin-bottom:23px}.turn.user{padding:14px 16px}.turn .speaker{font-size:11px}.folder-chip{font-size:12px;padding:8px 10px;gap:7px}.folder-picker{font-size:13px;max-width:100%}.step-card,.trail-card{padding:15px 16px}.step-card strong,.trail-card strong{font-size:15px}.step-card p,.trail-card p{font-size:17px;line-height:1.65}.trail-card button{font-size:15px}.source-list strong{font-size:17px}.source-list a{font-size:15px}.source-list .source-note{font-size:11px}
 .record-actions{gap:7px}.record-actions button,.filter-row button,.library-controls button{font-size:13px;padding:10px 12px;min-height:40px}.followup-form{padding:11px;gap:6px}.followup-form textarea{font-size:17px;padding:11px 12px;min-height:46px;line-height:1.45}.followup-form>button{width:40px;height:40px;font-size:24px}.attach-button{font-size:26px}
 .panel-open .hero-content,.panel-open .category-rail,.panel-open .ad-row{display:none}.bottom-nav button{font-size:11px}.bottom-nav button span{font-size:25px}.library-search{font-size:17px}.saved-card{padding:16px}.saved-card .open-record{font-size:18px}.saved-card small{font-size:12px}.saved-card .excerpt{font-size:16px}.lab-intro h3{font-size:23px}.lab-intro p{font-size:17px}.empty-state{font-size:17px}
}
