/* CCE Karyapatrak — Frontend Styles v1.4 — Premium Educational UI */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

/* ── Reset ── */
.cce-kp-root *{ box-sizing:border-box; font-family:'Noto Sans Devanagari',sans-serif; }
.cce-kp-root  { width:100%; max-width:680px; margin:0 auto; }

/* ══════════════════════════════════════
   ENTRY CARD
══════════════════════════════════════ */
.cce-entry-card{
  border-radius:24px; overflow:hidden;
  box-shadow:0 24px 64px rgba(79,70,229,.22), 0 4px 16px rgba(0,0,0,.06);
  background:#fff; border:1px solid rgba(99,102,241,.1);
  animation:cce-slideup .4s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes cce-slideup{ from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }

/* Hero gradient */
.cce-hero{
  position:relative; overflow:hidden; color:#fff; padding:28px 24px 24px;
  background:linear-gradient(135deg,#4338ca 0%,#7c3aed 55%,#9333ea 100%);
}
.cce-hero::before{
  content:''; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cce-hero-deco  { position:absolute; border-radius:50%; background:rgba(255,255,255,.08); pointer-events:none; }
.cce-hero-deco-1{ width:160px; height:160px; top:-60px; right:-40px; }
.cce-hero-deco-2{ width:200px; height:200px; bottom:-90px; left:-50px; }
.cce-hero-content{ position:relative; z-index:1; }
.cce-hero-badge{
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.2); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.25); border-radius:20px;
  padding:5px 14px; font-size:10px; font-weight:700;
  letter-spacing:.7px; text-transform:uppercase; margin-bottom:16px;
}
/* Info grid 2×2 */
.cce-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.cce-info-tile {
  background:rgba(255,255,255,.14); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.18); border-radius:16px; padding:10px 14px;
  transition:background .2s;
}
.cce-info-tile:hover{ background:rgba(255,255,255,.2); }
.cce-info-label{ display:block; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; opacity:.6; margin-bottom:3px; }
.cce-info-val  { display:block; font-size:13px; font-weight:700; line-height:1.4; }
/* Stats row */
.cce-hero-stats{ display:flex; gap:10px; margin-top:4px; flex-wrap:wrap; }
.cce-hero-stat {
  display:inline-flex; align-items:center; gap:5px;
  background:rgba(255,255,255,.18); border-radius:20px;
  padding:5px 12px; font-size:11px; font-weight:700;
}

/* LO's section */
.cce-los-section{ padding:16px 20px 14px; background:linear-gradient(135deg,#f5f3ff,#ede9fe); border-bottom:1px solid #ddd6fe; }
.cce-los-title  { display:flex; align-items:center; gap:7px; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.6px; color:#5b21b6; margin-bottom:10px; }
.cce-los-dot    { width:7px; height:7px; border-radius:50%; background:#7c3aed; flex-shrink:0; }
.cce-los-list   { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px; }
.cce-lo-item    { display:flex; align-items:flex-start; gap:9px; font-size:12px; color:#374151; line-height:1.6; }
.cce-lo-badge   { flex-shrink:0; width:20px; height:20px; border-radius:50%; background:#ddd6fe; color:#6d28d9; font-size:10px; font-weight:800; display:flex; align-items:center; justify-content:center; margin-top:2px; }
.cce-lo-text    { flex:1; }

/* Name entry */
.cce-entry-form { padding:20px 24px 16px; }
.cce-name-label { display:block; font-size:11px; font-weight:700; color:#6b7280; text-transform:uppercase; letter-spacing:.6px; margin-bottom:10px; }
.cce-name-input {
  width:100%; border:2px solid #e5e7eb; border-radius:16px;
  padding:15px 18px; font-size:15px; font-family:inherit; color:#111827;
  outline:none; transition:border-color .2s, box-shadow .2s, transform .1s;
}
.cce-name-input:focus{
  border-color:#7c3aed; box-shadow:0 0 0 4px rgba(124,58,237,.12);
  transform:translateY(-1px);
}
.cce-name-hint  { font-size:12px; color:#7c3aed; margin:6px 0 0 4px; font-weight:600; display:flex; align-items:center; gap:4px; }
.cce-start-btn  {
  width:100%; margin-top:14px; padding:16px; border:none; border-radius:18px;
  font-size:15px; font-weight:700; cursor:pointer; font-family:inherit;
  background:linear-gradient(135deg,#6366f1,#9333ea);
  color:#fff; box-shadow:0 6px 20px rgba(99,102,241,.4);
  letter-spacing:.3px; transition:all .2s;
}
.cce-start-btn:disabled{ background:#e5e7eb; color:#9ca3af; box-shadow:none; cursor:not-allowed; }
.cce-start-btn:not(:disabled):hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(99,102,241,.5); }
.cce-start-btn:not(:disabled):active{ transform:translateY(0); }

/* Card footer */
.cce-card-footer  { padding:12px 24px 16px; border-top:1px solid #f3f4f6; }
.cce-footer-powered{ display:flex; align-items:center; justify-content:center; gap:6px; }
.cce-footer-label { font-size:10px; color:#9ca3af; }
.cce-footer-brand { font-size:11px; font-weight:800; color:#6366f1; letter-spacing:.3px; }
.cce-footer-sep   { font-size:10px; color:#d1d5db; }
.cce-footer-author{ font-size:10px; color:#6b7280; }
.cce-share-footer { text-align:center; font-size:11px; font-weight:600; color:#a5b4fc; margin-top:10px; letter-spacing:.5px; }

/* ══════════════════════════════════════
   WORKSHEET VIEW — DESKTOP + MOBILE
══════════════════════════════════════ */
.cce-worksheet-view{
  background:#f0f4ff; border-radius:20px; overflow:hidden;
  box-shadow:0 8px 32px rgba(0,0,0,.08);
  animation:cce-slideup .35s ease both;
}

/* Sticky Header */
.cce-ws-header{
  background:linear-gradient(135deg,#1e3a8a 0%,#2d2b9e 50%,#3730a3 100%);
  color:#fff; padding:16px 20px 12px; position:sticky; top:0; z-index:20;
  box-shadow:0 4px 16px rgba(30,58,138,.35);
}
.cce-ws-school      { font-size:15px; font-weight:800; text-align:center; margin-bottom:2px; letter-spacing:.2px; }
.cce-ws-header-title{ font-size:11px; text-align:center; opacity:.75; margin:0 0 8px; font-weight:600; letter-spacing:.4px; }
.cce-ws-header-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 16px; font-size:11px; margin-bottom:6px; opacity:.9; }
.cce-ws-student-row { text-align:center; font-size:12px; opacity:.85; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,.12); }
.cce-ws-student-name{ font-weight:800; }

/* Timer Bar */
.cce-timer-bar{
  display:flex; align-items:center; gap:8px; margin-top:8px;
  background:rgba(255,255,255,.1); border-radius:12px; padding:7px 12px;
  border:1px solid rgba(255,255,255,.12);
}
.cce-timer-icon{ font-size:13px; flex-shrink:0; }
.cce-timer-val {
  font-size:14px; font-weight:800; min-width:40px;
  font-variant-numeric:tabular-nums; letter-spacing:.5px;
}
.cce-timer-track{ flex:1; height:6px; background:rgba(255,255,255,.15); border-radius:3px; overflow:hidden; }
.cce-timer-fill { height:100%; background:#4ade80; border-radius:3px; transition:width 1s linear; }
.cce-timer-bar.cce-timer-warn  .cce-timer-fill{ background:#fbbf24; }
.cce-timer-bar.cce-timer-warn  .cce-timer-val { color:#fde68a; }
.cce-timer-bar.cce-timer-danger .cce-timer-fill{ background:#f87171; }
.cce-timer-bar.cce-timer-danger .cce-timer-val { color:#fca5a5; animation:cce-pulse .7s infinite; }
@keyframes cce-pulse{ 0%,100%{opacity:1} 50%{opacity:.4} }

/* Progress */
.cce-progress-bar-wrap{ position:relative; height:7px; background:#e2e8f0; }
.cce-progress-bar     { height:100%; background:linear-gradient(90deg,#6366f1,#9333ea); border-radius:0 4px 4px 0; transition:width .5s cubic-bezier(.22,.61,.36,1); }
.cce-progress-label   { position:absolute; right:12px; top:-20px; font-size:11px; color:#6b7280; font-weight:700; }

/* Nav dots */
.cce-ws-toolbar{ padding:12px 16px 8px; background:#fff; border-bottom:1px solid #e2e8f0; display:flex; justify-content:center; }
.cce-q-nav    { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.cce-q-nav-btn{
  width:32px; height:32px; border-radius:50%; border:2px solid #e2e8f0;
  background:#fff; font-size:12px; font-weight:700; cursor:pointer;
  transition:all .2s cubic-bezier(.22,.61,.36,1); color:#374151;
}
.cce-q-nav-btn:hover{ border-color:#a5b4fc; background:#f5f3ff; transform:scale(1.1); }
.cce-q-nav-btn.active{
  background:linear-gradient(135deg,#6366f1,#9333ea);
  border-color:#6366f1; color:#fff;
  box-shadow:0 3px 10px rgba(99,102,241,.5); transform:scale(1.15);
}
.cce-q-nav-btn.answered{ background:#dcfce7; border-color:#86efac; color:#15803d; }
.cce-q-nav-btn.active.answered{ background:linear-gradient(135deg,#6366f1,#9333ea); border-color:#6366f1; color:#fff; }

/* Questions area — single question */
.cce-questions-area{
  padding:24px 20px; min-height:280px;
  background:#fff; margin:14px; border-radius:18px;
  box-shadow:0 4px 20px rgba(0,0,0,.06);
}

/* Question header */
.cce-q-header  { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.cce-q-type-pill{
  background:linear-gradient(135deg,#ede9fe,#ddd6fe); color:#5b21b6;
  border-radius:20px; padding:4px 14px; font-size:10px; font-weight:800;
  text-transform:uppercase; letter-spacing:.5px; border:1px solid #c4b5fd;
}
.cce-q-counter { font-size:12px; font-weight:700; color:#9ca3af; background:#f1f5f9; border-radius:20px; padding:3px 10px; }
.cce-q-img     { max-width:100%; max-height:220px; border-radius:12px; margin-bottom:16px; display:block; object-fit:contain; box-shadow:0 2px 10px rgba(0,0,0,.08); }
.cce-q-text    { font-size:17px; font-weight:700; color:#111827; margin-bottom:22px; line-height:1.7; }

/* MCQ */
.cce-mcq-opts{ display:flex; flex-direction:column; gap:10px; }
.cce-mcq-opt{
  border:2px solid #e5e7eb; border-radius:14px; padding:14px 16px;
  cursor:pointer; display:flex; align-items:center; gap:12px;
  transition:all .2s cubic-bezier(.22,.61,.36,1);
  font-size:14px; color:#374151; background:#fafafa;
  font-family:inherit; text-align:left; width:100%;
}
.cce-mcq-opt:hover    { border-color:#a5b4fc; background:#f5f3ff; transform:translateX(5px); box-shadow:0 2px 12px rgba(99,102,241,.1); }
.cce-mcq-opt.selected {
  border-color:#6366f1; background:linear-gradient(135deg,#ede9fe,#e0e7ff);
  color:#3730a3; transform:translateX(5px);
  box-shadow:0 4px 14px rgba(99,102,241,.22);
}
.cce-opt-badge{
  width:32px; height:32px; border-radius:50%; flex-shrink:0;
  background:#e0e7ff; color:#3730a3; font-size:12px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
  transition:all .2s;
}
.cce-mcq-opt.selected .cce-opt-badge{ background:#6366f1; color:#fff; }
.cce-opt-img  { max-width:48px; max-height:48px; border-radius:8px; object-fit:cover; }
.cce-opt-text { flex:1; font-weight:600; }

/* Fill */
.cce-fill-wrap { position:relative; }
.cce-fill-hint { font-size:11px; font-weight:600; color:#9ca3af; text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; }
.cce-fill-input{
  width:100%; border:none; border-bottom:3px solid #6366f1;
  background:linear-gradient(135deg,#f5f3ff,#ede9fe);
  border-radius:12px 12px 0 0; padding:14px 18px;
  font-size:17px; font-weight:700; font-family:inherit;
  color:#3730a3; outline:none; transition:all .2s; text-align:center;
}
.cce-fill-input:focus{ background:#ede9fe; border-color:#9333ea; }
.cce-fill-input::placeholder{ color:#c4b5fd; font-weight:400; font-size:14px; }

/* True / False */
.cce-tf-opts{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.cce-tf-opt{
  border:2.5px solid #e5e7eb; border-radius:18px; padding:22px 16px;
  text-align:center; cursor:pointer; font-size:14px; font-weight:700;
  transition:all .22s cubic-bezier(.22,.61,.36,1);
  background:#fafafa; font-family:inherit;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.cce-tf-icon{ font-size:32px; line-height:1; }
.cce-tf-opt.true-opt { color:#15803d; }
.cce-tf-opt.false-opt{ color:#dc2626; }
.cce-tf-opt.true-opt:hover {
  border-color:#22c55e; background:linear-gradient(135deg,#f0fdf4,#dcfce7);
  transform:translateY(-3px); box-shadow:0 6px 18px rgba(21,128,61,.18);
}
.cce-tf-opt.false-opt:hover{
  border-color:#ef4444; background:linear-gradient(135deg,#fff1f2,#fee2e2);
  transform:translateY(-3px); box-shadow:0 6px 18px rgba(220,38,38,.18);
}
.cce-tf-opt.true-opt.selected {
  border-color:#16a34a; background:linear-gradient(135deg,#dcfce7,#bbf7d0);
  box-shadow:0 6px 20px rgba(21,128,61,.3); transform:translateY(-3px);
}
.cce-tf-opt.false-opt.selected{
  border-color:#dc2626; background:linear-gradient(135deg,#fee2e2,#fecaca);
  box-shadow:0 6px 20px rgba(220,38,38,.3); transform:translateY(-3px);
}

/* Match */
.cce-match-container{ }
.cce-match-cols     { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.cce-match-col      { background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:14px; padding:12px; }
.cce-match-head     { font-size:11px; font-weight:800; text-transform:uppercase; color:#6366f1; letter-spacing:.6px; margin-bottom:10px; text-align:center; border-bottom:2px solid #e0e7ff; padding-bottom:6px; }
.cce-match-item     {
  display:flex; align-items:center; gap:6px;
  background:#fff; border:1.5px solid #e5e7eb; border-radius:10px;
  padding:9px 10px; font-size:13px; color:#374151; margin-bottom:7px;
  transition:border-color .15s;
}
.cce-match-item:last-child{ margin-bottom:0; }
.cce-match-num, .cce-match-alpha{ font-weight:800; color:#6366f1; flex-shrink:0; font-size:13px; }
.cce-match-item img { max-width:36px; max-height:28px; border-radius:4px; object-fit:cover; }
.cce-match-label    { font-size:12px; font-weight:600; color:#6b7280; margin-bottom:10px; text-align:center; }
.cce-match-answer-row { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.cce-match-box      { text-align:center; }
.cce-match-box label{ display:block; font-size:11px; color:#6b7280; margin-bottom:5px; font-weight:700; }
.cce-match-box input{
  width:100%; border:2.5px solid #e2e8f0; border-radius:12px;
  padding:11px 4px; text-align:center; font-size:17px; font-weight:800;
  outline:none; font-family:inherit; color:#3730a3;
  background:#f5f3ff; transition:all .2s;
}
.cce-match-box input:focus{ border-color:#6366f1; background:#ede9fe; box-shadow:0 0 0 3px rgba(99,102,241,.12); }

/* Nav bar */
.cce-ws-nav-bar{ display:flex; gap:10px; padding:16px 20px; background:#fff; border-top:2px solid #f1f5f9; }
.cce-nav-btn   {
  flex:1; padding:15px; border:none; border-radius:16px;
  font-size:14px; font-weight:700; cursor:pointer; font-family:inherit;
  transition:all .2s; letter-spacing:.2px;
}
.cce-prev-btn { background:#f1f5f9; color:#475569; border:1.5px solid #e2e8f0; }
.cce-prev-btn:hover:not(:disabled){ background:#e2e8f0; transform:translateX(-2px); }
.cce-prev-btn:disabled{ opacity:.35; cursor:not-allowed; }
.cce-next-btn{
  background:linear-gradient(135deg,#6366f1,#9333ea); color:#fff;
  box-shadow:0 5px 16px rgba(99,102,241,.45);
}
.cce-next-btn:hover{ transform:translateY(-2px); box-shadow:0 8px 22px rgba(99,102,241,.55); }
.cce-submit-btn{
  background:linear-gradient(135deg,#059669,#10b981); color:#fff;
  box-shadow:0 5px 16px rgba(16,185,129,.45);
}
.cce-submit-btn:hover{ transform:translateY(-2px); box-shadow:0 8px 22px rgba(16,185,129,.55); }

.cce-ws-footer{ text-align:center; font-size:11px; color:#9ca3af; padding:10px; background:#f8fafc; }
.cce-loading  { text-align:center; padding:56px; color:#9ca3af; font-size:14px; }

/* Question block animation */
.cce-q-block{ will-change:opacity,transform; }
@keyframes cce-fadein{ from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }

/* ══════════════════════════════════════
   RESULT SCREEN — Premium
══════════════════════════════════════ */
.cce-result-screen{ animation:cce-slideup .4s ease both; }
.cce-result-card  { background:#fff; border-radius:24px; overflow:hidden; box-shadow:0 16px 48px rgba(0,0,0,.12); }

/* Hero */
.cce-result-hero{
  background:linear-gradient(135deg,#1e3a8a 0%,#4f46e5 50%,#7c3aed 100%);
  color:#fff; padding:30px 24px 24px; text-align:center; position:relative; overflow:hidden;
}
.cce-result-hero::before{
  content:''; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20.5V18H0v5h20v-2.5zM25 18h-2v5h2V18zm2 5h2v-5h-2v5zM40 18H30v5h10v-5z'/%3E%3C/g%3E%3C/svg%3E");
}
.cce-result-hero>*{ position:relative; z-index:1; }

/* SVG donut */
.cce-donut{ width:110px; height:110px; margin-bottom:10px; }

.cce-result-grade-badge{
  display:inline-block; border-radius:50%;
  width:52px; height:52px; line-height:52px;
  font-size:22px; font-weight:900; margin-bottom:8px;
  border:3px solid rgba(255,255,255,.4);
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}
.cce-result-name     { font-size:17px; font-weight:700; opacity:.9; margin-bottom:6px; }
.cce-result-score-row{ margin-bottom:4px; }
.cce-result-scored   { font-size:44px; font-weight:900; letter-spacing:-1px; }
.cce-result-total    { font-size:20px; font-weight:600; opacity:.7; }
.cce-result-msg      { font-size:14px; font-weight:700; background:rgba(255,255,255,.18); border-radius:20px; padding:6px 18px; display:inline-block; margin-top:6px; border:1px solid rgba(255,255,255,.2); }

/* Meta bar */
.cce-result-meta{
  display:flex; flex-wrap:wrap; justify-content:center; gap:6px 16px;
  padding:14px 20px; background:#f8fafc; border-bottom:1px solid #e2e8f0;
  font-size:12px; font-weight:600; color:#374151;
}
.cce-result-meta span::before{ content:''; }

/* Breakdown */
.cce-result-breakdown{ padding:20px; }
.cce-result-section-title{ font-size:13px; font-weight:800; color:#374151; text-transform:uppercase; letter-spacing:.5px; margin-bottom:14px; }

.cce-rq-row{
  display:flex; gap:12px; padding:12px 14px;
  border-radius:14px; margin-bottom:9px; border:1.5px solid;
  transition:transform .15s;
}
.cce-rq-row:hover{ transform:translateX(3px); }
.cce-rq-correct{ background:#f0fdf4; border-color:#bbf7d0; }
.cce-rq-wrong  { background:#fff1f2; border-color:#fecdd3; }
.cce-rq-num    { font-size:20px; flex-shrink:0; line-height:1.4; }
.cce-rq-body   { flex:1; min-width:0; }
.cce-rq-text   { font-size:13px; font-weight:600; color:#111827; margin-bottom:5px; line-height:1.5; }
.cce-rq-ans    { font-size:12px; color:#374151; margin-bottom:3px; }
.cce-rq-label  { font-weight:600; color:#6b7280; }
.cce-rq-given  { color:#dc2626; font-weight:700; }
.cce-rq-expected{ color:#15803d; font-weight:700; }
.cce-rq-part   { font-size:11px; color:#6366f1; font-weight:700; margin-top:4px; }

/* Remark section */
.cce-result-remark{
  margin:0 20px 4px; padding:16px; border-radius:14px;
  border:2px solid #e2e8f0; background:#f8fafc;
}
.cce-remark-title{
  font-size:12px; font-weight:800; color:#374151;
  text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px;
}
.cce-remark-grade{
  display:inline-block; border-radius:10px; padding:8px 16px;
  font-size:14px; font-weight:700; border:1.5px solid currentColor;
}

/* Teacher sign */
.cce-teacher-sign{ padding:24px 20px 16px; }
.cce-sign-line  { border-bottom:2px dashed #9ca3af; margin-bottom:8px; height:40px; }
.cce-sign-label { font-size:11px; color:#9ca3af; text-align:center; font-weight:600; }

/* Actions */
.cce-result-actions{ display:flex; gap:10px; padding:0 20px 20px; }
.cce-result-btn{
  flex:1; padding:14px; border:none; border-radius:14px;
  font-size:14px; font-weight:700; cursor:pointer; font-family:inherit;
  transition:all .2s;
}
.cce-print-btn-res{ background:#dbeafe; color:#1d4ed8; }
.cce-print-btn-res:hover{ background:#bfdbfe; transform:translateY(-1px); }
.cce-retry-btn{
  background:linear-gradient(135deg,#6366f1,#9333ea); color:#fff;
  box-shadow:0 4px 12px rgba(99,102,241,.35);
}
.cce-retry-btn:hover{ transform:translateY(-2px); box-shadow:0 7px 18px rgba(99,102,241,.5); }

.cce-result-footer{ text-align:center; font-size:11px; color:#9ca3af; padding:12px; background:#f8fafc; border-top:1px solid #f3f4f6; }

/* ══════════════════════════════════════
   PRINT
══════════════════════════════════════ */
@media print{
  .cce-entry-card,.cce-ws-toolbar,.cce-ws-nav-bar,.cce-ws-footer,
  .cce-share-footer,.cce-result-actions,.cce-timer-bar,.cce-progress-bar-wrap{ display:none!important; }
  .cce-worksheet-view,.cce-result-card{ box-shadow:none; border-radius:0; }
  body *{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* Tablet / Small Desktop (481–768px) */
@media(min-width:481px){
  .cce-info-tile{ padding:12px 16px; }
  .cce-info-val { font-size:14px; }
  .cce-q-text   { font-size:18px; }
  .cce-mcq-opt  { font-size:15px; padding:15px 18px; }
  .cce-tf-opts  { grid-template-columns:1fr 1fr; }
}

/* Mobile (≤480px) */
@media(max-width:480px){
  .cce-kp-root  { max-width:100%; }
  .cce-hero     { padding:22px 16px 20px; }
  .cce-info-grid{ grid-template-columns:1fr 1fr; gap:8px; }
  .cce-entry-form{ padding:16px; }
  .cce-match-cols{ grid-template-columns:1fr; }
  .cce-match-answer-row{ grid-template-columns:repeat(2,1fr); }
  .cce-tf-opts  { grid-template-columns:1fr; }
  .cce-q-text   { font-size:15px; }
  .cce-q-nav-btn{ width:28px; height:28px; font-size:11px; }
  .cce-questions-area{ padding:18px 14px; margin:10px; }
  .cce-ws-nav-bar{ padding:12px; }
  .cce-result-hero{ padding:24px 16px 20px; }
  .cce-donut{ width:90px; height:90px; }
  .cce-result-scored{ font-size:36px; }
}
