.agenda-live .panel-heading{gap:12px;align-items:flex-start;flex-wrap:wrap}.agenda-nav{display:flex;gap:7px;align-items:center}.agenda-nav button{border:1px solid #dfd0ee;background:#f5edf9;color:#69458b;border-radius:11px;min-width:36px;min-height:36px;padding:6px 10px;font:600 .8rem Poppins,Arial}.agenda-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:14px}.agenda-weekdays span{text-align:center;color:#74657f;font-size:.75rem;font-weight:700}.agenda-grid button{min-height:36px;padding:8px 2px;border:1px solid transparent;border-radius:12px;background:#faf7fd;color:#554067;font:500 .8rem Poppins,Arial;position:relative}.agenda-grid button[aria-current=date]{border-color:#a87cce;font-weight:800;background:#f0e3fb}.agenda-grid button[aria-pressed=true]{background:#7457d9;color:#fff;box-shadow:0 4px 12px #7955a62b}.agenda-grid button.has-reminder:after{content:'';position:absolute;bottom:3px;left:calc(50% - 2px);height:4px;width:4px;border-radius:50%;background:currentColor}.agenda-note-panel{margin-top:16px;border-top:1px solid #eee4f6;padding-top:14px}.agenda-note-panel h3{font-size:.9rem;color:#5a3c76}.agenda-note-panel label{display:block;font-size:.78rem;color:#6c577d;margin-top:10px}.agenda-note-panel textarea{display:block;width:100%;min-height:70px;margin-top:7px;padding:10px;resize:vertical;border:1px solid #d9c9e6;border-radius:12px;font:inherit;font-size:.8rem;line-height:1.5;box-sizing:border-box}.agenda-note-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.agenda-note-actions button{padding:8px 12px;border:0;background:#7457d9;color:white;border-radius:10px;font:600 .75rem Poppins,Arial}.agenda-note-actions button.secondary{background:#f1eaf8;color:#654080}.agenda-live button:disabled{opacity:.5;cursor:default}.agenda-live button:focus-visible,.agenda-live textarea:focus-visible{outline:3px solid #af7bd5;outline-offset:3px}#agendaSummary,#agendaStatus{font-size:.75rem;color:#786784;line-height:1.5;margin-top:10px}.agenda-live abbr{text-decoration:none}.agenda-live noscript{font-size:.8rem}@media(max-width:450px){.agenda-grid{gap:4px}.agenda-nav button{min-width:34px;padding:6px 8px}.agenda-grid button{min-height:38px}}@media print{.agenda-nav,.agenda-note-actions,#agendaNote{display:none!important}}

.agenda-filters{display:grid;gap:.4rem;margin:1rem 0}.agenda-filters select{max-width:100%;padding:.65rem;border:1px solid #cfc1ed;border-radius:12px;background:#fff;color:#493567}.agenda-legend,.agenda-reference{font-size:.78rem;line-height:1.5;color:#675876}.agenda-grid button.has-event{background:linear-gradient(140deg,#fff0f7,#eee5ff);font-weight:800;box-shadow:inset 0 0 0 1px #d6b6ee}.agenda-grid button.has-event:before{content:'✦';position:absolute;top:0;right:3px;font-size:10px;color:#a74498}.agenda-grid button.has-event[aria-pressed=true]{background:#7050a2;color:white}.agenda-event-card{padding:.85rem;margin:.6rem 0;border-radius:16px;background:linear-gradient(120deg,#fff0f7,#f0edff);border:1px solid #ead6f4}.agenda-event-card h4{margin:0 0 .5rem}.agenda-event-card p{font-size:.87rem;line-height:1.5}.agenda-event-card a{font-size:.8rem;color:#714195;text-decoration:underline}.agenda-inicial{font-size:.75rem;font-weight:700;color:#814b8e}.agenda-month-events{margin:.8rem 0}.agenda-month-events summary{cursor:pointer;font-weight:700;padding:.6rem;border-radius:12px;background:#f2edfc}.agenda-event-row{display:block;width:100%;text-align:left;margin:.4rem 0;padding:.65rem;border:1px solid #eadcf3;border-radius:12px;background:#fff;color:#493567;cursor:pointer;font:inherit;font-size:.85rem}.agenda-event-row:hover{background:#fff0f7}.agenda-event-row:focus-visible{outline:3px solid #9163c4;outline-offset:2px}

/* Cada panel conserva la altura de su propio contenido. */
.dashboard-grid > .ai-panel{align-self:start}

.agenda-expand{margin-top:16px}.agenda-expand>summary{cursor:pointer;padding:12px 14px;border-radius:14px;background:#f1e9fc;color:#654080;font-size:.85rem;font-weight:700}.agenda-expand>summary:hover{background:#e9dcfa}.agenda-expand>summary:focus-visible{outline:3px solid #af7bd5;outline-offset:3px}.agenda-expand[open]>summary{margin-bottom:12px}.agenda-expand-content{min-width:0}
