:root {
  --bg: #070b14;
  --bg-elev: rgba(15, 22, 36, 0.88);
  --bg-card: rgba(17, 25, 40, 0.78);
  --bg-panel: rgba(255, 255, 255, 0.03);
  --bg-soft: rgba(255, 255, 255, 0.045);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: #f1f5f9;
  --muted: #8b9bb4;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --cyan: #22d3ee;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --ring-track: rgba(148, 163, 184, 0.14);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] {
  --bg: #f3f6fb;
  --bg-elev: rgba(255, 255, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-panel: rgba(15, 23, 42, 0.025);
  --bg-soft: rgba(15, 23, 42, 0.045);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --cyan: #0284c7;
  --ring-track: rgba(15, 23, 42, 0.09);
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.tabular { font-variant-numeric: tabular-nums; }

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.bg-orb-1 {
  width: 460px;
  height: 460px;
  top: -140px;
  left: -80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
}
.bg-orb-2 {
  width: 420px;
  height: 420px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
}
html[data-theme="light"] .bg-orb { opacity: 0.25; }

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
.brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.brand h1 {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ws-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--muted);
}
.ws-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.ws-badge.connected {
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.3);
}
.ws-badge.connected .ws-dot {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulseDot 2s infinite;
}
.ws-badge.disconnected {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}
.ws-badge.disconnected .ws-dot { background: var(--red); }

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.topbar-actions { display: flex; gap: 9px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  backdrop-filter: blur(12px);
}
.btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border-color: rgba(59, 130, 246, 0.5);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: var(--primary);
}
.btn-ghost { background: var(--bg-soft); }
.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.32);
}
.btn-sm { padding: 4px 10px; font-size: 0.78rem; border-radius: 8px; }
.btn-icon {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.15s ease;
}
.btn-icon:hover { background: var(--border); }
.full-width { width: 100%; }

/* Summary KPIs */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.summary-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.summary-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.summary-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  opacity: 0.85;
}
.kpi-green::after { background: linear-gradient(90deg, var(--green), transparent); }
.kpi-blue::after { background: linear-gradient(90deg, var(--primary), transparent); }
.kpi-cyan::after { background: linear-gradient(90deg, var(--cyan), transparent); }
.kpi-amber::after { background: linear-gradient(90deg, var(--amber), transparent); }

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  background: var(--bg-soft);
  color: var(--muted);
}
.kpi-green .kpi-icon { color: var(--green); background: rgba(16, 185, 129, 0.12); }
.kpi-blue .kpi-icon { color: var(--primary); background: rgba(59, 130, 246, 0.12); }
.kpi-cyan .kpi-icon { color: var(--cyan); background: rgba(34, 211, 238, 0.12); }
.kpi-amber .kpi-icon { color: var(--amber); background: rgba(245, 158, 11, 0.12); }

.summary-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.summary-value { font-size: 1.48rem; font-weight: 700; letter-spacing: -0.02em; }
.summary-sub { font-size: 0.81rem; color: var(--muted); margin-top: 4px; }

/* Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.group-pills, .range-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.toolbar-right { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.search-wrap { position: relative; }
.search-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}
.search-input { width: 240px; padding-left: 30px; background: var(--bg-card); }
.view-switch {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.view-switch .btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 7px;
  box-shadow: none;
  transform: none;
}
.view-switch .btn.active {
  background: var(--primary);
  color: #fff;
}

/* Node Cards Grid */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.node-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.node-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(59, 130, 246, 0.2);
}
html[data-theme="light"] .node-card:hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.25);
}
.node-card.offline { opacity: 0.72; }

.node-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.node-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.flag-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.node-name-col { min-width: 0; }
.node-name {
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node-sub {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  flex-shrink: 0;
}
.status-online {
  background: rgba(16, 185, 129, 0.14);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.status-offline {
  background: rgba(239, 68, 68, 0.14);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.node-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.73rem;
  color: var(--muted);
}
.chip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}
.chip-warn { color: var(--amber); border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); }
.chip-danger { color: var(--red); border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }

/* Radial Ring Gauges */
.gauges-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 8px;
}
.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.ring-wrap {
  position: relative;
  width: 60px;
  height: 60px;
}
.ring-svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--ring-track); stroke-width: 5.5; }
.ring-fg {
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s ease, stroke 0.3s ease;
}
.ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.gauge-label { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.gauge-sub { font-size: 0.7rem; color: var(--muted); }

/* Network + Sparkline Box */
.net-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
}
.net-speeds {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}
.up { color: #38bdf8; }
.down { color: var(--green); }
.spark-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.sparkline { width: 112px; height: 28px; display: block; }
.load-text { font-size: 0.71rem; color: var(--muted); }

/* Traffic Progress Bar */
.metric-row { display: flex; flex-direction: column; gap: 5px; }
.metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}
.metric-label strong { color: var(--text); font-weight: 600; }
.bar-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.bar-ok { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-danger { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Ping Pills */
.ping-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.ping-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-weight: 500;
}
.ping-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ping-good { color: var(--green); }
.ping-mid { color: var(--amber); }
.ping-bad { color: var(--red); }

/* Table View */
.nodes-table-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.nodes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.nodes-table th, .nodes-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.nodes-table th { color: var(--muted); font-weight: 600; font-size: 0.77rem; }
.nodes-table tbody tr { cursor: pointer; transition: background 0.14s ease; }
.nodes-table tbody tr:hover { background: var(--bg-soft); }
.nodes-table tbody tr:last-child td { border-bottom: none; }

.empty-state {
  text-align: center;
  padding: 68px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 18px;
}
.empty-icon { font-size: 2.2rem; margin-bottom: 8px; }
.empty-title { margin: 0 0 6px; font-weight: 600; font-size: 1.05rem; }
.muted { color: var(--muted); font-size: 0.83rem; }
.hidden { display: none !important; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-elev);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.16s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-sm { max-width: 410px; }
.modal-lg { max-width: 940px; }
.modal-xl { max-width: 1000px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { margin: 0; font-size: 1.15rem; }
.modal-header p { margin: 3px 0 0; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.admin-header-actions { display: flex; gap: 8px; align-items: center; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.spec-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 13px;
}
.spec-k { font-size: 0.74rem; color: var(--muted); }
.spec-v { font-size: 0.88rem; font-weight: 600; margin-top: 3px; word-break: break-word; }

.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.chart-section-label { font-weight: 600; font-size: 0.95rem; }
.charts-stack { display: flex; flex-direction: column; gap: 14px; }
.chart-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.chart-title { font-size: 0.86rem; font-weight: 600; }
.chart-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.76rem; color: var(--muted); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.canvas-wrap { position: relative; }
canvas { width: 100%; display: block; cursor: crosshair; }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 0.76rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 22px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: 0.15s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.pane-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pane-head h3 { margin: 0; font-size: 1rem; }

.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-stack label, .form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 0.82rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.form-actions { display: flex; gap: 8px; margin-top: 14px; }
.form-error { color: var(--red); font-size: 0.84rem; }
.checkbox-row { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--text) !important; font-size: 0.9rem !important; }

.node-editor {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.admin-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.cmd-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 11px;
}
html[data-theme="light"] .cmd-box { background: rgba(15, 23, 42, 0.05); }
.cmd-box code {
  flex: 1;
  font-size: 0.77rem;
  overflow-x: auto;
  white-space: nowrap;
  color: #93c5fd;
}
html[data-theme="light"] .cmd-box code { color: #1d4ed8; }

.ping-targets-edit { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.ping-target-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 90px auto;
  gap: 8px;
  align-items: center;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--bg-elev);
  backdrop-filter: blur(14px);
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 11px;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .nodes-grid { grid-template-columns: 1fr; }
  .search-wrap, .search-input { width: 100%; }
  .ping-target-row { grid-template-columns: 1fr 1fr; }
}
