*{box-sizing:border-box}
.elc-shell,.elc-course{max-width:1170px;margin:24px auto;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#102535;line-height:1.55}
.elc-account{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px 16px;border:1px solid #dce8ed;border-radius:14px;margin-bottom:16px;background:#fff}
.elc-account span{color:#60727d}
.elc-account a{margin-left:auto}
.elc-account a+a{margin-left:0}
.elc-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:#eef9fd;border:1px solid #cfe8f1;border-radius:24px;padding:30px}
.elc-kicker{font-size:12px;font-weight:900;letter-spacing:.12em;color:#0089ad}
.elc-hero h1{font-size:40px;margin:5px 0}
.elc-progress{background:#fff;border:1px solid #dce7eb;border-radius:18px;padding:16px;text-align:center;min-width:145px}
.elc-progress strong{font-size:32px;display:block}
.elc-tabs{display:flex;gap:8px;overflow-x:auto;padding:16px 0;border-bottom:1px solid #dce7eb}
.elc-tab{white-space:nowrap;border:1px solid #d3e0e6;border-radius:999px;background:#fff;padding:9px 13px;font-weight:750;cursor:pointer}
.elc-tab span{display:inline-flex;width:25px;height:25px;align-items:center;justify-content:center;border-radius:50%;background:#eef8fb;margin-right:6px}
.elc-tab.is-active{background:#153f50;color:#fff}
.elc-section{display:none}
.elc-section.is-active{display:block}
.elc-section-head,.elc-panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.elc-section-head{margin:28px 0 14px}
.elc-section-head h2{font-size:31px;margin:3px 0}
.elc-complete,.elc-listen-all,.elc-check,.elc-primary,.elc-save-project,.elc-dialog-save,.elc-start-flash{border:0;border-radius:999px;background:#143f50;color:#fff;padding:10px 16px;font-weight:800;cursor:pointer;text-decoration:none}
.elc-listen-all{background:#0da7c9}
.elc-panel{border:1px solid #dfe8ec;border-radius:19px;padding:22px;margin:16px 0;background:#fff}
.elc-page{display:block;width:100%;height:auto;border:1px solid #d9e5e9;border-radius:14px;margin-top:12px}
.elc-zoom,.elc-listen,.elc-stop{border:1px solid #c9dce4;background:#fff;border-radius:999px;padding:7px 12px;cursor:pointer}
.elc-readable{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f7fafb;border-radius:12px;padding:12px 15px}
.elc-selectable{cursor:text;min-width:0}
.elc-select-help{padding:12px;border:1px solid #d3e6ed;background:#f8fcfd;border-radius:12px}
.elc-vocab-chips{display:flex;flex-wrap:wrap;gap:8px}
.elc-vocab-chips>span{display:flex}
.elc-word,.elc-add-word{border:1px solid #cde1e8;background:#eef9fd;padding:9px 12px;cursor:pointer}
.elc-word{border-radius:999px 0 0 999px}
.elc-add-word{border-radius:0 999px 999px 0;border-left:0}
.elc-question{padding:13px;border:1px solid #e2e8eb;border-radius:12px;margin:10px 0}
.elc-question label{display:block;margin:7px 0}
.elc-question input[type=text],.elc-question textarea,.elc-project-notes{width:100%;padding:10px;border:1px solid #cbd8de;border-radius:10px;font:inherit}
.elc-project-notes{min-height:140px}
.elc-question.correct{background:#f1fff6;border-color:#80c99d}
.elc-question.wrong{background:#fff4f4;border-color:#e4a5a5}
.elc-result{font-weight:800;margin-top:12px}
.elc-toast{position:sticky;bottom:12px;margin-left:auto;width:max-content;max-width:80%;background:#143f50;color:#fff;border-radius:12px;padding:10px 14px;opacity:0;pointer-events:none}
.elc-toast.show{opacity:1}
.elc-modal,.elc-vocab-dialog{position:fixed;inset:0;z-index:99999;background:rgba(10,25,32,.72);padding:24px;overflow:auto}
.elc-modal[hidden],.elc-vocab-dialog[hidden],.elc-flash-back[hidden],.elc-flash-stage[hidden],.elc-stop[hidden],.elc-dialog-details[hidden]{display:none!important}
.elc-modal img{display:block;max-width:1100px;width:100%;margin:30px auto;background:#fff}
.elc-modal-close,.elc-dialog-close{position:absolute;right:18px;top:12px;border:0;width:42px;height:42px;border-radius:50%;font-size:24px;cursor:pointer}
.elc-dialog-card{position:relative;max-width:620px;margin:5% auto;background:#fff;border-radius:22px;padding:26px}
.elc-dialog-card label{display:grid;gap:5px;margin:11px 0;font-weight:700}
.elc-dialog-card textarea{width:100%;padding:10px;border:1px solid #cbd8de;border-radius:10px;font:inherit}
.elc-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.elc-dialog-cancel{border:1px solid #cbd8de;background:#fff;border-radius:999px;padding:10px 14px}
.elc-highlight{padding:1px 2px;border-radius:3px}
.elc-yellow{background:#fff1a8}
.elc-green{background:#c9f3d8}
.elc-pink{background:#ffd8e8}
.elc-blue{background:#d8ebff}
.elc-book-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px;margin-top:22px}
.elc-book-card{border:1px solid #dfe8ec;border-radius:20px;overflow:hidden;background:#fff}

.elc-book-card>div{padding:18px}
.elc-bar{height:8px;border-radius:99px;background:#edf3f5;overflow:hidden}
.elc-bar span{display:block;height:100%;background:#0da7c9}
.elc-note{padding:16px;border:1px solid #e1d79d;background:#fff9dc;border-radius:14px}
.elc-progress-grid{display:grid;gap:10px}
.elc-progress-grid article{display:flex;justify-content:space-between;gap:10px;padding:13px;border:1px solid #dfe8ec;border-radius:13px}
.elc-vocab-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.elc-vocab-list{display:grid;gap:10px}
.elc-vocab-row{display:grid;grid-template-columns:1fr auto;gap:15px;border:1px solid #dfe8ec;border-radius:14px;padding:14px}
.elc-vocab-row>div:last-child{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.elc-vi{background:#fff8e8;border-left:4px solid #e8b84a;border-radius:7px;padding:7px 9px}
.elc-status{font-size:12px;font-weight:800}
.elc-vocab-status,.elc-vocab-remove,.elc-vocab-listen{border:1px solid #cbd8de;background:#fff;border-radius:999px;padding:7px 10px}
.elc-flash-stage{background:#f4f9fb;border-radius:20px;padding:22px;margin-top:18px}
.elc-flash-card{max-width:650px;margin:auto;background:#fff;border:1px solid #dce7eb;border-radius:20px;padding:28px;text-align:center}
.elc-flash-front,.elc-flash-back{display:grid;gap:14px;justify-items:center}
.elc-flash-word{font-size:42px}
.elc-flash-ipa{font-size:18px;color:#60727d}
.elc-flash-reveal,.elc-flash-listen,.elc-flash-close{border:1px solid #cbd8de;background:#fff;border-radius:999px;padding:9px 13px}
.elc-srs-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%}
.elc-srs-actions button{display:flex;flex-direction:column;gap:2px;padding:10px;border:1px solid #cbd8de;background:#fff;border-radius:12px}
.elc-srs-actions small{font-size:11px}
.elc-flash-close{display:block;margin:12px auto 0}
.elc-start-flash:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:700px){
  .elc-hero{flex-direction:column;align-items:flex-start}
  .elc-hero h1{font-size:30px}
  .elc-progress{width:100%}
  .elc-readable{align-items:flex-start;flex-direction:column}
  .elc-vocab-row{grid-template-columns:1fr}
  .elc-vocab-head{align-items:flex-start;flex-direction:column}
  .elc-srs-actions{grid-template-columns:repeat(2,1fr)}
}

/* v2.1.0 navigation + compact library */
.elc-book-card{
  min-height:0;
}
.elc-book-card>div{
  padding:20px;
}
.elc-mybook-row{
  align-items:center;
}
.elc-mybook-row>div{
  display:grid;
  gap:3px;
}
.elc-book-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:auto;
  padding:8px 13px;
  border:1px solid #cbd8de;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  white-space:nowrap;
  color:#143f50;
  background:#fff;
}
.elc-book-open:hover{
  border-color:#0da7c9;
  background:#f3fbfd;
}
.elc-flash-stage{
  scroll-margin-top:24px;
}
@media(max-width:700px){
  .elc-mybook-row{
    align-items:flex-start!important;
    flex-direction:column;
  }
  .elc-book-open{
    margin-left:0;
  }
}


/* v2.2.0 — reliable Review Due navigation */
.elc-start-flash{
  transition:
    transform .16s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
  cursor:pointer;
}
.elc-start-flash:not(:disabled):focus-visible{
  outline:3px solid rgba(13,167,201,.32);
  outline-offset:3px;
}
@media (hover:hover) and (pointer:fine){
  .elc-start-flash:not(:disabled):hover{
    transform:translateY(-2px);
    background:#0d5b72;
    box-shadow:0 7px 18px rgba(20,63,80,.16);
  }
}
.elc-start-flash:disabled{
  cursor:not-allowed;
  opacity:.55;
}
.elc-flash-stage{
  scroll-margin-top:32px;
  outline:none;
}
.elc-flash-stage.elc-flash-attention{
  animation:elcFlashAttention 1.5s ease;
}
@keyframes elcFlashAttention{
  0%{
    box-shadow:0 0 0 0 rgba(13,167,201,0);
  }
  20%{
    box-shadow:0 0 0 5px rgba(13,167,201,.22);
  }
  100%{
    box-shadow:0 0 0 0 rgba(13,167,201,0);
  }
}
@media (prefers-reduced-motion:reduce){
  .elc-start-flash{
    transition:none;
  }
  .elc-start-flash:not(:disabled):hover{
    transform:none;
  }
  .elc-flash-stage.elc-flash-attention{
    animation:none;
    outline:3px solid rgba(13,167,201,.35);
    outline-offset:3px;
  }
}


/* v2.2.1 hotfix — Review Due control */
.elc-start-flash:not(:disabled){
  cursor:pointer;
}
@media (hover:hover) and (pointer:fine){
  .elc-start-flash:not(:disabled):hover{
    background:#0b617a;
    transform:translateY(-2px) scale(1.015);
    box-shadow:0 8px 20px rgba(20,63,80,.20);
  }
}


/* v2.2.2 — clear SRS rating hover / focus feedback */
.elc-srs-actions button{
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease;
  cursor:pointer;
  position:relative;
}
.elc-srs-actions button:not(:disabled):focus-visible{
  outline:3px solid rgba(13,167,201,.28);
  outline-offset:3px;
}
.elc-srs-actions button:not(:disabled):active{
  transform:translateY(0) scale(.985);
}

/* Again */
.elc-srs-actions button[data-rating="again"]{
  border-color:#e7b4b4;
}
@media (hover:hover) and (pointer:fine){
  .elc-srs-actions button[data-rating="again"]:not(:disabled):hover{
    transform:translateY(-2px);
    background:#fff2f2;
    border-color:#d96b6b;
    box-shadow:0 6px 16px rgba(183,70,70,.15);
  }
}

/* Hard */
.elc-srs-actions button[data-rating="hard"]{
  border-color:#e4c77d;
}
@media (hover:hover) and (pointer:fine){
  .elc-srs-actions button[data-rating="hard"]:not(:disabled):hover{
    transform:translateY(-2px);
    background:#fff9e9;
    border-color:#d8a92c;
    box-shadow:0 6px 16px rgba(184,136,30,.15);
  }
}

/* Good */
.elc-srs-actions button[data-rating="good"]{
  border-color:#9fd1af;
}
@media (hover:hover) and (pointer:fine){
  .elc-srs-actions button[data-rating="good"]:not(:disabled):hover{
    transform:translateY(-2px);
    background:#effbf3;
    border-color:#54a873;
    box-shadow:0 6px 16px rgba(56,142,90,.15);
  }
}

/* Easy */
.elc-srs-actions button[data-rating="easy"]{
  border-color:#9fc8e8;
}
@media (hover:hover) and (pointer:fine){
  .elc-srs-actions button[data-rating="easy"]:not(:disabled):hover{
    transform:translateY(-2px);
    background:#f0f8ff;
    border-color:#4e9fd3;
    box-shadow:0 6px 16px rgba(51,128,178,.15);
  }
}

.elc-srs-actions button:disabled{
  cursor:wait;
  opacity:.55;
}

@media (prefers-reduced-motion:reduce){
  .elc-srs-actions button{
    transition:none;
  }
  .elc-srs-actions button:not(:disabled):hover{
    transform:none!important;
  }
}


/* v2.2.3 — consistent hover/focus feedback for all interactive controls */
.elc-course button,
.elc-dashboard button,
.elc-shell button,
.elc-course a,
.elc-dashboard a,
.elc-shell a{
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    opacity .15s ease;
}

/* Generic clickable controls */
.elc-tab,
.elc-complete,
.elc-listen-all,
.elc-check,
.elc-primary,
.elc-save-project,
.elc-dialog-save,
.elc-start-flash,
.elc-zoom,
.elc-listen,
.elc-stop,
.elc-word,
.elc-add-word,
.elc-dialog-cancel,
.elc-modal-close,
.elc-dialog-close,
.elc-book-open,
.elc-vocab-status,
.elc-vocab-remove,
.elc-vocab-listen,
.elc-flash-reveal,
.elc-flash-listen,
.elc-flash-close{
  cursor:pointer;
}

/* Keyboard focus for all important actions */
.elc-tab:focus-visible,
.elc-complete:focus-visible,
.elc-listen-all:focus-visible,
.elc-check:focus-visible,
.elc-primary:focus-visible,
.elc-save-project:focus-visible,
.elc-dialog-save:focus-visible,
.elc-start-flash:focus-visible,
.elc-zoom:focus-visible,
.elc-listen:focus-visible,
.elc-stop:focus-visible,
.elc-word:focus-visible,
.elc-add-word:focus-visible,
.elc-dialog-cancel:focus-visible,
.elc-modal-close:focus-visible,
.elc-dialog-close:focus-visible,
.elc-book-open:focus-visible,
.elc-vocab-status:focus-visible,
.elc-vocab-remove:focus-visible,
.elc-vocab-listen:focus-visible,
.elc-flash-reveal:focus-visible,
.elc-flash-listen:focus-visible,
.elc-flash-close:focus-visible{
  outline:3px solid rgba(13,167,201,.28);
  outline-offset:3px;
}

/* General hover */
@media (hover:hover) and (pointer:fine){
  .elc-complete:not(:disabled):hover,
  .elc-check:not(:disabled):hover,
  .elc-primary:hover,
  .elc-save-project:not(:disabled):hover,
  .elc-dialog-save:not(:disabled):hover,
  .elc-flash-reveal:not(:disabled):hover{
    transform:translateY(-2px);
    filter:brightness(1.06);
    box-shadow:0 6px 16px rgba(20,63,80,.15);
  }

  .elc-tab:not(:disabled):hover{
    transform:translateY(-1px);
    border-color:#0da7c9;
    background:#f1fbfd;
    color:#143f50;
  }
  .elc-tab.is-active:hover{
    background:#153f50;
    color:#fff;
  }

  .elc-listen-all:not(:disabled):hover{
    transform:translateY(-2px);
    background:#0788a5;
    box-shadow:0 6px 16px rgba(13,167,201,.18);
  }

  .elc-zoom:not(:disabled):hover,
  .elc-listen:not(:disabled):hover,
  .elc-stop:not(:disabled):hover,
  .elc-dialog-cancel:not(:disabled):hover,
  .elc-vocab-status:not(:disabled):hover,
  .elc-vocab-listen:not(:disabled):hover,
  .elc-flash-listen:not(:disabled):hover,
  .elc-flash-close:not(:disabled):hover{
    transform:translateY(-1px);
    border-color:#0da7c9;
    background:#f2fbfd;
  }

  .elc-word:not(:disabled):hover{
    background:#dff4fa;
    border-color:#0da7c9;
  }

  .elc-add-word:not(:disabled):hover{
    background:#0da7c9;
    color:#fff;
    border-color:#0da7c9;
  }

  .elc-vocab-remove:not(:disabled):hover{
    transform:translateY(-1px);
    background:#fff2f2;
    border-color:#d96b6b;
    color:#a73838;
  }

  .elc-modal-close:not(:disabled):hover,
  .elc-dialog-close:not(:disabled):hover{
    transform:scale(1.08);
    background:#eef7fa;
  }

  .elc-book-open:hover{
    transform:translateY(-1px);
    border-color:#0da7c9;
    background:#f3fbfd;
    box-shadow:0 5px 14px rgba(20,63,80,.10);
  }
}

/* Click / active feedback */
.elc-course button:not(:disabled):active,
.elc-dashboard button:not(:disabled):active,
.elc-shell button:not(:disabled):active,
.elc-course a:active,
.elc-dashboard a:active,
.elc-shell a:active{
  transform:translateY(0) scale(.985);
}

/* Disabled controls */
.elc-course button:disabled,
.elc-dashboard button:disabled,
.elc-shell button:disabled{
  cursor:not-allowed!important;
  opacity:.55;
  transform:none!important;
  box-shadow:none!important;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion:reduce){
  .elc-course button,
  .elc-dashboard button,
  .elc-shell button,
  .elc-course a,
  .elc-dashboard a,
  .elc-shell a{
    transition:none;
  }

  .elc-course button:hover,
  .elc-dashboard button:hover,
  .elc-shell button:hover,
  .elc-course a:hover,
  .elc-dashboard a:hover,
  .elc-shell a:hover{
    transform:none!important;
  }
}


/* v2.2.4 — Version 5 style horizontal highlight color picker */
.elc-highlight-picker{
  border:1px solid #d8e2e7;
  border-radius:14px;
  padding:12px 14px 14px;
  margin:14px 0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
}
.elc-highlight-picker legend{
  font-weight:800;
  padding:0 7px;
}
.elc-dialog-card .elc-color-option{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:0;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:11px;
  cursor:pointer;
  font-weight:700;
  line-height:1.2;
}
.elc-dialog-card .elc-color-option input[type="radio"]{
  margin:0;
  width:16px;
  height:16px;
  flex:0 0 auto;
  cursor:pointer;
}
.elc-color-dot{
  display:inline-block;
  width:25px;
  height:25px;
  flex:0 0 25px;
  border-radius:7px;
  border:1px solid rgba(0,0,0,.13);
}
.elc-dot-yellow{background:#fff1a8}
.elc-dot-green{background:#c9f3d8}
.elc-dot-pink{background:#ffd8e8}
.elc-dot-blue{background:#d8ebff}

/* Clear selected color */
.elc-color-option:has(input[type="radio"]:checked){
  border-color:#0da7c9;
  background:#f2fbfd;
  box-shadow:0 0 0 2px rgba(13,167,201,.10);
}
.elc-color-option:has(input[type="radio"]:checked) .elc-color-dot{
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(13,167,201,.35);
}

@media (hover:hover) and (pointer:fine){
  .elc-color-option:hover{
    transform:translateY(-1px);
    border-color:#9ccfdd;
    background:#f7fcfd;
  }
}
.elc-color-option:focus-within{
  outline:3px solid rgba(13,167,201,.25);
  outline-offset:2px;
}

/* Keep horizontal like V5; wrap only when necessary */
@media(max-width:520px){
  .elc-highlight-picker{
    gap:7px;
  }
  .elc-dialog-card .elc-color-option{
    flex:1 1 calc(50% - 7px);
    min-width:125px;
  }
}
@media(max-width:340px){
  .elc-dialog-card .elc-color-option{
    flex-basis:100%;
  }
}

@media(prefers-reduced-motion:reduce){
  .elc-color-option:hover{
    transform:none!important;
  }
}

/* v2.3.0 membership/access */
.elc-member-badge,.elc-access-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:900}.elc-member-badge{background:#eef7fa;color:#15516a;border:1px solid #cde2e9}.elc-book-meta-row,.elc-book-title-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.elc-book-meta-row{justify-content:space-between}.elc-access-free{background:#effaf3;color:#34734b;border:1px solid #bfe0ca}.elc-access-premium{background:#fff7dc;color:#7b5b0f;border:1px solid #ead38b}.elc-enroll-book{border:0;border-radius:999px;background:#8b5e00;color:#fff;padding:10px 16px;font-weight:850;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}.elc-enroll-book:focus-visible{outline:3px solid rgba(139,94,0,.25);outline-offset:3px}@media(hover:hover) and (pointer:fine){.elc-enroll-book:not(:disabled):hover,.elc-premium-cta:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(117,79,0,.18)}.elc-enroll-book:not(:disabled):hover{background:#6f4b00}}.elc-enroll-book:disabled{opacity:.6;cursor:wait}.elc-locked-note{display:inline-flex;align-items:center;min-height:38px;padding:7px 12px;border-radius:999px;background:#fff8e7;border:1px solid #ead9ac;color:#735b1b;font-weight:750}.elc-access-panel{max-width:760px;margin:24px auto}


/* v2.4.0 — rich activity types */
.elc-option-row{display:flex;align-items:flex-start;gap:9px;padding:8px 10px;margin:6px 0;border:1px solid #dce6ea;border-radius:10px;cursor:pointer;background:#fff}
.elc-option-row input{margin-top:3px}
.elc-image-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:10px}
.elc-image-choice{position:relative;display:flex;flex-direction:column;gap:8px;border:2px solid #dce6ea;border-radius:14px;padding:10px;cursor:pointer;background:#fff}
.elc-image-choice input{position:absolute;top:10px;left:10px;z-index:2}
.elc-image-choice img{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:9px;background:#f7fafb}
.elc-image-choice span{font-weight:750;text-align:center}
.elc-image-choice:has(input:checked){border-color:#0da7c9;box-shadow:0 0 0 3px rgba(13,167,201,.12)}
.elc-classification,.elc-matching{display:grid;gap:10px;margin-top:10px}
.elc-classify-row,.elc-match-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(170px,1fr);align-items:center;gap:12px;padding:10px 12px;border:1px solid #dce6ea;border-radius:11px;background:#fff}
.elc-classify-row select,.elc-match-row select,.elc-classification-single{width:100%;min-height:42px;border:1px solid #cbd9df;border-radius:9px;padding:7px 9px;background:#fff}
.elc-ordering{list-style:none;padding:0;margin:10px 0;display:grid;gap:8px;counter-reset:elcorder}
.elc-order-item{counter-increment:elcorder;display:grid;grid-template-columns:28px 1fr auto;gap:9px;align-items:center;padding:10px 11px;border:1px solid #dce6ea;border-radius:11px;background:#fff;cursor:grab}
.elc-order-item::before{content:counter(elcorder);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eef8fb;font-weight:900}
.elc-order-item.dragging{opacity:.55;border-style:dashed}
.elc-drag-handle{font-size:18px;color:#607d8b}
.elc-order-controls{display:flex;gap:5px}
.elc-order-controls button{min-width:34px;min-height:34px;padding:4px 7px;border-radius:8px}
.elc-question-feedback{display:block;margin-top:8px;font-weight:800}
.elc-question.correct .elc-question-feedback{color:#177245}
.elc-question.wrong .elc-question-feedback{color:#a33a32}
@media(hover:hover) and (pointer:fine){
  .elc-option-row:hover,.elc-image-choice:hover,.elc-classify-row:hover,.elc-match-row:hover,.elc-order-item:hover{border-color:#9ccfdd;background:#f8fcfd}
}
@media(max-width:600px){
  .elc-classify-row,.elc-match-row{grid-template-columns:1fr}
  .elc-order-item{grid-template-columns:24px 1fr;}
  .elc-order-controls{grid-column:2}
}

/* v2.5.0 — book-faithful activity types */
.elc-activity-help{display:block;margin:0 0 10px;color:#526974}
.elc-word-search{display:grid;gap:12px;margin-top:10px}
.elc-word-search-grid{display:grid;grid-template-columns:repeat(var(--elc-ws-cols),minmax(32px,40px));gap:4px;max-width:100%;overflow:auto;padding:10px;border:1px solid #dce6ea;border-radius:14px;background:#f8fbfc}
.elc-word-cell{aspect-ratio:1/1;min-width:32px;min-height:32px;border:1px solid #c9d9df;border-radius:7px;background:#fff;font-weight:900;cursor:pointer;transition:transform .12s ease,background-color .12s ease,border-color .12s ease,box-shadow .12s ease}
.elc-word-cell.selecting{border-color:#0da7c9;box-shadow:0 0 0 3px rgba(13,167,201,.14)}
.elc-word-cell.found{background:#e7f7ec;border-color:#76bd8d;color:#17643a}
.elc-word-search.bad-selection .elc-word-search-grid{animation:elc-shake .18s linear 2}
.elc-word-search-words{display:flex;gap:7px;flex-wrap:wrap}
.elc-word-search-word{display:inline-flex;padding:5px 9px;border-radius:999px;border:1px solid #d9e3e7;background:#fff;font-weight:750}
.elc-word-search-word.found{text-decoration:line-through;background:#e7f7ec;border-color:#76bd8d;color:#17643a}
@keyframes elc-shake{0%,100%{transform:translateX(0)}50%{transform:translateX(4px)}}

.elc-image-label{display:grid;gap:14px;margin-top:10px}
.elc-image-label-stage{position:relative;max-width:720px;border:1px solid #dce6ea;border-radius:14px;padding:8px;background:#fff;overflow:hidden}
.elc-image-label-stage img{display:block;width:100%;height:auto;border-radius:9px}
.elc-image-label-marker{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;min-width:29px;height:29px;padding:0 7px;border-radius:999px;background:#123f50;color:#fff;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.22);font-weight:900}
.elc-image-label-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px}
.elc-image-label-row,.elc-unscramble-row{display:grid;grid-template-columns:minmax(70px,.55fr) minmax(140px,1fr);gap:9px;align-items:center;padding:9px 10px;border:1px solid #dce6ea;border-radius:11px;background:#fff}
.elc-image-label-row input,.elc-unscramble-row input{width:100%;min-height:40px;border:1px solid #cbd9df;border-radius:8px;padding:7px 9px;background:#fff}
.elc-field-correct{border-color:#4ca46a!important;background:#f2fbf5!important}
.elc-field-wrong{border-color:#cf7168!important;background:#fff7f6!important}

.elc-crossword{display:grid;grid-template-columns:minmax(280px,auto) minmax(220px,1fr);gap:18px;align-items:start;margin-top:10px}
.elc-crossword-grid{display:grid;grid-template-columns:repeat(var(--elc-cw-cols),36px);grid-auto-rows:36px;gap:2px;width:max-content;max-width:100%;overflow:auto;padding:8px;border:1px solid #dce6ea;border-radius:12px;background:#eef3f5}
.elc-crossword-cell{position:relative;display:block;background:#fff;border:1px solid #aebfc6}
.elc-crossword-cell small{position:absolute;top:1px;left:3px;z-index:2;font-size:8px;line-height:1;color:#304c58;font-weight:900;pointer-events:none}
.elc-crossword-cell input{width:100%;height:100%;border:0;padding:8px 2px 2px;text-align:center;text-transform:uppercase;font-size:18px;font-weight:900;background:transparent;outline:0}
.elc-crossword-cell:focus-within{box-shadow:inset 0 0 0 2px #0da7c9;z-index:1}
.elc-crossword-block{background:#253a43;border-radius:2px}
.elc-crossword-clues{margin:0;padding-left:22px;display:grid;gap:8px}
.elc-crossword-clues li{padding:6px 8px;border-radius:8px}
.elc-crossword-clues li.correct{background:#eef9f2;color:#17643a}
.elc-crossword-clues li.wrong{background:#fff3f1;color:#9b3931}

.elc-unscramble{display:grid;gap:9px;margin-top:10px}
.elc-scrambled{display:inline-flex;justify-content:center;padding:6px 8px;border-radius:8px;background:#eef8fb;font-weight:900;letter-spacing:.08em}

@media(hover:hover) and (pointer:fine){
  .elc-word-cell:hover,.elc-image-label-row:hover,.elc-unscramble-row:hover{border-color:#9ccfdd;background:#f8fcfd}
  .elc-word-cell:hover{transform:translateY(-1px)}
}
@media(max-width:700px){
  .elc-crossword{grid-template-columns:1fr}
  .elc-image-label-fields{grid-template-columns:1fr}
}
@media(max-width:420px){
  .elc-word-search-grid{gap:2px;padding:6px}
  .elc-word-cell{min-width:27px;min-height:27px;font-size:12px}
  .elc-image-label-row,.elc-unscramble-row{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .elc-word-search.bad-selection .elc-word-search-grid{animation:none}
  .elc-word-cell{transition:none}
}
