@font-face{font-family:Pretendard;src:local(Pretendard Variable),local(Pretendard);font-display:swap}:root{color:#111827;font-synthesis:none;background:#eef4ff;font-family:Pretendard,Malgun Gothic,Apple SD Gothic Neo,sans-serif}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}button,select{font:inherit}button{color:inherit;cursor:pointer}.web-home{background:linear-gradient(145deg,#eff6ff 0%,#f8fafc 50%,#eef2ff 100%);place-items:center;min-height:100vh;padding:28px;display:grid}.web-home-card{background:#fffffff7;border:2px solid #1e3a8a;border-radius:26px;grid-template-rows:1fr auto auto;grid-template-columns:250px minmax(0,1fr);align-items:center;gap:24px 34px;width:min(920px,100%);min-height:560px;padding:56px 64px 40px;display:grid;position:relative;box-shadow:0 28px 80px #1e3a8a2b}.web-version{color:#1e3a8a;background:#eff6ff;border:2px solid #1e3a8a;border-radius:999px;padding:5px 11px;font-size:14px;font-weight:900;position:absolute;top:18px;right:20px}.web-logo{object-fit:contain;width:250px;height:250px}.web-title{text-align:center}.web-title p{color:#172554;white-space:nowrap;margin:0 0 14px;font-size:clamp(20px,3vw,34px);font-weight:900}.web-title h1{background:linear-gradient(135deg,#172554,#1e3a8a);border:3px solid #1e3a8a;border-radius:22px;margin:0;padding:12px 25px 16px;font-size:clamp(52px,8vw,82px);font-style:normal;line-height:1;display:inline-flex;box-shadow:0 10px 25px #1e3a8a47}.web-title h1 span{color:#fff}.web-title h1 em{color:#fde047;font-style:normal}.open-viewer-button{background:linear-gradient(135deg,#eff6ff,#dbeafe,#ecfeff);border:2px solid #111827;border-radius:20px;flex-direction:column;grid-column:1/-1;justify-content:center;align-items:center;min-height:116px;transition:transform .13s,background .13s,box-shadow .13s;display:flex;box-shadow:0 8px 22px #2563eb21}.open-viewer-button:hover{background:linear-gradient(135deg,#dbeafe,#bfdbfe,#cffafe);transform:translateY(-2px);box-shadow:0 12px 28px #2563eb38}.open-viewer-button span{font-size:31px;font-weight:950}.open-viewer-button small{color:#475569;margin-top:7px;font-size:16px;font-weight:800}.web-readonly-note{color:#64748b;text-align:center;grid-column:1/-1;margin:0;font-size:15px;font-weight:800}.viewer-shell{background:#eef4ff;min-height:100vh;padding:18px}.viewer-header{background:#fff;border:2px solid #1e3a8a;border-radius:16px;align-items:center;gap:14px;max-width:1800px;margin:0 auto 12px;padding:10px 14px;display:flex;position:relative;box-shadow:0 7px 20px #1e3a8a1a}.brand-button{text-align:left;background:0 0;border:0;align-items:center;gap:10px;padding:0;display:flex}.brand-button img{object-fit:contain;width:58px;height:58px}.brand-button span{flex-direction:column;display:flex}.brand-button strong{color:#172554;font-size:26px;font-weight:950}.brand-button small{color:#64748b;font-size:13px;font-weight:800}.print-brand{display:none}.header-actions{gap:7px;margin-left:auto;display:flex}.header-actions button,.view-tabs button,.selector-bar button,.load-state button{background:#fff;border:2px solid #111827;border-radius:9px;font-weight:900;transition:transform .11s,background .11s,box-shadow .11s}.header-actions button:hover,.view-tabs button:hover,.selector-bar button:hover,.load-state button:hover{background:#dbeafe;transform:translateY(-1px);box-shadow:0 4px 10px #1e40af29}.header-actions button{padding:9px 13px}.view-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:1800px;margin:0 auto 10px;display:grid}.view-tabs button{padding:12px;font-size:17px}.view-tabs button.active{color:#172554;background:#bfdbfe}.view-tabs small{color:#64748b}.selector-bar{background:#fff;border:1px solid #94a3b8;border-radius:12px;align-items:center;gap:7px;max-width:1800px;margin:0 auto 10px;padding:9px;display:flex}.selector-bar button{background:var(--selector-color,#fff);min-width:90px;padding:8px 12px}.selector-bar button.active{outline-offset:-3px;outline:3px solid #2563eb}.teacher-selector label{font-weight:900}.teacher-selector select{background:#fff;border:2px solid #111827;border-radius:9px;min-width:210px;padding:9px 12px;font-weight:900}.class-selector{grid-template-columns:1fr;display:grid}.class-selector-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;display:grid}.class-selector button{width:100%;min-width:0;padding-top:7px;padding-bottom:7px}.whole-timetable-card,.single-timetable-card{background:#fff;border:2px solid #111827;border-radius:14px;max-width:1800px;margin:0 auto;padding:12px;box-shadow:0 8px 24px #0f172a14}.section-title-row{justify-content:center;align-items:center;gap:12px;margin-bottom:10px;display:flex}.section-title-row h2{margin:0;font-size:24px}.section-title-row span{color:#475569;background:#e2e8f0;border-radius:999px;padding:4px 9px;font-size:13px;font-weight:900}.middle-school-hours{color:#16a34a;margin-left:5px;font-style:normal;font-weight:950}.table-scroll{overscroll-behavior:contain;border:2px solid #111827;border-radius:10px;overflow:auto}table{border-collapse:collapse;border-spacing:0;table-layout:fixed;width:100%}th,td{text-align:center;border-bottom:1px solid #111827;border-right:1px solid #111827;padding:0}tr:last-child>*{border-bottom:0}tr>:last-child{border-right:0}thead th{z-index:3;background:var(--grade-color,#e2e8f0);height:42px;font-size:15px;font-weight:950;position:sticky;top:0}thead tr>th{border-bottom:2px solid #111827!important}tbody th{background:#f8fafc;font-size:16px;font-weight:950}.period-heading{border-right:2px solid #111827!important}.whole-timetable{min-width:0}.whole-timetable thead th:first-child{width:clamp(20px,3.2vw,48px)}.whole-timetable thead th:nth-child(2){width:clamp(22px,3.4vw,50px)}.whole-timetable thead th:nth-child(2),.single-timetable thead th:first-child{border-right:2px solid #111827!important}.whole-timetable tbody tr{height:66px}.whole-timetable tbody th:first-child{border-right-width:2px}.whole-timetable thead th,.whole-timetable tbody th{font-size:clamp(7px,1vw,15px)}.whole-timetable .lesson{padding:clamp(0px,.25vw,4px)}.whole-timetable .lesson strong{font-size:clamp(7px,1.05vw,15px)}.whole-timetable .lesson span{font-size:clamp(6px,.85vw,12px)}.single-timetable-card{width:100%}.single-timetable-card .table-scroll{overflow-x:auto}.single-timetable{min-width:0}.single-timetable thead th{font-size:clamp(11px,1.25vw,15px)}.single-timetable thead th:first-child{width:clamp(42px,7vw,72px)}.single-timetable tbody tr{height:86px}.class-timetable-card .single-timetable tbody tr{height:65px}.teacher-timetable-card .single-timetable tbody tr{height:61px}.lesson{background:var(--lesson-color);flex-direction:column;justify-content:center;align-items:center;gap:2px;height:100%;min-height:64px;padding:4px;display:flex}.single-timetable .lesson{min-height:84px;padding:clamp(1px,.4vw,4px)}.class-timetable-card .single-timetable .lesson{min-height:63px}.teacher-timetable-card .single-timetable .lesson{min-height:59px}.middle-school-cell{background:#dcfce7}.teacher-timetable-card .single-timetable .middle-school-lesson{color:#166534;background:#dcfce7}.lesson strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:16px;font-weight:950;overflow:hidden}.lesson span{color:#475569;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:13px;font-weight:800;overflow:hidden}.single-timetable .lesson strong{font-size:clamp(11px,1.45vw,16px)}.single-timetable .lesson span{font-size:clamp(9px,1.1vw,13px)}.free-period{background:#e5e7eb}.empty-cell{background:#fff;min-height:62px;display:block}.single-timetable .empty-cell{min-height:84px}.class-timetable-card .single-timetable .empty-cell{min-height:63px}.teacher-timetable-card .single-timetable .empty-cell{min-height:59px}footer{color:#64748b;text-align:center;max-width:1800px;margin:9px auto 0;font-size:12px;font-weight:700}.load-state{text-align:center;place-content:center;gap:10px;min-height:100vh;padding:30px;display:grid}.load-state button{justify-self:center;padding:9px 14px}.error-state h1{margin:0}@media (max-width:760px){.web-home{place-items:start center;padding:0 10px 10px}.web-home-card{grid-template-rows:auto auto auto auto;grid-template-columns:1fr;min-height:0;padding:48px 20px 22px}.web-logo{justify-self:center;width:160px;height:160px}.web-title p{white-space:normal;font-size:19px}.web-title h1{font-size:56px}.viewer-shell{padding:8px}.viewer-header{flex-wrap:wrap}.header-actions{width:100%}.header-actions button{flex:1}.view-tabs button{padding:9px 4px;font-size:14px}.grade-selector{grid-template-columns:repeat(2,1fr);display:grid}.selector-bar button{min-width:0}.single-timetable-card{padding:6px}.whole-timetable tbody tr,.single-timetable tbody tr{height:auto}.whole-timetable .lesson,.single-timetable .lesson{gap:0;min-height:0;padding:2px 0;line-height:1.2}.whole-timetable .empty-cell,.single-timetable .empty-cell{min-height:1.8em}.whole-timetable .lesson strong{font-size:clamp(5px,1.9vw,8px)}.whole-timetable .lesson span{font-size:clamp(5px,1.55vw,7px)}.single-timetable .lesson strong{font-size:clamp(11px,4vw,16px)}.single-timetable .lesson span{font-size:clamp(9px,3.2vw,13px)}.single-timetable tbody th{font-size:13px}.single-timetable tr>:not(:last-child){border-right:2px solid #111827}}@media print{@page{size:A4 landscape;margin:10mm}:root,body,#root,.viewer-shell{background:#fff}.viewer-shell{padding:0}.viewer-header,.header-actions,.view-tabs,.selector-bar,footer{display:none!important}.section-title-row{justify-content:flex-start;gap:8px;margin-bottom:3mm}.print-brand{border-right:1px solid #64748b;align-items:center;gap:5px;padding-right:8px;display:inline-flex}.print-brand img{object-fit:contain;width:28px;height:28px}.print-brand strong{color:#172554;font-size:17px;font-weight:950}.whole-timetable-card,.single-timetable-card{max-width:none;box-shadow:none;border:0;padding:0}.table-scroll{overflow:visible}.whole-timetable,.single-timetable{min-width:0}thead th{position:static}.whole-timetable tbody tr{height:21px}.single-timetable tbody tr{height:27mm!important}.lesson,.single-timetable .lesson{padding:1px;min-height:0!important}.lesson,thead th{-webkit-print-color-adjust:exact!important;-moz-print-color-adjust:exact!important;print-color-adjust:exact!important}.empty-cell,.single-timetable .empty-cell{min-height:0!important}.lesson strong{font-size:8px}.lesson span{font-size:7px}.single-timetable .lesson strong{font-size:15px}.single-timetable .lesson span{font-size:12px}}
