:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #0f4c81;
  --border: #d6dde7;
  --text: #22313f;
  --muted: #5e6d7a;
  --success: #e6f6ea;
  --warning: #fff5db;
  --danger: #fdeaea;
}
* { box-sizing: border-box; }
body { margin:0; font-family:Arial, Helvetica, sans-serif; background:var(--bg); color:var(--text); }
.container { max-width:1100px; margin:0 auto; padding:20px; }
.topbar { background:var(--primary); color:white; }
.topbar .container { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.brand { font-weight:bold; padding:16px 0; }
.nav { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.nav a, .nav .user { color:white; text-decoration:none; font-size:14px; }
.card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:20px; margin-bottom:20px; }
.form-card label { display:block; font-weight:bold; margin:12px 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="datetime-local"], input[type="number"], select, textarea, input[type="file"] {
  width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:white;
}
button, .button-link {
  display:inline-block; margin-top:16px; padding:10px 16px; background:var(--primary); color:white; border:none; border-radius:10px; text-decoration:none; cursor:pointer;
}
.grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px; }
.grid-2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:16px; }
.metric h3 { margin-top:0; color:var(--muted); font-size:14px; }
.metric p { margin-bottom:0; font-size:28px; font-weight:bold; }
.alert { padding:12px 14px; border-radius:12px; margin-bottom:20px; }
.alert-success { background:var(--success); }
.alert-warning { background:var(--warning); }
.alert-danger { background:var(--danger); }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; border-bottom:1px solid var(--border); padding:10px 8px; vertical-align:top; }
.question-card { border-radius:14px; }
.question-header { display:flex; gap:10px; align-items:center; margin-bottom:8px; }
.badge { background:var(--primary); color:white; border-radius:999px; padding:6px 10px; font-size:12px; }
.family { color:var(--muted); font-weight:bold; }
.rating-group { display:flex; gap:12px; flex-wrap:wrap; margin:14px 0; }
.rating-option { position:relative; cursor:pointer; }
.rating-option input { position:absolute; opacity:0; }
.rating-option span {
  display:inline-block; min-width:130px; padding:14px 16px; border:1px solid var(--border); border-radius:12px; background:#fff; text-align:center;
}
.rating-option input:checked + span {
  border-color:var(--primary); box-shadow:0 0 0 3px rgba(15, 76, 129, 0.12); background:#eef5fb;
}
.muted { color:var(--muted); }
