:root {
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --danger: #dc2626;
  --success: #16a34a;
  --border: #dbe3ef;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(145deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  min-height: 100vh;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.header {
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.header p {
  margin: 0;
  color: #cbd5e1;
}

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

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

input,
textarea,
select,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

input,
textarea,
select {
  padding: 0.65rem 0.7rem;
  background: #f8fafc;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button {
  padding: 0.68rem 0.85rem;
  background: var(--accent);
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button.secondary {
  background: #334155;
}

button.secondary:hover {
  background: #1e293b;
}

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

button.success {
  background: var(--success);
}

.actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.actions button {
  width: auto;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.list li {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fafc;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
}

.kpi .item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: #f8fafc;
}

.kpi strong {
  display: block;
  font-size: 1.2rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  background: #334155;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.6rem 0.3rem;
}

small.note {
  display: block;
  color: var(--muted);
  margin-top: 0.35rem;
}

.code {
  font-family: Consolas, "Courier New", monospace;
  background: #e2e8f0;
  color: #0f172a;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.footer {
  margin-top: 1rem;
  color: #cbd5e1;
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  main {
    padding: 1rem 0.75rem 2rem;
  }
}
