/* Dictation's components are shared through data-dictation-ui.
   Keep only Shadowing's recording and feedback composition here. */
@media(min-width:1024px) and (max-width:1099px){
body[data-dictation-ui]{--practice-ink:#34382f;--practice-muted:#62665b;--practice-surface:#fffefb;--practice-line:#ebe7da;--practice-control:#d8d6c8;--practice-gold:#ffdc70;--practice-gold-ink:#674718;--practice-focus:#8b6718;--practice-green-bg:#eaf3e5;--practice-red-bg:#fbefea;--practice-shadow:0 8px 22px #735b1510,0 2px 5px #735b1508}
body[data-spark-page=shadowing] .practice-main{padding:28px}
body[data-spark-page=shadowing] .practice-lesson-header{padding:18px 24px 14px;margin-bottom:20px;background:var(--practice-surface);border-radius:16px;box-shadow:var(--practice-shadow)}
body[data-spark-page=shadowing] .practice-lesson-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px}
body[data-spark-page=shadowing] .practice-lesson-heading h1{font-size:24px;margin:0}
body[data-spark-page=shadowing] .practice-lesson-tags{display:flex;gap:8px;align-items:center}
body[data-spark-page=shadowing] .practice-lesson-tags svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
body[data-spark-page=shadowing] .practice-journey{display:flex;justify-content:space-between;border-top:1px solid var(--practice-line);padding-top:8px}
body[data-spark-page=shadowing] .dictation-intro{margin-bottom:20px}
body[data-spark-page=shadowing] .practice-title{margin:0 0 10px}
body[data-spark-page=shadowing] .practice-title h2{font-size:24px;margin:3px 0 0}
body[data-spark-page=shadowing] .dictation-intro [data-spark-slot]{display:flex;align-items:center;gap:12px;padding:0;margin:0 0 20px;background:none;border:0;box-shadow:none}
body[data-spark-page=shadowing] .spark-portrait{width:54px;flex:0 0 54px}
body[data-spark-page=shadowing] .spark-portrait img{width:54px;height:54px;object-fit:contain}
body[data-spark-page=shadowing] .spark-label{display:none}
body[data-spark-page=shadowing] .spark-message{padding:10px 16px;border-radius:12px;background:#fff1bf;font-size:13px}
body[data-spark-page=shadowing] .source-card .source-art{height:auto;aspect-ratio:16/9;margin:-16px -18px 12px;overflow:hidden}
body[data-spark-page=shadowing] .source-art img{width:100%;height:100%;object-fit:cover}
body[data-spark-page=shadowing] .dictation-source-heading #source-unit-caption{font-size:13px;font-weight:500;margin:0 0 12px}
body[data-spark-page=shadowing] .dictation-source audio{display:block;width:100%;height:40px}
body[data-spark-page=shadowing] .mode-switch{display:flex;margin-bottom:16px}
body[data-spark-page=shadowing] .mode-switch button{flex:1;font-size:13px}
body[data-spark-page=shadowing] .dictation-player{display:flex;gap:10px;padding:12px 14px 32px;background:#f8f6ee;border-radius:12px}
body[data-spark-page=shadowing] .dictation-player>button{width:54px;height:40px;min-width:54px;border:1px solid #e5deca;border-radius:9px;background:var(--practice-surface);color:var(--practice-gold-ink)}
body[data-spark-page=shadowing] .dictation-player>.dictation-play-button{background:var(--practice-gold);border-color:var(--practice-gold)}
body[data-spark-page=shadowing] .dictation-player svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}
body[data-spark-page=shadowing] .dictation-speed{display:flex;align-items:center;margin-left:auto}
body[data-spark-page=shadowing] .dictation-speed>svg{width:16px;height:16px}
body[data-spark-page=shadowing] .dictation-cloze{padding:20px 22px;min-height:112px;background:#f6f4ea;border-radius:12px;font-size:20px;line-height:2.6}
body[data-spark-page=shadowing] .dictation-quiet-tools{border-top:1px solid var(--practice-line);padding-top:12px}
}
@media(min-width:1024px){
body[data-spark-page=shadowing] .review-fixtures{position:relative;z-index:60}
body[data-spark-page=shadowing] .review-fixture-panel{position:absolute;top:calc(100% + 10px);right:0;width:640px;max-width:calc(100vw - 64px);padding:18px;background:var(--practice-surface);border:1px solid var(--practice-line);border-radius:12px;box-shadow:var(--practice-shadow);color:var(--practice-ink)}
body[data-spark-page=shadowing] .review-fixture-panel>span{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
body[data-spark-page=shadowing] .review-fixture-panel label{display:flex;align-items:center;gap:8px}
body[data-spark-page=shadowing] .shadow-grid{display:grid;grid-template-columns:minmax(280px,310px) minmax(0,1fr);gap:24px;align-items:start}
body[data-spark-page=shadowing] .shadow-source-stack{display:grid;gap:20px;min-width:0}
body[data-spark-page=shadowing] .dictation-intro .spark-label{display:none}
body[data-spark-page=shadowing] .shadow-workspace{display:flex;flex-direction:column;min-width:0}
body[data-spark-page=shadowing] .section-row{order:0}
body[data-spark-page=shadowing] .section-row>#shadow-progress{margin-left:auto;white-space:nowrap}
body[data-spark-page=shadowing] .mode-switch{order:1}
body[data-spark-page=shadowing] #shadow-instruction{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body[data-spark-page=shadowing] .voice-workspace{display:contents}
body[data-spark-page=shadowing] .shadow-control-row{order:2;flex-wrap:wrap}
body[data-spark-page=shadowing] .shadow-control-row>button{position:relative}
body[data-spark-page=shadowing] .shadow-control-row>#shadow-stop{background:#854b37;border-color:#854b37;color:#fff}
body[data-spark-page=shadowing] .shadow-control-row>#shadow-stop:hover{background:#733e2c;border-color:#733e2c}
body[data-spark-page=shadowing] #shadow-speed{width:66px;min-height:38px;padding:6px 4px;border:0;background:transparent;font:inherit;font-size:13px;font-weight:500;color:var(--practice-gold-ink);cursor:pointer}
body[data-spark-page=shadowing] .shadow-audio-status{flex-basis:100%;margin:0;font-size:12px;color:#854b37}
body[data-spark-page=shadowing] .shadow-audio-status:empty{display:none}
body[data-spark-page=shadowing] #shadow-text{order:3}
body[data-spark-page=shadowing] .lookup-token{font:inherit;color:inherit}
body[data-spark-page=shadowing] :is(.translation,.ipa,.quick-lookup){order:4;font-size:14px;line-height:1.8;margin:0 0 16px}
body[data-spark-page=shadowing] .voice-state{order:5;background:none;border:0;padding:0;margin:0 0 4px;font-size:13px;font-weight:600}
body[data-spark-page=shadowing] .voice-state:empty{display:none}
body[data-spark-page=shadowing] .shadow-workspace[data-phase=ready] :is(.voice-state,#shadow-state-help){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}
body[data-spark-page=shadowing] #shadow-state-help{order:6;margin:0 0 12px;font-size:12px}
body[data-spark-page=shadowing] .feedback-card{order:8;box-shadow:none;border-radius:12px;padding:16px;margin:0 0 16px}
body[data-spark-page=shadowing] .feedback-card h3{font-size:16px;margin:8px 0}
body[data-spark-page=shadowing] .feedback-card p{font-size:13px;line-height:1.8}
body[data-spark-page=shadowing] .shadow-nav{display:none}
body[data-spark-page=shadowing] .source-card>.eyebrow{display:none}
body[data-spark-page=shadowing] .source-card>.micro{margin:0}
body[data-spark-page=shadowing] .dictation-speed:has(select:disabled){opacity:.45}
body[data-spark-page=shadowing] #shadow-review-workspace{display:block;margin:16px auto 0;font-size:13px;color:var(--practice-gold-ink)}
body[data-spark-page=shadowing] .dictation-finish-actions{margin-top:0}
body[data-spark-page=shadowing] [hidden]{display:none!important}
body[data-spark-page=shadowing] :is(button,a,input,select,summary,#shadow-text,.shadow-workspace,#shadow-feedback):focus-visible{outline:3px solid var(--practice-focus)!important;outline-offset:3px!important}
@media(prefers-reduced-motion:reduce){body[data-spark-page=shadowing] *,body[data-spark-page=shadowing] *:before,body[data-spark-page=shadowing] *:after{animation:none!important;transition:none!important}}
}

@media(min-width:1024px) and (max-width:1099px){body[data-spark-page=shadowing] .shadow-control-row{row-gap:28px}}

/* Keep compact desktop controls at widths below the shared stylesheet's breakpoint. */
@media(min-width:1024px) and (max-width:1099px){
body[data-spark-page=shadowing] .dictation-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
body[data-spark-page=shadowing] .dictation-list-heading h3{margin:0;font-size:14px}
body[data-spark-page=shadowing] #course-progress{display:block;width:100%;height:5px;margin:0 0 14px;appearance:none;border:0;border-radius:10px;overflow:hidden}
body[data-spark-page=shadowing] #course-progress::-webkit-progress-bar{background:#eee9db}
body[data-spark-page=shadowing] #course-progress::-webkit-progress-value{background:#b99b3f}
body[data-spark-page=shadowing] #unit-filter{width:100%;padding:8px 10px;border:1px solid var(--practice-control);border-radius:8px;background:var(--practice-surface);font:inherit;font-size:12px}
body[data-spark-page=shadowing] .unit-list ol{margin:12px 0 0;padding:0;list-style:none;max-height:392px;overflow:auto}
body[data-spark-page=shadowing] .unit-list li{margin-bottom:8px}
body[data-spark-page=shadowing] .unit-list button{display:flex;align-items:center;gap:10px;width:100%;min-height:64px;padding:10px 8px;border:1px solid transparent;border-radius:10px;background:none;text-align:left}
body[data-spark-page=shadowing] .unit-list button[aria-current]{background:#fff1bf;border-color:#dfc77e}
body[data-spark-page=shadowing] .unit-number{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:7px;background:#f1eee3;font-size:12px;letter-spacing:0}
body[data-spark-page=shadowing] .unit-list-copy{flex:1;min-width:0;letter-spacing:0}
body[data-spark-page=shadowing] .unit-list button strong{font-size:13px;line-height:1.65;font-weight:500;letter-spacing:0}
body[data-spark-page=shadowing] .unit-status-copy{font-size:11px;letter-spacing:0}
body[data-spark-page=shadowing] .unit-mark{display:flex;flex:0 0 20px;color:#7c785d}
body[data-spark-page=shadowing] .unit-mark svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
body[data-spark-page=shadowing] .unit-list button.unit-complete{border:2px solid #79a66f;background:#f4f9ef;padding:9px 7px}
body[data-spark-page=shadowing] .shadow-control-row{row-gap:10px}
body[data-spark-page=shadowing] .dictation-player>button::after{content:attr(data-shortcut);position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;font-weight:500;line-height:17px;color:var(--practice-muted)}
body[data-spark-page=shadowing] .dictation-bottom-nav{display:flex;margin-top:24px;padding-top:20px;border-top:1px solid var(--practice-line)}
body[data-spark-page=shadowing] .dictation-bottom-nav .button{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--practice-control);border-radius:10px;padding:10px 16px;font-size:13px;letter-spacing:0}
body[data-spark-page=shadowing] .dictation-bottom-nav svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
}
@media(min-width:1024px){body[data-spark-page=shadowing] .shadow-control-row{padding-bottom:12px}}

@media(min-width:1024px){
body[data-spark-page=shadowing] .shadow-reading{order:3;margin-top:0;padding:16px 22px 20px;background:#f6f4ea;border-radius:12px;min-width:0}
body[data-spark-page=shadowing] .shadow-reading-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:20px;margin:0 0 20px;flex-wrap:wrap}
body[data-spark-page=shadowing] .shadow-reading-toolbar label{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:32px;color:var(--practice-muted);font-size:13px;cursor:pointer;white-space:nowrap}
body[data-spark-page=shadowing] .shadow-reading-toolbar label:hover{color:var(--practice-gold-ink)}
body[data-spark-page=shadowing] .shadow-reading-toolbar label:has(input:focus-visible){outline:3px solid var(--practice-focus);outline-offset:3px;border-radius:4px}
body[data-spark-page=shadowing] .shadow-reading-toolbar input:focus-visible{outline:0!important}
body[data-spark-page=shadowing] .shadow-reading svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-spark-page=shadowing] .shadow-reading-toolbar .is-visible .eye-slash{display:none}
body[data-spark-page=shadowing] #shadow-text{display:flex;flex-wrap:wrap;align-items:flex-start;column-gap:7px;row-gap:22px;padding:0;margin:0;background:none;min-height:0;font-size:22px;line-height:1.55;letter-spacing:0}
body[data-spark-page=shadowing] .shadow-word{display:inline-flex;flex-direction:column;align-items:center;max-width:100%;gap:2px}
body[data-spark-page=shadowing] .shadow-word .lookup-token{border:0;padding:0;min-height:0;font-size:inherit;font-weight:500;line-height:inherit;overflow-wrap:anywhere;border-radius:4px}
body[data-spark-page=shadowing] .shadow-word-ipa{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;font-weight:400;line-height:1.6;color:var(--practice-muted)}
body[data-spark-page=shadowing] .shadow-reading #shadow-ipa{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--practice-muted);margin:0;line-height:1.8}
body[data-spark-page=shadowing] .shadow-reading #shadow-translation{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--practice-line);font-size:14px;line-height:1.8}
body[data-spark-page=shadowing] .shadow-reading .shadow-lookup-hint{display:flex;align-items:center;gap:7px;margin:24px 0 0;font-size:13px;color:var(--practice-muted);line-height:1.6}
body[data-spark-page=shadowing] .shadow-reading .quick-lookup{margin:16px 0 0}
body[data-spark-page=shadowing] .shadow-control-row{padding-bottom:32px}
}

/* One compact row for playback, speed and content visibility. */
@media(min-width:1024px){
body[data-spark-page=shadowing] .shadow-control-row{gap:8px;align-items:center;padding:10px 10px 30px}
body[data-spark-page=shadowing] .shadow-control-row>button{width:38px;min-width:38px;height:36px;min-height:36px;padding:8px}
body[data-spark-page=shadowing] .shadow-control-row>button svg{width:17px;height:17px}
body[data-spark-page=shadowing] .shadow-control-row>button::after{font-size:9px;padding:0;letter-spacing:-.15px}
body[data-spark-page=shadowing] .shadow-control-row .shadow-reading-toolbar{display:flex;flex-wrap:nowrap;flex:none;align-items:center;gap:10px;margin:0 0 0 auto;padding:0}
body[data-spark-page=shadowing] .shadow-reading-toolbar label{gap:4px;min-height:32px;font-size:11px;letter-spacing:0}
body[data-spark-page=shadowing] .shadow-reading-toolbar svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-spark-page=shadowing] .shadow-reading{padding-top:22px}
}

@media(min-width:1024px) and (max-width:1099px){
body[data-spark-page=shadowing] .shadow-control-row{column-gap:6px;padding-left:8px;padding-right:8px}
body[data-spark-page=shadowing] .shadow-control-row .shadow-reading-toolbar{gap:8px}
}

@media(min-width:1024px){
body[data-spark-page=shadowing] .shadow-control-row .shadow-reading-toolbar{order:2;margin-left:0}
body[data-spark-page=shadowing] .shadow-control-row .dictation-speed{margin-left:auto}
body[data-spark-page=shadowing] .shadow-audio-status{order:3}
}

@media(min-width:1024px){
body[data-spark-page=shadowing] .dictation-speed>svg{width:18px;height:18px}
}

/* Match Dictation's playback and navigation button dimensions. */
@media(min-width:1024px){
body[data-spark-page=shadowing] .shadow-control-row>button,
body[data-spark-page=shadowing] .shadow-control-row>button.dictation-play-button{width:54px;min-width:54px;height:40px;min-height:40px;padding:9px;border-radius:9px}
body[data-spark-page=shadowing] .shadow-control-row>button svg{width:19px;height:19px}
body[data-spark-page=shadowing] .shadow-control-row>button::after{font-size:10px;letter-spacing:normal}
}

@media(min-width:1024px) and (max-width:1099px){
body[data-spark-page=shadowing] .shadow-grid{grid-template-columns:280px minmax(0,1fr);gap:16px}
body[data-spark-page=shadowing] .shadow-workspace{padding:20px 16px}
}

@media(min-width:1024px){
body[data-spark-page=shadowing] .word-popup{position:fixed;inset:auto;z-index:1000;box-sizing:border-box;width:420px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow:auto;margin:0;padding:24px;background:var(--practice-surface);border:1px solid #dfd8c4;border-radius:14px;box-shadow:0 16px 48px #34382f26,0 4px 12px #34382f12;color:var(--practice-ink);font-size:14px;line-height:1.7}
body[data-spark-page=shadowing] .word-popup::backdrop{background:transparent}
body[data-spark-page=shadowing] .word-popup-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
body[data-spark-page=shadowing] #lookup-word{font-size:26px;font-weight:650;line-height:1.4}
body[data-spark-page=shadowing] #close-lookup{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:6px;border:0;border-radius:8px;background:transparent;color:var(--practice-muted);cursor:pointer}
body[data-spark-page=shadowing] #close-lookup:hover{background:#f6f4ea;color:var(--practice-ink)}
body[data-spark-page=shadowing] #close-lookup svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
body[data-spark-page=shadowing] .word-popup-meta{display:flex;align-items:center;gap:12px;color:var(--practice-muted)}
body[data-spark-page=shadowing] #lookup-ipa{font-size:16px}
body[data-spark-page=shadowing] #lookup-part{padding:2px 8px;border-radius:6px;background:#f1eee3;font-size:12px}
body[data-spark-page=shadowing] #lookup-meaning{margin:18px 0 20px;font-size:19px;font-weight:600;line-height:1.6}
body[data-spark-page=shadowing] .word-popup-context{padding-top:18px;border-top:1px solid var(--practice-line)}
body[data-spark-page=shadowing] .word-popup-context h3{margin:0 0 10px;font-size:12px;color:var(--practice-muted);font-weight:500}
body[data-spark-page=shadowing] #lookup-context{margin:0 0 8px;font-size:15px;font-style:italic;line-height:1.7}
body[data-spark-page=shadowing] #lookup-context-translation{margin:0;color:var(--practice-muted);font-size:14px;line-height:1.7}
}

/* Dictionary card: headword, accents, then meaning and in-context example. */
@media(min-width:1024px){
body[data-spark-page=shadowing] .word-popup{width:460px;padding:0;border-radius:14px}
body[data-spark-page=shadowing] .word-popup-top{padding:22px 24px 20px;background:#fffaf0}
body[data-spark-page=shadowing] .word-popup-heading{gap:10px;margin:0 0 18px}
body[data-spark-page=shadowing] .word-popup-title{display:flex;align-items:center;gap:12px;min-width:0;margin-right:auto}
body[data-spark-page=shadowing] #lookup-word{color:var(--practice-gold-ink);font-size:28px;overflow-wrap:anywhere}
body[data-spark-page=shadowing] #lookup-level{flex:none;padding:3px 10px;border-radius:7px;background:var(--practice-green-bg);color:#315e39;font-size:14px;font-weight:650}
body[data-spark-page=shadowing] #lookup-add{display:flex;align-items:center;gap:6px;flex:none;min-height:38px;padding:7px 13px;border:1px solid #e1bd58;border-radius:20px;background:var(--practice-gold);color:var(--practice-gold-ink);font-size:14px;font-weight:600;cursor:pointer}
body[data-spark-page=shadowing] #lookup-add:hover{background:#ffcf4b}
body[data-spark-page=shadowing] #lookup-add[aria-pressed=true]{background:var(--practice-green-bg);border-color:#a7c49c;color:#315e39}
body[data-spark-page=shadowing] .word-popup svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-spark-page=shadowing] #close-lookup{width:26px;height:30px;padding:4px}
body[data-spark-page=shadowing] .word-popup-pronunciation{display:flex;gap:10px;margin-bottom:12px}
body[data-spark-page=shadowing] .word-popup-pronunciation button{display:flex;align-items:center;gap:9px;min-height:36px;padding:5px 13px;border:1px solid #d9c9a4;border-radius:20px;background:var(--practice-surface);color:var(--practice-gold-ink);font-size:14px;cursor:pointer}
body[data-spark-page=shadowing] .word-popup-pronunciation button:disabled{opacity:.45;cursor:default}
body[data-spark-page=shadowing] .word-popup-pronunciation button:hover:not(:disabled){background:#fff1bf}
body[data-spark-page=shadowing] .word-popup-phonetics{display:flex;flex-wrap:wrap;gap:10px 20px;color:var(--practice-gold-ink);font-size:13px}
body[data-spark-page=shadowing] .word-popup-phonetics>span{display:flex;gap:7px;align-items:baseline}
body[data-spark-page=shadowing] .word-popup-phonetics strong{font-size:15px;font-weight:500}
body[data-spark-page=shadowing] .word-popup-definition{padding:22px 24px 24px;border-top:1px solid var(--practice-line)}
body[data-spark-page=shadowing] #lookup-part{display:inline-block;padding:2px 9px;border:1px solid #ddc995;border-radius:6px;background:#fff9e8;color:var(--practice-gold-ink);font-size:11px;font-weight:650;letter-spacing:.3px}
body[data-spark-page=shadowing] #lookup-meaning{margin:14px 0;font-size:19px;font-weight:500}
body[data-spark-page=shadowing] .word-popup-definition blockquote{margin:0;padding:0 0 0 14px;border-left:3px solid #e3cf94}
body[data-spark-page=shadowing] #lookup-context{color:var(--practice-gold-ink);font-style:normal;font-size:15px;line-height:1.7}
body[data-spark-page=shadowing] #lookup-context-translation{font-size:13px;line-height:1.7}
}

/* Keep dictionary lookup secondary to the practice content. */
@media(min-width:1024px){
body[data-spark-page=shadowing] .word-popup{width:340px;border-radius:12px}
body[data-spark-page=shadowing] .word-popup-top{padding:16px 18px 14px}
body[data-spark-page=shadowing] .word-popup-heading{gap:8px;margin-bottom:12px}
body[data-spark-page=shadowing] .word-popup-title{gap:8px}
body[data-spark-page=shadowing] #lookup-word{font-size:22px;line-height:1.35}
body[data-spark-page=shadowing] #lookup-level{padding:2px 7px;font-size:11px;border-radius:6px}
body[data-spark-page=shadowing] #lookup-add{min-height:30px;padding:4px 9px;gap:4px;font-size:12px}
body[data-spark-page=shadowing] #lookup-add svg{width:15px;height:15px}
body[data-spark-page=shadowing] #close-lookup{width:24px;height:28px;padding:3px}
body[data-spark-page=shadowing] #close-lookup svg{width:17px;height:17px}
body[data-spark-page=shadowing] .word-popup-pronunciation{gap:8px;margin-bottom:8px}
body[data-spark-page=shadowing] .word-popup-pronunciation button{min-height:30px;padding:3px 10px;gap:6px;font-size:12px}
body[data-spark-page=shadowing] .word-popup-pronunciation svg{width:16px;height:16px}
body[data-spark-page=shadowing] .word-popup-phonetics{font-size:11px;gap:8px 14px}
body[data-spark-page=shadowing] .word-popup-phonetics>span{gap:5px}
body[data-spark-page=shadowing] .word-popup-phonetics strong{font-size:13px}
body[data-spark-page=shadowing] .word-popup-definition{padding:14px 18px 16px}
body[data-spark-page=shadowing] #lookup-part{font-size:10px;padding:1px 7px}
body[data-spark-page=shadowing] #lookup-meaning{font-size:16px;line-height:1.5;margin:10px 0 12px}
body[data-spark-page=shadowing] .word-popup-definition blockquote{padding-left:10px;border-left-width:2px}
body[data-spark-page=shadowing] #lookup-context{font-size:13px;line-height:1.6;margin-bottom:6px}
body[data-spark-page=shadowing] #lookup-context-translation{font-size:12px;line-height:1.6}
}

@media(min-width:1024px){
body[data-spark-page=shadowing] #shadow-feedback{padding:0;margin:18px 0 0;border:0;border-radius:0;background:none;box-shadow:none}
body[data-spark-page=shadowing] .shadow-workspace[data-phase=feedback] :is(#shadow-state,#shadow-state-help){display:none}
body[data-spark-page=shadowing] .shadow-result-score{display:flex;align-items:center;gap:7px;margin-bottom:12px;font-size:13px;color:var(--practice-muted)}
body[data-spark-page=shadowing] #shadow-feedback svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-spark-page=shadowing] .shadow-spoken{padding:16px 18px;border:1px solid var(--practice-line);border-radius:12px;background:var(--practice-surface)}
body[data-spark-page=shadowing] #shadow-feedback .shadow-spoken-label{margin:0 0 5px;font-size:13px;color:var(--practice-muted)}
body[data-spark-page=shadowing] #shadow-feedback #shadow-spoken-text{margin:0 0 14px;font-size:16px;font-style:italic;line-height:1.75}
body[data-spark-page=shadowing] .shadow-word-results{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:16px 0 18px}
body[data-spark-page=shadowing] .shadow-word-result{display:flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid #b5cdae;border-radius:9px;background:#f0f6ed;color:#386735;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;line-height:1.5}
body[data-spark-page=shadowing] .shadow-word-result[data-result=practice]{border-color:#ddc180;background:#fff6e0;color:#8a5b13}
body[data-spark-page=shadowing] #shadow-ai-advice{margin-top:12px;padding:16px 18px;border:1px solid #d6e3ce;border-radius:12px;background:#f1f7ed}
body[data-spark-page=shadowing] #shadow-ai-advice h3{margin:0 0 8px;font-size:15px}
body[data-spark-page=shadowing] #shadow-ai-advice p{margin:0 0 10px;font-size:13px;line-height:1.8}
body[data-spark-page=shadowing] #shadow-ai-advice .feedback-evidence{margin:0;padding:10px 12px;background:var(--practice-surface);border-radius:8px}
body[data-spark-page=shadowing] #shadow-feedback .practice-actions{margin-top:20px}
}

@media(min-width:1024px){
body[data-spark-page=shadowing] .shadow-spoken-heading{display:flex;align-items:center;gap:6px;margin-bottom:5px}
body[data-spark-page=shadowing] #shadow-feedback .shadow-spoken-label{margin:0}
body[data-spark-page=shadowing] #shadow-replay-recording{display:grid;place-items:center;width:28px;height:28px;padding:5px;border:0;border-radius:6px;background:transparent;color:var(--practice-gold-ink);cursor:pointer}
body[data-spark-page=shadowing] #shadow-replay-recording:disabled{opacity:.45;cursor:default}
body[data-spark-page=shadowing] #shadow-feedback #shadow-spoken-text{margin:0}
}

/* Recording pulse stays around the active stop button without moving its hit area. */
@media(min-width:1024px){
body[data-spark-page=shadowing] .shadow-workspace[data-phase=recording] #shadow-stop{animation:shadow-recording-pulse 1.35s ease-in-out infinite}
@keyframes shadow-recording-pulse{
0%,100%{box-shadow:0 0 0 0 #854b3738;filter:brightness(1)}
50%{box-shadow:0 0 0 7px #854b3700;filter:brightness(1.12)}
}
}

/* Visual refinement within the shared Dictation layout. */
@media(min-width:1024px){
body[data-spark-page=shadowing]{--shadow-reading-bg:#faf8ef;--shadow-soft-border:#e9e3d3;--shadow-note-bg:#f5f8f1}
body[data-spark-page=shadowing] .shadow-workspace{border-color:#e9e3d3;box-shadow:0 4px 16px #68522008}
body[data-spark-page=shadowing] .shadow-workspace .section-row{margin-bottom:16px}
body[data-spark-page=shadowing] .shadow-workspace .mode-switch{margin-bottom:18px;background:#f7f5ed;border-color:#eae4d4}
body[data-spark-page=shadowing] .shadow-workspace .mode-switch button{transition:background-color .15s ease,color .15s ease}
body[data-spark-page=shadowing] .shadow-workspace .mode-switch button:not([aria-pressed=true]):hover:not(:disabled){background:#eeeadc;color:var(--practice-ink)}
body[data-spark-page=shadowing] .shadow-control-row{background:#f8f6ee;border:1px solid #eee9dc}
body[data-spark-page=shadowing] .shadow-reading-toolbar label{border-radius:6px;transition:color .15s ease}
body[data-spark-page=shadowing] .shadow-reading-toolbar label:not(.is-visible){color:#77796f}
body[data-spark-page=shadowing] .shadow-reading-toolbar label.is-visible{color:#5c604f}
body[data-spark-page=shadowing] .shadow-reading{padding:24px 22px 18px;background:var(--shadow-reading-bg);border:1px solid #eee9dc}
body[data-spark-page=shadowing] #shadow-text{row-gap:20px;column-gap:8px;line-height:1.6;color:#34382f}
body[data-spark-page=shadowing] .shadow-word{gap:4px}
body[data-spark-page=shadowing] .shadow-word .lookup-token{transition:background-color .15s ease,color .15s ease;box-decoration-break:clone}
body[data-spark-page=shadowing] .shadow-word .lookup-token:hover,body[data-spark-page=shadowing] .shadow-word .lookup-token[aria-expanded=true]{background:#ffecad;color:#674718}
body[data-spark-page=shadowing] .shadow-word-ipa{font-size:13px;color:#6b6e61;line-height:1.6}
body[data-spark-page=shadowing] .shadow-reading .shadow-lookup-hint{margin-top:22px;font-size:12px;color:#737669}
body[data-spark-page=shadowing] .shadow-reading .shadow-lookup-hint svg{width:16px;height:16px}
body[data-spark-page=shadowing] #shadow-feedback{margin-top:24px;padding-top:20px;border-top:1px solid var(--shadow-soft-border)}
body[data-spark-page=shadowing] .shadow-result-score{display:inline-flex;gap:7px;margin-bottom:14px;padding:5px 10px;border-radius:7px;background:#edf4e7;color:#3c6334;font-size:12px;font-weight:600;line-height:1.6;font-variant-numeric:tabular-nums}
body[data-spark-page=shadowing] #shadow-feedback .shadow-result-score svg{width:15px;height:15px}
body[data-spark-page=shadowing] .shadow-spoken{padding:14px 18px 16px;background:#fffefb;border-color:var(--shadow-soft-border)}
body[data-spark-page=shadowing] .shadow-spoken-heading{margin-bottom:8px;gap:8px}
body[data-spark-page=shadowing] #shadow-feedback .shadow-spoken-label{font-size:12px;font-weight:500}
body[data-spark-page=shadowing] #shadow-replay-recording{width:28px;height:28px;border:1px solid #e7dfc9;background:#fffaf0;border-radius:7px;transition:background-color .15s ease,border-color .15s ease}
body[data-spark-page=shadowing] #shadow-replay-recording:hover,body[data-spark-page=shadowing] #shadow-replay-recording[aria-pressed=true]{background:#fff0bb;border-color:#ccb36e}
body[data-spark-page=shadowing] #shadow-feedback #shadow-spoken-text{font-size:16px;font-style:normal;line-height:1.75;color:#45493e}
body[data-spark-page=shadowing] .shadow-word-results{margin:16px 0 20px;gap:8px}
body[data-spark-page=shadowing] .shadow-word-result{border-color:#c7d9bd;background:#f3f8ef;color:#386331;border-radius:8px;font-size:13px;padding:7px 10px;gap:6px}
body[data-spark-page=shadowing] #shadow-feedback .shadow-word-result svg{width:15px;height:15px}
body[data-spark-page=shadowing] .shadow-word-result[data-result=practice]{background:#fff5db;border-color:#dfbc64;color:#80500c}
body[data-spark-page=shadowing] #shadow-ai-advice{position:relative;margin-top:0;padding:18px 20px;background:var(--shadow-note-bg);border-color:#dce5d5}
body[data-spark-page=shadowing] #shadow-ai-advice h3{margin:0 0 8px;font-size:15px;line-height:1.5;font-weight:600;color:#36532c}
body[data-spark-page=shadowing] #shadow-ai-advice p{font-size:14px;line-height:1.75;color:#555e4d}
body[data-spark-page=shadowing] #shadow-ai-advice .feedback-evidence{padding:10px 13px;border:1px solid #e5ebdf;border-left:3px solid #b2c69f;background:#fffefb;font-size:13px;color:#44503b}
body[data-spark-page=shadowing] .word-popup{box-shadow:0 12px 36px #34382f1f,0 2px 6px #34382f0a;border-color:#e3dbc5}
body[data-spark-page=shadowing] .word-popup-pronunciation button{transition:background-color .15s ease}
}
@media(min-width:1200px){body[data-spark-page=shadowing] .shadow-reading-toolbar label{font-size:12px}}

@media(min-width:1024px){
body[data-spark-page=shadowing] .shadow-source-stack{grid-template-columns:minmax(0,1fr)}
body[data-spark-page=shadowing] .shadow-source-stack>aside{min-width:0}
body[data-spark-page=shadowing] .shadow-source-stack audio{min-width:0;width:100%}
}

@media(min-width:1024px){
body[data-spark-page=shadowing] .shadow-control-row{margin-bottom:16px}
body[data-spark-page=shadowing] .shadow-source-stack .source-card{overflow:hidden}
}

@media(min-width:1024px){
body[data-spark-page=shadowing] .section-row>#shadow-progress{margin-left:0;font-size:12px}
body[data-spark-page=shadowing] .shadow-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
body[data-spark-page=shadowing] .shadow-result-heading .shadow-result-score{margin-bottom:0}
}
