/* FM27 R72.2 – manager calendar skin. Reuses R27.35 context-frame and existing midnight palette. */
.fm72-cal{--fm72-ink:#eef4ff;--fm72-muted:#adbed8;--fm72-line:#354966;--fm72-panel:#19253d;--fm72-panel2:#1d2c47;width:100%;max-width:none!important;min-width:0;margin:0 0 2.25rem;color:var(--fm72-ink);box-sizing:border-box}
.fm72-cal *{box-sizing:border-box}
/* Canonical R27.35 double bands, not a parallel light-coloured header. */
body.fm27-unified-ui #pagecontent .fm72-cal>.fm27-cp{width:100%!important;max-width:none!important;margin:3px 0 10px}
body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-heading{border-left-color:#5dc1a3!important;background:linear-gradient(110deg,#171e33,#222647 65%,#192b45)!important}
body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-kicker{color:#8dcfbc!important}
body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-headline h2{text-transform:none!important}
body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-headline h2{font-size:1.04rem!important;letter-spacing:.015em}
body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-summary-item span{color:#a8bad6!important}
body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-summary-item strong{color:#f1f1ff!important}
body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-tools{justify-content:flex-start!important;background:#19253e!important}
body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-tools-left{justify-content:flex-start!important;flex:0 1 auto!important;width:auto!important;min-width:0!important}
.fm72-cal-controls{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
.fm72-cal-controls .fm72-cal-navbutton{width:36px;min-width:36px;height:33px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;border:1px solid #5c6d9b;background:#273657;color:#e4dcff!important;font-size:.86rem;font-weight:750;text-decoration:none!important;line-height:1;transition:background .15s,border-color .15s}
.fm72-cal-controls a:hover{background:#384b77;border-color:#aa94f7;color:white!important}
.fm72-cal-controls .fm72-today{width:auto;min-width:80px;padding:0 15px;background:#3a376b;border-color:#786ec1;color:#f2ecff!important}
.fm72-cal-controls .is-disabled{opacity:.4}
.fm72-cal-controls a:focus-visible{outline:2px solid #c0a9ff;outline-offset:2px}
/* Full-width legend: distinctive cool-colour accents, readable on dark surfaces. */
.fm72-cal-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 17px;width:100%;min-width:0;padding:8px 4px 11px;margin:0;color:#b6c5df;font-size:.73rem}
.fm72-cal-legend span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.fm72-cal-legend span:before{content:'';width:9px;height:9px;flex:none;border-radius:3px;background:#6c9fec}
.fm72-cal-legend .fm72-cat-market:before{background:#a883ff}.fm72-cal-legend .fm72-cat-training:before{background:#49c2cf}.fm72-cal-legend .fm72-cat-camp:before{background:#c07cf2}.fm72-cal-legend .fm72-cat-invite:before{background:#6f95d9}.fm72-cal-legend .fm72-cat-finance:before{background:#7cc49c}
/* Calendar: same midnight indigo / violet and blue accent hierarchy as the existing UI. */
.fm72-calendar-desktop{width:100%;max-width:none;min-width:0;border:1px solid #3c4e6d;border-radius:10px;overflow:hidden;background:#19253d;box-shadow:0 12px 24px rgba(3,7,20,.18)}
.fm72-cal-weekdays,.fm72-cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%}
.fm72-cal-weekdays{background:#223350;color:#bfceec;font-size:.72rem;font-weight:800;letter-spacing:.045em;text-align:center}
.fm72-cal-weekdays span{padding:12px 0}.fm72-cal-week+.fm72-cal-week{border-top:1px solid var(--fm72-line)}
.fm72-cal-day{min-width:0;min-height:127px;padding:9px 7px 10px;border-right:1px solid var(--fm72-line);background:#1b2941;position:relative;color:#e8f0fd}
.fm72-cal-day:last-child{border-right:0}.fm72-cal-day.is-outside{background:#171f34}.fm72-cal-day.is-today{box-shadow:inset 0 3px 0 #9b88ff;background:#262b4c}
.fm72-cal-day>header{display:flex;align-items:center;gap:7px;margin:0 0 7px;padding:0 2px;font-size:.78rem;font-weight:790;color:#e4eafd}
.fm72-cal-day>header span{font-size:.59rem;padding:3px 8px;border-radius:99px;background:#434080;color:#f1e9ff;font-weight:750}
.fm72-cal-day.is-outside>header time{color:#7487a5}.fm72-day-events{display:flex;flex-direction:column;gap:5px;min-width:0}
.fm72-event{min-width:0;display:flex;align-items:center;gap:5px;border:1px solid #42628c;border-left:3px solid #71a3f3;border-radius:7px;padding:6px 5px;background:#263e62;color:#e6f0ff!important;text-decoration:none!important;font-size:.69rem;line-height:1.33;overflow:hidden;transition:background .15s,border-color .15s}
.fm72-event:hover{background:#344f78;color:#fff!important}.fm72-event:focus-visible{outline:2px solid #c4afff;outline-offset:1px}
.fm72-event i{flex:none;font-size:.77rem;color:inherit}.fm72-event img{width:17px;height:17px;max-width:17px;max-height:17px;flex:none;object-fit:contain}
.fm72-event .fm72-comp-icon{max-width:17px;max-height:17px}.fm72-event-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.fm72-event-body strong{font-size:inherit;font-weight:755;overflow-wrap:anywhere;line-height:1.3}.fm72-event-body small{font-size:.62rem;color:#c3d1ef;opacity:1;overflow-wrap:anywhere;line-height:1.35}
.fm72-event-score{flex:none;font-size:.68rem;color:#e6eeff}
.fm72-kind-market{background:#312a5d;border-color:#6350ab;border-left-color:#aa8eff;color:#eee4ff!important}.fm72-kind-market:hover{background:#40367b}.fm72-kind-market .fm72-event-body small{color:#d3c3ff}
.fm72-kind-training{background:#173c4b;border-color:#2e7483;border-left-color:#49c2cf;color:#ddf9ff!important}.fm72-kind-training:hover{background:#205364}.fm72-kind-training .fm72-event-body small{color:#b9edf3}
.fm72-kind-camp{background:#3c2d5d;border-color:#7253a8;border-left-color:#c07cf2;color:#f1e4ff!important}.fm72-kind-camp:hover{background:#503a7b}.fm72-kind-camp .fm72-event-body small{color:#debcff}
.fm72-kind-invite{background:#213b62;border-color:#416ea2;border-left-color:#74a9ff;color:#e3eeff!important}.fm72-kind-invite:hover{background:#2c4c7c}.fm72-kind-invite .fm72-event-body small{color:#c2d8ff}
.fm72-kind-finance{background:#20354a;border-color:#41708d;border-left-color:#63c0f0;color:#dff5ff!important}.fm72-kind-finance:hover{background:#294761}.fm72-kind-finance .fm72-event-body small{color:#bde0f1}
.fm72-kind-season{background:#223a36;border-color:#487f70;border-left-color:#7cc49c;color:#e5fff4!important}.fm72-kind-season:hover{background:#2d4d47}.fm72-kind-season .fm72-event-body small{color:#c7ead8}
.fm72-calendar-mobile{display:none}.fm72-cal-empty{width:100%;padding:14px;border:1px solid #394865;border-radius:9px;background:#1f2b44;color:#cbd9ee}
@media(max-width:1250px){.fm72-cal-day{min-height:117px;padding:7px 5px}.fm72-event{font-size:.65rem;padding:5px 4px;gap:4px}.fm72-event .fm72-comp-icon{max-width:15px;max-height:15px}}
@media(max-width:830px){.fm72-calendar-desktop{display:none}.fm72-calendar-mobile{display:flex;flex-direction:column;width:100%;gap:9px}.fm72-mobile-day{border:1px solid #3c4d6b;border-radius:9px;background:#1b2941;overflow:hidden;padding:9px;display:flex;flex-direction:column;gap:6px}.fm72-mobile-day h2{font-size:.85rem;font-weight:780;margin:0 0 1px;padding:3px 4px;color:#c6d4f1}.fm72-mobile-day.is-today{border-color:#a18aff;box-shadow:inset 3px 0 0 #a18aff}.fm72-event{font-size:.83rem;padding:9px 8px;gap:8px}.fm72-event-body small{font-size:.72rem}.fm72-event img{max-width:20px;max-height:20px;width:20px;height:20px}.fm72-empty-day{font-size:.74rem;color:#8f9ebc;margin:3px 5px}.fm72-cal-legend{font-size:.7rem}}
@media(max-width:620px){body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-heading{padding:12px!important}body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-summary{width:100%!important;justify-content:flex-start!important}body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-summary-item{min-width:0!important;padding:4px 9px!important}body.fm27-unified-ui #pagecontent .fm72-cal .fm72-cp-calendar .fm27-cp-summary-item:first-child{padding-left:0!important}.fm72-cal-legend{gap:8px 12px}.fm72-cal-controls .fm72-cal-navbutton{min-width:40px;height:37px}.fm72-cal-controls .fm72-today{min-width:84px}}
@media(prefers-reduced-motion:reduce){.fm72-cal *{transition:none!important;scroll-behavior:auto!important}}
