/* Только приспособление оболочки Electron к браузеру. Исходный дизайн — styles.css. */
html.platform-web { --caption-w: 0px; }
html.platform-web .caption-spacer { display: none; }
html.platform-web.platform-mac .sb-head { padding-left: 8px; }
html.platform-web.platform-mac .app.sb-collapsed .topbar { padding-left: 8px; }
html.platform-web .drag { -webkit-app-region: no-drag; }
html.platform-web .app { height: 100dvh; }
html.platform-web .chat-view { min-height: 0; overflow: hidden; }
html.platform-web .topbar { position: relative; z-index: 2; background: var(--bg); }
html.platform-web #pTray:disabled + span,
html.platform-web #pAutostart:disabled + span,
html.platform-web #lbFolder:disabled,
html.platform-web [data-a="folder"]:disabled { opacity: .4; cursor: default; }
.mobile-backdrop,.mobile-panel-close{display:none}
@media(max-width:760px){
 html.platform-web .app{width:100%;overflow:hidden;min-height:0}
 html.platform-web .sidebar,html.platform-web .app.sb-collapsed .sidebar{position:fixed;inset:0 auto 0 0;width:min(310px,86vw);height:100dvh;margin:0;z-index:110;transform:translateX(-100%);visibility:hidden;transition:transform .18s,visibility .18s;padding-bottom:env(safe-area-inset-bottom)}
 html.platform-web .app.mobile-nav-open .sidebar{transform:none;visibility:visible}
 .mobile-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0006;z-index:100;border:0}
 html.platform-web #sbExpand{display:inline-flex!important;flex-shrink:0}
 html.platform-web #sbNewMini{display:none!important}
 html.platform-web .topbar{height:56px;min-height:56px;padding:0 8px;gap:3px}
 html.platform-web .topbar>.grow{display:none}
 html.platform-web .model-btn{min-width:0;flex:1;padding:0 6px;font-size:15px;white-space:nowrap}
 html.platform-web #modelBtnLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html.platform-web .balance-pill{flex-shrink:0;padding:0 8px;font-size:12px;margin:0}
 html.platform-web .topbar>.icon-btn{width:40px;height:44px;flex-shrink:0}
 html.platform-web .panel{display:none!important}
 html.platform-web .app.mobile-panel-open .panel{display:block!important;position:fixed;inset:0 0 0 auto;width:min(360px,94vw);height:100dvh;z-index:110;padding-bottom:env(safe-area-inset-bottom)}
 .mobile-panel-close{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;background:var(--bg);border-bottom:1px solid var(--border);width:100%;padding:15px 18px;font-size:15px}
 html.platform-web .chat-view.is-empty{justify-content:center;padding-bottom:2vh;overflow-y:auto}
 html.platform-web .empty{padding:20px 16px 24px}
 html.platform-web .empty h1{font-size:26px;line-height:1.3}
 html.platform-web .composer-dock{padding:0 12px max(10px,env(safe-area-inset-bottom));width:100%;min-width:0}
 html.platform-web .composer{border-radius:22px;padding:10px;width:100%;min-width:0}
 html.platform-web .composer textarea{font-size:16px;min-height:46px;max-height:28dvh}
 html.platform-web input,html.platform-web select,html.platform-web textarea{font-size:16px}
 html.platform-web .composer-bar{gap:4px;min-width:0}
 html.platform-web .send-btn,html.platform-web #plusBtn{width:42px;height:42px;flex-shrink:0}
 html.platform-web .image-opts{flex-wrap:wrap;min-width:0;max-width:100%}
 html.platform-web .tool-chips{flex-wrap:wrap;max-width:100%}
 html.platform-web .suggestions{gap:8px;margin-top:18px;display:flex;flex-wrap:wrap;justify-content:center}
 html.platform-web .suggestion{min-height:40px;font-size:12px;padding:8px 12px;white-space:nowrap}
 html.platform-web .thread{padding:16px 16px 24px}
 html.platform-web .bubble{max-width:92%}
 html.platform-web .msg-actions,html.platform-web .att-remove,html.platform-web .cl-more{opacity:1}
 html.platform-web .video-form{padding:8px 4px;max-height:40dvh}
 html.platform-web .vf-frames{flex-wrap:wrap}
 html.platform-web .modal{width:calc(100vw - 24px);padding:20px;max-height:85dvh;overflow:auto}
 html.platform-web .modal-actions{flex-wrap:wrap}
 html.platform-web .menu{max-width:calc(100vw - 24px)!important;max-height:70dvh;overflow:auto}
 html.platform-web .disclaimer{font-size:10px;padding:8px 2px}
 html.platform-web .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px) and (max-height:520px){html.platform-web .chat-view.is-empty{justify-content:flex-start;padding-bottom:0}html.platform-web .empty{padding:12px}html.platform-web .empty h1{font-size:21px}html.platform-web .suggestions{display:none}html.platform-web .video-form{max-height:28dvh}}
