:root{font-family:'Segoe UI','Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;color:#242d3d;background:#fff;font-size:14px;line-height:1.65;--blue:#0f6cbd;--line:#dfe4eb;--muted:#65748a;--pale:#eaf4ff}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,.button{display:inline-flex;gap:9px;align-items:center;justify-content:center;min-height:40px;padding:8px 16px;border:1px solid #cbd4df;border-radius:4px;background:white;color:#243550;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap}button:hover,.button:hover{background:#f0f6fc;border-color:#a4b5c9}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:#095a9f;border-color:#095a9f}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #85b9e4;outline-offset:2px}button svg{flex:none}.topbar{height:56px;background:var(--blue);display:flex;align-items:center;justify-content:space-between;padding:0 28px;color:white;position:relative;z-index:5}.brand{font-size:22px;font-weight:650;letter-spacing:.04em}.preview-label{font-size:12px;opacity:.9}.top-menu{display:none;color:white;background:transparent;border:0;padding:8px}.shell{display:grid;grid-template-columns:200px minmax(0,1fr);min-height:calc(100dvh - 56px)}aside{background:#fbfcfe;border-right:1px solid var(--line);position:relative;padding:24px 5px 150px 0}aside nav{display:grid;gap:8px}aside nav button{justify-content:flex-start;border:0;border-radius:0 4px 4px 0;min-height:48px;margin-right:4px;padding:12px 22px;font-size:15px;gap:14px;background:transparent;position:relative}aside nav button[aria-current]{background:#e7f2fd;color:var(--blue)}aside nav button[aria-current]:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--blue)}.sidebar-note{position:absolute;bottom:24px;left:24px;font-size:12px;line-height:1.9;color:#586a81}.sidebar-note span{font-size:10px}main{padding:30px 32px 44px;min-width:0;max-width:1800px;width:100%}.page-heading h1{font-size:30px;line-height:1.35;letter-spacing:.01em;color:#182a43;margin:0 0 7px;font-weight:650}.page-heading p{margin:0;color:var(--muted);font-size:16px}.commands{display:flex;gap:12px;margin:24px 0}.commands button{min-height:44px}.filters{display:flex;align-items:end;gap:14px;margin:24px 0 20px;flex-wrap:wrap}.filters>label{min-width:190px}.filters .search{width:min(460px,100%);display:flex;align-items:center;border:1px solid #cbd4df;border-radius:4px;padding:0 12px;gap:10px;height:44px;color:var(--muted)}.search input{border:0;min-width:0;padding:8px 0;flex:1;width:100%;background:transparent}.search:focus-within{outline:2px solid #0f6cbd}.search input:focus-visible{outline:none}label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#37475d}input,select,textarea{border:1px solid #bfcbd9;border-radius:4px;min-height:42px;padding:8px 10px;color:#243550;background:#fff;width:100%;font-weight:400}select{padding-right:28px}textarea{resize:vertical;min-height:84px;line-height:1.7}input[type=checkbox]{width:18px;min-height:18px;margin:0}.unit-filter select{height:44px;min-width:235px}.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:5px;max-width:100%;background:white}.schedule{border-collapse:collapse;width:100%;min-width:1030px;table-layout:fixed}.schedule th,.schedule td{border-bottom:1px solid var(--line);border-right:1px solid #e8edf2;text-align:left;vertical-align:middle;padding:12px 7px}.schedule thead th{background:#f4f6f9;color:#27374f;font-weight:600;height:54px;text-align:center}.schedule thead th:first-child,.schedule thead th:nth-child(2){text-align:left;padding-left:15px}.schedule thead th:first-child{width:112px}.schedule thead th:nth-child(2){width:95px}.schedule thead th:nth-child(3){width:86px}.schedule tbody th{background:#fff;padding-left:15px;font-weight:600;height:96px}.schedule tbody td{text-align:center;font-size:13px}.schedule small{display:block;color:var(--muted);font-size:11px;font-weight:400}.schedule tr:last-child>*{border-bottom:0}.schedule tr>*:last-child{border-right:0}.unit-label{background:#f0f3f7;border-radius:3px;color:#566881;font-size:11px;padding:6px 7px;white-space:nowrap}.lesson{border-left:3px solid #1681d4;background:#e8f3fe;text-align:left;padding:8px 6px;margin:4px 0;border-radius:3px;line-height:1.6}.lesson strong{font-weight:600;white-space:nowrap;font-size:11px;display:block;color:#1a3c65;letter-spacing:-.3px}.lesson span{font-size:11px;color:#526881}.no-lesson{color:#93a0b1}.link{padding:0;min-height:32px;background:none;border:0;color:#0f6cbd;font-weight:600}.link:hover{background:none;text-decoration:underline}.table-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:24px}.table-footer p{margin:0;font-size:12px;display:flex;align-items:center;gap:7px}.legend-square{width:20px;height:20px;background:#cce7ff;border-radius:3px;display:inline-block}.muted{color:var(--muted)}.quiet{color:var(--muted);border-color:transparent}.section-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:22px}.section-toolbar p{margin:0}.section-toolbar label{width:190px}.report-list{border-top:1px solid var(--line)}.report-row{display:flex;align-items:center;gap:22px;padding:25px 0;border-bottom:1px solid var(--line)}.pdf-mark{background:#fff0ef;color:#a4262c;border:1px solid #f0cdca;border-radius:5px;font-size:14px;font-weight:700;width:54px;height:68px;display:grid;place-content:center}.report-row h2{font-size:18px;margin:0}.report-row h2 small{font-size:12px;margin-left:12px;color:var(--muted);font-weight:400}.report-row p{margin:2px 0}.report-row .muted{font-size:12px}.grow{flex:1;min-width:0;overflow-wrap:anywhere}.actions{display:flex;gap:8px;flex-wrap:wrap}.list-table{width:100%;border-collapse:collapse;min-width:680px}.list-table td,.list-table th{text-align:left;padding:14px 16px;border-bottom:1px solid var(--line)}.list-table thead{background:#f4f6f9}.list-table tr:last-child>*{border-bottom:0}.empty{text-align:center;padding:60px 20px;color:var(--muted)}.empty strong{font-weight:500;color:#526078}.empty p{font-size:13px;margin:8px 0}.record-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 22px;gap:20px}.record-heading h2{margin:0;font-size:20px}.record-heading h2 span{font-size:13px;font-weight:400;margin-left:14px}.record-heading p{margin:4px 0;color:var(--muted)}.learning-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.surface{border:1px solid var(--line);border-radius:5px;padding:22px;min-width:0}.surface-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.surface h2{font-size:18px;margin:0}.surface form{display:grid;gap:18px}.surface-heading button{font-size:12px;min-height:34px;padding:6px 10px}.saved{font-size:11px;color:#17704d}.form-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.form-bottom span{font-size:11px;max-width:160px}.score-list article{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid var(--line)}.score-list h3{margin:0;font-size:15px}.score-list p{margin:3px 0;font-size:12px;color:var(--muted)}.score{display:grid;text-align:right;min-width:92px}.score strong{font-size:21px}.score small{font-size:12px;font-weight:400}.score span{font-size:12px;color:var(--muted)}.score button{justify-self:end;font-size:12px}.chart{width:100%;height:auto;display:block;max-height:220px}.chart text{font-size:10px;fill:#65748a}.chart-area h3{font-size:13px;margin:0}.chart-area p{font-size:10px;margin:2px 0 6px}.chart-legend{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px}.chart-legend span{font-size:11px}.chart-legend span:before{content:'';background:var(--series);width:8px;height:8px;display:inline-block;margin-right:5px;border-radius:50%}dialog{border:0;padding:0;border-radius:7px;box-shadow:0 18px 60px #12233d33;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);color:#243550}dialog::backdrop{background:#162b4666}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.dialog-header h2{font-size:19px;margin:0}.close{border:0;font-size:24px;padding:0;width:34px;min-height:34px;color:#65748a}.dialog-body{padding:24px}.dialog-footer{padding:16px 24px;border-top:1px solid var(--line);display:flex;justify-content:end;gap:10px}.dialog-body form{display:grid;gap:18px}.dialog-body p{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-section{margin:6px 0 -12px;font-size:16px}.days-form{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.days-form textarea{font-size:12px;padding:8px;min-height:66px}.days-form label{font-size:12px}.form-actions{display:flex;justify-content:end;gap:10px;padding-top:14px;border-top:1px solid var(--line)}.check{display:flex;align-items:center;gap:10px}.error{font-size:13px;color:#a4262c;min-height:0}.error:empty{display:none}.error-box{background:#fff3f1;color:#9c2b26;padding:18px;border-radius:4px}.error-box h3{margin:0}.error-box ul{padding-left:20px}.import-preview article{padding:16px 0;border-top:1px solid var(--line)}.import-preview p{font-size:12px;color:var(--muted);margin-top:5px}.tag{display:inline-block;font-size:10px;color:#0f6cbd;background:#e8f3fe;padding:2px 6px;margin-left:8px;border-radius:3px}.upload-zone{padding:25px;background:#f6faff;border:1px dashed #8aafd1;border-radius:5px;justify-items:center;text-align:center;gap:7px}.upload-zone svg{color:#0f6cbd;width:28px;height:28px}.upload-zone span{font-size:11px;font-weight:400;color:var(--muted)}.upload-zone input{border:0;background:none;max-width:100%;font-size:12px}.pdf-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.pdf-preview{width:100%;height:55vh;border:1px solid var(--line);background:#f5f7fa}.manual{max-width:960px;line-height:1.9;font-size:15px}.manual-intro{font-size:16px;color:var(--muted);max-width:740px}.manual-toc{display:flex;gap:10px 22px;flex-wrap:wrap;padding:20px 0;border-bottom:1px solid var(--line)}.manual a{color:var(--blue)}.manual h2{font-size:21px;margin:38px 0 16px}.manual h3{font-size:16px;margin:24px 0 12px}.manual li{padding-left:5px;margin:7px 0}.manual code{background:#eef5fc;padding:3px 6px}.manual table{width:100%;border-collapse:collapse;font-size:13px}.manual td,.manual th{padding:12px;border:1px solid var(--line);text-align:left}.manual th{background:#f3f7fb}.entry{min-height:100dvh;max-width:none;background:#f4f7fb;display:grid;place-items:center;padding:25px}.entry-panel{background:white;border:1px solid #dce5ef;border-radius:8px;width:min(410px,100%);padding:36px 36px 24px;box-shadow:0 10px 35px #1935510a}.entry-icon{width:44px;height:44px;display:grid;place-content:center;background:#e8f3fe;border-radius:6px;color:var(--blue)}.entry-icon svg{width:26px;height:26px}.entry h1{font-size:26px;margin:18px 0 14px}.entry p{font-size:15px;color:var(--muted)}.entry form{display:grid;gap:16px;margin:24px 0}.entry input{font-size:24px;letter-spacing:.5em;min-height:52px}.entry form button{min-height:46px}.entry-contact{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.entry-contact strong{color:#263b56;font-size:18px}.entry small{font-size:11px;color:var(--muted)}.access-note{display:block;text-align:center}.entry .error{font-size:12px;color:#a4262c;margin:0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#233e5c;color:#fff;border-radius:5px;box-shadow:0 4px 22px #0002;padding:12px 22px;font-size:13px;z-index:100;max-width:calc(100% - 32px);width:max-content;pointer-events:none}#toast:empty{display:none}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.loading{padding:36px;color:var(--muted)}
@media(min-width:1600px){.lesson strong{font-size:13px}.lesson span{font-size:12px}.schedule tbody th{height:110px}}
@media(max-width:1100px){main{padding:28px 24px}.shell{grid-template-columns:180px minmax(0,1fr)}aside nav button{padding-left:18px;font-size:14px}.learning-grid{grid-template-columns:1fr}.report-row{flex-wrap:wrap}.report-row .actions{margin-left:76px}.table-footer{align-items:flex-start}.table-footer p{max-width:300px;flex-wrap:wrap}.days-form{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.topbar{padding:0 18px;height:54px}.brand{font-size:19px}.preview-label{margin-left:auto;margin-right:14px;font-size:10px}.top-menu{display:flex}.shell{display:block;min-height:calc(100dvh - 54px)}aside{display:none}aside.open{display:block;position:absolute;top:54px;left:0;width:240px;bottom:0;z-index:4;box-shadow:15px 0 40px #172f4720;padding-top:18px}main{padding:24px 16px 32px}.page-heading h1{font-size:25px}.page-heading p{font-size:13px;line-height:1.8}.commands{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}.commands .primary{grid-row:1;grid-column:1/-1}.commands button{font-size:11px;padding:10px 6px;gap:5px}.commands button svg{width:16px}.filters{gap:10px;margin:18px 0}.filters>label{min-width:0;flex:1}.filters .search{width:100%;flex:1 1 100%;height:42px}.filters .unit-filter{flex:1 1 100%}.unit-filter select{min-width:0;width:100%;height:42px}.schedule{min-width:980px}.schedule th:first-child{position:sticky;left:0;z-index:1;border-right:1px solid #d5dfeb;box-shadow:3px 0 5px #183b5a08}.schedule thead th:first-child{z-index:2;background:#f4f6f9}.schedule tbody th{height:91px}.table-footer{display:block;margin-top:20px}.table-footer p{font-size:10px;max-width:none;gap:5px;margin-bottom:18px}.table-footer>button{width:100%;min-height:44px}.legend-square{width:15px;height:15px}.section-toolbar{align-items:stretch;flex-wrap:wrap}.section-toolbar label{flex:1}.section-toolbar button{font-size:12px}.report-row{gap:12px;padding:20px 0}.report-row .actions{margin-left:0;width:100%}.report-row .actions button{flex:1;font-size:11px;padding:8px}.report-row h2{font-size:16px}.report-row h2 small{margin-left:7px}.pdf-mark{width:42px;height:56px;font-size:12px}.record-heading{align-items:flex-start;flex-direction:column;margin-top:22px}.record-heading h2 span{display:block;margin:5px 0 0}.record-heading label{width:100%}.surface{padding:17px}.surface-heading{align-items:flex-start}.surface h2{font-size:16px}.form-bottom{align-items:flex-end}.form-grid{grid-template-columns:1fr}.days-form{grid-template-columns:1fr 1fr}.dialog-body{padding:18px}.dialog-header{padding:16px 18px}.dialog-header h2{font-size:17px}.dialog-footer{padding:14px 18px}.manual{font-size:14px}.manual h2{font-size:19px}.manual-toc{display:grid;gap:7px}.manual table{font-size:11px}.manual td,.manual th{padding:8px}.entry-panel{padding:30px 26px 22px}.entry{padding:18px}.list-table{min-width:650px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media print{.topbar,aside,.commands,.filters,button,#toast{display:none!important}.shell{display:block}main{padding:0}.table-scroll{overflow:visible}.schedule{min-width:0;font-size:10px}body{color:black}.table-footer{display:none}@page{size:A4 landscape;margin:10mm}}

@media(min-width:1101px){.lesson strong{font-size:13px}.lesson span{font-size:12px}.lesson{padding:10px 8px}.page-heading h1{font-size:32px}}

.pdf-preview{height:auto;max-height:62vh;overflow:auto;padding:12px}.pdf-toolbar{display:flex;align-items:center;justify-content:center;gap:15px;padding:5px 0 13px;position:sticky;top:-12px;background:#f5f7fa;z-index:1}.pdf-toolbar button{min-height:32px;padding:4px 12px;font-size:12px}.pdf-toolbar span{font-size:12px}.pdf-canvas-wrap{display:flex;justify-content:center}.pdf-canvas-wrap canvas{background:white;max-width:100%;box-shadow:0 1px 5px #0002}

/* Keep the weekly grid readable with multiple tutors and at tablet widths. */
.page-heading{display:block}
.commands{flex-wrap:wrap}
.sidebar-note{right:20px;overflow-wrap:anywhere}
.schedule th,.schedule td{overflow-wrap:anywhere}
.schedule thead th:first-child{width:136px}
.schedule thead th:nth-child(2){width:164px}
.schedule thead th:nth-child(3){width:86px}
.schedule{min-width:1160px}
.lesson span{display:block;overflow-wrap:anywhere}
@media(max-width:700px){.schedule{min-width:1060px}.schedule thead th:first-child{width:112px}.schedule thead th:nth-child(2){width:144px}.schedule thead th:nth-child(3){width:84px}}

.schedule tbody th .link{display:block;white-space:normal;text-align:left;max-width:100%;overflow-wrap:anywhere}

.filters .child-filter{flex:0 1 280px;min-width:190px;max-width:100%}.child-filter select{min-width:0;max-width:100%;height:44px}@media(max-width:700px){.filters .child-filter{flex:1 1 100%;min-width:0}}

.week-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem;margin:1rem 0}.day-card{min-width:0;border:1px solid #cadad7;border-radius:12px;background:white;overflow:hidden}.day-card h2{font-size:1.1rem;background:#e6f2ef;color:#20564d;padding:.75rem 1rem;margin:0}.slot{padding:.8rem 1rem}.slot+.slot{border-top:1px solid #d8e3e0}.slot h3{font-size:1rem;margin:0;display:flex;gap:.5rem;align-items:center;font-variant-numeric:tabular-nums}.slot small{font-weight:normal;color:#47605b}.slot ul{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;margin:.5rem 0 0;padding:0}.slot button.link{padding:.35rem .55rem;background:#f2f6f5;border-radius:6px}.week-detail summary{cursor:pointer;font-weight:600;padding:.8rem 0}
