/* HostResourceCard (wc-data-display-host-resource-card) — dark-cyber 默认 + --dt-* 主题变量 */
.hr-scope {
  background: var(--dt-bg-surface, #0f172a);
  border: 1px solid var(--dt-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--dt-radius-lg, 12px);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--dt-font-sans, "SF Pro Text", -apple-system, "PingFang SC", sans-serif);
  color: var(--dt-text-primary, #f8fafc);
}

.hr-scope.hr-status-offline { opacity: 0.62; }

/* 头部：机器名 + 地址徽标 + 状态徽标 */
.hr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hr-title {
  font-size: 14px; font-weight: 700; color: var(--dt-text-primary, #f8fafc);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hr-addr {
  font-family: var(--dt-font-mono, ui-monospace, Menlo, monospace);
  font-size: 10px; color: var(--dt-text-muted, #64748b);
  border: 1px solid var(--dt-border-default, rgba(255, 255, 255, 0.14));
  border-radius: 9999px; padding: 1px 7px;
}
.hr-badge {
  margin-left: auto; font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 9999px;
  background: rgba(148, 163, 184, 0.14); color: var(--dt-text-muted, #94a3b8);
}
.hr-status-normal .hr-badge   { background: rgba(16, 185, 129, 0.14); color: var(--dt-success, #10b981); }
.hr-status-warning .hr-badge  { background: rgba(245, 158, 11, 0.16); color: var(--dt-warning, #f59e0b); }
.hr-status-critical .hr-badge { background: rgba(239, 68, 68, 0.18); color: var(--dt-danger, #ef4444); }
.hr-status-critical .hr-badge { animation: hr-pulse 2s ease-in-out infinite; }
@keyframes hr-pulse { 50% { opacity: 0.55; } }

.hr-role { font-size: 11px; color: var(--dt-text-secondary, #94a3b8); margin-top: -4px; }

/* 三类地址（IS-260923105112）：外网(frp tag)/LAN/VPN，缺失类别不产生行 */
.hr-addresses {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; margin-top: -4px;
}
.hr-addr-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hr-addr-kind {
  flex: none; width: 34px; text-align: center;
  font-size: 10px; color: var(--dt-text-muted, #64748b);
  background: rgba(148, 163, 184, 0.1); border-radius: 4px; padding: 0 3px;
}
.hr-addr-val {
  font-family: var(--dt-font-mono, ui-monospace, Menlo, monospace);
  color: var(--dt-text-secondary, #94a3b8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hr-addr-tag {
  flex: none; font-size: 9px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--dt-warning, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.4); border-radius: 9999px; padding: 0 6px;
}

/* 资源进度条：label | track | pct | caption 四列 */
.hr-bars { display: flex; flex-direction: column; gap: 8px; }
.hr-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.hr-bar-label {
  flex: 0 0 68px; color: var(--dt-text-secondary, #94a3b8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hr-bar-track {
  flex: 1 1 auto; height: 7px; border-radius: 9999px;
  background: var(--dt-bg-surface-active, rgba(148, 163, 184, 0.16));
  overflow: hidden;
}
.hr-bar-fill {
  display: block; height: 100%; border-radius: 9999px;
  background: var(--dt-success, #10b981);
  transition: width 0.5s ease;
}
.hr-bar-warning .hr-bar-fill { background: var(--dt-warning, #f59e0b); }
.hr-bar-critical .hr-bar-fill { background: var(--dt-danger, #ef4444); }
.hr-bar-pct {
  flex: 0 0 44px; text-align: right;
  font-family: var(--dt-font-mono, ui-monospace, Menlo, monospace);
  font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--dt-text-primary, #f8fafc);
}
.hr-bar-caption {
  flex: 0 0 auto; max-width: 150px;
  font-family: var(--dt-font-mono, ui-monospace, Menlo, monospace);
  color: var(--dt-text-muted, #64748b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 离线态 */
.hr-offline {
  font-size: 12px; color: var(--dt-text-muted, #64748b);
  border: 1px dashed var(--dt-border-default, rgba(255, 255, 255, 0.14));
  border-radius: 8px; padding: 14px 10px; text-align: center;
}

/* 信息行 */
.hr-rows { display: flex; flex-direction: column; gap: 4px; }
.hr-row { display: flex; align-items: baseline; gap: 8px; font-size: 11px; }
.hr-row span { color: var(--dt-text-muted, #64748b); flex-shrink: 0; }
.hr-row b {
  margin-left: auto; font-weight: 500; color: var(--dt-text-secondary, #cbd5e0);
  font-family: var(--dt-font-mono, ui-monospace, Menlo, monospace);
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
