:root{
  font-family:"Microsoft YaHei UI","Microsoft YaHei","Segoe UI Variable",sans-serif;
  font-size:16px;color:#000;background:#fff;font-synthesis:none;color-scheme:light;
  --ink:#000;--muted:#30343a;--line:#dce2ec;--blue:#165dff;--cyan:#cff3ff;--jade:#165dff;--mist:#f3f6fb;
}
*{box-sizing:border-box;letter-spacing:0}
html,body{height:100%;overflow:hidden}
body{margin:0}
button,input,textarea,select{font:inherit;color:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{border:0;background:none;cursor:pointer;transition:background-color .16s,border-color .16s,box-shadow .16s}
button:hover{background:#e8effb}
button:disabled{cursor:not-allowed;opacity:.5}
button svg{width:20px;height:20px;flex-shrink:0;stroke-width:1.8}
a{color:#004ad7}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #165dff;outline-offset:3px}
input,textarea,select{accent-color:var(--blue)}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.skip-link{position:fixed;left:110px;top:8px;transform:translateY(-200%);background:#fff;padding:12px;z-index:200}
.skip-link:focus{transform:none}
.app{height:100dvh;min-height:0;display:grid;grid-template-columns:96px minmax(0,1fr) 352px;grid-template-rows:minmax(0,1fr);overflow:hidden}
.rail{display:flex;align-items:center;flex-direction:column;border-right:1px solid var(--line);padding:27px 0 22px;background:#f6f8fc;z-index:10}
.rail-middle{display:flex;flex:1;flex-direction:column;justify-content:center;gap:15px;padding:28px 0}
.rail-btn{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:62px;height:62px;border-radius:8px;color:#000}
.rail-btn svg{width:23px;height:23px}
.rail-btn span{font-size:13px;font-weight:500}
.rail-btn[data-action="tasks"] span{font-size:12px;white-space:nowrap}
.rail-btn.active{background:#dfeaff}
.rail-btn.active:before{content:"";position:absolute;left:-17px;width:3px;height:28px;background:#165dff}
.rail-bottom{display:flex;flex-direction:column;align-items:center;gap:15px}
.account{border:1px solid #c5d0e1;background:#e9eef7;width:38px;height:38px;border-radius:50%;font-size:16px;font-weight:650}
.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;position:relative;background:#fff}
.topbar{height:84px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:12px;border-bottom:1px solid #edf0f6}
.conversation-picker{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:600;padding:10px;margin-left:-10px;border-radius:6px;min-width:0}
.conversation-picker span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px}
.small-icon{width:14px!important;height:14px!important}
.top-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.icon-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;flex-shrink:0;color:#000}
.icon-btn:hover{background:#e7eefb}
.conversation-scroll{flex:1 1 0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9ba8b9 transparent;scrollbar-gutter:stable;overflow-anchor:none;min-height:0}
.welcome{max-width:864px;margin:auto;padding:65px 40px 36px}
.welcome-identity{display:flex;align-items:center;gap:18px;margin-bottom:28px}
.welcome-robot{width:92px;height:92px;flex-shrink:0}
.welcome-brand{display:flex;flex-direction:column;gap:6px;font:750 25px/1.3 "Segoe UI",sans-serif}
.welcome-assistant{font-size:15px;font-weight:500}
.welcome h1{font-size:34px;font-weight:650;line-height:1.5;margin:0 0 12px;overflow-wrap:anywhere;text-wrap:balance}
.welcome-sub{font-size:18px;margin:0 0 38px;line-height:1.8}
.suggestions{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:24px}
.suggestions button{display:flex;align-items:center;gap:14px;padding:14px 4px;border-radius:4px;text-align:left;max-width:100%}
.suggestions button span{font-size:17px;line-height:1.7}
.suggestions button>svg:first-child{width:21px;height:21px;color:#165dff}
.suggestions button>svg:last-child{width:16px;height:16px;margin-left:8px}
.suggestions small{display:none}
.messages{max-width:900px;margin:0 auto;padding:32px 40px 20px}
.messages:empty{padding:0}
.message{margin-bottom:36px;min-width:0}
.message.user{display:flex;flex-direction:column;align-items:flex-end}
.message.user .message-content{background:#eaf1ff;border:1px solid #d9e5ff;border-radius:8px 8px 2px 8px;padding:14px 20px;max-width:85%;white-space:pre-wrap;font-size:18px;line-height:1.85;overflow-wrap:anywhere}
.assistant-head{display:flex;align-items:center;gap:11px;font-size:16px;font-weight:600;margin:0 0 14px}
.message-avatar{display:block;width:40px;height:40px;flex-shrink:0}
.message.assistant .message-content{font-size:18px;line-height:1.95;padding-left:51px;overflow-wrap:anywhere;min-height:34px}
.message-content p{margin:0 0 15px}
.message-content p:last-child{margin-bottom:0}
.message-content h1,.message-content h2,.message-content h3{font-size:22px;line-height:1.65;margin:22px 0 12px;font-weight:650;scroll-margin-top:20px}
.message-content h1:first-child,.message-content h2:first-child,.message-content h3:first-child{margin-top:0}
.message-content ul,.message-content ol{padding-left:26px}
.message-content li{margin:7px 0}
.message-content pre{overflow:auto;max-width:100%;background:#f3f6fc;border:1px solid #dce4f1;border-radius:6px;padding:18px;line-height:1.7;font-size:15px}
.message-content code{font-family:Consolas,monospace;background:#edf2fa;padding:2px 5px;border-radius:3px;font-size:.9em}
.message-content pre code{background:none;padding:0}
.message-content table{display:block;border-collapse:collapse;overflow:auto;max-width:100%;font-size:16px}
.message-content td,.message-content th{border:1px solid #d0d9e8;padding:9px 13px;text-align:left}
.message-content blockquote{margin-left:0;border-left:3px solid #165dff;padding:3px 0 3px 18px;background:#f7f9fd}
.message-actions{padding-left:51px;display:flex;align-items:center;gap:5px;margin-top:12px;flex-wrap:wrap}
.message-actions .icon-btn{width:34px;height:34px}
.message-actions svg{width:17px;height:17px}
.approval-notice{margin:12px 0 0 51px;padding:12px;border:1px solid #cbd7e9;border-left:3px solid #165dff;background:#f8faff;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.approval-notice code{flex:1 1 220px;min-width:0;white-space:pre-wrap;font-family:ui-monospace,Consolas,monospace;font-size:13px}
.approval-notice .plain-button{padding:8px 12px;min-height:38px;font-size:13px}
.approval-notice button:disabled{opacity:.55}
.message-error{font-size:15px;line-height:1.8;margin:12px 0 0 51px;padding:12px;border-left:3px solid #d82d2d;background:#fff2f1;display:flex;align-items:flex-start;gap:8px;overflow-wrap:anywhere}
.message-error svg{width:19px;height:19px;flex-shrink:0;margin-top:3px;color:#ad1717}
.thinking{display:flex;gap:6px;align-items:center;padding:10px 0}
.thinking b{height:7px;width:7px;background:#165dff;border-radius:50%;animation:dot-pulse 1.4s infinite}
.thinking b:nth-child(2){animation-delay:.2s}
.thinking b:nth-child(3){animation-delay:.4s}
.thinking span{margin-left:10px;font-size:15px}
@keyframes dot-pulse{50%{opacity:.25}}
.composer-area{padding:18px 32px;flex-shrink:0;width:100%;max-width:900px;margin:0 auto;background:#fff}
.composer{border:1px solid #c8cfd9;border-radius:8px;box-shadow:0 8px 28px #14326c0a;background:#fff;transition:border-color .2s,box-shadow .2s}
.composer:focus-within{border-color:#a7b7ca;box-shadow:0 0 0 2px #20364d05}
.composer textarea{display:block;width:100%;border:0;resize:none;background:none;padding:20px 21px 12px;max-height:180px;min-height:66px;line-height:1.8;font-size:18px;border-radius:5px}
.composer textarea:focus-visible{outline:none}
.composer textarea::placeholder{color:#30343a;opacity:1}
.composer-toolbar{display:flex;align-items:center;justify-content:space-between;padding:5px 14px 14px;gap:10px}
.composer-tools{display:flex;align-items:center;gap:8px;min-width:0}
.send-button{height:32px;width:32px;border-radius:6px;background:#20364d0d;color:#20364db3;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative}
.send-button:before{content:"";position:absolute;inset:-6px}
.send-button:hover{background:#20364d1a;color:#000}
.send-button svg{width:19px;height:19px}
.send-button.stop{background:#20364d14;color:#000}
.send-button.stop svg{height:15px;width:15px;fill:currentColor}
.composer-foot{font-size:12px;line-height:1.7;margin:12px 2px 0;min-height:20px;text-align:center}
.attachment-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:9px}
.attachment-chip{display:flex;align-items:center;gap:8px;border:1px solid #ccd9ec;background:#f3f7ff;border-radius:6px;font-size:14px;padding:6px 9px;max-width:100%}
.attachment-chip span{max-width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.attachment-chip svg{height:17px;width:17px}
.attachment-chip button{display:flex;padding:5px}
.assistant-panel{border-left:1px solid var(--line);display:flex;flex-direction:column;background:#f7f9fd;min-width:0;min-height:0;overflow:hidden}
.panel-top{height:73px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-size:15px;font-weight:600;flex-shrink:0}
.panel-top>span{display:flex;align-items:center;gap:9px}
.panel-top>span svg{width:19px;height:19px;color:#165dff}
.assistant-profile{text-align:center;padding:3px 24px 26px}
.robot-stage{position:relative;margin:0 auto 12px;width:180px;height:160px}
.avatar-wrap{width:160px;height:160px;margin:auto}
.profile-heading{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.assistant-profile h2{font-family:"Segoe UI",sans-serif;font-weight:700;font-size:26px;margin:0;line-height:1.5}
.robot-shell{position:relative;display:block;width:100%;height:100%;isolation:isolate}
.robot-image{width:100%;height:100%;display:block;object-fit:contain}
.avatar-wrap .robot-shell,.welcome-robot .robot-shell{animation:robot-hover 5s ease-in-out infinite}
.panel-tabs{margin:8px 20px 0;display:flex;border-bottom:1px solid #e1e5eb;flex-shrink:0}
.panel-tabs button{width:33.333%;display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px;height:39px;border-radius:4px}
.panel-tabs button svg{width:17px;height:17px}
.panel-tabs button[aria-selected="true"]{background:transparent;border-bottom:2px solid #165dff;font-weight:600;border-radius:0}
.panel-content{flex:1;overflow:auto;min-height:0;padding:24px 24px 12px;scrollbar-width:thin}
.panel-section-title{font-size:14px;font-weight:600;margin:0 0 24px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.panel-section-title>span{font-size:12px;font-weight:400}
.activity-row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:11px;position:relative;margin-bottom:24px}
.activity-row:not(:last-child):before{content:"";position:absolute;top:33px;bottom:-17px;left:14px;border-left:1px solid #cad5e6}
.activity-icon{width:30px;height:30px;background:#e8eef9;border:1px solid #d6dfef;border-radius:7px;display:flex;align-items:center;justify-content:center}
.activity-icon svg{width:17px;height:17px}
.activity-row h4{margin:3px 0 6px;font-weight:600;font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.activity-row p{font-size:14px;line-height:1.8;margin:0;overflow-wrap:anywhere}
.activity-row time{display:block;font-size:12px;margin-top:8px;font-variant-numeric:tabular-nums}
.panel-empty{padding:30px 8px;text-align:center;font-size:15px;line-height:1.9}
.panel-empty>svg{height:32px;width:32px;margin:0 auto 16px;display:block;stroke-width:1.5}
.panel-note{font-size:13px;line-height:1.9;margin-top:20px}
.panel-foot{display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:12px;font-size:12px;flex-shrink:0;border-top:1px solid #dce4ef;line-height:1.7}
.panel-foot svg{width:15px;height:15px;flex-shrink:0}
.app.panel-hidden{grid-template-columns:96px minmax(0,1fr)}
.app.panel-hidden .assistant-panel{display:none}
.drawer-backdrop{position:fixed;inset:0;background:#111e3530;z-index:30}
#panel-backdrop{position:fixed;inset:0;background:#111e3530;z-index:35}
.history-drawer{position:fixed;left:96px;top:0;bottom:0;width:460px;max-width:calc(100vw - 24px);background:#fff;z-index:31;padding:30px 26px;border-right:1px solid #e1e5eb;box-shadow:15px 0 50px #152d5912;display:flex;flex-direction:column}
.drawer-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
.drawer-header h2{font-size:24px;font-weight:650;margin:0}
.search-field{display:flex;align-items:center;gap:12px;background:#f1f4f8;border:1px solid transparent;border-radius:7px;padding:5px 12px;min-height:54px;margin:0 0 24px}
.search-field>svg{width:21px;height:21px;flex-shrink:0}
.search-field input{width:100%;min-width:0;border:0;padding:10px 0;font-size:17px;background:none;outline:none}
.search-field input:focus-visible{outline:none}
.search-field:focus-within{border-color:#165dff;box-shadow:0 0 0 2px #165dff10}
.search-field .icon-btn{width:30px;height:32px}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:14px}
.new-chat{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 5px;border-radius:4px;font-size:14px}
.new-chat svg{width:17px;height:17px}
.history-list{overflow:auto;min-height:0;scrollbar-width:thin}
.history-item{display:flex;align-items:center;gap:12px;padding:7px 10px;margin:4px 0;border-radius:6px;min-width:0}
.history-item:hover,.history-item.selected{background:#f0f4fb}
.history-chat-icon{flex-shrink:0;display:flex}
.history-chat-icon svg{width:21px;height:21px}
.history-open{padding:13px 0;text-align:left;min-width:0;flex:1}
.history-open:hover{background:none}
.history-open strong{font-size:17px;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.7}
.history-open span{display:block;font-size:13px;margin-top:7px}
.history-open mark{background:#d8edfa;color:#000;border-radius:2px}
.history-item .icon-btn{width:32px;height:36px}
dialog{border:1px solid #cbd7e9;border-radius:8px;box-shadow:0 24px 100px #152d5926;color:#000;background:#fff;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:32px}
dialog::backdrop{background:#14284c38;backdrop-filter:blur(4px)}
.login-dialog{width:420px;padding:35px}
.dialog-brand{display:flex;align-items:center;gap:12px;font-weight:700;margin-bottom:30px;font-size:23px}
.dialog-brand img{height:44px;width:44px;object-fit:contain}
.login-dialog h2{font-size:25px;font-weight:650;margin:0 0 12px}
.login-dialog p{font-size:16px;margin:0 0 26px}
.login-dialog label{display:block;font-size:16px;margin:21px 0 10px}
.login-dialog input{width:100%;border:1px solid #becde3;background:#f8faff;padding:13px;border-radius:5px;font-size:16px}
input::placeholder{color:#30343a;opacity:1}
.login-dialog .form-error{margin:14px 0;min-height:20px;font-size:14px}
.primary-button{display:flex;width:100%;align-items:center;justify-content:center;gap:12px;padding:14px;border-radius:5px;background:#d8e8ff;border:1px solid #afccff;color:#000;font-size:16px;font-weight:600}
.primary-button:hover{background:#c4dcff;border-color:#165dff}
.primary-button svg{width:18px;height:18px}
.login-note{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;margin-top:24px}
.login-note svg{width:15px;height:15px}
.settings-dialog{width:510px}
.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.dialog-header h2,.confirm-dialog h2{font-size:24px;font-weight:650;margin:0}
.setting-row{padding:17px 0;border-bottom:1px solid #e0e7f2;display:flex;justify-content:space-between;gap:20px;font-size:16px}
.setting-row strong{font-weight:600;text-align:right;overflow-wrap:anywhere;max-width:65%}
.setting-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px;flex-wrap:wrap}
.plain-button,.danger-button{font-size:14px;padding:11px 13px;border:1px solid #cbd7e9;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px}
.plain-button svg,.danger-button svg{height:17px;width:17px}
.danger-button{background:#ffebe8;border-color:#ebc5be}
.confirm-dialog{width:420px}
.confirm-dialog p{line-height:1.9;font-size:16px;margin:20px 0 28px}
.dialog-actions{display:flex;justify-content:flex-end;gap:12px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:30px;padding:14px 22px;max-width:calc(100vw - 32px);background:#e7f1ff;border:1px solid #b9d2fb;color:#000;font-size:16px;border-radius:6px;box-shadow:0 8px 30px #16305c20;z-index:100;line-height:1.8;text-align:center}

/* Facial features are independent of the shell animation. */
.robot-face{position:absolute;inset:0;pointer-events:none;animation:robot-look 8s ease-in-out infinite}
.robot-eye{position:absolute;top:40%;width:12.5%;height:18%;background:#16d9ff;border:1px solid #a3f7ff;border-radius:50%;box-shadow:0 0 7px #00aaff,inset 0 0 7px #b6ffff;transform-origin:center;animation:robot-blink 5.8s infinite}
.eye-left{left:27%}
.eye-right{right:27%;animation-delay:.08s}
.robot-mouth{position:absolute;left:43%;top:60%;width:14%;height:4%;border-bottom:2px solid #59e7ff;border-radius:0 0 50% 50%;filter:drop-shadow(0 0 3px #00bfff);animation:robot-smile 4s ease-in-out infinite;transform-origin:center}
.message-avatar .robot-face,.message-avatar .robot-eye,.message-avatar .robot-mouth{animation:none!important}
.avatar-wrap .robot-shell,.welcome-robot .robot-shell{animation:robot-alive 7s ease-in-out infinite}
.app[data-robot-state="replying"] .robot-mouth{background:#35deff;border:1px solid #a8faff;border-radius:45%;animation:robot-talk .6s ease-in-out infinite alternate}
.app[data-robot-state="thinking"] .robot-face{animation:robot-thought 3s ease-in-out infinite}
.app[data-robot-state="thinking"] .robot-eye{height:13%;top:43%}
.motion-paused .robot-shell,.motion-paused .robot-face,.motion-paused .robot-eye,.motion-paused .robot-mouth{animation-play-state:paused!important}
@keyframes robot-alive{0%,100%{transform:rotate(-2deg)}35%{transform:rotate(2deg)}65%{transform:rotate(0deg) translateX(2px)}}
@keyframes robot-blink{0%,35%,39%,70%,74%,100%{transform:scaleY(1)}37%,72%{transform:scaleY(.08)}}
@keyframes robot-look{0%,20%,100%{transform:translateX(0)}30%,43%{transform:translateX(2%)}65%,78%{transform:translateX(-2%)}}
@keyframes robot-smile{0%,100%{transform:scaleX(1) scaleY(1)}35%{transform:scaleX(1.16) scaleY(1.5)}70%{transform:scaleX(.85) scaleY(.7)}}
@keyframes robot-talk{0%{transform:scaleY(.35) scaleX(.85)}40%{transform:scaleY(1.6)}70%{transform:scaleY(.65) scaleX(1.1)}100%{transform:scaleY(1.2)}}
@keyframes robot-thought{0%,100%{transform:translate(0,0)}50%{transform:translate(2%,-1%)}}
.setting-row input[role="switch"]{appearance:none;width:42px;height:24px;border-radius:20px;background:#cbd2da;position:relative;flex-shrink:0;cursor:pointer}
.setting-row input[role="switch"]:before{content:"";position:absolute;width:18px;height:18px;background:#fff;border-radius:50%;left:3px;top:3px;transition:transform .15s}
.setting-row input[role="switch"]:checked{background:#165dff}
.setting-row input[role="switch"]:checked:before{transform:translateX(18px)}
.task-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;margin:-6px 0 14px}
.task-row{display:grid;grid-template-columns:24px minmax(0,1fr) 32px;gap:12px;padding:18px 0;border-bottom:1px solid #e0e5ec}
.task-status-icon svg{width:21px;height:21px;margin-top:3px}
.task-row h4{font-size:16px;line-height:1.7;margin:0 0 7px;overflow-wrap:anywhere;font-weight:550}
.task-row time{display:block;font-size:13px;line-height:1.8}
.task-status{display:block;margin-top:7px;font-size:13px}
.task-row .icon-btn{width:32px;height:34px}
.task-row.cancelled{opacity:.6}
.panel-empty .plain-button{display:flex;margin:20px auto 0}
.task-dialog{width:460px}
.task-kind{font-size:14px;line-height:1.8;padding-bottom:8px}
.task-dialog label{display:block;margin:20px 0 10px;font-size:16px}
.task-dialog input{display:block;width:100%;min-width:0;padding:13px;border:1px solid #becde3;border-radius:5px;background:#f8faff;font-size:16px}
.task-dialog .form-error{font-size:14px;line-height:1.8;min-height:16px}

@media(min-width:1700px){
  .app{grid-template-columns:104px minmax(0,1fr) 376px}.app.panel-hidden{grid-template-columns:104px minmax(0,1fr)}
  .history-drawer{left:104px}.welcome{padding-top:90px}.assistant-profile{padding-top:20px;padding-bottom:30px}
}
@media(max-width:1180px){
  .app{grid-template-columns:80px minmax(0,1fr) 304px}.app.panel-hidden{grid-template-columns:80px minmax(0,1fr)}
  .rail-btn.active:before{left:-9px}.rail-btn{width:56px}.history-drawer{left:80px}
  .topbar{padding:0 24px}.local-label{display:none}.welcome{padding:45px 28px 25px}.welcome h1{font-size:30px}
  .suggestions{grid-template-columns:1fr;gap:10px}.suggestions button{min-height:0;display:flex;align-items:center;gap:14px;padding:15px}
  .suggestions button span{flex:1}.suggestions small{display:none}
  .composer-area{padding-left:24px;padding-right:24px}.messages{padding-left:28px;padding-right:28px}
  .send-group{gap:8px}.agent-control select{max-width:95px}.panel-content{padding-left:20px;padding-right:20px}
}
@media(max-width:900px){
  .app,.app.panel-hidden{grid-template-columns:80px minmax(0,1fr)}.assistant-panel{display:none}
  .app.mobile-panel .assistant-panel{display:flex;position:fixed;top:0;bottom:0;right:0;width:352px;max-width:88vw;z-index:40;box-shadow:-15px 0 50px #152d5920}
  .welcome{padding-top:50px}.suggestions small{display:block}
}
@media(max-width:540px){
  .app,.app.panel-hidden{display:block;min-height:0}
  .rail{position:fixed;left:0;top:0;right:0;height:64px;flex-direction:row;padding:0 16px;border-right:0;border-bottom:1px solid var(--line);justify-content:space-between;background:#f7f9fd}
  .rail-middle{flex-direction:row;gap:4px;flex:0;padding:0}.rail-btn{width:38px;height:40px;border-radius:5px}
  .rail-btn span,.rail-btn.active:before{display:none}.rail-btn svg{width:21px;height:21px}
  .rail-middle [data-action="chat"],.rail-middle [data-action="history"]{display:none}
  .rail-bottom{flex-direction:row;gap:3px}.rail-bottom>.rail-btn{display:none}.account{width:34px;height:34px;font-size:14px}
  .workspace{height:100dvh;padding-top:64px}.topbar{height:65px;padding:0 19px}
  .conversation-picker{font-size:16px;gap:8px}.conversation-picker span{max-width:150px}
  .top-actions{gap:3px}.top-actions .icon-btn{width:36px;height:38px}
  .welcome{padding:26px 22px 20px}.welcome-identity{gap:14px;margin-bottom:20px}
  .welcome-robot{height:72px;width:72px}.welcome-brand{font-size:23px}
  .welcome h1{font-size:26px;line-height:1.6}.welcome-sub{font-size:17px;margin-bottom:24px}
  .suggestions button{padding:14px;gap:12px}.suggestions button span{font-size:16px}.suggestions small{display:none}
  .messages{padding:24px 20px 15px}.message{margin-bottom:30px}
  .message.assistant .message-content{padding-left:0;font-size:18px}.message-actions{padding-left:0}.message-error{margin-left:0}.approval-notice{margin-left:0}
  .message.user .message-content{max-width:92%;font-size:18px;padding:12px 16px}
  .composer-area{padding:10px 14px max(12px,env(safe-area-inset-bottom))}
  .composer textarea{padding:16px 15px 9px;min-height:58px;font-size:18px}
  .composer-toolbar{padding:3px 9px 10px;flex-wrap:wrap;gap:8px}
  .composer-tools{gap:5px}.composer-tools .icon-btn{width:32px}.agent-control{gap:4px}
  .agent-control>svg:first-child,.agent-control>.small-icon{display:none}.agent-control select{max-width:74px;font-size:13px}
  .send-group{gap:6px;margin-left:auto}.thinking-control span{padding:7px 6px;font-size:13px}
  .thinking-control svg{display:none}.send-state{font-size:12px}.send-button{width:38px;height:38px}
  .composer-foot{font-size:12px;gap:8px;flex-wrap:wrap}.composer-foot>span:first-child{max-width:100%}
  .composer-foot>span:last-child{text-align:left}.history-drawer{left:0;width:340px;padding:24px 20px}
  .login-dialog,.settings-dialog{padding:25px}.login-dialog h2{font-size:23px}
  .model-test-actions{flex-wrap:wrap}.setting-actions{gap:8px}.setting-actions .plain-button{padding:10px;font-size:13px}
  .toast{bottom:22px;width:max-content;font-size:15px}.skip-link{left:8px}
}
@media(max-height:720px) and (min-width:901px){
  .robot-stage{width:142px;height:118px}.avatar-wrap{width:118px;height:118px}
  .assistant-profile{padding-bottom:17px}.welcome{padding-top:32px}.welcome-identity{margin-bottom:18px}.welcome-sub{margin-bottom:24px}
}
.assistant-panel{background:#fafbfd}
.panel-top{height:56px;font-size:14px}
.assistant-profile{padding:4px 20px 18px}
.robot-stage{width:148px;height:132px;margin-bottom:9px}
.avatar-wrap{width:132px;height:132px}
.assistant-profile h2{font-size:24px}
.panel-tabs{border:0;background:#eceef2;border-radius:8px;padding:4px;margin:4px 20px 0;gap:3px}
.panel-tabs button{border-radius:5px;font-size:14px;min-width:0;white-space:nowrap;gap:6px;height:36px}
.panel-tabs button[aria-selected="true"]{background:#fff;box-shadow:0 1px 4px #182d4510;border:0;border-radius:5px}
.panel-content{padding:22px 20px 16px}
.panel-section-title{font-size:14px;margin-bottom:12px}
.activity-item{display:grid;grid-template-columns:30px minmax(0,1fr) 38px;align-items:center;gap:10px;width:100%;text-align:left;padding:14px 2px;border-bottom:1px solid #edf0f4;border-radius:0;min-height:64px}
.activity-item:hover{background:#f0f3f8}
.activity-status{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#eef1f5}
.activity-status svg{width:16px;height:16px}
.activity-status.working{background:#e6f1ff}
.activity-status.error{background:#ffece9}
.activity-title{font-size:16px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.activity-item time{font-size:12px;font-variant-numeric:tabular-nums;text-align:right}
.activity-dialog{width:600px}
.detail-state{display:flex;align-items:center;gap:8px;font-size:14px;margin:8px 0 24px}
.detail-state svg{width:18px;height:18px}
.detail-state time{margin-left:auto}
.detail-label{font-size:14px;font-weight:500;margin:24px 0 10px}
.detail-question{font-size:17px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.detail-answer{font-size:17px;line-height:1.85;overflow-wrap:anywhere}
.detail-answer pre{overflow:auto;background:#f3f5f8;padding:15px;font-size:14px}
.detail-log{margin:28px 0 18px;font-size:14px;border-top:1px solid #e2e6ed;padding-top:18px}
.detail-log summary{cursor:pointer;line-height:1.8}
.detail-log div{display:flex;justify-content:space-between;gap:20px;line-height:1.8;margin-top:12px}
.detail-log time{white-space:nowrap}
.task-open{display:block;text-align:left;width:100%;font-size:16px;font-weight:550;line-height:1.8;padding:0;margin:0 0 7px;overflow-wrap:anywhere}
.task-detail-title{font-size:21px;font-weight:600;line-height:1.7;margin:20px 0;overflow-wrap:anywhere}
.attachment-list{max-height:140px;overflow:auto}
.attachment-chip.image-chip{padding:5px 8px 5px 5px;background:#f4f6f9;border:1px solid #e0e5ed}
.attachment-chip .attachment-thumbnail{padding:0;width:60px;height:48px;display:block;overflow:hidden;border-radius:4px;flex-shrink:0}
.attachment-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}
.image-chip>span{max-width:130px;font-size:13px}
.image-dialog{width:840px}
.image-dialog>img{display:block;width:100%;max-height:70dvh;object-fit:contain}
.message-images{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:10px}
.message-images img{width:180px;height:140px;object-fit:contain;border-radius:6px;background:#f3f5f8}
.composer.drag-over{border:2px dashed #668cac;background:#f6faff}
.workspace-tools,.workspace-modes,.workspace-view-tools{display:flex;align-items:center;gap:5px}
.workspace-tools{justify-content:space-between;margin:-6px -4px 20px}
.workspace-modes{background:#eceff4;padding:3px;border-radius:7px}
.workspace-modes .icon-btn{width:35px;height:32px}
.workspace-modes [aria-pressed="true"]{background:#fff;box-shadow:0 1px 4px #1a2e4710}
.workspace-view-tools .icon-btn{width:34px;height:34px}
.workspace-view-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px;margin-bottom:14px;flex-shrink:0}
.view-state{font-size:12px;white-space:nowrap}
.workspace-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:220px;padding:30px 16px;text-align:center}
.workspace-empty>svg{width:38px;height:38px;stroke-width:1.25}
.workspace-empty strong{font-size:16px;font-weight:500;line-height:1.8}
.workspace-empty span{font-size:13px;line-height:1.8}
.workspace-empty.compact{min-height:150px}
.workspace-local-title{font-size:14px;font-weight:500;margin:26px 0 12px}
.workspace-file{display:grid;grid-template-columns:22px minmax(0,1fr) auto 16px;align-items:center;gap:10px;width:100%;padding:14px 2px;border-bottom:1px solid #e7ebf1;border-radius:0;text-align:left}
.workspace-file>span{display:flex}
.workspace-file strong{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.8}
.workspace-file small{font-size:12px;white-space:nowrap}
.workspace-file>svg:last-child{height:16px;width:16px}
.workspace-back{display:flex;align-items:center;gap:4px;padding:0 0 14px;font-size:14px}
.workspace-back svg{width:16px;height:16px}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;border-bottom:1px solid #e2e6ed;margin-bottom:12px}
.preview-toolbar>span{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.preview-toolbar>div{display:flex;align-items:center;gap:3px;flex-shrink:0}
.preview-toolbar .icon-btn{height:32px;width:30px}
.preview-toolbar .icon-btn svg{width:17px;height:17px}
.zoom-value{font-size:12px;min-width:36px;text-align:center;font-variant-numeric:tabular-nums}
.file-preview{overflow:auto;min-height:220px;max-height:65dvh;background:#fff;border:1px solid #e7ebf1;border-radius:5px}
.file-preview img{display:block;width:calc(100% * var(--preview-scale,1));max-width:none;height:auto}
.file-preview pre{font:calc(15px * var(--preview-scale,1))/1.85 Consolas,"Microsoft YaHei",monospace;margin:0;padding:16px;white-space:pre;min-width:max-content}
.browser-surface{border:1px solid #e1e6ee;border-radius:5px;background:#fff;min-height:250px}
.app.workspace-expanded{grid-template-columns:96px minmax(260px,1fr) minmax(420px,58vw)}
.app.workspace-expanded .assistant-profile{display:none}
.app.workspace-expanded .panel-content{padding:22px 26px}
.app.workspace-expanded .file-preview{max-height:calc(100dvh - 260px)}
@media(min-width:1700px){.app.workspace-expanded{grid-template-columns:104px minmax(300px,1fr) minmax(420px,58vw)}}
@media(max-width:1180px) and (min-width:901px){.app.workspace-expanded{grid-template-columns:80px minmax(250px,1fr) minmax(380px,50vw)}}
@media(max-width:900px){.app.workspace-expanded{grid-template-columns:80px minmax(0,1fr)}.app.workspace-expanded.mobile-panel .assistant-panel{width:calc(100vw - 24px);max-width:none}.app.workspace-expanded .panel-content{padding:20px}.app.workspace-expanded .assistant-profile{display:none}}
@media(max-width:540px){.send-button{width:32px;height:32px}.assistant-profile{padding-top:4px}.panel-tabs{margin-left:14px;margin-right:14px}.panel-content{padding-left:16px;padding-right:16px}.activity-dialog,.image-dialog{padding:24px}.workspace-file{gap:8px}.preview-toolbar{gap:4px}.image-chip>span{max-width:90px}.app.workspace-expanded{display:block}}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
/* Tenant browser controls share the compact workspace toolbar. */
.browser-navigation{display:flex;gap:6px;align-items:center;margin:8px 0}
.browser-navigation input{min-width:0;flex:1;border:1px solid #d8dce3;border-radius:6px;padding:9px 10px;font:inherit;color:#111;background:#fff}
.browser-live img{aspect-ratio:8/5;object-fit:fill;cursor:crosshair;outline-offset:2px}
