:root {
  --bg: #14181b;
  --bg-soft: #1b2024;
  --bg-alt: #232a2f;

  --panel: #14181b;
  --panel-2: rgba(37, 38, 43, 0.78);

  --border: rgba(255, 255, 255, 0.08);
  --divider: rgba(255, 255, 255, 0.06);

  --text: rgba(255, 255, 255, 0.92);
  --text-2: rgba(255, 255, 255, 0.7);

  --accent: #ff9900;
  --accent-strong: #e68900;
  --accent-soft: rgba(255, 153, 0, 0.14);

  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --paused: #94a3b8;

  --shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 153, 0, 0.08), transparent 22%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 240px);
  color: var(--text);
}

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

.page-shell {
  min-height: 100vh;
}

/* Header */
.site-header {
  padding: 28px 20px 10px;
}

.header-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel-2);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-badge {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), #ffb84d);
  color: #111;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(255, 153, 0, 0.22);
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header h1,
.panel-head h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.1;
}

.site-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.subtitle,
.section-text {
  margin: 8px 0 0;
  color: var(--text-2);
  line-height: 1.6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 153, 0, 0.22);
  font-weight: 700;
}

/* Layout */
.main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px 32px;
}

.hero-summary {
  margin-bottom: 20px;
}

.summary-box {
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg-soft));
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  font-size: 0.98rem;
  line-height: 1.7;
}

.layout-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 24px;
  background: var(--panel-2);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 20px;
}

/* Form */
.monitor-form {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  padding: 14px 15px;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.97rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(255, 153, 0, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.12);
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field-hint {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.4;
}

.form-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-message {
  min-height: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  outline: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffb84d);
  color: #111;
  box-shadow: 0 12px 24px rgba(255, 153, 0, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-strong), #ffad33);
}

/* Monitors */
.monitors-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(35, 42, 47, 0.82) 0%, rgba(20, 24, 27, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: 0.95;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 153, 0, 0.2);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.card h3 {
  margin: 0 0 10px;
  padding-right: 88px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.meta {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
  word-break: break-word;
}

.meta a {
  color: var(--accent) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.meta a:hover {
  color: #ffb84d !important;
}

.meta-spaced {
  margin-top: 6px;
}

.meta-incident {
  margin-top: 6px;
  color: #fca5a5;
}

.empty {
  margin: 0;
  padding: 26px;
  text-align: center;
  color: var(--text-2);
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

/* Status badges */
.status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.up {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
}

.status.down {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
}

.status.degraded {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.18);
}

.status.paused {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.18);
}

.status.unknown {
  color: #d4d4d8;
  background: rgba(161, 161, 170, 0.12);
  border-color: rgba(161, 161, 170, 0.18);
}

/* Responsive */
@media (max-width: 1100px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 18px 14px 10px;
  }

  .main-content {
    padding: 10px 14px 24px;
  }

  .header-content {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-block {
    align-items: flex-start;
  }

  .brand-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card h3 {
    margin-top: 36px;
    padding-right: 0;
  }

  .status {
    top: 14px;
    right: 14px;
  }
}
.summary-box {
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg-soft));
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.summary-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-title {
  margin: 0;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.2;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.summary-stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.summary-stat__label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.4;
}

.summary-stat__value {
  display: block;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 800;
}

.summary-stat--up .summary-stat__value {
  color: #4ade80;
}

.summary-stat--down .summary-stat__value {
  color: #f87171;
}

.summary-stat--degraded .summary-stat__value {
  color: #fbbf24;
}

.summary-stat--paused .summary-stat__value {
  color: #cbd5e1;
}

.summary-stat--incident .summary-stat__value {
  color: #fca5a5;
}

@media (max-width: 1100px) {
  .summary-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .summary-box {
    padding: 18px;
  }

  .summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-title {
    font-size: 1.1rem;
  }

  .summary-stat {
    padding: 14px;
    border-radius: 16px;
  }

  .summary-stat__value {
    font-size: 1.2rem;
  }
}
