:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --card-sub: #f8fafc;
  --border: #e6ebf2;
  --border-soft: #eef2f6;
  --text: #1e293b;
  --text-sec: #64748b;
  --text-muted: #94a3b8;

  --blue: #3b82f6;
  --blue-soft: #e8f1ff;
  --purple: #8b5cf6;
  --purple-soft: #f0eaff;
  --orange: #f97316;
  --orange-soft: #fff1e6;
  --teal: #14b8a6;
  --teal-soft: #e6faf7;

  --green: #16a34a;
  --green-bright: #10b981;
  --green-bg: #dcfce7;
  --green-text: #15803d;

  --amber: #f59e0b;
  --red: #ef4444;
  --block-empty: #e8edf4;

  --radius-card: 18px;
  --radius-sub: 12px;
  --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.txt-green { color: var(--green); }
.txt-red { color: var(--red); }
.txt-amber { color: var(--amber); }

.page-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 14px 36px;
}

/* Topbar */
.topbar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  flex-shrink: 0;
}
.brand-logo span {
  border-radius: 2.5px;
  display: block;
}
.brand-logo span:nth-child(1) { background: var(--blue); }
.brand-logo span:nth-child(2) { background: var(--purple); }
.brand-logo span:nth-child(3) { background: var(--orange); }
.brand-logo span:nth-child(4) { background: var(--green-bright); }

.brand-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-text p {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--text-sec);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  font-family: inherit;
}
.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--card-sub);
  border-color: #cbd5e1;
}
.btn-soft {
  background: #eef2ff;
  color: #4338ca;
  border-color: #dbe4ff;
}
.btn-soft:hover {
  background: #e0e7ff;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: #2563eb;
}
.dot-demo {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #6366f1;
}

/* Summary Strip */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.summary-chip {
  background: var(--card-sub);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.chip-label {
  font-size: 11.5px;
  color: var(--text-sec);
  white-space: nowrap;
}
.chip-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-live {
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-text);
  background: #f0fdf4;
  border-color: #dcfce7;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}
.live-dot.offline {
  background: #94a3b8;
  animation: none;
  box-shadow: none;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.group-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.group-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--card-sub);
  color: var(--text-sec);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.14s ease;
}
.group-pill.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.search-box {
  position: relative;
  min-width: 210px;
  flex: 0 1 260px;
}
.search-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 6px 10px 6px 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-sub);
  font-size: 12.5px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.search-box input:focus {
  border-color: var(--blue);
  background: #fff;
}

/* Demo Banner */
.demo-banner {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  border-radius: 12px;
  padding: 9px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.link-btn {
  border: none;
  background: #fff;
  color: #4338ca;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(365px, 1fr));
  gap: 14px;
}

/* Single Node Card */
.node-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 15px 15px 13px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.node-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  border-color: #d6dfeb;
}
.node-card.is-offline {
  opacity: 0.78;
}
.node-card.is-offline .card-header .proto-badge {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

/* 1. Card Top Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-head-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.node-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.node-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.proto-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--mono);
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid #bbf7d0;
  flex-shrink: 0;
  line-height: 1.25;
}
.card-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.chart-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-sub);
  color: var(--text-sec);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
  padding: 0;
}
.chart-btn:hover {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: #bfdbfe;
}
.chart-btn svg {
  width: 15px;
  height: 15px;
}
.os-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--card-sub);
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
}
.os-badge svg {
  width: 16px;
  height: 16px;
}

/* 2. Hardware 2x2 Grid */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.hw-box {
  background: var(--card-sub);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sub);
  padding: 9px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.hw-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}
.hw-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sec);
}
.hw-main {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.hw-sub {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: -2px;
}

/* Segmented Pixel Progress Bar */
.pixel-bar {
  display: grid;
  grid-template-columns: repeat(var(--segs, 16), minmax(0, 1fr));
  gap: 2.5px;
  height: 7px;
  margin-top: 2px;
}
.pixel-bar .seg {
  border-radius: 2px;
  background: var(--block-empty);
  transition: background-color 0.25s ease;
}
.pixel-bar.tone-blue .seg.on { background: var(--blue); }
.pixel-bar.tone-purple .seg.on { background: var(--purple); }
.pixel-bar.tone-orange .seg.on { background: var(--orange); }
.pixel-bar.tone-teal .seg.on { background: var(--teal); }
.pixel-bar.tone-green .seg.on { background: var(--green-bright); }
.pixel-bar.tone-amber .seg.on { background: var(--amber); }
.pixel-bar.tone-red .seg.on { background: var(--red); }

/* 3. Real-time Network Area */
.net-panel {
  background: var(--card-sub);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sub);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.net-speed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.net-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.net-col.right {
  text-align: right;
  align-items: flex-end;
}
.net-dir {
  font-size: 11px;
  color: var(--text-sec);
  font-weight: 600;
}
.net-rate {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.net-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.dot-matrix {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
  padding: 1px 4px;
}
.dm-col {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.dm-dot {
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: #dbe4ef;
  transition: background-color 0.25s ease;
}
.dm-dot.active {
  background: var(--green-bright);
}
.dm-dot.mid {
  background: #6ee7b7;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green-text);
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.35;
}
.live-pill.offline {
  color: var(--text-sec);
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.live-pill .live-dot {
  width: 5.5px;
  height: 5.5px;
}

.net-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--text-sec);
}
.net-total-row strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
  margin-left: 4px;
}

/* 4. Traffic Quota Bar */
.quota-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 1px;
}
.quota-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}
.quota-left {
  color: var(--text-sec);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quota-left strong {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
}
.quota-right {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-sec);
  white-space: nowrap;
}
.quota-bar {
  --segs: 24;
  height: 8px;
  gap: 2.5px;
}

/* 5. Connections Row */
.conn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.conn-pill {
  background: var(--card-sub);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}
.conn-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sec);
  font-weight: 600;
}
.conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.conn-dot.tcp { background: var(--blue); }
.conn-dot.udp { background: var(--purple); }
.conn-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
  font-size: 12.5px;
}

/* 6. Three-Carrier Ping & Loss Panel */
.ping-panel {
  background: var(--card-sub);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sub);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}
.ping-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.isp-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  min-width: 48px;
}
.ping-ms {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 700;
  min-width: 44px;
  text-align: right;
  white-space: nowrap;
}
.spark-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex: 1;
  max-width: 96px;
  overflow: hidden;
}
.spark-bar {
  width: 3px;
  border-radius: 1.5px;
  background: var(--block-empty);
  flex-shrink: 0;
}
.spark-bar.ok { background: var(--green-bright); }
.spark-bar.warn { background: var(--amber); }
.spark-bar.bad { background: var(--red); }

.ping-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.loss-pct {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}
.loss-blocks {
  display: flex;
  align-items: center;
  gap: 2px;
}
.loss-blk {
  width: 6px;
  height: 10px;
  border-radius: 2px;
  background: var(--block-empty);
}
.loss-blk.ok { background: var(--green-bright); }
.loss-blk.warn { background: var(--amber); }
.loss-blk.bad { background: var(--red); }

/* 7. Card Footer */
.card-footer {
  padding-top: 9px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-sec);
}
.foot-meta strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}
.extra-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.mini-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-sec);
  background: var(--card-sub);
  border: 1px solid var(--border-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Empty State */
.empty-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 42px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  max-width: 560px;
  margin: 24px auto;
}
.empty-blocks {
  display: inline-flex;
  gap: 5px;
  margin-bottom: 14px;
}
.empty-blocks i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: block;
}
.empty-blocks i:nth-child(1) { background: var(--blue); }
.empty-blocks i:nth-child(2) { background: var(--purple); }
.empty-blocks i:nth-child(3) { background: var(--orange); }
.empty-blocks i:nth-child(4) { background: var(--teal); }
.empty-blocks i:nth-child(5) { background: var(--green-bright); }
.empty-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
}
.empty-card p {
  margin: 0 auto 18px;
  max-width: 420px;
  font-size: 13px;
  color: var(--text-sec);
}
.empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  margin-top: 22px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 6px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 1000;
}
.modal-panel {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}
.modal-title-wrap h3 {
  margin: 0;
  font-size: 15.5px;
}
.modal-sub {
  margin: 1px 0 0;
  font-size: 11.5px;
  color: var(--text-sec);
}
.modal-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.range-tabs {
  display: inline-flex;
  background: var(--card-sub);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.range-tabs button {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sec);
  cursor: pointer;
}
.range-tabs button.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-sub);
  color: var(--text-sec);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn svg { width: 16px; height: 16px; }
.modal-body {
  padding: 14px 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chart-card {
  background: var(--card-sub);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 11px 12px;
}
.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sec);
}
.lg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}
.chart-canvas {
  width: 100%;
  min-height: 120px;
}
.chart-empty {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile Portrait Optimization */
@media (max-width: 640px) {
  .page-wrap {
    padding: 10px 10px 28px;
  }
  .topbar {
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 12px;
  }
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .node-card {
    padding: 13px 12px 12px;
    border-radius: 16px;
    gap: 10px;
  }
  .hw-grid {
    gap: 7px;
  }
  .hw-box {
    padding: 8px 9px;
  }
  .hw-main {
    font-size: 13px;
  }
  .pixel-bar {
    gap: 2px;
    height: 6.5px;
  }
  .quota-bar {
    --segs: 20;
    gap: 2px;
  }
  .net-rate {
    font-size: 12.5px;
  }
  .spark-bars {
    max-width: 72px;
  }
  .loss-blk {
    width: 5px;
    height: 9px;
  }
  .search-box {
    flex: 1 1 100%;
    min-width: 0;
  }
  .modal-panel {
    max-height: 92vh;
    border-radius: 16px;
  }
}
