/* AI Frontier workspace — quiet, readable, task-first. */
:root{color-scheme:light;--ws-bg:#fffdf8;--ws-side:#f5f3ed;--ws-panel:#ffffff;--ws-soft:#f0eee8;--ws-ink:#252723;--ws-muted:#62665f;--ws-line:#e7e5de;--ws-hover:#ebe9e2;--ws-accent:#c26a39;--ws-accent-soft:#f8eee5;--ws-button:#272a25;--ws-button-text:#fff;--ws-danger:#ae4437;--ws-shadow:0 16px 60px #2c2b2014;--chat-font-size:18px;--ws-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
html[data-theme=dark],body[data-theme=dark]{color-scheme:dark;--ws-bg:#20211e;--ws-side:#191a17;--ws-panel:#292b26;--ws-soft:#31332d;--ws-ink:#edeee7;--ws-muted:#acaea4;--ws-line:#3c3e36;--ws-hover:#30322b;--ws-accent:#e7a77b;--ws-accent-soft:#3d3026;--ws-button:#e9eade;--ws-button-text:#24261f;--ws-danger:#f1a69a;--ws-shadow:0 16px 60px #0004}
*{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden}body.workspace-page{font:15px/1.6 var(--ws-font);background:var(--ws-bg);color:var(--ws-ink);-webkit-font-smoothing:antialiased;--ink:var(--ws-ink);--muted:var(--ws-muted);--line:var(--ws-line);--brand:var(--ws-accent)}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;background:transparent;border:0}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}p,h1,h2,h3{margin:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{max-width:100%}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--ws-accent);outline-offset:3px}input,textarea,select{color:var(--ws-ink)}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--ws-accent);outline-offset:1px}button[hidden],[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.icon-definitions{position:absolute;left:0;top:0;width:0;height:0;overflow:hidden}.skip-link{position:fixed;left:20px;top:-100px;z-index:300;background:var(--ws-panel);padding:10px 18px}.skip-link:focus{top:14px}.ws-icon{width:19px;height:19px;display:inline-block;vertical-align:middle}
.workspace-page .relay-workspace{display:grid;grid-template-columns:254px minmax(0,1fr);height:100vh;height:100dvh;min-height:0;border:0;border-radius:0;background:var(--ws-bg);overflow:hidden}.workspace-page .relay-sidebar{background:var(--ws-side);padding:25px 15px 16px;border-right:1px solid var(--ws-line);display:flex;flex-direction:column;min-height:0;overflow:hidden;max-width:none}.workspace-brand-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 4px 28px}.workspace-brand{display:flex;gap:10px;align-items:center;min-width:0;color:var(--ws-ink);font-size:21px;font-weight:750;letter-spacing:-1.15px;line-height:1}.workspace-brand>span:last-child{display:flex;flex-direction:column;justify-content:center;min-width:0;white-space:nowrap}.workspace-brand b{display:block;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:1.05}.workspace-brand b span,.workspace-brand-ai{font-weight:700;font-size:.92em;letter-spacing:-.03em;color:var(--ws-ink)}.workspace-brand small{font-size:12px;letter-spacing:1.6px;font-weight:500;color:var(--ws-muted);display:block;line-height:1.15;margin-top:3px}.workspace-brand-mark{display:block;flex:none;width:32px;height:32px;line-height:0;border-radius:9px;overflow:hidden}.workspace-brand-mark svg{display:block;width:32px;height:32px;fill:none;stroke:none;flex-shrink:0}.workspace-icon-button{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;padding:8px;border-radius:8px;color:var(--ws-muted);flex-shrink:0}.workspace-icon-button:hover{background:var(--ws-hover);color:var(--ws-ink)}.workspace-brand-row .workspace-icon-button{width:27px;padding:5px}.workspace-new{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-panel);font-size:14px;font-weight:550;box-shadow:0 1px 2px #25251504}.workspace-new:hover{border-color:#c7c7ba}.workspace-new kbd{font:14px/1.5 var(--ws-font);color:var(--ws-muted);margin-left:auto;opacity:.65}.workspace-search{display:flex;align-items:center;gap:11px;padding:12px 14px;font-size:14px;color:var(--ws-muted);border-radius:8px;margin:5px 0 17px;text-align:left}.workspace-search:hover{background:var(--ws-hover);color:var(--ws-ink)}.workspace-page .relay-nav{display:flex;flex-direction:column;gap:3px;padding:0 0 23px;margin:0;border-bottom:1px solid var(--ws-line);overflow:visible}.workspace-page .relay-nav button{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:7px;font-size:14px;font-weight:400;color:var(--ws-ink);text-align:left;background:transparent;line-height:1.5}.workspace-page .relay-nav button svg{width:18px;height:18px}.workspace-page .relay-nav button:hover{background:var(--ws-hover)}.workspace-page .relay-nav button.active{background:var(--ws-hover);font-weight:600;color:var(--ws-ink)}.workspace-history-heading{display:flex;justify-content:space-between;align-items:center;margin:25px 13px 13px;font-size:14px;color:var(--ws-muted)}.workspace-local-label{font-size:14px;opacity:.75}.workspace-history{flex:1;min-height:40px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--ws-line) transparent}.workspace-history-empty{padding:8px 13px;color:var(--ws-muted);font-size:14px}.ws-history-group{font-size:14px;color:var(--ws-muted);padding:8px 12px 5px}.ws-history-group h3{font-size:14px;font-weight:400}.ws-history-row{display:flex;gap:2px;align-items:center;border-radius:7px;position:relative;margin:2px 0}.ws-history-row.active,.ws-history-row:hover{background:var(--ws-hover)}.ws-history-open{min-width:0;flex:1;text-align:left;padding:11px 12px;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-history-open strong,.ws-history-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;font-weight:400}.ws-history-open small{display:none}.ws-history-menu{width:28px;height:32px;display:grid;place-items:center;flex-shrink:0;color:var(--ws-muted);opacity:0}.ws-history-row:hover .ws-history-menu,.ws-history-row:focus-within .ws-history-menu,.ws-history-row.active .ws-history-menu{opacity:1}.workspace-sidebar-bottom{margin-top:auto;padding-top:18px;background:var(--ws-side)}.workspace-balance{display:flex;align-items:center;justify-content:space-between;padding:13px 13px 14px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-bg);margin-bottom:15px}.workspace-balance span{display:block;font-size:14px;color:var(--ws-muted);margin-bottom:3px}.workspace-balance strong{font-size:19px;font-weight:550;font-variant-numeric:tabular-nums;line-height:1.4}.workspace-balance-add{border:1px solid var(--ws-line);border-radius:50%;width:28px;height:28px;display:grid;place-items:center;background:var(--ws-panel)}.workspace-balance-add svg{width:15px;height:15px}.workspace-account-row{display:flex;align-items:center;gap:9px;padding:0 8px}.workspace-avatar{width:31px;height:31px;border-radius:50%;background:#e9e6db;display:grid;place-items:center;color:#6a6e5e;flex:none}.workspace-avatar svg{width:16px;height:16px}.workspace-page #relay-side-account{flex:1;min-width:0;font-size:14px;color:var(--ws-muted);line-height:1.45}.workspace-page #relay-side-account strong,.workspace-page #relay-side-account a{display:block;font-size:14px;font-weight:550;color:var(--ws-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-page #relay-side-account>span{font-size:14px}.workspace-account-row .workspace-icon-button{width:30px;height:30px}.workspace-side-foot{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--ws-muted);padding:18px 10px 0}.workspace-side-foot a{display:flex;align-items:center;gap:5px}.workspace-side-foot svg{width:12px;height:12px;transform:rotate(180deg)}.workspace-service-dot{width:6px;height:6px;border-radius:50%;background:#bba373;display:block}.workspace-service-dot.ready{background:#6b8b62}
.workspace-page .relay-main{padding:0;min-width:0;max-width:none;display:flex;flex-direction:column;position:relative;overflow:hidden;background:var(--ws-bg)}.workspace-topbar{height:76px;flex:none;display:flex;justify-content:space-between;align-items:center;padding:0 30px;gap:20px}.workspace-topbar-left{display:flex;align-items:center;gap:12px;min-width:0}.workspace-model-trigger{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:550;border-radius:8px;padding:8px 9px;margin-left:-9px;min-width:0;max-width:410px}.workspace-model-trigger:hover{background:var(--ws-soft)}.workspace-model-trigger img{width:23px;height:23px;object-fit:contain;border-radius:5px}.workspace-model-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-model-trigger svg:last-child{width:15px;height:15px;color:var(--ws-muted)}.workspace-topbar-actions{display:flex;align-items:center;gap:15px;flex-shrink:0}.workspace-top-link{display:flex;align-items:center;gap:7px;padding:8px 2px;font-size:14px;color:var(--ws-muted)}.workspace-top-link:hover{color:var(--ws-ink)}.workspace-top-link svg{width:17px;height:17px}.workspace-language{font-size:14px;padding:5px 3px;color:var(--ws-muted);font-weight:550}.workspace-language:hover{color:var(--ws-ink)}.workspace-menu-toggle{display:none}.workspace-topbar h2{font-size:15px;font-weight:550}.workspace-content{position:relative;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.workspace-page .relay-panel{overflow:auto;min-height:0;max-width:none;width:100%;flex:1;padding:42px 6.5% 60px}.workspace-page .relay-panel.workspace-chat-panel{padding:0;display:flex;overflow:hidden}.workspace-page .relay-workspace.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}.sidebar-collapsed .relay-sidebar{visibility:hidden}.sidebar-collapsed .workspace-menu-toggle{display:flex}.workspace-backdrop{display:none}.workspace-loading{font-size:14px;text-align:center;color:var(--ws-muted);margin:24px}.workspace-page .relay-message{position:absolute;z-index:50;left:50%;bottom:24px;transform:translateX(-50%);border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-panel);padding:12px 18px;font-size:14px;color:var(--ws-ink);max-width:min(700px,calc(100% - 40px));box-shadow:var(--ws-shadow);margin:0;line-height:1.6}.workspace-page .relay-message.error{color:var(--ws-danger)}.workspace-page .relay-message:empty{display:none}
/* Chat canvas. */
.ws-chat{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;flex:1;position:relative;--ws-content-width:804px}.ws-chat.is-empty{justify-content:center;padding:0 28px 9vh}.ws-welcome{text-align:center;margin:0 auto 33px;max-width:800px}.ws-welcome-emblem{font-family:Georgia,serif;color:var(--ws-accent);font-size:48px;line-height:1;margin-bottom:22px}.ws-welcome .eyebrow,.ws-welcome>small{color:var(--ws-muted);font-size:14px;letter-spacing:2px;margin-bottom:15px}.ws-welcome h1, .ws-welcome .ws-welcome-title{font-family:"Noto Serif CJK SC","Songti SC","STSong","SimSun",Georgia,serif;font-size:35px;font-weight:550;letter-spacing:1.3px;line-height:1.5;color:var(--ws-ink)}html[lang=en] .ws-welcome h1, html[lang=en] .ws-welcome .ws-welcome-title{font-family:Georgia,"Times New Roman",serif;font-size:37px;letter-spacing:-1px;font-weight:400}.ws-welcome p{font-size:14px;color:var(--ws-muted);line-height:1.8;margin-top:13px}.ws-thread:empty{display:none}.ws-thread{flex:1;min-height:0;overflow:auto;padding:25px max(28px,calc((100% - var(--ws-content-width))/2)) 35px;scrollbar-width:thin;scrollbar-color:var(--ws-line) transparent;scroll-behavior:smooth}.ws-message{position:relative;margin:0 0 32px;min-width:0}.ws-message-label{font-size:14px;font-weight:600;margin-bottom:12px;display:flex;align-items:center;gap:8px;color:var(--ws-muted)}.ws-message-label img{width:22px;height:22px;object-fit:contain}.ws-message.is-user{margin-left:auto;max-width:88%}.ws-message.is-user .ws-message-label{justify-content:flex-end}.ws-message.is-user .ws-message-body{background:var(--ws-soft);padding:15px 21px;border-radius:17px 17px 3px 17px}.ws-message-body{font-size:var(--chat-font-size,17px);line-height:1.85;overflow-wrap:anywhere;color:var(--ws-ink)}.ws-message-body p{margin:0 0 16px}.ws-message-body p:last-child{margin-bottom:0}.ws-message-body h1,.ws-message-body h2,.ws-message-body h3,.ws-message-body h4{line-height:1.5;margin:24px 0 12px;font-weight:650;font-size:1.15em}.ws-message-body h1{font-size:1.45em}.ws-message-body h2{font-size:1.3em}.ws-message-body ul,.ws-message-body ol{padding-left:25px;margin:12px 0}.ws-message-body li{margin:5px 0}.ws-message-body a{color:var(--ws-accent);text-decoration:underline;text-underline-offset:4px}.ws-message-body blockquote{border-left:3px solid var(--ws-line);padding:5px 18px;margin:18px 0;color:var(--ws-muted)}.ws-message-body pre{white-space:pre;overflow:auto;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-soft);padding:18px;margin:18px 0;font:14px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace}.ws-message-body code{font:0.86em/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;background:var(--ws-soft);padding:2px 5px;border-radius:4px}.ws-message-body pre code{padding:0;background:none;font-size:inherit}.ws-message-body table{border-collapse:collapse;font-size:.9em;display:block;overflow:auto;max-width:100%;margin:20px 0}.ws-message-body th,.ws-message-body td{border:1px solid var(--ws-line);padding:10px 14px;text-align:left}.ws-message-body th{background:var(--ws-soft)}.ws-message-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:10px;color:var(--ws-muted)}.ws-message-actions button{display:flex;align-items:center;gap:5px;font-size:14px;padding:6px 8px;border-radius:6px}.ws-message-actions button:hover{background:var(--ws-soft);color:var(--ws-ink)}.ws-message-actions svg{width:14px;height:14px}.ws-message-actions small,.ws-usage{font-size:14px;color:var(--ws-muted);margin-left:7px}.ws-message.is-user .ws-message-actions{justify-content:flex-end}.ws-message-error{font-size:14px;color:var(--ws-danger);padding:12px 0;line-height:1.7}.ws-code-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:5px}.ws-code-actions button{padding:6px 9px;font-size:14px;color:var(--ws-muted);border:1px solid var(--ws-line);border-radius:6px}.ws-pending{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ws-muted);padding:12px 0}.ws-pending:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ws-accent);animation:ws-pulse 1.4s infinite}.ws-composer-dock{width:100%;max-width:var(--ws-content-width);margin:0 auto;flex-shrink:0}.ws-chat.has-messages .ws-composer-dock{max-width:calc(var(--ws-content-width) + 56px);padding:12px 28px 18px}.ws-composer{border:1px solid var(--ws-line);background:var(--ws-panel);border-radius:18px;padding:18px 18px 13px;box-shadow:0 5px 28px #3c332508;transition:border-color .15s,box-shadow .15s}.ws-composer:focus-within{border-color:#c9c7ba;box-shadow:0 5px 28px #3c33250d}.ws-composer textarea{display:block;resize:none;width:100%;min-height:67px;max-height:230px;border:0;background:transparent;outline:none!important;box-shadow:none!important;padding:0 3px 10px;font-size:16px;line-height:1.7;color:var(--ws-ink)}.ws-composer textarea::placeholder{color:#96998f}.ws-composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}.ws-composer-tools{display:flex;align-items:center;gap:6px;min-width:0}.ws-composer-tools button{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--ws-muted);padding:7px 9px;border-radius:7px}.ws-composer-tools button:hover{background:var(--ws-soft);color:var(--ws-ink)}.ws-composer-tools button svg{width:18px;height:18px}.ws-composer-tools>span,.ws-context-label{font-size:14px;color:var(--ws-muted);padding-left:8px}.ws-send{height:36px;min-width:36px;border-radius:50%;background:var(--ws-button);color:var(--ws-button-text);display:inline-flex;align-items:center;justify-content:center;flex:none;padding:8px}.ws-send svg{width:20px;height:20px}.ws-send:hover{opacity:.85}.ws-send:disabled{opacity:.25}.ws-composer-hint{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:14px;line-height:1.6;color:var(--ws-muted);padding:11px 5px 0;text-align:center}.ws-composer-hint p{font-size:14px}.ws-composer-hint>span:only-child{margin:auto}.ws-suggestions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin:19px auto 0;max-width:820px}.ws-suggestions>button{display:flex;align-items:center;gap:8px;border:1px solid var(--ws-line);background:transparent;padding:9px 13px;border-radius:8px;color:var(--ws-muted);font-size:14px;white-space:nowrap}.ws-suggestions>button:hover{background:var(--ws-panel);border-color:#cecfc2;color:var(--ws-ink)}.ws-suggestions svg{width:15px;height:15px}.ws-suggestions strong{font-size:14px;font-weight:450}.ws-suggestions small{display:none}.ws-notice{font-size:14px;color:var(--ws-muted);line-height:1.7;max-width:804px;margin:0 auto 12px;overflow-wrap:anywhere}.ws-notice.error{color:var(--ws-danger)}.ws-notice:empty{display:none}.ws-notice a{text-decoration:underline;text-underline-offset:3px}.ws-notice button{color:var(--ws-accent);padding:2px 8px}.ws-attachments,.ws-message-attachments{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:13px}.ws-attachments:empty,.ws-message-attachments:empty{display:none}.ws-attachment{display:flex;align-items:center;gap:9px;border:1px solid var(--ws-line);background:var(--ws-bg);border-radius:9px;padding:8px;max-width:255px;min-width:160px;font-size:14px}.ws-attachment img{width:38px;height:38px;border-radius:5px;object-fit:cover;display:block}.ws-attachment strong,.ws-attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;font-weight:500;max-width:150px}.ws-attachment small{display:block;font-size:14px;color:var(--ws-muted);margin-top:2px}.ws-attachment>button:last-child{margin-left:auto;color:var(--ws-muted);padding:3px}.ws-attachment svg{width:16px;height:16px}.ws-drop-overlay{position:absolute;inset:12px;background:var(--ws-panel);border:2px dashed var(--ws-accent);border-radius:15px;z-index:30;display:flex;justify-content:center;align-items:center;text-align:center;font-size:20px;color:var(--ws-accent);opacity:.97}
/* Dialogs and model picker. */
.ws-dialog{border:1px solid var(--ws-line);border-radius:15px;background:var(--ws-panel);color:var(--ws-ink);width:640px;max-width:calc(100vw - 32px);max-height:88vh;max-height:88dvh;padding:0;box-shadow:var(--ws-shadow);overflow:auto;font-family:var(--ws-font)}.ws-dialog::backdrop{background:#292a2548;backdrop-filter:blur(3px)}.ws-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px 17px;border-bottom:1px solid var(--ws-line)}.ws-dialog-head h2{font-size:20px;font-weight:600;letter-spacing:-.3px}.ws-dialog-head>button{display:grid;place-items:center;width:30px;height:30px;color:var(--ws-muted);border-radius:6px}.ws-dialog-head>button:hover{background:var(--ws-soft)}.ws-dialog-body{padding:22px 25px;min-width:0}.ws-dialog-footer{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:15px 25px 22px}.ws-dialog p{font-size:14px;color:var(--ws-muted);line-height:1.8}.ws-dialog input:not([type=checkbox]):not([type=range]),.ws-dialog select,.ws-dialog textarea{width:100%;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-bg);padding:10px 12px;color:var(--ws-ink);font:14px/1.5 var(--ws-font)}.ws-dialog textarea{min-height:110px;resize:vertical}.ws-dialog label{font-size:14px;line-height:1.6;display:block}.ws-dialog label>input,.ws-dialog label>select,.ws-dialog label>textarea{margin-top:7px}.ws-dialog .ws-button,.ws-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--ws-button);color:var(--ws-button-text);border-radius:8px;padding:10px 17px;font-size:14px}.ws-dialog .ws-secondary,.ws-secondary{border:1px solid var(--ws-line);background:var(--ws-panel);padding:9px 15px;border-radius:8px;font-size:14px}.ws-danger{color:var(--ws-danger)}.ws-dialog .ws-field{margin-bottom:17px}.ws-settings-grid,.ws-settings-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ws-settings-section{padding:18px 0;border-bottom:1px solid var(--ws-line)}.ws-settings-section h3{font-size:14px;margin-bottom:13px}.ws-settings-note{font-size:14px;color:var(--ws-muted);margin-top:14px}.ws-model-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.ws-model-filters input[type=search]{flex:1;min-width:200px}.ws-model-filters select{max-width:160px}.ws-model-filters button{border:1px solid var(--ws-line);padding:7px 11px;border-radius:7px;font-size:14px;color:var(--ws-muted)}.ws-model-filters button.active{background:var(--ws-soft);color:var(--ws-ink)}.ws-model-filters label{display:flex;gap:6px;align-items:center;font-size:14px;color:var(--ws-muted)}.ws-model-filters input[type=checkbox]{accent-color:var(--ws-accent);margin:0}.ws-model-results{max-height:48vh;overflow:auto;scrollbar-width:thin;padding-right:3px}.ws-model-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--ws-line);padding:5px;border-radius:8px}.ws-model-row:hover{background:var(--ws-bg)}.ws-model-row.selected{background:var(--ws-accent-soft)}.ws-model-choice{display:flex;align-items:center;gap:12px;text-align:left;flex:1;min-width:0;padding:10px 6px}.ws-provider-icon{width:32px;height:32px;display:grid;place-items:center;font-size:14px;font-weight:600;border-radius:8px;background:var(--ws-soft);flex:none;color:var(--ws-muted);object-fit:contain}.ws-provider-icon img{width:26px;height:26px;object-fit:contain}.ws-model-meta{min-width:0;flex:1}.ws-model-meta strong{font-size:14px;font-weight:550;display:block;white-space:normal}.ws-model-meta small,.ws-model-meta code{font-size:14px;display:block;color:var(--ws-muted);overflow:hidden;text-overflow:ellipsis;max-width:280px;white-space:nowrap}.ws-model-meta span{font-size:14px;color:var(--ws-accent);display:inline-block;margin-right:7px}.ws-model-price{font-size:14px;color:var(--ws-muted);text-align:right;white-space:nowrap}.ws-model-price small{display:block;font-size:14px;margin-top:3px}.ws-model-favorite{width:28px;flex:none;padding:5px;color:var(--ws-muted)}.ws-model-favorite[aria-pressed=true]{color:var(--ws-accent)}.ws-model-favorite[aria-pressed=true] svg{fill:var(--ws-accent-soft)}.ws-empty-note{padding:25px 10px;text-align:center;font-size:14px;color:var(--ws-muted)}.ws-export-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ws-export-options button{border:1px solid var(--ws-line);border-radius:9px;text-align:left;padding:17px;background:var(--ws-bg);font-size:14px}.ws-export-options button:hover{border-color:var(--ws-accent)}.ws-export-options strong{font-weight:550;display:block}.ws-export-options small{color:var(--ws-muted);font-size:14px;margin-top:5px;display:block}.ws-file-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--ws-line);padding:14px 0;font-size:14px}.ws-file-row>div{min-width:0;flex:1}.ws-file-row strong{display:block;overflow-wrap:anywhere;font-weight:550}.ws-file-row small{display:block;font-size:14px;color:var(--ws-muted)}.ws-file-row>button{border:1px solid var(--ws-line);padding:6px 10px;border-radius:6px;font-size:14px}.ws-file-preview{max-width:100%;max-height:55vh;object-fit:contain;display:block;margin:auto}.ws-file-text{white-space:pre-wrap;overflow:auto;max-height:50vh;font:14px/1.75 ui-monospace,monospace;background:var(--ws-bg);padding:16px;border-radius:8px}.ws-search-results button{width:100%;text-align:left;padding:13px 5px;border-bottom:1px solid var(--ws-line);font-size:14px}.ws-search-results small{display:block;font-size:14px;color:var(--ws-muted);margin-top:4px}
/* Account, pricing and API views share the same reading rhythm. */
.workspace-page .relay-panel-title{margin-bottom:28px;align-items:center;gap:20px}.workspace-page .relay-panel:not(.workspace-chat-panel) h1, .workspace-page .relay-panel:not(.workspace-chat-panel) .relay-hero-title{font-family:Georgia,"Songti SC","SimSun",serif;font-size:29px;font-weight:500;line-height:1.5;letter-spacing:.1px}.workspace-page .relay-panel:not(.workspace-chat-panel) h2{font-size:25px;font-weight:550;line-height:1.5}.workspace-page .relay-panel-title p,.workspace-page .relay-intro{font-size:14px;color:var(--ws-muted);line-height:1.9;margin-top:9px}.workspace-section-eyebrow{font-size:14px!important;color:var(--ws-accent)!important;letter-spacing:2px;margin:0 0 8px!important}.workspace-price-note{display:flex;flex-wrap:wrap;gap:16px 30px;font-size:14px;color:var(--ws-muted);padding:16px 0;border-top:1px solid var(--ws-line);border-bottom:1px solid var(--ws-line);margin-bottom:25px}.workspace-price-note b{font-weight:550;color:var(--ws-ink)}.workspace-price-note>span:last-child{margin-left:auto}.workspace-page .relay-filters{gap:12px;margin-bottom:20px}.workspace-page .relay-model-search,.workspace-page .relay-filters select{height:42px;background:var(--ws-panel);border-color:var(--ws-line);color:var(--ws-muted);border-radius:7px;font-size:14px}.workspace-page .relay-model-search input{font-size:14px;color:var(--ws-ink)}.workspace-page .relay-model-table,.workspace-page .relay-data-table{font-size:14px}.workspace-page .relay-model-table th,.workspace-page .relay-data-table th{font-size:14px;background:var(--ws-soft);color:var(--ws-muted);border-color:var(--ws-line);padding:13px 12px}.workspace-page .relay-model-table td,.workspace-page .relay-data-table td{padding:17px 12px;border-color:var(--ws-line);white-space:normal}.workspace-page .model-name strong{font-size:14px;color:var(--ws-ink);font-weight:550;max-width:250px}.workspace-page .model-name code{font-size:14px;color:var(--ws-muted);max-width:230px}.workspace-page .provider-monogram{width:34px;height:34px;background:var(--ws-soft);color:var(--ws-muted);border:1px solid var(--ws-line);font-size:14px}.workspace-page .modality{background:var(--ws-soft);color:var(--ws-muted);font-size:14px}.workspace-page .relay-model-table td small,.workspace-page .relay-data-table td small{font-size:14px;color:var(--ws-muted);overflow-wrap:anywhere}.workspace-page .relay-pagination{font-size:14px;color:var(--ws-muted);padding:21px 0}.workspace-page .relay-pagination button{width:32px;height:30px;border-color:var(--ws-line)}.workspace-page .relay-footnote{font-size:14px;color:var(--ws-muted);line-height:1.9}.workspace-page .relay-form{gap:20px;margin-top:25px;max-width:660px}.workspace-page .relay-form label{font-size:14px;color:var(--ws-ink);gap:8px}.workspace-page .relay-form input,.workspace-page .relay-form select,.workspace-page .relay-form textarea{font-size:14px;background:var(--ws-panel);border-color:var(--ws-line);padding:12px 13px;border-radius:7px;color:var(--ws-ink)}.workspace-page .relay-primary{padding:11px 18px;font-size:14px;background:var(--ws-button);color:var(--ws-button-text);border-radius:7px}.workspace-page .relay-secondary{font-size:14px;background:var(--ws-panel);border-color:var(--ws-line);color:var(--ws-ink);padding:10px 13px;border-radius:7px;display:inline-flex;align-items:center;gap:7px}.workspace-page .relay-secondary svg{width:14px;height:14px}.workspace-page .relay-empty{font-size:14px;background:var(--ws-panel);border-color:var(--ws-line);color:var(--ws-muted);padding:60px 24px;border-style:solid;border-radius:10px}.workspace-page .relay-wallet-total{background:var(--ws-panel);border-color:var(--ws-line);padding:28px;border-radius:10px;margin:28px 0 22px}.workspace-page .relay-wallet-total>span{font-size:14px;color:var(--ws-muted)}.workspace-page .relay-wallet-total strong{font-size:38px;font-weight:500;margin:8px 0}.workspace-page .relay-wallet-total p{font-size:14px;color:var(--ws-muted)}.workspace-page .relay-status{background:var(--ws-accent-soft);border-color:var(--ws-line);color:var(--ws-muted);font-size:14px;padding:13px 16px}.workspace-page .relay-guide pre,.workspace-page .relay-code{background:var(--ws-panel);border-color:var(--ws-line);color:var(--ws-ink);font-size:14px;line-height:1.9;padding:20px;border-radius:8px}.workspace-page .relay-guide h3{font-size:16px;margin-top:30px}.workspace-page .relay-guide p,.workspace-page .relay-guide li{font-size:14px;color:var(--ws-muted);line-height:1.95}.workspace-page .relay-guide a{color:var(--ws-accent)}.workspace-page .relay-admin-box{background:var(--ws-panel);border-color:var(--ws-line);border-radius:10px;padding:25px}.workspace-page .relay-admin-box h3{font-size:17px;font-weight:550}.workspace-page .relay-admin-grid{gap:25px}.workspace-page .relay-presets button{font-size:14px;border-color:var(--ws-line);color:var(--ws-ink);padding:7px 12px}.workspace-page .relay-profit-preview{background:var(--ws-soft);font-size:14px;color:var(--ws-muted);padding:17px;line-height:1.9}.workspace-page .relay-profit-preview strong{font-size:24px;color:var(--ws-accent)}.workspace-page .relay-users button{font-size:14px;border-color:var(--ws-line);padding:12px;color:var(--ws-ink)}.workspace-page .relay-users button.active{background:var(--ws-soft)}.workspace-page .relay-secret{background:var(--ws-accent-soft);border-color:var(--ws-line);color:var(--ws-ink);padding:22px;font-size:14px}.workspace-page .relay-secret p,.workspace-page .relay-secret code{color:var(--ws-muted);font-size:14px}
@keyframes ws-pulse{50%{opacity:.3}}
.ws-welcome-mark{font:48px/1 Georgia,serif;color:var(--ws-accent);margin:0 auto 24px}.ws-welcome .ws-eyebrow{font-size:14px;letter-spacing:2px;margin:0 0 12px}.ws-composer-submit{display:flex;align-items:center;gap:16px}.ws-enter-hint{font-size:14px;color:var(--ws-muted);white-space:nowrap}.ws-attachment-preview{display:flex;align-items:center;gap:9px;min-width:0;flex:1;text-align:left;padding:0}.ws-attachment-preview>span{min-width:0}.ws-attachment-preview>svg{width:25px;height:25px;color:var(--ws-muted);margin:0 3px}.ws-attachment-note{flex-basis:100%;font-size:14px;color:var(--ws-muted);line-height:1.7;padding:3px}.ws-notice.is-error{color:var(--ws-danger)}.ws-history-empty{font-size:14px;color:var(--ws-muted);padding:7px 13px;line-height:1.8}.ws-dialog-search{display:flex!important;align-items:center;gap:10px;margin-bottom:15px}.ws-dialog-search svg{color:var(--ws-muted);width:18px;height:18px}.ws-dialog-search input{margin:0!important;flex:1}.ws-dialog-wide{width:760px}.ws-dialog-empty{padding:35px 20px;text-align:center;color:var(--ws-muted);font-size:14px}.ws-model-tabs{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0 0 16px}.ws-model-tabs button{border:1px solid var(--ws-line);border-radius:6px;padding:6px 11px;font-size:14px;color:var(--ws-muted)}.ws-model-tabs button.active,.ws-model-tabs button[aria-pressed=true]{background:var(--ws-soft);color:var(--ws-ink);border-color:#cacdbd}.ws-model-tabs label{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:14px;color:var(--ws-muted)}.ws-model-tabs label input{margin:0;accent-color:var(--ws-accent)}.ws-download-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ws-download-options button{border:1px solid var(--ws-line);border-radius:9px;text-align:left;padding:18px;background:var(--ws-bg);font-size:14px}.ws-download-options button:hover{border-color:var(--ws-accent)}.ws-download-options strong{font-weight:550;display:block;margin:8px 0 4px}.ws-download-options small{color:var(--ws-muted);font-size:14px;margin-top:5px;display:block;line-height:1.6}.ws-quiet{border:1px solid var(--ws-line);background:var(--ws-panel);padding:9px 15px;border-radius:8px;font-size:14px}.ws-files-list h3{font-size:14px;font-weight:550;margin:22px 0 10px}.ws-file-code{font:14px/1.6 ui-monospace,monospace;color:var(--ws-muted);max-width:100%;overflow-wrap:anywhere}.ws-settings-form{display:grid;gap:20px}.ws-settings-form>.ws-dialog-footer{padding:5px 0 0}.ws-settings-form small{font-size:14px;color:var(--ws-muted);display:block;margin-top:8px;line-height:1.7}.ws-settings-form .ws-settings-grid{gap:17px}.ws-settings-form input[type=checkbox]{width:16px;height:16px;accent-color:var(--ws-accent);margin:0 8px 0 0}.ws-thread-manage{display:grid;gap:16px}.ws-thread-manage .ws-dialog-footer{padding-left:0;padding-right:0}.ws-history-results button{display:flex;align-items:center;gap:12px;width:100%;padding:15px 3px;text-align:left;border-bottom:1px solid var(--ws-line);color:var(--ws-muted)}.ws-history-results button>span{min-width:0;flex:1}.ws-history-results button strong{font-size:14px;color:var(--ws-ink);font-weight:550;display:block}.ws-history-results button small{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}.ws-editing{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--ws-accent);padding:10px 5px}.ws-editing button{text-decoration:underline;white-space:nowrap}.ws-request-error{font-size:14px;color:var(--ws-danger);padding:17px 20px;border:1px solid var(--ws-line);border-radius:9px;margin:10px 0 22px;background:var(--ws-panel);line-height:1.8}.ws-request-error small{font-size:14px;display:block;overflow-wrap:anywhere}.ws-request-error button{font-size:14px;display:flex;align-items:center;gap:7px;margin-top:8px}.ws-spinner{display:inline-block;width:17px;height:17px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ws-spin 1s linear infinite}.ws-thinking{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px;color:var(--ws-muted);padding:20px 0}.ws-thinking small{font-size:14px;flex-basis:100%;padding-left:28px}.ws-drop-zone{position:absolute;inset:12px;background:var(--ws-panel);border:2px dashed var(--ws-accent);border-radius:15px;z-index:30;display:flex;flex-direction:column;gap:12px;justify-content:center;align-items:center;text-align:center;font-size:20px;color:var(--ws-accent);opacity:.98}.ws-drop-zone p{font-size:14px;color:var(--ws-muted)}.ws-drop-zone svg{width:30px;height:30px}.ws-user-text{white-space:pre-wrap}.ws-message-body .workspace-code{padding:12px 16px 17px}.ws-code-actions{margin:-12px -16px 14px;padding:8px 10px;border-bottom:1px solid var(--ws-line);white-space:normal;background:var(--ws-panel)}.ws-code-actions svg{width:13px;height:13px}.ws-code-actions button{display:flex;align-items:center;gap:5px;border:0;padding:5px 7px}.workspace-model-trigger .ws-provider-icon{width:23px;height:23px;background:transparent;border-radius:4px}.workspace-model-trigger .ws-provider-icon img{width:23px;height:23px}.ws-message-label .ws-provider-icon{width:23px;height:23px;background:transparent}.ws-message-label .ws-provider-icon img{width:21px;height:21px}.ws-confirm-text{padding-bottom:7px}.ws-danger{border:1px solid var(--ws-line);border-radius:7px;padding:9px 14px;font-size:14px}
@keyframes ws-spin{to{transform:rotate(360deg)}}
@media(min-width:1600px){.workspace-page .relay-workspace{grid-template-columns:270px minmax(0,1fr)}.workspace-topbar{padding:0 40px}.ws-chat{--ws-content-width:850px}.ws-chat.is-empty{padding-bottom:12vh}.ws-welcome h1, .ws-welcome .ws-welcome-title{font-size:38px}}
@media(max-width:1150px){.workspace-page .relay-workspace{grid-template-columns:230px minmax(0,1fr)}.workspace-page .relay-sidebar{padding-left:12px;padding-right:12px}.workspace-brand{font-size:19px}.workspace-brand-row{padding-bottom:24px}.workspace-topbar{padding:0 23px}.workspace-topbar-actions{gap:9px}.ws-chat{--ws-content-width:710px}.ws-welcome h1, .ws-welcome .ws-welcome-title{font-size:30px}.workspace-page .relay-panel{padding:32px 28px 50px}.workspace-page .relay-admin-grid{grid-template-columns:1fr}.workspace-new kbd{font-size:14px}.ws-model-price{font-size:14px}}
@media(max-width:800px){.workspace-page .relay-workspace{display:flex}.workspace-page .relay-sidebar{position:fixed;left:0;top:0;bottom:0;width:270px;z-index:110;box-shadow:20px 0 70px #2222;transform:translateX(-100%);visibility:hidden;transition:transform .18s ease,visibility .18s ease}.workspace-page .relay-workspace.sidebar-open .relay-sidebar{transform:translateX(0);visibility:visible}.workspace-page .relay-main{flex:1;width:100%}.workspace-menu-toggle{display:flex}.workspace-page .relay-workspace.sidebar-open .workspace-backdrop{display:block;position:fixed;inset:0;background:#24251c55;z-index:100}.workspace-topbar{height:66px;padding:0 15px;gap:12px}.workspace-topbar-left{gap:8px}.workspace-topbar-actions{gap:7px}.workspace-top-link span{display:none}.workspace-top-link{padding:8px}.workspace-topbar-actions>[data-relay-tab=docs]{display:none}.workspace-model-trigger{font-size:14px;gap:7px;max-width:330px;margin-left:0;padding:8px 2px}.workspace-model-trigger img{width:20px;height:20px}.workspace-topbar .workspace-icon-button{width:31px;height:33px;padding:6px}.ws-chat.is-empty{padding:0 23px 11vh}.ws-welcome{margin-bottom:28px}.ws-welcome h1, .ws-welcome .ws-welcome-title{font-size:30px;letter-spacing:1px}.ws-welcome p{font-size:14px;line-height:1.9}.ws-welcome-emblem{font-size:42px;margin-bottom:20px}.ws-suggestions{gap:8px;margin-top:17px}.ws-suggestions>button{font-size:14px;padding:8px 11px}.ws-suggestions strong{font-size:14px}.ws-thread{padding:20px 22px 30px}.ws-chat.has-messages .ws-composer-dock{padding:10px 18px 12px}.ws-composer{border-radius:15px;padding:15px 13px 11px}.ws-composer textarea{min-height:73px;font-size:16px}.ws-composer-hint{font-size:14px;gap:8px}.ws-composer-tools>span{display:none}.ws-message-actions small{font-size:14px}.workspace-page .relay-panel{padding:25px 22px 45px}.workspace-page .relay-panel:not(.workspace-chat-panel) h1, .workspace-page .relay-panel:not(.workspace-chat-panel) .relay-hero-title{font-size:25px}.workspace-page .relay-panel:not(.workspace-chat-panel) h2{font-size:23px}.workspace-page .relay-panel-title{align-items:flex-start;gap:14px}.workspace-page .relay-panel-title p{font-size:14px;max-width:none}.workspace-page .relay-filters{flex-wrap:wrap}.workspace-page .relay-model-search{flex-basis:100%}.workspace-page .relay-model-search input{font-size:16px}.workspace-page .relay-model-table{min-width:700px}.workspace-page .relay-data-table{min-width:550px}.workspace-page .relay-model-table th:nth-child(5),.workspace-page .relay-model-table td:nth-child(5){display:table-cell}.workspace-price-note{font-size:14px;gap:10px 20px}.workspace-price-note>span:last-child{margin-left:0}.workspace-page .relay-admin-box{padding:20px}.workspace-page .relay-form input,.workspace-page .relay-form textarea{font-size:16px}.ws-dialog{max-height:90dvh}.ws-dialog-head{padding:20px}.ws-dialog-body{padding:20px}.ws-dialog-footer{padding:14px 20px 20px}.ws-model-filters input[type=search]{font-size:16px}.ws-model-price{font-size:14px}.ws-model-meta strong{font-size:14px}.ws-model-meta small,.ws-model-meta code{max-width:210px}.ws-model-choice{gap:9px}.ws-provider-icon{width:28px;height:28px}.ws-history-menu{opacity:1}.workspace-new kbd{font-size:14px}.workspace-page .relay-message{bottom:18px;font-size:14px}}
@media(max-width:460px){.workspace-topbar{padding:0 10px}.workspace-topbar-actions{gap:3px}.workspace-topbar-left{gap:4px;flex:1;overflow:hidden}.workspace-model-trigger{max-width:200px;font-size:14px}.workspace-model-trigger span{max-width:133px}.workspace-topbar-actions .workspace-icon-button{width:28px}.workspace-top-link{padding:7px 4px}.workspace-language{font-size:14px;padding:5px}.ws-chat.is-empty{padding:0 17px 9vh}.ws-welcome h1, .ws-welcome .ws-welcome-title{font-size:25px;letter-spacing:.5px}html[lang=en] .ws-welcome h1, html[lang=en] .ws-welcome .ws-welcome-title{font-size:30px;max-width:320px;line-height:1.25;margin:auto}.ws-welcome p{font-size:14px;max-width:300px;margin:12px auto 0}.ws-welcome{margin-bottom:25px}.ws-welcome-emblem{font-size:38px;margin-bottom:18px}.ws-suggestions{max-width:340px;gap:8px}.ws-suggestions>button{font-size:14px;gap:6px}.ws-composer-tools button{font-size:14px;padding:7px 6px;gap:5px}.ws-composer-tools svg{width:17px;height:17px}.ws-composer-hint{font-size:14px;display:block;line-height:1.8}.ws-composer-hint>span:last-child{display:none}.ws-composer textarea{min-height:80px}.ws-thread{padding:17px 17px 22px}.ws-message-body{font-size:var(--chat-font-size,17px);line-height:1.85}.ws-message.is-user{max-width:94%}.ws-message.is-user .ws-message-body{padding:13px 16px}.ws-chat.has-messages .ws-composer-dock{padding:8px 12px 10px}.ws-dialog{max-width:calc(100vw - 22px)}.ws-dialog-head{padding:17px}.ws-dialog-head h2{font-size:19px}.ws-dialog-body{padding:17px}.ws-dialog-footer{padding:13px 17px 18px}.ws-model-filters{gap:8px}.ws-model-filters input[type=search]{min-width:100%;flex-basis:100%}.ws-model-filters select{max-width:145px}.ws-model-meta small,.ws-model-meta code{max-width:150px}.ws-model-price{font-size:14px}.ws-model-price small{font-size:14px}.ws-model-favorite{width:24px;padding:4px}.ws-model-choice{padding:10px 2px;gap:8px}.ws-provider-icon{width:25px;height:25px}.ws-model-meta strong{font-size:14px}.ws-settings-grid,.ws-settings-row{grid-template-columns:1fr;gap:14px}.ws-export-options{gap:9px}.ws-export-options button{padding:14px;font-size:14px}.workspace-page .relay-panel{padding:23px 17px 40px}.workspace-page .relay-panel:not(.workspace-chat-panel) h1, .workspace-page .relay-panel:not(.workspace-chat-panel) .relay-hero-title{font-size:23px}.workspace-page .relay-panel-title .relay-secondary{font-size:14px;white-space:nowrap;padding:8px 10px}.workspace-page .relay-panel-title p{font-size:14px}.workspace-page .relay-guide p,.workspace-page .relay-guide li{font-size:14px}.workspace-page .relay-empty{padding:40px 19px;font-size:14px}}
@media(max-height:730px) and (min-width:801px){.workspace-brand-row{padding-bottom:19px}.workspace-search{margin-bottom:10px}.workspace-page .relay-nav{padding-bottom:15px;gap:1px}.workspace-page .relay-nav button{padding-top:9px;padding-bottom:9px}.workspace-history-heading{margin-top:18px}.workspace-sidebar-bottom{padding-top:13px}.workspace-side-foot{padding-top:13px}.workspace-balance{padding-top:10px;padding-bottom:10px;margin-bottom:11px}.ws-chat.is-empty{padding-bottom:6vh}.ws-welcome{margin-bottom:25px}.ws-welcome-emblem{font-size:35px;margin-bottom:17px}.ws-welcome h1, .ws-welcome .ws-welcome-title{font-size:30px}.ws-welcome p{margin-top:9px}.workspace-topbar{height:67px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Final controls sized for the actual workbench templates. */
.ws-model-filters>.ws-dialog-search{width:100%;margin-bottom:2px}.ws-model-filters>.ws-model-tabs{margin:0;flex:1}.ws-model-filters>.ws-model-tabs button{display:inline-flex;align-items:center;gap:5px}.ws-model-filters>.ws-model-tabs svg{width:13px;height:13px}.ws-model-filters>select{font-size:14px;max-width:160px;padding:8px 10px}.ws-model-price-note{font-size:14px!important;margin:0 0 10px}.ws-model-result-count{margin:12px 0 0}.ws-model-price strong{font-weight:450}.ws-files-list .ws-attachment{max-width:100%;margin:7px 0}.ws-file-code{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--ws-line);width:100%;text-align:left;font-family:var(--ws-font);font-size:14px;color:var(--ws-ink)}.ws-file-code>span{flex:1}.ws-file-code svg:last-child{color:var(--ws-muted);width:16px;height:16px}.ws-settings-form h3{font-size:14px;font-weight:600}.ws-dialog .ws-quiet{display:inline-flex;align-items:center;justify-content:center;gap:7px}.ws-dialog .ws-quiet svg{width:16px;height:16px}p.ws-composer-hint{display:block;text-align:center}.ws-composer-tools .ws-model-inline{font-size:14px}.ws-composer-tools .ws-model-inline svg{width:13px;height:13px}.ws-request-error+.ws-message{margin-top:22px}
@media(max-width:800px){.ws-welcome-mark{font-size:42px;margin-bottom:20px}.ws-enter-hint{display:none}.ws-model-filters>.ws-model-tabs{flex-basis:100%}.ws-model-filters>select{max-width:100%;width:100%}}
@media(max-width:460px){.ws-welcome-mark{font-size:38px;margin-bottom:18px}.ws-model-filters>.ws-model-tabs button{font-size:14px;padding:6px 9px}.ws-dialog-footer{flex-wrap:wrap}.ws-model-meta{max-width:calc(100% - 100px)}}

.ws-file-preview>img{display:block;max-height:50vh;max-width:100%;object-fit:contain;margin:0 auto 17px}.ws-file-preview>pre{max-height:50vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.75 ui-monospace,monospace;text-align:left;background:var(--ws-bg);padding:16px;border-radius:8px;border:1px solid var(--ws-line)}.ws-file-preview>p{font-size:14px;line-height:1.8;margin-top:12px;text-align:left}.ws-file-preview{max-height:none}

/* Comfortable type and direct provider navigation. */
.ws-dialog-wide{width:920px;max-width:calc(100vw - 32px)}
.ws-dialog-wide .ws-dialog-head h2{font-size:23px;line-height:1.5}
.ws-dialog-wide .ws-dialog-body{padding:24px}
.ws-model-filters{display:flex;flex-direction:column;align-items:stretch;gap:16px}
.ws-dialog-search{display:flex;align-items:center;gap:11px;min-width:0}
.ws-model-filters .ws-dialog-search input{width:100%;font-size:16px;min-height:48px;line-height:1.5}
.ws-provider-tabs{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ws-provider-tab{display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 12px;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-panel);color:var(--ws-ink);font-size:14px;line-height:1.35}
.ws-provider-tab .ws-provider-icon{width:21px;height:21px;background:transparent;border-radius:3px}
.ws-provider-tab .ws-provider-icon img{width:21px;height:21px}
.ws-provider-tab.active{background:var(--ws-accent-soft);border-color:var(--ws-accent);color:var(--ws-ink);font-weight:600}
.ws-provider-tab:hover{border-color:var(--ws-accent)}
.ws-model-options{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.ws-model-tabs{display:flex;flex-wrap:wrap;gap:8px}
.ws-model-tabs button{font-size:14px;min-height:38px;padding:7px 11px;border-radius:7px}
.ws-model-options select{min-height:40px;max-width:210px;font-size:14px;padding:7px 10px}
.ws-model-price-note{font-size:14px;line-height:1.7;color:var(--ws-muted);margin:16px 0 8px}
.ws-model-results{max-height:50dvh;overflow-y:auto;overscroll-behavior:contain}
.ws-model-row{padding:3px 0}
.ws-model-choice{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 8px;text-align:left}
.ws-model-choice>.ws-icon{display:none}
.ws-model-choice .ws-provider-icon{width:34px;height:34px;align-self:center}
.ws-provider-icon img{object-fit:contain;width:26px;height:26px;display:block}
.ws-model-meta strong{font-size:17px;line-height:1.5;font-weight:600}
.ws-model-meta small{font-size:14px;line-height:1.7;max-width:none;white-space:normal;margin-top:4px;color:var(--ws-muted)}
.ws-model-price{font-size:15px;line-height:1.6;min-width:132px;text-align:right}
.ws-model-price strong{font-weight:500}
.ws-model-price small{font-size:14px;line-height:1.5}
.ws-model-favorite{width:36px;height:42px;padding:9px}
.ws-model-result-count{color:var(--ws-muted);margin-top:14px}
.workspace-page .relay-nav button,.workspace-new,.workspace-search,.ws-history-open{font-size:15px}
.workspace-model-trigger{font-size:17px}
.workspace-top-link,.workspace-language{font-size:15px}
.ws-composer textarea{font-size:18px}
.ws-composer-tools{flex-wrap:wrap;gap:6px}
.ws-composer-tools button{font-size:14px;min-height:38px}
.ws-composer-tools .ws-mode-toggle[aria-pressed=true]{color:var(--ws-accent);background:var(--ws-accent-soft)}
.ws-mode-toggle:disabled{opacity:.5;cursor:not-allowed}
.ws-enter-hint{font-size:14px}
.ws-composer-hint,.ws-usage{font-size:14px;line-height:1.7}
.ws-welcome p,.ws-suggestions>button{font-size:15px}
.ws-generated-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin:18px 0}
.ws-generated-image{margin:0;min-width:0}
.ws-generated-image img{width:100%;height:auto;max-height:640px;object-fit:contain;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-panel)}
.ws-generated-image figcaption{display:flex;align-items:center;justify-content:space-between;font-size:14px;line-height:1.6;gap:10px;margin-top:8px}
.ws-generated-image a{display:inline-flex;align-items:center;gap:5px;color:var(--ws-accent);padding:6px 0}
.ws-web-citations{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;margin:15px 0}
.ws-thinking.is-searching{color:var(--ws-muted, #5c574e)}
.ws-thinking.is-searching [data-ws-live-status]{font-weight:600}
.ws-web-citations a{padding:7px 11px;border:1px solid var(--ws-line);border-radius:7px;max-width:100%;overflow-wrap:anywhere;line-height:1.5}
@media(max-width:600px){
 .ws-dialog-wide{max-width:calc(100vw - 20px)}.ws-dialog-wide .ws-dialog-body{padding:17px}
 .ws-provider-tabs{gap:7px}.ws-provider-tab{padding:8px 9px;font-size:14px}
 .ws-model-options select{width:100%;max-width:none}
 .ws-model-choice{grid-template-columns:32px minmax(0,1fr);gap:8px 11px;padding:14px 4px}
 .ws-model-meta strong{font-size:16px}.ws-model-meta small{font-size:14px;max-width:none}
 .ws-model-price{grid-column:2;text-align:left;font-size:14px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-width:0}
 .ws-model-price small{font-size:14px;margin:0}.ws-model-favorite{align-self:flex-start;margin-top:12px}
 .ws-model-results{max-height:54dvh}.ws-composer-toolbar{gap:8px;align-items:flex-end}
 .ws-model-inline{display:none!important}.ws-enter-hint{display:none}.ws-composer-tools button{font-size:14px;padding:8px 7px}
 .ws-chat.is-empty{padding-bottom:5vh}.ws-welcome p{font-size:15px}.ws-composer-hint{font-size:14px}
 .workspace-model-trigger{font-size:16px;max-width:230px}.workspace-model-trigger span{max-width:150px}
}

.ws-mode-note{font-size:14px;line-height:1.7;color:var(--ws-muted);padding:10px 5px 0}.ws-model-choice:disabled{opacity:.55;cursor:not-allowed}.ws-generated-image figcaption button{display:inline-flex;gap:6px;align-items:center;font-size:14px;color:var(--ws-accent)}

/* chat empty-state and novice navigation, 2026-11-18 */
.ws-welcome-mark,.ws-welcome-emblem{display:none}
.ws-chat.is-empty{justify-content:center;padding:0 28px 8vh}
.ws-welcome{text-align:center;margin:0 auto 28px;max-width:720px}
.ws-welcome h1, .ws-welcome .ws-welcome-title{font-family:"Noto Serif CJK SC","Songti SC","STSong","SimSun",Georgia,serif;font-size:32px;font-weight:550;letter-spacing:.6px;line-height:1.55;color:var(--ws-ink)}
html[lang=en] .ws-welcome h1, html[lang=en] .ws-welcome .ws-welcome-title{font-family:Georgia,"Times New Roman",serif;font-size:34px;letter-spacing:-.4px;font-weight:400}
.workspace-model-trigger{align-items:center;gap:8px;max-width:min(520px,100%)}
.workspace-model-label{flex:none;font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--ws-muted);border:1px solid var(--ws-line);border-radius:999px;padding:2px 8px;line-height:1.4;background:var(--ws-panel)}
.workspace-model-trigger:hover .workspace-model-label{color:var(--ws-ink)}
.workspace-model-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-topbar-left{gap:10px;flex:1;min-width:0}
.workspace-top-status{display:flex;align-items:center;gap:8px;flex:none;min-width:0;margin-right:4px}
.workspace-top-balance{display:flex;align-items:baseline;gap:6px;color:var(--ws-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.workspace-top-balance-label{font-size:12px;color:var(--ws-muted)}
.workspace-top-balance strong{font-size:14px;font-weight:600}
.workspace-top-maintenance{font-size:12px;color:var(--ws-muted);white-space:nowrap}
.workspace-top-billing{font-size:13px;font-weight:600;color:var(--ws-accent);padding:5px 8px;border-radius:7px;white-space:nowrap}
.workspace-top-billing:hover{background:var(--ws-soft);color:var(--ws-ink)}
.ws-notice.is-error,.ws-notice.error{color:var(--ws-danger)}
.ws-notice-detail{margin:6px 0 0;font-size:14px;color:var(--ws-ink)}
.ws-notice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ws-notice-actions button,.ws-notice-actions a{display:inline-flex;align-items:center;font-size:14px;font-weight:600;color:var(--ws-accent);border:1px solid var(--ws-line);border-radius:8px;padding:6px 10px;background:var(--ws-panel);line-height:1.4}
.ws-notice-actions button:hover,.ws-notice-actions a:hover{background:var(--ws-soft);color:var(--ws-ink)}
@media(max-width:800px){
  .ws-welcome{margin-bottom:22px}
  .ws-welcome h1, .ws-welcome .ws-welcome-title{font-size:26px;letter-spacing:.4px}
  .workspace-top-balance-label{display:none}
  .workspace-model-trigger{max-width:min(360px,calc(100vw - 210px))}
  .ws-chat.is-empty{padding:0 20px 8vh}
}
@media(max-width:460px){
  .ws-welcome h1, .ws-welcome .ws-welcome-title{font-size:22px;letter-spacing:.2px}
  html[lang=en] .ws-welcome h1, html[lang=en] .ws-welcome .ws-welcome-title{font-size:24px;max-width:320px;line-height:1.35;margin:auto}
  .workspace-top-status{gap:5px}
  .workspace-top-billing{padding:5px 6px;font-size:13px}
  .workspace-model-trigger{max-width:min(240px,calc(100vw - 168px));font-size:14px}
  .workspace-model-label{padding:2px 6px}
  .workspace-top-maintenance{display:none}
}

/* default-picker viewport dialog
   Keep the model picker inside the visual viewport on narrow phones.
   Do not use overflow:hidden to hide overflow; shrink and wrap instead.
   --ws-vv-width / --ws-vv-height are set from visualViewport when the dialog opens. */
.ws-dialog,.ws-dialog-wide{
  box-sizing:border-box;
  min-width:0;
  width:min(920px,calc(var(--ws-vv-width,100vw) - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));
  max-width:calc(var(--ws-vv-width,100vw) - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
  max-height:min(88dvh,calc(var(--ws-vv-height,100dvh) - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));
  margin:auto;
  display:flex;
  flex-direction:column;
  overflow-x:auto;
  overflow-y:auto;
}
.ws-dialog-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  position:sticky;
  top:0;
  z-index:2;
  background:var(--ws-panel);
}
.ws-dialog-head h2{
  flex:1 1 auto;
  min-width:0;
  overflow-wrap:anywhere;
  font-size:18px;
  line-height:1.35;
}
.ws-dialog-head>button{
  flex:0 0 auto;
}
.ws-dialog-body{
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  max-width:100%;
  box-sizing:border-box;
  overflow-x:auto;
  overflow-y:auto;
}
.ws-model-filters,.ws-provider-tabs,.ws-model-tabs,.ws-dialog-search,.ws-model-options,.ws-model-results{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.ws-provider-tabs,.ws-model-tabs,.ws-model-filters{
  flex-wrap:wrap;
}
.ws-dialog .ws-model-filters .ws-dialog-search input[type=search],
.ws-dialog .ws-model-filters input[type=search]{
  box-sizing:border-box;
  min-width:0;
  width:100%;
  flex-basis:100%;
  font-size:16px;
  line-height:1.5;
}
@media(max-width:430px){
  .ws-dialog,.ws-dialog-wide{
    width:calc(var(--ws-vv-width,100vw) - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
    max-width:calc(var(--ws-vv-width,100vw) - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
  }
  .ws-dialog-head,.ws-dialog-body{padding-left:14px;padding-right:14px}
  .ws-dialog-head h2{font-size:17px}
}

/* compact API empty-state CTA */
.ws-welcome-lead{margin:10px 0 0;font-size:15px;line-height:1.6;color:var(--ws-muted);max-width:28em}
.ws-welcome-start{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;min-height:44px;padding:8px 18px;border-radius:8px;background:var(--ws-button);color:var(--ws-button-text);font-size:15px;line-height:1.3}
@media(max-width:640px){
  .ws-welcome-lead{font-size:14px;max-width:100%}
  .ws-welcome-start{width:100%;max-width:280px}
}
.ws-notice-lead{margin:0;font-size:15px;line-height:1.55;font-weight:600}
.ws-notice.is-error .ws-notice-lead{color:var(--ws-danger)}

.ws-notice-actions a{text-decoration:none}
.ws-notice-actions .ws-notice-primary,.ws-notice-actions button.ws-notice-primary{background:var(--ws-accent);color:#fff;border-color:var(--ws-accent)}
.ws-notice-actions .ws-notice-primary:hover{background:var(--ws-ink);border-color:var(--ws-ink);color:#fff}
.ws-trial-banner{margin:0 auto 12px;max-width:var(--ws-content-width);width:100%;border:1px solid var(--ws-line);background:var(--ws-soft);border-radius:14px;padding:14px 16px}
.ws-trial-banner[hidden]{display:none}
.ws-trial-banner-inner{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.ws-trial-banner-inner strong{display:block;font-size:15px;color:var(--ws-ink)}
.ws-trial-banner-inner p{margin:6px 0 0;font-size:13px;line-height:1.65;color:var(--ws-muted)}
.ws-trial-banner-status{color:var(--ws-ink)!important}
.ws-trial-banner-status.is-error{color:var(--ws-danger)!important}
.ws-trial-banner .ws-primary{flex:0 0 auto;align-self:center}
.ws-notice-actions a.ws-notice-recharge{background:var(--ws-button);color:var(--ws-button-text);border-color:var(--ws-button)}
.ws-notice-actions a.ws-notice-recharge:hover{background:var(--ws-ink,#252723);color:var(--ws-button-text)}
@media(max-width:420px){
  .ws-notice-lead{font-size:14px;line-height:1.6}
  .ws-notice-actions button,.ws-notice-actions a{padding:8px 12px}
}

/* Desktop client entry (sidebar) and compact promo card on the keys / docs panels. */
.workspace-page .relay-nav a.workspace-client-link{display:flex;align-items:center;gap:12px;padding:9px 14px;border-radius:7px;font-size:15px;color:var(--ws-ink);line-height:1.5}
.workspace-page .relay-nav a.workspace-client-link svg{width:18px;height:18px}
.workspace-page .relay-nav a.workspace-client-link:hover{background:var(--ws-hover)}
.workspace-client-link em{margin-left:auto;font-style:normal;font-size:11.5px;font-weight:650;line-height:1;padding:4px 7px;border-radius:999px;color:var(--ws-accent);background:var(--ws-accent-soft)}
.ws-client-promo{display:flex;align-items:center;gap:14px;margin:0 0 22px;padding:14px 16px;border:1px solid var(--ws-line);border-radius:12px;background:linear-gradient(90deg,var(--ws-accent-soft),var(--ws-panel) 62%)}
.ws-client-promo-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:10px;background:var(--ws-panel);border:1px solid var(--ws-line);color:var(--ws-accent)}
.ws-client-promo-icon svg{width:21px;height:21px}
.ws-client-promo-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ws-client-promo-text strong{font-size:14.5px;font-weight:650;color:var(--ws-ink)}
.ws-client-promo-text span{font-size:13px;color:var(--ws-muted)}
.ws-client-promo-actions{display:flex;align-items:center;gap:14px;flex:none}
.ws-client-promo-btn{display:inline-flex;align-items:center;height:36px;padding:0 15px;border-radius:9px;background:var(--ws-button);color:var(--ws-button-text)!important;font-size:13.5px;font-weight:600;white-space:nowrap}
.ws-client-promo-btn:hover{opacity:.9}
.ws-client-promo-link{font-size:13.5px;color:var(--ws-muted);white-space:nowrap}
.ws-client-promo-link:hover{color:var(--ws-ink);text-decoration:underline}
@media (max-width:760px){.ws-client-promo{flex-wrap:wrap;align-items:flex-start}.ws-client-promo-text{flex-basis:calc(100% - 56px)}.ws-client-promo-actions{width:100%;padding-left:54px}}



/* Workspace typography: comfortable nav rows, softer chrome, compact footer, crafted model picker. */
.workspace-brand b span,
.workspace-brand-ai{
  font-weight:700;
  font-size:.92em;
  letter-spacing:-.03em;
  color:var(--ws-ink);
}
.workspace-page .relay-sidebar{
  padding:16px 16px 0;
}
.workspace-brand-row{
  padding:0 2px 16px;
}
.workspace-search{
  padding:10px 12px;
  margin:8px 0;
  font-size:14px;
  gap:10px;
  border-radius:10px;
  background:transparent;
}
.workspace-search:hover{
  background:var(--ws-hover);
}
.workspace-new{
  padding:10px 14px;
  border-radius:10px;
  box-shadow:none;
  font-weight:500;
}
.workspace-page .relay-nav{
  padding:0 0 16px;
  gap:4px;
  border-bottom-color:color-mix(in srgb, var(--ws-line) 70%, transparent);
}
.workspace-page .relay-nav button,
.workspace-page .relay-nav a.workspace-nav-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 12px;
  border-radius:10px;
  font-size:14.5px;
  font-weight:400;
  color:var(--ws-ink);
  text-align:left;
  line-height:1.4;
  min-height:42px;
}
.workspace-page .relay-nav button svg,
.workspace-page .relay-nav a.workspace-nav-link svg{
  width:18px;
  height:18px;
  flex:none;
}
.workspace-page .relay-nav a.workspace-nav-link:hover,
.workspace-page .relay-nav button:hover{
  background:var(--ws-hover);
}
.workspace-history-heading{
  margin:16px 8px 8px;
  font-size:13px;
}
.workspace-history{
  min-height:72px;
}
.ws-history-open{
  padding:8px 10px;
}

/* Compact footer dock: points, account, pills, then 返回首页 last. */
.workspace-sidebar-bottom{
  margin-top:auto;
  padding:8px 0 0;
  background:var(--ws-side);
  flex:none;
}
.workspace-balance-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:8px;
  min-height:36px;
  padding:6px 10px;
  margin:0 0 4px;
  border:0;
  border-radius:8px;
  background:transparent;
  text-align:left;
  color:var(--ws-ink);
}
.workspace-balance-line:hover{
  background:var(--ws-hover);
}
.workspace-balance-value{
  display:flex;
  align-items:baseline;
  gap:5px;
  min-width:0;
  font-variant-numeric:tabular-nums;
}
.workspace-balance-value strong{
  font-size:14.5px;
  font-weight:600;
  line-height:1.2;
}
.workspace-balance-unit{
  font-size:12px;
  font-weight:500;
  color:var(--ws-muted);
}
.workspace-balance-line .workspace-balance-add{
  width:22px;
  height:22px;
  border:1px solid var(--ws-line);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--ws-panel);
  flex:none;
}
.workspace-balance-line .workspace-balance-add svg{
  width:12px;
  height:12px;
}
.workspace-account-row{
  padding:0 6px 8px;
  gap:8px;
}
.workspace-footer-pills{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:2px 4px 8px;
}
.workspace-footer-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:32px;
  min-width:32px;
  padding:0 12px;
  border:1px solid var(--ws-line);
  border-radius:999px;
  background:var(--ws-panel);
  color:var(--ws-ink);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.01em;
  line-height:1;
  white-space:nowrap;
}
.workspace-footer-pill:hover{
  background:var(--ws-hover);
}
.workspace-footer-pill svg{
  width:14px;
  height:14px;
  flex:none;
}
.workspace-footer-app{
  margin-left:auto;
  max-width:100%;
}
.workspace-home-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:0 4px;
}
.workspace-home-link{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:6px 4px;
  border:0;
  border-radius:6px;
  background:transparent;
  font-size:13px;
  font-weight:550;
  color:var(--ws-muted);
  line-height:1.3;
}
.workspace-home-link:hover{
  color:var(--ws-ink);
  background:transparent;
}
.workspace-home-link svg{
  width:13px;
  height:13px;
  transform:rotate(180deg);
  flex-shrink:0;
}
.workspace-home-row .workspace-service-dot{
  flex:none;
  margin-right:4px;
}

/* Top bar: model switcher only + a couple of icons. */
.workspace-model-label{display:none;}
.workspace-model-trigger{
  max-width:min(280px,calc(100vw - 120px));
  gap:7px;
  padding:6px 8px;
  margin-left:0;
}
.workspace-model-trigger .workspace-model-name,
.workspace-model-name{
  font-size:14.5px;
  font-weight:600;
}
.workspace-topbar-actions{
  gap:6px;
}
.workspace-top-status:empty{display:none;}

/* Model picker craft: segmented control, custom vendor menu, grid rows, right-aligned prices. */
.ws-model-filters{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  margin-bottom:8px;
}
.ws-model-filters .ws-dialog-search{
  width:100%;
  margin:0;
}
.ws-model-toolbar{
  display:flex;
  align-items:stretch;
  gap:8px;
  flex-wrap:nowrap;
}
.ws-model-seg{
  display:inline-flex;
  align-items:stretch;
  flex:none;
  padding:3px;
  gap:0;
  border-radius:10px;
  background:var(--ws-soft);
  margin:0;
}
.ws-model-seg button,
.ws-model-filters .ws-model-seg button{
  min-height:36px;
  height:auto;
  padding:0 14px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--ws-muted);
  font-size:14px;
  font-weight:550;
  line-height:1.2;
  white-space:nowrap;
}
.ws-model-seg button.active,
.ws-model-seg button[aria-pressed=true],
.ws-model-filters .ws-model-seg button.active{
  background:var(--ws-panel);
  color:var(--ws-ink);
  box-shadow:0 1px 2px #25251514;
  border:0;
}
.ws-vendor-dropdown{
  position:relative;
  flex:1;
  min-width:0;
}
.ws-vendor-trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-height:42px;
  height:100%;
  padding:0 12px;
  border:1px solid var(--ws-line);
  border-radius:10px;
  background:var(--ws-panel);
  color:var(--ws-ink);
  font-size:14px;
  font-weight:550;
  text-align:left;
}
.ws-vendor-trigger:hover,
.ws-vendor-dropdown.is-open .ws-vendor-trigger{
  background:var(--ws-hover);
}
.ws-vendor-trigger svg{
  width:16px;
  height:16px;
  color:var(--ws-muted);
  flex:none;
}
.ws-vendor-dropdown.is-open .ws-vendor-trigger svg{
  transform:rotate(180deg);
}
.ws-vendor-trigger [data-vendor-label]{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ws-vendor-menu{
  max-height:min(360px,50vh);
  overflow:auto;
  padding:6px;
  border:1px solid var(--ws-line);
  border-radius:12px;
  background:var(--ws-panel);
  box-shadow:var(--ws-shadow);
  scrollbar-width:thin;
}
.ws-vendor-option{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:40px;
  padding:6px 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--ws-ink);
  font-size:14px;
  text-align:left;
}
.ws-vendor-option:hover,
.ws-vendor-option.selected{
  background:var(--ws-hover);
}
.ws-vendor-option .ws-provider-icon{
  width:22px;
  height:22px;
  border-radius:6px;
}
.ws-vendor-option .ws-provider-icon img{
  width:18px;
  height:18px;
}
.ws-vendor-option-main{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
  flex:1;
}
.ws-vendor-option-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:550;
}
.ws-vendor-option-count{
  font-size:13px;
  font-weight:500;
  color:var(--ws-muted);
  font-variant-numeric:tabular-nums;
  flex:none;
}
.ws-vendor-check{
  width:16px;
  height:16px;
  flex:none;
  stroke:var(--ws-ink);
  fill:none;
  stroke-width:2;
}
.ws-model-extras{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.ws-model-extras button,
.ws-model-filters .ws-model-extras button{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:32px;
  padding:0 11px;
  border:1px solid var(--ws-line);
  border-radius:999px;
  background:var(--ws-panel);
  color:var(--ws-muted);
  font-size:13px;
  font-weight:500;
  line-height:1;
}
.ws-model-extras button svg{
  width:14px;
  height:14px;
}
.ws-model-extras button:hover,
.ws-model-extras button.active,
.ws-model-extras button[aria-pressed=true],
.ws-model-filters .ws-model-extras button.active{
  background:var(--ws-soft);
  color:var(--ws-ink);
  border-color:#cacdbd;
}
.ws-model-results{
  max-height:58vh;
  max-height:58dvh;
  overflow:auto;
  scrollbar-width:thin;
  margin:4px -4px 0;
  padding:0 4px;
}
.ws-model-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  align-items:center;
  gap:4px;
  padding:0;
  border-bottom:1px solid var(--ws-line);
  border-radius:0;
  background:transparent;
}
.ws-model-row:last-child{
  border-bottom:0;
}
.ws-model-row:hover{
  background:var(--ws-soft);
}
.ws-model-row.selected{
  background:var(--ws-accent-soft);
}
.ws-model-choice{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-width:0;
  width:100%;
  padding:12px 6px 12px 8px;
  text-align:left;
}
.ws-model-meta{
  min-width:0;
}
.ws-model-meta strong{
  font-size:14.5px;
  font-weight:600;
  display:block;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ws-model-tags{
  display:flex;
  flex-wrap:nowrap;
  gap:0 8px;
  min-width:0;
  margin-top:4px;
  overflow:hidden;
  font-size:12.5px;
  color:var(--ws-muted);
  line-height:1.35;
  max-width:none;
  white-space:nowrap;
}
.ws-model-tag{
  flex:none;
  white-space:nowrap;
}
.ws-model-reason{
  display:block;
  margin-top:2px;
  font-size:12.5px;
  color:var(--ws-danger);
}
.ws-model-price{
  display:flex;
  flex-direction:row;
  align-items:baseline;
  justify-content:flex-end;
  gap:8px;
  flex:none;
  min-width:5.5em;
  margin:0;
  padding:0;
  font-size:13px;
  font-weight:550;
  font-variant-numeric:tabular-nums;
  color:var(--ws-ink);
  text-align:right;
  white-space:nowrap;
  line-height:1.3;
}
.ws-model-price-in{
  color:var(--ws-muted);
  font-weight:500;
}
.ws-model-price-out{
  color:var(--ws-ink);
  font-weight:600;
}
.ws-model-favorite{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex:none;
  padding:0;
  color:var(--ws-muted);
}
.ws-dialog:focus,
.ws-dialog:focus-visible,
.ws-dialog-head h2:focus,
.ws-dialog-head h2:focus-visible{
  outline:none;
  box-shadow:none;
}
.ws-dialog p.ws-model-result-count,
.ws-model-result-count{
  margin:6px 2px 0;
  padding:0;
  font-size:11px;
  color:var(--ws-muted);
  line-height:1.4;
}
.ws-model-price-note{display:none;}
.ws-settings-lang{
  grid-column:1/-1;
  margin:0;
  font-size:14px;
  color:var(--ws-muted);
}
.ws-settings-lang a{
  color:var(--ws-ink);
  font-weight:550;
  text-decoration:underline;
  text-underline-offset:2px;
}

@media (max-width:520px){
  .ws-model-toolbar{
    flex-wrap:wrap;
  }
  .ws-model-seg,
  .ws-vendor-dropdown{
    flex:1 1 100%;
  }
}

@media (hover:none) and (pointer:coarse), (max-width:800px){
  .workspace-new kbd,
  .ws-shift-hint,
  .ws-enter-hint{display:none;}
  .workspace-page .relay-sidebar{
    padding-bottom:0;
  }
  .workspace-home-link{
    min-height:48px;
    padding:8px 4px max(12px, env(safe-area-inset-bottom, 0px));
  }
  .workspace-home-row,
  .workspace-sidebar-bottom{
    padding-bottom:0;
  }
}
@media (max-height:730px) and (min-width:801px){
  .workspace-brand-row{padding-bottom:12px;}
  .workspace-search{margin:8px 0;}
  .workspace-home-link{min-height:32px;padding:4px;}
  .workspace-balance-line{min-height:32px;margin-bottom:2px;}
}


/* T-34 dropdown, compact rows, sidebar search */
.workspace-history-heading{
  display:flex;
  align-items:center;
  gap:6px;
  margin:12px 4px 6px;
  font-size:13px;
}
.workspace-history-title{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.workspace-local-label{
  flex:none;
  font-size:12px;
  opacity:.7;
}
.workspace-history-search-btn{
  width:28px;
  height:28px;
  padding:4px;
  margin-left:0;
  flex:none;
  border-radius:8px;
}
.workspace-history-search-btn.is-open,
.workspace-history-search-btn[aria-expanded=true]{
  background:var(--ws-hover);
  color:var(--ws-ink);
}
.workspace-history-heading:has(+ #workspace-history-search-box:not([hidden])) .workspace-local-label{
  display:none;
}
.workspace-history-search-box{
  padding:0 4px 8px;
}
.workspace-history-search-box[hidden]{
  display:none !important;
}
.workspace-history-search-field{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--ws-line);
  border-radius:8px;
  background:var(--ws-panel);
}
.workspace-history-search-field svg{
  width:14px;
  height:14px;
  color:var(--ws-muted);
  flex:none;
}
.workspace-history-search-field input{
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  padding:0;
  font:13px/1.4 var(--ws-font);
  color:var(--ws-ink);
  outline:none;
}

.workspace-sidebar-bottom{
  padding:4px 0 0;
}
.workspace-balance-line{
  min-height:32px;
  padding:4px 8px;
  margin:0;
}
.workspace-account-row{
  padding:0 6px 2px;
  gap:6px;
}
.workspace-footer-pills{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:6px;
  padding:2px 2px 6px;
  min-width:0;
}
.workspace-footer-pill{
  min-height:28px;
  min-width:28px;
  padding:0 9px;
  font-size:12px;
}
.workspace-footer-app{
  margin-left:auto;
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.workspace-home-row{
  padding:0 2px;
}
.workspace-home-link{
  min-height:32px;
  padding:4px 2px;
  font-size:13px;
}

.ws-dialog.ws-dialog-wide{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.ws-dialog-wide .ws-dialog-body{
  overflow:visible;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.ws-vendor-dropdown{
  position:relative;
  z-index:5;
  isolation:isolate;
}
.ws-vendor-dropdown.is-open{
  z-index:40;
}
.ws-vendor-menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 4px);
  z-index:50;
  width:100%;
  max-height:min(240px,42vh);
  overflow:auto;
  overscroll-behavior:contain;
  box-shadow:0 10px 32px rgba(28,30,20,.16),0 2px 8px rgba(28,30,20,.08);
}
.ws-vendor-menu[hidden]{
  display:none !important;
}

.ws-model-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px;
  align-items:start;
  gap:0;
  min-height:0;
}
.ws-model-choice{
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:start;
  column-gap:8px;
  row-gap:1px;
  width:100%;
  min-width:0;
  padding:7px 4px 7px 2px;
  text-align:left;
}
.ws-model-choice .ws-provider-icon{
  grid-column:1;
  grid-row:1 / span 2;
  width:22px;
  height:22px;
  margin-top:1px;
  border-radius:6px;
}
.ws-model-choice .ws-provider-icon img{
  width:16px;
  height:16px;
}
.ws-model-meta{
  display:contents;
}
.ws-model-meta > strong{
  grid-column:2;
  grid-row:1;
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ws-model-meta small.ws-model-tags,
.ws-model-tags{
  display:flex !important;
  flex-wrap:nowrap;
  align-items:center;
  grid-column:2;
  grid-row:2;
  gap:0 6px;
  min-width:0;
  max-width:none;
  margin-top:1px;
  overflow:hidden;
  font-size:12px;
  line-height:1.3;
  color:var(--ws-muted);
  white-space:nowrap;
}
.ws-model-tag{
  flex:none;
  white-space:nowrap;
}
.ws-model-reason{
  grid-column:2 / span 2;
  grid-row:3;
  margin-top:0;
  font-size:11.5px;
  line-height:1.3;
}
.ws-model-price{
  grid-column:3;
  grid-row:1;
  align-self:start;
  display:flex;
  flex-direction:row;
  align-items:baseline;
  justify-content:flex-end;
  gap:6px;
  margin:0;
  padding-top:1px;
  min-width:0;
  font-size:12.5px;
  font-weight:550;
  font-variant-numeric:tabular-nums;
  line-height:1.3;
  white-space:nowrap;
  text-align:right;
}
.ws-model-favorite{
  width:28px;
  height:28px;
  margin-top:2px;
}

@media (hover:none) and (pointer:coarse), (max-width:800px){
  .workspace-home-link{
    min-height:40px;
    padding:4px 2px calc(6px + env(safe-area-inset-bottom, 0px));
  }
}


/* Model switcher discoverability, 2026-11-29 */
.workspace-topbar{
  position:relative;
  justify-content:flex-start;
}
.workspace-topbar-left{
  flex:none;
}
.workspace-topbar-actions{
  margin-left:auto;
  flex:none;
}
.workspace-model-trigger{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 1 auto;
  min-width:0;
  min-height:40px;
  max-width:min(360px,46vw);
  margin:0;
  padding:0 12px 0 10px;
  border:1px solid var(--ws-line);
  border-radius:999px;
  background:var(--ws-panel);
  color:var(--ws-ink);
  box-shadow:0 1px 1px #2525150a;
  font-size:14.5px;
  font-weight:600;
  line-height:1.2;
}
.workspace-model-trigger:hover{
  background:var(--ws-soft);
  border-color:#d8d6ce;
}
html[data-theme=dark] .workspace-model-trigger:hover,
body[data-theme=dark] .workspace-model-trigger:hover,
body[data-workspace-theme=dark] .workspace-model-trigger:hover{
  border-color:#55584e;
}
.workspace-model-trigger:focus-visible{
  outline:2px solid var(--ws-accent);
  outline-offset:2px;
}
.workspace-model-trigger img,
.workspace-model-trigger .ws-provider-icon,
.workspace-model-trigger .ws-provider-icon img{
  width:22px;
  height:22px;
  flex:none;
  object-fit:contain;
  border-radius:5px;
}
.workspace-model-trigger .ws-provider-icon{
  background:transparent;
}
.workspace-model-trigger .workspace-model-name{
  min-width:0;
  max-width:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14.5px;
  font-weight:600;
}
.workspace-model-trigger svg:last-child{
  width:16px;
  height:16px;
  flex:none;
  color:var(--ws-muted);
}
#workspace-section-title{
  flex:1;
  min-width:0;
}

.ws-welcome-hint{
  margin:12px auto 0;
  max-width:24em;
  font-size:13px;
  line-height:1.55;
  color:var(--ws-muted);
  text-align:center;
}

.ws-composer-tools .ws-model-inline{
  border:1px solid var(--ws-line);
  border-radius:999px;
  background:var(--ws-panel);
  color:var(--ws-ink);
  min-height:32px;
  padding:0 10px 0 8px;
  gap:6px;
  font-size:13px;
  font-weight:550;
  max-width:min(240px,42vw);
}
.ws-composer-tools .ws-model-inline:hover{
  background:var(--ws-soft);
  color:var(--ws-ink);
}
.ws-model-inline-icon{
  display:grid;
  place-items:center;
  flex:none;
}
.ws-model-inline-icon:empty{
  display:none;
}
.ws-composer-tools .ws-model-inline .ws-model-inline-icon img,
.ws-composer-tools .ws-model-inline .ws-provider-icon,
.ws-composer-tools .ws-model-inline .ws-provider-icon img{
  width:16px;
  height:16px;
  object-fit:contain;
  border-radius:4px;
}
.ws-composer-tools .ws-model-inline .workspace-model-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ws-composer-tools .ws-model-inline svg:last-child{
  width:14px;
  height:14px;
  flex:none;
  color:var(--ws-muted);
}

@media (max-width:800px){
  .workspace-model-trigger{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    z-index:2;
    max-width:calc(100% - 120px);
    min-height:40px;
    font-size:14.5px;
  }
  .workspace-model-trigger .workspace-model-name{
    font-size:14.5px;
    max-width:none;
  }
  #workspace-section-title:not([hidden]){
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    max-width:calc(100% - 120px);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:center;
    font-size:15px;
    font-weight:600;
  }
}

@media (max-width:460px){
  .workspace-model-trigger{
    max-width:calc(100% - 108px);
    padding:0 10px 0 8px;
    gap:6px;
  }
  .workspace-model-trigger img,
  .workspace-model-trigger .ws-provider-icon,
  .workspace-model-trigger .ws-provider-icon img{
    width:20px;
    height:20px;
  }
  .ws-welcome-hint{
    font-size:12.5px;
    max-width:18.5em;
    margin-top:10px;
  }
}

/* Keep the composer chip off narrow phones so the toolbar stays one clean row. */
@media (max-width:600px){
  .ws-model-inline,
  .ws-composer-tools .ws-model-inline{
    display:none !important;
  }
}

/* Assistant file delivery */
.ws-deliveries{display:grid;gap:10px;clear:both;min-width:0;margin:12px 0 2px;font-family:var(--ws-font);font-size:14px;color:var(--ws-ink)}
.ws-deliveries:empty,[data-reply-prose]:empty{display:none}.ws-deliveries[aria-busy=true]{color:var(--ws-muted)}
.ws-file-card{min-width:0;width:100%;max-width:42rem;box-sizing:border-box;overflow:hidden;border:1px solid var(--ws-line);border-radius:16px;background:var(--ws-panel);color:var(--ws-ink);text-align:start;box-shadow:0 2px 5px #15171408}
.ws-file-row,.ws-file-info,.ws-file-actions,.ws-file-member-line,.ws-web-preview header,.ws-web-preview header>div{display:flex;align-items:center;gap:10px}
.ws-file-row{padding:14px;flex-wrap:wrap;justify-content:space-between}.ws-file-info{min-width:0;flex:1 1 11rem}.ws-file-icon{flex:none;display:grid;place-items:center;width:38px;height:42px;border-radius:10px;color:var(--ws-ink);background:var(--ws-soft)}.ws-file-icon svg{width:21px;height:21px}
.ws-file-title{display:grid;gap:3px;min-width:0}.ws-file-title strong{font-size:15px;line-height:1.3;font-weight:650;overflow-wrap:anywhere}.ws-file-title small{color:var(--ws-muted);font-size:12px;line-height:1.4}
.ws-file-actions{gap:7px;flex-wrap:wrap}.ws-file-download,.ws-file-action{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 13px;box-sizing:border-box;border-radius:10px;font:600 13px/1.25 var(--ws-font);cursor:pointer;white-space:nowrap;color:var(--ws-ink);background:var(--ws-panel);border:1px solid var(--ws-line)}
.ws-file-download{background:var(--ws-button);color:var(--ws-button-text);border-color:var(--ws-button)}.ws-file-download svg{width:16px;height:16px}.ws-file-action:hover{background:var(--ws-soft)}.ws-file-download:hover{filter:brightness(1.17)}.ws-file-card :is(button,summary):focus-visible,.ws-web-preview button:focus-visible{outline:2px solid var(--ws-accent);outline-offset:-2px}.ws-file-download:disabled,.ws-file-action:disabled{opacity:.65}
.ws-file-details{margin:0;border:0;border-top:1px solid var(--ws-line);background:transparent;color:var(--ws-muted);font:400 13px/1.5 var(--ws-font)}.ws-file-details>summary{display:list-item;cursor:pointer;padding:10px 15px;user-select:none;font-weight:500}.ws-file-details>summary:hover{color:var(--ws-ink);background:var(--ws-soft)}.ws-file-details>summary::marker{font-size:10px}
.ws-file-card pre.ws-file-source{margin:0;border:0;border-radius:0;padding:12px 15px;background:var(--ws-soft);color:var(--ws-ink);font:12px/1.6 ui-monospace,monospace;white-space:pre;overflow:auto;max-height:22rem;tab-size:2;min-width:0}.ws-file-member{padding:2px 14px 8px}.ws-file-member-line{justify-content:space-between;min-width:0}.ws-file-member-line span{overflow-wrap:anywhere}.ws-file-member .ws-file-details{border:0}.ws-file-member .ws-file-details>summary{padding:5px 0}.ws-file-notice{font-size:13px;line-height:1.45;overflow-wrap:anywhere}.ws-file-details>.ws-file-notice{margin:0;padding:0 15px 9px}
.ws-web-preview{box-sizing:border-box;width:min(94vw,76rem);height:min(90dvh,54rem);max-width:100vw;max-height:100dvh;margin:auto;padding:0;border:1px solid var(--ws-line);border-radius:16px;overflow:hidden;background:var(--ws-panel);color:var(--ws-ink);box-shadow:var(--ws-shadow)}.ws-web-preview[open]{display:flex;flex-direction:column}.ws-web-preview::backdrop{background:#1118}.ws-web-preview header{flex:none;justify-content:space-between;padding:9px 12px;border-bottom:1px solid var(--ws-line);font:600 14px/1.4 var(--ws-font)}.ws-web-preview header strong{overflow-wrap:anywhere;min-width:0}.ws-web-preview header>div{gap:6px}.ws-web-preview iframe{display:block;flex:1 1 auto;min-height:0;width:100%;border:0;background:#fff}
.ws-message.is-streaming .workspace-code{max-height:14rem;overflow:auto}
@media(max-width:560px){.ws-file-row{padding:12px;gap:10px}.ws-file-info{flex-basis:100%}.ws-file-actions{width:100%}.ws-file-actions button{flex:1;min-height:44px}.ws-file-details>summary{min-height:42px;box-sizing:border-box}.ws-web-preview{width:100vw;height:100dvh;border:0;border-radius:0}.ws-web-preview header{padding-top:max(8px,env(safe-area-inset-top))}}

.v88{font:inherit;color:inherit}.v88-bar,.v88-job,.v88-top,.v88-fields{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.v88-bar{font-size:.8rem}.v88 button,.v88-dialog button{font:inherit;cursor:pointer;border:1px solid #8885;border-radius:9px;padding:.34em .7em;background:transparent;color:inherit}.v88 .v88-open{font-weight:600}.v88-jobs:not(:empty){max-height:32vh;overflow:auto;margin:.4em 0}.v88-job{padding:.38rem .6rem;border-top:1px solid #8884;font-size:.82rem}.v88-job small{opacity:.8}.v88-job video{width:min(100%,420px);max-height:24vh;display:block;flex-basis:100%;background:#111;border-radius:8px}.v88-dialog{background:Canvas;color:CanvasText;border:1px solid #8886;border-radius:18px;padding:1.2rem;width:min(90vw,480px);max-height:84vh;overflow:auto;box-shadow:0 20px 90px #0004;font:inherit}.v88-dialog::backdrop{background:#16181d78}.v88-top{justify-content:space-between;margin-bottom:1rem}.v88-top h3{font-size:1.15rem;font-weight:650;margin:0}.v88-dialog label{display:grid;gap:.32rem;font-size:.83rem;font-weight:550}.v88-dialog textarea,.v88-dialog select{font:inherit;border:1px solid #8886;background:Canvas;color:CanvasText;padding:.55rem;border-radius:8px}.v88-dialog textarea{width:100%;box-sizing:border-box;min-height:7rem;resize:vertical}.v88-fields{margin:.8rem 0;align-items:end}.v88-dialog p{font-size:.85rem;margin:.65em 0}.v88-dialog .v88-confirm{background:#443dc4;color:white;border:0;padding:.6em 1em}.v88-dialog button:disabled{opacity:.5;cursor:default}.ws-composer-dock>.v88{padding:.15rem .6rem}.composer-area>.v88{padding:0 .4rem}.v88 button:focus-visible,.v88-dialog :focus-visible{outline:2px solid #8178ef;outline-offset:2px}

#relay-recharge{max-width:none;width:100%}
.workspace-page .relay-wallet-total,.workspace-page .recharge-card{width:100%;box-sizing:border-box}
/* Alipay recharge card — aligned with wallet total card */
.recharge-card{
  margin:0 0 8px;padding:24px;background:var(--ws-panel,#fff);border:1px solid var(--ws-line,rgba(16,24,40,.08));
  border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.04)
}
.recharge-card-head{margin:0 0 20px}
.recharge-card-head h3{margin:0;font-size:16px;font-weight:650;letter-spacing:-.2px;color:var(--ws-ink,#172035)}
.recharge-card-sub{margin:5px 0 0;font-size:13px;line-height:1.55;color:var(--ws-muted,#6b7280)}
.recharge-packs{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 20px
}
.recharge-pack{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:4px;min-height:72px;padding:12px 12px 11px;border-radius:12px;border:1.5px solid var(--ws-line,#e5e7eb);
  background:var(--ws-panel,#fff);color:var(--ws-ink,#172035);cursor:pointer;text-align:left;
  transition:border-color .15s,background .15s,box-shadow .15s,color .15s
}
.recharge-pack strong{font-size:18px;font-weight:700;letter-spacing:-.3px;line-height:1.1}
.recharge-pack small{font-size:12px;color:var(--ws-muted,#6b7280);line-height:1.3}
.recharge-pack:hover{border-color:#1677FF;color:#1677FF}
.recharge-pack:hover small{color:#1677FF99}
.recharge-pack.is-selected{
  border:2px solid #1677FF;background:rgba(22,119,255,.06);color:#0b5fd1;
  box-shadow:0 0 0 1px rgba(22,119,255,.08);padding:11px 11px 10px
}
.recharge-pack.is-selected small{color:#1677FFcc}
.recharge-pack-check{
  position:absolute;top:0;right:0;width:18px;height:18px;border-radius:0 10px 0 8px;
  background:#1677FF;color:#fff;display:none;align-items:center;justify-content:center
}
.recharge-pack.is-selected .recharge-pack-check{display:inline-flex}
.recharge-pay-row{
  display:grid;grid-template-columns:minmax(0,2fr) minmax(200px,1fr);gap:16px 20px;align-items:end;margin:0 0 12px
}
.recharge-amount-field{min-width:0}
.recharge-amount-label{display:block;margin:0 0 8px;font-size:13px;font-weight:600;color:var(--ws-muted,#6b7280)}
.recharge-amount-input{
  display:flex;align-items:center;gap:8px;min-height:48px;padding:0 14px;border-radius:12px;
  border:1.5px solid var(--ws-line,#e5e7eb);background:var(--ws-panel,#fff)
}
.recharge-amount-input:focus-within{border-color:#1677FF;box-shadow:0 0 0 3px rgba(22,119,255,.12)}
.recharge-yen{font-size:18px;font-weight:700;color:var(--ws-ink,#172035);flex:none}
.recharge-amount-input input{
  flex:1 1 88px;min-width:0;border:0;outline:0;background:transparent;font-size:18px;font-weight:650;
  color:var(--ws-ink,#172035);padding:10px 0;font-variant-numeric:tabular-nums
}
.recharge-estimate{
  flex:none;max-width:48%;text-align:right;font-size:13px;color:var(--ws-muted,#6b7280);line-height:1.35;white-space:nowrap
}
.recharge-estimate strong{color:#1677FF;font-weight:700}
.recharge-estimate .is-muted{color:var(--ws-muted,#9ca3af);font-weight:400}
.recharge-pay-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;min-width:200px;width:100%;
  padding:0 18px;border:0;border-radius:12px;background:#1677FF;color:#fff;font-size:15px;font-weight:700;
  cursor:pointer;box-shadow:0 6px 16px rgba(22,119,255,.22);transition:background .15s,box-shadow .15s,opacity .15s
}
.recharge-pay-btn:hover:not(:disabled){background:#0958D9;box-shadow:0 8px 18px rgba(9,88,217,.28)}
.recharge-pay-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.recharge-alipay-icon{flex:none}
.recharge-secure{margin:0;font-size:12px;color:var(--ws-muted,#9ca3af);line-height:1.5}
#relay-recharge .relay-footnote{margin-top:10px}
@media(max-width:900px){
  .recharge-packs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .recharge-pay-row{grid-template-columns:1fr}
  .recharge-estimate{max-width:56%}
}
@media(max-width:520px){
  .recharge-card{padding:18px}
  .recharge-pack{min-height:66px;padding:10px}
  .recharge-pack strong{font-size:16px}
  .recharge-estimate{font-size:12px}
}
html[data-theme=dark] .recharge-card{background:var(--ws-panel);border-color:var(--ws-line)}
html[data-theme=dark] .recharge-pack{background:transparent}
html[data-theme=dark] .recharge-pack.is-selected{background:rgba(22,119,255,.14)}
html[data-theme=dark] .recharge-amount-input{background:transparent}
