/* Word Workshop keeps sounds, movable letters and feedback in normal page flow. */
.phonics-page { --phonics-ink: #294f3c; --phonics-muted: #6d7a62; width: 100%; max-width: 1120px; margin-inline: auto; padding-bottom: 20px; color: var(--phonics-ink); }
.phonics-page [hidden] { display: none !important; }
.phonics-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.phonics-back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-bottom: 5px; color: #61765b; font-size: 12px; }
.phonics-back:hover { color: #325f3e; }
.phonics-eyebrow { color: #788768; font-size: 9px; font-weight: 1000; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.phonics-header h1 { margin-top: 5px; color: #2c553c; font-size: clamp(31px, 4vw, 43px); font-weight: 1000; line-height: 1.1; letter-spacing: -.045em; }
.phonics-intro { margin-top: 9px; color: var(--phonics-muted); font-size: 13px; line-height: 1.5; }
.phonics-session-count { flex: none; max-width: 175px; padding: 10px 14px; border: 1px solid #dce4cd; border-radius: 12px; background: #edf2e2; color: #6d815b; font-size: 11px; line-height: 1.6; text-align: right; }
.phonics-session-count strong { display: block; color: #507047; font-size: 14px; font-weight: 1000; }
.phonics-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.phonics-select-label { display: grid; gap: 5px; min-width: 140px; color: #647a59; font-size: 10px; font-weight: 900; }
.phonics-select-label select { min-width: 0; width: 100%; min-height: 46px; padding: 9px 32px 9px 13px; border: 1px solid #d7e1cb; border-radius: 12px; background: #fffef7; color: #406442; font-size: 12px; font-weight: 850; }
.phonics-toolbar-note { max-width: 40ch; margin: 0 0 9px auto; color: #8a927b; font-size: 10px; line-height: 1.6; }
.phonics-path-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; padding: 13px 16px; border: 1px solid #d8e3cc; border-radius: 14px; background: #edf3e2; }
.phonics-path-note > div > p:last-child { max-width: 65ch; margin-top: 4px; color: #6c7e60; font-size: 11px; line-height: 1.6; }
.phonics-path-note > a { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 11px; border: 1px solid #cedebd; border-radius: 10px; background: #fbfdf4; color: #527344; font-size: 11px; font-weight: 900; }
.phonics-layout { display: grid; grid-template-columns: minmax(0, 1fr) 246px; align-items: start; gap: 23px; }
.phonics-workbench { min-width: 0; padding: 23px; border: 1px solid #dce4d0; border-radius: 25px; background: #fffef8; box-shadow: 0 5px 0 #e8ebdd, 0 16px 30px #3f5e2208; }
.phonics-stage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0 0 19px; border-bottom: 1px solid #ebecdf; list-style: none; }
.phonics-stage-list li { display: flex; align-items: center; gap: 9px; min-width: 0; color: #8c967c; font-size: 11px; }
.phonics-stage-list li > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid #e0e5d3; border-radius: 9px; background: #f6f7ee; color: #92a082; font-size: 11px; }
.phonics-stage-list [aria-current="step"] { color: #4a6f44; font-weight: 1000; }
.phonics-stage-list [aria-current="step"] > span { border-color: #b8d2a3; background: #e7f0d5; color: #648653; }
.phonics-stage-list .phonics-stage-done > span { border-color: #cad9bb; background: #edf4e1; color: #6b8d57; }
.phonics-task-heading { margin-top: 21px; }
.phonics-task-heading h2 { margin-top: 5px; color: #355c40; font-size: clamp(23px, 3vw, 30px); font-weight: 1000; line-height: 1.2; letter-spacing: -.035em; }
.phonics-task-heading > p:last-child { margin-top: 10px; color: #728165; font-size: 12px; line-height: 1.65; }
.phonics-sounds { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); align-items: center; gap: 6px; margin-top: 20px; }
.phonics-sound { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 108px; min-width: 0; padding: 13px 8px; border: 1px solid #d8e2cb; border-radius: 18px; background: linear-gradient(#f8faed, #f0f4e2); color: #6a855c; box-shadow: 0 4px 0 #e0e7ce; }
.phonics-sound:hover:not(:disabled) { border-color: #a3bf8d; background: #ecf3db; }
.phonics-sound[aria-pressed="true"] { border-color: #8cae79; background: #e2efcf; box-shadow: 0 2px 0 #bcd1a4; }
.phonics-sound-number { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #dce5ca; border-radius: 50%; background: #fffdf5; color: #769164; font-size: 22px; font-weight: 1000; line-height: 1; }
.phonics-sound-caption { color: #718364; font-size: 10px; font-weight: 900; }
.phonics-sound-icon { display: flex; align-items: center; gap: 3px; height: 13px; color: #9eb389; }
.phonics-sound-icon i { display: block; width: 3px; height: 7px; border-radius: 2px; background: currentColor; }
.phonics-sound-icon i:nth-child(2) { height: 13px; }
.phonics-sound-arrow { color: #b0bda0; font-size: 18px; text-align: center; }
.phonics-listen-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: 19px; }
.phonics-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid #d5e0c8; border-radius: 12px; background: #f3f7e8; color: #58734b; font-size: 12px; font-weight: 900; line-height: 1.4; text-align: center; }
.phonics-button:hover:not(:disabled) { border-color: #acc699; background: #eaf2db; }
.phonics-primary { border-color: #3c6b4b; background: #3c6b4b; color: #fffced; box-shadow: 0 3px 0 #2b5137; }
.phonics-primary:hover:not(:disabled) { border-color: #2b5c3c; background: #2b5c3c; }
.phonics-button:disabled, .phonics-sound:disabled { opacity: .48; box-shadow: none; }
.phonics-audio-status { min-height: 30px; margin-top: 11px; color: #859075; font-size: 10px; line-height: 1.5; text-align: center; }
.phonics-choice-heading { margin-top: 18px; color: #6c7c5d; font-size: 12px; font-weight: 900; }
.phonics-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.phonics-choice { display: grid; place-items: center; min-width: 0; min-height: 70px; padding: 12px 7px; border: 2px solid #dce5cd; border-radius: 15px; background: #f8faef; color: #446a42; font-size: 29px; font-weight: 900; line-height: 1.2; }
.phonics-choice:hover:not(:disabled) { border-color: #a8c093; background: #eef5e0; }
.phonics-choice-wrong { border-color: #d6bea1; border-style: dashed; background: #fbefdc; color: #93734f; }
.phonics-choice:disabled { cursor: default; }
.phonics-feedback { display: flex; align-items: flex-start; gap: 9px; min-height: 43px; margin-top: 18px; padding: 12px 14px; border: 1px solid #e6e7d7; border-radius: 12px; background: #f8f8ec; color: #758164; font-size: 12px; line-height: 1.6; }
.phonics-feedback > span { flex: none; color: #92a07b; font-size: 16px; line-height: 1.4; }
.phonics-feedback[data-tone="retry"] { border-color: #e3d0af; background: #fff4e0; color: #886c42; }
.phonics-feedback[data-tone="success"] { border-color: #c8dcb5; background: #edf5e2; color: #527745; }
.phonics-bottom-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 15px; }
.phonics-help-button { min-height: 44px; padding: 9px 5px; border: 0; border-radius: 7px; background: transparent; color: #87916f; font-size: 11px; font-weight: 900; }
.phonics-help-button:hover:not(:disabled) { color: #3d6c43; }
.phonics-help-button:disabled { opacity: .5; }
.phonics-model { display: grid; gap: 7px; justify-items: center; margin-top: 16px; padding: 15px; border: 1px dashed #c8d6b7; border-radius: 13px; background: #f1f5e5; color: #72865f; text-align: center; }
.phonics-model strong { color: #53794b; font-size: 27px; font-weight: 900; letter-spacing: .16em; }
.phonics-model p { color: #7e8c6b; font-size: 11px; line-height: 1.55; }
.phonics-model .phonics-eyebrow { font-size: 8px; }
.phonics-build { margin-top: 20px; }
.phonics-slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 380px; margin-inline: auto; }
.phonics-slot-wrap { min-width: 0; }
.phonics-slot { display: grid; place-items: center; width: 100%; min-height: 83px; padding: 9px; border: 2px dashed #d4ddc5; border-radius: 15px; background: #f8f8ed; color: #627c51; font-size: 36px; font-weight: 900; line-height: 1; }
.phonics-slot-filled { border: 1px solid #d0b582; background: linear-gradient(#fff0c8, #f5dfad); color: #87693a; box-shadow: 0 4px 0 #dfc38d; }
.phonics-slot:hover:not(:disabled) { border-color: #a2ba8d; }
.phonics-slot:disabled { cursor: default; }
.phonics-slot-number { color: #a7b497; font-size: 19px; }
.phonics-tile-instruction { margin: 17px 0 10px; color: #8c967b; font-size: 10px; line-height: 1.5; text-align: center; }
.phonics-tiles { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.phonics-tile { display: grid; place-items: center; width: 68px; min-height: 66px; padding: 9px; border: 1px solid #d5c08f; border-radius: 13px; background: linear-gradient(145deg, #fff2d1, #f1dca8); color: #8a6e3c; box-shadow: 0 4px 0 #dfc58e, inset 0 1px #fff9e3; font-size: 32px; font-weight: 900; line-height: 1; }
.phonics-tile:hover:not(:disabled) { border-color: #bba061; background: #ffe9b7; }
.phonics-tile:disabled { border-style: dashed; border-color: #dfe2d0; background: #f5f6ed; color: #b7bea9; box-shadow: none; opacity: .65; }
.phonics-build-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 20px; }
.phonics-key-help { margin-top: 11px; color: #919a82; font-size: 9px; line-height: 1.6; text-align: center; }
.phonics-guide { position: relative; min-width: 0; padding: 15px 20px 23px; overflow: hidden; border: 1px solid #dce4cf; border-radius: 25px; background: linear-gradient(145deg, #f0f3de, #e4edda); text-align: center; }
.phonics-guide img { display: block; width: 100%; height: 224px; margin-inline: auto; object-fit: contain; object-position: center bottom; }
.phonics-guide .phonics-eyebrow { margin-top: 12px; font-size: 8px; }
.phonics-guide h2 { margin-top: 8px; color: #4a6d43; font-size: 24px; font-weight: 1000; line-height: 1.16; letter-spacing: -.035em; }
.phonics-guide > div > p:not(.phonics-eyebrow) { margin-top: 12px; color: #7d896d; font-size: 11px; line-height: 1.7; }
.phonics-guide-note { margin-top: 19px; padding-top: 15px; border-top: 1px solid #d3dfc3; color: #8a9878; font-size: 10px; line-height: 1.7; }
.phonics-footnote { margin-top: 18px; color: #8e9980; font-size: 10px; line-height: 1.7; }
.phonics-summary { display: grid; justify-items: center; padding: 16px 0 8px; text-align: center; }
.phonics-summary-mark { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 17px; border: 1px solid #d1dfbc; border-radius: 50%; background: #edf4de; color: #85a26b; font-size: 29px; }
.phonics-summary h2 { color: #3c653f; font-size: 31px; font-weight: 1000; line-height: 1.15; letter-spacing: -.035em; }
.phonics-summary > p { max-width: 46ch; margin-top: 13px; color: #81906f; font-size: 12px; line-height: 1.65; }
.phonics-practiced-words { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.phonics-practiced-words span { padding: 7px 12px; border: 1px solid #dce5cd; border-radius: 10px; background: #f4f8e9; color: #67825a; font-size: 19px; }
.phonics-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 23px; text-align: left; }
.phonics-summary-card { padding: 16px; border: 1px solid #e1e7d3; border-radius: 15px; background: #fafbef; }
.phonics-summary-card h3 { color: #67815a; font-size: 12px; font-weight: 1000; }
.phonics-summary-card strong { display: block; margin-top: 7px; color: #64844e; font-size: 27px; font-weight: 1000; }
.phonics-summary-card p { margin-top: 5px; color: #8c997b; font-size: 10px; line-height: 1.6; }
.phonics-summary .phonics-button { margin-top: 24px; }
.phonics-empty { padding: 25px 8px; color: #7d8d6c; text-align: center; }
.phonics-empty h2 { color: #547744; font-size: 27px; }
.phonics-empty p { max-width: 48ch; margin: 13px auto 0; font-size: 12px; line-height: 1.7; }
@media (max-width: 950px) {
 .phonics-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 18px; }
 .phonics-workbench { padding: 20px; }
 .phonics-guide { padding-inline: 15px; }
 .phonics-guide img { height: 203px; }
 .phonics-tile { width: 58px; min-height: 60px; }
}
@media (max-width: 740px) {
 .phonics-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
 .phonics-guide { display: flex; align-items: center; gap: 22px; padding: 10px 22px 0; text-align: left; }
 .phonics-guide img { width: 126px; height: 161px; flex: none; }
 .phonics-guide > div { padding-bottom: 19px; }
 .phonics-guide .phonics-eyebrow { margin-top: 0; }
 .phonics-guide h2 { font-size: 24px; }
 .phonics-guide h2 br { display: none; }
 .phonics-guide-note { display: none; }
 .phonics-toolbar-note { margin-left: 0; }
}
@media (max-width: 480px) {
 .phonics-path-note { flex-direction: column; align-items: stretch; gap: 9px; padding: 12px; }
 .phonics-path-note > div > p:last-child { font-size: 10px; }
 .phonics-path-note > a { width: 100%; font-size: 10px; }
 .phonics-header { gap: 12px; margin-bottom: 17px; }
 .phonics-back { min-height: 44px; margin-bottom: 3px; font-size: 11px; }
 .phonics-header .phonics-eyebrow { display: none; }
 .phonics-header h1 { margin-top: 1px; font-size: 29px; }
 .phonics-intro { max-width: 22ch; margin-top: 7px; font-size: 11px; }
 .phonics-session-count { max-width: 95px; padding: 8px 10px; font-size: 9px; }
 .phonics-session-count strong { font-size: 12px; }
 .phonics-toolbar { gap: 10px; margin-bottom: 13px; }
 .phonics-select-label { flex: 1; min-width: 0; font-size: 9px; }
 .phonics-select-label select { min-height: 44px; padding-left: 10px; padding-right: 25px; font-size: 11px; }
 .phonics-toolbar-note { display: none; }
 .phonics-workbench { padding: 16px; border-radius: 21px; }
 .phonics-stage-list { gap: 7px; padding-bottom: 14px; }
 .phonics-stage-list li { gap: 6px; font-size: 10px; }
 .phonics-stage-list li > span { width: 25px; height: 25px; border-radius: 8px; font-size: 10px; }
 .phonics-task-heading { margin-top: 17px; }
 .phonics-task-heading h2 { font-size: 25px; }
 .phonics-task-heading > p:last-child { margin-top: 8px; font-size: 11px; }
 .phonics-sounds { gap: 4px; margin-top: 17px; grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr); }
 .phonics-sound { min-height: 94px; padding: 10px 4px; gap: 7px; border-radius: 14px; }
 .phonics-sound-number { width: 32px; height: 32px; font-size: 19px; }
 .phonics-sound-caption { font-size: 8px; }
 .phonics-sound-arrow { font-size: 13px; }
 .phonics-listen-actions { gap: 8px; margin-top: 17px; }
 .phonics-button { min-height: 46px; padding: 10px 12px; font-size: 11px; }
 .phonics-choice { min-height: 64px; padding: 10px 5px; font-size: 27px; border-radius: 12px; }
 .phonics-choices { gap: 8px; margin-top: 10px; }
 .phonics-choice-heading { margin-top: 15px; font-size: 11px; }
 .phonics-feedback { gap: 7px; margin-top: 15px; padding: 10px 11px; font-size: 11px; }
 .phonics-bottom-actions { gap: 8px; margin-top: 11px; }
 .phonics-help-button { font-size: 10px; }
 .phonics-slot-grid { gap: 8px; }
 .phonics-slot { min-height: 74px; font-size: 32px; border-radius: 12px; }
 .phonics-tile { width: 49px; min-height: 56px; border-radius: 11px; font-size: 28px; }
 .phonics-tiles { gap: 7px; }
 .phonics-tile-instruction { margin-top: 15px; font-size: 9px; }
 .phonics-build-actions { gap: 8px; margin-top: 17px; }
 .phonics-key-help { font-size: 8px; }
 .phonics-guide { gap: 13px; padding: 9px 16px 0; border-radius: 20px; }
 .phonics-guide img { width: 95px; height: 137px; }
 .phonics-guide > div { padding-bottom: 14px; }
 .phonics-guide .phonics-eyebrow { font-size: 7px; }
 .phonics-guide h2 { font-size: 21px; }
 .phonics-guide > div > p:not(.phonics-eyebrow) { margin-top: 9px; font-size: 10px; }
 .phonics-summary h2 { font-size: 28px; }
 .phonics-summary-grid { gap: 9px; }
 .phonics-summary-card { padding: 13px; }
 .phonics-summary-card strong { font-size: 24px; }
 .phonics-summary-card p { font-size: 9px; }
 .phonics-practiced-words span { font-size: 18px; }
}
@media (max-height: 720px) and (min-width: 741px) {
 .phonics-header { margin-bottom: 13px; }
 .phonics-header > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 19px; }
 .phonics-header .phonics-eyebrow, .phonics-intro { display: none; }
 .phonics-back { min-height: 44px; margin-bottom: 0; }
 .phonics-header h1 { margin: 0; font-size: 30px; }
 .phonics-workbench { padding: 18px; }
 .phonics-stage-list { padding-bottom: 14px; }
 .phonics-task-heading { margin-top: 16px; }
 .phonics-sound { min-height: 91px; }
 .phonics-guide img { height: 183px; }
 .phonics-guide h2 { font-size: 22px; }
}
