:root {
  --ink:#172d41;
  --muted:#647182;
  --faint:#8b95a2;
  --border:#e6ebf0;
  --bg:#f5f7fa;
  --white:#fff;
  --green:#177c5a;
  --green-soft:#eaf6ef;
  --orange:#a96513;
  --orange-soft:#fff5e5;
  --red:#bd3f45;
  --red-soft:#fff0f0;
  --blue:#426fac;
  --shadow:0 4px 18px rgba(20,43,61,.035);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  font-size:14px;
  line-height:1.6;
}

button,input,textarea,select {
  font:inherit;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.55;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  color:inherit;
}

button,input,textarea,select {
  border-radius:8px;
}

input,textarea,select {
  border:1px solid #dce3e9;
  background:var(--white);
  color:var(--ink);
  padding:10px 12px;
  max-width:100%;
  min-height:44px;
}

input:focus,textarea:focus {
  border-color:var(--green);
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #4386c2;
  outline-offset:3px;
}

button {
  transition:background .15s,border-color .15s,box-shadow .15s;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:30px;
  letter-spacing:-.9px;
  font-weight:650;
  line-height:1.4;
}

h2 {
  font-size:17px;
  font-weight:650;
}

h3 {
  font-size:17px;
  font-weight:600;
}

svg {
  display:block;
  width:20px;
  height:20px;
  flex:none;
}

[hidden] {
  display:none!important;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.skip-link {
  position:fixed;
  left:16px;
  top:-100px;
  padding:12px 18px;
  z-index:100;
  background:var(--ink);
  color:#fff;
  border-radius:6px;
}

.skip-link:focus {
  top:12px;
}

.subtle,.section-caption {
  color:var(--muted);
  font-size:12px;
}

.eyebrow {
  font-size:10px;
  letter-spacing:1.5px;
  font-weight:650;
  color:var(--muted);
  display:block;
}

.primary-button,.secondary-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid transparent;
  font-size:13px;
  min-height:44px;
  padding:10px 17px;
  white-space:nowrap;
  font-weight:600;
}

.primary-button {
  background:var(--ink);
  color:#fff;
}

.primary-button:hover {
  background:#254660;
}

.secondary-button {
  border-color:#dce3e9;
  background:#fff;
}

.secondary-button:hover {
  background:#f0f4f7;
  border-color:#bbc9d5;
}

.text-button {
  border:0;
  background:transparent;
  font-size:12px;
  color:var(--muted);
  padding:10px;
  min-height:44px;
}

.text-button:hover {
  color:var(--ink);
  background:var(--bg);
}

.notice {
  padding:12px 15px;
  border:1px solid #e8d1a8;
  border-radius:8px;
  background:var(--orange-soft);
  color:#885616;
  font-size:13px;
  line-height:1.7;
}

.error-notice {
  border-color:#f1ced0;
  background:var(--red-soft);
  color:#a43138;
  margin-bottom:18px;
}

.success-notice {
  border-color:#b9ddca;
  background:var(--green-soft);
  color:var(--green);
  margin-bottom:18px;
}

.tag {
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  border-radius:5px;
  padding:3px 8px;
  font-size:11px;
  font-weight:550;
  line-height:1.8;
}

.tag::before {
  content:'';
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
}

.tag.green {
  color:var(--green);
  background:var(--green-soft);
}

.tag.orange {
  color:var(--orange);
  background:var(--orange-soft);
}

.tag.red {
  color:var(--red);
  background:var(--red-soft);
}

.tag.neutral {
  color:var(--muted);
  background:#f0f3f6;
}

.center-view {
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:32px 20px;
  background:radial-gradient(ellipse at 70% 10%,#e9f0ed 0,transparent 60%),var(--bg);
}

.login-card {
  width:100%;
  max-width:450px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:36px 48px 30px;
  box-shadow:0 20px 60px #1c43350c;
}

.login-logo {
  width:110px;
  height:auto;
  display:block;
  margin:0 0 24px -4px;
}

.login-card h1 {
  font-size:35px;
  margin-top:14px;
  line-height:1.5;
}

.login-description {
  color:var(--muted);
  font-size:15px;
  margin:17px 0 28px;
  line-height:1.9;
}

.login-button {
  width:100%;
  justify-content:space-between;
  font-size:14px;
  padding:13px 20px;
  margin-top:18px;
}

.login-hint {
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin-top:13px;
}

.privacy-note {
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:11px;
  margin-top:32px;
  padding-top:22px;
  color:var(--muted);
}

.privacy-note svg {
  width:16px;
  height:16px;
  color:var(--green);
}

.login-footnote {
  font-size:11px;
  letter-spacing:1.5px;
  color:var(--muted);
  margin-top:26px;
}

.loading-mark {
  width:30px;
  height:30px;
  border:3px solid #dde7e1;
  border-top-color:var(--green);
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin:0 0 14px;
}

@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}

.topbar {
  height:81px;
  display:flex;
  align-items:center;
  gap:40px;
  padding:0 36px;
  border-bottom:1px solid var(--border);
  background:#fff;
}

.brand {
  display:flex;
  align-items:center;
  gap:17px;
  flex:none;
}

.brand img {
  width:72px;
  height:auto;
}

.brand-divider {
  width:1px;
  height:29px;
  background:var(--border);
}

.brand>span:last-child {
  font-size:14px;
  font-weight:650;
  line-height:1.5;
}

.brand small {
  display:block;
  font-size:8px;
  letter-spacing:1.4px;
  font-weight:500;
  color:var(--muted);
}

.main-nav {
  display:flex;
  align-self:stretch;
  gap:26px;
  margin-left:12px;
}

.nav-button {
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  border-radius:0;
  padding:0 2px;
  font-size:13px;
  color:var(--muted);
}

.nav-button.active {
  color:var(--green);
  border-bottom-color:var(--green);
  font-weight:600;
}

.account {
  display:flex;
  align-items:center;
  gap:9px;
  margin-left:auto;
  font-size:12px;
}

.account-avatar {
  display:grid;
  place-items:center;
  background:#edf1f5;
  color:#3d5266;
  width:29px;
  height:29px;
  border-radius:50%;
  font-weight:600;
}

.account #user-name {
  max-width:100px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

main {
  max-width:1660px;
  margin:auto;
  padding:34px 36px 0;
  outline:none;
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
  margin-bottom:26px;
}

.page-heading h1 {
  margin:7px 0 6px;
}

.page-heading p {
  color:var(--muted);
  font-size:13px;
}

.title-dot {
  color:var(--green);
  padding-left:3px;
}

.refresh-area {
  display:flex;
  align-items:center;
  gap:15px;
}

.refresh-area svg {
  width:15px;
  height:15px;
}

.summary-strip {
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1.18fr;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:21px 25px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
}

.summary-strip>div {
  padding-left:25px;
  border-left:1px solid var(--border);
}

.summary-strip>div:first-child {
  border:0;
  padding-left:0;
}

.summary-label {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:3px;
}

.summary-strip strong {
  font-size:27px;
  font-weight:600;
  letter-spacing:-.7px;
  font-variant-numeric:tabular-nums;
}

.summary-strip strong small {
  font-size:14px;
  color:var(--muted);
  font-weight:400;
  letter-spacing:0;
}

.summary-strip .summary-policy {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  font-size:12px;
  font-weight:550;
}

.summary-policy small {
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:400;
  margin-top:4px;
}

.shield-symbol {
  width:32px;
  height:32px;
  border-radius:10px;
  background:var(--green-soft);
  color:var(--green);
  display:grid;
  place-items:center;
  font-size:18px;
}

.server-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:26px;
}

.server-card {
  min-width:0;
  text-align:left;
  border:1px solid #e1e7ed;
  background:#fff;
  border-radius:11px;
  padding:19px 21px 17px;
  box-shadow:var(--shadow);
  position:relative;
}

.server-card:hover {
  border-color:#9ab6ab;
}

.server-card.selected {
  border-color:#3f9273;
  box-shadow:0 0 0 1px #3f927310,0 4px 16px #145b3510;
}

.server-card.selected::before {
  content:'';
  position:absolute;
  left:21px;
  right:21px;
  top:-1px;
  height:2px;
  background:var(--green);
  border-radius:2px;
}

.server-card-head {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:15px;
}

.server-card-head .tag {
  margin-left:auto;
}

.server-icon {
  height:32px;
  width:32px;
  border:1px solid #e5ebee;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:#f7f9fa;
  color:#607685;
}

.server-icon svg {
  width:18px;
  height:18px;
}

.server-name {
  font-size:17px;
  letter-spacing:.2px;
  font-weight:650;
}

.server-card-subtitle {
  font-size:10px;
  color:var(--muted);
  font-weight:400;
}

.server-card-metrics {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:17px;
}

.mini-metric-label {
  font-size:10px;
  color:var(--muted);
  display:block;
}

.mini-metric-value {
  font-size:18px;
  font-weight:550;
  margin:3px 0 6px;
  display:block;
  font-variant-numeric:tabular-nums;
}

.progress-track {
  height:3px;
  background:#edf1f5;
  border-radius:3px;
  overflow:hidden;
  display:block;
}

.progress-fill {
  height:100%;
  display:block;
  background:#66a78c;
  border-radius:3px;
}

.progress-fill.orange {
  background:#d2a35a;
}

.progress-fill.red {
  background:#d7787b;
}

.server-freshness {
  margin-top:13px;
  color:var(--muted);
  font-size:10px;
  display:flex;
  align-items:center;
  gap:5px;
}

.workspace-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 336px;
  align-items:start;
  gap:22px;
}

.monitor-column {
  display:grid;
  gap:21px;
  min-width:0;
}

.panel {
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:23px;
  min-width:0;
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.panel-heading .eyebrow {
  font-size:9px;
  margin-bottom:4px;
  letter-spacing:1.3px;
}

.panel-heading.compact {
  margin-bottom:18px;
}

.range-selector {
  display:flex;
  padding:3px;
  margin:0;
  border:1px solid #e5ebf0;
  background:#f7f9fb;
  border-radius:7px;
  flex:none;
}

.range-selector label {
  position:relative;
  cursor:pointer;
}

.range-selector input {
  position:absolute;
  opacity:0;
  min-height:0;
  width:1px;
  height:1px;
}

.range-selector span {
  display:block;
  font-size:10px;
  padding:7px 10px;
  border-radius:4px;
  white-space:nowrap;
}

.range-selector input:checked+span {
  background:#fff;
  color:var(--ink);
  box-shadow:0 1px 4px #20384516;
  font-weight:600;
}

.range-selector input:focus-visible+span {
  outline:3px solid #4386c2;
  outline-offset:1px;
}

.resource-panel>.section-caption {
  font-size:11px;
  margin-bottom:20px;
}

.trend-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin-bottom:20px;
}

.trend-card {
  padding:0 18px;
  border-right:1px solid #edf0f3;
  min-width:0;
}

.trend-card:first-child {
  padding-left:0;
}

.trend-card:last-child {
  border-right:0;
  padding-right:0;
}

.trend-label {
  font-size:11px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px;
}

.trend-label::before {
  content:'';
  width:6px;
  height:6px;
  border-radius:2px;
  background:var(--series);
}

.trend-current {
  display:block;
  font-size:27px;
  line-height:1.2;
  margin-top:10px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.5px;
}

.trend-chart {
  width:100%;
  height:80px;
  overflow:visible;
  margin-top:12px;
}

.trend-axes {
  display:flex;
  justify-content:space-between;
  font-size:9px;
  color:var(--muted);
  margin-top:6px;
  gap:4px;
}

.chart-empty {
  min-height:102px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:11px;
  padding:14px 4px;
  text-align:center;
  background:linear-gradient(transparent 31%,#f3f5f7 32%,transparent 33%,transparent 66%,#f3f5f7 67%,transparent 68%);
}

.chart-table {
  margin-top:12px;
  font-size:10px;
  color:var(--muted);
}

.chart-table summary {
  cursor:pointer;
  padding:4px 0;
}

.chart-table table {
  width:100%;
  border-collapse:collapse;
  font-size:10px;
}

.chart-table th,.chart-table td {
  text-align:left;
  border-bottom:1px solid var(--border);
  padding:4px 0;
}

.chart-table>div {
  max-height:170px;
  overflow:auto;
}

.resource-details {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  border-top:1px solid var(--border);
  padding-top:17px;
}

.detail-item>span {
  display:block;
  font-size:10px;
  color:var(--muted);
}

.detail-item>strong {
  display:block;
  font-weight:500;
  font-size:12px;
  margin-top:4px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}

.connection-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.connection-item span {
  font-size:11px;
  color:var(--muted);
  display:block;
}

.connection-item strong {
  display:block;
  font-size:22px;
  font-weight:550;
  margin-top:3px;
  font-variant-numeric:tabular-nums;
}

.connection-note {
  font-size:10px;
  margin-top:15px;
  padding-top:12px;
  border-top:1px solid var(--border);
}

.event-filter select {
  font-size:11px;
  min-height:38px;
  padding:6px 10px;
}

.events-panel .section-caption {
  font-size:11px;
  margin-bottom:15px;
}

.event-list {
  max-height:560px;
  overflow-y:auto;
}

.event-row {
  display:flex;
  gap:13px;
  padding:15px 0;
  border-top:1px solid #eff2f5;
}

.event-dot {
  width:8px;
  height:8px;
  flex:none;
  background:#86a496;
  border-radius:50%;
  margin-top:7px;
  box-shadow:0 0 0 4px #f1f6f3;
}

.event-dot.warning {
  background:#c79344;
  box-shadow:0 0 0 4px #fbf5ea;
}

.event-dot.critical,.event-dot.error {
  background:#cc777c;
  box-shadow:0 0 0 4px #fcf0f0;
}

.event-content {
  min-width:0;
  flex:1;
}

.event-title {
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
  font-size:12px;
}

.event-title strong {
  font-weight:550;
}

.event-node {
  font-size:10px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:0 5px;
  border-radius:4px;
}

.event-meta {
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
  overflow-wrap:anywhere;
}

.event-row time {
  font-size:10px;
  color:var(--muted);
  white-space:nowrap;
  margin-left:auto;
}

.empty-state {
  padding:28px 16px;
  text-align:center;
  border:1px dashed #dde5eb;
  border-radius:8px;
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
}

.ai-panel {
  position:sticky;
  top:22px;
  padding:0;
  overflow:hidden;
}

.ai-header {
  display:flex;
  align-items:center;
  gap:10px;
  padding:20px;
  border-bottom:1px solid var(--border);
}

.ai-header h2 {
  font-size:15px;
}

.ai-header .subtle {
  font-size:10px;
}

.ai-header .tag {
  margin-left:auto;
  font-size:9px;
  padding:2px 7px;
}

.ai-header .tag::before {
  display:none;
}

.ai-symbol {
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  border-radius:10px;
  background:#e9f3ee;
  color:var(--green);
  font-size:25px;
}

.ai-content {
  padding:23px 19px 17px;
  min-height:265px;
}

.ai-intro {
  padding:8px 0 23px;
}

.ai-intro h3 {
  font-size:15px;
  margin-bottom:7px;
}

.ai-intro p {
  color:var(--muted);
  font-size:12px;
  line-height:1.85;
}

.suggestions {
  display:grid;
  gap:8px;
}

.suggestions button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid #e6ebef;
  background:#f9fafb;
  padding:11px 12px;
  font-size:11px;
  text-align:left;
  min-height:42px;
}

.suggestions button:hover {
  background:var(--green-soft);
  border-color:#c6decf;
}

.suggestions button span {
  color:var(--muted);
  font-size:15px;
}

.chat-form {
  margin:0 18px 13px;
  border:1px solid #dbe3e8;
  border-radius:9px;
  overflow:hidden;
  background:#fff;
}

.chat-form:focus-within {
  border-color:#57927a;
  box-shadow:0 0 0 2px #e6f0eb;
}

.chat-form textarea {
  resize:vertical;
  min-height:82px;
  max-height:200px;
  width:100%;
  border:0;
  border-radius:0;
  padding:12px;
  font-size:12px;
  display:block;
  outline:none;
}

.chat-compose-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:3px 8px 8px;
  gap:8px;
  font-size:9px;
  color:var(--muted);
}

.send-button {
  width:35px;
  height:35px;
  border:0;
  background:var(--ink);
  border-radius:7px;
  color:#fff;
  display:grid;
  place-items:center;
}

.send-button:hover {
  background:#284b63;
}

.send-button svg {
  height:17px;
  width:17px;
}

.ai-footnote {
  padding:11px 20px 15px;
  color:var(--muted);
  font-size:9px;
  text-align:center;
  background:#fafbfc;
  border-top:1px solid #f0f3f5;
  line-height:1.8;
}

.chat-messages {
  max-height:480px;
  overflow-y:auto;
  font-size:12px;
  scrollbar-width:thin;
  overflow-wrap:anywhere;
}

.chat-message {
  margin-bottom:15px;
}

.chat-message strong {
  font-size:10px;
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-weight:550;
}

.chat-message .message-body {
  white-space:pre-wrap;
  line-height:1.85;
  background:#f5f7fa;
  padding:12px;
  border-radius:8px;
}

.chat-message.assistant .message-body {
  background:#eff6f1;
}

.chat-evidence {
  font-size:9px;
  color:var(--muted);
  padding-top:7px;
  line-height:1.8;
}

.chat-messages:not(:empty) {
  margin-bottom:12px;
}

.page-footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:27px 0 23px;
  color:var(--muted);
  font-size:9px;
  letter-spacing:.4px;
}

.admin-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-bottom:22px;
}

.sync-status {
  padding-bottom:16px;
  font-size:13px;
  line-height:2;
}

.department-list {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:18px 0;
}

.department-list span {
  padding:4px 10px;
  background:#f1f4f7;
  border-radius:5px;
  font-size:12px;
}

.inline-form {
  display:flex;
  gap:10px;
  align-items:center;
}

.inline-form input {
  flex:1;
  min-width:0;
  font-size:13px;
}

.add-member-panel {
  margin-bottom:22px;
}

.directory-results {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0;
  color:var(--muted);
  font-size:12px;
}

.directory-option {
  min-height:44px;
  background:#f5f7fa;
  border:1px solid var(--border);
  padding:8px 12px;
  text-align:left;
  font-size:12px;
}

.directory-option[aria-pressed=true] {
  border-color:var(--green);
  background:var(--green-soft);
  color:var(--green);
}

.add-user-form {
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr auto;
  align-items:end;
  gap:14px;
  margin-top:18px;
}

.field label {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:6px;
}

.field input,.field select {
  width:100%;
  font-size:12px;
}

.user-row {
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr auto auto;
  align-items:center;
  gap:13px;
  padding:15px 0;
  border-top:1px solid var(--border);
}

.user-row .user-identity {
  font-weight:550;
  font-size:13px;
  min-width:0;
  overflow-wrap:anywhere;
}

.user-row .user-identity small {
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:400;
}

.user-row select {
  min-width:0;
  width:100%;
  font-size:12px;
}

.user-row .secondary-button {
  font-size:11px;
  padding:8px 12px;
}

.user-row .toggle-user {
  color:var(--red);
}

.user-row .toggle-user.enable {
  color:var(--green);
}

@media(min-width:1500px) {
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 365px;
  }
  .trend-chart {
    height:106px;
  }
  .trend-card {
    padding:0 26px;
  }
  .panel {
    padding:26px;
  }
  .ai-panel {
    padding:0;
  }
  .ai-content {
    padding:26px;
  }
  .ai-header {
    padding:22px 25px;
  }
  .ai-intro {
    padding-bottom:28px;
  }
  .ai-form {
    margin:0 22px 15px;
  }
}

@media(max-width:1150px) {
  .topbar {
    padding:0 24px;
    gap:24px;
  }
  main {
    padding:28px 24px 0;
  }
  .main-nav {
    margin-left:0;
    gap:19px;
  }
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 302px;
    gap:17px;
  }
  .panel {
    padding:19px;
  }
  .ai-panel {
    padding:0;
  }
  .server-card {
    padding:16px;
  }
  .server-card-metrics {
    gap:12px;
  }
  .summary-strip {
    padding:19px;
  }
  .summary-strip>div {
    padding-left:19px;
  }
  .trend-card {
    padding:0 12px;
  }
  .range-selector span {
    padding:7px;
  }
  .resource-panel .panel-heading {
    align-items:start;
  }
  .summary-policy small {
    font-size:9px;
  }
  .summary-strip .summary-policy {
    font-size:11px;
    gap:9px;
  }
  .resource-details {
    grid-template-columns:repeat(2,1fr);
  }
  .add-user-form {
    grid-template-columns:1fr 1fr;
  }
  .user-row {
    grid-template-columns:1fr 1fr 1fr;
  }
  .user-row>button {
    grid-column:auto;
  }
}

@media(max-width:950px) {
  .workspace-grid {
    grid-template-columns:1fr;
  }
  .ai-panel {
    position:static;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .ai-header {
    grid-column:1/-1;
  }
  .ai-content {
    grid-row:2/4;
    padding:22px;
  }
  .ai-content .ai-intro {
    padding-top:0;
    padding-bottom:16px;
  }
  .chat-form {
    margin:22px 22px 12px 0;
    align-self:end;
  }
  .chat-form textarea {
    min-height:126px;
  }
  .ai-footnote {
    align-self:end;
    border:0;
    padding:0 22px 22px 0;
    background:white;
    text-align:left;
  }
  .chat-messages {
    max-height:360px;
  }
  .server-card-head {
    gap:8px;
  }
  .server-card-head .tag {
    font-size:10px;
    padding:3px 6px;
  }
  .server-name {
    font-size:16px;
  }
  .server-icon {
    width:28px;
    height:28px;
  }
  .server-card-subtitle {
    font-size:9px;
  }
  .summary-strip {
    grid-template-columns:1fr 1fr 1fr;
  }
  .summary-strip .summary-policy {
    display:none;
  }
  .resource-details {
    grid-template-columns:repeat(3,1fr);
  }
  .trend-chart {
    height:102px;
  }
  .admin-grid {
    grid-template-columns:1fr;
  }
  .account-avatar {
    display:none;
  }
}

@media(max-width:700px) {
  .topbar {
    height:auto;
    min-height:74px;
    padding:10px 20px;
    gap:10px;
    flex-wrap:wrap;
  }
  .brand {
    gap:10px;
  }
  .brand img {
    width:58px;
  }
  .brand>span:last-child {
    font-size:12px;
  }
  .brand small {
    font-size:7px;
    letter-spacing:1px;
  }
  .brand-divider {
    height:23px;
  }
  .main-nav {
    order:3;
    width:100%;
    gap:24px;
    height:39px;
  }
  .nav-button {
    font-size:12px;
  }
  .account {
    gap:3px;
  }
  .account #user-name {
    max-width:60px;
  }
  .text-button {
    padding:8px;
  }
  .page-heading {
    align-items:start;
    gap:14px;
    margin-bottom:20px;
  }
  .page-heading h1 {
    font-size:24px;
  }
  .page-heading p {
    font-size:12px;
  }
  .page-heading .eyebrow {
    font-size:8px;
    letter-spacing:1.2px;
  }
  .refresh-area {
    flex-direction:column;
    align-items:end;
    gap:5px;
    flex:none;
  }
  .refresh-area>.subtle {
    font-size:9px;
    order:2;
    max-width:100px;
    text-align:right;
  }
  .refresh-area button {
    min-height:38px;
    padding:7px 10px;
    font-size:11px;
  }
  .refresh-area svg {
    width:13px;
    height:13px;
  }
  main {
    padding:24px 18px 0;
  }
  .summary-strip {
    padding:16px;
    margin-bottom:18px;
    border-radius:10px;
  }
  .summary-strip>div {
    padding-left:16px;
  }
  .summary-strip strong {
    font-size:25px;
  }
  .summary-strip strong small {
    font-size:12px;
  }
  .summary-label {
    font-size:10px;
  }
  .server-grid {
    grid-template-columns:1fr;
    gap:11px;
    margin-bottom:21px;
  }
  .server-card {
    display:grid;
    grid-template-columns:1fr 1.4fr;
    gap:0 18px;
    padding:15px 16px;
  }
  .server-card-head {
    margin:0;
    flex-wrap:wrap;
    align-content:center;
    gap:6px 9px;
  }
  .server-card-head .tag {
    margin-left:36px;
  }
  .server-card-metrics {
    align-items:center;
    gap:14px;
  }
  .server-freshness {
    grid-column:1/-1;
    margin-top:12px;
    border-top:1px solid #eef1f4;
    padding-top:8px;
    font-size:10px;
  }
  .mini-metric-label {
    font-size:9px;
  }
  .mini-metric-value {
    font-size:17px;
    margin:2px 0 5px;
  }
  .panel {
    padding:19px 16px;
    border-radius:10px;
  }
  .panel-heading h2 {
    font-size:15px;
  }
  .range-selector span {
    font-size:9px;
    padding:7px 8px;
  }
  .resource-panel .panel-heading {
    flex-wrap:wrap;
    gap:12px;
  }
  .resource-panel>.section-caption {
    margin-bottom:20px;
    font-size:10px;
  }
  .trend-card {
    padding:0 10px;
  }
  .trend-current {
    font-size:23px;
  }
  .trend-chart {
    height:74px;
  }
  .trend-axes {
    font-size:8px;
  }
  .trend-label {
    font-size:10px;
  }
  .chart-empty {
    min-height:96px;
    font-size:10px;
  }
  .chart-table {
    font-size:9px;
  }
  .resource-details {
    grid-template-columns:repeat(2,1fr);
    gap:14px 10px;
  }
  .detail-item>span {
    font-size:9px;
  }
  .detail-item>strong {
    font-size:11px;
  }
  .connection-grid {
    gap:10px;
  }
  .connection-item span {
    font-size:10px;
  }
  .connection-item strong {
    font-size:21px;
  }
  .connection-note {
    font-size:10px;
  }
  .event-row {
    gap:10px;
    position:relative;
    padding:14px 0;
  }
  .event-row time {
    font-size:9px;
  }
  .event-title {
    font-size:11px;
    gap:6px;
  }
  .event-meta {
    font-size:9px;
  }
  .ai-panel {
    display:block;
    padding:0;
  }
  .ai-content {
    padding:21px 18px;
  }
  .ai-intro {
    padding-bottom:20px;
  }
  .ai-header {
    padding:19px 18px;
  }
  .chat-form {
    margin:0 18px 14px;
  }
  .chat-form textarea {
    min-height:95px;
    font-size:16px;
  }
  .chat-compose-footer {
    font-size:10px;
  }
  .send-button {
    width:44px;
    height:44px;
  }
  .ai-footnote {
    padding:12px 18px;
    text-align:center;
    border-top:1px solid var(--border);
    background:#fafbfc;
    font-size:10px;
  }
  .suggestions button {
    min-height:44px;
    font-size:12px;
  }
  .chat-messages {
    font-size:13px;
  }
  .page-footer {
    flex-direction:column;
    gap:5px;
    font-size:9px;
    padding:22px 0;
  }
  .admin-grid {
    gap:17px;
  }
  .inline-form {
    gap:8px;
  }
  .inline-form input {
    font-size:16px;
  }
  .inline-form .secondary-button {
    font-size:11px;
    padding:8px 10px;
  }
  .add-user-form {
    grid-template-columns:1fr;
  }
  .field input,.field select {
    font-size:16px;
  }
  .user-row {
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .user-row .user-identity {
    grid-column:1/-1;
  }
  .user-row select {
    font-size:16px;
  }
  .user-row .secondary-button {
    min-height:44px;
  }
  .event-filter select {
    font-size:12px;
    min-height:44px;
  }
  .login-card {
    padding:27px;
  }
  .login-card h1 {
    font-size:32px;
  }
  .privacy-note {
    font-size:10px;
  }
  .page-heading .secondary-button {
    font-size:11px;
    padding:9px 12px;
  }
  .directory-option {
    font-size:13px;
  }
}

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

.server-card-subtitle {
  display:block;
  line-height:1.5;
}

.selected-alerts:not(:empty) {
  display:grid;
  gap:8px;
  margin-bottom:20px;
}

.node-alert {
  font-size:11px;
  padding:9px 12px;
  border-radius:6px;
  background:var(--orange-soft);
  color:#885616;
  line-height:1.8;
}

.node-alert.critical {
  background:var(--red-soft);
  color:#a43138;
}

.node-alert strong {
  font-weight:600;
}

.skip-link:not(:focus) {
  clip-path:inset(100%);
  height:1px;
  overflow:hidden;
  padding:0;
  width:1px;
}

@media(max-width:700px) {
  .server-card-head {
    display:grid;
    grid-template-columns:28px minmax(0,1fr);
    gap:5px 8px;
  }
  .server-card-head .server-icon {
    grid-row:1/3;
  }
  .server-card-head .tag {
    grid-column:2;
    margin-left:0;
    justify-self:start;
  }
  .server-card-head .server-name {
    line-height:1.4;
  }
  .node-alert {
    font-size:12px;
  }
}

.system-alerts:not(:empty) {
  display:grid;
  gap:8px;
  margin-bottom:18px;
}

button:disabled {
  cursor:not-allowed;
}

@media(max-width:700px) {
  .main-nav {
    height:44px;
  }
  .refresh-area button {
    min-height:44px;
  }
  .range-selector span {
    min-height:44px;
    display:flex;
    align-items:center;
  }
  .chart-table summary {
    min-height:44px;
    display:flex;
    align-items:center;
    font-size:10px;
  }
  .chart-table summary::before {
    content:'▸';
    margin-right:3px;
  }
  .chart-table[open] summary::before {
    content:'▾';
  }
}
