/* My Space calendar insights and large calendar overlay — v1.9 */
.calendar-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.calendar-expand-btn{color:#0a84ff;font-size:11px;font-weight:650;border-radius:9px;padding:7px 9px;background:#f1f7ff;white-space:nowrap}
.calendar-expand-btn:hover{background:#e4f0ff}
.widget[data-widget="calendar"] .events{margin-bottom:10px}
.calendar-insights{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:10px;margin-top:5px}
.cal-insight{background:#f7f9fc;border:1px solid #eff2f6;border-radius:13px;min-width:0;padding:12px 13px}
.cal-insight-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#687380;font-size:11px;font-weight:650;margin-bottom:9px}
.cal-insight-head .cal-importance{color:#e29a37}
.cal-insight-number{font-size:19px;letter-spacing:-.055em;color:#232a35;font-weight:750}
.cal-insight-detail{color:#7f8a98;font-size:11px;line-height:1.45}
.cal-pinned-items{display:grid;gap:6px;min-width:0}
.cal-pinned-line{display:flex;align-items:center;gap:6px;color:#35404d;font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden}
.cal-pinned-line:before{content:'★';color:#dfa443;font-size:10px}
.cal-pinned-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-progress-track{height:7px;border-radius:99px;overflow:hidden;background:#e6ebf3;margin:8px 0}
.cal-progress-fill{display:block;width:0%;height:100%;background:#49a68c;transition:width 350ms ease;border-radius:99px}
.cal-scope{font-size:10px;color:#8b95a0;margin:8px 0 0;line-height:1.5}
.ms-cal-overlay{position:fixed;inset:0;z-index:10000;background:#111b2a77;display:none;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(5px)}
.ms-cal-overlay.open{display:flex}
body.ms-cal-open{overflow:hidden}
.ms-cal-panel{width:min(1090px,100%);max-height:calc(100dvh - 48px);overflow-y:auto;border:1px solid #e9edf1;background:#f6f8fb;border-radius:25px;box-shadow:0 24px 65px #0c173136;padding:24px;color:#202630}
.ms-cal-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:17px}
.ms-cal-kicker{font-size:11px;color:#798695;margin:0 0 5px;font-weight:650;letter-spacing:.02em}
.ms-cal-top h2{font-size:27px;letter-spacing:-.055em;margin:0;font-weight:750}
.ms-cal-top button{border:1px solid #e3e8ee;border-radius:11px;padding:8px 12px;background:white;color:#536171;cursor:pointer;font-size:12px}
.ms-cal-cols{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(285px,1fr);gap:14px}
.ms-cal-card{border:1px solid #ebedf1;border-radius:19px;background:#fff;padding:20px;min-width:0}
.ms-cal-month-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px}
.ms-cal-month-head strong{font-size:18px;letter-spacing:-.045em}
.ms-cal-month-buttons{display:flex;gap:5px}
.ms-cal-month-buttons button{background:#f3f5f8;border:0;border-radius:9px;color:#667380;padding:8px 10px;cursor:pointer;font-size:12px}
.ms-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.ms-cal-weekday{text-align:center;font-size:11px;color:#96a1ad;padding:4px 0 8px;font-weight:600}
.ms-cal-day{height:61px;min-width:0;border:1px solid transparent;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:10px;gap:5px;background:transparent;color:#394553;cursor:pointer;font-size:13px}
.ms-cal-day:hover{background:#f1f6fe}
.ms-cal-day.other{color:#b5bbc3}
.ms-cal-day.today{color:#007aff;font-weight:750}
.ms-cal-day.selected{border-color:#c7dbfd;background:#edf5ff;color:#006bd6}
.ms-cal-day .day-dot{width:5px;height:5px;border-radius:50%;background:#4aa7b4}
.ms-cal-day:focus-visible{outline:2px solid #0a84ff;outline-offset:2px}
.ms-cal-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.ms-cal-section-title{font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
.ms-cal-card .cal-insight-number{font-size:25px}
.ms-cal-status{font-size:12px;color:#929ca8;line-height:1.6;margin:0}
.ms-cal-items{display:grid;gap:8px}
.ms-cal-item{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 11px;background:#f7f9fc;border-radius:11px}
.ms-cal-item i{width:6px;height:6px;border-radius:50%;background:#79a6dc;flex:none}
.ms-cal-item.done i{background:#55a98a}
.ms-cal-item strong{font-size:12px;font-weight:620;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.ms-cal-item small{font-size:10px;color:#8591a0;flex:none}
.ms-cal-item.pinned strong:before{content:'★ ';color:#e4a34a}
.ms-cal-notice{font-size:11px;line-height:1.7;color:#858f9c;margin:16px 2px 0}
.ms-cal-foot{margin-top:13px;display:flex;justify-content:flex-end}
.ms-cal-foot a{font-size:12px;font-weight:650;color:#0a84ff;text-decoration:none}
@media(max-width:850px){
 .ms-cal-overlay{padding:12px}
 .ms-cal-panel{max-height:calc(100dvh - 24px);padding:18px;border-radius:21px}
 .ms-cal-cols{grid-template-columns:1fr}
 .ms-cal-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .ms-cal-day{height:54px;padding-top:9px}
 .ms-cal-card{padding:15px}
}
@media(max-width:620px){
 .calendar-insights{grid-template-columns:1fr}
 .calendar-actions{gap:2px}
 .calendar-expand-btn{padding:6px}
 .ms-cal-top h2{font-size:23px}
 .ms-cal-side{grid-template-columns:1fr}
 .ms-cal-day{height:46px;font-size:12px}
 .ms-cal-grid{gap:2px}
 .ms-cal-panel{padding:14px}
 .ms-cal-card{padding:13px}
}
@media(prefers-reduced-motion:reduce){.cal-progress-fill{transition:none}}

/* v2.3 visual palette sync with quiet My Space board */
.calendar-expand-btn{color:#527582!important;background:transparent!important}
.calendar-expand-btn:hover{background:#edf3f1!important}
.cal-insight{background:#f7f8f7;border-color:#edf0ef}
.cal-insight-head{color:#6f7c81}
.cal-progress-fill,.ms-mini-progress>i{background:#7a9e91}
.ms-cal-panel{background:#f7f7f6;border-color:#e5e9e7}
.ms-cal-card{border-color:#e8ebe9;box-shadow:0 1px 9px #20303e05}
.ms-cal-day:hover{background:#f2f5f3}
.ms-cal-day.today{color:#527582}
.ms-cal-day.selected{border-color:#acc3c1;background:#edf3f1;color:#426671}
.ms-cal-month-buttons button{background:#f4f6f4;color:#65777b}
.ms-cal-month-buttons button:hover{background:#eaf0ee}
.ms-cal-foot a{color:#527582}
.ms-cal-item{background:#f5f7f6}
.ms-cal-item i{background:#7998a0}
