:root {
  color-scheme: light;
  --bg: #eff5fa;
  --surface: #fff;
  --soft: #f4f8fc;
  --text: #19263a;
  --muted: #52627a;
  --line: #d7e4ee;
  --accent: #245e9b;
  --accent-hover: #174d84;
  --accent-text: #fff;
  --accent-soft: #e5f1fb;
  --focus: #276cdb;
  --nav: #18334d;
  --nav-bottom: #244c66;
  --nav-label: #afc8db;
  --hero-wash: #eff8fd;
  --hero-mid: #eef8fbe8;
  --hero-edge: #f0f8fa10;
  --nav-text: #d8e3f4;
  --nav-active: #325b7b;
  --nav-border: #365870;
  --blue: #19658d;
  --warm: #9c4d1a;
  --good: #176348;
  --good-bg: #e4f3eb;
  --warn: #81500a;
  --warn-bg: #fff0d5;
  --bad: #ad332f;
  --bad-bg: #fdecea;
  --plot-cpu: #2465c5;
  --plot-1: #4b52b3;
  --plot-2: #a65319;
  --plot-3: #177354;
  --plot-4: #ad3971;
  --plot-5: #2d649e;
  --plot-6: #73554b;
  --panel-shadow: 0 2px 6px #1728420a;
  --action-member: #245e9b;
  --action-member-hover: #174d84;
  --action-member-bg: #edf5ff;
  --action-member-line: #b3cbe5;
  --action-editor: #176647;
  --action-editor-hover: #105337;
  --action-editor-bg: #edf8f1;
  --action-editor-line: #a7cfb7;
  --action-owner: #7050a4;
  --action-owner-hover: #593b89;
  --action-owner-bg: #f5f0fc;
  --action-owner-line: #c9b8e5;
  --action-danger: #a7353b;
  --action-danger-hover: #8c252c;
  --action-danger-bg: #fff1f1;
  --action-danger-line: #e6b2b5;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  --panel-pad: .85rem;
  --layout-gap: .75rem;
  --row-pad: .52rem;
}
.connection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.connection-card { min-width: 0; }
.connection-card h2 { margin-top: 0; font-size: 1.1rem; }
.connection-card p, .connection-card small { overflow-wrap: anywhere; }
.connection-command { display: block; padding: .7rem .85rem; background: var(--soft); border: 1px solid var(--line); border-radius: .5rem; margin-bottom: .8rem; user-select: all; }
.connection-card small { display: block; margin-top: .9rem; line-height: 1.7; }
.ai-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.ai-metric { display: grid; gap: .55rem; padding: 1rem; }
.ai-metric strong { font-size: clamp(1rem, 1.7vw, 1.5rem); overflow-wrap: anywhere; }
.ai-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.ai-tabs button { background: var(--soft); color: var(--text); border: 1px solid var(--line); padding: .55rem .9rem; border-radius: .5rem; }
.ai-tabs button[aria-selected=true] { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.ai-chat-layout { display: grid; grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ai-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.ai-chat-list, .ai-card-list { display: grid; gap: .75rem; margin-top: 1rem; }
.ai-chat-select { text-align: left; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: .5rem; padding: .7rem; overflow-wrap: anywhere; }
.ai-chat-select.selected { border-color: var(--accent); background: var(--accent-soft); }
.ai-dialogue { min-width: 0; }
.ai-messages { max-height: 58dvh; min-height: 14rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: .25rem; }
.ai-message { background: var(--soft); border: 1px solid var(--line); border-radius: .7rem; padding: .9rem 1rem; margin-bottom: .8rem; }
.ai-message[data-role=user] { background: var(--accent-soft); margin-left: 1.5rem; }
.ai-message[data-role=assistant] { border-left: 3px solid var(--accent); }
.ai-message small { margin-left: .8rem; }
.ai-message-content { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: .65rem; line-height: 1.8; }
.ai-compose { position: sticky; bottom: .5rem; z-index: 2; background: var(--surface); padding-top: .8rem; border-top: 1px solid var(--line); }
.ai-compose textarea { resize: vertical; min-height: 5rem; max-height: 15rem; font-size: 1rem; line-height: 1.6; }
.ai-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: env(safe-area-inset-bottom, 0); }
.ai-compose-actions .remember-check { margin: 0; }
.ai-tools-panel { margin-top: 1rem; }
.ai-event { border-top: 1px solid var(--line); padding: .6rem 0; }
.ai-event pre { max-height: 15rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.ai-provider-row, .ai-job-row, .ai-repair-row { padding: .9rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.ai-job-row small { display: block; margin-top: .3rem; }
.ai-job-row[data-state=running] { border-left: 3px solid var(--accent); padding-left: .8rem; }
.ai-repair-row[data-verified=true] { border-left: 3px solid var(--good); padding-left: .8rem; }
.ai-usage-chart { height: 6rem; display: flex; align-items: end; gap: 3px; border-bottom: 1px solid var(--line); margin: 1rem 0; }
.ai-usage-bar { flex: 1; min-width: 2px; background: var(--accent); opacity: .8; border-radius: 3px 3px 0 0; }
#ai-call-budget { width: 100%; accent-color: var(--accent); margin-top: 1rem; }
@media (max-width: 1050px) { .ai-chat-layout { grid-template-columns: 14rem minmax(0, 1fr); } .ai-settings-grid { grid-template-columns: 1fr; } .ai-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ai-chat-layout { grid-template-columns: 1fr; } .ai-chat-sidebar { max-height: 17rem; overflow-y: auto; } .ai-chat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ai-message[data-role=user] { margin-left: .5rem; } .ai-compose-actions { align-items: end; } .ai-tabs button { flex: 1; padding: .55rem .4rem; } .ai-messages { max-height: 48dvh; } }
:root[data-theme=forest] {
  --bg: #f3f4eb;
  --surface: #fffffb;
  --soft: #f6f7ef;
  --text: #23372e;
  --muted: #526358;
  --line: #dce4d6;
  --accent: #2f674d;
  --accent-hover: #25553f;
  --accent-soft: #e9f3e8;
  --focus: #347554;
  --nav: #243f33;
  --nav-bottom: #375442;
  --nav-label: #c1d2bb;
  --hero-wash: #f5f8e9;
  --hero-mid: #f2f6e4ee;
  --hero-edge: #d7e2b72b;
  --nav-text: #dbe9de;
  --nav-active: #385c4a;
  --nav-border: #3a5547;
  --blue: #286155;
  --warm: #895420;
  --plot-cpu: #28714b;
  --plot-1: #336d87;
  --plot-2: #94571e;
  --plot-3: #6c479a;
  --plot-4: #a3415b;
  --plot-5: #4d6431;
  --plot-6: #775039;
  --panel-shadow: 0 2px 6px #20382f0d;
  --action-member-bg: #eff5fc;
  --action-editor-bg: #eff7ed;
  --action-owner-bg: #f6f0f9;
  --action-danger-bg: #fcf1ed;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -.02em; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
.muted, .caption, .stamp, .chart-label, .legend { color: var(--muted); font-size: .87rem; margin: 0; }
.topbar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner, .top-tools, .brand, .section-head, .workspace-status, .sample-status, .server-heading { display: flex; align-items: center; gap: .75rem; }
.top-inner, .section-head, .workspace-status, .server-heading { justify-content: space-between; }
.top-inner { min-height: 56px; padding: .4rem 1.15rem; }
.brand { font-size: 1.08rem; font-weight: 750; white-space: nowrap; }
.brand-mark { display: flex; align-items: end; justify-content: center; gap: 3px; width: 30px; height: 30px; padding-bottom: 7px; border-radius: 7px; background: var(--accent); }
.brand-mark i { width: 3px; height: 7px; border-radius: 1px; background: var(--accent-text); }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 16px; }
.quiet, .ranges button, .themes button, .primary, select {
  font-size: .87rem; min-height: 34px; border-radius: 6px; padding: .4rem .7rem;
  border: 1px solid var(--line); background: var(--surface);
}
.quiet:hover, .ranges button:hover, .themes button:hover { border-color: var(--accent); color: var(--accent); }
.primary { font-weight: 700; border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.primary:not(:disabled):hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.quiet:not(:disabled):active, .ranges button:not(:disabled):active, .themes button:active { background: var(--accent-soft); }
.primary:not(:disabled):active { box-shadow: inset 0 2px 3px #0004; }
button:disabled, button[aria-disabled=true] { cursor: not-allowed; opacity: .65; }
button[aria-busy=true] { cursor: wait; }
.connection-install-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: .7rem 0; }
.connection-install-status .muted { flex: 1 1 250px; }
.connection-install-status button { flex: 0 0 auto; }
.connection-install-actions { align-items: center; }
.themes, .ranges { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.themes { padding: .16rem; border-radius: 7px; background: var(--soft); border: 1px solid var(--line); }
.themes button { display: flex; align-items: center; gap: .35rem; background: transparent; border-color: transparent; min-height: 28px; padding: .2rem .5rem; }
.themes button[aria-pressed=true], .ranges button[aria-pressed=true] { font-weight: 700; color: var(--accent); background: var(--accent-soft); border-color: var(--line); }
.swatch { width: .58rem; height: .58rem; border-radius: 50%; }
.swatch.sky { background: #4c8ae2; }
.swatch.forest { background: #678857; }
.workspace-shell { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.workspace-nav { position: sticky; top: 56px; align-self: start; height: calc(100dvh - 56px); overflow-y: auto; background: linear-gradient(153deg, var(--nav), var(--nav-bottom)); color: var(--nav-text); padding: .8rem .65rem; }
.workspace-nav nav, #secondary-nav, .nav-group { display: grid; gap: .2rem; }
.nav-group { margin-top: .92rem; }
.nav-group-label { margin: .48rem .72rem .28rem; color: var(--nav-label); font-size: .75rem; font-weight: 600; }
.workspace-nav .nav-help { border-top-color: var(--nav-border); margin-top: .7rem; }
.workspace-nav a, #nav-more { display: flex; justify-content: space-between; align-items: center; gap: .4rem; min-height: 42px; padding: .54rem .78rem; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; }
.workspace-nav a:hover, #nav-more:hover { background: var(--nav-border); }
.workspace-nav a[aria-current=page] { background: var(--nav-active); color: white; font-weight: 700; }
.workspace-nav :is(a, button):focus-visible { outline-color: var(--nav-text); outline-offset: -2px; }
#nav-more { display: none; }
.nav-count { padding: .05rem .4rem; border-radius: 5px; background: #f6dbac; color: #633908; font-size: .78rem; font-variant-numeric: tabular-nums; }
.workspace-content { width: min(100%, 1800px); margin: 0 auto; padding: .8rem clamp(.75rem, 1.6vw, 1.6rem) 2rem; min-width: 0; }
.workspace-status { padding-bottom: .5rem; margin-bottom: .85rem; border-bottom: 1px solid var(--line); }
.site-name { font-size: .83rem; color: var(--accent); padding: .2rem .48rem; border-radius: 5px; background: var(--accent-soft); overflow-wrap: anywhere; }
.sample-status { flex-wrap: wrap; gap: .35rem .85rem; }
.local { display: inline-flex; align-items: center; gap: .36rem; color: var(--muted); font-size: .87rem; font-weight: 650; }
.local::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.local[data-state=current] { color: var(--good); }
.local[data-state=stale] { color: var(--warn); }
.local[data-state=error] { color: var(--bad); }
.page-heading { margin-bottom: .8rem; }
.page-heading p { margin-top: .28rem; }
.stats, .plots, .resources { display: grid; gap: .82rem; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat, .panel, .detail { border: 1px solid var(--line); border-radius: 12px; padding: var(--panel-pad); background: var(--surface); min-width: 0; }
.overview-panels .panel, .stat { box-shadow: var(--panel-shadow); }
.stat { border-top: 2px solid var(--accent); }
a.stat:hover { border-color: var(--accent); background: var(--accent-soft); }
.stat small { color: var(--muted); font-size: .87rem; display: block; }
.stat strong { display: block; margin-top: .24rem; font-size: clamp(1.3rem, 3vw, 1.85rem); font-variant-numeric: tabular-nums; }
.stat-hint { display: block; color: var(--muted); margin-top: .15rem; font-size: .79rem; }
.overview-heading {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .85rem 1.1rem;
  min-height: 96px;
  background:
    linear-gradient(90deg, var(--hero-wash) 8%, var(--hero-mid) 34%, var(--hero-edge) 76%),
    url("/observatory.webp") right 61% / cover no-repeat var(--hero-wash);
}
.overview-intro { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem; }
.overview-intro h1 { grid-column: 1; }
.overview-intro > p { grid-column: 1; }
.overview-intro p { color: var(--text); font-size: .92rem; }
.overview-intro .overview-actions { grid-column: 2; grid-row: 1 / 3; margin-top: 0; flex-wrap: wrap; }
.overview-actions { display: flex; align-items: center; gap: .42rem; }
.overview-panels { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: .82rem; margin-top: .85rem; }
.headroom-rows { display: grid; gap: .35rem; padding-top: .4rem; }
.headroom-row { display: grid; gap: .22rem; padding: .34rem .52rem; border-radius: 6px; font-weight: 500; }
.headroom-row:hover { background: var(--accent-soft); text-decoration: none; }
.headroom-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .14rem .55rem; }
.headroom-label small { font-variant-numeric: tabular-nums; }
.headroom-row meter { width: 100%; }
#attention-preview { display: grid; gap: .38rem; padding-top: .4rem; }
#attention-preview .alert-row { margin: 0; }
.node-section { margin-top: 1rem; }
.node-section .section-head { padding-bottom: .35rem; }
.list-tools { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin: .6rem 0 .8rem; }
.list-tools label { flex: 1 1 150px; max-width: 250px; min-width: 0; }
.list-tools input { min-height: 34px; padding-block: .4rem; }
.detail-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .55rem; }
.action-link { display: inline-flex; align-items: center; }
.route-devices { display: grid; gap: .82rem; }
.route-group { margin-top: 1rem; }
.route-group > :is(h2, p), .route-panel > p.muted { margin-bottom: .55rem; }
.route-heading { flex-wrap: wrap; gap: .55rem 1rem; margin-bottom: .55rem; }
.route-form { display: flex; align-items: end; margin: 0; gap: .45rem; }
.route-form select { min-width: 130px; }
.route-feedback:not(:empty) { padding: .38rem .55rem; background: var(--accent-soft); border-radius: 5px; }
.network-check-form { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; }
.network-check-form label { flex: 0 1 23rem; min-inline-size: 0; }
.network-check-form select { width: 100%; min-inline-size: 0; }
.network-check-toggle { display: flex; align-items: center; gap: .45rem; margin: .75rem 0; }
.network-check-toggle input { width: auto; }
.network-check-steps { display: grid; gap: .45rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.network-check-step { display: grid; gap: .2rem; padding: .6rem .7rem; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
#detail-network-status:not(:empty) { margin: 0 0 .6rem; }
.route-active { margin-left: .48rem; font-size: .75rem; padding: .14rem .34rem; }
#route-status:not(:empty) { margin-top: .65rem; }
.resource-link { color: var(--accent); font-weight: 700; }
.resource-link:hover { text-decoration: underline; }
.table-secondary { color: var(--muted); font-variant-numeric: tabular-nums; }
.table-secondary small { display: block; margin-top: .12rem; font-size: .82rem; }
.node-cell { display: grid; gap: .28rem; justify-items: start; }
.hardware-cell { display: grid; gap: .18rem; min-width: 8rem; }
.entry-panel { position: relative; }
.entry-popover { position: absolute; z-index: 25; right: 0; top: calc(100% + .4rem); width: min(23rem, calc(100vw - 2rem)); padding: .9rem; background: var(--surface, white); border: 1px solid var(--line); border-radius: .7rem; box-shadow: 0 12px 36px #132e4930; color: var(--ink); }
.entry-row { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; margin-bottom: .65rem; }
.entry-popover p { margin: .6rem 0 0; font-size: .85rem; }
.hardware-cell strong { color: var(--text); font-size: .94rem; }
.hardware-cell small { font-size: .85rem; white-space: normal; }
.hardware-summary { display: block; font-size: .9rem; color: var(--muted); line-height: 1.55; margin: .25rem 0; }
.site-feed { flex-wrap: wrap; }
.site-feed .hardware-summary { flex-basis: 100%; }
.account-reset { flex-basis: 100%; }
.password-reset-form { display: grid; gap: .65rem; padding: .7rem 0; max-width: 32rem; }
.node-cell a + a { color: var(--muted); font-size: .8rem; font-weight: 600; }
.meter-value { display: inline-grid; gap: .17rem; min-width: 70px; font-variant-numeric: tabular-nums; }
meter { appearance: none; width: 76px; height: 6px; }
meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 4px; background: var(--line); }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { background: var(--accent); border-radius: 4px; }
meter::-moz-meter-bar { background: var(--accent); border-radius: 4px; }
.disk-low { color: var(--warn); font-weight: 700; }
.pill { display: inline-flex; gap: .35rem; align-items: center; border-radius: 5px; color: var(--warn); background: var(--warn-bg); padding: .24rem .54rem; font-weight: 650; font-size: .83rem; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill[data-state=online] { color: var(--good); background: var(--good-bg); }
.pill[data-state=network], .pill[data-state=hostkey], .pill[data-state=auth], .pill[data-state=overdue] { color: var(--bad); background: var(--bad-bg); }
.alerts-empty { margin: .55rem 0 .15rem; }
.alert-row { display: flex; align-items: center; gap: .65rem; width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: .55rem .7rem; background: var(--soft); text-align: left; margin-top: .45rem; }
.alert-row:hover { border-color: var(--accent); }
.alert-row:active { background: var(--accent-soft); }
.alert-row strong { color: var(--warn); flex-shrink: 0; font-size: .87rem; }
.alert-row[data-kind=offline] strong { color: var(--bad); }
.alert-row span { color: var(--text); font-size: .87rem; font-weight: 500; overflow-wrap: anywhere; }
.server-switch { width: min(100%, 148px); }
.detail { background: var(--soft); }
.detail-header h2 { font-size: 1.35rem; }
.detail-header .caption { display: block; margin-top: .16rem; }
#detail-note { margin: .5rem 0 .75rem; min-height: 1.25rem; }
#detail-access { margin-bottom: .75rem; }
.detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin-bottom: .8rem; }
.detail-metric { padding: .56rem .65rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.detail-metric small { display: block; color: var(--muted); }
.detail-metric strong { display: block; margin-top: .18rem; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.plots, .resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resources, .gpu-panel, .server-members { margin-top: .82rem; }
.chart canvas { width: 100%; height: 180px; display: block; margin-top: .65rem; }
.gpu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .48rem; }
.gpu-tools label { display: flex; align-items: center; gap: .32rem; }
.chart:first-child canvas { margin-top: 3.4rem; }
canvas:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.chart-label { min-height: 1.25rem; margin-top: .22rem; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem .85rem; margin-top: .32rem; }
.legend span, .chart-label { overflow-wrap: anywhere; }
.teal { color: var(--blue); }
.violet { color: var(--warm); }
.table-scroll { overflow-x: auto; margin-top: .4rem; max-width: 100%; border-radius: 8px; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: .9rem; }
th, td { padding: var(--row-pad) .65rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 650; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
#disk-table, #project-table, #gpu-table { margin-top: .48rem; }
.catalog + .catalog { margin-top: .82rem; }
.ops-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: .85rem; align-items: start; }
.ops-compose { display: flex; flex-wrap: wrap; align-items: end; gap: .45rem .6rem; margin-bottom: .75rem; }
.ops-compose label { flex: 1 1 105px; }
.ops-compose button { flex-shrink: 0; }
#ops-runs { display: grid; gap: .42rem; margin-top: .6rem; }
.ops-run-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 48px; padding: .55rem .65rem; text-align: left; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.ops-run-row small { display: block; margin-top: .15rem; }
.ops-run-row[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
.ops-detail-heading { margin-top: .6rem; }
#ops-run-body p { margin: .48rem 0; }
.ops-result { white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-evidence { margin: .48rem 0 .75rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.ops-evidence summary { cursor: pointer; }
.ops-timeline { list-style: none; padding: 0; margin: .4rem 0 0; }
.ops-timeline li { display: flex; flex-wrap: wrap; gap: .2rem .7rem; padding: .42rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ops-timeline li:last-child { border: 0; }
.ops-worker-panel { margin-top: .85rem; }
.ops-worker-panel summary { font-weight: 700; cursor: pointer; }
.ops-worker-panel > p { margin-top: .45rem; }
.ops-token { display: flex; align-items: end; gap: .5rem; margin-bottom: .45rem; }
.ops-token label { flex: 1; min-width: 0; }
#ops-workers { display: grid; gap: .35rem; margin-top: .5rem; }
.catalog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: .75rem 0 0; padding: 0; gap: .5rem; }
.catalog-list li { min-width: 0; padding: .63rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.catalog-list strong, .catalog-list span { display: block; }
.catalog-list span { margin-top: .22rem; color: var(--muted); font-size: .88rem; }
.candidates li { display: flex; align-items: start; gap: .6rem; }
.candidates code { color: var(--accent); font-size: .84rem; border: 1px solid var(--line); border-radius: 4px; padding: .12rem .38rem; background: var(--accent-soft); }
.auth-view { min-height: min(70vh, 660px); display: grid; place-items: center; padding: 1.25rem; }
.auth-card {
  width: min(100%, 410px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--panel-shadow);
}
.auth-card::before {
  content: "";
  display: block;
  height: 104px;
  background: linear-gradient(90deg, var(--hero-mid), var(--hero-edge)),
    url("/observatory.webp") 100% 61% / cover no-repeat var(--hero-wash);
}
.auth-content { padding: 1.8rem; }
.auth-content h1 { font-size: 1.5rem; margin-bottom: .28rem; }
form { display: grid; gap: .72rem; margin-top: 1rem; }
label { display: grid; gap: .28rem; font-size: .87rem; font-weight: 620; }
input { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); padding: .6rem .66rem; }
.form-message { color: var(--muted); min-height: 1.25rem; margin: .75rem 0 0; font-size: .875rem; }
.remember-check { display: flex; align-items: center; gap: .5rem; padding-block: .18rem; cursor: pointer; }
.remember-check input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent); }
.session-menu { position: relative; }
.session-menu summary { cursor: pointer; list-style: none; white-space: nowrap; }
.session-menu summary::-webkit-details-marker { display: none; }
.session-actions { position: absolute; z-index: 6; top: calc(100% + .3rem); right: 0; min-width: 200px; display: grid; gap: .35rem; padding: .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 6px 26px #13263d20; }
.session-actions p:empty { display: none; }
dialog { width: min(93vw, 480px); max-height: 84vh; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 1.2rem; }
dialog::backdrop { background: #1e2b3f78; }
.member-list { display: grid; gap: .32rem; margin-top: .7rem; }
.member-row { display: flex; align-items: center; justify-content: space-between; padding: .42rem; background: var(--soft); border-radius: 6px; font-size: .87rem; gap: .4rem; }
.member-row { flex-wrap: wrap; overflow-wrap: anywhere; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.server-members h3 + p { margin-top: .24rem; }
.server-member-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .55rem; }
.server-member-list:not(:empty) { margin-top: .65rem; }
.server-member-card { padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); overflow-wrap: anywhere; }
.server-member-card .section-head { align-items: flex-start; gap: .35rem; }
.server-member-card p { margin-top: .38rem; }
#server-members-state:not(:empty) { margin-top: .55rem; }
@media (min-width: 961px) and (max-width: 1100px) {
  .workspace-shell { grid-template-columns: 160px minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .workspace-shell { display: block; }
  .workspace-nav { position: static; height: auto; padding: .4rem .55rem; }
  .nav-group-label { display: none; }
  .nav-group { display: contents; }
  .workspace-nav .nav-help { margin-top: 0; border-top-color: transparent; }
  .workspace-nav nav { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .2rem; }
  .workspace-nav nav > a[data-short-label]::before { content: attr(data-short-label); }
  .workspace-nav nav > a[data-short-label] .nav-text { display: none; }
  .workspace-nav a, #nav-more { justify-content: center; min-height: 44px; font-size: .86rem; padding-inline: .14rem; }
  #nav-more { display: flex; border-color: var(--nav-border); background: transparent; }
  #nav-more[aria-expanded=true] { background: var(--nav-active); }
  #secondary-nav { display: none; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr)); gap: .2rem; border-top: 1px solid var(--nav-border); margin-top: .14rem; padding-top: .28rem; }
  #nav-more[aria-expanded=true] + #secondary-nav { display: grid; }
  .nav-count { padding-inline: .2rem; font-size: .67rem; }
  .ops-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
@media (max-width: 640px) {
  .top-inner { padding-inline: .65rem; gap: .25rem; position: relative; }
  .top-tools { gap: .28rem; }
  .top-tools .quiet { padding-inline: .38rem; }
  .brand { font-size: .94rem; }
  .brand-mark { display: none; }
  .themes button { gap: .22rem; padding-inline: .32rem; }
  .workspace-content { padding: .85rem .72rem 2rem; }
  .workspace-status { margin-bottom: .7rem; padding-bottom: .55rem; }
  .sample-status { gap: .16rem .52rem; }
  .workspace-status button { flex-shrink: 0; }
  .plots, .resources, .catalog-list { grid-template-columns: 1fr; }
  .overview-panels { grid-template-columns: 1fr; }
  .overview-heading {
    min-height: auto;
    padding: 1rem .85rem;
    margin-bottom: .72rem;
    background-image: linear-gradient(90deg, var(--hero-wash) 7%, var(--hero-mid) 50%, var(--hero-edge)),
      url("/observatory.webp");
  }
  .auth-content { padding: 1.25rem; }
  .stats { gap: .54rem; }
  .stat { padding: .56rem .65rem; }
  .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart:first-child canvas { margin-top: .65rem; }
  .detail { padding: .63rem; }
  .detail-header { flex-direction: column; align-items: flex-start; }
  .detail-tools { justify-content: flex-start; }
  .list-tools label { flex: 1 1 130px; }
  .panel { padding: .8rem; }
  .server-heading { flex-wrap: wrap; }
  .table-scroll table { white-space: normal; }
  .table-scroll thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .table-scroll table, .table-scroll tbody { display: block; }
  .table-scroll tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: .5rem .8rem; padding: .75rem 0; border-top: 1px solid var(--line); }
  .table-scroll td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .table-scroll td::before { content: attr(data-label); display: block; color: var(--muted); margin-bottom: .12rem; font-size: .78rem; }
  #nodes td:nth-child(2) { text-align: end; }
  #nodes td:nth-child(-n+2)::before { display: none; }
  #gpu-inventory td:last-child { grid-column: 1 / -1; }
}
@media (max-width: 350px) {
  .swatch { display: none; }
  .top-tools .quiet, .themes button { font-size: .79rem; }
  .workspace-nav a, #nav-more { gap: .16rem; font-size: .76rem; }
}
.site-feeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .75rem;
  margin: .8rem 0;
}
.site-feeds[hidden] { display: none; }
.site-feed { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .65rem; padding: .65rem .8rem; }
.site-feed strong { white-space: nowrap; }
.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.workflow-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.workflow-form :is(label, input, select) { min-inline-size: 0; max-inline-size: 100%; }
.workflow-grid:has(#booking-panel[hidden]) { grid-template-columns: minmax(0, 1fr); }
.workflow-form .span-full { grid-column: 1 / -1; }
.workflow-form[hidden] { display: none; }
#booking-form-title, #booking-list-title, #booking-history h2, #incident-detail-title { scroll-margin-top: 5rem; }
#booking-hint:not(:empty), #booking-list-hint:not(:empty) { margin: .55rem 0; }
.console-view :is(h1, h2):focus-visible, :is(#auth-message, #gpu-list-state):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#booking-submit-status:empty { display: none; }
.workflow-list { display: grid; gap: .25rem; }
.workflow-item {
  display: block;
  border-bottom: 1px solid var(--line, #8096a44d);
  padding: .65rem 0;
  overflow-wrap: anywhere;
}
.workflow-item p { margin: .2rem 0 .35rem; }
.workflow-item[aria-current="true"] { background: var(--accent-soft); border-radius: 5px; padding-inline: .45rem; }
.workflow-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.workflow-timeline { display: grid; gap: .35rem; padding-inline-start: 1.25rem; overflow-wrap: anywhere; }
#incident-detail label { display: grid; gap: .3rem; margin: .5rem 0; }
#incident-detail textarea { width: 100%; min-height: 4rem; }
#incident-detail { margin-top: .45rem; }
.booking-feedback { color: var(--bad); font-size: .87rem; }
.booking-feedback:empty { margin: 0; }
.account-scope { flex-basis: 100%; }
.account-scope label { margin: .3rem 0; }
@media (max-width: 850px) { .workflow-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .workflow-form { grid-template-columns: minmax(0, 1fr); } }

/* Shared display controls and compact, readable resource layouts. */
:root[data-density=comfortable] { --panel-pad: 1.2rem; --layout-gap: 1.1rem; --row-pad: .8rem; }
body { font-size: 1rem; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
textarea { font: inherit; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--soft); padding: .6rem .7rem; }
form, form :is(label, input, select, textarea) { min-width: 0; max-width: 100%; }
form select { width: 100%; text-overflow: ellipsis; }
#ai-center-status:empty { display: none; }
button, .action-link, summary { touch-action: manipulation; }
.quiet, .primary, .ranges button, select, label { font-size: .875rem; }
.panel, .stat, .detail, .gpu-node-card { box-shadow: var(--panel-shadow); }
.panel, .stat, .detail { padding: var(--panel-pad); }
.section-head { flex-wrap: wrap; gap: .45rem .7rem; }
.top-tools { min-width: 0; }
.appearance-panel { position: relative; }
.appearance-panel > summary, .entry-panel > summary { cursor: pointer; list-style: none; white-space: nowrap; }
.appearance-panel > summary::-webkit-details-marker, .entry-panel > summary::-webkit-details-marker { display: none; }
.appearance-popover { position: absolute; right: 0; top: calc(100% + .45rem); z-index: 20; width: min(20rem, calc(100vw - 1.5rem)); padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px #17345124; }
.display-option { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; font-size: .875rem; }
.segmented { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); padding: 3px; gap: 2px; }
.segmented button { padding: .3rem .65rem; min-height: 30px; border: 1px solid transparent; border-radius: 5px; font-size: .875rem; white-space: nowrap; background: transparent; }
.segmented button[aria-pressed=true] { background: var(--surface); color: var(--accent); border-color: var(--line); font-weight: 700; box-shadow: 0 1px 3px #193b5510; }
.entry-popover { color: var(--text); }
.connection-grid, .plots, .resources, .workflow-grid, .ai-settings-grid, .ops-grid { gap: var(--layout-gap); }
.connection-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin-top: .7rem; }
.connection-welcome { background: linear-gradient(120deg, var(--surface), var(--hero-wash)); }
.connection-welcome > summary { cursor: pointer; color: var(--accent); font-size: .875rem; font-weight: 650; }
.connection-welcome[open] > summary { margin-bottom: .65rem; }
.connection-welcome > p { margin: .35rem 0; }
.connection-welcome #connections-identity { font-size: .8rem; }
.connection-welcome .form-message:empty { display: none; }
.inline-help { font-size: .875rem; color: var(--muted); margin-top: .65rem; }
.inline-help summary { cursor: pointer; color: var(--accent); width: fit-content; }
.inline-help p { margin: .45rem 0 0; }
.connection-filters { margin: .75rem 0 .35rem; }
.connection-filters label:first-child { flex-grow: 2; max-width: 25rem; }
.connection-filters #connections-count { margin-left: auto; align-self: center; font-variant-numeric: tabular-nums; }
.connection-card { display: flex; flex-direction: column; gap: .5rem; }
.connection-card h2 { font-size: 1rem; margin: 0; }
.connection-card :is(p, small) { margin: 0; }
.connection-card .pill { padding: .17rem .4rem; font-size: .75rem; }
.connection-card .pill::before { width: 5px; height: 5px; }
.connection-card .connection-address { font-size: .8rem; }
.connection-hardware { font-size: .875rem; font-weight: 650; }
.connection-metrics { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.connection-card .connection-command { font-size: .875rem; padding: .5rem .65rem; margin: .15rem 0 0; overflow-wrap: anywhere; }
.connection-card .workflow-actions { margin: auto 0 0; gap: .35rem; padding-top: .15rem; }
.connection-card .resource-link { font-size: .875rem; padding: .4rem .1rem; }
.connection-card .quiet { padding-inline: .55rem; }
.inventory-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.gpu-summary { margin-bottom: .75rem; }
.gpu-summary .stat strong { font-size: clamp(1.2rem, 2.2vw, 1.65rem); }
.gpu-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--layout-gap); margin-top: .85rem; align-items: start; }
.gpu-node-card { min-width: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: var(--panel-pad); }
.gpu-node-card .section-head > a { font-size: .95rem; }
.gpu-node-card .section-head > small { font-size: .75rem; }
.gpu-chip-grid { display: grid; grid-template-columns: repeat(var(--gpu-columns, 4), minmax(0, 1fr)); gap: .4rem; margin-top: .65rem; }
.gpu-chip { min-width: 0; display: grid; gap: .24rem; padding: .55rem .45rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; }
.gpu-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.gpu-chip-title { color: var(--muted); font-size: .75rem; }
.gpu-chip strong { font-size: .95rem; white-space: nowrap; }
.gpu-chip small { font-size: .75rem; line-height: 1.4; }
.gpu-chip meter { width: 100%; margin-top: .15rem; }
.gpu-chip[data-current=false] { border-style: dashed; background: var(--warn-bg); }
.gpu-map-caption { margin: .55rem 0 0; font-size: .75rem; }
.gpu-map-empty { margin: .7rem 0 .2rem; }
.table-note { margin-top: .65rem; font-size: .8rem; }
tbody tr:hover { background: var(--accent-soft); }
.table-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.node-cell { gap: .12rem; }
.node-cell a + a { font-size: .75rem; }
.stats, .ai-metrics { gap: var(--layout-gap); }
.stat { border-top-width: 1px; background: linear-gradient(150deg, var(--surface) 60%, var(--hero-wash)); }
.stat small, .stat-hint { font-size: .8rem; }
.site-feeds { gap: .6rem; }
.site-feed { padding: .6rem .75rem; }
.site-feed .muted { font-size: .75rem; }
.site-feed .hardware-summary { font-size: .75rem; line-height: 1.45; margin: 0; }
.ai-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-settings-grid form { gap: .65rem; }
.ai-metric { gap: .35rem; padding: var(--panel-pad); }
.ai-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.ai-tabs button { flex-shrink: 0; font-size: .875rem; }
.ai-chat-layout { grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: var(--layout-gap); }
.ai-message-content { line-height: 1.65; }
.ai-compose { bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0); }
.ai-compose textarea { font-size: 1rem; }
.ai-compose-actions { flex-wrap: wrap; }
.ai-messages { max-height: 52dvh; }
.workflow-form { gap: .65rem; }
.workflow-grid { margin-bottom: var(--layout-gap); }
.workflow-item { padding-block: var(--row-pad); }
dialog { max-height: 88dvh; overscroll-behavior: contain; }
.auth-card::before { height: 70px; }
@media (min-width: 701px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ai-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .workspace-nav { position: relative; top: 0; overflow: visible; z-index: 4; }
  #secondary-nav { position: absolute; left: .55rem; right: .55rem; top: calc(100% + .25rem); margin: 0; padding: .5rem; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); background: var(--nav-bottom); border: 1px solid var(--nav-border); border-radius: 10px; box-shadow: 0 10px 25px #172a3c30; }
  #nav-more[data-active=true] { background: var(--nav-active); color: white; font-weight: 700; }
  .workspace-nav a, #nav-more { min-height: 40px; }
  .workspace-content { padding: .7rem .85rem 2rem; }
  .workspace-nav a[data-short-label] { gap: .2rem; }
  .ai-chat-layout { grid-template-columns: 12rem minmax(0, 1fr); }
}
@media (max-width: 700px) {
  :root { --panel-pad: .75rem; --layout-gap: .6rem; --row-pad: .5rem; }
  :root[data-density=comfortable] { --panel-pad: 1rem; --layout-gap: .9rem; --row-pad: .75rem; }
  .top-inner { gap: .35rem; padding: .4rem .65rem; min-height: 52px; }
  .top-tools { gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
  #connection-entry { display: none; }
  #entry-summary { max-width: 5rem; text-overflow: ellipsis; overflow: hidden; }
  .top-tools .quiet { padding-inline: .4rem; min-height: 34px; }
  .appearance-popover { position: fixed; right: .65rem; top: 3.4rem; }
  .brand { font-size: .95rem; }
  .workspace-content { padding: .6rem .65rem 1.5rem; }
  .workspace-status { margin-bottom: .65rem; padding-bottom: .4rem; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1rem; }
  .page-heading p { font-size: .875rem; }
  .overview-intro { display: block; }
  .overview-intro .overview-actions { margin-top: .55rem; }
  .overview-heading { padding: .75rem .85rem; }
  .site-feeds { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: .6rem; gap: .5rem; }
  .site-feed { padding: .55rem; gap: .15rem; }
  .site-feed .muted { font-size: .75rem; }
  .overview-panels { grid-template-columns: 1fr; }
  .stat-hint { font-size: .75rem; }
  .stat strong { font-size: 1.35rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat strong, .gpu-summary .stat strong { white-space: nowrap; }
  .list-tools { gap: .5rem; }
  .list-tools label { flex-basis: calc(50% - .5rem); max-width: none; }
  .list-tools :is(input, select) { width: 100%; min-width: 0; }
  .connection-filters #connections-count { flex-basis: 100%; }
  .connection-card { gap: .4rem; }
  .connection-card .workflow-actions { padding-top: .2rem; }
  .inventory-actions { width: 100%; justify-content: space-between; }
  .gpu-chip { padding: .5rem .4rem; }
  .gpu-chip strong { font-size: .875rem; }
  .gpu-chip small { font-size: .75rem; }
  .gpu-summary { gap: .5rem; }
  .gpu-summary .stat { padding: .55rem .65rem; }
  .gpu-summary .stat small { font-size: .75rem; }
  .gpu-map { margin-top: .65rem; }
  .plots, .resources, .ops-grid, .workflow-grid, .ai-settings-grid, .ai-chat-layout { grid-template-columns: 1fr; }
  .chart canvas { height: 150px; }
  .chart:first-child canvas { margin-top: .65rem; }
  .ai-chat-sidebar { max-height: 13rem; }
  .ai-chat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-tabs button { flex: 0 0 auto; padding: .5rem .65rem; }
  .ai-compose-actions .remember-check { font-size: .8rem; }
  .ai-compose-actions button { margin-left: auto; }
  input, select, textarea { font-size: 1rem; }
  .detail-metrics { gap: .4rem; }
  .detail-metric { padding: .45rem .55rem; }
  .detail-metric strong { font-size: 1rem; }
}
@media (max-width: 640px) {
  #nodes .table-scroll tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; padding: .65rem 0; }
  #nodes td:first-child { grid-column: 1 / 3; }
  #nodes td:nth-child(2) { grid-column: 3; }
  #nodes td:nth-child(3), #nodes td:nth-child(7) { grid-column: 1 / -1; }
  #nodes td:nth-child(3) small { display: inline; margin-left: .5rem; }
  #nodes td:nth-child(3)::before, #nodes td:nth-child(7)::before { display: none; }
  #nodes td:nth-child(7) { font-size: .75rem; color: var(--muted); text-align: right; }
  #nodes .hardware-cell { min-width: 0; }
  #nodes .hardware-cell strong { display: none; }
  #nodes .hardware-cell small { font-size: .75rem; }
  #nodes .meter-value { min-width: 0; width: 100%; }
  #nodes .meter-value meter { width: min(100%, 76px); }
  #gpu-inventory .table-scroll { max-height: 65dvh; }
  #gpu-inventory table { display: table; white-space: nowrap; font-size: .875rem; }
  #gpu-inventory thead { position: static; clip-path: none; width: auto; height: auto; display: table-header-group; }
  #gpu-inventory tbody { display: table-row-group; }
  #gpu-inventory tbody tr { display: table-row; padding: 0; border: 0; }
  #gpu-inventory td { display: table-cell; padding: .6rem; border-bottom: 1px solid var(--line); }
  #gpu-inventory td::before { display: none; }
  #gpu-inventory :is(td, th):first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 10rem; border-right: 1px solid var(--line); }
  #gpu-inventory thead th { position: sticky; top: 0; z-index: 2; background: var(--soft); }
  #gpu-inventory thead th:first-child { z-index: 3; background: var(--soft); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
.status-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.system-check-dialog { width: min(94vw, 900px); }
.system-check-dialog > .section-head { align-items: start; }
.system-check-dialog > .section-head p { margin-top: .3rem; }
.check-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0; }
.check-badge { border-radius: 6px; padding: .3rem .6rem; font-size: .875rem; font-weight: 650; }
.check-badge[data-state=pass], .system-check-card[data-state=pass] .check-label { color: var(--good); background: var(--good-bg); }
.check-badge[data-state=warning], .system-check-card[data-state=warning] .check-label { color: var(--warn); background: var(--warn-bg); }
.check-badge[data-state=failed], .system-check-card[data-state=failed] .check-label { color: var(--bad); background: var(--bad-bg); }
.system-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.system-check-card { padding: .7rem; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; min-width: 0; overflow-wrap: anywhere; }
.check-label { float: right; padding: .1rem .4rem; border-radius: 5px; font-size: .75rem; margin-left: .3rem; }
.system-check-card p { margin: .4rem 0 0; }
.check-next { color: var(--muted); font-size: .875rem; }
.system-check-card a { display: inline-block; margin-top: .5rem; font-size: .875rem; }
.check-section { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .85rem; }
.check-section > summary { cursor: pointer; color: var(--accent); font-weight: 650; }
.check-section p { margin-block: .5rem; }
.check-passed { grid-column: 1 / -1; padding: .65rem 0; }
.check-passed > summary { cursor: pointer; color: var(--good); font-size: .875rem; font-weight: 650; }
.check-passed .system-check-grid { margin-top: .65rem; }
.system-log-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .25rem .65rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; overflow-wrap: anywhere; }
.system-log-row :is(span, small) { grid-column: 2; white-space: pre-wrap; }
.booking-schedule:empty, #booking-preview-status:empty { display: none; }
.booking-schedule { margin: .5rem 0; border-left: 3px solid var(--accent); padding-left: .65rem; }
.booking-schedule p { margin: .3rem 0; font-size: .8rem; }
#booking-preview-status[data-state=failed] { color: var(--bad); }
#booking-preview-status[data-state=pass] { color: var(--good); }
@media (max-width: 640px) {
  .system-check-grid { grid-template-columns: 1fr; }
  .system-check-dialog { padding: .85rem; }
  .system-log-row { grid-template-columns: 1fr; }
  .system-log-row :is(span, small) { grid-column: 1; }
  .workspace-status { flex-wrap: wrap; gap: .5rem; }
  .status-actions { margin-left: auto; }
}

/* Action colors describe required permission; red describes an operation's impact. */
[data-permission=member] { --action-color: var(--action-member); --action-hover: var(--action-member-hover); --action-bg: var(--action-member-bg); --action-line: var(--action-member-line); }
[data-permission=editor] { --action-color: var(--action-editor); --action-hover: var(--action-editor-hover); --action-bg: var(--action-editor-bg); --action-line: var(--action-editor-line); }
[data-permission=owner] { --action-color: var(--action-owner); --action-hover: var(--action-owner-hover); --action-bg: var(--action-owner-bg); --action-line: var(--action-owner-line); }
[data-impact=destructive] { --action-color: var(--action-danger); --action-hover: var(--action-danger-hover); --action-bg: var(--action-danger-bg); --action-line: var(--action-danger-line); }
:is(button, a.action-link)[data-permission]:is(.quiet, .primary) { color: var(--action-color); border-color: var(--action-line); background: var(--action-bg); }
:is(button, a.action-link).primary[data-permission] { color: #fff; background: var(--action-color); border-color: var(--action-color); }
:is(button, a.action-link)[data-permission]:is(.quiet, .primary):not(:disabled):not([aria-disabled=true]):hover { color: var(--action-color); border-color: var(--action-color); background: var(--action-bg); box-shadow: 0 0 0 1px var(--action-line); }
:is(button, a.action-link).primary[data-permission]:not(:disabled):not([aria-disabled=true]):hover { color: #fff; background: var(--action-hover); border-color: var(--action-hover); }
button[data-permission]:disabled:not([aria-busy=true]), button[data-permission][aria-disabled=true]:not([aria-busy=true]) { color: #667385; background: #f1f3f6; border-color: #d5dbe3; opacity: 1; box-shadow: none; }
button[data-permission][aria-busy=true] { opacity: .75; }
#session-menu > summary { color: var(--action-color); border-color: var(--action-line); background: var(--action-bg); }
[data-icon]::before { content: ''; display: inline-block; width: 1em; height: 1em; margin-inline-end: .35em; vertical-align: -.13em; background-color: currentColor; -webkit-mask: var(--action-icon) center / contain no-repeat; mask: var(--action-icon) center / contain no-repeat; }
[data-icon=refresh] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2011a8%208%200%201%200-2%206M20%204v7h-7%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=download] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12m-5-5%205%205%205-5M4%2016v4h16v-4%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=check] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m8%2012%203%203%205-6%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=copy] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%208V4H4v12h4%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=external] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M13%204h7v7m0-7L10%2014m-1-9H4v15h15v-5%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=users] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2020v-2a6%206%200%200%201%2012%200v2m1-15a3%203%200%200%201%200%206m2%203a5%205%200%200%201%203%204v2%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=shield] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%208%203v6c0%205-8%209-8%209S4%2017%204%2012V6l8-3Z%22%2F%3E%3Cpath%20d%3D%22m8%2011%203%203%205-5%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=save] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203h13l4%204v14H3V3h1Zm3%200v7h10V3M7%2021v-7h10v7%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=plus] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204v16M4%2012h16%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=calendar] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%203v4m10-4v4M3%2010h18m-14%204h3m4%200h3m-10%204h3%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=edit] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m14%205%205%205M4%2020l5-1L21%207l-5-5L4%2014v6Z%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=stop] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%2214%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=play] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%204%2014%208-14%208V4Z%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=close] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%205%2014%2014M19%205%205%2019%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=remove] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7m4-7v7%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=key] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%229%22%20r%3D%225%22%2F%3E%3Cpath%20d%3D%22m12%2013%208%208m-3-3%203-3m-6%200%203-3%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=exit] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%204H3v16h6m5-13%205%205-5%205m-6-5h12%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=enter] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%204h6v16h-6M10%207l5%205-5%205M3%2012h12%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=chat] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011a9%209%200%200%201-9%209H3l2-5a9%209%200%201%201%2016-4Z%22%2F%3E%3Cpath%20d%3D%22M8%2011h8m-8%204h5%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=send] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%203%2018%209-18%209%204-9-4-9Zm4%209h14%22%2F%3E%3C%2Fsvg%3E"); }
[data-icon=archive] { --action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208h16v13H4V8ZM3%203h18v5H3V3Zm6%209h6%22%2F%3E%3C%2Fsvg%3E"); }
@media (max-width: 700px) {
  .top-tools [data-icon]::before { display: none; }
}

/* Daylight surfaces and compact resource cards. */
:root {
  --bg: #f3f7fc; --soft: #f6f9fd; --line: #dce7f2;
  --nav: #f8fbff; --nav-bottom: #f1f6fd; --nav-text: #465c77;
  --nav-label: #6c8099; --nav-active: #e4effd; --nav-border: #e3ecf7;
  --panel-shadow: 0 3px 14px #2a527209, 0 1px 3px #2a527206;
  --surface-hover: #c2d7ec; --glow-a: #dcecff99; --glow-b: #f5e8e575;
  --memory-fill: #429b82;
}
:root[data-theme=forest] {
  --bg: #f3f5ee; --soft: #f7f9f2; --line: #dce5d7;
  --nav: #fcfdf8; --nav-bottom: #f1f5e9; --nav-text: #4d6252;
  --nav-label: #687d69; --nav-active: #e4efdc; --nav-border: #dfe8d8;
  --panel-shadow: 0 3px 14px #36533709, 0 1px 3px #36533706;
  --surface-hover: #c2d3b5; --glow-a: #e2edcc99; --glow-b: #f5e7d975;
  --memory-fill: #749743;
}
body { background: radial-gradient(ellipse at 12% 0, var(--glow-a), transparent 42rem), radial-gradient(ellipse at 95% 6%, var(--glow-b), transparent 30rem), var(--bg); }
.topbar { box-shadow: 0 1px 12px #29456806; }
.brand { letter-spacing: -.025em; }
.brand-mark { border-radius: 10px; background: linear-gradient(145deg, var(--accent), var(--blue)); box-shadow: 0 3px 9px #245e9b20; }
.workspace-shell { grid-template-columns: 184px minmax(0, 1fr); gap: .8rem; padding: .75rem .85rem .85rem; }
.workspace-nav { top: 68px; height: calc(100dvh - 82px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--panel-shadow); padding: .7rem .55rem; }
.workspace-nav a { border-radius: 10px; transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
.workspace-nav a:hover, #nav-more:hover { background: var(--nav-border); color: var(--accent); }
.workspace-nav a[aria-current=page], #nav-more[data-active=true] { color: var(--accent); background: var(--nav-active); box-shadow: inset 3px 0 var(--accent); }
.workspace-nav :is(a, button):focus-visible { outline-color: var(--focus); }
.nav-group-label { letter-spacing: .04em; font-weight: 550; }
.nav-count { border-radius: 7px; background: var(--warn-bg); color: var(--warn); }
.workspace-content { padding: .1rem .15rem 2rem .05rem; min-width: 0; }
.workspace-status { border: 0; margin-bottom: .75rem; padding: .1rem .2rem .2rem; min-height: 38px; }
.local { padding: .22rem .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; font-size: .75rem; }
.sample-status .stamp { font-size: .75rem; }
.page-heading { margin-bottom: .9rem; }
h1 { font-weight: 720; letter-spacing: -.035em; }
#connections .page-heading, .overview-heading { border: 1px solid var(--line); border-radius: 18px; padding: 1.05rem 1.2rem; background: linear-gradient(90deg, var(--hero-wash) 10%, var(--hero-mid) 50%, var(--hero-edge) 100%), url('/observatory.webp') right 60% / cover no-repeat; }
#connections .page-heading { min-height: 88px; }
.panel, .stat, .detail, .gpu-node-card { border-radius: 15px; }
.connection-welcome { box-shadow: 0 2px 9px #29456805; background: linear-gradient(115deg, var(--surface) 50%, var(--hero-wash)); }
.connection-welcome > summary { display: flex; align-items: center; gap: .55rem; list-style: none; }
.connection-welcome > summary::-webkit-details-marker { display: none; }
.connection-welcome > summary::before { content: ''; flex: 0 0 auto; width: .36rem; height: .36rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .16s ease; }
.connection-welcome[open] > summary::before { transform: rotate(45deg); }
.connection-grid { gap: .85rem; }
.connection-card { position: relative; padding-top: calc(var(--panel-pad) + .15rem); background: linear-gradient(150deg, var(--surface) 65%, var(--hero-wash)); }
.connection-card::before { content: ''; position: absolute; left: 1rem; top: -1px; width: 2rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--line); }
.connection-card[data-live=true]::before { background: linear-gradient(90deg, var(--accent), var(--memory-fill)); }
.connection-card .section-head { margin-bottom: .1rem; }
.connection-card .connection-address { font-size: .75rem; }
.connection-card .connection-command { border-radius: 9px; font-size: .8rem; letter-spacing: .005em; }
.connection-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: .2rem 0 !important; }
.connection-metric { min-width: 0; }
.connection-metric-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem .3rem; margin-bottom: .3rem; font-size: .7rem; }
.connection-metric-caption strong { font-size: .75rem; font-weight: 650; color: var(--text); }
.connection-meter { height: 4px; border-radius: 8px; background: var(--line); overflow: hidden; }
.connection-meter-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--action-member-line), var(--action-member)); border-radius: inherit; }
.connection-metric[data-tone=memory] .connection-meter-fill { background: linear-gradient(90deg, var(--action-editor-line), var(--memory-fill)); }
.connection-meter.unavailable { background: repeating-linear-gradient(90deg, var(--line) 0 8px, var(--soft) 8px 12px); }
.connection-card .workflow-actions { border-top: 1px solid var(--line); padding-top: .55rem; margin-top: .25rem; }
.connection-card .connection-native-result { font-size: .75rem; margin: 0; line-height: 1.4; }
.connection-native-result[data-state=pass] { color: var(--good); }
.connection-native-result[data-state=failed], #connections-native-status[data-state=warning] { color: var(--bad); }
#connections-native-status:empty { display: none; }
.connection-card .quiet, .connection-card .resource-link { font-size: .8rem; }
.stat { background: linear-gradient(135deg, var(--surface) 55%, var(--hero-wash)); border-color: var(--line); }
.stat strong { color: var(--accent); font-weight: 720; letter-spacing: -.025em; }
.stat:nth-child(2) strong { color: var(--action-editor); }
.stat:nth-child(3) strong { color: var(--action-owner); }
.stat:nth-child(4) strong { color: var(--warm); }
.site-feed { background: linear-gradient(120deg, var(--surface), var(--soft)); border-radius: 12px; }
.gpu-node-card { background: linear-gradient(150deg, var(--surface), var(--soft)); }
.gpu-chip { border-radius: 10px; }
meter { border-radius: 6px; }
meter::-webkit-meter-bar { background: var(--line); border: 0; border-radius: 6px; }
meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, var(--action-editor-line), var(--memory-fill)); border-radius: 6px; }
meter::-webkit-meter-suboptimum-value { background: #d49a49; border-radius: 6px; }
meter::-webkit-meter-even-less-good-value { background: #cf6f72; border-radius: 6px; }
.table-scroll { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
th { font-size: .8rem; }
td { font-size: .85rem; }
.quiet, .primary, .action-link, .segmented, select { border-radius: 9px; }
button, .action-link { transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
input, select, textarea { transition: border-color .16s ease, box-shadow .16s ease; }
input:hover, select:hover, textarea:hover { border-color: var(--surface-hover); }
.ai-tabs { gap: .35rem; border: 0; background: var(--soft); border-radius: 12px; padding: .3rem; }
.ai-tabs button { background: transparent; border-color: transparent; border-radius: 9px; }
.ai-tabs button[aria-selected=true] { color: var(--action-owner); background: var(--surface); border-color: var(--line); box-shadow: var(--panel-shadow); }
.ai-message { border-radius: 14px; }
.ai-message[data-role=assistant] { background: linear-gradient(120deg, var(--surface), var(--soft)); border-left-color: var(--action-owner-line); }
dialog { border-radius: 18px; box-shadow: 0 22px 70px #29456826; }
dialog::backdrop { background: #20384a55; }
@media (hover: hover) and (pointer: fine) {
  .connection-card, .gpu-node-card, a.stat { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .connection-card:hover, .gpu-node-card:hover, a.stat:hover { transform: translateY(-2px); border-color: var(--surface-hover); box-shadow: 0 8px 24px #29456810; }
  button:not(:disabled):not([aria-disabled=true]):active, .action-link:active { transform: translateY(1px); }
}
@keyframes ark-view-enter { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .console-view:not([hidden]) { animation: ark-view-enter .22s ease-out; }
}
@media (max-width: 960px) {
  .workspace-shell { padding: 0; }
  .workspace-nav { position: relative; top: 0; height: auto; border-radius: 0 0 15px 15px; border-top: 0; padding: .35rem .55rem; }
  .workspace-nav a[aria-current=page], #nav-more[data-active=true] { box-shadow: none; }
  #secondary-nav { background: var(--surface); box-shadow: 0 12px 30px #29456820; }
  .workspace-content { padding: .8rem .85rem 2rem; }
}
@media (max-width: 700px) {
  .workspace-content { padding: .65rem .65rem 1.5rem; }
  .workspace-status { margin-bottom: .7rem; padding: 0; }
  .local { padding: .15rem .4rem; }
  #connections .page-heading, .overview-heading { border-radius: 14px; padding: .8rem .9rem; min-height: auto; background: linear-gradient(90deg, var(--hero-wash) 25%, var(--hero-mid) 67%, var(--hero-edge)), url('/observatory.webp') right 60% / cover no-repeat; }
  #connections .page-heading h1 { font-size: 1.3rem; }
  .connection-card { gap: .45rem; }
  .connection-card .workflow-actions { padding-top: .4rem; }
  .panel, .stat, .detail, .gpu-node-card { border-radius: 13px; }
  .connection-metric-caption { font-size: .75rem; }
  .connection-metric-caption strong { font-size: .8rem; }
  .connection-welcome[open] > summary { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.cloud-platforms,.cloud-insights { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--layout-gap);margin-bottom:var(--layout-gap); }
.cloud-stat strong { display:block;font-size:1.45rem;line-height:1.35;overflow-wrap:anywhere; }
.cloud-stat small { display:block;margin-top:.2rem; }
.cloud-brand { display:flex;align-items:center;gap:.7rem;min-width:0; }
.cloud-brand h2 { margin:0; }
.cloud-logo { display:grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:.8rem;background:var(--accent-soft);color:var(--accent);font-size:.85rem;font-weight:800; }
.cloud-platform[data-provider=huggingface] .cloud-logo { background:#fff3c9;color:#75500c; }
.cloud-platform-total { display:block;font-size:1.8rem;letter-spacing:-.04em;margin:.4rem 0; }
.cloud-platform meter { width:100%;height:.75rem;accent-color:var(--accent); }
.cloud-capacity { display:grid;grid-template-columns:auto 1fr;gap:.4rem .6rem;font-size:.875rem; }
.cloud-capacity dt { color:var(--muted); }.cloud-capacity dd { margin:0;text-align:right;overflow-wrap:anywhere; }
.cloud-share-row { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .65rem;width:100%;text-align:left;border:0;border-radius:.4rem;background:transparent;padding:.6rem .25rem;color:var(--text); }
.cloud-share-row:hover { background:var(--soft); }.cloud-share-row strong { font-size:.875rem; }
.cloud-repo-name { overflow-wrap:anywhere;min-width:0; }.cloud-share-row .cloud-repo-name { font-size:.875rem; }
.cloud-share-bar { display:block;height:.35rem;border-radius:1rem;background:var(--soft);align-self:center;overflow:hidden; }
.cloud-share-bar i { display:block;height:100%;border-radius:inherit;min-width:1px; }.cloud-share-row small { text-align:right;color:var(--muted); }
.cloud-trend-item { padding:.4rem 0; }.cloud-trend-item svg { display:block;width:100%;height:5.5rem;color:var(--accent);background:linear-gradient(transparent 49%,var(--line) 50%,transparent 51%); }.cloud-trend-item small { display:block;font-size:.8rem; }
.cloud-repository { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .8rem;padding:.75rem 0;border-bottom:1px solid var(--line);font-size:.875rem; }
.cloud-repo-meta { grid-column:1;display:flex;flex-wrap:wrap;gap:.25rem 1rem; }.cloud-repo-size { grid-column:2;grid-row:1/3;text-align:right;align-self:center; }.cloud-repo-size small { display:block;margin-top:.2rem; }
.cloud-pagination { display:flex;justify-content:flex-end;align-items:center;gap:.7rem;margin-top:.65rem; }
.cloud-audit { margin-top:1rem; }.cloud-filters { grid-template-columns:2fr 1fr 1fr 1fr; }
.cloud-token-panel { margin-bottom:var(--layout-gap);background:linear-gradient(120deg,var(--surface),var(--accent-soft));border-color:color-mix(in srgb,var(--accent) 25%,var(--line)); }
.cloud-token-panel h2 { margin:0 0 .25rem; }.cloud-token-panel .section-head p { margin:.2rem 0 .7rem; }
.cloud-token-panel .action-link { display:inline-flex;align-items:center;justify-content:center;min-height:2.1rem;padding:.35rem .6rem;border:1px solid var(--line);border-radius:.55rem;background:var(--surface);font-size:.875rem;text-decoration:none;white-space:nowrap;color:var(--accent); }.cloud-token-panel .action-link:last-child { color:#77500c;background:#fff7dc;border-color:#e5cf8a; }.cloud-token-panel .action-link:hover { box-shadow:0 2px 8px #12335315; }.cloud-token-panel .workflow-actions { gap:.5rem; }#cloud-token-status:empty { display:none; }
.cloud-token-form { display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:.7rem;align-items:start; }
.cloud-token-form label,.cloud-platform-toolbar label,.cloud-content-heading label { display:grid;gap:.3rem;font-size:.875rem;min-width:0; }
.cloud-token-form button { margin-top:1.65rem; }.cloud-token-form small { min-height:1.2em; }.cloud-token-manager { margin-top:.3rem; }.cloud-token-manager summary { font-size:.875rem;cursor:pointer; }
.cloud-token-row { display:flex;justify-content:space-between;gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--line); }.cloud-token-row>div { min-width:0; }.cloud-token-row small { display:block;overflow-wrap:anywhere;margin-top:.25rem; }.cloud-token-row .workflow-actions { flex-shrink:0; }
.cloud-platform-toolbar { display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem; }.cloud-platform-toolbar>label { min-width:12rem; }
.cloud-tabs { display:flex;gap:.3rem;padding:.3rem;border:1px solid var(--line);border-radius:.8rem;background:var(--surface); }.cloud-tabs button { border:0;background:transparent;color:var(--muted);border-radius:.55rem;min-height:2.1rem;padding:.35rem .7rem; }.cloud-tabs button[aria-pressed=true] { background:var(--accent);color:#fff; }
.cloud-content-heading { margin:1rem 0 .7rem; }.cloud-content-heading h2 { margin:0; }.cloud-content-heading>label { grid-template-columns:auto minmax(8rem,1fr);align-items:center; }
.setup-grid { display:grid;grid-template-columns:1fr 1fr;gap:var(--layout-gap);margin-bottom:var(--layout-gap); }.setup-grid>.panel { min-width:0; }.setup-guide-body { font-size:.9rem;line-height:1.7; }.setup-guide-body h3 { font-size:1rem; }.setup-guide-body li { margin:.35rem 0; }.setup-guide-body p { overflow-wrap:anywhere; }.setup-plan-row { display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid var(--line); }.setup-plan-row>div { min-width:0;overflow-wrap:anywhere; }.setup-config { max-height:22rem;overflow:auto;max-width:100%;font-size:.8rem; }.setup-plan-row p { margin:.25rem 0; }
@media(max-width:900px) { .setup-grid { grid-template-columns:1fr; } }
.cloud-visibility-split { display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin:.7rem 0; }.cloud-visibility-split>div { display:grid;gap:.2rem;padding:.7rem;border-radius:.65rem; }.cloud-visibility-public { background:color-mix(in srgb,var(--plot-2) 10%,var(--surface));color:var(--text); }.cloud-visibility-private { background:color-mix(in srgb,var(--plot-1) 10%,var(--surface));color:var(--text); }.cloud-visibility-split small { color:var(--muted); }.cloud-visibility-split strong { font-size:1.05rem; }
.cloud-platforms { grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); }.cloud-repo-panel { margin-bottom:var(--layout-gap); }.cloud-repo-panel>summary { cursor:pointer; }.cloud-repo-panel>summary strong { margin-right:.7rem; }.cloud-repo-panel .cloud-filters { margin-top:.9rem;grid-template-columns:2fr 1fr 1fr; }
@media(min-width:700px) { .cloud-platform:only-child { display:grid;grid-template-columns:1fr 1fr;column-gap:1.4rem;align-items:start; }.cloud-platform:only-child>.section-head { grid-column:1/-1; }.cloud-platform:only-child>.cloud-platform-total { grid-column:1;grid-row:2; }.cloud-platform:only-child>.cloud-visibility-split { grid-column:1;grid-row:3; }.cloud-platform:only-child>.cloud-capacity { grid-column:2;grid-row:2/4; }.cloud-platform:only-child>button { justify-self:start; } }
@media(max-width:1100px) { .cloud-token-form { grid-template-columns:2fr 1fr; }.cloud-token-form button { align-self:end;margin-top:0; }.cloud-token-panel>.section-head { align-items:flex-start;flex-direction:column; } }
@media(max-width:640px) { .cloud-platform-toolbar { flex-direction:column;align-items:stretch;gap:.6rem; }.cloud-tabs button { flex:1; }.cloud-token-form { grid-template-columns:1fr 1fr; }.cloud-token-form>label:first-child,.cloud-token-form>button { grid-column:1/-1; }.cloud-token-form button { margin-top:0; }.cloud-token-panel .workflow-actions { width:100%; }.cloud-token-panel .action-link { flex:1;text-align:center;padding:.35rem .25rem;font-size:.8rem; }.cloud-token-row { flex-direction:column;gap:.5rem; }.cloud-repo-panel .cloud-filters { grid-template-columns:1fr 1fr; }.cloud-repo-panel .cloud-filters>label:first-child { grid-column:1/-1; } }
@media(max-width:1100px) { .cloud-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.cloud-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .cloud-platforms,.cloud-insights { grid-template-columns:1fr; }.cloud-summary { gap:.45rem; }.cloud-stat strong { font-size:1.2rem; }.cloud-stat small { font-size:.78rem; }.cloud-repository { grid-template-columns:minmax(0,1fr); }.cloud-repo-size { grid-column:1;grid-row:auto;text-align:left;display:flex;gap:.6rem;align-items:center; }.cloud-repo-size small { margin:0; }.cloud-platform-total { font-size:1.6rem; } }
