/* Make every outer wrapper use the selected colour scheme, not the theme default canvas. */
html:has(body.wto-learning-shell),
body.wto-learning-shell,
body.wto-learning-shell .wp-site-blocks,
body.wto-learning-shell #page,
body.wto-learning-shell .site,
body.wto-learning-shell #content,
body.wto-learning-shell article,
body.wto-learning-shell .entry-content,
body.wto-learning-shell .wp-block-post-content { background: var(--wto-bg) !important; }

body.wto-learning-shell .wp-site-blocks,
body.wto-learning-shell .wp-block-group,
body.wto-learning-shell .wp-block-column,
body.wto-learning-shell #page,
body.wto-learning-shell .site,
body.wto-learning-shell #content,
body.wto-learning-shell article,
body.wto-learning-shell .entry-content,
body.wto-learning-shell .wp-block-post-content { margin: 0 !important; padding: 0 !important; }

.wto-learning-page { display: flex; min-height: 100vh; flex-direction: column; padding: 12px 44px 0 !important; }
.wto-learning-page > main { flex: 1 0 auto; }
.wto-learning-page > main { margin: 24px auto 24px !important; }

.wto-learning-footer { position: static; display: flex; width: min(1180px, calc(100% - 48px)); margin: 24px auto 18px; padding: 0; background: transparent; color: var(--wto-muted); }
.wto-learning-footer, .wto-learning-footer .wto-footer-links, .wto-learning-theme-indicator { align-items: center; gap: 14px; }
.wto-learning-footer .wto-footer-links { display: flex; flex-wrap: wrap; min-width: 0; margin-right: auto; }
.wto-learning-footer a, .wto-learning-theme-indicator { color: var(--wto-muted); }
.wto-learning-footer a:hover { color: var(--wto-accent); }
.wto-learning-footer i[data-current-theme-icon] { box-sizing: border-box; width: 38px; min-width: 38px; height: 12px; border: 0; border-radius: 0; box-shadow: none; background: radial-gradient(circle at 6px 6px, var(--wto-bg) 0 3px, var(--wto-text) 3.5px 5px, transparent 5.5px), radial-gradient(circle at 19px 6px, var(--wto-accent) 0 5px, transparent 5.5px), radial-gradient(circle at 32px 6px, var(--wto-text) 0 5px, transparent 5.5px); }
.wto-theme-dialog .wto-dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.wto-theme-dialog .wto-dialog-title h2 { margin: 0; font-size: 20px; }
.wto-theme-dialog .wto-dialog-title button { border: 0; background: none; color: var(--wto-muted); font-size: 27px; line-height: 1; cursor: pointer; }
.wto-theme-dialog .wto-dialog-title button:hover { color: var(--wto-accent); }
.wto-calculator-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wto-calculator-metrics div { padding: 13px; border: 1px solid color-mix(in srgb, var(--wto-muted) 32%, transparent); border-radius: 9px; background: color-mix(in srgb, var(--wto-bg) 82%, #000); }
.wto-calculator-metrics span, .wto-speed-meter-label span, .wto-speed-meter small, .wto-calculator-note { color: var(--wto-muted); font-size: 11px; }
.wto-calculator-metrics strong { display: block; margin-top: 6px; color: var(--wto-text); font-size: 18px; }
.wto-speed-meter { grid-column: 1 / -1; padding: 8px 2px 0; }
.wto-speed-meter-label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.wto-speed-meter-label b { color: var(--wto-accent); font-size: 12px; }
.wto-speed-track { height: 7px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--wto-muted) 23%, transparent); }
.wto-speed-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--wto-accent); transition: width .3s ease; }
.wto-speed-meter small { display: block; margin-top: 8px; }
.wto-calculator-note { grid-column: 1 / -1; margin: 0; text-align: center; }
.wto-practice-runner .wto-drill-text, .wto-lesson-runner .wto-drill-text { max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }
.wto-lesson-grid button.is-locked { opacity: .42; cursor: not-allowed; filter: grayscale(.35); }
.wto-lesson-grid button.is-locked:hover { transform: none; border-color: color-mix(in srgb, var(--wto-muted) 40%, transparent) !important; background: color-mix(in srgb, var(--wto-bg) 86%, #000) !important; }
.wto-learning-theme-indicator { display: inline-flex; margin-left: auto; font-size: .78rem; }
.wto-learning-theme-indicator i { box-sizing: border-box; display: inline-block; width: 38px; min-width: 38px; height: 12px; background: radial-gradient(circle at 6px 6px, var(--wto-bg) 0 3px, var(--wto-text) 3.5px 5px, transparent 5.5px), radial-gradient(circle at 19px 6px, var(--wto-accent) 0 5px, transparent 5.5px), radial-gradient(circle at 32px 6px, var(--wto-text) 0 5px, transparent 5.5px); }

@media (max-width: 700px) { .wto-learning-page { padding: 12px 19px 0 !important; } .wto-learning-page > main { margin: 30px auto 22px !important; } .wto-learning-footer { position:static!important; width:100%!important; max-width:100%!important; min-width:0; box-sizing:border-box; flex-direction:column; align-items:flex-start!important; gap:12px; } .wto-learning-footer .wto-footer-links { order:3; width:100%; min-width:0; margin-right:0; gap:.45rem .75rem; } .wto-learning-footer a { overflow-wrap:anywhere; } .wto-calculator-metrics { grid-template-columns:1fr; } }
