* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f1f5f9; color: #0f172a; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; background:#fff; padding:20px; border-radius:22px; box-shadow:0 8px 24px rgba(15,23,42,.08); }
.topbar h1 { margin:0 0 4px 0; }
.nav { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 24px 0; }
.card { background:#fff; border-radius:22px; padding:22px; box-shadow:0 8px 24px rgba(15,23,42,.08); }
.card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:16px; }
.split { display:grid; grid-template-columns:1fr .95fr; gap:24px; }
.list { display:grid; gap:12px; }
.list-item { border:1px solid #cbd5e1; background:#f8fafc; border-radius:18px; padding:14px 16px; }
.link-item { text-decoration:none; color:inherit; display:block; }
.link-item:hover { background:#eef2f7; }
.link-item.active { background:#0f172a; color:#fff; border-color:#0f172a; }
.list-title { font-weight:700; margin-bottom:4px; }
.muted { color:#64748b; }
.link-item.active .muted { color:#cbd5e1; }
.small-note { margin-top:8px; color:#475569; font-size:14px; }
.btn { display:inline-block; border:0; text-decoration:none; cursor:pointer; padding:11px 16px; border-radius:14px; font-weight:600; }
.btn-primary { background:#0f172a; color:#fff; }
.btn-secondary { background:#e2e8f0; color:#0f172a; }
.btn-danger { background:#7f1d1d; color:#fff; }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.form-stack { display:grid; gap:14px; }
input, select, textarea { width:100%; margin-top:6px; border:1px solid #cbd5e1; background:#fff; border-radius:14px; padding:12px 14px; font:inherit; }
.detail-grid { display:grid; gap:12px; }
.alert { background:#fee2e2; color:#991b1b; padding:12px 14px; border-radius:14px; margin-bottom:14px; }
.login-wrap { min-height:100vh; display:grid; place-items:center; }
.login-card, .form-card { max-width:520px; margin:0 auto; }
@media (max-width: 900px) { .split { grid-template-columns:1fr; } }


.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}
.filter-bar label {
  min-width: 220px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}


.month-title {
  font-weight: 700;
  margin-bottom: 14px;
}
.day-summary {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
}


.aggregate-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.aggregate-item {
  font-size: 13px;
  color: #475569;
}
.aggregate-item-active {
  color: #e2e8f0;
}
.inner-card {
  margin-bottom: 18px;
  background: #f8fafc;
  box-shadow: none;
  border: 1px solid #cbd5e1;
}
.compact-list .list-item {
  padding: 10px 12px;
}
