/* Day only: keep calendar data, ACL and week/month styles untouched. */
.workspace:has(.agenda-grid.agenda-day){--ad-ink:#254137;--ad-muted:#566d60;--ad-line:#91b29a70;--ad-panel:#ffffff60;--ad-control:#f3f8ee;--ad-task:#755820;--ad-task-bg:linear-gradient(110deg,#f9edcd,#f1dfb3);--ad-task-rim:#b38a3c;--ad-commit:#295846;--ad-commit-bg:linear-gradient(110deg,#deefe4,#cfe7d9);--ad-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-grid.agenda-day){--ad-ink:#ecf3e7;--ad-muted:#bbcebc;--ad-line:#bbd9b83d;--ad-panel:#b5d2ae12;--ad-control:#2a4435;--ad-task:#fff1c9;--ad-task-bg:linear-gradient(110deg,#66592b,#514922);--ad-task-rim:#ccb366;--ad-commit:#e0f2e4;--ad-commit-bg:linear-gradient(110deg,#305d4c,#2b4e40);--ad-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-grid.agenda-day) .agenda-heading{gap:14px;align-items:center;margin-bottom:23px}
.content:has(.agenda-grid.agenda-day) .agenda-heading h1{color:var(--ad-ink);font-weight:500;font-size:27px}
.content:has(.agenda-grid.agenda-day) .agenda-create .btn{border-radius:10px;font-size:12px;min-height:41px}
.content:has(.agenda-grid.agenda-day) [data-action=agenda-pending]{background:var(--ad-panel);color:var(--ad-ink);border:1px solid #baab6e80;box-shadow:0 0 10px #ddce690d}
.content:has(.agenda-grid.agenda-day) .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-grid.agenda-day) .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-grid.agenda-day) .agenda-modes{background:var(--ad-panel);border:1px solid var(--ad-line);box-shadow:inset 0 1px 0 #ffffff0c;border-radius:12px;padding:4px;gap:3px}
.content:has(.agenda-grid.agenda-day) .agenda-modes .btn{border-radius:9px;color:var(--ad-muted);min-height:38px}
.content:has(.agenda-grid.agenda-day) .agenda-modes .selected{background:linear-gradient(110deg,#99d47b,#dce778)!important;color:#294021;box-shadow:0 0 18px #c3df6f3d;font-weight:650}
.content:has(.agenda-grid.agenda-day) .agenda-navigation{margin:20px 0 22px;color:var(--ad-ink)}
.content:has(.agenda-grid.agenda-day) .agenda-navigation h2{color:var(--ad-ink);font-size:15px;text-transform:capitalize;font-weight:550}
.content:has(.agenda-grid.agenda-day) .agenda-navigation [data-action=agenda-today]{background:var(--ad-panel);border:1px solid var(--ad-line);border-radius:10px;color:var(--ad-ink)}
.content:has(.agenda-grid.agenda-day) .agenda-navigation .iconbtn{color:var(--ad-muted);border-radius:9px}
.content:has(.agenda-grid.agenda-day) .agenda-navigation .iconbtn:hover{background:var(--ad-panel);color:var(--ad-ink)}

#app .agenda-grid.agenda-day .agenda-card{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto;flex-shrink:0;border-radius:11px;border:1px solid var(--ad-line);margin-bottom:10px;transform:none;transition:border-color .2s,box-shadow .2s;box-shadow:inset 0 1px 0 #ffffff10}
#app .agenda-grid.agenda-day .agenda-card.agenda-task{--ad-item-text:#684f22;--ad-item-muted:#775f36;--ad-item-accent:#916a25;--ad-item-shine:#e8cf6730;background:var(--ad-task-bg)!important;border-color:color-mix(in srgb,var(--ad-task-rim) 65%,transparent);border-left:3px solid var(--ad-task-rim)!important;box-shadow:0 0 9px #c7ab5220,inset 0 1px 0 #ffffff0e}
#app .agenda-grid.agenda-day .agenda-card.agenda-commitment{--ad-item-text:#294f3e;--ad-item-muted:#486c58;--ad-item-accent:#397d60;--ad-item-shine:#72dbb330;background:var(--ad-commit-bg)!important;border-color:color-mix(in srgb,var(--ad-commit-rim) 55%,transparent);border-left:3px solid var(--ad-commit-rim)!important;box-shadow:0 0 9px #5dc4a021,inset 0 1px 0 #ffffff0e}
[data-theme=dark] #app .agenda-grid.agenda-day .agenda-card.agenda-task{--ad-item-text:#fff0c8;--ad-item-muted:#e2cfa8;--ad-item-accent:#f0ce78;--ad-item-shine:#e8cf6728}
[data-theme=dark] #app .agenda-grid.agenda-day .agenda-card.agenda-commitment{--ad-item-text:#e5f4e8;--ad-item-muted:#c3dfcb;--ad-item-accent:#91e4c6;--ad-item-shine:#72dbb32c}
.agenda-grid.agenda-day .agenda-card .agenda-item-open{position:relative;z-index:1;padding:14px 10px 14px 14px;gap:7px}
.agenda-grid.agenda-day .agenda-item-open>span{color:var(--ad-item-text);font-size:14px;font-weight:600;line-height:1.55}
.agenda-grid.agenda-day .agenda-item-open>small{color:var(--ad-item-muted);font-size:11px;line-height:1.7}
.agenda-grid.agenda-day .agenda-card .agenda-item-actions{position:relative;z-index:1;padding:10px 8px;gap:3px;flex-direction:row}
.agenda-grid.agenda-day .agenda-item-actions .iconbtn{color:var(--ad-item-accent);width:27px;height:27px;padding:4px;border-radius:7px}
.agenda-grid.agenda-day .agenda-item-actions .iconbtn .icon{width:17px;height:17px}
.agenda-grid.agenda-day .agenda-item-actions .iconbtn:hover,.agenda-grid.agenda-day .agenda-item-actions .iconbtn[aria-pressed=true]{background:color-mix(in srgb,var(--ad-item-accent) 17%,transparent);box-shadow:0 0 10px color-mix(in srgb,var(--ad-item-accent) 17%,transparent)}
.agenda-grid.agenda-day .agenda-item-actions .iconbtn:disabled{opacity:.4;box-shadow:none;cursor:default}
.agenda-grid.agenda-day .agenda-card.done .agenda-item-open>span{text-decoration:line-through;opacity:.8}
.agenda-grid.agenda-day .agenda-empty{color:var(--ad-muted);font-size:11px;margin:28px 0}
.agenda-grid.agenda-day .agenda-card::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;background:radial-gradient(ellipse at 0 0,var(--ad-item-shine),transparent 80%);opacity:0;transition:opacity .2s}
.agenda-grid.agenda-day .agenda-card:focus-within::after{opacity:1}
#app .agenda-grid.agenda-day .agenda-card.agenda-task:focus-within{border-color:#d6b664;box-shadow:0 0 16px #d9bd6240,inset 0 0 13px #e3ce6510}
#app .agenda-grid.agenda-day .agenda-card.agenda-commitment:focus-within{border-color:#6cc4a4;box-shadow:0 0 16px #63d6b33f,inset 0 0 13px #80dfb810}
@media(hover:hover){.agenda-grid.agenda-day .agenda-card:hover::after{opacity:1}#app .agenda-grid.agenda-day .agenda-card.agenda-task:hover{border-color:#d6b664;box-shadow:0 0 16px #d9bd6240,inset 0 0 13px #e3ce6510}#app .agenda-grid.agenda-day .agenda-card.agenda-commitment:hover{border-color:#6cc4a4;box-shadow:0 0 16px #63d6b33f,inset 0 0 13px #80dfb810}}

/* The daily grid and its child share agenda-day; require both grid classes. */
#app .workspace:has(.agenda-grid.agenda-day){background-attachment:fixed}
#app .agenda-grid.agenda-day{display:grid;grid-template-columns:minmax(0, .96fr) minmax(0,1.04fr);gap:16px;align-items:stretch;background:transparent!important;border:0;overflow:visible}
#app .agenda-grid.agenda-day::after{content:'';display:block;pointer-events:none;border:1px solid var(--ad-line);border-radius:14px;background:var(--ad-panel);min-height:calc(100vh - 285px);box-shadow:inset 0 1px 0 #ffffff0a}
#app .agenda-grid.agenda-day>.agenda-day{position:relative;min-width:0;max-width:none;overflow:visible;background:var(--ad-panel)!important;border:1px solid var(--ad-line);border-radius:14px;box-shadow:inset 0 1px 0 #ffffff0a}
#app .agenda-grid.agenda-day>.agenda-day>.agenda-day-heading{position:relative;isolation:isolate;min-height:62px;padding:14px 16px;border-radius:13px;background:linear-gradient(110deg,#d0e9d625,#e7e0b41a)!important;color:var(--ad-ink);border:1px solid #82ba9766;box-shadow:0 0 16px #67c8a72b,0 0 20px #e0ca6224;gap:10px}
.agenda-grid.agenda-day>.agenda-day>.agenda-day-heading::after{content:'';position:absolute;inset:0;pointer-events:none;border:1px solid #a8ca90;border-radius:inherit}
@supports(mask-composite:exclude){.agenda-grid.agenda-day>.agenda-day>.agenda-day-heading::after{padding:1px;border:0;background:linear-gradient(110deg,#62d7be,#aadfa0 48%,#e2cb64);-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}}
.agenda-grid.agenda-day .agenda-day-heading span{color:var(--ad-muted);font-size:10px;letter-spacing:.4px}
#app .agenda-grid.agenda-day>.agenda-day .agenda-day-heading strong{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:linear-gradient(110deg,#81d9b5,#d8e77c);color:#264c36;font-size:17px;font-weight:550;box-shadow:0 0 15px #b8dc7140}
.agenda-grid.agenda-day .agenda-day-heading small{color:var(--ad-muted);font-size:11px}
.agenda-grid.agenda-day .agenda-day-items{padding:10px;min-height:260px}
.content:has(.agenda-grid.agenda-day) .agenda-create [data-action=agenda-new-commitment]{background:var(--ad-panel);color:var(--ad-ink);border:1px solid #b9b1729c;box-shadow:0 0 16px #dac65f21}
.agenda-grid.agenda-day .agenda-empty{color:var(--ad-muted);font-size:12px;margin:36px 0}
.content:has(.agenda-grid.agenda-day)>.agenda-undated{color:var(--ad-muted)}
.content:has(.agenda-grid.agenda-day) :is(button,a,summary):focus-visible{outline:2px solid #518f71;outline-offset:3px}[data-theme=dark] .content:has(.agenda-grid.agenda-day) :is(button,a,summary):focus-visible{outline-color:#b5e6b7}
@media(max-width:800px){#app .agenda-grid.agenda-day{grid-template-columns:minmax(0,1fr)}#app .agenda-grid.agenda-day::after{display:none}}
@media(max-width:430px){.agenda-grid.agenda-day .agenda-day-items{padding:8px}}

@media(prefers-reduced-motion:reduce){.agenda-grid.agenda-day .agenda-card,.agenda-grid.agenda-day .agenda-card::after{transition:none}}
@media(forced-colors:active){.agenda-grid.agenda-day .agenda-card::after,.agenda-grid.agenda-day>.agenda-day>.agenda-day-heading::after{display:none}#app .agenda-grid.agenda-day .agenda-card{border:1px solid ButtonText}}
