/* Course content builder (Course create/edit form) */
.wm-cb-svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none;display:block}
.wm-cb-svg.sm{width:15px;height:15px}
.wm-cb-primary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:0;border-radius:10px;background:#111;color:#fff;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.wm-cb-primary:active{opacity:.85}
.wm-cb-empty{margin:14px 0 0;font-size:12.5px;line-height:1.55;color:var(--wm-muted,#6b7a86)}
.wm-cb-empty.sm{margin:12px 2px 2px;font-size:12px}
.wm-cb-mod{margin-top:12px;border:1px solid var(--wm-line,#e6ebe8);border-radius:12px;background:#fff}
.wm-cb-mod-head{display:flex;align-items:center;gap:2px;padding:6px 6px 6px 4px}
.wm-cb-mod-title{flex:1;min-width:0;height:38px;border:1px solid transparent;border-radius:8px;background:transparent;padding:0 8px;font:inherit;font-size:14px;font-weight:700;color:#111}
.wm-cb-mod-title:focus{border-color:var(--wm-line,#d9dfdc);background:#fafbfa;outline:0}
.wm-cb-count{flex:none;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#f1f3f2;color:#444;font-size:11px;font-weight:700;display:grid;place-items:center;margin-right:2px}
.wm-cb-ico{display:grid;place-items:center;flex:none;width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#333;cursor:pointer;-webkit-tap-highlight-color:transparent}
.wm-cb-ico:hover,.wm-cb-ico:active{background:#f1f3f2}
.wm-cb-ico[disabled]{opacity:.28;cursor:default;background:transparent}
.wm-cb-ico.is-danger{color:#d32f2f}
.wm-cb-chev .wm-cb-svg{transition:transform .2s}
.wm-cb-mod.is-open .wm-cb-chev .wm-cb-svg{transform:rotate(180deg)}
.wm-cb-mod-body{padding:2px 12px 14px;border-top:1px solid var(--wm-line,#eef1ef)}
.wm-cb-addwrap{position:relative;display:inline-block;margin-top:12px}
.wm-cb-add{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:1px solid #cfd6d2;border-radius:10px;background:#f4f6f5;color:#111;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.wm-cb-menu{position:absolute;left:0;top:calc(100% + 6px);z-index:30;min-width:230px;padding:6px;background:#fff;border:1px solid var(--wm-line,#e2e7e4);border-radius:12px;box-shadow:0 12px 34px rgba(15,25,30,.16)}
.wm-cb-menuitem{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:8px 10px;border:0;border-radius:8px;background:transparent;font:inherit;font-size:13.5px;font-weight:500;color:#111;text-align:left;cursor:pointer}
.wm-cb-menuitem:hover,.wm-cb-menuitem:active{background:#f1f3f2}
.wm-cb-sheet .wm-cp-panel .wm-cb-menuitem{display:flex;margin:0;min-height:50px;font-size:15px;border-radius:10px;padding:10px 6px}
.wm-cb-items{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.wm-cb-item{display:flex;align-items:center;gap:4px;padding:8px 4px 8px 10px;border:1px solid var(--wm-line,#e6ebe8);border-radius:10px;background:#fbfcfb}
.wm-cb-tico{flex:none;display:grid;place-items:center;width:32px;height:32px;margin-right:6px;border-radius:9px;background:#eef2f0;color:#222}
.wm-cb-itext{flex:1;min-width:0}
.wm-cb-itext b{display:block;font-size:13px;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wm-cb-itext small{display:block;margin-top:1px;font-size:11px;color:var(--wm-muted,#6b7a86);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wm-cb-item .wm-cb-ico{width:30px;height:30px}
@media(max-width:420px){.wm-cb-item .wm-cb-ico[data-cb="item-up"],.wm-cb-item .wm-cb-ico[data-cb="item-down"]{width:26px}.wm-cb-mod-head .wm-cb-ico{width:30px}}

/* ---- add / edit content page ---- */
html.wm-cb-lock,html.wm-cb-lock body{overflow:hidden!important}
.wm-cb-page{position:fixed;inset:0;z-index:100005;background:#fff;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;animation:wmCbIn .28s cubic-bezier(.22,.8,.3,1)}
.wm-cb-page.is-leaving{animation:wmCbOut .2s ease-in forwards}
@keyframes wmCbIn{from{transform:translateX(100%)}to{transform:none}}
@keyframes wmCbOut{from{transform:none}to{transform:translateX(100%)}}
@media(min-width:721px){.wm-cb-page{left:var(--app-sidebar-current,248px)}}
.wm-cb-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:6px;height:56px;padding:0 12px;background:#fff;border-bottom:1px solid var(--wm-line,#e6ebe8);box-sizing:border-box}
.wm-cb-bar h1{margin:0;font-size:16px;font-weight:700;letter-spacing:-.2px;color:#111}
.wm-cb-back{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#111;cursor:pointer}
.wm-cb-back:active{background:#f1f3f2}
.wm-cb-back .wm-cb-svg{width:22px;height:22px;stroke-width:2}
.wm-cb-form{max-width:640px;padding:18px 16px calc(36px + env(safe-area-inset-bottom));box-sizing:border-box}
@media(min-width:721px){.wm-cb-form{padding:26px clamp(28px,2.5vw,52px) 48px;margin:0}}
.wm-cb-form h3{margin:26px 0 4px;padding-top:18px;border-top:1px solid var(--wm-line,#e6ebe8);font-size:13.5px;color:#0b2f87}
.wm-cb-f{margin-top:16px}
.wm-cb-f label{display:block;margin-bottom:6px;font-size:12.5px;font-weight:700;color:#2a3440}
.wm-cb-f label i{color:#d32f2f;font-style:normal}
.wm-cb-f input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),.wm-cb-f select,.wm-cb-f textarea{width:100%;box-sizing:border-box;min-height:46px;padding:10px 12px;border:1px solid #d9dfdc;border-radius:10px;background:#fff;font:inherit;font-size:14px;color:#111}
.wm-cb-f textarea{resize:vertical;min-height:130px;line-height:1.5}
.wm-cb-f input[type=file]{width:100%;font-size:13px}
.wm-cb-f input:focus,.wm-cb-f select:focus,.wm-cb-f textarea:focus{outline:0;border-color:#111}
.wm-cb-f small{display:block;margin-top:6px;font-size:11.5px;line-height:1.45;color:var(--wm-muted,#6b7a86)}
.wm-cb-f .wm-cb-cc{text-align:right}
.wm-cb-f.is-bad input,.wm-cb-f.is-bad select,.wm-cb-f.is-bad textarea,.wm-cb-f.is-bad .wm-cb-room{border-color:#d32f2f}
.wm-cb-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wm-cb-fixed{min-height:46px;display:flex;align-items:center;padding:0 12px;border:1px solid #d9dfdc;border-radius:10px;background:#f6f8f7;font-size:14px;font-weight:600}
.wm-cb-warn{margin-top:18px;padding:14px;border:1px solid #f1dd8a;border-radius:12px;background:#fffbea}
.wm-cb-warn p{margin:8px 0 0;font-size:12px;line-height:1.5;color:#8a5a00}
.wm-cb-sub{margin-top:4px}
.wm-cb-note{margin:18px 0 0;font-size:12px;color:var(--wm-muted,#6b7a86)}
.wm-cb-tg{display:flex;align-items:center;gap:12px;margin-top:16px;font-size:13.5px;cursor:pointer}
.wm-cb-tg input{position:absolute;opacity:0;pointer-events:none}
.wm-cb-sw{flex:none;position:relative;width:44px;height:26px;border-radius:13px;background:#d7dcda;transition:background .18s}
.wm-cb-sw:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .18s}
.wm-cb-tg input:checked+.wm-cb-sw{background:#111}
.wm-cb-tg input:checked+.wm-cb-sw:after{transform:translateX(18px)}
.wm-cb-tg em{font-style:normal;color:#d32f2f;font-size:12px}
.wm-cb-warn .wm-cb-tg{margin-top:0}
.wm-cb-seg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wm-cb-seg button{min-height:46px;border:1.5px solid #d9dfdc;border-radius:10px;background:#fff;font:inherit;font-size:14px;font-weight:600;color:#333;cursor:pointer}
.wm-cb-seg button.is-on{border-color:#111;background:#f4f6f5;color:#111}
.wm-cb-room{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid #d9dfdc;border-radius:10px;background:#fafbfa}
.wm-cb-roomurl{font-size:12.5px;line-height:1.45;color:#333;word-break:break-all}
.wm-cb-roombtns{display:flex;gap:8px}
.wm-cb-ghost{min-height:38px;padding:0 14px;border:1px solid #cfd6d2;border-radius:9px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:#111;cursor:pointer}
.wm-cb-ghost[disabled]{opacity:.45;cursor:default}
.wm-cb-err{margin:18px 0 0;padding:11px 12px;border-radius:10px;background:#fdecec;color:#b3261e;font-size:13px;font-weight:600}
.wm-cb-save{display:block;width:100%;min-height:50px;margin-top:22px;border:0;border-radius:12px;background:#111;color:#fff;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.wm-cb-save[disabled]{opacity:.6;cursor:default}
.wm-cb-leave{z-index:100020}
@media(prefers-reduced-motion:reduce){.wm-cb-page{animation:none}}

/* quiz questions */
.wm-cb-q{margin-top:16px;padding:14px;border:1px solid var(--wm-line,#e2e7e4);border-radius:12px;background:#fbfcfb}
.wm-cb-qhead{display:flex;align-items:center;justify-content:space-between}
.wm-cb-qhead b{font-size:13.5px;color:#111}.wm-cb-qhead span{display:flex}
.wm-cb-opts{display:flex;flex-direction:column;gap:8px}
.wm-cb-opt{display:flex;align-items:center;gap:8px}
.wm-cb-opt>input[type=radio],.wm-cb-opt>input[type=checkbox]{flex:none;width:20px!important;height:20px!important;min-height:0!important;padding:0!important;border:0;accent-color:#111;margin:0}
.wm-cb-opt>input[type=text]{flex:1;min-width:0;min-height:44px;padding:8px 12px;border:1px solid #d9dfdc;border-radius:10px;font:inherit;font-size:14px;box-sizing:border-box}
.wm-cb-opttext{flex:1;font-size:14px}
.wm-cb-opts+small+.wm-cb-ghost{margin-top:10px}
.wm-cb-qadd{margin-top:16px}
.wm-cb-qsum{margin-top:14px;font-size:12.5px;font-weight:700;color:#0a6f4f}
.wm-cb-qsum.is-off{color:#b3261e}
