@charset "UTF-8";
:root {
  --accent: #337dec;
  --accent-soft: #edf4ff;
  --ink: #24364b;
  --muted: #8290a4;
  --line: #e9edf3;
  --canvas: #f1f5fa;
  --nav-width: 232px;
  --header-height: 60px;
  font-family: Inter, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 13px; line-height: 1.6; }
body[data-brand="arch-gpt-api"] { --accent: #5368e9; --accent-soft: #f0f2ff; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button, input, select, textarea, a { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); }
h1, h2, h3, p { margin: 0; }
h3 { font-size: 15px; font-weight: 650; }
small, .small { font-size: 12px; }
pre, code { font-family: "Cascadia Code", Consolas, monospace; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
input, textarea, select { width: 100%; border: 1px solid #dfe5ee; border-radius: 6px; background: #fff; color: var(--ink); padding: 9px 11px; min-height: 36px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 550; }
form { display: grid; gap: 17px; }
.ui-icon { display: block; width: 18px; height: 18px; flex-shrink: 0; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10px; letter-spacing: 1.5px; font-weight: 650; color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; min-height: 35px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.button .ui-icon { width: 15px; height: 15px; }
.primary { color: #fff; background: var(--accent); }
.primary:hover:not(:disabled) { filter: brightness(1.06); }
.secondary { background: white; border-color: #e0e6ee; color: #607086; }
.secondary:hover:not(:disabled) { border-color: #a7b8d5; }
.quiet { color: #52627a; background: none; }
.quiet:hover { background: #f5f7fa; }
.dark { background: #24364b; color: #fff; }
.full { width: 100%; }
.text-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--accent); font-size: 11px; padding: 3px; }
.text-button .ui-icon { width: 13px; height: 13px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; color: #7d8b9e; background: transparent; border-radius: 5px; width: 32px; height: 32px; font-size: 23px; flex-shrink: 0; }
.icon-button:hover { background: #eff3f8; color: var(--accent); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; letter-spacing: -.4px; white-space: nowrap; }
.brand-mark { display: block; width: 35px; height: 35px; object-fit: contain; flex-shrink: 0; }
.small-brand-mark { object-fit: contain; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #2eb67b; display: inline-block; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border: 1px solid #e8edf4; color: var(--muted); font-size: 10px; border-radius: 4px; padding: 3px 7px; background: #fafbfd; }
.badge.ready { border-color: #daf1e6; background: #effaf5; color: #2a9d70; }
.badge.warn { border-color: #fae8c7; background: #fff9eb; color: #c18a24; }
.badge.off { background: #f5f6f8; border-color: #eceff3; color: #98a3b3; }
.badge.error { background: #fff2f1; border-color: #f9ddda; color: #d85f58; }
/* Header and navigation follow the reference's light administration layout. */
.workspace { min-height: 100vh; }
.topbar { position: fixed; inset: 0 0 auto; height: var(--header-height); background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 22px 0 13px; z-index: 40; }
.header-brand { display: flex; align-items: center; gap: 8px; min-width: calc(var(--nav-width) - 13px); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { font-size: 16px; letter-spacing: .1px; }
.brand-copy small { width: fit-content; font-size: 9px; padding: 1px 5px; margin-top: 3px; background: #f0f3f7; border-radius: 4px; color: #8190a5; font-weight: 400; }
.header-location { display: flex; align-items: center; gap: 9px; padding-left: 17px; color: #8996a8; font-size: 11px; }
.header-location .ui-icon { width: 15px; height: 15px; }
.topbar-right { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.connection-label { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #8a98aa; margin-right: 5px; }
.user-chip { border-left: 1px solid #ecf0f5; border-radius: 0; padding-right: 0; background: transparent; color: #354960; }
.user-chip > [data-icon="logout"] { margin-left: 6px; color: #94a0b2; }
.sidebar { position: fixed; top: var(--header-height); bottom: 0; left: 0; width: var(--nav-width); z-index: 30; display: flex; flex-direction: column; padding: 19px 16px 14px; background: #fff; border-right: 1px solid var(--line); transition: width .18s; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 13px; border-radius: 8px; color: #697a91; white-space: nowrap; font-size: 13px; }
.sidebar nav a:hover { background: #f7f9fc; }
.sidebar nav a.active { background: #f0f3f8; color: var(--accent); font-weight: 550; }
.nav-icon { width: 19px; color: #8c99ad; }
.active .nav-icon { color: var(--accent); }
.nav-section { margin: 20px 13px 8px; font-size: 10px; color: #a5afbd; }
.sidebar-bottom { margin-top: auto; padding: 25px 8px 0; }
.workspace-note { display: flex; align-items: center; gap: 10px; color: #8093aa; padding: 15px 0; font-size: 11px; }
.workspace-note > span { color: #a5b8ce; }
.workspace-note small { display: block; font-size: 9px; color: #a6b1c0; margin-top: 2px; }
.sidebar-version { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 9px; color: #a9b4c4; }
body.nav-collapsed { --nav-width: 72px; }
.nav-collapsed .sidebar { padding-left: 12px; padding-right: 12px; }
.nav-collapsed .sidebar a { justify-content: center; padding: 0; }
.nav-collapsed .nav-label, .nav-collapsed .nav-section, .nav-collapsed .sidebar-bottom { display: none; }
.nav-collapsed .header-brand { min-width: 219px; }
.main { padding-top: var(--header-height); width: calc(100% - var(--nav-width)); margin-left: var(--nav-width); min-width: 0; transition: margin .18s, width .18s; }
.page-body { max-width: 1680px; margin: auto; padding: 17px 20px 24px; }
.demo-banner { display: flex; align-items: center; gap: 9px; background: #f4f9ff; border: 1px solid #dae7f7; color: #547598; border-radius: 3px; padding: 9px 13px; font-size: 11px; margin-bottom: 13px; }
.demo-banner [data-icon] { color: var(--accent); }
.demo-banner .ui-icon { width: 15px; height: 15px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid #eaf0f5; border-radius: 13px; box-shadow: 0 6px 19px #25497105; padding: 17px 20px; margin-bottom: 17px; min-height: 85px; }
.page-heading .eyebrow { display: none; }
.page-heading h1 { font-size: 21px; line-height: 1.4; font-weight: 700; letter-spacing: -.4px; }
.page-heading p { font-size: 11px; margin-top: 5px; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#last-updated { font-size: 10px; color: #a6b0bf; margin-right: 4px; }
/* Real metrics and observation panels. */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 17px; }
.stat-card { padding: 17px 20px 15px; background: white; border: 1px solid #e9eff6; border-radius: 12px; box-shadow: 0 4px 16px #294f7804; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #7b8b9f; font-size: 11px; }
.stat-icon { width: 32px; height: 32px; border-radius: 9px; }
.stat-icon .ui-icon { width: 17px; height: 17px; }
.blue { color: #4184ef; background: #edf4ff; }.violet { color: #8173df; background: #f3f0ff; }.amber { color: #d7a347; background: #fff7e8; }.green { color: #42ac9b; background: #ebf8f4; }
.stat-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 3px 0 5px; }
.stat-value strong { font-size: 30px; letter-spacing: -.6px; color: #253c59; font-weight: 550; line-height: 1.45; font-variant-numeric: tabular-nums; }
.stat-value > span { color: #9aa8bb; font-size: 10px; }
.stat-card small { font-size: 10px; color: #98a5b6; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 17px; margin-bottom: 17px; }
.lower-grid { margin-bottom: 0; }
.panel { background: #fff; border: 1px solid #e9eff6; border-radius: 13px; min-width: 0; overflow: hidden; box-shadow: 0 6px 18px #24497304; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 20px 15px; }
.panel-heading p { color: #a1adbd; font-size: 10px; margin-top: 4px; }
.segmented { display: flex; border: 1px solid #e5eaf3; border-radius: 5px; padding: 2px; background: #f7f9fc; }
.segmented button { border: 0; background: none; color: #8494ac; border-radius: 3px; font-size: 10px; padding: 5px 11px; }
.segmented .selected { background: white; color: var(--accent); box-shadow: 0 1px 4px #3b5a8120; }
.chart-legend { display: flex; align-items: center; gap: 7px; padding: 3px 21px 0; font-size: 10px; color: #8193aa; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.chart-legend .muted { margin-left: auto; font-size: 9px; }
.activity-chart { height: 209px; display: flex; flex-direction: column; padding: 16px 21px 18px; position: relative; }
.activity-chart svg { width: 100%; flex: 1; min-height: 0; overflow: visible; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-area { fill: var(--accent-soft); }
.chart-labels { display: flex; justify-content: space-between; font-size: 9px; color: #a6b3c5; margin-top: 14px; }
.chart-empty { position: absolute; top: 44%; left: 0; right: 0; text-align: center; color: #a0afc2; font-size: 11px; }
.health-summary { display: flex; align-items: flex-end; justify-content: space-between; padding: 2px 20px 10px; }
.health-summary .muted { font-size: 10px; display: block; }
.health-summary strong { display: block; font-weight: 550; font-size: 25px; color: #3c5675; margin-top: 3px; line-height: 1.6; }
.health-summary .latency-summary strong { font-size: 16px; color: #697d99; }
.latency-summary { text-align: right; }
progress { accent-color: var(--accent); }
#health-progress { display: block; width: calc(100% - 40px); margin: 0 20px; appearance: none; height: 5px; border: 0; border-radius: 4px; overflow: hidden; }
progress::-webkit-progress-bar { background: #eef3f9; }progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
.health-list { display: grid; grid-template-columns: 1fr auto; gap: 11px; padding: 14px 20px; margin: 0; font-size: 10px; }
.health-list dt { display: flex; align-items: center; gap: 8px; color: #8c9ab0; }
.health-list dt .ui-icon { width: 13px; height: 13px; }
.health-list dd { margin: 0; color: #657b9a; text-align: right; }
.status-link { display: flex; align-items: center; justify-content: space-between; width: 100%; background: #fbfcff; border: 0; border-top: 1px solid #eff3f8; color: var(--accent); padding: 9px 20px; font-size: 10px; }
.status-link .ui-icon { width: 13px; height: 13px; }
.workspace-panel dl { display: grid; grid-template-columns: 70px 1fr; gap: 9px; padding: 0 20px; margin: 2px 0 15px; font-size: 10px; }
.workspace-panel dt { color: #9ba9bc; }.workspace-panel dd { text-align: right; margin: 0; color: #647994; }
.endpoint-box { background: #f7f9fd; border: 1px solid #edf1f7; border-radius: 6px; margin: 0 20px 17px; padding: 8px 10px 10px; }
.endpoint-box > div { display: flex; align-items: center; justify-content: space-between; color: #94a3b9; font-size: 9px; }
.endpoint-box .icon-button { width: 23px; height: 23px; }.endpoint-box .ui-icon { width: 12px; height: 12px; }
.endpoint-box code { display: block; color: #6883aa; font-size: 10px; overflow-wrap: anywhere; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #edf1f6; }
.quick-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 5px; background: #fff; color: #6886ab; border: 0; font-size: 10px; }
.quick-actions button:hover { background: #f8faff; }.quick-actions button + button { border-left: 1px solid #edf1f6; }.quick-actions .ui-icon { width: 13px; height: 13px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #9baac0; font-size: 9px; padding: 0 23px 19px; max-width: 1680px; margin: auto; }
/* Channels, tables and filtering. */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 17px; }
.search { display: flex; align-items: center; width: 280px; gap: 8px; border: 1px solid #e1e7ef; border-radius: 6px; padding: 0 10px; background: #fff; color: #9aa9bc; }
.search input { padding: 8px 0; min-height: 33px; border: 0; background: transparent; outline: none; font-size: 11px; }
.search:focus-within { border-color: var(--accent); }.search .ui-icon { width: 14px; height: 14px; }
.filter-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.filter-group select { width: auto; min-width: 100px; font-size: 11px; min-height: 34px; padding: 6px 25px 6px 10px; }
.filter-group .muted { font-size: 10px; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.model-card { background: white; border: 1px solid #e6edf5; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.model-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.provider-icon { height: 35px; width: 35px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; border-radius: 8px; font-weight: 600; font-size: 16px; }
.model-card h3 { overflow-wrap: anywhere; }.model-alias { color: #9aa9be; font-size: 11px; margin: 4px 0 20px; }
.model-card dl { display: grid; grid-template-columns: 80px 1fr; margin: 0 0 19px; gap: 10px; font-size: 10px; }
.model-card dt { color: #9babbe; }.model-card dd { color: #6b7f9a; text-align: right; margin: 0; overflow-wrap: anywhere; }
.model-card-footer { margin-top: auto; padding-top: 13px; border-top: 1px solid #edf2f8; display: flex; justify-content: space-between; }
.empty { grid-column: 1/-1; padding: 42px 20px; text-align: center; }.empty-icon { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); width: 42px; height: 42px; border-radius: 12px; font-size: 21px; margin: 0 auto 14px; }.empty h3 { font-size: 13px; margin-bottom: 5px; }.empty p { color: #9aaabd; font-size: 11px; }.empty .button { margin-top: 18px; }
.notice { color: #8095b0; background: #f7faff; border: 1px solid #e1eaf7; border-radius: 6px; font-size: 11px; line-height: 1.9; padding: 12px 15px; margin-bottom: 17px; }
.table-scroll { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }
th { text-align: left; background: #f8fafd; color: #8ea0b8; padding: 11px 17px; font-size: 10px; font-weight: 500; border-bottom: 1px solid #edf1f6; }
td { padding: 15px 17px; color: #6b809d; border-bottom: 1px solid #eff3f8; font-variant-numeric: tabular-nums; }
td strong { font-weight: 550; color: #435d81; }td small { display: block; margin-top: 4px; font-size: 9px; color: #a2b0c4; }
tr:last-child td { border-bottom: 0; }tbody tr:hover { background: #fcfdff; }
.progress { height: 3px; background: #eef3f8; border-radius: 4px; width: 100px; margin-top: 6px; overflow: hidden; }.progress progress { width: 100%; height: 3px; display: block; appearance: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #edf1f7; padding: 13px 18px; font-size: 10px; }.pagination > div { display: flex; align-items: center; gap: 12px; }.pagination .button { min-height: 29px; padding: 4px 10px; font-size: 10px; }
.danger-text { color: #cf746f; }
/* Useful header reminders, derived only from actual local state. */
.alerts-wrap { position: relative; }.counter { min-width: 15px; height: 15px; border-radius: 8px; background: #ee8580; color: #fff; font-size: 9px; line-height: 15px; text-align: center; }
.alerts-popover { position: absolute; top: 42px; right: 0; width: 300px; background: white; border: 1px solid #e3eaf4; border-radius: 10px; box-shadow: 0 12px 40px #25436b20; padding: 16px; }.alerts-popover h3 { font-size: 13px; margin-bottom: 11px; }.alerts-popover p { color: #8fa0b7; font-size: 11px; padding: 10px 0; }.alert-item { display: block; width: 100%; text-align: left; background: #f8faff; border: 0; border-radius: 6px; padding: 10px 12px; margin-top: 7px; color: #6783a8; font-size: 11px; }.alert-item:hover { background: var(--accent-soft); }
/* Playground, connection guide and dialogs retain the existing operations. */
.play-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 18px; }.play-config { padding: 23px; }.play-config h3 { margin-bottom: 22px; }.play-config .small { margin-top: 17px; font-size: 10px; }.play-result .panel-heading { border-bottom: 1px solid var(--line); }.play-result pre { min-height: 350px; padding: 23px; color: #536d8e; font-size: 12px; line-height: 1.9; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 400; }.checkbox-label input { width: 14px; min-height: 14px; accent-color: var(--accent); }
.settings-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }.guide { padding: 25px; }.guide h3 { font-size: 19px; margin: 12px 0; }.guide p { font-size: 11px; margin-bottom: 23px; }.guide label { margin-bottom: 20px; }.guide pre { background: #233750; color: #cbdcf1; font-size: 11px; line-height: 1.9; border-radius: 7px; padding: 19px; margin-bottom: 20px; }.code-label { font-size: 10px; color: var(--muted); margin: 10px 0; }.guide dl { display: grid; grid-template-columns: 90px 1fr; gap: 17px; font-size: 11px; margin: 26px 0; }.guide dt { color: var(--muted); }.guide dd { margin: 0; }.endpoint-list { list-style: none; margin: 18px 0 0; padding: 0; }.endpoint-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 11px 0; font-size: 10px; }.endpoint-list span { color: var(--muted); }
dialog { border: 1px solid #dfe7f1; border-radius: 13px; padding: 25px; width: min(620px, calc(100% - 30px)); max-height: 88vh; color: var(--ink); box-shadow: 0 20px 90px #172f552a; }dialog::backdrop { background: #20385655; backdrop-filter: blur(2px); }.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }.modal-header h2 { font-size: 20px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.form-grid .span2 { grid-column: 1/-1; }.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 7px; }.model-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }.modal-note { font-size: 11px; color: var(--muted); line-height: 1.9; margin-bottom: 16px; }.form-message { font-size: 11px; color: #cf685e; min-height: 18px; margin-top: 10px; }.secret-value { min-height: 90px; font: 12px/1.9 monospace; background: #f5f8ff; border: 1px solid #cedcf2; padding: 14px; overflow-wrap: anywhere; }.toast { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 70; max-width: 90vw; color: #45617f; background: #fff; border: 1px solid #e0e7f0; box-shadow: 0 5px 18px #23416a1c; font-size: 12px; padding: 11px 21px; border-radius: 5px; }
/* Login uses the same established logos and a quiet local-workspace presentation. */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }.login-story { display: flex; flex-direction: column; background: linear-gradient(140deg, #e5f0ff, #edf3fa 70%); padding: 43px 55px; overflow: hidden; }.brand-light { color: #254467; }.story-content { margin: auto 0; padding: 55px 0; }.story-content h1 { font-size: clamp(35px, 3.6vw, 58px); font-weight: 650; letter-spacing: -1.5px; line-height: 1.28; color: #244465; margin: 24px 0; }.story-content p { color: #7590b0; font-size: 15px; }.story-footer { color: #99afc8; font-size: 10px; letter-spacing: 2px; }.route-art { position: relative; height: 220px; max-width: 440px; margin-top: 28px; background: radial-gradient(ellipse at center, transparent 26%, #b5cce14d 26.3%, transparent 26.8%, transparent 46%, #b5cce14d 46.3%, transparent 46.7%); }.route-center { position: absolute; left: 42%; top: 38%; background: var(--accent); color: #fff; padding: 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 25px #4771ab1c; }.route-node { position: absolute; background: #ffffffb5; color: #748fae; border: 1px solid #d0dfee; padding: 8px 14px; border-radius: 7px; font-size: 11px; }.n1 { top: 20px; left: 30px; }.n2 { top: 60px; right: 10px; }.n3 { bottom: 20px; left: 60px; }.n4 { bottom: 12px; right: 50px; }.login-panel { display: grid; place-items: center; position: relative; background: #fff; padding: 45px; }.login-box { width: min(380px, 100%); }.login-box h2 { font-size: 29px; margin: 14px 0 8px; }.login-box form { margin-top: 32px; }.login-box .primary { padding: 12px 17px; justify-content: space-between; margin-top: 7px; }.login-meta { display: flex; align-items: center; gap: 7px; color: #9aaabe; font-size: 10px; margin-top: 28px; }.login-bottom { position: absolute; bottom: 24px; left: 45px; right: 45px; display: flex; justify-content: space-between; gap: 12px; color: #a6b4c6; font-size: 10px; }
@media (min-width: 1650px) { .page-body { padding: 22px 28px 28px; }.stats, .overview-grid { gap: 20px; margin-bottom: 20px; }.stat-card { padding: 20px 24px; }.activity-chart { height: 235px; } }
@media (max-width: 1170px) { :root { --nav-width: 208px; }.header-location { display: none; }.page-body { padding: 16px; }.stats { gap: 12px; }.stat-card { padding: 15px; }.stat-value strong { font-size: 27px; }#last-updated { display: none; }.overview-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 14px; }.panel-heading { padding-left: 16px; padding-right: 16px; }.model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.settings-grid { grid-template-columns: 1fr; }.usage-heading { flex-wrap: wrap; gap: 17px; } }
@media (max-width: 950px) { .overview-grid { grid-template-columns: 1fr; }.status-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }.status-panel .panel-heading { grid-column: 1/-1; }.health-summary { padding-bottom: 18px; }.health-list { grid-column: 2; grid-row: 2/4; }.status-panel #health-progress { margin-bottom: 18px; }.status-link { grid-column: 1/-1; }.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.connection-label { display: none; }.play-layout { grid-template-columns: 1fr; }.workspace-panel dl { grid-template-columns: 100px 1fr; }.login-story { padding: 35px; } }
@media (max-width: 760px) {
  body, body.nav-collapsed { --nav-width: 60px; }
  .topbar { padding: 0 12px 0 8px; }.header-brand, .nav-collapsed .header-brand { min-width: 0; gap: 5px; }.brand { gap: 7px; }.brand-mark { width: 30px; height: 30px; }.brand-copy strong { font-size: 14px; }.brand-copy small { font-size: 8px; }
  .topbar-right { gap: 4px; }.hide-small { display: none; }.user-chip { border-left: 0; padding: 5px; min-width: 28px; }.user-chip > [data-icon="logout"] { display: none; }.topbar-right .quiet { padding: 5px; }.topbar-right .counter { position: absolute; top: 0; right: -1px; }
  .sidebar, .nav-collapsed .sidebar { padding: 15px 8px; }.sidebar nav a { justify-content: center; padding: 0; height: 43px; }.nav-label, .nav-section, .sidebar-bottom { display: none; }
  .mobile-nav-open .sidebar { width: 220px; padding: 15px; }.mobile-nav-open .sidebar nav a { justify-content: flex-start; padding: 0 13px; }.mobile-nav-open .nav-label, .mobile-nav-open .nav-section { display: block; }
  .nav-backdrop { position: fixed; top: var(--header-height); left: 220px; right: 0; bottom: 0; border: 0; background: #20375233; z-index: 25; }
  .page-body { padding: 12px; }.demo-banner { padding: 9px; font-size: 10px; align-items: flex-start; }.demo-banner [data-icon] { margin-top: 2px; }.page-heading { padding: 15px; gap: 10px; min-height: 92px; }.page-heading h1 { font-size: 19px; }.page-heading p { font-size: 10px; max-width: 200px; }.heading-actions { gap: 6px; }.heading-actions .button { padding: 7px 9px; font-size: 10px; }.heading-actions #refresh span:last-child { display: none; }
  .stats { gap: 10px; }.stat-card { padding: 13px; }.stat-top { font-size: 10px; gap: 4px; }.stat-icon { width: 25px; height: 25px; border-radius: 7px; }.stat-icon .ui-icon { width: 14px; height: 14px; }.stat-value { gap: 4px; }.stat-value strong { font-size: 24px; }.stat-value > span, .stat-card small { font-size: 9px; }.stat-value { min-height: 36px; }
  .panel-heading { padding: 16px 14px; }.panel-heading h3 { font-size: 13px; }.segmented button { padding: 4px 8px; font-size: 9px; }.chart-legend { padding-left: 15px; padding-right: 15px; }.chart-legend .muted { font-size: 8px; }.activity-chart { padding: 14px 15px 17px; height: 194px; }.chart-labels { font-size: 8px; }
  .status-panel { display: block; }.health-summary { padding-bottom: 12px; }.status-panel #health-progress { margin-bottom: 0; }.health-list { padding-top: 18px; padding-bottom: 18px; }
  .model-grid { grid-template-columns: 1fr; }.toolbar { align-items: stretch; flex-direction: column; gap: 12px; }.search { width: 100%; }.filter-group { flex-wrap: wrap; gap: 9px; }.toolbar .filter-group { justify-content: space-between; }.filter-group .muted { font-size: 9px; }.usage-heading .filter-group { width: 100%; }.usage-heading .search { width: 100%; }.usage-heading select { width: 100%; }.pagination { align-items: flex-start; flex-direction: column; gap: 12px; padding: 13px; }.pagination > div { align-self: flex-end; }
  .footer { padding: 0 14px 20px; font-size: 9px; }.footer > span:last-child { display: none; }.alerts-popover { position: fixed; top: 65px; right: 12px; width: min(300px, calc(100vw - 24px)); }
  .login-screen { grid-template-columns: 1fr; }.login-story { display: none; }.login-panel { min-height: 100vh; padding: 30px; }.login-bottom { left: 30px; right: 30px; }.form-grid { grid-template-columns: 1fr; }.form-grid .span2 { grid-column: 1; }.model-checkboxes { grid-template-columns: 1fr; }.guide { padding: 21px; }.guide dl { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* User-controlled password visibility; masked by default. */
.password-field { display: grid; gap: 7px; }
.password-control { position: relative; }
.password-control input { padding-right: 78px; }
.password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 3px 6px; border: 0; border-radius: 4px; background: transparent; color: #8193aa; font-size: 11px; }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.password-toggle .ui-icon { width: 17px; height: 17px; }

/* Keep integration actions readable beside long provider names. */
#integration-status {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#integration-status > span {flex:1 1 320px}
#integration-status > p {width:100%;margin:0}
#integration-status .button,.model-card-footer .text-button {flex:0 0 auto;white-space:nowrap}
.model-card-footer {gap:12px}
.model-card-footer .muted {min-width:0;overflow-wrap:anywhere}
