/* Banner da agenda ocupa somente o antigo espaço de notícias. */
#agendaInicio{--holiday:#ff747b;--meeting:#42d77c;--task:#54baff;--module-muted:#d1e1f5;container-type:inline-size;position:relative;display:grid;grid-template-columns:40% minmax(0,1fr);gap:1%;aspect-ratio:2150/657;flex:none;min-width:0;padding:1.7% 1.4%;box-sizing:border-box;overflow:hidden;border-radius:14px;background:linear-gradient(90deg,#03275422,#00255215),url('/static/outros/informativo_1.png') center/cover;color:#fff}
#agendaInicio .agenda-calendar,#agendaInicio .agenda-detail,#dashboardView #informativosCarousel.agenda-news{background:#07335a35;border:1px solid #cce7ff77;border-radius:1cqw;box-shadow:none;min-width:0;min-height:0;padding:.7cqw;overflow:hidden}
#agendaInicio .agenda-calendar{display:flex;flex-direction:column;position:relative;overflow:visible}
#agendaInicio .agenda-heading{display:flex;align-items:center;gap:.65cqw;justify-content:space-between;padding:0;margin:0 0 .6cqw;background:transparent;border:0;box-shadow:none;border-radius:0;min-width:0}
#agendaInicio .agenda-heading h2{font:700 1.8cqw/1.3 Inter,sans-serif;letter-spacing:0;color:white;margin:0;display:flex;align-items:center;gap:.7cqw;white-space:nowrap}
#agendaInicio .agenda-heading h2 i{color:#fff;font-size:2.1cqw}
#agendaInicio .agenda-month{position:relative;flex:none;border:1px solid #cce7ff99;border-radius:.6cqw;padding:.3cqw .6cqw;margin-right:1.3cqw;font:700 1.25cqw/1.4 Inter,sans-serif;color:white;cursor:pointer}
#agendaInicio input[type=month]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;border:0;color-scheme:dark}
#agendaInicio .agenda-month:focus-within{outline:2px solid white;outline-offset:2px}
.agenda-sr,#agendaInicio .cal-legend,#agendaInicio .agenda-summary{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#agendaInicio .agenda-options{position:absolute;right:.35cqw;top:.7cqw;z-index:5;font-size:1.3cqw}
#agendaInicio .agenda-options summary{cursor:pointer;list-style:none;padding:0 .2cqw;color:white}
#agendaInicio .agenda-tools{position:absolute;right:0;top:2cqw;display:flex;gap:4px;background:#06356a;padding:7px;border:1px solid #9cccf5;border-radius:7px;box-shadow:0 5px 15px #001a43aa;width:max-content}
#agendaInicio .cal-control,#agendaInicio select{border:1px solid #9cccf577;color:white;background:#074579;border-radius:4px;font:600 11px Inter,sans-serif;cursor:pointer;padding:4px}
#agendaInicio .cal-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;border:1px solid #b8dfff66;border-radius:.65cqw;overflow:hidden}
#agendaInicio .cal-weekday{font:700 1.15cqw/1.4 Inter,sans-serif;text-align:center;padding:.65cqw 0;border-right:1px solid #b8dfff44;color:#fff;background:#002c5b33}
#agendaInicio .cal-day{position:relative;min-height:0;min-width:0;padding:0;border:0;border-top:1px solid #b8dfff55;border-right:1px solid #b8dfff55;border-radius:0;background:#00498c15;color:#fff;font:700 1.3cqw Inter,sans-serif;cursor:pointer}
#agendaInicio .cal-day:hover{background:#388fe866}#agendaInicio .cal-outside{color:#8ba9ca;background:#09396733}
#agendaInicio .cal-selected{background:#297cda88;box-shadow:inset 0 0 0 1px #b7e5ff;color:#fff}
#agendaInicio .cal-today{font-weight:900;text-decoration:underline;text-underline-offset:3px}
#agendaInicio .cal-day-count{position:absolute;right:2px;top:1px;font:700 .85cqw Inter,sans-serif;background:#005594;border-radius:4px;padding:0 2px;color:#fff}
#agendaInicio .cal-marks{display:flex;position:absolute;bottom:1px;right:2px;gap:2px;line-height:1}
#agendaInicio .cal-mark{color:var(--event-color,#c49bff);font-size:.95cqw}
#agendaInicio .feriado{--event-color:var(--holiday)}#agendaInicio .reuniao{--event-color:var(--meeting)}#agendaInicio .atividade{--event-color:var(--task)}
#agendaInicio .agenda-side{display:grid;grid-template-rows:59% minmax(0,1fr);gap:2%;min-height:0;min-width:0}
#agendaInicio .agenda-detail{display:flex;flex-direction:column}
#agendaInicio .agenda-detail .agenda-heading{justify-content:flex-start;gap:.7cqw;position:relative;padding-left:2.8cqw}
#agendaInicio .agenda-detail .agenda-heading>div{min-width:0}
#agendaInicio .agenda-add{position:absolute;left:0;top:0;display:grid;place-items:center;width:2.3cqw;height:2.3cqw;border:1px solid #b6dfffaa;border-radius:.45cqw;background:#0874bc55;color:#fff;font-size:1.6cqw;cursor:pointer;padding:0}
#agendaInicio #calDia{font-size:.8cqw;line-height:1.2;color:#d2e7ff;margin:.15cqw 0 0}
#agendaInicio #calEventos{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#e2f1ff #386a9866}
#agendaInicio .cal-event{display:flex;align-items:center;gap:.7cqw;border:1px solid #b6dfff55;border-radius:.6cqw;padding:.55cqw .7cqw;margin-bottom:.4cqw;background:#0638684d}
#agendaInicio .cal-event>i{font-size:1.9cqw;color:var(--event-color,#c49bff)}
#agendaInicio .cal-event-text{flex:1;min-width:0}#agendaInicio .cal-event-text strong{display:block;font-size:1.15cqw;line-height:1.35;color:white;overflow-wrap:anywhere}
#agendaInicio .cal-event-text small,#agendaInicio .cal-event-text p{display:block;font-size:.95cqw;line-height:1.3;color:#d7eaff;margin:.2cqw 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
#agendaInicio .cal-event-actions{display:flex;flex-direction:column;gap:2px}#agendaInicio .cal-event-actions button{font-size:.8cqw;padding:2px;border-color:#afd7ff55;background:#004c8955}
#agendaInicio .cal-empty{font-size:1.1cqw;color:#e0edff;margin:.5cqw;line-height:1.4}
#dashboardView #informativosCarousel.agenda-news{display:flex;flex-direction:column;height:auto;aspect-ratio:auto;background:#03335b55}
#agendaInicio .agenda-news .agenda-heading{margin-bottom:.3cqw}#agendaInicio .agenda-news .agenda-heading small{display:none}
#agendaInicio #informativosNoticiasTrack.agenda-news-list{position:static;display:block;flex:1;min-height:0;width:100%;overflow:auto;transform:none;scrollbar-width:thin;scrollbar-color:#e2f1ff #386a9866}
#agendaInicio .agenda-news-item{display:grid;grid-template-columns:2cqw minmax(0,1fr) auto;gap:.5cqw;border-top:1px solid #cce7ff44;padding:.35cqw 0;background:transparent}
#agendaInicio .agenda-news-item>i{font-size:1.5cqw;color:#fff}#agendaInicio .agenda-news-item a{display:block;font-size:.95cqw;font-weight:700;line-height:1.25;color:white;text-decoration:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#agendaInicio .agenda-news-item a:hover{text-decoration:underline}#agendaInicio .agenda-news-item p{font-size:.85cqw;line-height:1.3;color:#d7eaff;margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#agendaInicio .agenda-news-item time{font-size:.8cqw;white-space:nowrap;color:#e5efff}
#agendaInicio #noticiasStatus,#agendaInicio #calStatus{font-size:.8cqw;color:#e0edff;margin:0;line-height:1.2}
#agendaInicio #calStatus{position:absolute;bottom:0;left:0;background:#073665;z-index:1}#agendaInicio #calStatus:empty,#agendaInicio #noticiasStatus:empty{display:none}
#agendaInicio button:focus-visible,#agendaInicio a:focus-visible,#agendaInicio summary:focus-visible{outline:2px solid white;outline-offset:-2px}
#infoEmpresaStatus{display:block;margin:8px 15px;color:var(--module-muted)}.company-lines b{white-space:pre-wrap;overflow-wrap:anywhere}
#atividadeModal{z-index:3500}
@media(max-width:720px){#agendaInicio{aspect-ratio:auto;min-height:280px;padding:10px;grid-template-columns:40% minmax(0,1fr)}#agendaInicio .agenda-heading h2{font-size:2cqw;white-space:normal}#agendaInicio .cal-day{font-size:2.5cqw}#agendaInicio .cal-weekday{font-size:1.8cqw}#agendaInicio .cal-day-count{font-size:1.6cqw}#agendaInicio .cal-mark{font-size:1.7cqw}#agendaInicio .agenda-month{font-size:1.8cqw}#agendaInicio .agenda-calendar>.agenda-heading{flex-wrap:wrap}#agendaInicio .cal-event-text strong,#agendaInicio .agenda-news-item a{font-size:2cqw}#agendaInicio .cal-event-text small,#agendaInicio .cal-event-text p,#agendaInicio .agenda-news-item p{font-size:1.8cqw}#agendaInicio .agenda-news-item time{display:none}#agendaInicio .agenda-news-item{grid-template-columns:2cqw minmax(0,1fr)}#agendaInicio .cal-empty{font-size:2.2cqw}#agendaInicio #calDia{font-size:1.7cqw}#agendaInicio .agenda-add{width:5cqw;height:5cqw;font-size:3cqw}#agendaInicio .agenda-detail .agenda-heading{padding-left:6cqw}#agendaInicio .cal-event-actions button{font-size:1.8cqw}}
/* Em celulares, prioriza leitura sem modificar o dashboard em computadores. */
@media(max-width:480px){#agendaInicio{grid-template-columns:1fr;gap:8px;min-height:0;padding:10px;background-position:65% center}#agendaInicio .agenda-calendar{height:230px;padding:8px}#agendaInicio .agenda-side{grid-template-rows:130px 110px;gap:8px}#agendaInicio .agenda-detail,#dashboardView #informativosCarousel.agenda-news{padding:8px}#agendaInicio .agenda-heading h2{font-size:13px}#agendaInicio .agenda-heading h2 i{font-size:16px}#agendaInicio .agenda-month{font-size:11px;margin-right:18px;padding:3px 7px}#agendaInicio .agenda-options{font-size:18px;right:7px;top:8px}#agendaInicio .agenda-tools{top:22px}#agendaInicio .cal-day{font-size:12px}#agendaInicio .cal-weekday{font-size:10px}#agendaInicio .cal-day-count,#agendaInicio .cal-mark{font-size:9px}#agendaInicio .agenda-add{height:24px;width:24px;font-size:16px}#agendaInicio .agenda-detail .agenda-heading{padding-left:30px}#agendaInicio #calDia{font-size:9px}#agendaInicio .cal-event-text strong,#agendaInicio .agenda-news-item a,#agendaInicio .cal-empty{font-size:11px}#agendaInicio .cal-event-text small,#agendaInicio .cal-event-text p,#agendaInicio .agenda-news-item p{font-size:10px}#agendaInicio .cal-event{padding:6px;gap:6px}#agendaInicio .cal-event>i{font-size:17px}#agendaInicio .agenda-news-item{grid-template-columns:16px minmax(0,1fr);gap:5px;padding:4px 0}#agendaInicio .agenda-news-item>i{font-size:14px}#agendaInicio #noticiasStatus,#agendaInicio #calStatus{font-size:9px}#agendaInicio .cal-event-actions button{font-size:9px}}
/* 8.5: cartão único com três áreas internas, no padrão do dashboard. */
#agendaInicio{grid-template-columns:33% minmax(0,1fr);gap:10px;background:var(--module-surface,#fff);color:var(--module-ink,#193f76);border:1px solid var(--module-line,#d6e4f1);box-shadow:0 4px 12px #2b6fae0f;padding:10px;--module-muted:#65809d;--holiday:#d32f3b;--meeting:#148442;--task:#1767ce}
#agendaInicio .agenda-calendar,#agendaInicio .agenda-detail,#dashboardView #informativosCarousel.agenda-news{background:transparent;border:0;border-radius:0;padding:0;overflow:visible}
#agendaInicio .agenda-heading h2{color:var(--module-ink,#193f76);font-size:1.85cqw;gap:.5cqw}
#agendaInicio .agenda-heading h2 i{color:var(--module-blue,#1769c2);font-size:1.9cqw}
#agendaInicio .agenda-calendar>.agenda-heading{flex-wrap:wrap;gap:3px;margin-bottom:5px;padding-right:14px}
#agendaInicio .agenda-month{color:var(--module-ink,#193f76);border-color:var(--module-line,#d6e4f1);font-size:1.15cqw;margin-right:0;margin-left:auto;padding:1px 4px}
#agendaInicio input[type=month]{color-scheme:light}
#agendaInicio .agenda-options{right:0;top:0}
#agendaInicio .agenda-options summary{color:var(--module-blue,#1769c2)}
#agendaInicio .cal-grid{border-color:#93a9c1;border-radius:9px;background:transparent}
#agendaInicio .cal-weekday{color:var(--module-ink,#193f76);background:transparent;border-color:#afbed0;font-size:1.25cqw;padding:.55cqw 0}
#agendaInicio .cal-day{color:var(--module-ink,#193f76);border-color:#afbed0;background:transparent;font-size:1.35cqw}
#agendaInicio .cal-day:hover{background:#2378d51c}#agendaInicio .cal-outside{color:#94a5b9}
#agendaInicio .cal-selected{background:#2378d524;box-shadow:inset 0 0 0 1px #2378d5;color:var(--module-ink,#193f76)}
#agendaInicio .cal-day-count{background:#1767ce;color:white}
#agendaInicio .agenda-side{grid-template-rows:52% minmax(0,1fr);gap:5px}
#agendaInicio .agenda-detail{min-height:0}
#agendaInicio .agenda-add{background:#edf5ff;color:#1769c2;border-color:#a9c9e9}
#agendaInicio #calDia{color:var(--module-muted);font-size:.85cqw}
#agendaInicio #calEventos{border:1px solid #93a9c1;border-radius:10px;padding:4px;scrollbar-color:#99b1cd transparent}
#agendaInicio .cal-event{background:transparent;border:0;border-bottom:1px solid var(--module-line,#d6e4f1);border-radius:0;padding:3px 4px;margin:0;gap:5px}
#agendaInicio .cal-event:last-child{border-bottom:0}
#agendaInicio .cal-event-text strong{color:var(--module-ink,#193f76);font-size:1.2cqw}
#agendaInicio .cal-event-text small,#agendaInicio .cal-event-text p{color:var(--module-muted);font-size:1cqw}
#agendaInicio .cal-event-actions button{color:#1769c2;background:#edf5ff;border-color:#b7cce2}
#agendaInicio .cal-empty{color:var(--module-muted);font-size:1.15cqw}
#dashboardView #informativosCarousel.agenda-news{background:transparent;overflow:hidden}
#agendaInicio .agenda-news .agenda-heading{margin:0 0 3px}
#agendaInicio #informativosNoticiasTrack.agenda-news-list{border-radius:10px;padding:5px 7px;box-sizing:border-box;background:linear-gradient(90deg,#082b57bb,#082b5755),url('/static/outros/informativo_1.png') center/cover;scrollbar-color:#cbe3ff #23527e}
#agendaInicio #noticiasStatus{color:var(--module-muted);font-size:.75cqw}
#agendaInicio #calStatus{color:#fff}
#agendaInicio button:focus-visible,#agendaInicio summary:focus-visible{outline-color:#1767ce}
body.dark-mode #agendaInicio{--module-muted:#adc0d7;--holiday:#ff8790;--meeting:#56d989;--task:#74b6ff}body.dark-mode #agendaInicio input[type=month]{color-scheme:dark}
@media(max-width:480px){#agendaInicio{grid-template-columns:1fr;aspect-ratio:auto;gap:10px}#agendaInicio .agenda-calendar{height:220px}#agendaInicio .agenda-side{grid-template-rows:145px 115px;gap:8px}#agendaInicio .agenda-heading h2{font-size:14px}#agendaInicio .agenda-heading h2 i{font-size:16px}#agendaInicio .agenda-month{font-size:11px;margin-right:10px}#agendaInicio .cal-day{font-size:12px}#agendaInicio .cal-weekday{font-size:10px}#agendaInicio #calDia{font-size:10px}#agendaInicio .cal-event-text strong,#agendaInicio .cal-empty{font-size:11px}#agendaInicio .cal-event-text small,#agendaInicio .cal-event-text p{font-size:10px}#agendaInicio #noticiasStatus{font-size:9px}}
/* 8.6: acabamento dos módulos e alternância vertical de conteúdo. */
#agendaInicio .cal-grid{border:1px solid var(--module-line,#d6e4f1);border-radius:10px;box-shadow:0 2px 7px #21487708}
#agendaInicio .cal-weekday{background:#edf4fc;color:#537394;border:0;font-weight:700}
#agendaInicio .cal-day{border-color:#e2ebf5;font-weight:600;transition:background .16s,box-shadow .16s}
#agendaInicio .cal-selected{background:#196bc7;color:white;box-shadow:inset 0 0 0 2px #ffffff55;border-radius:5px}
#agendaInicio .cal-selected .cal-day-count{background:#fff;color:#196bc7}
#agendaInicio .cal-today:not(.cal-selected){color:#196bc7;background:#eaf3ff;font-weight:800}
#agendaInicio .agenda-heading h2{font-weight:750;letter-spacing:-.02em}
#agendaInicio .agenda-month{background:#f2f7fd;border-radius:6px;padding:2px 5px}
#agendaInicio .agenda-add{border-radius:6px;background:#196bc7;color:#fff;border:0;box-shadow:0 2px 5px #196bc733}
#agendaInicio .agenda-rotator{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;border-radius:10px}
#agendaInicio .agenda-rotator.has-pages{padding-right:27px}
#agendaInicio .agenda-rotator-list{height:100%!important;max-height:none!important;box-sizing:border-box;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;position:relative!important;padding:0!important}
#agendaInicio .agenda-rotator-list::-webkit-scrollbar{display:none}
#agendaInicio .agenda-rotator-list>article{min-height:100%;height:100%;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;overflow:auto;margin:0;border:0}
#agendaInicio #calEventos{background:linear-gradient(135deg,#f2f7fe,#fff);border:1px solid #dce8f5}
#agendaInicio #calEventos .cal-event{padding:8px 10px;gap:8px;border:0;align-items:center}
#agendaInicio .cal-event>i{background:color-mix(in srgb,var(--event-color) 12%,transparent);border:1px solid color-mix(in srgb,var(--event-color) 22%,transparent);border-radius:8px;padding:7px;font-size:clamp(12px,1.8cqw,20px)}
#agendaInicio .cal-event-text strong{font-size:clamp(10px,1.5cqw,16px);line-height:1.35;font-weight:750}
#agendaInicio .cal-event-text small{font-size:clamp(9px,1.1cqw,12px);margin-top:4px;color:var(--event-color)}
#agendaInicio .cal-event-text p{font-size:clamp(9px,1.05cqw,12px);margin-top:3px}
#agendaInicio .cal-event-actions button{font-size:9px;padding:4px;border-radius:5px}
#agendaInicio .agenda-rotator-controls{position:absolute;right:0;top:0;bottom:0;width:23px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#eff5fc;border:1px solid #dce8f5;border-radius:7px}
#agendaInicio .agenda-rotator-controls[hidden]{display:none}
#agendaInicio .agenda-rotator-controls button{width:21px;height:19px;min-height:0;padding:0;border:0;background:transparent;color:#2362a1;cursor:pointer;font-size:9px;border-radius:4px}
#agendaInicio .agenda-rotator-controls button:hover{background:#dbeaff}
#agendaInicio .agenda-rotator-position{font-size:8px;font-weight:700;color:#567694;line-height:1}
#agendaInicio #informativosNoticiasTrack .agenda-news-item{padding:8px 10px;grid-template-columns:18px minmax(0,1fr);gap:7px;align-content:center;background:linear-gradient(90deg,#07244dcc,transparent)}
#agendaInicio .agenda-news-item a{font-size:clamp(10px,1.5cqw,16px);line-height:1.3;white-space:normal;overflow:visible}
#agendaInicio .agenda-news-item p{font-size:clamp(9px,1.1cqw,12px);white-space:normal;line-height:1.35;margin-top:3px}
#agendaInicio .agenda-news-item time{grid-column:2;font-size:8px}
#agendaInicio .agenda-news-item>i{font-size:15px}
body.dark-mode #agendaInicio .cal-weekday,body.dark-mode #agendaInicio .agenda-month,body.dark-mode #agendaInicio .agenda-rotator-controls{background:#203953;color:#d9e8ff}
body.dark-mode #agendaInicio #calEventos{background:#1b2e44;border-color:#395573}
body.dark-mode #agendaInicio .cal-day{border-color:#395573}body.dark-mode #agendaInicio .agenda-rotator-controls button,body.dark-mode #agendaInicio .agenda-rotator-position{color:#c5dfff}
@media(prefers-reduced-motion:reduce){#agendaInicio .cal-day{transition:none}}
#agendaInicio #informativosNoticiasTrack .agenda-news-item{align-content:start;padding:6px 8px}
#agendaInicio .agenda-news-item a{font-size:clamp(10px,1.35cqw,15px)}
#agendaInicio .agenda-news-item p{font-size:clamp(9px,1cqw,11px)}
#agendaInicio .agenda-rotator-controls{gap:0}#agendaInicio .agenda-rotator-controls button{flex:1;min-height:12px;max-height:22px}
/* 8.7: controles e avisos alinhados aos títulos. */
#agendaInicio .agenda-month{font-size:clamp(11px,1.5cqw,16px);padding:4px 9px;min-height:25px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;box-sizing:border-box}
#agendaInicio .agenda-calendar>.agenda-heading{padding-right:15px}
#agendaInicio .agenda-detail .agenda-heading{padding-left:0;justify-content:space-between;gap:6px}
#agendaInicio .agenda-detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:none}
#agendaInicio .agenda-detail .agenda-add{position:static;width:24px;height:24px;font-size:14px;flex:none}
#agendaInicio #calDia{margin:0;text-align:right;font-size:clamp(8px,1.05cqw,12px);white-space:nowrap}
#agendaInicio .agenda-news .agenda-heading{justify-content:flex-start;gap:8px;align-items:center}
#agendaInicio #noticiasStatus{margin:0;font-size:clamp(8px,.95cqw,11px);line-height:1.2;min-width:0}
@media(max-width:480px){#agendaInicio .agenda-detail .agenda-heading{padding-left:0}#agendaInicio .agenda-detail-actions{gap:5px}#agendaInicio #calDia{font-size:9px}#agendaInicio .agenda-month{font-size:12px;padding:5px 10px}#agendaInicio #noticiasStatus{font-size:9px}}
/* 8.8: cabeçalho compacto e fundo do detalhamento fornecido pelo usuário. */
#agendaInicio .agenda-calendar>.agenda-heading{flex-wrap:nowrap;gap:4px;padding-right:0;min-height:24px}
#agendaInicio .agenda-calendar>.agenda-heading h2{font-size:1.7cqw;gap:3px;min-width:0}
#agendaInicio .agenda-calendar>.agenda-heading h2 i{font-size:1.7cqw}
#agendaInicio .agenda-month{flex:none;font-size:1.2cqw;padding:3px 5px;min-height:21px;margin:0;border-radius:5px}
#agendaInicio #calEventos{background:linear-gradient(90deg,rgba(255,255,255,.86),rgba(255,255,255,.55) 57%,rgba(255,255,255,.08)),url('/static/outros/agenda-detalhamento.png') center/cover;border-color:#d2dfeb}
#agendaInicio #calEventos .cal-event{background:transparent}
body.dark-mode #agendaInicio #calEventos{background:linear-gradient(90deg,rgba(18,34,53,.92),rgba(18,34,53,.7) 57%,rgba(18,34,53,.25)),url('/static/outros/agenda-detalhamento.png') center/cover}
@media(max-width:480px){#agendaInicio .agenda-calendar>.agenda-heading h2{font-size:13px}#agendaInicio .agenda-calendar>.agenda-heading h2 i{font-size:15px}#agendaInicio .agenda-month{font-size:11px;min-height:23px;padding:3px 7px}}
/* 8.9: seleção circular, sem preencher a célula do calendário. */
#agendaInicio .cal-selected,#agendaInicio .cal-day:hover,#agendaInicio .cal-today:not(.cal-selected){background:transparent!important;box-shadow:none!important;text-decoration:none;color:var(--module-ink,#193f76);border-radius:0}
#agendaInicio .cal-number{display:inline-flex;align-items:center;justify-content:center;width:clamp(17px,2.9cqw,28px);height:clamp(17px,2.9cqw,28px);border:1.5px solid transparent;border-radius:50%;box-sizing:border-box;line-height:1}
#agendaInicio .cal-selected .cal-number{border-color:#1976d2;color:#1976d2;background:transparent;font-weight:800}
#agendaInicio .cal-today:not(.cal-selected) .cal-number{border-color:#8eb9e6;color:#1976d2}
#agendaInicio #calFiscalStatus{font-size:8px;line-height:1.2;color:var(--module-muted);margin:3px 0 0;max-height:20px;overflow:auto}
#agendaInicio .cal-source{display:inline-block;font-size:9px;color:#175ba4;text-decoration:underline;margin-top:3px}
#agendaInicio .noticias-retry{border:0;background:transparent;color:#175ba4;text-decoration:underline;cursor:pointer;font:inherit;padding:0}
body.dark-mode #agendaInicio .cal-selected .cal-number,body.dark-mode #agendaInicio .cal-today:not(.cal-selected) .cal-number{color:#8cc8ff;border-color:#8cc8ff}
body.dark-mode #agendaInicio .cal-source,body.dark-mode #agendaInicio .noticias-retry{color:#8cc8ff}

/* Conteúdo extenso começa no topo, com rolagem interna do cartão. */
#agendaInicio #calEventos .cal-event{align-items:flex-start}


/* 8.10: texto integral e apenas o passador lateral, sem rolagem interna. */
#agendaInicio{aspect-ratio:auto;height:auto}
#agendaInicio .agenda-side{grid-template-rows:auto auto}
#agendaInicio .agenda-calendar{align-self:start;min-height:190px}
#agendaInicio .agenda-rotator{flex:none}
#agendaInicio .agenda-rotator-list{overflow:hidden!important;scrollbar-width:none}
#agendaInicio .agenda-rotator-list>article{overflow:hidden!important}
#agendaInicio #informativosNoticiasTrack.agenda-news-list{background:none}
#agendaInicio #informativosNoticiasTrack .agenda-news-item{background-size:cover;background-position:center;border-radius:10px}
#agendaInicio .agenda-news-item a,#agendaInicio .agenda-news-item p,#agendaInicio .cal-event-text strong,#agendaInicio .cal-event-text p{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#agendaInicio .cal-event-text strong,#agendaInicio .agenda-news-item a{font-size:12px}
#agendaInicio .cal-event-text small,#agendaInicio .cal-event-text p,#agendaInicio .agenda-news-item p{font-size:11px;line-height:1.35}

/* 8.12: atividades compactas como 8.8, sem rolagem do texto. */
#agendaInicio .agenda-detail .agenda-rotator{height:clamp(64px,calc((100cqw * 657 / 2150 - 25px) * .52 - 27px),130px);flex:none}
#agendaInicio #calEventos .cal-event{height:100%;min-height:100%;padding:6px 8px}
#agendaInicio #calEventos .cal-event-text{min-height:0;max-height:100%;overflow:hidden}
#agendaInicio #calEventos .cal-event-text strong{font-size:clamp(10px,1.35cqw,15px);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
#agendaInicio #calEventos .cal-event-text small{font-size:clamp(9px,1cqw,11px);margin-top:2px}
#agendaInicio #calEventos .cal-event-text p{font-size:clamp(9px,1cqw,11px);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:2px}
@media(max-width:480px){#agendaInicio .agenda-detail .agenda-rotator{height:110px}}

/* 8.13: notícias compactas; fundos e movimento vertical preservados. */
#agendaInicio .agenda-news .agenda-rotator{height:clamp(64px,calc((100cqw * 657 / 2150 - 25px) * .52 - 27px),130px);flex:none}
#agendaInicio #informativosNoticiasTrack .agenda-news-item{height:100%;min-height:100%;padding:5px 8px;row-gap:2px;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}
#agendaInicio .agenda-news-item>div{min-height:0;overflow:hidden}
#agendaInicio .agenda-news-item a{font-size:clamp(10px,1.35cqw,15px);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
#agendaInicio .agenda-news-item p{font-size:clamp(9px,1cqw,11px);line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:2px}
#agendaInicio .agenda-news-item time{line-height:1.1}
@media(max-width:480px){#agendaInicio .agenda-news .agenda-rotator{height:110px}}

/* 8.14: base do calendário alinhada à base das notícias. */
#agendaInicio #calFiscalStatus:empty{display:none}
@media(min-width:481px){
  #agendaInicio .agenda-calendar{align-self:stretch;height:auto}
  #agendaInicio .agenda-side{align-content:space-between;grid-template-rows:auto auto}
}

/* 8.15: data imediatamente após o resumo, sem distribuir espaço entre linhas. */
#agendaInicio #informativosNoticiasTrack .agenda-news-item{grid-template-rows:auto auto;align-content:start;row-gap:2px}
