:root{--maroon:#7b1e1e;--maroon-dark:#611414;--orange:#d95d1a;--cream:#fbf6ea;--paper:#fffdf8;--ink:#2b2118;--muted:#7d6a58;--line:#e5d8c5;--sand:#f3ead9;--bg:#f5efe3;--green:#1f7a45;--red:#b3261e;--radius:14px;--shadow:0 1px 2px #3c28190d, 0 18px 36px -26px #3c281966;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:radial-gradient(1200px 500px at 12% -10%, #d95d1a0f, transparent 60%), radial-gradient(900px 500px at 95% 0%, #7b1e1e0d, transparent 55%), var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;margin:0;font-family:Segoe UI,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.5}h1,h2,h3,p{margin:0}img{max-width:100%}button{font:inherit}:focus-visible{outline-offset:2px;outline:2px solid #7b1e1e73}::selection{background:#7b1e1e29}.app-shell{flex-direction:column;min-height:100vh;display:flex}.topbar{z-index:40;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);background:#fffdf8e6;align-items:center;gap:20px;padding:12px 26px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:11px;min-width:0;display:flex}.brand-logo{border-radius:50%;flex:none;place-items:center;width:40px;height:40px;display:grid;overflow:hidden}.brand-logo img{object-fit:contain;width:100%;height:100%}.brand-emblem{width:40px;height:40px}.brand-text{flex-direction:column;min-width:0;line-height:1.2;display:flex}.brand-text strong{letter-spacing:.2px;color:var(--maroon);font-family:Georgia,Times New Roman,serif;font-size:16px}.brand-text span{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;max-width:270px;font-size:11.5px;overflow:hidden}.tabs{background:var(--sand);border:1px solid #c5b09480;border-radius:999px;gap:4px;margin-left:auto;padding:4px;display:flex}.tab{color:#6d5a47;cursor:pointer;background:0 0;border:none;border-radius:999px;align-items:center;gap:7px;padding:7px 15px;font-size:13px;font-weight:600;transition:background .15s,color .15s,box-shadow .15s;display:inline-flex}.tab:hover{color:var(--maroon)}.tab.active{background:var(--paper);color:var(--maroon);box-shadow:0 1px 3px #50371e26}.top-actions{align-items:center;gap:14px;margin-left:auto;display:flex}.save-indicator{color:#7d8f7c;white-space:nowrap;align-items:center;gap:5px;font-size:12px;display:inline-flex}main{flex:1}.app-footer{color:var(--muted);border-top:1px solid #cbb69e8c;flex-wrap:wrap;justify-content:space-between;gap:16px;width:100%;max-width:1280px;margin:0 auto;padding:18px 28px 26px;font-size:11.5px;display:flex}.button{height:39px;color:var(--ink);cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:7px;padding:0 15px;font-size:13px;font-weight:600;transition:background .15s,border-color .15s,color .15s,transform 60ms;display:inline-flex}.button:active:not(:disabled){transform:translateY(1px)}.button:disabled{opacity:.48;cursor:not-allowed}.button.primary{background:var(--maroon);color:#fff8ee;box-shadow:0 1px 2px #50141440}.button.primary:hover:not(:disabled){background:var(--maroon-dark)}.button.ghost{background:var(--paper);color:#4a3829;border-color:#ddcfba}.button.ghost:hover:not(:disabled){background:var(--cream);border-color:#cbb69f}.button.small{border-radius:8px;height:32px;padding:0 11px;font-size:12.5px}.danger-text{color:var(--red)!important}.icon-button{color:#6d5a47;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;transition:background .15s,color .15s,border-color .15s;display:inline-flex}.icon-button:hover:not(:disabled){background:var(--sand);color:var(--maroon)}.icon-button:disabled{opacity:.35;cursor:not-allowed}.icon-button.tiny{border-radius:6px;width:26px;height:26px}.icon-button.danger:hover{color:var(--red);background:#fbe9e6}.input{width:100%;height:40px;color:var(--ink);font:inherit;background:#fffefa;border:1px solid #dccdb8;border-radius:9px;padding:0 11px;font-size:13.5px;transition:border-color .15s,box-shadow .15s}.input:focus{border-color:#7b1e1e8c;outline:none;box-shadow:0 0 0 3px #7b1e1e17}.input::placeholder{color:#aa9784}textarea.input{resize:vertical;height:auto;padding:9px 11px;line-height:1.5}.input.mono{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12.5px}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field.wide{grid-column:span 2}.field-label{letter-spacing:.35px;text-transform:uppercase;color:#75614e;font-size:11.5px;font-weight:700}.hint{color:var(--muted);font-size:11.5px;line-height:1.45}.form-grid{grid-template-columns:1fr 1fr;gap:14px 16px;display:grid}.form-error{color:#96261d;background:#fdf0ee;border:1px solid #f0c0b8;border-radius:10px;padding:11px 14px;font-size:13px;font-weight:500}.input-suffix{align-items:center;display:flex;position:relative}.input-suffix .input{padding-right:34px}.input-suffix>span{color:var(--muted);pointer-events:none;font-size:12.5px;position:absolute;right:12px}.page{width:100%;max-width:1240px;margin:0 auto;padding:30px 26px 48px}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px;display:flex}.eyebrow{letter-spacing:1.5px;text-transform:uppercase;color:var(--orange);margin-bottom:5px;font-size:10.5px;font-weight:700}.page-head h1{letter-spacing:-.5px;color:#3a2418;font-family:Georgia,Times New Roman,serif;font-size:33px;line-height:1.1}.page-sub{color:var(--muted);margin-top:5px;font-size:13.5px}.page-actions{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px;display:grid}.stat-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;flex-direction:column;gap:2px;min-height:88px;padding:14px 16px;display:flex;position:relative;box-shadow:0 1px 1px #50371e08}.stat-card strong{color:#3a2418;font-family:Georgia,Times New Roman,serif;font-size:25px;font-weight:700;line-height:1.15}.stat-card>div{flex-direction:column;gap:2px;display:flex}.stat-label{letter-spacing:.9px;text-transform:uppercase;color:#8b7662;font-size:10.5px;font-weight:700;display:block}.stat-note{color:#9a8773;margin-top:auto;font-size:11.5px}.stat-icon{background:var(--sand);width:30px;height:30px;color:var(--maroon);border-radius:8px;place-items:center;display:grid;position:absolute;top:13px;right:13px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.toolbar{border-bottom:1px solid var(--line);background:linear-gradient(#fffdf880,#fbf6ea8c);flex-wrap:wrap;align-items:center;gap:12px;padding:13px 16px;display:flex}.search-box{flex:270px;align-items:center;min-width:220px;display:flex;position:relative}.search-box>svg{color:#a08a74;pointer-events:none;position:absolute;left:12px}.search-box input{width:100%;height:38px;font:inherit;color:var(--ink);background:#fffefa;border:1px solid #ddcfba;border-radius:9px;padding:0 34px 0 37px;font-size:13px}.search-box input:focus{border-color:#7b1e1e80;outline:none;box-shadow:0 0 0 3px #7b1e1e14}.search-box .icon-button{position:absolute;right:5px}.select-field{align-items:center;gap:7px;display:flex}.select-field>span{color:#8b7662;font-size:11.5px;font-weight:600}.select-field select{color:#4a3829;height:38px;font:inherit;cursor:pointer;background:#fffefa;border:1px solid #ddcfba;border-radius:9px;padding:0 30px 0 10px;font-size:12.5px;font-weight:500}.toolbar-count{color:#9a8773;white-space:nowrap;margin-left:auto;font-size:12px}.table-wrap{overflow-x:auto}.student-table{border-collapse:collapse;width:100%;min-width:830px}.student-table th{text-align:left;text-transform:uppercase;letter-spacing:.7px;color:#8b7662;border-bottom:1px solid var(--line);white-space:nowrap;background:#faf5ea;padding:9px 14px;font-size:10.5px;font-weight:700}.student-table td{color:#3a2c20;vertical-align:middle;border-bottom:1px solid #f0e6d7;padding:10px 14px;font-size:13px}.student-table tbody tr{transition:background .12s}.student-table tbody tr:hover{background:#fdf8ef}.student-table tbody tr.selected{background:#fbf2e2}.student-table tbody tr:last-child td{border-bottom:none}.student-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.check-col{width:42px;padding-right:0!important}.actions-col{width:120px;text-align:right!important}.student-table input[type=checkbox]{width:16px;height:16px;accent-color:var(--maroon);cursor:pointer}.student-cell-button{text-align:left;cursor:pointer;color:inherit;background:0 0;border:none;align-items:center;gap:10px;padding:0;display:flex}.avatar{background:var(--sand);width:36px;height:36px;color:var(--maroon);border:1px solid #e7d9c4;border-radius:50%;flex:none;place-items:center;font-size:12px;font-weight:700;display:grid;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.student-meta{flex-direction:column;min-width:0;line-height:1.3;display:flex}.student-name{color:#2f2117;font-size:13.5px;font-weight:600}.student-sub{color:#907c68;white-space:nowrap;text-overflow:ellipsis;max-width:260px;font-size:11.5px;overflow:hidden}.badge.soft{background:var(--sand);color:#6b4d2f;white-space:nowrap;border-radius:999px;padding:3px 9px;font-size:11.5px;font-weight:600;display:inline-block}.pill{letter-spacing:.6px;border-radius:999px;padding:3px 10px;font-size:10.5px;font-weight:800;display:inline-block}.pill.pass{color:#166b3b;background:#e6f4ea}.pill.fail{color:#a3261d;background:#fbe7e4}.pill.neutral{color:#8a7661;background:#f0ece5}.row-actions{justify-content:flex-end;gap:2px;display:inline-flex}.empty-state{text-align:center;flex-direction:column;align-items:center;gap:9px;padding:56px 24px 60px;display:flex}.empty-mark{background:var(--sand);width:54px;height:54px;color:var(--maroon);border-radius:16px;place-items:center;margin-bottom:4px;display:grid}.empty-state h3{color:#3a2418;font-family:Georgia,serif;font-size:20px}.empty-state p{color:var(--muted);max-width:380px;margin-bottom:8px;font-size:13px}.selection-bar{z-index:20;color:#fdf5e8;background:#2b2118;border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin:16px auto 0;padding:11px 14px 11px 20px;animation:.18s riseIn;display:flex;position:sticky;bottom:18px;box-shadow:0 18px 34px -16px #28190a8c}.selection-bar>span{font-size:13px}.selection-actions{align-items:center;gap:7px;display:flex}.selection-bar .button.ghost{color:#fdf5e8;background:#ffffff12;border-color:#ffffff2e}.selection-bar .button.ghost:hover{background:#ffffff24}.selection-bar .button.primary{color:#4a2a18;background:#f2e4cd}.selection-bar .button.primary:hover{background:#fff6e6}.drawer-backdrop{z-index:100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#25170d73;justify-content:flex-end;animation:.16s fadeIn;display:flex;position:fixed;inset:0}.drawer{background:#faf5eb;flex-direction:column;width:min(980px,100%);height:100%;animation:.2s cubic-bezier(.2,.8,.3,1) slideIn;display:flex;box-shadow:-24px 0 60px #1e120847}.drawer-head{background:var(--paper);border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 24px 16px;display:flex}.drawer-head h2{color:#3a2418;font-family:Georgia,serif;font-size:23px;line-height:1.2}.drawer-body{flex-direction:column;flex:1;gap:18px;padding:20px 24px 26px;display:flex;overflow-y:auto}.form-section{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:17px 18px 18px}.form-section-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;display:flex}.form-section-head h3{color:#3a2418;font-size:14.5px;font-weight:700}.form-section-head .hint{margin-top:2px;display:block}.section-actions{flex-wrap:wrap;gap:7px;display:flex}.photo-row{border-top:1px dashed #e7dac7;align-items:flex-start;gap:14px;margin-top:16px;padding-top:15px;display:flex}.photo-preview{background:var(--sand);color:#9a8773;border:1px solid #ddcfba;border-radius:9px;flex:none;place-items:center;width:72px;height:88px;font-size:10.5px;display:grid;overflow:hidden}.photo-preview img{object-fit:cover;width:100%;height:100%}.photo-actions{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.photo-actions .hint{width:100%}.marks-editor-wrap{border:1px solid var(--line);background:#fffefa;border-radius:10px;overflow-x:auto}.marks-editor{border-collapse:collapse;width:100%;min-width:760px}.marks-editor th{text-transform:uppercase;letter-spacing:.4px;color:#7b6552;text-align:center;background:#faf3e6;border:1px solid #ece0ce;padding:6px 4px;font-size:10.5px;font-weight:700}.marks-editor th.subject-col{text-align:left;padding-left:9px}.marks-editor th.exam-col{color:#5c4030;background:#f5ead8}.marks-editor th.num-col{letter-spacing:.2px;color:#9a826a;width:52px;padding:3px 2px;font-size:8.5px}.marks-editor td{border:1px solid #f0e5d5;padding:4px}.marks-editor .subject-input{border-color:#e6d9c6;min-width:120px;height:33px;font-size:12.5px}.marks-editor .mark-input{text-align:right;-moz-appearance:textfield;border-color:#e6d9c6;width:46px;height:33px;padding:0 5px;font-size:12.5px}.mark-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.mark-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.marks-editor .total-col{text-align:center;color:#5c4030;white-space:nowrap;background:#fdf7ec;width:74px;font-size:12px;font-weight:600}.marks-editor td:last-child{text-align:center;width:34px}.drawer-foot{border-top:1px solid var(--line);background:var(--paper);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:13px 24px;display:flex;box-shadow:0 -8px 20px -18px #321e0a80}.drawer-summary{flex-wrap:wrap;gap:22px;display:flex}.drawer-summary>div{flex-direction:column;gap:1px;display:flex}.drawer-summary span{letter-spacing:.6px;text-transform:uppercase;color:#9a8773;font-size:10px;font-weight:700}.drawer-summary strong{color:#3a2418;font-variant-numeric:tabular-nums;font-size:15px}.drawer-buttons{gap:8px;display:flex}.result-pass{color:var(--green)!important}.result-fail{color:var(--red)!important}.settings-grid{grid-template-columns:1fr 1fr;align-items:start;gap:18px;display:grid}.settings-card{flex-direction:column;gap:16px;padding:20px 20px 22px;display:flex}.settings-head{align-items:flex-start;gap:12px;display:flex}.settings-head h2{color:#3a2418;font-family:Georgia,serif;font-size:19px;line-height:1.2}.settings-head p{color:var(--muted);margin-top:3px;font-size:12px}.settings-icon{background:var(--sand);width:36px;height:36px;color:var(--maroon);border-radius:9px;flex:none;place-items:center;display:grid}.settings-note{margin-top:-4px}.settings-button-row{flex-wrap:wrap;gap:8px;display:flex}.exam-toggle-list{flex-direction:column;gap:8px;display:flex}.exam-toggle{border:1px solid var(--line);background:var(--paper);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;transition:border-color .15s,background .15s;display:flex}.exam-toggle:hover{border-color:#cdb89f}.exam-toggle.is-on{background:#fffaf1;border-color:#dcc9b3}.exam-toggle.is-locked{cursor:not-allowed;opacity:.72}.exam-toggle-copy{flex-direction:column;gap:1px;min-width:0;display:flex}.exam-toggle-name{color:#3a2418;font-size:13px;font-weight:600}.exam-toggle-meta{letter-spacing:.6px;color:var(--muted);font-size:9.5px;font-weight:600}.toggle-input{opacity:0;pointer-events:none;width:1px;height:1px;margin:0;position:absolute}.toggle-track{background:#d9cdbd;border-radius:999px;flex:none;width:38px;height:22px;transition:background .18s;position:relative;box-shadow:inset 0 1px 2px #3c281926}.toggle-thumb{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .18s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #3c281966}.toggle-input:checked+.toggle-track{background:var(--maroon)}.toggle-input:checked+.toggle-track .toggle-thumb{transform:translate(16px)}.toggle-input:focus-visible+.toggle-track{outline-offset:2px;outline:2px solid #7b1e1e73}.toggle-input:disabled+.toggle-track{opacity:.55}.branding-row{grid-template-columns:1fr 1fr;gap:16px;display:grid}.branding-item{flex-direction:column;align-items:flex-start;gap:8px;min-width:0;display:flex}.branding-label{letter-spacing:.35px;text-transform:uppercase;color:#75614e;font-size:11.5px;font-weight:700}.branding-preview{background:#fffefa;border:1px dashed #d7c6b0;border-radius:10px;place-items:center;width:100%;height:92px;padding:8px;display:grid;overflow:hidden}.branding-preview.logo img{object-fit:contain;max-width:100%;max-height:72px}.branding-preview.signature img{object-fit:contain;max-width:100%;max-height:58px}.preview-empty{color:#a6927d;font-size:11.5px}.branding-actions{flex-wrap:wrap;gap:6px;display:flex}.signature-script{color:#2c3275;font-family:Segoe Script,Brush Script MT,Bradley Hand,cursive;font-size:24px;line-height:1.1;transform:rotate(-3deg)}.default-max-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.mini-field{flex-direction:column;gap:4px;min-width:0;display:flex}.mini-field span{color:#8b7662;text-transform:uppercase;letter-spacing:.3px;white-space:nowrap;text-overflow:ellipsis;font-size:10px;font-weight:600;overflow:hidden}.mini-field .input{height:36px;padding:0 8px;font-size:12.5px}.backup-note{color:var(--muted);border-top:1px dashed #e7dac7;padding-top:12px;font-size:12px}.backup-note strong{color:#5c4030;font-size:12px}.backup-note p{margin-top:3px;line-height:1.5}.settings-savebar{z-index:20;border:1px solid var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fffdf8f5;border-radius:13px;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;padding:11px 16px;display:flex;position:sticky;bottom:16px;box-shadow:0 16px 32px -22px #321e0a8c}.save-state{color:#8a9a87;align-items:center;gap:6px;font-size:12px;display:inline-flex}.save-state.dirty{color:var(--orange);font-weight:600}.settings-save-actions{gap:8px;display:flex}.toast-stack{z-index:300;pointer-events:none;flex-direction:column;gap:9px;width:min(370px,100vw - 32px);display:flex;position:fixed;top:18px;right:18px}.toast{border:1px solid var(--line);color:#3a2c20;pointer-events:auto;background:#fffdf8;border-radius:11px;align-items:center;gap:10px;padding:11px 12px;font-size:12.5px;animation:.2s toastIn;display:flex;box-shadow:0 16px 36px -18px #321e0a80}.toast-icon{flex:none;place-items:center;display:grid}.toast.success .toast-icon{color:var(--green)}.toast.error .toast-icon{color:var(--red)}.toast.info .toast-icon{color:#7a5a3a}.toast-text{flex:1}.modal-backdrop{z-index:120;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#20140a94;justify-content:center;align-items:center;padding:24px;animation:.15s fadeIn;display:flex;position:fixed;inset:0}.print-modal{background:#e9dfd0;border-radius:16px;flex-direction:column;width:min(1020px,100%);height:calc(100vh - 48px);display:flex;overflow:hidden;box-shadow:0 40px 90px -30px #0009}.print-head{background:var(--paper);border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:13px 18px;display:flex}.print-head .eyebrow{margin-bottom:2px}.print-head h2{color:#3a2418;font-family:Georgia,serif;font-size:19px;line-height:1.2}.print-tools{flex-wrap:wrap;align-items:center;gap:10px;margin-left:auto;display:flex}.zoom-control{background:var(--sand);border:1px solid #e5d8c5;border-radius:8px;align-items:center;gap:3px;padding:2px 5px;display:flex}.zoom-control span{color:#6b5a47;text-align:center;min-width:34px;font-size:11.5px;font-weight:600}.print-hint{color:var(--muted);font-size:11.5px}.preview-scroll{background:radial-gradient(circle at 50% 0,#ffffff59,#0000 60%),#e8dfd0;flex:1;padding:26px;overflow:auto}.preview-pages{flex-direction:column;align-items:center;gap:26px;min-width:min-content;display:flex}.preview-page{flex:none}.preview-page .sheet{box-shadow:0 14px 38px #2d1c0c40}.sheet{color:#2b2118;background:#fffdf8;width:210mm;min-height:296mm;padding:6mm;font-family:Segoe UI,Arial,sans-serif;position:relative}.sheet-frame{background:#fffdf8;border:1.7pt solid #6f1a1a;flex-direction:column;min-height:284mm;padding:4mm 4.5mm 3.5mm;display:flex;position:relative;overflow:hidden}.corner-flag{clip-path:polygon(100% 0,100% 100%,0 0);z-index:1;background:linear-gradient(140deg,#e4691f 0%,#d35412 55%,#b8410d 100%);width:30mm;height:23mm;position:absolute;top:0;right:0}.sheet-header{z-index:2;grid-template-columns:27mm 1fr;align-items:center;gap:4mm;padding:1mm 30mm 1.5mm 1.5mm;display:grid;position:relative}.sheet-logo{place-items:center;display:grid}.sheet-logo img{object-fit:contain;width:25mm;height:25mm}.emblem{width:25mm;height:25mm}.school-block{text-align:center;min-width:0}.school-tagline{color:#8a6234;letter-spacing:.3px;margin-bottom:.8mm;font-family:Georgia,Times New Roman,serif;font-size:8.5pt;font-style:italic}.school-name{color:#6f1a1a;letter-spacing:.2px;overflow-wrap:break-word;margin:0;font-family:Georgia,Times New Roman,serif;font-size:23pt;font-weight:700;line-height:1.08}.school-address{color:#3a2a20;margin-top:1.2mm;font-size:7.4pt}.school-line{color:#3a2a20;margin-top:.5mm;font-size:7.4pt}.school-line b{color:#6f1a1a}.sheet-flag-text{display:none}.session-bar{z-index:2;text-align:center;letter-spacing:.7px;text-transform:uppercase;color:#5c4030;background:#f7efe1;border-top:.9pt solid #cbb69f;border-bottom:.9pt solid #cbb69f;margin-top:2mm;padding:1.3mm 2mm;font-size:7.4pt;font-weight:700;position:relative}.session-divider{color:#b59a80;margin:0 3mm;font-weight:400}.student-grid{z-index:2;background:#cbb69f;border:.9pt solid #cbb69f;grid-template-columns:1.15fr 1.15fr 1fr 25mm;gap:.6pt;margin-top:2mm;display:grid;position:relative}.student-cell{background:#fffdf8;flex-direction:column;justify-content:center;gap:.5mm;min-height:9mm;padding:1.5mm 2.2mm;display:flex}.student-label{letter-spacing:.45px;color:#7b6552;font-size:5.5pt;font-weight:700}.student-value{color:#241a12;overflow-wrap:break-word;font-size:8.7pt;line-height:1.2}.student-value.strong{font-weight:700}.student-photo{background:#fffdf8;grid-area:1/4/span 3;justify-content:center;align-items:center;min-height:100%;padding:1mm;display:flex;overflow:hidden}.student-photo img{object-fit:cover;width:100%;height:100%;display:block}.photo-placeholder{background:#f8f0e2;border:.6pt dashed #cdb79d;flex-direction:column;justify-content:center;align-items:center;gap:.6mm;width:100%;height:100%;display:flex}.photo-placeholder span{color:#8d6b4e;font-family:Georgia,serif;font-size:13pt;line-height:1}.photo-placeholder small{letter-spacing:.5px;color:#a58d77;font-size:4.6pt}.address-cell{grid-column:span 2}.statement-band{z-index:2;text-align:center;color:#fff8ec;letter-spacing:1.4px;background:#6f1a1a;margin-top:2.4mm;padding:1.2mm;font-size:7.6pt;font-weight:700;position:relative}.marks-table{z-index:2;border-collapse:collapse;table-layout:auto;width:100%;font-size:7.3pt;position:relative}.marks-table th,.marks-table td{text-align:center;border:.6pt solid #b9a38a;padding:1mm .8mm;line-height:1.15}.marks-table thead th{color:#4a2a1c;letter-spacing:.15px;background:#f2e4d2;font-size:6.3pt;font-weight:700}.marks-table .subject-head{text-align:left;width:27%;padding-left:1.6mm;font-size:7.3pt}.marks-table .sub-head{color:#7a5a42;background:#faf1e4;font-size:5.4pt;font-weight:600}.marks-table .grand-head{color:#4a2a1c;background:#ead9c2}.marks-table .grand-sub{color:#6b4a33;background:#f6ead8;font-size:5.4pt}.marks-table .subject-name{text-align:left;color:#241a12;overflow-wrap:break-word;padding-left:1.6mm;font-weight:500}.marks-table .mark-cell{font-variant-numeric:tabular-nums;color:#241a12}.marks-table .grand-cell{background:#fdf6e9;font-weight:600}.marks-table .filler-row td{height:7mm}.marks-table .total-row td{background:#f6ecdc;border-top:1pt solid #8a5a44;font-weight:700}.summary-band{z-index:2;letter-spacing:.3px;color:#4a2a1c;background:#fdf7ec;border:.8pt solid #cbb69f;flex-wrap:wrap;justify-content:space-between;gap:2mm 5mm;margin-top:2mm;padding:1.5mm 3mm;font-size:7.2pt;font-weight:600;display:flex;position:relative}.summary-band b{color:#241a12;font-variant-numeric:tabular-nums;font-size:7.8pt}.sheet-footer{z-index:2;align-items:flex-end;gap:5mm;margin-top:auto;padding-top:4mm;display:flex;position:relative}.qr-block{flex-direction:column;flex:none;align-items:center;gap:.8mm;display:flex}.qr-block small{color:#8b7662;letter-spacing:.2px;font-size:5pt}.signature-row{flex:1;justify-content:space-between;align-items:flex-end;gap:3mm;padding:0 1mm 1mm;display:flex}.signature{flex-direction:column;flex:1;align-items:center;gap:.5mm;min-width:0;display:flex}.signature-space{border-bottom:.6pt dotted #b09a83;justify-content:center;align-items:flex-end;width:100%;max-width:50mm;height:12mm;margin-bottom:.8mm;display:flex}.signature-space img{object-fit:contain;max-width:46mm;max-height:10mm}.principal-signature .signature-script{padding-bottom:.5mm;font-size:13pt;line-height:1}.signature-label{letter-spacing:.5px;color:#5c4030;text-align:center;white-space:nowrap;font-size:5.6pt;font-weight:700}.sheet-watermark{z-index:3;pointer-events:none;opacity:.055;place-items:center;display:grid;position:absolute;inset:0}.watermark-emblem{width:126mm;height:126mm}.print-root{display:none}@media print{@page{size:A4;margin:0}html,body{background:#fff!important;margin:0!important;padding:0!important}:is(body:has(.print-root) .app-shell,body:has(.print-root) .modal-backdrop,body:has(.print-root) .toast-stack){display:none!important}.print-root{display:block!important}.print-root .sheet{width:210mm;min-height:296mm;box-shadow:none;break-after:page;page-break-after:always;background:#fffdf8;margin:0;padding:6mm}.print-root .sheet:last-child{break-after:auto;page-break-after:auto}.print-root .sheet-frame{min-height:284mm}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}@media (width<=1080px){.save-indicator{display:none}.settings-grid{grid-template-columns:1fr}}@media (width<=860px){.topbar{flex-wrap:wrap;gap:10px;padding:10px 16px}.brand-text span{max-width:190px}.tabs{order:3;justify-content:center;width:100%;margin-left:0}.top-actions{margin-left:auto}.page{padding:22px 16px 40px}.page-head h1{font-size:28px}.stat-grid{grid-template-columns:1fr 1fr}.page-actions{width:100%}.app-footer{padding:16px}}@media (width<=640px){.brand-text span{display:none}.top-actions .button.primary{padding:0 12px}.stat-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.field.wide{grid-column:span 1}.branding-row{grid-template-columns:1fr}.default-max-grid{grid-template-columns:repeat(3,1fr)}.drawer-body{padding:14px}.drawer-head,.drawer-foot{padding-left:14px;padding-right:14px}.drawer-summary{gap:14px}.drawer-buttons{width:100%}.drawer-buttons .button{flex:1}.modal-backdrop{padding:0}.print-modal{border-radius:0;height:100vh}.print-hint{display:none}.selection-bar{padding:10px 12px}.selection-actions{flex-wrap:wrap;flex:1;justify-content:flex-end}.settings-savebar{flex-wrap:wrap}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideIn{0%{opacity:.5;transform:translate(36px)}to{opacity:1;transform:translate(0)}}@keyframes toastIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}@keyframes riseIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
