.tece-practice-app{max-width:900px;margin:24px auto;padding:18px;color:#18324b;font-family:inherit}.tece-practice-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.tece-practice-toolbar label{display:flex;align-items:center;gap:10px;font-weight:600}.tece-practice-topic{min-width:180px;padding:10px 12px;border:1px solid #d4deea;border-radius:9px;background:#fff}.tece-practice-count{color:#6c7b8b;font-size:14px}.tece-practice-card{background:#fff;border:1px solid #dbe6f0;border-radius:18px;padding:clamp(20px,4vw,38px);box-shadow:0 8px 28px rgba(20,55,90,.07);text-align:center}.tece-practice-kicker{font-size:12px;font-weight:800;letter-spacing:.12em;color:#3976b9;margin-bottom:10px}.tece-practice-topic-name{color:#708398;font-size:14px;margin-bottom:12px}.tece-practice-question{font-size:clamp(22px,3vw,32px);line-height:1.4;color:#172f49;margin:0 auto 22px}.tece-practice-hint{background:#f1f7ff;border:1px dashed #a9c9ec;border-radius:12px;padding:14px;margin:12px 0;color:#32699d;font-size:17px}.tece-practice-answer{background:#eaf8ef;border:1px solid #a7dfb8;border-radius:12px;padding:18px;margin:12px 0;color:#137a3a;font-size:clamp(20px,3vw,28px);font-weight:700;overflow-wrap:anywhere}.tece-practice-toggle{display:block;width:min(100%,340px);margin:20px auto 0;border:0;border-radius:14px;background:#159b4b;color:#fff;padding:14px 20px;font-size:16px;font-weight:700;cursor:pointer}.tece-practice-toggle:hover{background:#11833f;color:#fff}.tece-practice-nav{display:flex;justify-content:space-between;gap:12px;margin-top:14px}.tece-practice-nav button{border:1px solid #b9cde0;border-radius:10px;background:#fff;color:#245b91;padding:11px 18px;cursor:pointer}.tece-practice-nav button:disabled{opacity:.4;cursor:not-allowed}.tece-practice-empty{padding:18px;border:1px solid #dbe6f0;border-radius:12px}

/* Integrated practice tab + live per-word feedback */
.tece-main-tabs{display:flex;gap:10px;margin:18px 0 22px;padding:5px;background:#edf5fb;border-radius:14px}
.tece-main-tab{flex:1;border:0;border-radius:11px;padding:15px 18px;background:transparent;color:#23618f;font:inherit;font-weight:800;cursor:pointer;transition:.2s}
.tece-main-tab.is-active{background:#087fbd;color:#fff;box-shadow:0 4px 14px rgba(8,127,189,.2)}
.tece-tab-panel[hidden]{display:none!important}
.tece-practice-app{max-width:none;margin:0 auto;padding:0}
.tece-practice-type-wrap{position:relative;margin:18px 0 8px;text-align:left}
.tece-practice-typed{position:absolute;inset:0;padding:14px 16px;white-space:pre;overflow:hidden;pointer-events:none;font:inherit;font-size:18px;line-height:1.5;letter-spacing:normal;color:#1d2939;border:2px solid transparent;border-radius:12px;box-sizing:border-box}
.tece-practice-typed .tece-word-correct{color:#159b4b;font-weight:700}
.tece-practice-typed .tece-word-wrong{color:#dc2626;font-weight:700}
.tece-practice-typed .tece-word-pending{color:#667085}
.tece-practice-input{position:relative;z-index:1;width:100%;box-sizing:border-box;padding:14px 16px;border:2px solid #1686d9;border-radius:12px;background:transparent;color:transparent;caret-color:#17324d;font:inherit;font-size:18px;line-height:1.5;letter-spacing:normal}
.tece-practice-input::placeholder{color:#98a2b3}
.tece-practice-input:focus{outline:3px solid rgba(22,134,217,.13)}
.tece-practice-feedback{margin:8px 0;color:#667085;font-size:14px;text-align:left}
.tece-practice-feedback.is-success{color:#138a43;font-weight:800}
@media(max-width:600px){.tece-main-tabs{gap:5px}.tece-main-tab{padding:12px 8px;font-size:14px}.tece-practice-typed,.tece-practice-input{font-size:16px;padding:12px}}
/* v1.5.0 polished integrated practice layout */
.tece-practice-app{max-width:none;margin:0 auto;padding:clamp(12px,2.5vw,30px);color:#18324b}
.tece-practice-toolbar{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr);align-items:center;gap:16px;margin:0 0 20px}
.tece-practice-toolbar label{display:block;font-weight:700;color:#193b5c}
.tece-practice-topic{display:block;width:100%;margin-top:8px;min-height:48px;font:inherit;font-size:16px}
.tece-practice-countbox{background:#f0f6fb;border-radius:14px;padding:14px 18px;display:flex;flex-direction:column;gap:4px}
.tece-practice-countbox strong{font-size:20px;color:#173b62}.tece-practice-countbox span{color:#55718c;font-size:14px}
.tece-practice-card{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:24px;text-align:left;background:#fff7f0;border:0;border-radius:18px;padding:clamp(16px,2.5vw,28px);box-shadow:none}
.tece-practice-left{min-width:0}.tece-practice-kicker{display:inline-block;background:#fff0cc;color:#a84d00;border-radius:20px;padding:7px 14px;letter-spacing:0;font-size:14px;margin-bottom:10px}
.tece-practice-question{text-align:left;margin:0 0 18px;font-size:clamp(22px,2.3vw,30px);color:#142d50}
.tece-practice-hintbox{background:#eaf6ff;border-radius:13px;padding:14px 18px;margin-bottom:14px;color:#1169ad}.tece-practice-hintbox strong{display:block;margin-bottom:5px}.tece-practice-hint{display:block;padding:0;margin:0;border:0;background:transparent;color:#193b60;font-size:19px}
.tece-practice-type-wrap{margin:14px 0 8px;min-height:56px}.tece-practice-typed{font-family:inherit;font-size:18px;line-height:1.5;padding:14px 16px;white-space:pre;overflow:hidden;pointer-events:none;box-sizing:border-box}.tece-practice-input{position:absolute;inset:0;width:100%;height:100%;padding:14px 16px;font-family:inherit;font-size:18px;line-height:1.5;box-sizing:border-box;background:transparent;color:transparent;caret-color:#17324d;border:2px solid #1686d9;border-radius:12px;z-index:1}.tece-practice-type-wrap{position:relative}.tece-practice-typed{position:absolute;inset:0;border:2px solid transparent;border-radius:12px;z-index:2}.tece-practice-input::placeholder{color:transparent}.tece-practice-input:focus{outline:3px solid rgba(22,134,217,.12)}
.tece-practice-feedback{background:#fff0c2;border-radius:12px;padding:13px 16px;margin:8px 0;color:#8b4a00;font-size:14px}.tece-practice-feedback.is-success{background:#e7f8ec;color:#128343;font-weight:800}
.tece-practice-right{border-left:1px solid #e6ded6;padding-left:24px;display:flex;flex-direction:column;gap:14px;justify-content:flex-start}.tece-practice-toggle{width:100%;margin:0;background:#159b4b;padding:16px;border-radius:12px}.tece-practice-answer{margin:0;background:#e7f8ec;border:0;border-radius:12px;color:#117b3a;text-align:left;font-size:20px}.tece-practice-success{padding:18px 8px;text-align:center;color:#128343;font-size:27px;font-weight:800}.tece-practice-success small{display:block;font-size:14px;font-weight:400;margin-top:8px}
.tece-practice-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:18px 0 24px}.tece-practice-nav button{font:inherit;font-weight:700;padding:14px 18px}.tece-practice-nav .tece-practice-next{justify-self:end;background:#079ec1;color:#fff;border-color:#079ec1}.tece-practice-pagination{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap}.tece-practice-pagination .tece-practice-page{width:38px;height:38px;padding:0;border:0;border-radius:50%;background:#edf3f8;color:#315c7f;font-weight:600}.tece-practice-pagination .tece-practice-page.is-active{background:#0ba1c1;color:#fff}.tece-practice-ellipsis{color:#73869a;padding:0 2px}
.tece-practice-guide{background:#f4f8fc;border-radius:16px;padding:20px 24px}.tece-practice-guide h3{margin:0 0 8px;color:#173b62}.tece-practice-instruction{margin:0 0 14px;color:#536b82}.tece-practice-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.tece-practice-steps span{font-size:13px;font-weight:600;color:#2b5577;background:#fff;border-radius:10px;padding:10px}
@media(max-width:700px){.tece-practice-toolbar{grid-template-columns:1fr}.tece-practice-card{grid-template-columns:1fr}.tece-practice-right{border-left:0;border-top:1px solid #e6ded6;padding:16px 0 0}.tece-practice-nav{grid-template-columns:1fr 1fr}.tece-practice-pagination{grid-column:1/-1;grid-row:1}.tece-practice-nav .tece-practice-prev{grid-column:1;grid-row:2}.tece-practice-nav .tece-practice-next{grid-column:2;grid-row:2}.tece-practice-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tece-practice-main-heading{margin:0 0 18px;text-align:left;color:#173b62;font-size:clamp(22px,2.4vw,30px)}
.tece-practice-typed{z-index:0}.tece-practice-input{z-index:1}

/* Integrated English dialogue listening tab */
.tece-dialogue-app{max-width:none;margin:0 auto;padding:clamp(16px,3vw,32px);color:#18324b}
.tece-dialogue-heading{margin:0 0 18px;color:#173b62;font-size:clamp(24px,2.5vw,32px)}
.tece-dialogue-card{background:#fff;border:1px solid #dceaf5;border-radius:18px;padding:clamp(20px,4vw,38px);box-shadow:0 8px 28px rgba(20,55,90,.07)}
.tece-dialogue-label{display:inline-block;padding:8px 14px;border-radius:20px;background:#e8f5ff;color:#126da8;font-size:14px;font-weight:800;margin-bottom:18px}
.tece-dialogue-text{white-space:pre-wrap;font-size:clamp(18px,2.1vw,24px);line-height:1.9;color:#193b60;overflow-wrap:anywhere}
.tece-dialogue-empty{color:#a84d00;background:#fff4d8;border-radius:10px;padding:12px}
.tece-dialogue-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:24px;padding-top:20px;border-top:1px solid #e7eef5}
.tece-dialogue-controls label{display:flex;flex-direction:column;gap:7px;font-weight:700;color:#244764}
.tece-dialogue-controls select{min-height:44px;padding:9px 12px;border:1px solid #cbd9e6;border-radius:9px;background:#fff;color:#18324b;font:inherit}
.tece-dialogue-play,.tece-dialogue-settings-toggle{min-height:44px;border:0;border-radius:10px;padding:10px 20px;font:inherit;font-weight:800;cursor:pointer}
.tece-dialogue-play{background:#079ec1;color:#fff}.tece-dialogue-settings-toggle{background:#eaf3fa;color:#1d6598}
.tece-dialogue-settings{flex-basis:100%;padding:14px;background:#f2f7fb;border-radius:10px}.tece-dialogue-note{color:#60788e;font-size:14px;margin:14px 0 0}
@media(max-width:600px){.tece-dialogue-controls{align-items:stretch}.tece-dialogue-controls label,.tece-dialogue-controls select,.tece-dialogue-play,.tece-dialogue-settings-toggle{width:100%;box-sizing:border-box}}

/* v1.5.2: match the compact reference practice design and keep live colors visible */
.tece-practice-questionline{display:flex;align-items:flex-start;gap:14px;margin:0 0 18px}
.tece-practice-speak{flex:0 0 42px;width:42px;height:42px;border:0;border-radius:50%;background:#dff2ff;color:#087fbd;font-size:20px;cursor:pointer}
.tece-practice-questionline>div{min-width:0}
.tece-practice-kicker{font-size:12px;padding:4px 10px;margin:0 0 4px;letter-spacing:0}
.tece-practice-question{font-size:clamp(18px,2vw,24px);line-height:1.35;margin:0;color:#172f49}
.tece-practice-hintbox{display:flex;align-items:center;gap:12px}
.tece-practice-hinticon{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#d9efff;color:#087fbd;font-size:22px;font-weight:700}
.tece-practice-hintcontent{min-width:0;flex:1}
.tece-practice-hintbox strong{margin-bottom:3px}
.tece-practice-type-wrap{min-height:46px}
.tece-practice-typed{z-index:2!important;display:block;pointer-events:none;white-space:pre;overflow:hidden;color:#1d2939;font:inherit;font-size:18px;line-height:1.5;padding:10px 13px;border:2px solid transparent;box-sizing:border-box}
.tece-practice-input{z-index:1!important;height:100%;min-height:46px;padding:10px 13px;font:inherit;font-size:18px;line-height:1.5;color:transparent!important;-webkit-text-fill-color:transparent;caret-color:#17324d;letter-spacing:normal;box-sizing:border-box}
.tece-practice-input::selection{background:rgba(22,134,217,.22)}
.tece-practice-feedback{display:flex;align-items:center;gap:10px;background:#fff0c2;border-radius:10px;padding:11px 13px;margin:8px 0 0;color:#8b4a00;font-size:13px;line-height:1.45}
.tece-practice-info-icon{flex:0 0 20px;width:20px;height:20px;border:2px solid currentColor;border-radius:50%;display:inline-grid;place-items:center;font-size:13px;font-weight:800}
.tece-practice-feedback.is-success{background:#e7f8ec;color:#128343}
.tece-practice-guide h3{display:flex;align-items:center;gap:9px}
@media(max-width:700px){.tece-practice-questionline{gap:10px}.tece-practice-typed,.tece-practice-input{font-size:16px;padding:10px 11px}}

/* v1.5.3: colorful, icon-led practice guide matching the supplied design */
.tece-practice-guide{background:linear-gradient(110deg,#f5f9fd 0%,#f8fbfe 100%);border:1px solid #e6f0f8;border-radius:16px;padding:18px 22px;box-shadow:0 4px 16px rgba(26,75,112,.04)}
.tece-practice-guide h3{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:#17436b;font-size:18px;font-weight:800}
.tece-guide-book{display:inline-flex;align-items:center;justify-content:center;font-size:22px;line-height:1}
.tece-practice-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tece-practice-step{display:flex;align-items:flex-start;gap:10px;min-width:0;background:transparent;padding:0;border-radius:0;color:#244764}
.tece-step-number{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:800;box-shadow:0 3px 8px rgba(20,55,90,.12)}
.tece-step-number.step-blue{background:linear-gradient(135deg,#2f9cf4,#1478e8)}
.tece-step-number.step-purple{background:linear-gradient(135deg,#a855f7,#7138df)}
.tece-step-number.step-green{background:linear-gradient(135deg,#20bd83,#119765)}
.tece-step-number.step-orange{background:linear-gradient(135deg,#ff8b38,#f06421)}
.tece-practice-step strong{display:block;padding-top:3px;color:#183b5d;font-size:13px;line-height:1.4;font-weight:800}
.tece-practice-step small{display:block;margin-top:5px;color:#667f96;font-size:12px;line-height:1.45;font-weight:400}
@media(max-width:700px){.tece-practice-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.tece-practice-guide{padding:16px}}
@media(max-width:420px){.tece-practice-steps{grid-template-columns:1fr}}

/* Sentence-level live feedback: color matching character sequence, not isolated words. */
.tece-practice-typed .tece-sequence-correct{color:#159b4b;font-weight:700}
.tece-practice-typed .tece-sequence-wrong{color:#dc2626;font-weight:700}


/* v1.5.6: keep the visible grading layer below the real input caret. */
.tece-practice-type-wrap{position:relative;}
.tece-practice-typed{z-index:0!important;pointer-events:none!important;}
.tece-practice-input{z-index:1!important;position:absolute!important;inset:0!important;color:transparent!important;-webkit-text-fill-color:transparent!important;caret-color:#17324d!important;background:transparent!important;}

/* v1.5.10: use a visual caret in the colored overlay so it stays at the end of typed text. */
.tece-practice-input{caret-color:transparent!important;}
.tece-practice-caret{display:inline-block;width:2px;height:1.12em;margin-left:1px;background:#17324d;vertical-align:-.18em;animation:tece-caret-blink 1s steps(2,start) infinite;}
@keyframes tece-caret-blink{to{visibility:hidden}}
