.tece-ipa-app{background:#fff;border:1px solid #dcecf8;border-radius:18px;padding:24px;box-shadow:0 8px 28px rgba(16,83,132,.07);color:#17365d}.tece-ipa-header{display:flex;gap:16px;align-items:center;margin-bottom:22px}.tece-ipa-mark{display:grid;place-items:center;flex:0 0 72px;height:72px;border-radius:16px;background:#fce7f3;color:#db2777;font-size:27px;font-weight:800}.tece-ipa-header h2{margin:0 0 6px;font-size:clamp(22px,3vw,30px);color:#102b62}.tece-ipa-header p{margin:0;color:#5d7898}.tece-ipa-tools{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.tece-ipa-filters{display:flex;gap:10px;flex-wrap:wrap}.tece-ipa-filters button{border:0;border-radius:13px;padding:11px 18px;background:#eaf4fc;color:#1769aa;font-weight:700;cursor:pointer}.tece-ipa-filters button.is-active{background:#078fc2;color:#fff;box-shadow:0 4px 12px #078fc233}.tece-ipa-filters button[data-ipa-filter=mono]{background:#fce7f3;color:#be185d}.tece-ipa-filters button[data-ipa-filter=diph]{background:#fff0df;color:#c2410c}.tece-ipa-filters button[data-ipa-filter=voiced]{background:#e5f8eb;color:#15803d}.tece-ipa-filters button.is-active{filter:saturate(1.25)}.tece-ipa-voice{display:flex;gap:10px;flex-wrap:wrap}.tece-ipa-voice label{font-size:13px;font-weight:600;color:#385777}.tece-ipa-voice select{display:block;margin-top:5px;padding:8px 10px;border:1px solid #cbd9e7;border-radius:9px;background:#fff;color:#17365d}.tece-ipa-group{border-radius:16px;padding:12px;margin:14px 0;background:#fdf0f6}.tece-ipa-group-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:0 2px 12px}.tece-ipa-group-head h3{margin:0;font-size:18px;color:#c2185b}.tece-ipa-group-head>span{border-radius:20px;padding:6px 11px;background:#fbd5e7;color:#a71550;font-size:13px;font-weight:700}.tece-ipa-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.tece-ipa-card{position:relative;text-align:left;min-height:104px;padding:12px 14px;border:1px solid #edf0f4;border-radius:13px;background:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;transition:transform .15s,box-shadow .15s}.tece-ipa-card:hover,.tece-ipa-card:focus-visible{transform:translateY(-2px);box-shadow:0 5px 16px #23476b20;outline:2px solid #8bc9f4}.tece-ipa-symbol{font-size:27px;line-height:1.25;color:#e11d65;margin-bottom:5px}.tece-ipa-speaker{position:absolute;right:10px;top:10px;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;background:#e0f2fe;font-size:17px}.tece-ipa-word{font-size:17px;font-weight:700;color:#1556a0}.tece-ipa-meaning{font-size:13px;color:#607b98}.ipa-orange{background:#fff4e6}.ipa-orange .tece-ipa-group-head h3,.ipa-orange .tece-ipa-symbol{color:#ea580c}.ipa-orange .tece-ipa-group-head>span{background:#ffdfbd;color:#c2410c}.ipa-blue{background:#eaf6ff}.ipa-blue .tece-ipa-group-head h3,.ipa-blue .tece-ipa-symbol{color:#0878c9}.ipa-blue .tece-ipa-group-head>span{background:#d0eaff;color:#0868ad}.ipa-green{background:#eaf9ee}.ipa-green .tece-ipa-group-head h3,.ipa-green .tece-ipa-symbol{color:#16a34a}.ipa-green .tece-ipa-group-head>span{background:#d0f2d9;color:#15803d}.tece-ipa-note{margin:16px 0 0;padding:13px 16px;border-radius:12px;background:#fff2cf;color:#86520b}.tece-ipa-panel[hidden]{display:none!important}@media(max-width:900px){.tece-ipa-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:560px){.tece-ipa-app{padding:13px}.tece-ipa-header{align-items:flex-start}.tece-ipa-mark{flex-basis:52px;height:52px;font-size:20px}.tece-ipa-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tece-ipa-filters button{padding:9px 11px;font-size:12px}.tece-ipa-group-head h3{font-size:15px}}
/* v1.5.9: readable IPA voice and speed selectors */
.tece-ipa-voice label{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:180px;}
.tece-ipa-voice select{box-sizing:border-box;width:180px;min-width:180px;min-height:42px;padding:10px 32px 10px 12px;font-size:15px;line-height:1.4;}
.tece-ipa-voice .tece-ipa-rate{width:150px;min-width:150px;}
@media(max-width:560px){.tece-ipa-voice label{min-width:0;flex:1 1 145px}.tece-ipa-voice select,.tece-ipa-voice .tece-ipa-rate{width:100%;min-width:0}}

/* v1.5.23: interactive phoneme detail view */
.tece-ipa-card{position:relative;min-height:105px;cursor:default}
.tece-ipa-info,.tece-ipa-symbol,.tece-ipa-word,.tece-ipa-speaker{cursor:pointer}
.tece-ipa-info{position:absolute;top:9px;left:9px;border:0;background:transparent;color:#68758b;font-size:17px;padding:2px 4px}
.tece-ipa-symbol{border:0;background:transparent;color:inherit;font:inherit;font-weight:800}
.tece-ipa-word{display:block;margin:7px auto 0;border:0;background:transparent;color:inherit;font:inherit;font-weight:600}
.tece-ipa-speaker{position:absolute;right:8px;top:8px;border:0;background:transparent;padding:2px}
.tece-ipa-detail{max-width:980px;margin:0 auto 24px;color:#18253c}
.tece-ipa-detail[hidden]{display:none!important}
.tece-ipa-back{display:inline-block;margin:2px 0 18px;padding:7px 0;border:0;background:transparent;color:#5146ed;cursor:pointer;font-size:15px}
.tece-ipa-detail>h2{text-align:center;font-size:30px;margin:4px 0 26px;color:#17243b}
.tece-ipa-detail-card{border:1px solid #dce2ec;border-radius:16px;padding:26px 30px;background:#fff;box-shadow:0 4px 16px rgba(20,35,60,.05)}
.tece-ipa-detail-title{display:flex;justify-content:center;align-items:center;gap:14px;margin:2px 0 22px}
.tece-ipa-detail-symbol{font-size:44px;line-height:1.2;color:#111c30}
.tece-ipa-detail-example{font-size:25px;color:#65728a}
.tece-ipa-detail-play{width:42px;height:42px;border:0;border-radius:50%;background:#5b4cf0;color:#fff;cursor:pointer;box-shadow:0 4px 10px #5146ed33}
.tece-ipa-detail-card h3{font-size:21px;margin:20px 0 16px;color:#17243b}
.tece-ipa-articulation{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.9fr);gap:26px;align-items:center;min-height:150px}
.tece-ipa-articulation p{font-size:15px;line-height:1.9;color:#53657f;margin:0}
.tece-ipa-mouth{min-height:130px;border-radius:12px;background:#f8f5f0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:48px;color:#e07b53}
.tece-ipa-mouth small{font-size:12px;color:#6e7785;margin-top:6px}
.tece-ipa-examples{display:grid;gap:10px}
.tece-ipa-example-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #ffd3a7;background:#fff8ef;border-radius:11px;padding:10px 12px;color:#35445d}
.tece-ipa-example-row span{font-size:15px}
.tece-ipa-example-row button{border:0;border-radius:50%;width:34px;height:34px;background:#ff8727;color:white;cursor:pointer;box-shadow:0 2px 5px #ff872733}
.tece-ipa-app .tece-ipa-groups[hidden],.tece-ipa-app .tece-ipa-tools[hidden],.tece-ipa-app .tece-ipa-voice[hidden]{display:none!important}
@media(max-width:640px){.tece-ipa-detail-card{padding:18px 15px}.tece-ipa-detail>h2{font-size:25px}.tece-ipa-detail-symbol{font-size:36px}.tece-ipa-articulation{grid-template-columns:1fr;gap:14px}.tece-ipa-mouth{min-height:90px}}

/* v1.5.24: flat IPA chart layout inspired by the reference interface */
.tece-ipa-app .tece-ipa-groups{margin-top:18px}
.tece-ipa-app .tece-ipa-flat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;background:transparent!important;padding:0!important;margin:0!important}
.tece-ipa-app .tece-ipa-card{box-sizing:border-box;min-width:0;min-height:90px;height:90px;padding:18px 10px 10px!important;align-items:center!important;justify-content:center!important;border:1px solid #d1d7e0!important;border-radius:8px!important;background:#fff!important;box-shadow:0 2px 3px rgba(20,35,60,.10)!important;position:relative!important;text-align:center!important;transition:box-shadow .15s,transform .15s}
.tece-ipa-app .tece-ipa-card:hover{transform:translateY(-1px);box-shadow:0 4px 9px rgba(20,35,60,.14)!important}
.tece-ipa-app .tece-ipa-symbol{order:1!important;display:block!important;margin:0!important;padding:0!important;font-size:25px!important;line-height:1.3!important;color:#111!important;font-weight:800!important}
.tece-ipa-app .tece-ipa-word{order:2!important;display:block!important;margin:6px auto 0!important;padding:0!important;font-size:13px!important;line-height:1.3!important;font-weight:400!important;color:#111!important}
.tece-ipa-app .tece-ipa-info{left:8px!important;top:8px!important;font-size:16px!important;color:#788394!important;line-height:1!important}
.tece-ipa-app .tece-ipa-speaker{right:7px!important;top:7px!important;width:20px!important;height:20px!important;font-size:13px!important;opacity:.72}
.tece-ipa-app .tece-ipa-group,.tece-ipa-app .tece-ipa-group-head{display:none!important}
.tece-ipa-app .tece-ipa-flat-grid .tece-ipa-card button{flex-shrink:0}
.tece-ipa-app .tece-ipa-filters{gap:8px}
.tece-ipa-app .tece-ipa-filters button{background:#f4f6f9;color:#3c4a60;border:1px solid #dce2eb}
.tece-ipa-app .tece-ipa-filters button.is-active{background:#078fc2;color:#fff}
.tece-ipa-app .tece-ipa-filters button[data-ipa-filter=mono],.tece-ipa-app .tece-ipa-filters button[data-ipa-filter=diph],.tece-ipa-app .tece-ipa-filters button[data-ipa-filter=voiced]{background:#f4f6f9;color:#3c4a60}
.tece-ipa-app .tece-ipa-filters button.is-active[data-ipa-filter=mono],.tece-ipa-app .tece-ipa-filters button.is-active[data-ipa-filter=diph],.tece-ipa-app .tece-ipa-filters button.is-active[data-ipa-filter=voiced]{background:#078fc2;color:#fff}
@media(max-width:760px){.tece-ipa-app .tece-ipa-flat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}}
@media(max-width:480px){.tece-ipa-app .tece-ipa-flat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tece-ipa-app .tece-ipa-card{height:88px;min-height:88px}}

/* v1.5.25: audio-only controls; never synthesize speech */
.tece-ipa-app .tece-ipa-voice{display:none!important}
.tece-ipa-app .tece-ipa-header p{max-width:850px}
.tece-ipa-app .tece-ipa-no-audio{opacity:.25!important;cursor:not-allowed!important;pointer-events:none!important}
.tece-ipa-app .tece-ipa-card button:disabled{opacity:.25!important}
.tece-ipa-app .tece-ipa-detail-play:disabled,.tece-ipa-app .tece-ipa-example-play:disabled{opacity:.25!important;cursor:not-allowed!important}
.tece-ipa-app .tece-ipa-audio-note{font-size:12px;color:#667085;margin-top:14px}
.tece-ipa-app .tece-ipa-example-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-bottom:1px solid #edf0f4}
.tece-ipa-app .tece-ipa-example-play{border:0;background:transparent;cursor:pointer;color:#65738b}

/* v1.5.26: sound buttons play phoneme recordings; info button opens detail */
.tece-ipa-app .tece-ipa-symbol,.tece-ipa-app .tece-ipa-word{cursor:pointer}
.tece-ipa-app .tece-ipa-speaker{cursor:pointer}
.tece-ipa-app .tece-ipa-info{cursor:pointer}
.tece-ipa-app .tece-ipa-no-word-audio{font-size:13px;color:#667085;line-height:1.6}

/* v1.5.27: preserve exact IPA glyphs and lowercase sample-word spelling against theme button transforms */
.tece-ipa-app .tece-ipa-symbol,
.tece-ipa-app .tece-ipa-word,
.tece-ipa-app .tece-ipa-detail-symbol,
.tece-ipa-app .tece-ipa-detail-example,
.tece-ipa-app .tece-ipa-example-row span {
  text-transform: none !important;
  font-variant: normal !important;
  letter-spacing: normal !important;
}
.tece-ipa-app .tece-ipa-symbol { font-family: "Noto Sans", "DejaVu Sans", "Arial Unicode MS", sans-serif !important; }
.tece-ipa-app .tece-ipa-no-audio { opacity: .28 !important; cursor: not-allowed !important; }

/* v1.5.30: articulation diagrams and matched word lists in IPA detail pages */
.tece-ipa-app .tece-ipa-diagram{display:flex;align-items:center;justify-content:center;min-height:150px;width:100%;overflow:hidden;border-radius:10px;background:#f8fafc}
.tece-ipa-app .tece-ipa-diagram img{display:block;width:100%;max-width:360px;max-height:190px;object-fit:contain;border-radius:8px}
.tece-ipa-app .tece-ipa-diagram svg{display:block;width:100%;max-width:360px;height:auto;max-height:190px}
.tece-ipa-app .tece-ipa-articulation{grid-template-columns:minmax(0,1fr) minmax(250px,.9fr);gap:24px;align-items:center}
.tece-ipa-app .tece-ipa-examples{display:grid;gap:10px}
.tece-ipa-app .tece-ipa-example-row{border:1px solid #ffd2a3;border-radius:12px;background:#fff8ef;padding:9px 12px;min-height:38px}
.tece-ipa-app .tece-ipa-example-row span{text-transform:none!important;font-size:16px;color:#263a58}
.tece-ipa-app .tece-ipa-example-play{width:34px;height:34px;border-radius:50%;background:#ff862b;color:#fff;box-shadow:0 2px 5px #0002}
.tece-ipa-app .tece-ipa-detail-title{gap:12px}
.tece-ipa-app .tece-ipa-detail-symbol,.tece-ipa-app .tece-ipa-detail-example{text-transform:none!important}
@media(max-width:640px){.tece-ipa-app .tece-ipa-articulation{grid-template-columns:1fr}.tece-ipa-app .tece-ipa-diagram{min-height:125px}}

/* Interactive vowel quadrilateral tab */
.tece-vowel-chart{margin:20px 0 8px;padding:22px 18px;background:#fff;color:#111827;border-radius:14px}
.tece-vowel-chart[hidden]{display:none!important}
.tece-vowel-chart>h3{margin:0 0 14px;text-align:left;color:#111827;font-size:23px;font-weight:700}
.tece-vowel-chart-intro{margin:0 0 18px;color:#374151;font-size:14px;line-height:1.6}
.tece-vowel-chart-board{position:relative;width:100%;max-width:900px;margin:0 auto;aspect-ratio:900/430;min-height:350px}
.tece-vowel-chart-board>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.tece-vowel-lines{fill:none;stroke:#111;stroke-width:1.8;vector-effect:non-scaling-stroke}
.tece-vowel-labels{fill:#111;font-size:14px;text-anchor:middle}
.tece-vowel-chart-symbols{position:absolute;inset:0}
.tece-vowel-chart-symbol{position:absolute;transform:translate(-50%,-50%);min-width:23px;height:37px;padding:2px 4px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#111827;font-family:inherit;font-size:18px;line-height:1.1;cursor:pointer;box-shadow:0 1px 2px #00000008}
.tece-vowel-chart-symbol:hover,.tece-vowel-chart-symbol:focus-visible{background:#eff6ff;border-color:#60a5fa;outline:2px solid #93c5fd;z-index:2}
.tece-vowel-chart-symbol:disabled{opacity:.45;cursor:not-allowed}
.tece-vowel-chart-help{margin:14px 0 0;color:#64748b;font-size:13px}
.tece-ipa-filters button[data-ipa-filter=vowel-chart]{background:#e8f3ff;color:#155e9a}
.tece-ipa-filters button[data-ipa-filter=vowel-chart].is-active{background:#078fc2;color:#fff}
@media(max-width:680px){
 .tece-vowel-chart{padding:14px 6px}
 .tece-vowel-chart-board{min-height:280px;aspect-ratio:800/410}
 .tece-vowel-chart-symbol{min-width:19px;height:30px;padding:1px 3px;font-size:15px}
 .tece-vowel-labels{font-size:13px}
 .tece-ipa-filters button{padding:9px 11px;font-size:12px}
}

.tece-vowel-chart-symbol{text-transform:none!important;font-weight:400!important;}
