@font-face{font-family:Plex;src:url('/static/fonts/plex-sans-cyrillic.woff2') format('woff2');font-weight:100 700;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Plex;src:url('/static/fonts/plex-sans-latin.woff2') format('woff2');font-weight:100 700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plex Mono';src:url('/static/fonts/plex-mono-latin.woff2') format('woff2');font-weight:400;font-display:swap}
:root,:root[data-theme=light]{color-scheme:light;--page:#f1f4f7;--surface:#fbfcfe;--surface-soft:#eaf0f5;--text:#293d4d;--muted:#5d7284;--border:#d5e0e7;--accent:#5c64a1;--accent-hover:#4b538e;--accent-text:#fff;--focus:#6977b7;--user-bg:#e6eaf4;--error:#ad4148;--error-bg:#fcecee;--shadow:#1023300a;--selected:#e6eaf4;font-family:Plex,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;font-feature-settings:'tnum';font-size:15px}
:root[data-theme=dark]{color-scheme:dark;--page:#202e38;--surface:#263844;--surface-soft:#30434f;--text:#e0e8ef;--muted:#adbdc9;--border:#415965;--accent:#b6c0e8;--accent-hover:#d0d7f1;--accent-text:#202e38;--focus:#bcc9ff;--user-bg:#3a4a62;--error:#f2a6ac;--error-bg:#52333e;--shadow:#08162026;--selected:#3a4a62}
body{min-width:280px}button,input,select,textarea{border-radius:11px}button{font-weight:450}button:focus-visible{outline-offset:3px}code,pre,kbd,input[name=api_key],.connection-meta{font-family:'Plex Mono',monospace;font-size:.82rem}.workspace{position:relative;width:100%;max-width:1600px;min-height:100dvh;margin:0 auto;padding-bottom:28px}.app-header{position:relative;z-index:20;display:flex;align-items:center;gap:16px;padding:18px 28px;min-height:85px;margin:0;border-bottom:1px solid var(--border);background:var(--surface)}.header-navigation,.header-actions{display:flex;align-items:center;gap:20px}.header-actions{margin-left:auto;gap:12px}.wordmark{padding:0;min-height:40px;border:0;background:transparent;color:var(--text);font-size:26px;font-weight:500;letter-spacing:-1.1px}.wordmark span{font-weight:400}.wordmark:hover:not(:disabled){background:transparent;color:var(--accent)}.nav-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;background:transparent;font-size:14px;white-space:nowrap}.header-navigation .nav-button{border-color:var(--border);border-radius:14px}.header-menu{position:relative}.nav-menu{position:absolute;z-index:35;top:calc(100% + 10px);right:0;width:280px;max-width:calc(100vw - 24px);padding:8px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 12px 40px #10233020}.header-navigation .nav-menu{left:0;right:auto}.nav-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-height:44px;border:0;border-radius:9px;background:transparent;font-size:13px}.nav-menu button:disabled{opacity:1;color:var(--muted);cursor:default}.nav-menu button[aria-current=page]{background:var(--selected)}.theme-switch{display:flex;gap:2px;border:1px solid var(--border);border-radius:13px;padding:3px}.theme-switch .icon-button{width:32px;height:32px;min-height:32px;border-radius:9px}.theme-switch [aria-pressed=true]{background:var(--selected);color:var(--accent)}
.ui-icon{display:inline-block;flex:0 0 auto;width:20px;height:20px;background:currentColor;mask-image:var(--icon);mask-repeat:no-repeat;mask-size:contain;mask-position:center;vertical-align:middle}.ui-icon.small{width:14px;height:14px}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border:1px solid transparent;background:transparent;font-size:0!important;line-height:0;color:var(--muted)}.icon-button::before{content:'';display:block;width:19px;height:19px;background:currentColor;mask-image:var(--icon);mask-size:contain;mask-position:center;mask-repeat:no-repeat}.icon-button:hover:not(:disabled){background:var(--surface-soft);color:var(--text)}.icon-button[aria-pressed=true]{background:var(--selected);color:var(--accent)}.icon-button.button-primary{background:var(--accent);color:var(--accent-text)}.icon-button.button-primary:hover:not(:disabled){background:var(--accent-hover);color:var(--accent-text)}.icon-button.button-stop,.icon-button.is-recording{color:var(--error);border-color:var(--error);background:var(--error-bg)}
.page-view{padding:28px 32px 34px;min-width:0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px;margin-bottom:12px}.page-heading h1{font-size:25px;font-weight:500;letter-spacing:-.5px;margin-top:5px}.eyebrow{font-size:11px;letter-spacing:1.3px;color:var(--muted)}.boss-home-slot{width:280px;max-width:100%;height:298px;margin:2px auto 24px}.department-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}:is(.department-card,.block-card){display:flex;align-items:center;gap:14px;min-height:118px;padding:19px;border:1px solid var(--border);border-radius:25px;background:var(--surface);box-shadow:0 5px 20px var(--shadow);text-align:left;color:var(--text)}:is(.department-card,.block-card):disabled{opacity:1;cursor:default}.department-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;color:var(--accent);background:var(--surface-soft);box-shadow:inset 0 1px 1px #ffffff20}.department-icon .ui-icon{width:21px;height:21px}.department-copy{display:block;flex:1;min-width:0}.department-copy strong{display:block;font-weight:500;font-size:14px;line-height:1.35;margin-bottom:5px}.department-copy>span{display:block;font-size:12px;line-height:1.45;color:var(--muted)}.department-state{align-self:flex-start;margin-top:2px;font-size:10px;color:var(--muted);border:1px solid var(--border);border-radius:6px;padding:2px 5px;font-weight:400}.boss-launcher{position:absolute;z-index:10;display:flex;flex-direction:column;align-items:center;gap:7px;width:260px;padding:0;border:0;background:transparent;touch-action:none;user-select:none;-webkit-user-select:none;border-radius:14px}.boss-launcher strong{font-size:20px;font-weight:500;color:var(--text);line-height:1.5;pointer-events:none}.boss-launcher:hover:not(:disabled){background:transparent}.boss-launcher:hover strong{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}.boss-launcher[data-mode=work]{width:104px;gap:3px}.boss-launcher[data-mode=work] strong{font-size:11px}.boss-launcher.is-dragging{cursor:grabbing}.settings-page{max-width:1120px}.settings-page .page-heading{padding-right:110px;min-height:88px;margin-bottom:22px}.settings-page .settings-panel{margin-top:0;border-radius:20px}.settings-page .settings-panel>summary{padding:18px 22px}.settings-content{padding:0 22px 22px}.settings-content .connection-form{gap:16px 20px}.settings-content .muted{line-height:1.6}.settings-panel>summary{font-size:16px}.settings-content input,.settings-content select{background:var(--page)}
.chat-shell{position:fixed;z-index:40;display:flex;flex-direction:column;width:min(620px,calc(100vw - 32px));height:min(710px,calc(100dvh - 100px));min-width:min(340px,calc(100vw - 16px));min-height:300px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border:1px solid var(--border);border-radius:22px;background:var(--surface);box-shadow:0 24px 85px #0c1f3833;overflow:hidden;resize:both}.chat-window-header{position:relative;display:flex;align-items:center;gap:12px;min-height:70px;padding:12px 14px;border-bottom:1px solid var(--border);flex:0 0 auto;touch-action:none;cursor:grab;background:var(--surface)}.chat-shell.is-dragging .chat-window-header{cursor:grabbing}.window-controls{display:flex;gap:7px;flex-shrink:0}.window-controls .icon-button{width:24px;height:24px;min-width:24px;min-height:24px;border:1px solid var(--border);border-radius:50%;color:var(--muted)}.window-controls .icon-button::before{width:12px;height:12px}.window-close:hover:not(:disabled){background:#dd655f;border-color:#dd655f;color:#fff}.window-maximize:hover:not(:disabled){background:#50a570;border-color:#50a570;color:#fff}.chat-heading{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.chat-heading>span:first-child{font-size:15px;font-weight:500;color:var(--text);white-space:nowrap}.connection-indicator{font-size:10px;color:var(--muted)}.chat-header-actions{display:flex;align-items:center;gap:1px;margin-left:auto;cursor:default}.chat-header-actions .icon-button{width:34px;height:34px;min-width:34px;min-height:34px}.chat-header-actions .icon-button::before{width:18px;height:18px}.chat-shell .messages{height:auto;min-height:100px;flex:1 1 auto;padding:22px 18px;scrollbar-width:thin}.message{font-size:14px;line-height:1.6;padding:14px 16px;border-radius:14px;margin-bottom:15px}.message--user{margin-left:34px}.message--assistant{margin-right:14px;background:var(--page)}.message-meta{font-size:11px}.message-text{line-height:1.65}.composer-area{flex:0 0 auto;padding:12px 16px 14px;max-height:55%;overflow:auto}.composer{position:relative;padding:8px 10px 7px;border:1px solid var(--border);border-radius:18px;background:var(--page)}.composer textarea{min-height:72px;max-height:160px;padding:6px 2px;border:0;border-radius:0;background:transparent;font-size:14px;line-height:1.5;resize:vertical}.composer textarea:focus{outline:none}.composer:focus-within{border-color:var(--focus);box-shadow:0 0 0 2px color-mix(in srgb,var(--focus) 15%,transparent)}.composer-actions{align-items:center;flex-wrap:nowrap;gap:8px;margin-top:2px}.input-actions{flex:1;gap:4px}.send-actions{width:auto;gap:6px}.send-actions .icon-button,.input-actions .icon-button{flex:0 0 auto;min-width:38px;width:38px;min-height:38px;padding:0}.chat-status{min-height:0;margin:0;font-size:12px}.chat-status:not(:empty){margin-bottom:8px}.chat-popover{position:absolute;z-index:5;top:70px;right:10px;width:min(480px,calc(100% - 20px));max-height:calc(100% - 85px);overflow:auto;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 15px 45px #10233030}.popover-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.popover-heading h2{font-size:16px;font-weight:500}.model-section{margin:0}.model-controls{grid-template-columns:1fr;gap:14px}.model-controls select{font-size:14px}.history-toolbar{padding:0 0 12px}.history-toolbar button{width:100%;font-size:12px}.chat-history-list{display:flex;flex-direction:column;gap:8px}.history-entry{display:flex;flex-direction:column;gap:5px;width:100%;padding:11px 13px;text-align:left;border-radius:11px;background:var(--page);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.history-entry small{font-size:10px;color:var(--muted)}.history-entry span{white-space:pre-wrap}.message:focus{outline:2px solid var(--focus);outline-offset:2px}.followup-controls{margin:5px 0 9px;padding:8px;border:1px solid var(--border);border-radius:10px}.followup-controls label{font-size:11px}.followup-controls select{font-size:12px;min-height:34px;padding:5px 8px}.followup-controls .input-help{font-size:10px;line-height:1.5}.progress-panel{font-size:12px;margin:8px 0}.queue-list li,.queue-status{font-size:12px}.recording-draft{font-size:12px}.recording-draft a{font-family:inherit}
#voice-chat-controls{position:relative}#voice-chat-controls .voice-chat-actions{margin:0;gap:0}#voice-chat-help{position:absolute;right:0;top:calc(100% + 12px);width:250px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 8px 30px #10233020;font-size:11px;line-height:1.5;z-index:4;display:none}#voice-chat-controls:focus-within #voice-chat-help,#voice-chat-controls:has([aria-pressed=true]) #voice-chat-help{display:block}#voice-turn-button,#voice-interrupt-button{position:absolute;right:0;top:calc(100% + 12px);width:200px;min-height:38px;font-size:12px;background:var(--surface);z-index:5}#voice-chat-controls:has(#voice-turn-button:not([hidden])) #voice-chat-help,#voice-chat-controls:has(#voice-interrupt-button:not([hidden])) #voice-chat-help{top:calc(100% + 56px)}
.chat-shell[data-pinned=true]{top:101px;right:16px;left:auto;width:min(510px,calc(100vw - 32px));height:calc(100dvh - 117px);box-shadow:0 12px 40px #0c1f381a;resize:none}.chat-shell[data-maximized=true]{inset:12px!important;width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:none;max-height:none;resize:none;border-radius:18px}.chat-shell[data-maximized=true] .messages{padding-inline:max(22px,calc((100% - 900px)/2))}.chat-shell[data-maximized=true] .composer-area{padding-inline:max(22px,calc((100% - 900px)/2))}.login-card{border-radius:22px;box-shadow:0 12px 45px var(--shadow)}.login-card .brand{font-size:23px;color:var(--text);letter-spacing:-1px;font-weight:500}.login-card h1{font-weight:500}
@media(min-width:1180px){.has-pinned-chat .page-view{margin-right:535px}.has-pinned-chat .department-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.has-pinned-chat .department-state{display:none}}
@media(max-width:1100px){.department-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.department-state{display:none}.page-view{padding:25px 24px 32px}}
@media(max-width:720px){.app-header{padding:14px 18px;gap:10px;min-height:74px}.header-actions{gap:8px}.header-navigation{gap:15px}.wordmark{font-size:23px}.nav-button{font-size:13px;padding:7px 8px}.page-heading h1{font-size:23px}.department-cards{gap:13px}:is(.department-card,.block-card){padding:16px;gap:12px;min-height:112px;border-radius:22px}.settings-page .page-heading{padding-right:98px}.settings-content{padding:0 16px 18px}.settings-content .connection-form{grid-template-columns:1fr}.connection-footer{flex-direction:column;gap:12px}.chat-shell{resize:none}.chat-shell[data-pinned=true]{top:86px;height:calc(100dvh - 100px)}}
@media(max-width:480px){.app-header{padding:12px;gap:6px;flex-wrap:wrap}.header-navigation{gap:9px}.header-actions{gap:5px}.header-actions>.header-menu>.nav-button>span:last-child{display:none}.wordmark{font-size:21px}.header-navigation .nav-button{font-size:12px;gap:5px}.header-navigation .nav-button .ui-icon{width:16px;height:16px}.theme-switch{padding:2px}.theme-switch .icon-button{width:29px;height:29px;min-width:29px;min-height:29px}.theme-switch .icon-button::before{width:16px;height:16px}.page-view{padding:22px 14px 28px}.page-heading h1{font-size:22px}.department-cards{grid-template-columns:1fr;gap:12px}:is(.department-card,.block-card){min-height:103px;border-radius:23px}.department-state{display:block}.boss-home-slot{height:261px;width:240px;margin-bottom:18px}.boss-launcher{width:240px}.boss-launcher strong{font-size:18px}.boss-launcher[data-mode=work]{width:94px}.boss-launcher[data-mode=work] strong{font-size:10px}.chat-shell,.chat-shell[data-pinned=true]{top:8px;left:8px;right:auto;width:calc(100vw - 16px);height:calc(100dvh - 16px);min-height:260px;max-height:calc(100dvh - 16px);border-radius:18px}.chat-window-header{min-height:96px;flex-wrap:wrap;padding:12px;gap:7px}.chat-heading{flex:1}.chat-header-actions{flex-basis:100%;justify-content:flex-end;height:31px}.chat-popover{top:96px;max-height:calc(100% - 106px)}.chat-shell .messages{padding:16px 12px}.message{font-size:14px;padding:12px 13px}.message--user{margin-left:18px}.message--assistant{margin-right:4px}.composer-area{padding:10px 11px 12px}.composer textarea{font-size:16px;min-height:70px}.input-actions{flex:1;flex-basis:auto}.send-actions{width:auto}.send-actions button{min-width:38px}.chat-shell[data-maximized=true]{inset:4px!important;width:calc(100vw - 8px);height:calc(100dvh - 8px);border-radius:12px}.chat-shell[data-maximized=true] .messages,.chat-shell[data-maximized=true] .composer-area{padding-inline:12px}.settings-page .settings-panel>summary{padding:16px;font-size:14px}.settings-page .page-heading{padding-right:90px}.settings-page .page-heading h1{font-size:20px}.nav-menu{width:270px}.header-navigation .nav-menu{left:-105px}.input-actions .icon-button{flex:0 0 38px}.settings-content input,.settings-content select{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
[data-icon=x]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%206%2012%2012M6%2018%2018%206%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=expand]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203H3v5m13-5h5v5M3%2016v5h5m13-5v5h-5M3%203l6%206m12-6-6%206M3%2021l6-6m12%206-6-6%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=restore]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%203v6H3m12-6v6h6M3%2015h6v6m12-6h-6v6%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=pin]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m16%203%205%205-4%201-3%205v3l-2%202-7-7%202-2h3l5-3zM9%2015l-6%206%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=history]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011a9%209%200%201%201%202.4%207M3%204v7h7m2-4v5l3%202%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=settings]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%203-1%203-3%201v3l-2%202%202%202v3l3%201%201%203h6l1-3%203-1v-3l2-2-2-2V7l-3-1-1-3z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=headphones]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2014v-3a9%209%200%200%201%2018%200v3M3%2013h4v8H5a2%202%200%200%201-2-2zm18%200h-4v8h2a2%202%200%200%200%202-2z%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=mic]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%222%22%20width%3D%226%22%20height%3D%2213%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M5%2010v2a7%207%200%200%200%2014%200v-2m-7%209v3m-4%200h8%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=paperclip]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m21%2011-9%209a6%206%200%200%201-8-8L14%202a4%204%200%200%201%206%206L10%2018a2%202%200%200%201-3-3l9-9%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=send]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2020V4m-6%206%206-6%206%206%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=stop]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%2214%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=layers]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%2010%206-10%206L2%209zm-9%2011%209%205%209-5M3%2018l9%205%209-5%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=chevron]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=sun]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M12%202v2m0%2016v2M2%2012h2m16%200h2M5%205l1.5%201.5m11%2011L19%2019M5%2019l1.5-1.5m11-11L19%205%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=moon]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2013A9%209%200%200%201%2011%203%209%209%200%201%200%2021%2013Z%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=key]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%225%22%2F%3E%3Cpath%20d%3D%22m12%2012%209%209m-5-5%203-3m-7%209%203-3%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=bot]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%224%22%2F%3E%3Cpath%20d%3D%22M12%207V3m-3%200h3M7%2012h1m8%200h1m-9%205h8M1%2012v5m22-5v5%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=reset]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011a9%209%200%201%201%202.4%207M3%204v7h7%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=logout]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%203H4v18h5m0-9h12m-5-5%205%205-5%205%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=bag]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%2216%22%20height%3D%2215%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M8%208V6a4%204%200%200%201%208%200v2%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=megaphone]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%209%2014-5v16L3%2015zm14-1%204%202v4l-4%202M6%2016l1%206h4l-2-5%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=image]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%223%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%221%22%2F%3E%3Cpath%20d%3D%22m3%2017%205-5%204%204%204-6%205%208%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=box]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%209%205v10l-9%205-9-5V8zm0%2010v10M3%208l9%205%209-5M7%205l9%205%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=warehouse]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%208%209-5%209%205v13H3zm4%2013V11h10v10M7%2015h10M7%2018h10%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=truck]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%205h12v13H2zm12%204h4l4%205v4h-8%22%2F%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2219%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2219%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=wallet]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%209V5l15-3v3m3%207h-6v5h6%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=calculator]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%222%22%20width%3D%2214%22%20height%3D%2220%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M8%206h8M8%2011h1m6%200h1m-8%204h1m6%200h1m-8%204h1m6%200h1%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=scale]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v18m-5%200h10M3%207l9-2%209%202M5%207l-4%208h8zm14%200-4%208h8%22%2F%3E%3C%2Fsvg%3E")}
[data-icon=users]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M2%2021v-2a4%204%200%200%201%204-4h6a4%204%200%200%201%204%204v2M16%203.13a4%204%200%200%201%200%207.75M22%2021v-2a4%204%200%200%200-3-3.87%22%2F%3E%3C%2Fsvg%3E")}
/* Audio action popovers are wider than their header icon anchor. */
#voice-turn-button,#voice-interrupt-button{max-width:none;white-space:normal}
.connection-meta{font-family:inherit}
/* Open navigation must remain above the pinned chat window. */
.app-header:has(.nav-menu:not([hidden])){z-index:60}
/* Consistent surfaces and a layout column for the pinned chat. */
@font-face{font-family:Wordmark;src:url('/static/fonts/space-grotesk-latin.woff2') format('woff2');font-weight:300 700;font-display:swap}

:root[data-theme=dark]{--page:#1b232c;--surface:#232d38;--surface-soft:#2c3846;--text:#d6dfe7;--muted:#a6b4c2;--border:#3e4c5c;--accent:#9db3d2;--accent-hover:#b1c5df;--accent-text:#16212e;--focus:#a7bce5;--user-bg:#2f3c4e;--selected:#344254;--error:#efadb1;--error-bg:#483239;--boss-filter:brightness(1.05) contrast(.93) saturate(.85)}
.app-header{position:sticky;top:0;min-height:76px;padding-block:13px}
.wordmark{font-family:Wordmark,Plex,sans-serif;font-size:25px;font-weight:650;letter-spacing:-1.1px}.wordmark span{font-weight:500}
.page-view{padding-top:20px}.page-heading{min-height:34px;margin-bottom:4px}.page-heading h1{margin:0;font-size:22px}.company-page .page-heading{margin-bottom:0}
.boss-home-slot{height:232px;margin:0 auto 14px}.boss-launcher strong{font-size:16px;letter-spacing:.035em;font-weight:550;color:var(--text)}
.department-cards{grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:14px}:is(.department-card,.block-card){min-height:106px;padding:16px 18px;gap:12px;border-radius:21px}.department-copy strong{font-size:14px}.department-copy>span{font-size:12px}.department-state{font-size:10px}
.settings-page{width:100%;max-width:930px;margin-inline:auto}.settings-page .page-heading{width:100%;max-width:830px;min-height:72px;padding-right:115px;margin:0 auto 14px}.settings-page .settings-panel{width:100%;max-width:830px;margin-inline:auto}.settings-content .connection-form{grid-template-columns:minmax(180px,220px) minmax(0,1fr);gap:16px}.settings-content input,.settings-content select{min-height:42px}
.platform-picker{position:relative}.platform-picker img{position:absolute;z-index:1;left:12px;top:9px;width:24px;height:24px;object-fit:contain;border-radius:6px;background:#fff;pointer-events:none}.platform-picker select{padding-left:47px}
select{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a98aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
.settings-panel summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer}.settings-panel summary::-webkit-details-marker{display:none}.settings-panel summary::after{content:'';width:15px;height:15px;flex:0 0 15px;background:var(--muted);mask-image:var(--icon,none);mask-size:contain;mask-repeat:no-repeat;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");transition:transform .15s}.settings-panel details[open]>summary::after,.settings-panel[open]>summary::after{transform:rotate(180deg)}.settings-panel>summary{justify-content:flex-start}.settings-content details>summary{min-height:42px;font-size:14px;font-weight:500}.service-logo{width:26px;height:26px;object-fit:contain}
.chat-shell{resize:none;--chat-header-height:76px}.chat-window-header{min-height:76px;flex-wrap:wrap;gap:9px;padding:11px 12px}.chat-identity{display:flex;flex:1;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:155px}.chat-heading{flex:1;min-width:110px}.chat-heading>span:first-child{font-size:13px;letter-spacing:.035em;font-weight:550;color:var(--text)}.connection-indicator{font-size:11px;color:var(--muted)}#boss-status::before{content:'';display:inline-block;width:5px;height:5px;margin-right:5px;vertical-align:2px;border-radius:50%;background:var(--muted)}#boss-status[data-online=true]::before{background:#6caa8a}
.chat-popover{top:var(--chat-header-height);max-height:calc(100% - var(--chat-header-height) - 10px)}.chat-header-actions{flex:0 0 auto;gap:0}.chat-heading .visually-hidden{position:absolute}
#voice-chat-controls,#voice-chat-controls .voice-chat-actions{display:contents}.audio-chat-button{display:inline-flex;align-items:center;gap:6px;height:30px;min-height:30px;padding:4px 8px;border:1px solid var(--border);font-size:0;line-height:1;background:transparent;color:var(--text);border-radius:9px;white-space:nowrap}.audio-chat-button::before{content:'';display:block;width:16px;height:16px;background:currentColor;mask-image:var(--icon);mask-size:contain;mask-repeat:no-repeat}.audio-chat-button::after{content:attr(data-label);font-size:11px;line-height:1.3}.audio-chat-button[aria-pressed=true]{color:var(--error);border-color:var(--error);background:var(--error-bg)}
#voice-chat-help{right:12px;top:calc(100% + 8px);max-width:calc(100% - 24px)}#voice-turn-button,#voice-interrupt-button{right:12px;top:calc(100% + 8px)}#voice-chat-controls:has(#voice-turn-button:not([hidden])) #voice-chat-help,#voice-chat-controls:has(#voice-interrupt-button:not([hidden])) #voice-chat-help{top:calc(100% + 54px)}
.send-actions #send-button{width:72px;min-width:72px;height:36px;min-height:36px;border-radius:999px}.composer-actions{min-height:42px;align-items:flex-end}.composer-actions .input-actions{align-self:flex-start;align-items:center}.composer-actions .send-actions{align-self:flex-end}
.chat-history-screen{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.history-heading{padding:16px 18px 12px;border-bottom:1px solid var(--border)}.history-heading h2{font-size:16px;font-weight:500;margin-top:10px}.history-back{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;font-size:12px;padding:2px 0;min-height:30px;color:var(--accent)}.history-back .ui-icon{width:16px;height:16px}.chat-history-screen .history-toolbar{flex:none;padding:12px 18px 0}.chat-history-list{display:block;overflow:auto;min-height:0;padding:16px 18px;scrollbar-gutter:stable}.history-entry{display:block;padding:14px 15px;margin-bottom:12px;font-size:13px;background:var(--page);border:1px solid var(--border)}.history-entry small{display:block;margin-bottom:8px;font-size:11px}.history-message-text{white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}.history-jump{display:block;margin-top:10px;padding:3px 0;min-height:26px;border:0;background:transparent;font-size:11px;color:var(--accent)}
.chat-shell[data-view=history]>.messages,.chat-shell[data-view=history]>.composer-area,.chat-shell[data-view=history]>.file-drop-hint{display:none}
.has-pinned-chat{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,var(--pinned-chat-width,360px));grid-template-rows:auto minmax(0,1fr);column-gap:16px;align-items:start}.has-pinned-chat>.app-header{grid-column:1/-1;grid-row:1}.has-pinned-chat>.page-view{grid-column:1;grid-row:2;margin-right:0;margin-block:0;align-self:start;max-width:none;min-width:0}.has-pinned-chat .department-cards{grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr))}.has-pinned-chat .department-state{display:block}
.chat-shell[data-pinned=true][data-maximized=false]{position:sticky;grid-column:2;grid-row:2;align-self:start;top:calc(var(--app-header-height,76px) + 12px);left:auto;right:auto;width:auto;min-width:0;height:calc(100dvh - var(--app-header-height,76px) - 24px);max-height:none;margin:12px 16px 0 0;box-shadow:0 8px 30px #0c1f3814;border-radius:18px;overflow:visible}.chat-shell[data-pinned=true] .chat-window-header{gap:6px;padding:10px}.chat-shell[data-pinned=true] .chat-header-actions{flex-basis:100%;justify-content:flex-end;height:30px}.chat-shell[data-pinned=true] .chat-identity{min-width:140px}.chat-shell[data-pinned=true] .messages{padding:15px 12px}.chat-shell[data-pinned=true] .composer-area{padding:10px 12px}.chat-shell[data-pinned=true] .composer textarea{font-size:14px}
.chat-shell[data-maximized=true]{position:fixed;inset:8px!important;width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;min-width:0;max-width:none!important;max-height:none!important;margin:0;grid-column:auto;grid-row:auto;overflow:hidden}
.chat-resize-edge{position:absolute;z-index:15;touch-action:none;user-select:none}.chat-resize-edge[data-edge=n],.chat-resize-edge[data-edge=s]{height:8px;left:16px;right:16px;cursor:ns-resize}.chat-resize-edge[data-edge=n]{top:-3px}.chat-resize-edge[data-edge=s]{bottom:-3px}.chat-resize-edge[data-edge=e],.chat-resize-edge[data-edge=w]{width:8px;top:16px;bottom:16px;cursor:ew-resize}.chat-resize-edge[data-edge=e]{right:-3px}.chat-resize-edge[data-edge=w]{left:-3px}.chat-resize-edge[data-edge=ne],.chat-resize-edge[data-edge=nw],.chat-resize-edge[data-edge=se],.chat-resize-edge[data-edge=sw]{width:16px;height:16px}.chat-resize-edge[data-edge=ne],.chat-resize-edge[data-edge=nw]{top:-3px}.chat-resize-edge[data-edge=se],.chat-resize-edge[data-edge=sw]{bottom:-3px}.chat-resize-edge[data-edge=ne],.chat-resize-edge[data-edge=se]{right:-3px}.chat-resize-edge[data-edge=nw],.chat-resize-edge[data-edge=sw]{left:-3px}.chat-resize-edge[data-edge=ne],.chat-resize-edge[data-edge=sw]{cursor:nesw-resize}.chat-resize-edge[data-edge=nw],.chat-resize-edge[data-edge=se]{cursor:nwse-resize}.chat-shell[data-maximized=true]>.chat-resize-edge{display:none}.chat-shell[data-pinned=true]>.chat-resize-edge:not([data-edge=w]){display:none}
@media(max-width:1100px){.department-cards{grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr))}}
@media(max-width:720px){.settings-content .connection-form{grid-template-columns:minmax(0,1fr)}.settings-page{padding-inline:20px}.settings-page .page-heading{padding-right:100px}.wordmark{font-size:23px}}
@media(max-width:679px){.has-pinned-chat{display:block}.chat-shell[data-pinned=true][data-maximized=false]{position:fixed;inset:8px;width:auto;height:auto;min-height:0;max-height:calc(100dvh - 16px);margin:0;border-radius:18px}.chat-shell[data-pinned=true]>.chat-resize-edge{display:none}}
@media(max-width:480px){.app-header{min-height:68px;padding:10px 12px}.page-view{padding-top:16px}.page-heading h1{font-size:21px}.boss-home-slot{height:215px;margin-bottom:14px}.boss-launcher strong{font-size:15px}.boss-launcher[data-mode=work] strong{font-size:10px}:is(.department-card,.block-card){min-height:99px}.department-cards{grid-template-columns:minmax(0,1fr)}.chat-window-header{min-height:100px;padding:10px;gap:6px}.chat-header-actions{flex-basis:100%;height:30px}.chat-identity{min-width:160px;gap:4px 7px}.chat-heading>span:first-child{font-size:12px}.chat-identity .connection-indicator{font-size:10px}.audio-chat-button{padding:4px 6px;height:28px;min-height:28px}.audio-chat-button::after{font-size:10px}.chat-shell[data-maximized=true]{inset:4px!important;width:calc(100vw - 8px)!important;height:calc(100dvh - 8px)!important}.settings-page .page-heading{margin-bottom:10px}.send-actions #send-button{width:66px;min-width:66px}.chat-history-list{padding:12px}.history-heading{padding:12px}.settings-content{padding:0 16px 16px}}
[data-icon=waves]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M3 10v4m4-7v10m5-14v18m5-14v10m4-7v4'/%3E%3C/svg%3E")}
[data-icon=back]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4m6-6-6 6 6 6'/%3E%3C/svg%3E")}
.chat-shell:not([data-maximized=true]){overflow:visible}.chat-window-header{border-radius:21px 21px 0 0}.composer-area,.chat-history-screen{border-radius:0 0 21px 21px}.chat-shell[data-maximized=true] .chat-header-actions{flex-basis:auto}@media(max-width:480px){.chat-shell[data-maximized=true] .chat-header-actions{flex-basis:100%}}
#voice-chat-button{font-size:0!important;line-height:0}
.company-page{container-type:inline-size}.department-cards,.has-pinned-chat .department-cards{grid-template-columns:repeat(3,minmax(0,1fr))}@container(max-width:760px){.department-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@container(max-width:510px){.department-cards{grid-template-columns:minmax(0,1fr)}}
:root{--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a98aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")}
.settings-content select,.model-controls select,#message-kind{appearance:none;background-image:var(--select-chevron);background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding-right:40px}.service-logo{padding:3px;border-radius:7px;background:#fff}.connection-platform{float:left;width:28px;height:28px;margin:1px 10px 12px 0;object-fit:contain;border-radius:7px;background:#fff}
@container(max-width:760px){.department-cards,.has-pinned-chat .department-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:510px){.department-cards,.has-pinned-chat .department-cards{grid-template-columns:minmax(0,1fr)}}
.settings-page{container-type:inline-size}
@container(max-width:600px){.settings-content .connection-form{grid-template-columns:minmax(0,1fr)}.connection-footer{flex-direction:column;align-items:flex-start;gap:10px}.connection-footer p{max-width:100%}}
.chat-shell{min-height:min(340px,calc(100dvh - 16px))}
.chat-shell[data-pinned=true][data-maximized=false]{height:calc(100dvh - var(--app-header-height,76px) - 40px)}
.chat-shell[data-maximized=true]{inset:8px!important;width:auto!important;height:auto!important;min-height:0}
/* Keep connection forms centered in the space remaining beside the pinned chat. */
.has-pinned-chat>.settings-page{width:100%;max-width:930px;margin-inline:auto}
.send-actions #send-button{width:72px;min-width:72px}
/* History reads as a conversation, with direction and color identifying the speaker. */
.history-entry{width:fit-content;max-width:calc(100% - 30px);border-radius:16px;margin:0 auto 14px 0;background:var(--page)}
.history-entry[data-role=user]{margin-left:auto;margin-right:0;background:var(--user-bg);border-color:transparent;border-bottom-right-radius:5px}
.history-entry[data-role=assistant]{border-bottom-left-radius:5px}
.history-entry small{line-height:1.5}.history-jump{width:fit-content}
#send-button[data-icon=send]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.7 3.3c-.7-.3-1.4.3-1.2 1l1.8 6.5 9.2 1.2-9.2 1.2-1.8 6.5c-.2.7.5 1.3 1.2 1l17-7.8c.6-.3.6-1.1 0-1.4Z'/%3E%3C/svg%3E")}
#send-button::before{width:20px;height:20px}
#boss-status{display:inline-flex;align-items:center;align-self:flex-start;gap:5px;padding:3px 7px;border:1px solid var(--border);border-radius:6px;background:var(--surface-soft);font-size:10px;line-height:1.35;white-space:nowrap}
#boss-status::before{margin:0;flex:0 0 5px;background:currentColor}
#boss-status[data-state=online]{color:#276c48;background:#e7f3eb;border-color:#badac7}
#boss-status[data-state=offline]{color:#a63846;background:#fbeaec;border-color:#e9bcc4}
:root[data-theme=dark] #boss-status[data-state=online]{color:#a1d5b5;background:#243e34;border-color:#3b6551}
:root[data-theme=dark] #boss-status[data-state=offline]{color:#efb1ba;background:#442c34;border-color:#75454f}
@media(min-width:680px){.chat-shell[data-pinned=true][data-maximized=false]{margin-top:var(--pinned-chat-offset,12px);height:calc(100dvh - var(--app-header-height,76px) - var(--pinned-chat-offset,12px) - 28px);min-height:0}.chat-shell[data-pinned=true] .messages{min-height:0}}
.platform-picker img[data-marketplace=ozon]{width:64px;height:28px;left:6px;top:7px}
.platform-picker:has(img[data-marketplace=ozon]) select{padding-left:80px}
.connection-platform[data-marketplace=ozon]{width:64px;height:28px}

/* Current working palette and accepted interface refinements. */
:root,:root[data-theme=light]{--page:#f5f6f8;--surface:#fff;--surface-soft:#f6f7f9;--text:#252c34;--muted:#626b76;--border:#dfe3e8;--accent:#5e6e59;--accent-hover:#4d5d49;--accent-text:#fff;--focus:#7e906f;--brand-soft:#edf1e8;--user-bg:#eef1f5;--selected:#edf0f3;--shadow:#252c340a;--error:#c2323c;--error-bg:#fceff0}
:root[data-theme=dark]{--page:#30343b;--surface:#3b4048;--surface-soft:#454b55;--text:#f2f4f7;--muted:#c7cdd5;--border:#59616d;--accent:#b5c1a7;--accent-hover:#c7d2bb;--accent-text:#29302a;--focus:#b5c1a7;--brand-soft:#4b554b;--user-bg:#464e5a;--selected:#4b5360;--shadow:#161a200d;--error:#ffb4bb;--error-bg:#553e45}
.theme-switch [aria-pressed=true]{background:var(--brand-soft)}

.workspace .page-view{background:var(--page);color:var(--text)}
.page-heading h1{color:var(--text)}
:root[data-theme=dark] :is(.department-card,.block-card){border-color:color-mix(in srgb,var(--border) 45%,var(--surface))}
:is(.department-card,.block-card){display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:12px;row-gap:5px}
.department-icon{grid-column:1;grid-row:1/3}
.department-copy{grid-column:2;grid-row:1}
.department-state{display:inline-flex;grid-column:2;grid-row:2;justify-self:start;align-self:start;flex-shrink:0;white-space:nowrap;font-size:11px;margin:0}
.chat-header-actions{height:44px;gap:2px}
.chat-header-actions .icon-button{width:44px;height:44px;min-width:44px;min-height:44px}
.chat-header-actions .icon-button:not(:disabled){color:var(--text)}
.chat-header-actions .icon-button[aria-pressed=true]{color:var(--accent);background:var(--selected)}
.window-controls .icon-button{position:relative;width:44px;height:44px;min-width:44px;min-height:44px;border:0;background:transparent}
.window-controls .icon-button::after{content:'';position:absolute;width:24px;height:24px;border:1px solid var(--border);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}
.window-controls .icon-button::before{position:relative;z-index:1}
.window-close:hover::after{background:var(--error);border-color:var(--error)}
.window-maximize:hover::after{background:var(--accent);border-color:var(--accent)}
.window-maximize:hover::before{color:var(--accent-text)}
.settings-content input::placeholder{color:var(--muted);opacity:1}
#boss-status{font-size:11px}
.chat-status .settings-content .input-help{font-size:13px;line-height:1.5}

#ozon-app-settings details>label{margin-top:16px;margin-bottom:6px}
#ozon-app-settings details>p+p{margin-top:8px}
#ozon-app-save{margin-top:14px}
:is(.department-card,.block-card){align-content:start;align-items:start}
.department-icon{align-self:center}
@media(min-width:680px) and (max-width:1100px){.department-copy>span{min-height:2.9em}}
.chat-shell[data-pinned=true] .chat-window-header{min-height:0;padding:8px;gap:4px}
.chat-shell[data-pinned=true] .composer textarea{height:60px;min-height:60px}
.chat-shell[data-pinned=true] .composer-area{padding:8px 12px 10px}
.chat-shell .chat-status:not(:empty){margin-bottom:4px}
#dictation-help{margin-top:6px;margin-bottom:0;line-height:1.4}
@media(max-width:679px){.chat-window-header{min-height:0;padding:8px;gap:4px}.composer textarea{height:60px;min-height:60px}.composer-area{padding:8px 11px 10px}}

/* Product surfaces own their colors, including embedded previews. */
body,.workspace,.page-view{background:var(--page);color:var(--text)}
.page-heading h1{color:var(--text)}
.wordmark,.login-card .brand{font-family:Wordmark,Plex,sans-serif;font-weight:600;letter-spacing:-.5px}
.wordmark span{font-weight:500}
.boss-launcher .iskra-canvas{display:block;width:232px;height:auto;aspect-ratio:405/392;pointer-events:none;filter:none}
.boss-launcher[data-mode=work] .iskra-canvas{width:70px}
.boss-home-slot{height:266px}
.chat-window-header{flex-wrap:wrap;gap:8px}
.chat-identity{display:flex;align-items:center;gap:7px;flex:1;min-width:150px}
.ceo-avatar{display:block;width:36px;height:auto;aspect-ratio:405/392;flex:0 0 36px;pointer-events:none}
.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1 0 100%;cursor:default}
.chat-toolbar .chat-header-actions{flex:0 0 auto;height:44px}
.chat-toolbar #voice-chat-controls{margin:0}
.chat-shell[data-pinned=true] .chat-toolbar .chat-header-actions{flex:0 0 auto;height:44px}
.chat-identity .chat-heading{min-width:0}
#company-page{position:relative;isolation:isolate}
@media(max-width:480px){.boss-launcher .iskra-canvas{width:210px}.boss-launcher[data-mode=work] .iskra-canvas{width:60px}.boss-home-slot{height:242px}.chat-identity{min-width:145px}}
/* Let the conversation shrink before the composer overflows a short window.
   Long queues, clarification controls and attachments scroll inside the footer. */
.chat-shell .messages{min-height:0}
.chat-shell .composer-area{min-height:0;flex:0 0 auto;max-height:min(55%,calc(100% - var(--chat-header-height,120px) - 44px));overflow-y:auto;overscroll-behavior:contain}
@media(min-width:680px){
  /* Preserve alignment to the page's panel when there is room; on short
     windows leave room for the chat controls below the application header. */
  .chat-shell[data-pinned=true][data-maximized=false]{--chat-top-offset:min(var(--pinned-chat-offset,12px),max(12px,calc(100dvh - var(--app-header-height,76px) - 300px - 28px)));margin-top:var(--chat-top-offset);height:calc(100dvh - var(--app-header-height,76px) - var(--chat-top-offset) - 28px)}
}
/* Action colors are separate from the quiet surfaces and data colors. */
:root{--action:#567332;--action-hover:#436022;--action-text:#fff}
:root[data-theme=dark]{--action:#b4ce7c;--action-hover:#c5dc94;--action-text:#25301b}
.button-primary,.icon-button.button-primary{background:var(--action);border-color:var(--action);color:var(--action-text)}
.button-primary:hover:not(:disabled),.icon-button.button-primary:hover:not(:disabled){background:var(--action-hover);border-color:var(--action-hover);color:var(--action-text)}
.window-controls{gap:0}.chat-toolbar{justify-content:flex-start;gap:6px}.chat-toolbar .chat-header-actions{margin-left:0;gap:0}.input-actions{gap:0}
.boss-launcher[data-interaction=pointer]:focus,.boss-launcher.is-dragging{outline:none;box-shadow:none}
:is(.department-card,.block-card):hover,:root[data-theme=dark] :is(.department-card,.block-card):hover{border-color:var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 25%,transparent)}
.connection-item{display:grid;grid-template-columns:36px minmax(0,1fr) auto 32px;align-items:center;gap:12px;padding-block:16px}
.connection-item .connection-platform{float:none;margin:0;width:36px;height:30px;object-fit:contain;grid-column:1}
.connection-identity{grid-column:2;min-width:0}.connection-name{margin:0;font-size:15px;font-weight:500;overflow-wrap:anywhere}
.connection-identity .connection-meta{margin:3px 0 0;font-size:12px}
.connection-state{font-size:12px;white-space:nowrap;min-height:34px;padding:5px 10px;border-radius:9px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--border)}
.connection-state--connected{color:#23663d;background:#e8f3e5;border-color:#b5d1a9}
.connection-state--disconnected{color:var(--error);background:var(--error-bg);border-color:var(--error)}
:root[data-theme=dark] .connection-state--connected{color:#d0e6a5;background:#3f5136;border-color:#718f59}
.info-note{position:relative;flex:0 0 auto;min-width:0}.info-note[open]{z-index:75}
.info-note>summary,.settings-panel .info-note>summary{display:grid;place-items:center;list-style:none;width:32px;height:34px;min-height:34px;padding:0;cursor:pointer;color:var(--muted);font-size:14px;font-style:italic;font-weight:600;border:0;border-radius:9px}
.info-note>summary::-webkit-details-marker{display:none}.settings-panel .info-note>summary::after{display:none}
.info-note>summary::before{content:'';position:absolute;width:18px;height:18px;border:1.5px solid currentColor;border-radius:50%;pointer-events:none}
.info-note>summary:hover,.info-note[open]>summary{color:var(--text);background:var(--surface-soft)}
.info-note-panel{position:fixed;z-index:80;width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 12px 40px #10172026;font-size:13px;line-height:1.6;color:var(--text)}
.info-note-panel p{margin:0}.info-note-panel p+p{margin-top:10px}
.telegram-status-row{display:flex;align-items:center;gap:6px}.telegram-status-row .telegram-summary{flex:0 1 auto}
.info-note--warning>summary{color:var(--accent)}

/* .12: one compact header row; small feedback sits inside each pointer target. */
.chat-window-header{min-height:60px;flex-wrap:nowrap;gap:4px;padding:8px}
.chat-window-header .window-controls{gap:0}
.chat-shell .chat-window-header .chat-identity{flex:0 1 auto;flex-wrap:nowrap;min-width:112px;gap:6px;margin-left:4px}
.chat-window-header .ceo-avatar{width:30px;height:30px;flex:0 0 30px}
.chat-window-header .chat-heading{gap:2px;min-width:0}
.chat-window-header .chat-heading>span:first-child{font-size:12px;letter-spacing:.015em;line-height:1.2}
.chat-window-header #boss-status{font-size:10px;line-height:1.2;padding:2px 5px;gap:4px;border-radius:5px}
.chat-window-header .chat-toolbar{flex:0 0 auto;gap:2px;justify-content:flex-start}
.chat-window-header .chat-header-actions{flex:0 0 auto;height:34px;gap:0;margin-left:0;justify-content:flex-start}
.chat-window-header .window-controls .icon-button,.chat-window-header .chat-header-actions .icon-button{position:relative;width:28px;height:34px;min-width:28px;min-height:34px;border:0;border-radius:6px;background:transparent;box-shadow:none}
.chat-window-header .chat-header-actions .icon-button::before{width:17px;height:17px;position:relative;z-index:1}
.chat-window-header .chat-header-actions .icon-button::after{content:'';position:absolute;inset:5px 3px;border:1px solid transparent;border-radius:6px;pointer-events:none}
.chat-window-header .chat-header-actions .icon-button:hover::after{background:var(--surface-soft)}
.chat-window-header .chat-header-actions .icon-button[aria-pressed=true]::after,.chat-window-header .chat-header-actions .icon-button[aria-expanded=true]::after{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}
.chat-window-header .window-controls .icon-button:hover{background:transparent}
.chat-window-header .window-close:hover::after{background:color-mix(in srgb,var(--error) 12%,var(--surface));border-color:var(--error)}
.chat-window-header .window-close:hover::before{color:var(--error)}
.chat-window-header .window-maximize:hover::after{background:var(--surface-soft);border-color:var(--accent)}
.chat-window-header .window-maximize:hover::before{color:var(--text)}
.chat-window-header .audio-chat-button{height:30px;min-height:30px;padding:4px 6px;gap:4px;border-color:transparent;border-radius:6px}
.chat-shell[data-compact=true] .chat-identity{gap:4px;margin-left:2px}.chat-shell[data-compact=true] .ceo-avatar{width:24px;height:24px;flex-basis:24px}
.chat-shell[data-compact=true] .audio-chat-button{width:56px;min-width:56px;padding:4px;gap:3px}
.chat-shell[data-compact=true] .audio-chat-button::after{content:'Аудио';font-size:10px}
.chat-shell .send-actions #send-button{width:80px;min-width:80px;height:40px;min-height:40px;border-radius:13px;background:var(--action);border-color:var(--action);color:var(--action-text);opacity:1;box-shadow:0 2px 7px color-mix(in srgb,var(--action) 22%,transparent)}
.chat-shell .send-actions #send-button:hover:not(:disabled){background:var(--action-hover);border-color:var(--action-hover)}
.chat-shell .send-actions #send-button:disabled{box-shadow:none}
.chat-shell .send-actions #send-button:disabled::before{opacity:.45}
.boss-launcher{gap:3px}.boss-launcher strong{font-size:15px;line-height:1.2;letter-spacing:.015em}
.boss-launcher[data-mode=work] strong{font-size:10px;line-height:1.2}
.agent-connection-row{display:flex;align-items:center;gap:12px;padding:8px 0 14px;min-width:0}
.agent-connection-row>strong{font-size:15px;font-weight:500;flex:1;min-width:0}
.agent-connection-row .service-logo{width:28px;height:28px}
.agent-connection-row .connection-state{font-size:12px}
.agent-setup>summary,.settings-content .agent-setup>summary{display:inline-flex;min-height:36px;padding:7px 12px;border:1px solid var(--action);border-radius:10px;background:var(--action);color:var(--action-text);font-size:13px;gap:6px}
.settings-content .agent-setup>summary::after{display:none}
.agent-setup[data-configured=true]>summary{background:transparent;color:var(--muted);border-color:transparent;font-size:12px;padding:4px 0;min-height:30px}
.agent-setup-content{padding-top:16px}
#telegram-status:empty,#telegram-setup:not([open])~#telegram-status:not(.status-error){display:none}
#telegram-info .telegram-summary{margin-bottom:8px}
#telegram-info #telegram-delivery-note{margin-top:10px;color:var(--muted)}
@media(max-width:359px){.chat-shell .chat-window-header{flex-wrap:wrap;row-gap:0}.chat-window-header .chat-toolbar{margin-left:auto}.chat-window-header{padding-inline:6px}.chat-shell[data-compact=true] .audio-chat-button{width:52px;min-width:52px}.chat-shell .chat-window-header .chat-identity{min-width:100px;margin-left:0;gap:3px}.chat-window-header .ceo-avatar{width:24px;height:24px;flex-basis:24px}.chat-window-header .chat-heading>span:first-child{font-size:11px}.chat-window-header #boss-status{font-size:9px}.chat-window-header .window-controls .icon-button,.chat-window-header .chat-header-actions .icon-button{width:26px;min-width:26px}.agent-connection-row{gap:7px;flex-wrap:wrap}.agent-connection-row .connection-state{margin-left:35px}}
@media(pointer:coarse){.chat-window-header{flex-wrap:wrap}.chat-window-header .audio-chat-button{height:44px;min-height:44px}.chat-window-header .window-controls .icon-button,.chat-window-header .chat-header-actions .icon-button{width:44px;height:44px;min-width:44px;min-height:44px}.chat-window-header .chat-toolbar{margin-left:auto}.chat-window-header .chat-header-actions{height:44px}.chat-shell[data-compact=true] .audio-chat-button{width:auto;min-width:80px;height:44px}.chat-shell[data-compact=true] .audio-chat-button::after{content:attr(data-label)}}
@media(max-width:480px){.connection-item{grid-template-columns:30px minmax(0,1fr) 32px;gap:8px}.connection-item .connection-platform{width:30px}.connection-state{grid-column:2;grid-row:2;justify-self:start}.connection-item>.info-note{grid-column:3;grid-row:1/3}.connection-name{font-size:14px}}

/* CEO workspace: stable utility row, then identity and the voice entry point. */
.chat-shell .chat-window-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;min-height:128px;padding:10px 18px 16px;background:var(--surface)}
.chat-shell .chat-window-header .window-controls{grid-column:1;grid-row:1}
.chat-shell .chat-window-header .chat-identity{grid-column:1;grid-row:2;min-width:0;margin-left:0;gap:12px}
.chat-shell .chat-window-header .ceo-avatar{width:76px;height:74px;flex-basis:76px}
.chat-shell .chat-window-header .chat-heading>span:first-child{font-size:16px;line-height:1.3;letter-spacing:.015em}
.chat-shell .chat-window-header #boss-status{font-size:10px;line-height:1.3;padding:2px 5px;gap:4px}
.chat-shell .chat-window-header .chat-toolbar{display:contents}
.chat-shell .chat-window-header .audio-chat-button{grid-column:2;grid-row:2;justify-self:end;margin:0;width:auto;min-width:108px;height:44px;min-height:44px;padding:10px 14px;border:1px solid var(--border);border-radius:14px;background:var(--brand-soft);gap:8px}
.chat-shell .chat-window-header .audio-chat-button::before{width:22px;height:22px}
.chat-shell .chat-window-header .audio-chat-button::after{content:attr(data-label);font-size:14px;font-weight:600}
.chat-shell .chat-window-header .chat-header-actions{grid-column:2;grid-row:1;justify-self:end;margin:0;gap:4px;height:34px}
.chat-shell .chat-window-header .chat-header-actions .icon-button,.chat-shell .chat-window-header .window-controls .icon-button{width:34px;min-width:34px;height:34px;min-height:34px}
.chat-shell[data-compact=true] .chat-window-header{grid-template-columns:auto minmax(0,1fr)}
.chat-shell[data-compact=true] .chat-window-header .chat-identity{grid-column:1/3;grid-row:2}
.chat-shell[data-compact=true] .chat-window-header .audio-chat-button{grid-column:1/3;grid-row:3;justify-self:stretch;width:100%;height:40px;min-height:40px}
.chat-shell[data-compact=true] .chat-window-header .chat-header-actions{grid-column:2;grid-row:1}
.chat-shell .send-actions #send-button,.chat-shell .send-actions #send-button:not(:disabled){width:42px;min-width:42px;height:42px;min-height:42px;border-radius:13px;background:var(--accent);border-color:var(--accent);color:var(--accent-text);box-shadow:none}
:root[data-theme=dark] .chat-shell .send-actions #send-button:not(:disabled){background:var(--accent);border-color:var(--accent);color:var(--accent-text);box-shadow:none}
.chat-shell .send-actions #send-button:not(:disabled)::before{width:20px;height:20px;opacity:1}
.chat-shell .send-actions #dictation-stop{width:42px;min-width:42px;height:42px;border:1px solid var(--border);background:var(--surface-soft);color:var(--text)}
.chat-shell .send-actions #dictation-stop::before{width:16px;height:16px}
.chat-shell .messages{padding:22px 24px;background:var(--surface);gap:22px}
.chat-shell .message--assistant{max-width:100%;width:100%;padding:0 0 20px;background:transparent;border:0;border-bottom:1px solid color-mix(in srgb,var(--border) 55%,transparent);border-radius:0;box-shadow:none}
.chat-shell .message--user{max-width:88%;border-radius:18px 18px 6px 18px;padding:14px 17px;border:0;background:var(--user-bg)}
.chat-shell .message-meta{font-size:11px;color:var(--muted);margin-bottom:8px}
.chat-shell .message-text{font-size:14px;line-height:1.65}
.chat-shell .composer-area{padding:10px 18px 16px;background:var(--surface);border-top:0}
.chat-shell .composer{border:1px solid var(--border);border-radius:20px;background:var(--page);padding:12px}
.chat-shell .composer textarea{border:0;background:transparent;padding:2px 4px;min-height:56px;resize:none}
.chat-shell .composer textarea:focus{box-shadow:none;outline:0}
.chat-shell .composer-actions{background:var(--page);border-radius:0 0 10px 10px}
.chat-shell .composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 15%,transparent)}
.message-reply,.history-entry-actions .history-jump{font-size:12px;padding:5px 0;color:var(--accent);border:0;background:transparent;min-height:30px}
.message-reply{margin-top:10px}
.message-reply:hover,.history-jump:hover{text-decoration:underline}
.message-quote{display:block;width:100%;text-align:left;border:0;border-left:2px solid var(--accent);border-radius:0;background:var(--brand-soft);padding:8px 10px;margin:4px 0 12px;color:var(--muted);font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.reply-preview{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border-left:2px solid var(--accent);padding:8px 0 8px 10px;margin-bottom:10px;background:var(--brand-soft);border-radius:0 8px 8px 0}
.reply-preview>div{min-width:0}.reply-label{color:var(--accent);font-weight:600;font-size:12px}
.reply-preview p{font-size:12px;color:var(--muted);margin:4px 0 0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.reply-preview .icon-button{width:32px;min-width:32px;height:32px}
.history-search{display:flex;gap:6px;margin:0 20px 12px}.history-search input{min-width:0;flex:1;border:1px solid var(--border);border-radius:12px;background:var(--page);color:var(--text);padding:12px;font:inherit;font-size:14px}
#history-search-status{margin:0 20px 12px}#history-search-more{margin:4px 20px 20px;width:calc(100% - 40px)}
.history-entry-actions{display:flex;gap:20px;flex-wrap:wrap;margin-top:12px}
#history-search-results .history-entry{max-width:100%;width:100%;background:var(--surface);border-radius:14px}
.chat-shell .message:focus{outline:2px solid var(--focus);outline-offset:5px}
@media(pointer:coarse){.chat-shell .chat-window-header .chat-header-actions .icon-button,.chat-shell .chat-window-header .window-controls .icon-button{width:44px;min-width:44px;height:44px;min-height:44px}.chat-shell .chat-window-header .chat-header-actions{height:44px}}
@media(max-width:480px){.chat-shell .messages{padding:18px}.chat-shell .composer-area{padding:8px 12px 12px}}
.chat-shell[data-short=true] .chat-window-header{grid-template-columns:minmax(0,1fr) auto;min-height:0;padding:6px 12px 10px;gap:4px 8px}
.chat-shell[data-short=true] .chat-window-header .chat-identity{grid-column:1;grid-row:2;gap:8px}
.chat-shell[data-short=true] .chat-window-header .ceo-avatar{width:48px;height:47px;flex-basis:48px}
.chat-shell[data-short=true] .chat-window-header .chat-heading>span:first-child{font-size:14px}
.chat-shell[data-short=true] .chat-window-header .audio-chat-button{grid-column:2;grid-row:2;justify-self:end;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;margin:0}
.chat-shell[data-short=true] .chat-window-header .audio-chat-button::after{display:none}
.chat-shell[data-short=true] .composer textarea{height:40px;min-height:40px;max-height:80px}
.chat-shell[data-short=true] .composer{padding:8px}
.chat-shell[data-short=true] .reply-preview{padding-block:4px;margin-bottom:6px}
.chat-shell[data-short=true] .reply-preview p{-webkit-line-clamp:1;line-height:16px;margin-top:2px}
.chat-shell[data-short=true] .composer-area{padding:6px 12px 10px}
.chat-shell[data-short=true] .chat-status{font-size:11px;line-height:1.3}
.chat-shell[data-short=true] .messages{padding:12px 18px}
.chat-shell .chat-popover{top:48px;max-height:calc(100% - 60px)}
@media(pointer:coarse){.chat-shell[data-compact=true] .chat-window-header .audio-chat-button{height:44px;min-height:44px}.chat-shell .send-actions #send-button,.chat-shell .send-actions #send-button:not(:disabled),.chat-shell .send-actions #dictation-stop{width:44px;min-width:44px;height:44px;min-height:44px}}

.department-page{container-type:inline-size}.department-section-title{font-size:16px;font-weight:500;margin:26px 0 16px}.breadcrumb-button{display:inline-flex;min-height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:12px}.breadcrumb-button:hover:not(:disabled){background:transparent;color:var(--text);text-decoration:underline}

.credential-controls{border:0;padding:0;margin:0;min-width:0}

[data-icon=file]{--icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8zM14%202v6h6M8%2013h8M8%2017h6%22%2F%3E%3C%2Fsvg%3E")}
