/* WeType K2 — exercise personalization, RTL/accessible, scoped to the exercise UI. */
.wt28-keyboard-picker{position:fixed;z-index:10000107;display:grid;place-items:center;width:39px;height:39px;padding:8px;border:1px solid var(--wt-page-line,#dce5ed);border-radius:12px 12px 0 0;background:var(--wt-page-surface,#fff);color:var(--wt-page-text,#26364a);box-shadow:0 -5px 20px rgba(15,36,70,.12);cursor:pointer;transition:background .2s,color .2s}
.wt28-keyboard-picker svg{width:22px;height:22px;stroke:currentColor}
.wt28-keyboard-picker:hover{color:var(--wt-page-accent,#3478c8)}
.wt28-keyboard-picker:focus-visible,.wt28-dialog :is(button,input,select):focus-visible{outline:3px solid #397fd3;outline-offset:2px}
.wt28-overlay{position:fixed;inset:0;z-index:10000200;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(10,24,43,.34);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);direction:rtl}
.wt28-dialog{width:min(530px,100%);max-height:min(88vh,760px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--wt-page-line,#dce5ed);border-radius:20px;background:var(--wt-page-surface,#fff);color:var(--wt-page-text,#1d3145);box-shadow:0 28px 76px rgba(11,26,49,.24);font:inherit;direction:rtl}
.wt28-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 21px;border-bottom:1px solid var(--wt-page-line,#dce5ed)}
.wt28-dialog-head h2{font-size:17px;font-weight:750!important;color:inherit!important;margin:0!important}
.wt28-close{width:36px;height:36px;border:0;background:var(--wt-page-soft,#eef2f8);color:inherit;border-radius:10px;font-size:26px;line-height:1;cursor:pointer}
.wt28-dialog-content{overflow-y:auto;overscroll-behavior:contain;padding:14px 21px 20px;min-height:0}
.wt28-dialog-content h3,.wt28-dashboard h3{font-size:14px;font-weight:750;margin:16px 0 9px;color:inherit}
.wt28-dialog-content > :first-child h3{margin-top:0}
.wt28-footer-note{padding:12px 18px;margin:0;color:var(--wt-page-muted,#637286);background:var(--wt-page-soft,#f3f6fa);border-top:1px solid var(--wt-page-line,#dce5ed);font-size:11px;text-align:center}
.wt28-control{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650}
.wt28-select{min-width:0;width:100%;height:42px!important;border:1px solid var(--wt-page-line,#dce5ed)!important;border-radius:11px!important;padding:6px 12px!important;font:inherit;color:var(--wt-page-text,#24364a);background:var(--wt-page-surface,#fff)}
.wt28-select:disabled{opacity:.6}
.wt28-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px}
.wt28-switch{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;font-size:12px;font-weight:650;cursor:pointer;border:1px solid var(--wt-page-line,#dce5ed);border-radius:12px}
.wt28-switch input{width:1px;height:1px;position:absolute;opacity:0}
.wt28-switch-indicator{flex:0 0 36px;width:36px;height:21px;border-radius:30px;background:#9da7b8;position:relative;transition:background .2s}
.wt28-switch-indicator:after{content:'';position:absolute;top:3px;right:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}
.wt28-switch input:checked + .wt28-switch-indicator{background:#3174cd}
.wt28-switch input:checked + .wt28-switch-indicator:after{transform:translateX(-15px)}
.wt28-switch input:focus-visible + .wt28-switch-indicator{outline:3px solid #3174cd;outline-offset:2px}
.wt28-switch:has(input:disabled){opacity:.58;cursor:not-allowed}
.wt28-message{font-size:11px;min-height:0;color:var(--wt-page-muted,#66788b);margin-top:3px}
.wt28-message--error{color:#c53030}.wt28-message--ok{color:#228447}
.wt28-help,.wt28-empty{font-size:11px;color:var(--wt-page-muted,#68798d);line-height:1.8;margin:7px 0 13px}
.wt28-range-output{display:block;font-size:12px;font-weight:700;color:var(--wt-page-accent,#3478c8);text-align:center}
.wt28-range{width:100%;accent-color:#3277cf;cursor:pointer;margin:10px 0}
.wt28-range:disabled{opacity:.5;cursor:not-allowed}
.wt28-range-ticks{display:flex;justify-content:space-between;gap:2px;color:var(--wt-page-muted,#617084);font-size:10px}
.wt28-range-ticks span{text-align:center;flex:1;white-space:nowrap}
.wt28-segments{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--wt-page-line,#dce5ed);border-radius:11px;overflow:hidden}
.wt28-segment{min-height:37px;border:0;border-inline-end:1px solid var(--wt-page-line,#dce5ed);background:var(--wt-page-soft,#f5f7fb);color:var(--wt-page-text,#26394c);cursor:pointer;font:inherit;font-size:12px}
.wt28-segment:last-child{border-inline-end:0}
.wt28-segment[aria-pressed="true"]{background:#306fca;color:#fff}
.wt28-segment:disabled{opacity:.52;cursor:not-allowed}
.wt28-palette{text-align:center;margin-top:14px;padding-top:7px;border-top:1px solid var(--wt-page-line,#dce5ed)}
.wt28-swatches{display:flex;align-items:center;justify-content:center;gap:13px;margin:12px 0 5px}
.wt28-swatch{--wt28-swatch:#fff;width:32px;height:32px;border-radius:50%;border:1px solid #aab5c5;background:var(--wt28-swatch);cursor:pointer;position:relative}
.wt28-swatch--theme{--wt28-swatch:linear-gradient(130deg,#7ec9f0 0 33%,#f8e6b4 33% 66%,#a7d9c1 66% 100%);border-color:#7898b2}.wt28-swatch--base{--wt28-swatch:#fff}.wt28-swatch--pink{--wt28-swatch:#fff0f4}.wt28-swatch--blue{--wt28-swatch:#edf5ff}.wt28-swatch--yellow{--wt28-swatch:#fff9e6}.wt28-swatch--gray{--wt28-swatch:#f2f4f7}
html[data-wt-public-theme="dark"] .wt28-swatch--theme{--wt28-swatch:linear-gradient(130deg,#3c6383 0 33%,#6b5541 33% 66%,#31564c 66% 100%);border-color:#7593af}
html[data-wt-public-theme="dark"] .wt28-swatch--base{--wt28-swatch:#161b26}
html[data-wt-public-theme="dark"] .wt28-swatch--pink{--wt28-swatch:#2b202a}
html[data-wt-public-theme="dark"] .wt28-swatch--blue{--wt28-swatch:#1b2939}
html[data-wt-public-theme="dark"] .wt28-swatch--yellow{--wt28-swatch:#302b1d}
html[data-wt-public-theme="dark"] .wt28-swatch--gray{--wt28-swatch:#252b34}
.wt28-swatch[aria-pressed="true"]:after{content:'';position:absolute;inset:-5px;border:2px solid #377ed4;border-radius:50%}
/* Hover/focus labels reflect the real NIGHT palette, not the light names.
   No native title tooltip: OS tooltips cannot follow the account dark theme. */
.wt28-swatch:hover:not(:disabled),.wt28-swatch:focus-visible{z-index:5}
.wt28-swatch::before{
 content:attr(data-wt28-tooltip-light);position:absolute;bottom:calc(100% + 11px);left:50%;
 transform:translateX(-50%) translateY(3px);padding:5px 9px;white-space:nowrap;
 border-radius:7px;background:#fff;color:#24384d;border:1px solid #b8c8dc;
 font-size:11px;line-height:1.65;font-weight:500;box-shadow:0 6px 18px rgba(14,34,57,.16);
 opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,transform .15s;
}
html[data-wt-public-theme="dark"] .wt28-swatch::before{
 content:attr(data-wt28-tooltip-dark);background:#1c2c42;color:#f3f8ff;
 border-color:#516b89;box-shadow:0 6px 18px rgba(0,0,0,.33);
}
.wt28-swatch:hover:not(:disabled)::before,.wt28-swatch:focus-visible::before{
 opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);
}
@media(prefers-reduced-motion:reduce){.wt28-swatch::before{transition:none}}
.wt28-swatch:disabled{cursor:not-allowed;opacity:.46}
body.wt28-dialog-active{overflow:hidden}
.wt28-dashboard{padding:20px;border:1px solid var(--wt-page-line,#dce5ed);border-radius:17px;background:var(--wt-page-surface,#fff);color:var(--wt-page-text,#24374a);margin-top:18px}
.wt28-dashboard-category{padding:12px;border:1px solid var(--wt-page-line,#dce5ed);border-radius:12px;margin-bottom:10px}
.wt28-dashboard-category strong{display:block;margin-bottom:9px}
.wt28-dashboard .wt28-switches{margin:14px 0}
/* The old renderer is still authoritative for counters and completion; only hide the UI. */
body.exercise-open.wt28-hide-status .exercise-container .exercise-statusbar :is(.time,.wrongs,.divider){display:none!important}
body.exercise-open.wt28-hide-progress .exercise-container :is(.wt-exercise-progress,.progress-title){display:none!important}
/* Update only the exercise workspace surface, never keycaps, accuracy colors or other pages. */
html[data-wt-public-theme="light"] body.exercise-open[data-wt28-bg="pink"] .exercise-backdrop{background:#fff0f4!important}
html[data-wt-public-theme="light"] body.exercise-open[data-wt28-bg="blue"] .exercise-backdrop{background:#edf5ff!important}
html[data-wt-public-theme="light"] body.exercise-open[data-wt28-bg="yellow"] .exercise-backdrop{background:#fff9e6!important}
html[data-wt-public-theme="light"] body.exercise-open[data-wt28-bg="gray"] .exercise-backdrop{background:#f2f4f7!important}
html[data-wt-public-theme="light"] body.exercise-open[data-wt28-bg="base"] .exercise-backdrop{background:#fff!important}
html[data-wt-public-theme="dark"] body.exercise-open[data-wt28-bg="base"] .exercise-backdrop{background:#161b26!important}
html[data-wt-public-theme="dark"] body.exercise-open[data-wt28-bg="pink"] .exercise-backdrop{background:#2b202a!important}
html[data-wt-public-theme="dark"] body.exercise-open[data-wt28-bg="blue"] .exercise-backdrop{background:#1b2939!important}
html[data-wt-public-theme="dark"] body.exercise-open[data-wt28-bg="yellow"] .exercise-backdrop{background:#302b1d!important}
html[data-wt-public-theme="dark"] body.exercise-open[data-wt28-bg="gray"] .exercise-backdrop{background:#252b34!important}
/* Semantic text luminance is independent of correct/error glyph colors. */
html[data-wt-public-theme="light"] body.exercise-open[data-wt28-tone="dark"] .exercise-container>h2{color:#111827!important}
html[data-wt-public-theme="light"] body.exercise-open[data-wt28-tone="normal"] .exercise-container>h2{color:#384252!important}
html[data-wt-public-theme="light"] body.exercise-open[data-wt28-tone="light"] .exercise-container>h2{color:#626b78!important}
html[data-wt-public-theme="dark"] body.exercise-open[data-wt28-tone="dark"] .exercise-container>h2{color:#aabbd0!important}
html[data-wt-public-theme="dark"] body.exercise-open[data-wt28-tone="normal"] .exercise-container>h2{color:#d6e3f2!important}
html[data-wt-public-theme="dark"] body.exercise-open[data-wt28-tone="light"] .exercise-container>h2{color:#f7fbff!important}
@media(max-width:560px){.wt28-overlay{padding:9px}.wt28-dialog{max-height:94vh;border-radius:15px}.wt28-dialog-content{padding:12px 13px}.wt28-switches{grid-template-columns:1fr 1fr;gap:6px}.wt28-switch{padding:7px 6px;font-size:11px}.wt28-range-ticks{font-size:9px}.wt28-keyboard-picker{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.wt28-switch-indicator,.wt28-switch-indicator:after,.wt28-keyboard-picker{transition:none!important}.wt28-overlay{backdrop-filter:none;-webkit-backdrop-filter:none}}
.wt28-switch-item{min-width:0}
.wt28-switch-item>.wt28-message:empty{display:none}

.wt28-mixed-category{padding:10px 12px;margin:8px 0;border:1px solid var(--wt-page-line,#dce5ed);border-radius:12px}
.wt28-mixed-category>strong{display:block;font-size:12px;margin:0 0 6px}

/* v1.5.26.27: fixed feedback footprints prevent a new vertical scrollbar
   when saving a switch, slider, or swatch. Scroll internally only if the
   actual viewport cannot fit the controls. */
.wt28-dialog{max-height:min(88dvh,760px)!important;min-height:0}
.wt28-dialog-content{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain;min-height:0;flex:1 1 auto}
.wt28-dialog-content .wt28-message{display:block;box-sizing:border-box;height:26px;min-height:26px;max-height:26px;line-height:16px;margin:2px 0 0;padding:2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wt28-dialog-content .wt28-message--error{white-space:normal;overflow-y:auto}
.wt28-dialog-content .wt28-switch-item{min-width:0}
.wt28-dialog-content .wt28-font-range,.wt28-dialog-content .wt28-tone,.wt28-dialog-content .wt28-palette{min-width:0}
@media(max-height:620px){.wt28-dialog{max-height:calc(100dvh - 24px)!important}}

/* 1.5.26.28: fit ordinary desktop quick settings without persistent inner
   scrolling. Prior 88dvh / 760px cap and eight 26px feedback slots made
   the content overflow even in a normal-height browser window. */
.wt28-overlay .wt28-dialog{max-height:calc(100dvh - 32px)!important}
.wt28-overlay .wt28-dialog-content{scrollbar-gutter:auto!important}
.wt28-overlay .wt28-dialog-content .wt28-message{height:14px!important;min-height:14px!important;max-height:14px!important;line-height:13px!important;padding:0!important;margin:1px 0 0!important;font-size:10px!important}
.wt28-overlay .wt28-dialog-content h3{margin-top:10px;margin-bottom:7px}
.wt28-overlay .wt28-dialog-content .wt28-help{margin:4px 0 8px}
@media(max-height:670px){.wt28-overlay .wt28-dialog-content{overflow-y:auto!important}}
/* v102: retain the original quick-settings toggles and place the account
   shortcut BESIDE the existing sound on/off switch, not in a new settings row. */
.wt102-switch-line{display:flex;gap:6px;align-items:center;min-width:0}
.wt102-switch-line>.wt28-switch{flex:1 1 auto;min-width:0}
.wt101-settings-gear{display:inline-flex;align-items:center;justify-content:center;flex:0 0 35px;width:35px;height:35px;border:1px solid rgba(125,140,165,.35);border-radius:10px;text-decoration:none;font-size:22px;line-height:1;color:inherit;background:transparent}
.wt101-settings-gear:hover,.wt101-settings-gear:focus-visible{background:rgba(94,152,230,.14);outline:2px solid rgba(94,152,230,.45);outline-offset:1px}
.wt101-settings-unavailable{font-size:10px;color:#8a6a32}
@media(max-width:560px){.wt102-switch-line{gap:4px}.wt101-settings-gear{flex-basis:30px;width:30px;height:32px;font-size:19px}}

/* 1.5.26.103: audible settings open the correct account page; retain a
   recognisable disabled gear when there is no published account page. */
.wt28-dialog .wt102-switch-line{display:flex;align-items:center;gap:7px;min-width:0}
.wt28-dialog .wt102-switch-line .wt28-switch{flex:1 1 auto;min-width:0}
.wt28-dialog .wt102-switch-line .wt101-settings-gear{flex:0 0 36px;min-width:36px;width:36px;height:36px;font-family:Arial,sans-serif;font-size:24px;color:var(--wt-page-accent,#2f70d0);box-sizing:border-box}
.wt28-dialog .wt101-settings-gear--disabled{opacity:.6;cursor:not-allowed}
@media(max-width:560px){.wt28-dialog .wt102-switch-line .wt101-settings-gear{flex-basis:30px;min-width:30px;width:30px;height:32px}}

/* V123: one compact theme row; keyboard tabs occupy the existing dialog. */
.wt123-visual-compact{padding:8px 0 10px;border-bottom:1px solid var(--wt-page-line,#dce5ed);margin:0 0 10px;min-width:0}
.wt123-visual-line{display:flex;align-items:flex-end;gap:10px;min-width:0}
.wt123-visual-label{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;font-size:12px;font-weight:650;color:inherit}
.wt123-visual-label select{height:36px!important;font-size:12px!important;min-width:0;width:100%;text-overflow:ellipsis}
.wt123-discover{flex:none;display:inline-flex;align-items:center;min-height:36px;padding:0 7px;font-size:11px;font-weight:650;text-decoration:none!important;color:var(--wt-page-accent,#2767d8)!important;white-space:nowrap}
.wt123-discover:hover{text-decoration:underline!important}
.wt123-visual-status{font-size:11px;margin:4px 0 0;color:var(--wt-page-muted,#637286)}.wt123-visual-status:empty{display:none}.wt123-visual-status.is-error{color:#bd4141}
.wt123-tabs{display:flex;gap:3px;padding:3px;background:var(--wt-page-soft,#eef2f8);border-radius:11px;margin:0 0 12px}
.wt123-tabs>button{flex:1;min-width:0;min-height:34px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.wt123-tabs>button[aria-pressed="true"]{background:var(--wt-page-surface,#fff);color:var(--wt-page-accent,#2767d8);font-weight:700;box-shadow:0 1px 4px #0001}
.wt123-layout-panel[hidden],.wt123-skin-panel[hidden]{display:none!important}
.wt123-skin-panel .wt123-visual-compact{border:0;margin:0;padding:0}
@media(max-width:360px){.wt123-visual-line{gap:4px}.wt123-discover{padding:0 3px;font-size:10px}}

.wt123-quick-layout{margin:0 0 9px;min-width:0}.wt123-quick-layout-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:5px 2px;border:0;background:transparent;color:var(--wt-page-muted,#637286);font:inherit;font-size:11px;cursor:pointer}.wt123-quick-layout-toggle:after{content:'⌄';font-size:16px;line-height:1}.wt123-quick-layout-toggle[aria-expanded="true"]:after{transform:rotate(180deg)}.wt123-quick-layout .wt123-layout-panel{padding:7px 0 3px}
