/* 2026-10-10 instructor-built modules (teacher editor + student view) and the student calculator */
.sc-intro{margin:0 0 .6rem}
.sc-list{display:grid;gap:.7rem}
.sc-mod summary{display:flex;gap:.6rem;align-items:baseline;cursor:pointer;list-style:none;flex-wrap:wrap}
.sc-mod summary::-webkit-details-marker{display:none}
.sc-mod summary b{flex:1;font-size:1.05rem;min-width:12rem}
.sc-n{font-size:.78rem;font-weight:700;color:#1b4191;background:#eaf0fb;border-radius:99px;padding:.15rem .55rem}
.sc-items{list-style:none;margin:.6rem 0 0;padding:0;display:grid;gap:.45rem}
.sc-it{border:1px solid #e3e8f2;border-radius:12px;padding:.6rem .75rem;background:#fff}
.sc-h{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}
.sc-h b{flex:1;min-width:9rem}
.sc-a{color:inherit;text-decoration:none}
.sc-a:hover b{text-decoration:underline}
.sc-ic{display:inline-flex;width:30px;height:30px;border-radius:9px;background:#eef3fc;align-items:center;justify-content:center;flex:none}
.sc-ic svg{width:17px;height:17px}
.sc-t{display:flex;flex-direction:column;flex:1;min-width:10rem}
.sc-body{margin:.4rem 0 0 2.4rem}
.sc-body p{margin:.3rem 0}
.sc-prac{background:#f6fbf9;border-color:#cfe9df}
@media (max-width:640px){.sc-body{margin-left:0}.sc-h .btn{width:100%}}
/* teacher editor */
.cw-top{display:flex;gap:.6rem;align-items:flex-start;flex-wrap:wrap;justify-content:space-between}
.cw-list{display:grid;gap:.6rem;margin-top:.8rem}
.cw-mod{display:grid;grid-template-columns:auto 1fr auto;gap:.7rem;align-items:center;padding:.8rem 1rem}
.cw-grip{cursor:grab;color:#8a96ad;font-size:1.2rem;line-height:1;user-select:none;padding:.35rem .3rem;margin:-.2rem -.1rem;border-radius:8px;touch-action:none;letter-spacing:-.08em}
.cw-grip:hover,.cw-grip:focus-visible{color:#2b5fc9;background:#eef3fd}
.cw-mod,.cw-item{transition:box-shadow .15s ease,opacity .15s ease,background-color .15s ease}
.cw-sortable{position:relative}
.cw-sortable .cw-mod,.cw-sortable .cw-item{cursor:grab}
.cw-sortable .btn,.cw-sortable a,.cw-sortable summary,.cw-sortable input{cursor:pointer}
.cw-dragging{position:relative;z-index:5;cursor:grabbing!important;opacity:.96;box-shadow:0 14px 34px rgba(20,40,90,.28);background:#fff;transition:box-shadow .15s ease;border-color:#2b5fc9!important;pointer-events:none}
.cw-drop{position:absolute;left:0;right:0;top:0;height:3px;border-radius:3px;background:#2b5fc9;box-shadow:0 0 0 3px rgba(43,95,201,.18);pointer-events:none;z-index:4;transition:transform .12s ease,opacity .12s}
.cw-drop.same{opacity:.35}
body.cw-sorting{user-select:none;-webkit-user-select:none;cursor:grabbing}
.cw-item.can-drag{grid-template-columns:auto auto 1fr auto}
.cw-open{background:#2b5fc9;border-color:#2b5fc9;color:#fff!important;text-decoration:none;font-weight:600}
.cw-open:hover{background:#244fa6}
.sc-open{flex:none;text-decoration:none}
.cw-main b{font-size:1.02rem}
.cw-main .small{display:block}
.cw-acts{display:flex;gap:.3rem;flex-wrap:wrap;justify-content:flex-end}
.cw-acts .btn{padding:.3rem .55rem}
.cw-empty{text-align:center;padding:2rem 1rem}
.cw-empty h3{margin:.3rem 0}
.cw-skills{max-height:260px;overflow:auto;border:1px solid #e3e8f2;border-radius:10px;padding:.4rem .6rem}
.cw-skills h5{margin:.5rem 0 .2rem;color:#5a6782}
.cw-skills label{display:flex;gap:.45rem;align-items:flex-start;font-size:.9rem;margin:.2rem 0;font-weight:400}
.cw-items{list-style:none;padding:0;margin:.6rem 0 0;display:grid;gap:.4rem}
.cw-item{display:grid;grid-template-columns:auto 1fr auto;gap:.6rem;align-items:center;border:1px solid #e3e8f2;border-radius:12px;padding:.5rem .7rem;background:#fff}
.cw-item.hid{opacity:.6;background:#fafafa}
.cw-gap{color:#9a5b00}
@media (max-width:640px){.cw-mod{grid-template-columns:auto 1fr}.cw-mod .cw-acts{grid-column:1/-1}.cw-acts{justify-content:flex-start}.cw-item{grid-template-columns:1fr}.cw-item.can-drag{grid-template-columns:auto 1fr}.cw-item.can-drag .cw-acts{grid-column:1/-1}}
/* calculator */
.lc-btn{position:fixed;right:18px;bottom:18px;z-index:60;box-shadow:0 6px 18px rgba(20,40,90,.25)}
.lc{position:fixed;right:18px;bottom:70px;width:340px;z-index:61;background:#fff;border:1px solid #d7deeb;border-radius:16px;box-shadow:0 14px 40px rgba(20,40,90,.28);font:inherit;user-select:none}
.lc-head{display:flex;align-items:center;gap:.4rem;padding:.45rem .6rem;border-bottom:1px solid #eef1f7;cursor:move;touch-action:none}
.lc-head b{flex:1}
.lc-head button{border:0;background:#f1f4fa;border-radius:8px;padding:.25rem .5rem;cursor:pointer;font:inherit}
.lc-disp{padding:.5rem .7rem;text-align:right}
.lc-expr{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:1rem;min-height:1.4rem;word-break:break-all;color:#36425c}
.lc-res{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:1.5rem;font-weight:700;min-height:2rem;color:#13213f}
.lc-err{color:#b3261e;font-size:.85rem;min-height:1rem}
.lc-keys{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;padding:.4rem .5rem .6rem}
.lc-keys button{border:1px solid #e1e6f0;background:#f8fafd;border-radius:8px;padding:.45rem 0;font:inherit;font-size:.86rem;cursor:pointer;min-height:36px}
.lc-keys button:hover{background:#eef3fc}
.lc-keys .n{background:#fff;font-weight:600}
.lc-keys .op{background:#eaf0fb;color:#1b4191;font-weight:700}
.lc-keys .eq{background:#1b4191;color:#fff;font-weight:700}
.lc-keys .cl{background:#fdecea;color:#b3261e}
.lc-hist{max-height:90px;overflow:auto;border-top:1px solid #eef1f7;padding:.3rem .7rem;font-size:.8rem;color:#5a6782}
.lc-hist div{cursor:pointer;font-family:ui-monospace,Menlo,Consolas,monospace}
.lc.min .lc-disp,.lc.min .lc-keys,.lc.min .lc-hist{display:none}
@media (max-width:640px){.lc{left:0;right:0;bottom:0;width:auto;border-radius:16px 16px 0 0;top:auto!important}.lc-head{cursor:default}.lc-keys button{min-height:40px}.lc-btn{bottom:76px}}
.cw-skills input[type=checkbox]{width:auto;flex:none;margin:.2rem 0 0;min-height:0}
.cw-skills label span{flex:1}

/* 2026-10-10 video items */
.sc-player,.cw-player{display:block;width:100%;max-width:960px;aspect-ratio:16/9;margin:.55rem 0 0;border-radius:10px;background:#1c243a}
.cw-prog{width:100%;height:.6rem;margin:.4rem 0}

/* 2026-10-12: Add content picker modal */
.modal.cw-pick-modal{max-width:760px;width:calc(100vw - 32px)}
.cw-pick-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.cw-pick-x{border:0;background:#f1f4fa;border-radius:50%;width:36px;height:36px;font-size:1.4rem;line-height:1;cursor:pointer;color:#334}
.cw-pick-x:hover,.cw-pick-x:focus-visible{background:#e2e8f4}
.cw-pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.cw-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;padding:16px;min-height:120px;border:1px solid #d7deeb;border-radius:14px;background:#fff;cursor:pointer;font:inherit;transition:border-color .15s,background .15s,box-shadow .15s}
.cw-tile b{font-size:1.05rem}
.cw-tile-ic{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:#eef3fd;color:#2b5fc9}
.cw-tile:hover{border-color:#2b5fc9;background:#f7f9fe}
.cw-tile:focus-visible{outline:3px solid #2b5fc9;outline-offset:2px;border-color:#2b5fc9}
.sc-lk{flex:1;min-width:0}
