* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: radial-gradient(circle at top right, rgba(109, 93, 222, 0.24), transparent 45%), radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.18), transparent 50%), #141414; color: #e4e4e4; min-height: 100vh; }

.page-shell { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 24px 32px 32px; }

.page-shell::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% -10%, rgba(250, 204, 21, 0.12), transparent 50%); opacity: 0.7; pointer-events: none; z-index: 0; }

.content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 64px; }

header { display: flex; align-items: center; justify-content: center; padding: 18px 24px; }

header h1 { font-size: 20px; font-weight: 700; color: #f8fafc; }

main { flex-grow: 1; display: flex; justify-content: center; }

footer { text-align: center; padding: 32px; color: #9ca3af; }

a { color: inherit; text-decoration: underline; }

.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
  font-size: 0.85em;
  margin: 0px 4px;
}

/* Error notice */
error-notice { border-radius: 12px; background: rgba(239, 68, 68, 0.06); color: #fca5a5; padding: 12px 16px; border: 1px solid rgba(239, 68, 68, 0.12); }
error-notice:empty { display: none; }

/* Main / site containers */
main { max-width: 1200px; width: 100%; flex-grow: 1; display: flex; flex-direction: column; gap: 24px; margin: 0 auto; }
main .site { background: rgba(28, 28, 28, 0.92); border: 1px solid rgba(48, 48, 48, 0.85); border-radius: 18px; padding: 24px; box-shadow: 0 18px 60px rgba(0,0,0,0.45); }
main .site + .site { margin-top: 24px; }
main .site h1 { font-size: 18px; margin: 0 0 12px 0; color: #eef2ff; }

.endpoint { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(52,52,52,0.6); }
.endpoint h3 { font-size: 16px; margin: 0 0 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.endpoint a { color: inherit; text-decoration: none; }
.loading { color: #9ca3af; padding: 24px; text-align: center; }

footer { text-align: center; font-size: 13px; color: #9ca3af; padding-top: 32px; }

/* Status bar and entries (expanded from nested rules) */
status-bar { display: flex; flex-flow: row nowrap; align-items: center; justify-content: space-between; margin: 16px 0; user-select: none; }
status-bar status-bar-entry { display: block; flex: 1 1 0px; width: 0; max-width: 7px; height: 25px; border-radius: 4px; position: relative; }
status-bar status-bar-entry[data-status="outage"] { background: #ef4444; border: 1px solid #f59e0b; }
status-bar status-bar-entry[data-status="highly-degraded"] { background: #dc2626; }
status-bar status-bar-entry[data-status="degraded"] { background: #f59e0b; }
status-bar status-bar-entry[data-status="healthy"] { background: #10b981; }
status-bar status-bar-entry[data-status="none"] { background: #6b7280; }

status-bar status-bar-entry > div { position: absolute; left: 50%; bottom: 100%; transition: transform 0.25s, opacity 0.25s; transform: translate(-50%, 0); opacity: 0; pointer-events: none; padding: 8px 12px; background: #000; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 6px 18px rgba(0,0,0,0.45); display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 400px; font-size: 0.9em; z-index: 1; user-select: text; color: #e4e4e4; }
status-bar status-bar-entry > div strong { font-weight: 600; font-size: 1.05em; color: #f8fafc; }
status-bar status-bar-entry > div em { font-style: normal; opacity: 0.8; color: #cbd5f5; }

status-bar status-bar-entry:focus { box-shadow: 0 0 0 2px #6d5dde; }
status-bar status-bar-entry:hover > div, status-bar status-bar-entry:focus > div { pointer-events: initial; transform: translate(-50%, -8px); opacity: 1; }
status-bar status-bar-entry:hover > div { z-index: 3; }

@media (max-width: 720px) { .page-shell { padding: 24px 20px 28px; } header h1 { font-size: 18px; } }

/* small helpers */
.muted { color: #9ca3af; }
.accent { color: #6D5DDE; }
.btn { padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; background: linear-gradient(90deg, #6D5DDE, #7f72ed); color: #fff; }
