/* EduCore Core v2.11.0 — Marksheet Template Studio */
.sms-marksheet-studio,.sms-marksheet-editor,.sms-marksheet-preview-page{display:grid;gap:22px}.sms-studio-hero,.sms-studio-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.sms-studio-hero h1,.sms-studio-page-head h1{margin:4px 0 8px;font-size:clamp(24px,3vw,36px)}.sms-studio-hero p{margin:0;max-width:720px;color:var(--sms-ui-muted,#64748b)}.sms-studio-eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--sms-ui-primary,#4f46e5)}.sms-studio-page-head>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.sms-studio-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sms-studio-stats>div{border:1px solid var(--sms-ui-border,#e2e8f0);border-radius:14px;padding:18px;background:var(--sms-ui-surface,#fff)}.sms-studio-stats strong{display:block;font-size:26px}.sms-studio-stats span{font-size:13px;color:var(--sms-ui-muted,#64748b)}.sms-studio-tabs{display:flex;gap:6px;border-bottom:1px solid var(--sms-ui-border,#e2e8f0)}.sms-studio-tabs a{padding:11px 15px;text-decoration:none;color:inherit;border-bottom:3px solid transparent;font-weight:700}.sms-studio-tabs a.is-active{color:var(--sms-ui-primary,#4f46e5);border-bottom-color:currentColor}.sms-template-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px}.sms-template-card{display:grid;grid-template-rows:145px 1fr auto;overflow:hidden;border:1px solid var(--sms-ui-border,#e2e8f0);border-radius:16px;background:var(--sms-ui-surface,#fff);box-shadow:0 8px 24px rgba(15,23,42,.06)}.sms-template-thumb{margin:14px 14px 0;border:2px solid #0f172a;background:#fff;color:#0f172a;display:grid;place-content:center;text-align:center;position:relative}.sms-template-thumb span{font-size:11px;font-weight:900}.sms-template-thumb i{display:block;width:150px;height:1px;background:#0f172a;margin:7px auto 0}.sms-template-thumb i:nth-of-type(2){width:110px}.sms-template-thumb i:nth-of-type(3){width:135px}.sms-template-thumb-modern_border{border-color:var(--sms-ui-primary,#4f46e5);border-radius:8px}.sms-template-thumb-legacy_modern{border:0;border-radius:10px;background:linear-gradient(135deg,#eef2ff,#f8fafc)}.sms-template-card-content{padding:15px}.sms-template-card-head{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}.sms-template-card h3{margin:0;font-size:18px}.sms-template-card p{color:var(--sms-ui-muted,#64748b);min-height:42px}.sms-template-meta{display:flex;gap:6px;flex-wrap:wrap}.sms-template-meta span,.sms-studio-badge{font-size:11px;font-weight:750;padding:4px 8px;border-radius:999px;background:var(--sms-ui-soft,#eef2ff);color:var(--sms-ui-primary,#4f46e5)}.sms-studio-badge.is-muted{background:#f1f5f9;color:#64748b}.sms-template-actions{display:flex;gap:7px;flex-wrap:wrap;padding:12px 15px;border-top:1px solid var(--sms-ui-border,#e2e8f0)}.sms-template-actions form{margin:0}.sms-front-btn-danger{color:#b91c1c;border-color:#fecaca;background:#fff7f7}.sms-studio-empty{padding:48px;text-align:center;border:1px dashed var(--sms-ui-border,#cbd5e1);border-radius:16px}.sms-studio-empty .dashicons{width:42px;height:42px;font-size:42px;color:#94a3b8}.sms-template-editor-form{display:grid;gap:18px}.sms-editor-section{border:1px solid var(--sms-ui-border,#e2e8f0);border-radius:16px;padding:20px;background:var(--sms-ui-surface,#fff)}.sms-editor-section h2{margin:0 0 16px;font-size:18px}.sms-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.sms-editor-grid label,.sms-assignment-form label{display:grid;gap:7px}.sms-editor-grid label>span,.sms-assignment-form label>span{font-weight:700}.sms-editor-grid small{color:var(--sms-ui-muted,#64748b);line-height:1.45}.sms-editor-span{grid-column:1/-1}.sms-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px}.sms-editor-check{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--sms-ui-border,#e2e8f0);border-radius:10px}.sms-editor-check input{width:17px;height:17px}.sms-form-actions{display:flex;justify-content:flex-end}.sms-assignment-layout{display:grid;grid-template-columns:minmax(270px,380px) minmax(0,1fr);gap:22px}.sms-assignment-form{display:grid;align-content:start;gap:14px;padding:18px;border:1px solid var(--sms-ui-border,#e2e8f0);border-radius:16px}.sms-assignment-form h2,.sms-assignment-list h2{margin:0}.sms-assignment-form p{margin:0;color:var(--sms-ui-muted,#64748b)}[data-sms-scope-field]{display:none!important}[data-sms-scope-field].is-active{display:grid!important}.sms-template-preview-canvas{padding:24px;overflow:auto;background:#e5e7eb;border-radius:16px}.sms-marksheet-sheet{--sms-marksheet-border:2px;width:190mm;min-height:270mm;margin:0 auto;background:#fff;color:#111;padding:5mm;border:var(--sms-marksheet-border) solid #111;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;position:relative}.sms-marksheet-landscape{width:277mm;min-height:190mm}.sms-marksheet-modern_border{border-radius:5mm;border-color:var(--sms-ui-primary,#334155);box-shadow:0 12px 32px rgba(15,23,42,.12)}.sms-marksheet-header{text-align:center}.sms-marksheet-topline{display:flex;justify-content:space-between;min-height:18px;text-align:left;font-weight:700;font-size:11px}.sms-marksheet-school-row{display:flex;justify-content:center;align-items:center;gap:12px}.sms-marksheet-school-row img{width:56px;height:56px;object-fit:contain}.sms-marksheet-header h1{font-size:18px;line-height:1.2;margin:0;text-transform:uppercase}.sms-marksheet-header p{font-size:11px;margin:2px 0}.sms-marksheet-header h2{font-size:14px;margin:6px 0 2px;text-transform:uppercase}.sms-marksheet-header h3{font-size:15px;margin:3px 0 10px;text-decoration:underline}.sms-marksheet-student-meta{display:grid;grid-template-columns:2fr 1fr;gap:5px 20px;margin:8px 8mm 10px;font-size:11px}.sms-marksheet-student-meta>div{display:flex;gap:7px;align-items:baseline}.sms-marksheet-student-meta strong{border-bottom:1px solid #111;min-width:44px;flex:1}.sms-marksheet-body{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(52mm,1fr);align-items:stretch}.sms-marksheet-body.without-activities{grid-template-columns:1fr}.sms-marksheet-body table{border-collapse:collapse;width:100%;height:100%;font-size:10.5px}.sms-marksheet-body th,.sms-marksheet-body td{border:1px solid #111;padding:3px 4px;text-align:center}.sms-marksheet-body td:nth-child(2),.sms-marksheet-activities td:first-child{text-align:left}.sms-marksheet-subjects{min-width:0}.sms-marksheet-activities{margin-left:-1px}.sms-marksheet-activities thead tr:first-child th{text-decoration:underline;font-size:12px}.sms-marksheet-body .col-sn{width:9mm}.sms-marksheet-body .col-subject{text-transform:uppercase}.sms-marksheet-body .col-vertical{width:12mm;height:35mm;padding:2px}.sms-marksheet-body .col-vertical span{display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);text-transform:uppercase;white-space:nowrap}.sms-marksheet-body .col-remarks{width:24mm}.sms-marksheet-body tfoot th{font-size:11px}.sms-gpa-value{text-decoration:underline;font-size:12px!important}.sms-marksheet-summary{display:flex;gap:20px;justify-content:flex-end;border:1px solid #111;border-top:0;padding:5px 8px;font-size:10px}.sms-marksheet-note{font-size:10px;margin-top:8px}.sms-marksheet-footer{display:grid;gap:12px;margin-top:12px;font-size:10px}.sms-marksheet-date{text-align:center}.sms-marksheet-signatures{display:flex;justify-content:space-between;gap:15px}.sms-marksheet-signatures>div{min-width:35mm;text-align:center}.sms-marksheet-signatures span{display:block;border-top:1px solid #111;margin-bottom:4px}.sms-marksheet-sheet.is-compact{min-height:auto}.sms-marksheet-sheet.is-compact .sms-marksheet-body th,.sms-marksheet-sheet.is-compact .sms-marksheet-body td{padding:2px 3px}.sms-marksheet-sheet.is-monochrome *{color:#111!important;border-color:#111!important}.sms-marksheet-sheet.is-monochrome{background:#fff!important}.sms-marksheet-modern_border .sms-marksheet-body table{font-size:11px}.sms-marksheet-modern_border .sms-marksheet-header h1{color:#1e3a8a}.sms-marksheet-modern_border .sms-marksheet-header h3{text-decoration:none;letter-spacing:.08em}.sms-marksheet-modern_border:not(.is-monochrome) .sms-marksheet-body th{background:#eef2ff;color:#1e3a8a}.sms-marksheet-modern_border:not(.is-monochrome) .sms-marksheet-body th,.sms-marksheet-modern_border:not(.is-monochrome) .sms-marksheet-body td{border-color:#94a3b8}
@media(max-width:900px){.sms-studio-hero,.sms-studio-page-head{flex-direction:column}.sms-studio-stats,.sms-editor-grid,.sms-assignment-layout{grid-template-columns:1fr}.sms-template-preview-canvas{padding:8px}.sms-marksheet-sheet{transform-origin:top left}.sms-editor-span{grid-column:auto}}
@media print{body{background:#fff!important}.sms-marksheet-preview-page>.sms-studio-page-head,.sms-print-toolbar,.sms-front-header,.sms-front-sidebar,.sms-academic-context-bar{display:none!important}.sms-template-preview-canvas{padding:0;background:#fff;overflow:visible}.sms-marksheet-sheet{margin:0;box-shadow:none;page-break-after:always;break-after:page}.sms-marksheet-paper-a4.sms-marksheet-portrait{width:190mm;min-height:277mm}.sms-marksheet-paper-a4.sms-marksheet-landscape{width:277mm;min-height:190mm}@page{margin:10mm}}

/* EduCore Core v2.11.0 — Adaptive grade sheet and other activities */
.sms-studio-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.sms-studio-tabs{flex-wrap:wrap;overflow-x:auto}
.sms-activity-setup-layout{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:22px;align-items:start}
.sms-activity-field-form{position:sticky;top:88px}
.sms-activity-field-list .sms-panel-head p,.sms-activity-entry-workspace .sms-panel-head p{margin:4px 0 0;color:var(--sms-ui-muted,#64748b)}
.sms-activity-field-list td strong,.sms-activity-entry-table td strong{display:block}
.sms-activity-field-list td small,.sms-activity-entry-table td small,.sms-activity-entry-table th small{display:block;margin-top:3px;color:var(--sms-ui-muted,#64748b);font-size:11px;font-weight:500}
.sms-activity-archived{margin-top:24px;padding-top:18px;border-top:1px solid var(--sms-ui-border,#e2e8f0)}
.sms-activity-archived h3{margin:0 0 12px}
.sms-activity-entry-workspace{display:grid;gap:18px}
.sms-activity-filter{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:12px;align-items:end;padding:16px;border:1px solid var(--sms-ui-border,#e2e8f0);border-radius:14px;background:var(--sms-ui-surface,#fff)}
.sms-activity-filter label{display:grid;gap:6px}
.sms-activity-filter label>span{font-weight:700}
.sms-activity-help{padding:13px 15px;border:1px solid #c7d2fe;border-radius:12px;background:#eef2ff;color:#3730a3;line-height:1.5}
.sms-activity-entry-table{min-width:max(900px,100%)}
.sms-activity-entry-table th{min-width:130px;vertical-align:bottom}
.sms-activity-entry-table th:first-child{min-width:68px}
.sms-activity-entry-table th:nth-child(2){min-width:190px;text-align:left}
.sms-activity-entry-table td:nth-child(2){text-align:left}
.sms-activity-entry-table select,.sms-activity-entry-table input{width:100%;min-width:110px}
.sms-auto-activity-value{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:6px 9px;border-radius:999px;background:var(--sms-ui-soft,#eef2ff);font-weight:800;color:var(--sms-ui-primary,#4f46e5);white-space:nowrap}

.sms-marksheet-sheet{--sms-marksheet-head-height:34mm;--sms-marksheet-activity-width:54mm}
.sms-marksheet-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(46mm,var(--sms-marksheet-activity-width));align-items:stretch;width:100%}
.sms-marksheet-body.without-activities{grid-template-columns:minmax(0,1fr)}
.sms-marksheet-subjects,.sms-marksheet-activities{display:flex;min-width:0;align-items:stretch}
.sms-marksheet-body table{table-layout:auto;width:100%;height:100%;font-size:10.5px}
.sms-marksheet-body th,.sms-marksheet-body td{box-sizing:border-box;vertical-align:middle;line-height:1.25;overflow-wrap:break-word;word-break:normal;hyphens:none}
.sms-marksheet-subjects thead tr{height:var(--sms-marksheet-head-height)}
.sms-marksheet-activities thead{height:var(--sms-marksheet-head-height)}
.sms-marksheet-activities .sms-activity-title-row{height:9mm}
.sms-marksheet-activities .sms-activity-head-row{height:25mm}
.sms-marksheet-activities .sms-activity-title-row th{text-decoration:underline;font-size:12px;white-space:nowrap}
.sms-marksheet-activities .sms-activity-head-row th{padding:4px 5px;white-space:normal}
.sms-marksheet-body .sms-col-sn{width:7.5mm}
.sms-marksheet-body .sms-col-subject{width:auto}
.sms-marksheet-body .sms-col-metric{width:13.5mm}
.sms-marksheet-body .sms-col-credit{width:14mm}
.sms-marksheet-body .sms-col-grade{width:13mm}
.sms-marksheet-body .sms-col-grade-point{width:14mm}
.sms-marksheet-body .sms-col-remarks{width:23mm}
.sms-marksheet-body .sms-col-activity-field{width:64%}
.sms-marksheet-body .sms-col-activity-value{width:36%}
.sms-marksheet-body .col-sn{width:auto;min-width:7.5mm;white-space:nowrap;padding-left:2px;padding-right:2px}
.sms-marksheet-body .col-subject{width:auto;min-width:32mm;text-transform:uppercase}
.sms-marksheet-body .col-vertical{width:auto;min-width:12.5mm;height:var(--sms-marksheet-head-height);padding:2px 3px;white-space:nowrap}
.sms-marksheet-body .col-vertical span{max-height:30mm;white-space:nowrap;line-height:1}
.sms-marksheet-body .col-remarks{width:auto;min-width:19mm;max-width:29mm}
.sms-cell-sn,.sms-cell-number,.sms-cell-grade,.sms-gpa-value,.sms-cell-activity-value{white-space:nowrap;overflow-wrap:normal!important;word-break:keep-all!important;font-variant-numeric:tabular-nums}
.sms-cell-subject{text-align:left!important;min-width:32mm}
.sms-cell-remarks,.sms-gpa-descriptor{white-space:normal;overflow-wrap:anywhere}
.sms-gpa-descriptor{font-size:10px!important;line-height:1.15;text-align:center}
.sms-marksheet-activities{margin-left:-1px;min-width:46mm}
.sms-marksheet-activities td:first-child{text-align:left;padding-left:6px}
.sms-marksheet-activities td:last-child{text-align:center;padding-left:5px;padding-right:5px}
.sms-marksheet-activities tbody tr{height:auto}
.sms-marksheet-landscape{--sms-marksheet-activity-width:62mm}
.sms-marksheet-landscape .sms-marksheet-body .sms-col-subject{width:auto}
.sms-marksheet-landscape .sms-marksheet-body .sms-col-remarks{width:28mm}

@media(max-width:900px){
 .sms-studio-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sms-activity-setup-layout{grid-template-columns:1fr}
 .sms-activity-field-form{position:static}
 .sms-activity-filter{grid-template-columns:1fr}
}
@media(max-width:520px){
 .sms-studio-stats{grid-template-columns:1fr}
 .sms-studio-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:0;gap:7px}
 .sms-studio-tabs a{border:1px solid var(--sms-ui-border,#e2e8f0);border-radius:9px;text-align:center;padding:9px 8px}
 .sms-studio-tabs a.is-active{border-color:var(--sms-ui-primary,#4f46e5);border-bottom-color:var(--sms-ui-primary,#4f46e5);background:var(--sms-ui-soft,#eef2ff)}
}


/* EduCore Core v2.11.1 — Classic Terminal Grade Sheet precision */
.sms-marksheet-sheet.sms-v2111-grade-sheet{
 --sms-marksheet-head-height:22mm;
 --sms-marksheet-activity-title-height:7mm;
 --sms-marksheet-activity-column:51mm;
}
.sms-v2111-grade-sheet .sms-marksheet-student-meta{
 grid-template-columns:minmax(0,1.75fr) minmax(38mm,.85fr);
 column-gap:15mm;
 row-gap:4px;
 margin:7px 5mm 9px;
 font-size:10px;
}
.sms-v2111-grade-sheet .sms-marksheet-student-meta>div{min-width:0;gap:6px;align-items:baseline}
.sms-v2111-grade-sheet .sms-marksheet-student-meta strong{min-width:0;flex:1;padding:0 2px 1px;white-space:nowrap}
.sms-v2111-grade-sheet .sms-marksheet-student-meta .sms-meta-roll strong{
 flex:0 0 auto;
 width:22mm;
 max-width:22mm;
 text-align:left;
}
.sms-v2111-grade-sheet .sms-marksheet-student-meta .sms-meta-class strong{
 flex:0 0 auto;
 min-width:25mm;
 max-width:34mm;
}
.sms-v2111-grade-sheet .sms-marksheet-body{
 grid-template-columns:minmax(0,1fr) minmax(48mm,var(--sms-marksheet-activity-column));
 width:100%;
 align-items:stretch;
}
.sms-v2111-grade-sheet .sms-marksheet-subjects,
.sms-v2111-grade-sheet .sms-marksheet-activities{height:100%;min-width:0;align-self:stretch}
.sms-v2111-grade-sheet .sms-marksheet-body table{
 table-layout:auto;
 height:100%;
 font-size:9.6px;
 line-height:1.18;
}
.sms-v2111-grade-sheet .sms-marksheet-body th,
.sms-v2111-grade-sheet .sms-marksheet-body td{
 padding:3.5px 4px;
 vertical-align:middle;
 overflow-wrap:normal;
 word-break:normal;
}
.sms-v2111-grade-sheet .sms-marksheet-subjects thead .sms-subject-head-row{height:var(--sms-marksheet-head-height)}
.sms-v2111-grade-sheet .sms-marksheet-subjects thead th{
 height:var(--sms-marksheet-head-height);
 padding:4px 3px;
 font-size:8.8px;
 line-height:1.15;
 white-space:normal;
 text-transform:uppercase;
}
.sms-v2111-grade-sheet .sms-marksheet-body .col-metric{
 width:auto;
 min-width:14mm;
 height:auto;
 padding:4px 3px;
 white-space:normal;
}
.sms-v2111-grade-sheet .sms-marksheet-body .col-metric span{
 display:block;
 writing-mode:horizontal-tb;
 transform:none;
 max-height:none;
 white-space:normal;
 line-height:1.15;
}
.sms-v2111-grade-sheet .sms-marksheet-body .sms-col-sn{width:7mm}
.sms-v2111-grade-sheet .sms-marksheet-body .sms-col-subject{width:auto}
.sms-v2111-grade-sheet .sms-marksheet-body .sms-col-credit{width:14mm}
.sms-v2111-grade-sheet .sms-marksheet-body .sms-col-marks{width:17mm}
.sms-v2111-grade-sheet .sms-marksheet-body .sms-col-grade{width:16mm}
.sms-v2111-grade-sheet .sms-marksheet-body .sms-col-grade-point{width:15mm}
.sms-v2111-grade-sheet .sms-marksheet-body .sms-col-remarks{width:22mm}
.sms-v2111-grade-sheet .sms-marksheet-body .col-sn{min-width:7mm}
.sms-v2111-grade-sheet .sms-marksheet-body .col-subject,
.sms-v2111-grade-sheet .sms-cell-subject{min-width:30mm;text-transform:none}
.sms-v2111-grade-sheet .sms-marksheet-body .col-remarks{min-width:19mm;max-width:25mm}
.sms-v2111-grade-sheet .sms-cell-number,
.sms-v2111-grade-sheet .sms-cell-grade,
.sms-v2111-grade-sheet .sms-cell-activity-value{font-size:9.6px;white-space:nowrap}
.sms-v2111-grade-sheet .sms-cell-subject,
.sms-v2111-grade-sheet .sms-cell-remarks,
.sms-v2111-grade-sheet .sms-marksheet-activities td:first-child{line-height:1.2}
.sms-v2111-grade-sheet .sms-gpa-descriptor{
 font-size:8.8px!important;
 line-height:1.1!important;
 white-space:normal;
 word-break:normal;
 overflow-wrap:normal;
}
.sms-v2111-grade-sheet .sms-marksheet-activities{margin-left:-1px;min-width:48mm}
.sms-v2111-grade-sheet .sms-marksheet-activities thead{height:var(--sms-marksheet-head-height)}
.sms-v2111-grade-sheet .sms-marksheet-activities .sms-activity-title-row{height:var(--sms-marksheet-activity-title-height)}
.sms-v2111-grade-sheet .sms-marksheet-activities .sms-activity-head-row{height:calc(var(--sms-marksheet-head-height) - var(--sms-marksheet-activity-title-height))}
.sms-v2111-grade-sheet .sms-marksheet-activities .sms-activity-title-row th{
 height:var(--sms-marksheet-activity-title-height);
 padding:2px 4px;
 font-size:10px;
 line-height:1.05;
}
.sms-v2111-grade-sheet .sms-marksheet-activities .sms-activity-head-row th{
 height:calc(var(--sms-marksheet-head-height) - var(--sms-marksheet-activity-title-height));
 padding:3px 4px;
 font-size:8.8px;
 line-height:1.12;
}
.sms-v2111-grade-sheet .sms-marksheet-body .sms-col-activity-field{width:65%}
.sms-v2111-grade-sheet .sms-marksheet-body .sms-col-activity-value{width:35%}
.sms-v2111-grade-sheet .sms-marksheet-activities tbody tr{height:auto}
.sms-v2111-grade-sheet .sms-marksheet-activities tbody td{padding-top:3px;padding-bottom:3px}
.sms-v2111-grade-sheet.sms-marksheet-landscape{--sms-marksheet-activity-column:58mm}
.sms-v2111-grade-sheet.sms-marksheet-landscape .sms-marksheet-body table{font-size:10px}
.sms-v2111-grade-sheet.sms-marksheet-landscape .sms-marksheet-body .sms-col-subject{width:auto}
@media(max-width:900px){
 .sms-v2111-post-save-grade-sheet-hotfix .sms-template-preview-canvas{overflow:auto}
 .sms-marksheet-sheet.sms-v2111-grade-sheet{flex:none}
}
