@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root{--bg:#fff;--surface:#f7f8f9;--line:#e7e9ec;--text:#25282d;--muted:#7c828b;--green:#20805b;--sidebar:244px;font-family:'DM Sans','Noto Sans SC',sans-serif;color:var(--text);background:var(--bg);font-size:14px;letter-spacing:0}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #668aab;outline-offset:3px}button{border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}svg{width:18px;height:18px;vertical-align:middle;flex-shrink:0}button [data-icon]{display:inline-flex}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#f8f9fa;border-right:1px solid var(--line);padding:32px 18px 22px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;align-items:center;gap:11px;padding:0 12px;margin-bottom:48px;font-size:20px;font-weight:700}.brand-sub{display:block;font-size:9px;color:var(--muted);margin-top:3px}.nav-label{font-size:10px;color:#969ba3;padding:0 14px;margin-bottom:12px}.section-label{margin-top:30px}.sidebar button{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:12px 14px;border-radius:6px;margin:4px 0;font-size:13px;min-height:43px}.sidebar button:hover:not(:disabled){background:#eceef1}.sidebar button.active{background:#e9ecef;font-weight:600}.nav-count{margin-left:auto;font-size:11px;color:var(--muted);background:#fff;border:1px solid var(--line);padding:1px 6px;border-radius:4px}.route-label{font-family:Consolas,monospace;font-size:12px}.sidebar-bottom{margin-top:auto;padding-top:30px}.sidebar-status{border-top:1px solid var(--line);margin:18px 12px 0;padding-top:20px;display:flex;align-items:center;gap:8px;font-size:11px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#b0b5bc;flex-shrink:0}.status-dot.online{background:var(--green);box-shadow:0 0 0 3px #20805b12}.status-dot.offline{background:#c05757}.sidebar-host{margin:8px 12px 0;color:var(--muted);font:10px Consolas,monospace;overflow-wrap:anywhere}main{margin-left:var(--sidebar);min-height:100vh}.topbar{height:74px;padding:0 44px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.breadcrumb{display:flex;gap:15px;font-size:12px;color:var(--muted)}.breadcrumb strong{font-weight:500;color:var(--text)}.breadcrumb span{color:#c3c7cd}.local-badge{display:flex;align-items:center;gap:8px;color:#9197a0;font-size:9px}.local-badge svg{width:14px;height:14px}#view{max-width:1320px;margin:auto;padding:42px 44px 32px;animation:appear .22s ease-out}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.eyebrow{font-size:10px;color:var(--muted);margin-bottom:12px}h1{font-size:28px;font-weight:600;margin:0 0 10px;line-height:1.3}h2{font-size:15px;font-weight:600;margin:0}p{line-height:1.8;color:var(--muted);margin:0} .page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:32px}.page-heading p{font-size:12px;margin-top:7px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;border:1px solid var(--line);border-radius:5px;background:#fff;white-space:nowrap;font-size:12px}.button:hover:not(:disabled){background:#f1f3f5}.button.primary{background:#272b30;color:#fff;border-color:#272b30}.button.primary:hover:not(:disabled){background:#454b53}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px}.icon-button:hover{background:#e9ecef}.status-panel{border:1px solid var(--line);border-radius:6px;overflow:hidden}.status-main{display:flex;align-items:center;gap:18px;padding:28px 30px;background:linear-gradient(110deg,#fafbfc,#fff)}.status-symbol{width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--line);border-radius:7px;background:#fff}.status-symbol svg{width:23px;height:23px}.status-main h2{font-size:17px;margin-bottom:7px}.status-main p{font-size:12px}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:4px;padding:5px 9px;font-size:10px;color:var(--muted);white-space:nowrap}.pill.good{color:var(--green);background:#f1f8f4;border-color:#dceee3}.status-main>.pill{margin-left:auto}.connection-details{display:grid;grid-template-columns:2fr 1fr 1fr;padding:22px 30px;border-top:1px solid var(--line);gap:24px}.detail-label{font-size:10px;color:var(--muted);margin-bottom:8px}.detail-value{font-size:12px;overflow-wrap:anywhere}.mono{font-family:Consolas,'Courier New',monospace}.overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0 38px}.metric{border:1px solid var(--line);border-radius:6px;padding:22px}.metric-head{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.metric-head svg{width:16px;height:16px}.metric-number{font-size:30px;font-weight:500;margin:15px 0 5px}.metric p{font-size:11px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-header span{font-size:10px;color:var(--muted)}.endpoint-list{border-top:1px solid var(--line)}.endpoint{width:100%;display:flex;gap:18px;align-items:center;text-align:left;padding:20px 0;border-bottom:1px solid var(--line)}.endpoint .method{font:10px Consolas,monospace;border:1px solid var(--line);background:var(--surface);padding:5px 8px;border-radius:4px}.endpoint h3{font:13px Consolas,monospace;margin:0 0 6px}.endpoint p{font-size:11px}.endpoint>svg{margin-left:auto;color:var(--muted)}.footnote{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:var(--muted);margin-top:28px;line-height:1.8}.footnote svg{width:14px;height:14px;margin-top:3px}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px}.search{position:relative;flex:1;max-width:420px}.search svg{position:absolute;left:12px;top:11px;color:#969ba3}.search input{padding-left:38px;width:100%}input,select,textarea{border:1px solid #dfe3e8;border-radius:5px;background:#fff;color:var(--text);padding:10px 12px}select{max-width:100%;min-width:200px;font-size:12px}.result-count{margin-left:auto;color:var(--muted);font-size:11px}.model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.model-card{border:1px solid var(--line);border-radius:6px;padding:22px;min-width:0}.model-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.model-title h2{font-size:15px;overflow-wrap:anywhere}.model-id{color:var(--muted);font-size:10px;margin:9px 0 20px;overflow-wrap:anywhere}.model-meta{display:flex;flex-wrap:wrap;gap:18px;border-top:1px solid var(--line);padding-top:14px;color:var(--muted);font-size:11px}.model-meta strong{font-weight:500;color:var(--text)}.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.tag{font-size:10px;background:#f4f5f7;color:#737983;padding:4px 7px;border-radius:3px}.tool-list{border-top:1px solid var(--line)}.tool-item{border-bottom:1px solid var(--line);padding:18px 0}.tool-item summary{cursor:pointer;display:flex;align-items:center;gap:12px;list-style:none}.tool-item summary::-webkit-details-marker{display:none}.tool-item summary>svg{color:var(--muted)}.tool-item summary>span{min-width:0;flex:1}.tool-item h2{font:12px Consolas,monospace;overflow-wrap:anywhere}.tool-item p{font-size:11px;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.tool-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tool-item[open] .tool-description{display:block}.tool-schema{margin:16px 0 0 30px;font-size:11px;background:var(--surface);border:1px solid var(--line);padding:16px;border-radius:5px;white-space:pre-wrap;overflow-wrap:anywhere}.empty{padding:60px 20px;text-align:center;color:var(--muted);font-size:12px}.error{border:1px solid #f0dada;background:#fff8f8;color:#a64b4b;border-radius:5px;padding:12px 15px;font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin:16px 0}.model-picker{display:flex;gap:12px;align-items:center;margin-bottom:22px}.model-picker label{font-size:11px;color:var(--muted)}.model-picker select{min-width:260px}.code-box{border:1px solid var(--line);border-radius:6px;background:#f8f9fa;overflow:hidden;margin-bottom:24px}.code-header{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}pre{margin:0}#curl-code{padding:16px 20px;font:11px/1.8 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#545c67}.chat-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}.chat-heading h2{font-size:13px}.chat-heading span{color:var(--muted);font-size:10px}.messages{min-height:210px;max-height:45vh;overflow-y:auto;scroll-behavior:smooth;padding:20px 0}.chat-empty{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.chat-empty .empty-symbol{background:#f6f7f8;border:1px solid var(--line);width:44px;height:44px;border-radius:7px;display:grid;place-items:center;margin-bottom:14px;color:#959ba3}.chat-empty h3{font-size:13px;font-weight:500;margin:0}.message{display:flex;gap:12px;padding:14px 0;max-width:100%}.avatar{width:28px;height:28px;display:grid;place-items:center;background:#eff1f3;border:1px solid var(--line);border-radius:5px;flex-shrink:0;font-size:10px}.avatar.assistant{background:#292d32;color:#fff}.message-body{flex:1;min-width:0}.message-label{font-size:10px;color:var(--muted);margin-bottom:8px;display:flex;gap:12px}.message-content{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.message.error-message .message-content{color:#af4a4a}.composer{border:1px solid #dfe3e8;border-radius:6px;padding:14px;background:#fff;box-shadow:0 3px 14px #22222204}.composer textarea{width:100%;border:0;resize:vertical;min-height:66px;max-height:240px;padding:2px;outline:none;font-size:13px}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}.composer-state{font-size:10px;color:var(--muted)}.settings-form{max-width:650px;border-top:1px solid var(--line);padding-top:26px}.settings-form label{display:block;font-size:12px;font-weight:500;margin-bottom:10px}.settings-form input{width:100%;font-family:Consolas,monospace}.settings-form p{font-size:11px;margin:10px 0 24px}.settings-actions{display:flex;gap:10px}.settings-note{max-width:650px;margin-top:40px;padding-top:22px;border-top:1px solid var(--line);font-size:11px}#toast{position:fixed;bottom:26px;left:calc(50% + var(--sidebar)/2);transform:translateX(-50%);border:1px solid var(--line);background:#292d32;color:#fff;border-radius:5px;padding:12px 20px;font-size:12px;box-shadow:0 6px 25px #0001;z-index:10;max-width:85vw}.loading{opacity:.6}.chat-page .page-heading{margin-bottom:22px}
@media(min-width:1500px){#view{padding-top:54px}.messages{max-height:48vh;min-height:260px}.chat-empty{min-height:260px}}
@media(max-width:1000px){:root{--sidebar:210px}.sidebar{padding-left:10px;padding-right:10px}.topbar{padding:0 28px}#view{padding:30px 28px}.overview{gap:12px}.metric{padding:18px}.connection-details{grid-template-columns:1.5fr 1fr}.connection-details>div:last-child{grid-column:1/-1}.model-grid{grid-template-columns:1fr}.route-label{font-size:11px}}
@media(max-width:680px){:root{--sidebar:0px}.sidebar{position:relative;width:100%;padding:18px 16px 12px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 18px;padding:0;font-size:18px}.brand img{width:30px;height:30px}.brand-sub{font-size:8px}.sidebar>.nav-label,.section-label,.sidebar-host,.sidebar-status{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:5px}.sidebar button{width:auto;white-space:nowrap;padding:9px;font-size:11px;gap:6px;margin:0;min-height:35px}.sidebar nav button svg{width:14px;height:14px}.nav-count{display:none}.sidebar-bottom{position:absolute;right:16px;top:19px;margin:0;padding:0}.sidebar-bottom button{font-size:12px}.route-label{font-size:10px}main{margin:0}.topbar{height:54px;padding:0 20px}.local-badge{font-size:8px}#view{padding:26px 20px}h1{font-size:24px}.page-heading{margin-bottom:24px;align-items:flex-start}.page-heading>.button{padding:8px 10px}.status-main{padding:20px;gap:12px;flex-wrap:wrap}.status-main h2{font-size:15px}.status-main>.pill{margin-left:60px}.connection-details{padding:20px;grid-template-columns:1fr 1fr;gap:18px}.connection-details>div:first-child{grid-column:1/-1}.connection-details>div:last-child{grid-column:auto}.overview{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:28px}.metric{padding:16px}.metric:last-child{grid-column:1/-1}.metric-number{font-size:26px;margin-top:12px}.endpoint h3{font-size:11px;overflow-wrap:anywhere}.endpoint{gap:10px}.endpoint .method{font-size:9px;padding:4px 6px}.toolbar{flex-wrap:wrap}.search{max-width:none;min-width:160px}.model-picker{align-items:flex-start;flex-direction:column;gap:8px}.model-picker select{min-width:0;width:100%}.messages{max-height:45vh;min-height:180px}.chat-empty{min-height:180px}.code-box{margin-bottom:20px}#curl-code{font-size:10px;padding:14px}.settings-actions{flex-wrap:wrap}.tool-schema{margin-left:0}.model-card{padding:18px}.model-title{flex-wrap:wrap}#toast{left:50%}.composer-state{max-width:60%;line-height:1.5}}
.overview{grid-template-columns:repeat(2,minmax(0,1fr))}
.overview>.metric:last-child{grid-column:auto}
.status-panel:has(.pill.good){border-color:#80b99b;border-left:5px solid #20805b}
.status-panel:has(.pill.good) .status-symbol{color:#20805b;background:#e8f5ed;border-color:#aad2ba}
.status-panel:has(.pill.good) h2{color:#17643e}
.status-panel:has(.status-dot.offline){border-color:#d99494;border-left:5px solid #bc4141}
.status-panel:has(.status-dot.offline) h2{color:#aa3030}
.status-main>.pill{order:-1;margin-left:0;font-size:12px;font-weight:600;padding:9px 12px}
.status-main>.pill:has(.offline){color:#aa3030;background:#fff0f0;border-color:#e4baba}
.playground-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(85px,.35fr);gap:14px;margin-bottom:22px}
.playground-options label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--muted);min-width:0}
.playground-options select{width:100%;min-width:0;color:var(--text)}
.shell-tabs{display:flex;gap:4px}.shell-tabs button{font-size:11px;padding:5px 9px;border-radius:4px}.shell-tabs button[aria-pressed=true]{background:#e5e8ec;color:#25282d}
.chat-heading>div{display:flex;align-items:center;gap:14px}
.chat-page .messages{height:360px;min-height:180px;max-height:45vh;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:680px){.playground-options{grid-template-columns:minmax(0,1fr) 90px}.playground-options label:nth-child(2){grid-column:1/-1;grid-row:2}.status-main>.pill{margin-left:0}.status-symbol{display:none}.chat-page .messages{height:300px}}
@media(prefers-reduced-motion:reduce){#view{animation:none}.messages{scroll-behavior:auto}}
.status-panel[data-status=online]{border-color:#a4cfb8;border-left:4px solid #20805b}
.status-panel[data-status=offline]{border-color:#e4baba;border-left:4px solid #bc4141}
.connection-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;color:#7c828b}
.connection-icon svg{width:30px;height:30px;stroke-width:1.6}
[data-status=online] .connection-icon,[data-status=online] h2{color:#20805b}
[data-status=offline] .connection-icon,[data-status=offline] h2{color:#bc4141}
#view.playground-view{height:calc(100dvh - 74px);max-width:none;padding:26px 30px 20px}
.playground-view .chat-page{height:100%;display:flex;flex-direction:column;min-width:0;min-height:0}
.playground-view .page-heading,.playground-view .playground-options,.playground-view .code-box,.playground-view .chat-heading,.playground-view .composer{flex-shrink:0}
.playground-view .page-heading{margin-bottom:18px}
.playground-view .code-box{max-height:160px;overflow:auto;margin-bottom:16px}
.playground-view .messages{flex:1;height:0;min-height:0;max-height:none}
.playground-view .chat-empty{min-height:100%;padding:20px}
.playground-view .composer textarea{resize:none;min-height:52px;height:52px}
.playground-layout{display:grid;grid-template-columns:minmax(0,1fr) 236px;gap:26px;height:100%;min-height:0}
.session-list{display:flex;flex-direction:column;min-height:0;min-width:0;border-left:1px solid var(--line);padding-left:20px}
.sessions-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-shrink:0}
.sessions-header h2{font-size:14px;font-weight:600;margin:0}
.session-items{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.session-row{position:relative;display:flex;align-items:center;border-radius:6px;margin-bottom:5px;border:1px solid transparent}
.session-row:hover{background:#f7f8f9}
.session-row.selected{background:#eef6f1;border-color:#d1e5d8}
.session-select{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;background:none;border:0;cursor:pointer;padding:13px 36px 13px 11px;width:100%;min-width:0;color:var(--text);font:inherit}
.session-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.6}
.session-time{font-size:10px;color:var(--muted)}
.session-delete{position:absolute;right:3px;top:11px;width:28px;height:28px;color:#969ca3}
.session-delete:hover{color:#bc4141;background:#fbeeee}
.session-delete svg{width:14px;height:14px}
.session-empty{padding:30px 8px;color:var(--muted);font-size:12px;text-align:center}
.load-sessions{justify-content:center;flex-shrink:0;margin-top:12px}
.session-list .error{font-size:11px;padding:8px;overflow-wrap:anywhere;flex-shrink:0}
@media(max-width:1100px){.playground-layout{grid-template-columns:minmax(0,1fr) 192px;gap:16px}.session-list{padding-left:12px}.playground-view .playground-options{grid-template-columns:minmax(0,1fr) 80px}.playground-view .playground-options label:nth-child(2){grid-column:1/-1;grid-row:2}}
@media(max-width:680px){.playground-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 118px;gap:14px}.session-list{border-left:0;border-top:1px solid var(--line);padding:10px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:24px minmax(0,1fr);gap:4px 10px}.sessions-header{grid-column:1/-1;margin:0}.sessions-header h2{font-size:12px}.sessions-header .icon-button{width:24px;height:24px}.session-items{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden}.session-row{flex:0 0 155px;margin:0}.session-select{padding:6px 30px 6px 9px;gap:3px}.session-delete{right:1px;top:5px}.load-sessions{margin:0;align-self:center;font-size:11px;padding:8px}.session-list .error{grid-column:1/-1}.playground-view .code-box{max-height:92px}.playground-view .chat-heading{margin-bottom:5px}.playground-view .page-heading p{display:none}}
@media(max-width:680px){#view.playground-view{height:calc(100dvh - 182px);min-height:500px;padding:18px 16px 14px}.playground-view .page-heading h1{font-size:21px}.playground-view .eyebrow{display:none}.playground-view .page-heading{margin-bottom:14px}.playground-view .code-box{max-height:115px}.playground-view .playground-options{margin-bottom:14px}}
.curl-details{flex-shrink:0;margin-bottom:12px;min-width:0}
.curl-details>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:11px;color:var(--muted);height:30px;list-style:none}
.curl-details>summary::-webkit-details-marker{display:none}
.curl-details>summary svg{width:15px;height:15px}
.curl-details>summary svg:last-child{margin-left:auto;transition:transform .15s}
.curl-details[open]>summary svg:last-child{transform:rotate(180deg)}
.curl-details .code-box{margin:8px 0 0}
.development-prompts{max-width:960px}
.prompt-section{border-top:1px solid var(--line);padding:24px 0 32px}
.prompt-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.prompt-heading h2{margin:0;font-size:17px;font-weight:600;line-height:1.6}
.prompt-content{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.95 'DM Sans','Noto Sans SC',sans-serif;color:#41464e;tab-size:2}
@media(max-width:680px){.sidebar-bottom{display:flex;align-items:center;gap:4px;top:17px}.sidebar-bottom button{min-height:32px;padding:7px;gap:4px}.brand{max-width:calc(100% - 135px)}.prompt-section{padding:20px 0 26px}.prompt-heading h2{font-size:15px}.prompt-content{font-size:12px;line-height:1.9}}
@media(max-width:680px) and (max-height:740px){.playground-view .page-heading{display:none}.playground-view .code-box{max-height:70px}}
@media(max-width:680px){body:has(.playground-view){height:100dvh;display:flex;flex-direction:column}body:has(.playground-view)>.sidebar{flex-shrink:0}body:has(.playground-view)>main{flex:1;min-height:0;display:flex;flex-direction:column}body:has(.playground-view) .topbar{flex-shrink:0}#view.playground-view{height:auto;min-height:0;flex:1}.playground-layout{grid-template-rows:80px minmax(0,1fr);gap:12px}.session-list{grid-row:1;border-top:0;border-bottom:1px solid var(--line);padding:0 0 8px}.chat-page{grid-row:2}.playground-view .page-heading{margin-bottom:10px}.playground-view .playground-options{gap:8px;margin-bottom:8px}.playground-view .playground-options label{gap:4px}.playground-view select{height:34px;padding-top:5px;padding-bottom:5px}.playground-view .chat-heading{padding-bottom:6px}.playground-view .messages{padding:10px 0}.playground-view .composer{padding:10px}.playground-view .composer textarea{height:44px;min-height:44px}.playground-view .code-box{max-height:100px}.curl-details{margin-bottom:6px}.session-list .error{max-height:50px;overflow:auto}}