:root {
  color-scheme: light;
  --canvas: #ffffff;
  --sidebar: #f4f5fa;
  --surface: #f8f9fc;
  --ink: #24283e;
  --muted: #6d7388;
  --quiet: #72788c;
  --accent: #4b4acf;
  --accent-hover: #3c3bae;
  --accent-soft: #ececfc;
  --success: #287b66;
  --success-soft: #edf6f2;
  --border: #e7e9f0;
  --border-strong: #d7dae6;
  --danger: #a94a57;
  --font-ui: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-number: Bahnschrift, "Segoe UI", system-ui, sans-serif;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { border: 0; background: none; }
button:disabled { cursor: not-allowed; }
button, a { touch-action: manipulation; }
button, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 3px solid #8584e5; outline-offset: 3px; }
::selection { background: #deddf9; color: #25235f; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
svg { display: block; flex: 0 0 auto; }
button svg { pointer-events: none; }
h1, h2, h3, p { margin-top: 0; }
button, input, textarea { color: var(--ink); }
input, textarea { border-radius: 0; }
textarea { resize: none; }
textarea::placeholder, input::placeholder { color: #6b6f7d; opacity: 1; }
[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; }
* { scrollbar-width: thin; scrollbar-color: #d2d5e1 transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #d2d5e1; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr) 308px; height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 29px 16px 16px; background: var(--sidebar); border-right: 1px solid #edeef5; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 37px; height: 37px; color: var(--accent); }
.brand-mark svg { width: 37px; height: 37px; }
.brand-name { display: block; font-size: 20px; line-height: 1.35; font-weight: 750; letter-spacing: .4px; }
.brand-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: .6px; }
.new-chat { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 43px; margin: 33px 0 21px; padding: 10px 14px; border: 1px solid #d9d9f1; border-radius: 9px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 650; transition: background .15s, border-color .15s; }
.new-chat:hover { background: var(--accent-soft); border-color: #bfbde8; }
.new-chat kbd { margin-left: auto; color: #6f6b91; font: 10px var(--font-ui); }
.icon, .icon svg { width: 18px; height: 18px; }
.nav-list { display: flex; flex-direction: column; gap: 4px; padding-bottom: 25px; }
.nav-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 10px 13px; border-radius: 7px; text-align: left; color: #60667b; font-size: 13px; transition: background .15s, color .15s; }
.nav-button svg { width: 18px; height: 18px; }
.nav-button:hover { color: var(--ink); background: #eaeaf3; }
.nav-button.active { color: var(--accent); background: #e8e8f8; font-weight: 650; }
.nav-count { margin-left: auto; font-family: var(--font-number); color: #6a6e7e; font-size: 12px; }
.history-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 11px 12px; padding-top: 22px; border-top: 1px solid #e2e5ee; color: var(--muted); font-size: 12px; line-height: 1.5; }
.history-header button { display: inline-flex; align-items: center; padding: 3px; color: var(--muted); }
.history-header svg { width: 14px; height: 14px; }
.history-list { flex: 1; min-height: 70px; overflow-y: auto; padding-bottom: 18px; }
.history-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 39px; padding: 10px 13px; border-radius: 6px; color: #696e81; font-size: 12px; line-height: 1.55; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.history-item svg { width: 14px; height: 14px; color: #6b6f7c; }
.history-item:hover, .history-item.active { background: #e9eaf3; color: var(--ink); }
.history-item.active { font-weight: 600; }
.history-list > p { padding: 2px 13px; color: var(--quiet); font-size: 12px; line-height: 1.8; }
.history-empty { padding: 7px 13px; color: #696f82; font-size: 12px; line-height: 2; }
.history-empty span { color: #6b6f7b; font-size: 12px; }
.sidebar-bottom { flex: 0 0 auto; padding-top: 16px; border-top: 1px solid #e1e4ed; }
.sidebar-note { display: flex; align-items: center; gap: 7px; padding: 0 8px 16px; color: #6c6e81; font-size: 12px; }
.sidebar-note svg { width: 13px; height: 13px; }
.user-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 3px 7px; border-radius: 7px; text-align: left; }
.user-card:hover { background: #e9ebf3; }
.user-card > svg { margin-left: auto; color: #6a6f7e; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #dce0ef; border-radius: 50%; background: #e9ecf6; color: #545d80; font-size: 12px; font-weight: 700; }
.user-meta { flex: 1; min-width: 0; font-size: 12px; line-height: 1.6; }
.user-meta strong { display: block; font-size: 12px; font-weight: 650; }
.user-meta span, .user-meta small { display: block; color: var(--muted); font-size: 12px; }
.more-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 34px; padding: 6px; border-radius: 6px; color: var(--muted); }
.more-btn:hover { color: var(--ink); background: #e3e5ef; }
.more-btn svg { width: 18px; height: 18px; }

.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--canvas); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 76px; min-height: 76px; padding: 0 32px; border-bottom: 1px solid #f0f1f5; }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; color: #6a6e80; font-size: 12px; white-space: nowrap; }
.breadcrumb strong, .breadcrumb > span:last-child { color: #42485f; font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb svg { width: 15px; height: 15px; color: #6c6f79; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 0 0 auto; }
.demo-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #e2e4ee; border-radius: 5px; color: #696f80; background: #fbfbfd; font-size: 12px; font-weight: 500; line-height: 1.35; white-space: nowrap; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 7px; border-radius: 7px; color: #6a6f7e; }
.icon-button svg { width: 18px; height: 18px; }
.icon-button:hover { color: var(--ink); background: var(--sidebar); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 12px; line-height: 1.6; white-space: nowrap; }
.status-pill::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: #3d957e; }
.mobile-menu, .mobile-inspector, .mobile-scrim { display: none; }
#main-view { display: flex; flex: 1; min-width: 0; min-height: 0; }
.view { flex: 1; min-width: 0; min-height: 0; }
.view:not(.chat-view) { padding: 39px 38px 48px; overflow-y: auto; }
.chat-view { display: flex; flex-direction: column; }
.chat-scroll { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 36px 16px; scroll-behavior: smooth; }
.welcome { width: 100%; max-width: 630px; margin: auto; padding: 15px 0 28px; text-align: center; }
.welcome-orbit { display: flex; align-items: center; justify-content: center; width: 95px; height: 86px; margin: 0 auto 24px; color: var(--accent); }
.welcome-orbit svg { width: 95px; height: 86px; overflow: visible; }
.welcome-kicker { margin-bottom: 10px; color: #696e83; font-size: 12px; font-weight: 500; letter-spacing: .15px; }
.welcome h1 { margin: 0 0 15px; color: #292d45; font-size: clamp(26px, 2.25vw, 34px); line-height: 1.45; font-weight: 650; letter-spacing: -.8px; }
.welcome-subtitle { margin: 0 auto; max-width: 440px; color: #6a6f7e; font-size: 12px; line-height: 1.85; }
.suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; width: 100%; max-width: 574px; margin: 34px auto 0; text-align: left; }
.suggestion { position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 5px; min-height: 83px; padding: 17px 28px 17px 18px; border: 1px solid var(--border); border-radius: 9px; text-align: left; background: #fff; transition: border-color .15s, background .15s; }
.suggestion-arrow { position: absolute; top: 21px; right: 11px; width: 12px; height: 12px; color: #6c6e7b; }
.suggestion:hover { border-color: #c4c3e9; background: #fcfcff; }
.suggestion-icon { display: flex; align-items: center; justify-content: center; grid-row: 1 / 3; align-self: start; width: 27px; height: 27px; border-radius: 6px; color: #6663bc; background: #f0effb; }
.suggestion-icon svg { width: 16px; height: 16px; }
.suggestion:nth-child(2) .suggestion-icon { color: #547388; background: #edf3f8; }
.suggestion:nth-child(3) .suggestion-icon { color: #746894; background: #f2eff7; }
.suggestion:nth-child(4) .suggestion-icon { color: #537669; background: #edf5f1; }
.suggestion-label { color: #4d536b; font-size: 12px; font-weight: 650; line-height: 1.6; }
.suggestion-description { color: #6b6f7c; font-size: 12px; line-height: 1.6; }
.conversation { width: 100%; max-width: 760px; margin: 8px auto 0; }
.message { display: flex; align-items: flex-start; gap: 12px; width: 100%; margin-bottom: 30px; }
.message-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #e6e5f7; border-radius: 9px; color: var(--accent); background: #f3f2fc; font-size: 12px; }
.message-avatar svg { width: 18px; height: 18px; }
.message-content { min-width: 0; max-width: calc(100% - 42px); }
.message-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 3px 0 10px; color: #6a6f7c; font-size: 12px; line-height: 1.5; }
.message-meta strong { color: #474d65; font-size: 12px; font-weight: 650; }
.response-demo { color: #706c87; font-size: 12px; }
.message-body { color: #454b61; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.copy-message { min-height: 27px; margin-top: 9px; padding: 3px 0; font-size: 12px; }
.stream-text { white-space: pre-wrap; }
.message-body > :last-child { margin-bottom: 0; }
.message-body p { margin: 0 0 12px; }
.message-body h2, .message-body h3 { margin: 18px 0 10px; color: var(--ink); font-size: 15px; font-weight: 650; }
.message-body ul, .message-body ol { margin: 0 0 12px; padding-left: 24px; }
.message-body li { margin-bottom: 5px; }
.message-body strong { color: #373c52; font-weight: 650; }
.message-body code { padding: 2px 5px; border-radius: 4px; color: #5652a8; background: #f0eff9; font-size: 12px; }
.message-body pre { max-width: 100%; overflow: auto; margin: 12px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: #f8f9fc; line-height: 1.7; }
.message-body pre code { padding: 0; background: none; color: #48516b; }
.message.user { flex-direction: row-reverse; }
.message.user .message-avatar { border-color: #e2e6ee; border-radius: 50%; background: #edf0f7; color: #646d89; }
.message.user .message-meta { justify-content: flex-end; }
.message.user .message-body { padding: 12px 17px; border-radius: 12px 3px 12px 12px; color: #3f4560; background: #f1f2f9; }
.message.assistant .message-content { flex: 1; }
.message-body .inline-notice { margin-top: 15px; font-size: 12px; }
.composer-wrap { flex: 0 0 auto; width: 100%; max-width: 854px; margin: 0 auto; padding: 12px 36px 18px; }
.composer { padding: 17px 18px 13px; border: 1px solid #dcdeea; border-radius: 13px; background: #fff; box-shadow: 0 4px 22px rgba(54, 56, 103, .035); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: #aaa8dc; box-shadow: 0 0 0 3px rgba(75, 74, 207, .045); }
.composer-top { display: flex; min-width: 0; }
#prompt { display: block; width: 100%; min-height: 57px; max-height: 160px; padding: 0; border: 0; outline: none; color: #3c425b; background: transparent; font-size: 13px; line-height: 1.8; }
.composer-bottom { display: flex; align-items: center; gap: 9px; min-height: 34px; margin-top: 10px; }
.model-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 8px; border: 1px solid #e4e6ef; border-radius: 6px; background: #f9f9fc; color: #5f647d; font-size: 12px; font-weight: 600; white-space: nowrap; }
.model-trigger:hover { background: var(--accent-soft); border-color: #d3d1ee; }
.model-trigger svg { width: 12px; height: 12px; color: #6b6e7e; }
.model-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #6260c6; }
.model-dot.swift { background: #4d917e; }
.model-dot.balanced { background: #6560ca; }
.model-dot.deep { background: #8670b8; }
.composer-hint { flex: 1; min-width: 0; padding-left: 2px; color: #6b6f7b; font-size: 12px; line-height: 1.5; }
.send-button, .stop-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; margin-left: auto; padding: 8px; border-radius: 8px; color: #fff; background: var(--accent); transition: background .15s; }
.send-button svg, .stop-button svg { width: 17px; height: 17px; }
.send-button:hover, .stop-button:hover { background: var(--accent-hover); }
.send-button:disabled { background: #cac9e7; }
.stop-button { width: auto; min-width: 66px; gap: 5px; padding-right: 9px; padding-left: 9px; background: #5b5b7b; font-size: 12px; white-space: nowrap; }
.composer-footnote { margin: 11px 0 0; color: #6c6f79; font-size: 12px; line-height: 1.6; text-align: center; }
.composer-footnote > span + span { margin-left: 12px; }

.inspector { min-width: 0; min-height: 0; padding: 30px 23px 21px; border-left: 1px solid var(--border); background: #fcfcfe; overflow-y: auto; overscroll-behavior: contain; }
.inspector-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.inspector-head h2 { margin: 0; color: #50566e; font-size: 13px; font-weight: 650; }
.inspector-head .section-title { margin: 0; font-size: 12px; color: #52596f; }
.inspector-head .button-ghost { min-height: 24px; margin-left: auto; padding: 3px 0; font-size: 12px; }
.inspector-head .button-ghost svg { width: 12px; height: 12px; }
.inspector-close { display: none; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 14px; color: #686e84; font-size: 12px; line-height: 1.6; font-weight: 550; }
.section-title svg { width: 13px; height: 13px; color: #6b6e7c; }
.quota-summary { padding: 0; }
.quota-summary > .quota-caption:first-child { margin: 0 0 12px; }
.quota-number { display: flex; align-items: baseline; gap: 6px; margin: 0 0 15px; color: #343951; font-family: var(--font-number); font-size: 38px; line-height: 1.1; font-weight: 500; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.quota-number span, .quota-number small { color: #6b6f7d; font-size: 15px; font-weight: 400; letter-spacing: 0; }
.quota-number strong { font-weight: 500; }
.quota-track { height: 5px; border-radius: 5px; background: #e9eaf4; overflow: hidden; }
.quota-fill { width: 100%; height: 100%; border-radius: inherit; background: #6562cf; transition: width .25s; }
.quota-caption { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; color: #6b6f7c; font-size: 12px; line-height: 1.6; }
.quota-caption strong { color: #696e82; font-weight: 500; }
.quota-limits { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.quota-limit { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6a6f80; font-size: 12px; line-height: 1.6; }
.quota-limit > span { display: inline-flex; align-items: center; gap: 7px; }
.quota-limit > span svg { width: 13px; height: 13px; }
.quota-limit strong { color: #616981; font-family: var(--font-number); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.quota-limit small { color: #6b6f7b; font-size: 12px; }
.panel-divider { height: 1px; margin: 27px 0 24px; border: 0; background: var(--border); }
.channel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.channel-header h2, .channel-header h3 { margin: 0; color: #555c74; font-size: 12px; font-weight: 650; }
.channel-header > span, .channel-header > small { color: #6a6f7c; font-size: 12px; }
.channel-header .section-title { margin: 0; }
.channel-header > div { display: flex; align-items: center; gap: 9px; }
.channel-count { color: #696f7d; font-size: 12px; }
.channel-tabs { display: flex; gap: 3px; padding: 3px; margin-bottom: 15px; border-radius: 7px; background: #eef0f6; }
.channel-tab { flex: 1; min-height: 28px; padding: 5px 6px; border-radius: 5px; color: #6a6e7e; font-size: 12px; line-height: 1.5; }
.channel-tab:hover { color: #626981; }
.channel-tab.active { color: #6560b1; background: #fff; box-shadow: 0 1px 3px rgba(54, 56, 89, .06); font-weight: 600; }
.channel-list { display: flex; flex-direction: column; gap: 9px; }
.channel-card { display: block; width: 100%; padding: 13px 13px 12px; border: 1px solid #e6e8f0; border-radius: 8px; background: #fff; text-align: left; transition: border-color .15s, background .15s; }
button.channel-card:hover:not(:disabled) { border-color: #bab8df; }
.channel-card.selected { border-color: #b4b0e1; background: #f7f6ff; }
.channel-card.unavailable { background: #f8f9fc; }
.channel-card-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 11px; }
.channel-name { display: inline-flex; align-items: center; gap: 7px; color: #646b81; font-size: 12px; line-height: 1.5; font-weight: 600; }
.channel-name svg { width: 13px; height: 13px; color: #6d68a3; }
.channel-status { display: inline-flex; align-items: center; gap: 4px; color: #527669; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.channel-status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.channel-status svg { width: 11px; height: 11px; }
.channel-status:has(svg)::before { display: none; }
.channel-card.selected .channel-status { color: #6f67a7; }
.channel-card.unavailable .channel-name { color: #6c6f7a; }
.channel-card.unavailable .channel-status { color: #6b6f79; }
.channel-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: #6b6f7b; font-size: 12px; line-height: 1.6; }
.channel-card-foot > span:last-child { font-family: var(--font-number); font-variant-numeric: tabular-nums; }
.load-track { display: block; height: 3px; margin-top: 11px; border-radius: 3px; background: #edf0f5; overflow: hidden; }
.load-fill { display: block; height: 100%; border-radius: inherit; background: #83b29f; }
.channel-card.selected .load-track { background: #e7e4f7; }
.channel-card.selected .load-fill { background: #9990d7; }
.channel-card.unavailable .load-fill { background: #ccd0db; }
.auto-routing { display: flex; align-items: center; gap: 9px; width: 100%; margin: 0 0 13px; padding: 11px 10px; border: 1px solid transparent; border-radius: 7px; color: #686e83; background: #f1f2f8; font-size: 12px; line-height: 1.75; text-align: left; }
.auto-routing:hover { background: #eaeaf7; }
.auto-routing.selected { border-color: #d7d3ee; background: #f1effb; }
.auto-routing strong { display: block; color: #69619c; font-size: 12px; font-weight: 600; }
.auto-routing small { display: block; color: #6f6d80; font-size: 12px; }
.auto-routing svg { width: 14px; height: 14px; color: #716b8c; }
.auto-routing > svg:last-child { margin-left: auto; }
.auto-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.inspector-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 29px; padding-top: 18px; border-top: 1px solid var(--border); color: #6b6f7d; font-size: 12px; line-height: 1.85; }
.inspector-footer .button-ghost { width: 100%; justify-content: flex-start; min-height: 24px; margin-top: 4px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #6ba28d; }
.inspector-footer p { margin-bottom: 9px; }
.inspector-footer button, .inspector-footer a { padding: 0; color: #6d68a7; font-size: 12px; }

.page-heading { margin-bottom: 30px; }
.page-kicker { display: block; margin-bottom: 11px; color: #6a6f7e; font-size: 12px; line-height: 1.8; }
.page-heading h1 { margin-bottom: 10px; color: #30364e; font-size: 25px; line-height: 1.5; font-weight: 650; letter-spacing: -.5px; }
.page-heading p { max-width: 620px; margin-bottom: 0; color: #6b6f7c; font-size: 12px; line-height: 1.9; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 32px; padding: 21px 0 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metric-card { padding: 0 18px; border-left: 1px solid var(--border); }
.metric-card:first-child { padding-left: 0; border-left: 0; }
.metric-value { display: block; margin-top: 9px; margin-bottom: 0; color: #41475e; font-family: var(--font-number); font-size: 28px; line-height: 1.25; font-weight: 500; font-variant-numeric: tabular-nums; }
.metric-value.model-value { font-family: var(--font-ui); font-size: 23px; line-height: 1.5; }
.metric-value small { color: #6c6f7b; font-size: 12px; font-weight: 400; }
.metric-label { display: block; color: #6a6f7d; font-size: 12px; line-height: 1.6; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 19px; }
.filter-bar > div { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-bar > .button-secondary { margin-left: auto; }
.filter-chip { min-height: 31px; padding: 5px 12px; border: 1px solid #e6e8f0; border-radius: 6px; background: #fff; color: #6a6f80; font-size: 12px; line-height: 1.6; }
.filter-chip:hover { border-color: #c3c0e2; }
.filter-chip.active, .filter-chip[aria-pressed="true"] { color: #6961b6; border-color: #c9c4e8; background: #f6f4fe; }
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--border); }
.table-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 27px 0 15px; }
.table-heading h2 { margin: 0; color: #545d75; font-size: 13px; font-weight: 650; }
.table-heading > span { color: #6a6f7b; font-size: 12px; }
.status-pill.muted { color: #696f7f; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.7; }
.data-table th { padding: 13px 12px; border-bottom: 1px solid var(--border); color: #6b6f7c; background: #fafbfd; font-weight: 500; white-space: nowrap; }
.data-table td { padding: 17px 12px; border-bottom: 1px solid #eef0f5; color: #666e86; vertical-align: middle; }
.data-table th:first-child, .data-table td:first-child { padding-left: 15px; }
.data-table td strong { color: #565e77; font-weight: 550; }
.data-table tbody tr:hover { background: #fcfcff; }
.data-table td small { display: block; margin-top: 3px; color: #6c6f7a; font-size: 12px; }
.data-table .empty-state { text-align: center; }
.channels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 25px; }
.channels-grid .channel-card { padding: 19px; }
.channels-grid .channel-name { font-size: 13px; }
.channels-grid .channel-card-head { margin-bottom: 18px; }
.channels-grid .channel-card-foot { margin-top: 12px; font-size: 12px; }
.channel-models { display: block; color: #696f7f; font-size: 12px; line-height: 1.8; }
.plan-card { padding: 25px 27px; border: 1px solid #e3e1f0; border-radius: 10px; background: #faf9ff; }
.plan-label { margin-bottom: 13px; color: #726a8e; font-size: 12px; }
.plan-price { margin: 21px 0; color: #58506f; font-family: var(--font-number); font-size: 36px; line-height: 1.4; }
.plan-price span { color: #726c7f; font-family: var(--font-ui); font-size: 12px; }
.plan-expiry { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e7e3f0; color: #726c7d; font-size: 12px; }
.redeem-card > p { color: #696f7e; font-size: 12px; line-height: 1.9; }
.redeem-card form { margin-top: 25px; }
.redeem-card form .button-primary { width: 100%; margin-top: 13px; }
.demo-code { margin-top: 20px; color: #6a6f7c; font-size: 12px; line-height: 1.8; }
.demo-code .button-ghost { min-height: 26px; padding: 3px 5px; font-family: var(--font-number); font-size: 12px; }
.demo-code small { display: block; margin-top: 7px; color: #6a6f7c; font-size: 12px; }
.plan-card h2 { margin-bottom: 10px; font-size: 18px; font-weight: 650; color: #55516f; }
.plan-card p { margin-bottom: 19px; color: #6f6d80; font-size: 12px; line-height: 1.8; }
.detail-list { margin: 17px 0 22px; }
.detail-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 13px 0; border-bottom: 1px solid #eae8f2; color: #6f6d7d; font-size: 12px; line-height: 1.8; }
.detail-row:last-child { border-bottom: 0; }
.detail-row strong, .detail-row > span:last-child { color: #666179; text-align: right; font-weight: 500; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.account-grid > section:not(.plan-card), .account-grid > div:not(.plan-card) { padding: 23px 0; }
.account-grid h2 { margin-bottom: 18px; color: #555b72; font-size: 15px; font-weight: 650; }
.inline-notice { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; padding: 13px 15px; border-left: 2px solid #c9c6e4; background: #f7f7fc; color: #6e6d81; font-size: 12px; line-height: 1.9; }
.inline-notice svg { width: 15px; height: 15px; margin-top: 3px; }
.inline-notice p { margin: 0; }
.feature-list { margin: 0; padding: 0; color: #6b6e7b; font-size: 12px; line-height: 2.25; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 8px; padding-left: 1px; }
.feature-list li svg { width: 13px; height: 13px; color: #726b89; }
.empty-state { padding: 46px 18px; color: #6c6f7b; font-size: 12px; line-height: 1.85; text-align: center; }
.empty-state svg { width: 30px; height: 30px; margin: 0 auto 16px; color: #6c6e7b; }
.empty-state h2, .empty-state h3 { margin-bottom: 9px; color: #686f83; font-size: 15px; font-weight: 550; }

dialog { width: min(480px, calc(100vw - 36px)); max-height: min(85vh, 720px); padding: 0; border: 1px solid #e0e2ed; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 22px 90px rgba(39, 43, 82, .19); overflow: auto; }
dialog::backdrop { background: rgba(35, 40, 69, .24); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid #eef0f5; }
.dialog-header h2 { margin: 0; color: #3b425a; font-size: 17px; font-weight: 650; }
.dialog-body { padding: 22px 24px 25px; }
.dialog-body > p { margin: 0 0 18px; color: #696f7e; font-size: 12px; line-height: 1.9; }
.dialog-body > p:last-child { margin-bottom: 0; }
.dialog-body .inline-notice { margin-top: 18px; font-size: 12px; }
.dialog-footer { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 16px 24px 20px; border-top: 1px solid #eef0f5; }
.field-label { display: block; margin: 0 0 9px; color: #606980; font-size: 12px; font-weight: 600; }
.text-input { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dce0eb; border-radius: 7px; background: #fff; color: #525b74; font-size: 13px; line-height: 1.6; }
.text-input:focus { border-color: #9994d5; }
.model-options { display: flex; flex-direction: column; gap: 10px; }
.model-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 13px; border: 1px solid #e4e7ef; border-radius: 9px; background: #fff; text-align: left; }
.model-option:hover { border-color: #c2bee1; background: #fdfcff; }
.model-option.active, .model-option.selected, .model-option[aria-checked="true"], .model-option[aria-pressed="true"] { border-color: #aaa2d9; background: #f8f6ff; }
.model-option:disabled { opacity: .5; }
.model-option-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; color: #6d68a7; background: #f0eef9; }
.model-option-icon svg { width: 19px; height: 19px; }
.model-option-info { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 4px; }
.model-option-info strong { color: #565e76; font-size: 12px; font-weight: 650; }
.model-option-info span, .model-option-info small { color: #6a6f7c; font-size: 12px; line-height: 1.6; }
.model-cost { flex: 0 0 auto; color: #736b88; font-size: 12px; white-space: nowrap; }
.button-primary, .button-secondary, .button-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; line-height: 1.5; font-weight: 550; }
.button-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button-primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.button-secondary { border-color: #dde1ec; background: #fff; color: #686f83; }
.button-secondary:hover { border-color: #c2c5dd; background: #f8f9fc; }
.button-ghost { color: #726b8b; background: transparent; }
.button-ghost:hover { background: #f4f2fa; }
.button-primary:disabled, .button-secondary:disabled { opacity: .5; }
.button-primary svg, .button-secondary svg, .button-ghost svg { width: 15px; height: 15px; }
.toast-container { position: fixed; z-index: 100; bottom: 29px; left: 50%; display: flex; flex-direction: column; gap: 9px; width: max-content; max-width: calc(100vw - 36px); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 13px 18px; border: 1px solid #e2e4ef; border-radius: 8px; color: #565f7b; background: #fff; box-shadow: 0 6px 24px rgba(37, 42, 77, .12); font-size: 12px; line-height: 1.7; text-align: center; animation: toast-enter .18s ease-out; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) {
  .topbar { padding-right: 42px; padding-left: 42px; }
  .chat-scroll { padding-right: 48px; padding-left: 48px; }
  .welcome { padding-bottom: 38px; }
  .welcome-orbit { margin-bottom: 27px; }
  .suggestions { margin-top: 39px; }
  .composer-wrap { padding-bottom: 23px; }
}

@media (max-width: 1280px) and (min-width: 1181px) {
  .topbar { padding-right: 23px; padding-left: 23px; }
  .chat-scroll { padding-right: 24px; padding-left: 24px; }
  .composer-wrap { padding-right: 24px; padding-left: 24px; }
  .suggestion { padding: 15px 13px; column-gap: 7px; }
  .suggestion-description { font-size: 12px; }
  .view:not(.chat-view) { padding-right: 25px; padding-left: 25px; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .mobile-inspector { display: inline-flex; }
  .inspector-close { display: inline-flex; width: 24px; height: 24px; padding: 4px; }
  .inspector { display: none; position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(330px, calc(100vw - 42px)); padding-top: 27px; box-shadow: -10px 0 40px rgba(35, 39, 73, .08); }
  .inspector-open .inspector { display: block; }
  .inspector-open .mobile-scrim { display: block; position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(35, 40, 69, .25); cursor: default; }
  .welcome { max-width: 660px; }
  .welcome h1 { font-size: 32px; }
  .suggestions { max-width: 574px; }
  .view:not(.chat-view) { padding: 35px 32px 42px; }
}

@media (max-width: 760px) {
  .app-shell { display: flex; }
  .workspace { flex: 1; }
  .sidebar { display: none; position: fixed; z-index: 50; inset: 0 auto 0 0; width: 258px; max-width: calc(100vw - 48px); padding-top: 25px; box-shadow: 10px 0 35px rgba(35, 39, 73, .08); }
  .sidebar-open .sidebar { display: flex; }
  .sidebar-open .mobile-scrim { display: block; position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(35, 40, 69, .25); cursor: default; }
  .mobile-menu { display: inline-flex; flex: 0 0 auto; margin-left: -5px; }
  .topbar { flex-basis: 62px; min-height: 62px; justify-content: flex-start; gap: 8px; padding: 0 18px; }
  .breadcrumb { flex: 1; gap: 6px; font-size: 12px; }
  .topbar-actions { gap: 5px; }
  .topbar .status-pill { display: none; }
  .topbar .demo-badge { font-size: 12px; padding: 3px 5px; }
  .topbar-actions > .icon-button:not(.mobile-inspector) { display: none; }
  .chat-scroll { padding: 17px 23px 8px; }
  .welcome { padding: 15px 0 23px; }
  .welcome-orbit { width: 81px; height: 72px; margin-bottom: 21px; }
  .welcome-orbit svg { width: 81px; height: 72px; }
  .welcome-kicker { font-size: 12px; margin-bottom: 9px; }
  .welcome h1 { margin-bottom: 12px; font-size: 27px; line-height: 1.5; letter-spacing: -.6px; }
  .welcome-subtitle { max-width: 300px; font-size: 12px; }
  .suggestions { margin-top: 29px; gap: 9px; max-width: 480px; }
  .suggestion { min-height: 91px; grid-template-columns: 22px minmax(0, 1fr); padding: 14px 12px; column-gap: 7px; row-gap: 4px; }
  .suggestion-icon { width: 22px; height: 22px; border-radius: 5px; }
  .suggestion-icon svg { width: 14px; height: 14px; }
  .suggestion-label { font-size: 12px; line-height: 1.75; }
  .suggestion-description { font-size: 12px; line-height: 1.7; }
  .composer-wrap { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); }
  .composer { padding: 14px 13px 11px; border-radius: 11px; }
  #prompt { min-height: 51px; max-height: 120px; font-size: 13px; }
  .composer-bottom { gap: 7px; margin-top: 9px; }
  .model-trigger { font-size: 12px; }
  .composer-hint { font-size: 12px; }
  .composer-footnote { margin-top: 9px; font-size: 12px; }
  .composer-footnote > span { display: block; }
  .composer-footnote > span + span { margin: 3px 0 0; }
  .message { gap: 9px; margin-bottom: 25px; }
  .message-avatar { width: 27px; height: 27px; border-radius: 8px; }
  .message-avatar svg { width: 16px; height: 16px; }
  .message-content { max-width: calc(100% - 36px); }
  .message-body { font-size: 13px; line-height: 1.9; }
  .message.user .message-body { padding: 10px 13px; }
  .view:not(.chat-view) { padding: 28px 23px 36px; }
  .page-heading { margin-bottom: 25px; }
  .page-heading h1 { font-size: 23px; }
  .metric-grid { gap: 10px; padding: 18px 0 20px; }
  .metric-card { padding: 0 10px; }
  .metric-value { font-size: 23px; }
  .metric-label { font-size: 12px; }
  .channels-grid { gap: 10px; }
  .channels-grid .channel-card { padding: 15px 12px; }
  .channels-grid .channel-name { font-size: 12px; }
  .account-grid { grid-template-columns: 1fr; gap: 3px; }
  .plan-card { padding: 22px; }
  .dialog-header { padding: 19px 20px 16px; }
  .dialog-body { padding: 20px; }
  .dialog-footer { padding: 15px 20px 18px; }
  .toast-container { bottom: 20px; }
}

@media (max-width: 380px) {
  .chat-scroll { padding-right: 17px; padding-left: 17px; }
  .topbar { padding-right: 13px; padding-left: 13px; }
  .topbar .demo-badge { display: none; }
  .welcome h1 { font-size: 24px; }
  .welcome-subtitle { max-width: 260px; }
  .suggestion { grid-template-columns: 1fr; padding: 12px; min-height: 94px; }
  .suggestion-icon { display: none; }
  .suggestion-description { font-size: 12px; }
  .composer-hint { max-width: 112px; font-size: 12px; }
  .channels-grid { grid-template-columns: 1fr; }
  .metric-value { font-size: 21px; }
  .view:not(.chat-view) { padding-right: 18px; padding-left: 18px; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .topbar { flex-basis: 65px; min-height: 65px; }
  .chat-scroll { padding-top: 17px; }
  .welcome { padding-top: 0; padding-bottom: 12px; }
  .welcome-orbit { width: 71px; height: 63px; margin-bottom: 15px; }
  .welcome-orbit svg { width: 71px; height: 63px; }
  .welcome h1 { font-size: 28px; margin-bottom: 9px; }
  .suggestions { margin-top: 23px; }
  .suggestion { min-height: 72px; padding-top: 13px; padding-bottom: 13px; }
  .composer-wrap { padding-top: 8px; padding-bottom: 12px; }
  .composer { padding-top: 13px; padding-bottom: 10px; }
  #prompt { min-height: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
