/* Compact chat business variant; native controls and theme remain canonical. */
:root{--rr-header:52px;--rr-sources:300px}
.ferebrum-header{height:52px!important;min-height:52px!important;padding:6px 16px!important;gap:8px!important;flex-wrap:nowrap!important}
.ferebrum-wordmark{font-size:19px!important}
main:has(.ferebrum-resources[data-open=true]){padding-right:0!important}
main:has(.ferebrum-resources[data-open=true]) .ferebrum-header{width:100%!important}
.ferebrum-resources.rr-resources{top:52px!important;width:min(300px,calc(100vw - 24px));height:calc(100dvh - 52px)!important;box-shadow:-8px 0 24px #0002;padding-inline:16px}
.rr-resources-heading{height:56px}.rr-resources details{padding-block:14px}.rr-library-list>li{min-height:58px;padding-block:8px}
aside[aria-label="Контрольная панель"]{min-width:260px!important;width:260px!important;max-width:260px!important}
aside[aria-label="Контрольная панель"]:has([data-testid="open-sidebar-button"]){min-width:52px!important;width:52px!important;max-width:52px!important}
aside[aria-label="Контрольная панель"]>div>div:first-child{width:52px;padding:8px 5px}
.rr-rail button,.rr-rail a{min-height:52px;gap:5px;font-size:10px}.rr-rail .rr-icon{width:22px;height:22px}.rr-nav{padding:10px 12px 0}.rr-nav-heading{margin-bottom:12px}.rr-nav-heading h2{font-size:17px}.rr-new{padding:10px 12px;margin-bottom:10px;gap:10px}.rr-actions{padding:8px 12px}.rr-actions .rr-categories button{border:0;min-height:36px;background:transparent;padding:6px}.rr-news-entry{padding:8px!important;border:0!important;margin:6px 0!important}
.rr-welcome{max-width:760px;padding:28px 24px 16px!important;justify-content:center}
.rr-welcome .rr-bot,.rr-welcome .rr-intro{display:none}
.rr-welcome h2{font-size:28px;margin-bottom:10px}.rr-subtitle{font-size:16px;margin-bottom:0}
.rr-suggestions{gap:8px;margin-top:22px}.rr-suggestions button{min-height:44px;border:0;border-radius:10px;padding:10px 12px;background:rgb(var(--surface-secondary))!important;font-size:12px;gap:10px}.rr-suggestions .rr-arrow{display:none}
[data-chat-pane]{background:rgb(var(--surface-primary))!important;background-image:none!important}
main form:has([data-testid="composer-surface"]){max-width:920px!important;padding:6px 20px 12px!important}
[data-testid="composer-surface"],.light [data-testid="composer-surface"]{box-shadow:none!important;border:1px solid rgb(var(--border-medium))!important;border-radius:20px!important;padding:4px!important}
main #prompt-textarea{min-height:44px!important;padding:10px 12px!important;font-size:15px!important}
.ferebrum-composer-bar{min-height:38px!important;padding:0 6px 3px!important}
button[aria-label="Отправить сообщение"],button[aria-label="Attach and tools"]{width:36px!important;height:36px!important;min-height:36px!important;border:0!important}
.ferebrum-composer-model button{min-height:32px!important;border:0!important;background:transparent!important}
.ferebrum-transfer-notice{font-size:11px;padding:0 8px 5px;line-height:1.3}
.ferebrum-theme-modes{border:0;padding:0}.ferebrum-theme-modes button{min-height:30px!important;padding:4px 7px!important}.ferebrum-sources-trigger{min-height:32px;padding:4px 9px}.ferebrum-appearance>button{min-height:32px!important}
@media(max-width:767px){.ferebrum-header{height:52px!important;min-height:52px!important;padding:6px 8px!important;flex-wrap:nowrap!important}.ferebrum-header>div:nth-child(3){width:auto!important;flex:0 0 auto!important}.ferebrum-header .ferebrum-wordmark{font-size:16px!important}.ferebrum-appearance{gap:2px!important}.ferebrum-appearance .ferebrum-control-label{display:none!important}.ferebrum-theme-modes button{width:28px!important;min-width:28px!important;padding:4px!important}.ferebrum-sources-trigger{width:32px!important;min-width:32px!important;padding:5px!important}.ferebrum-resources.rr-resources{top:52px!important;height:calc(100dvh - 52px)!important}.rr-welcome{padding:20px 16px!important}.rr-welcome h2{font-size:23px}.rr-suggestions{grid-template-columns:1fr;gap:4px;margin-top:16px}.rr-suggestions button{min-height:36px;padding:8px 10px}.rr-suggestions .rr-icon{width:18px;height:18px}main form:has([data-testid="composer-surface"]){padding:6px 10px max(8px,env(safe-area-inset-bottom))!important}.ferebrum-transfer-notice{font-size:10px}}

.ferebrum-transfer-help{position:relative;margin:0;font-size:11px}.ferebrum-transfer-help summary{cursor:pointer;width:max-content;min-height:24px;padding:3px 6px;color:rgb(var(--text-secondary))}.ferebrum-transfer-help small{display:block;padding:8px;background:rgb(var(--surface-secondary));border-radius:8px;max-width:650px}.ferebrum-transfer-help summary:focus-visible{outline:2px solid var(--ferebrum-brand)}.ferebrum-news-shortcut{font-size:13px;padding:6px 8px;border-radius:8px;white-space:nowrap;color:rgb(var(--text-primary));text-decoration:none}.ferebrum-news-shortcut:hover{background:rgb(var(--surface-secondary))}.color-material-shortcut{font-size:12px!important;padding:6px 9px!important;min-height:32px!important}@media(max-width:480px){.ferebrum-news-shortcut{font-size:11px;padding:4px}.ferebrum-header .ferebrum-wordmark{font-size:13px!important}}

@media(max-width:480px){.ferebrum-header .ferebrum-wordmark{display:none!important}.ferebrum-header{gap:4px!important}}
