@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f5f7fb;
  --card: #ffffff;
  --ink: #17253f;
  --muted: #7b879c;
  --muted-dark: #596780;
  --line: #e8edf5;
  --blue: #315bf4;
  --blue-hover: #264cdb;
  --blue-soft: #eef3ff;
  --green: #199c79;
  --radius: 16px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #9fb4ff; outline-offset: 4px; }
input:focus, select:focus { outline: none; border-color: #839bff; box-shadow: 0 0 0 4px #315bf40d; }
input::placeholder { color: #a7b0bf; }
input:disabled, select:disabled { background: #f7f9fc; cursor: not-allowed; }
button, a, input, select { transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .16s; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon, .icon svg { width: 18px; height: 18px; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 224px; padding: 32px 20px 24px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -.7px; line-height: 1.15; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 36px; color: var(--blue); }
.brand-mark svg { width: 34px; height: 34px; }
.brand small { display: block; margin-top: 6px; font-size: 10px; font-weight: 500; letter-spacing: 2px; color: #9aa5b6; }
.brand-subtitle { display: block; margin-top: 7px; font-size: 9px; font-weight: 400; letter-spacing: 1.4px; color: #a3aebe; }
.sidebar nav { display: grid; gap: 7px; margin-top: 48px; }
.sidebar > .nav-label { margin-top: 45px; }
.sidebar > .nav-label + nav { margin-top: 0; }
.nav-label { padding: 0 14px 10px; color: #a1aab9; font-size: 10px; font-weight: 650; letter-spacing: 1.8px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; color: #78859a; font-size: 13px; border: 0; border-radius: 9px; background: transparent; text-align: left; text-decoration: none; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: #f6f8fc; color: var(--ink); text-decoration: none; }
.nav-item[aria-current="page"] { color: var(--blue); background: var(--blue-soft); font-weight: 650; }
.nav-item[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; margin-left: auto; background: var(--blue); }
.nav-item:has(.nav-count)::after { display: none; }
.nav-count { display: inline-grid; place-items: center; min-width: 23px; height: 18px; padding: 0 5px; margin-left: auto; color: #7e98ed; background: #e1eaff; border-radius: 4px; font-size: 9px; font-weight: 500; }
.nav-end { margin-left: auto; opacity: .6; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { padding: 15px 13px; border: 1px solid #e7edf7; border-radius: 11px; background: #f8faff; color: #8792a6; font-size: 11px; line-height: 1.8; }
.sidebar-note strong { display: block; margin: 7px 0 4px; color: #526078; font-size: 12px; font-weight: 600; }
.sidebar-note svg { color: #8296c7; }
.sidebar-note p { margin: 0; }
.sidebar-note-icon { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 7px; background: #edf2fd; }
.workspace-identity { display: flex; align-items: center; gap: 9px; margin-top: 25px; padding: 0 4px; color: #73829b; font-size: 10px; }
.workspace-avatar { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #e5ebf5; border-radius: 8px; background: #f0f4fc; color: #8597b9; font-size: 12px; font-weight: 650; }
.workspace-identity small { display: block; margin-top: 2px; color: #adb7c6; font-size: 8px; }
.identity-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #86c9b8; }
.sidebar-version { display: flex; justify-content: space-between; padding: 20px 9px 0; color: #a4aebd; font-size: 10px; letter-spacing: .4px; }
.main-shell { margin-left: 224px; padding: 0 42px 28px; max-width: 1540px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid #e6ebf3; }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #929caf; font-size: 12px; }
.breadcrumb svg { width: 15px; height: 15px; }
.breadcrumb strong { color: #526078; font-weight: 500; }
.breadcrumb > span { color: #62728d; }
.topbar-meta { display: flex; align-items: center; gap: 20px; color: #8a96a9; font-size: 11px; }
.topbar-meta .text-button { color: #78859a; font-size: 12px; }
.topbar-meta .status-dot::before { width: 5px; height: 5px; background: #83b8aa; }
.topbar-meta:has(> .status-dot) { gap: 7px; }
.topbar-avatar { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #e5eaf4; border-radius: 50%; background: #fff; color: #7d8aa1; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 32px 0 26px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 10px; font-weight: 650; letter-spacing: 2.3px; }
h1 { margin: 0; font-size: clamp(23px, 2.3vw, 31px); font-weight: 680; letter-spacing: -1px; line-height: 1.45; }
.heading-period { color: var(--blue); }
.page-heading p:not(.eyebrow) { margin: 9px 0 0; color: #8691a3; font-size: 12px; }
.heading-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.heading-badges .guide-button { margin-left: 8px; font-size: 10px; color: #8a98b0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid transparent; border-radius: 5px; font-size: 10px; font-weight: 550; white-space: nowrap; line-height: 1.4; }
.badge-blue { color: var(--blue); background: #eef3ff; border-color: #e0e8ff; }
.badge-amber { color: #b48734; background: #fff7e8; border-color: #f6e8c9; }
.badge-green { color: #25967b; background: #edf9f4; border-color: #daf1e7; }
.badge-muted { color: #7e8ba1; background: #f3f6fa; border-color: #e9eef5; }
.steps { display: flex; align-items: center; gap: 0; margin: 0 0 25px; padding: 0 0 0 1px; list-style: none; }
.step { display: flex; align-items: center; gap: 9px; color: #9ba6b7; font-size: 11px; white-space: nowrap; }
.step-number { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #e1e7f0; border-radius: 50%; background: #f9fafe; color: #9ba6b7; font-size: 10px; font-weight: 600; }
.step.active { color: #435476; font-weight: 600; }
.step.active .step-number { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 3px 8px #315bf421; }
.step.complete { color: #65789c; }
.step.complete .step-number { color: var(--blue); background: #e9efff; border-color: #dce5ff; }
.step-divider { width: 50px; height: 1px; margin: 0 17px; background: #dfe6f1; }
.step:not(:last-child)::after { content: ""; display: inline-block; width: 42px; height: 1px; margin: 0 18px 0 9px; background: #dfe6f1; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 22px; }
.primary-column, .secondary-column { min-width: 0; display: grid; gap: 20px; }
.card { padding: 24px; border: 1px solid #e6ebf3; border-radius: var(--radius); background: #fff; box-shadow: 0 3px 9px #19315f02; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-label { display: flex; align-items: center; gap: 10px; }
.section-number { color: #a8b3c5; font-size: 11px; font-weight: 600; letter-spacing: .4px; }
.card-title { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: .1px; }
.section-meta { color: #a1aabc; font-size: 10px; }
.recommended-provider { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 99px; padding: 19px; text-align: left; border: 1px solid #dfe7ff; border-radius: 11px; color: var(--ink); background: #f6f9ff; }
.recommended-provider:hover { border-color: #a9baff; background: #f2f6ff; }
.recommended-provider.selected { border-color: #7897ff; box-shadow: 0 0 0 2px #315bf407; background: linear-gradient(115deg, #f1f5ff 0%, #fafcff 100%); }
.provider-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 33px; height: 33px; border-radius: 9px; background: #f2f4f8; color: #526078; font-size: 18px; font-weight: 650; letter-spacing: -1px; }
.recommended-provider .provider-logo { width: 46px; height: 46px; border-radius: 12px; font-size: 27px; }
.provider-logo svg { width: 24px; height: 24px; }
.recommended-provider .provider-logo svg { width: 35px; height: 35px; }
.logo-deepseek { color: #4774f6; background: #e5edff; }
.logo-openai { color: #283c3a; background: #edf3f1; }
.logo-anthropic { color: #9a6b53; background: #f6eee8; font-family: Georgia, serif; }
.logo-gemini, .logo-google { color: #6083e8; background: #f1f3ff; }
.logo-qwen, .logo-alibaba { color: #755bd8; background: #f0eafb; }
.logo-moonshot, .logo-kimi { color: #3f5d69; background: #eaf2f5; }
.logo-zhipu { color: #4766ce; background: #edf1fd; }
.logo-siliconflow { color: #7254c5; background: #f3edfc; }
.logo-doubao { color: #5484bc; background: #eef6ff; }
.logo-minimax { color: #df6a57; background: #fff0eb; }
.logo-groq { color: #cf6945; background: #fff1ea; }
.logo-mistral { color: #ce8c29; background: #fff6df; }
.logo-openrouter { color: #708496; background: #eef3f8; }
.provider-copy { display: block; min-width: 0; flex: 1; }
.provider-name { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 650; }
.recommended-provider .provider-name { font-size: 16px; letter-spacing: -.1px; }
.provider-description { display: block; margin-top: 6px; color: #7e8ca7; font-size: 11px; font-weight: 400; }
.provider-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #dbe3f3; border-radius: 50%; background: #fff; color: transparent; flex-shrink: 0; }
.selected .provider-check { border-color: var(--blue); background: var(--blue); color: white; }
.provider-check svg { width: 11px; height: 11px; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 11px; }
.provider-tile { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px 10px; border: 1px solid #e8edf4; border-radius: 9px; text-align: left; background: #fff; color: var(--ink); }
.provider-tile .provider-logo { width: 27px; height: 27px; border-radius: 7px; font-size: 15px; }
.provider-tile .provider-logo svg { width: 19px; height: 19px; }
.provider-tile .provider-name { font-size: 11px; font-weight: 550; white-space: nowrap; }
.provider-tile:hover { border-color: #bbcaff; background: #fafbff; }
.provider-tile.selected { background: #f1f5ff; border-color: #97b0ff; }
.all-providers { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 17px auto 0; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0; color: var(--blue); background: transparent; border: 0; font-size: 11px; }
.text-button:hover { color: #244bdb; }
.text-button svg { width: 13px; height: 13px; }
.form-card .card-header { margin-bottom: 21px; }
.selected-provider { display: flex; align-items: center; gap: 6px; color: #71829e; font-size: 11px; }
.selected-provider .provider-logo { width: 19px; height: 19px; border-radius: 5px; font-size: 11px; }
.selected-provider .provider-logo svg { width: 15px; height: 15px; }
.demo-notice, .notice { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; margin-bottom: 21px; background: #fffaf0; border: 1px solid #f5e9ca; border-radius: 7px; color: #aa8848; font-size: 11px; line-height: 1.7; }
.demo-notice .notice-icon { color: #bd9b58; flex-shrink: 0; line-height: 1.6; }
.demo-notice svg, .notice svg { width: 15px; height: 15px; }
.demo-notice .text-button { color: #98742f; font-size: 10px; font-weight: 600; margin-left: 4px; white-space: nowrap; }
.field { margin-bottom: 20px; min-width: 0; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.field-head label, .field > label { color: #4c5a72; font-size: 12px; font-weight: 550; }
.field > label { display: block; margin-bottom: 8px; }
.required { margin-left: 3px; color: #8a9fcc; font-weight: 400; }
.field-optional { margin-left: 5px; color: #a5aebd; font-size: 10px; font-weight: 400; }
.optional { margin-left: 5px; color: #adb6c5; font-size: 9px; font-weight: 400; }
.field-caption { font-size: 9px; color: #9eabc0; }
.field-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; }
.field-head a svg { width: 12px; height: 12px; }
input:not([type="checkbox"]):not([type="radio"]), select { display: block; width: 100%; height: 44px; padding: 0 13px; color: #3b4b67; border: 1px solid #e0e6f0; border-radius: 7px; background: #fff; font-size: 12px; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%238b98ad' stroke-width='1.5' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 15px; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 45px !important; }
.input-wrap .icon-button { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; }
.input-wrap:has(> .input-icon) input { padding-left: 38px; }
.input-icon { position: absolute; top: 15px; left: 13px; width: 14px; height: 14px; color: #a1adc1; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 5px; border: 0; border-radius: 6px; background: transparent; color: #93a0b6; }
.icon-button:hover { color: #5c6e8f; background: #f2f5fb; }
.icon-button svg { width: 17px; height: 17px; }
.helper { display: flex; align-items: flex-start; gap: 5px; margin: 7px 0 0; color: #9aa5b6; font-size: 10px; line-height: 1.6; }
.helper svg { width: 12px; height: 12px; margin-top: 2px; }
.field-error, .error { color: #ce625f; font-size: 11px; }
.field-error { margin: 7px 0 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #df908e !important; }
.model-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 10px; color: #97a3b6; }
.model-meta .text-button { font-size: 10px; }
.custom-model-field { margin-top: 9px; }
.fetch-models-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; margin-top: 11px; }
.fetch-models-row > .helper { flex: 1; min-width: 160px; margin: 0; }
.fetch-models-row > .model-fetch-status { flex: 1; min-width: 140px; }
.model-fetch-status { color: #98a5ba; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.model-fetch-status.good, .model-fetch-status.success { color: #2d9a7f; }
.model-fetch-status.error, .model-fetch-status.failure { color: #c96965; }
.model-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; padding: 1px 6px; border: 1px solid #dfe8fc; border-radius: 5px; color: #6988d1; background: #f0f5ff; font-size: 9px; font-weight: 550; line-height: 1.5; }
.connection-name { margin-bottom: 15px; }
details { border-top: 1px solid #edf1f6; margin-top: 23px; }
details summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; color: #8794aa; font-size: 11px; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: #96a5bf; font-size: 16px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details summary:has(> svg)::after { display: none; }
details summary > svg { width: 12px; height: 12px; margin-left: 8px; transition: transform .16s; }
details[open] summary > svg { transform: rotate(90deg); }
.summary-hint { margin-left: auto; color: #b1bac9; font-size: 9px; }
.advanced-fields { padding-bottom: 14px; }
.endpoint-label { display: block; margin-bottom: 6px; font-size: 10px; color: #8b98ae; }
.endpoint { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e8edf5; border-radius: 7px; background: #f8fafd; padding: 8px 10px; }
.endpoint code { min-width: 0; overflow-wrap: anywhere; color: #7f8ca4; font: 10px/1.6 "SFMono-Regular", Consolas, monospace; }
.endpoint .icon-button { width: 23px; height: 23px; flex-shrink: 0; }
.endpoint .icon-button svg { width: 13px; height: 13px; }
.actions { display: grid; grid-template-columns: 1fr 1.55fr; gap: 10px; margin-top: 15px; }
.actions.actions-single { grid-template-columns: minmax(0,1fr); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 550; }
.button svg { width: 15px; height: 15px; }
.button-primary { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 3px 7px #315bf414; }
.button-primary:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); box-shadow: 0 4px 10px #315bf428; }
.button-secondary { color: #596e91; background: #fff; border-color: #dfe6f2; }
.button-secondary:hover:not(:disabled) { border-color: #b8c7e6; background: #fafbff; }
.button-fetch-models { flex-shrink: 0; min-height: 35px; padding: 7px 12px; color: #5478dc; border-color: #cfddff; background: #f6f9ff; font-size: 10px; font-weight: 550; box-shadow: 0 1px 3px #315bf403; }
.button-fetch-models:hover:not(:disabled) { color: #315bf4; border-color: #9db5fa; background: #edf3ff; }
.button-fetch-models svg { width: 13px; height: 13px; }
.button.loading { cursor: progress; }
.button.loading:disabled { cursor: progress; opacity: .75; }
.button.loading::before { content: ""; display: inline-block; width: 13px; height: 13px; flex-shrink: 0; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.button.loading > svg, .button.loading > .spinner { display: none; }
.button-ghost { color: #7e8eaa; background: transparent; border-color: transparent; }
.button-ghost:hover:not(:disabled) { background: #f2f5fc; }
.form-footer { display: flex; align-items: flex-start; justify-content: center; gap: 5px; margin: 12px 0 0; color: #a2adbd; font-size: 9px; line-height: 1.7; }
.form-footer svg { width: 12px; height: 12px; margin-top: 1px; }
.status-card { padding: 22px; }
.status-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid #edf1f6; }
.status-heading h2 { margin: 0; font-size: 12px; font-weight: 650; }
.status-dot { display: inline-flex; align-items: center; gap: 5px; color: #9aa6b8; font-size: 9px; }
.status-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #b6c0d1; }
.status-dot.connected { color: #249780; }
.status-dot.connected::before { background: #2bae91; }
.summary-provider { display: flex; align-items: center; gap: 11px; margin: 20px 0 20px; }
.summary-provider .provider-logo { width: 39px; height: 39px; border-radius: 10px; }
.summary-provider strong { display: block; font-size: 14px; font-weight: 650; }
.summary-provider small { display: block; margin-top: 2px; color: #a3acbd; font-size: 9px; letter-spacing: .6px; }
.summary-provider p { margin: 2px 0 0; color: #a3acbd; font-size: 9px; }
.summary-rows { display: grid; gap: 12px; }
.summary-rows { margin: 0; }
.summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; color: #93a0b4; font-size: 10px; }
.summary-row dt { flex-shrink: 0; }
.summary-row dd { margin: 0; color: #677b9e; font-size: 10px; text-align: right; overflow-wrap: anywhere; }
.summary-value { min-width: 0; max-width: 68%; color: #677b9e; font-size: 10px; text-align: right; overflow-wrap: anywhere; }
.summary-value code, code.summary-value { font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.summary-divider { height: 1px; background: #edf1f6; margin: 20px 0; }
.route-title { margin: 0 0 17px; font-size: 10px; font-weight: 550; color: #7a8aa5; }
.flow-heading { padding-top: 19px; margin: 20px 0 17px; border-top: 1px solid #edf1f6; font-size: 10px; font-weight: 550; color: #7a8aa5; }
.route-flow { padding: 0 0 2px; }
.route-node { display: flex; align-items: center; gap: 10px; position: relative; }
.route-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #e7edf6; border-radius: 7px; background: #f7f9fd; color: #a0aec5; flex-shrink: 0; }
.route-icon svg { width: 14px; height: 14px; }
.route-node:first-child .route-icon { color: #738fe0; border-color: #e2e9fb; background: #f1f5ff; }
.route-copy strong { display: block; font-size: 10px; font-weight: 550; color: #7485a3; line-height: 1.4; }
.route-copy span, .route-copy small { display: block; margin-top: 3px; color: #a4afc1; font-size: 9px; line-height: 1.5; }
.route-line { width: 1px; height: 18px; margin: 3px 0 3px 14px; border-left: 1px dashed #dbe4f2; }
.route-index { margin-left: auto; padding-left: 5px; color: #c6cfdd; font-size: 9px; }
.route-node:last-child .route-icon { color: #71ad9c; border-color: #dfefe9; background: #f0f8f5; }
.summary-footnote { margin: 19px 0 0; padding-top: 14px; border-top: 1px solid #edf1f6; color: #acb6c7; font-size: 8px; line-height: 1.8; }
.info-card { padding: 22px; }
.info-card h2 { font-size: 12px; font-weight: 650; margin: 0 0 17px; }
.feature-list { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 9px; }
.feature-icon { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; color: #6b89dd; background: #f2f5ff; border-radius: 6px; }
.feature-icon svg { width: 13px; height: 13px; }
.feature-list strong { display: block; margin: 0 0 3px; font-size: 10px; font-weight: 550; color: #6e7f9b; }
.feature-list p { margin: 0; color: #a0abc0; font-size: 9px; line-height: 1.8; }
.info-card-blue { padding: 20px 22px; background: #edf3ff; border-color: #e1eaff; }
.mini-label { display: flex; align-items: center; gap: 6px; margin: 0 0 9px; color: #7891cd; font-size: 9px; letter-spacing: 1.3px; font-weight: 600; }
.mini-label svg { width: 13px; height: 13px; }
.info-card-blue h3 { margin: 0 0 7px; font-size: 12px; color: #5873aa; font-weight: 650; }
.info-card-blue p { margin: 0; color: #8297bd; font-size: 10px; line-height: 1.9; }
.info-card-blue .text-button { margin-top: 13px; color: #5a7bd2; font-size: 10px; }
.info-card-blue h2 { margin-bottom: 9px; font-size: 15px; color: #4a68a2; letter-spacing: -.2px; }
.info-card-blue .feature-list { margin-top: 17px; gap: 10px; }
.info-card-blue .feature-list li { align-items: center; gap: 7px; color: #8198be; font-size: 9px; }
.info-card-blue .feature-icon { width: 16px; height: 16px; border-radius: 50%; color: #7899ce; background: #dfe9fc; }
.info-card-blue .feature-icon svg { width: 10px; height: 10px; }
.mini-spark { display: inline-grid; place-items: center; width: 17px; height: 17px; font-size: 11px; border: 1px solid #cbdaf3; border-radius: 50%; }
.status-result { margin: 17px 0 0; padding: 12px 13px; border-radius: 8px; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.status-result { display: flex; align-items: flex-start; gap: 8px; }
.status-result > .icon { width: 15px; height: 15px; margin-top: 2px; }
.status-result p { margin: 4px 0 0; }
.status-result strong { font-weight: 650; }
.status-result.success { color: #2c8f76; background: #eff9f4; border: 1px solid #d7eee3; }
.status-result.failure { color: #bc6464; background: #fff5f4; border: 1px solid #f6e0de; }
.status-result.demo { color: #b18a48; background: #fff9ed; border: 1px solid #f4e7cb; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 1px 0; color: #a6b0c0; font-size: 9px; }
.page-footer a, .page-footer .text-button { color: #99a6bc; font-size: 9px; }
.footer-links { display: flex; gap: 16px; }
.footer-divider { margin: 0 9px; color: #c3cbd8; }

dialog { padding: 0; color: var(--ink); border: 1px solid #e5eaf4; border-radius: 18px; box-shadow: 0 30px 100px #17253f25; }
dialog::backdrop { background: #14223c60; backdrop-filter: blur(4px); }
.provider-dialog { width: min(740px, calc(100% - 40px)); max-height: min(780px, calc(100dvh - 60px)); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 26px 18px; }
.dialog-title { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.4px; }
.dialog-header p { margin: 5px 0 0; color: #99a4b7; font-size: 11px; }
.dialog-header .eyebrow { margin: 0 0 6px; font-size: 9px; color: #8c9ac1; }
.dialog-description { line-height: 1.8; }
.dialog-close { width: 30px; height: 30px; margin: -2px -3px 0 0; }
.search-wrap { position: relative; margin: 0 26px 19px; }
.search-wrap > svg { position: absolute; top: 14px; left: 13px; width: 15px; height: 15px; color: #a0acc0; }
.search-wrap input { padding-left: 37px !important; background: #f8fafd !important; }
.provider-filters { display: flex; gap: 7px; padding: 0 26px 17px; }
.filter-button { min-height: 28px; padding: 4px 11px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #99a6bb; font-size: 10px; }
.filter-button:hover { background: #f6f8fc; color: #6d82ac; }
.filter-button.active { background: #eef3ff; border-color: #e1e9ff; color: #6382d7; }
.dialog-provider-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0 26px 26px; }
.dialog-provider { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 14px; color: var(--ink); background: #fff; border: 1px solid #e8edf5; border-radius: 10px; text-align: left; }
.dialog-provider:hover { border-color: #bacaff; background: #f9fbff; }
.dialog-provider.selected { border-color: #8faaff; background: #f4f7ff; }
.dialog-provider:disabled { background: #f8f9fc; opacity: .65; }
.dialog-provider .provider-logo { width: 34px; height: 34px; }
.dialog-provider .provider-name { font-size: 12px; }
.dialog-provider .provider-description { margin-top: 3px; color: #a0abc0; font-size: 9px; }
.provider-region { color: #a4afc1; font-size: 9px; white-space: nowrap; }
.dialog-empty { grid-column: 1/-1; margin: 0; padding: 28px 0; text-align: center; color: #95a2b7; font-size: 12px; }
.dialog-footnote { margin: 0; padding: 14px 26px 19px; border-top: 1px solid #edf1f7; color: #a7b1c1; font-size: 9px; }
.help-dialog { width: min(640px, calc(100% - 40px)); max-height: calc(100dvh - 60px); }
.help-content { padding: 0 26px 27px; font-size: 12px; line-height: 1.9; color: #7a89a3; }
.help-content h3 { margin: 20px 0 6px; color: #4b5e7e; font-size: 13px; font-weight: 650; }
.help-content p { margin: 7px 0; }
.help-content ol, .help-content ul { padding-left: 20px; }
.help-content li + li { margin-top: 7px; }
.help-content code { padding: 2px 5px; color: #5b75ad; border-radius: 4px; background: #f0f4fc; font: 11px/1.7 "SFMono-Regular",Consolas,monospace; overflow-wrap: anywhere; }
.help-content pre { overflow-x: auto; padding: 13px; border: 1px solid #e5ebf5; border-radius: 8px; background: #f8fafd; font-size: 10px; line-height: 1.8; }
.help-content pre code { padding: 0; background: transparent; }
.help-content .notice { display: block; margin: 19px 0; font-size: 11px; }
.help-content .notice p { margin: 5px 0 0; }
.help-content ol > li::marker { color: #7590cf; font-weight: 650; }
.noscript-notice { position: fixed; z-index: 110; inset: auto 0 0; padding: 17px 20px; color: #9e6c34; background: #fff5de; border-top: 1px solid #ecd9ae; text-align: center; }
#startup-error { justify-content: space-between; align-items: center; }
#startup-error p { margin: 0; }
#startup-error .button { flex-shrink: 0; min-height: 34px; padding: 6px 12px; font-size: 10px; }
.toast { position: fixed; z-index: 100; left: calc(50% + 112px); bottom: 28px; max-width: min(450px,calc(100% - 40px)); padding: 11px 20px; color: #fff; background: #22324e; border-radius: 9px; box-shadow: 0 8px 25px #15264726; font-size: 12px; opacity: 0; transform: translate(-50%,10px); pointer-events: none; transition: opacity .2s,transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.spinner { width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1580px) {
  .main-shell { padding-right: 56px; padding-left: 56px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr) 340px; gap: 26px; }
  .card { padding: 27px; }
  .recommended-provider { min-height: 104px; }
  .provider-tile { padding: 13px 15px; }
}
@media (max-width: 1200px) {
  .main-shell { padding-right: 28px; padding-left: 28px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr) 290px; gap: 18px; }
  .card { padding: 20px; }
  .provider-tile { gap: 7px; padding: 11px 8px; }
  .provider-tile .provider-logo { width: 23px; height: 23px; font-size: 13px; }
  .provider-tile .provider-logo svg { width: 16px; height: 16px; }
  .provider-tile .provider-name { font-size: 10px; }
  .heading-badges .badge-muted { display: none; }
}
@media (max-width: 1080px) {
  .sidebar { width: 190px; padding-left: 15px; padding-right: 15px; }
  .brand { padding: 0 4px; font-size: 20px; gap: 6px; }
  .brand small { font-size: 8px; letter-spacing: 2px; }
  .main-shell { margin-left: 190px; padding-left: 24px; padding-right: 24px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr) 270px; gap: 16px; }
  .card { padding: 19px; }
  .recommended-provider { padding: 15px; gap: 11px; }
  .recommended-provider .provider-name { font-size: 14px; }
  .provider-description { font-size: 10px; }
  .provider-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .provider-tile .provider-name { font-size: 11px; }
  .page-heading { align-items: flex-start; }
  .heading-badges { padding-top: 5px; }
  .heading-badges .badge-blue { display: none; }
  .toast { left: calc(50% + 95px); }
}
@media (max-width: 900px) {
  .sidebar { position: relative; inset: auto; width: auto; height: 71px; flex-direction: row; align-items: center; justify-content: space-between; padding: 13px 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; font-size: 20px; gap: 7px; }
  .brand small { display: none; }
  .brand-subtitle { display: none; }
  .brand-mark, .brand-mark svg { width: 30px; height: 30px; }
  .sidebar nav { display: flex; gap: 9px; margin: 0; }
  .nav-label, .sidebar-bottom { display: none; }
  .nav-item { min-height: 37px; padding: 8px 11px; font-size: 11px; gap: 7px; }
  .nav-item svg { width: 15px; height: 15px; }
  .nav-item[aria-current="page"]::after { display: none; }
  .nav-count, .nav-end { display: none; }
  .main-shell { margin-left: 0; padding: 0 28px 25px; }
  .topbar { min-height: 62px; }
  .topbar-meta { gap: 14px; }
  .page-heading { margin-top: 26px; }
  .heading-badges .badge-blue { display: inline-flex; }
  .workspace-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .secondary-column { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .status-card { grid-row: span 2; }
  .card { padding: 20px; }
  .toast { left: 50%; }
}
@media (max-width: 760px) {
  .workspace-grid { grid-template-columns: minmax(0,1fr); }
  .secondary-column { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .status-card { grid-row: span 2; }
  .provider-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .provider-tile { gap: 10px; padding: 12px 14px; }
  .provider-tile .provider-logo { width: 29px; height: 29px; font-size: 16px; }
  .provider-tile .provider-name { font-size: 12px; }
  .recommended-provider { padding: 19px; }
  .recommended-provider .provider-name { font-size: 16px; }
  .card { padding: 24px; }
  .page-heading { gap: 10px; }
  .heading-badges .badge-blue { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 13px; }
  .sidebar { height: 65px; padding: 12px 18px; }
  .brand { font-size: 18px; }
  .brand-mark, .brand-mark svg { width: 27px; height: 27px; }
  .sidebar nav { gap: 3px; }
  .nav-item { padding: 8px; font-size: 10px; gap: 5px; }
  .nav-item svg { width: 14px; height: 14px; }
  .main-shell { padding: 0 17px 21px; }
  .topbar { min-height: 56px; }
  .breadcrumb { gap: 7px; font-size: 10px; }
  .breadcrumb svg { width: 13px; height: 13px; }
  .topbar-meta { gap: 10px; }
  .topbar-meta > span:not(.badge) { display: none; }
  .topbar-avatar { width: 26px; height: 26px; }
  .topbar-meta .text-button { font-size: 10px; }
  .page-heading { display: block; margin: 25px 0 20px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
  h1 { font-size: 23px; letter-spacing: -.7px; }
  .page-heading p:not(.eyebrow) { margin-top: 8px; font-size: 11px; line-height: 1.9; }
  .heading-badges { margin-top: 11px; padding: 0; }
  .heading-badges .badge-blue, .heading-badges .badge-muted { display: inline-flex; }
  .badge { font-size: 9px; padding: 3px 7px; }
  .steps { margin-bottom: 21px; justify-content: space-between; }
  .step { gap: 6px; font-size: 10px; }
  .step:not(:last-child)::after { width: 18px; margin: 0 6px 0 3px; }
  .step-number { width: 22px; height: 22px; font-size: 9px; }
  .step-divider { flex: 1; min-width: 8px; max-width: 34px; margin: 0 7px; }
  .primary-column, .secondary-column { gap: 16px; }
  .workspace-grid { gap: 16px; }
  .card { padding: 20px 18px; border-radius: 13px; }
  .card-header { margin-bottom: 17px; }
  .section-label { gap: 8px; }
  .card-title { font-size: 13px; }
  .section-meta { font-size: 9px; }
  .recommended-provider { gap: 11px; padding: 16px 13px; min-height: 90px; }
  .recommended-provider .provider-logo { width: 40px; height: 40px; }
  .recommended-provider .provider-logo svg { width: 30px; height: 30px; }
  .recommended-provider .provider-name { font-size: 15px; gap: 6px; }
  .provider-description { font-size: 10px; line-height: 1.7; }
  .provider-grid { gap: 8px; }
  .provider-tile { flex-direction: column; align-items: center; justify-content: center; padding: 12px 5px; gap: 6px; text-align: center; }
  .provider-tile .provider-logo { width: 27px; height: 27px; }
  .provider-tile .provider-name { font-size: 10px; }
  .selected-provider { font-size: 10px; }
  .selected-provider .provider-logo { display: none; }
  .form-card .card-header { margin-bottom: 18px; }
  .demo-notice { font-size: 10px; padding: 10px; gap: 6px; }
  .field { margin-bottom: 18px; }
  .field-head label, .field > label { font-size: 11px; }
  .field-head a { font-size: 9px; }
  input:not([type="checkbox"]):not([type="radio"]), select { height: 44px; font-size: 12px; }
  .helper { font-size: 9px; }
  .model-meta { font-size: 9px; align-items: flex-start; }
  .actions { grid-template-columns: 1fr 1.4fr; gap: 8px; }
  .button { padding: 10px; font-size: 11px; }
  .button-fetch-models { padding: 7px 11px; min-height: 35px; font-size: 10px; }
  .fetch-models-row { align-items: flex-start; gap: 8px 10px; }
  .fetch-models-row > .helper, .fetch-models-row > .model-fetch-status { min-width: 135px; font-size: 9px; }
  .model-fetch-status { font-size: 9px; }
  .model-count { font-size: 8px; }
  .form-footer { font-size: 8px; }
  .secondary-column { grid-template-columns: 1fr; }
  .status-card { grid-row: auto; }
  .summary-rows { gap: 11px; }
  .summary-row, .summary-value { font-size: 11px; }
  .summary-provider { margin: 18px 0; }
  .route-flow { display: flex; align-items: flex-start; justify-content: space-between; gap: 0; }
  .route-node { flex-direction: column; text-align: center; gap: 7px; }
  .route-index { display: none; }
  .route-icon { width: 31px; height: 31px; }
  .route-copy strong { font-size: 9px; }
  .route-copy span, .route-copy small { max-width: 83px; margin-top: 4px; font-size: 8px; }
  .route-line { flex: 1; width: auto; height: 1px; margin: 15px 5px 0; border: 0; border-top: 1px dashed #dbe4f2; }
  .feature-list { grid-template-columns: 1fr; gap: 14px; }
  .feature-list strong { font-size: 11px; }
  .feature-list p { font-size: 10px; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 9px; padding-top: 22px; font-size: 8px; }
  .page-footer a, .page-footer .text-button { font-size: 9px; }
  .provider-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 30px); border-radius: 13px; }
  .dialog-header { padding: 21px 18px 16px; }
  .dialog-title { font-size: 17px; }
  .dialog-header p { font-size: 10px; }
  .search-wrap { margin: 0 18px 16px; }
  .provider-filters { padding: 0 18px 16px; }
  .dialog-provider-grid { grid-template-columns: 1fr; padding: 0 18px 21px; gap: 8px; }
  .dialog-provider { padding: 12px; }
  .dialog-provider .provider-description { font-size: 10px; }
  .dialog-footnote { padding: 13px 18px 17px; font-size: 8px; }
  .help-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 30px); }
  .help-content { padding: 0 18px 22px; font-size: 11px; }
  .toast { bottom: 20px; width: max-content; max-width: calc(100% - 34px); padding: 10px 15px; font-size: 11px; }
}
@media (max-width: 380px) {
  .step { gap: 5px; font-size: 9px; }
  .step-number { width: 20px; height: 20px; font-size: 8px; }
  .step:not(:last-child)::after { width: 9px; margin: 0 4px 0 2px; }
  .nav-item { font-size: 9px; padding: 7px 5px; }
  .brand { font-size: 16px; gap: 5px; }
  .brand-mark, .brand-mark svg { width: 24px; height: 24px; }
  .heading-badges .guide-button { margin-left: 2px; font-size: 9px; }
  .form-card .selected-provider { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Keep instructions and returned-model metadata readable at every breakpoint. */
.helper, .model-meta { color: #596780; font-size: 11px; }
.model-fetch-status { color: #596780; font-size: 11px; }
.model-fetch-status.good, .model-fetch-status.success { color: #20765f; }
.model-fetch-status.error, .model-fetch-status.failure { color: #b23d3d; }
.field-caption, .model-count { color: #596780; font-size: 10px; }
.provider-description, .dialog-provider .provider-description { color: #596780; font-size: 11px; }
.summary-row { color: #596780; font-size: 11px; }
.summary-value { color: #455671; font-size: 11px; }
.summary-provider p { color: #596780; font-size: 11px; }
.route-copy strong { color: #4f607b; font-size: 11px; }
.route-copy span, .route-copy small { color: #65748b; font-size: 10px; }
.summary-footnote, .form-footer { color: #596780; font-size: 10px; }
.info-card-blue p, .info-card-blue .feature-list { color: #4e638a; font-size: 11px; }


/* 隐藏模式徽标（演示/真实转发模式） */
#mode-badge { display: none !important; }
