:root { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202124; background: #f5f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { max-width: 900px; margin: 0 auto; padding: 22px; }
header { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
h1 { margin: 0 0 4px; font-size: 2rem; }
p { margin: 0; color: #666; }
button { border: 0; border-radius: 10px; padding: 11px 14px; cursor: pointer; font-size: 1rem; }
.primary { background: #1769e0; color: white; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.filter { background: white; border: 1px solid #ddd; }
.filter.active { background: #202124; color: white; }
.agenda { display: grid; gap: 12px; }
.card { background: white; border-radius: 14px; padding: 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.card.done { opacity: .62; }
.card.done .title { text-decoration: line-through; }
.check { width: 26px; height: 26px; }
.title { font-weight: 700; font-size: 1.08rem; }
.meta, .notes { color: #666; font-size: .93rem; margin-top: 3px; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.actions button { padding: 8px 10px; background: #eef1f5; }
.actions .danger { color: #a10f0f; }
.empty { text-align: center; padding: 50px 15px; color: #777; background: white; border-radius: 14px; }
dialog { width: min(520px, calc(100% - 24px)); border: 0; border-radius: 16px; padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.4); }
form { padding: 20px; }
form h2 { margin-top: 0; }
label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 600; }
input, textarea { width: 100%; border: 1px solid #cfd3d8; border-radius: 9px; padding: 10px; font: inherit; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) {
  .wrap { padding: 14px; }
  header { align-items: stretch; flex-direction: column; }
  .card { grid-template-columns: auto 1fr; }
  .actions { grid-column: 2; justify-content: flex-start; }
  .row { grid-template-columns: 1fr; }
}
