/* V75 claude: <snle-course> shell in the handbook (islam-study) language: paper, ink, pastel binders, tape, tactile buttons.
   Load after course-blocks.css. Prefix scx-. */
snle-course{display:block;width:100%;min-width:0}
.scx{--ink:#17140f;--muted:#655e55;--paper:#fffdf8;--line:#d8d0c6;--prim:#cbb6f2;--mint:#cfeadd;--tone:#dbcaf5;--tone-deep:#7955bb;
  font-family:'Space Grotesk','Noto Sans Arabic',Tahoma,Arial,sans-serif;color:var(--ink);font-size:16px;line-height:1.7;max-width:1040px;margin:auto;padding:8px 4px 40px;overflow-wrap:anywhere;-webkit-text-size-adjust:100%}
.scx[lang=ar]{font-family:'Noto Sans Arabic','Space Grotesk',Tahoma,Arial,sans-serif}
.scx *{box-sizing:border-box}.scx button,.scx input,.scx textarea{font-family:inherit;color:inherit;font-size:inherit}.scx button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.scx h1,.scx h2,.scx h3,.scx p{margin:0 0 12px}.scx h1{font-size:clamp(1.5rem,3.6vw,2.05rem);line-height:1.45;letter-spacing:-.02em;font-weight:700}.scx h2{font-size:1.18rem;line-height:1.55;font-weight:700}.scx h3{font-size:1.02rem;font-weight:700}
.scx[lang=ar] h1,.scx[lang=ar] h2{letter-spacing:0}
.scx :focus-visible{outline:3px solid #378ed0;outline-offset:3px}
.scx-enter>*{animation:scx-in .32s cubic-bezier(.2,.7,.2,1) both}.scx-enter>*:nth-child(2){animation-delay:.03s}.scx-enter>*:nth-child(3){animation-delay:.06s}.scx-enter>*:nth-child(4){animation-delay:.09s}
@keyframes scx-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tone-green{--tone:#cfeadd;--tone-deep:#2f7a57}.tone-coral{--tone:#f6cdbf;--tone-deep:#b25344}.tone-pink{--tone:#f7d3e3;--tone-deep:#b84b77}.tone-purple{--tone:#dbcaf5;--tone-deep:#7955bb}

/* Controls */
.scx-btn,.scx-tab,.scx-chip{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);box-shadow:3px 3px 0 var(--ink);font-size:.84rem;font-weight:700;line-height:1.4;text-align:center;transition:transform .12s,box-shadow .12s}
.scx-btn:hover,.scx-tab:hover{transform:translateY(-1px)}.scx-btn:active,.scx-tab:active,.scx-chip:active{box-shadow:1px 1px 0 var(--ink);transform:translate(1px,1px)}
.scx-primary{background:var(--prim)}.scx-primary[aria-pressed=true]{background:var(--mint)}.scx-warm{background:#fbebc8}.scx-big{padding:14px 26px;font-size:1rem}
.scx-link{min-height:40px;background:transparent;border:0;padding:8px 4px;font-size:.8rem;font-weight:700;color:#59418f;text-decoration:underline;text-underline-offset:4px}
.scx-label{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border-radius:999px;background:var(--ink);color:var(--paper);font-size:.64rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;transform:rotate(-1.4deg);margin-bottom:10px}
.scx[lang=ar] .scx-label{letter-spacing:0;font-size:.72rem}
.scx-eyebrow{display:block;font-size:.74rem;font-weight:700;color:var(--muted);margin-bottom:4px}
.scx-num{font-family:'Space Grotesk',sans-serif;font-weight:700}
.scx-bar{height:12px;border:1.5px solid var(--ink);border-radius:20px;background:#eee9df;overflow:hidden;direction:ltr}.scx-bar>span{display:block;height:100%;background:#82bb9d;border-radius:20px;transition:width .5s cubic-bezier(.2,.7,.2,1)}
.scx-bar-cap{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.74rem;margin:14px 0 6px}
.scx-chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 4px}.scx-chips>span{font-size:.76rem;background:#f4eee5;border:1px solid #ddd4c5;border-radius:9px;padding:5px 10px}.scx-chips .scx-hot{background:#fbebc8;border-color:#d9bf7c}
.scx-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:18px}
.scx-empty{background:var(--paper);border:2px dashed #b39ccf;border-radius:18px;padding:28px;text-align:center}
.scx-error{padding:14px;background:#fff0e5;border:2px solid #a34235;border-radius:12px;color:#923a2e;font-size:.8rem}
.scx-skel{display:grid;gap:10px;margin-top:14px}.scx-skel i{display:block;height:14px;border-radius:8px;background:linear-gradient(90deg,#efe8dc,#f8f3ea,#efe8dc);background-size:200% 100%;animation:scx-shine 1.2s linear infinite}.scx-skel i:nth-child(2){width:80%}.scx-skel i:nth-child(3){width:60%}
@keyframes scx-shine{to{background-position:-200% 0}}

/* Hero + dashboard */
.scx-hero{position:relative;background:var(--prim);border:3px solid var(--ink);box-shadow:6px 6px 0 var(--ink);border-radius:23px;padding:12px;margin:14px 0 28px}
.scx-hero-paper{background:#fdfaf3;background-image:repeating-linear-gradient(transparent 0 29px,#b6bed326 29px 30px);border:2px solid var(--ink);border-radius:13px;padding:22px 24px;display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:18px;align-items:center}
.scx-hero p{font-size:.88rem;color:var(--muted);margin:0}.scx-hero-art{width:120px;height:130px;object-fit:contain;transform:rotate(5deg)}
.scx-tape{position:absolute;z-index:1;top:-16px;inset-inline-start:26px;width:88px;height:29px;background:#f2e2b9e8;clip-path:polygon(0 7%,8% 0,18% 11%,30% 0,42% 11%,54% 0,66% 11%,78% 0,90% 11%,100% 0,100% 90%,90% 100%,78% 89%,66% 100%,54% 89%,42% 100%,30% 89%,18% 100%,8% 89%,0 100%);transform:rotate(-7deg)}
.scx-dash{background:var(--paper);border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink);border-radius:18px;padding:18px 20px;margin-bottom:26px}
.scx-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.scx-stats>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:10px 6px;border:1.5px solid var(--ink);border-radius:12px;background:#e7dcf7;text-align:center}.scx-stats>div:nth-child(2){background:#fbebc8}.scx-stats>div:nth-child(3){background:#d8eafb}.scx-stats>div:nth-child(4){background:#d9efdf}.scx-stats b{font-size:1.5rem;line-height:1.4}.scx-stats span{font-size:.7rem;line-height:1.4}
.scx-continue,.scx-next-card{position:relative;width:100%;display:grid;grid-template-columns:56px minmax(0,1fr) 36px;gap:14px;align-items:center;text-align:start;background:var(--tone);border:2.5px solid var(--ink);border-radius:18px;box-shadow:4px 4px 0 var(--ink);padding:14px 16px;margin-top:18px;transition:transform .15s}
.scx-continue:hover,.scx-next-card:hover{transform:translateY(-2px)}
.scx-continue-ico,.scx-next-ico{width:56px;height:56px;border-radius:14px;background:var(--paper);border:2px solid var(--ink);display:grid;place-items:center}
.scx-continue-txt,.scx-next-txt{display:flex;flex-direction:column;min-width:0}.scx-continue-txt small,.scx-next-txt small{font-size:.72rem;font-weight:700;color:#3b3530}.scx-continue-txt b,.scx-next-txt>b{font-size:1.02rem;line-height:1.45}.scx-continue-txt em,.scx-next-txt em{font-style:normal;font-size:.74rem;color:#3b3530}
.scx-go{width:36px;height:36px;border-radius:50%;background:var(--paper);border:2px solid var(--ink);display:grid;place-items:center;font-weight:700;box-shadow:2px 2px 0 var(--ink)}
.scx-rec{width:100%;display:flex;flex-direction:column;text-align:start;gap:1px;background:#fdfaf3;border:1.5px dashed #9b86c4;border-radius:14px;padding:11px 14px;margin-top:12px}.scx-rec>span{font-size:.68rem;font-weight:700;color:#59418f;text-transform:uppercase;letter-spacing:.06em}.scx-rec b{font-size:.92rem}.scx-rec em{font-style:normal;font-size:.72rem;color:var(--muted)}
.scx-dash-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.scx-dash-actions:empty{display:none}
.scx-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}.scx-tab{background:#f8f4ee;box-shadow:2px 3px 0 var(--ink);padding:10px 6px;font-size:.78rem}.scx-tab[aria-pressed=true]{background:var(--prim);border-bottom-width:4px}

/* Binder covers */
.scx-covers{display:grid;gap:30px;margin-top:8px}
.scx-cover{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);background:var(--tone);border:3px solid var(--ink);border-radius:22px;box-shadow:6px 6px 0 var(--ink);padding:14px 16px 14px 0}
.scx[dir=rtl] .scx-cover{padding:14px 0 14px 16px}
.scx-spine{display:flex;flex-direction:column;justify-content:space-around;align-items:center;border-inline-end:2px solid var(--ink)}.scx-spine i{width:30px;height:12px;border:2px solid var(--ink);border-radius:7px;background:#f5ead8;box-shadow:0 2px 0 #17140f25}
.scx-cover-in{background:var(--paper);border:2px solid var(--ink);border-radius:12px;padding:22px;margin-inline-start:14px}
.scx-cover-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.scx-weight{font-size:.78rem;font-weight:700;border:2px solid var(--ink);border-radius:10px;background:#fbebc8;padding:3px 9px;transform:rotate(-3deg);box-shadow:2px 2px 0 var(--ink)}
.scx-cover-title{display:flex;align-items:center;gap:14px;margin:6px 0 2px}.scx-cover-title h1,.scx-cover-title h2{margin:0}.scx-cover-title h2{font-size:1.45rem}.scx-cover-title svg{flex:0 0 auto}

/* Chapter page */
.scx-reader-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 20px}.scx-reader-top>b{font-size:.82rem;white-space:nowrap}
.scx-chapter{background:var(--tone);border:2.5px solid var(--ink);border-radius:19px;box-shadow:4px 4px 0 var(--ink);padding:20px;margin-bottom:22px}
.scx-dots{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.scx-dot{width:40px;height:40px;border:2px solid var(--ink);border-radius:11px;background:#fffefa;font-size:.8rem;font-weight:700;box-shadow:2px 2px 0 #17140f25;font-family:'Space Grotesk',sans-serif}.scx-dot.is-going{background:#fbebc8}.scx-dot.is-done{background:#a9d8ba}
.scx-toolbar{display:grid;gap:12px;background:#fdfaf3;border:1.5px solid #c9bfad;border-radius:14px;padding:14px;margin:0 0 22px}
.scx-search>span{display:block;font-size:.74rem;font-weight:700;margin-bottom:6px}.scx-search input{display:block;width:100%;min-height:46px;padding:10px 12px;background:#fffefa;border:1.5px solid #8a8173;border-radius:9px;font-size:16px}
.scx-filters{display:flex;gap:8px;flex-wrap:wrap}.scx-chip{min-height:38px;padding:6px 12px;box-shadow:2px 2px 0 var(--ink);font-size:.76rem;background:#f8f4ee}.scx-chip[aria-pressed=true]{background:var(--prim)}
.scx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.scx-card{position:relative;display:flex;flex-direction:column;border:2px solid var(--ink);border-radius:17px;box-shadow:4px 4px 0 var(--ink);background:var(--paper);padding:16px}
.scx-card.is-done{border-top:5px solid #3c8059}
.scx-card-meta{display:flex;align-items:center;gap:10px;margin-bottom:10px}.scx-n{display:inline-grid;place-items:center;min-width:34px;height:34px;background:var(--tone);border:2px solid var(--ink);border-radius:10px;box-shadow:2px 2px 0 var(--ink);font:700 .8rem 'Space Grotesk',sans-serif}
.scx-card-ico{width:40px;height:40px;display:grid;place-items:center}.scx-hot{font-size:.66rem;font-weight:700;background:#fbebc8;border:1.5px solid #d9bf7c;border-radius:999px;padding:2px 9px}
.scx-star{margin-inline-start:auto;width:42px;height:42px;border:1.5px solid #bba3da;border-radius:11px;background:#f8f1fd;color:#68439f;font-size:1.4rem;padding:0}.scx-star[aria-pressed=true]{background:#fbe8a9;border-color:var(--ink);color:#5c461b}
.scx-card-open{border:0;background:transparent;text-align:start;padding:0;flex:1}.scx-card-open h3{margin:0 0 10px;font-size:1.02rem;line-height:1.5}
.scx-tags{display:flex;gap:6px;flex-wrap:wrap;font-size:.7rem;margin-bottom:10px}.scx-tags>span{padding:3px 8px;background:#f3efe7;border:1px solid #ddd5c8;border-radius:7px}.scx-tags .is-done{background:#d6ecdb;border-color:#8eb69d}.scx-tags .is-going{background:#fbebc8;border-color:#d9bf7c}
.scx-card-bottom{display:flex;justify-content:flex-end;border-top:1px dashed #d4c8b4;margin-top:12px;padding-top:4px}
.scx-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0}.scx-nav .scx-btn{max-width:48%}

/* Lesson reader */
.scx-head{background:var(--paper);border:2.5px solid var(--ink);border-inline-start:12px solid var(--tone);border-radius:18px;box-shadow:5px 5px 0 var(--ink);padding:20px 22px;margin-bottom:18px}
.scx-head-row{display:flex;gap:14px;align-items:center}.scx-head-row h1{margin:0}.scx-head-ico{flex:0 0 auto;width:62px;height:62px;border-radius:50%;background:var(--tone);border:2.5px solid var(--ink);display:grid;place-items:center;transform:rotate(-6deg);box-shadow:3px 3px 0 var(--ink)}
.scx-promise{font-size:.95rem;color:#3b3530;margin:14px 0 0!important}
.scx-star-btn{font-size:.78rem}.scx-star-btn[aria-pressed=true]{background:#fbe8a9}
/* Sticky progress rail: one segment per section, diamonds for checkpoints */
.scx-rail{position:sticky;top:6px;z-index:8;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;background:#fffdf8f2;backdrop-filter:blur(6px);border:2px solid var(--ink);border-radius:14px;box-shadow:0 3px 0 var(--ink);padding:7px 10px;margin:0 0 24px}
.scx-rail-toc{display:flex;align-items:center;gap:6px;min-height:36px;border:1.5px solid var(--ink);border-radius:9px;background:#f2ecdf;padding:4px 9px;font-size:.78rem}.scx-rail-toc span{font-size:1rem}
.scx-seg{display:flex;gap:3px;align-items:center;min-width:0}
.scx-seg button{flex:1;min-width:3px;height:12px;border:1.5px solid #8f8576;border-radius:4px;background:#eee9df;padding:0;transition:background .3s,transform .2s}
.scx-seg button.rd{background:#82bb9d;border-color:#3c8059}
.scx-seg button.ck{flex:0 0 14px;height:14px;transform:rotate(45deg);border-radius:3px;border-color:var(--ink);background:var(--paper)}
.scx-seg button.ck.ok{background:#4fae86}.scx-seg button.ck.bad{background:#f2695c}.scx-seg button.ck.fix{background:#f5c04a}
.scx-seg button.cur{outline:2.5px solid #7955bb;outline-offset:1px}
.scx-rail-pct{font-size:.78rem;min-width:36px;text-align:end}
.scx-body{min-width:0}
.scx-unit{scroll-margin-top:80px;margin:0 0 30px;border-radius:20px}
.scx-unit.flash{animation:scx-flash 1.2s ease}
@keyframes scx-flash{0%{box-shadow:0 0 0 0 #cbb6f2}30%{box-shadow:0 0 0 8px #cbb6f2aa}100%{box-shadow:0 0 0 0 #cbb6f200}}
.scx-unit-head{display:flex;align-items:center;gap:10px;margin:0 0 12px}.scx-unit-head h2{flex:1;margin:0;font-size:1.08rem;line-height:1.5}
.scx-unit-n{flex:0 0 auto;display:inline-grid;place-items:center;min-width:34px;height:34px;background:var(--ink);color:var(--paper);border-radius:10px;font:700 .78rem 'Space Grotesk',sans-serif;transform:rotate(-3deg)}
.scx-unit.is-check .scx-unit-n{background:#7955bb}
.scx-save{flex:0 0 auto;width:42px;height:42px;display:grid;place-items:center;border:1.5px solid #bba3da;border-radius:11px;background:#f8f1fd;font-size:1.15rem;padding:0;transition:transform .15s}.scx-save:active{transform:scale(.9)}
.scx-save-off{filter:grayscale(1) opacity(.45)}.scx-save[aria-pressed=true]{background:#fbe8a9;border-color:var(--ink);box-shadow:2px 2px 0 var(--ink)}
.scx-bubble{position:absolute;z-index:20;inset-inline-end:0;margin-top:48px;background:var(--ink);color:#fff;font-size:.72rem;font-weight:700;border-radius:8px;padding:5px 10px;animation:scx-in .2s both;pointer-events:none}
.scx-unit-head{position:relative}
/* Checkpoint (handbook check style) */
.scx-check{background:#f9f5fe;border:2.5px solid var(--ink);border-radius:17px;box-shadow:3px 3px 0 var(--ink);padding:20px}
.scx-check-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.scx-check h3{font-size:1rem;line-height:1.75;margin:6px 0 16px}
.scx-pill{font-size:.7rem;font-weight:700;border-radius:999px;padding:3px 10px;border:1.5px solid}.scx-pill.ok{background:#e5f3e7;border-color:#3e8153;color:#285e3a}.scx-pill.bad{background:#fce9e5;border-color:#ab5648;color:#8c3b2f}.scx-pill.fix{background:#fdf1d2;border-color:#b58a22;color:#7a5a0f}
.scx-options{display:grid;gap:10px}.scx-option{display:flex;align-items:center;gap:12px;width:100%;border:2px solid #aca391;border-radius:12px;padding:12px;background:#fffdf8;text-align:start;min-height:60px}
.scx-option>span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:8px;background:#ede4f8;font-weight:700;font-size:.82rem}.scx-option>b{flex:1;font-size:.92rem;line-height:1.7;font-weight:500}.scx-option em{font-style:normal;font-weight:700}
.scx-option:not(:disabled):hover{border-color:#7955bb;background:#f1e7fc}.scx-option:disabled{opacity:1;cursor:default}.scx-option.is-right{border-color:#3e8153;background:#e5f3e7}.scx-option.is-wrong{border-color:#ab5648;background:#fce9e5}
.scx-feedback{margin-top:18px;background:#fffdf8;border:1px solid #cfbfde;border-radius:12px;padding:16px;animation:scx-in .25s both}.scx-why{display:flex;gap:12px;align-items:start;border-top:1px dashed #d5c9ba;padding-top:12px;margin-top:12px}.scx-why>span{font-size:.76rem;font-weight:700;white-space:nowrap;color:#994438}.scx-why>span.ok{color:#287447}.scx-why>p{flex:1;margin:0;font-size:.86rem;line-height:1.8}
/* Finish + up next */
.scx-finish{background:#fffbf2;border:2px dashed #afa189;border-radius:18px;padding:20px;margin:36px 0 22px;scroll-margin-top:80px}
.scx-finish.pop{animation:scx-pop .6s cubic-bezier(.2,1.6,.4,1)}
@keyframes scx-pop{0%{transform:scale(.97)}50%{transform:scale(1.02);background:#e5f3e7}100%{transform:none}}
.scx-finish-top{display:flex;gap:14px;align-items:center}.scx-finish-top h2{margin:0;font-size:1.05rem}
.scx-ring{flex:0 0 64px;width:64px;height:64px;transform:rotate(-90deg)}.scx-ring circle{fill:none;stroke:#eee9df;stroke-width:6}.scx-ring circle.v{stroke:#4fae86;stroke-linecap:round;transition:stroke-dasharray .6s}
.scx-finish-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.scx-finish-stats>div{display:flex;flex-direction:column;align-items:center;border:1.5px solid var(--ink);border-radius:12px;background:var(--paper);padding:8px 4px;text-align:center}.scx-finish-stats b{font-size:1.2rem}.scx-finish-stats span{font-size:.68rem}
.scx-note{display:block;margin-top:18px}.scx-note>span{display:block;font-size:.8rem;font-weight:700;margin-bottom:6px}.scx-note textarea{width:100%;min-height:100px;padding:12px;background:#fffef9;background-image:repeating-linear-gradient(transparent 0 29px,#a8b8d026 29px 30px);border:1.5px solid #aa9b7f;border-radius:10px;font-size:16px;line-height:1.85;resize:vertical}
.scx-next{margin:10px 0 24px}.scx-next:empty{display:none}
.scx-dock{position:sticky;bottom:10px;z-index:8;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fffdf8f7;border:2.5px solid var(--ink);border-radius:15px;padding:9px 12px;box-shadow:3px 4px 0 var(--ink);margin:18px 0 8px}.scx-dock>div{display:flex;flex-direction:column}.scx-dock>div b{font-size:.84rem}.scx-dock>div span{font-size:.66rem;color:var(--muted)}.scx-dock .scx-btn{font-size:.78rem}
.scx-toast{position:fixed;z-index:40;left:50%;bottom:92px;transform:translateX(-50%);width:min(520px,calc(100vw - 24px));display:flex;align-items:center;gap:10px;background:var(--paper);border:2.5px solid var(--ink);border-radius:15px;box-shadow:4px 4px 0 var(--ink);padding:10px 12px;font-size:.82rem;animation:scx-in .3s both}.scx-toast>span{flex:1}
.scx-toast[hidden]{display:none}
.scx-x{width:36px;height:36px;border:1.5px solid var(--ink);border-radius:9px;background:#f2ecdf;font-size:1.2rem;padding:0}
.scx-drawer{width:min(460px,94vw);max-height:84dvh;border:3px solid var(--ink);border-radius:18px;padding:0;background:var(--paper);box-shadow:8px 8px 0 var(--ink);font-family:'Space Grotesk','Noto Sans Arabic',Tahoma,sans-serif}.scx-drawer::backdrop{background:#17140f99}
.scx-drawer-top{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#d8c6f2;border-bottom:2px solid var(--ink)}.scx-drawer-list{padding:8px 12px 14px;overflow:auto;max-height:70dvh}
.scx-outline{display:flex;gap:10px;align-items:center;width:100%;text-align:start;border:0;border-bottom:1px dashed #d9cebd;background:transparent;padding:11px 4px;font-size:.82rem}.scx-outline>span{flex:0 0 30px;color:#7955bb;font-weight:700;font-family:'Space Grotesk',sans-serif}.scx-outline>b{flex:1;font-weight:500}.scx-outline.is-current{background:#eee2fa;border:1.5px solid #9074b0;border-radius:9px;padding:10px 8px}.scx-outline.is-check>b{font-weight:700}
/* Notebook + retry + review */
.scx-nb{background:var(--tone);border:2px solid var(--ink);border-radius:17px;box-shadow:4px 4px 0 var(--ink);padding:10px;margin-bottom:22px}.scx-nb>header{display:flex;align-items:center;gap:10px;padding:4px 6px 10px}.scx-nb>header b{flex:1}
.scx-nb-card{background:var(--paper);border:1.5px solid var(--ink);border-radius:12px;margin-top:8px;overflow:hidden}.scx-nb-card>summary{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none}.scx-nb-card>summary::-webkit-details-marker{display:none}.scx-nb-card summary b{flex:1;font-size:.9rem}.scx-nb-card summary small{font-size:.68rem;color:var(--muted);white-space:nowrap}.scx-nb-card summary small.due{color:#8c3b2f;font-weight:700}
.scx-nb-body{padding:12px;border-top:1px dashed #cbbda7}.scx-nb-actions{display:flex;justify-content:space-between;padding:0 10px 4px}
.scx-retry{display:grid;gap:12px}.scx-retry-row{display:grid;grid-template-columns:34px minmax(0,1fr) 36px;gap:12px;align-items:center;text-align:start;background:var(--tone);border:2px solid var(--ink);border-radius:14px;box-shadow:3px 3px 0 var(--ink);padding:12px}.scx-retry-row b{display:block;font-size:.9rem}.scx-retry-row small{font-size:.72rem;color:#3b3530}
.scx-flash{margin-top:8px}.scx-flash-front{background:var(--tone);border:3px solid var(--ink);border-radius:22px;box-shadow:6px 6px 0 var(--ink);padding:26px 22px;text-align:center;margin-bottom:22px}.scx-flash-front h1{margin:6px 0 10px}.scx-flash-front p{color:#3b3530;font-size:.86rem;margin:0}
.scx-flash-back{animation:scx-in .3s both}
.scx-rate{position:sticky;bottom:10px;z-index:8;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch;background:#fffdf8f5;border:2.5px solid var(--ink);border-radius:16px;box-shadow:3px 4px 0 var(--ink);padding:10px;margin-top:18px}.scx-rate>span{grid-column:1/-1;font-size:.78rem;font-weight:700;text-align:center}.scx-rate .scx-btn{flex-direction:column;gap:0;padding:8px}.scx-rate small{font-size:.66rem;font-weight:500}.scx-again{background:#fce9e5}.scx-good{background:#d9efdf}.scx-easy{background:#d8eafb}
.scx-footer{border-top:1.5px dashed #b5a993;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:40px;padding-top:16px;font-size:.72rem;color:var(--muted)}

/* Lesson blocks restyled to the handbook's softer weights */
.scx .card{border-width:2px;box-shadow:3px 3px 0 var(--ink);border-radius:16px}
.scx .card p,.scx .card li,.scx .after,.scx .rfx p,.scx .medc dd,.scx .prec .pc dd,.scx .split .cells div,.scx .flow .step .b,.scx .alert p{font-weight:500;color:#2e2923}
.scx .rfx b,.scx .medc header b{font-weight:700}.scx .alert{border-width:2px;box-shadow:3px 3px 0 var(--ink)}
.scx .scx-unit-body>*:last-child{margin-bottom:0}
@media(prefers-reduced-motion:reduce){.scx *{animation:none!important;transition:none!important}}

@media(max-width:700px){
  .scx{padding:6px 2px 30px}
  .scx-hero-paper{grid-template-columns:minmax(0,1fr) 70px;padding:18px 14px}.scx-hero-art{width:70px;height:90px}.scx-hero h1{font-size:1.45rem}
  .scx-stats{gap:6px}.scx-stats>div{padding:8px 2px}.scx-stats b{font-size:1.2rem}.scx-stats span{font-size:.6rem}
  .scx-tabs{gap:6px}.scx-tab{font-size:.7rem;padding:8px 4px}
  .scx-cover{grid-template-columns:24px minmax(0,1fr);padding:10px 10px 10px 0;border-radius:18px}.scx[dir=rtl] .scx-cover{padding:10px 0 10px 10px}.scx-spine i{width:20px;height:10px}.scx-cover-in{padding:16px 14px;margin-inline-start:8px}.scx-cover-title h2{font-size:1.15rem}
  .scx-grid{grid-template-columns:1fr}
  .scx-head{padding:16px;border-inline-start-width:8px}.scx-head-ico{width:50px;height:50px}.scx-head-row h1{font-size:1.35rem}
  .scx-continue,.scx-next-card{grid-template-columns:46px minmax(0,1fr) 32px;gap:10px;padding:12px}.scx-continue-ico,.scx-next-ico{width:46px;height:46px}
  .scx-check{padding:15px}.scx-finish-stats{gap:6px}
}
.scx-check-top:empty{display:none}.scx-unit.is-alert .scx-unit-body>.alert:first-child{padding-top:14px}.scx-unit.is-alert .scx-unit-body>.alert:first-child::before{display:none}.scx-rail-pct{padding-inline-start:4px}.scx-outline i{display:inline-flex}
.scx-seg{padding:0 8px}.scx-rail-pct{min-width:42px}
.scx-seg{gap:2px;overflow:hidden;padding:3px 6px}.scx-seg button.ck{flex:0 0 10px;height:10px;border-radius:2px}.scx-seg button{min-width:2px}
.scx-reader{max-width:760px;margin:0 auto}
.scx{--scx-bottom:10px}.scx-dock,.scx-rate{bottom:var(--scx-bottom)}.scx-toast{bottom:calc(var(--scx-bottom) + 78px)}

/* V75 stepped reader */
.scx-stage{min-height:40vh}
.scx-step{animation:scx-in .3s cubic-bezier(.2,.7,.2,1) both}
.scx-step.from-next{animation:scx-from-next .34s cubic-bezier(.2,.7,.2,1) both}.scx-step.from-prev{animation:scx-from-prev .34s cubic-bezier(.2,.7,.2,1) both}
@keyframes scx-from-next{from{opacity:0;transform:translateX(34px)}to{opacity:1;transform:none}}
@keyframes scx-from-prev{from{opacity:0;transform:translateX(-34px)}to{opacity:1;transform:none}}
.scx[dir=rtl] .scx-step.from-next{animation-name:scx-from-prev}.scx[dir=rtl] .scx-step.from-prev{animation-name:scx-from-next}
.scx-step-cap{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 14px}.scx-step-cap .scx-label{margin:0}.scx-step-hint{font-size:.72rem;font-weight:700;color:#59418f}
.scx-stepnav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:26px 0 8px}.scx-stepnav .scx-btn{min-width:130px}
.scx-head-more:empty{display:none}.scx-head{margin-bottom:14px}
.scx-resume{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#fbebc8;border:1.5px solid #d9bf7c;border-radius:12px;padding:6px 12px;margin:-10px 0 18px;font-size:.8rem}.scx-resume[hidden]{display:none}
.scx-dock-btns{display:flex;gap:8px}.scx-sq{min-width:44px;padding:8px 12px}
.scx-todo{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.scx-allset{margin:16px 0 0;font-weight:700;font-size:.9rem}
.scx-chips .scx-going{background:#fbebc8;border-color:#d9bf7c}
.scx-center{justify-content:center}
.scx-review-bar{margin:-8px 0 18px}
.scx-drawer .scx{padding:0;max-width:none}.scx-drawer-step{border-bottom:1.5px solid #e4dccf;padding:6px 0}.scx-drawer-step.is-current{background:#f6f0fd;border-radius:10px}
.scx-outline-step{display:flex;gap:10px;align-items:center;width:100%;border:0;background:transparent;padding:8px 4px;font-size:.86rem;text-align:start}.scx-outline-step>span{flex:0 0 30px;height:26px;display:grid;place-items:center;border:1.5px solid var(--ink);border-radius:8px;background:var(--paper);font-weight:700;font-family:'Space Grotesk',sans-serif}
.scx-outline{padding-inline-start:40px}
[data-zoom]{cursor:zoom-in}
.scx-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;padding:0;background:#17140fee;color:#fff}.scx-lightbox[open]{display:flex;flex-direction:column}.scx-lightbox::backdrop{background:#17140fcc}
.scx-lb-top{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;font-family:'Space Grotesk','Noto Sans Arabic',sans-serif}
.scx-lb-close{min-height:44px;border:2px solid #fff;border-radius:12px;background:#fffdf8;color:#17140f;font:700 .9rem 'Space Grotesk','Noto Sans Arabic',sans-serif;padding:8px 16px;cursor:pointer}
.scx-lb-body{flex:1;min-height:0;overflow:auto;display:grid;place-items:center;padding:10px;background:#fffdf8;margin:0 10px 10px;border-radius:14px;touch-action:pinch-zoom}
.scx-lb-body img,.scx-lb-body svg{width:100%;max-width:1100px;height:auto;max-height:none;display:block}
@media(max-width:700px){.scx-stepnav .scx-btn{min-width:0;flex:1}}
.scx-lb{display:flex;flex-direction:column;height:100%;max-width:none;padding:0;color:#fff}.scx-lb-body .art{width:100%;display:grid;place-items:center;border:0;padding:0;background:transparent}
.scx-dock>div:first-child{flex:1;min-width:0}.scx-dock-btns{flex-wrap:nowrap;flex:0 0 auto}.scx-dock .scx-btn{white-space:nowrap}
.scx .scx-lb-close{color:#17140f}.scx-lb-body .art svg,.scx-lb-body .art img{width:100%!important;max-height:82dvh;height:auto}
/* In the app shell the bottom tab bar (.v2-nav, ~110px) sits over the page: lift the dock, rating bar and toast above it. */
body:has(.v2-nav) snle-course .scx{--scx-bottom:118px}
.scx-dock>.scx-dock-btns{flex-direction:row;align-items:center}.scx-stepnav{display:none}
.tone-purple{--tone:#e3d6fa;--tone-deep:#7a58cc}.tone-coral{--tone:#fbd8cf;--tone-deep:#e4563f}.tone-blue{--tone:#d5eafa;--tone-deep:#2f80c4}.tone-green{--tone:#d8eee1;--tone-deep:#2c9068}
