:root {
  --backend-ink: #10213f;
  --backend-muted: #4d6483;
  --backend-line: #cad9ea;
  --backend-card: #ffffffef;
  --backend-accent: #ff6f3f;
  --backend-bg-a: #f4f8ff;
  --backend-bg-b: #fef8f2;
  --backend-bg-c: #edf6ff;
}

.backend-shell,
.backend-shell * {
  box-sizing: border-box;
}

.backend-shell {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--backend-ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 111, 63, 0.15), transparent 31%),
    radial-gradient(circle at 14% 18%, rgba(31, 96, 165, 0.12), transparent 36%),
    linear-gradient(150deg, var(--backend-bg-a) 0%, var(--backend-bg-b) 52%, var(--backend-bg-c) 100%);
}

.backend-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.backend-card {
  border: 1px solid var(--backend-line);
  border-radius: 16px;
  background: var(--backend-card);
  box-shadow: 0 16px 32px rgba(11, 32, 60, 0.08);
}

.backend-hero {
  padding: 16px;
}

.backend-hero h1,
.backend-section h2,
.backend-kpi .value,
.backend-list-title {
  font-family: "Archivo", "Segoe UI", sans-serif;
}

.backend-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.backend-subtitle {
  margin-top: 8px;
  color: var(--backend-muted);
}

.backend-status {
  margin-top: 10px;
  border: 1px solid #d6e2f0;
  border-radius: 12px;
  background: #f6f9fe;
  color: #2d4c6e;
  padding: 10px 12px;
  font-size: 13px;
}

.backend-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.backend-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backend-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backend-section {
  padding: 14px;
}

.backend-section h2 {
  font-size: 22px;
  line-height: 1;
}

.backend-copy {
  margin-top: 7px;
  color: var(--backend-muted);
  font-size: 14px;
}

.backend-kpi {
  border: 1px solid #d3e1ef;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.backend-kpi .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #597496;
  font-weight: 700;
}

.backend-kpi .value {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1;
}

.backend-kpi .hint {
  margin-top: 6px;
  color: #4d6483;
  font-size: 12px;
}

.backend-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backend-btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #b8cae0;
  border-radius: 10px;
  padding: 9px 11px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fff;
  color: #214669;
  cursor: pointer;
}

.backend-btn.primary {
  border-color: #f08e66;
  background: linear-gradient(120deg, var(--backend-accent), #ffa14a);
  color: #202020;
}

.backend-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c3d6ea;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f5f9ff;
  color: #355777;
}

.backend-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.backend-list-item {
  border: 1px solid #d3e1ef;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.backend-list-title {
  font-size: 18px;
  line-height: 1;
}

.backend-list-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #4d6483;
}

.backend-empty {
  border: 1px dashed #c7d8ea;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px;
  color: #5d7593;
  font-size: 13px;
}

.backend-urgency-critical { border-left: 5px solid #c93131; }
.backend-urgency-high { border-left: 5px solid #d98900; }
.backend-urgency-medium { border-left: 5px solid #2677c6; }
.backend-urgency-low { border-left: 5px solid #4c7a54; }

.backend-search-input {
  width: 100%;
  border: 1px solid #bfd1e3;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

@media (max-width: 980px) {
  .backend-grid.two,
  .backend-grid.three {
    grid-template-columns: 1fr;
  }
}
