.mobile-toolbar,.mobile-drawer,.mobile-scrim,.mobile-welcome,.mobile-home-attach,.mobile-only,.mobile-attachment{display:none}
@media(max-width:700px){
 :root{color-scheme:light;font-family:Nunito,'Trebuchet MS',sans-serif;--mobile-height:100dvh;--mobile-top:0px}
 body{background:#fffdf7;min-height:100dvh;padding:0;color:#173844;overflow:hidden}
 .scenery,.scene-wash,.app-header,.bottom-nav,.category-rail,.ad-row,.speech,.search-meta,.hero-caption{display:none!important}
 .mobile-toolbar{position:fixed;display:flex;align-items:center;gap:4px;left:0;right:0;top:var(--mobile-top);height:64px;padding:8px 12px;background:#fffdf7f5;border-bottom:1px solid #efeee6;z-index:65}
 .mobile-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:14px;background:transparent;color:#284853;font-size:26px}
 .mobile-icon:active{background:#f2eee0}.mobile-brand{margin-right:auto;display:flex;align-items:baseline;background:none;font-size:25px;font-weight:1000;letter-spacing:-1.2px;color:#132c37;padding:5px 4px}.mobile-brand b{color:#ad8000}.mobile-brand small{font-size:17px;letter-spacing:-.5px}
 #appHome{position:fixed;inset:calc(var(--mobile-top) + 64px) 0 auto;height:calc(var(--mobile-height) - 64px);overflow-y:auto;display:block}
 .hero-content{width:auto;margin:0;padding:0 22px 160px;text-align:center;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
 .mobile-welcome{display:block;width:100%;padding:30px 0 0;max-width:420px}
 .mobile-welcome>img{width:95px;height:95px;object-fit:contain;border-radius:28px;box-shadow:0 7px 22px #d7a50c20;background:#fff5c5;border:4px solid #fff0a8;margin-bottom:18px}
 .mobile-welcome h1{font-size:29px;letter-spacing:-1px;line-height:1.2;color:#16333e;margin:0 0 11px}.mobile-welcome p{font-size:15px;line-height:1.6;color:#6d7e82;margin:0}
 .mobile-prompt-chips{display:flex;flex-direction:column;gap:9px;margin:27px auto 0;max-width:310px}.mobile-prompt-chips button{padding:12px 16px;border:1px solid #e5e7df;background:#fff;color:#4e6268;border-radius:17px;text-align:left;font-size:14px;min-height:44px}
 .hero-actions{display:flex;justify-content:center;gap:9px;margin:20px 0 18px;flex-wrap:wrap}.hero-actions button{font-size:14px;min-height:42px;padding:10px 15px;border:1px solid #e2e4d8;border-radius:999px;box-shadow:none;background:#fff;color:#405a62}.hero-actions .mobile-only{display:block}.hero-actions button[aria-pressed=true]{background:#fff0ad;border-color:#e3c650;color:#594400}
 .discover-form{position:fixed;left:12px;right:12px;top:calc(var(--mobile-top) + var(--mobile-height) - 103px - env(safe-area-inset-bottom));bottom:auto;width:auto;margin:0;padding:9px 10px;gap:7px;min-height:78px;border:1px solid #dedfd4;border-radius:25px;background:#fff;box-shadow:0 5px 28px #253a2410;z-index:50;align-items:center}
 .discover-form .search-icon{display:none}.discover-form textarea{font-size:17px;line-height:1.45;min-height:48px;height:48px;max-height:110px;padding:9px 0;resize:none;background:white;color:#233c47;outline:none}
 .discover-form textarea::placeholder{color:#869093}.discover-form button[type=submit]{width:40px;height:40px;font-size:25px;box-shadow:none;background:#203c46;border-radius:50%}
 .mobile-home-attach{display:grid;place-items:center;flex:0 0 34px;width:34px;height:40px;background:none;color:#5b6e73;font-size:28px;padding:0}
 .mobile-attachment{display:block;position:fixed;bottom:auto;top:calc(var(--mobile-top) + var(--mobile-height) - 142px - env(safe-area-inset-bottom));left:23px;border:1px solid #dfcc7c;background:#fff2bc;padding:8px 12px;border-radius:12px;color:#5c4b1f;font-size:13px;z-index:52}
 .discovery-panel{position:fixed;top:calc(var(--mobile-top) + 64px);left:0;right:0;bottom:auto;height:calc(var(--mobile-height) - 64px);width:100%;max-width:none;transform:none;border:0;border-radius:0;box-shadow:none;background:#fffdf7;z-index:40;animation:none}
 .panel-header{min-height:50px;padding:10px 45px 10px 18px;border-bottom:1px solid #efeee6;background:#fffdf7;text-align:left;justify-content:flex-start;flex-shrink:0}.panel-header>div{padding:0;width:100%}.panel-header .eyebrow{display:none}.panel-header h2{font-size:14px;line-height:1.5;text-align:left;margin:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800;color:#738187}.panel-header .icon-button{width:30px;height:30px;right:10px;top:7px;font-size:14px;background:#f0f0e6;color:#49626c}
 .panel-content{padding:22px 18px 26px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth}
 .turn{font-size:17px;line-height:1.75;margin:0 0 25px;color:#223c46;overflow-wrap:anywhere}.turn p{margin:0;white-space:pre-wrap}
 .turn.user{background:#eeeee6;border-radius:22px 22px 6px 22px;max-width:90%;width:fit-content;margin-left:auto;padding:12px 16px;color:#263d46}.turn.user .speaker{display:none}
 .turn.assistant{padding-left:0;background:none}.turn.assistant .speaker{font-size:11px;letter-spacing:1px;color:#9e7805;margin-bottom:8px;display:flex;gap:6px;align-items:center}.turn.assistant .speaker:before{content:'🦆';font-size:20px;letter-spacing:0}.turn.pending{color:#7c8886}
 .followup-form{padding:10px 12px calc(20px + env(safe-area-inset-bottom));gap:8px;background:#fffdf7;border-top:0;flex-shrink:0;align-items:center}.followup-form textarea{font-size:17px;line-height:1.5;min-height:50px;max-height:120px;padding:12px 14px;border:1px solid #dedfd4;border-radius:22px;background:white;resize:none;color:#233c47}.followup-form>button{width:40px;height:40px;font-size:25px;background:#203c46;box-shadow:none}.attach-button{font-size:27px;color:#60757c;padding:4px}
 .panel-open .hero-content,.panel-open .category-rail,.panel-open .ad-row{display:none!important}
 .mobile-tools{border-top:1px solid #e6e7dc;padding:15px 0 0;margin:22px 0;color:#627477}.mobile-tools summary{font-size:14px;cursor:pointer;font-weight:800;min-height:38px}.mobile-tools[open] summary{margin-bottom:15px}.mobile-tools .folder-chip{font-size:12px;background:#f0f4e7}.mobile-tools .step-card,.mobile-tools .trail-card{background:#fff8dc;font-size:15px;border-color:#e9dfb7;box-shadow:none}.mobile-tools .step-card p,.mobile-tools .trail-card p{font-size:15px;line-height:1.65}.mobile-tools .record-actions button{font-size:12px;padding:10px 12px;background:#fff;border-color:#e0e4dc}
 .source-list{margin:18px 0}.source-list strong{font-size:15px}.source-list a{font-size:14px;padding:10px 12px;background:#f1f6ed;border-color:#e0e7d9}.source-list .source-note{font-size:11px}
 .mobile-scrim{position:fixed;inset:0;z-index:90;background:#142b3555;backdrop-filter:blur(2px)}.mobile-drawer{display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;width:min(88vw,355px);padding:18px 15px calc(20px + env(safe-area-inset-bottom));background:#f8f7ee;z-index:100;transform:translateX(-105%);transition:transform .18s ease;overflow-y:auto;box-shadow:12px 0 45px #173e5320;visibility:hidden}
 .mobile-menu-open .mobile-scrim{display:block}.mobile-menu-open .mobile-drawer{transform:none;visibility:visible}.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px;color:#263f46}.mobile-drawer-head strong{font-size:19px}.mobile-new-chat{border:1px solid #e2d798;background:#fff0b4;color:#5b4c20;border-radius:17px;font-size:16px;font-weight:900;padding:13px 15px;text-align:left;min-height:48px}
 .mobile-history-search{margin:13px 0;padding:12px 14px;border:1px solid #e0e3d6;border-radius:15px;background:white;color:#36525d;font-size:16px;min-height:45px;width:100%}.mobile-library-nav{display:flex;gap:7px;margin:0 0 12px}.mobile-library-nav button{flex:1;background:#fff;border:1px solid #e0e3d6;border-radius:14px;padding:11px 7px;font-size:13px;color:#3c5962;min-height:44px}
 .mobile-categories{border-bottom:1px solid #e0e3d6;padding:5px 0 13px}.mobile-categories summary{font-size:14px;padding:9px 5px;cursor:pointer;font-weight:800;color:#6e7c78}.mobile-categories button{display:flex;align-items:center;gap:12px;background:transparent;color:#344e57;font-size:15px;padding:7px;width:100%;text-align:left;border-radius:12px}.mobile-categories img{width:43px;height:43px;object-fit:contain;border-radius:11px}
 .mobile-history-title{font-size:11px;color:#7e8a83;text-transform:uppercase;letter-spacing:1px;margin:21px 7px 10px}.mobile-history-item{display:block;width:100%;background:transparent;text-align:left;padding:12px 9px;color:#274450;border-radius:13px}.mobile-history-item:hover{background:#efeee2}.mobile-history-item span{display:block;font-size:15px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-history-item small{display:block;font-size:11px;color:#8a948a;margin-top:5px}.mobile-empty{color:#7e8a83;font-size:14px;line-height:1.6;padding:0 8px}
 .toast{bottom:auto;top:calc(var(--mobile-top) + 70px);left:50%;max-width:90%;font-size:12px;padding:10px 15px;border-radius:15px;z-index:120;background:#203c46}
 .category-intro{background:#fff8df;border-color:#e8e2c7}.category-welcome h3{font-size:23px}.category-welcome p{font-size:16px}.category-ask-form{border-color:#e2cb6f;border-radius:24px}.category-ask-form button{background:#203c46;box-shadow:none}.category-prompt{background:#fff;border-color:#e0e3d6;color:#405c65;font-size:16px}
 .image-notice{background:#fff0b5;color:#5b4b21;font-size:12px;padding:8px 15px}
 #mdProfileCard{z-index:110!important}
}
@media(prefers-reduced-motion:reduce){.mobile-drawer{transition:none}.panel-content{scroll-behavior:auto}}
@media(max-width:700px){.discover-form .mobile-home-attach{background:none;box-shadow:none;width:32px;height:40px;flex:0 0 32px;color:#63777c;font-size:29px}.discover-form textarea{height:62px;min-height:62px;padding:5px 0;scrollbar-width:none}.discover-form textarea::-webkit-scrollbar{display:none}}
