/* Screen presentation. Printed records use styles.css. */
@media screen {
:root{color-scheme:light;--ink:#1d1d1f;--muted:#6e6e73;--blue:#0071e3;--blue-dark:#0077ed;--blue-soft:#eaf3fe;--line:#e5e5e9;--bg:#f5f5f7;--white:#fff;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI","Noto Sans TC",sans-serif}
html{scroll-behavior:smooth}body{background:var(--bg)}button{transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #0071e3;outline-offset:4px}
.masthead{max-width:none;margin:0;padding:19px max(28px,calc((100vw - 1264px)/2));background:#ffffffd9;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:var(--ink);border-bottom:1px solid #d2d2d766;gap:18px}.brand{gap:0}.brandmark{display:none}.brand strong{font-size:22px;font-weight:650;letter-spacing:-.025em}.brand div>span{font-size:12px;color:#6e6e73;margin-top:3px}.edition{font-family:inherit;font-size:14px;letter-spacing:0;font-weight:450;color:#6e6e73}.edition span{margin-left:12px;font-size:12px;padding:4px 7px;border-color:#d2d2d7;border-radius:5px}
main{max-width:1320px;padding:37px 28px 0}.overview>.section-top{display:block;text-align:center}.eyebrow{font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:0;color:#6e6e73;margin:0 0 8px}h1,h2{font-weight:650;letter-spacing:-.045em;line-height:1.25}h1{font-size:44px}h2{font-size:32px}.date-controls{display:flex;justify-content:center;align-items:center;width:fit-content;margin:25px auto 0;gap:12px;background:none;border:0;padding:0}.date-controls label{font-size:14px;color:#6e6e73}input,select{min-height:43px;background:#fff;border:1px solid #c7c7cc;border-radius:11px;padding:9px 12px;color:#1d1d1f}.button{min-height:43px;border-radius:999px;background:#e8e8ed;border:1px solid transparent;color:#1d1d1f;padding:10px 19px;font-size:14px;font-weight:500}.button:hover{background:#dedee4;border-color:transparent}.button:active{transform:scale(.98)}.button.primary{background:#0071e3;border-color:#0071e3;color:white;box-shadow:none}.button.primary:hover{background:#0077ed;border-color:#0077ed}.date-controls .button{background:#fff;color:#0066cc;border:1px solid #d2d2d7}.date-controls .button:hover{background:#edf4ff;border-color:#afc9ea}
.summary-line{margin:29px 3px 18px;gap:16px}.summary-line p{line-height:1.8;font-size:14px}.legend{font-size:13px;color:#6e6e73}.legend i{width:8px;height:8px;background:#0071e3;border:0;border-radius:50%}.day-grid{gap:22px}.day-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e6e6eb;border-radius:24px;box-shadow:0 5px 20px #00000004;transition:box-shadow .25s,transform .25s;animation:appear .4s ease-out both}.day-card:nth-child(2){animation-delay:60ms}.day-card:nth-child(3){animation-delay:120ms}.day-card:hover{box-shadow:0 12px 30px #0000000a}.day-card.current{border:1px solid #78aeee;box-shadow:0 0 0 1px #78aeee18,0 5px 20px #0071e308}.day-head{padding:25px 24px 21px;background:none;border-bottom:1px solid #e8e8ed;gap:12px}.current .day-head{background:linear-gradient(180deg,#f1f7ff,white);color:#1d1d1f}.day-date{align-items:center;gap:14px}.day-date strong{font-size:58px;font-weight:600;line-height:1;letter-spacing:-.065em;font-variant-numeric:tabular-nums}.current .day-date strong{color:#0071e3}.date-detail{display:flex;flex-direction:column;gap:4px;padding-top:4px}.day-date .date-month{font-size:12px;font-weight:600;letter-spacing:.045em;color:#86868b}.day-date .date-weekday{font-size:16px;font-weight:500;color:#515154}.day-head .room{font-family:inherit;font-size:14px;line-height:1.6;color:#6e6e73;margin:12px 0 0}.day-label{font-size:12px;font-weight:500;border:0;background:#f0f0f4;color:#6e6e73;border-radius:999px;padding:6px 9px;margin-top:3px}.current .day-label{background:#e4f0ff;color:#0066cc;border:0}
.events{padding:8px 23px;flex:1}.event{grid-template-columns:58px minmax(0,1fr);gap:13px;padding:16px 0;border-bottom:1px solid #ededf0;position:relative}.event:last-child{border-bottom:0}.event.record{border-left:0;padding-left:0;margin-left:0}.event-time{font:450 14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#515154;font-variant-numeric:tabular-nums;letter-spacing:-.015em}.event-time span{color:#86868b}.event-title{font-size:16px;font-weight:500;line-height:1.5;color:#1d1d1f}.event.record .event-title{color:#1d1d1f}.event:not(.record) .event-title{color:#6e6e73;font-weight:400}.event-meta{font-size:13px;color:#86868b;margin:7px 0 0;line-height:1.7}.badge{font-size:12px;font-weight:500;color:#0066cc;background:#eaf3fe;border:0;border-radius:5px;padding:2px 6px;margin-right:6px}.lunch{display:flex;align-items:center;gap:11px;background:none;padding:9px 0;margin:0;color:#86868b;font-size:12px;font-weight:400}.lunch:before,.lunch:after{content:'';height:1px;flex:1;background:#e5e5ea}.day-note{color:#986019;line-height:1.7;font-size:13px;margin:0;padding:9px 23px 15px}.day-bottom{padding:17px 24px;background:none;border-top:1px solid #e8e8ed;color:#6e6e73;font-size:14px}.text-button{color:#0066cc;font-size:14px;font-weight:500;padding:7px 0}.text-button:hover{text-underline-offset:4px}.empty{background:#fff;border:1px dashed #c7c7cc;border-radius:16px;color:#6e6e73;line-height:1.8}
.records-section{--ink:#1d1d1f;--muted:#6e6e73;margin-top:39px;padding:34px;background:#fff;border:1px solid #e6e6eb;border-radius:26px;box-shadow:0 5px 20px #00000003;scroll-margin-top:24px}.records-section .eyebrow{color:#86868b}.section-description{font-size:14px;line-height:1.7;color:#6e6e73;margin-top:10px}.record-actions{gap:10px}.record-toolbar{display:flex;gap:13px;margin:25px 0 24px;padding:17px 18px;border:1px solid #e9e9ed;border-radius:13px;background:#f5f5f7}.record-toolbar label{font-size:14px}.record-toolbar select{border-color:#c7c7cc;background:white;min-height:42px}.record-toolbar>span{font-family:inherit;color:#6e6e73;font-size:13px;margin-left:auto}.record-grid{gap:24px}.record-meta{font-size:13px;color:#6e6e73;padding:0 3px 9px;gap:12px}.record-meta strong{font-weight:400}.record-meta .text-button{font-size:13px}.record-form{min-height:224px;border:1px solid #c9c9d1;background:white;border-radius:12px;overflow:hidden;box-shadow:0 3px 10px #00000003}.form-upper{padding:20px 22px 17px}.form-row{font-size:13px;color:#6e6e73;gap:11px;margin-bottom:14px;line-height:1.6}.form-row .value{font-size:16px;font-weight:450;color:#1d1d1f;border-color:#b8b8c2;padding:0 4px 3px;font-variant-numeric:tabular-nums}.signature{font-size:13px!important;color:#86868b}.content-row{border-top:1px solid #c9c9d1;padding:18px 22px 23px;font-size:13px;color:#6e6e73;gap:11px}.content-title{font-size:16px;line-height:1.65;color:#1d1d1f;border-color:#b8b8c2}.blank-line{border-color:#b8b8c2;height:26px}.record-warning,.notice{background:#fff8ea;border:1px solid #f0dfba;color:#8c6323;padding:11px 14px;border-radius:9px;line-height:1.7;font-size:13px}.notice{margin-bottom:19px}.records-section .empty{background:#f5f5f7}
.month-section{margin-top:43px}.table-wrap{margin-top:21px;border:1px solid #e6e6eb;border-radius:20px;background:white;box-shadow:0 5px 20px #00000003}table{font-size:14px}th,td{padding:18px 21px;border-color:#ededf0}th{background:#fafafa;color:#6e6e73;font-size:13px;font-weight:500}th:first-child{width:120px}th:nth-child(2){width:140px}td:nth-child(2){font-family:inherit;color:#6e6e73;font-size:13px;line-height:1.9}td:last-child{color:#6e6e73;white-space:nowrap}tr.highlight{background:#f0f6ff}tr.selected td:first-child{box-shadow:inset 3px 0 #0071e3}tr:hover{background:#f6f6f9}tr.highlight:hover{background:#eaf3ff}.date-link{font-size:18px;color:#1d1d1f;font-weight:500;letter-spacing:-.025em}tr.highlight .date-link{color:#0066cc}.weekday{font-size:12px;color:#86868b;font-weight:400;margin-top:4px;letter-spacing:0}.month-course{font-size:14px;line-height:1.95;color:#515154}.month-course+.month-course:before{color:#b1b1b8;margin:0 5px}.obs-note{background:#ececf1;color:#6e6e73;border:0;border-radius:13px;padding:17px 20px;font-size:14px;line-height:1.8;margin-top:21px}.obs-note strong{color:#515154;font-weight:550;margin-bottom:3px}.quiet{font-size:14px;color:#6e6e73}.source-details{margin-top:29px;padding-top:23px;border-color:#dedee5;color:#86868b;font-size:14px;line-height:1.8}.source-details summary{color:#515154;font-weight:450}.source-links{gap:17px}.source-links a{color:#0066cc}footer{max-width:1320px;margin-top:32px;padding:23px 28px;color:#86868b;border-color:#dedee5;font-family:inherit;font-size:12px}#toast{background:#29292ded;backdrop-filter:blur(12px);color:white;border:1px solid #ffffff22;border-radius:14px;padding:13px 21px;font-size:14px;box-shadow:0 8px 30px #00000020}
}
@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media screen and (max-width:1100px){main{padding:32px 24px 0}.day-grid{gap:16px}.day-head{padding:22px 18px 18px;gap:8px}.day-date{gap:11px}.day-date strong{font-size:50px}.day-label{padding:5px 7px}.events{padding:8px 17px}.event{grid-template-columns:53px minmax(0,1fr);gap:11px}.day-bottom{padding:16px 18px}.records-section{padding:28px}.record-grid{gap:19px}}
@media screen and (max-width:820px){.masthead{padding:17px 19px}.brand strong{font-size:20px}.edition{font-size:12px}.edition span{display:none}main{padding:29px 16px 0}.overview>.section-top{text-align:left}.eyebrow{font-size:13px}h1{font-size:34px}h2{font-size:28px}.date-controls{width:100%;margin:22px 0 0;justify-content:flex-start;gap:9px}.date-controls label{width:100%}.date-controls input{flex:1;min-width:0}.summary-line{margin:22px 0 17px;align-items:flex-start;gap:10px}.summary-line p{font-size:13px}.legend{font-size:13px}.day-grid{grid-template-columns:1fr;gap:18px}.day-head{padding:24px}.day-date strong{font-size:58px}.day-date{gap:15px}.day-label{padding:6px 10px}.events{padding:8px 23px}.event{grid-template-columns:60px minmax(0,1fr);gap:15px;padding:16px 0}.event-meta{font-size:13px}.day-bottom{padding:17px 24px}.day-note{padding-left:23px;padding-right:23px}.records-section{margin-top:29px;padding:25px 18px;border-radius:23px}.section-top{align-items:flex-start;gap:18px}.record-grid{grid-template-columns:1fr;gap:24px}.record-actions{width:100%}.record-actions .button{flex:1}.record-toolbar{padding:14px;gap:11px;margin:21px 0 22px}.record-toolbar select{flex:1;min-width:0}.record-toolbar>span{width:100%;margin:0}.form-upper{padding:18px 17px 16px}.content-row{padding:16px 17px 22px}.form-row{gap:8px}.month-section{margin-top:31px}th,td{padding:15px}table{min-width:640px}.table-wrap{border-radius:16px}.obs-note{padding:16px}.source-details{margin-top:25px}footer{padding:21px 16px}}
@media screen and (max-width:420px){.edition{display:none}.record-actions .button{padding:10px 12px}.form-row{font-size:13px}.day-head{padding:22px}.events{padding-left:20px;padding-right:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

/* Exact source names and post-class exam reminders. */
@media screen {
 .event-meta {display:flex;align-items:center;flex-wrap:wrap;gap:6px}
 .event-meta .badge {margin:0}
 .exam-badge {display:inline-flex;align-items:center;background:#fff2dc;color:#8a5100;border:1px solid #f4dbaf;font-weight:600;line-height:1.5;white-space:nowrap}
 .record-meta {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
 .record-meta strong {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
 .month-course .exam-badge {margin-left:8px;font-size:11px;padding:2px 7px;vertical-align:middle}
}

@media screen {
 .month-section {margin-top:0}
 .month-section h1 {font-size:36px}
 .month-course {display:block;padding:9px 0;line-height:1.55}
 .month-course+.month-course {border-top:1px solid #ededf0}
 .month-course+.month-course:before {content:none}
 .month-course-heading {display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;color:#1d1d1f;font-size:16px}
 .month-course .exam-badge {margin-left:0;font-size:12px}
 .month-course-meta {margin:5px 0 0;font-size:14px;color:#6e6e73;line-height:1.6;font-variant-numeric:tabular-nums}
 .notes-section {margin-top:40px}
 .notes-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}
 .note-card {background:#fff;border:1px solid #e6e6eb;border-radius:22px;padding:26px}
 .note-category {color:#0071e3;font-size:14px;font-weight:600}
 .note-card h3 {font-size:22px;letter-spacing:-.025em;margin:9px 0 15px;color:#1d1d1f}
 .note-card p {font-size:16px;line-height:1.8;color:#515154;margin:10px 0 0;overflow-wrap:anywhere}
 .note-card strong {color:#1d1d1f;font-weight:600}
 .note-card .note-deadline {display:inline-block;color:#8a5100;background:#fff2dc;border-radius:7px;padding:4px 10px;font-size:14px;margin-top:16px}
 .note-card:last-child {grid-column:1/-1}
}
@media screen and (max-width:820px) {
 .notes-grid {grid-template-columns:1fr}
 .note-card {padding:23px}
 .notes-section {margin-top:30px}
 .month-section h1 {font-size:30px}
}

@media screen {
 main>.notes-section {margin-top:0}
 .notes-section h1 {font-size:32px}
 .overview {margin-top:36px}
 .overview>.date-controls {margin:0;justify-content:flex-start}
 .month-section {margin-top:43px}
}
@media screen and (max-width:820px) {
 .overview {margin-top:28px}
 .month-section {margin-top:31px}
 .notes-section h1 {font-size:28px}
}
