/* Source: /css/hands.css */
/* ==========================================================
   TypingTutor.Online
   Natural Hand Position + Side Mode Fix v17.0.31
========================================================== */

/* Mode visibility */
html[data-hand-guidance="overlay"] .hands-guidance-card {
    display: none !important;
}

/*
 * Side Hands is a true fourth style. Hide BOTH keyboard-overlay engines:
 * - #handsKeyboardOverlay: Articulated and Capsule
 * - #handsClassicOverlay: Classic Curved
 */
html[data-hand-guidance="separate"] #handsKeyboardOverlay,
html[data-hand-guidance="separate"] #handsClassicOverlay,
html[data-hand-guidance-style="side"] #handsKeyboardOverlay,
html[data-hand-guidance-style="side"] #handsClassicOverlay,
html[data-show-side-hands="true"] #handsKeyboardOverlay,
html[data-show-side-hands="true"] #handsClassicOverlay {
    display: none !important;
}

html[data-hand-guidance="hidden"] .hands-guidance-card,
html[data-hand-guidance="hidden"] #handsKeyboardOverlay,
html[data-hand-guidance="hidden"] #handsClassicOverlay,
html[data-hand-guidance-style="off"] #handsKeyboardOverlay,
html[data-hand-guidance-style="off"] #handsClassicOverlay {
    display: none !important;
}

/*
 * Mobile keeps both guidance designs hidden because the full tutor
 * keyboard is intentionally hidden there.
 */
@media (max-width: 760px) {
    .hands-guidance-card,
    #handsKeyboardOverlay {
        display: none !important;
    }
}

/* ==========================================================
   SEPARATE HAND PANEL
========================================================== */

/* ==========================================================
   TypingTutor.Online
   Clean Functional Hands
========================================================== */

#handsContainer {
    width: 100%;
    max-width: 1040px;
    height: 330px;

    margin: 18px auto 24px;

    overflow: hidden;
    user-select: none;

    background: #ffffff;
    border: 1px solid #edf1f6;
    border-radius: 28px;

    box-shadow:
        0 14px 35px rgba(15, 23, 42, 0.06);
}

#typingHands {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================
   PALMS AND WRISTS
========================================================== */

.hand-palm {
    fill: #ffd4ae;
    stroke: #dca56f;
    stroke-width: 3;
}

.hand-wrist {
    fill: #f6c79d;
    stroke: #dca56f;
    stroke-width: 3;
}

/* ==========================================================
   FINGERS
========================================================== */

.finger {
    transition:
        filter 0.08s ease,
        opacity 0.08s ease;
}

.finger-segment {
    fill: #ffd4ae;
    stroke: #dca56f;
    stroke-width: 2.2;

    transition:
        fill 0.08s ease,
        stroke 0.08s ease;
}

.finger-tip {
    fill: #f8c89e;
    stroke: #dca56f;
    stroke-width: 2.2;

    transition:
        fill 0.08s ease,
        stroke 0.08s ease;
}

/* ==========================================================
   EXPECTED FINGER
========================================================== */

.finger.finger-active {
    filter:
        drop-shadow(0 5px 6px rgba(37, 99, 235, 0.42));
}

.finger.finger-active .finger-segment,
.finger.finger-active .finger-tip {
    fill: #8fc4ff;
    stroke: #2563eb;
    stroke-width: 3;
}

/* ==========================================================
   CORRECT PRESS
========================================================== */

.finger.finger-correct {
    filter:
        drop-shadow(0 5px 6px rgba(22, 163, 74, 0.4));
}

.finger.finger-correct .finger-segment,
.finger.finger-correct .finger-tip {
    fill: #86efac;
    stroke: #16a34a;
    stroke-width: 3;
}

/* ==========================================================
   WRONG PRESS
========================================================== */

.finger.finger-wrong {
    filter:
        drop-shadow(0 5px 6px rgba(239, 68, 68, 0.42));
}

.finger.finger-wrong .finger-segment,
.finger.finger-wrong .finger-tip {
    fill: #fca5a5;
    stroke: #ef4444;
    stroke-width: 3;
}

/* ==========================================================
   PRESS FEEDBACK
========================================================== */

.finger.finger-press {
    animation:
        fingerPress 0.22s ease;
}

@keyframes fingerPress {

    0% {
        opacity: 1;
    }

    45% {
        opacity: 0.55;
    }

    100% {
        opacity: 1;
    }

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 700px) {

    #handsContainer {
        height: 235px;
        margin-top: 12px;
        border-radius: 20px;
    }

}

/* Override the old mobile rule and mode visibility after its source CSS. */
html[data-hand-guidance="overlay"] .hands-guidance-card,
html[data-hand-guidance="hidden"] .hands-guidance-card {
    display: none !important;
}

html[data-hand-guidance="separate"] .hands-guidance-card,
html[data-hand-guidance-style="side"] .hands-guidance-card,
html[data-show-side-hands="true"] .hands-guidance-card {
    display: flex !important;
}

@media (max-width: 760px) {
    html[data-hand-guidance] .hands-guidance-card {
        display: none !important;
    }
}

/* Dark mode for the original separate panel */
html[data-theme="dark"][data-hand-guidance="separate"] #handsContainer {
    background: #111a2b;
    border-color: #26364e;
}

html[data-theme="dark"][data-hand-guidance="separate"] .hand-palm,
html[data-theme="dark"][data-hand-guidance="separate"] .finger-segment {
    fill: #d7b08c;
    stroke: #9a7454;
}

html[data-theme="dark"][data-hand-guidance="separate"] .hand-wrist,
html[data-theme="dark"][data-hand-guidance="separate"] .finger-tip {
    fill: #c99e79;
    stroke: #9a7454;
}

/* ==========================================================
   HANDS OVER KEYBOARD — HAND CLEANUP v12.3
========================================================== */

.keyboard-guidance-card {
    position: relative;
    overflow: hidden;
}

#handsKeyboardOverlay {
    position: absolute;
    z-index: 6;

    /*
     * The overlay begins at the home-row area.
     * Function and number rows stay completely unobstructed.
     */
    top: 48%;
    right: 5%;
    bottom: -2%;
    left: 5%;

    pointer-events: none;
    user-select: none;
}

#handsKeyboardOverlay svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hand-structure-line,
.finger-line,
.finger-glow {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hand-structure-line {
    stroke: rgba(118, 124, 134, .68);
    stroke-width: 5.5;
}

.finger-line {
    stroke: rgba(118, 124, 134, .76);
    stroke-width: 6;

    transition:
        stroke .15s ease,
        stroke-width .15s ease,
        filter .15s ease,
        transform .15s ease;
}

.finger-glow {
    stroke: transparent;
    stroke-width: 20;
    opacity: 0;

    transition:
        stroke .15s ease,
        opacity .15s ease;
}

.finger.finger-active .finger-line {
    stroke: #2f6df6;
    stroke-width: 9;
    filter:
        drop-shadow(
            0 0 4px
            rgba(47, 109, 246, .30)
        );
}

.finger.finger-active .finger-glow {
    stroke: rgba(47, 109, 246, .13);
    opacity: 1;
}

.finger.finger-correct .finger-line {
    stroke: #16a34a;
    stroke-width: 9;
}

.finger.finger-correct .finger-glow {
    stroke: rgba(22, 163, 74, .13);
    opacity: 1;
}

.finger.finger-wrong .finger-line {
    stroke: #dc2626;
    stroke-width: 9;
}

.finger.finger-wrong .finger-glow {
    stroke: rgba(220, 38, 38, .13);
    opacity: 1;
}

/*
 * Animate only the visible finger paths, not the SVG finger group.
 * The left-hand group already has a permanent translate/scale transform.
 * Animating the group would overwrite that transform and make the finger
 * jump away from its correctly aligned position.
 */
.finger.finger-press .finger-line,
.finger.finger-press .finger-glow {
    animation: naturalFingerPress .12s ease;
    transform-box: fill-box;
    transform-origin: center bottom;
}

@keyframes naturalFingerPress {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }

    100% {
        transform: translateY(0);
    }
}

#keyboardContainer {
    position: relative;
    z-index: 2;
}

#targetRowGuide {
    position: relative;
    z-index: 8;
}

html[data-hand-guidance="separate"] .hands-guidance-card {
    display: block !important;
}

html[data-hand-guidance="overlay"] .hands-guidance-card,
html[data-hand-guidance="hidden"] .hands-guidance-card {
    display: none !important;
}

html[data-hand-guidance="separate"] #handsKeyboardOverlay,
html[data-hand-guidance="hidden"] #handsKeyboardOverlay,
html[data-show-keyboard="false"] #handsKeyboardOverlay {
    display: none !important;
}

html[data-hand-guidance="overlay"] #handsKeyboardOverlay {
    display: block;
}

html[data-theme="dark"] .hand-structure-line,
html[data-theme="dark"] .finger-line {
    stroke: rgba(174, 185, 202, .72);
}

html[data-theme="dark"]
.finger.finger-active .finger-line {
    stroke: #62a0ff;
}

html[data-theme="dark"]
.finger.finger-active .finger-glow {
    stroke: rgba(98, 160, 255, .16);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .hand-structure-line,
    html[data-theme="system"] .finger-line {
        stroke: rgba(174, 185, 202, .72);
    }
}

@media (max-width: 760px) {
    #handsKeyboardOverlay {
        display: none !important;
    }
}

/* ==========================================================
   NUMBER AND SPECIAL-KEY FINGER REACH v13.4
========================================================== */

.finger-motion {
    transform-box: fill-box;
    transform-origin: center bottom;
    transition:
        transform .09s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

/* The press animation stays inside the moving finger wrapper. */
.finger.finger-press .finger-motion {
    filter: brightness(1.02);
}


/* Extra easing for long reaches to the number row. */
.finger-motion {
    transition-duration: .09s;
}


/* ==========================================================
   ARTICULATED LEFT INDEX — v13.5
========================================================== */

.articulated-finger .finger-bone {
    transition: d .09s ease;
}

.articulated-finger .finger-joint,
.articulated-finger .finger-tip-node {
    fill: rgba(255, 255, 255, .92);
    stroke: rgba(118, 124, 134, .82);
    stroke-width: 3.2;
    transition:
        cx .09s ease,
        cy .09s ease,
        fill .15s ease,
        stroke .15s ease;
}

.articulated-finger .finger-tip-node {
    fill: rgba(255, 255, 255, .98);
}

.articulated-finger.finger-active .finger-joint,
.articulated-finger.finger-active .finger-tip-node {
    fill: rgba(47, 109, 246, .22);
    stroke: #2f6df6;
}

.articulated-finger.finger-correct .finger-joint,
.articulated-finger.finger-correct .finger-tip-node {
    fill: rgba(22, 163, 74, .22);
    stroke: #16a34a;
}

.articulated-finger.finger-wrong .finger-joint,
.articulated-finger.finger-wrong .finger-tip-node {
    fill: rgba(220, 38, 38, .20);
    stroke: #dc2626;
}

html[data-theme="dark"]
.articulated-finger .finger-joint,
html[data-theme="dark"]
.articulated-finger .finger-tip-node {
    fill: rgba(17, 26, 43, .96);
    stroke: rgba(174, 185, 202, .80);
}

/* ==========================================================
   ARTICULATED ALPHABET HANDS v13.6
========================================================== */

.articulated-finger .finger-bone,
.articulated-finger .articulated-glow,
.articulated-finger .finger-joint,
.articulated-finger .finger-tip-node {
    transition:
        d .09s cubic-bezier(.2, .8, .2, 1),
        cx .09s cubic-bezier(.2, .8, .2, 1),
        cy .09s cubic-bezier(.2, .8, .2, 1),
        stroke .15s ease,
        fill .15s ease,
        opacity .15s ease;
}


/* Articulated thumbs */
.articulated-finger.left-thumb-finger .finger-joint,
.articulated-finger.right-thumb-finger .finger-joint {
    r: 4.3;
}

.articulated-finger.left-thumb-finger .finger-tip-node,
.articulated-finger.right-thumb-finger .finger-tip-node {
    r: 6.2;
}

.articulated-finger.left-thumb-finger .finger-bone,
.articulated-finger.right-thumb-finger .finger-bone {
    stroke-width: 6.5;
}


/* v14.0: two-joint articulated thumbs */
.articulated-thumb .finger-middle,
.articulated-thumb .finger-joint:nth-of-type(2) {
    display: none;
}


/* ==========================================================
   TRANSPARENT SKIN-TONE FINGERS v14.1
========================================================== */

:root {
    --hand-skin-fill: rgba(232, 190, 145, .34);
    --hand-skin-fill-active: rgba(232, 190, 145, .44);
    --hand-skin-fill-correct: rgba(190, 225, 198, .40);
    --hand-skin-fill-wrong: rgba(244, 193, 193, .38);

    --hand-rest-stroke: rgba(118, 124, 134, .78);
    --hand-active-stroke: rgba(47, 109, 246, .94);
    --hand-correct-stroke: rgba(22, 163, 74, .94);
    --hand-wrong-stroke: rgba(220, 38, 38, .94);
}

/*
 * The articulated finger bones stay readable but no longer create a
 * heavy solid-blue shape over the active key. The skin-toned joints are
 * translucent, so key labels remain visible underneath.
 */
.articulated-finger .finger-bone {
    stroke: var(--hand-rest-stroke);
    stroke-width: 5.5;
    filter: none;
}

.articulated-finger .finger-joint,
.articulated-finger .finger-tip-node {
    fill: var(--hand-skin-fill);
    stroke: var(--hand-rest-stroke);
    stroke-width: 2.8;
}

.articulated-finger .finger-tip-node {
    fill: rgba(232, 190, 145, .42);
}

/* Active / expected finger */
.articulated-finger.finger-active .finger-bone {
    stroke: var(--hand-active-stroke);
    stroke-width: 7;
    filter:
        drop-shadow(
            0 0 4px
            rgba(47, 109, 246, .20)
        );
}

.articulated-finger.finger-active .finger-joint,
.articulated-finger.finger-active .finger-tip-node {
    fill: var(--hand-skin-fill-active);
    stroke: var(--hand-active-stroke);
}

.articulated-finger.finger-active .articulated-glow {
    stroke: rgba(47, 109, 246, .11);
    opacity: .56;
}

/* Correct feedback */
.articulated-finger.finger-correct .finger-bone {
    stroke: var(--hand-correct-stroke);
    stroke-width: 7;
}

.articulated-finger.finger-correct .finger-joint,
.articulated-finger.finger-correct .finger-tip-node {
    fill: var(--hand-skin-fill-correct);
    stroke: var(--hand-correct-stroke);
}

.articulated-finger.finger-correct .articulated-glow {
    stroke: rgba(22, 163, 74, .10);
    opacity: .68;
}

/* Wrong feedback */
.articulated-finger.finger-wrong .finger-bone {
    stroke: var(--hand-wrong-stroke);
    stroke-width: 7;
}

.articulated-finger.finger-wrong .finger-joint,
.articulated-finger.finger-wrong .finger-tip-node {
    fill: var(--hand-skin-fill-wrong);
    stroke: var(--hand-wrong-stroke);
}

.articulated-finger.finger-wrong .articulated-glow {
    stroke: rgba(220, 38, 38, .10);
    opacity: .68;
}

/*
 * Keep the target key label above the key background. This does not place
 * the label above the finger SVG, but the transparent finger styling means
 * the character remains clearly readable through the guidance layer.
 */
#keyboardContainer .key,
#keyboardContainer [data-code],
#keyboardContainer [data-key] {
    isolation: isolate;
}

/* Dark mode: warmer translucent skin with clear outlines. */
html[data-theme="dark"] {
    --hand-skin-fill: rgba(198, 148, 108, .30);
    --hand-skin-fill-active: rgba(210, 160, 116, .40);
    --hand-skin-fill-correct: rgba(117, 179, 132, .34);
    --hand-skin-fill-wrong: rgba(204, 113, 113, .34);
    --hand-rest-stroke: rgba(174, 185, 202, .78);
    --hand-active-stroke: rgba(98, 160, 255, .96);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        --hand-skin-fill: rgba(198, 148, 108, .30);
        --hand-skin-fill-active: rgba(210, 160, 116, .40);
        --hand-skin-fill-correct: rgba(117, 179, 132, .34);
        --hand-skin-fill-wrong: rgba(204, 113, 113, .34);
        --hand-rest-stroke: rgba(174, 185, 202, .78);
        --hand-active-stroke: rgba(98, 160, 255, .96);
    }
}


/* ==========================================================
   READABLE TRANSPARENT SKIN FINGERS v14.2
========================================================== */

:root {
    --finger-skin-rest: rgba(224, 180, 142, .20);
    --finger-skin-active: rgba(224, 180, 142, .34);
    --finger-skin-correct: rgba(196, 224, 201, .32);
    --finger-skin-wrong: rgba(239, 197, 197, .30);

    --finger-outline-rest: rgba(112, 120, 132, .72);
    --finger-outline-active: rgba(37, 99, 235, .92);
    --finger-outline-correct: rgba(22, 163, 74, .92);
    --finger-outline-wrong: rgba(220, 38, 38, .92);
}

/*
 * The wide under-stroke becomes the translucent finger body.
 * The narrow upper stroke becomes the clean finger outline.
 * This keeps key labels visible through the finger.
 */
.articulated-finger .articulated-glow {
    stroke: var(--finger-skin-rest);
    stroke-width: 17;
    opacity: 1;
    filter: none;
}

.articulated-finger .finger-bone {
    stroke: var(--finger-outline-rest);
    stroke-width: 3.5;
    filter: none;
}

.articulated-finger .finger-joint,
.articulated-finger .finger-tip-node {
    fill: rgba(224, 180, 142, .28);
    stroke: var(--finger-outline-rest);
    stroke-width: 2.2;
}

/* Expected finger */
.articulated-finger.finger-active .articulated-glow {
    stroke: var(--finger-skin-active);
    stroke-width: 19;
    opacity: 1;
    filter: none;
}

.articulated-finger.finger-active .finger-bone {
    stroke: var(--finger-outline-active);
    stroke-width: 4;
    filter: drop-shadow(0 0 3px rgba(37, 99, 235, .20));
}

.articulated-finger.finger-active .finger-joint,
.articulated-finger.finger-active .finger-tip-node {
    fill: rgba(224, 180, 142, .42);
    stroke: var(--finger-outline-active);
}

/* Correct feedback */
.articulated-finger.finger-correct .articulated-glow {
    stroke: var(--finger-skin-correct);
    stroke-width: 19;
    opacity: 1;
}

.articulated-finger.finger-correct .finger-bone {
    stroke: var(--finger-outline-correct);
    stroke-width: 4;
}

.articulated-finger.finger-correct .finger-joint,
.articulated-finger.finger-correct .finger-tip-node {
    fill: var(--finger-skin-correct);
    stroke: var(--finger-outline-correct);
}

/* Wrong feedback */
.articulated-finger.finger-wrong .articulated-glow {
    stroke: var(--finger-skin-wrong);
    stroke-width: 19;
    opacity: 1;
}

.articulated-finger.finger-wrong .finger-bone {
    stroke: var(--finger-outline-wrong);
    stroke-width: 4;
}

.articulated-finger.finger-wrong .finger-joint,
.articulated-finger.finger-wrong .finger-tip-node {
    fill: var(--finger-skin-wrong);
    stroke: var(--finger-outline-wrong);
}

/*
 * Readable target key: use a translucent blue surface instead of a
 * solid blue block. The character remains dark and clearly visible.
 */
#keyboardContainer .key-next {
    background: rgba(47, 103, 246, .18) !important;
    color: #172033 !important;
    border-color: rgba(47, 103, 246, .78) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .55),
        0 0 0 4px rgba(47, 103, 246, .10) !important;
}

#keyboardContainer .key-next .key-primary,
#keyboardContainer .key-next .key-secondary {
    color: #172033 !important;
    position: relative;
    z-index: 2;
}

#keyboardContainer .key-next .home-bump {
    background: rgba(23, 32, 51, .72) !important;
}

/* Keep feedback colors readable without hiding characters. */
#keyboardContainer .key-correct {
    background: rgba(34, 197, 94, .18) !important;
    border-color: rgba(22, 163, 74, .78) !important;
}

#keyboardContainer .key-wrong {
    background: rgba(239, 68, 68, .18) !important;
    border-color: rgba(220, 38, 38, .78) !important;
}

#keyboardContainer .key-correct .key-primary,
#keyboardContainer .key-correct .key-secondary,
#keyboardContainer .key-wrong .key-primary,
#keyboardContainer .key-wrong .key-secondary {
    color: #172033 !important;
}

html[data-theme="dark"] {
    --finger-skin-rest: rgba(197, 145, 106, .18);
    --finger-skin-active: rgba(205, 153, 111, .32);
    --finger-skin-correct: rgba(84, 161, 104, .26);
    --finger-skin-wrong: rgba(184, 89, 89, .26);
    --finger-outline-rest: rgba(181, 191, 207, .72);
}

html[data-theme="dark"] #keyboardContainer .key-next {
    background: rgba(79, 139, 255, .22) !important;
    color: #f8fafc !important;
    border-color: rgba(98, 160, 255, .82) !important;
}

html[data-theme="dark"] #keyboardContainer .key-next .key-primary,
html[data-theme="dark"] #keyboardContainer .key-next .key-secondary,
html[data-theme="dark"] #keyboardContainer .key-correct .key-primary,
html[data-theme="dark"] #keyboardContainer .key-correct .key-secondary,
html[data-theme="dark"] #keyboardContainer .key-wrong .key-primary,
html[data-theme="dark"] #keyboardContainer .key-wrong .key-secondary {
    color: #f8fafc !important;
}


/* ==========================================================
   CLEAR KEY FINGERTIPS v14.3
========================================================== */

/*
 * The skin body is intentionally very light. The final finger segment
 * stops before the key centre, while a larger hollow fingertip ring
 * surrounds the target character. This keeps letters such as Z visible.
 */
:root {
    --finger-skin-rest: rgba(224, 180, 142, .075);
    --finger-skin-active: rgba(224, 180, 142, .115);
    --finger-skin-correct: rgba(196, 224, 201, .12);
    --finger-skin-wrong: rgba(239, 197, 197, .11);
}

.articulated-finger .articulated-glow {
    stroke-width: 13px;
    opacity: 1;
}

.articulated-finger.finger-active .articulated-glow,
.articulated-finger.finger-correct .articulated-glow,
.articulated-finger.finger-wrong .articulated-glow {
    stroke-width: 14px;
}

/* Larger hollow fingertip / nail ring leaves the key centre readable. */
.articulated-finger .finger-tip-node {
    fill: rgba(255, 255, 255, .08) !important;
    stroke-width: 2.4px;
}

.articulated-finger.finger-active .finger-tip-node {
    fill: rgba(224, 180, 142, .07) !important;
    stroke-width: 3px;
}

.articulated-finger.finger-correct .finger-tip-node {
    fill: rgba(196, 224, 201, .07) !important;
    stroke-width: 3px;
}

.articulated-finger.finger-wrong .finger-tip-node {
    fill: rgba(239, 197, 197, .07) !important;
    stroke-width: 3px;
}

/* Joint circles stay small and subtle; only the fingertip is enlarged. */
.articulated-finger .finger-joint {
    fill: rgba(224, 180, 142, .16) !important;
}

html[data-theme="dark"] {
    --finger-skin-rest: rgba(205, 153, 111, .065);
    --finger-skin-active: rgba(205, 153, 111, .105);
    --finger-skin-correct: rgba(84, 161, 104, .10);
    --finger-skin-wrong: rgba(184, 89, 89, .10);
}

html[data-theme="dark"] .articulated-finger .finger-tip-node {
    fill: rgba(15, 23, 42, .08) !important;
}


/* ==========================================================
   FINAL READABLE FINGER MOTION v14.4
========================================================== */

/*
 * Extra transparency keeps every key character readable.
 * The larger hollow nail ring surrounds the character instead of
 * covering it, while the finger body remains lightly visible.
 */
:root {
    --finger-skin-rest: rgba(224, 180, 142, .040);
    --finger-skin-active: rgba(224, 180, 142, .070);
    --finger-skin-correct: rgba(196, 224, 201, .070);
    --finger-skin-wrong: rgba(239, 197, 197, .065);
}

.articulated-finger .articulated-glow {
    stroke-width: 11px;
}

.articulated-finger.finger-active .articulated-glow,
.articulated-finger.finger-correct .articulated-glow,
.articulated-finger.finger-wrong .articulated-glow {
    stroke-width: 12px;
}

/* Larger, clearer and almost transparent fingertip/nail circle. */
.articulated-finger .finger-tip-node {
    fill: rgba(255, 255, 255, .018) !important;
    stroke-width: 2.2px;
}

.articulated-finger.finger-active .finger-tip-node {
    fill: rgba(224, 180, 142, .025) !important;
    stroke-width: 2.7px;
}

.articulated-finger.finger-correct .finger-tip-node {
    fill: rgba(196, 224, 201, .025) !important;
    stroke-width: 2.7px;
}

.articulated-finger.finger-wrong .finger-tip-node {
    fill: rgba(239, 197, 197, .025) !important;
    stroke-width: 2.7px;
}

/* Keep bend joints subtle so they do not compete with keyboard labels. */
.articulated-finger .finger-joint {
    fill: rgba(224, 180, 142, .095) !important;
}

html[data-theme="dark"] {
    --finger-skin-rest: rgba(205, 153, 111, .035);
    --finger-skin-active: rgba(205, 153, 111, .060);
    --finger-skin-correct: rgba(84, 161, 104, .055);
    --finger-skin-wrong: rgba(184, 89, 89, .055);
}

html[data-theme="dark"] .articulated-finger .finger-tip-node {
    fill: rgba(15, 23, 42, .018) !important;
}


/* ==========================================================
   THREE HAND GUIDANCE MODES v15.0
========================================================== */

/* Shared overlay positioning. */
#handsClassicOverlay {
    position: absolute;
    z-index: 6;
    top: 48%;
    right: 5%;
    bottom: -2%;
    left: 5%;
    pointer-events: none;
    user-select: none;
}

#handsClassicOverlay svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Articulated is the recommended/default engine. */
html[data-hand-guidance-style="articulated"] #handsKeyboardOverlay,
html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay {
    display: block !important;
}

html[data-hand-guidance-style="articulated"] #handsClassicOverlay,
html[data-hand-guidance-style="capsule"] #handsClassicOverlay,
html[data-hand-guidance-style="side"] #handsClassicOverlay,
html[data-hand-guidance-style="off"] #handsClassicOverlay {
    display: none !important;
}

/* Classic curved mode uses the final pre-articulated hands. */
html[data-hand-guidance-style="classic"] #handsClassicOverlay {
    display: block !important;
}

html[data-hand-guidance-style="classic"] #handsKeyboardOverlay,
html[data-hand-guidance-style="side"] #handsKeyboardOverlay,
html[data-hand-guidance-style="off"] #handsKeyboardOverlay {
    display: none !important;
}

/* The old separate hand card is not one of the final three modes. */
.hands-guidance-card {
    display: none !important;
}

/* Capsule / Ribbon: same accurate target engine, premium rounded body. */
html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .articulated-glow {
    stroke: rgba(224, 180, 142, .34) !important;
    stroke-width: 20px !important;
    opacity: 1 !important;
    filter: drop-shadow(0 2px 2px rgba(84, 62, 44, .12));
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .finger-bone {
    stroke: rgba(123, 101, 84, .72) !important;
    stroke-width: 2.6px !important;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .finger-joint {
    fill: rgba(224, 180, 142, .42) !important;
    stroke: rgba(123, 101, 84, .62) !important;
    r: 4.5;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .finger-tip-node {
    fill: rgba(255, 246, 238, .28) !important;
    stroke: rgba(123, 101, 84, .72) !important;
    stroke-width: 2px !important;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .finger-active .articulated-glow {
    stroke: rgba(224, 180, 142, .42) !important;
    filter:
        drop-shadow(0 0 5px rgba(37, 99, 235, .28));
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .finger-active .finger-bone,
html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .finger-active .finger-tip-node {
    stroke: rgba(37, 99, 235, .92) !important;
}

html[data-theme="dark"][data-hand-guidance-style="capsule"] #handsKeyboardOverlay .articulated-glow {
    stroke: rgba(194, 143, 104, .30) !important;
}

html[data-theme="dark"][data-hand-guidance-style="capsule"] #handsKeyboardOverlay .finger-bone {
    stroke: rgba(210, 183, 160, .72) !important;
}

/* Hide all hand modes when the on-screen keyboard is hidden. */
html[data-show-keyboard="false"] #handsKeyboardOverlay,
html[data-show-keyboard="false"] #handsClassicOverlay {
    display: none !important;
}

/* Mobile keeps the tutor keyboard and all hand modes hidden. */
@media (max-width: 760px) {
    #handsKeyboardOverlay,
    #handsClassicOverlay {
        display: none !important;
    }
}


/* ==========================================================
   CAPSULE / RIBBON VISUAL POLISH v15.1
========================================================== */

/* Capsule-only SVG layers remain absent from the other visual modes. */
.capsule-ribbon-segment,
.capsule-ribbon-base,
.capsule-ribbon-nail {
    display: none;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay {
    --capsule-skin: rgba(238, 225, 209, .18);
    --capsule-skin-active: rgba(238, 225, 209, .14);
    --capsule-skin-correct: rgba(214, 235, 220, .22);
    --capsule-skin-wrong: rgba(241, 214, 214, .22);
    --capsule-edge: rgba(181, 154, 129, .42);
    --capsule-edge-active: rgba(37, 99, 235, .38);
    --capsule-edge-correct: rgba(22, 163, 74, .82);
    --capsule-edge-wrong: rgba(220, 38, 38, .82);
    --capsule-highlight: rgba(255, 255, 255, .12);
    --capsule-nail: rgba(255, 248, 241, .10);
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-segment,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-base,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-nail {
    display: block;
}

/* Hide the visible skeleton but keep it in the DOM for animation logic. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-glow,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-bone {
    opacity: 0 !important;
}

/* Joint nodes become faint natural crease rings rather than bead joints. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-joint {
    display: block;
    fill: transparent !important;
    stroke: rgba(143, 103, 75, .22) !important;
    stroke-width: 1.05px !important;
    r: 5.0;
    opacity: .52;
}

/* The old large fingertip ring is replaced by a skin cap + nail. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-tip-node {
    display: none !important;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-nail {
    display: none !important;
}

.capsule-ribbon-segment {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    transition:
        stroke .16s ease,
        opacity .16s ease,
        filter .16s ease;
}

/* Tapered overlapping sections create the rounded real-finger silhouette. */
.capsule-ribbon-outline.capsule-lower { stroke-width: 30px; }
.capsule-ribbon-outline.capsule-middle { stroke-width: 25px; }
.capsule-ribbon-outline.capsule-upper { stroke-width: 19.5px; }

.capsule-ribbon-body.capsule-lower { stroke-width: 25.5px; }
.capsule-ribbon-body.capsule-middle { stroke-width: 20px; }
.capsule-ribbon-body.capsule-upper { stroke-width: 15.5px; }

.capsule-ribbon-highlight.capsule-lower { stroke-width: 6.8px; }
.capsule-ribbon-highlight.capsule-middle { stroke-width: 5.1px; }
.capsule-ribbon-highlight.capsule-upper { stroke-width: 4.2px; }

.capsule-ribbon-outline {
    stroke: var(--capsule-edge);
    filter: drop-shadow(0 1px 1px rgba(73, 50, 34, .06));
}

.capsule-ribbon-body {
    stroke: var(--capsule-skin);
}

.capsule-ribbon-highlight {
    stroke: var(--capsule-highlight);
    opacity: .56;
}

.capsule-ribbon-base {
    fill: var(--capsule-skin);
    stroke: var(--capsule-edge);
    stroke-width: 1.7px;
    opacity: .68;
}

.capsule-ribbon-nail {
    fill: var(--capsule-nail);
    stroke: rgba(135, 96, 68, .46);
    stroke-width: 1.25px;
    opacity: .95;
    pointer-events: none;
}

/* Active finger: skin remains natural; only the edge becomes instructional. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-active .capsule-ribbon-outline,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-active .capsule-ribbon-base,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-active .finger-tip-node {
    stroke: var(--capsule-edge-active) !important;
    filter: drop-shadow(0 0 3px rgba(37, 99, 235, .14));
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-active .capsule-ribbon-body,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-active .capsule-ribbon-base,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-active .finger-tip-node {
    fill: var(--capsule-skin-active) !important;
    stroke-color: var(--capsule-edge-active);
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-active .capsule-ribbon-body {
    stroke: var(--capsule-skin-active);
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-active .capsule-ribbon-nail {
    stroke: rgba(37, 99, 235, .72);
}

/* Correct and wrong feedback preserve the realistic skin body. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-correct .capsule-ribbon-outline,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-correct .capsule-ribbon-base,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-correct .finger-tip-node {
    stroke: var(--capsule-edge-correct) !important;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-correct .capsule-ribbon-body {
    stroke: var(--capsule-skin-correct);
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-wrong .capsule-ribbon-outline,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-wrong .capsule-ribbon-base,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-wrong .finger-tip-node {
    stroke: var(--capsule-edge-wrong) !important;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-wrong .capsule-ribbon-body {
    stroke: var(--capsule-skin-wrong);
}

/* Press only the rendered capsule layers; permanent hand transforms remain safe. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-press .capsule-ribbon-segment,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-press .capsule-ribbon-base,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-press .finger-tip-node,
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .finger-press .capsule-ribbon-nail {
    animation: capsuleFingerPress .12s ease;
    transform-box: fill-box;
    transform-origin: center bottom;
}

@keyframes capsuleFingerPress {
    0% { transform: translateY(0); }
    48% { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

/* Thumbs are wider and softer than the other fingers. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-outline.capsule-lower {
    stroke-width: 43px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-outline.capsule-upper {
    stroke-width: 36px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-body.capsule-lower {
    stroke-width: 36px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-body.capsule-upper {
    stroke-width: 29px;
}

/* Dark mode keeps warm skin while increasing edge contrast. */
html[data-theme="dark"][data-hand-guidance-style="capsule"]
#handsKeyboardOverlay {
    --capsule-skin: rgba(204, 171, 141, .16);
    --capsule-skin-active: rgba(214, 183, 153, .14);
    --capsule-skin-correct: rgba(97, 171, 116, .20);
    --capsule-skin-wrong: rgba(190, 124, 124, .20);
    --capsule-edge: rgba(221, 196, 173, .42);
    --capsule-highlight: rgba(255, 241, 231, .08);
    --capsule-nail: rgba(255, 238, 224, .06);
}

html[data-theme="dark"][data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-nail {
    stroke: rgba(229, 199, 174, .46);
}


/* ==========================================================
   BALANCED SPACEBAR THUMBS v15.7
========================================================== */

/*
 * The thumb roots are intentionally broader than normal finger roots.
 * This removes the pinched connection while keeping the thumbs visually
 * independent from the index fingers.
 */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-thumb-base {
    stroke-width: 1.5px;
    opacity: .72;
}

/* Keep the thumb highlight proportionate to the wider silhouette. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-highlight.capsule-lower {
    stroke-width: 8.4px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-highlight.capsule-upper {
    stroke-width: 6.8px;
}


/* ==========================================================
   DOWNWARD SPACEBAR THUMBS v15.8
========================================================== */

/*
 * Larger thumb roots remain mostly below the visible overlay.
 * This creates a broad wrist-origin silhouette instead of a narrow
 * connection to the index fingers.
 */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-thumb-base {
    opacity: .68;
    stroke-width: 1.35px;
}

/* Keep the larger thumbs softer than the instructional fingers. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-outline {
    filter: drop-shadow(0 1px 1px rgba(73, 50, 34, .045));
}


/* ==========================================================
   FINAL THREE MODES HOTFIX v16.1
========================================================== */

#handsClassicOverlay .classic-finger-motion {
    transform-origin: center bottom;
    transition:
        transform .085s cubic-bezier(.22, .61, .36, 1),
        opacity .08s ease;
    will-change: transform;
}

html[data-hand-guidance-style="classic"] #handsClassicOverlay .finger-line {
    stroke: rgba(112, 118, 128, .80);
    stroke-width: 6.2;
}

html[data-hand-guidance-style="classic"] #handsClassicOverlay .finger-glow {
    stroke-width: 22;
}

html[data-hand-guidance-style="classic"] #handsClassicOverlay .finger.finger-active .finger-glow {
    stroke: rgba(47, 109, 246, .16);
}

html[data-hand-guidance-style="articulated"] #handsKeyboardOverlay .articulated-glow {
    filter: drop-shadow(0 1px 2px rgba(37, 99, 235, .07));
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .capsule-ribbon-body {
    opacity: .90;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .capsule-ribbon-outline {
    opacity: .78;
}


/* ==========================================================
   CENTERED KEYBOARD + OPTIONAL SIDE HANDS v17.0.4
========================================================== */

.typing-controls-grid {
    display: grid !important;
    width: 100%;
    max-width: 1480px;
    margin-right: auto;
    margin-left: auto;
    gap: 18px;
    align-items: stretch;
}

/* No side panel: remove the unused column and center the keyboard. */
html:not([data-show-side-hands="true"]) .typing-controls-grid,
html[data-show-side-hands="false"] .typing-controls-grid {
    grid-template-columns: minmax(0, 1120px) !important;
    justify-content: center !important;
}

html:not([data-show-side-hands="true"]) .keyboard-guidance-card,
html[data-show-side-hands="false"] .keyboard-guidance-card {
    width: 100%;
    max-width: 1120px;
    justify-self: center;
}

/* Side panel enabled on a wide desktop. */
html[data-show-side-hands="true"] .typing-controls-grid {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 350px) !important;
    justify-content: center !important;
}

html[data-show-side-hands="true"] .keyboard-guidance-card {
    width: 100%;
    max-width: none;
    min-width: 0;
}

html[data-show-side-hands="true"] .hands-guidance-card {
    display: flex !important;
    min-width: 0;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;

    background: #ffffff;
    border: 1px solid #e5ebf3;
    border-radius: 24px;

    box-shadow:
        0 14px 35px
        rgba(15, 23, 42, .06);
}

html[data-show-side-hands="false"] .hands-guidance-card,
html:not([data-show-side-hands="true"]) .hands-guidance-card,
html[data-show-keyboard="false"] .hands-guidance-card {
    display: none !important;
}

html[data-show-side-hands="true"] #handsContainer {
    width: 100%;
    max-width: none;
    min-height: 340px;
    height: auto;
    margin: 0;
    flex: 1 1 auto;
    overflow: hidden;

    background: transparent;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
}

html[data-show-side-hands="true"] .hands-guidance-card > p {
    margin: 10px 0 0;
    color: #334155;
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
}

html[data-theme="dark"][data-show-side-hands="true"] .hands-guidance-card {
    background: #111a2b;
    border-color: #2a3a53;
    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, .20);
}

html[data-theme="dark"][data-show-side-hands="true"] .hands-guidance-card > p {
    color: #cbd5e1;
}

html[data-theme="dark"][data-show-side-hands="true"] #handsContainer {
    background: transparent;
    border: 0;
}

html[data-theme="dark"][data-show-side-hands="true"] .hand-palm,
html[data-theme="dark"][data-show-side-hands="true"] .finger-segment {
    fill: #d7b08c;
    stroke: #9a7454;
}

html[data-theme="dark"][data-show-side-hands="true"] .hand-wrist,
html[data-theme="dark"][data-show-side-hands="true"] .finger-tip {
    fill: #c99e79;
    stroke: #9a7454;
}

/* Never squeeze the calibrated keyboard on narrower screens. */
@media (max-width: 1240px) {
    html[data-show-side-hands="true"] .typing-controls-grid {
        grid-template-columns: minmax(0, 1120px) !important;
    }

    html[data-show-side-hands="true"] .keyboard-guidance-card,
    html[data-show-side-hands="true"] .hands-guidance-card {
        width: 100%;
        max-width: 1120px;
        justify-self: center;
    }

    html[data-show-side-hands="true"] #handsContainer {
        min-height: 300px;
    }
}

@media (max-width: 760px) {
    html[data-show-side-hands] .hands-guidance-card {
        display: none !important;
    }

    .typing-controls-grid {
        display: block !important;
    }
}


/* ==========================================================
   SIDE HANDS HIGHLIGHT FIX v17.0.5
========================================================== */

/*
 * These final scoped rules deliberately use higher specificity than the
 * resting light/dark hand colors. This ensures the separate hand panel
 * visibly changes for expected, correct and wrong fingers in every theme.
 */

#handsContainer
.side-hand-finger.finger-active {
    opacity: 1 !important;
    filter:
        drop-shadow(
            0 5px 8px
            rgba(37, 99, 235, .42)
        ) !important;
}

#handsContainer
.side-hand-finger.finger-active
.finger-segment,
#handsContainer
.side-hand-finger.finger-active
.finger-tip {
    fill: rgba(108, 174, 255, .92) !important;
    stroke: #2563eb !important;
    stroke-width: 3.2px !important;
}

#handsContainer
.side-hand-finger.finger-correct {
    opacity: 1 !important;
    filter:
        drop-shadow(
            0 5px 8px
            rgba(22, 163, 74, .40)
        ) !important;
}

#handsContainer
.side-hand-finger.finger-correct
.finger-segment,
#handsContainer
.side-hand-finger.finger-correct
.finger-tip {
    fill: rgba(134, 239, 172, .94) !important;
    stroke: #16a34a !important;
    stroke-width: 3.2px !important;
}

#handsContainer
.side-hand-finger.finger-wrong {
    opacity: 1 !important;
    filter:
        drop-shadow(
            0 5px 8px
            rgba(239, 68, 68, .42)
        ) !important;
}

#handsContainer
.side-hand-finger.finger-wrong
.finger-segment,
#handsContainer
.side-hand-finger.finger-wrong
.finger-tip {
    fill: rgba(252, 165, 165, .94) !important;
    stroke: #ef4444 !important;
    stroke-width: 3.2px !important;
}

/* Preserve readable highlights in Dark and System-dark modes. */
html[data-theme="dark"]
#handsContainer
.side-hand-finger.finger-active
.finger-segment,
html[data-theme="dark"]
#handsContainer
.side-hand-finger.finger-active
.finger-tip {
    fill: rgba(98, 160, 255, .86) !important;
    stroke: #8bb8ff !important;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"]
    #handsContainer
    .side-hand-finger.finger-active
    .finger-segment,
    html[data-theme="system"]
    #handsContainer
    .side-hand-finger.finger-active
    .finger-tip {
        fill: rgba(98, 160, 255, .86) !important;
        stroke: #8bb8ff !important;
    }
}


/* ==========================================================
   CAPSULE FRONT-LAYER FIX v17.0.8
========================================================== */

/*
 * Capsule fingers must visually sit above keyboard key surfaces.
 *
 * The keyboard container previously created its own stacking context.
 * That made the translucent capsule fingers appear behind the key faces,
 * especially on the highlighted target key.
 *
 * In Capsule mode:
 * 1. key backgrounds remain below the hand overlay;
 * 2. the capsule fingers render above the key surfaces and borders;
 * 3. key characters and home bumps remain above the translucent fingers.
 */
html[data-hand-guidance-style="capsule"]
.keyboard-guidance-card {
    position: relative;
    isolation: isolate;
}

html[data-hand-guidance-style="capsule"]
#keyboardContainer {
    position: relative;
    z-index: auto !important;
}

html[data-hand-guidance-style="capsule"]
#keyboardContainer .key {
    position: relative;
    z-index: auto !important;
}

/* Finger artwork is above the physical key faces. */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay {
    z-index: 20 !important;
}

/*
 * Key text remains readable above the translucent hand artwork.
 * The parent key itself does not create a stacking context, so these
 * positive-z-index labels can sit above the overlay.
 */
html[data-hand-guidance-style="capsule"]
#keyboardContainer .key-primary {
    position: relative;
    z-index: 24 !important;
}

/* Secondary characters and home-row bumps must preserve their original key placement. */
html[data-hand-guidance-style="capsule"]
#keyboardContainer .key-secondary {
    position: absolute;
    z-index: 24 !important;
}

html[data-hand-guidance-style="capsule"]
#keyboardContainer .home-bump {
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    z-index: 24 !important;
}

/* Keep the target-row guide above every keyboard hand mode. */
html[data-hand-guidance-style="capsule"]
#targetRowGuide {
    z-index: 30 !important;
}

/*
 * A slightly clearer warm edge gives the transparent capsule fingers a
 * visible front surface without making the skin body heavy or opaque.
 */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-outline {
    opacity: .90 !important;
    filter:
        drop-shadow(
            0 1px 1px
            rgba(84, 62, 44, .10)
        );
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-body {
    opacity: .92 !important;
}

/*
 * The active finger stays translucent, but its edge is sufficiently visible
 * over the blue expected-key surface.
 */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay {
    --capsule-edge-active:
        rgba(77, 137, 255, .55);
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay
.finger-active
.capsule-ribbon-outline {
    filter:
        drop-shadow(
            0 0 4px
            rgba(77, 137, 255, .20)
        ) !important;
}

/*
 * Keep the expected key lighter in Capsule mode so the moving finger remains
 * the primary teaching cue while its character stays fully readable.
 */
html[data-hand-guidance-style="capsule"]
#keyboardContainer .key-next {
    background:
        rgba(47, 103, 246, .14) !important;

    border-color:
        rgba(79, 139, 255, .72) !important;

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, .28),
        0 0 0 3px
        rgba(47, 103, 246, .09)
        !important;
}

html[data-theme="dark"]
[data-hand-guidance-style="capsule"]
#keyboardContainer .key-next {
    background:
        rgba(79, 139, 255, .16) !important;

    border-color:
        rgba(112, 169, 255, .74) !important;
}

/* The other two modes retain their existing calibrated stacking. */


/* ==========================================================
   RIGHT-HAND CENTERING + THICKER CAPSULE FINGERS v17.1.10
========================================================== */

/*
 * Capsule mode only: make both hands slightly fuller so the overlay feels
 * visually balanced with the classic and articulated modes.
 */
html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-outline.capsule-lower {
    stroke-width: 33px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-outline.capsule-middle {
    stroke-width: 27.5px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-outline.capsule-upper {
    stroke-width: 21.5px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-body.capsule-lower {
    stroke-width: 28px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-body.capsule-middle {
    stroke-width: 22.5px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-body.capsule-upper {
    stroke-width: 17.2px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-highlight.capsule-lower {
    stroke-width: 7.4px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-highlight.capsule-middle {
    stroke-width: 5.7px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .capsule-ribbon-highlight.capsule-upper {
    stroke-width: 4.7px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-outline.capsule-lower {
    stroke-width: 47px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-outline.capsule-upper {
    stroke-width: 39px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-body.capsule-lower {
    stroke-width: 40px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-body.capsule-upper {
    stroke-width: 32px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-highlight.capsule-lower {
    stroke-width: 9.1px;
}

html[data-hand-guidance-style="capsule"]
#handsKeyboardOverlay .articulated-thumb .capsule-ribbon-highlight.capsule-upper {
    stroke-width: 7.3px;
}

/* ==========================================================
   v17.8.64 — Capsule + Articulated hand polish
   Refine the two premium hand styles only.
   ========================================================== */
#handsKeyboardOverlay .articulated-finger,
#handsKeyboardOverlay .articulated-thumb{
    filter:drop-shadow(0 1px 1px rgba(15,23,42,.06));
}

#handsKeyboardOverlay .articulated-finger .finger-bone,
#handsKeyboardOverlay .articulated-finger .articulated-glow,
#handsKeyboardOverlay .capsule-ribbon-outline,
#handsKeyboardOverlay .capsule-ribbon-body{
    stroke-linecap:round;
    stroke-linejoin:round;
    vector-effect:non-scaling-stroke;
}

#handsKeyboardOverlay .articulated-finger .finger-bone{
    stroke-width:6.1;
    opacity:.94;
}

#handsKeyboardOverlay .articulated-finger .finger-joint{
    r:5.15px;
    filter:drop-shadow(0 1px 1px rgba(15,23,42,.05));
}

#handsKeyboardOverlay .articulated-finger .finger-tip-node{
    r:6.8px;
    filter:drop-shadow(0 1px 1px rgba(15,23,42,.06));
}

#handsKeyboardOverlay .articulated-finger .articulated-glow{
    opacity:.34;
}

#handsKeyboardOverlay .articulated-finger.finger-active .finger-bone{
    stroke-width:6.9;
}

#handsKeyboardOverlay .articulated-finger.finger-active .finger-joint,
#handsKeyboardOverlay .articulated-finger.finger-active .finger-tip-node{
    filter:drop-shadow(0 0 4px rgba(47,109,246,.14));
}

#handsKeyboardOverlay .articulated-finger.finger-correct .finger-joint,
#handsKeyboardOverlay .articulated-finger.finger-correct .finger-tip-node{
    filter:drop-shadow(0 0 4px rgba(22,163,74,.12));
}

#handsKeyboardOverlay .articulated-finger.finger-wrong .finger-joint,
#handsKeyboardOverlay .articulated-finger.finger-wrong .finger-tip-node{
    filter:drop-shadow(0 0 4px rgba(220,38,38,.12));
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .capsule-ribbon-outline,
html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .capsule-ribbon-base{
    filter:drop-shadow(0 1px 2px rgba(92,65,44,.10));
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay{
    --capsule-skin:rgba(238,223,206,.48) !important;
    --capsule-skin-active:rgba(238,223,206,.56) !important;
    --capsule-edge:rgba(165,133,103,.60) !important;
    --capsule-edge-active:rgba(65,126,245,.74) !important;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .capsule-ribbon-body{
    opacity:.98 !important;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .capsule-ribbon-outline{
    opacity:.98 !important;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .capsule-ribbon-base{
    opacity:.96 !important;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .capsule-ribbon-nail{
    opacity:.58;
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .finger-active .capsule-ribbon-outline{
    filter:drop-shadow(0 0 6px rgba(65,126,245,.18));
}

html[data-hand-guidance-style="capsule"] #handsKeyboardOverlay .finger-active .capsule-ribbon-body{
    filter:brightness(1.03);
}

html[data-theme="dark"] #handsKeyboardOverlay .articulated-finger,
html[data-theme="dark"] #handsKeyboardOverlay .articulated-thumb{
    filter:drop-shadow(0 1px 2px rgba(2,6,23,.22));
}

html[data-theme="dark"][data-hand-guidance-style="capsule"] #handsKeyboardOverlay{
    --capsule-skin:rgba(203,156,118,.36) !important;
    --capsule-skin-active:rgba(215,168,127,.42) !important;
    --capsule-edge:rgba(206,183,160,.60) !important;
    --capsule-edge-active:rgba(106,161,255,.82) !important;
}

/* Source: /css/one-hand-typing-v17.10.395.css */

#tto-one-hand-ui{--oh-bg:#f5f7fb;--oh-panel:#fff;--oh-text:#17243b;--oh-muted:#596b82;--oh-line:#dde5ef;--oh-soft:#eef3f9;--oh-blue:#2563eb;--oh-blue-soft:#eef4ff;--oh-green:#147544;--oh-green-soft:#effaf3;--oh-button:#16834d;--oh-button-text:#fff;--oh-red:#b42336;color:var(--oh-text);background:var(--oh-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55;border-radius:14px;overflow:hidden;color-scheme:light dark}
#tto-one-hand-ui *{box-sizing:border-box}#tto-one-hand-ui [hidden]{display:none!important}#tto-one-hand-ui button,#tto-one-hand-ui input{font:inherit}#tto-one-hand-ui button,#tto-one-hand-ui a{touch-action:manipulation}#tto-one-hand-ui button{color:inherit}#tto-one-hand-ui a{color:var(--oh-blue);text-decoration:none}#tto-one-hand-ui a:hover{text-decoration:underline}#tto-one-hand-ui svg{width:19px;height:19px;flex-shrink:0}#tto-one-hand-ui .oh-header{padding:17px 26px;background:var(--oh-panel);border-bottom:1px solid var(--oh-line);display:flex;align-items:center;gap:28px;flex-wrap:wrap}#tto-one-hand-ui .oh-brand{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:500;letter-spacing:-.6px;white-space:nowrap;color:var(--oh-text)}#tto-one-hand-ui .oh-brand>span:first-child{display:flex;align-items:center;justify-content:center;background:var(--oh-blue-soft);color:var(--oh-blue);width:35px;height:35px;border-radius:9px}#tto-one-hand-ui .oh-brand em{font-style:normal;color:var(--oh-blue)}#tto-one-hand-ui .oh-nav{display:flex;align-items:center;gap:19px;margin-left:auto;font-size:13px}#tto-one-hand-ui .oh-nav a{color:var(--oh-muted)}#tto-one-hand-ui .oh-account{display:inline-flex;gap:7px;align-items:center;border:1px solid var(--oh-line);border-radius:8px;padding:7px 10px;font-size:13px;color:var(--oh-text)}#tto-one-hand-ui .oh-main{padding:24px 28px 32px;max-width:1500px;margin:auto}#tto-one-hand-ui .oh-crumbs{font-size:12px;color:var(--oh-muted);display:flex;gap:9px;align-items:center;margin-bottom:16px}#tto-one-hand-ui .oh-heading{display:flex;gap:22px;align-items:center;justify-content:space-between;margin-bottom:20px}#tto-one-hand-ui h1{font-size:32px;line-height:1.2;letter-spacing:-1.15px;font-weight:500;margin:0 0 8px}#tto-one-hand-ui p{margin:0}#tto-one-hand-ui .oh-heading p{color:var(--oh-muted);font-size:14px}#tto-one-hand-ui .oh-free{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--oh-green);white-space:nowrap;background:var(--oh-green-soft);padding:6px 10px;border-radius:20px}#tto-one-hand-ui .oh-panel{background:var(--oh-panel);border:1px solid var(--oh-line);border-radius:14px}#tto-one-hand-ui .oh-hand-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;margin-bottom:18px}#tto-one-hand-ui .oh-label{font-size:14px;font-weight:500;margin-bottom:2px}#tto-one-hand-ui .oh-secondary{font-size:12px;color:var(--oh-muted)}#tto-one-hand-ui .oh-hand-picks{display:flex;gap:8px;flex-wrap:wrap}#tto-one-hand-ui .oh-hand-pick{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:9px 21px;border:1px solid var(--oh-line);border-radius:10px;background:var(--oh-panel);font-weight:500}#tto-one-hand-ui .oh-hand-pick[aria-pressed="true"]{background:var(--oh-blue-soft);color:var(--oh-blue);border-color:var(--oh-blue)}#tto-one-hand-ui .oh-hand-pick .oh-check{display:none;width:16px}#tto-one-hand-ui .oh-hand-pick[aria-pressed="true"] .oh-check{display:inline}#tto-one-hand-ui .oh-hand-left{transform:scaleX(-1)}#tto-one-hand-ui .oh-practice{padding:22px;margin-bottom:22px}#tto-one-hand-ui .oh-practice-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}#tto-one-hand-ui .oh-eyebrow{font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:1.3px;color:var(--oh-muted);margin-bottom:5px}#tto-one-hand-ui h2{font-size:21px;font-weight:500;line-height:1.4;letter-spacing:-.4px;margin:0}#tto-one-hand-ui .oh-lesson-subtitle{font-size:13px;color:var(--oh-muted);margin-top:5px}#tto-one-hand-ui .oh-small-button{display:inline-flex;gap:6px;align-items:center;justify-content:center;border:1px solid var(--oh-line);border-radius:8px;background:var(--oh-panel);padding:7px 11px;min-height:38px;font-size:12px;white-space:nowrap}#tto-one-hand-ui .oh-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between;padding:11px 0;border-top:1px solid var(--oh-line);border-bottom:1px solid var(--oh-line)}#tto-one-hand-ui .oh-metrics{display:flex;gap:24px;font-size:12px;color:var(--oh-muted)}#tto-one-hand-ui .oh-metrics strong{font-size:14px;font-weight:500;margin-left:4px;color:var(--oh-text);font-variant-numeric:tabular-nums}#tto-one-hand-ui .oh-tools{display:flex;gap:9px;align-items:center}#tto-one-hand-ui .oh-tools button{font-size:12px;border:0;background:none;padding:4px;display:flex;gap:5px;align-items:center;min-height:32px}#tto-one-hand-ui .oh-tools svg{width:15px;height:15px}#tto-one-hand-ui .oh-type-area{background:var(--oh-bg);border:1px solid var(--oh-line);border-radius:12px;padding:19px 24px;margin:18px 0 14px;min-height:126px;position:relative;outline-offset:3px}#tto-one-hand-ui .oh-passage{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:27px;letter-spacing:3px;line-height:1.65;max-width:100%;overflow-wrap:anywhere;word-break:break-all;color:var(--oh-muted)}#tto-one-hand-ui .oh-char{border-radius:3px}#tto-one-hand-ui .oh-char.current{color:var(--oh-text);background:var(--oh-blue-soft);box-shadow:0 3px 0 var(--oh-blue)}#tto-one-hand-ui .oh-char.done{color:var(--oh-green)}#tto-one-hand-ui .oh-char.wrong{color:var(--oh-red);background:var(--oh-panel)}#tto-one-hand-ui .oh-hint{font-size:12px;color:var(--oh-muted);margin-top:8px}#tto-one-hand-ui .oh-input{width:100%;margin-top:10px;padding:11px 12px;border:1px solid var(--oh-line);border-radius:8px;background:var(--oh-panel);color:var(--oh-text);font-size:16px}#tto-one-hand-ui .oh-input[hidden]{display:none}#tto-one-hand-ui .oh-progress-track{height:4px;background:var(--oh-soft);border-radius:6px;overflow:hidden}#tto-one-hand-ui .oh-progress-fill{height:100%;background:var(--oh-button);width:0%;transition:width .15s}#tto-one-hand-ui .oh-ready{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:17px 0 23px}#tto-one-hand-ui .oh-ready-copy{font-size:13px;color:var(--oh-muted);display:flex;gap:8px;align-items:center}#tto-one-hand-ui .oh-ready-copy svg{color:var(--oh-green);width:17px}#tto-one-hand-ui .oh-primary{display:inline-flex;gap:9px;align-items:center;justify-content:center;background:var(--oh-button);color:var(--oh-button-text);border:0;border-radius:9px;min-height:43px;padding:11px 20px;font-weight:500;white-space:nowrap}#tto-one-hand-ui .oh-keyboard-wrap{max-width:680px;margin:0 auto}#tto-one-hand-ui .oh-keyboard{padding:13px;background:var(--oh-soft);border:1px solid var(--oh-line);border-radius:13px}#tto-one-hand-ui .oh-key-row{display:flex;gap:5px;margin-bottom:5px}#tto-one-hand-ui .oh-key-row:last-child{margin-bottom:0}#tto-one-hand-ui .oh-key{flex:1;min-width:0;height:34px;display:flex;align-items:center;justify-content:center;background:var(--oh-panel);border:1px solid var(--oh-line);border-bottom-width:3px;border-radius:5px;font-size:11px;color:var(--oh-muted);font-weight:500}#tto-one-hand-ui .oh-key.wide{flex:1.6}#tto-one-hand-ui .oh-key.space{flex:7}#tto-one-hand-ui .oh-key.home{color:var(--oh-blue);background:var(--oh-blue-soft)}#tto-one-hand-ui .oh-key.expected{color:var(--oh-button-text);background:var(--oh-button);border-color:var(--oh-button)}#tto-one-hand-ui .oh-key-legend{display:flex;justify-content:center;align-items:center;gap:7px;margin:10px 0 0;font-size:12px;color:var(--oh-muted)}#tto-one-hand-ui .oh-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--oh-button)}#tto-one-hand-ui .oh-lower{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:20px}#tto-one-hand-ui .oh-course{padding:20px}#tto-one-hand-ui .oh-section-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}#tto-one-hand-ui .oh-section-top h2{font-size:18px}#tto-one-hand-ui .oh-course-rows{display:grid;gap:8px}#tto-one-hand-ui .oh-course-row{display:flex;align-items:center;gap:12px;text-align:left;padding:11px 13px;border:1px solid var(--oh-line);border-radius:10px;background:var(--oh-panel);width:100%}#tto-one-hand-ui .oh-course-row.current{border-color:var(--oh-blue);background:var(--oh-blue-soft)}#tto-one-hand-ui .oh-course-row .oh-number{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:var(--oh-soft);font-size:13px;flex-shrink:0}#tto-one-hand-ui .oh-course-row.current .oh-number{background:var(--oh-panel);color:var(--oh-blue)}#tto-one-hand-ui .oh-course-row strong{font-weight:500;font-size:13px;display:block}#tto-one-hand-ui .oh-course-row small{display:block;color:var(--oh-muted);font-size:11px}#tto-one-hand-ui .oh-course-row>svg{margin-left:auto;width:16px;color:var(--oh-muted)}#tto-one-hand-ui .oh-path-note{margin-top:12px;font-size:12px;color:var(--oh-muted)}#tto-one-hand-ui .oh-progress-panel{padding:20px}#tto-one-hand-ui .oh-progress-panel h2{font-size:18px;margin-bottom:16px}#tto-one-hand-ui .oh-completion{font-size:31px;line-height:1.2;letter-spacing:-1px;font-weight:500;margin-bottom:8px}#tto-one-hand-ui .oh-completion span{font-size:14px;color:var(--oh-muted);letter-spacing:0}#tto-one-hand-ui .oh-completion-note{color:var(--oh-muted);font-size:12px;margin:10px 0 22px}#tto-one-hand-ui .oh-encouragement{padding-top:17px;border-top:1px solid var(--oh-line);font-size:13px}#tto-one-hand-ui .oh-encouragement strong{font-weight:500;display:block;margin-bottom:6px}#tto-one-hand-ui .oh-encouragement p{color:var(--oh-muted);font-size:12px}#tto-one-hand-ui .oh-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px;color:var(--oh-muted);font-size:12px}#tto-one-hand-ui .oh-result{padding:17px;background:var(--oh-green-soft);border:1px solid var(--oh-line);border-radius:10px;margin:16px 0;font-size:14px}#tto-one-hand-ui .oh-result[hidden]{display:none}#tto-one-hand-ui .oh-result strong{font-weight:500;color:var(--oh-green)}#tto-one-hand-ui .oh-quiet{color:var(--oh-muted);font-size:12px;margin-top:6px}#tto-one-hand-ui .oh-pause-cover{color:var(--oh-muted);text-align:center;padding:20px 0;font-size:18px}
@media(max-width:850px){#tto-one-hand-ui .oh-nav{display:none}#tto-one-hand-ui .oh-account{margin-left:auto}#tto-one-hand-ui .oh-lower{grid-template-columns:minmax(0,1fr) 220px}#tto-one-hand-ui .oh-metrics{gap:14px}}
@media(max-width:600px){#tto-one-hand-ui .oh-header{padding:13px 16px;gap:12px}#tto-one-hand-ui .oh-main{padding:18px 14px 24px}#tto-one-hand-ui h1{font-size:28px}#tto-one-hand-ui .oh-heading{align-items:flex-start;gap:12px}#tto-one-hand-ui .oh-heading p{font-size:13px}#tto-one-hand-ui .oh-free{padding:5px 8px;font-size:11px}#tto-one-hand-ui .oh-free svg{display:none}#tto-one-hand-ui .oh-hand-bar{align-items:stretch;flex-direction:column;padding:14px;gap:12px}#tto-one-hand-ui .oh-hand-picks{display:grid;grid-template-columns:1fr 1fr}#tto-one-hand-ui .oh-hand-pick{padding:10px 9px;gap:6px;font-size:13px}#tto-one-hand-ui .oh-hand-pick .oh-check{width:13px}#tto-one-hand-ui .oh-practice{padding:15px}#tto-one-hand-ui .oh-practice-top{margin-bottom:15px}#tto-one-hand-ui h2{font-size:19px}#tto-one-hand-ui .oh-tools{gap:12px}#tto-one-hand-ui .oh-metrics{gap:15px;flex-wrap:wrap}#tto-one-hand-ui .oh-toolbar{gap:7px}#tto-one-hand-ui .oh-tools button{min-height:42px}#tto-one-hand-ui .oh-type-area{padding:15px 14px}#tto-one-hand-ui .oh-passage{font-size:23px;letter-spacing:2px;line-height:1.65}#tto-one-hand-ui .oh-ready{flex-direction:column;align-items:stretch;gap:13px}#tto-one-hand-ui .oh-ready-copy{font-size:12px}#tto-one-hand-ui .oh-keyboard{padding:7px;border-radius:8px}#tto-one-hand-ui .oh-key-row{gap:3px;margin-bottom:3px}#tto-one-hand-ui .oh-key{font-size:11px;height:27px;border-radius:3px}#tto-one-hand-ui .oh-key.wide{font-size:0}#tto-one-hand-ui .oh-key.wide::after{content:attr(data-short);font-size:11px}#tto-one-hand-ui .oh-lower{grid-template-columns:1fr}#tto-one-hand-ui .oh-progress-panel{padding:18px}#tto-one-hand-ui .oh-course{padding:17px}#tto-one-hand-ui .oh-small-button{min-height:44px}#tto-one-hand-ui .oh-completion{font-size:27px}}
@media(prefers-reduced-motion:reduce){#tto-one-hand-ui *{transition:none!important}}

html[data-theme="dark"] #tto-one-hand-ui{--oh-bg:#0c1424;--oh-panel:#152138;--oh-text:#edf3ff;--oh-muted:#adbed5;--oh-line:#30415b;--oh-soft:#1b2c44;--oh-blue:#8cb4ff;--oh-blue-soft:#1c335a;--oh-green:#7cdda6;--oh-green-soft:#173b2c;--oh-button:#258657;--oh-red:#ff9aab;}
@media(prefers-color-scheme:dark){html[data-theme="system"] #tto-one-hand-ui{--oh-bg:#0c1424;--oh-panel:#152138;--oh-text:#edf3ff;--oh-muted:#adbed5;--oh-line:#30415b;--oh-soft:#1b2c44;--oh-blue:#8cb4ff;--oh-blue-soft:#1c335a;--oh-green:#7cdda6;--oh-green-soft:#173b2c;--oh-button:#258657;--oh-red:#ff9aab;}}

#tto-one-hand-ui{border-radius:0}#tto-one-hand-ui .oh-editorial{padding:28px 0 0;margin-top:32px;border-top:1px solid var(--oh-line);font-size:17px;line-height:1.8}#tto-one-hand-ui .oh-editorial h2{font-size:26px;margin:22px 0 12px}#tto-one-hand-ui .oh-editorial h3{font-size:20px;font-weight:500;margin:20px 0 10px}#tto-one-hand-ui .oh-editorial p{margin:0 0 14px;max-width:1050px}#tto-one-hand-ui .oh-editorial li{margin:8px 0}#tto-one-hand-ui .oh-editorial details{padding:15px 0;border-bottom:1px solid var(--oh-line)}#tto-one-hand-ui .oh-editorial summary{cursor:pointer;font-weight:500}#tto-one-hand-ui .oh-course-group{border:0;margin:0 0 12px}#tto-one-hand-ui .oh-course-group summary{font-size:14px;font-weight:500;cursor:pointer;padding:10px 0}#tto-one-hand-ui .oh-course-group .oh-course-row{margin-bottom:8px}#tto-one-hand-ui .oh-course-group summary small{color:var(--oh-muted);font-weight:400}#tto-one-hand-ui .oh-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}#tto-one-hand-ui .oh-keyboard-shell{margin-top:15px}#tto-one-hand-ui .oh-type-area{height:126px;min-height:126px;overflow:hidden;padding:0;cursor:text}#tto-one-hand-ui .oh-passage{padding:0 12px;line-height:42px;font-size:24px;letter-spacing:2px;overflow-wrap:normal;word-break:normal;white-space:pre-wrap;will-change:transform}#tto-one-hand-ui .oh-input-shell{position:relative;margin:12px 0}#tto-one-hand-ui .oh-status{font-size:13px;color:var(--oh-muted);min-height:22px;margin-top:8px}#tto-one-hand-ui .oh-status.is-error{color:var(--oh-red)}#tto-one-hand-ui .oh-settings{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#tto-one-hand-ui .oh-settings label{display:flex;align-items:center;gap:7px;font-size:13px}#tto-one-hand-ui .oh-settings select{font:inherit;background:var(--oh-panel);color:var(--oh-text);padding:7px;border:1px solid var(--oh-line);border-radius:7px}#tto-one-hand-ui .oh-history{grid-column:1/-1;padding:20px;overflow:auto}#tto-one-hand-ui table{width:100%;border-collapse:collapse;min-width:440px;font-size:14px}#tto-one-hand-ui th,#tto-one-hand-ui td{text-align:left;padding:10px;border-bottom:1px solid var(--oh-line)}#tto-one-hand-ui th{font-weight:500}#tto-one-hand-ui .oh-mobile-note{display:none;font-size:13px;margin:8px 0;color:var(--oh-muted)}#tto-one-hand-ui .oh-typing-label{display:block;font-size:12px;color:var(--oh-muted)}#tto-one-hand-ui button:disabled{opacity:.55}#tto-one-hand-ui .oh-free{white-space:normal}#tto-one-hand-ui .oh-passage .oh-word{display:inline-block}#tto-one-hand-ui .oh-result p{margin-top:8px}#tto-one-hand-ui .oh-main{padding-top:24px}#tto-one-hand-ui .oh-course-link{margin-top:15px;font-size:13px}@media(max-width:600px){#tto-one-hand-ui .oh-passage{font-size:21px;letter-spacing:1px;line-height:42px}#tto-one-hand-ui .oh-mobile-note{display:block}#tto-one-hand-ui .oh-metrics{gap:10px}#tto-one-hand-ui .oh-editorial{font-size:16px}#tto-one-hand-ui .oh-settings select{font-size:16px}#tto-one-hand-ui .oh-type-area{margin-top:10px}}

#tto-one-hand-ui button:not(:disabled){cursor:pointer}@media(max-width:600px){#tto-one-hand-ui .oh-practice{display:flex;flex-direction:column}#tto-one-hand-ui .oh-practice>*{order:4}#tto-one-hand-ui .oh-practice>.oh-practice-top{order:0}#tto-one-hand-ui .oh-practice>.oh-toolbar{order:1}#tto-one-hand-ui .oh-practice>.oh-ready{order:2;margin:12px 0}#tto-one-hand-ui .oh-practice>.oh-type-area{order:3}}
/* v17.10.388: use the main course screen's compact focus bar, practice/stat
   columns, footer controls and full-size ANSI keyboard. Scope to this course. */
#tto-one-hand-ui{--oh-bg:var(--background,#f8fafc);--oh-panel:var(--surface,#fff);--oh-text:var(--text,#172033);--oh-muted:var(--text-light,#52617a);--oh-line:var(--border-soft,#e7ebf2);--oh-soft:var(--surface-alt,#f1f5f9);background:var(--oh-bg);font-family:var(--font-body,Inter,system-ui,sans-serif)}
#tto-one-hand-ui .oh-main{width:min(1500px,calc(100% - 32px));max-width:1500px;padding:14px 0 30px}
#tto-one-hand-ui .oh-crumbs{margin-bottom:10px}
#tto-one-hand-ui .oh-heading{margin:0 0 14px;gap:16px}
#tto-one-hand-ui h1{font-size:clamp(21px,2vw,28px);margin-bottom:4px;letter-spacing:-.6px}
#tto-one-hand-ui .oh-heading p{font-size:13px}
#tto-one-hand-ui .oh-hand-pick{min-height:42px;padding:8px 16px;font-size:14px}
#tto-one-hand-ui .oh-panel{border:1px solid var(--oh-line);box-shadow:0 14px 38px rgba(15,23,42,.06)}
#tto-one-hand-ui .oh-workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 176px;gap:14px;align-items:stretch;margin-bottom:16px}
#tto-one-hand-ui .oh-practice{display:block;min-width:0;padding:0;margin:0;overflow:hidden;border-radius:20px}
#tto-one-hand-ui .oh-focus-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:var(--oh-panel);border-bottom:1px solid var(--oh-line);min-height:86px}
#tto-one-hand-ui .oh-focus-identity{display:flex;align-items:center;gap:12px;min-width:0}
#tto-one-hand-ui .oh-book-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;background:var(--oh-blue-soft);border-radius:50%;font-size:24px}
#tto-one-hand-ui .oh-focus-bar .oh-eyebrow{display:block;text-transform:none;letter-spacing:0;font-size:12px;font-weight:600;color:var(--oh-muted);margin-bottom:4px}
#tto-one-hand-ui .oh-focus-bar h2{font-family:var(--font-heading,Inter,sans-serif);font-size:clamp(17px,1.4vw,21px);font-weight:650;color:var(--oh-blue);line-height:1.25}
#tto-one-hand-ui .oh-focus-facts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#tto-one-hand-ui .oh-focus-facts>span{display:grid;gap:3px;min-width:76px;border:1px solid var(--oh-line);border-radius:10px;padding:7px 10px;background:var(--oh-bg)}
#tto-one-hand-ui .oh-focus-facts small{font-size:10px;text-transform:uppercase;letter-spacing:.3px;color:var(--oh-muted)}
#tto-one-hand-ui .oh-focus-facts b{font-size:13px;font-weight:650}
#tto-one-hand-ui .oh-stage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 18px;min-height:49px}
#tto-one-hand-ui .oh-stage-toolbar p{font-size:13px;color:var(--oh-muted);margin:0}
#tto-one-hand-ui .oh-stage-toolbar button{white-space:nowrap;min-height:34px;font-size:12px;padding:5px 9px;border:1px solid var(--oh-line);border-radius:8px;background:var(--oh-panel)}
#tto-one-hand-ui .oh-passage-frame{position:relative;padding:22px 24px;border-top:1px solid var(--oh-line);border-bottom:1px solid var(--oh-line);background:var(--oh-bg)}
#tto-one-hand-ui .oh-type-area{height:126px;min-height:126px;margin:0;padding:0;background:none;border:0;border-radius:0;cursor:text;overflow:hidden}
#tto-one-hand-ui .oh-type-area:focus-visible{outline:2px solid var(--oh-blue);outline-offset:5px}
#tto-one-hand-ui .oh-passage{padding:0;font-family:var(--font-mono,ui-monospace,monospace);font-size:27px;line-height:42px;letter-spacing:.11em;color:var(--oh-text)}
#tto-one-hand-ui .oh-char.current{background:var(--oh-blue-soft);box-shadow:0 3px 0 var(--oh-blue)}
#tto-one-hand-ui .oh-input-shell{position:absolute;left:24px;top:22px;width:1px;height:1px;margin:0;overflow:hidden}
#tto-one-hand-ui .oh-input,#tto-one-hand-ui .oh-typing-label{position:absolute;left:0;top:0;width:1px;height:1px;min-height:0;padding:0;border:0;margin:0;opacity:0;font-size:16px}
#tto-one-hand-ui .oh-hint{font-size:12px;color:var(--oh-muted);margin:0;padding:9px 18px 0;min-height:27px}
#tto-one-hand-ui .oh-practice-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 18px}
#tto-one-hand-ui .oh-progress-block{display:flex;align-items:center;gap:10px;flex:1;min-width:160px}
#tto-one-hand-ui .oh-progress-block .oh-progress-track{flex:1;min-width:50px;height:5px;max-width:190px}
#tto-one-hand-ui .oh-character-count{font-size:11px;color:var(--oh-muted);white-space:nowrap}
#tto-one-hand-ui .oh-footer-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#tto-one-hand-ui .oh-footer-controls button{min-height:38px;padding:8px 12px;font-size:12px;border:1px solid var(--oh-line);border-radius:9px;background:var(--oh-panel);font-weight:600}
#tto-one-hand-ui .oh-footer-controls .oh-primary{background:var(--oh-button);color:var(--oh-button-text);border-color:var(--oh-button)}
#tto-one-hand-ui #oh-end{color:var(--oh-red)}
#tto-one-hand-ui .oh-workspace-settings{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 18px 12px}
#tto-one-hand-ui .oh-settings .oh-secondary{font-size:11px}
#tto-one-hand-ui .oh-settings select{padding:4px 6px;font-size:12px;min-height:30px}
#tto-one-hand-ui .oh-result{margin:12px 18px}
#tto-one-hand-ui .oh-live-stats{display:grid;grid-template-columns:1fr;gap:8px;padding:10px;border-radius:16px}
#tto-one-hand-ui .oh-live-stat{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:49px;padding:8px 10px;border:1px solid var(--oh-line);border-radius:13px;background:var(--oh-panel)}
#tto-one-hand-ui .oh-live-stat>span{font-size:10px;font-weight:650;text-transform:uppercase;color:var(--oh-muted)}
#tto-one-hand-ui .oh-live-stat>strong{font-size:24px;font-weight:750;letter-spacing:-.5px;color:var(--oh-blue);font-variant-numeric:tabular-nums}
#tto-one-hand-ui .oh-live-stat:nth-child(2)>strong{color:var(--oh-green)}
#tto-one-hand-ui .oh-live-stat:nth-child(3)>strong{color:var(--oh-red)}
#tto-one-hand-ui .oh-keyboard-card{border-radius:20px;padding:18px;margin:0 0 20px}
#tto-one-hand-ui .oh-keyboard{width:100%;max-width:1120px;padding:14px;margin:0 auto;background:var(--oh-bg);border:1px solid var(--oh-line);border-radius:16px}
#tto-one-hand-ui .keyboard-row{display:flex;gap:8px}
#tto-one-hand-ui .keyboard-row+.keyboard-row{margin-top:8px}
#tto-one-hand-ui .keyboard-key-spacer{min-width:0;pointer-events:none}
#tto-one-hand-ui .key{position:relative;min-width:0;height:58px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px;background:var(--oh-panel);border:1px solid var(--oh-line);border-radius:9px;box-shadow:0 1px 2px rgba(0,0,0,.06),0 5px 12px rgba(0,0,0,.05);transition:background .075s;cursor:default}
#tto-one-hand-ui .key-primary{font-size:clamp(12px,1.15vw,18px);font-weight:700;line-height:1;color:var(--oh-text);white-space:nowrap}
#tto-one-hand-ui .key-secondary{position:absolute;top:8px;left:8px;font-size:11px;line-height:1;color:var(--oh-muted)}
#tto-one-hand-ui .home-bump{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);width:18px;height:3px;border-radius:2px;background:var(--oh-muted)}
#tto-one-hand-ui .key-next{background:#2f67f6;border-color:#2f67f6;box-shadow:0 0 0 3px rgba(47,103,246,.15)}
#tto-one-hand-ui .key-next .key-primary,#tto-one-hand-ui .key-next .key-secondary{color:#fff}
#tto-one-hand-ui .key-pressed{transform:translateY(2px)}
#tto-one-hand-ui .oh-dot{background:#2f67f6}
#tto-one-hand-ui .oh-mobile-keyboard{display:none}
#tto-one-hand-ui .oh-progress-panel,#tto-one-hand-ui .oh-course,#tto-one-hand-ui .oh-history{border-radius:16px}
@media(max-width:1000px){#tto-one-hand-ui .oh-focus-facts>span{min-width:65px;padding:6px 8px}#tto-one-hand-ui .oh-workspace-grid{grid-template-columns:minmax(0,1fr) 154px}#tto-one-hand-ui .key{height:48px}}
@media(max-width:760px){#tto-one-hand-ui .oh-workspace-grid{grid-template-columns:1fr}#tto-one-hand-ui .oh-live-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;order:2;padding:8px}#tto-one-hand-ui .oh-live-stat{flex-direction:column;align-items:center;justify-content:center;padding:7px 3px;gap:4px}#tto-one-hand-ui .oh-live-stat>strong{font-size:20px}#tto-one-hand-ui .oh-live-stat>span{font-size:9px;text-align:center}#tto-one-hand-ui .oh-focus-facts{display:none}#tto-one-hand-ui .oh-heading{align-items:flex-start;flex-direction:column;gap:12px}#tto-one-hand-ui .oh-hand-picks{display:flex}#tto-one-hand-ui .oh-keyboard{padding:9px}#tto-one-hand-ui .keyboard-row{gap:4px}#tto-one-hand-ui .keyboard-row+.keyboard-row{margin-top:4px}#tto-one-hand-ui .key{height:38px;padding-bottom:7px;border-radius:5px}#tto-one-hand-ui .key-primary{font-size:11px}#tto-one-hand-ui .key-secondary{font-size:9px;top:4px;left:4px}#tto-one-hand-ui .oh-mobile-keyboard{display:inline-flex}}
@media(max-width:480px){#tto-one-hand-ui .oh-main{width:calc(100% - 22px)}#tto-one-hand-ui .oh-focus-bar{padding:11px 13px;min-height:75px}#tto-one-hand-ui .oh-book-icon{width:37px;height:37px;font-size:20px}#tto-one-hand-ui .oh-stage-toolbar{padding:8px 13px;align-items:flex-start}#tto-one-hand-ui .oh-stage-toolbar p{font-size:12px}#tto-one-hand-ui .oh-passage-frame{padding:16px 14px}#tto-one-hand-ui .oh-practice-footer{padding:10px 13px;gap:10px}#tto-one-hand-ui .oh-footer-controls{gap:5px}#tto-one-hand-ui .oh-footer-controls button{padding:8px 10px;min-height:40px}#tto-one-hand-ui .oh-keyboard-card{padding:9px}#tto-one-hand-ui .oh-keyboard{padding:5px}#tto-one-hand-ui .keyboard-row{gap:2px}#tto-one-hand-ui .keyboard-row+.keyboard-row{margin-top:3px}#tto-one-hand-ui .key{height:31px;border-radius:4px}#tto-one-hand-ui .key-wide .key-primary{font-size:8px}#tto-one-hand-ui .key-secondary{font-size:7px;top:3px;left:3px}#tto-one-hand-ui .home-bump{width:10px;height:2px;bottom:3px}#tto-one-hand-ui .oh-workspace-settings{padding:0 13px 10px;flex-wrap:wrap}#tto-one-hand-ui .oh-settings .oh-secondary{display:none}#tto-one-hand-ui .oh-settings select{font-size:16px}#tto-one-hand-ui .oh-hint{padding-left:13px;padding-right:13px}}

/* v389: exactly three fixed lines, using the same renderer as the main lessons. */
#tto-one-hand-ui .oh-type-area{height:144px;min-height:144px;overflow:hidden}
#tto-one-hand-ui .oh-passage{--lesson-visible-lines:3;height:144px;min-height:144px;max-height:144px;overflow:hidden;line-height:48px;white-space:normal;word-break:normal;overflow-wrap:normal;letter-spacing:.06em;transform:none;will-change:auto}
#tto-one-hand-ui .lesson-character{display:inline-block;white-space:pre;line-height:inherit}
#tto-one-hand-ui .typed-character{color:var(--oh-green)}
#tto-one-hand-ui .wrong-character{color:var(--oh-red);background:var(--oh-red-soft,#fee2e2)}
#tto-one-hand-ui .current-character{background:var(--oh-blue-soft);box-shadow:0 3px 0 var(--oh-blue);border-radius:3px}
#tto-one-hand-ui .oh-course-row.available .oh-number{color:var(--oh-green);background:var(--oh-green-soft)}
#tto-one-hand-ui .oh-course-row.locked{background:var(--oh-bg);color:var(--oh-muted)}
#tto-one-hand-ui .oh-course-row.locked small{font-weight:600}
#tto-one-hand-ui .oh-lock-notice{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 14px;padding:12px 16px;border:1px solid var(--oh-blue);background:var(--oh-blue-soft);border-radius:12px;font-size:14px}
#tto-one-hand-ui .oh-lock-notice p{flex:1;min-width:180px}
#tto-one-hand-ui .oh-lock-notice a{font-weight:650;text-decoration:underline}

/* Compact responsive lesson cards: no full-row stretched cards. */
#tto-one-hand-ui .oh-lower{grid-template-columns:minmax(0,1fr) 260px}
#tto-one-hand-ui .oh-course{min-width:0}
#tto-one-hand-ui .oh-course-group{margin-bottom:14px}
#tto-one-hand-ui .oh-course-group summary{padding:10px 0}
#tto-one-hand-ui .oh-course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:10px;align-items:stretch}
#tto-one-hand-ui .oh-course-group .oh-course-row{width:100%;max-width:330px;min-width:0;min-height:88px;margin:0;padding:12px;text-align:left;gap:10px;border-radius:12px}
#tto-one-hand-ui .oh-course-row>span:last-child{min-width:0}
#tto-one-hand-ui .oh-course-row strong{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
#tto-one-hand-ui .oh-course-row small{font-size:12px;line-height:1.4;margin-top:4px;display:block}
#tto-one-hand-ui .oh-course-row .oh-number{flex:0 0 32px;width:32px;height:32px;font-size:14px}
#tto-one-hand-ui .oh-workspace-settings{padding-top:10px;flex-wrap:wrap;justify-content:flex-start}
#tto-one-hand-ui .oh-screen-reader-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#tto-one-hand-ui .oh-lock-notice{font-size:13px;padding:10px 12px;margin:12px 0}
#tto-one-hand-ui .oh-lock-dismiss{border:0;background:transparent;font-size:22px;line-height:1;padding:6px;min-width:32px;min-height:32px}
@media(max-width:900px){#tto-one-hand-ui .oh-lower{grid-template-columns:1fr}#tto-one-hand-ui .oh-progress-panel{order:2}}
@media(max-width:560px){#tto-one-hand-ui .oh-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#tto-one-hand-ui .oh-course-group .oh-course-row{padding:10px;gap:8px;align-items:flex-start}#tto-one-hand-ui .oh-course-row .oh-number{flex-basis:25px;width:25px;height:25px;font-size:12px}#tto-one-hand-ui .oh-course-row strong{font-size:14px}#tto-one-hand-ui .oh-course-row small{font-size:11px}}
@media(max-width:380px){#tto-one-hand-ui .oh-course-grid{grid-template-columns:1fr}}

/* Use the main lesson's exact hand drawings, isolated to this course. */
#tto-one-hand-ui .oh-keyboard-stage{position:relative;max-width:1120px;margin:auto;overflow:hidden}
#tto-one-hand-ui #handsClassicOverlay svg,#tto-one-hand-ui #handsKeyboardOverlay svg,#tto-one-hand-ui #typingHands{width:100%;height:100%;flex-shrink:0}
#tto-one-hand-ui #handsClassicOverlay,#tto-one-hand-ui #handsKeyboardOverlay{pointer-events:none}
#tto-one-hand-ui .oh-hand-styles{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 0 0}
#tto-one-hand-ui .oh-hand-styles>span{font-size:12px;font-weight:600;color:var(--oh-muted)}
#tto-one-hand-ui .oh-hand-styles button{border:1px solid var(--oh-line);background:var(--oh-panel);padding:8px 12px;min-height:38px;border-radius:9px;font-size:13px;color:var(--oh-text)}
#tto-one-hand-ui .oh-hand-styles button[aria-pressed="true"]{background:var(--oh-blue-soft);border-color:var(--oh-blue);color:var(--oh-blue)}
#tto-one-hand-ui .oh-hand-styles .oh-hand-crown{font-size:11px;margin-left:3px}
#tto-one-hand-ui .oh-hand-caption{font-size:12px;line-height:1.5;color:var(--oh-muted);padding-top:8px}
#tto-one-hand-ui .oh-side-hand-panel{width:100%;padding:0}
#tto-one-hand-ui #handsContainer{width:min(100%,360px);height:260px;margin:12px auto 0;background:var(--oh-panel);border:1px solid var(--oh-line);border-radius:16px;box-shadow:none}
#tto-one-hand-ui[data-one-hand-style="side"] .oh-side-hand-panel{display:block!important}
#tto-one-hand-ui:not([data-one-hand-style="side"]) .oh-side-hand-panel{display:none!important}
#tto-one-hand-ui .oh-hand-premium-hint{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px;padding:10px 12px;background:var(--oh-blue-soft);border:1px solid var(--oh-blue);border-radius:10px;font-size:13px}
#tto-one-hand-ui .oh-hand-premium-hint a{text-decoration:underline;font-weight:600}
#tto-one-hand-ui .oh-hand-premium-hint button{margin-left:auto;border:0;background:none;color:var(--oh-text);font-size:22px;min-width:32px;min-height:32px}
@media(max-width:760px){#tto-one-hand-ui[data-one-hand-style="classic"] #handsClassicOverlay,#tto-one-hand-ui[data-one-hand-style="articulated"] #handsKeyboardOverlay,#tto-one-hand-ui[data-one-hand-style="capsule"] #handsKeyboardOverlay{display:block!important}#tto-one-hand-ui .oh-hand-styles{gap:6px}#tto-one-hand-ui .oh-hand-styles button{font-size:12px;padding:8px 10px}}

/* v393: compact controls and centered styles beneath the keyboard. */
#tto-one-hand-ui .oh-hint{padding:5px 14px 0;min-height:20px;font-size:11px;line-height:1.4}
#tto-one-hand-ui .oh-control-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:8px 14px 10px}
#tto-one-hand-ui .oh-practice-footer{display:contents}
#tto-one-hand-ui .oh-progress-block{order:0;flex:0 1 170px;min-width:110px;gap:7px}
#tto-one-hand-ui .oh-progress-block .oh-progress-track{max-width:100px}
#tto-one-hand-ui .oh-workspace-settings{order:1;padding:0;gap:10px;flex:0 1 auto}
#tto-one-hand-ui .oh-footer-controls{order:2;margin-left:auto;gap:6px}
#tto-one-hand-ui .oh-footer-controls button{min-height:34px;padding:6px 10px}
#tto-one-hand-ui .oh-workspace-settings .oh-small-button{min-height:32px;font-size:12px;padding:5px 7px}
#tto-one-hand-ui .oh-settings{gap:7px}
#tto-one-hand-ui .oh-settings label{font-size:12px;gap:5px}
#tto-one-hand-ui .oh-hand-styles{justify-content:center;max-width:1120px;margin:0 auto;padding-top:9px}
#tto-one-hand-ui .oh-hand-caption{text-align:center;max-width:1120px;margin:0 auto;padding-top:6px}
#tto-one-hand-ui .oh-hand-premium-hint{max-width:1120px;margin:10px auto 0}
@media(max-width:1000px){#tto-one-hand-ui .oh-progress-block{flex-basis:120px}#tto-one-hand-ui .oh-control-bar{gap:8px 10px}}
@media(max-width:760px){#tto-one-hand-ui .oh-control-bar{padding:8px 12px 10px}#tto-one-hand-ui .oh-footer-controls{flex:1 1 100%;justify-content:flex-end}#tto-one-hand-ui .oh-footer-controls button{min-height:40px}#tto-one-hand-ui .oh-workspace-settings{flex:1;justify-content:flex-end}#tto-one-hand-ui .oh-progress-block{flex-basis:100px}}
@media(max-width:480px){#tto-one-hand-ui .oh-workspace-settings{flex:1 1 100%;justify-content:flex-start}#tto-one-hand-ui .oh-progress-block{flex:1 1 100%}#tto-one-hand-ui .oh-workspace-settings select{font-size:16px}#tto-one-hand-ui .oh-footer-controls{justify-content:flex-start}}

/* Side Hands stays beside the keyboard, including compact screens. */
#tto-one-hand-ui .oh-keyboard-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:16px;max-width:1400px;margin:0 auto}
#tto-one-hand-ui[data-one-hand-style="side"] .oh-keyboard-layout{grid-template-columns:minmax(0,1fr) clamp(120px,18vw,250px)}
#tto-one-hand-ui .oh-keyboard-layout .oh-keyboard-stage{width:100%;min-width:0;margin:0 auto}
#tto-one-hand-ui .oh-keyboard-layout .oh-side-hand-panel{width:100%;max-width:none;min-width:0;padding:0;margin:0;align-self:center;border:0;background:transparent;box-shadow:none;border-radius:0}
#tto-one-hand-ui .oh-keyboard-layout #handsContainer{width:100%;max-width:none;height:clamp(140px,22vw,280px);min-height:0;max-height:280px;flex:none;margin:0;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0}
#tto-one-hand-ui .oh-keyboard-layout #typingHands{width:100%;height:100%;display:block}
@media(max-width:1000px){#tto-one-hand-ui .oh-keyboard-layout{gap:10px}#tto-one-hand-ui[data-one-hand-style="side"] .oh-keyboard-layout{grid-template-columns:minmax(0,1fr) 130px}}
@media(max-width:760px){#tto-one-hand-ui .oh-keyboard-layout{gap:8px}#tto-one-hand-ui[data-one-hand-style="side"] .oh-keyboard-layout{grid-template-columns:minmax(0,1fr) 90px}#tto-one-hand-ui .oh-keyboard-layout #handsContainer{height:150px;min-height:0}}
@media(max-width:480px){#tto-one-hand-ui .oh-keyboard-layout{gap:5px}#tto-one-hand-ui[data-one-hand-style="side"] .oh-keyboard-layout{grid-template-columns:minmax(0,1fr) 58px}#tto-one-hand-ui .oh-keyboard-layout #handsContainer{height:110px;min-height:0}#tto-one-hand-ui[data-one-hand-style="side"] .key-primary{font-size:9px;max-width:100%;overflow:hidden}#tto-one-hand-ui[data-one-hand-style="side"] .key-wide .key-primary{font-size:6px}#tto-one-hand-ui[data-one-hand-style="side"] .key-backspace .key-primary,#tto-one-hand-ui[data-one-hand-style="side"] .key-tab .key-primary,#tto-one-hand-ui[data-one-hand-style="side"] .key-caps .key-primary,#tto-one-hand-ui[data-one-hand-style="side"] .key-enter .key-primary,#tto-one-hand-ui[data-one-hand-style="side"] .key-shift .key-primary{font-size:0}#tto-one-hand-ui[data-one-hand-style="side"] .key-wide .key-primary::after{font-size:9px}#tto-one-hand-ui[data-one-hand-style="side"] .key-backspace .key-primary::after{content:'⌫'}#tto-one-hand-ui[data-one-hand-style="side"] .key-tab .key-primary::after{content:'⇥'}#tto-one-hand-ui[data-one-hand-style="side"] .key-caps .key-primary::after{content:'⇪'}#tto-one-hand-ui[data-one-hand-style="side"] .key-enter .key-primary::after{content:'↵'}#tto-one-hand-ui[data-one-hand-style="side"] .key-shift .key-primary::after{content:'⇧'}}

