/* Month only: keep calendar data, ACL and day/week styles untouched. */
.workspace:has(.agenda-month){--am-ink:#254137;--am-muted:#566d60;--am-line:#91b29a70;--am-panel:#ffffff60;--am-control:#f3f8ee;--am-task:#755820;--am-task-bg:linear-gradient(110deg,#f9edcd,#f1dfb3);--am-task-rim:#b38a3c;--am-commit:#295846;--am-commit-bg:linear-gradient(110deg,#deefe4,#cfe7d9);--am-commit-rim:#5b9c81;background:radial-gradient(ellipse at 0 0,#a5e0ce7d,transparent 52%),radial-gradient(ellipse at 100% 100%,#d8c78a6b,transparent 65%),linear-gradient(125deg,#e6f0e9,#f3f0df)}
[data-theme=dark] .workspace:has(.agenda-month){--am-ink:#ecf3e7;--am-muted:#bbcebc;--am-line:#bbd9b83d;--am-panel:#b5d2ae12;--am-control:#2a4435;--am-task:#fff1c9;--am-task-bg:linear-gradient(110deg,#66592b,#514922);--am-task-rim:#ccb366;--am-commit:#e0f2e4;--am-commit-bg:linear-gradient(110deg,#305d4c,#2b4e40);--am-commit-rim:#77b69c;background:radial-gradient(ellipse at 0 0,#319b8666,transparent 54%),radial-gradient(ellipse at 100% 100%,#ba932d55,transparent 65%),linear-gradient(125deg,#173b32,#31442a 60%,#514122)}
.content:has(.agenda-month) .agenda-heading{gap:14px;align-items:center;margin-bottom:23px}
.content:has(.agenda-month) .agenda-heading h1{color:var(--am-ink);font-weight:500;font-size:27px}
.content:has(.agenda-month) .agenda-create .btn{border-radius:10px;font-size:12px;min-height:41px}
.content:has(.agenda-month) [data-action=agenda-pending]{background:var(--am-panel);color:var(--am-ink);border:1px solid #baab6e80;box-shadow:0 0 10px #ddce690d}
.content:has(.agenda-month) .agenda-create [data-action=agenda-new-task]{background:linear-gradient(110deg,#177c7a,#177b91);color:#fff;border:1px solid #78cdc980;box-shadow:0 0 18px #65d8bd30}
.content:has(.agenda-month) .agenda-create [data-action=agenda-new-commitment]{background:linear-gradient(110deg,#285b9e,#3153a6);color:#fff;border:1px solid #77a0dc80;box-shadow:0 0 18px #5d88dc2c}
.content:has(.agenda-month) .agenda-modes{background:var(--am-panel);border:1px solid var(--am-line);box-shadow:inset 0 1px 0 #ffffff0c;border-radius:12px;padding:4px;gap:3px}
.content:has(.agenda-month) .agenda-modes .btn{border-radius:9px;color:var(--am-muted);min-height:38px}
.content:has(.agenda-month) .agenda-modes .selected{background:linear-gradient(110deg,#99d47b,#dce778)!important;color:#294021;box-shadow:0 0 18px #c3df6f3d;font-weight:650}
.content:has(.agenda-month) .agenda-navigation{margin:20px 0 22px;color:var(--am-ink)}
.content:has(.agenda-month) .agenda-navigation h2{color:var(--am-ink);font-size:15px;text-transform:capitalize;font-weight:550}
.content:has(.agenda-month) .agenda-navigation [data-action=agenda-today]{background:var(--am-panel);border:1px solid var(--am-line);border-radius:10px;color:var(--am-ink)}
.content:has(.agenda-month) .agenda-navigation .iconbtn{color:var(--am-muted);border-radius:9px}
.content:has(.agenda-month) .agenda-navigation .iconbtn:hover{background:var(--am-panel);color:var(--am-ink)}
.agenda-month{gap:9px}
#app .agenda-month>.agenda-day{position:relative;isolation:isolate;border:1px solid var(--am-line);border-radius:12px;background:var(--am-panel)!important;box-shadow:inset 0 1px 0 #ffffff0a;transition:border-color .22s,box-shadow .22s}
#app .agenda-month>.agenda-day>.agenda-day-heading,#app .agenda-month>.agenda-day>.agenda-day-items{position:relative;z-index:1}
#app .agenda-month>.agenda-day>.agenda-day-heading{background:linear-gradient(110deg,#d0e9d61b,#e7e0b410)!important;color:var(--am-ink);border-bottom:1px solid var(--am-line);padding:12px 10px;gap:7px;min-height:44px}
.agenda-month .agenda-day-heading span{font-size:9px;letter-spacing:.2px;color:var(--am-muted)}
.agenda-month .agenda-day-heading strong{font-size:14px;font-weight:550;color:var(--am-ink)}
.agenda-month .agenda-day-heading small{font-size:10px;color:var(--am-muted)}
#app .agenda-month .agenda-day.today{border-color:#8ebc7e;box-shadow:0 0 10px #91cf7e1f}
#app .agenda-month .agenda-day.today .agenda-day-heading strong{background:linear-gradient(110deg,#a4da86,#e1e88c);color:#2e4524;box-shadow:0 0 13px #b0da6e30}
.agenda-month .agenda-day-items{height:138px;min-height:138px;padding:7px;scrollbar-width:thin;scrollbar-color:#88b59d77 transparent;overscroll-behavior:contain}
.agenda-month .agenda-day-items::-webkit-scrollbar{width:5px}.agenda-month .agenda-day-items::-webkit-scrollbar-thumb{background:#88b59d77;border-radius:7px}.agenda-month .agenda-day-items::-webkit-scrollbar-track{background:transparent}
.agenda-month .agenda-mini{font-size:11px;line-height:1.4;padding:5px 7px;margin-bottom:5px;border-radius:7px;border:1px solid transparent;min-height:27px;box-shadow:inset 0 1px 0 #ffffff08;transition:box-shadow .18s,filter .18s}
.agenda-month .agenda-mini.agenda-task{background:var(--am-task-bg);color:var(--am-task);border-color:color-mix(in srgb,var(--am-task-rim) 67%,transparent);border-left:3px solid var(--am-task-rim)}
.agenda-month .agenda-mini.agenda-commitment{background:var(--am-commit-bg);color:var(--am-commit);border-color:color-mix(in srgb,var(--am-commit-rim) 50%,transparent);border-left:3px solid var(--am-commit-rim)}
.agenda-month .agenda-mini.done{opacity:.72;filter:saturate(.55);text-decoration:line-through}
.agenda-month .agenda-mini:hover{filter:brightness(1.06);box-shadow:0 0 10px #c8db8c23}
.agenda-month .agenda-day-items>.btn[data-action=agenda-day]{background:linear-gradient(110deg,#94d87c,#dbe77a);color:#2a4225;border:1px solid #cbeba06b;border-radius:7px;font-size:10px;font-weight:650;padding:4px 8px;min-height:26px;box-shadow:0 0 10px #b8dc6623}
#app .agenda-month>.agenda-day::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;z-index:0;background:radial-gradient(ellipse at 0 0,#68d5b724,transparent 70%),radial-gradient(ellipse at 100% 100%,#ddd36e1c,transparent 75%);opacity:0;transition:opacity .22s}
@supports(mask-composite:exclude){#app .agenda-month>.agenda-day::before{content:'';position:absolute;inset:0;padding:1px;border-radius:inherit;z-index:2;pointer-events:none;background:linear-gradient(115deg,#5ad6bf,#a0e0b0 50%,#e3ce62);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:0;transition:opacity .22s}}
#app .agenda-month>.agenda-day:focus-within{border-color:#83c5a5;box-shadow:0 0 15px #56cfb636,0 0 20px #d7ca6026}
#app .agenda-month>.agenda-day:focus-within::before,#app .agenda-month>.agenda-day:focus-within::after{opacity:1}
@media(hover:hover){#app .agenda-month>.agenda-day:hover{border-color:#83c5a5;box-shadow:0 0 15px #56cfb63d,0 0 20px #d7ca602b}#app .agenda-month>.agenda-day:hover::before,#app .agenda-month>.agenda-day:hover::after{opacity:1}}
.content:has(.agenda-month)>.agenda-undated{color:var(--am-muted)}
.content:has(.agenda-month) :is(button,a,summary):focus-visible{outline:2px solid #518f71;outline-offset:3px}[data-theme=dark] .content:has(.agenda-month) :is(button,a,summary):focus-visible{outline-color:#b5e6b7}
@media(max-width:700px){.agenda-month{gap:4px}#app .agenda-month>.agenda-day>.agenda-day-heading{padding:7px 5px;min-height:52px;gap:3px}.agenda-month .agenda-day-items{padding:4px;height:115px;min-height:115px}.agenda-month .agenda-mini{font-size:9px;padding:4px}.agenda-month .agenda-day-items>.btn[data-action=agenda-day]{padding:4px;font-size:9px}}
@media(prefers-reduced-motion:reduce){#app .agenda-month>.agenda-day,#app .agenda-month>.agenda-day::before,#app .agenda-month>.agenda-day::after,.agenda-month .agenda-mini{transition:none}}
@media(forced-colors:active){#app .agenda-month>.agenda-day::before,#app .agenda-month>.agenda-day::after{display:none}.agenda-month .agenda-mini{border:1px solid ButtonText}#app .agenda-month>.agenda-day:focus-within{outline:2px solid Highlight}}
