*{box-sizing:border-box}body{margin:0;font-family:Hiragino Kaku Gothic ProN,Hiragino Sans,Noto Sans JP,sans-serif;color:#1a1a2e;background:#f7f7fa;display:flex;flex-direction:column;height:100dvh;padding-top:env(safe-area-inset-top,0)}.site-header{display:flex;align-items:center;gap:12px;padding:0 20px;height:48px;background:#14213d;color:#fff;flex:none}.site-name{font-weight:700;font-size:18px}.site-name-first{color:#fca311}.site-name-no{font-size:.78em}.header-logout-button{margin-left:auto;display:flex;align-items:center;justify-content:center;padding:6px;background:none;border:none;color:#fff;cursor:pointer}.site-badge{font-size:12px;background:#fca311;color:#14213d;border-radius:999px;padding:2px 10px;font-weight:700}main{width:100%;max-width:880px;margin:0 auto;padding:12px 16px;flex:1 1;min-height:0;display:flex;flex-direction:column}.tab-footer{margin-top:32px;padding:16px 4px 8px;border-top:1px solid #e2e2ea;color:#777;font-size:12px}.tab-footer p{margin:2px 0}.other-settings-row{margin-top:28px;padding:0 4px}.other-settings-link{background:none;border:none;padding:0;font-size:13px;color:#555;text-decoration:underline}.tab-footer a{color:#555}button{font:inherit;cursor:pointer}input[type=number],input[type=search],input[type=text],select{font:inherit;padding:8px 10px;border:1px solid #c9c9d4;border-radius:8px;background:#fff;max-width:100%}label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}.loading{color:#555}.section-title{font-size:16px;margin:24px 0 10px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 10px}.section-head .section-title{margin:0}.form-note{color:#555;font-size:13px;font-weight:400;line-height:1.6}.empty-note{color:#777;font-size:14px}.primary-button{background:#14213d;color:#fff;border:none;border-radius:10px;padding:12px 20px;font-weight:700}.primary-button:disabled{background:#a8a8b8;cursor:not-allowed}.secondary-button{background:#fff;border:1px solid #14213d;color:#14213d;border-radius:10px;padding:10px 16px;font-weight:700}.danger-button{background:#c0392b;color:#fff;border:none;border-radius:8px;padding:8px 14px;font-weight:700;margin:0 8px}.danger-outline-button{border:1px solid #c0392b;color:#c0392b;border-radius:10px;padding:10px 16px;font-weight:700}.text-button{background:none;border:none;color:#2456a6;padding:4px 8px;font-weight:600}.chip{border:1px solid #c9c9d4;border-radius:999px;padding:6px 14px;font-size:14px}.chip.active{background:#14213d;border-color:#14213d;font-weight:700}.badge{font-size:11px;background:rgba(255,255,255,.75);border:1px solid rgba(0,0,0,.18);padding:0 7px;margin-left:6px;vertical-align:middle}.badge,.pill{display:inline-block;border-radius:999px}.pill{background:rgba(255,255,255,.85);padding:1px 10px;font-size:12px;font-weight:600;white-space:nowrap}.added-toast{background:#e6f4ea;border:1px solid #57a773;color:#1e5c38;border-radius:8px;padding:8px 12px;font-size:14px}.app-shell,.page-root{flex:1 1;min-height:0;display:flex;flex-direction:column}.tab-content{flex:1 1;min-height:0;overflow-y:auto;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.tab-nav{display:flex;gap:8px;margin-bottom:4px;height:42px;flex:none}.tab-button{flex:1 1;padding:10px 4px;border:1px solid #c9c9d4;background:#fff;border-radius:10px;font-weight:600;font-size:13px;letter-spacing:0;white-space:nowrap;position:relative}.tab-button.active{background:#14213d;border-color:#14213d}.tab-badge{display:inline-block;background:#e8871e;color:#fff;border-radius:999px;font-size:11px;min-width:18px;padding:0 5px;margin-left:6px;vertical-align:middle}.setup-screen{flex:1 1;min-height:0;overflow-y:auto}.setup-screen h1{font-size:26px}.profile-form{display:flex;flex-direction:column;gap:16px;max-width:420px}.checkbox-row{flex-direction:row;align-items:center;font-weight:400}.tt-first-block{height:calc(100dvh - 118px);max-height:820px;min-height:300px;display:flex;flex-direction:column}.term-select-row{display:flex;margin-bottom:8px;flex:none}.term-select-button{display:inline-flex;align-items:center;gap:8px;border:1px solid #c9c9d4;background:#fff;border-radius:999px;padding:3px 14px;font-size:14px;font-weight:700;color:#14213d;line-height:1.4}.term-select-caret{font-size:11px;color:#2456a6}.sheet-backdrop{align-items:flex-end;padding:0}.term-sheet{background:#fff;border-radius:16px 16px 0 0;padding:18px 18px 28px;width:100%;max-width:520px;margin:0 auto;gap:12px}.term-sheet,.term-sheet-list{display:flex;flex-direction:column}.term-sheet-list{list-style:none;margin:0;padding:0;gap:8px}.term-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2e2ea;background:#fff;border-radius:10px;padding:12px 14px;font-size:15px;font-weight:600;color:#1a1a2e;text-align:left}.term-option.selected{border-color:#14213d;background:#f0f4fb}.term-option-check{color:#2456a6;font-weight:700}.grid-wrap{flex:1 1;min-height:0;overflow:hidden}.timetable-tab .grid-wrap{margin-left:-14px;margin-right:-14px}.tt-grid{display:grid;grid-template-columns:26px repeat(5,minmax(0,1fr));grid-template-rows:28px repeat(6,1fr);grid-gap:4px;gap:4px;height:100%}.tt-corner{background:transparent}.tt-day-header{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}.tt-day-header-sub{font-size:9px;font-weight:700;color:#b3540a;margin-left:3px}html[data-theme=dark] .tt-day-header-sub{color:#f0a35e}html.theme-anim *,html.theme-anim :after,html.theme-anim :before{transition:background-color .3s ease,color .3s ease,border-color .3s ease,outline-color .3s ease,fill .3s ease,stroke .3s ease!important}.tt-day-header .today-circle{background:#2456a6;color:#fff;border-radius:999px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center}.tt-axis{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:6px;gap:1px;color:#444;text-align:center}.tt-period-num{font-weight:700;font-size:16px;line-height:1;margin-bottom:3px}.tt-period-time{font-size:8px;letter-spacing:0;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:1.2;text-align:center;white-space:nowrap}.tt-period-sep{font-size:8px;line-height:.9;text-align:center;color:#999}.tt-cell{min-height:0}.tt-empty{width:100%;height:100%;background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:0}.tt-empty:hover{border-color:#2456a6;background:#f0f4fb}.tt-tile{width:100%;height:100%;border:none;border-radius:10px;padding:4px 3px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:2px;color:#1a1a2e;position:relative;overflow:hidden}.tt-tile .pill{font-size:clamp(9px,2.2vw,11px);padding:0 5px;line-height:1.5}.tile-name{font-size:clamp(11px,2.8vw,14px);font-weight:600;line-height:1.25;text-align:center;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:auto 0}.tile-tsunen{position:absolute;top:4px;right:4px;font-size:9px;background:rgba(20,33,61,.8);color:#fff;border-radius:999px;padding:0 6px}.tile-overlap-note{font-size:clamp(9px,2.4vw,11px);font-weight:700;background:rgba(255,255,255,.85);border-radius:999px;padding:1px 6px;white-space:nowrap}.row-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.course-row{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:10px;border:none;border-radius:10px;padding:10px 12px;text-align:left;color:#1a1a2e}.course-row .pill{margin-left:auto}.color-template-list{display:flex;flex-direction:column;gap:8px}.color-template-card{display:flex;flex-direction:column;gap:6px;width:100%;padding:10px 12px;background:#fff;border:1px solid #cfcfcf;border-radius:4px;text-align:left;cursor:pointer}.color-template-name{font-size:15px;font-weight:700;color:#222}.color-template-strip{display:flex;gap:2px}.color-template-swatch{flex:1 1;height:14px;border:1px solid rgba(0,0,0,.08)}html[data-theme=dark] .color-template-card{background:#1b2334;border-color:#3a4358}html[data-theme=dark] .color-template-name{color:#e9ebf2}.color-swatch-grid{display:flex;flex-wrap:wrap;gap:6px}.color-swatch-pick{width:30px;height:30px;padding:0;border:1px solid rgba(0,0,0,.15);border-radius:4px;cursor:pointer}.color-custom-row{display:flex;align-items:center;gap:10px;margin:8px 0 0;font-size:14px}.color-custom-row input[type=color]{width:44px;height:32px;padding:0;border:1px solid #cfcfcf;background:none;cursor:pointer}.color-pick-label{font-size:15px;font-weight:700;margin:14px 0 6px}.category-marker.no-cat,.timetable-tab .course-row.no-cat:before,.timetable-tab .tt-tile.no-cat .tile-name:before{display:none}.progress-section.no-cat .progress-row.sub{padding-left:12px}.course-row-name{font-weight:600;font-size:14px}.add-main{width:100%;margin-top:20px}.legend-items{display:flex;flex-wrap:wrap;gap:6px}.legend-template-row{flex-basis:100%;margin:0 0 2px}.legend-item{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e2e2ea;border-radius:999px;padding:4px 10px 4px 6px;font-size:12px}.legend-swatch{width:16px;height:16px;border-radius:5px;border:1px solid rgba(0,0,0,.15);display:inline-block;flex:none}.color-editor{margin-top:12px;background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:12px}.color-editor-title{margin:0 0 8px;font-weight:700;font-size:14px}.color-editor-state{color:#b25f00;font-size:12px;margin-left:6px}.swatch-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.swatch-button{width:30px;height:30px;border-radius:8px;border:1px solid rgba(0,0,0,.2);padding:0}.swatch-picker{flex-direction:row;align-items:center;gap:6px;font-size:13px;font-weight:600}.swatch-picker input[type=color]{width:40px;height:30px;border:none;background:none;padding:0;cursor:pointer}.color-editor-actions{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}.color-editor-default{display:inline-flex;align-items:center;gap:6px;font-size:13px}.modal-backdrop{position:fixed;inset:0;background:rgba(20,20,40,.45);display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:calc(24px + env(safe-area-inset-top, 0px)) 12px 24px;z-index:50}.modal{background:#fff;border-radius:14px;padding:18px;width:100%;max-width:520px;display:flex;flex-direction:column;gap:14px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-header-sticky{position:-webkit-sticky;position:sticky;top:-24px;z-index:6;background:#fff;margin:-18px -18px 0;padding:14px 18px 10px;border-bottom:1px solid #e3e3e3;border-radius:14px 14px 0 0}html[data-theme=dark] .modal-header-sticky{background:#1b2334;border-bottom-color:#3a4358}.modal-header h3{margin:0;font-size:17px;overflow-wrap:break-word}.modal-header h3,.modal-title-block{flex:1 1 auto;min-width:0}.modal-subtitle{margin:2px 0 0;font-size:12px;color:#666}html[data-theme=dark] .modal-subtitle{color:#9aa5bb}.modal-header .text-button{flex:0 0 auto;white-space:nowrap}.modal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #eee;padding-top:12px}.detail-meta{display:grid;grid-template-columns:auto 1fr;grid-gap:4px 14px;gap:4px 14px;margin:0;font-size:14px}.detail-meta dt{color:#666;font-weight:600}.detail-meta dd{margin:0}.detail-field{gap:8px}.attendance-counts{margin:8px 0 0;font-size:16px;font-weight:700}.attendance-history{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;max-height:180px;overflow-y:auto}.attendance-history li{display:flex;align-items:center;gap:10px;padding:4px 0;border-top:1px solid #eee;font-size:14px;font-weight:400}.attendance-history-status{display:inline-flex;align-items:center}.attendance-dot{width:8px;height:8px;border-radius:50%;margin-right:6px;flex:0 0 auto}.attendance-dot.present{background:#3fa7d6}.attendance-dot.absent{background:#d64545}.attendance-dot.late{background:#e3b505}.attendance-dot.cancelled{background:#9e9e9e}.attendance-history-date{min-width:128px}.attendance-history-status{font-weight:700}.attendance-history .text-button{margin-left:auto}.attendance-confirm{margin-left:auto;display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.attendance-confirm .text-button{margin-left:0}.inline-fields{gap:8px;font-weight:400}.add-header,.inline-fields{display:flex;align-items:center;flex-wrap:wrap}.add-header{gap:10px;position:-webkit-sticky;position:sticky;top:0;z-index:5;background:#fff;padding:8px 0}.add-header h2{font-size:18px;margin:0}.filter-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff4d6;border:1px solid #e8b93e;border-radius:10px;padding:8px 12px;font-size:14px;margin:12px 0}.search-input{width:100%;margin:12px 0 4px}.candidate-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.candidate-item{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:10px 12px}.candidate-main{display:flex;flex-direction:column;gap:3px;min-width:0}.candidate-name{font-weight:700;font-size:14px}.candidate-meta{color:#555;font-size:12px;line-height:1.5}.candidate-category{font-size:12px;color:#2456a6}.candidate-category-select{margin-top:4px;font-size:13px;padding:4px 8px}.add-button{flex:none;background:#2456a6;color:#fff;border:none;border-radius:8px;padding:8px 14px;font-weight:700;font-size:13px}.add-button:disabled{background:#a8a8b8;cursor:not-allowed}.preset-list{display:flex;flex-direction:column;gap:10px}.preset-card{background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:12px}.preset-head{display:flex;flex-direction:column;gap:2px}.preset-name{font-weight:700}.preset-meta{color:#555;font-size:12px}.preset-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;align-items:center}.manual-form{display:flex;flex-direction:column;gap:14px;max-width:460px}.save-bar{position:-webkit-sticky;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:10px 12px;margin-bottom:16px;box-shadow:0 2px 8px rgba(20,20,40,.06)}.save-status{font-size:14px;color:#555}.save-status.dirty{color:#b25f00;font-weight:700}.save-status.saved{color:#1e5c38;font-weight:700}.save-actions{display:inline-flex;align-items:center;gap:6px}.save-button{background:#2456a6;color:#fff;border:none;border-radius:8px;padding:9px 22px;font-weight:700}.save-bar:has(.save-status.dirty) .save-button,.save-status.dirty~.save-actions .save-button{background:#e8871e;box-shadow:0 0 0 3px rgba(232,135,30,.3)}.save-button:disabled{background:#c9c9d4;cursor:not-allowed;box-shadow:none}.gpa-summary{background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:12px 14px;margin-bottom:8px}.gpa-overall{display:flex;align-items:baseline;gap:10px}.gpa-label{font-weight:700}.gpa-value{font-size:26px;font-weight:800}.gpa-credits{color:#666;font-size:13px}.gpa-terms{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.gpa-term-chip{background:#f0f4fb;border-radius:999px;padding:2px 10px;font-size:12px}.category-marker{width:14px;height:14px;border-radius:4px;border:1px solid rgba(0,0,0,.12);flex:none;display:inline-block}.progress-section{margin-top:8px}.total-progress{background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:12px 14px}.total-progress-head{display:flex;justify-content:space-between;align-items:baseline}.total-progress-title,.total-progress-value{font-weight:700}.progress-bar{height:10px;background:#ececf1;border-radius:999px;overflow:hidden;margin:8px 0}.progress-bar-fill{height:100%;background:#2456a6;border-radius:999px}.total-progress-note{margin:0;font-size:13px;color:#444}.progress-group-title{font-size:15px;margin:20px 0 8px}.progress-list{list-style:none;margin:0;padding:0;background:#fff;border:1px solid #e2e2ea;border-radius:10px;overflow:hidden}.progress-row{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #f0f0f4;font-size:14px}.progress-row:last-child{border-bottom:none}.progress-row.combined{background:#f7f7fa;font-weight:600}.progress-row.sub{padding-left:26px}.progress-label{flex:1 1;min-width:0}.progress-value{white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.progress-value .met{color:#1e5c38;font-weight:700;margin-left:8px;font-size:12px;background:#e6f4ea;border-radius:999px;padding:1px 8px}.progress-extra{color:#777;font-size:12px;margin-left:6px}.progress-note-row{padding:8px 12px;font-size:12px;color:#555;line-height:1.6;border-bottom:1px solid #f0f0f4;background:#fffdf5}.grade-group{margin-bottom:16px}.grade-group-title{font-size:14px;margin:14px 0 6px}.grade-list{list-style:none;margin:0;padding:0;background:#fff;border:1px solid #e2e2ea;border-radius:10px;overflow:hidden}.grade-row{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #f0f0f4}.grade-row:last-child{border-bottom:none}.grade-row.dirty{background:#fff8ec}.grade-row-main{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:1px}.grade-row-name{font-weight:600;font-size:14px}.grade-row-meta{color:#666;font-size:12px}.grade-select{flex:none;min-width:96px}.settings-tab section{margin-bottom:28px}input[type=email],input[type=password]{font:inherit;padding:8px 10px;border:1px solid #c9c9d4;border-radius:8px;background:#fff;max-width:100%}.auth-links{margin:10px 0 0;font-size:13px}.auth-links .text-button{padding-left:0;font-size:13px}.form-error{color:#c0392b;font-size:13px;font-weight:600;line-height:1.6}.static-page{line-height:1.8;font-size:14px;flex:1 1;min-height:0;overflow-y:auto}.static-page h1{font-size:22px;margin:8px 0 16px}.static-page h2{font-size:16px;margin:24px 0 8px}.draft-banner{background:#fdf3d8;border:1px solid #e3c96a;border-radius:8px;padding:8px 12px;font-size:13px;font-weight:600}.dev-page{display:flex;flex-direction:column;gap:28px;padding-bottom:32px}.dev-header h1{font-size:22px;margin:8px 0 4px}.dev-header .text-button{margin-left:12px}.dev-section{display:flex;flex-direction:column;gap:10px}.dev-summary{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:10px;gap:10px}.dev-stat-card{background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:2px;align-items:center}.dev-stat-value{font-size:26px;font-weight:700}.dev-stat-label{font-size:12px;color:#666}.dev-table-wrap{overflow-x:auto;background:#fff;border:1px solid #e2e2ea;border-radius:10px}.dev-table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}.dev-table td,.dev-table th{border-bottom:1px solid #eee;padding:6px 10px;text-align:left}.dev-table th{background:#f6f6fa;font-weight:600}.dev-table td.dev-num,.dev-table th.dev-num{text-align:right}.dev-edit-form{padding:14px;flex-direction:column;margin-top:12px}.dev-edit-form,.dev-override-row{background:#fff;border:1px solid #e2e2ea;border-radius:10px;display:flex;gap:12px}.dev-override-row{align-items:center;justify-content:space-between;padding:10px 12px}.dev-grid-wrap{flex:none;height:min(560px,72dvh);min-height:320px}.dev-cell-button{width:100%;height:100%;background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:4px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#1a1a2e;overflow:hidden}.dev-cell-button:hover{border-color:#2456a6;background:#f0f4fb}.dev-cell-count{font-weight:700;font-size:14px;color:#2456a6}.dev-detail-name{font-size:17px;margin:4px 0 10px}.dev-detail-list{margin:0 0 12px;display:flex;flex-direction:column;gap:6px}.dev-detail-list>div{display:flex;gap:10px}.dev-detail-list dt{flex:0 0 96px;color:#666;font-size:13px}.dev-detail-list dd{margin:0;font-size:14px;font-weight:600}.substitute-banner{flex:none;background:#eef4fb;border:1px solid #2456a6;border-radius:10px;padding:6px 12px;font-size:13px;color:#14213d;margin-bottom:8px}.substitute-banner p{margin:2px 0}.substitute-banner.today{background:#fdecec;border-color:#c81e1e;color:#8f1414;font-weight:700;font-size:14px}.cal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 10px}.cal-title{font-size:19px;margin:0;display:flex;align-items:baseline;gap:8px}.cal-semester{font-size:11px;font-weight:600;color:#2456a6;background:#eef4fb;border-radius:999px;padding:2px 8px}.cal-nav-btn{width:40px;height:40px;border:1px solid #c9c9d4;border-radius:10px;font-size:20px;line-height:1;color:#14213d}.cal-nav-btn:disabled{opacity:.35}.cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:4px;gap:4px;margin-bottom:4px}.cal-wd{font-size:12px;color:#444}.cal-wd.sat{color:#2456a6}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:4px;gap:4px}.cal-pager{touch-action:pan-y;overflow:hidden}.cal-pager.dragging{-webkit-user-select:none;-moz-user-select:none;user-select:none}.cal-track{display:flex;align-items:flex-start;width:300%;transition:transform .32s cubic-bezier(.22,.61,.36,1);will-change:transform}.cal-track.no-anim{transition:none}.cal-pane{width:33.3333%;flex:none}@media (prefers-reduced-motion:reduce){.cal-track{transition:none}}.cal-cell{min-height:64px;border:1px solid #e2e2ea;border-radius:8px;padding:3px 4px;display:flex;flex-direction:column;gap:1px;overflow:hidden;font:inherit;color:inherit;text-align:left;cursor:pointer}.cal-cell.empty{background:transparent;border-color:transparent}.cal-cell.substitute{background:#e3f0fb;border-color:#9dbede}.cal-cell.selected{border-color:#2456a6;box-shadow:0 0 0 2px rgba(36,86,166,.35)}.cal-day{font-size:13px;font-weight:600;color:#333;width:-moz-fit-content;width:fit-content}.cal-cell.sun .cal-day{color:#c81e1e}.cal-cell.sat .cal-day{color:#2456a6}.cal-day.today{background:#2456a6;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.cal-ev{font-size:9px;line-height:1.25;color:#444;overflow-wrap:anywhere}.cal-ev.substitute{color:#2456a6;font-weight:700;font-size:10px}.cal-ev.exam,.cal-ev.examTerm{color:#7a4a00;font-weight:600}.cal-ev.intensive{color:#5b3a9e;font-weight:600}.cal-day-detail{margin-top:14px;border:1px solid #e2e2ea;border-radius:10px;padding:10px 12px;background:#fbfcfe}.cal-day-detail .section-title{margin-top:0;display:flex;align-items:center;gap:8px}.cal-detail-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:14px}.cal-list-date-button{background:none;border:none;padding:0;font:inherit;cursor:pointer}.cal-month-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.cal-month-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:14px}.cal-list-date{font-weight:700;color:#14213d;min-width:108px}.cal-list-item.substitute{color:#2456a6;font-weight:700}.cal-list-item.holiday{color:#c81e1e}.pin-gate{margin:0 auto;padding-top:12px}.pin-gate,.pin-settings-flow{max-width:340px}.pin-pad{display:flex;flex-direction:column;gap:14px;margin-top:10px}.pin-display{border:1px solid #c9c9d4;border-radius:10px;background:#fff;min-height:52px;display:flex;align-items:center;justify-content:center;padding:8px 12px}.pin-digits{font-size:26px;font-weight:700;letter-spacing:10px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.pin-placeholder{color:#999;font-size:14px}.pin-keys{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px}.pin-key{border:1px solid #c9c9d4;background:#fff;border-radius:12px;padding:14px 0;font-size:20px;font-weight:600;color:#1a1a2e}.pin-key:active{background:#f0f4fb;border-color:#2456a6}.pin-key.blank{border:none;background:transparent}@keyframes ui-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ui-rise-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes ui-sheet-in{0%{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}@keyframes ui-tab-in{0%{opacity:0}to{opacity:1}}.tab-content>*{animation:ui-tab-in .16s ease-out both}.modal-backdrop{animation:ui-fade-in .16s ease-out both}.modal-backdrop .modal{animation:ui-rise-in .2s ease-out both}.sheet-backdrop .modal,.sheet-backdrop .term-sheet{animation:ui-sheet-in .22s ease-out both}.primary-button,.secondary-button,.tab-button,.tt-tile{transition:transform .12s ease}.primary-button:active,.secondary-button:active,.tab-button:active,.tt-tile:active{transform:scale(.97)}@media (prefers-reduced-motion:reduce){.modal-backdrop,.modal-backdrop .modal,.sheet-backdrop .modal,.sheet-backdrop .term-sheet,.tab-content>*{animation:none}.primary-button,.secondary-button,.tab-button,.tt-tile{transition:none}.primary-button:active,.secondary-button:active,.tab-button:active,.tt-tile:active{transform:none}}.cal-cell.sat .cal-day.today,.cal-cell.sun .cal-day.today{color:#fff}.cal-semester.spring{background:#e8f5e9}.spring-label{color:#4f9a58;font-weight:600}.detail-field-title{font-size:14px;font-weight:600}.auth-mode-title{font-size:20px;font-weight:700;margin:0}@keyframes pin-fade-in{0%{opacity:0}to{opacity:1}}.pin-fade-in{animation:pin-fade-in .45s ease both}.pin-setup-banner{border:1px solid #d8d8e2;border-radius:12px;background:#fff;padding:12px 14px;margin-bottom:12px}.profile-fixed-field{display:flex;flex-direction:column;gap:6px;font-weight:600}.profile-fixed-label{font-size:13px;color:#555}.profile-save-warning{border:1px solid #e5b45b;background:#fff8ec;border-radius:12px;padding:10px 14px;margin-top:10px}.collapse-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:none;padding:4px 0;font:inherit;color:inherit;cursor:pointer;text-align:left}.collapse-caret{color:#555;font-size:14px}.collapse-title{margin-bottom:6px}.grade-group-title .collapse-toggle{font-weight:700}.edit-cancel-button{display:block;width:100%;max-width:420px;padding:11px 20px;font-weight:700;margin-top:10px}.feedback-textarea{width:100%;min-height:110px;border:1px solid #c9c9d4;border-radius:10px;padding:10px 12px;font:inherit;resize:vertical}.feedback-actions{display:flex;align-items:center;gap:12px;margin-top:8px}.dev-nav{display:flex;flex-direction:column;gap:8px}.dev-nav-button{width:100%;text-align:left;background:#fff;border:1px solid #14213d;color:#14213d;border-radius:10px;padding:12px 16px;font-weight:700;cursor:pointer}.dev-nav-button.active{background:#14213d;color:#fff}.dev-edit-window{background:#fff;border:1px solid #d8d8e2;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}.dev-feedback-item{border:1px solid #d8d8e2;border-radius:12px;background:#fff;padding:10px 14px}.dev-feedback-date{color:#555;font-size:12px}.dev-feedback-body{white-space:pre-wrap;margin-top:4px}.add-filter-bar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;margin:10px 0 4px}.add-filter-field{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:#444}.add-filter-field input,.add-filter-field select{font-size:14px;padding:6px 8px;border:1px solid #c9c9d4;border-radius:8px;background:#fff;min-height:36px}.section-collapse-head{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:none;padding:4px 0;font:inherit;color:inherit;cursor:pointer;text-align:left}.legend-editor-slot{flex-basis:100%}.legend-inline-editor{margin-top:0}button.tt-day-header{font:inherit;background:none;border:none;cursor:pointer;color:inherit;padding:0}.day-attendance-list{list-style:none;margin:12px 0;padding:0;display:flex;flex-direction:column;gap:12px}.day-attendance-item{display:flex;flex-direction:column;gap:6px;border-bottom:1px solid #eeeef3;padding-bottom:10px}.install-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eef4ff;border:1px solid #b9cdf3;color:#1c3d75;border-radius:10px;padding:8px 12px;font-size:13px;margin-bottom:8px}.install-banner .text-button{flex:none;white-space:nowrap}.announcement-banner{display:flex;flex-direction:column;gap:2px;background:#fdecec;border:1px solid #e5a3a3;color:#7a1f1f;border-radius:10px;padding:8px 12px;font-size:13px;margin-bottom:8px}.announcements-section{margin-top:14px}.announcement-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.announcement-item{display:flex;flex-wrap:wrap;gap:4px 10px;background:#fff;border:1px solid #e2e2ea;border-radius:10px;padding:8px 12px;font-size:13px}.announcement-date{color:#777;font-size:12px}.announcement-title{font-weight:700}.announcement-body{flex-basis:100%;color:#444;white-space:pre-wrap}.confirm-actions-row{display:flex;align-items:center;gap:14px;margin-top:6px}.account-logout-block{margin-top:30px}.fullscreen-confirm{position:fixed;inset:0;z-index:200;background:rgba(20,20,30,.55);display:flex;align-items:center;justify-content:center;padding:20px}.fullscreen-confirm-card{background:#fff;border-radius:14px;padding:22px;max-width:480px;width:100%;box-shadow:0 12px 40px rgba(0,0,0,.3)}.fullscreen-confirm-card h3{margin-top:0}.dev-check{display:inline-flex;align-items:center;padding-right:8px}.dev-check input{width:18px;height:18px}.dev-bulk-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;font-weight:700}.dev-row-actions{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none}.dev-nowrap-button{white-space:nowrap}.tt-pager{flex:1 1;min-height:0;display:flex;flex-direction:column;touch-action:pan-y;overflow:hidden;margin-left:-14px;margin-right:-14px}.tt-pager.dragging{-webkit-user-select:none;-moz-user-select:none;user-select:none}.tt-track{flex:1 1;min-height:0;display:flex;width:200%;transition:transform .32s cubic-bezier(.22,.61,.36,1);will-change:transform}.tt-track.no-anim{transition:none}.tt-panel{width:50%;flex:none;height:100%;min-width:0;display:flex;flex-direction:column;overflow:hidden}.tt-panel .grid-wrap{margin-left:0;margin-right:0}@media (prefers-reduced-motion:reduce){.tt-track{transition:none}}.tt-pager-nav{display:flex;justify-content:center;gap:8px;padding-top:8px;flex:none}.tt-pager-button{border:1px solid #c9c9d4;color:#555;border-radius:999px;padding:4px 16px;font-size:13px;font-weight:600}.tt-pager-button.active{background:#14213d;border-color:#14213d}.day-view{flex:1 1;min-height:0;overflow-y:auto;padding:2px 2px 8px;touch-action:pan-y}.day-view-title{font-size:17px;margin:4px 0 10px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.day-view-attendance-btn{font-size:14px}.day-view-substitute{background:#eef4fb;border:1px solid #9dbede;border-radius:8px;padding:8px 12px;font-size:14px;font-weight:600;color:#14213d}.day-view-events{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:6px}.day-event{display:flex;align-items:center;gap:8px;background:#f6f6fa;border:1px solid #e2e2ea;border-radius:8px;padding:6px 10px;font-size:14px}.day-event-label{flex:none;font-size:12px;font-weight:700;background:#14213d;color:#fff;border-radius:999px;padding:1px 9px}.day-event.kind-holiday .day-event-label{background:#c0392b}.day-event.kind-substitute .day-event-label{background:#2456a6}.day-event.kind-exam .day-event-label,.day-event.kind-examTerm .day-event-label{background:#b25f00}.day-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.day-item{width:100%;display:flex;align-items:stretch;gap:12px;border:none;border-radius:10px;padding:10px 12px;text-align:left;color:#1a1a2e}.day-item-period{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:64px}.day-item-period-num{font-size:17px;font-weight:700}.day-item-time{font-size:11px;font-weight:600}.day-item-main{flex:1 1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px}.day-item-name{font-size:15px;font-weight:700;overflow-wrap:anywhere}.day-item-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.day-item-status{font-size:12px;font-weight:700;background:rgba(255,255,255,.85);border-radius:999px;padding:1px 9px;display:inline-flex;align-items:center}.day-item-status .attendance-dot{margin-right:5px}.day-item-status.cancelled{background:#c0392b;color:#fff}.day-item-status.cancelled .attendance-dot{background:#fff}.absence-limit-field{display:inline-flex;flex-direction:row;align-items:center;gap:8px;font-size:13px;font-weight:600;margin-top:8px}.absence-limit-field input{width:76px;padding:6px 8px}.absence-limit-row{display:block;margin-top:10px}.absence-planned-row{display:flex;flex-direction:column;gap:4px;width:100%;margin-bottom:8px}.absence-planned-row input{width:76px;padding:6px 8px}.absence-limit-edit-label{display:inline-flex;flex-direction:row;align-items:center;gap:8px;font-size:14px;font-weight:600}.absence-limit-edit-label input{width:76px;padding:6px 8px;border:1px solid #c9c9d4;border-radius:8px;background:#fff}.absence-remaining{font-size:15px;font-weight:700;color:#1e5c38;background:#e6f4ea;border-radius:8px;padding:8px 12px}.absence-remaining.over{color:#8f1414;background:#fdecec}.absence-limit-field{flex-wrap:wrap}.absence-limit-field-label{white-space:nowrap}.absence-mode-row,.absence-scope-row{display:inline-flex;gap:6px;margin-top:10px}.absence-attend-label{font-weight:700}.absence-limit-field .absence-mode-row{margin-top:0}.absence-confirm-button{margin-left:10px;padding:6px 16px}.save-banner{position:fixed;top:calc(8px + env(safe-area-inset-top, 0px));left:8px;right:8px;border-radius:8px;z-index:90;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#e6f4ea;color:#1e5c38;font-size:15px;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.18)}.save-banner.global{z-index:250}.save-banner.global.error{background:#fdecec;color:#8f1414}html[data-theme=dark] .save-banner.global.error{background:#3d2126;color:#f0937e}.pin-step-label{font-size:15px;font-weight:700;margin:4px 0 8px}.save-banner-close{flex:none;width:32px;height:32px;border:none;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer}.absence-percent-unit{font-size:14px;font-weight:600}.absence-fraction-inputs{display:inline-flex;align-items:center;gap:4px}.absence-fraction-inputs input{width:56px;padding:6px 8px}.absence-limit-edit-label .absence-fraction-inputs input{border:1px solid #c9c9d4;border-radius:8px;background:#fff}.absence-fraction-slash{font-size:15px;font-weight:700}.cancellation-notice{font-size:13px;font-weight:600;color:#8a5a00;background:#fff4d6;border-radius:8px;padding:8px 12px}.theme-setting-block{margin-top:28px}.theme-setting-title{font-size:15px;margin:0 0 6px}html[data-theme=dark]{color-scheme:dark}html[data-theme=dark] body{background:#10141d;color:#e9ebf2}html[data-theme=dark] .tab-footer{border-top-color:#3a4358;color:#8b94a7}html[data-theme=dark] .announcement-date,html[data-theme=dark] .candidate-meta,html[data-theme=dark] .detail-meta dt,html[data-theme=dark] .form-note,html[data-theme=dark] .loading,html[data-theme=dark] .other-settings-link,html[data-theme=dark] .tab-footer a{color:#a3adc0}html[data-theme=dark] .empty-note{color:#8b94a7}html[data-theme=dark] .absence-limit-edit-label input,html[data-theme=dark] input[type=date],html[data-theme=dark] input[type=email],html[data-theme=dark] input[type=number],html[data-theme=dark] input[type=password],html[data-theme=dark] input[type=search],html[data-theme=dark] input[type=text],html[data-theme=dark] select,html[data-theme=dark] textarea{background:#1b2334;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .primary-button{background:#2e4a7d}html[data-theme=dark] .primary-button:disabled{background:#4a5468}html[data-theme=dark] .secondary-button{background:#1b2334;border-color:#7ea6ec;color:#c9dcf5}html[data-theme=dark] .danger-outline-button{background:#1b2334}html[data-theme=dark] .text-button{color:#7ea6ec}html[data-theme=dark] .chip{background:#1b2334;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .chip.active{background:#2e4a7d;border-color:#2e4a7d;color:#fff}html[data-theme=dark] .tab-button{background:#1b2334;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .tab-button.active{background:#2e4a7d;border-color:#2e4a7d;color:#fff}html[data-theme=dark] .term-select-button{background:#1b2334;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .term-select-caret{color:#7ea6ec}html[data-theme=dark] .fullscreen-confirm-card,html[data-theme=dark] .modal,html[data-theme=dark] .term-sheet{background:#1b2334;color:#e9ebf2}html[data-theme=dark] .term-option{background:#1b2334;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .term-option.selected{background:#26334d;border-color:#7ea6ec}html[data-theme=dark] .term-option-check{color:#7ea6ec}html[data-theme=dark] .tt-day-header .today-circle{background:#3a66b0}html[data-theme=dark] .course-row,html[data-theme=dark] .day-item,html[data-theme=dark] .tt-tile{color:#1a1a2e}html[data-theme=dark] .tt-pager-button{background:#1b2334;border-color:#3a4358;color:#a3adc0}html[data-theme=dark] .tt-pager-button.active{background:#2e4a7d;border-color:#2e4a7d;color:#fff}html[data-theme=dark] .day-view-substitute{background:#1d2c47;border-color:#3a5a8c;color:#c9dcf5}html[data-theme=dark] .day-event{background:#232d42;border-color:#3a4358}html[data-theme=dark] .candidate-item,html[data-theme=dark] .color-editor,html[data-theme=dark] .legend-item,html[data-theme=dark] .preset-card{background:#1b2334;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .added-toast{background:#173325;border-color:#2f7a4d;color:#9fe0b6}html[data-theme=dark] .announcement-banner{background:#402327;border-color:#c81e1e;color:#f0b9b9}html[data-theme=dark] .substitute-banner{background:#1d2c47;border-color:#3a5a8c;color:#c9dcf5}html[data-theme=dark] .substitute-banner.today{background:#402327;border-color:#c81e1e;color:#f0b9b9}html[data-theme=dark] .install-banner{background:#1d2c47;color:#c9dcf5}html[data-theme=dark] .form-error{color:#ff9d94}html[data-theme=dark] .profile-save-warning{background:#38300f;color:#e9ebf2}html[data-theme=dark] .absence-remaining{background:#173325;color:#7fd79b}html[data-theme=dark] .absence-remaining.over{background:#402327;color:#ff9d94}html[data-theme=dark] .attendance-history li{border-bottom-color:#3a4358}html[data-theme=dark] .cal-cell,html[data-theme=dark] .cal-day-detail,html[data-theme=dark] .dev-edit-form,html[data-theme=dark] .dev-feedback-item,html[data-theme=dark] .dev-nav-button{background:#1b2334;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .cal-list-date,html[data-theme=dark] .cal-wd,html[data-theme=dark] .dev-detail-list dt{color:#a3adc0}html[data-theme=dark] .dev-nav-button.active{background:#2e4a7d;color:#fff}html[data-theme=dark] .tt-empty{background:#1b2334;border-color:#3a4358}html[data-theme=dark] .tt-empty:hover{background:#26334d;border-color:#7ea6ec}html[data-theme=dark] .tt-axis{color:#c9d2e2}html[data-theme=dark] .tt-period-sep{color:#8b94a7}html[data-theme=dark] .add-header{background:#10141d}html[data-theme=dark] .filter-banner{background:#38300f;color:#e9ebf2}html[data-theme=dark] .announcement-item,html[data-theme=dark] .cal-nav-btn,html[data-theme=dark] .dev-cell-button,html[data-theme=dark] .dev-edit-window,html[data-theme=dark] .dev-override-row,html[data-theme=dark] .dev-stat-card,html[data-theme=dark] .dev-table-wrap,html[data-theme=dark] .gpa-summary,html[data-theme=dark] .grade-list,html[data-theme=dark] .pin-display,html[data-theme=dark] .pin-key,html[data-theme=dark] .pin-setup-banner,html[data-theme=dark] .progress-list,html[data-theme=dark] .save-bar,html[data-theme=dark] .total-progress{background:#1b2334;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .save-status{color:#a3adc0}html[data-theme=dark] .gpa-term-chip{background:#26334d;color:#c9dcf5}html[data-theme=dark] .gpa-credits,html[data-theme=dark] .total-progress-note{color:#a3adc0}html[data-theme=dark] .progress-bar{background:#3a4358}html[data-theme=dark] .progress-row{border-bottom-color:#3a4358}html[data-theme=dark] .progress-row.combined{background:#232d42}html[data-theme=dark] .progress-value .met{color:#7fd79b}html[data-theme=dark] .save-button:disabled{background:#4a5468}html[data-theme=dark] .save-banner{background:#173325;color:#7fd79b}html[data-theme=dark] .cancellation-notice{background:#38300f;color:#f0d48a}body{background:#fff;color:#222}.site-header{background:#2f6db3}.site-badge{background:#f5a623;color:#fff;border-radius:4px}a{color:#1d4e9e}.tab-footer{border-top-color:#cfcfcf;color:#666}.other-settings-link,.tab-footer a{color:#1d4e9e}.tab-nav{margin:-12px -16px 6px;gap:0;height:44px;border-bottom:2px solid #2f6db3}.tab-button{border:none;border-right:1px solid #fff;border-radius:0;background:#eaf2fa;color:#2f6db3;font-size:14px;font-weight:500}.tab-button:last-child{border-right:none}.tab-button.active{background:#2f6db3;color:#fff;border-color:transparent;font-weight:700}.primary-button{background:#2f6db3;border-radius:4px}.primary-button:disabled{background:#a8c0da}.secondary-button{border-color:#2f6db3;color:#2f6db3;border-radius:4px}.danger-button{border-radius:4px}.danger-outline-button{border:1px solid #c81e1e;color:#c81e1e;background:#fff;border-radius:4px}.text-button{color:#1d4e9e;text-decoration:underline;text-underline-offset:2px}.chip{border:1px solid #2f6db3;background:#fff;color:#2f6db3;border-radius:4px}.chip.active{background:#2f6db3;border-color:#2f6db3;color:#fff}input[type=email],input[type=number],input[type=password],input[type=search],input[type=text],select,textarea{border-radius:4px;border-color:#b5b5c0}.badge{border:1px solid #999;border-radius:2px;background:#f7f7f7;color:#555}.section-title{border-left:5px solid #2f6db3;padding-left:8px;font-size:17px;font-weight:700}.collapse-caret{color:#1d4e9e}.term-select-button{border:none;background:transparent;border-radius:0;padding:2px 0;color:#222;font-size:15px}.term-select-caret{color:#2f6db3}.substitute-banner{background:#fff8e1;border:1px solid #e8d9a0;border-radius:8px;color:#6d5c00}.substitute-banner.today{background:#fff8e1;border-color:#e8d9a0;color:#6d5c00}.announcement-banner{border-radius:8px}.install-banner{background:#f7f7f7;border:1px solid #cfcfcf;border-radius:8px;color:#333}.timetable-tab .tt-grid{gap:0;border-top:1px solid #cfcfcf;border-left:1px solid #cfcfcf;container-type:size}.timetable-tab .tt-axis,.timetable-tab .tt-cell,.timetable-tab .tt-corner,.timetable-tab .tt-day-header{border-right:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf}.timetable-tab .tt-day-header{background:#fff}.timetable-tab .tt-day-header.today{background:#dcebfd;color:#1d4e9e}.timetable-tab .tt-day-header .today-circle{background:transparent;color:inherit;width:auto;height:auto;border-radius:0}.timetable-tab .tt-axis,.timetable-tab .tt-corner{background:#fcfcfc}.timetable-tab .tt-period-num{font-size:17px;color:#222}.timetable-tab .tt-period-time{color:#888}.timetable-tab .tt-period-sep{color:#bbb}.timetable-tab .tt-tile{background:#fff;border-radius:0;color:#222;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;text-align:left;padding:4px 5px 3px}.timetable-tab .tile-name:before{content:"";display:inline-block;width:10px;height:10px;background:var(--cat,transparent);filter:saturate(2.3) brightness(.96);margin-right:4px;vertical-align:1px}.timetable-tab .tt-tile{--tile-name-lines:3}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:2}@media (min-height:701px) and (max-height:790px){.timetable-tab .tt-tile{--tile-name-lines:4}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:3}}@media (min-height:791px) and (max-width:767px){.timetable-tab .tt-tile{--tile-name-lines:5}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:4}}@media (min-height:881px) and (max-width:767px){.timetable-tab .tt-tile{--tile-name-lines:6}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:4}}@media (min-width:768px) and (max-height:900px){.timetable-tab .tt-tile{--tile-name-lines:5}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:3}}@media (min-width:768px) and (min-height:901px){.timetable-tab .tt-tile{--tile-name-lines:6}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:5}}@container (min-height: 445px){.timetable-tab .tt-tile{--tile-name-lines:4}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:3}}@container (min-height: 530px){.timetable-tab .tt-tile{--tile-name-lines:5}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:4}}@container (min-height: 620px){.timetable-tab .tt-tile{--tile-name-lines:6}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:4}}@media (min-width:768px){@container (min-height: 530px){.timetable-tab .tt-tile{--tile-name-lines:5}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:3}}@container (min-height: 640px){.timetable-tab .tt-tile{--tile-name-lines:6}.timetable-tab .tt-tile.has-classroom,.timetable-tab .tt-tile.overlap{--tile-name-lines:5}}}@media (max-width:767px){.timetable-tab .tt-tile.has-long-classroom{--tile-name-lines:1}}@media (min-height:701px) and (max-height:790px) and (max-width:767px){.timetable-tab .tt-tile.has-long-classroom{--tile-name-lines:2}}@media (min-height:791px) and (max-width:767px){.timetable-tab .tt-tile.has-long-classroom{--tile-name-lines:3}}@media (max-width:767px){@container (min-height: 445px){.timetable-tab .tt-tile.has-long-classroom{--tile-name-lines:2}}@container (min-height: 530px){.timetable-tab .tt-tile.has-long-classroom{--tile-name-lines:3}}}.timetable-tab .tile-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--tile-name-lines,3);line-clamp:var(--tile-name-lines,3);overflow:hidden;overflow-wrap:anywhere;text-align:left;margin:0;font-size:clamp(11.5px,3vw,13px);line-height:1.22}.timetable-tab .tile-tsunen{position:absolute;top:2px;right:3px;font-size:9px;color:#2f6db3;border:1px solid #2f6db3;border-radius:2px;padding:0 3px;background:#fff}.timetable-tab .tile-overlap-note{display:block;font-size:11px;color:#1d4e9e;margin-top:2px}.timetable-tab .tt-tile .pill,.timetable-tab .tt-tile .tile-overlap-note{position:absolute;left:5px;bottom:3px;margin:0}.timetable-tab .pill{display:block;background:none;border-radius:0;padding:0;font-size:11px;font-weight:400;color:#555;white-space:normal;margin-top:2px}.timetable-tab .tt-empty{background:transparent;border:none;border-radius:0}.timetable-tab .tt-empty:hover{background:#eaf2fa}.timetable-tab .course-row{background:#fff;border:1px solid #cfcfcf;border-radius:0;color:#222}.timetable-tab .course-row:before{content:"";width:12px;height:12px;flex:none;background:var(--cat,transparent);filter:saturate(2.3) brightness(.96)}.timetable-tab .course-row .pill{margin-top:0}.timetable-tab .day-item{background:#fff;border:1px solid #cfcfcf;border-radius:0;color:#222;position:relative;padding-left:18px}.timetable-tab .day-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:8px;background:var(--cat,transparent);filter:saturate(2.3) brightness(.96)}.tt-pager-button{border:1px solid #2f6db3;color:#2f6db3;background:#fff;border-radius:4px}.tt-pager-button.active{background:#2f6db3;color:#fff;border-color:#2f6db3;font-weight:700}.category-marker,.legend-swatch,.swatch-button{border-radius:2px;filter:saturate(2.3) brightness(.96)}.grades-tab .save-status.saved{background:#e9f5e3;border:1px solid #b7d9a8;color:#3d6b1f;border-radius:0;padding:8px 12px}.grades-tab .save-status.dirty{background:#fff8e1;border:1px solid #e8d9a0;color:#6d5c00;border-radius:0;padding:8px 12px}.grade-row,.progress-row{background:#fff;border:1px solid #cfcfcf;border-radius:0}.cal-day-detail,.candidate-item,.gpa-summary,.grade-list,.progress-list,.save-bar,.total-progress{border-radius:0}.save-bar:has(.save-status.saved){background:#e9f5e3;border-color:#b7d9a8}.save-bar:has(.save-status.dirty){background:#fff8e1;border-color:#e8d9a0}.grade-select{border-radius:4px}.progress-bar,.progress-bar-fill{border-radius:2px}.pin-setup-banner{background:#eaf2fa;border:1px solid #bcd3ee;border-radius:8px;color:#1d4e9e}.cal-semester,.cal-title{font-weight:700}.cal-semester{background:none;color:#2e7d32;padding:0;border-radius:0}.cal-nav-btn{background:none;border:none;color:#1d4e9e;text-decoration:underline;text-underline-offset:2px;font-size:14px}.cal-weekdays{gap:0;margin-bottom:0;border:1px solid #cfcfcf;border-bottom:none;background:#f0f0f0}.cal-wd{text-align:center;font-weight:700;font-size:13px;padding:5px 0}.cal-wd.sun{color:#c81e1e}.cal-wd.sat{color:#1d4e9e}.cal-grid{gap:0}.cal-cell,.cal-grid{border:1px solid #cfcfcf}.cal-cell{border-top:none;border-left:none;border-radius:0;background:#fff}.cal-cell.empty{background:#fcfcfc;border-right:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf}.cal-cell.substitute{background:#fff}.cal-cell.selected{border-color:#cfcfcf;box-shadow:inset 0 0 0 2px #2f6db3}.cal-cell:has(.cal-day.today){background:#dcebfd}.cal-day.today{background:#2f6db3;color:#fff;border-radius:999px;padding:1px 6px}.cal-ev{font-size:10px;line-height:1.3;color:#555}.cal-ev.holiday{color:#c81e1e}.cal-ev.substitute{color:#1d4e9e;font-weight:600}.fullscreen-confirm-card,.modal{border-radius:6px}html[data-theme=dark] .site-header{background:#1c4f86}html[data-theme=dark] .timetable-tab .course-row,html[data-theme=dark] .timetable-tab .day-item,html[data-theme=dark] .timetable-tab .tt-tile{background:#1b2334;color:#e9ebf2;border-color:#3a4358}html[data-theme=dark] .timetable-tab .tt-grid{border-top-color:#3a4358;border-left-color:#3a4358}html[data-theme=dark] .timetable-tab .tt-axis,html[data-theme=dark] .timetable-tab .tt-cell,html[data-theme=dark] .timetable-tab .tt-corner,html[data-theme=dark] .timetable-tab .tt-day-header{border-right-color:#3a4358;border-bottom-color:#3a4358}html[data-theme=dark] .timetable-tab .tt-day-header{background:#1b2334;color:#e9ebf2}html[data-theme=dark] .timetable-tab .tt-day-header.today{background:#274b73;color:#cfe4ff}html[data-theme=dark] .timetable-tab .tt-axis,html[data-theme=dark] .timetable-tab .tt-corner{background:#161c29}html[data-theme=dark] .timetable-tab .tt-period-num{color:#e9ebf2}html[data-theme=dark] .timetable-tab .pill{color:#9aa7bd}html[data-theme=dark] .timetable-tab .tile-tsunen{background:#1b2334;color:#8ab4f0;border-color:#5b93e6}html[data-theme=dark] .section-title{border-left-color:#5b93e6}html[data-theme=dark] .grade-row,html[data-theme=dark] .progress-row{background:#1b2334;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .grades-tab .save-status.saved{background:#22331a;border-color:#4a6b35;color:#b9e29a}html[data-theme=dark] .grades-tab .save-status.dirty{background:#3a3418;border-color:#8a7a2e;color:#f0df9a}html[data-theme=dark] .cal-weekdays{background:#232c40}html[data-theme=dark] .cal-cell.empty{background:#161c29}html[data-theme=dark] .cal-wd.sun{color:#ff9d9d}html[data-theme=dark] .cal-wd.sat{color:#8ab4f0}html[data-theme=dark] .cal-semester{color:#7cc47f}html[data-theme=dark] .badge{background:#232c40;border-color:#3a4358;color:#a9b6cc}html[data-theme=dark] .save-bar:has(.save-status.saved){background:#22331a;border-color:#4a6b35}html[data-theme=dark] .save-bar:has(.save-status.dirty){background:#3a3418;border-color:#8a7a2e}html[data-theme=dark] .progress-note-row{background:#232c40;border-color:#3a4358;color:#c9d2e2}.profile-table{width:100%;border-collapse:collapse;border:1px solid #cfcfcf;background:#fff;font-size:14px}.profile-table th{background:#f0f0f0;color:#222;font-weight:700;text-align:left;width:118px}.profile-table td,.profile-table th{border:1px solid #cfcfcf;padding:9px 12px}html[data-theme=dark] .profile-table{background:#1b2334;border-color:#3a4358}html[data-theme=dark] .profile-table th{background:#232c40;border-color:#3a4358;color:#e9ebf2}html[data-theme=dark] .profile-table td{border-color:#3a4358;color:#e9ebf2}.cal-nav-btn{display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:80px;min-height:44px;padding:10px;font-size:15px;font-weight:700;color:#2f6db3;background:#fff;border:1px solid #2f6db3;border-radius:4px;text-decoration:none;white-space:nowrap}.cal-nav-btn:disabled{color:#a8a8b8;border-color:#c9c9d4;background:#f7f7f7}html[data-theme=dark] .cal-nav-btn{background:#1b2334;color:#8ab4f0;border-color:#5b93e6}html[data-theme=dark] .cal-nav-btn:disabled{background:#161c29;color:#5a6480;border-color:#3a4358}.cal-title{font-size:15px;white-space:nowrap}.cal-semester{margin-left:6px;color:#6ea8e1}.cal-semester.spring{color:#4f9a58;background:none;padding:0;border-radius:0}html[data-theme=dark] .cal-semester{color:#8ab4f0}html[data-theme=dark] .cal-semester.spring{color:#7cc48a;background:none}input,input[type=date],input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],select,textarea{font-size:16px}.memo-list{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:8px;max-height:180px;overflow-y:auto}.memo-item{border:1px solid #cfcfcf;background:#fff;padding:8px 10px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}.memo-text{font-weight:600;overflow-wrap:anywhere}.memo-deadline{color:#b3541e;font-size:13px;font-weight:700}.memo-edit{margin-left:auto}.memo-input{width:100%;border:1px solid #c9c9d4;border-radius:4px;padding:8px 10px;font-family:inherit}.memo-kind-row{margin-top:10px;align-items:center}.absence-limit-title{display:inline-flex;align-items:center;gap:12px}.memo-field-label{flex:none;width:3.2em;font-size:14px;font-weight:700}.memo-datetime-row{margin-top:8px;align-items:center}.memo-confirm-text{font-weight:700;overflow-wrap:anywhere}.memo-confirm-meta{color:#b3541e;font-size:13px;font-weight:700}html[data-theme=dark] .memo-confirm-meta{color:#f0a35e}html[data-theme=dark] .memo-item{background:#1b2334;border-color:#3a4358}html[data-theme=dark] .memo-deadline{color:#f0a35e}html[data-theme=dark] .memo-input{background:#161c29;border-color:#3a4358;color:#e9ebf2}.cal-ev.memo{background:#fdeeda;color:#b3541e}.cal-ev.memo.exam{background:#fde8e8;color:#b03a2e}.cal-list-item.memo{color:#b3541e;font-weight:700;display:flex;align-items:baseline;gap:10px}.cal-list-item.memo .cal-memo-text{flex:1 1}.cal-ev.cancelled{background:#eeeeee;color:#757575}.cal-list-item.cancelled{color:#757575}html[data-theme=dark] .cal-ev.cancelled{background:#2a2f3d;color:#9aa3b5}html[data-theme=dark] .cal-list-item.cancelled{color:#9aa3b5}html[data-theme=dark] .cal-ev.memo{background:#3a2a18;color:#f0a35e}html[data-theme=dark] .cal-ev.memo.exam{background:#3d2126;color:#f0937e}html[data-theme=dark] .cal-list-item.memo{color:#f0a35e}.today-strip{display:flex;gap:10px;align-items:baseline;border:1px solid #e8d9a0;background:#fff8e1;color:#6d5c00;padding:7px 10px;margin-bottom:8px;font-size:13.5px}.today-strip-title{font-weight:700;white-space:nowrap}.today-strip-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}.today-strip-memo{background:none;border:none;padding:0;font:inherit;color:inherit;font-weight:700;text-align:left;text-decoration:underline;cursor:pointer}html[data-theme=dark] .today-strip{background:#33301c;border-color:#6b6236;color:#e8dd9a}.tutorial-backdrop{z-index:300}.settings-window-backdrop,.tutorial-backdrop{position:fixed;inset:0;background:rgba(20,26,40,.55);display:flex;align-items:center;justify-content:center;padding:16px}.settings-window-backdrop{z-index:120}.settings-window-card{background:#fff;border:1px solid #cfcfcf;border-radius:8px;width:100%;max-width:430px;max-height:92dvh;overflow-y:auto;padding:14px 18px 16px}.settings-window-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.settings-window-title{font-size:16px;font-weight:700;margin:0;color:#20202c}html[data-theme=dark] .settings-window-title{color:#fff}html[data-theme=dark] .settings-window-card{background:#1b2334;border-color:#3a4358}.tutorial-card{background:#fff;border:1px solid #cfcfcf;border-radius:8px;width:100%;max-width:430px;max-height:92dvh;overflow-y:auto;display:flex;flex-direction:column;padding:14px 18px 16px}.tutorial-head{display:flex;justify-content:space-between;align-items:center}.tutorial-step{color:#888;font-size:13px;font-weight:700}.tutorial-viewport{overflow:hidden}.tutorial-track{display:flex;transition:transform .32s cubic-bezier(.22,.61,.36,1)}.tutorial-page{flex:1 1;min-width:0;padding:6px 2px 0;text-align:center}.tutorial-art img{display:block;width:100%;height:auto;max-height:370px;object-fit:contain;background:#ffffff;border:1px solid #cfcfcf;border-radius:4px}html[data-theme=dark] .tutorial-art img{border-color:#3a4358}.tutorial-title{font-size:18px;font-weight:700;margin:10px 0 8px;color:#222}.tutorial-body{font-size:14.5px;line-height:1.65;color:#444;margin:0;text-align:left}.tutorial-dots{display:flex;justify-content:center;gap:7px;padding:14px 0 12px}.tutorial-dot{width:8px;height:8px;border-radius:999px;background:#d5dbe6}.tutorial-dot.active{background:#2f6db3}.tutorial-nav{display:flex;justify-content:space-between;gap:12px}.tutorial-nav .primary-button,.tutorial-nav .secondary-button{min-width:110px;min-height:44px}html[data-theme=dark] .tutorial-card{background:#1b2334;border-color:#3a4358}html[data-theme=dark] .tutorial-title{color:#e9ebf2}html[data-theme=dark] .tutorial-body{color:#c3ccd9}@media (prefers-reduced-motion:reduce){.tutorial-track{transition:none}}.dev-save-bar{position:-webkit-sticky;position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fff8e1;border-bottom:2px solid #f5a623;padding:10px 4px;margin-bottom:12px}html[data-theme=dark] .dev-save-bar{background:#3a3220}.dev-save-bar-text{font-weight:700}.dev-save-bar-message{font-size:13px}.dev-edit-form-row{list-style:none;padding:4px 0 10px}.attendance-counts .count-text.present{color:#2b7fb8}.attendance-counts .count-text.absent{color:#d64545}.attendance-counts .count-text.late{color:#b58900}.attendance-counts .count-text.cancelled{color:#757575}html[data-theme=dark] .attendance-counts .count-text.present{color:#6cb8e8}html[data-theme=dark] .attendance-counts .count-text.absent{color:#ff8a8a}html[data-theme=dark] .attendance-counts .count-text.late{color:#f0c94d}html[data-theme=dark] .attendance-counts .count-text.cancelled{color:#b0b0b0}.edit-record-backdrop{z-index:60}.edit-record-modal{max-width:340px}.edit-record-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.edit-record-date{font-weight:700;font-size:14px}.edit-record-delete{font-size:12px;color:#c0392b}.edit-record-actions{display:flex;justify-content:center}.edit-record-confirm p{margin:0 0 10px}html[data-theme=dark] .cal-day{color:#ffffff}html[data-theme=dark] .cal-cell.sun .cal-day{color:#ff8a80}html[data-theme=dark] .cal-cell.sat .cal-day{color:#7cc0ff}html[data-theme=dark] .cal-wd{color:#e9ebf2}html[data-theme=dark] .cal-wd.sun{color:#ff8a80}html[data-theme=dark] .cal-wd.sat{color:#7cc0ff}html[data-theme=dark] .cal-ev{color:#c9d2e2}html[data-theme=dark] .cal-ev.holiday{color:#ff8a80}html[data-theme=dark] .cal-ev.substitute{color:#7cc0ff}html[data-theme=dark] .cal-ev.exam,html[data-theme=dark] .cal-ev.examTerm{color:#e8b34b}html[data-theme=dark] .cal-ev.intensive{color:#b79ced}html[data-theme=dark] .cal-list-item.substitute{color:#7cc0ff}html[data-theme=dark] .cal-list-item.holiday{color:#ff8a80}html[data-theme=dark] .cal-list-date{color:#e9ebf2}html[data-theme=dark] .cal-weekdays{background:#232c42;border-color:#3a4358}html[data-theme=dark] .cal-grid{border-color:#3a4358}html[data-theme=dark] .cal-cell,html[data-theme=dark] .cal-cell.empty{border-right-color:#3a4358;border-bottom-color:#3a4358}html[data-theme=dark] .cal-cell.empty{background:#161c2a}html[data-theme=dark] .cal-cell:has(.cal-day.today){background:#274b73}.tt-week-label{margin-left:auto;align-self:center;font-size:14px;font-weight:700;color:#2f6db3}html[data-theme=dark] .tt-week-label{color:#7cc0ff}.edit-record-date-field{margin-bottom:10px}.absence-limit-detail .absence-mode-row{margin-left:10px}.attendance-history-head{display:flex;justify-content:space-between;width:100%;padding:4px 0;margin-top:10px;text-align:left}.attendance-history-head,.cal-title-btn{align-items:center;background:none;border:none;font:inherit;color:inherit;cursor:pointer}.cal-title-btn{display:inline-flex;gap:6px;padding:6px 8px;margin:-6px -8px}.cal-picker-caret{color:#1d4e9e;font-size:11px;line-height:1}.month-picker-backdrop{position:fixed;inset:0;overscroll-behavior:contain;background:rgba(20,20,40,.45);display:flex;align-items:flex-start;justify-content:center;padding:12vh 16px 16px;z-index:150;animation:ui-fade-in .16s ease-out both}.month-picker-card{background:#fff;border:1px solid #cfcfcf;border-radius:12px;width:100%;max-width:340px;padding:16px 18px 14px;box-shadow:0 8px 28px rgba(10,20,40,.25)}html[data-theme=dark] .month-picker-card{background:#1b2334;border-color:#3a4358}.month-picker-wheels{display:flex;gap:10px}.wheel-col{flex:1 1;position:relative;min-width:0}.wheel-list{height:200px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;padding:80px 0;scrollbar-width:none;-webkit-mask-image:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent)}.wheel-list::-webkit-scrollbar{display:none}.wheel-item{display:block;width:100%;height:40px;scroll-snap-align:center;background:none;border:none;font-size:16px;color:#8a8f98;text-align:center;cursor:pointer;white-space:nowrap}.wheel-item.selected{color:inherit;font-size:18px;font-weight:700}.wheel-item.faded,.wheel-item.selected.faded{color:#ccd0d8}html[data-theme=dark] .wheel-item.faded,html[data-theme=dark] .wheel-item.selected.faded{color:#4d566b}.wheel-band{position:absolute;left:0;right:0;top:80px;height:40px;border-top:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf;background:rgba(47,109,179,.06);pointer-events:none}html[data-theme=dark] .wheel-band{border-color:#3a4358}.month-picker-actions{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.detail-field-title.detail-heading{border-left:5px solid #2f6db3;padding-left:8px}.classroom-suggestions-label{font-size:14px;font-weight:700}.grades-data-note-row{margin:0 0 10px}.grades-data-note-btn{background:none;border:none;padding:2px 0;font-size:12px;color:#555;text-decoration:underline;cursor:pointer}html[data-theme=dark] .grades-data-note-btn{color:#a3adc0}.grades-note-text{line-height:1.7;margin:8px 0}.grades-note-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px}.grades-note-stack{width:100%;max-width:520px;display:flex;flex-direction:column;align-items:center}.grades-note-dismiss{display:inline-flex;flex-direction:row;align-items:center;gap:6px;margin-top:10px;font-size:14px;color:#fff;cursor:pointer}.grades-note-dismiss input{width:18px;height:18px;flex:none}