:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #13263b;
  --muted: #5a6b7d;
  --border: #d9e2ec;
  --primary: #01579b;
  --primary-2: #0a7ec2;
  --ok: #1b8a4b;
  --warn: #b26a00;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(19, 38, 59, 0.08);
}

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

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

.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-sm { gap: .7rem; }
.mt { margin-top: 1.5rem; }
.mt-sm { margin-top: .8rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.brand {
  font-weight: 800;
  padding: 1rem 0;
  color: var(--primary);
}

.menu {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-size: .92rem;
  padding: .45rem .65rem;
  border-radius: 8px;
}

.menu a:hover { background: #e6f2fb; }

.hero {
  margin: 1rem 0 1.2rem;
  background: linear-gradient(120deg, #0c4e80 0%, #0a7ec2 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.hero h1 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.hero p { margin: .7rem 0 0; color: #d7ecfb; }

.grid { display: grid; gap: 1rem; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 { margin-top: 0; }

.kpi strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: .35rem;
}

.action p { min-height: 38px; }

.btn {
  border: none;
  border-radius: 10px;
  padding: .65rem 1rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: var(--primary-2); }

.form { gap: .9rem; }
label { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; }
input, select, textarea {
  border: 1px solid #c8d6e5;
  border-radius: 10px;
  padding: .65rem .7rem;
  font-size: 0.95rem;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #b8e0ff;
  border-color: var(--primary-2);
}

.badge {
  display: inline-block;
  font-size: .72rem;
  border-radius: 999px;
  padding: .2rem .6rem;
  font-weight: 700;
}
.badge.active { background: #e5f7ec; color: var(--ok); }
.badge.planned { background: #f2ecff; color: #6f42c1; }
.badge.pilot { background: #e7f2ff; color: #0b5ed7; }

.result {
  border: 1px solid var(--border);
  border-left: 4px solid #8094a8;
  border-radius: 12px;
  padding: .8rem .9rem;
  background: #f8fbff;
}
.result.ok { border-left-color: var(--ok); background: #f0fbf4; }
.result.warn { border-left-color: var(--warn); background: #fff8eb; }
.result.danger { border-left-color: var(--danger); background: #fff2f2; }

.notice {
  border-radius: 10px;
  background: #fff8eb;
  border: 1px solid #ffe3b3;
  padding: .7rem .8rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: .55rem .45rem;
}

.subtle { color: var(--muted); }
.col-span-2 { grid-column: span 2; }

@media (max-width: 900px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .menu { display: none; }
  .hero { padding: 1.1rem; }
}
