.vhtc-app {
  --vhtc-navy: #0c2042;
  --vhtc-blue: #143c70;
  --vhtc-orange: #ef7817;
  --vhtc-yellow: #ffad66;
  --vhtc-cream: #f5f7fb;
  --vhtc-ink: #0c2042;
  --vhtc-muted: #52617a;
  width: min(1240px, calc(100vw - 32px)) !important;
  max-width: none !important;
  margin: 32px 0 56px !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.vhtc-app .vhtc-shell { min-width: 0; }
.vhtc-app .vhtc-main { min-width: 0; }
.vhtc-app .vhtc-sidebar { min-width: 0; }
.vhtc-app .vhtc-level small { display: block; margin-top: 6px; font-size: 11px; font-weight: 800; color: #ffceaa; }
.vhtc-app .vhtc-level.is-active small { color: #0c2042; }
.vhtc-app .vhtc-level.is-mastered:not(.is-active) { border-color: #70c39c !important; }
.vhtc-app .vhtc-level:disabled { opacity: .55; cursor: not-allowed; }
.vhtc-app .vhtc-level:disabled:hover { background: rgba(255,255,255,.04) !important; color: #d9e5f8 !important; border-color: rgba(255,255,255,.22) !important; box-shadow: none; }
.vhtc-app .vhtc-tabs { overflow-x: auto; scrollbar-width: thin; }
.vhtc-app .vhtc-tabs button { flex: none; white-space: nowrap; }
.vhtc-app .vhtc-assignment { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 18px; border: 1px solid #cbd9ec; border-radius: 12px; background: #edf4ff; }
.vhtc-app .vhtc-assignment-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #143c70; color: #fff; font-size: 23px; }
.vhtc-app .vhtc-assignment strong { display: block; color: #0c2042; font-size: 15px; }
.vhtc-app .vhtc-assignment p { margin: 4px 0 0; color: #52617a; font-size: 13px; line-height: 1.5; }
.vhtc-app .vhtc-mode-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 5px 0 16px; }
.vhtc-app .vhtc-mode-switch button { padding: 9px 14px; border: 1px solid #cbd5e4; border-radius: 8px; background: #fff; color: #143c70; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.vhtc-app .vhtc-mode-switch button.is-active { border-color: #143c70; background: #143c70; color: #fff; }
.vhtc-app .vhtc-mode-switch button:focus-visible, .vhtc-app a:focus-visible, .vhtc-app button:focus-visible { outline: 3px solid #ef7817; outline-offset: 2px; }
.vhtc-app .vhtc-test-settings { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.vhtc-app .vhtc-test-settings label { display: grid; gap: 6px; color: #435570; font-size: 12px; font-weight: 800; }
.vhtc-app .vhtc-test-settings label[data-vhtc-custom-wrap] { flex: 1 1 100%; }
.vhtc-app .vhtc-test-settings select, .vhtc-app .vhtc-test-settings textarea { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid #c4d0df; border-radius: 8px; background: #fff; color: #0c2042; font: inherit; font-size: 14px; }
.vhtc-app .vhtc-test-settings select { min-width: 150px; }
.vhtc-app .vhtc-test-settings textarea { min-height: 80px; resize: vertical; }
.vhtc-app .vhtc-progress-line i { width: 0; transition: width .2s linear; }
.vhtc-app .vhtc-passage { max-height: 220px; overflow: auto; font-size: clamp(15px, 1.55vw, 19px); line-height: 1.85; }
.vhtc-app .vhtc-input { min-height: 96px; }
.vhtc-app .vhtc-result { margin-top: 18px; padding: 18px 20px; border: 1px solid #b8dbc8; border-radius: 10px; background: #f1fbf5; color: #174b34; }
.vhtc-app .vhtc-result strong { display: block; margin-bottom: 9px; font-size: 16px; }
.vhtc-app .vhtc-result div { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 700; }
.vhtc-app .vhtc-data-panel { padding: 28px; border: 1px solid #e0e6ef; border-radius: 14px; background: #fff; }
.vhtc-app .vhtc-data-panel h3 { margin: 8px 0; color: #0c2042; font-size: 26px; }
.vhtc-app .vhtc-data-panel p { color: #52617a; font-size: 14px; }
.vhtc-app .vhtc-profile-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 10px; margin: 20px 0; }
.vhtc-app .vhtc-profile-grid > div { padding: 15px; border: 1px solid #dce4ee; border-radius: 9px; background: #f7f9fc; }
.vhtc-app .vhtc-profile-grid span, .vhtc-app .vhtc-profile-grid strong { display: block; }
.vhtc-app .vhtc-profile-grid span { color: #52617a; font-size: 12px; }
.vhtc-app .vhtc-profile-grid strong { margin-top: 7px; color: #0c2042; font-size: 20px; }
.vhtc-app .vhtc-coach-note { padding: 15px 17px; border-left: 4px solid #ef7817; border-radius: 6px; background: #fff5ec; }
.vhtc-app .vhtc-chart-card { margin-top: 24px; padding: 18px; border: 1px solid #dce4ee; border-radius: 10px; }
.vhtc-app .vhtc-chart { width: 100%; max-height: 190px; overflow: visible; }
.vhtc-app .vhtc-chart polyline { fill: none; stroke: #143c70; stroke-width: 3; }
.vhtc-app .vhtc-chart circle { fill: #ef7817; }
.vhtc-app .vhtc-chart line { stroke: #b9c7da; }
.vhtc-app .vhtc-score-table { overflow-x: auto; }
.vhtc-app .vhtc-score-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vhtc-app .vhtc-score-table th, .vhtc-app .vhtc-score-table td { padding: 11px; border-bottom: 1px solid #e1e7ee; text-align: left; }
.vhtc-app .vhtc-room-list { display: grid; gap: 8px; margin-top: 12px; }
.vhtc-app .vhtc-room-list button { display: flex; justify-content: space-between; width: 100%; padding: 12px 15px; border: 1px solid #dce4ee; border-radius: 9px; background: #fff; color: #143c70; text-align: left; cursor: pointer; }
.vhtc-app .vhtc-room-list small { display: block; color: #52617a; }
.vhtc-app .vhtc-focus-bar[hidden] { display: none !important; }
.vhtc-app .vhtc-focus-bar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: #0c2042; color: #fff; box-shadow: 0 10px 25px rgba(12, 32, 66, .16); scroll-margin-top: 16px; }
.vhtc-app .vhtc-focus-bar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vhtc-app .vhtc-focus-mark { display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 10px; background: #ef7817; font-size: 22px; }
.vhtc-app .vhtc-focus-bar strong, .vhtc-app .vhtc-focus-bar small { display: block; }
.vhtc-app .vhtc-focus-bar strong { font-size: 15px; }
.vhtc-app .vhtc-focus-bar small { margin-top: 2px; color: #c9d7eb; font-size: 11px; }
.vhtc-app .vhtc-focus-bar button { flex: none; padding: 9px 13px; border: 1px solid #7992b6; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.vhtc-app .vhtc-focus-bar button:hover { background: #173b6c; }
.vhtc-app.is-focused { width: min(1400px, calc(100vw - 32px)) !important; }
.vhtc-app.is-focused .vhtc-shell { grid-template-columns: minmax(0, 1fr) !important; min-height: 0; overflow: visible; }
.vhtc-app.is-focused .vhtc-sidebar, .vhtc-app.is-focused .vhtc-header, .vhtc-app.is-focused .vhtc-assignment, .vhtc-app.is-focused .vhtc-tabs, .vhtc-app.is-focused .vhtc-mode-switch, .vhtc-app.is-focused .vhtc-test-settings { display: none !important; }
.vhtc-app.is-focused .vhtc-brandbar { min-height: 42px; padding-inline: 22px; }
.vhtc-app.is-focused .vhtc-main { padding: clamp(16px, 2.5vw, 32px); background: #eef3fa; }
.vhtc-app.is-focused .vhtc-workspace { display: flex; flex-direction: column; gap: 12px; min-height: min(720px, calc(100vh - 150px)); padding: clamp(20px, 3vw, 38px); border-color: #d9e3ef; box-shadow: 0 20px 55px rgba(12, 32, 66, .13); }
.vhtc-app.is-focused .vhtc-passage { flex: 1 1 auto; min-height: 120px; max-height: min(260px, 31vh); margin: 4px 0; font-size: clamp(18px, 2vw, 25px); line-height: 1.8; }
.vhtc-app.is-focused .vhtc-input { flex: none; min-height: 80px; font-size: clamp(17px, 1.8vw, 21px); }
.vhtc-app.is-focused .vhtc-keyboard-wrap { margin-top: auto; }
.vhtc-app.is-focused .vhtc-tip-row { display: none !important; }
.vhtc-app.is-focused .vhtc-game { min-height: min(650px, calc(100vh - 150px)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.vhtc-app.is-focused .vhtc-game-word { width: min(560px, 100%); }
.vhtc-app.is-focused .vhtc-game .vhtc-input { width: min(560px, 100%); }
@media (max-width: 950px) {
  .vhtc-app .vhtc-shell { grid-template-columns: 1fr; }
  .vhtc-app .vhtc-sidebar { padding: 24px; }
  .vhtc-app .vhtc-sidebar h2 br, .vhtc-app .vhtc-side-note { display: none; }
  .vhtc-app .vhtc-levels { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .vhtc-app { width: min(100%,calc(100vw - 16px)) !important; margin: 14px auto 40px !important; position: static; left: auto; transform: none; }
  .vhtc-app .vhtc-brandbar { padding: 0 16px; border-radius: 12px 12px 0 0; }
  .vhtc-app .vhtc-shell { border-radius: 0 0 12px 12px; }
  .vhtc-app .vhtc-sidebar { padding: 22px 16px; }
  .vhtc-app .vhtc-levels { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vhtc-app .vhtc-main { padding: 24px 16px; }
  .vhtc-app .vhtc-workspace, .vhtc-app .vhtc-data-panel { padding: 18px; }
  .vhtc-app .vhtc-tabs { margin-top: 22px !important; }
  .vhtc-app .vhtc-tip-row { display: none !important; }
  .vhtc-app.is-focused { width: min(100%, calc(100vw - 16px)) !important; }
  .vhtc-app .vhtc-focus-bar { padding: 12px; }
  .vhtc-app .vhtc-focus-bar small { display: none; }
  .vhtc-app .vhtc-focus-bar button { padding: 8px; font-size: 11px; }
  .vhtc-app.is-focused .vhtc-workspace { min-height: 0; padding: 18px; }
  .vhtc-app.is-focused .vhtc-passage { max-height: 210px; font-size: 17px; }
  .vhtc-app.is-focused .vhtc-game { min-height: 540px; padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .vhtc-app *, .vhtc-app *::before, .vhtc-app *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Active sessions use the browser viewport, independent of the WordPress header and footer. */
body.vhtc-session-open { overflow: hidden !important; }
.vhtc-app.is-focused { position: fixed !important; inset: 0 !important; z-index: 999999 !important; left: 0 !important; width: 100vw !important; max-width: none !important; height: 100vh !important; height: 100dvh !important; margin: 0 !important; transform: none !important; display: flex; flex-direction: column; overflow: hidden; background: #eaf0f8; }
.vhtc-app.is-focused .vhtc-brandbar { flex: none; min-height: 44px; border-radius: 0; }
.vhtc-app.is-focused .vhtc-shell { display: block !important; flex: 1 1 auto; min-height: 0; overflow: auto; border-radius: 0; background: #eaf0f8; box-shadow: none; }
.vhtc-app.is-focused .vhtc-main { width: min(1120px, 100%); min-height: 100%; margin: 0 auto; padding: clamp(10px, 1.7vh, 18px) clamp(12px, 2vw, 24px); }
.vhtc-app.is-focused .vhtc-focus-bar { position: sticky; top: 0; margin-bottom: 10px; padding: 8px 14px; }
.vhtc-app.is-focused .vhtc-focus-mark { width: 30px; height: 30px; font-size: 17px; }
.vhtc-app.is-focused .vhtc-workspace { min-height: 0; height: auto; gap: clamp(5px, .9vh, 10px); padding: clamp(12px, 1.6vh, 20px); box-shadow: 0 10px 35px rgba(12,32,66,.09); }
.vhtc-app.is-focused .vhtc-session-head { min-height: 36px; }
.vhtc-app.is-focused .vhtc-passage { flex: 0 1 auto; min-height: 0; max-height: clamp(95px, 21vh, 175px); margin: 0 !important; padding: clamp(10px, 1.3vh, 16px); font-size: clamp(16px, 1.7vw, 22px); line-height: 1.55; }
.vhtc-app.is-focused .vhtc-input { min-height: 64px; height: clamp(64px, 10vh, 95px); resize: none; }
.vhtc-app.is-focused .vhtc-controls { margin-top: 2px; }
.vhtc-app.is-focused .vhtc-keyboard-wrap { margin-top: 0; padding: 8px; }
.vhtc-app.is-focused .vhtc-keyboard-wrap > p { margin-bottom: 5px; }
.vhtc-app.is-focused .vhtc-key-row kbd { height: clamp(18px, 2.5vh, 24px); }
.vhtc-app.is-focused .vhtc-result { margin-top: 2px; padding: 14px 18px; }
.vhtc-app.is-focused.is-complete .vhtc-passage, .vhtc-app.is-focused.is-complete .vhtc-input, .vhtc-app.is-focused.is-complete .vhtc-keyboard-wrap { display: none !important; }
.vhtc-app.is-focused.is-paused .vhtc-timer-box { color: #e0781a; }
.vhtc-app.is-focused.is-paused .vhtc-timer-box small::after { content: ' · PAUSED'; }
.vhtc-app .vhtc-result-heading { display: flex !important; align-items: center; justify-content: space-between; gap: 20px; }
.vhtc-app .vhtc-result-heading small, .vhtc-app .vhtc-result-metrics small { display: block; color: #4c6b5c; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.vhtc-app .vhtc-result-heading strong { margin: 5px 0 !important; font-size: clamp(18px, 2vw, 26px); }
.vhtc-app .vhtc-result-heading span { font-size: 13px; }
.vhtc-app .vhtc-result-speed { display: flex !important; align-items: baseline; gap: 5px; }
.vhtc-app .vhtc-result-speed b { color: #0c2042; font-size: clamp(32px, 4vw, 54px); line-height: 1; }
.vhtc-app .vhtc-result-speed span { font-size: 13px; font-weight: 800; }
.vhtc-app .vhtc-result-metrics { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.vhtc-app .vhtc-result-metrics > div { display: block; padding: 10px; border: 1px solid #cce3d4; border-radius: 8px; background: #fff; }
.vhtc-app .vhtc-result-metrics strong { display: block; margin: 5px 0 0; color: #174b34; font-size: 20px; }
.vhtc-app .vhtc-theme-control { display: flex; align-items: center; gap: 6px; margin-left: auto; color: #d9e4f3; font-size: 11px; font-weight: 700; }
.vhtc-app .vhtc-theme-control select { padding: 5px 8px; border: 1px solid #7590b2; border-radius: 6px; background: #173b6c; color: #fff; font: inherit; }
.vhtc-app .vhtc-member-label { margin-left: auto; }
.vhtc-app .vhtc-member-label + .vhtc-theme-control { margin-left: 12px; }

/* Theme applies to both the menu and the immersive session; Auto follows the device. */
.vhtc-app[data-vhtc-theme="dark"] { --vhtc-navy: #e6eeff; --vhtc-ink: #e6eeff; --vhtc-muted: #aebed5; --vhtc-cream: #101b2d; background: #0b1424; color: #e6eeff; }
.vhtc-app[data-vhtc-theme="dark"].is-focused, .vhtc-app[data-vhtc-theme="dark"] .vhtc-shell, .vhtc-app[data-vhtc-theme="dark"] .vhtc-main { background: #101b2d; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-brandbar, .vhtc-app[data-vhtc-theme="dark"] .vhtc-focus-bar { background: #071225; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-workspace, .vhtc-app[data-vhtc-theme="dark"] .vhtc-game, .vhtc-app[data-vhtc-theme="dark"] .vhtc-room, .vhtc-app[data-vhtc-theme="dark"] .vhtc-data-panel { border-color: #30425e; background: #17263d; color: #e6eeff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-session-head, .vhtc-app[data-vhtc-theme="dark"] .vhtc-data-panel h3, .vhtc-app[data-vhtc-theme="dark"] .vhtc-keyboard-wrap > p { color: #e6eeff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-passage { border-color: #3e5573; border-left-color: #ef7817; background: #101b2d; color: #9aabc5; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-passage .is-correct { color: #f1f6ff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-passage .is-wrong { color: #ff9f9f; background: #502c3b; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-input, .vhtc-app[data-vhtc-theme="dark"] .vhtc-room-actions input { border-color: #4c6483 !important; background: #0d192c !important; color: #f1f6ff !important; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-keyboard-wrap { background: #101b2d; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-key-row kbd { border-color: #405573; background: #263b57; color: #d4e0f0; box-shadow: 0 2px 0 #0a1527; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-key-row kbd.is-pressed { background: #ef7817; color: #071225; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-result { border-color: #296b53; background: #10372e; color: #dcf7e8; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-result-speed b, .vhtc-app[data-vhtc-theme="dark"] .vhtc-result-metrics strong { color: #effff5; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-result-metrics > div { border-color: #296b53; background: #153d32; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-result-heading small, .vhtc-app[data-vhtc-theme="dark"] .vhtc-result-metrics small { color: #a9d7ba; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-assignment { border-color: #385477; background: #1b3455; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-assignment strong, .vhtc-app[data-vhtc-theme="dark"] .vhtc-assignment p { color: #e6eeff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-mode-switch button, .vhtc-app[data-vhtc-theme="dark"] .vhtc-test-settings select, .vhtc-app[data-vhtc-theme="dark"] .vhtc-test-settings textarea { border-color: #405573; background: #17263d; color: #e6eeff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-mode-switch button.is-active { background: #ef7817; color: #071225; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-text-button { color: #d7e5fa !important; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-button:disabled { background: #a95319 !important; color: #fff !important; opacity: 1 !important; }
.vhtc-app .vhtc-next-step { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 18px; border: 1px solid #d5dfec; border-radius: 12px; background: #fff; color: #0c2042; }
.vhtc-app .vhtc-next-step small, .vhtc-app .vhtc-lesson-brief small { display: block; margin-bottom: 6px; color: #8b480d; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.vhtc-app .vhtc-next-step strong { display: block; font-size: 17px; }
.vhtc-app .vhtc-next-step p { margin: 6px 0 0; font-size: 13px; color: #52617a; }
.vhtc-app .vhtc-next-step button { flex: none; }
.vhtc-app .vhtc-lesson-brief { padding: 16px; margin-bottom: 16px; border-left: 3px solid #ef7817; background: #fff6ed; color: #0c2042; border-radius: 8px; }
.vhtc-app .vhtc-lesson-brief[hidden] { display: none !important; }
.vhtc-app .vhtc-lesson-brief strong { display: block; font-size: 14px; line-height: 1.5; }
.vhtc-app .vhtc-lesson-brief p, .vhtc-app .vhtc-lesson-brief > span { font-size: 12px; line-height: 1.6; }
.vhtc-app .vhtc-lesson-brief code { display: inline; padding: 2px 4px; color: inherit; white-space: normal; }
.vhtc-app.is-focused .vhtc-next-step, .vhtc-app.is-focused .vhtc-lesson-brief { display: none !important; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-game h3, .vhtc-app[data-vhtc-theme="dark"] .vhtc-header h2, .vhtc-app[data-vhtc-theme="dark"] .vhtc-room-intro h3, .vhtc-app[data-vhtc-theme="dark"] .vhtc-panel-heading { color: #f0f5ff !important; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-game > p:not(.vhtc-game-word), .vhtc-app[data-vhtc-theme="dark"] .vhtc-data-panel p { color: #bfcee3; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-stats > span, .vhtc-app[data-vhtc-theme="dark"] .vhtc-game-score span { background: #263e5d; color: #c5d5ec; border: 1px solid #506988; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-stats strong, .vhtc-app[data-vhtc-theme="dark"] .vhtc-game-score strong { color: #fff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-game-word { background: #102137; border-color: #ffac61; color: #ffb36d !important; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-level.is-active, .vhtc-app[data-vhtc-theme="dark"] .vhtc-level.is-active strong, .vhtc-app[data-vhtc-theme="dark"] .vhtc-level.is-active span { color: #0c2042 !important; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-profile-grid > div, .vhtc-app[data-vhtc-theme="dark"] .vhtc-chart-card, .vhtc-app[data-vhtc-theme="dark"] .vhtc-room-list button { border-color: #405573; background: #1c304a; color: #e6eeff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-profile-grid strong { color: #fff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-profile-grid span { color: #bfcee3; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-next-step, .vhtc-app[data-vhtc-theme="dark"] .vhtc-lesson-brief { background: #1b304a; border-color: #506988; color: #eef5ff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-next-step p, .vhtc-app[data-vhtc-theme="dark"] .vhtc-lesson-brief > span { color: #c7d6e9; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-next-step small, .vhtc-app[data-vhtc-theme="dark"] .vhtc-lesson-brief small { color: #ffb36d; }
.vhtc-app.is-focused .vhtc-room-intro, .vhtc-app.is-focused .vhtc-active-rooms { display: none !important; }
.vhtc-app .vhtc-room { padding: 18px; }
.vhtc-app .vhtc-room .vhtc-session-head { margin-bottom: 14px; flex-wrap: wrap; }
.vhtc-app [data-vhtc-room-state] { padding: 8px 12px; border-radius: 8px; background: #edf4ff; color: #173b6c; font-size: 13px; }
.vhtc-app .vhtc-room h3 { margin: 16px 0 10px; font-size: 17px; color: #0c2042; }
.vhtc-app .vhtc-race-ranks { margin-bottom: 20px; }
.vhtc-app .vhtc-phase { grid-column: 1 / -1; min-width: 0; }
.vhtc-app .vhtc-phase summary { padding: 10px 0; color: #e2edff; font-size: 12px; font-weight: 800; cursor: pointer; }
.vhtc-app .vhtc-phase > div { display: grid; gap: 8px; }
.vhtc-app .vhtc-room-list button:disabled { opacity: .65; cursor: not-allowed; }
.vhtc-app .vhtc-game-picker { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 10px 0; }
.vhtc-app .vhtc-game-picker button { padding: 15px; text-align: left; border: 1px solid #cbd8e9; border-radius: 10px; background: #fff; color: #0c2042; cursor: pointer; font: inherit; }
.vhtc-app .vhtc-game-picker strong, .vhtc-app .vhtc-game-picker span { display: block; }
.vhtc-app .vhtc-game-picker strong { font-size: 15px; }
.vhtc-app .vhtc-game-picker span { margin-top: 5px; font-size: 12px; color: #52617a; }
.vhtc-app .vhtc-game-picker .is-active { border: 2px solid #ef7817; }
.vhtc-app .vhtc-game-rotation { font-size: 12px; color: #52617a; }
.vhtc-app .vhtc-game-score small { font: inherit; }
.vhtc-app .vhtc-game-best { margin-top: 10px !important; font-weight: 700; }
.vhtc-app.is-focused .vhtc-game-picker, .vhtc-app.is-focused .vhtc-game-rotation { display: none !important; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-game-picker button { border-color: #506988; background: #1b304a; color: #eef5ff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-game-picker .is-active { border-color: #ffac61; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-game-picker span, .vhtc-app[data-vhtc-theme="dark"] .vhtc-game-rotation { color: #c7d6e9; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-room h3 { color: #f0f5ff; }
.vhtc-app[data-vhtc-theme="dark"] [data-vhtc-room-state] { background: #263e5d; color: #f0f5ff; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-score-table th, .vhtc-app[data-vhtc-theme="dark"] .vhtc-score-table td { border-color: #405573; color: #dfeaff; }
@media (max-width: 650px) {
  .vhtc-app.is-focused { width: 100vw !important; margin: 0 !important; }
  .vhtc-app.is-focused .vhtc-main { padding: 8px; }
  .vhtc-app.is-focused .vhtc-workspace { padding: 12px; }
  .vhtc-app.is-focused .vhtc-passage { max-height: 25vh; font-size: 16px; }
  .vhtc-app.is-focused .vhtc-keyboard-wrap { display: none; }
  .vhtc-app .vhtc-result-metrics { grid-template-columns: repeat(2, 1fr); }
  .vhtc-app .vhtc-member-label { display: none; }
  .vhtc-app .vhtc-next-step { flex-direction: column; align-items: stretch; }
}

/* Scope page integration to the mounted Typing Club only. */
body.vhtc-page { background:#f5f7fb !important; }
body.vhtc-page :is(.site-content,.content-area,.site-main,.entry-content,.entry-content-wrap,.inside-article,.content-container,.site-container,article.page) { background:transparent !important; box-shadow:none !important; }
body.vhtc-page :is(.site-content,.content-area,.site-main,.entry-content,.entry-content-wrap,.inside-article,article.page) { margin-top:0 !important; margin-bottom:0 !important; padding-top:0 !important; padding-bottom:0 !important; }
body.vhtc-page .entry-content > :is(.wp-block-shortcode,p):has(.vhtc-app) { margin:0 !important; padding:0 !important; }
body.vhtc-page :is(.content-container,.site-container,.content-area,.site-main,.entry-content,.entry-content-wrap,.inside-article,article.page) { max-width:none !important; width:100%; }
body.vhtc-page .vhtc-app { margin:0 auto !important; left:0; transform:none; }
body.vhtc-page[data-vhtc-page-theme="dark"] { background:#101b2d !important; color:#e6eeff; color-scheme:dark; }
body.vhtc-page[data-vhtc-page-theme="dark"] :is(#masthead,.site-header,.site-header-wrap,.site-header-row-container-inner,.inside-header,#colophon,.site-footer,.site-footer-row-container-inner,.footer-widgets) { background:#071225 !important; color:#e6eeff !important; }
body.vhtc-page[data-vhtc-page-theme="dark"] :is(.site-header,.site-footer) :is(a,p,span,h2,h3,h4) { color:#e6eeff; }
.vhtc-app .vhtc-chart text { fill:var(--vhtc-ink); font-size:11px; }
.vhtc-app .vhtc-chart .vhtc-speed-line { stroke:#ef7817; }
.vhtc-app .vhtc-chart .vhtc-accuracy-line { stroke:#21b5a5; }
.vhtc-app .vhtc-chart circle.vhtc-accuracy-line { fill:#21b5a5; }
.vhtc-app .vhtc-chart-legend { font-size:12px; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-chart line { stroke:#506988; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-coach-note { background:#1b304a; color:#e6eeff !important; }
.vhtc-app .vhtc-guide { position:fixed !important; inset:0; z-index:100001; background:rgba(4,13,28,.75); display:flex; align-items:center; justify-content:center; padding:16px; }
.vhtc-app .vhtc-guide[hidden] { display:none !important; }
.vhtc-app .vhtc-guide-card { max-height:calc(100dvh - 32px); overflow:auto; width:min(560px,100%); background:#fff; color:#0c2042; border-radius:16px; padding:32px; position:relative; }
.vhtc-app .vhtc-guide-preference { display:flex; gap:8px; align-items:center; margin:20px 0; font-size:14px; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-guide-card { background:#17263d; color:#e6eeff; }
.vhtc-app[data-vhtc-theme="dark"] :is(.vhtc-guide-card h2,.vhtc-guide-card p,.vhtc-help h4) { color:#e6eeff !important; }

.vhtc-app .vhtc-chart-card .vhtc-panel-heading span { display:block; margin-top:5px; font-size:12px; }

.vhtc-app .vhtc-wellbeing { position:relative; margin:20px 0; padding:14px 38px 14px 16px; border:1px solid #d5dfec; border-left:4px solid #ef7817; border-radius:10px; background:#fff9f1; color:#193458; }
.vhtc-app .vhtc-wellbeing p { margin:5px 0 0; font-size:13px; }
.vhtc-app .vhtc-wellbeing button { position:absolute; right:10px; top:8px; border:0; background:transparent; color:inherit; font-size:22px; cursor:pointer; }
.vhtc-app .vhtc-badge-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:16px 0 24px; }
.vhtc-app .vhtc-badge { display:flex; flex-direction:column; gap:7px; border:1px solid #cbd7e5; border-radius:12px; padding:16px; background:#f5f7fb; color:#52617a; }
.vhtc-app .vhtc-badge b { font-size:28px; }
.vhtc-app .vhtc-badge span,.vhtc-app .vhtc-badge small { font-size:12px; }
.vhtc-app .vhtc-badge.is-earned { border-color:#ef7817; color:#193458; background:#fff5e8; }
.vhtc-app[data-vhtc-theme="dark"] :is(.vhtc-wellbeing,.vhtc-badge) { background:#1b304a; color:#c7d6e9; border-color:#506988; }
.vhtc-app[data-vhtc-theme="dark"] .vhtc-badge.is-earned { color:#ffce91; border-color:#ef7817; }
.vhtc-app[data-vhtc-theme="dark"] :is(.vhtc-achievements h4,[data-vhtc-award-board] h4) { color:#e6eeff; }
.vhtc-app.is-focused .vhtc-wellbeing { position:fixed; bottom:12px; right:12px; z-index:20; width:min(350px,calc(100vw - 24px)); box-shadow:0 6px 20px #0003; }

/* Keep the lesson chooser useful without burying practice on phones. */
.vhtc-app .vhtc-mobile-practice-link { display:none; }
@media (max-width:650px) {
  .vhtc-app .vhtc-mobile-practice-link { display:block; margin:12px 0 18px; padding:12px 14px; border-radius:9px; background:#ef7817; color:#fff; font-size:14px; font-weight:800; text-align:center; text-decoration:none; }
  .vhtc-app .vhtc-phase > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vhtc-app .vhtc-level { min-width:0; padding:11px; }
  .vhtc-app .vhtc-level strong, .vhtc-app .vhtc-level span { overflow-wrap:anywhere; }
  .vhtc-app #vhtc-practice { scroll-margin-top:12px; }
}
@media (max-width:340px) { .vhtc-app .vhtc-phase > div { grid-template-columns:1fr; } }

/* Keep the app centered when a theme shortcode wrapper is narrower than the viewport. */
body.vhtc-page .vhtc-app:not(.is-focused) { left:50%; transform:translateX(-50%); margin:0 0 40px !important; }
@media (min-width:1101px) and (max-width:1400px) {
  .vhtc-app .vhtc-shell { grid-template-columns:minmax(270px,26%) minmax(0,1fr); }
}
@media (min-width:651px) and (max-width:1100px) {
  .vhtc-app { width:min(1240px,calc(100vw - 32px)) !important; }
  .vhtc-app .vhtc-shell { grid-template-columns:minmax(0,1fr); min-height:0; }
  .vhtc-app .vhtc-sidebar { padding:20px 24px; }
  .vhtc-app .vhtc-sidebar h2 { font-size:32px !important; margin:7px 0 !important; }
  .vhtc-app .vhtc-sidebar h2 br, .vhtc-app .vhtc-sidebar-rule, .vhtc-app .vhtc-side-note { display:none; }
  .vhtc-app .vhtc-sidebar > p:not(.vhtc-side-label) { font-size:13px; }
  .vhtc-app .vhtc-side-label { margin-top:16px !important; }
  .vhtc-app .vhtc-phase > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vhtc-app .vhtc-level { min-width:0; }
  .vhtc-app .vhtc-level strong, .vhtc-app .vhtc-level span { overflow-wrap:anywhere; }
  .vhtc-app .vhtc-mobile-practice-link { display:inline-block; margin:10px 0 0; padding:10px 14px; border-radius:8px; background:#ef7817; color:#fff; font-size:13px; font-weight:800; text-decoration:none; }
  .vhtc-app .vhtc-main { padding:24px; }
}

/* Personal routines use existing light/dark surface variables. */
.vhtc-habit{background:var(--vhtc-cream);color:var(--vhtc-ink);border:1px solid #9aaac440;border-radius:16px;padding:20px;margin:0 0 20px}
.vhtc-habit-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.vhtc-habit h3{margin:6px 0;font-size:22px}.vhtc-habit p{line-height:1.6;margin:8px 0}.vhtc-habit-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.vhtc-habit-stats small,.vhtc-habit-stats strong,.vhtc-habit-stats span{display:block}.vhtc-habit-stats strong{font-size:20px;margin:6px 0}.vhtc-habit-stats span{font-size:12px;color:var(--vhtc-muted)}.vhtc-habit progress{display:block;width:100%;height:10px;accent-color:var(--vhtc-orange)}
.vhtc-habit-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:0!important;margin:16px 0!important;gap:6px;list-style:none}.vhtc-habit-week li{text-align:center;border:1px solid #9aaac455;border-radius:9px;padding:8px 2px;min-width:0}.vhtc-habit-week span,.vhtc-habit-week small,.vhtc-habit-week b{display:block}.vhtc-habit-week span,.vhtc-habit-week small{font-size:11px}.vhtc-habit-week b{font-size:20px;margin:4px}.vhtc-habit-week .is-active{background:#16775215}.vhtc-habit-week .is-active b{color:#148253}.vhtc-habit-week .is-today{outline:2px solid var(--vhtc-orange);outline-offset:1px}.vhtc-habit-week .is-future{opacity:.65}
.vhtc-habit summary{cursor:pointer;padding:8px 0}.vhtc-habit form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:12px 0}.vhtc-habit label{display:flex;flex-direction:column;gap:6px}.vhtc-habit select{max-width:100%;padding:8px;color:var(--vhtc-ink);background:var(--vhtc-cream)}.vhtc-habit-note{font-size:12px;color:var(--vhtc-muted)}.vhtc-habit-week .vhtc-habit-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:600px){.vhtc-habit{padding:16px}.vhtc-habit-stats{grid-template-columns:1fr}.vhtc-habit-week{gap:4px}.vhtc-habit-week small{font-size:10px}.vhtc-habit h3{font-size:20px}}
