.hc-wpcat-question .hc-wpcat-native{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;max-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important}
.hc-wpcat{--hc-accent:#f58220;--hc-border:rgba(245,130,32,.32);--hc-soft:#fffaf5;--hc-text:#262626;width:100%;max-width:980px;margin:18px 0 22px;color:var(--hc-text);box-sizing:border-box}.hc-wpcat *{box-sizing:border-box}
.hc-wpcat-bank-wrap{border:1px solid rgba(0,0,0,.09);border-radius:16px;background:#fff;padding:14px;margin-bottom:16px;box-shadow:0 2px 10px rgba(0,0,0,.025)}
.hc-wpcat-bank{min-height:88px;display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;padding:2px;border-radius:12px;transition:.15s ease}
.hc-wpcat-grid{display:grid;grid-template-columns:repeat(var(--hc-wpcat-desktop-cols),minmax(0,1fr));gap:14px}
.hc-wpcat-category{min-width:0;border:1px solid var(--hc-border);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.025)}
.hc-wpcat-category header{min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:11px 12px;background:var(--hc-soft);border-bottom:1px solid rgba(245,130,32,.17);cursor:pointer}
.hc-wpcat-category header strong{font-size:18px;line-height:1.3;color:var(--hc-accent)}.hc-wpcat-category header small{display:block;margin-top:4px;color:#777;font-size:14px;line-height:1.3;font-weight:400}
.hc-wpcat-dropzone{min-height:122px;padding:8px;display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:8px;position:relative;transition:background .15s ease,box-shadow .15s ease}
.hc-wpcat-empty{width:100%;align-self:center;text-align:center;color:#aaa;font-size:14px;padding:26px 8px;pointer-events:none}
.hc-wpcat-item{appearance:none;-webkit-appearance:none;border:1px solid rgba(245,130,32,.34)!important;background:#fffaf5!important;color:#272727!important;border-radius:12px!important;padding:9px 12px!important;margin:0!important;min-height:38px!important;max-width:100%!important;font:inherit!important;font-size:18px!important;line-height:1.34!important;font-weight:500!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;box-shadow:0 1px 4px rgba(0,0,0,.04)!important;cursor:grab!important;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease;touch-action:none;user-select:none;-webkit-user-select:none}
.hc-wpcat-item .hc-wpcat-item-text{display:block}
.hc-wpcat-item.has-image{display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center!important;width:104px!important;min-height:122px!important;padding:6px!important;gap:5px}
.hc-wpcat-item-media{width:68px;height:68px;border-radius:10px;overflow:hidden;background:#fff;border:1px solid rgba(0,0,0,.08);box-shadow:0 1px 3px rgba(0,0,0,.04)}
.hc-wpcat-item-media img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none;user-select:none;pointer-events:none}
.hc-wpcat-item.has-image .hc-wpcat-item-text{text-align:center;font-size:16px;line-height:1.25;width:100%}
.hc-wpcat-item:hover{border-color:rgba(245,130,32,.58)!important;box-shadow:0 3px 9px rgba(0,0,0,.07)!important}
.hc-wpcat-item.is-selected{border-color:var(--hc-accent)!important;background:#fff4e8!important;box-shadow:0 0 0 2px rgba(245,130,32,.13)!important}.hc-wpcat-item.is-dragging{opacity:.35}
.hc-wpcat-target.is-drop-target{background:#fff4e8!important;box-shadow:inset 0 0 0 2px rgba(245,130,32,.30)}
.hc-wpcat.has-selection .hc-wpcat-category header,.hc-wpcat.has-selection .hc-wpcat-bank-head{cursor:pointer}
.hc-wpcat-ghost{position:fixed!important;z-index:999999!important;pointer-events:none!important;margin:0!important;max-width:min(360px,70vw)!important;opacity:.94!important;box-shadow:0 8px 24px rgba(0,0,0,.16)!important;transform:rotate(1deg)}

.hc-wpcat-review{--hc-accent:#f58220;--hc-border:rgba(245,130,32,.3);margin:14px 0 18px;max-width:980px}.hc-wpcat-review-grid{display:grid;grid-template-columns:repeat(var(--hc-wpcat-desktop-cols),minmax(0,1fr));gap:12px}.hc-wpcat-review-category{border:1px solid var(--hc-border);border-radius:14px;overflow:hidden;background:#fff}.hc-wpcat-review-category-head{padding:10px 12px;text-align:center;background:#fffaf5;border-bottom:1px solid rgba(245,130,32,.15)}.hc-wpcat-review-category-head strong{display:block;color:var(--hc-accent)}.hc-wpcat-review-category-head small{display:block;margin-top:2px;color:#777}.hc-wpcat-review-items{padding:9px;display:flex;flex-wrap:wrap;gap:8px;min-height:54px}
.hc-wpcat-review-chip{position:relative;display:flex;align-items:center;gap:6px;border:1px solid #ddd;border-radius:10px;padding:8px 10px;background:#fff;font-size:16px;line-height:1.3}.hc-wpcat-review-chip b{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;font-size:12px;flex:0 0 18px}.hc-wpcat-review-chip .hc-wpcat-review-text{display:block}
.hc-wpcat-review-chip.has-image{flex-direction:column;align-items:center;text-align:center;width:110px;min-height:128px;padding:10px 8px 8px}
.hc-wpcat-review-media{width:60px;height:60px;border-radius:10px;overflow:hidden;border:1px solid rgba(0,0,0,.08);background:#fff;display:block}.hc-wpcat-review-media img{width:100%;height:100%;object-fit:cover;display:block}.hc-wpcat-review-chip.has-image .hc-wpcat-review-text{font-size:15px;line-height:1.25}.hc-wpcat-review-chip.has-image b{position:absolute;top:6px;right:6px}
.hc-wpcat-review-chip.is-correct{border-color:rgba(56,142,60,.32);background:rgba(56,142,60,.045)}.hc-wpcat-review-chip.is-correct b{color:#2e7d32;background:rgba(56,142,60,.12)}.hc-wpcat-review-chip.is-wrong{border-color:rgba(198,40,40,.3);background:rgba(198,40,40,.035)}.hc-wpcat-review-chip.is-wrong b{color:#b3261e;background:rgba(198,40,40,.1)}
.hc-wpcat-review-errors{margin-top:13px;border:1px solid rgba(198,40,40,.22);border-radius:14px;overflow:hidden;background:#fff}.hc-wpcat-review-errors-title{padding:9px 12px;background:rgba(198,40,40,.05);color:#a92720;font-weight:700}.hc-wpcat-review-error{padding:10px 12px;border-top:1px solid rgba(0,0,0,.06);font-size:16px}.hc-wpcat-review-error:first-of-type{border-top:0}.hc-wpcat-review-error strong{display:block;margin-bottom:4px}.hc-wpcat-review-error div{color:#555;margin-top:2px}.hc-wpcat-review-error-media{width:56px;height:56px;border-radius:10px;overflow:hidden;border:1px solid rgba(0,0,0,.08);margin-bottom:8px}.hc-wpcat-review-error-media img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:700px){.hc-wpcat{margin-top:14px}.hc-wpcat-grid{grid-template-columns:repeat(var(--hc-wpcat-mobile-cols),minmax(0,1fr));gap:8px}.hc-wpcat-category header{min-height:54px;padding:8px 6px}.hc-wpcat-category header strong{font-size:18px}.hc-wpcat-category header small{font-size:14px}.hc-wpcat-dropzone{min-height:104px;padding:4px;gap:4px}.hc-wpcat-bank-wrap{padding:6px}.hc-wpcat-bank{min-height:72px;gap:4px;padding:1px}.hc-wpcat-item{font-size:18px!important;line-height:1.34!important;padding:7px 8px!important;border-radius:10px!important}.hc-wpcat-item.has-image{width:90px!important;min-height:110px!important;padding:5px 4px!important;gap:4px}.hc-wpcat-item-media{width:64px;height:64px;border-radius:9px}.hc-wpcat-item.has-image .hc-wpcat-item-text{font-size:17px;line-height:1.2}
 .hc-wpcat-mobile-cols-2 .hc-wpcat-grid .hc-wpcat-category:last-child:nth-child(odd){grid-column:1/-1}
 .hc-wpcat-mobile-cols-2 .hc-wpcat-dropzone{min-height:90px;padding:4px;gap:4px}
 .hc-wpcat-mobile-cols-2 .hc-wpcat-item.has-image{width:76px!important;min-height:92px!important;padding:4px 3px!important;gap:3px}
 .hc-wpcat-mobile-cols-2 .hc-wpcat-item-media{width:52px;height:52px;border-radius:8px}
 .hc-wpcat-mobile-cols-2 .hc-wpcat-item.has-image .hc-wpcat-item-text{font-size:16px;line-height:1.16}
 .hc-wpcat-review-grid{grid-template-columns:repeat(var(--hc-wpcat-mobile-cols),minmax(0,1fr));gap:8px}.hc-wpcat-review.hc-wpcat-mobile-cols-2 .hc-wpcat-review-grid .hc-wpcat-review-category:last-child:nth-child(odd){grid-column:1/-1}.hc-wpcat-review-category-head{padding:8px}.hc-wpcat-review-category-head strong{font-size:17px}.hc-wpcat-review-items{padding:5px;gap:4px}.hc-wpcat-review-chip{font-size:16px;padding:7px 8px}.hc-wpcat-review-chip.has-image{width:90px;min-height:112px;padding:6px 4px}.hc-wpcat-review-media{width:56px;height:56px}.hc-wpcat-review-chip.has-image .hc-wpcat-review-text{font-size:16px;line-height:1.2}
 .hc-wpcat-review.hc-wpcat-mobile-cols-2 .hc-wpcat-review-items{padding:4px;gap:4px}
 .hc-wpcat-review.hc-wpcat-mobile-cols-2 .hc-wpcat-review-chip.has-image{width:76px;min-height:94px;padding:5px 3px}
 .hc-wpcat-review.hc-wpcat-mobile-cols-2 .hc-wpcat-review-media{width:50px;height:50px}
 .hc-wpcat-review.hc-wpcat-mobile-cols-2 .hc-wpcat-review-chip.has-image .hc-wpcat-review-text{font-size:14px;line-height:1.14}}

/* Normalize the legacy WatuPRO final button used by some quiz UI settings. */
form.quiz-form #action-button.hc-wpcat-submit-normalized{border-radius:0.625em;}

/* Categories may be used in WatuPRO legacy button mode. Normalize only the final submit button. */
#action-button.hc-wpcat-submit-normalized{border-radius:10px!important;}
/* Categories owns its NMatrix UI. Never show a second mobile Matrix mirror for it. */
.hc-wpcat-question .hc-wpmm-mobile{display:none!important}

/* v13.1 visual refinements: keep the native NMatrix engine untouched. */
.hc-wpcat-bank-wrap{background:#fffdf9;border-color:rgba(245,130,32,.12);box-shadow:0 1px 5px rgba(0,0,0,.02)}
.hc-wpcat-category header strong{font-size:21px;letter-spacing:.01em}
.hc-wpcat-dropzone{background:linear-gradient(180deg,#fff 0%,#fffdfb 100%);outline:1px dashed rgba(245,130,32,.16);outline-offset:-6px;border-radius:0 0 15px 15px;transition:background .16s ease,box-shadow .16s ease,outline-color .16s ease}
.hc-wpcat-item:hover{transform:translateY(-2px);border-color:rgba(245,130,32,.68)!important;box-shadow:0 6px 14px rgba(0,0,0,.09)!important}
.hc-wpcat-item.is-selected{transform:translateY(-2px);border-color:var(--hc-accent)!important;background:#fff7ee!important;box-shadow:0 0 0 2px rgba(245,130,32,.16),0 6px 15px rgba(0,0,0,.08)!important}
.hc-wpcat.has-selection .hc-wpcat-category header{background:#fff7ee;border-bottom-color:rgba(245,130,32,.28)}
.hc-wpcat.has-selection .hc-wpcat-dropzone{outline-color:rgba(245,130,32,.34);background:#fffdfa}
.hc-wpcat-target.is-drop-target{background:#fff3e6!important;outline-color:rgba(245,130,32,.65)!important;box-shadow:inset 0 0 0 2px rgba(245,130,32,.26)}
.hc-wpcat-item.is-settled{animation:hcWpcatSettle .24s ease-out}
@keyframes hcWpcatSettle{0%{transform:scale(.96)}55%{transform:scale(1.025)}100%{transform:scale(1)}}

/* Dynamic feedback inserted only by {{{categories-review}}}. */
.hc-wpcat-review-errors-only{margin:12px 0 4px;max-width:760px;border-color:rgba(198,40,40,.18);box-shadow:0 1px 4px rgba(0,0,0,.025)}
.hc-wpcat-review-errors-only .hc-wpcat-review-errors-title{padding:10px 13px;font-size:15px}
.hc-wpcat-review-errors-only .hc-wpcat-review-error{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:center;padding:11px 13px}
.hc-wpcat-review-errors-only .hc-wpcat-review-error-media{margin:0;width:54px;height:54px}
.hc-wpcat-review-errors-only .hc-wpcat-review-error-body strong{margin:0 0 4px;font-size:16px}
.hc-wpcat-review-errors-only .hc-wpcat-review-error-body div{margin-top:2px}
.hc-wpcat-review-errors-only .hc-wpcat-review-error-body div span{color:#777}
@media(max-width:700px){.hc-wpcat-category header strong{font-size:19px}.hc-wpcat-item:hover{transform:none}.hc-wpcat-item.is-selected{transform:translateY(-1px)}.hc-wpcat-dropzone{outline-offset:-4px}.hc-wpcat-review-errors-only .hc-wpcat-review-error{padding:10px;gap:9px}}

/* v13.2 visual system: white surfaces, orange as an accent rather than a permanent fill. */
.hc-wpcat{--hc-soft:#fff;--hc-border:rgba(245,130,32,.48)}
.hc-wpcat-bank-wrap{
  background:#fff;
  border:1px solid rgba(0,0,0,.09);
  box-shadow:none;
}
.hc-wpcat-category{
  border:2px solid var(--hc-border);
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.025);
}
.hc-wpcat-category header{
  background:#fff;
  border-bottom:0;
}
.hc-wpcat-dropzone{
  background:#fff;
  outline:1px dashed rgba(0,0,0,.11);
}
.hc-wpcat-item{
  background:#fff!important;
  border-color:rgba(0,0,0,.14)!important;
}
.hc-wpcat-item:hover{
  background:#fff!important;
  border-color:rgba(245,130,32,.72)!important;
}
.hc-wpcat-item.is-selected{
  background:#fff!important;
  border:2px solid var(--hc-accent)!important;
  box-shadow:0 0 0 2px rgba(245,130,32,.10),0 6px 15px rgba(0,0,0,.08)!important;
}
.hc-wpcat.has-selection .hc-wpcat-category header{
  background:#fff;
  border-bottom-color:transparent;
}
.hc-wpcat.has-selection .hc-wpcat-dropzone{
  background:#fff;
  outline-color:rgba(245,130,32,.34);
}
.hc-wpcat-target.is-drop-target{
  background:#fff9f2!important;
  outline-color:rgba(245,130,32,.72)!important;
  box-shadow:inset 0 0 0 2px rgba(245,130,32,.22);
}
.hc-wpcat-review-category{border:2px solid rgba(245,130,32,.38)}
.hc-wpcat-review-category-head{background:#fff;border-bottom:0}

/* v13.3: richer opt-in error feedback. */
.hc-wpcat-review-explanation{margin-top:9px;padding:9px 10px;border-left:3px solid rgba(245,130,32,.75);border-radius:0 8px 8px 0;background:#fff;color:#444}
.hc-wpcat-review-explanation>span{display:block;margin-bottom:3px;color:#c85f0b;font-size:13px;font-weight:700}
.hc-wpcat-review-explanation p{margin:0!important;color:#444!important;line-height:1.45}
.hc-wpcat-review-explanation.is-rule{background:#fff;border:1px solid rgba(245,130,32,.18);border-left:3px solid rgba(245,130,32,.75)}
@media(max-width:700px){.hc-wpcat-review-explanation{padding:8px 9px;margin-top:8px}}

/* v13.5: slightly slimmer cards while keeping the established v13 interaction. */
.hc-wpcat-item{padding:8px 10px!important}
.hc-wpcat-item.has-image{width:96px!important;min-height:116px!important;padding:5px!important;gap:5px}
.hc-wpcat-item-media{width:64px;height:64px}
.hc-wpcat-item.has-image .hc-wpcat-item-text{font-size:16px;line-height:1.22}
/* Personal Report already adds its own “Разбор ошибки” heading to incorrect feedback. */
.hc-wpr-report-answers .hc-wpcat-review-errors-title{display:none!important}
@media(max-width:700px){
  .hc-wpcat-item{padding:7px 7px!important}
  .hc-wpcat-item.has-image{width:84px!important;min-height:104px!important;padding:4px!important}
  .hc-wpcat-item-media{width:60px;height:60px}
  .hc-wpcat-mobile-cols-2 .hc-wpcat-item.has-image{width:72px!important;min-height:90px!important}
  .hc-wpcat-mobile-cols-2 .hc-wpcat-item-media{width:48px;height:48px}
}


/* v13.6: slightly narrower student cards; typography stays unchanged. */
.hc-wpcat-item.has-image{width:90px!important;min-height:110px!important;padding:4px!important;gap:4px}
.hc-wpcat-item-media{width:60px;height:60px}
@media(max-width:700px){
  .hc-wpcat-item.has-image{width:80px!important;min-height:100px!important;padding:4px 3px!important}
  .hc-wpcat-item-media{width:56px;height:56px}
  .hc-wpcat-mobile-cols-2 .hc-wpcat-item.has-image{width:68px!important;min-height:86px!important}
  .hc-wpcat-mobile-cols-2 .hc-wpcat-item-media{width:46px;height:46px}
}


/* v13.7: adaptive card width — compact on desktop, roomier on mobile, never split words by letters. */
.hc-wpcat-item{
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
.hc-wpcat-item:not(.has-image){
  width:max-content!important;
  min-width:0!important;
  max-width:min(320px,100%)!important;
  white-space:normal!important;
}
.hc-wpcat-item.has-image{
  width:max-content!important;
  min-width:86px!important;
  max-width:min(300px,100%)!important;
  min-height:108px!important;
}
.hc-wpcat-item.has-image .hc-wpcat-item-text{
  width:auto!important;
  max-width:100%!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
@media(max-width:700px){
  .hc-wpcat-item:not(.has-image){
    max-width:100%!important;
  }
  .hc-wpcat-item.has-image{
    min-width:85px!important;
    max-width:100%!important;
    min-height:104px!important;
    padding:5px 4px!important;
  }
  .hc-wpcat-item-media{width:60px;height:60px}
  .hc-wpcat-mobile-cols-2 .hc-wpcat-item.has-image{
    min-width:74px!important;
    max-width:100%!important;
    min-height:92px!important;
  }
  .hc-wpcat-mobile-cols-2 .hc-wpcat-item-media{width:50px;height:50px}
}


/* v13.9: reliably collapse the empty source bank. No extra label in the bank. */
.hc-wpcat-bank-wrap{
  overflow:hidden;
  transition:padding .24s ease, margin-bottom .24s ease, border-color .24s ease, background-color .24s ease;
}
.hc-wpcat-bank{
  position:relative;
  transition:min-height .24s ease, padding .24s ease, gap .24s ease, background-color .18s ease, box-shadow .18s ease;
}
.hc-wpcat-bank-hint{display:none!important;}
.hc-wpcat-bank-wrap.is-empty{
  padding:3px 8px!important;
  margin-bottom:8px!important;
  border-color:rgba(0,0,0,.07)!important;
  background:#fff!important;
  box-shadow:none!important;
}
.hc-wpcat-bank-wrap.is-empty .hc-wpcat-bank{
  min-height:24px!important;
  padding:0!important;
  gap:0!important;
}
.hc-wpcat-bank-wrap.is-empty .hc-wpcat-bank.is-drop-target{
  min-height:34px!important;
  background:#fffaf5!important;
  box-shadow:inset 0 0 0 1px rgba(245,130,32,.28)!important;
}
@media(max-width:700px){
  .hc-wpcat-bank-wrap.is-empty{
    padding:3px 6px!important;
    margin-bottom:7px!important;
  }
  .hc-wpcat-bank-wrap.is-empty .hc-wpcat-bank{min-height:28px!important;}
  .hc-wpcat-bank-wrap.is-empty .hc-wpcat-bank.is-drop-target{min-height:36px!important;}
}
