/* My Reading Room 3.0 | Academic calendar */
#calendar{--m30-line:#e3e6dc;--m30-ink:#254234;--m30-muted:#718074;--m30-bg:#fbfaf6;color:var(--m30-ink)}
#calendar *{box-sizing:border-box}
.m30-wrap{width:100%;max-width:1370px;margin:auto}.m30-hero{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.m30-hero h1{font:normal clamp(36px,3.9vw,55px)/1.08 Georgia,serif;letter-spacing:-1.3px;margin:8px 0}.m30-hero p{color:var(--m30-muted);font-size:14px}.m30-kicker{color:#866d4b;font-size:10px;font-weight:800;letter-spacing:1.55px}.m30-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.m30-sync{color:#738176;font-size:11px}.m30-primary{border:1px solid #24523d;border-radius:11px;background:#24523d;color:white!important;font-weight:750;font-size:13px;padding:12px 17px;min-height:44px}.m30-primary:hover{background:#153b2d}.m30-summary{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:13px;margin-bottom:21px}.m30-summary>div{display:flex;flex-direction:column;gap:6px;padding:17px 20px;background:#fffcf5;border:1px solid var(--m30-line);border-radius:14px;min-width:0}.m30-summary small{font-size:11px;color:#78877b}.m30-summary strong{font:normal 22px/1.2 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m30-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,305px);gap:17px;align-items:start}.m30-panel{background:#fffdf8;border:1px solid var(--m30-line);border-radius:17px;padding:19px;box-shadow:0 6px 23px #203c2509;min-width:0}.m30-main{padding:19px 18px 15px}.m30-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:16px}.m30-toolbar h2{font:normal 23px/1.25 Georgia,serif;letter-spacing:-.4px;flex:1;text-align:center;min-width:180px}.m30-nav,.m30-view-switch{display:flex;gap:3px;background:#f1f2e9;padding:4px;border-radius:12px}.m30-nav button,.m30-view-switch button{border:0;border-radius:8px;padding:9px 11px;min-height:38px;min-width:38px;background:transparent;color:#476553;font-size:12px;font-weight:750;white-space:nowrap}.m30-nav button:hover,.m30-view-switch button:hover{background:#e4eadd}.m30-view-switch button.selected{background:#264e3a;color:#fff}.m30-filterbar{display:flex;gap:13px;justify-content:space-between;margin-bottom:15px;flex-wrap:wrap}.m30-filterbar label{display:flex;align-items:center;gap:9px;color:#6d786f;font-size:11px;font-weight:750}.m30-filterbar input,.m30-filterbar select{min-height:42px;background:#fefdf9;border:1px solid #d8dfd2;border-radius:9px;color:#354d3a;padding:9px 11px;min-width:0}.m30-search{flex:1;min-width:195px}.m30-search input{flex:1;max-width:310px;width:100%}.m30-calendar-body{min-height:360px}.m30-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#f2f3ec;border:1px solid var(--m30-line);border-bottom:0;border-radius:10px 10px 0 0;overflow:hidden}.m30-weekdays span{text-align:center;color:#849084;padding:10px 4px;font-size:11px;font-weight:800;letter-spacing:.2px}.m30-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--m30-line);border-top:1px solid var(--m30-line)}.m30-day{position:relative;min-height:112px;min-width:0;border-right:1px solid var(--m30-line);border-bottom:1px solid var(--m30-line);padding:8px 5px 24px;background:#fffdfa}.m30-day.m30-other{background:#f5f4ef}.m30-day.m30-other .m30-date{color:#a0a79d}.m30-day.m30-today{background:#f1f8ec}.m30-day.m30-selected{box-shadow:inset 0 0 0 2px #8fae88}.m30-date{background:transparent;border:0;color:#52634f;border-radius:50%;height:30px;width:30px;display:grid;place-items:center;font-size:12px;font-weight:750;margin-bottom:4px}.m30-today .m30-date{background:#27523d;color:#fff}.m30-date:hover{background:#d9ead6}.m30-dayevents{display:flex;flex-direction:column;gap:3px}.m30-event{border:0;border-left:3px solid #678b77;display:flex;gap:4px;flex-direction:column;width:100%;text-align:left;color:#294636;background:#edf4eb;padding:6px 8px;border-radius:5px;min-width:0;font:inherit;cursor:pointer}.m30-event:hover{filter:brightness(.96)}.m30-event-title{font-size:11px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.m30-event-time{font-size:10px;font-weight:500;color:#526a59}.m30-event.m30-exam{border-color:#bf6845;background:#fdf0e7;color:#823e29}.m30-event.m30-deadline{border-color:#b14e4e;background:#fff0eb;color:#8f3238}.m30-event.m30-personal{border-color:#8273a3;background:#f2eef8;color:#554471}.m30-event.m30-class{border-color:#4d759b;background:#eaf2fb;color:#355a7b}.m30-event.m30-meeting{border-color:#a8843d;background:#f9f1e0;color:#795f29}.m30-event.m30-complete{opacity:.58;text-decoration:line-through}.m30-more,.m30-dayadd{border:0;background:transparent;color:#5a765e;font-size:10px;font-weight:750;cursor:pointer}.m30-dayadd{position:absolute;bottom:2px;right:4px;font-size:20px;line-height:1;padding:3px 7px;border-radius:7px;opacity:0}.m30-day:hover .m30-dayadd,.m30-day:focus-within .m30-dayadd{opacity:1}.m30-dayadd:focus-visible{opacity:1}.m30-dragover{background:#d8ead6!important;outline:2px dashed #3b8555;outline-offset:-4px}.m30-help{font-size:11px;line-height:1.6;color:#8b9486;margin:16px 4px 0}.m30-sidebar{display:grid;gap:15px}.m30-sidebar h3{font:normal 21px Georgia,serif;color:#274636;margin:0 0 14px}.m30-selected-panel h3{font-size:19px;margin:9px 0 14px}.m30-secondary{border:1px solid #b2c8b4;background:#edf4ea;color:#2a563d;padding:10px 13px;border-radius:9px;font-weight:750;min-height:40px;font-size:12px}.m30-day-list{display:grid;gap:8px;margin-top:15px}.m30-muted{font-size:12px;line-height:1.65;color:#879087}.m30-upcoming{display:grid;gap:6px}.m30-upcoming-item{display:flex;flex-direction:column;gap:3px;padding:10px 12px;width:100%;text-align:left;border:1px solid transparent;background:#f3f5ee;border-radius:10px;color:#294333;font:inherit;cursor:pointer}.m30-upcoming-item:hover{border-color:#abc7aa}.m30-upcoming-item strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m30-upcoming-date,.m30-upcoming-item small{color:#7d8a79;font-size:10px}.m30-tools{display:flex;flex-direction:column;gap:7px}.m30-tools h3{margin-bottom:5px}.m30-tools button,.m30-tools label{border:1px solid #d9e1d5;border-radius:9px;display:block;background:#fbfcf7;padding:11px 12px;text-align:left;font:750 12px inherit;color:#405d48;cursor:pointer}.m30-tools label input{display:none}.m30-tools .m30-muted{margin-top:10px}.m30-notice{font-size:12px;min-height:20px;color:#486a4f;margin:10px 3px}.m30-weekgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--m30-line);border-left:1px solid var(--m30-line)}.m30-weekcolumn{min-height:320px;min-width:0;border-bottom:1px solid var(--m30-line);border-right:1px solid var(--m30-line);padding:9px 7px}.m30-week-today{background:#f2f7ee}.m30-weekdate{background:transparent;border:0;font-weight:800;font-size:11px;color:#46664c;white-space:nowrap;padding:8px 2px}.m30-weekevents{display:flex;flex-direction:column;gap:5px;margin:12px 0}.m30-weekcolumn .m30-event-title{white-space:normal;overflow-wrap:anywhere}.m30-empty-small{font-size:10px;color:#a1a99c}.m30-add-mini{border:1px dashed #becfbb;background:transparent;border-radius:8px;color:#618067;padding:7px;margin-top:7px;cursor:pointer;font-size:11px}.m30-agenda-day{padding:14px 7px;border-bottom:1px solid #e4e8dc}.m30-agenda-day header{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.m30-agenda-day header strong{font-size:13px;color:#385641}.m30-agenda-day header button{border:0;background:#edf3e7;color:#45674b;border-radius:6px;padding:4px 10px}.m30-agenda-day>div{display:grid;gap:6px}.m30-agenda-day .m30-event{padding:10px 13px}.m30-empty{text-align:center;padding:65px 20px}.m30-empty strong{font:normal 22px Georgia,serif}.m30-empty p{color:#7f8b80;margin:10px 0 20px}
.m30-dialog{position:fixed;max-height:min(90vh,900px);overflow:auto;border:1px solid #d9e0d4;border-radius:18px;padding:0;width:min(95vw,620px);max-width:620px;background:#fffcf6;box-shadow:0 25px 100px #0a241c60;color:#294635}.m30-dialog::backdrop{background:#10261ec7}.m30-dialog form,.m30-detail-dialog>div{padding:24px}.m30-dialog header{display:flex;justify-content:space-between;gap:10px;align-items:start;margin-bottom:20px}.m30-dialog header h2{font:normal 29px Georgia,serif;margin:5px 0}.m30-dialog header>button{border:0;border-radius:8px;background:#edf1e9;color:#425a4a;padding:10px 14px}.m30-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.m30-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;color:#536c59;min-width:0}.m30-form-grid input,.m30-form-grid select,.m30-form-grid textarea{border:1px solid #d7dfd1;border-radius:9px;background:white;padding:11px;color:#264533;width:100%;font:normal 13px inherit;min-height:44px}.m30-form-grid textarea{resize:vertical}.m30-span2{grid-column:span 2}.m30-form-grid .m30-checkbox{flex-direction:row;align-items:center;gap:10px}.m30-checkbox input{width:18px;height:18px;min-height:0}.m30-dialog footer{display:flex;justify-content:end;gap:10px;margin-top:22px;align-items:center;flex-wrap:wrap}.m30-dialog footer span{flex:1}.m30-dialog footer button:not(.m30-primary){background:#f1f4ed;color:#355441;border:1px solid #d6e0d5;border-radius:10px;padding:10px 14px;min-height:42px;font-size:12px;font-weight:750}.m30-dialog footer button.m30-delete{background:#fff0ed;color:#9e3b3b;border-color:#f0b9ac}.m30-detail-dialog p{font-size:13px;line-height:1.65;margin:12px 0}.m30-detail-dialog .m30-detail-date{color:#627c65;font-weight:750}.m30-detail-dialog .m30-detail-notes{background:#f2f5ed;padding:13px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.m30-tools button:hover,.m30-tools label:hover{border-color:#8eab90}#calendar :is(button,input,select,textarea,label):focus-visible{outline:3px solid #a97732;outline-offset:2px}
@media(max-width:1220px){.m30-layout{grid-template-columns:minmax(0,1fr) 260px}.m30-main{padding:15px 11px}.m30-toolbar h2{order:-1;flex:1 1 100%;text-align:left}.m30-day{min-height:104px}.m30-event{padding:5px 4px}.m30-event-title{font-size:10px}}
@media(max-width:900px){.m30-layout{grid-template-columns:1fr}.m30-sidebar{display:grid;grid-template-columns:1fr 1fr}.m30-sidebar .m30-tools{grid-column:span 2}.m30-weekcolumn{min-height:200px}.m30-dayadd{opacity:1}}
@media(max-width:600px){.m30-hero{align-items:start;flex-direction:column;gap:14px}.m30-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.m30-summary>div:last-child{grid-column:span 2}.m30-panel{padding:15px}.m30-main{padding:13px 8px}.m30-toolbar{justify-content:start;gap:8px}.m30-toolbar h2{font-size:22px;margin:0 3px}.m30-view-switch{width:100%}.m30-view-switch button{flex:1}.m30-search{width:100%}.m30-search input{max-width:none}.m30-category{width:100%}.m30-category select{flex:1}.m30-month .m30-day{padding:3px 2px 18px;min-height:83px}.m30-date{width:25px;height:25px;font-size:11px}.m30-weekdays span{font-size:9px}.m30-dayevents{gap:2px}.m30-event{border-left-width:2px;padding:3px 2px}.m30-event-title{font-size:9px}.m30-event-time{font-size:9px}.m30-dayadd{font-size:16px}.m30-sidebar{grid-template-columns:1fr}.m30-sidebar .m30-tools{grid-column:1}.m30-weekgrid{display:flex;flex-direction:column}.m30-weekcolumn{min-height:0;display:grid;grid-template-columns:85px minmax(0,1fr) auto;gap:6px;align-items:start}.m30-weekcolumn .m30-weekevents{margin:0}.m30-add-mini{margin:0}.m30-form-grid{grid-template-columns:1fr}.m30-span2{grid-column:1}.m30-dialog form,.m30-detail-dialog>div{padding:17px}}
@media print{.topbar,.m30-head-actions,.m30-nav,.m30-view-switch,.m30-filterbar,.m30-sidebar,.m30-help,.m30-dayadd,.footer{display:none!important}#calendar{display:block!important}.m30-layout{display:block}.m30-panel{box-shadow:none;border:0}.m30-month{break-inside:avoid}.m30-day{min-height:100px}.m30-event{print-color-adjust:exact}.m30-hero{margin-bottom:8px}}
/* Day agenda timeline */
.m30-daytimeline>header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 15px}.m30-daytimeline>header strong{font:normal 19px Georgia,serif}.m30-all-day{display:grid;grid-template-columns:72px 1fr;gap:10px;background:#f3f6ee;border:1px solid #dce4d5;border-radius:9px;padding:9px 10px;margin:0 0 14px}.m30-all-day>span{font-size:11px;color:#7c877a;font-weight:750}.m30-all-day>div{display:grid;gap:5px}.m30-hours{border-top:1px solid #e2e6dd}.m30-hour{display:grid;grid-template-columns:64px 1fr;min-height:58px;border-bottom:1px solid #e3e9de}.m30-hour time{color:#9aa49a;font-size:10px;padding:11px 7px}.m30-hour>div{padding:7px 10px;display:grid;align-content:start;gap:5px;min-width:0}.m30-houradd{border:0;background:transparent;color:#9cae98;min-height:24px;font-size:18px;cursor:pointer;opacity:0;text-align:left}.m30-hour:hover .m30-houradd,.m30-hour:focus-within .m30-houradd{opacity:1}.m30-houradd:focus-visible{opacity:1}
.m30-tools button,.m30-tools label{font-family:inherit;font-weight:750;font-size:12px}
@media(max-width:600px){.m30-dayadd{display:none}.m30-houradd{opacity:1}.m30-hour{grid-template-columns:49px 1fr}.m30-hour time{padding:10px 2px}.m30-hours{margin-left:2px}}
