/* CK Free Practice Challenge engine v1. Set --ckft-accent (default CK navy) on the mount or an ancestor. */
.ckft,.ckft-exam{
  --_acc:var(--ckft-accent,#1F2A44);--_navy:#1F2A44;--_ink:#1F2A44;--_muted:#4B5563;--_line:#D1D5DB;
  --_card:#FFFFFF;--_bg:#F4F6FC;--_tint:#F3F4F8;--_red:#D61F1F;--_red2:#B91C1C;
  --_ok:#046C4E;--_okbg:#E7F6EF;--_no:#A3141C;--_nobg:#FDECEC;--_warnbg:#FFF3D6;--_warnink:#5C3B00;--_onacc:#FFFFFF;
  box-sizing:border-box;color:var(--_ink);font-family:'Public Sans',system-ui,sans-serif;font-size:16px;line-height:1.55;
  text-align:left;
}
.ckft *,.ckft *::before,.ckft *::after,.ckft-exam *,.ckft-exam *::before,.ckft-exam *::after{box-sizing:border-box}
.ckft{display:block;max-width:1040px;margin:0 auto;min-width:0}
.ckft [hidden],.ckft-exam [hidden],.ckft-exam[hidden]{display:none!important}
.ckft h1,:is(.ckft,.ckft-exam) h2,:is(.ckft,.ckft-exam) h3,.ckft h4{font-family:'Cabin',system-ui,sans-serif;color:var(--_ink);line-height:1.2;text-transform:none;letter-spacing:0}
:is(.ckft,.ckft-exam) p{margin:0 0 10px;max-width:none}
:is(.ckft,.ckft-exam) .ckft-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0}
:is(.ckft,.ckft-exam) :focus-visible{outline:3px solid #1B6FEB;outline-offset:2px}
.ckft .ckft-error{padding:14px;border:2px solid var(--_no);border-radius:12px;background:#fff;color:var(--_no);font-weight:700}
.ckft-noscript{padding:14px;border:2px solid #A3141C;border-radius:12px;background:#fff;color:#1F2A44;font-weight:700}

/* ---------- buttons ---------- */
:is(.ckft,.ckft-exam) .ckft-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;min-width:44px;margin:0;padding:8px 20px;border:2px solid transparent;border-radius:12px;font:700 16px/1.25 'Public Sans',system-ui,sans-serif;text-align:center;text-decoration:none;cursor:pointer;box-shadow:none}
:is(.ckft,.ckft-exam) .ckft-primary,:is(.ckft,.ckft-exam) a.ckft-primary:hover{background:linear-gradient(180deg,var(--_red),var(--_red2));border-color:#B91C1C;color:#fff;box-shadow:0 10px 22px -12px rgba(214,31,31,.8)}
:is(.ckft,.ckft-exam) .ckft-solid,:is(.ckft,.ckft-exam) a.ckft-solid:hover{background:var(--_navy);border-color:var(--_navy);color:#fff}
:is(.ckft,.ckft-exam) .ckft-line,:is(.ckft,.ckft-exam) a.ckft-line:hover{background:var(--_card);border-color:var(--_ink);color:var(--_ink)}
:is(.ckft,.ckft-exam) .ckft-btn:hover:not(:disabled){filter:brightness(1.07)}
:is(.ckft,.ckft-exam) .ckft-btn:disabled{opacity:.45;cursor:not-allowed}
:is(.ckft,.ckft-exam) .ckft-btn.ckft-link{min-height:44px;padding:6px 4px;background:none;border:0;color:inherit;text-decoration:underline;font-weight:600;font-size:14.5px}
:is(.ckft,.ckft-exam) .ckft-big{min-height:56px;padding:10px 30px;font-size:17px}
:is(.ckft,.ckft-exam) .ckft-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
:is(.ckft,.ckft-exam) .ckft-actions:empty{display:none}
.ckft .ckft-center{justify-content:center}

/* ---------- menu and result: hero + cards ---------- */
.ckft-menu,.ckft-result,.ckft-review{background:var(--_card);border:1px solid var(--_line);border-radius:20px;overflow:hidden;box-shadow:0 24px 50px -34px rgba(31,42,68,.5)}
.ckft-hero{display:flex;gap:20px;align-items:center;padding:28px 32px;background:linear-gradient(115deg,#141B30 0%,#1F2A44 45%,var(--ckft-accent,#34466F) 100%);color:#fff;border-bottom:5px solid #D61F1F}
.ckft .ckft-hero :is(h1,h2,p){color:#fff;margin:0}
.ckft .ckft-hero .ckft-title{font-size:clamp(24px,3.4vw,34px);margin:2px 0 4px}
.ckft .ckft-kicker{font-size:12.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.ckft .ckft-sub{opacity:.92;font-size:15px}
:is(.ckft,.ckft-exam) .ckft-badge{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:76px;height:76px;padding:0 12px;border-radius:18px;background:#fff;color:#1F2A44;font:700 28px 'Cabin',system-ui,sans-serif;max-width:160px;overflow:hidden}
.ckft-menubody{display:flex;flex-direction:column;gap:22px;padding:28px 32px 26px}
.ckft .ckft-facts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;list-style:none;margin:0;padding:0}
.ckft .ckft-fact{grid-column:span 2;min-width:0;margin:0;padding:16px 18px;border:1px solid var(--_line);border-top:4px solid var(--_acc);border-radius:14px;background:var(--_card)}
.ckft .ckft-f-types,.ckft .ckft-f-parts{grid-column:span 3}
.ckft .ckft-factlabel{display:block;font-size:12.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--_muted)}
.ckft .ckft-fact>b{display:block;font:700 26px/1.25 'Cabin',system-ui,sans-serif;color:var(--_ink);margin-top:4px}
.ckft .ckft-fact ul{list-style:none;margin:8px 0 0;padding:0}
.ckft .ckft-fact ul li{display:flex;justify-content:space-between;gap:12px;margin:0;padding:6px 0;border-top:1px solid var(--_line);font-size:14.5px}
.ckft .ckft-fact ul em{font-style:normal;font-weight:800;white-space:nowrap}
.ckft .ckft-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ckft .ckft-panelcard{min-width:0;padding:20px 22px;border-radius:14px;background:var(--_tint)}
.ckft .ckft-panelcard h3{margin:0 0 12px;font-size:20px}
.ckft .ckft-panelcard :is(ol,ul.ckft-breakdown){margin:0}
.ckft .ckft-rules ol,.ckft .ckft-gets ul{padding-left:20px;margin:0}
.ckft .ckft-rules li,.ckft .ckft-gets li{margin:0 0 7px;font-size:15px}
.ckft .ckft-examnote{margin:12px 0 0;font-size:14px;color:var(--_muted)}
.ckft .ckft-launch{display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 0}
.ckft .ckft-launch .ckft-actions{justify-content:center}
.ckft .ckft-fullrow{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;font-size:14.5px;cursor:pointer}
.ckft .ckft-fullrow input{width:20px;height:20px;margin:0}
.ckft .ckft-privacy{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
.ckft .ckft-privacy p{margin:0}
.ckft .ckft-best{font-weight:700}
.ckft .ckft-privacyline{font-size:14.5px;color:var(--_muted)}
.ckft .ckft-ctabox{padding:20px 22px;border:2px dashed var(--_line);border-radius:14px;text-align:center}
.ckft .ckft-ctabox h4{margin:0 0 12px;font-size:19px}
.ckft .ckft-ctabox .ckft-actions{justify-content:center}
.ckft .ckft-note{margin:0;font-size:13.5px;color:var(--_muted);text-align:center}

/* ---------- result ---------- */
.ckft-resultwrap{display:flex;flex-direction:column;gap:22px}
.ckft .ckft-timeup{margin:0;padding:12px 16px;border-radius:12px;background:var(--_warnbg);color:var(--_warnink);font-weight:700}
.ckft .ckft-scorecard{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.ckft .ckft-scorecard p{margin:0}
.ckft-ring{position:relative;width:200px;height:200px}
.ckft-ringsvg{display:block;width:100%;height:100%}
.ckft-ringtrack{fill:none;stroke:var(--_line);stroke-width:11}
.ckft-ringfill{fill:none;stroke:var(--_acc);stroke-width:11;stroke-linecap:round}
.ckft .ckft-score{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ckft .ckft-scorenum{font:700 32px/1.1 'Cabin',system-ui,sans-serif}
.ckft .ckft-pct{font-weight:700;font-size:18px;color:var(--_muted)}
.ckft .ckft-target strong,.ckft .ckft-target span{display:block}
.ckft .ckft-used{color:var(--_muted)}
.ckft .ckft-scorecard .ckft-actions{justify-content:center}
.ckft .ckft-breakdown{list-style:none;padding:0}
.ckft .ckft-breakdown li{margin:0 0 14px}
.ckft .ckft-partrow{display:flex;justify-content:space-between;gap:12px;font-size:15px}
.ckft .ckft-partrow b{white-space:nowrap}
.ckft .ckft-track{display:block;height:12px;margin-top:5px;border-radius:99px;background:var(--_card);border:1px solid var(--_line);overflow:hidden}
.ckft .ckft-fill{display:block;height:100%;background:var(--_acc)}
.ckft .ckft-copied:empty{display:none}
.ckft .ckft-copybox{display:block;width:100%;padding:10px;border:1px solid var(--_line);border-radius:10px;font:14px/1.5 inherit;background:var(--_card);color:var(--_ink)}
.ckft-review{padding:24px 32px}
.ckft .ckft-reviewtop{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.ckft .ckft-reviewtop h3{margin:0;font-size:22px}
.ckft .ckft-reviewlist{list-style:none;margin:0;padding:0}
.ckft .ckft-ritem{margin:0 0 16px;padding:18px 20px;border:1px solid var(--_line);border-left:6px solid var(--_ok);border-radius:14px;min-width:0}
.ckft .ckft-ritem.ckft-bad{border-left-color:var(--_no)}
.ckft .ckft-rhead{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin-bottom:4px}
.ckft .ckft-verdict{padding:2px 10px;border-radius:99px;background:var(--_okbg);color:var(--_ok);font-weight:800;font-size:13.5px}
.ckft .ckft-bad .ckft-verdict{background:var(--_nobg);color:var(--_no)}
.ckft .ckft-rflag{font-weight:700;font-size:13.5px}
.ckft .ckft-ropts{list-style:none;margin:0 0 12px;padding:0}
.ckft .ckft-ropts li{margin:0 0 6px;padding:9px 12px;border:1px solid var(--_line);border-radius:10px}
.ckft .ckft-ropts li.ckft-right{border-color:var(--_ok);background:var(--_okbg)}
.ckft .ckft-ropts li.ckft-wrong{border-color:var(--_no);background:var(--_nobg)}
.ckft .ckft-tag{display:inline-block;margin-left:8px;padding:0 8px;border-radius:99px;border:1px solid currentColor;font-style:normal;font-weight:800;font-size:12.5px}
.ckft .ckft-t-ok{color:var(--_ok)}.ckft .ckft-t-no{color:var(--_no)}
.ckft .ckft-ref-n{font-weight:800}
.ckft .ckft-why{padding:12px 16px;border-radius:12px;background:var(--_tint);overflow-wrap:break-word}
.ckft .ckft-why p:last-child{margin:0}

/* ---------- shared content ---------- */
:is(.ckft,.ckft-exam) .ckft-meta{font-size:13.5px;color:var(--_muted);margin-bottom:12px}
:is(.ckft,.ckft-exam) .ckft-label{font-size:12.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--_muted);margin:0 0 6px;display:block}
:is(.ckft,.ckft-exam) .ckft-hint{font-size:14px;color:var(--_muted);margin:8px 0}
:is(.ckft,.ckft-exam) .ckft-hint:empty{margin:0}
:is(.ckft,.ckft-exam) .ckft-stem{overflow-wrap:break-word;margin-bottom:16px}
:is(.ckft,.ckft-exam) .ckft-scroll{max-width:100%;overflow:auto;margin:0 0 12px;border:1px solid var(--_line);border-radius:10px}
:is(.ckft,.ckft-exam) .ckft-scroll table{width:100%;border-collapse:collapse;margin:0;font-size:15px;background:var(--_card)}
:is(.ckft,.ckft-exam) .ckft-scroll :is(th,td){padding:8px 12px;border:1px solid var(--_line);text-align:left;vertical-align:top;color:var(--_ink)}
:is(.ckft,.ckft-exam) .ckft-scroll th{background:var(--_tint)}
:is(.ckft,.ckft-exam) .ckft-scroll caption{padding:8px 12px;text-align:left;font-weight:700}

/* ---------- exam mode: full viewport ---------- */
html.ckft-lock,html.ckft-lock body{overflow:hidden!important}
.ckft-exam,.ckft-exam button{-webkit-tap-highlight-color:rgba(127,127,127,.12)}
.ckft-exam{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;background:var(--_bg);overscroll-behavior:contain}
.ckft-top{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:10px 20px;padding-top:max(10px,env(safe-area-inset-top));background:#1F2A44;color:#fff;border-bottom:5px solid var(--ckft-accent,#D61F1F)}
.ckft-exam .ckft-paper{display:flex;align-items:center;gap:12px;margin-right:auto;min-width:0}
.ckft-exam .ckft-top .ckft-badge{min-width:48px;height:44px;border-radius:10px;font-size:19px;max-width:110px}
.ckft-exam .ckft-where p{margin:0;line-height:1.3}
.ckft-exam .ckft-pos{font:700 18px 'Cabin',system-ui,sans-serif}
.ckft-exam .ckft-count{font-size:13px;opacity:.88}
.ckft-exam .ckft-clock{display:flex;flex-direction:column;align-items:flex-end;min-width:86px;padding:3px 12px;border:1px solid rgba(255,255,255,.4);border-radius:10px}
.ckft-exam .ckft-clocklabel{font-size:11px;text-transform:uppercase;letter-spacing:.08em;opacity:.9}
.ckft-exam .ckft-time{font:700 22px/1.2 'Cabin',system-ui,sans-serif;font-variant-numeric:tabular-nums}
.ckft-exam .ckft-clock.ckft-low{background:#fff;color:#A3141C;border-color:#fff}
.ckft-exam .ckft-tools{display:flex;flex-wrap:wrap;gap:8px}
.ckft-exam .ckft-top .ckft-tool{min-height:44px;padding:6px 14px;font-size:14.5px;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.4);color:#fff}
.ckft-exam .ckft-top .ckft-tool[aria-expanded=true],.ckft-exam .ckft-top .ckft-tool[aria-pressed=true]{background:#fff;border-color:#fff;color:#1F2A44}
.ckft-exam .ckft-warning{flex:none;display:flex;justify-content:center;align-items:center;gap:16px;padding:4px 16px;background:#FFE29A;color:#3D2800;font-weight:800;border-bottom:1px solid #C99700}
.ckft-mid{flex:1 1 auto;position:relative;min-height:0}
.ckft-scroller{position:absolute;inset:0;overflow:auto;padding:28px 20px;-webkit-overflow-scrolling:touch}
.ckft-exam .ckft-qcard{max-width:860px;margin:0 auto;padding:28px 34px;background:var(--_card);border:1px solid var(--_line);border-radius:18px;box-shadow:0 20px 44px -34px rgba(31,42,68,.6);min-width:0}
.ckft-exam .ckft-qtop{border-bottom:1px solid var(--_line);margin-bottom:18px}
.ckft-exam .ckft-qhead{margin:0 0 2px;font-size:22px}
.ckft-exam .ckft-stem{font-size:17px}
.ckft-bottom{flex:none;background:var(--_card);border-top:1px solid var(--_line);padding:10px 20px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
.ckft-exam .ckft-foot{display:flex;justify-content:space-between;gap:10px;max-width:860px;margin:0 auto}
.ckft-exam .ckft-foot .ckft-btn{min-width:130px}

/* choices */
.ckft-exam .ckft-fs{border:0;margin:0;padding:0;min-width:0;background:none;border-radius:0}
.ckft-exam .ckft-opt{display:flex;align-items:center;gap:14px;min-height:52px;margin:0 0 10px;padding:12px 16px;border:2px solid var(--_line);border-radius:12px;background:var(--_card);cursor:pointer;font-weight:500}
.ckft-exam .ckft-opt input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--_acc)}
.ckft-exam .ckft-opt span{min-width:0;overflow-wrap:break-word}
.ckft-exam .ckft-opt:hover{border-color:var(--_acc)}
.ckft-exam .ckft-opt:focus-within{outline:3px solid #1B6FEB;outline-offset:2px}
.ckft-exam .ckft-opt:has(input:checked){border-color:var(--_acc);box-shadow:inset 0 0 0 1px var(--_acc);background:var(--_tint)}
.ckft-exam .ckft-opt.ckft-off{opacity:.6;cursor:not-allowed}
/* number entry */
.ckft-exam .ckft-numrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ckft-exam .ckft-input{width:220px;max-width:100%;min-height:52px;padding:8px 14px;border:2px solid #6B7280;border-radius:12px;font:700 20px 'Public Sans',system-ui,sans-serif;background:var(--_card);color:var(--_ink)}
.ckft-exam .ckft-input[aria-invalid=true]{border-color:var(--_no)}
.ckft-exam .ckft-unit{font-weight:800;font-size:18px}
/* drag and drop, drop-down */
.ckft-exam .ckft-gaptext{font-size:17px;line-height:2.9;overflow-wrap:break-word}
.ckft-exam .ckft-gaptext p{margin:0 0 6px}
.ckft-exam .ckft-gap{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-width:130px;min-height:44px;margin:0 2px;padding:6px 12px;vertical-align:middle;border:2px dashed #6B7280;border-radius:10px;background:var(--_tint);color:var(--_muted);font:700 15px/1.3 'Public Sans',system-ui,sans-serif;cursor:pointer}
.ckft-exam .ckft-gap.ckft-filled{border:2px solid var(--_acc);background:var(--_card);color:var(--_ink);cursor:grab;touch-action:none}
.ckft-exam .ckft-bank{display:flex;flex-wrap:wrap;gap:10px;min-height:68px;align-items:center;padding:12px;border:1px solid var(--_line);border-radius:12px;background:var(--_tint)}
.ckft-exam .ckft-tile,.ckft-ghost{max-width:100%;min-height:44px;min-width:44px;margin:0;padding:8px 14px;border:2px solid var(--_navy,#1F2A44);border-radius:10px;background:var(--_card,#fff);color:var(--_ink,#1F2A44);font:700 15px/1.3 'Public Sans',system-ui,sans-serif;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.ckft-exam .ckft-tile{border-color:var(--_ink)}
.ckft-exam .ckft-tile[aria-pressed=true]{background:#1F2A44;border-color:#1F2A44;color:#fff;box-shadow:0 0 0 3px #F2C14E}
.ckft-exam .ckft-over{outline:3px solid #1B6FEB;outline-offset:2px}
.ckft-exam .ckft-dragging{opacity:.35}
.ckft-ghost{position:fixed;z-index:2147483001;transform:translate(-50%,-50%) rotate(-2deg);pointer-events:none;box-shadow:0 14px 28px -10px rgba(0,0,0,.45);max-width:80vw}
.ckft-exam .ckft-select{max-width:100%;min-height:44px;margin:0 2px;padding:6px 8px;vertical-align:middle;border:2px solid #6B7280;border-radius:10px;background:var(--_card);color:var(--_ink);font:700 15px 'Public Sans',system-ui,sans-serif}

/* review screen */
.ckft-exam .ckft-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;list-style:none;margin:14px 0;padding:0}
.ckft-exam .ckft-summary li{margin:0;padding:10px 6px;border-radius:12px;background:var(--_tint);text-align:center}
.ckft-exam .ckft-summary b{display:block;font:700 26px 'Cabin',system-ui,sans-serif}
.ckft-exam .ckft-summary span{font-size:12.5px;font-weight:700}
.ckft-exam .ckft-rows{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ckft-exam .ckft-rows li{margin:0}
.ckft-exam .ckft-row{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin:0;padding:8px 14px;border:2px solid var(--_line);border-radius:12px;background:var(--_card);color:var(--_ink);font:600 15px 'Public Sans',system-ui,sans-serif;cursor:pointer;text-align:left}
.ckft-exam .ckft-row:hover{border-color:var(--_acc)}
.ckft-exam .ckft-rowq{font-weight:800}
.ckft-exam .ckft-rowflag{margin-left:auto;font-size:13px;font-weight:800;color:var(--_no)}
.ckft-exam .ckft-rowstate{font-size:12.5px;font-weight:800;padding:2px 10px;border-radius:99px;background:var(--_okbg);color:var(--_ok)}
.ckft-exam .ckft-row.ckft-blank .ckft-rowstate{background:var(--_nobg);color:var(--_no)}
.ckft-exam .ckft-row.ckft-part .ckft-rowstate{background:var(--_warnbg);color:var(--_warnink)}

/* panels: navigator, calculator, tables */
.ckft-exam .ckft-panel{position:absolute;z-index:5;display:flex;flex-direction:column;max-height:100%;background:var(--_card);border:1px solid var(--_line);box-shadow:0 24px 60px -18px rgba(15,20,40,.55);min-width:0}
.ckft-exam .ckft-panelhead{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px 8px 16px;border-bottom:1px solid var(--_line)}
.ckft-exam .ckft-paneltitle{margin:0;font:700 18px 'Cabin',system-ui,sans-serif}
.ckft-exam .ckft-panelhead .ckft-btn{min-height:44px;padding:4px 14px;font-size:14px}
.ckft-exam .ckft-panelbody{flex:1 1 auto;min-height:0;overflow:auto;padding:14px 16px}
.ckft-exam .ckft-calc{right:16px;bottom:12px;width:360px;border-radius:16px}
.ckft-exam .ckft-ref{top:0;right:0;bottom:0;width:min(780px,100%)}
.ckft-exam .ckft-navpanel{left:50%;bottom:12px;transform:translateX(-50%);width:min(430px,calc(100% - 20px));border-radius:16px}
.ckft-exam .ckft-navlist{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
.ckft-exam .ckft-navlist li{margin:0}
.ckft-exam .ckft-num{position:relative;width:100%;min-height:48px;margin:0;border:2px solid #6B7280;border-radius:10px;background:var(--_card);color:var(--_ink);font:800 16px 'Public Sans',system-ui,sans-serif;cursor:pointer}
.ckft-exam .ckft-num.ckft-done{background:#1F2A44;border-color:#1F2A44;color:#fff}
.ckft-exam .ckft-num.ckft-part{border-style:dashed;background:var(--_warnbg);color:var(--_warnink)}
.ckft-exam .ckft-num.ckft-current{box-shadow:0 0 0 3px var(--_card),0 0 0 6px var(--_acc)}
.ckft-exam .ckft-num.ckft-flagged::after{content:"\2691";position:absolute;top:-9px;right:-5px;padding:0 3px;border-radius:5px;background:#D61F1F;color:#fff;font-size:12px;line-height:17px}
.ckft-exam .ckft-navpanel .ckft-finish{width:100%}
.ckft-exam .ckft-calcin{display:block;width:100%;min-height:52px;padding:6px 12px;border:2px solid #6B7280;border-radius:10px;background:var(--_card);color:var(--_ink);font:700 22px ui-monospace,Consolas,monospace;text-align:right}
.ckft-exam .ckft-calcline{display:flex;justify-content:space-between;gap:8px;min-height:28px;font-size:14px}
.ckft-exam .ckft-calcout{margin:2px 0;font-weight:800;margin-left:auto;order:2;overflow-wrap:anywhere}
.ckft-exam .ckft-memo{align-self:center;color:var(--_muted)}
.ckft-exam .ckft-keys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.ckft-exam .ckft-calckey{min-height:44px;min-width:0;margin:0;padding:0;border:1px solid var(--_line);border-radius:9px;background:var(--_card);color:var(--_ink);font:700 18px 'Public Sans',system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.ckft-exam .ckft-calckey:active{transform:translateY(1px)}
.ckft-exam .ckft-fn{background:var(--_tint);font-size:15px}
.ckft-exam .ckft-op{background:#1F2A44;border-color:#1F2A44;color:#fff}
.ckft-exam .ckft-eq{grid-row:span 2;background:#D61F1F;border-color:#B91C1C;color:#fff}
.ckft-exam .ckft-zero{grid-column:span 2}
.ckft-exam .ckft-ref .ckft-panelbody{display:flex;flex-direction:column;overflow:hidden}
.ckft-exam .ckft-tabs{flex:none;display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.ckft-exam .ckft-tab{min-height:44px;margin:0;padding:6px 14px;border:2px solid var(--_line);border-radius:10px;background:var(--_card);color:var(--_ink);font:700 14px 'Public Sans',system-ui,sans-serif;cursor:pointer}
.ckft-exam .ckft-tab[aria-selected=true]{background:#1F2A44;border-color:#1F2A44;color:#fff}
.ckft-exam .ckft-refbody{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:auto}
.ckft-exam .ckft-mathwrap{display:flex;flex-direction:column;min-height:240px;flex:1 1 auto}
.ckft-exam .ckft-mathscroll{flex:1 1 auto;min-height:0;margin:0}
.ckft-exam .ckft-scroll table.ckft-math{border-collapse:separate;border-spacing:0;font-size:13.5px;font-variant-numeric:tabular-nums}
.ckft-exam .ckft-scroll table.ckft-math :is(th,td){padding:6px 9px;border:0;border-right:1px solid var(--_line);border-bottom:1px solid var(--_line);text-align:right;white-space:nowrap}
.ckft-exam .ckft-math thead th{position:sticky;top:0;z-index:2}
.ckft-exam .ckft-math tbody th{position:sticky;left:0;z-index:1}
.ckft-exam .ckft-math thead th:first-child{left:0;z-index:3}
.ckft-exam .ckft-math tbody tr:nth-child(even) td{background:var(--_bg)}
.ckft-exam .ckft-formulae{margin:6px 0 0}
.ckft-exam .ckft-formula{margin:0 0 12px;padding:12px 14px;border:1px solid var(--_line);border-radius:12px}
.ckft-exam .ckft-formula dt{font-weight:800;margin-bottom:4px}
.ckft-exam .ckft-formula dd{margin:0}
.ckft-exam .ckft-eqline{font:700 15.5px/1.8 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}

/* confirm step */
.ckft-modal{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(10,14,30,.6)}
.ckft-exam .ckft-dialog{width:min(460px,100%);max-height:100%;overflow:auto;padding:24px;border-radius:18px;background:var(--_card);border-top:6px solid #D61F1F}
.ckft-exam .ckft-dialog h3{margin:0 0 10px;font-size:21px}

/* ---------- smaller screens ---------- */
@media (max-width:820px){
  .ckft .ckft-two{grid-template-columns:minmax(0,1fr)}
  .ckft .ckft-fact,.ckft .ckft-f-types,.ckft .ckft-f-parts{grid-column:span 6}
  .ckft .ckft-f-q,.ckft .ckft-f-t{grid-column:span 3}
}
@media (max-width:640px){
  .ckft-hero{gap:14px;padding:20px 16px}
  :is(.ckft) .ckft-badge{min-width:56px;height:56px;border-radius:14px;font-size:21px}
  .ckft-menubody{padding:18px 14px;gap:16px}
  .ckft .ckft-fact{padding:12px 14px}
  .ckft .ckft-fact>b{font-size:21px}
  .ckft .ckft-panelcard{padding:16px 14px}
  .ckft .ckft-launch{order:-1}
  .ckft .ckft-launch .ckft-actions,.ckft .ckft-launch .ckft-btn,.ckft .ckft-ctabox .ckft-btn{width:100%}
  .ckft-review{padding:18px 12px}
  .ckft .ckft-ritem{padding:14px 12px}
  .ckft-top{padding:8px 10px;gap:6px 10px}
  .ckft-exam .ckft-pos{font-size:16px}
  .ckft-exam .ckft-top .ckft-badge{min-width:40px;height:40px;font-size:16px}
  .ckft-exam .ckft-tools{width:100%;flex-wrap:nowrap;gap:6px}
  .ckft-exam .ckft-top .ckft-tool{flex:1 1 auto;min-width:44px;padding:4px 6px;font-size:13px}
  .ckft-exam .ckft-top .ckft-full{display:none}
  .ckft-scroller{padding:12px 10px}
  .ckft-exam .ckft-qcard{padding:16px 14px;border-radius:14px}
  .ckft-exam .ckft-stem,.ckft-exam .ckft-gaptext{font-size:16px}
  .ckft-bottom{padding:8px 10px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .ckft-exam .ckft-foot .ckft-btn{flex:1 1 0;min-width:0;padding:6px 8px}
  .ckft-exam .ckft-rows{grid-template-columns:minmax(0,1fr)}
  .ckft-exam .ckft-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ckft-exam .ckft-calc{left:0;right:0;bottom:0;width:auto;border-radius:16px 16px 0 0}
  .ckft-exam .ckft-navpanel{left:0;right:0;bottom:0;transform:none;width:auto;border-radius:16px 16px 0 0}
  .ckft-exam .ckft-ref{left:0;width:auto}
  .ckft-exam .ckft-panelbody{padding:10px 10px}
  .ckft-exam .ckft-tab{flex:1 1 40%}
}
@media (max-height:560px){
  .ckft-top{padding-top:4px;padding-bottom:4px}
  .ckft-bottom{padding-top:4px;padding-bottom:4px}
  .ckft-exam .ckft-calc .ckft-hint{display:none}
}

/* ---------- standalone page (page.html) ---------- */
.ckft-page{padding:28px 0 44px;background:linear-gradient(180deg,#EEF0F8 0,#F4F6FC 420px)}
.ckft-page .wrap{display:block}
.ckft-page .ckft-pagelinks{max-width:1040px;margin:18px auto 0;text-align:center;font-size:14.5px;line-height:2}
.ckft-page .ckft-pagelinks a{display:inline-block;padding:6px 8px}
@media (max-width:640px){.ckft-page{padding:12px 0 28px}.ckft-page .wrap{padding-left:10px;padding-right:10px}}
html[data-theme="dark"] .ckft-page{background:#0C1233}
html[data-theme="contrast"] .ckft-page{background:#fff}

/* ---------- site display modes ---------- */
html[data-theme="dark"] :is(.ckft,.ckft-exam){--_acc:#A9BCFF;--_ink:#E7EBFB;--_muted:#B6C0E4;--_line:#3A4580;--_card:#151C48;--_bg:#0C1233;--_tint:#1B2352;--_ok:#7BE6BA;--_okbg:#0E3B2C;--_no:#FFB4B8;--_nobg:#4A1D22;--_warnbg:#4A3708;--_warnink:#FFE7A8}
html[data-theme="dark"] .ckft-exam .ckft-num.ckft-done,html[data-theme="dark"] .ckft-exam .ckft-op,html[data-theme="dark"] .ckft-exam .ckft-tab[aria-selected=true],html[data-theme="dark"] :is(.ckft,.ckft-exam) .ckft-solid{background:#4457D4;border-color:#8FA2FF;color:#fff}
html[data-theme="contrast"] :is(.ckft,.ckft-exam){--_acc:#000;--_ink:#000;--_muted:#111;--_line:#000;--_card:#fff;--_bg:#fff;--_tint:#fff;--_navy:#000;--_red:#B00000;--_red2:#B00000}
html[data-theme="contrast"] .ckft-hero,html[data-theme="contrast"] .ckft-top{background:#000}
html[data-theme="contrast"] .ckft-exam .ckft-opt:has(input:checked){box-shadow:inset 0 0 0 4px #000}

@media (prefers-reduced-motion:reduce){.ckft *,.ckft-exam *{transition:none!important;animation:none!important}}
