*{box-sizing:border-box}body{margin:0;background:#f5f7fc;color:#202c45;font:16px/1.5 'Segoe UI',Arial,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid #dce2ee;background:white;color:#293750;border-radius:9px;padding:9px 15px}button:hover{background:#edf2ff;border-color:#a1b4eb}button:focus-visible,a:focus-visible{outline:3px solid #6089fa;outline-offset:2px}header{height:82px;background:white;border-bottom:1px solid #e2e7f1;display:flex;align-items:center;justify-content:space-between;padding:0 5%}.brand{font-size:21px;font-weight:700;text-decoration:none;color:#202c45;display:flex;gap:12px;align-items:center}.logo{display:grid;place-items:center;width:38px;height:38px;background:#2c54d6;color:white;border-radius:11px;font-size:28px}.personal,.eyebrow{font-size:12px;letter-spacing:1.8px;font-weight:650;color:#64738d}main{max-width:1600px;margin:auto;padding:38px 5% 20px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{color:#2c54d6;margin:0 0 8px}h1{font-size:38px;letter-spacing:-1.3px;line-height:1.2;margin:0}.sub{color:#67758e;margin:10px 0 0}.primary{background:#2c54d6;color:white;border-color:#2c54d6;font-weight:600;box-shadow:0 3px 8px #2c54d620}.primary:hover{background:#2145bb;color:white}.planner{background:white;border:1px solid #dde4f1;border-radius:16px;overflow:hidden;box-shadow:0 8px 32px #28396906}.toolbar{padding:20px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px}.navigation{display:flex;align-items:center;gap:8px}h2{font-size:20px;margin:0 0 0 12px}.help{display:flex;justify-content:space-between;padding:11px 24px;background:#fafbfe;border-top:1px solid #edf0f5;color:#6a7891;font-size:14px}.calendar-scroll{overflow:auto;max-height:66vh}#calendar{min-width:900px}.days,.body-grid{display:grid;grid-template-columns:64px repeat(7,minmax(0,1fr))}.days{position:sticky;top:0;z-index:3;background:white;border-bottom:1px solid #dce3ef}.day{text-align:center;padding:12px 0;border-left:1px solid #e8edf5;font-size:14px;color:#6b7790}.day strong{display:block;font-size:22px;font-weight:500;color:#24334e}.day.current strong{background:#2c54d6;color:white;border-radius:50%;width:36px;margin:auto}.hours{position:relative}.hour{height:64px;padding:0 10px;font-size:12px;color:#7a879e;transform:translateY(-9px);text-align:right}.column{position:relative;border-left:1px solid #e8edf5}.slot{height:64px;width:100%;display:block;border:0;border-bottom:1px solid #e8edf5;border-radius:0;padding:0;background:transparent}.slot:hover{background:#f0f4ff}.weekend{background:#fafbfe}.event{position:absolute;overflow:auto;background:#eaf0ff;border-left:3px solid #4670dc;border-radius:6px;padding:5px 7px;color:#254781;font-size:13px;z-index:1;min-height:28px}.event button{border:0;padding:0;background:none;color:inherit;font-size:14px;font-weight:650;text-align:left;display:block;width:100%;line-height:1.25;overflow-wrap:anywhere}.event p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.event a{display:block;color:inherit;text-decoration:underline;overflow-wrap:anywhere}.event time{font-size:12px}footer{display:flex;justify-content:space-between;gap:15px;padding:18px 2px;color:#71809a;font-size:13px}dialog{border:0;border-radius:18px;padding:26px;width:min(540px,calc(100% - 24px));box-shadow:0 24px 100px #17234035;max-height:92vh}dialog::backdrop{background:#14234170;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-top h2{margin:0}.dialog-top button{border:0;font-size:24px;padding:0 8px}label{display:block;font-size:14px;font-weight:600;margin-bottom:13px}input,textarea,select{display:block;width:100%;border:1px solid #d3dcea;border-radius:8px;padding:9px 11px;background:white;color:#27364e;margin-top:5px}textarea{resize:vertical}.navigation input{width:155px;margin:0;font-size:14px}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.optional{font-weight:400;color:#708099}.actions{display:flex;align-items:center;gap:8px;margin-top:20px}.actions span{flex:1}.danger{color:#b73d45;border-color:transparent;padding-left:0}#error{color:#b22e3b;font-size:14px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#223350;color:white;padding:12px 20px;border-radius:12px;z-index:9;display:none}@media(max-width:700px){header{height:66px}.personal{display:none}main{padding:26px 14px}.heading{align-items:flex-start;flex-direction:column}h1{font-size:32px}.sub{font-size:14px}.toolbar{padding:14px;align-items:flex-start;flex-direction:column}.toolbar h2{font-size:17px}.help{padding:10px 14px;font-size:12px;gap:15px}footer{flex-direction:column;gap:5px}.calendar-scroll{max-height:65vh}.actions button{padding:8px 10px}}

/* Teaching colors keep their textual badge so color is never the only cue. */
.event[data-teaching="IT"]{background:#e8f3ff;border-left-color:#5298d8;color:#203e5e}
.event[data-teaching="I2D"]{background:#c8def5;border-left-color:#2f6ca8;color:#163653}
.event[data-teaching="2I2D"]{background:#fff0d4;border-left-color:#cc8520;color:#694411}
.event[data-unit-type="unforeseen"]{background:#fcebed;border-left-color:#c55764;color:#78313b}
.event[data-unit-type="misc"]{background:#eef0f3;border-left-color:#8993a2;color:#455164}
.event-badge.event-badge-teaching{background:#ffffffdb;border-color:#9aaec6;color:#223e60;font-weight:700}
.event-badge.event-badge-competency{background:#f5efff;color:#694185;border-color:#e1d1f0}
.event-badge.event-badge-unforeseen{background:#fff6f7;color:#78313b;border-color:#e5b7be;font-weight:700}
.event-badge.event-badge-misc{background:#f8f9fb;color:#455164;border-color:#c6cdd7;font-weight:700}
#form [hidden]{display:none!important}
.special-unit-help{margin-bottom:0}
.teaching-legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;padding:12px 24px;border-top:1px solid #edf0f5;font-size:13px;color:#4f607a}
.teaching-legend-title{font-weight:600}
.teaching-legend [data-teaching],.teaching-legend [data-unit-type]{display:inline-flex;align-items:center;gap:7px}
.teaching-legend [data-teaching]:before,.teaching-legend [data-unit-type]:before{content:'';width:16px;height:13px;border-radius:3px;border:2px solid var(--teaching-border);background:var(--teaching-fill)}
.teaching-legend [data-teaching="IT"]{--teaching-fill:#e8f3ff;--teaching-border:#5298d8}
.teaching-legend [data-teaching="I2D"]{--teaching-fill:#c8def5;--teaching-border:#2f6ca8}
.teaching-legend [data-teaching="2I2D"]{--teaching-fill:#fff0d4;--teaching-border:#cc8520}
.teaching-legend [data-unit-type="unforeseen"]{--teaching-fill:#fcebed;--teaching-border:#c55764}
.teaching-legend [data-unit-type="misc"]{--teaching-fill:#eef0f3;--teaching-border:#8993a2}
@media(max-width:700px){.teaching-legend{padding:11px 14px;gap:8px 16px}}

.parallel-help,.parallel-action p{font-size:13px;line-height:1.45;color:#64738d;margin:0 0 10px}
.parallel-action{padding:12px;border:1px solid #dce3ef;border-radius:10px;background:#f8faff;margin:12px 0 18px}
.parallel-action button{font-size:14px;color:#254ba9;border-color:#b6c6e8}
.parallel-action p{margin:8px 0 0}
.event time span{white-space:nowrap}
.event[data-overlap="true"]{padding:4px;scrollbar-width:thin}
.event[data-overlap="true"] .event-web-link{display:none}
.event[data-overlap="true"] .event-heading{display:block}
.event[data-overlap="true"] button{font-size:13px}

.heading-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#deadlineWarnings[hidden],#weekDeadlines[hidden]{display:none}
.deadline-warnings{border:1px solid #e5bd72;background:#fff8e9;border-radius:14px;padding:16px 20px;margin:0 0 22px}
.deadline-warnings h2{margin:0 0 12px;font-size:18px;color:#755014}
.deadline-list{display:flex;flex-wrap:wrap;gap:10px}
.deadline-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-width:150px;max-width:100%;flex:0 1 260px;border-color:#dec58f;background:white;font-size:13px;color:#654b20;padding:10px 13px}
.deadline-card:hover{background:#fffaf0;border-color:#b58b45}
.deadline-card-title{font-size:14px;font-weight:650;overflow-wrap:anywhere;max-width:100%}
.deadline-countdown{font-size:12px;font-weight:700;color:#795518}
.deadline-today{color:#a93636}
.deadline-card time{color:#7f6b4c}
.week-deadlines{padding:14px 24px;border-top:1px solid #edf0f5;background:#fffcf5}
.week-deadlines h3{margin:0 0 10px;font-size:14px;color:#755014}
.deadline-delete-help{font-size:13px;color:#a13440}
.event-badge.event-badge-deadline{background:#fff5df;color:#755014;border-color:#dec58f;font-weight:700}
@media(max-width:700px){.heading-actions{width:100%}.deadline-warnings{padding:14px}.week-deadlines{padding:14px}.deadline-card{flex-basis:100%}}

.actions:has(#deleteDeadline:not([hidden])){flex-wrap:wrap}
