/* MatZabawy neo skin. Only owned components; theme/WordPress chrome is untouched. */
.mzb-style-neo{--mzb-style-background:#f6f5f0;--mzb-style-surface:#fff;--mzb-style-ink:#2b332f;--mzb-style-primary:#d7e2dc;--mzb-style-secondary:#e6ded4;--mzb-style-tertiary:#cedbd0;--mzb-style-info:#d5e1e9;--mzb-on-primary:#000;--mzb-on-secondary:#000;--mzb-on-tertiary:#000;--mzb-on-info:#000;--mzb-style-border:3px;--mzb-style-shadow:4px;--mzb-style-shadow-hover:6px;--mzb-style-body-size:16px;--mzb-style-body-font:Arial,Helvetica,sans-serif;--mzb-style-heading-font:"Arial Black",Arial,Helvetica,sans-serif;--mzb-stroke:var(--mzb-style-border) solid var(--mzb-style-ink);--mzb-hard-shadow:var(--mzb-style-shadow) var(--mzb-style-shadow) 0 var(--mzb-style-ink);--mzb-hover-shadow:var(--mzb-style-shadow-hover) var(--mzb-style-shadow-hover) 0 var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-map,.mzb-directory,.mzb-player,.mzb-sidebar,.mzb-exercise,.mzb-course,.mzb-breadcrumbs,.mzb-topics,.mzb-exercises){--mzb-ink:var(--mzb-style-ink);--mzb-accent:var(--mzb-style-ink);--mzb-purple:var(--mzb-style-ink);--mzb-border:var(--mzb-style-ink);--mzb-edge:var(--mzb-style-ink);--mzb-line:var(--mzb-style-ink);--mzb-soft:var(--mzb-style-background);--mzb-tint:var(--mzb-style-primary);--mzb-art:var(--mzb-style-secondary);--mzb-glow:var(--mzb-style-tertiary);color:var(--mzb-style-ink);font-family:var(--mzb-style-body-font);font-size:var(--mzb-style-body-size);line-height:1.6}
.mzb-style-neo :is(.mzb-map,.mzb-directory,.mzb-exercise-layout){background:var(--mzb-style-background);padding:clamp(16px,2.4vw,28px);border-radius:var(--mzb-radius);box-sizing:border-box}
.mzb-style-neo :is(.mzb-map,.mzb-directory,.mzb-player,.mzb-sidebar) :is(h2,h3,h4){font-family:var(--mzb-style-heading-font);font-weight:900;line-height:1.25;color:var(--mzb-style-ink);letter-spacing:-.6px}
.mzb-style-neo :is(.mzb-map,.mzb-directory,.mzb-player) :is(p,legend,label){color:var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-map,.mzb-directory,.mzb-player,.mzb-sidebar,.mzb-course) :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--mzb-style-ink);outline-offset:5px}
.mzb-style-neo :is(.mzb-map__hero,.mzb-directory__hero,.mzb-player,.mzb-map__unit,.mzb-directory__topic-card,.mzb-directory__task-card,.mzb-sidebar__header,.mzb-sidebar__tile,.mzb-unit){border:var(--mzb-stroke);border-radius:var(--mzb-radius);box-shadow:var(--mzb-hard-shadow)}
.mzb-style-neo :is(.mzb-map__hero,.mzb-directory__hero){background:var(--mzb-style-surface);color:var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-map__hero,.mzb-directory__hero) :is(h2,p,span,strong){color:inherit}
.mzb-style-neo :is(.mzb-map__hero h2,.mzb-directory__hero h2){font-size:clamp(28px,4vw,42px)!important;font-weight:900}
.mzb-style-neo :is(.mzb-map__eyebrow,.mzb-directory__eyebrow,.mzb-directory__label,.mzb-sidebar__eyebrow,.mzb-player__eyebrow,.mzb-map__status,.mzb-map__kind){color:var(--mzb-style-ink);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:800;letter-spacing:1px}
.mzb-style-neo :is(.mzb-map__stats span,.mzb-directory__stats>span,.mzb-map__number,.mzb-directory__number,.mzb-kind,.mzb-track,.mzb-player__pill,.mzb-player__choice-letter){border:var(--mzb-stroke);border-radius:var(--mzb-radius);background:var(--mzb-style-surface);color:var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-map__stats span,.mzb-directory__stats>span){box-shadow:2px 2px 0 var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-map__art>span,.mzb-directory__glyph,.mzb-directory__small-glyph,.mzb-directory__fraction-grid,.mzb-player__icon){background:var(--mzb-style-secondary);color:var(--mzb-on-secondary);border:var(--mzb-stroke);border-radius:var(--mzb-radius);box-shadow:var(--mzb-hard-shadow);animation:none}
.mzb-style-neo .mzb-map__art>span:nth-child(2){background:var(--mzb-style-info);color:var(--mzb-on-info)}
.mzb-style-neo .mzb-map__art>span:nth-child(3){background:var(--mzb-style-tertiary);color:var(--mzb-on-tertiary)}
.mzb-style-neo .mzb-map__art i{color:var(--mzb-style-ink)}
.mzb-style-neo .mzb-directory .mzb-directory__small-glyph{background:var(--mzb-style-info);color:var(--mzb-on-info)}
.mzb-style-neo .mzb-directory .mzb-directory__fraction-grid{background:var(--mzb-style-surface);rotate:-5deg}
.mzb-style-neo .mzb-directory__fraction-grid i{background:var(--mzb-style-surface)}
.mzb-style-neo .mzb-directory__fraction-grid i:nth-child(-n+2){background:var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-directory__task-copy p,.mzb-map__soon,.mzb-map__footer,.mzb-map__score,.mzb-map__active,.mzb-map__task-description,.mzb-map__topic h4,.mzb-directory__count,.mzb-sidebar__description){color:var(--mzb-style-ink)!important}
.mzb-style-neo :is(.mzb-map__unit,.mzb-directory__topic-card,.mzb-directory__task-card,.mzb-player){background:var(--mzb-style-surface)}
.mzb-style-neo .mzb-map__unit--planned{background:var(--mzb-style-background);box-shadow:none}
.mzb-style-neo .mzb-map__unit--ready:nth-child(3n+1) .mzb-map__number{background:var(--mzb-style-secondary);color:var(--mzb-on-secondary)}
.mzb-style-neo .mzb-map__unit--ready:nth-child(3n+2) .mzb-map__number{background:var(--mzb-style-tertiary);color:var(--mzb-on-tertiary)}
.mzb-style-neo .mzb-map__unit--ready:nth-child(3n) .mzb-map__number{background:var(--mzb-style-info);color:var(--mzb-on-info)}
.mzb-style-neo .mzb-map__topic{border-color:var(--mzb-style-ink)}
.mzb-style-neo .mzb-map__task{background:var(--mzb-style-surface);color:var(--mzb-style-ink)!important;border:var(--mzb-stroke);box-shadow:var(--mzb-hard-shadow);margin-bottom:6px}
.mzb-style-neo .mzb-map__task :is(.mzb-map__kind,.mzb-map__task-description){color:inherit!important}
.mzb-style-neo .mzb-map__play{border:2px solid var(--mzb-style-ink);background:var(--mzb-style-primary);color:var(--mzb-on-primary);font-weight:900}
.mzb-style-neo :is(.mzb-map__toolbar input,.mzb-map__toolbar select,.mzb-player input[type=text]){border:var(--mzb-stroke);color:var(--mzb-style-ink);background:var(--mzb-style-surface);box-shadow:2px 2px 0 var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-map__quick a,.mzb-map .mzb-map__continue,.mzb-directory .mzb-directory__button,.mzb-directory__cta,.mzb-player button,.mzb-map__progress-filters button,.mzb-map__progress button,.mzb-sidebar__toggle){border:var(--mzb-stroke);border-radius:var(--mzb-radius);box-shadow:var(--mzb-hard-shadow);background:var(--mzb-style-primary);color:var(--mzb-on-primary)!important;font-weight:800;transition:transform .1s linear,box-shadow .1s linear;line-height:1.4}
.mzb-style-neo :is(.mzb-map__quick a,.mzb-player button.mzb-player__secondary){background:var(--mzb-style-surface);color:var(--mzb-style-ink)!important}
.mzb-style-neo .mzb-map__progress-filters button[aria-pressed=true]{background:var(--mzb-style-ink);color:var(--mzb-style-background)!important}
.mzb-style-neo .mzb-map__progress-filters button:hover{background:var(--mzb-style-primary);color:var(--mzb-on-primary)!important}
.mzb-style-neo .mzb-map__progress-filters button[aria-pressed=true]:hover{background:var(--mzb-style-ink);color:var(--mzb-style-background)!important}
.mzb-style-neo .mzb-player__secondary:disabled,.mzb-style-neo .mzb-player button:disabled{opacity:.65;box-shadow:none}
.mzb-style-neo :is(.mzb-map__quick a,.mzb-map .mzb-map__continue,.mzb-directory .mzb-directory__button,.mzb-directory__topic-card,.mzb-directory__task-card,.mzb-map__task,.mzb-sidebar__tile,.mzb-sidebar__toggle,.mzb-map__progress-filters button,.mzb-map__progress button,.mzb-player button):not(:disabled):hover{transform:translate(-2px,-2px);box-shadow:var(--mzb-hover-shadow);border-color:var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-map__quick a,.mzb-map .mzb-map__continue,.mzb-directory .mzb-directory__button,.mzb-directory__topic-card,.mzb-map__task,.mzb-sidebar__tile,.mzb-sidebar__toggle,.mzb-map__progress-filters button,.mzb-map__progress button,.mzb-player button):not(:disabled):active{transform:translate(var(--mzb-style-shadow),var(--mzb-style-shadow));box-shadow:none}
.mzb-style-neo :is(.mzb-map__progress,.mzb-map__unit-progress,.mzb-player__mode,.mzb-map__empty,.mzb-directory__empty){background:var(--mzb-style-background);color:var(--mzb-style-ink);border:var(--mzb-stroke);border-radius:var(--mzb-radius)}
.mzb-style-neo :is(.mzb-map__progress-filters legend,.mzb-map__progress-filters p,.mzb-map__unit-progress-line,.mzb-map__unit-progress-line strong){color:var(--mzb-style-ink)}
.mzb-style-neo .mzb-map__progress-badge{border:2px solid var(--mzb-style-ink);background:var(--mzb-style-surface);color:var(--mzb-style-ink)}
.mzb-style-neo .mzb-map__progress-badge--completed{background:var(--mzb-style-tertiary);color:var(--mzb-on-tertiary)}
.mzb-style-neo .mzb-map__progress-badge--in_progress{background:var(--mzb-style-primary);color:var(--mzb-on-primary)}
.mzb-style-neo :is(.mzb-player progress,.mzb-map progress){height:10px;border:2px solid var(--mzb-style-ink);background:var(--mzb-style-surface);box-shadow:none}
.mzb-style-neo :is(.mzb-player progress,.mzb-map progress)::-webkit-progress-bar{background:var(--mzb-style-surface)}
.mzb-style-neo :is(.mzb-player progress,.mzb-map progress)::-webkit-progress-value{background:var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-player progress,.mzb-map progress)::-moz-progress-bar{background:var(--mzb-style-ink)}
.mzb-style-neo .mzb-sidebar__header{background:var(--mzb-style-surface);color:var(--mzb-style-ink)}
.mzb-style-neo .mzb-sidebar__header :is(h2,span,a){color:inherit!important}
.mzb-style-neo .mzb-sidebar__tile{--mzb-tile-color:var(--mzb-style-ink);--mzb-tile-soft:var(--mzb-style-secondary);--mzb-tile-on:var(--mzb-on-secondary);--mzb-tile-edge:var(--mzb-style-ink);background:var(--mzb-style-surface);color:var(--mzb-style-ink)!important;transition:transform .1s linear,box-shadow .1s linear;padding:12px}
.mzb-style-neo .mzb-sidebar__tile--mint{--mzb-tile-soft:var(--mzb-style-tertiary);--mzb-tile-on:var(--mzb-on-tertiary)}
.mzb-style-neo .mzb-sidebar__tile--blue{--mzb-tile-soft:var(--mzb-style-info);--mzb-tile-on:var(--mzb-on-info)}
.mzb-style-neo .mzb-sidebar__tile--amber{--mzb-tile-soft:var(--mzb-style-primary);--mzb-tile-on:var(--mzb-on-primary)}
.mzb-style-neo .mzb-sidebar__tile[aria-current=location]{border:var(--mzb-stroke);padding:12px;background:var(--mzb-tile-soft);color:var(--mzb-tile-on)!important}
.mzb-style-neo .mzb-sidebar__tile[aria-current=location] .mzb-sidebar__current{display:inline-block;align-self:flex-start;background:var(--mzb-style-ink);color:var(--mzb-style-background);padding:3px 6px;border-radius:var(--mzb-radius);font-size:10px}
.mzb-style-neo .mzb-sidebar__tile .mzb-sidebar__description{color:inherit!important}
.mzb-style-neo .mzb-sidebar__tile strong{font-weight:500}
.mzb-style-neo .mzb-sidebar__course{font-weight:800}
.mzb-style-neo .mzb-sidebar__tiles{gap:14px}
.mzb-style-neo .mzb-directory__preview{background:var(--mzb-style-background)}
.mzb-style-neo :is(.mzb-directory__back,.mzb-directory__arrow,.mzb-directory__empty>span){color:var(--mzb-style-ink)!important}
.mzb-style-neo .mzb-player__intro h3{font-size:clamp(25px,3vw,34px)}
.mzb-style-neo .mzb-player .mzb-player__pill{background:var(--mzb-style-tertiary);color:var(--mzb-on-tertiary)}
.mzb-style-neo :is(.mzb-player__progress,.mzb-player__field label){font-size:15px;color:var(--mzb-style-ink);font-weight:800}
.mzb-style-neo .mzb-player__figure{background:var(--mzb-style-background);border:2px solid var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-player__grid,.mzb-player__grid-cell){border-color:var(--mzb-style-ink);background:var(--mzb-style-surface)}
.mzb-style-neo .mzb-player__grid-cell--marked{background:repeating-linear-gradient(135deg,var(--mzb-style-ink) 0,var(--mzb-style-ink) 5px,var(--mzb-style-primary) 5px,var(--mzb-style-primary) 11px)}
.mzb-style-neo .mzb-player__fraction-line{background:var(--mzb-style-ink)}
.mzb-style-neo .mzb-player .mzb-player__fraction input[type=text]{box-shadow:none}
.mzb-style-neo .mzb-player__equation{background:var(--mzb-style-primary);color:var(--mzb-on-primary);border:var(--mzb-stroke);box-shadow:var(--mzb-hard-shadow)}
.mzb-style-neo .mzb-player__choice{border:var(--mzb-stroke);background:var(--mzb-style-surface);box-shadow:var(--mzb-hard-shadow);color:var(--mzb-style-ink)}
.mzb-style-neo .mzb-player__choice:has(input:checked){background:var(--mzb-style-primary);color:var(--mzb-on-primary);box-shadow:var(--mzb-hard-shadow);border-color:var(--mzb-style-ink)}
.mzb-style-neo .mzb-player__choice:has(input:focus-visible){outline:3px solid var(--mzb-style-ink);outline-offset:5px}
.mzb-style-neo .mzb-player__choice input{accent-color:var(--mzb-style-ink)}
.mzb-style-neo .mzb-player__choice polygon{fill:var(--mzb-style-info);stroke:var(--mzb-style-ink)}
.mzb-style-neo .mzb-player__feedback{background:var(--mzb-style-secondary);color:var(--mzb-on-secondary);border:var(--mzb-stroke);box-shadow:var(--mzb-hard-shadow);animation:none}
.mzb-style-neo .mzb-player__feedback--correct{background:var(--mzb-style-tertiary);color:var(--mzb-on-tertiary)}
.mzb-style-neo .mzb-player__feedback :is(strong,p){color:inherit}
.mzb-style-neo .mzb-player__error{background:var(--mzb-style-secondary);color:var(--mzb-on-secondary);border:var(--mzb-stroke)}
.mzb-style-neo .mzb-player input[aria-invalid=true]{outline:2px dashed var(--mzb-style-ink);outline-offset:4px}
.mzb-style-neo .mzb-player__field-error{color:var(--mzb-style-ink);font-weight:750}
.mzb-style-neo .mzb-player__score{background:var(--mzb-style-primary);color:var(--mzb-on-primary);border:var(--mzb-stroke);box-shadow:var(--mzb-hard-shadow)}
.mzb-style-neo :is(.mzb-player__history,.mzb-player__nav){border-color:var(--mzb-style-ink)}
.mzb-style-neo :is(.mzb-player__nav a,.mzb-player summary,.mzb-breadcrumbs a,.mzb-course a){color:var(--mzb-style-ink)!important;text-decoration-thickness:2px;text-underline-offset:4px}
.mzb-style-neo .mzb-player__hint-bubble{background:var(--mzb-style-primary);color:var(--mzb-on-primary);border:var(--mzb-stroke);box-shadow:var(--mzb-hard-shadow);max-width:calc(100% - var(--mzb-style-shadow));animation:none}
.mzb-style-neo .mzb-player__hint-bubble :is(strong,p){color:inherit}
.mzb-style-neo .mzb-directory--algebra .mzb-directory__glyph:first-child{background:var(--mzb-style-primary);color:var(--mzb-on-primary)}
.mzb-style-neo .mzb-directory--fractions .mzb-directory__glyph{background:var(--mzb-style-tertiary);color:var(--mzb-on-tertiary)}
@media(max-width:600px){.mzb-style-neo .mzb-map__hero{padding:22px 18px}.mzb-style-neo .mzb-map__art{display:none}.mzb-style-neo .mzb-directory__hero>.mzb-directory__scene{display:none}.mzb-style-neo .mzb-directory__hero h2{font-size:28px!important}.mzb-style-neo .mzb-player{padding:20px 16px}.mzb-style-neo .mzb-map__unit{padding:17px 14px}.mzb-style-neo .mzb-map__task{padding:14px 9px}.mzb-style-neo .mzb-map__play{width:28px;height:28px;font-size:20px}.mzb-style-neo .mzb-player__choices{gap:13px}}
.mzb-motion-reduced :is(.mzb-map,.mzb-directory,.mzb-player,.mzb-sidebar),.mzb-motion-reduced :is(.mzb-map,.mzb-directory,.mzb-player,.mzb-sidebar) *{animation:none!important;transition:none!important}
.mzb-motion-reduced :is(.mzb-map,.mzb-directory,.mzb-player,.mzb-sidebar) :is(a,button,label):is(:hover,:active){transform:none!important}
@media(prefers-reduced-motion:reduce){.mzb-style-neo :is(.mzb-map,.mzb-directory,.mzb-player,.mzb-sidebar) *{animation:none!important;transition:none!important}.mzb-style-neo :is(.mzb-map,.mzb-directory,.mzb-player,.mzb-sidebar) :is(a,button,label):is(:hover,:active){transform:none!important}}

/* Compact map header controls use the saved palette in both desktop and mobile. */
.mzb-style-neo .mzb-map__sections>summary{border:var(--mzb-stroke);box-shadow:var(--mzb-hard-shadow);background:var(--mzb-style-primary);color:var(--mzb-on-primary);border-radius:var(--mzb-radius)}
.mzb-style-neo .mzb-map__course-completion progress{height:18px}
.mzb-style-neo .mzb-map__course-completion progress::-webkit-progress-value{background:var(--mzb-style-primary)}
.mzb-style-neo .mzb-map__course-completion progress::-moz-progress-bar{background:var(--mzb-style-primary)}
.mzb-style-neo .mzb-map__unit-cta{border:var(--mzb-stroke);background:var(--mzb-style-primary);color:var(--mzb-on-primary);border-radius:var(--mzb-radius)}

.mzb-style-neo .mzb-map__hero--unit .mzb-map__progress{background:transparent;border:0;border-top:2px solid var(--mzb-style-ink);box-shadow:none;border-radius:0}
.mzb-style-neo .mzb-map__hero--unit .mzb-map__stats>span:first-child{background:var(--mzb-style-info);color:var(--mzb-on-info)}
.mzb-style-neo .mzb-map__hero--unit .mzb-map__course-completion progress{height:20px}
