/* CCE Assessment — Public CSS */
.cce-wrap { font-family: "Noto Sans", "Mangal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color:#222; max-width: 920px; margin: 0 auto; padding: 16px; line-height:1.55; }
.cce-error { background:#fee2e2; color:#991b1b; padding:14px; border-radius:8px; border:1px solid #fecaca; }

.cce-assessment-wrap .cce-a-header { background:linear-gradient(135deg,#1d4ed8,#3b82f6); color:#fff; padding:22px; border-radius:12px; margin-bottom:18px; }
.cce-assessment-wrap .cce-a-header h2 { margin:0 0 8px; color:#fff; font-size:22px; }
.cce-assessment-wrap .meta { display:flex; flex-wrap:wrap; gap:14px; font-size:14px; opacity:.95; margin:0; }
.cce-assessment-wrap .meta span { background:rgba(255,255,255,.16); padding:4px 10px; border-radius:6px; }
.cce-assessment-wrap .cce-instructions { margin-top:10px; background:rgba(255,255,255,.1); padding:10px 14px; border-radius:8px; font-size:14px; }
.cce-timer b { font-variant-numeric: tabular-nums; }

.cce-student-details { border:1px solid #e5e7eb; padding:14px 18px; border-radius:10px; margin-bottom:18px; background:#f9fafb; }
.cce-student-details legend { font-weight:600; color:#1d4ed8; padding:0 8px; }
.cce-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; }
.cce-grid-2 label { display:block; font-size:13px; font-weight:600; }
.cce-grid-2 input { width:100%; padding:8px 10px; border:1px solid #d1d5db; border-radius:6px; margin-top:4px; font-size:14px; }

.cce-q-block { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:16px; margin-bottom:14px; box-shadow:0 1px 2px rgba(0,0,0,.03); }
.cce-q-block h4 { margin:0 0 10px; font-size:16px; line-height:1.5; }
.cce-q-block .cce-marks { color:#6b7280; font-weight:500; font-size:13px; margin-left:4px; }
.cce-q-img { max-width:100%; max-height:240px; border:1px solid #e5e7eb; border-radius:6px; }
.cce-q-input label.cce-opt { display:block; padding:8px 12px; border:1px solid #e5e7eb; border-radius:6px; margin:4px 0; cursor:pointer; transition:.2s; }
.cce-q-input label.cce-opt:hover { background:#eff6ff; border-color:#93c5fd; }
.cce-q-input label.cce-opt input { margin-right:8px; }
.cce-q-input .cce-text-ans { width:100%; padding:8px 10px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; }
.cce-q-input .cce-note { font-size:12px; color:#6b7280; margin:4px 0 0; }
.cce-match { width:100%; }
.cce-match td { padding:6px; }
.cce-match select { padding:6px; border:1px solid #d1d5db; border-radius:6px; }

.cce-submit-row { display:flex; justify-content:space-between; align-items:center; margin:18px 0; }
.cce-btn { display:inline-block; padding:10px 22px; background:#e5e7eb; color:#111; text-decoration:none; border:none; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; transition:.2s; }
.cce-btn-primary { background:#1d4ed8; color:#fff; }
.cce-btn-primary:hover { background:#1e40af; }
.cce-draft-status { font-size:12px; color:#16a34a; }

/* Result */
.cce-result { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:20px; }
.cce-result-summary h3 { margin-top:0; color:#1d4ed8; }
.cce-result-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:14px 0; }
.cce-result-grid .block { text-align:center; background:#f3f4f6; padding:14px; border-radius:10px; }
.cce-result-grid .num { font-size:24px; font-weight:800; color:#1d4ed8; }
.cce-result-grid .lbl { font-size:12px; color:#6b7280; text-transform:uppercase; letter-spacing:.5px; }
.cce-result-grid .grade .num { color:#15803d; font-size:32px; }
.cce-remark { background:#fef3c7; border-left:4px solid #f59e0b; padding:10px 14px; border-radius:4px; font-size:14px; }
.cce-review { padding-left:18px; }
.cce-review-item { padding:14px; margin:10px 0; border-radius:10px; border-left:4px solid; background:#fafafa; }
.cce-review-item.is-correct { border-color:#15803d; background:#f0fdf4; }
.cce-review-item.is-wrong { border-color:#b91c1c; background:#fef2f2; }
.cce-review-item .mark { font-weight:800; margin-right:6px; }
.cce-review-item.is-correct .mark { color:#15803d; }
.cce-review-item.is-wrong .mark { color:#b91c1c; }
.cce-review-item .ans { margin-top:6px; font-size:14px; }
.cce-review-item .correct-ans { color:#15803d; }
.cce-review-item .meta { margin-top:4px; font-size:12px; color:#6b7280; }

/* List & dashboard */
.cce-list .cce-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.cce-card { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:14px; }
.cce-card h4 { margin:0 0 6px; color:#1d4ed8; }
.cce-card .meta { color:#6b7280; font-size:13px; }
.cce-dashboard .cce-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:14px 0; }
.cce-dashboard .stat { background:#eff6ff; padding:18px; border-radius:10px; text-align:center; }
.cce-dashboard .stat .num { font-size:28px; font-weight:800; color:#1d4ed8; }
.cce-dashboard .stat .lbl { font-size:12px; color:#444; text-transform:uppercase; letter-spacing:.5px; }

/* Responsive */
@media (max-width: 720px) {
    .cce-grid-2 { grid-template-columns: 1fr; }
    .cce-result-grid { grid-template-columns: repeat(2,1fr); }
    .cce-dashboard .cce-stats { grid-template-columns: 1fr; }
    .cce-assessment-wrap .cce-a-header h2 { font-size:18px; }
    .cce-submit-row { flex-direction:column; gap:10px; }
}

/* Start / Payment */
.cce-start-row { margin-top:14px; text-align:center; }
.cce-start-row .cce-note { font-size:12px; color:#6b7280; margin-top:8px; }
.cce-fee { background:#fef3c7 !important; color:#78350f; font-weight:700; }
.cce-pay-status { margin-left:10px; font-size:13px; }
.cce-timer.cce-timer-warn b { color:#fde047; animation:cce-blink 1s infinite; }
@keyframes cce-blink { 50% { opacity:.4; } }
.cce-step-h { color:#1d4ed8; border-bottom:2px solid #eff6ff; padding-bottom:6px; margin:0 0 14px; }

/* Inline Marksheet (after submit) */
/* marksheet styles rewritten v1.4.0 */
@media print {
    .cce-no-print { display:none !important; }
    body { background:#fff; }
    .cce-marksheet-inline { box-shadow:none; border:none; padding:0; }
    /* Print isolation — hide EVERYTHING except the marksheet so browser Ctrl+P
       from the assessment page produces a clean A4 PDF with no theme chrome. */
    body > *:not(.cce-print-root) { display:none !important; }
    .cce-result, .cce-print-root { display:block !important; }
    .cce-result .cce-marksheet-inline .ms-q { page-break-inside: avoid; }
    header, footer, aside, nav, .site-header, .site-footer,
    .entry-footer, .comments-area, .related-posts, .post-navigation,
    #wpadminbar, #masthead, #colophon { display:none !important; }
}
@media (max-width: 720px) {
    .cce-marksheet-inline { padding:18px; }
    .cce-marksheet-inline .ms-meta { grid-template-columns:1fr; }
    .cce-marksheet-inline .ms-score { flex-wrap:wrap; gap:10px; }
}

/* ============ Pagination (student worksheet) ============ */
.cce-progress {
    float:right; background:#eff6ff; color:#1d4ed8; padding:2px 10px;
    border-radius:12px; font-size:13px; font-weight:700;
}
.cce-progress-bar {
    height:6px; background:#e5e7eb; border-radius:3px; overflow:hidden;
    margin:0 0 18px;
}
.cce-progress-bar-fill {
    height:100%; background:linear-gradient(90deg,#1d4ed8,#3b82f6);
    transition:width .35s ease-out;
}
.cce-pages .cce-page { animation: cce-fadein .25s ease-out; }
@keyframes cce-fadein { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.cce-nav-row {
    display:flex; justify-content:space-between; align-items:center;
    gap:10px; margin:20px 0 10px; padding:14px;
    background:#fafafa; border:1px solid #e5e7eb; border-radius:10px;
}
.cce-nav-row .cce-btn { min-width:130px; }
.cce-nav-row .cce-btn:disabled {
    opacity:.4; cursor:not-allowed;
}
.cce-nav-row .cce-submit-btn {
    background:#15803d !important; color:#fff !important;
    box-shadow:0 4px 12px rgba(21,128,61,.3);
}
.cce-nav-row .cce-submit-btn:hover { background:#166534 !important; }

@media (max-width: 720px) {
    .cce-nav-row { flex-direction:row; }
    .cce-nav-row .cce-btn { min-width:auto; flex:1; padding:12px 8px; font-size:14px; }
    .cce-progress { font-size:12px; padding:2px 8px; }
}

/* ============ PWA / Mobile app-shell polish ============ */
@media (display-mode: standalone) {
    /* When installed as a PWA, hide WP theme header via CSS if possible */
    body { padding-top: env(safe-area-inset-top); }
    .cce-wrap { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
.cce-btn {
    min-height:40px; /* mobile tap target */
    -webkit-tap-highlight-color:transparent;
}
.cce-btn-primary:active { transform:translateY(1px); }

/* ================================================================
   CCE v1.4.0 — Assessment List Card Grid
   (appended; all existing styles preserved above)
   ================================================================ */

/* ── List wrapper ────────────────────────────────────────────────── */
.cce-list-wrap {
    padding: 20px 4px;
    font-family: "Noto Sans", "Mangal", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.cce-list-heading {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    color: #111827;
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1d4ed8;
    display: inline-block;
}

/* ── Card Grid ───────────────────────────────────────────────────── */
.cce-card-grid {
    display: grid;
    grid-template-columns: repeat(var(--cce-cols, 3), 1fr);
    gap: 22px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .cce-card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
    .cce-card-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Single Card ─────────────────────────────────────────────────── */
/* Override the basic .cce-card from the original CSS */
.cce-card-grid .cce-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    padding: 0;            /* reset the original padding */
}
.cce-card-grid .cce-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.13);
}
.cce-card-grid .cce-card h4 { margin: 0; }  /* reset original h4 */

/* Card Header */
.cce-card-header {
    padding: 18px 20px 14px;
    color: #fff;
}
.cce-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #fff;
}

/* Badges */
.cce-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cce-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.22);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Card Body */
.cce-card-body { flex: 1; padding: 14px 18px; }
.cce-card-desc { font-size: 13px; color: #6b7280; margin: 0 0 12px; line-height: 1.5; }

/* Meta row */
.cce-card-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.cce-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}
.cce-meta-icon { font-size: 13px; }
.cce-meta-label { color: #9ca3af; }
.cce-meta-value { font-weight: 700; color: #111827; }

/* Card Footer / CTA */
.cce-card-footer {
    padding: 12px 18px 16px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}
.cce-card-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: #1d4ed8;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background .2s, transform .15s;
    cursor: pointer;
    min-height: 44px;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}
.cce-card-cta:hover { background: #1e40af; transform: translateY(-1px); color: #fff !important; }
.cce-card-cta:active { transform: translateY(0); }

/* Empty state */
.cce-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}
.cce-empty-icon { font-size: 44px; margin-bottom: 10px; }
.cce-empty p { font-size: 15px; margin: 0; }

/* ================================================================
   CCE v1.4.0 — Marksheet & Result — Fully Responsive
   Mobile + Desktop + PWA standalone
   ================================================================ */

/* ── Result wrapper ──────────────────────────────────────────────── */
.cce-result {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* ── Action buttons row ──────────────────────────────────────────── */
.ms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 14px 0;
}
.ms-actions .cce-btn {
    flex: 1 1 auto;
    max-width: 280px;
    text-align: center;
}

/* ── Marksheet card ──────────────────────────────────────────────── */
.cce-marksheet-inline {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    /* FIXED: reduced padding so mobile has enough content width */
    padding: 20px 18px;
    font-family: "Noto Sans", "Mangal", Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

/* ── School header ───────────────────────────────────────────────── */
.cce-marksheet-inline .ms-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 3px double #1d4ed8;
    padding-bottom: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.cce-marksheet-inline .ms-logo {
    max-height: 58px;
    width: auto;
    flex-shrink: 0;
}
.cce-marksheet-inline .ms-header-text h2 {
    margin: 0 0 3px;
    color: #1d4ed8;
    font-size: 18px;
    line-height: 1.3;
}
.cce-marksheet-inline .ms-header-text p {
    margin: 0;
    color: #555;
    font-size: 13px;
}

/* ── Title band ──────────────────────────────────────────────────── */
.cce-marksheet-inline .ms-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #374151;
    background: #eff6ff;
    padding: 9px 12px;
    border-radius: 6px;
}

/* ── Meta grid ───────────────────────────────────────────────────── */
.cce-marksheet-inline .ms-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 20px;
    font-size: 13.5px;
    margin-bottom: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
}
.cce-marksheet-inline .ms-meta-lbl {
    color: #1d4ed8;
    font-weight: 700;
}
.cce-marksheet-inline .ms-meta-val {
    color: #111;
}

/* ── Score tiles ─────────────────────────────────────────────────── */
.cce-marksheet-inline .ms-score {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 10px;
    margin: 14px 0;
}
.cce-marksheet-inline .ms-score-tile {
    text-align: center;
}
.cce-marksheet-inline .ms-score-num {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1.2;
    word-break: break-all;
}
.cce-marksheet-inline .ms-score-grade .ms-score-num {
    color: #15803d;
    font-size: clamp(24px, 6vw, 34px);
}
.cce-marksheet-inline .ms-score-lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: .4px;
    margin-top: 3px;
}

/* ── Remark ──────────────────────────────────────────────────────── */
.cce-marksheet-inline .ms-remark {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13.5px;
    margin: 14px 0;
    line-height: 1.5;
}

/* ── Section heading ─────────────────────────────────────────────── */
.cce-marksheet-inline .ms-h {
    color: #1d4ed8;
    border-bottom: 2px solid #eff6ff;
    padding-bottom: 6px;
    margin: 18px 0 12px;
    font-size: 15px;
}

/* ── Question review list ────────────────────────────────────────── */
.cce-marksheet-inline .ms-review {
    padding: 0;
    list-style: none;
    margin: 0;
    counter-reset: qcnt;
}

.cce-marksheet-inline .ms-q {
    padding: 12px 14px;
    margin: 10px 0;
    border-radius: 10px;
    border-left: 4px solid #e5e7eb;
    background: #fafafa;
    page-break-inside: avoid;
    overflow: hidden;
}
.cce-marksheet-inline .ms-q.is-correct {
    border-color: #15803d;
    background: #f0fdf4;
}
.cce-marksheet-inline .ms-q.is-wrong {
    border-color: #b91c1c;
    background: #fef2f2;
}

/* ── Question header row: [✓/✗]  [Q.N]  [badge] ─────────────────── */
.cce-marksheet-inline .ms-q-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}
.cce-marksheet-inline .ms-mark {
    font-size: 17px;
    line-height: 1;
    flex-shrink: 0;
}
.cce-marksheet-inline .ms-q.is-correct .ms-mark { color: #15803d; }
.cce-marksheet-inline .ms-q.is-wrong   .ms-mark { color: #b91c1c; }

.cce-marksheet-inline .ms-q-num {
    font-weight: 700;
    color: #6b7280;
    font-size: 13px;
    flex-shrink: 0;
}

/* Badge pushed to right */
.cce-marksheet-inline .ms-q-marks {
    margin-left: auto;
    flex-shrink: 0;
    background: #1d4ed8;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.cce-marksheet-inline .ms-q.is-wrong .ms-q-marks {
    background: #b91c1c;
}

/* ── Question body text — FULL width, no squeezing ──────────────── */
.cce-marksheet-inline .ms-q-body {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: #111827;
    /* KEY FIX: always full width, never wrapped by badge */
    display: block;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin-bottom: 8px;
}

/* Question image */
.cce-marksheet-inline .ms-q-img {
    display: block;
    max-width: 100%;
    max-height: 160px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* ── Answer rows ─────────────────────────────────────────────────── */
.cce-marksheet-inline .ms-ans {
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.cce-marksheet-inline .ms-your-ans strong   { color: #374151; }
.cce-marksheet-inline .ms-correct-ans       { color: #15803d; }
.cce-marksheet-inline .ms-correct-ans strong{ color: #15803d; }

.cce-marksheet-inline .ms-match-list {
    margin: 4px 0 0 16px;
    padding: 0;
}
.cce-marksheet-inline .ms-match-list li {
    font-size: 13px;
    line-height: 1.6;
}

/* ── Signature footer ────────────────────────────────────────────── */
.cce-marksheet-inline .ms-footer {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #374151;
    flex-wrap: wrap;
    gap: 12px;
}
.cce-marksheet-inline .ms-sig {
    text-align: center;
    flex: 1 1 80px;
}
.cce-marksheet-inline .ms-sig-line {
    border-top: 1px solid #333;
    margin: 28px 8px 4px;
}

/* ================================================================
   Responsive: Tablet (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
    .cce-marksheet-inline {
        padding: 16px 14px;
        border-radius: 10px;
    }
    .cce-marksheet-inline .ms-meta {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .cce-marksheet-inline .ms-score {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ================================================================
   Responsive: Mobile (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
    .cce-marksheet-inline {
        /* Minimum sensible padding on small phones */
        padding: 12px 10px;
        border-radius: 8px;
        border: none;
        box-shadow: none;
    }
    .cce-marksheet-inline .ms-header { gap: 10px; }
    .cce-marksheet-inline .ms-header-text h2 { font-size: 16px; }
    .cce-marksheet-inline .ms-title { font-size: 13px; padding: 7px 10px; }
    .cce-marksheet-inline .ms-meta { padding: 10px; font-size: 13px; }
    .cce-marksheet-inline .ms-score { padding: 10px 6px; }
    .cce-marksheet-inline .ms-score-num { font-size: 20px; }
    .cce-marksheet-inline .ms-score-grade .ms-score-num { font-size: 26px; }
    .cce-marksheet-inline .ms-score-lbl { font-size: 9px; }
    .cce-marksheet-inline .ms-q { padding: 10px 10px; }
    .cce-marksheet-inline .ms-q-body { font-size: 14px; }
    .cce-marksheet-inline .ms-q-marks { font-size: 11px; padding: 2px 8px; }
    .cce-marksheet-inline .ms-footer { justify-content: space-around; }
    .ms-actions { padding: 0 4px; }
    .ms-actions .cce-btn { max-width: 100%; font-size: 14px; padding: 12px 14px; }
}

/* ================================================================
   PWA standalone mode
   ================================================================ */
@media (display-mode: standalone) {
    .cce-marksheet-inline {
        padding: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
        padding-top: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* ================================================================
   Print / Save as PDF
   ================================================================ */
@media print {
    .cce-no-print, .ms-actions { display: none !important; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .cce-result, .cce-print-root { display: block !important; }
    .cce-marksheet-inline {
        box-shadow: none;
        border: none;
        padding: 0;
        border-radius: 0;
    }
    .cce-marksheet-inline .ms-q { page-break-inside: avoid; }
    .cce-marksheet-inline .ms-score {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .cce-marksheet-inline .ms-meta {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ── New Student button ─────────────────────────────────────────── */
.cce-btn-new-student {
    background: #059669;
    color: #fff;
    border: none;
}
.cce-btn-new-student:hover { background: #047857; }
.cce-btn-new-student:active { transform: translateY(1px); }
