/* Restore the original card navigation; keep all existing CNC actions. */
body .cnc-shell{gap:24px;max-width:1440px;margin-inline:auto}
body .cnc-shell .section-head{margin:0;align-items:center;gap:20px}
body .cnc-shell .section-head h1{font-size:clamp(26px,2.2vw,34px);letter-spacing:-.04em;line-height:1.2}
body .cnc-shell .section-head p{font-size:15px;line-height:1.6;max-width:650px;margin-top:9px;color:var(--secondary,#667085)}
body .cnc-shell .cnc-library-notice{padding:0 0 16px;border:0;border-bottom:1px solid var(--hairline,#e6e9ef);border-radius:0;background:transparent;box-shadow:none;gap:18px;font-size:var(--text-sm);line-height:1.5}
body .cnc-shell .cnc-library-notice>div{flex-shrink:0}
body .cnc-shell .cnc-breadcrumb{font-size:var(--text-sm);gap:9px;line-height:1.5}
body .cnc-shell .crumb-btn{padding:5px 0;color:var(--secondary,#667085);font-size:var(--text-sm)}
body .cnc-shell .crumb-btn:hover{color:var(--brand,#0750e8)}
body .cnc-shell .filiere-grid,body .cnc-shell .cnc-subject-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;border:0;border-radius:0;background:transparent;overflow:visible}
body .cnc-shell .cnc-subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body .cnc-shell .choice-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;width:100%;min-height:210px;padding:24px;border:1px solid var(--hairline,#e6e9ef);border-radius:14px;background:var(--surface,#fff);box-shadow:0 2px 3px #10182803;text-align:left;transition:border-color .16s,box-shadow .16s,transform .16s}
body .cnc-shell .choice-card:last-child{border:1px solid var(--hairline,#e6e9ef)}
body .cnc-shell .choice-card:hover{background:var(--surface,#fff);border-color:#a9c1ed;box-shadow:0 5px 18px #1b3b7010;transform:translateY(-2px)}
body .cnc-shell .choice-code{display:grid;place-items:center;flex:none;width:54px;height:54px;margin-bottom:24px;border:1px solid #dfe8fb;border-radius:12px;background:#f0f5ff;color:#245dc0;font-size:var(--text-lg);font-weight:var(--font-semibold);letter-spacing:-.04em}
body .cnc-shell .choice-card strong{display:block;font-size:var(--text-base);line-height:1.45;font-weight:var(--font-semibold);color:var(--ink,#172133)}
body .cnc-shell .choice-card small{display:block;grid-column:auto;margin-top:10px;text-align:left;font-size:var(--text-sm);line-height:1.6;color:var(--secondary,#667085)}
body .cnc-shell .cnc-subject-grid .choice-card{min-height:174px;padding:22px}
body .cnc-shell .cnc-subject-grid .choice-code{width:38px;height:38px;margin-bottom:18px;border-color:var(--hairline,#e6e9ef);border-radius:9px;background:#f6f7f9;color:#667085;font-size:var(--text-sm);letter-spacing:0;font-weight:var(--font-medium)}
body .cnc-shell .paper-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:0;border-radius:0;background:transparent;overflow:visible}
body .cnc-shell .paper-row{display:grid;grid-template-columns:66px minmax(0,1fr) auto;gap:18px;min-height:108px;width:100%;padding:20px;border:1px solid var(--hairline,#e6e9ef);border-radius:12px;background:var(--surface,#fff);box-shadow:none;text-align:left;align-items:center;transition:border-color .16s,box-shadow .16s}
body .cnc-shell .paper-row:last-child{border-bottom:1px solid var(--hairline,#e6e9ef)}
body .cnc-shell .paper-row:hover{background:var(--surface,#fff);border-color:#a9c1ed;box-shadow:0 4px 14px #1b3b700a;transform:none}
body .cnc-shell .paper-year{display:grid;place-items:center;min-height:54px;border:1px solid #e3eafb;border-radius:10px;background:#f3f6fd;color:#245dc0;font-size:19px;font-weight:var(--font-semibold);font-variant-numeric:tabular-nums;letter-spacing:-.035em}
body .cnc-shell .paper-row strong{display:block;font-size:15px;font-weight:var(--font-medium);line-height:1.45;color:var(--ink,#172133)}
body .cnc-shell .paper-row small{display:block;margin-top:6px;font-size:var(--text-label);line-height:1.5;color:var(--secondary,#667085)}
body .cnc-shell .paper-status{padding:5px 8px;border-radius:6px;background:#f2f3f5;color:#697383;font-size:var(--text-label);font-weight:var(--font-medium);line-height:1.5;white-space:nowrap}
body .cnc-shell .paper-status.ready{background:#edf3ff;color:#245dc0}
body .cnc-shell .paper-status.finished{background:#edf7f1;color:#287049}
body .cnc-shell .mini-stat{padding:7px 10px;border:1px solid var(--hairline,#e6e9ef);border-radius:8px;background:var(--surface,#fff);color:var(--secondary,#667085);font-size:var(--text-sm)}
body .cnc-shell .paper-workspace{grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
body .cnc-shell .paper-viewer{min-height:740px;border:1px solid var(--hairline,#e6e9ef);border-radius:14px;box-shadow:none}
body .cnc-shell .paper-toolbar{padding:20px;border-color:var(--hairline,#e6e9ef);gap:12px;flex-wrap:wrap}
body .cnc-shell .paper-toolbar h2{font-size:var(--text-base);font-weight:var(--font-semibold);line-height:1.5;letter-spacing:-.02em}
body .cnc-shell .cnc-pdf-actions{padding:16px 20px 0;gap:10px;flex-wrap:wrap}
body .cnc-shell .cnc-pdf-caption{padding-inline:20px;font-size:var(--text-label);line-height:1.6}
body .cnc-shell .paper-frame{min-height:600px;background:#f5f6f8}
body .cnc-shell .exam-side{display:grid;grid-template-columns:1fr;gap:18px}
body .cnc-shell .exam-timer,body .cnc-shell .attempt-card,body .cnc-shell .notes-card{padding:22px;border:1px solid var(--hairline,#e6e9ef);border-radius:14px;background:var(--surface,#fff);color:var(--ink,#172133);box-shadow:none}
body .cnc-shell .exam-timer .eyebrow{color:var(--secondary,#667085);font-size:var(--text-xs);letter-spacing:.08em}
body .cnc-shell .exam-clock{margin:16px 0 20px;color:#245dc0;font-size:43px;font-weight:var(--font-semibold);letter-spacing:-.05em;line-height:1.2}
body .cnc-shell .exam-timer .timer-actions{display:flex;gap:8px;flex-wrap:wrap}
body .cnc-shell .exam-timer .secondary-btn{background:var(--surface,#fff);color:var(--ink,#172133);border:1px solid var(--hairline,#e6e9ef)}
body .cnc-shell .attempt-card h2,body .cnc-shell .notes-card h2{font-size:var(--text-base);font-weight:var(--font-semibold);line-height:1.5;margin-bottom:16px}
body .cnc-shell .score-line input{width:85px;padding:12px;border-radius:9px;font-size:var(--text-panel)}
body .cnc-shell .cnc-notes{min-height:210px;padding:14px;border:1px solid var(--hairline,#e6e9ef);border-radius:9px;background:#fafbfc;font-size:var(--text-sm);line-height:1.7;color:var(--ink,#172133)}
body .cnc-shell .save-line{font-size:var(--text-xs);line-height:1.6;margin-top:10px}
body .cnc-shell .choice-card:focus-visible,body .cnc-shell .paper-row:focus-visible{outline:3px solid #85aaf0;outline-offset:3px;border-color:#85aaf0}
@media(max-width:1279px){body .cnc-shell .filiere-grid,body .cnc-shell .cnc-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .cnc-shell .paper-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:18px}body .cnc-shell .paper-row{grid-template-columns:54px minmax(0,1fr);gap:12px}body .cnc-shell .paper-status{grid-column:2;justify-self:start;margin-top:-2px}}
@media(max-width:1050px){body .cnc-shell .paper-workspace{grid-template-columns:1fr}body .cnc-shell .exam-side{grid-template-columns:1fr 1fr}body .cnc-shell .notes-card{grid-column:1/-1}}
@media(max-width:767px){body .cnc-shell{gap:20px}body .cnc-shell .section-head{align-items:flex-start;flex-direction:column;gap:16px}body .cnc-shell .section-head h1{font-size:28px}body .cnc-shell .paper-list{grid-template-columns:1fr}body .cnc-shell .paper-row{grid-template-columns:60px minmax(0,1fr) auto;padding:18px;min-height:100px}body .cnc-shell .paper-status{grid-column:auto;margin-top:0}body .cnc-shell .choice-card{min-height:194px;padding:20px}body .cnc-shell .choice-code{margin-bottom:20px}body .cnc-shell .paper-viewer{min-height:570px}body .cnc-shell .paper-frame{min-height:460px}}
@media(max-width:560px){body .cnc-shell .filiere-grid,body .cnc-shell .cnc-subject-grid{grid-template-columns:1fr;gap:12px}body .cnc-shell .choice-card{display:grid;grid-template-columns:54px minmax(0,1fr);column-gap:18px;row-gap:6px;min-height:118px;padding:20px;align-content:center}body .cnc-shell .choice-code{grid-row:1/3;margin:0;align-self:center}body .cnc-shell .choice-card small{grid-column:2;margin:0}body .cnc-shell .cnc-subject-grid .choice-card{grid-template-columns:38px minmax(0,1fr);min-height:100px;padding:20px}body .cnc-shell .cnc-subject-grid .choice-code{margin:0}body .cnc-shell .paper-row{grid-template-columns:54px minmax(0,1fr);gap:10px}body .cnc-shell .paper-status{grid-column:2;justify-self:start}body .cnc-shell .exam-side{grid-template-columns:1fr}body .cnc-shell .notes-card{grid-column:auto}body .cnc-shell .paper-toolbar>div{width:100%;flex-wrap:wrap}body .cnc-shell .paper-toolbar .primary-btn,body .cnc-shell .paper-toolbar .secondary-btn{flex:1}body .cnc-shell .cnc-library-notice{flex-direction:column;align-items:flex-start;gap:12px}}
@media(prefers-reduced-motion:reduce){body .cnc-shell .choice-card,body .cnc-shell .paper-row{transition:none}body .cnc-shell .choice-card:hover{transform:none}}
