/* UPS status page */
.ups-module { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.ups-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; }
.ups-eyebrow, .ups-wait-kicker, .ups-unit-kicker { color: var(--text-secondary); font-size: 11px; font-weight: 600; letter-spacing: .55px; }
.ups-eyebrow { display: flex; align-items: center; gap: 7px; }
.ups-head-dot { width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; }
.ups-page-head h1 { margin: 5px 0 2px; color: var(--text-primary); font-size: 23.1px; font-weight: 650; }
.ups-page-head p { margin: 0; color: var(--text-secondary); font-size: 13.2px; }
.ups-head-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ups-count-pill, .ups-size-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 12.1px; font-weight: 600; white-space: nowrap; }
.ups-count-pill span { color: #94a3b8; font-weight: 400; }
.ups-size-pill { background: #f8fafc; color: var(--text-secondary); font-weight: 500; }
.ups-wait-card { display: flex; align-items: flex-start; gap: 16px; padding: 26px 24px; }
.ups-wait-card-compact { padding: 20px 22px; }
.ups-wait-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; color: #2563eb; font-family: var(--font-mono); font-size: 13.2px; font-weight: 600; }
.ups-wait-kicker { color: #2563eb; }
.ups-wait-card h2 { margin: 5px 0 5px; color: var(--text-primary); font-size: 17.6px; font-weight: 600; }
.ups-wait-card p { margin: 0; color: var(--text-secondary); font-size: 13.2px; line-height: 1.6; }
.ups-wait-card code { display: inline-block; margin-top: 11px; padding: 6px 9px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-panel); color: var(--text-primary); font-family: var(--font-mono); font-size: 12.1px; }
.ups-wait-card p code { margin: 0; padding: 1px 4px; font-size: 11px; }
.ups-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ups-summary-card { min-height: 88px; padding: 14px 16px; border-top: 2px solid #dbeafe; }
.ups-summary-card.tone-load { border-top-color: #22c55e; }
.ups-summary-card.tone-input { border-top-color: #3b82f6; }
.ups-summary-card.tone-output { border-top-color: #f59e0b; }
.ups-summary-card.tone-battery { border-top-color: #8b5cf6; }
.ups-summary-label { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 11px; font-weight: 500; }
.ups-summary-dot { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.tone-load .ups-summary-dot { background: #22c55e; }
.tone-input .ups-summary-dot { background: #3b82f6; }
.tone-output .ups-summary-dot { background: #f59e0b; }
.tone-battery .ups-summary-dot { background: #8b5cf6; }
.ups-summary-value { display: flex; align-items: baseline; gap: 5px; margin-top: 9px; color: var(--text-primary); font-size: 24.2px; font-weight: 650; line-height: 1; }
.ups-summary-value small, .ups-metric strong small { color: var(--text-secondary); font-family: var(--font-sans); font-size: 11px; font-weight: 500; }
.ups-unit-card { overflow: hidden; padding: 0; }
.ups-unit-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border-default); }
.ups-unit-name-wrap { display: flex; align-items: center; gap: 11px; }
.ups-unit-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; }
.ups-unit-icon span { position: relative; display: block; width: 18px; height: 11px; border: 1.5px solid #3b82f6; border-radius: 3px; }
.ups-unit-icon span::before { position: absolute; top: 3px; right: -4px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: #3b82f6; content: ""; }
.ups-unit-icon span::after { position: absolute; top: 2px; left: 5px; width: 5px; height: 5px; border-left: 1.5px solid #3b82f6; border-right: 1.5px solid #3b82f6; content: ""; }
.ups-unit-kicker { font-size: 9.9px; }
.ups-unit-head h2 { margin: 1px 0 0; color: var(--text-primary); font-size: 17.6px; font-weight: 650; }
.ups-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ups-status-pill > span { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.ups-status-pill.is-online { background: #ecfdf5; color: #15803d; }
.ups-status-pill.is-online > span { background: #22c55e; }
.ups-status-pill.is-offline { background: #fef2f2; color: #b91c1c; }
.ups-status-pill.is-offline > span { background: #ef4444; }
.ups-status-pill.is-unknown { background: #f8fafc; color: #64748b; }
.ups-unit-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border-default); background: #fbfcfe; }
.ups-unit-meta > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ups-unit-meta span { color: var(--text-secondary); font-size: 11px; }
.ups-unit-meta strong { overflow: hidden; color: var(--text-primary); font-size: 12.1px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ups-unit-meta strong.mono { font-family: var(--font-mono); font-size: 11px; font-weight: 400; }
.ups-section-heading { display: flex; align-items: center; gap: 7px; margin: 15px 20px 8px; color: var(--text-primary); font-size: 12.1px; font-weight: 600; }
.ups-section-heading > span { width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; }
.ups-section-heading > span.battery-dot { background: #8b5cf6; }
.ups-section-heading > span.energy-dot { background: #f59e0b; }
.ups-phase-scroll { overflow-x: auto; margin: 0 20px; }
.ups-phase-table { width: 100%; min-width: 870px; border-collapse: collapse; }
.ups-phase-table th, .ups-phase-table td { padding: 8px 9px; border-bottom: 1px solid var(--border-default); text-align: right; white-space: nowrap; }
.ups-phase-table thead tr:first-child th { color: var(--text-secondary); font-size: 11px; font-weight: 600; text-align: center; }
.ups-phase-table thead tr:first-child th:first-child { text-align: left; }
.ups-phase-table thead tr:nth-child(2) th { color: #94a3b8; font-size: 9.9px; font-weight: 500; }
.ups-phase-table tbody td { color: var(--text-primary); font-size: 12.1px; }
.ups-phase-table tbody td:first-child { text-align: left; }
.ups-phase-table tbody tr:last-child td { border-bottom: 0; }
.ups-phase-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: 12.1px; font-weight: 600; }
.ups-phase-chip::before { width: 6px; height: 6px; border-radius: 2px; background: #ef4444; content: ""; }
.ups-phase-chip.phase-2::before { background: #f59e0b; }
.ups-phase-chip.phase-3::before { background: #3b82f6; }
.ups-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 20px 18px; }
.ups-detail-section { min-width: 0; }
.ups-detail-section .ups-section-heading { margin: 13px 0 8px; }
.ups-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.ups-metric { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px; padding: 8px 10px; border-radius: 7px; background: var(--bg-panel); }
.ups-metric > span { color: var(--text-secondary); font-size: 11px; }
.ups-metric strong { color: var(--text-primary); font-size: 13.2px; font-weight: 600; white-space: nowrap; }
.ups-metric strong small { margin-left: 2px; }
.ups-module .is-no-data { color: #94a3b8; }
@media (max-width: 900px) {
  .ups-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ups-detail-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
  .ups-page-head { align-items: flex-start; flex-direction: column; padding: 16px; }
  .ups-head-meta { justify-content: flex-start; }
  .ups-summary-grid { gap: 7px; }
  .ups-summary-card { min-height: 78px; padding: 11px; }
  .ups-summary-label { font-size: 9.9px; }
  .ups-summary-value { font-size: 20.9px; }
  .ups-wait-card { gap: 12px; padding: 19px 16px; }
  .ups-wait-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .ups-wait-card h2 { font-size: 15.4px; }
  .ups-unit-head { padding: 13px 14px; }
  .ups-unit-meta { gap: 7px; padding: 10px 14px; }
  .ups-unit-meta strong { font-size: 11px; }
  .ups-section-heading { margin-right: 14px; margin-left: 14px; }
  .ups-phase-scroll { margin-right: 14px; margin-left: 14px; }
  .ups-detail-grid { padding: 0 14px 14px; }
  .ups-detail-section .ups-section-heading { margin-left: 0; }
  .ups-metric { align-items: flex-start; flex-direction: column; gap: 4px; }
}
