:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; background:#f6f7fb; color:#111; }
.wrap { max-width: 980px; margin: 18px auto; padding: 0 14px; }
.top { margin-bottom: 12px; }
h1 { margin: 0 0 6px; font-size: 22px; }
h2 { margin: 0; font-size: 16px; }
.muted { color:#555; margin: 0; }
.small { font-size: 13px; }

.card { background:#fff; border:1px solid #e7e8ee; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
hr { border:0; border-top:1px solid #eee; margin: 14px 0; }

.progress { height: 10px; background:#e5e7eb; border-radius: 999px; overflow:hidden; }
.progress > div { height: 100%; background:#111827; width:0; }

.item { padding: 12px; border:1px solid #eee; border-radius: 12px; margin: 10px 0; background:#fff; }
.row { display:flex; gap:12px; align-items:flex-start; }
.grow { flex: 1 1 auto; min-width: 220px; }

label { display:block; font-weight: 700; margin: 0 0 6px; }
input[type="text"], textarea, select {
  width: 100%; padding: 10px 12px; border:1px solid #dcdde6; border-radius: 10px; outline: none; box-sizing: border-box;
}
textarea { min-height: 70px; resize: vertical; margin-top: 10px; }

.rating { width: 150px; }

.btnrow { display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap; }
.btn {
  border:0; padding: 10px 14px; border-radius: 10px; cursor:pointer; text-decoration:none; display:inline-block;
}
.primary { background:#111827; color:#fff; }
.secondary { background:#e5e7eb; color:#111; }
.danger { background:#b91c1c; color:#fff; }

.badge { display:inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; border:1px solid #ddd; align-self:flex-start; }
.badge.ok { background:#ecfdf3; border-color:#bfeccc; }
.badge.warn { background:#fff7ed; border-color:#f5d3a6; }
.badge.bad { background:#fef2f2; border-color:#f3b5b5; }

.scoreBig { text-align: right; min-width: 120px; }
.scoreNum { font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 6px; }

table { width:100%; border-collapse: collapse; }
th,td { padding:10px; border-bottom:1px solid #eee; vertical-align: top; text-align:left; }

@media print {
  body { background: #fff; }
  .wrap { max-width: 100%; margin: 0; padding: 0; }
  .card { border: 0; box-shadow: none; }
  .noprint { display: none !important; }
}
