.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 27, 46, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 12px;
}

@keyframes fadeIn {
  from { 
    opacity: 0;
  }
  to { 
    opacity: 1;
  }
}

.modal-content {
  background: var(--surface-color);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-radius: var(--radius-glass);
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.btn-close {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-close:hover {
  background: var(--bg-color);
  border-color: var(--border-color);
  color: var(--text-main);
}

.modal-body {
  padding: 10px 12px 12px;
  overflow-y: auto;
  flex: 1;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.detail-section {
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-category-heading {
  margin: 0 0 8px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-category-heading::before {
  content: '';
  width: 4px;
  height: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  flex-shrink: 0;
}

.detail-subsection {
  margin-top: 6px;
}

.detail-subsection:first-of-type {
  margin-top: 0;
}

.detail-subsection + .detail-subsection {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(100, 116, 139, 0.28);
}

.detail-subheading {
  margin: 0 0 6px 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  width: fit-content;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(196, 181, 253, 0.35);
}

.detail-subheading--inline {
  margin-bottom: 4px;
}

.detail-subheading--minor {
  font-size: 0.68rem;
  margin-top: 8px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(125, 211, 252, 0.35);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px;
}

.detail-grid--cpu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .detail-grid--cpu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.detail-item--span-full {
  grid-column: 1 / -1;
}

.detail-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease;
}

.detail-item:hover {
  border-color: rgba(125, 211, 252, 0.45);
}

.item-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.item-value {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 700;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  letter-spacing: -0.02em;
  text-align: right;
  word-break: break-word;
}

.item-value.emphasize,
.item-value.highlight {
  color: #0284c7;
  font-size: 14px;
  font-weight: 700;
  -webkit-text-fill-color: unset;
  background: none;
}

.item-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-plain {
  margin: 0;
}

.per-core-plain {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(100, 116, 139, 0.22);
}

.per-core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.per-core-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.per-core-chip:hover {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(255, 255, 255, 0.55);
}

.per-core-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.per-core-pct {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.storage-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.storage-plain-row {
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  font-size: 12px;
}

.storage-plain-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.storage-mount {
  font-weight: 600;
  color: var(--text-main);
}

.storage-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.storage-meta {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

/* System Info Styles */
.system-info-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.system-info-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.latency-section-hint {
  margin: 0 0 8px 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 72ch;
}

.info-group-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  width: fit-content;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(249, 168, 212, 0.35);
}

.system-info-grid {
  display: grid;
  gap: 6px;
}

.system-info-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-info-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-info-grid--cols-4 .system-info-item {
  min-height: 54px;
  align-items: center;
}

.system-info-grid--cols-4 .system-info-content:not(.system-info-content--stack) {
  align-items: center;
}

.system-info-grid--cols-4 .system-info-content--stack {
  align-items: flex-start;
}

.system-info-item {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.system-info-item:hover {
  border-color: var(--border-color);
  background: #ffffff;
}

.system-info-item-full {
  grid-column: 1 / -1;
}

.system-info-item-highlight {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(255, 255, 255, 0.52);
}

.system-info-item-highlight:hover {
  border-color: rgba(125, 211, 252, 0.6);
}

.system-info-item-temperature {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.05) 0%, rgba(253, 224, 71, 0.05) 100%);
  border-color: rgba(248, 113, 113, 0.2);
}

.system-info-item-temperature:hover {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, rgba(253, 224, 71, 0.1) 100%);
  border-color: rgba(248, 113, 113, 0.4);
}

.system-info-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.system-info-content--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.system-info-content--stack .system-info-value {
  margin-top: 2px;
  text-align: left;
}

.system-info-sublabel {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.92;
  line-height: 1.25;
}

.system-info-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.system-info-value {
  font-size: 12px;
  color: var(--text-main);
  font-weight: 700;
  word-break: break-word;
  line-height: 1.3;
  text-align: right;
}

.system-info-value.highlight {
  color: #0284c7;
  font-size: 13px;
  font-weight: 700;
  -webkit-text-fill-color: unset;
  background: none;
}

.system-info-value-long {
  font-size: 12px;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
}

.system-info-sub {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.temperature-value {
  color: #f87171;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .system-info-grid--cols-3,
  .system-info-grid--cols-4 {
    grid-template-columns: 1fr;
  }

  .system-info-item-full {
    grid-column: 1;
  }

  .detail-grid--cpu {
    grid-template-columns: 1fr;
  }
}

/* GPU Items */
.gpu-item {
  margin-bottom: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.gpu-item:last-child {
  margin-bottom: 0;
}

.gpu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.gpu-header strong {
  color: var(--text-main);
  font-size: 0.9rem;
}

.gpu-status {
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.gpu-status.ok {
  background: rgba(125, 211, 252, 0.2);
  color: #0369a1;
}

.gpu-status.error {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger-color);
}

.gpu-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gpu-bar-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 60px;
}

.gpu-bar-bg {
  flex: 1;
  height: 8px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gpu-bar {
  height: 100%;
  background: linear-gradient(90deg, #a7f3d0, #d1fae5);
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
}

.gpu-bar-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  min-width: 50px;
  text-align: right;
}

/* Core Usage Circular */
.per-core-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface-hover);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.per-core-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 600;
}

.core-grid-circular {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(160px, 17%), 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.core-item-circular {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* CPU & Memory Section Circular */
.cpu-section-content,
.memory-section-content {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--surface-hover);
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.cpu-circular-group {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}

.cpu-circular,
.cpu-load-circular,
.memory-circular {
  flex-shrink: 0;
}

/* Storage Circular */
.storage-grid-circular {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.storage-item-circular {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-hover);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.storage-details-mini {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
}

/* Docker Containers Section */
.containers-section {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: var(--radius-lg);
}

.containers-section h4 {
  margin: 0 0 1rem 0;
  font-size: 15px;
  color: #2c3e50;
  font-weight: 600;
}

.containers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 12px;
}

/* Docker Images Section */
.docker-images-section {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: var(--radius-lg);
}

.docker-images-section h4 {
  margin: 0 0 1rem 0;
  font-size: 15px;
  color: #2c3e50;
  font-weight: 600;
}

/* Docker Containers and Images Names */
.docker-containers-section {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.docker-containers-section h4 {
  margin: 0 0 6px 0;
}

.docker-names-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docker-name-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  transition: all 0.3s ease;
}

.docker-name-tag.running {
  background: linear-gradient(135deg, rgba(134, 239, 172, 0.1) 0%, rgba(167, 243, 208, 0.1) 100%);
  color: #059669;
  border: 1px solid rgba(134, 239, 172, 0.3);
}

.docker-name-tag.stopped {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(203, 213, 225, 0.1) 100%);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.docker-name-tag.image {
  background: linear-gradient(135deg, rgba(134, 239, 172, 0.08) 0%, rgba(167, 243, 208, 0.08) 100%);
  color: var(--text-main);
  border: 1px solid rgba(134, 239, 172, 0.2);
}

.docker-name-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* System Logs Section */
.logs-container {
  background: rgba(15, 23, 42, 0.78);
  color: rgba(248, 250, 252, 0.88);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 11px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.55;
}

.logs-container::-webkit-scrollbar {
  width: 6px;
}

.logs-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
}

.log-line {
  padding: 4px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.log-line:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 1);
}

.log-line:last-child {
  border-bottom: none;
}

/* Process — 每进程一行 */
.process-compact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  min-width: 0;
}

.process-compact__head,
.process-compact__row {
  display: grid;
  grid-template-columns:
    1.75rem
    minmax(0, 1fr)
    minmax(3.25rem, 4.25rem)
    minmax(2.75rem, 3.5rem)
    minmax(5.5rem, 7.5rem);
  gap: 6px 10px;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.process-compact__head {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  padding-bottom: 6px;
  margin-bottom: 1px;
  border-bottom: 1px dashed rgba(100, 116, 139, 0.28);
}

.process-compact__head span:nth-child(1),
.process-compact__rank {
  text-align: center;
}

.process-compact__head span:nth-child(4),
.process-compact__head span:nth-child(5),
.process-compact__num {
  text-align: right;
}

.process-compact__row {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.process-compact__row:hover {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(125, 211, 252, 0.42);
}

.process-compact__rank {
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  padding: 3px 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.55), rgba(196, 181, 253, 0.5));
  color: #0f172a;
}

.process-compact__row:nth-child(2) .process-compact__rank {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.65), rgba(251, 207, 232, 0.55));
}

.process-compact__row:nth-child(3) .process-compact__rank {
  background: linear-gradient(135deg, rgba(165, 243, 252, 0.55), rgba(125, 211, 252, 0.5));
}

.process-compact__row:nth-child(4) .process-compact__rank {
  background: linear-gradient(135deg, rgba(233, 213, 255, 0.55), rgba(196, 181, 253, 0.5));
}

.process-compact__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.process-compact__pid {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.process-compact__num {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.process-compact__mem {
  white-space: nowrap;
}

.process-compact__mem-abs {
  font-weight: 500;
  font-size: 10px;
  color: var(--text-secondary);
}

.process-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
}

.metric-bar-container {
  width: 100%;
  height: 6px;
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.metric-bar {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.metric-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.cpu-bar {
  background: linear-gradient(90deg, #86efac 0%, #a7f3d0 50%, #d1fae5 100%);
  box-shadow: 0 0 8px rgba(134, 239, 172, 0.4);
}

.memory-bar {
  background: linear-gradient(90deg, #6ee7b7 0%, #86efac 50%, #a7f3d0 100%);
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.4);
}

.process-command {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--surface-hover);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  overflow: hidden;
  position: relative;
}

.command-icon {
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0.7;
}

.command-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
}

/* Network — 每接口一行 */
.network-compact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  min-width: 0;
}

.network-compact__head,
.network-compact__row {
  display: grid;
  grid-template-columns:
    minmax(3.75rem, 6rem)
    minmax(6.5rem, 1fr)
    minmax(7rem, 1.2fr)
    minmax(4.25rem, auto)
    minmax(4.25rem, auto);
  gap: 6px 12px;
  align-items: center;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
}

.network-compact__head {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  padding-bottom: 6px;
  margin-bottom: 1px;
  border-bottom: 1px dashed rgba(100, 116, 139, 0.28);
}

.network-compact__head span:nth-child(4),
.network-compact__head span:nth-child(5),
.network-compact__num {
  text-align: right;
}

.network-compact__row {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.network-compact__row:hover {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(125, 211, 252, 0.42);
}

.network-compact__iface {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-compact__ip {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-compact__ip--ok {
  display: inline-block;
  max-width: 100%;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: rgba(125, 211, 252, 0.2);
  color: #0369a1;
  border: 1px solid rgba(125, 211, 252, 0.35);
}

.network-compact__placeholder {
  color: var(--text-light);
  font-size: 11px;
}

.network-compact__mac {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 11px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-compact__num {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .containers-grid {
    grid-template-columns: 1fr;
  }

  .process-compact {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .process-compact__head,
  .process-compact__row {
    min-width: 28rem;
  }

  .network-compact {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .network-compact__head,
  .network-compact__row {
    min-width: 36rem;
  }
}
