.chart-box {
  height: 22em;
  margin: 1rem;
}
.chart-box .echarts-tooltip-title {
  font-weight: bold;
  margin-bottom: 0.5em;
}
.status-badge {
  display: inline-block;
  padding: 0.1em 0.5em;
  font-size: 0.8em;
  background: var(--color-panel-light, #f5f7fa);
  color: var(--color-text-sub, #999);
  border-radius: 3px;
  margin-left: 0.5em;
}
.status-badge.on {
  background: var(--color-text-active-light, #e6f7ff);
  color: var(--color-text-active, #2376b7);
}
.ui-message {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: flex-start;
  border-radius: 4px;
  line-height: 1.5;
}
.ui-message.warning {
  background: var(--color-panel-light, #fffbe6);
  border: 1px solid #ffe58f;
  color: #d48806;
}
.ui-message.warning .icon {
  color: #faad14;
}
.ui-message .icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}
.ui-copy-box {
  display: flex;
  align-items: center;
}
.ui-copy-box .ui.button.copy {
  margin-left: 0.5rem;
}
.port-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.port-labels .ui.label {
  margin: 0;
  background: var(--color-panel-light, #f5f7fa);
  color: var(--color-text, #333);
  border: 1px solid var(--color-border, #f0f0f0);
  font-family: monospace;
}
.dark .chart-box {
  color: var(--color-text-dark, #fff);
}
.dark .status-badge {
  background: var(--color-panel-dark-light, #2a2a2a);
  color: var(--color-text-sub-dark, #666);
}
.dark .status-badge.on {
  background: var(--color-text-active-dark-light, #1a3a4f);
  color: var(--color-text-active-dark, #4a9eff);
}
.dark .ui-message.warning {
  background: #2b2111;
  border-color: #7e5c00;
  color: #ffd666;
}
.dark .ui-message.warning .icon {
  color: #faad14;
}
.dark .ui-copy-box {
  color: var(--color-text-dark, #fff);
}
.dark .port-labels .ui.label {
  background: var(--color-panel-dark-light, #2a2a2a);
  color: var(--color-text-dark, #fff);
  border-color: var(--color-border-dark, #333);
}
