:root {
  --bg: #eef0f6;
  --shadow-dark: #c9cbe0;
  --shadow-light: #ffffff;
  --text: #2e2c3a;
  --text-muted: #6b6880;
  --lavender: #e3ddf7;
  --blue: #dbe9f9;
  --mint: #dcf3e6;
  --peach: #fbe6dd;
  --yellow: #fdf3d3;
  --pink: #fbe1ec;
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
a { color: inherit; }
.page { max-width: 960px; margin: 0 auto; padding: 20px 16px 80px; }
.topbar { display: flex; justify-content: space-between; align-items: center; max-width: 960px; margin: 0 auto; padding: 16px 16px 0; flex-wrap: wrap; gap: 10px; }
.card { background: var(--bg); border-radius: var(--radius); box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light); padding: 20px; margin-bottom: 16px; }
.card.flat { box-shadow: none; background: #e6e8f2; }
.input, select, textarea { width: 100%; padding: 11px 13px; border: none; border-radius: 12px; background: var(--bg); box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); font-size: 15px; color: var(--text); font-family: inherit; }
.btn { border: none; border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 14px; background: var(--bg); box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light); cursor: pointer; color: var(--text); text-decoration: none; display: inline-block; }
.btn:active { box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); }
.btn.primary { background: var(--lavender); }
.btn.present, .btn.success { background: var(--mint); }
.btn.absent, .btn.danger { background: var(--pink); }
.btn.small { font-size: 12px; padding: 6px 12px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.current { background: var(--mint); }
.badge.historical { background: var(--peach); color: #7a4b2f; }
.badge.pink { background: var(--pink); }
.badge.blue { background: var(--blue); }
.badge.yellow { background: var(--yellow); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.nav a { padding: 8px 14px; border-radius: 999px; background: var(--bg); box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light); font-size: 13px; font-weight: 600; text-decoration: none; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #d9dbee; font-size: 14px; }
.roster-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; border-bottom: 1px solid #d9dbee; gap: 10px; flex-wrap: wrap; }
.roster-row:last-child { border-bottom: none; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.muted { color: var(--text-muted); font-size: 14px; }
.error { color: #b0446e; background: var(--pink); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.success { color: #2f7a52; background: var(--mint); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
h1, h2, h3 { margin-top: 0; }
label { font-size: 13px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 4px; }
.field { margin-bottom: 12px; }

@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .page { max-width: 100%; padding: 0; }
  .card { box-shadow: none; }
}
