/* Keep Chinese labels intact and supporting text readable on narrow screens. */
.filter-bar { flex-wrap: wrap; }
.filter-bar label { white-space: nowrap; flex-shrink: 0; }
.filter-count { flex-basis: 100%; margin-left: 0; font-size: 11px; }
.metric-top, .metric-bottom, .metric-state, .hero-bottom, .hero-meta,
.brand-sub, .quiet-tag, .chart-caption, .source-footnote p, .page-footer,
.refresh-time, .card-heading p, .environment-note p, .alarm-record-data,
.history-summary, .stat-card-note, .timeline-entry time { font-size: 11px; }
.page-heading p:not(.eyebrow), .message-banner, .quality-notice { font-size: 12px; }
.connection-card { padding-top: 20px; padding-bottom: 20px; }
.connection-card .card-heading { margin-bottom: 16px; }
.connection-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 0; }
.connection-item { min-width: 0; padding: 12px 14px; background: #f8fafc; border-radius: 9px; }
.connection-item dt { font-size: 11px; color: #7e91a6; }
.connection-item dd { margin: 7px 0 5px; font-size: 13px; font-weight: 500; color: #526e89; overflow-wrap: anywhere; }
.connection-item p { font-size: 11px; color: #8799ad; line-height: 1.7; overflow-wrap: anywhere; }
.hero-top { flex-wrap: wrap; }
.hero-copy { min-width: 0; max-width: calc(100% - 240px); }
.hero-bottom { gap: 8px 20px; }
.hero-bottom span { overflow-wrap: anywhere; }
.chart-tooltip { max-width: min(280px,100%); white-space: normal; }
.tooltip-quality { font-size: 10px; color: #e9c5a0; line-height: 1.6; margin-top: 4px; }
@media (max-width:1100px) {
  .connection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-copy { max-width: calc(100% - 140px); }
}
@media (max-width:700px) {
  .nav-button, .filter-bar label, .filter-bar select, .environment-label,
  .history-controls input, .alarm-filter-row select, .alarm-filter-row label {
    font-size: 12px;
  }
  .nav-button { padding: 12px 8px; }
  .nav-button svg { display: none; }
  .metric-bottom { flex-wrap: wrap; gap: 5px; }
  .source-footnote p { line-height: 1.7; }
  .connection-card { padding: 17px; }
  .connection-grid { gap: 10px; }
  .connection-item { padding: 11px; }
  .connection-item dd { font-size: 12px; }
  .hero-copy { max-width: 100%; }
  .hero-building { opacity: .25; }
  .hero-bottom { max-width: 100%; }
}
@media (max-width:360px) {
  .connection-grid { grid-template-columns: minmax(0,1fr); }
}
