/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: #eef2ff;
  --success: #22c55e;
  --success-dim: #16a34a;
  --error: #ef4444;
  --error-dim: #dc2626;
  --warning: #f59e0b;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

html {
  font-size: 15px;
}

body {
  background: linear-gradient(130deg, #ffffff 0%, #f5f9ff 44%, #eef4ff 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Animated Background ──────────────────────────────────────────────────── */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(72px);
  opacity: 0.35;
  will-change: transform;
}

.bg-orb-1 {
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  top: -20%;
  left: -10%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 122, 24, 0.85), rgba(255, 122, 24, 0));
  animation: orbFloat1 15s ease-in-out infinite alternate;
}

.bg-orb-2 {
  width: min(44vw, 560px);
  height: min(44vw, 560px);
  right: -18%;
  top: 45%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 87, 46, 0.8), rgba(255, 87, 46, 0));
  animation: orbFloat2 18s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 44, 102, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 44, 102, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.25;
  animation: gridDrift 20s linear infinite;
}

@keyframes orbFloat1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vw, 10vh, 0) scale(1.12); }
}

@keyframes orbFloat2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-9vw, -8vh, 0) scale(1.14); }
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(38px, 38px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb, .bg-grid {
    animation: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Container ────────────────────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand a:hover {
  opacity: 0.8;
  transition: opacity var(--transition);
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.report-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(99,102,241,0.1);
}

.report-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.overall-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  animation: fadeIn 0.5s ease;
}

.overall-status .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.overall-status.operational .status-dot {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.overall-status.partial .status-dot {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.overall-status.major .status-dot {
  background: var(--error);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* ─── Filter Bar ───────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── Group ────────────────────────────────────────────────────────────────── */
.group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: margin-bottom 0.35s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.group:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.group-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 2px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  transition: background var(--transition);
  animation: fadeIn 0.4s ease;
}

.group-header:hover {
  background: var(--bg-hover);
}

.group.collapsed .group-header {
  background: var(--bg-hover);
  margin-bottom: 0;
}

.group.collapsed {
  margin-bottom: 12px;
}

.group-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--bg-hover);
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.group-header:hover .group-chevron {
  color: var(--accent);
  background: var(--accent-soft);
}

.group-chevron svg {
  width: 15px;
  height: 15px;
}

.group.collapsed .group-chevron {
  transform: rotate(-90deg);
}

.group-name {
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text);
}

.group-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-hover);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.group-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  background: var(--bg-hover);
}

.group-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.group-status.operational .group-status-dot {
  background: var(--success);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.group-status.operational {
  color: var(--success);
}

.group-status.partial .group-status-dot {
  background: var(--warning);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.group-status.partial {
  color: var(--warning);
}

.group-status.major .group-status-dot {
  background: var(--error);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.group-status.major {
  color: var(--error);
}

.group-status.none .group-status-dot {
  background: var(--text-muted);
}

.group-status.none {
  color: var(--text-muted);
}

.group-monitors-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  overflow: hidden;
  transform-origin: top center;
}

.group-monitors-inner {
  overflow: hidden;
  min-height: 0;
}

.group.collapsed .group-monitors-wrap {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
}

/* ─── Monitor Card ─────────────────────────────────────────────────────────── */
.monitor-card {
  background: var(--bg-hover);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.3s ease, background 0.3s ease;
  animation: fadeSlideUp 0.4s ease both;
}

.monitor-card:hover {
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.monitor-main {
  padding: 16px 20px;
}

.monitor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.monitor-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.monitor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.monitor-dot.up {
  background: var(--success);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
}

.monitor-dot.down {
  background: var(--error);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

.monitor-dot.none {
  background: var(--text-muted);
}

.monitor-name {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monitor-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.monitor-uptime {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
}

.monitor-uptime.degraded {
  color: var(--warning);
}

.monitor-uptime.down {
  color: var(--error);
}

.monitor-uptime.none {
  color: var(--text-muted);
}

.monitor-response {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Server Stats Meters ──────────────────────────────────────────────────── */
.server-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.meter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meter-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 34px;
  flex-shrink: 0;
}

.meter-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.meter-fill.ok {
  background: var(--success);
}

.meter-fill.warn {
  background: var(--warning);
}

.meter-fill.high {
  background: var(--error);
}

.meter-fill.none {
  background: var(--border-light);
}

.meter-value {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 38px;
  text-align: right;
  flex-shrink: 0;
}

.meter-value.ok {
  color: var(--success-dim);
}

.meter-value.warn {
  color: var(--warning);
}

.meter-value.high {
  color: var(--error-dim);
}

.meter-value.none {
  color: var(--text-muted);
}

/* ─── Server Network Row ───────────────────────────────────────────────────── */
.server-net-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: var(--bg-hover);
  border-radius: 8px;
}

.net-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.net-arrow {
  font-size: 0.8rem;
  font-weight: 700;
}

.net-down {
  color: var(--accent);
}

.net-up {
  color: var(--success-dim);
}

/* ─── Uptime Blocks Bar ────────────────────────────────────────────────────── */
.uptime-bar {
  display: flex;
  gap: 2px;
  height: 32px;
  margin-bottom: 4px;
}

.uptime-block {
  flex: 1;
  border-radius: 3px;
  min-width: 2px;
  transition: opacity var(--transition);
  position: relative;
}

.uptime-block.up {
  background: var(--success);
  opacity: 0.7;
}

.uptime-block.up:hover {
  opacity: 1;
}

.uptime-block.down {
  background: var(--error);
  opacity: 0.85;
}

.uptime-block.down:hover {
  opacity: 1;
}

.uptime-block.none {
  background: #e2e8f0;
  opacity: 0.5;
}

.uptime-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* ─── Expand Button ────────────────────────────────────────────────────────── */
.uptime-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uptime-bar-row .uptime-bar {
  flex: 1;
  margin-bottom: 0;
}

.expand-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  font-family: inherit;
  line-height: 1;
  flex-shrink: 0;
}

.expand-btn:hover {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.expand-btn.open {
  transform: rotate(45deg);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

/* ─── Chart Container ─────────────────────────────────────────────────────── */
.chart-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
}

.chart-container.open {
  max-height: 400px;
  padding: 0 20px 16px;
}

.chart-wrap {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

/* ─── Floating Side Panel ──────────────────────────────────────────────────── */
.side-panel {
  position: fixed;
  /* top is set dynamically in JS to match the first group's position */
  top: 0;
  /* Align to the right edge of the centered container (860px max) */
  left: calc(50% + 430px + 16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  min-width: 290px;
  max-width: calc(100vw - 40px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  z-index: 40;
  animation: fadeSlideUp 0.4s ease both;
}

/* Mid screens: keep it beside the content but clamp to the viewport edge */
@media (min-width: 601px) and (max-width: 1024px) {
  .side-panel {
    left: auto;
    right: 20px;
  }
}

.side-panel.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.side-btn {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.side-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

/* ─── Outage Banner ────────────────────────────────────────────────────────── */
.outage-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.4s ease both;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.outage-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.outage-banner-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.outage-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #92400e;
}

.outage-banner-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outage-banner-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.outage-banner-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.outage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--error);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.outage-monitor-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #78350f;
}

.outage-banner-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.outage-detail {
  font-size: 0.82rem;
  color: #92400e;
}

.outage-detail strong {
  font-weight: 600;
}

/* ─── Outage History ───────────────────────────────────────────────────────── */
.outage-history {
  margin-top: 32px;
  animation: fadeSlideUp 0.4s ease both;
}

.outage-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 4px;
}

.outage-history-viewall {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  transition: background var(--transition), transform var(--transition);
}

.outage-history-viewall:hover {
  background: #e0e7ff;
  transform: translateY(-1px);
}

.outage-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outage-history-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--error);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.outage-history-item:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.outage-history-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.outage-history-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.outage-history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
  flex-shrink: 0;
  opacity: 0.6;
}

.outage-history-duration {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--error);
  background: rgba(239, 68, 68, 0.08);
  padding: 3px 10px;
  border-radius: 100px;
}

.outage-history-times {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.outage-history-arrow {
  color: var(--text-muted);
  opacity: 0.5;
}

.outage-history-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.outage-active {
  border-left-color: var(--warning);
  background: #fffbeb;
}

.outage-dot-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--accent);
}

/* ─── Tooltip (uptime block hover) ─────────────────────────────────────────── */
.block-tooltip {
  position: fixed;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.block-tooltip.visible {
  opacity: 1;
}

/* ─── Loading / Empty State ────────────────────────────────────────────────── */
.loading-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  html {
    font-size: 13px;
  }

  .container {
    padding: 20px 14px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  .header-right {
    width: 100%;
    gap: 8px;
  }

  .report-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .report-btn svg {
    width: 14px;
    height: 14px;
  }

  .overall-status {
    padding: 6px 12px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .overall-status .status-dot {
    width: 8px;
    height: 8px;
  }

  .side-panel {
    top: auto;
    bottom: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    animation: none;
    min-width: 0;
    width: calc(100vw - 32px);
    max-width: 100vw;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px;
  }

  .side-btn {
    width: auto;
    flex: 1 1 auto;
    padding: 8px 14px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .brand-logo {
    height: 26px;
  }

  .filter-bar {
    gap: 5px;
    margin-bottom: 20px;
  }

  .filter-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .group {
    margin-bottom: 20px;
  }

  .group-header {
    font-size: 0.68rem;
    margin-bottom: 8px;
    gap: 8px;
    padding: 6px 10px;
  }

  .group-status {
    margin-left: 0;
  }

  .monitor-card {
    margin-bottom: 8px;
  }

  .monitor-main {
    padding: 12px 14px;
  }

  .monitor-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }

  .monitor-name {
    font-size: 0.85rem;
  }

  .monitor-meta {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .monitor-uptime {
    font-size: 0.78rem;
  }

  .monitor-response {
    font-size: 0.72rem;
  }

  .monitor-dot {
    width: 8px;
    height: 8px;
  }

  .server-stats-row {
    gap: 8px;
  }

  .meter-label {
    width: 30px;
    font-size: 0.62rem;
  }

  .meter-value {
    min-width: 32px;
    font-size: 0.65rem;
  }

  .server-net-row {
    gap: 12px;
  }

  .monitor-info {
    gap: 8px;
  }

  .uptime-bar {
    height: 22px;
    overflow: hidden;
  }

  .uptime-bar-row {
    gap: 6px;
  }

  .uptime-bar-row .uptime-bar {
    min-width: 0;
    overflow: hidden;
  }

  .uptime-block {
    min-width: 0;
  }

  .expand-btn {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }

  .uptime-bar-labels {
    font-size: 0.62rem;
  }

  .chart-container.open {
    padding: 0 14px 12px;
  }

  .chart-wrap {
    padding: 8px;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    margin-top: 24px;
    padding-top: 14px;
    font-size: 0.72rem;
  }

  .outage-banner {
    padding: 14px 16px;
    margin-bottom: 20px;
  }

  .outage-banner-title {
    font-size: 0.92rem;
  }

  .outage-banner-details {
    flex-direction: column;
    gap: 4px;
  }

  .outage-detail {
    font-size: 0.75rem;
  }

  .outage-history-item {
    padding: 10px 14px;
  }

  .outage-history-item-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .outage-history-times {
    font-size: 0.7rem;
    flex-wrap: wrap;
  }
}
