:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --ink: #20242d;
  --muted: #68717f;
  --subtle: #87909c;
  --line: #e5e8ed;
  --accent: #263951;
  --accent-hover: #344e6c;
  --accent-soft: #edf1f6;
  --danger: #b33832;
  --warning: #936526;
  --success: #357056;
  --radius: 9px;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
input:disabled { cursor: not-allowed; }
a { color: var(--accent); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #95afcf; outline-offset: 3px; }
input, select, textarea { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #dce1e8; border-radius: 6px; background: #fff; color: var(--ink); padding: 9px 11px; font-size: 12px; transition: border-color .16s, box-shadow .16s; }
input:hover, select:hover, textarea:hover { border-color: #b7c1ce; }
input:focus, select:focus, textarea:focus { border-color: #839ab8; box-shadow: 0 0 0 2px #edf1f6; }
textarea { resize: vertical; min-height: 172px; line-height: 1.8; }
input::placeholder, textarea::placeholder { color: #697586; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
select { padding-right: 26px; }
code, pre, .job-id, .key-prefix { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { font-size: .92em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border-radius: 6px; border: 1px solid transparent; padding: 8px 13px; font-size: 12px; font-weight: 550; white-space: nowrap; text-decoration: none; transition: background .16s, border-color .16s, color .16s; }
.button:active:not(:disabled), .filter-button:active, .nav-button:active { transform: translateY(1px); }
.primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px #2639511a; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.ghost { background: transparent; color: var(--muted); }
.ghost:hover:not(:disabled) { background: #f0f2f5; color: var(--ink); }
.secondary { background: #fff; border-color: #dce1e8; color: #424d5b; }
.secondary:hover:not(:disabled) { background: #f6f8fa; border-color: #c5ceda; }
.small { min-height: 31px; padding: 5px 10px; font-size: 11px; }
.danger-button { color: var(--danger); border-color: #e5c9c7; background: #fff; }
.danger-button:hover { background: #fcf2f1; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.8px; color: var(--muted); }
.brand-mark { width: 40px; height: 40px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 650; letter-spacing: -1.4px; }
.brand-mark.compact { width: 29px; height: 29px; font-size: 13px; border-radius: 7px; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 3; padding: 10px 18px; background: var(--surface); border: 1px solid var(--accent); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.login-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 34px 24px 20px; background: var(--bg); }
.login-brand { align-self: flex-start; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #525c6a; }
.login-card { width: 100%; max-width: 380px; margin: auto 0; padding: 52px 0; }
.login-card h1 { font-size: 27px; font-weight: 600; letter-spacing: -1px; margin-top: 11px; }
.login-description { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 13px 0 32px; max-width: 320px; }
.login-card input { min-height: 44px; }
.login-button { width: 100%; justify-content: space-between; min-height: 43px; margin-top: 18px; }
.login-card .form-message:empty { display: none; }
.login-detail { display: flex; align-items: center; gap: 12px; margin-top: 38px; color: #697586; font-size: 10px; white-space: nowrap; }
.detail-line { flex: 1; height: 1px; background: #e1e5eb; }
.login-footer { font-size: 11px; color: #697586; text-align: center; margin-top: 17px; }
.login-bottom { font-size: 11px; color: #697586; }
.form-message { font-size: 12px; line-height: 1.7; color: var(--danger); overflow-wrap: anywhere; }
.form-message:not(:empty) { margin: 10px 0 13px; }
.form-message.success { color: var(--success); }
.topbar { background: #fff; border-bottom: 1px solid var(--line); min-height: 61px; display: flex; align-items: center; padding: 0 max(26px, calc((100vw - 1536px)/2)); gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand strong { font-size: 15px; font-weight: 600; letter-spacing: -.4px; }
.brand-divider { color: #697586; margin-left: 4px; font-size: 20px; font-weight: 300; }
.brand-org { font-size: 11px; color: #697586; }
.workspace-nav { display: flex; align-self: stretch; gap: 20px; margin-left: 12px; }
.nav-button { position: relative; background: none; border: 0; padding: 2px 1px 0; color: #697586; font-size: 12px; transition: color .16s; }
.nav-button:hover { color: var(--ink); }
.nav-button.active { color: var(--ink); font-weight: 600; }
.nav-button.active::after { content: ""; position: absolute; height: 2px; bottom: 0; left: 0; right: 0; background: var(--accent); border-radius: 2px 2px 0 0; }
.topbar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.workspace-label { font-size: 11px; color: #697586; }
.workspace-content { max-width: 1536px; margin: auto; padding: 27px 26px 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 23px; }
.page-heading h1 { font-size: 20px; letter-spacing: -.5px; font-weight: 600; }
.page-heading p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.live-indicator { font-size: 11px; color: #697586; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.status-dot { height: 5px; width: 5px; border-radius: 50%; background: var(--success); display: inline-block; flex: none; }
.live-indicator.warning .status-dot { background: var(--warning); }
.live-indicator.warning { color: var(--warning); }
.notice { border: 1px solid #e9d9bc; background: #fffcf6; color: #876124; border-radius: 6px; padding: 11px 14px; font-size: 12px; margin-bottom: 20px; }
.workspace-grid { display: grid; grid-template-columns: 322px minmax(0, 1fr); gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.create-panel { padding: 20px; }
.panel-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-heading { margin-bottom: 22px; }
.panel-heading>div, .section-heading>div { display: flex; align-items: center; gap: 8px; }
.panel-heading h2, .section-heading h2 { font-size: 13px; font-weight: 600; }
.model-label { font-size: 10px; color: #697586; }
.field { margin-bottom: 19px; min-width: 0; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-counter { font-size: 10px; font-variant-numeric: tabular-nums; color: #697586; }
.field-help { font-size: 10px; line-height: 1.8; color: #697586; margin-top: 7px; }
.optional { font-size: 10px; font-weight: 400; color: #697586; margin-left: 6px; }
.upload-area { border: 1px dashed #d8dfe8; border-radius: 6px; background: #fafbfc; padding: 12px; }
.upload-area input { border: 0; padding: 0; border-radius: 0; font-size: 11px; min-height: 30px; background: transparent; }
.upload-area input::file-selector-button { border: 1px solid #dce2e9; border-radius: 4px; background: white; color: #596677; font: inherit; padding: 5px 8px; margin-right: 8px; cursor: pointer; }
.upload-preview { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.upload-preview img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.upload-preview>div { min-width: 0; }
.upload-preview span { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-button { background: none; border: 0; color: #506985; font-size: 11px; padding: 5px 0; transition: color .16s; }
.text-button:hover { color: #213c5b; text-decoration: underline; text-underline-offset: 3px; }
.checkbox-label { display: flex; gap: 7px; align-items: center; font-weight: 400; font-size: 11px; color: #697586; margin-top: 10px; cursor: pointer; }
.checkbox-label input { width: 13px; height: 13px; min-height: 13px; accent-color: var(--accent); margin: 0; }
.form-divider { height: 1px; background: #edf0f4; margin: 0 0 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row select { font-size: 12px; }
.submit-button { width: 100%; min-height: 42px; font-size: 12px; }
.shared-note { font-size: 10px; line-height: 1.8; color: #697586; margin-top: 12px; text-align: center; }
.dashboard-column { display: flex; flex-direction: column; gap: 21px; min-width: 0; }
.section-heading { margin-bottom: 11px; }
.refresh-label { font-size: 10px; color: #697586; font-variant-numeric: tabular-nums; }
.nodes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.node-card { padding: 15px 16px 12px; min-width: 0; }
.node-placeholder { padding: 20px; min-height: 172px; font-size: 12px; color: var(--muted); }
.node-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 17px; }
.node-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.node-icon { display: grid; place-items: center; border: 1px solid #e4e8ee; background: #f7f9fb; border-radius: 5px; width: 26px; height: 26px; font-size: 13px; color: #697586; }
.node-title h3 { font-size: 12px; font-weight: 600; }
.node-title p { font-size: 10px; color: #697586; margin-top: 1px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; color: var(--success); }
.status-badge.offline { color: #697586; }
.status-badge.offline .status-dot { background: #a3abb6; }
.node-metrics { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; }
.metric-label { font-size: 10px; color: #697586; display: block; margin-bottom: 3px; }
.metric-value { font-size: 21px; line-height: 1.35; letter-spacing: -.6px; font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.metric-value small { font-size: 10px; font-weight: 400; letter-spacing: 0; color: #697586; margin-left: 3px; }
.metric-bar { height: 3px; background: #edf0f4; margin-top: 6px; overflow: hidden; }
.metric-bar>span { display: block; height: 100%; background: #71869f; }
.metric-detail { font-size: 10px; color: #697586; margin-top: 6px; min-height: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.node-footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #eff1f5; padding-top: 9px; margin-top: 12px; font-size: 10px; color: #697586; }
.node-active { font-size: 10px; color: #697586; margin-top: 7px; line-height: 1.5; overflow-wrap: anywhere; }
.jobs-panel { overflow: hidden; min-height: 385px; }
.jobs-heading { padding: 16px 20px 0; margin-bottom: 12px; }
.count-badge { font-size: 10px; background: #f0f2f6; color: #697586; min-width: 20px; height: 18px; border-radius: 4px; display: grid; place-items: center; padding: 0 5px; font-variant-numeric: tabular-nums; }
.jobs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; gap: 2px; }
.filter-button { border: 0; background: transparent; border-radius: 4px; color: #697586; font-size: 11px; padding: 5px 9px; white-space: nowrap; transition: background .16s, color .16s; }
.filter-button:hover { background: #f4f6f9; color: #515f71; }
.filter-button.active { background: #edf1f6; color: #3d536f; font-weight: 550; }
.jobs-summary { font-size: 10px; color: #697586; white-space: nowrap; }
.empty-state { text-align: center; padding: 65px 24px 72px; color: #697586; }
.empty-symbol { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #e6eaf0; border-radius: 7px; margin: 0 auto 15px; font-size: 21px; color: #697586; }
.empty-state h3 { font-size: 13px; color: #606e80; font-weight: 500; margin-bottom: 6px; }
.empty-state p { font-size: 11px; line-height: 1.8; }
.job-card { padding: 17px 20px; border-bottom: 1px solid #edf0f4; transition: background .16s; }
.job-card:hover { background: #fcfdff; }
.job-card:last-child { border-bottom: 0; }
.job-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.job-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.job-id { font-size: 10px; color: #697586; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-status { font-size: 10px; border-radius: 4px; padding: 2px 6px; white-space: nowrap; background: #f1f3f6; color: #697586; }
.job-status.running { background: #edf2f8; color: #4a698e; }
.job-status.queued, .job-status.submitting { background: #faf4e9; color: #697586; }
.job-status.done { background: #eef5f0; color: #5a7f67; }
.job-status.error, .job-status.uncertain { background: #fbefee; color: var(--danger); }
.job-time { font-size: 10px; color: #697586; white-space: nowrap; font-variant-numeric: tabular-nums; }
.job-prompt { font-size: 12px; line-height: 1.75; color: #465160; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-prompt.expanded { -webkit-line-clamp: unset; }
.prompt-toggle { font-size: 10px; padding: 3px 0; }
.job-meta { display: flex; gap: 7px 13px; flex-wrap: wrap; margin-top: 8px; font-size: 10px; color: #697586; font-variant-numeric: tabular-nums; }
.job-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; }
.job-progress { min-width: 0; flex: 1; max-width: 370px; }
.job-stage { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #697586; overflow-wrap: anywhere; }
.job-stage span:last-child { font-variant-numeric: tabular-nums; flex: none; }
.progress-track { height: 3px; background: #edf0f5; margin-top: 7px; overflow: hidden; }
.progress-fill { height: 100%; background: #6580a3; }
.job-actions { display: flex; gap: 6px; flex: none; }
.job-error { font-size: 11px; color: var(--danger); background: #fff7f6; border-radius: 5px; padding: 9px 11px; line-height: 1.7; overflow-wrap: anywhere; margin-top: 11px; }
.job-video { display: block; width: 100%; max-height: 480px; background: #1d232c; border-radius: 6px; margin-top: 15px; }
.video-error { font-size: 11px; color: var(--danger); margin-top: 8px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; font-size: 10px; color: #697586; }
.workspace-footer span span { margin: 0 5px; color: #697586; }
.skeleton span { display: block; height: 9px; background: #edf0f4; border-radius: 3px; margin-bottom: 13px; animation: skeleton-pulse 1.7s ease-in-out infinite; }
.skeleton span:first-child { width: 33%; }
.skeleton span:nth-child(2) { width: 85%; }
.skeleton span:last-child { width: 62%; }
.node-placeholder.skeleton span:nth-child(2) { height: 26px; margin-top: 26px; }
.job-placeholder { padding: 25px 20px; border-bottom: 1px solid var(--line); }
.agent-grid { display: grid; grid-template-columns: minmax(0, 1fr) 244px; gap: 32px; align-items: start; }
.agent-main { min-width: 0; display: flex; flex-direction: column; gap: 23px; }
.keys-panel, .integration-panel { padding: 22px; min-width: 0; }
.keys-panel>.panel-heading { margin-bottom: 8px; }
.panel-description { font-size: 11px; color: #697586; line-height: 1.8; max-width: 66em; }
.key-form { display: grid; grid-template-columns: minmax(130px, 1fr) 144px 88px auto; gap: 12px; align-items: end; margin-top: 23px; }
.key-form .field { margin: 0; }
.key-form .button { min-height: 40px; }
.key-scope-note { grid-column: 1/-1; font-size: 10px; color: #697586; }
.new-key-panel { border: 1px solid #cfdbeb; background: #f5f8fc; border-radius: 6px; padding: 14px; margin: 18px 0; }
.new-key-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.new-key-heading strong { font-size: 12px; color: #496481; font-weight: 600; }
.new-key-panel p { font-size: 10px; line-height: 1.8; color: #697586; margin: 4px 0 10px; }
.secret-row { display: flex; align-items: center; gap: 7px; }
.secret-row input { font-family: "SFMono-Regular", Consolas, monospace; min-height: 34px; padding: 7px 9px; flex: 1; }
.keys-list { margin-top: 21px; border-top: 1px solid var(--line); }
.keys-list .empty-state { padding: 33px 15px; }
.key-item { display: grid; grid-template-columns: minmax(130px, 1fr) auto; gap: 12px 20px; padding: 15px 0; border-bottom: 1px solid #edf0f4; }
.key-item:last-child { border-bottom: 0; padding-bottom: 0; }
.key-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.key-title h3 { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.key-prefix { font-size: 10px; color: #697586; margin-top: 5px; }
.key-meta { display: flex; flex-wrap: wrap; gap: 3px 15px; font-size: 10px; color: #697586; margin-top: 7px; }
.key-actions { display: flex; align-items: center; gap: 8px; }
.key-state { font-size: 10px; color: #697586; background: #f0f3f7; padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.key-state.revoked { color: #697586; background: #f5f6f8; }
.key-confirm { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; grid-column: 1/-1; background: #fcf6f5; border-radius: 5px; padding: 10px 12px; font-size: 11px; color: #9c5a51; }
.key-confirm>div { display: flex; gap: 8px; }
.integration-panel>.panel-heading { margin-bottom: 17px; }
.integration-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.integration-tab { border: 0; border-bottom: 2px solid transparent; padding: 0 0 10px; background: transparent; color: #697586; font-size: 12px; font-weight: 500; }
.integration-tab.active { border-bottom-color: var(--accent); color: var(--accent); }
.integration-tab:hover { color: var(--accent); }
.integration-description { font-size: 11px; color: #697586; line-height: 1.9; max-width: 69em; margin-bottom: 20px; }
.integration-description code { color: #63778e; }
.code-heading { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 7px; }
.code-heading>span { font-size: 11px; color: #697586; }
pre { margin: 0; padding: 15px 16px; background: #f7f9fc; border: 1px solid #e7ebf1; border-radius: 6px; color: #576b84; line-height: 1.9; font-size: 11px; overflow-x: auto; tab-size: 2; }
pre code { font-size: inherit; }
.mcp-tools { margin-top: 20px; }
.mcp-tools>div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f4; font-size: 11px; }
.mcp-tools code { color: #61758d; }
.mcp-tools span { color: #697586; }
.agent-aside { padding: 5px 0 10px; }
.agent-aside h2 { font-size: 12px; font-weight: 600; }
.usage-list { margin: 23px 0 25px; }
.usage-list>div { margin-bottom: 22px; }
.usage-list dt { font-size: 11px; color: #647286; margin-bottom: 6px; }
.usage-list dd { margin: 0; font-size: 11px; color: #697586; line-height: 1.9; }
.text-link { font-size: 11px; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy-notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); z-index: 2; padding: 10px 17px; color: #fff; background: #34465d; border-radius: 6px; font-size: 12px; box-shadow: 0 5px 16px #2639511a; text-align: center; }
.noscript-message { position: fixed; bottom: 10px; left: 10px; right: 10px; text-align: center; background: #fff5e9; padding: 15px; border: 1px solid #ead7bd; color: #8c6330; }
@keyframes skeleton-pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@media (min-width: 1536px) { .workspace-content { padding-left: 0; padding-right: 0; } .workspace-grid { grid-template-columns: 352px minmax(0, 1fr); gap: 26px; } }
@media (max-width: 1180px) {
  .workspace-grid { grid-template-columns: 302px minmax(0, 1fr); gap: 18px; }
  .topbar { gap: 23px; } .brand-org { display: none; } .brand-divider { display: none; }
  .node-card { padding: 13px; } .node-metrics { gap: 8px; } .metric-value { font-size: 19px; } .metric-detail { font-size: 10px; }
  .node-footer { font-size: 10px; } .node-icon { display: none; } .job-actions { gap: 3px; }
  .agent-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; }
  .key-form { grid-template-columns: minmax(120px, 1fr) 125px 82px; } .key-form .button { grid-column: 1/-1; justify-self: start; }
}
@media (max-width: 980px) {
  .workspace-content { padding: 24px 20px 0; } .topbar { padding: 0 20px; }
  .workspace-grid { grid-template-columns: 290px minmax(0, 1fr); gap: 16px; } .create-panel { padding: 17px; }
  .nodes-grid { grid-template-columns: 1fr; gap: 9px; } .node-card { padding: 12px 14px 10px; }
  .node-heading { margin-bottom: 10px; } .node-title p { display: none; } .node-icon { display: none; }
  .node-metrics { grid-template-columns: 1fr 1fr 1.2fr; gap: 15px; } .metric-value { font-size: 18px; }
  .metric-detail { font-size: 10px; } .metric-bar { margin-top: 4px; } .node-footer { margin-top: 8px; padding-top: 7px; font-size: 10px; }
  .job-bottomline { flex-wrap: wrap; gap: 10px; } .job-progress { flex-basis: 100%; max-width: none; } .job-actions { margin-left: auto; }
  .jobs-summary { display: none; } .jobs-heading { padding: 14px 16px 0; } .jobs-toolbar { padding: 0 13px 12px; } .job-card { padding: 16px; }
  .agent-grid { grid-template-columns: minmax(0, 1fr); } .agent-aside { border-top: 1px solid var(--line); padding-top: 20px; }
  .usage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; } .key-form { grid-template-columns: minmax(130px, 1fr) 144px 88px auto; } .key-form .button { grid-column: auto; }
}
@media (max-width: 760px) {
  .workspace-content { padding: 21px 16px 0; } .topbar { padding: 0 16px; gap: 18px; } .workspace-label { display: none; }
  .workspace-nav { margin-left: 0; gap: 16px; } .nav-button { font-size: 11px; } .brand strong { display: none; }
  .workspace-grid { grid-template-columns: 1fr; gap: 22px; } .create-panel { padding: 20px; }
  #job-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  #job-form>.prompt-field, .form-divider, #job-form>.field:has(#node), .submit-button, .shared-note, #submit-message { grid-column: 1/-1; }
  #job-form>.field:has(#image) { grid-row: span 1; } .field-row { align-content: start; }
  .nodes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .node-title h3 { font-size: 11px; } .node-card { padding: 13px; } .node-metrics { gap: 9px; }
  .metric-detail { font-size: 10px; } .node-footer { font-size: 10px; } .metric-value { font-size: 18px; }
  .jobs-summary { display: inline; } .job-bottomline { flex-wrap: nowrap; } .job-progress { flex-basis: auto; } .job-actions { margin-left: 0; }
  .jobs-heading { padding: 16px 19px 0; } .jobs-toolbar { padding: 0 17px 12px; } .job-card { padding: 17px 19px; }
  .page-heading h1 { font-size: 19px; } .page-heading p { font-size: 11px; }
  .key-form { grid-template-columns: 1fr 1fr; gap: 14px; } .key-name-field { grid-column: 1/-1; } .key-form .button { grid-column: 1/-1; justify-self: start; }
  .keys-panel, .integration-panel { padding: 19px; }
}
@media (max-width: 480px) {
  .topbar { min-height: 57px; gap: 15px; padding: 0 15px; } .workspace-nav { gap: 17px; } .topbar-right { gap: 0; } .topbar-right .button { padding: 5px 3px; }
  .brand-mark.compact { width: 27px; height: 27px; font-size: 12px; }
  .workspace-content { padding: 20px 14px 0; } .page-heading { gap: 10px; align-items: flex-start; margin-bottom: 20px; }
  .page-heading p { max-width: 240px; } .live-indicator { font-size: 10px; margin-top: 6px; gap: 5px; }
  .page-heading h1 { font-size: 18px; } .page-heading>.button { font-size: 10px; padding: 5px 7px; }
  .create-panel { padding: 18px; } #job-form { display: block; }
  textarea { min-height: 156px; } .field { margin-bottom: 18px; } .panel-heading { margin-bottom: 20px; }
  .nodes-grid { grid-template-columns: 1fr; gap: 10px; } .node-card { padding: 14px 16px 11px; }
  .node-heading { margin-bottom: 14px; } .node-title h3 { font-size: 12px; }
  .node-title p { display: block; font-size: 10px; } .node-icon { display: grid; }
  .node-metrics { gap: 15px; } .metric-value { font-size: 22px; } .metric-detail { font-size: 10px; } .node-footer { font-size: 10px; margin-top: 10px; }
  .jobs-heading { padding: 15px 16px 0; } .jobs-toolbar { padding: 0 12px 12px; gap: 4px; } .jobs-summary { font-size: 10px; }
  .filter-button { padding: 5px 8px; font-size: 10px; } .job-card { padding: 16px; }
  .job-id { font-size: 10px; max-width: 90px; } .job-time { font-size: 10px; } .job-topline { gap: 7px; }
  .job-bottomline { flex-wrap: wrap; gap: 11px; } .job-progress { flex-basis: 100%; } .job-actions { width: 100%; justify-content: flex-end; gap: 6px; }
  .job-actions .button { min-height: 32px; } .job-actions .copy-prompt { margin-right: auto; }
  .workspace-footer { flex-direction: column; gap: 5px; padding: 21px 2px; font-size: 10px; }
  .keys-panel, .integration-panel { padding: 17px; } .agent-grid { gap: 25px; }
  .new-key-heading { align-items: flex-start; } .new-key-heading strong { max-width: 150px; line-height: 1.7; } .new-key-heading .text-button { font-size: 10px; flex: none; }
  .secret-row { flex-wrap: wrap; } .secret-row input { flex-basis: 100%; } .secret-row .button { min-height: 32px; }
  .key-item { gap: 10px; grid-template-columns: minmax(0, 1fr) auto; } .key-actions { align-items: flex-start; padding-top: 2px; }
  .key-meta { gap: 3px 12px; font-size: 10px; } .key-prefix { overflow-wrap: anywhere; }
  .key-confirm { align-items: flex-start; } .key-confirm>div { margin-left: auto; }
  pre { padding: 13px; font-size: 10px; } .mcp-tools>div { font-size: 10px; }
  .usage-list { display: block; margin-top: 18px; } .usage-list>div { margin-bottom: 18px; }
  .login-screen { padding: 25px 26px 20px; } .login-card h1 { font-size: 25px; } .login-bottom { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
