:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --sidebar: #404040;
  --sidebar-deep: #353535;
  --text: #171c26;
  --muted: #7b8492;
  --muted-2: #9aa3af;
  --line: #e6e9ee;
  --green: #2b8d3b;
  --green-2: #42a653;
  --blue: #278be8;
  --cyan: #20a7c8;
  --purple: #8156d8;
  --pink: #f0005a;
  --orange: #ef7800;
  --amber: #f1a421;
  --red: #e34b4b;
  --shadow: 0 7px 24px rgba(39, 48, 67, .08);
  --shadow-hover: 0 13px 34px rgba(39, 48, 67, .14);
  --radius: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  font-size: 13px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  padding: 0 16px 18px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-deep));
  box-shadow: 4px 0 18px rgba(0, 0, 0, .08);
  z-index: 30;
}
.brand {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2997ed, #1ea77a);
  box-shadow: 0 8px 20px rgba(33, 151, 205, .22);
  font-size: 18px;
  font-weight: 900;
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 14px; }
.brand-copy span { color: #b9bec5; font-size: 9px; }
.sidebar-nav { padding-top: 16px; overflow-y: auto; }
.nav-title {
  padding: 13px 10px 6px;
  color: #a8adb5;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}
.nav-item {
  width: 100%;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e0e3e7;
  text-align: left;
  font-size: 11px;
  transition: .16s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .08); }
.nav-item.active {
  background: #278833;
  color: #fff;
  box-shadow: 0 7px 18px rgba(21, 114, 45, .24);
}
.nav-icon { width: 21px; text-align: center; font-size: 15px; }
.sidebar-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); }
.cluster-connection {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255,255,255,.06);
}
.status-led { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #d0d4da; }
.status-led.ok { background: #37c563; box-shadow: 0 0 0 4px rgba(55,197,99,.15); }
.status-led.warn { background: #f1a421; box-shadow: 0 0 0 4px rgba(241,164,33,.15); }
.status-led.bad { background: #ef4e4e; box-shadow: 0 0 0 4px rgba(239,78,78,.15); }
.status-led.checking { animation: pulse 1.2s infinite; }
.cluster-connection div { display: flex; flex-direction: column; gap: 2px; }
.cluster-connection strong { font-size: 10px; }
.cluster-connection span { color: #bcc2ca; font-size: 8px; }

.main { min-height: 100vh; margin-left: 230px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(27, 39, 62, .035);
}
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #818a96; font-size: 10px; }
.breadcrumb strong { color: #303745; }
.home-icon { color: var(--blue); font-size: 9px; }
.topbar-actions { gap: 9px; }
.global-search {
  width: 255px;
  height: 35px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #eef0f3;
  border-radius: 7px;
  background: #f7f8fa;
  color: #788391;
}
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }
.refresh-control {
  height: 33px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.refresh-control select { border: 0; outline: 0; background: transparent; color: #5d6775; font-size: 9px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #35be60; box-shadow: 0 0 0 4px rgba(53,190,96,.12); }
.live-dot.off { background: #a9b0ba; box-shadow: none; }
.icon-btn {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #556170;
  font-size: 15px;
}
.icon-btn:hover { background: #f5f7fa; }
.mobile-menu { display: none; }
.last-updated { display: flex; flex-direction: column; gap: 1px; padding: 0 8px; }
.last-updated span { color: #929aa5; font-size: 7px; }
.last-updated strong { color: #4a5564; font-size: 9px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #dceaf9; color: #3975b5; font-size: 9px; font-weight: 800; }

.content { padding: 20px; }
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 17px;
}
.page-title .eyebrow { margin: 0 0 5px; color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.page-title h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.045em; }
.page-title p { margin: 0; color: var(--muted); font-size: 10px; }
.page-tools { display: flex; align-items: center; gap: 8px; }
.select, .field {
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #556170;
  padding: 0 10px;
  outline: none;
  font-size: 9px;
}
.primary-btn, .secondary-btn, .danger-btn {
  height: 35px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}
.primary-btn { border: 0; background: var(--green); color: #fff; box-shadow: 0 6px 15px rgba(43,141,59,.18); }
.secondary-btn { border: 1px solid var(--line); background: #fff; color: #526071; }
.danger-btn { border: 1px solid #f0cece; background: #fff6f6; color: #bf4141; }
.text-btn { border: 0; background: transparent; color: #657284; font-size: 8px; font-weight: 800; }
.text-btn:hover { color: var(--green); }

.hero {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 98px;
  margin-bottom: 14px;
  padding: 17px 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(110deg, #257b35 0%, #2c963f 48%, #34a94b 100%);
  box-shadow: 0 9px 25px rgba(39,133,55,.18);
}
.hero.attention { background: linear-gradient(110deg, #c66b08, #e69116); }
.hero.critical { background: linear-gradient(110deg, #bd3636, #e45151); }
.hero-icon { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.17); font-size: 20px; font-weight: 900; }
.hero-copy { display: flex; flex-direction: column; gap: 3px; }
.hero-copy span { font-size: 8px; opacity: .76; letter-spacing: .08em; }
.hero-copy strong { font-size: 18px; }
.hero-copy small { font-size: 9px; opacity: .82; }
.hero-meta { margin-left: auto; display: flex; gap: 26px; }
.hero-meta div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hero-meta span { font-size: 7px; opacity: .72; }
.hero-meta strong { font-size: 16px; }

.card, .chart-card, .table-card, .command-card, .service-card, .node-fleet-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.card:hover, .service-card:hover, .node-tile:hover, .quick-action:hover { box-shadow: var(--shadow-hover); }
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.card-kicker { display: block; margin-bottom: 4px; color: #758399; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.card-header h2, .card-header h3 { margin: 0; font-size: 13px; }
.card-header h3 { font-size: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 99px;
  background: #edf7ef;
  color: #267a34;
  font-size: 7px;
  font-weight: 900;
}
.badge.blue { background: #eaf4ff; color: #2d77bd; }
.badge.amber { background: #fff3dd; color: #a76b05; }
.badge.red { background: #ffeded; color: #bc3d3d; }
.badge.gray { background: #f0f2f5; color: #697383; }

.node-fleet-card { margin-bottom: 14px; padding: 14px; }
.node-fleet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.node-fleet-head h2 { margin: 0; font-size: 13px; }
.node-fleet { display: grid; grid-template-columns: repeat(8, minmax(100px, 1fr)); gap: 9px; overflow-x: auto; padding-bottom: 2px; }
.node-tile {
  min-width: 108px;
  padding: 11px;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  background: #fff;
  transition: .16s ease;
  cursor: pointer;
}
.node-tile.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(39,139,232,.08); }
.node-tile.offline { background: #fff5f5; border-color: #f1caca; }
.node-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.node-role-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #eaf3ff; color: #367bc1; font-size: 9px; font-weight: 900; }
.node-role-icon.worker { background: #eaf8ee; color: #2d873d; }
.node-tile strong { display: block; margin-bottom: 2px; font-size: 9px; }
.node-tile small { color: var(--muted); font-size: 7px; }
.micro-bar-row { display: grid; grid-template-columns: 23px 1fr 27px; gap: 5px; align-items: center; margin-top: 6px; font-size: 7px; color: #798493; }
.micro-bar { height: 5px; overflow: hidden; border-radius: 99px; background: #edf0f4; }
.micro-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.micro-bar.blue i { background: var(--blue); }

.radial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.radial-card { min-height: 245px; padding: 14px; }
.radial-chart { position: relative; width: 155px; height: 155px; margin: 4px auto 6px; }
.radial-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.radial-track { fill: none; stroke: #edf0f4; stroke-width: 13; }
.radial-value { fill: none; stroke: var(--chart-color, var(--green)); stroke-width: 13; stroke-linecap: round; transition: stroke-dashoffset .55s ease; }
.radial-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.radial-center div { display: flex; flex-direction: column; gap: 2px; }
.radial-center strong { font-size: 25px; letter-spacing: -.04em; }
.radial-center span { color: var(--muted); font-size: 8px; }
.radial-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; }
.radial-foot strong { font-size: 14px; }
.radial-foot span { color: var(--muted); font-size: 8px; text-align: right; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 14px; margin-bottom: 14px; }
.chart-card { padding: 15px; min-height: 305px; }
.chart { position: relative; width: 100%; height: 245px; }
.chart.tall { height: 320px; }
.chart.compact { height: 215px; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart-empty { height: 100%; display: grid; place-items: center; border: 1px dashed #dce2e9; border-radius: 10px; background: #fafbfd; color: #8b95a3; font-size: 9px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 9px 13px; margin: 4px 0 0; }
.legend-item { display: flex; align-items: center; gap: 5px; color: #647183; font-size: 7px; }
.legend-swatch { width: 9px; height: 3px; border-radius: 2px; }
.chart-tooltip {
  position: absolute;
  z-index: 10;
  min-width: 120px;
  padding: 8px 9px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 24px rgba(25,35,51,.12);
  color: #3b4657;
  font-size: 7px;
  pointer-events: none;
  opacity: 0;
  transform: translate(8px, -50%);
}
.chart-tooltip.show { opacity: 1; }
.chart-tooltip strong { display: block; margin-bottom: 5px; font-size: 8px; }
.tooltip-line { display: flex; justify-content: space-between; gap: 10px; margin: 3px 0; }

.donut-layout { min-height: 245px; display: grid; grid-template-columns: minmax(150px, .9fr) 1.1fr; align-items: center; gap: 12px; }
.donut-chart { position: relative; width: 170px; height: 170px; margin: auto; border-radius: 50%; background: conic-gradient(#e8ebef 0deg 360deg); }
.donut-chart::after { content: ""; position: absolute; inset: 29px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #eef1f4; }
.donut-center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; }
.donut-center div { display: flex; flex-direction: column; gap: 2px; }
.donut-center strong { font-size: 24px; }
.donut-center span { color: var(--muted); font-size: 8px; }
.donut-legend { display: flex; flex-direction: column; gap: 7px; }
.donut-legend-item { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid #f0f2f5; font-size: 8px; }
.donut-legend-item i { width: 7px; height: 7px; border-radius: 50%; }
.donut-legend-item span { color: #657183; }
.donut-legend-item strong { font-size: 9px; }

.bar-list { display: flex; flex-direction: column; gap: 10px; padding-top: 7px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 125px) 1fr 52px; align-items: center; gap: 9px; }
.bar-row label { overflow: hidden; color: #4e5b6d; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; overflow: hidden; border-radius: 99px; background: #eef1f5; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #68c88a, #2b8d3b); }
.bar-track.blue i { background: linear-gradient(90deg, #7ab8f3, #278be8); }
.bar-track.purple i { background: linear-gradient(90deg, #b69aed, #8156d8); }
.bar-track.amber i { background: linear-gradient(90deg, #ffd27e, #f1a421); }
.bar-row strong { color: #4d596a; font-size: 8px; text-align: right; }

.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.service-card { min-height: 104px; padding: 12px; transition: .16s ease; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.service-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; font-weight: 900; }
.service-icon.green { background: #eaf8ee; color: #2b8d3b; }
.service-icon.blue { background: #eaf4ff; color: #278be8; }
.service-icon.purple { background: #f2ecff; color: #8156d8; }
.service-icon.orange { background: #fff0e3; color: #ef7800; }
.service-icon.pink { background: #ffedf4; color: #e10055; }
.service-icon.gray { background: #f0f2f5; color: #697483; }
.service-card strong { display: block; margin-bottom: 3px; font-size: 9px; }
.service-card small { color: var(--muted); font-size: 7px; }
.service-state { display: inline-flex; align-items: center; gap: 4px; font-size: 7px; font-weight: 900; }
.service-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #35bd5e; }
.service-state.warn::before { background: #f1a421; }
.service-state.bad::before { background: #e34b4b; }
.service-state.unknown::before { background: #aab1bb; }

.insight-list { display: flex; flex-direction: column; gap: 9px; }
.insight-item { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #edf0f4; border-radius: 10px; background: #fff; }
.insight-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #eaf8ee; color: #2b8d3b; font-size: 11px; font-weight: 900; }
.insight-item.warning .insight-icon { background: #fff3dd; color: #af7106; }
.insight-item.critical .insight-icon { background: #ffeded; color: #c33e3e; }
.insight-item.info .insight-icon { background: #eaf4ff; color: #2c78c2; }
.insight-copy strong { display: block; margin-bottom: 3px; font-size: 9px; }
.insight-copy span { color: var(--muted); font-size: 7px; line-height: 1.45; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-action { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: .16s ease; cursor: pointer; }
.quick-action-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 900; }
.quick-action strong { display: block; margin-bottom: 2px; font-size: 9px; }
.quick-action span { color: var(--muted); font-size: 7px; }
.quick-action b { color: #7c8796; font-size: 15px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.metric-card { padding: 14px; }
.metric-card span { color: var(--muted); font-size: 8px; }
.metric-card strong { display: block; margin: 7px 0 4px; font-size: 22px; letter-spacing: -.035em; }
.metric-card small { color: #8f98a4; font-size: 7px; }
.metric-accent { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #edf0f4; }
.metric-accent i { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.table-card { overflow: hidden; margin-bottom: 14px; }
.table-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.table-card-header h2 { margin: 0; font-size: 12px; }
.table-actions { display: flex; gap: 7px; align-items: center; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid #eef0f3; text-align: left; font-size: 8px; white-space: nowrap; }
th { background: #f8f9fb; color: #7e8897; font-size: 7px; letter-spacing: .03em; }
td strong { font-size: 8px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: #f8fafc; }
.state-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 7px; font-weight: 900; }
.state-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #35bd5e; }
.state-chip.warning::before { background: #f1a421; }
.state-chip.critical::before { background: #e34b4b; }
.state-chip.neutral::before { background: #aab1bb; }

.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar .field { min-width: 170px; }
.filter-chip { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: #657184; font-size: 8px; }
.filter-chip.active { border-color: #9ec5eb; background: #eaf4ff; color: #2b78c2; font-weight: 800; }

.command-card { overflow: hidden; margin-bottom: 14px; }
.command-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 14px 15px; border-bottom: 1px solid var(--line); background: linear-gradient(#fff, #fbfcfd); }
.command-header h2 { margin: 3px 0 4px; font-size: 12px; }
.command-header p { margin: 0; color: var(--muted); font-size: 8px; }
.command-list { padding: 4px 15px 9px; }
.command-row { display: grid; grid-template-columns: 145px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef0f3; }
.command-row:last-child { border-bottom: 0; }
.command-meta strong { display: block; margin-bottom: 2px; font-size: 8px; }
.command-meta span { color: var(--muted); font-size: 7px; }
.command-code { overflow-x: auto; padding: 9px 10px; border-radius: 8px; background: #192231; color: #d9e4f2; font: 8px/1.45 "SFMono-Regular", Consolas, monospace; white-space: nowrap; }
.copy-btn { height: 31px; padding: 0 10px; border: 1px solid #dfe4ea; border-radius: 8px; background: #fff; color: #526174; font-size: 7px; font-weight: 900; }
.command-note { margin: 0 15px 13px; padding: 9px 10px; border: 1px solid #f0dfb9; border-radius: 8px; background: #fff8e8; color: #86651e; font-size: 7px; line-height: 1.5; }

.log-viewer { overflow: hidden; margin-bottom: 14px; border-radius: var(--radius); background: #192231; box-shadow: var(--shadow); }
.log-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #2b3749; color: #dce6f1; }
.log-toolbar strong { font-size: 9px; }
.log-body { max-height: 520px; overflow: auto; padding: 13px; color: #c1ccda; font: 8px/1.65 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; }
.log-line.error { color: #ff9b9b; }
.log-line.warn { color: #ffd27c; }
.log-line.info { color: #a8d3ff; }

.connection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.connection-card { min-height: 155px; padding: 15px; }
.connection-card h3 { margin: 0 0 9px; font-size: 12px; }
.connection-card code { display: block; margin-top: 10px; padding: 9px; border-radius: 8px; background: #f5f7fa; color: #667386; font: 7px/1.5 monospace; word-break: break-all; }

.loading-box { min-height: 260px; display: grid; place-items: center; border: 1px dashed #dce2e9; border-radius: var(--radius); background: #fff; color: #818b99; font-size: 9px; }
.spinner { width: 24px; height: 24px; margin: 0 auto 9px; border: 3px solid #e3e8ee; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.error-box { margin-bottom: 14px; padding: 14px; border: 1px solid #f0caca; border-radius: 11px; background: #fff2f2; color: #a73b3b; font-size: 8px; line-height: 1.65; }
.empty-box { padding: 25px; border: 1px dashed #dce2e9; border-radius: 11px; background: #fafbfd; color: #8993a0; text-align: center; font-size: 9px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; padding: 11px 14px; border-radius: 9px; background: #192231; color: #fff; box-shadow: 0 12px 30px rgba(16,24,38,.25); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .2s ease; font-size: 9px; }
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }

@media (max-width: 1400px) {
  .node-fleet { grid-template-columns: repeat(4, minmax(115px, 1fr)); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1120px) {
  .radial-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-main-side { grid-template-columns: 1fr; }
  .global-search { width: 190px; }
  .last-updated { display: none; }
}
@media (max-width: 850px) {
  .sidebar { transform: translateX(-100%); transition: .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-menu { display: inline-grid; place-items: center; }
  .topbar { padding: 0 12px; }
  .global-search { display: none; }
  .content { padding: 14px; }
  .page-header { flex-direction: column; }
  .grid-2, .grid-3, .radial-grid, .metric-grid, .connection-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { flex-wrap: wrap; }
  .hero-meta { width: 100%; margin-left: 59px; justify-content: flex-start; }
  .donut-layout { grid-template-columns: 1fr; }
  .command-row { grid-template-columns: 1fr; }
  .copy-btn { justify-self: start; }
  .node-fleet { grid-template-columns: repeat(2, minmax(125px, 1fr)); }
}
@media (max-width: 520px) {
  .refresh-control { display: none; }
  .service-grid, .quick-actions, .node-fleet { grid-template-columns: 1fr; }
  .hero-meta { margin-left: 0; gap: 18px; }
  .page-tools { width: 100%; flex-wrap: wrap; }
  .select { flex: 1; }
}
.bar.red i{background:linear-gradient(90deg,#f58a8a,#e64a4a)}
.chart-card > .metric-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
