:root {
  --bg: #f6f7f9;
  --card: #fff;
  --text: #1a1d23;
  --muted: #6b7280;
  --green: #16a34a;
  --yellow: #ca8a04;
  --red: #dc2626;
  --blue: #2563eb;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2rem; background: var(--card); box-shadow: var(--shadow);
}
.header h1 { margin: 0; font-size: 1.4rem; }
.sub { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.badge {
  background: #eef2ff; color: var(--blue); padding: .5rem 1rem;
  border-radius: 999px; font-weight: 600;
}
.layout { max-width: 1200px; margin: 0 auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.panel {
  background: var(--card); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow);
}
.dropzone { border: 2px dashed #cbd5e1; text-align: center; transition: .2s; }
.dropzone.drag { border-color: var(--blue); background: #eff6ff; }
.drop-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.btn {
  border: none; border-radius: 10px; padding: .6rem 1.1rem; cursor: pointer; font-weight: 600;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.secondary { background: #e5e7eb; color: var(--text); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.hint { color: var(--muted); font-size: .85rem; margin-top: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chip {
  background: #f1f5f9; border-radius: 999px; padding: .35rem .75rem; font-size: .85rem;
  display: inline-flex; align-items: center; gap: .35rem;
}
.chip button { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.filter-grid label { font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; gap: .25rem; }
.filter-grid input, .filter-grid select { padding: .45rem; border: 1px solid #e5e7eb; border-radius: 8px; }
.hero { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.score-circle {
  width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; background: #ecfdf5; color: var(--green); flex-shrink: 0;
}
.score-circle.yellow { background: #fefce8; color: var(--yellow); }
.score-circle.red { background: #fef2f2; color: var(--red); }
.hero-text ul { margin: .5rem 0; padding-left: 1.2rem; color: var(--muted); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.kpi-card {
  background: var(--card); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
}
.kpi-card .val { font-size: 1.6rem; font-weight: 700; }
.kpi-card .lbl { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .tables { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { text-align: left; padding: .45rem .35rem; border-bottom: 1px solid #f1f5f9; }
th { color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); font-weight: 400; font-size: .85rem; }
.fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; width: 48px; height: 48px;
  border-radius: 50%; border: none; background: var(--text); color: #fff; font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow);
}
dialog { border: none; border-radius: var(--radius); padding: 1.5rem; max-width: 420px; }
dialog label { display: block; margin: .75rem 0; font-size: .9rem; }
dialog input { width: 100%; padding: .5rem; margin-top: .25rem; }
