/* DTX Status Styles */
:root {
  --bg: #0b0d12;
  --panel: #111520;
  --muted: #a6b0c0;
  --text: #e8edf7;
  --accent: #3aa675;
  --accent-strong: #2f8b61;
  --ok: #22c55e;
  --info: #3b82f6;
  --warn: #f59e0b;
  --err: #ef4444;
  --border: #1f2635;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo { height: 60px; width: auto; display: block; }
.brand-text h1 { font-size: clamp(18px, 3.6vw, 26px); margin: 0 0 4px 0; font-weight: 700; }
.brand-sub { margin: 0; font-size: clamp(12px, 1.9vw, 14px); color: var(--muted); }

.ai-badge { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ai-badge img { width: 100px; height: auto; object-fit: contain; }
.ai-badge span { font-size: 12px; color: var(--muted); letter-spacing: .2px; }

.global-status {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 2px solid var(--accent-strong);
  background: rgba(34, 197, 94, 0.08);
  color: var(--text);
  text-decoration: none;
  padding: 14px 16px;
  margin: 20px 0 24px;
  border-radius: 14px;
  transition: transform .12s ease, border-color .2s ease;
}
.global-status:hover { transform: translateY(-1px); border-color: var(--ok); }

.dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 6px rgba(34,197,94,.12); }
.status-text { font-weight: 600; }
.status-ok-pill {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--ok);
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  border: 5px solid var(--accent-strong);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.panel h2 { margin: 4px 6px 10px; font-size: 16px; color: #cdd6e9; letter-spacing: .2px; }

.components { list-style: none; margin: 0; padding: 0; }
.component {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; border-top: 1px solid var(--border);
}
.component:first-child { border-top: none; }
.comp-left { display: flex; align-items: baseline; gap: 8px; }
.comp-name { font-weight: 600; }
.sub-note { font-size: 12px; color: var(--muted); }

.badge {
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border);
}
.badge.ok { background: rgba(34,197,94,0.15); color: #8bf0b1; border-color: rgba(34,197,94,0.35); }
.badge.info { background: rgba(59,130,246,0.15); color: #a9c8ff; border-color: rgba(59,130,246,0.35); }
.badge.ext { background: rgba(255,255,255,0.06); color: var(--muted); }

.muted { opacity: .6; }

.incidents { display: grid; gap: 12px; }
.incident-day { background: rgba(255,255,255,0.03); border: 1px dashed var(--border); border-radius: 12px; padding: 12px; }
.incident-date { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.incident-body p { margin: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 18px 0 36px;
  color: var(--muted);
  background: linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.legal p { margin: 6px 0; font-size: 12px; line-height: 1.5; }
.legal a { color: #b6c3ff; text-decoration: none; }
.legal a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .component { flex-wrap: wrap; gap: 10px; }
  .badge { margin-left: auto; }
  .brand-sub { display: none; }
}
