:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --danger: #b91c1c;
  --warning: #a16207;
  --ok: #047857;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 24px; }
.hero {
  background: radial-gradient(circle at top left, #ccfbf1 0, #f5f7fb 42%, #eef2ff 100%);
  min-height: 100vh;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.logo { font-weight: 800; letter-spacing: -0.03em; font-size: 22px; }
.grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; padding-top: 42px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  padding: 26px;
}
h1 { font-size: clamp(38px, 6vw, 68px); line-height: .96; margin: 0 0 18px; letter-spacing: -0.055em; }
h2 { margin: 0 0 16px; font-size: 26px; letter-spacing: -0.03em; }
h3 { margin: 18px 0 8px; }
p { line-height: 1.55; }
.lead { font-size: 20px; color: #374151; max-width: 660px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.badge { border: 1px solid var(--line); background: rgba(255,255,255,.65); border-radius: 999px; padding: 9px 13px; color: #374151; font-weight: 600; font-size: 14px; }
.benefits { display: grid; gap: 12px; margin-top: 24px; }
.benefit { display: flex; gap: 10px; align-items: start; }
.tick { color: var(--brand); font-weight: 900; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 700; color: #374151; }
input, select, textarea {
  width: 100%; border: 1px solid #d1d5db; border-radius: 12px; padding: 12px 13px; font: inherit; background: white;
}
input:focus, select:focus, textarea:focus { outline: 3px solid #99f6e4; border-color: var(--brand); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; color: #374151; }
.checkbox input { width: auto; margin-top: 3px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: white; border: 0; border-radius: 12px; padding: 12px 18px;
  font-weight: 800; font: inherit; cursor: pointer; min-height: 46px;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.secondary { background: #111827; }
.btn.light { background: #eef2ff; color: #111827; }
.help { color: var(--muted); font-size: 13px; }
.small { color: var(--muted); font-size: 13px; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { background: #111827; color: white; padding: 22px; }
.sidebar a { color: #c7d2fe; display: block; margin: 12px 0; }
.sidebar .logo { margin-bottom: 28px; }
.content { padding: 28px; overflow-x: auto; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { background: #f9fafb; font-size: 12px; text-transform: uppercase; color: #4b5563; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; background: #eef2ff; color: #3730a3; }
.priority-alta { background: #fee2e2; color: #991b1b; }
.priority-media { background: #fef3c7; color: #92400e; }
.priority-normal { background: #ecfdf5; color: #065f46; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.kpi strong { font-size: 24px; display: block; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
pre { background: #0b1020; color: #dbeafe; padding: 14px; border-radius: 14px; overflow: auto; max-height: 420px; }
.alert-list { margin: 0; padding-left: 18px; }
.notice { background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 14px; padding: 14px; }
.error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; border-radius: 14px; padding: 12px; }
@media (max-width: 860px) {
  .grid, .detail-grid, .admin-shell, .kpis { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  h1 { font-size: 42px; }
}
