.platform-header.tb-header{--tb-surface:var(--agent-surface,#fffffff0);--tb-color:var(--agent-ink,#27242c);--tb-muted:var(--agent-muted,#68646d);--tb-border:var(--agent-line,#dedbe2);--tb-hover:var(--agent-hover,#f2ecfc);height:64px;background:var(--tb-surface);border-bottom:1px solid var(--tb-border);padding-inline:20px}
.platform-dark .platform-header.tb-header{--tb-surface:var(--agent-surface,#1c1825f0);--tb-color:var(--agent-ink,#eee9f4);--tb-muted:var(--agent-muted,#aaa1b5);--tb-border:var(--agent-line,#ffffff24);--tb-hover:var(--agent-hover,#352947)}
.platform-header.tb-header .platform-header-tools{gap:12px;align-items:center;flex-wrap:nowrap;min-width:0}
.platform-header.tb-header .tb-actions{display:flex;align-items:center;gap:7px;margin:0;padding:0;min-width:0;flex-shrink:0}
.platform-header.tb-header .tb-actions .tb-action{display:inline-flex;align-items:center;justify-content:center;position:relative;width:43px;min-width:43px;height:43px;padding:10px;border:1px solid transparent;border-radius:12px;background:transparent;box-sizing:border-box;color:var(--tb-muted);text-decoration:none;flex:0 0 43px;cursor:pointer;transition:background .18s,border-color .18s,color .18s;outline-offset:3px}
.platform-header.tb-header .tb-actions .tb-action svg{width:22px;height:22px;flex:none}
.platform-header.tb-header .tb-actions .tb-action:hover{background:var(--tb-hover);color:var(--tb-color)}
.platform-header.tb-header .tb-actions .tb-action:focus-visible{outline:2px solid #ac80e8;outline-offset:3px}
.platform-header.tb-header .tb-actions .tb-action.is-current{color:#7435db;background:var(--tb-surface);border-color:var(--tb-border);box-shadow:0 2px 4px #17112308}
.platform-dark .platform-header.tb-header .tb-actions .tb-action.is-current{color:#bd95ff}
.platform-header.tb-header .tb-actions #agent-background-toggle[aria-pressed=true]{background:var(--tb-hover);color:#7940cc}
.platform-header.tb-header .tb-actions .has-unread::after{content:"";position:absolute;right:7px;top:6px;width:6px;height:6px;border-radius:50%;background:#7e35d5;box-shadow:0 0 0 2px var(--tb-surface)}
.platform-header.tb-header .platform-header-tools #tb-preview{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:80px;height:33px;padding:6px 12px;border:0;border-radius:22px;background:#f0e8fb;color:#7234cc;font-size:12px;font-weight:550;white-space:nowrap;cursor:pointer}
.platform-header.tb-header #tb-preview svg{width:16px;height:16px}.platform-dark .platform-header.tb-header .platform-header-tools #tb-preview{background:#352947;color:#c99fff}
.platform-header.tb-header .platform-login.tb-login{display:flex;align-items:center;justify-content:center;gap:7px;min-height:35px;height:35px;padding:7px 13px;border-radius:5px;background:#6821cb;color:#fff;font-size:12px;white-space:nowrap;flex-shrink:0;max-width:170px;overflow:hidden}
.platform-header.tb-header .tb-login svg{width:18px;height:18px;flex-shrink:0}.tb-account-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.platform-header.tb-header .platform-login.tb-login[data-signed]{color:white!important}
.platform-header.tb-header .platform-header-tools #platform-unified-logout{width:auto;height:auto;min-width:0;padding:6px 0;font-size:10px;color:var(--tb-muted)}
.platform-header.tb-header .tb-actions #tb-more{display:none}
.platform-header.tb-header .platform-header-tools #platform-menu-toggle{display:none}
.tb-tooltip{position:fixed;z-index:300;pointer-events:none;max-width:260px;padding:8px 13px;border:1px solid #ddd9e3;border-radius:18px;background:#fff;color:#17141c;box-shadow:0 5px 16px #1711230b;font:500 12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;white-space:nowrap}
.platform-dark .tb-tooltip{background:#26222d;border-color:#494151;color:#ede8f4}
.tb-popover,.tb-dialog{--tb-surface:var(--agent-surface,#fff);--tb-color:var(--agent-ink,#27242c);--tb-muted:var(--agent-muted,#77717e);--tb-border:var(--agent-line,#e7e3eb);--tb-hover:var(--agent-hover,#f2ecfc);color:var(--tb-color);background:var(--tb-surface);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
.platform-dark .tb-popover,.platform-dark .tb-dialog{--tb-surface:var(--agent-surface,#211c2a);--tb-color:var(--agent-ink,#eee8f4);--tb-muted:var(--agent-muted,#aca2ba);--tb-border:var(--agent-line,#ffffff23);--tb-hover:var(--agent-hover,#352947)}
.tb-popover{position:fixed;z-index:210;box-sizing:border-box;padding:8px;min-width:190px;max-width:calc(100vw - 20px);max-height:calc(100svh - 90px);overflow-y:auto;border:1px solid var(--tb-border);border-radius:14px;backdrop-filter:blur(24px);box-shadow:0 10px 40px #1b102222}
.tb-popover>button,.tb-popover>a{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:9px 12px;border-radius:8px;color:var(--tb-color);text-align:start;font-size:12px;text-decoration:none;min-height:35px}
.tb-popover>button:hover,.tb-popover>a:hover,.tb-popover>button:focus-visible{background:var(--tb-hover);outline:none}.tb-popover>button svg{width:14px;height:14px;color:#7435d5}
.tb-popover-heading{padding:6px 12px 9px;border-bottom:1px solid var(--tb-border);margin-bottom:4px;font-size:10px;color:var(--tb-muted)}
.tb-preview-popover{width:295px;padding:17px}.tb-preview-popover>strong{display:block;font-size:14px;margin-bottom:12px}.tb-preview-popover>p{font-size:11px;line-height:1.9;margin:8px 0;color:var(--tb-muted)}.tb-preview-popover>button{margin-top:8px;border:1px solid var(--tb-border);text-align:center;justify-content:center}
.tb-dialog{box-sizing:border-box;width:min(850px,calc(100vw - 32px));max-width:850px;max-height:calc(100svh - 40px);padding:25px;border:1px solid var(--tb-border);border-radius:21px;backdrop-filter:blur(25px);box-shadow:0 22px 85px #12092335;overflow-y:auto}
.tb-dialog::backdrop{background:#0c081550;backdrop-filter:blur(4px)}
.tb-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.tb-dialog>header p{font-size:10px;line-height:1.5;margin:0 0 5px;color:var(--tb-muted)}.tb-dialog>header h2{font-size:24px;line-height:1.4;margin:0;font-weight:650}.tb-dialog>header button{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--tb-hover);color:var(--tb-muted);flex-shrink:0}.tb-dialog>header svg{width:17px;height:17px}
.tb-dialog h3{font-size:17px;line-height:1.5}.tb-dialog p{font-size:12px;line-height:1.9}.tb-description,.tb-empty-text{font-size:12px;line-height:1.9;color:var(--tb-muted)}.tb-empty-text{text-align:center;padding:20px 0}
.tb-empty-icon{width:62px;height:62px;display:grid;place-items:center;border-radius:18px;background:var(--tb-hover);color:#793cd1;margin:35px auto 16px}.tb-empty-icon svg{width:28px;height:28px}#tb-dialog-content>.tb-empty-icon+h3{text-align:center}
.tb-primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 18px;border-radius:9px;border:1px solid #7134c4;background:#7331cb;color:white;text-align:center;font-size:12px;text-decoration:none;cursor:pointer}
.tb-text-button,.tb-text-link{font-size:12px;color:#8b4bd1;padding:7px 0;background:transparent;text-decoration:none}.tb-text-link:hover{text-decoration:underline}
.tb-work-filter{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:20px 0}.tb-work-filter>button{padding:7px 13px;border:1px solid var(--tb-border);border-radius:17px;background:transparent;color:var(--tb-muted);font-size:11px}.tb-work-filter>button.active{background:var(--tb-hover);color:#8b4bd1;border-color:#a67cd367}.tb-work-filter>input{margin-inline-start:auto;min-width:120px;width:190px;padding:8px 12px;background:transparent;border:1px solid var(--tb-border);border-radius:9px;color:var(--tb-color);font-size:11px}
.tb-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tb-work-grid>.tb-empty{grid-column:1/-1}.tb-empty{padding:50px 20px;text-align:center;color:var(--tb-muted)}.tb-empty>svg{width:39px;height:39px;margin:0 auto 15px}.tb-empty>.tb-primary{margin-top:15px}
.tb-work-card{display:block;overflow:hidden;border:1px solid var(--tb-border);border-radius:13px;padding:0;text-align:start;background:transparent;color:var(--tb-color)}.tb-work-card>img{display:block;width:100%;height:160px;object-fit:cover}.tb-work-card>strong{display:block;padding:13px 12px 4px;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tb-work-card>small{display:block;padding:0 12px 13px;font-size:10px;color:var(--tb-muted)}.tb-work-symbol{height:160px;display:grid;place-items:center;background:var(--tb-hover);color:#8e56c5}.tb-work-symbol svg{width:40px;height:40px}.tb-work-full{display:block;width:100%;max-height:60svh;object-fit:contain;border-radius:12px;background:#151219;margin:10px 0}
.tb-dialog.tb-help-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(490px,100vw);max-width:490px;height:100svh;max-height:100svh;border-radius:20px 0 0 20px;padding:24px 25px}
.tb-help-intro{position:relative}.tb-help-intro>small{font-size:10px;color:var(--tb-muted)}.tb-help-intro>h3{margin:10px 0 15px}.tb-help-intro>.tb-text-link{position:absolute;right:0;top:26px;font-size:11px}
.tb-help-intro details{border:1px solid var(--tb-border);border-radius:11px;margin:9px 0;overflow:hidden;background:transparent}.tb-help-intro summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:11px;padding:12px;font-size:12px}.tb-help-intro summary>span{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;background:var(--tb-hover);color:#8750c6;font-size:10px}.tb-help-intro summary strong{font-size:12px;font-weight:550}.tb-help-intro details p{padding:0 14px 14px;margin:0;color:var(--tb-muted);font-size:11px;line-height:1.9}
.tb-section-title{margin-top:30px!important;font-size:16px!important}.tb-course-list{display:grid;gap:10px;margin:14px 0}.tb-course-list>button{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--tb-border);border-radius:12px;text-align:start;background:transparent;color:var(--tb-color)}.tb-course-list img{width:80px;height:55px;object-fit:cover;border-radius:7px;flex-shrink:0}.tb-course-list strong{display:block;font-size:12px}.tb-course-list small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.7;color:var(--tb-muted);margin-top:4px}.tb-course-list i{font-style:normal;font-size:12px;color:#8b4bd1;margin-inline-start:auto}
.tb-faq{border-bottom:1px solid var(--tb-border);padding:12px 0}.tb-faq summary{font-size:12px;cursor:pointer;line-height:1.7}.tb-faq p{font-size:11px;color:var(--tb-muted);margin:10px 0}.tb-help-drawer #tb-dialog-content>.tb-primary{margin-top:22px;width:100%}.tb-help-drawer video{width:100%;border-radius:12px;background:#161219;max-height:280px;margin:14px 0}.tb-course-article h3{font-size:15px;margin:21px 0 7px}.tb-course-article p,.tb-course-article li{font-size:12px;line-height:1.9;color:var(--tb-muted)}.tb-course-article ul{padding-inline-start:22px}.tb-course-article pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:var(--tb-hover);border-radius:10px;font-size:11px;line-height:1.9}
.tb-notice-article>small{font-size:11px;color:var(--tb-muted)}.tb-notice-article>h3{font-size:25px;line-height:1.5;overflow-wrap:anywhere}.tb-notice-copy{white-space:pre-wrap;font-size:13px;line-height:2;color:var(--tb-color);overflow-wrap:anywhere}.tb-notice-paging{display:flex;align-items:center;justify-content:center;gap:20px;margin:22px 0 15px;font-size:12px;color:var(--tb-muted)}.tb-notice-paging button{width:30px;height:30px;border:1px solid var(--tb-border);border-radius:8px;font-size:22px;color:var(--tb-color)}.tb-notice-paging button:disabled{opacity:.35;cursor:not-allowed}.tb-notice-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--tb-border);padding-top:18px}.tb-notice-actions button{padding:9px 13px;border:1px solid var(--tb-border);border-radius:9px;font-size:11px;color:var(--tb-color);background:var(--tb-hover)}
.tb-tooltip[hidden],.tb-popover[hidden]{display:none!important}
html:not([lang=zh-CN]):not([lang=zh-TW]) #platform-auth .platform-method-tabs button{min-width:0;white-space:normal;line-height:1.4;font-size:11px;overflow-wrap:break-word}
@media(max-width:1200px){.platform-header.tb-header .platform-layout-tag{display:none}.platform-header.tb-header .agent-sidebar-toggle{margin-left:0}.platform-header.tb-header .tb-actions{gap:3px}.platform-header.tb-header .tb-actions .tb-action{width:38px;min-width:38px;height:40px;flex-basis:38px;padding:9px}.platform-header.tb-header .platform-header-tools{gap:8px}.platform-header.tb-header .tb-actions .tb-action svg{width:20px;height:20px}}
@media(max-width:950px){.platform-header.tb-header .tb-actions #tb-reseller,.platform-header.tb-header .tb-actions #agent-background-toggle{display:none}.platform-header.tb-header .tb-actions #tb-more{display:flex}.platform-header.tb-header .platform-header-tools #tb-preview{display:none}.platform-header.tb-header{padding-inline:13px}}
@media(max-width:700px){.platform-header.tb-header{height:58px;gap:7px;padding-inline:12px}.platform-header.tb-header .platform-header-tools{gap:5px}.platform-header.tb-header .platform-header-tools #platform-menu-toggle{display:flex;width:29px;height:29px;padding:5px}.platform-header.tb-header .tb-actions{gap:3px}.platform-header.tb-header .tb-actions .tb-action{width:32px;min-width:32px;height:33px;flex-basis:32px;padding:7px;border-radius:9px}.platform-header.tb-header .tb-actions .tb-action svg{width:18px;height:18px}.platform-header.tb-header .tb-actions #tb-console,.platform-header.tb-header .tb-actions #tb-language,.platform-header.tb-header .tb-actions #platform-theme,.platform-header.tb-header .tb-actions #platform-help,.platform-header.tb-header .tb-actions #tb-notices{display:none!important}.platform-header.tb-header .platform-login.tb-login{font-size:10px;height:31px;min-height:31px;padding:6px 8px;max-width:88px;gap:4px}.platform-header.tb-header .tb-login svg{width:14px;height:14px}.platform-header.tb-header .platform-header-tools #platform-unified-logout{font-size:9px}.tb-dialog{padding:20px 17px;width:calc(100vw - 24px);max-height:calc(100svh - 24px);border-radius:18px}.tb-dialog>header h2{font-size:20px}.tb-dialog.tb-help-drawer{padding:22px 18px;width:min(450px,100vw);border-radius:17px 0 0 17px}.tb-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tb-work-card>img,.tb-work-symbol{height:120px}.tb-work-filter>input{width:100%;margin:3px 0 0}.tb-notice-article>h3{font-size:21px}.tb-popover{max-height:calc(100svh - 80px)}.tb-tooltip{font-size:11px}}
html[dir=rtl] .platform-header.tb-header .platform-header-tools{margin-left:0;margin-right:auto}
html[dir=rtl] body.agent-chat-page .platform-sidebar{left:auto;right:8px}
html[dir=rtl] body.agent-chat-page:not(.platform-entry) #main{margin-left:0;margin-right:309px}
html[dir=rtl] body.agent-chat-page.agent-sidebar-collapsed #main{margin-right:0}
html[dir=rtl] body.agent-chat-page.agent-sidebar-collapsed .platform-sidebar{transform:translateX(320px)}
html[dir=rtl] .agent-composer-rail{left:auto;right:-42px}
html[dir=rtl] .agent-control-right{margin-left:0;margin-right:auto}
html[dir=rtl] .tb-dialog.tb-help-drawer{inset:0 auto 0 0;border-radius:0 20px 20px 0}
html[dir=rtl] .tb-help-intro>.tb-text-link{right:auto;left:0}
@media(max-width:1050px){html[dir=rtl] body.agent-chat-page:not(.platform-entry) #main{margin-right:270px}}
@media(max-width:700px){html[dir=rtl] body.agent-chat-page:not(.platform-entry) #main{margin-right:0}html[dir=rtl] body.agent-chat-page .platform-sidebar{translate:110% 0;transform:none}html[dir=rtl] body.agent-chat-page.platform-sidebar-open .platform-sidebar{translate:0 0}html[dir=rtl] .agent-composer-rail{left:auto;right:auto}}
