@font-face{font-family:xvf;src:url('/static/assets/xvf.woff2') format('woff2');font-weight:100 900;font-display:swap}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{font:14px xvf,Arial,sans-serif;color:#141414;background:#fcfcfc}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer;border:0;background:none}button:disabled{cursor:default;opacity:.45}button:hover{background-color:#14141408}button:focus-visible,a:focus-visible{outline:2px solid #9159fe;outline-offset:2px}input,textarea,select{border:1px solid #dedede;border-radius:10px;background:#fff;padding:10px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:#a3a3a3}a{color:inherit}svg{display:block}.app{display:flex;width:100%;height:100dvh;background:#fcfcfc}.roster{width:280px;flex:none;background:#f7f7f7;display:flex;flex-direction:column}.windowbar{height:44px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 12px}.traffic{display:flex;gap:7px}.traffic i{height:12px;width:12px;border-radius:50%;background:#ff5f57;border:1px solid #e24b43}.traffic i:nth-child(2){background:#febc2e;border-color:#e8a821}.traffic i:nth-child(3){background:#28c840;border-color:#1daf33}.icon-button{height:28px;width:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:6px;color:#666}.icon-button svg{width:14px;height:14px}.searchbar{flex:none;display:flex;align-items:center;gap:6px;margin:4px 12px 8px;height:32px;border-radius:6px;background:#eee;color:#777;text-align:left;padding:0 8px;font-size:12px}.searchbar svg{width:12px;height:12px}.searchbar kbd{margin-left:auto;font:10px xvf;opacity:.5}.bot-list{flex:1;overflow:auto;padding:0 12px;min-height:0}.bot-item{width:100%;height:56px;display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;margin-bottom:4px;text-align:left;position:relative}.bot-item.selected{background:#e9e9e9}.avatar{width:36px;height:36px;flex:none;object-fit:contain}.avatar-wrap{position:relative;display:inline-flex;flex:none}.avatar-wrap .state-dot{position:absolute;right:0;bottom:1px;width:8px;height:8px;border-radius:50%;border:2px solid #f7f7f7;background:#00b36c}.state-dot.attention{background:#ff9800}.bot-info{min-width:0;flex:1}.bot-title{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:14px}.bot-title time{font-size:10px;color:#aaa;font-weight:400;flex:none}.bot-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#888;font-size:12px;line-height:18px}.bot-more{position:absolute;right:7px;top:15px;display:none;background:#e9e9e9;border-radius:5px;font-weight:700}.bot-item:hover .bot-more{display:block}.bot-item:hover time{visibility:hidden}.roster-bottom{padding:6px 12px 12px;flex:none;display:flex;flex-direction:column;gap:2px}.footer-row{height:40px;padding:0 8px;display:flex;align-items:center;gap:8px;text-align:left;font-size:12px;border-radius:7px}.footer-row svg{width:14px;height:14px}.profile-placeholder{height:24px;width:24px;border-radius:50%;background:#deddd9;display:inline-flex;align-items:center;justify-content:center;font-size:11px}.unread{margin-left:auto;font-size:11px;background:#141414;color:#fff;border-radius:20px;padding:2px 6px}.chat{flex:1;min-width:0;position:relative;display:flex;flex-direction:column}.chat-header{height:44px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 8px}.heading-button{display:flex;align-items:center;gap:6px;font-size:12px;padding:4px 6px;border-radius:6px}.heading-button img{width:20px;height:20px}.header-actions{display:flex;align-items:center;gap:4px}.notification-dot{display:none;width:5px;height:5px;border-radius:50%;background:#9159fe;position:absolute;right:3px;top:3px}#notifications-button{position:relative}#notifications-button.has-unread .notification-dot{display:block}.messages{flex:1;overflow:auto;padding:16px 20px 24px;display:flex;flex-direction:column;gap:16px;min-height:0}.date-label{text-align:center;font-size:12px;color:#777;margin:0 0 2px}.message{padding:10px 12px;border-radius:14px;background:#ededed;max-width:77%;align-self:flex-start;font-size:14px;line-height:1.38;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#141414;color:#fcfcfc}.message.task{font-size:12px;color:#666;background:transparent;border:1px solid #eee}.message .sender{font-size:11px;margin-bottom:6px;color:#666}.empty-chat{margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;color:#777}.empty-chat img{width:84px;height:84px;margin-bottom:12px}.empty-chat h1{font-size:20px;font-weight:500;color:#141414;margin:0}.empty-chat p{max-width:280px;font-size:13px;line-height:1.5;margin:0}.configure-link{font-size:12px;text-decoration:underline;margin-top:6px}.composer{flex:none;height:auto;min-height:44px;margin:0 20px 12px;border-radius:24px;border:.5px solid #1414141a;box-shadow:0 1px 3px #0000000a;display:flex;align-items:flex-end;padding:7px 8px;gap:8px}.composer textarea{resize:none;border:0;background:none;border-radius:0;min-height:28px;max-height:140px;flex:1;min-width:0;padding:5px 0;font-size:14px;line-height:20px}.composer textarea::placeholder{color:#999}.circle{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;background:#efefef;color:#666}.circle svg{width:12px;height:14px}.circle.black{background:#141414;color:#fcfcfc}.circle.black:hover{background:#333}.small{height:24px;width:24px;margin-bottom:2px}.inspector{width:320px;background:#f7f7f7;flex:none;border-left:.5px solid #14141408;overflow:auto}.inspector>header{height:44px;padding:0 8px;display:flex;align-items:center;justify-content:space-between}.screen-preview{display:flex;flex-direction:column;gap:10px;width:100%;padding:4px 12px 12px;font-size:11px;color:#888}.screen-preview img{width:100%;aspect-ratio:1.6;object-fit:cover;border-radius:6px;background:#e2e2e2}.screen-preview:hover{background:none}.inspector-content{padding:0 16px}.section-label{font-size:12px;color:#777;margin:0 0 6px;display:flex;align-items:center;justify-content:space-between}.section-label button{height:24px;width:24px}.routine-row{display:flex;gap:8px;align-items:center;width:100%;padding:8px 0;text-align:left;font-size:12px}.routine-row svg{width:14px;height:14px;color:#339772;flex:none}.routine-row p{margin:0;color:#888;font-size:11px;line-height:18px}.routine-row .paused svg{color:#777}.quiet-empty{font-size:12px;line-height:1.5;color:#999;padding:10px 0}.approval{border:1px solid #ddd;background:#fcfcfc;border-radius:12px;padding:12px;margin-top:16px;font-size:12px}.approval pre{overflow:auto;font-size:10px}.approval strong{font-size:13px}.approval .buttons{margin-top:10px}.primary,.secondary{background:#141414;color:#fff;border-radius:24px;padding:9px 16px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.primary:hover{background:#333}.secondary{background:#eee;color:#141414}.secondary:hover{background:#e3e3e3}.danger{color:#d74545}.buttons{display:flex;gap:8px;flex-wrap:wrap}.muted{color:#888;font-size:12px;line-height:1.5}.error{color:#ca4242;font-size:12px;margin-top:10px}dialog{padding:0;border:1px solid #e5e5e5;border-radius:18px;width:min(560px,calc(100vw - 32px));max-height:85dvh;box-shadow:0 12px 70px #0002;background:#fcfcfc}dialog::backdrop{background:#0003;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 12px;position:sticky;top:0;background:#fcfcfc;z-index:1}.dialog-header strong{font-weight:500;font-size:17px}#dialog-body{padding:4px 20px 24px;overflow:auto}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-size:13px}.field textarea{min-height:110px;resize:vertical}.field input,.field textarea,.field select{width:100%}.field small{color:#888;font-size:11px}.form-note{font-size:12px;line-height:1.6;color:#888}.item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #eee}.item:last-child{border:0}.item-body{min-width:0;flex:1}.item-title{font-size:14px;font-weight:500}.item p{font-size:12px;color:#888;line-height:1.5;margin:5px 0;overflow-wrap:anywhere}.item .buttons button{font-size:11px;padding:5px 9px}.modal-tabs{display:flex;gap:16px;border-bottom:1px solid #ddd;margin:10px 0 16px}.modal-tabs button{padding:8px 0;color:#999;border-bottom:2px solid transparent}.modal-tabs .active{color:#141414;border-color:#141414}.pill{display:inline-flex;border-radius:20px;padding:3px 8px;background:#eee;font-size:10px;color:#777}.menu{position:fixed;min-width:196px;background:#fcfcfc;border:1px solid #ddd;border-radius:12px;padding:6px;box-shadow:0 4px 30px #0002;z-index:10}.menu button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:6px;text-align:left;font-size:13px}.menu hr{border:0;border-top:1px solid #eee;margin:4px}.menu svg{width:14px;height:14px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#141414;color:#fff;border-radius:12px;padding:12px 18px;font-size:13px;max-width:90%;box-shadow:0 6px 30px #0002;z-index:30}#reference-label{position:fixed;bottom:0;right:8px;font-size:9px;color:#999;background:#fff;z-index:2}.computer-modal{width:min(1040px,95vw)}.computer-screen{width:100%;aspect-ratio:1.6;background:#141414;object-fit:contain;border-radius:8px;cursor:crosshair}.computer-toolbar{display:flex;align-items:center;gap:8px;margin:12px 0}.computer-toolbar input{flex:1;min-width:0;font-size:12px}.computer-toolbar button{padding:8px 12px}.keyboard-controls{display:flex;gap:6px;margin:8px 0}.keyboard-controls button{padding:6px 12px;background:#eee;border-radius:8px;font-size:12px}.check-row{display:flex;align-items:center;gap:8px;padding:8px 0}.check-row input{width:auto}.activity-line{border-left:1px solid #ddd;padding:0 0 16px 14px;margin-left:4px;font-size:12px}.activity-line small{display:block;color:#999;margin-bottom:5px}.login{position:fixed;inset:0;background:#fcfcfc;display:flex;align-items:center;justify-content:center;z-index:40}.login form{width:320px;text-align:center}.login h1{font-size:24px;font-weight:500}.login p{color:#888}.login input{width:100%;margin:10px 0 18px}.login .primary{width:100%}#mobile-back{display:none}[hidden]{display:none!important}body.dark{filter:invert(.92) hue-rotate(180deg)}body.dark .avatar,body.dark .screen-preview img,body.dark .computer-screen{filter:invert(1) hue-rotate(180deg)}.quick-search{width:100%;margin:10px 0}.search-results{max-height:50vh;overflow:auto}.full-width{width:100%}
@media(max-width:1000px){.inspector{width:280px}.roster{width:260px}}@media(max-width:740px){.roster{width:100%;display:flex}.chat,.inspector{display:none}body.mobile-chat .roster{display:none}body.mobile-chat .chat{display:flex}#mobile-back{display:inline-flex}.chat-header{height:64px;padding:10px 16px}.heading-button{border-radius:30px;background:#f2f2f2;padding:8px 12px;font-size:14px}.heading-button img{width:24px;height:24px}.messages{padding:16px;gap:18px}.composer{margin:0 16px 20px}.message{max-width:88%;font-size:15px}.windowbar{height:60px}.traffic{display:none}.windowbar::before{content:'Bots';font-size:24px;font-weight:500}.bot-item{height:72px}.bot-item .avatar{width:44px;height:44px}.bot-title{font-size:16px}.bot-caption{font-size:13px}.roster-bottom{border-top:1px solid #eee}.searchbar{height:38px}.icon-button{width:32px;height:32px}.modal-tabs{gap:12px}.computer-toolbar{flex-wrap:wrap}.computer-toolbar input{flex-basis:70%}}
.message{padding:8px 12px;line-height:20px;max-width:min(300px,85%);border-radius:16px}.message.continued{margin-top:-12px;border-top-left-radius:6px}.message.assistant:has(+.message.continued){border-bottom-left-radius:6px}.bot-item{height:52px}.screen-preview img{aspect-ratio:1.6}.composer{min-height:44px;padding:7px 8px}.composer textarea{min-height:28px}.messages{padding-top:20px}
#notifications-button{display:none}
/* Current installed desktop app, captured 2026-10-09. Article reference stays separate. */
.native-only{display:none}.live-desktop .native-only{display:flex}.live-desktop{font-family:xvf,-apple-system,BlinkMacSystemFont,'PingFang SC',Arial,sans-serif}.live-desktop .roster{position:relative;border-right:.5px solid #ddd}.live-desktop .windowbar{height:64px;justify-content:flex-end;padding:10px 16px;gap:8px}.live-desktop .windowbar .traffic{display:none}.live-desktop #new-button,.live-desktop #search-button{width:36px;height:36px;border:1px solid #e0e0e0;border-radius:50%;padding:9px;background:#fcfcfc}.live-desktop #new-button svg,.live-desktop #search-button svg{width:18px;height:18px;color:#141414}.live-desktop #search-button{position:absolute;top:12px;right:60px;margin:0;gap:0;box-shadow:0 1px 1px #00000005}.live-desktop #search-button>span:not(:first-child),.live-desktop #search-button kbd{display:none}.live-desktop .bot-list{padding:0 12px}.live-desktop .bot-item{height:54px;gap:10px;margin-bottom:4px;border-radius:10px}.live-desktop .bot-item.selected{background:#e2e2e2}.live-desktop .bot-title{font-weight:600;font-size:14px}.live-desktop .bot-caption{font-size:13px;color:#777}.live-desktop .bot-title time{display:none}.live-desktop .roster-bottom{flex-direction:row;gap:8px;padding:12px 16px 16px;height:68px;align-items:center}.live-desktop #account-button{order:-1;width:36px;height:36px;padding:0;border:1px solid #d9d9d9;border-radius:50%;background:#eee;justify-content:center}.live-desktop #account-button .profile-placeholder{width:36px;height:36px;background:transparent;font-size:13px;font-weight:600;color:#777}.live-desktop #account-button>span:not(:first-child){display:none}.live-desktop #plugins-button{flex:1;justify-content:center;height:36px;border:1px solid #dedede;border-radius:24px;background:#fcfcfc;font-size:14px}.app-marks{display:flex;align-items:center;color:#888}.app-marks svg{width:32px!important;height:20px!important}.live-desktop .chat-header{position:absolute;inset:10px 0 auto 0;height:40px;z-index:2;pointer-events:none;justify-content:center}.live-desktop .heading-button{background:#fcfcfcec;backdrop-filter:blur(16px);border:1px solid #e4e4e4;border-radius:24px;padding:9px 12px;font-size:14px;font-weight:600;gap:8px;box-shadow:0 3px 10px #0001;pointer-events:auto}.live-desktop .heading-button img{width:24px;height:24px}.live-desktop .header-actions{position:absolute;right:10px;pointer-events:auto}.live-desktop #computer-button{display:none}.live-desktop .messages{padding:72px 16px 22px;gap:12px}.live-desktop .message{max-width:80%;font-size:14px;line-height:21px;background:#eee;border-radius:17px;padding:10px 12px}.live-desktop .message.user{background:#0b0b0b;color:#fff}.live-desktop .message.continued{margin-top:-8px;border-top-left-radius:5px}.live-desktop .message.assistant:has(+.message.continued){border-bottom-left-radius:5px}.live-desktop .empty-chat{max-width:80%}.live-desktop .composer{margin:0 16px 16px;min-height:44px;padding:7px 8px;gap:8px;border-radius:26px;box-shadow:0 1px 4px #0000000d}.live-desktop .composer textarea{font-size:14px}.live-desktop .circle.small{width:28px;height:28px;margin:0;border:1px solid #dedede}.live-desktop .circle.small svg{width:18px;height:18px}.live-desktop #send-button{background:#ededed;color:#777;border:1px solid #dedede}.live-desktop #send-button svg{width:17px;height:17px}.live-desktop #send-button.has-text{background:#111;color:#fff}.live-desktop #voice-call svg{width:20px;height:20px}.live-desktop .inspector{position:relative;background:#fcfcfc;overflow:auto;border-left:.5px solid #ddd}.live-desktop .inspector>header{height:52px;padding:12px 16px;justify-content:flex-end}.live-desktop .inspector>header>div{display:flex;gap:8px}.live-desktop .inspector>header .icon-button{width:36px;height:36px;border:1px solid #e0e0e0;border-radius:50%;padding:9px;color:#111}.live-desktop .inspector>header .icon-button svg{height:20px;width:20px}.live-desktop #screen-button,.live-desktop #bot-settings{display:none}.live-desktop .inspector-profile{align-items:center;flex-direction:column;padding:18px 16px 12px;gap:10px}.live-desktop #profile-avatar{padding:0;line-height:0;margin-bottom:10px}.live-desktop #profile-name{font-size:16px;font-weight:600}.live-desktop #profile-label{font-size:12px;color:#777}.live-desktop .inspector-tabs{justify-content:center;gap:4px;margin:6px 0 20px}.live-desktop .inspector-tabs button{border-radius:24px;font-size:13px;color:#777;padding:6px 10px}.live-desktop .inspector-tabs button.active{color:#111;background:#eee;font-weight:600}.live-desktop .section-label{font-size:13px;padding:0 12px;color:#777;margin-bottom:10px}.live-desktop .section-label button{opacity:0}.live-desktop .section-label:hover button{opacity:1}.live-desktop .inspector-content{padding:0 16px}.live-desktop #routine-list:has(.routine-row){border:1px solid #ddd;border-radius:16px;padding:4px 12px}.live-desktop .routine-row{font-size:13px;padding:8px 0}.live-desktop .routine-row>span{display:none}.live-desktop .routine-row p{font-size:12px}.live-desktop .quiet-empty{font-size:13px;text-align:center;line-height:1.6;color:#888}.live-desktop .screen-preview{padding:0 16px 16px;gap:10px;font-size:12px}.live-desktop .screen-preview img{border:1px solid #d7d7d7;border-radius:16px;aspect-ratio:1.6}.live-desktop .screen-preview.disconnected::before{content:'';display:block;width:100%;aspect-ratio:1.6;background:#eee;border:1px solid #ddd;border-radius:16px}.library-file{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #eee;font-size:13px}.library-file>span svg{width:20px;height:20px}.library-file>div{flex:1;min-width:0;overflow-wrap:anywhere}.library-file small{display:block;color:#888;margin-top:5px;font-size:11px}.panel-resizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:col-resize}.roster>.panel-resizer{right:-3px}.inspector>.panel-resizer{left:-3px}.panel-resizer:hover{background:#00000007}.settings-modal{position:fixed;inset:0;border:0;border-radius:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0}.settings-modal .dialog-header{position:absolute;right:8px;top:6px;background:none;padding:8px;z-index:3}.settings-modal .dialog-header strong{display:none}.settings-modal #dialog-body{padding:0;height:100%}.settings-layout{display:flex;height:100%}.settings-layout nav{width:220px;flex:none;background:#f6f6f6;padding:72px 16px 20px;display:flex;flex-direction:column;gap:4px;border-right:1px solid #ddd}.settings-layout nav button{padding:12px;text-align:left;border-radius:8px;font-size:14px}.settings-layout nav button.selected{background:#e4e4e4;font-weight:600}.settings-layout section{flex:1;overflow:auto;padding:50px 60px}.settings-layout h2{font-size:24px;font-weight:600;margin:0 0 28px}.settings-layout h3{font-size:16px;font-weight:600;margin:30px 0 12px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0;border-bottom:1px solid #eee}.setting-row input,.setting-row select{max-width:240px;background:#f5f5f5;border:0}.setting-description{padding:18px 0;border-bottom:1px solid #eee;margin-bottom:16px}.setting-description p{font-size:13px;color:#888;line-height:1.6}.setting-description strong{font-weight:500}.market-toolbar{display:flex;gap:12px;margin:12px 0}.market-toolbar input{min-width:0;flex:1}.electron-client .windowbar,.electron-client .chat-header{ -webkit-app-region:drag}.electron-client button,.electron-client input,.electron-client textarea,.electron-client select{ -webkit-app-region:no-drag}
@media(max-width:740px){.live-desktop .windowbar::before{margin-right:auto}.live-desktop .settings-layout nav{width:110px;padding:60px 8px 20px}.live-desktop .settings-layout section{padding:50px 16px}.live-desktop .panel-resizer{display:none}.live-desktop .chat-header{height:44px}.live-desktop #mobile-back{pointer-events:auto;position:absolute;left:12px}}
.live-desktop #routine-list:has(.native-routine){border:1px solid #ddd;border-radius:16px;padding:4px 12px}.native-routine{display:flex;align-items:center;gap:10px;padding:8px 0}.native-routine>button:first-child{min-width:0;flex:1;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;padding:0}.native-routine small{display:block;color:#777;font-size:12px;margin-top:2px}.routine-switch{position:relative;background:#ddd;border-radius:20px;width:32px;height:20px;padding:2px;flex:none}.routine-switch>span{display:block;width:16px;height:16px;background:white;border-radius:50%;box-shadow:0 1px 2px #0001}.routine-switch.on{background:#0a0a0a}.routine-switch.on>span{margin-left:12px}
.live-desktop .inspector-profile{gap:8px;padding-bottom:10px}.live-desktop #profile-avatar{margin-bottom:6px}.live-desktop .inspector-tabs{margin-top:4px;margin-bottom:22px}.live-desktop #routine-list>.quiet-empty{margin-top:30px}
.live-desktop .bot-title,.live-desktop .heading-button,.live-desktop #profile-name{font-weight:500}.live-desktop .inspector-tabs{margin-top:1px}.live-desktop .inspector-tabs button{padding:6px 8px;line-height:14px}.live-desktop #routine-list>.quiet-empty{margin-top:24px;color:#777}.app-marks img{width:42px;height:20px;object-fit:contain}
.group-avatar{position:relative;width:36px;height:36px;flex:none}.group-avatar>.avatar-wrap:first-child{position:absolute;bottom:0;left:0}.group-avatar>.avatar-wrap:nth-child(2){position:absolute;top:0;right:0}.group-avatar .avatar{width:25px;height:25px}
/* Dark surfaces use the existing #252525/#303030 palette, without page inversion. */
body.dark{filter:none;color-scheme:dark;--surface:#252525;color:#eee;background:#1b1b1b}
body.dark .avatar,body.dark .screen-preview img,body.dark .computer-screen{filter:none}
body.dark .roster,body.dark .roster-bottom,body.dark .settings-layout nav{background:#222;color:#eee;border-color:#444}
body.dark .chat,body.dark .messages,body.dark .settings-layout,body.dark .settings-layout section{background:#1b1b1b;color:#eee}
body.dark dialog,body.dark .dialog-header,body.dark .menu,body.dark .inspector,body.dark .live-desktop .inspector,body.dark .settings-modal{background:#252525;color:#eee;border-color:#444}
body.dark button,body.dark .settings-layout nav button,body.dark .bot-title,body.dark .item-title,body.dark .empty-chat h1{color:inherit}
body.dark button:hover,body.dark .bot-item:hover,body.dark .item:hover{background-color:#ffffff0c}
body.dark .bot-item.selected,body.dark .settings-layout nav button.selected,body.dark .inspector-tabs button.active{background:#383838;color:#fff}
body.dark .icon-button,body.dark .inspector>header .icon-button,body.dark #new-button svg,body.dark #search-button svg{color:#ddd;border-color:#555}
body.dark .composer,body.dark .heading-button,body.dark #plugins-button,body.dark #account-button{background:#252525;color:#eee;border-color:#555}
body.dark input,body.dark textarea,body.dark select,body.dark .quick-search,body.dark .setting-row input,body.dark .setting-row select{background:#303030;color:#eee;border-color:#555}
body.dark input::placeholder,body.dark textarea::placeholder{color:#aaa}
body.dark .composer textarea,body.dark .atomic-composer{background:transparent;color:#eee}
body.dark .primary,body.dark .black,body.dark #send-button.has-text{background:#eee;color:#171717;border-color:#eee}
body.dark .secondary,body.dark .keyboard-controls button,body.dark .pill,body.dark #send-button{background:#383838;color:#eee;border-color:#555}
body.dark .muted,body.dark .form-note,body.dark .quiet-empty,body.dark .bot-caption,body.dark .bot-title time,body.dark .item p,body.dark .date-label,body.dark .setting-description p,body.dark .field small{color:#aaa}
body.dark .setting-row,body.dark .setting-description,body.dark .library-file,body.dark .roster-bottom,body.dark .menu hr{border-color:#444}
body.dark .danger{color:#ff9999}

/* Library mirrors Grok Bot's dated, compact file lists. The generic native-only
   display:flex must never turn this panel into a horizontal strip. */
.live-desktop #library-panel{display:block;min-width:0;padding:0 16px 24px}
#library-panel[hidden]{display:none}
.library-group{margin:0 0 24px;min-width:0}
.library-group h3{margin:0;padding:0 12px 12px;font-size:14px;line-height:20px;font-weight:400;color:#777}
.library-list{padding:4px 0;border:1px solid #ebebeb;border-radius:12px;background:#fff;overflow:hidden;min-width:0}
.library-list .library-file{display:flex;width:100%;min-width:0;align-items:center;gap:10px;padding:6px 12px;min-height:36px;border:0;text-align:left;font-size:14px;line-height:22px}
.library-file-symbol{width:20px;height:22px;flex:0 0 20px;object-fit:contain}
.library-file-name{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.library-file-age{flex:none;font-size:11px;color:#888;display:none}
.library-file:hover .library-file-age,.library-file:focus-visible .library-file-age{display:block}
.library-expand{display:block;width:100%;padding:10px 12px 6px;font-size:14px;line-height:20px;color:#777}
.library-empty{margin:30px auto 0;max-width:250px;text-align:center;color:#777;font-size:13px;line-height:20px}
.library-document{line-height:1.6;overflow-wrap:anywhere;min-width:0}
.library-document table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}
.library-document th,.library-document td{border:1px solid #ddd;padding:6px}
.library-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
.library-preview-footer{display:flex;align-items:center;gap:16px;margin-top:24px;border-top:1px solid #eee;padding-top:16px}
.library-preview-footer>span{flex:1;min-width:0;color:#888;font-size:12px;overflow-wrap:anywhere}
body.dark .library-list{background:#252525;border-color:#444}
body.dark .library-file-symbol{opacity:.8}
body.dark .library-group h3,body.dark .library-expand,body.dark .library-empty{color:#aaa}
/* Existing Bot artwork; motion is a transient view of its actual run state. */
.thinking-indicator{align-self:flex-start;display:flex;align-items:center;min-height:60px;padding:8px 12px 12px;flex:none;gap:10px}.thinking-stage{font-size:12px;color:var(--muted,#777)}
.thinking-character{display:block;width:44px;height:44px;transform-origin:50% 65%;will-change:transform;animation:thinking-turn 5.6s cubic-bezier(.45,0,.2,1) infinite}
.thinking-character>svg,.thinking-character>img{display:block;width:44px;height:44px;object-fit:contain}
.thinking-eyes{animation:thinking-glance 5.6s cubic-bezier(.4,0,.2,1) infinite}
.thinking-blink{transform-box:fill-box;transform-origin:center;animation:thinking-blink 6.7s ease-in-out infinite}
@keyframes thinking-turn{0%,12%,49%,58%,95%,100%{transform:perspective(240px) translateY(0) rotateY(0) rotate(0)}27%,38%{transform:perspective(240px) translateX(-2px) translateY(-1px) rotateY(-26deg) rotate(-8deg)}73%,84%{transform:perspective(240px) translateX(2px) translateY(-1px) rotateY(26deg) rotate(8deg)}}
@keyframes thinking-glance{0%,8%,46%,54%,92%,100%{transform:translateX(0)}23%,36%{transform:translateX(calc(-1 * var(--thinking-gaze,16px)))}69%,82%{transform:translateX(var(--thinking-gaze,16px))}}
@keyframes thinking-blink{0%,38%,41%,79%,82%,100%{transform:scaleY(1)}39.5%,80.5%{transform:scaleY(.12)}}
@media(prefers-reduced-motion:reduce){.thinking-character,.thinking-eyes,.thinking-blink{animation:none;will-change:auto}}
