:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  color: #21302b;
  background: #f7f6f2;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button {
  border: 0; border-radius: 10px; padding: .72rem 1rem;
  background: #2d5a49; color: white; cursor: pointer; font-weight: 650;
}
button.secondary { background: #e7ece9; color: #294238; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1rem,4vw,4rem); border-bottom: 1px solid #dedfd8; background: #fff;
}
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 1.5rem; }
main { max-width: 1180px; margin: auto; padding: 2rem 1rem 4rem; }
.hero {
  display: flex; justify-content: space-between; gap: 1rem; align-items: end;
  margin-bottom: 1.25rem; padding: 1.4rem; border-radius: 18px;
  background: linear-gradient(135deg,#eef3ef,#faf7ee);
  border: 1px solid #dfe4df;
}
.eyebrow { letter-spacing: .13em; font-size: .72rem; font-weight: 800; color: #66736d; margin-bottom: .35rem; }
.muted { color: #68726d; }
.stats { display: flex; gap: .75rem; }
.stats div { min-width: 125px; background: #fff; border-radius: 14px; padding: 1rem; border: 1px solid #e1e4df; }
.stats strong { display:block; font-size: 1.7rem; }
.stats span { font-size: .78rem; color:#68726d; }
.grid { display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom:1rem; }
.card { background:#fff; border:1px solid #e0e2dd; border-radius:18px; padding:1.2rem; box-shadow:0 8px 25px rgba(33,48,43,.04); }
.card-head { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; }
.card-head h3 { margin-bottom:0; }
.list { display:grid; gap:.65rem; }
.item { padding:.85rem; border:1px solid #e7e8e3; border-radius:12px; }
.item-top { display:flex; justify-content:space-between; gap:.5rem; }
.pill { font-size:.72rem; font-weight:700; background:#eef3ef; padding:.24rem .5rem; border-radius:999px; }
.meta { margin-top:.35rem; color:#6b746f; font-size:.82rem; }
.empty { color:#7a827e; padding:.8rem 0; }
.week { display:grid; grid-template-columns:repeat(7,1fr); gap:.5rem; }
.day { min-height:100px; padding:.7rem; border:1px solid #e6e8e3; border-radius:12px; background:#fcfcfa; }
.day strong { display:block; margin-bottom:.45rem; }
.dot { display:block; font-size:.74rem; padding:.24rem .4rem; background:#eef3ef; border-radius:7px; margin:.25rem 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
dialog { border:0; border-radius:18px; padding:0; width:min(560px,calc(100% - 2rem)); box-shadow:0 24px 80px rgba(0,0,0,.22); }
dialog::backdrop { background:rgba(24,35,31,.45); }
form { padding:1.25rem; display:grid; gap:.9rem; }
.dialog-head,.dialog-actions { display:flex; justify-content:space-between; align-items:center; gap:.6rem; }
label { display:grid; gap:.35rem; font-weight:650; font-size:.9rem; }
input,select,textarea { width:100%; border:1px solid #ccd2ce; border-radius:10px; padding:.7rem; background:#fff; color:#21302b; }
textarea { resize:vertical; }
@media(max-width:800px){
  .grid { grid-template-columns:1fr; }
  .hero { align-items:stretch; flex-direction:column; }
  .week { grid-template-columns:1fr; }
}
