*{box-sizing:border-box}:root{--color-bg: #f4f6f8;--color-surface: #ffffff;--color-border: #d9dfe4;--color-text: #1f2937;--color-text-muted: #6b7280;--color-primary: #1d4ed8;--color-primary-dark: #1e40af;--color-danger: #dc2626;--color-success: #16a34a;--radius: 8px}html,body,#root{height:100%}body{margin:0;font-family:Sarabun,Segoe UI,sans-serif;background:var(--color-bg);color:var(--color-text)}h1,h2,h3{margin:0 0 12px}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}.login-card{background:var(--color-surface);border-radius:var(--radius);box-shadow:0 4px 24px #00000014;padding:32px;width:100%;max-width:380px;display:flex;flex-direction:column;gap:14px}.login-card h1{font-size:1.3rem;text-align:center}.login-subtitle{text-align:center;color:var(--color-text-muted);margin:-8px 0 8px}.login-card label{display:flex;flex-direction:column;gap:4px;font-size:.9rem;color:var(--color-text-muted)}input,select,button{font-family:inherit;font-size:.95rem}input,select{padding:8px 10px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface);color:var(--color-text)}input.wide,select.wide{min-width:220px}.btn{padding:8px 16px;border-radius:6px;border:1px solid transparent;cursor:pointer;font-weight:500}.btn-primary{background:var(--color-primary);color:#fff}.btn-primary:hover{background:var(--color-primary-dark)}.btn-primary:disabled{opacity:.6;cursor:default}.btn-ghost{background:transparent;border-color:var(--color-border);color:var(--color-text)}.btn-ghost:hover{background:#f0f2f5}.btn-danger{background:transparent;border-color:var(--color-danger);color:var(--color-danger)}.btn-danger:hover{background:#fef2f2}.form-error{color:var(--color-danger);font-size:.9rem}.form-success{color:var(--color-success);font-size:.9rem}.section-hint{color:var(--color-text-muted);margin:-6px 0 16px;font-size:.9rem}.empty-state{color:var(--color-text-muted);padding:24px 0}.inline-form{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:16px;margin-bottom:20px}.inline-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--color-text-muted)}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{display:flex;justify-content:space-between;align-items:center;background:var(--color-surface);border-bottom:1px solid var(--color-border);padding:14px 24px}.app-title-main{display:block;font-weight:700;font-size:1.1rem}.app-title-sub{display:block;font-size:.8rem;color:var(--color-text-muted)}.app-header-user{display:flex;align-items:center;gap:16px}.app-user-name{font-weight:600;font-size:.9rem;text-align:right}.app-user-role{font-size:.8rem;color:var(--color-text-muted);text-align:right}.app-body{flex:1;display:flex}.app-nav{width:220px;background:var(--color-surface);border-right:1px solid var(--color-border);padding:16px 0;display:flex;flex-direction:column}.app-nav-link{padding:10px 24px;color:var(--color-text);text-decoration:none;font-size:.92rem;border-left:3px solid transparent}.app-nav-link:hover{background:#f0f2f5}.app-nav-link.active{border-left-color:var(--color-primary);background:#eef2ff;color:var(--color-primary-dark);font-weight:600}.app-content{flex:1;padding:24px;max-width:1100px}.page-loading{padding:40px;text-align:center;color:var(--color-text-muted)}.study-plan-category{margin-bottom:24px}.category-heading{font-size:1rem;color:var(--color-primary-dark);margin:0 0 8px}.major-section{margin-bottom:28px;padding-bottom:4px;border-bottom:1px solid var(--color-border)}.major-heading{font-size:1.1rem;margin:0 0 12px}.year-section{margin-bottom:16px}.year-heading{font-size:.9rem;font-weight:600;color:var(--color-text-muted);margin:0 0 6px}.data-table{width:100%;border-collapse:collapse;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);overflow:hidden}.data-table th,.data-table td{padding:10px 12px;border-bottom:1px solid var(--color-border);text-align:center;font-size:.9rem}.data-table td.cell-left,.data-table th.cell-left{text-align:left}.data-table th{background:#f8f9fb;font-weight:600}.data-table tbody tr:last-child td{border-bottom:none}.student-register-table td:first-child,.student-register-table td:nth-child(2),.student-register-table td:last-child,.student-register-table .badge,.student-register-table .btn{white-space:nowrap}.row-actions{display:flex;gap:8px;justify-content:center}.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.78rem;font-weight:600}.badge-active{background:#dcfce7;color:#166534}.badge-inactive{background:#f3f4f6;color:#6b7280}.badge-danger{background:#fee2e2;color:#991b1b}.badge-locked{background:#fef3c7;color:#92400e;display:inline-flex;align-items:center;padding:8px 12px;border-radius:6px;font-size:.85rem;font-weight:600;align-self:flex-end}.missing-subject-list{margin:4px 0;padding-left:20px;font-size:.85rem;color:var(--color-text-muted)}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:24px}.stat-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:18px}.stat-value{font-size:1.8rem;font-weight:700;color:var(--color-primary-dark)}.stat-label{color:var(--color-text-muted);font-size:.85rem;margin-top:4px}.hint-box{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:18px 24px;max-width:560px}.hint-box ol{margin:0;padding-left:20px;color:var(--color-text-muted)}.hint-box li{margin-bottom:4px}.report-wrap{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:20px}.report-header{text-align:center;margin-bottom:16px}.report-header h2{margin-bottom:4px}.report-header p{margin:0;color:var(--color-text-muted)}.report-table{width:100%;border-collapse:collapse}.report-table th,.report-table td{border:1px solid var(--color-border);padding:8px 10px;text-align:center;font-size:.9rem}.report-table td.cell-left{text-align:left}.report-table th{background:#f8f9fb;font-weight:600}.report-table td.teacher-cell{font-weight:600;vertical-align:middle;background:#fbfbfc}.report-table tr.total-row{font-weight:700;background:#f3f4f6}.drag-handle{width:32px;cursor:grab;color:var(--color-text-muted);-webkit-user-select:none;user-select:none}tr.dragging{opacity:.4}.signature-blank{display:inline-block;min-width:160px;border-bottom:1px solid var(--color-text)}.tt-personal{width:100%;border-collapse:collapse;background:var(--color-surface);border:1px solid var(--color-border);margin-bottom:14px;font-size:.82rem;break-inside:avoid}.tt-personal th,.tt-personal td{border:1px solid var(--color-border);padding:3px 6px;text-align:center;vertical-align:middle}.tt-personal th{background:#f8f9fb;font-weight:600}.tt-personal td.cell-left{text-align:left}.tt-personal th:nth-child(1){width:4.35%}.tt-personal th:nth-child(2){width:10.87%}.tt-personal th:nth-child(3){width:28.26%}.tt-personal th:nth-child(4){width:17.39%}.tt-personal th:nth-child(5){width:8.7%}.tt-personal th:nth-child(6){width:30.43%}.tt-personal-sig{line-height:1.5}.tt-personal-sig-name{font-weight:600}.tt-personal-sig-role{color:var(--color-text-muted)}.timetable-scroll{overflow-x:auto;margin-bottom:24px}.timetable-grid{width:100%;min-width:900px;border-collapse:collapse;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius)}.timetable-grid th,.timetable-grid td{border:1px solid var(--color-border);padding:4px;text-align:center;font-size:.8rem;vertical-align:top}.timetable-grid thead th{background:#f8f9fb;font-weight:600;vertical-align:middle}.tt-day-head{background:#f8f9fb;font-weight:600;white-space:nowrap;vertical-align:middle!important;width:92px}.tt-period-no{font-weight:600}.tt-period-time{font-size:.72rem;color:var(--color-text-muted);font-weight:400}.tt-lunch-col{background:#fef3c7;width:26px;padding:2px!important}.tt-lunch-text{writing-mode:vertical-rl;font-size:.7rem;color:#92400e;white-space:nowrap}.tt-cell{height:62px;min-width:96px}.tt-cell-clickable{cursor:pointer}.tt-cell-clickable:hover{background:#eff6ff}.tt-cell-plus{color:#c7ccd6;font-size:1.1rem;line-height:54px}.tt-cell-blocked{background:repeating-linear-gradient(45deg,#fef2f2,#fef2f2 6px,#fee2e2 6px,#fee2e2 12px);cursor:not-allowed}.tt-cell-x{color:#dc2626;font-size:1.15rem;font-weight:700;line-height:54px}.tt-legend{display:flex;flex-wrap:wrap;gap:16px;align-items:center;font-size:.8rem;color:var(--color-text-muted);margin:0 0 8px}.tt-legend-x{color:#dc2626;font-weight:700}.block-calendar{background:#f8fafc;border:1px solid var(--color-border);border-left:3px solid #0ea5e9;border-radius:var(--radius);padding:10px 12px;margin-bottom:16px}.block-calendar-readonly{font-size:.86rem}.block-grid{min-width:1100px}.block-cell{height:70px;min-width:72px}.block-day-date{font-size:.74rem;font-weight:600;color:#0369a1}.week-picker{display:flex;flex-wrap:wrap;align-items:stretch;gap:4px;margin-bottom:8px}.week-picker-label{align-self:center;font-size:.84rem;color:var(--color-text-muted);margin-right:4px}.week-chip{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:58px;padding:4px 6px;border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface);cursor:pointer;line-height:1.1}.week-chip:hover{background:#eff6ff}.week-chip-no{font-weight:600;font-size:.86rem}.week-chip-range{font-size:.62rem;color:var(--color-text-muted);white-space:nowrap}.week-chip-count{font-size:.62rem;font-weight:600;color:#166534}.week-chip-filled{border-color:#86efac;background:#f0fdf4}.week-chip-beyond{opacity:.55}.week-chip-active{border-color:var(--color-primary, #2563eb);background:#dbeafe;box-shadow:inset 0 0 0 1px var(--color-primary, #2563eb)}.block-week-caption{font-size:.84rem;color:var(--color-text-muted);margin:0 0 10px}.block-cell-off{background:repeating-linear-gradient(45deg,#f8fafc,#f8fafc 7px,#eef2f6 7px,#eef2f6 14px);cursor:default}.block-cell-off-text{color:var(--color-text-muted);font-size:.72rem}.block-row-holiday .tt-day-head{background:#fef2f2;color:#b91c1c}.block-holiday-tag{font-size:.68rem;font-weight:400;color:#b91c1c}.block-day-note{font-size:.66rem;font-weight:400;color:var(--color-text-muted)}.tt-weeks-input{width:72px;text-align:center}.rules-table td{vertical-align:middle}.rules-table tr.rule-off td{color:var(--color-text-muted)}.rule-hint{font-size:.78rem;color:var(--color-text-muted);margin-top:2px}.rule-stack{display:flex;flex-direction:column;gap:6px}.rule-sublabel{display:inline-block;min-width:34px;font-size:.78rem;color:var(--color-text-muted)}.chip-row{display:inline-flex;flex-wrap:wrap;gap:4px;vertical-align:middle}.chip{min-width:30px;padding:3px 8px;border:1px solid var(--color-border);background:var(--color-surface);border-radius:6px;font-size:.8rem;font-family:inherit;cursor:pointer}.chip:disabled{opacity:.45;cursor:not-allowed}.chip-on{background:var(--color-primary);border-color:var(--color-primary);color:#fff;font-weight:600}.badge-locked-inline{background:#e0e7ff;color:#3730a3;display:inline-block;padding:2px 10px;border-radius:999px;font-size:.78rem;font-weight:600}.rules-notes{width:100%;padding:10px 12px;border:1px solid var(--color-border);border-radius:var(--radius);font-family:inherit;font-size:.9rem;margin-bottom:16px}.tt-cell-clickable:hover .tt-cell-plus{color:var(--color-primary)}.tt-entry{background:#eef2ff;border:1px solid #c7d2fe;border-radius:4px;padding:3px 4px;margin-bottom:2px;text-align:left;line-height:1.25}.tt-entry-clickable{cursor:pointer}.tt-entry-clickable:hover{background:#e0e7ff;border-color:#a5b4fc}.tt-entry-locked{background:var(--color-surface-muted, #f3f4f6);border-color:#d1d5db;border-style:dashed;color:var(--color-text-muted);cursor:not-allowed}.tt-entry-lock{font-size:.66rem;color:var(--color-text-muted)}.tt-entry-arrow{display:none}.tt-entry-subject{font-weight:600;font-size:.76rem}.tt-entry-meta{font-size:.7rem;color:var(--color-text-muted)}.tt-entry-room{font-size:.7rem;color:#166534}.tt-entry-scope{font-size:.68rem;color:#6d28d9}.tt-entry-scope-single{color:#b45309}.badge-combined{background:#ede9fe;color:#5b21b6;display:inline-block;padding:1px 8px;border-radius:999px;font-size:.72rem;font-weight:600}.tt-combined-note{font-size:.75rem;color:var(--color-text-muted);margin-top:2px}.tt-combined-bar{border-left:3px solid #7c3aed;align-items:center}.tt-combined-info{font-size:.85rem;flex:1 1 320px}.tt-subject-table tbody tr{cursor:pointer}.tt-subject-table tbody tr:hover{background:#f8fafc}.tt-row-selected,.tt-subject-table tbody tr.tt-row-selected:hover{background:#eff6ff}.tt-room-pick{width:100%;max-width:180px;padding:3px 6px;font-size:.82rem}.tt-row-locked{cursor:not-allowed;color:var(--color-text-muted)}.tt-hint{margin-top:8px}.tt-print-header{display:none}.login-note{margin-top:12px;text-align:center}@media print{.app-header,.app-nav,.inline-form{display:none!important}.app-content{max-width:none;padding:0}body{background:#fff}.app-content>div>h2{display:none}.tt-print-header{display:block}.timetable-scroll{overflow-x:visible}.timetable-grid{min-width:0}.tt-cell{height:auto}.tt-entry{background:#fff}.tt-print-header h2{font-size:var(--sheet-title);margin:0 0 2px}.tt-print-header p{font-size:var(--sheet-subtitle);margin:0 0 8px}.tt-personal{font-size:var(--sheet-list);margin-bottom:0}.tt-personal th,.tt-personal td{padding:1px 4px}.tt-personal th{background:#fff}.tt-personal,.timetable-grid{line-height:.96}.tt-personal-sig{font-size:var(--sheet-sig)}.timetable-grid{font-size:var(--sheet-cell)}.timetable-grid th,.timetable-grid td{padding:1px 2px;vertical-align:middle}.timetable-grid tbody tr{height:var(--sheet-dayrow)}.timetable-grid tbody tr.tt-day-empty{height:auto}.tt-day-head{font-size:var(--sheet-day)}.timetable-grid thead .tt-day-head{font-size:var(--sheet-dayhead)}.tt-period-no{font-size:var(--sheet-periodhead)}.tt-period-time{font-size:var(--sheet-periodtime)}.tt-lunch-text{font-size:var(--sheet-cell);color:inherit}.tt-entry{background:none;border:none;border-radius:0;padding:0;margin-bottom:0;text-align:center;line-height:inherit}.tt-entry-subject,.tt-entry-meta,.tt-entry-room,.tt-entry-scope{font-size:var(--sheet-cell);color:inherit}.tt-cell-filled{position:relative}.tt-entry-arrow{display:flex;align-items:center;position:absolute;left:2px;right:2px;top:50%;height:var(--sheet-arrow);margin-top:calc(var(--sheet-arrow) / -2)}.tt-entry-arrow:before,.tt-entry-arrow:after{content:"";flex:none;border-top:calc(var(--sheet-arrow) * .4) solid transparent;border-bottom:calc(var(--sheet-arrow) * .4) solid transparent}.tt-entry-arrow:before{border-right:calc(var(--sheet-arrow) * .5) solid currentColor}.tt-entry-arrow:after{border-left:calc(var(--sheet-arrow) * .5) solid currentColor}.tt-entry-arrow span{flex:1;border-top:calc(var(--sheet-arrow) * .2) solid currentColor}.tt-hint{display:none}.tt-day-head{width:8.7%}.tt-lunch-col{width:4.35%}.schedule-workspace>*:not(.block-sheet-print){display:none!important}.block-sheet-print{display:block}.block-sheet-header{text-align:center;margin-bottom:8px}.block-sheet-header h2{font-size:16pt;margin:0 0 2px}.block-sheet-header p{font-size:11pt;margin:0}.block-sheet-table{width:100%;border-collapse:collapse;font-size:11pt;line-height:1.15}.block-sheet-table thead{display:table-header-group}.block-sheet-table tr{page-break-inside:avoid}.block-sheet-table th,.block-sheet-table td{border:1px solid #000;padding:1px 4px;text-align:center;vertical-align:middle}.block-sheet-table .cell-left{text-align:left}.block-sheet-range{font-weight:600}.block-sheet-sub{font-weight:400;font-size:9.5pt}.block-sheet-empty{font-style:italic}.block-sheet-signatures{display:flex;gap:8px;margin-top:18px;page-break-inside:avoid}.block-sheet-sign{flex:1;text-align:center;font-size:12pt;line-height:1.4}.block-sheet-sign-name,.block-sheet-sign-role{font-size:12pt}@page{size:A4 landscape;margin:5mm 8mm 7.5mm}}.block-sheet-print{display:none}.ai-bar{align-items:center;margin-bottom:12px}.ai-panel{background:var(--color-surface);border:1px solid var(--color-primary);border-radius:var(--radius);padding:16px 20px;margin-bottom:20px}.ai-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.ai-panel-head h3{margin:0;color:var(--color-primary-dark)}.ai-panel-actions{display:flex;gap:8px}.ai-panel-foot{margin-top:12px;align-items:center}.ai-suggest-table td{vertical-align:top}.tt-cell-preview{background:#eef2ff;cursor:default}.tt-preview{border:2px dashed var(--color-primary);border-radius:6px;padding:4px 6px;font-size:.72rem;line-height:1.3;color:var(--color-primary-dark)}.tt-preview-subject{font-weight:600}.tt-preview-tag{font-size:.66rem;color:var(--color-text-muted)}.tt-legend-preview{border:2px dashed var(--color-primary);border-radius:4px;padding:0 4px;color:var(--color-primary-dark);font-weight:600}.rule-custom-text{width:100%;min-width:260px}.student-checking{padding:48px 16px;text-align:center;color:var(--color-text-muted)}.student-login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px}.student-login-card{width:100%;max-width:380px;background:#fff;border:1px solid var(--color-border, #e5e7eb);border-radius:14px;padding:28px 24px;box-shadow:0 10px 30px #0f172a0f;text-align:center}.student-login-card h1{margin:0;font-size:1.5rem}.student-login-sub{margin:4px 0 20px;color:var(--color-text-muted)}.student-login-card form{display:flex;flex-direction:column;gap:14px;text-align:left}.student-login-card label{display:flex;flex-direction:column;gap:6px;font-weight:500}.student-login-card input{padding:10px 12px;font-size:1.1rem;letter-spacing:.04em;border:1px solid var(--color-border, #d1d5db);border-radius:8px}.student-login-note{margin:18px 0 0;font-size:.82rem;color:var(--color-text-muted);line-height:1.5}.student-page{min-height:100vh;background:#f4f7fb;color:#172b4d}.student-page svg{width:20px;height:20px;flex-shrink:0}.student-page .student-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e5ebf3;padding:18px max(24px,calc((100vw - 1400px)/2))}.student-brand{display:flex;align-items:center;gap:12px;color:#172b4d;text-decoration:none}.student-brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#edf3ff;color:#285adc}.student-brand-mark svg{width:25px;height:25px}.student-brand strong{display:block;font-size:17px}.student-brand small{display:block;font-size:12px;color:#708096;margin-top:3px}.student-account{display:flex;align-items:center;gap:24px}.student-identity{display:flex;align-items:center;gap:10px;font-size:13px}.student-identity>svg{width:36px;height:36px;padding:9px;background:#f1f5fa;border-radius:50%;color:#64748b}.student-identity small{display:block;margin-top:2px;font-size:11px;color:#708096}.student-signout{border:1px solid #e2e8f0;background:#fff;color:#58677b;border-radius:10px;padding:9px 12px;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:12px}.student-signout:hover{background:#f4f7fb}.student-page .student-body{max-width:1448px;margin:0 auto;padding:28px 24px}.student-hero{background:#163d79;color:#fff;border-radius:22px;padding:32px 36px;display:flex;justify-content:space-between;align-items:center;gap:32px}.student-eyebrow{color:#bed6ff;font-size:12px;font-weight:500}.student-hero h1{margin:8px 0 6px;font-size:36px;font-weight:700;line-height:1.3;letter-spacing:-.5px}.student-hero p{margin:0 0 18px;color:#e3edff;font-size:15px}.student-term-tag{display:inline-flex;align-items:center;gap:7px;border:1px solid #ffffff35;padding:7px 12px;border-radius:8px;color:#e7efff;font-size:12px}.student-term-tag svg{width:15px;height:15px}.student-stats{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:22px}.student-stats>div{display:flex;flex-direction:column;align-items:flex-start;border-left:1px solid #ffffff26;padding:2px 0 2px 24px;gap:7px}.student-stats svg{color:#b7d1ff}.student-stats strong{font-size:32px;font-weight:600;line-height:1.2}.student-stats span{font-size:12px;color:#d0dffa;white-space:nowrap}.student-controls{margin:20px 0 26px;display:grid;grid-template-columns:minmax(200px,240px) minmax(180px,1fr) auto;gap:18px;align-items:center;background:#fff;padding:20px 24px;border:1px solid #e2e8f0;border-radius:16px}.student-controls label{display:flex;flex-direction:column;gap:7px;color:#738299;font-size:12px}.student-controls select{width:100%;min-width:0;background:#f9fbfe;border:1px solid #e1e8f2;border-radius:9px;padding:10px 12px;color:#233b5c;font-size:13px}.student-controls select:disabled{color:#425571;opacity:1;cursor:default}.student-download-area{display:flex;flex-direction:column;gap:7px;align-items:flex-end}.student-download-area small{color:#77859b;font-size:10px}.student-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border:0;border-radius:10px;background:#285adc;color:#fff;font-size:13px;font-weight:600;cursor:pointer}.student-pdf-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px}.student-download{text-decoration:none}.student-download:hover:not(:disabled){background:#1b48be;color:#fff}.student-download:disabled{opacity:.5;cursor:not-allowed}.student-pdf-preview{text-align:center;color:#285adc;font-size:12px;padding:5px 8px;text-underline-offset:3px}.student-download-area .student-pdf-help{max-width:260px;line-height:1.6;text-align:right}.student-download svg{width:17px;height:17px}.student-page button:focus-visible,.student-page a:focus-visible,.student-page select:focus-visible{outline:3px solid #84aaff;outline-offset:3px}.student-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 3px 16px #17355904;margin-bottom:24px;overflow:hidden;min-width:0}.student-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px}.student-kicker{color:#577dae;font-size:11px;font-weight:500}.student-section-heading h2{font-size:20px;margin:5px 0 6px;color:#172b4d;font-weight:600}.student-section-heading p{font-size:12px;color:#7c8ba0;margin:0;line-height:1.6}.student-count-tag{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:7px 11px;border-radius:8px;background:#f1f5fc;color:#47658b;font-size:11px}.student-count-tag svg{width:15px;height:15px}.student-week-view{padding:0 20px 4px}.student-page .timetable-scroll{margin-bottom:0;border:1px solid #e5ebf3;border-radius:12px}.student-page .timetable-grid{min-width:1080px;border:0;table-layout:fixed}.student-page .timetable-grid th,.student-page .timetable-grid td{border-color:#e5ebf3;padding:6px}.student-page .timetable-grid thead th{background:#f7f9fd;padding:14px 5px}.student-page .tt-day-head{width:86px;color:#4d6584;font-size:12px;background:#f7f9fd;position:sticky;left:0;z-index:1}.student-page .tt-period-no{font-size:12px;color:#3e5c82}.student-page .tt-period-time{margin-top:5px;font-size:10px;color:#8996a8}.student-page .tt-lunch-col{width:22px;background:#fffbef}.student-page .tt-lunch-text{color:#aa8647;font-size:10px}.student-page .tt-cell{min-width:0;height:116px;background:#fff}.student-page .tt-day-empty .tt-cell{height:56px}.student-page .tt-entry{padding:0;margin:0;border:0;background:transparent}.student-page .tt-entry+.tt-entry{margin-top:6px}.student-lesson{--lesson-color: #376acd;--lesson-bg: #f0f5ff;--lesson-border: #d6e3fc;background:var(--lesson-bg);border:1px solid var(--lesson-border);border-left:3px solid var(--lesson-color);border-radius:8px;padding:10px 11px;text-align:left;min-height:100px}.student-tone-1{--lesson-color: #238279;--lesson-bg: #eff9f6;--lesson-border: #cce8e2}.student-tone-2{--lesson-color: #8362bd;--lesson-bg: #f5f1fc;--lesson-border: #e2d8f2}.student-tone-3{--lesson-color: #a7792c;--lesson-bg: #fffaee;--lesson-border: #f0e3bf}.student-tone-4{--lesson-color: #af5e85;--lesson-bg: #fcf1f6;--lesson-border: #f0d8e5}.student-tone-5{--lesson-color: #4f69ac;--lesson-bg: #f1f4fc;--lesson-border: #dbe2f4}.student-page .tt-entry-subject{color:#233750;font-size:13px;font-weight:600;line-height:1.55;margin-bottom:6px}.student-page .tt-entry-meta{color:#63758b;font-size:11px;line-height:1.6}.student-page .tt-entry-meta+.tt-entry-meta{margin-top:2px}.student-page .tt-entry-room{color:var(--lesson-color);font-size:11px;font-weight:600;margin-top:6px;line-height:1.5}.student-page .tt-entry-scope{color:var(--lesson-color);font-size:10px;line-height:1.5;margin-top:4px}.student-page .tt-entry-scope-single{color:#9d6b30}.student-grid-note{margin:12px 0 16px;color:#8a97a8;font-size:11px;text-align:center}.student-agenda{display:none}.student-subject-scroll{overflow-x:auto}.student-subject-table{width:100%;border-collapse:collapse;font-size:13px}.student-subject-table th{padding:13px 20px;background:#f8fafe;text-align:left;color:#72829a;font-size:11px;font-weight:500;border-top:1px solid #edf1f7;border-bottom:1px solid #edf1f7}.student-subject-table td{padding:16px 20px;border-bottom:1px solid #edf1f7;line-height:1.6}.student-subject-table tr:last-child td{border-bottom:0}.student-subject-table tbody tr:hover{background:#fcfdff}.student-subject-no{color:#98a6b9;font-size:11px;width:45px}.student-subject-code{color:#54729e;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.student-subject-name{font-weight:500;color:#243d60}.student-subject-teacher{color:#64778f;font-size:12px}.student-subject-tpn{white-space:nowrap}.student-subject-tpn span{background:#f2f5fa;padding:5px 10px;border-radius:7px;color:#58708f;font-size:12px}.student-shared-tag{display:inline-block;margin-left:8px;padding:1px 7px;border-radius:5px;background:#f1edfa;color:#8566b0;font-size:10px;font-weight:400}.student-page .student-block{margin-top:0}.student-block-scroll{overflow-x:auto}.student-page .student-block .block-sheet-header{display:none}.student-page .student-block .block-sheet-table{width:100%;min-width:940px;font-size:12px;border-collapse:collapse}.student-page .student-block .block-sheet-table th,.student-page .student-block .block-sheet-table td{border:0;border-bottom:1px solid #e8eef6;padding:12px 16px;line-height:1.8;text-align:center}.student-page .student-block .block-sheet-table .cell-left{text-align:left}.student-page .student-block .block-sheet-table th{background:#f8fafe;color:#6a7e99;font-size:11px}.student-page .student-block .block-sheet-range{color:#486996}.student-page .student-block .block-sheet-sub{font-size:10px;color:#91a0b2}.student-footer{display:flex;justify-content:space-between;padding:6px 0 16px;font-size:11px;color:#95a1b3}.student-empty{text-align:center;padding:56px 20px;color:#8492a7;border:1px dashed #d8e1ef;border-radius:16px;background:#ffffff80}.student-empty svg{width:32px;height:32px;color:#7e9bc4}.student-empty p{font-size:14px}.student-error{border:1px solid #f2cdcc;background:#fff3f3;color:#aa4545;padding:14px 18px;border-radius:12px;font-size:13px;margin-bottom:20px}@media(max-width:1000px){.student-hero{padding:28px;gap:24px}.student-stats{gap:12px;grid-template-columns:repeat(3,minmax(75px,1fr))}.student-stats>div{padding-left:14px}.student-controls{grid-template-columns:1fr 1.2fr}.student-download-area{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:space-between}}@media(max-width:760px){.student-page .student-header{display:grid;grid-template-columns:1fr auto;padding:14px 16px;gap:12px}.student-brand{gap:8px}.student-brand strong{font-size:14px}.student-brand small{font-size:10px}.student-brand-mark{width:36px;height:36px;border-radius:10px}.student-account{display:contents}.student-identity{display:flex;grid-column:1 / -1;grid-row:2;font-size:11px;border-top:1px solid #eef2f7;padding-top:10px}.student-identity>svg{width:28px;height:28px;padding:7px}.student-identity small{font-size:10px}.student-signout{grid-column:2;grid-row:1;padding:8px;border:0;font-size:11px}.student-signout svg{width:16px;height:16px}.student-page .student-body{padding:18px 14px}.student-hero{padding:24px;display:block;border-radius:18px}.student-hero h1{font-size:28px}.student-hero p{font-size:13px}.student-stats{margin-top:24px;padding-top:20px;border-top:1px solid #ffffff26;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.student-stats>div{padding-left:0;border:0;gap:5px}.student-stats strong{font-size:26px}.student-stats span{font-size:10px;white-space:normal}.student-controls{padding:18px;gap:14px;grid-template-columns:1fr;margin:16px 0 20px}.student-download-area{flex-direction:column;align-items:stretch}.student-download-area small{text-align:center;line-height:1.6}.student-download-area .student-pdf-help{max-width:none;text-align:center}.student-card{border-radius:16px;margin-bottom:20px}.student-section-heading{padding:20px 18px;align-items:flex-start}.student-section-heading h2{font-size:18px}.student-section-heading p{font-size:11px}.student-section-heading .student-count-tag{font-size:10px;padding:6px 8px}.student-schedule .student-section-heading{display:block}.student-schedule .student-count-tag{margin-top:12px}.student-week-view{display:none}.student-agenda{display:block;padding:0 18px 4px}.student-day-tabs{display:flex;gap:7px;overflow-x:auto;padding:3px 2px 10px}.student-day-tabs button{white-space:nowrap;flex-shrink:0;border:1px solid #e5ebf3;color:#7687a0;background:#fff;padding:8px 12px;border-radius:8px;font-size:11px;cursor:pointer}.student-day-tabs button[aria-pressed=true]{border-color:#285adc;background:#285adc;color:#fff}.student-agenda h3{margin:10px 0 16px;font-size:14px;font-weight:500}.student-agenda-row{display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px;margin-bottom:14px}.student-agenda-time{display:flex;flex-direction:column;gap:4px;padding-top:12px}.student-agenda-time strong{font-size:13px;color:#324c71;font-weight:600}.student-agenda-time span{font-size:11px;color:#8a98ac}.student-agenda-time small{font-size:9px;color:#a1adbd;margin-top:5px}.student-agenda-lessons>div+div{margin-top:8px}.student-lesson{min-height:0;padding:12px}.student-subject-scroll{overflow:visible}.student-subject-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.student-subject-table tbody tr{display:grid;grid-template-columns:20px minmax(0,1fr) auto;padding:16px 18px;gap:5px 10px;border-top:1px solid #edf1f7}.student-subject-table td{padding:0;border:0;width:auto}.student-subject-no{grid-column:1;grid-row:1 / 4;padding-top:2px!important}.student-subject-code{grid-column:2;grid-row:1;font-size:11px}.student-subject-name{grid-column:2;grid-row:2;font-size:13px}.student-subject-teacher{grid-column:2 / 4;grid-row:3;font-size:11px}.student-subject-teacher:before{content:"ครูผู้สอน: ";color:#91a0b3}.student-subject-tpn{grid-column:3;grid-row:1 / 3;align-self:center}.student-subject-tpn span{font-size:10px;padding:5px 7px}.student-day-empty{color:#94a0b1;font-size:13px;text-align:center;padding:28px 8px}.student-footer{font-size:10px;gap:12px}.student-footer span{text-align:right}}@media print{.student-page{background:#fff}.student-page .student-body{max-width:none;padding:0}.student-page .student-header,.student-controls,.student-footer,.student-kicker,.student-grid-note,.student-agenda{display:none!important}.student-hero{display:block;background:#fff;color:#172b4d;padding:0 0 12px}.student-hero p,.student-term-tag{color:#172b4d}.student-hero h1{font-size:20pt}.student-eyebrow,.student-stats{display:none}.student-card{border:0;box-shadow:none;overflow:visible}.student-section-heading{padding:10px 0}.student-section-heading p{color:#64748b}.student-page .student-week-view{display:block;padding:0}.student-page .timetable-grid{min-width:0;table-layout:auto}.student-page .timetable-scroll{border:0;overflow:visible}.student-page .tt-day-head{position:static}.student-page .tt-entry-subject{font-size:10pt}.student-page .tt-entry-meta,.student-page .tt-entry-room{font-size:8pt}.student-page .tt-cell{height:auto}.student-lesson{min-height:0;padding:5px}.student-page .student-block{page-break-before:auto;margin-top:0}.student-page .student-block .block-sheet-table{min-width:0}.student-subject-scroll,.student-block-scroll{overflow:visible}.student-subject-table{font-size:10pt}.student-subject-table th,.student-subject-table td{padding:5px 8px}.student-page .block-sheet-signatures{display:none!important}}
