.sp-agenda-workspace {
 --agenda-ink:#101c52;
 --agenda-line:#d9e5fa;
 --agenda-blue:linear-gradient(120deg,#0099ec,#0757e6 58%,#7927ef);
 display:grid;
 gap:14px;
 min-width:0;
 color:var(--agenda-ink);
}
.sp-agenda-workspace [hidden],.sp-agenda-status:empty { display:none!important; }
.sp-agenda-hero {
 position:relative;
 isolation:isolate;
 overflow:hidden;
 display:flex;
 align-items:center;
 gap:17px;
 min-height:112px;
 padding:16px clamp(14px,2vw,24px);
 padding-right:clamp(170px,24vw,310px);
 border-radius:20px;
 color:#fff;
 background:
 radial-gradient(ellipse at 87% 155%,#4734db88 0 38%,transparent 38.5%),
 radial-gradient(ellipse at 90% 150%,#0059d66e 0 54%,transparent 54.5%),
 linear-gradient(113deg,#0748ba 2%,#006ad2 42%,#00a9ec 68%,#6b29ed);
 box-shadow:0 5px 13px #12478e2a;
}
.sp-agenda-hero h2 { margin:0; color:#fff; font-size:clamp(1.5rem,3.5vw,2.65rem); letter-spacing:-.035em; line-height:1.05; }
.sp-agenda-hero p { margin:6px 0 0; color:#fff; line-height:1.35; font-weight:600; }
.sp-agenda-hero-icon { display:grid; place-items:center; flex:none; width:68px; height:68px; border-radius:16px; background:#f5f9ff; box-shadow:0 5px 14px #06236e50; }
.sp-agenda-hero-icon img { width:48px; height:48px; object-fit:contain; }
.sp-agenda-art { position:absolute; right:3%; bottom:2px; display:flex; align-items:flex-end; pointer-events:none; filter:drop-shadow(0 6px 9px #06205b67); }
.sp-agenda-art img { width:clamp(67px,8vw,118px); height:auto; object-fit:contain; }
.sp-agenda-art img:first-child { transform:rotate(-10deg); }
.sp-agenda-art img:nth-child(2) { margin-left:-12px; transform:rotate(8deg); }
.sp-agenda-art img:last-child { position:absolute; left:36%; bottom:-1%; width:39%; }
.sp-agenda-tabs { display:flex; gap:10px; flex-wrap:wrap; }
.sp-agenda-tabs button,.sp-agenda-monthbar button,.sp-agenda-card-head button {
 display:inline-flex; align-items:center; justify-content:center; gap:7px;
 min-height:39px; padding:7px 13px; border:1px solid var(--agenda-line); border-radius:13px;
 background:#edf3ff; color:#153773; font-weight:750; line-height:1.18;
}
.sp-agenda-tabs button { flex:0 1 235px; min-height:46px; border-radius:999px; box-shadow:0 3px 7px #173b8c28; }
.sp-agenda-tabs button[aria-pressed=true] { background:var(--agenda-blue); color:#fff; border-color:transparent; }
.sp-agenda-tabs img,.sp-agenda-monthbar img { width:21px; height:21px; object-fit:contain; }
.sp-agenda-status { margin:0; padding:8px 12px; color:#26467a; background:#ebf2ff; border-radius:9px; }
.sp-agenda-layout { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:14px; align-items:start; }
.sp-agenda-stack { display:grid; gap:12px; min-width:0; }
.sp-agenda-card { border-radius:18px; background:linear-gradient(135deg,#fff,#f7faff); }
.sp-agenda-card h2 { margin:0; display:flex; align-items:center; gap:6px; }
.sp-agenda-card h2 img { width:29px; height:29px; object-fit:contain; }
.sp-agenda-monthbar { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:8px; align-items:center; }
.sp-agenda-monthbar h2 { display:block; text-align:center; text-transform:capitalize; }
.sp-agenda-monthbar button[data-agenda-step] { font-size:1.38rem; line-height:1; min-width:38px; }
[data-agenda-calendar],[data-agenda-week-days] { position:relative; overflow:hidden; border-radius:12px; }
[data-agenda-calendar] { margin-top:10px; }
.sp-agenda-workspace .sp-agenda-calendar {
 gap:0; margin:0; overflow:hidden; border:1px solid var(--agenda-line); border-radius:12px; background:#f6f9ff;
}
.sp-agenda-page-outgoing { position:absolute; inset:0 0 auto; pointer-events:none; }
.sp-agenda-workspace .sp-agenda-calendar > :is(button,b,span) {
 min-height:40px; padding:3px 0; border:0; border-radius:0;
 border-right:1px solid #e1e9fa; border-bottom:1px solid #e1e9fa; background:transparent; font-weight:700;
}
.sp-agenda-workspace .sp-agenda-calendar > b { min-height:31px; background:#e9effa; }
.sp-agenda-workspace .sp-agenda-calendar button:hover { background:#e2eeff; }
.sp-agenda-workspace .sp-agenda-calendar button[aria-current=date] { box-shadow:inset 0 0 0 2px #2785e6; }
.sp-agenda-workspace .sp-agenda-calendar button[aria-pressed=true] { background:linear-gradient(125deg,#13a4f5,#0451d7); color:#fff; border-radius:7px; }
.sp-agenda-calendar .sp-agenda-dots { display:flex; min-height:0; gap:2px; justify-content:center; border:0; background:transparent; }
.sp-agenda-workspace [data-tone] { --tone:#1269dd; --wash:#e2efff; }
.sp-agenda-workspace [data-tone=class] { --tone:#087332; --wash:#dff6e6; }
.sp-agenda-workspace [data-tone=task] { --tone:#6012c9; --wash:#eee5ff; }
.sp-agenda-workspace [data-tone=exam] { --tone:#96530c; --wash:#fff2d6; }
.sp-agenda-workspace [data-tone=holiday] { --tone:#126970; --wash:#ddf6f4; }
.sp-agenda-workspace [data-tone=cancelled] { --tone:#a32845; --wash:#fbe7ee; }
.sp-agenda-workspace .sp-agenda-calendar i,.sp-agenda-legend i { width:7px; height:7px; border-radius:50%; background:var(--tone); }
.sp-agenda-calendar [aria-pressed=true] i { box-shadow:0 0 0 1px #fff; }
.sp-agenda-legend h3 { margin:12px 0 6px; font-size:.92rem; }
.sp-agenda-legend ul { display:flex; flex-wrap:wrap; gap:5px; margin:0; padding:0; list-style:none; }
.sp-agenda-legend li { display:flex; gap:5px; align-items:center; padding:4px 7px; border-radius:8px; background:var(--wash); font-size:.72rem; font-weight:700; }
.sp-agenda-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-top:8px; }
.sp-agenda-actions button {
 display:grid; justify-items:center; align-content:center; gap:5px; min-height:72px; padding:7px 3px;
 border:1px solid var(--agenda-line); border-radius:12px; background:#deefff; color:var(--agenda-ink); font-size:.78rem; font-weight:750;
}
.sp-agenda-actions button:nth-child(2) { background:#eee5ff; }
.sp-agenda-actions button:nth-child(4) { background:#e0f7e8; }
.sp-agenda-actions img { width:27px; height:27px; object-fit:contain; }
.sp-agenda-card-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:9px; }
.sp-agenda-card-head label { display:grid; gap:3px; color:#233f79; font-size:.78rem; font-weight:700; }
.sp-agenda-card-head select { max-width:100%; border:1px solid var(--agenda-line); border-radius:9px; background:#f6f9ff; color:var(--agenda-ink); padding:5px 8px; }
.sp-agenda-event-list,.sp-agenda-class-list,.sp-agenda-month-classes { display:grid; gap:7px; }
.sp-agenda-event-list { max-height:340px; overflow:auto; }
.sp-agenda-item,.sp-agenda-class {
 display:grid; align-items:center; gap:8px; padding:7px; border:1px solid #e3ebfa; border-radius:12px; background:#f8faff;
}
.sp-agenda-item { grid-template-columns:auto auto minmax(0,1fr) auto; }
.sp-agenda-event-icon { width:37px; height:37px; display:grid; place-items:center; flex:none; border-radius:9px; background:var(--wash); }
.sp-agenda-event-icon img { width:25px; height:25px; object-fit:contain; }
.sp-agenda-item time,.sp-agenda-kind { padding:4px 6px; border-radius:7px; background:#eaf0fd; font-size:.72rem; font-weight:750; white-space:nowrap; }
.sp-agenda-kind { background:var(--wash); color:var(--tone); border-radius:999px; }
.sp-agenda-item :is(strong,small),.sp-agenda-class :is(strong,small) { display:block; overflow-wrap:anywhere; }
.sp-agenda-item small,.sp-agenda-class small { margin-top:2px; color:#304979; font-size:.81rem; }
.sp-agenda-class { grid-template-columns:auto minmax(0,1fr); padding:0; overflow:hidden; }
.sp-agenda-class time { padding:10px; font-size:.83rem; font-weight:800; white-space:nowrap; }
.sp-agenda-class > div { display:flex; align-items:center; gap:9px; min-height:55px; padding:7px 10px; border-left:4px solid var(--tone); background:var(--wash); }
.sp-agenda-month-classes { margin-top:13px; gap:14px; }
.sp-agenda-month-classes h3 { margin:0 0 5px; font-size:.95rem; text-transform:capitalize; }
.sp-agenda-card-links { display:flex; flex-wrap:wrap; gap:6px; }
.sp-agenda-monthbar [data-agenda-week-range] { margin:0; text-align:center; font-size:clamp(.87rem,2vw,1.15rem); }
[data-agenda-week-days]:not(:empty) { margin-top:13px; }
.sp-agenda-week-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:10px; }
.sp-agenda-week-day { min-width:0; padding:10px; border:1px solid var(--agenda-line); border-radius:12px; background:#f8faff; }
.sp-agenda-week-day[aria-current=date] { border-color:#83b4ff; background:#edf5ff; }
.sp-agenda-week-day h4 { display:flex; align-items:center; justify-content:space-between; gap:5px; margin:0 0 8px; font-size:.96rem; }
.sp-agenda-week-day h4 time::first-letter { text-transform:uppercase; }
.sp-agenda-week-day h4 span { border-radius:999px; padding:3px 8px; color:#164caa; background:#d9e9ff; font-size:.75rem; }
.sp-agenda-week-day .sp-agenda-empty { margin:0; padding:2px 0; }
[data-agenda-week-status]:not(:empty) { margin-top:10px; }
.sp-agenda-empty { padding:8px 0; color:#48618e; }
.sp-agenda-workspace :is(button,select):focus-visible { outline:2px solid #145ada; outline-offset:2px; }
@media(max-width:930px) { .sp-agenda-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:560px) {
 .sp-agenda-hero { padding-right:13px; gap:11px; }
 .sp-agenda-art { display:none; }
 .sp-agenda-hero-icon { width:46px; height:46px; }
 .sp-agenda-hero-icon img { width:33px; height:33px; }
 .sp-agenda-tabs button { flex:1 1 140px; font-size:.87rem; }
 .sp-agenda-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .sp-agenda-item { grid-template-columns:auto auto minmax(0,1fr); }
 .sp-agenda-item .sp-agenda-kind { grid-column:3; justify-self:start; }
 .sp-agenda-week-day .sp-agenda-class time { padding:7px; font-size:.76rem; }
}
@media print {
 .sp-dashboard:has([data-sp-panel=agenda]:not([hidden])) { display:block!important; }
 .sp-dashboard:has([data-sp-panel=agenda]:not([hidden])) > :is(header,aside),
 .sp-agenda-tabs,.sp-agenda-actions,.sp-agenda-status,.sp-agenda-card-head button,.sp-agenda-monthbar button,.sp-agenda-card:has(.sp-agenda-actions) { display:none!important; }
 .sp-agenda-event-list { max-height:none; overflow:visible; }
 .sp-agenda-hero,.sp-agenda-card,.sp-agenda-item,.sp-agenda-class { break-inside:avoid; box-shadow:none; }
 .sp-agenda-hero { background:#fff; color:#101c52; padding:10px 0; min-height:0; }
 .sp-agenda-hero :is(h2,p) { color:#101c52; }
 .sp-agenda-hero :is(.sp-agenda-art,.sp-agenda-hero-icon) { display:none; }
 .sp-agenda-monthbar { display:block; }
}
