:root {
  --edua: #1b3a5b;
  --edua-accent: #d4a017;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e1e4e8;
  --text: #222;
  --muted: #6b7280;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--edua); color: #fff; padding: 0 20px; height: 56px;
}
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 18px; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { color: #fff; text-decoration: none; opacity: .9; }
.topnav a:hover { opacity: 1; text-decoration: underline; }
.topnav .user { color: var(--edua-accent); font-weight: 600; }
.container { max-width: 1100px; margin: 28px auto; padding: 0 20px; }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.linkcard { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.linkcard:hover { border-color: var(--edua-accent); transform: translateY(-2px); }
.muted { color: var(--muted); }
.error { color: #b00020; background: #fde7ea; padding: 8px 12px; border-radius: 6px; }
.flash { background: #e7f4ea; border: 1px solid #b6dcc0; color: #1c5a2e; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.card.login { max-width: 360px; margin: 60px auto; }
form label { display: block; margin: 12px 0; font-weight: 600; font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; margin-top: 6px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 6px; font-weight: 400;
  font-family: inherit;
}
textarea { resize: vertical; }
button {
  background: var(--edua); color: #fff; border: 0; border-radius: 6px;
  padding: 10px 18px; font-size: 15px; cursor: pointer; font-weight: 600;
}
button:hover { background: #142c46; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
th { background: #fafbfc; }
a { color: var(--edua); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef1f5; color: #3b4a5a; }
.badge.ok { background: #e3f5e8; color: #1c7a3a; }
.badge.bad { background: #fde7ea; color: #b00020; }
.badge.warn { background: #fff3cd; color: #8a6d00; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; margin-top: 0; }
.dispo { display: flex; gap: 6px; align-items: center; }
.dispo select { width: auto; margin-top: 0; font-size: 13px; padding: 6px 8px; }
.dispo button { padding: 6px 12px; font-size: 13px; }
.btn { display: inline-block; background: var(--edua); color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.btn:hover { background: #142c46; }
.btn.ghost { background: #fff; color: var(--edua); border: 1px solid var(--edua); }
button.ghostbtn { background: #fff; color: var(--edua); border: 1px solid var(--edua); }
button.ghostbtn:hover { background: #eef1f5; }
.funnel { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.fbox { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 22px; min-width: 110px; text-align: center; }
.fbox.highlight { border-color: var(--edua-accent); background: #fffaf0; }
.fbox .fn { font-size: 26px; font-weight: 700; color: var(--edua); }
.fbox.highlight .fn { color: var(--edua-accent); }
.fbox .fl { font-size: 12px; color: var(--muted); margin-top: 2px; }
