.agenda-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:36px;align-items:start}.agenda-list{min-width:0}
.agenda-filters{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line);padding-bottom:12px}.agenda-filters button{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:9px 12px;min-height:44px;border-radius:6px;color:var(--ink);background:var(--white);border:1px solid var(--line)}.agenda-filters button:hover{background:var(--paper)}.agenda-filters button[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:var(--white)}
.agenda-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--teal-light);color:var(--teal);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.agenda-badge.late{background:var(--coral-light);color:var(--coral)}.agenda-filters button[aria-pressed=true] .agenda-badge{background:var(--white);color:var(--teal)}
.agenda-alert{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:16px;padding:12px 14px;border:1px solid var(--line);border-left:4px solid var(--coral-accent);border-radius:6px;background:var(--coral-light)}.agenda-alert>svg{width:20px;height:20px;color:var(--coral);flex-shrink:0}.agenda-alert p{flex:1;min-width:180px;font-size:13px;line-height:1.5;color:var(--ink)}.agenda-alert .text-button{color:var(--coral);font-weight:700;font-size:13px}
.agenda-list-heading{display:flex;justify-content:space-between;align-items:baseline;margin:24px 0 8px;gap:12px}.agenda-list-heading h2{font-size:20px}.agenda-list-heading>span{font-size:12px;color:var(--muted);white-space:nowrap}
.agenda-range{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 8px}
.agenda-row{display:flex;gap:10px;padding:16px 0;border-bottom:1px solid var(--line);align-items:flex-start}.agenda-row.just-saved{animation:agenda-saved 2.4s ease-out}@keyframes agenda-saved{0%,40%{background:var(--teal-light)}100%{background:transparent}}
.agenda-check{display:grid;place-items:center;width:44px;height:44px;margin:-10px 0 -10px -10px;flex:0 0 44px;cursor:pointer;border-radius:6px}.agenda-check:hover{background:var(--paper)}.agenda-check input{width:22px;height:22px;margin:0;accent-color:var(--teal);cursor:pointer}
.agenda-task{min-width:0;flex:1}.agenda-task h3{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.agenda-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:6px;font-size:12px;color:var(--muted)}.agenda-when{display:inline-flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}.agenda-when svg{width:14px;height:14px}
.agenda-chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:700;line-height:1.4}.agenda-chip.overdue,.agenda-priority.high{background:var(--coral-light);color:var(--coral)}.agenda-priority.low{background:var(--teal-light);color:var(--teal)}
.agenda-task p{font-size:12px;color:var(--muted);margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.agenda-row.is-done h3{text-decoration:line-through;color:var(--muted)}
.agenda-row-actions{display:flex;gap:4px;flex-shrink:0}.agenda-row-actions .icon-button{width:44px;height:44px}
.agenda-calendar{border:1px solid var(--line);border-radius:8px;padding:16px;background:var(--white)}.agenda-calendar header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.agenda-calendar h2{font-size:16px}.agenda-calendar header>div{display:flex;gap:4px}.agenda-calendar .icon-button{width:44px;height:44px}
.agenda-weekdays,.agenda-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:2px}.agenda-weekdays{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px}
.agenda-days button,.agenda-days>span{height:46px;min-width:0}.agenda-days button{display:grid;place-content:center;font-size:13px;border-radius:6px;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums}.agenda-days button:hover{background:var(--paper)}
.agenda-days small{font-size:12px;font-weight:700;min-height:13px;color:var(--teal);margin-top:2px}.agenda-days button.has-late small{color:var(--coral)}
.agenda-days button.today{box-shadow:inset 0 0 0 2px var(--teal);font-weight:700}.agenda-days button[aria-pressed=true]{background:var(--teal);color:var(--white)}.agenda-days button[aria-pressed=true] small{color:var(--white)}
.agenda-legend{font-size:12px;line-height:1.5;color:var(--muted);margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.agenda-calendar>.text-button{margin-top:6px;min-height:44px;color:var(--teal);font-weight:700}
.agenda-empty{display:grid;justify-items:center;gap:10px;padding:44px 16px;color:var(--muted);text-align:center}.agenda-empty>svg{width:36px;height:36px;color:var(--teal)}.agenda-empty h3{font-size:17px;color:var(--ink)}.agenda-empty p{font-size:13px;line-height:1.6;max-width:42ch}.agenda-empty .btn{margin-top:6px}
.agenda-list>[data-action=agenda-more]{margin-top:20px}
@media(max-width:1150px){.agenda-layout{grid-template-columns:minmax(0,1fr) 340px;gap:24px}}
@media(max-width:900px){.agenda-layout{grid-template-columns:1fr}.agenda-calendar{max-width:420px;width:100%}}
/* Formulário */
#agenda-form input:not([type=checkbox]),#agenda-form select{min-height:44px}
.agenda-form-note{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.5;padding:10px 12px;margin-bottom:16px;border-radius:6px;background:var(--teal-light);color:var(--ink)}.agenda-form-note svg{width:16px;height:16px;flex-shrink:0;margin-top:2px;color:var(--teal)}
.agenda-repeat-options{padding:16px 0;margin:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.agenda-repeat-options [hidden],.agenda-repeat-options[hidden]{display:none!important}.agenda-repeat-options fieldset{border:0;padding:0;margin:0 0 12px;min-width:0}.agenda-repeat-options legend,.agenda-repeat-options label,.agenda-notes{font-size:12px}.agenda-repeat-options legend{margin-bottom:10px;font-weight:600}
.agenda-day-options{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.agenda-day-options label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:58px;min-width:44px;border:1px solid var(--field-border);border-radius:6px;padding:7px 2px;cursor:pointer;color:var(--ink)}.agenda-day-options label:has(:checked){border-color:var(--teal);background:var(--teal-light);color:var(--teal);font-weight:700}.agenda-day-options label:has(:focus-visible){outline:3px solid var(--teal);outline-offset:2px}.agenda-day-options input{width:18px;height:18px;margin:0;accent-color:var(--teal)}
.agenda-day-shortcuts{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:6px}.agenda-day-shortcuts .text-button{color:var(--teal);font-weight:700}
#agendaMonthly>label,.agenda-end>label:not(.check-label),.agenda-notes{display:flex;flex-direction:column;gap:8px}#agendaWeekPosition{margin-top:12px}
.agenda-end{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end;margin-top:12px}.agenda-end .check-label{display:flex;align-items:center;gap:9px;margin:0;min-height:44px;cursor:pointer}.agenda-end input[type=checkbox]{width:22px;height:22px;flex-shrink:0;accent-color:var(--teal)}
#agendaRepeatPreview{margin-top:14px;line-height:1.65;min-height:20px;padding:10px 12px;border-radius:6px;background:var(--paper);color:var(--ink)}#agendaRepeatPreview:empty{display:none}#agendaRepeatPreview.is-error{background:var(--coral-light);color:var(--coral)}
.agenda-repeat-label{display:flex;gap:6px;color:var(--teal);font-size:12px;line-height:1.5;margin-top:6px;align-items:flex-start}.agenda-repeat-label svg{width:14px;height:16px;flex-shrink:0}.agenda-repeat-label span{overflow-wrap:anywhere}
.agenda-notes{margin-top:15px}#agenda-form .form-error:empty{display:none}#agenda-form .form-error{margin-top:12px;font-size:13px;font-weight:600}
/* Exclusão */
.agenda-delete-target{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:6px;background:var(--paper)}.agenda-delete-target span{font-size:12px;color:var(--muted)}
.agenda-delete-options{display:grid;gap:10px;margin:16px 0}.agenda-delete-options .btn{justify-content:center;min-height:46px}
@media(max-width:560px){.agenda-end{grid-template-columns:1fr}.agenda-day-options{grid-template-columns:repeat(4,minmax(0,1fr))}.agenda-repeat-options{padding:12px 0}}
@media(max-width:560px){.sidebar nav{grid-template-columns:repeat(6,minmax(0,1fr))}.agenda-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.agenda-filters button{grid-column:span 2}.agenda-filters button:nth-child(n+4){grid-column:span 3}.agenda-filters button{justify-content:center;font-size:12px;padding:8px 6px}.agenda-row{gap:8px}.agenda-task h3{font-size:15px}.agenda-row-actions{flex-direction:column;gap:2px}.agenda-list-heading h2{font-size:18px}.agenda-calendar{max-width:none;padding:12px}.agenda-alert .text-button{margin-left:auto}}
