:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;
  --border: #e4e7ec;

  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow2: 0 2px 10px rgba(16, 24, 40, 0.06);

  --primary: #2563eb;
  --primary2: #1d4ed8;
  --danger: #dc2626;
  --danger2: #b91c1c;
  --ok: #16a34a;
  --warn: #f59e0b;

  --radius: 16px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  background:
    radial-gradient(
      1200px 700px at 10% 0%,
      rgba(37, 99, 235, 0.12),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 90% 10%,
      rgba(245, 158, 11, 0.1),
      transparent 50%
    ),
    var(--bg);
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 18px 48px;
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.title h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.title p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow2);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text);
}

.pill small {
  font-weight: 600;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card.full {
  grid-column: span 12;
}
.card.third {
  grid-column: span 4;
}

@media (max-width: 980px) {
  .card {
    grid-column: span 12;
  }
  .card.third {
    grid-column: span 12;
  }
  .header {
    align-items: flex-start;
    flex-direction: column;
  }
  .pills {
    justify-content: flex-start;
  }
}

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

.card-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-title h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.card-title span {
  font-size: 12.5px;
  color: var(--muted);
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

input {
  width: 120px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  background: #fff;
  color: var(--text);
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
select {
  width: 120px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  background: #fff;
  color: var(--text);
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
} 
input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12.8px;
  color: white;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
  transition:
    transform 0.05s ease,
    filter 0.15s ease,
    background 0.15s ease;
}

button:hover {
  background: var(--primary2);
}
button:active {
  transform: translateY(1px);
}

button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

button.ghost:hover {
  filter: brightness(0.98);
}

button.danger {
  background: var(--danger);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.18);
}

button.danger:hover {
  background: var(--danger2);
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(245, 246, 250, 0.65);
}

.kpi .k {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.kpi .v {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.status-dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

pre {
  margin: 0;
  background: #0b1220;
  color: #e5e7eb;
  padding: 14px;
  border-radius: 14px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.14);
  font-size: 12.5px;
}
