/* NeuroMira 0.5 — responsive chat, no scaled desktop canvas. */
:root{--canvas:#fafafa;--bg:#fff;--side:#f5f5f6;--raised:#e9eaed;--text:#25272b;--muted:#727780;--border:#11182718;--blue:#555e6c;--tint:#edf0f4;--shadow:none;--side-w:clamp(216px,15vw,280px);--chat-w:768px}
:root[data-theme=dark]{--canvas:#040505;--bg:#141516;--side:#08090a;--raised:#242628;--text:#e7e8eb;--muted:#92969c;--border:#ffffff15;--blue:#b7c0cf;--tint:#252930;--glass:transparent;color-scheme:dark}
@media(prefers-color-scheme:dark){:root[data-theme=system]{--canvas:#040505;--bg:#141516;--side:#08090a;--raised:#242628;--text:#e7e8eb;--muted:#92969c;--border:#ffffff15;--blue:#b7c0cf;--tint:#252930;--glass:transparent;color-scheme:dark}}
html,body{width:100%;min-width:0;overflow-x:clip}body{font-size:13px;background:var(--canvas)}button,input,textarea,a{touch-action:manipulation}button{min-height:34px;border-radius:12px}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}a{color:var(--blue)}.app{display:block;height:100dvh;min-height:0;padding:0;gap:0}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--side-w);height:100dvh;border-radius:0;border-right:1px solid var(--border);padding:17px 12px;gap:12px;background:var(--canvas);z-index:4;overflow:auto;overscroll-behavior:contain}.brand{font-size:16px;gap:9px;letter-spacing:-.4px;padding:1px 7px;min-height:32px}.brand-icon{width:27px;height:27px}.new{border:0;box-shadow:none;background:none;font-size:13px;padding:8px;min-height:34px;border-radius:10px;margin:5px 0 0}.new>span{display:none}.new svg{width:17px;height:17px}.sidebar-nav{display:grid;gap:2px}.sidebar-nav .catalog-btn,.sidebar-nav button{font-size:12px;min-height:35px;padding:8px;gap:9px}.sidebar-nav svg,.sidebar-nav .nav-glyph{width:17px;height:17px;font-size:17px}.sidebar-nav .nav-note,.sidebar-nav .label{font-size:10px}.history{flex:1;min-height:70px}.history>p{font-size:10px;text-transform:uppercase;letter-spacing:.5px;padding:0 8px;margin:15px 0 9px}.history-search{font-size:12px;padding:8px 10px;min-height:35px;border-radius:11px;background:transparent}.history-row{border-radius:10px}.history-row .open{font-size:11px;padding:8px;min-height:34px}.history-row .rename,.history-row .remove{width:28px;min-height:32px;opacity:0}.history-row:hover .rename,.history-row:hover .remove,.history-row:focus-within .rename,.history-row:focus-within .remove{opacity:1}.history-row .rename svg{width:14px;height:14px}.history .label{font-size:11px}.side-bottom{border:0;padding-top:8px}.theme-options{width:144px;padding:4px;border:1px solid var(--border);background:transparent;border-radius:25px;margin:6px auto 14px;gap:2px}.theme-options button{min-height:29px;font-size:11px;border-radius:20px}.theme-options button[aria-pressed=true]{background:var(--raised);box-shadow:none}.theme-options svg{width:16px;height:16px}.profile{border-top:1px solid var(--border);border-radius:0;padding:13px 6px 0;gap:8px;margin:0;min-height:45px}.profile .avatar{width:28px;height:28px;font-size:10px;color:var(--text);background:var(--raised)}.profile strong{font-size:11px}.profile small{font-size:10px}.main{margin:0 0 0 var(--side-w);height:100dvh;min-width:0;border:0;border-radius:0;box-shadow:none;background:var(--canvas);overflow:hidden;position:relative;display:block}.topbar{position:absolute;inset:0 0 auto;height:62px;padding:14px 22px;background:transparent;backdrop-filter:none;border:0;z-index:2}.top-left .badge{display:none}.top-right{gap:9px}.top-right .icon-btn{width:32px;min-height:32px;padding:6px}.top-right .icon-btn svg{width:17px;height:17px}.login-top{font-size:11px;padding:7px 14px;min-height:32px;background:var(--raised);color:var(--text);border:1px solid var(--border);font-weight:400}.login-top:hover{background:var(--tint);color:var(--text)}.workspace{position:absolute;inset:65px 0 0;display:block;padding:0;overflow:hidden;z-index:1;pointer-events:none}.welcome{position:absolute;top:calc(50% - 112px);left:50%;transform:translate(-50%,-50%);width:calc(100% - 48px);max-width:var(--chat-w);margin:0;padding:0;text-align:center;pointer-events:auto}.welcome>:not(.home-brand){display:none!important}.home-brand{display:flex;align-items:center;justify-content:center;gap:12px;font-size:clamp(24px,1.6vw,29px);letter-spacing:-.8px;line-height:1.4;font-weight:400}.home-brand img{width:36px;height:36px;border-radius:11px}.composer-area{position:absolute;top:calc(50% + 10px);left:0;right:0;padding:0 clamp(20px,3vw,56px);z-index:2;pointer-events:none}.composer-wrap{width:100%;max-width:var(--chat-w);margin:auto;pointer-events:auto}.composer{padding:16px 18px 11px;border-radius:25px;border:1px solid var(--border);background:var(--bg);min-height:104px;box-shadow:none;display:flex;flex-direction:column;gap:10px}.composer:focus-within{border-color:var(--muted)}textarea#prompt{height:32px;min-height:32px;max-height:140px;font-size:14px;line-height:1.5;padding:0;outline:none}.composer-tools{margin:0;min-height:33px;gap:8px;justify-content:flex-start}.context{font-size:0;gap:0;margin-right:auto;flex-shrink:0}.composer-tool{width:33px;min-height:33px;padding:6px;color:var(--muted);border-radius:50%;display:grid;place-items:center}.composer-tool svg{width:17px;height:17px}.model-trigger{max-width:min(280px,45vw);padding:5px 1px;gap:8px;font-size:12px;font-weight:400;min-height:33px;border-radius:18px}.model-trigger .model-mark{width:20px;height:20px;border-radius:50%;font-size:10px;background:var(--raised);color:var(--text)}.model-trigger>svg{width:13px;height:13px}.send{width:33px;min-height:33px;height:33px;border-radius:50%;background:var(--text);color:var(--canvas);flex-shrink:0}.send:hover{background:var(--muted);color:var(--canvas)}.send svg{width:18px;height:18px}.stop-generation{font-size:10px;color:var(--text);padding:5px 9px;border:1px solid var(--border);border-radius:16px;min-height:31px}.bottom-line{margin-top:10px;justify-content:center;gap:8px}.bottom-line .footnote{font-size:9px;line-height:1.5;color:var(--muted);text-align:center}.support-link{display:none}.quota-line{font-size:10px;margin-top:9px;text-align:center;line-height:1.4}.has-chat .workspace{inset:76px 0 208px;overflow:auto;pointer-events:auto;padding:0 clamp(20px,3vw,56px);overscroll-behavior:contain;scrollbar-width:thin}.has-chat .messages{width:100%;max-width:var(--chat-w);padding:0 4px 12px}.has-chat .composer-area{top:auto;bottom:18px}.message{margin-bottom:25px;animation:reply-in .2s ease-out}.message.user{padding:12px 16px;border-radius:18px;margin-left:80px;font-size:14px;background:var(--bg)}.message-head{gap:9px;font-size:12px;font-weight:500;flex-wrap:wrap}.message-head .model-mark{width:23px;height:23px;border-radius:7px;font-size:10px;background:var(--raised);color:var(--text)}.message-head small{font-size:10px}.message-body{font-size:14px;line-height:1.85;padding-left:32px}.message-actions{padding-left:25px;gap:8px;margin-top:9px}.message-actions button{font-size:10px;padding:5px 8px;min-height:28px}.switch-note,.context-banner{font-size:11px;line-height:1.6}.generation-status{font-size:11px;color:var(--muted);margin:16px 0 24px;padding-left:32px}.generation-status:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--muted);margin-right:8px;animation:wait-pulse 1.4s ease-in-out infinite}.error-message{font-size:12px;line-height:1.7;border-left-width:2px}.error-message button{min-height:30px;font-size:11px}.streaming .message-body{white-space:pre-wrap}.streaming{animation:none}.stars{position:absolute;inset:-28px;pointer-events:none;opacity:.65;background-image:radial-gradient(circle at 19px 41px,#aab1bd 0 .65px,transparent 1px),radial-gradient(circle at 117px 91px,#929da9 0 .7px,transparent 1.2px),radial-gradient(circle at 52px 153px,#89939f 0 .5px,transparent .9px);background-size:263px 239px,397px 311px,199px 283px;mask-image:linear-gradient(180deg,transparent,#0009 17%,#000 80%);animation:star-drift 150s ease-in-out infinite alternate;will-change:transform;z-index:0}.page-inactive .stars{animation-play-state:paused}.has-chat .stars{opacity:.18}@keyframes star-drift{from{transform:translate3d(-10px,10px,0)}to{transform:translate3d(12px,-14px,0)}}@keyframes reply-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes wait-pulse{50%{opacity:.25}}dialog{padding:24px;border-radius:23px;background:var(--bg);border:1px solid var(--border);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#0008;backdrop-filter:blur(5px)}.dialog-head h2,#authTitle{font-size:22px;font-weight:500;line-height:1.3}.dialog-desc,.privacy-text,.demo-note,.auth-note{font-size:12px}.auth-input{font-size:15px;min-height:46px;border-radius:14px}.auth-submit{font-size:13px;min-height:44px;background:var(--text);color:var(--canvas);border-radius:24px}.auth-submit:hover{background:var(--muted);color:var(--canvas)}.auth-link{font-size:12px;color:var(--blue)}.auth-label{font-size:12px}.model-option{min-height:58px;border-radius:13px;padding:10px}.model-option strong{font-size:13px}.model-option small,.price-label{font-size:11px}.model-option .model-mark{font-size:12px;background:var(--raised);color:var(--text)}.plan-card{border-radius:20px}.plan-card .auth-submit{font-size:12px}.plan-card h3{font-size:18px}.plan-price{font-size:25px}.plan-card .label,.plan-card ul{font-size:12px}.plan-grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}.consent{font-size:12px}.account-email{font-size:13px}.access-summary{font-size:12px}.access-summary .label{font-size:11px}.admin-entry{display:none!important}#toast{font-size:11px;padding:9px 12px;margin-top:10px;border-radius:12px}.account-popup{position:fixed;right:18px;top:58px;width:248px;max-height:calc(100dvh - 76px);overflow:auto;z-index:8;background:var(--bg);border:1px solid var(--border);padding:7px;border-radius:18px;box-shadow:0 20px 65px #0005}.account-popup button,.account-popup a{display:flex;align-items:center;gap:10px;text-align:left;font-size:12px;padding:10px;width:100%;min-height:38px;border-radius:11px;text-decoration:none;color:var(--text)}.account-popup button:hover,.account-popup a:hover{background:var(--raised)}.popup-email{padding:9px 10px 14px;border-bottom:1px solid var(--border);font-size:11px;overflow-wrap:anywhere;color:var(--muted);margin:0 0 5px}.desktop-collapse{position:absolute;right:8px;top:17px;width:27px;min-height:29px;padding:5px;color:var(--muted)}.desktop-collapse svg{height:16px;width:16px}.brand{padding-right:26px}.sidebar-collapsed .sidebar{transform:translateX(-100%)}.sidebar-collapsed .main{margin-left:0}.sidebar-collapsed #menuBtn{display:block}.sidebar-collapsed .welcome{left:50%}.menu-reopen{display:none}.sidebar-search{font-size:12px;padding:8px;text-align:left;display:flex;align-items:center;gap:9px}.sidebar-search svg{width:16px;height:16px}.sidebar-collapsed .main,.main{transition:margin-left .2s ease}.sidebar{transition:transform .2s ease}.auth-top-icon{height:38px;width:38px;border-radius:13px;margin-bottom:10px}.label{font-size:12px}#supportDialog{background:var(--bg)}#supportDialog h2{font-size:19px}.support-disclosure,#supportContact{font-size:11px}.support-msg,.support-tools button{font-size:12px}
@media(max-width:1000px) and (min-width:801px){:root{--side-w:216px}.composer-area,.has-chat .workspace{padding-left:24px;padding-right:24px}.sidebar{gap:9px}}
@media(max-width:800px){:root{--side-w:min(272px,84vw)}.main{margin-left:0;height:var(--visible-h,100dvh)}.sidebar{transform:translateX(-100%);width:var(--side-w);background:var(--side);padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}.sidebar.visible{transform:none}.scrim.visible{display:block;position:fixed;inset:0;width:100%;height:100dvh;border-radius:0;background:#0009;backdrop-filter:blur(2px);z-index:3}.mobile-menu{display:block}.topbar{height:62px;padding:12px 14px}.top-left{gap:0}.icon-btn{min-height:36px;width:36px}.top-right .icon-btn{width:32px}.top-right #export{display:none}.login-top{font-size:11px;min-height:34px}.workspace{inset:62px 0 0}.welcome{top:calc(50% - 110px);width:calc(100% - 32px);padding:0}.home-brand{font-size:25px;gap:10px}.home-brand img{height:32px;width:32px}.composer-area{top:calc(50% + 2px);padding:0 max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left))}.composer{min-height:122px;padding:15px 14px 12px;gap:11px;border-radius:23px}textarea#prompt{font-size:16px;height:40px;min-height:40px;max-height:120px}.composer-tools{gap:6px}.context{gap:0}.composer-tool{width:34px;min-height:38px;padding:7px}.model-trigger{min-width:0;max-width:calc(100vw - 177px);font-size:11px;padding:6px 2px;gap:6px}.model-trigger .model-mark{display:none}.model-trigger #currentName{font-size:11px;max-width:none;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-trigger svg{width:11px;height:11px}.send{width:38px;height:38px;min-height:38px}.stop-generation{position:absolute;bottom:calc(100% + 8px);right:20px;background:var(--bg);min-height:34px;padding:6px 12px;font-size:11px}.bottom-line{margin-top:10px}.bottom-line .footnote{font-size:9px;line-height:1.5}.quota-line{font-size:10px;margin-top:8px}.has-chat .workspace{inset:70px 0 205px;padding:0 16px}.has-chat .composer-area{bottom:max(12px,env(safe-area-inset-bottom));top:auto}.message-body{font-size:15px;padding-left:0}.message.user{font-size:15px;margin-left:26px}.message-head{font-size:12px;gap:8px}.message-actions{padding-left:0}.message-actions button{font-size:11px;min-height:36px}.generation-status{padding-left:0;font-size:11px}.profile strong{font-size:12px}.profile small{font-size:11px}.profile{min-height:52px}.new{min-height:42px;font-size:13px}.sidebar-nav button{min-height:40px;font-size:13px}.history-row .open{min-height:38px;font-size:12px}.history-row .rename,.history-row .remove{opacity:1;width:30px;min-height:38px}.theme-options button{min-height:34px}.theme-options{width:156px}.theme-options button svg{width:17px;height:17px}.desktop-collapse{display:none}.brand{font-size:17px}.account-popup{top:60px;right:12px;max-width:calc(100vw - 24px)}.account-popup button,.account-popup a{min-height:42px}#supportDialog{inset:12px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);height:calc(100dvh - 24px)}dialog{padding:22px}.dialog-head h2,#authTitle{font-size:20px}.auth-label{font-size:13px}.auth-input{font-size:16px}.model-option strong{font-size:13px}.model-option small{font-size:11px}.sidebar-collapsed .sidebar.visible{transform:none}}
@media(max-width:380px){.composer{padding-left:11px;padding-right:11px}.composer-tool{width:30px}.model-trigger{max-width:calc(100vw - 160px);font-size:10px}.model-trigger #currentName{font-size:10px}.home-brand{font-size:24px}.send{height:36px;width:36px;min-height:36px}}
@media(max-height:600px) and (min-width:801px){.sidebar{padding-top:10px;gap:7px}.sidebar-nav button{min-height:29px;padding-top:5px;padding-bottom:5px;font-size:11px}.new{min-height:29px;margin:0}.brand{font-size:14px;min-height:28px}.brand-icon{width:23px;height:23px}.history>p{margin-top:9px}.history-search{min-height:29px;font-size:11px}.profile{padding-top:9px}.profile small{display:none}.theme-options{margin-bottom:9px}.theme-options button{min-height:24px}.welcome{top:calc(50% - 100px)}.composer-area{top:calc(50% - 2px)}.has-chat .workspace{top:62px;bottom:188px}.has-chat .composer-area{bottom:10px}}
@media(max-height:520px) and (max-width:800px){.topbar{height:48px;padding-top:6px;padding-bottom:6px}.workspace{inset:48px 0 0}.welcome{top:calc(50% - 95px)}.home-brand{font-size:22px}.home-brand img{width:27px;height:27px}.composer-area{top:calc(50% - 2px)}.composer{min-height:100px;padding-top:12px;padding-bottom:8px;gap:5px}textarea#prompt{height:30px;min-height:30px}.has-chat .workspace{top:54px;bottom:152px}.has-chat .composer-area{bottom:8px}.has-chat .bottom-line{display:none}.has-chat .quota-line{margin-top:5px;font-size:9px}.stars{animation-duration:180s}.account-popup{top:49px}.history{min-height:55px}.sidebar-nav button{min-height:32px}.sidebar{gap:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.stars{transform:none;will-change:auto}}

/* Readable real model attribution and searchable catalog. */
.reply-model-name{font-size:13px;font-weight:500;color:var(--text);overflow-wrap:anywhere}.message-head .reply-model-id{flex-basis:calc(100% - 32px);padding-left:32px;font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin-top:-4px;line-height:1.5}.message-head .reply-model-note{font-size:11px;line-height:1.5}.model-search{width:100%;font:inherit;font-size:14px;padding:11px 13px;color:var(--text);background:var(--canvas);border:1px solid var(--border);border-radius:13px;margin:16px 0 8px;min-height:42px}.model-limit-note{font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 14px}.model-option .details{min-width:0}.model-option .details strong{overflow-wrap:anywhere}.model-option .model-id{font-size:10px;overflow-wrap:anywhere;opacity:.85}.model-option .price-label{max-width:116px;white-space:normal;line-height:1.5;font-size:10px;text-align:right;flex-shrink:0}.model-trigger #currentName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.model-trigger{min-width:0}.model-option{gap:10px}
@media(max-width:800px){.model-search{font-size:16px}.reply-model-name{font-size:13px}.message-head .reply-model-id{font-size:10px}.model-option .price-label{max-width:78px;font-size:9px}.model-option{padding:10px 6px;gap:7px}}
