/* Scoped, non-invasive styles for the native English Unit 1 activity. */
.papUnit1{--u1-blue:#2656b5;--u1-ink:#142b50;--u1-line:#dbe3f1;--u1-green:#136840;--u1-red:#a72539; color:var(--u1-ink);font-size:16px;line-height:1.55}
.papUnit1 *{box-sizing:border-box}
.papUnit1 h2{margin:8px 0 10px;font-size:clamp(22px,3vw,29px);line-height:1.22}
.papUnit1 h3{margin:15px 0 9px;font-size:19px}
.papUnit1 p{margin:6px 0 13px;line-height:1.55}
.papUnit1 button{font:inherit;cursor:pointer;transition:filter .1s ease}
.papUnit1 button:hover:not(:disabled){filter:brightness(.96)}
.papUnit1 button:focus-visible,.papUnit1 input:focus-visible{outline:3px solid #b0ccff;outline-offset:2px}
.papUnit1 .u1-hero{padding:24px;background:linear-gradient(110deg,#eaf1ff,#fff 85%);border:1px solid #bfcfee;border-radius:20px;margin-bottom:19px}
.papUnit1 .u1-label{font-size:12px;letter-spacing:.06em;font-weight:900;color:#365fac}
.papUnit1 .u1-hero p{max-width:820px;color:#475877}
.papUnit1 .u1-stats,.papUnit1 .u1-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:15px 0}
.papUnit1 .u1-stats span{display:inline-block;background:white;border:1px solid var(--u1-line);border-radius:10px;padding:7px 11px;font-size:13px}
.papUnit1 .u1-stats b{font-size:17px}
.papUnit1 .u1-actions button,.papUnit1 .u1-legacy-grid button{border-radius:10px;padding:10px 13px;font-weight:700;border:1px solid var(--u1-line)}
.papUnit1 .u1-primary{background:var(--u1-blue);color:white;border-color:var(--u1-blue)!important}
.papUnit1 .u1-secondary{background:white;color:var(--u1-blue)}
.papUnit1 .u1-legacy{border:1px solid #cde0da;background:#f6fffb;border-radius:16px;padding:18px;margin-bottom:20px}
.papUnit1 .u1-legacy h3{margin:0}
.papUnit1 .u1-legacy p{font-size:13px;color:#425d54}
.papUnit1 .u1-legacy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.papUnit1 .u1-legacy-grid button{text-align:left;background:white;color:#25576b;border-color:#cddfdb;font-size:13px}
.papUnit1 .u1-group-title{padding-top:14px;border-top:1px solid var(--u1-line);margin-top:25px}
.papUnit1 .u1-topic{display:flex;align-items:center;gap:13px;padding:13px 15px;width:100%;text-align:left;background:#fff;border:1px solid var(--u1-line);border-radius:13px;margin:9px 0;color:var(--u1-ink)}
.papUnit1 .u1-topic-icon{font-size:26px;min-width:32px}
.papUnit1 .u1-topic-main{display:flex;flex-direction:column;gap:4px;flex:1}
.papUnit1 .u1-topic-main small,.papUnit1 .u1-footnote,.papUnit1 .u1-subtitle{color:#576b85;font-size:13px}
.papUnit1 .u1-bar{display:block;height:7px;border-radius:50px;background:#e0e9f6;overflow:hidden;width:100%;max-width:500px}
.papUnit1 .u1-bar span{display:block;background:#3786c1;height:100%}
.papUnit1 .u1-bar-wide{max-width:none;margin-bottom:15px}
.papUnit1 .u1-top{display:flex;gap:12px;align-items:center;justify-content:space-between;color:#657993;font-size:13px;border-bottom:1px solid var(--u1-line);padding-bottom:12px}
.papUnit1 .u1-textbtn{border:none;background:transparent;color:var(--u1-blue);font-weight:750;padding:6px 0;text-decoration:underline}
.papUnit1 .u1-progress-row{font-size:13px;font-weight:800;color:#61728a;margin:14px 0 8px}
.papUnit1 .u1-details{border:1px solid var(--u1-line);border-radius:12px;padding:11px 14px;margin:12px 0}
.papUnit1 .u1-details summary{font-weight:800;cursor:pointer}
.papUnit1 .u1-theory{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:12px 0}
.papUnit1 .u1-theory>div{border:1px solid #dbe4f5;background:#f6f9ff;border-radius:12px;padding:12px}
.papUnit1 .u1-theory p{font-size:13px}
.papUnit1 .u1-exercise{border:1px solid var(--u1-line);border-radius:18px;padding:21px;background:#fafcff}
.papUnit1 .u1-question{font-size:20px;font-weight:800;line-height:1.42;margin:13px 0 17px}
.papUnit1 .u1-exercise label{font-size:13px;font-weight:800;color:#5b6881;display:block;margin-bottom:7px}
.papUnit1 input{display:block;width:100%;max-width:620px;background:white;color:var(--u1-ink);border:2px solid #b8c9e5;border-radius:10px;padding:12px;font:inherit;font-size:17px}
.papUnit1 .u1-feedback,.papUnit1 .u1-hint{padding:12px;border-radius:12px;margin:12px 0;font-size:14px}
.papUnit1 .u1-feedback.good{background:#e6f8ee;color:#145632;border:1px solid #afe2c4}
.papUnit1 .u1-feedback.bad{background:#fff0f1;color:#8f1f31;border:1px solid #f3c5cb}
.papUnit1 .u1-feedback.info{background:#e9f1ff;color:#24518e;border:1px solid #cbdcfc}
.papUnit1 .u1-hint{background:#fff8e6;border:1px solid #efdb9c;color:#775118}
.papUnit1 .u1-reading{background:#f5f4ff;border:1px solid #dedbf8;padding:15px;border-radius:12px;margin:11px 0}
.papUnit1 .u1-reading p{margin:5px 0;line-height:1.8}
.papUnit1 .u1-score{font-size:42px;font-weight:900;color:var(--u1-blue);margin:12px 0}
.papUnit1 .u1-examitem{border:1px solid var(--u1-line);border-radius:12px;padding:15px;margin:11px 0;background:#fbfcff}
.papUnit1 .u1-examitem label{display:block;margin-bottom:9px}
.papUnit1 .u1-examitem label small{display:block;color:#647a93;font-weight:500}
.papUnit1 .u1-answerrow{padding:13px;border:1px solid var(--u1-line);border-radius:10px;margin:10px 0}
.papUnit1 .u1-answerrow.ok{border-left:4px solid var(--u1-green)}
.papUnit1 .u1-answerrow.bad{border-left:4px solid var(--u1-red)}
.papUnit1 .u1-answerrow small{color:#596c81}
@media(max-width:600px){.papUnit1 .u1-hero{padding:17px}.papUnit1 .u1-exercise{padding:15px}.papUnit1 .u1-legacy-grid{grid-template-columns:1fr}.papUnit1 .u1-question{font-size:17px}}
/* v420 — missió, mesura i gamificació sense alterar la interfície de la resta d'assignatures */
.papUnit1 .u1-mission-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.papUnit1 .u1-mission-card{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #cfdaeb;border-radius:14px;padding:14px;min-width:0}
.papUnit1 .u1-mission-card small{font-size:12px;color:#526782;font-weight:750}
.papUnit1 .u1-mission-card strong{font-size:clamp(23px,3vw,31px);font-weight:900;line-height:1.15;color:#152e5b}
.papUnit1 .u1-mission-card>span{font-size:12px;color:#60718a}
.papUnit1 .u1-mission-card .u1-bar{height:7px}
.papUnit1 .u1-panel{background:#fff;border:1px solid var(--u1-line);padding:15px 18px;border-radius:16px;margin:14px 0}
.papUnit1 .u1-panel h3{margin:0 0 10px}
.papUnit1 .u1-smallnote{font-size:13px;color:#4e627e;line-height:1.55}
.papUnit1 .u1-medals{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:9px}
.papUnit1 .u1-medal{border:1px solid #dce2ed;background:#f7f9fe;border-radius:10px;padding:11px;display:flex;flex-direction:column;gap:4px}
.papUnit1 .u1-medal b{font-size:14px}
.papUnit1 .u1-medal small{font-size:12px;color:#586882}
.papUnit1 .u1-medal.earned{background:#eaf9f1;border-color:#a7dec3;color:#145a37}
.papUnit1 .u1-medal.locked{opacity:.7}
.papUnit1 .u1-trend{display:flex;align-items:end;gap:9px;min-height:150px;max-width:700px;margin-top:14px}
.papUnit1 .u1-trenditem{display:flex;flex:1;min-width:40px;max-width:92px;flex-direction:column;align-items:center;gap:4px}
.papUnit1 .u1-trendbar{display:flex;align-items:end;height:112px;width:100%;max-width:70px;background:#f1f5fc;border-radius:7px;overflow:hidden}
.papUnit1 .u1-trendbar>span{display:block;background:#347ebe;width:100%;border-radius:6px 6px 0 0}
.papUnit1 .u1-trenditem small{font-size:12px;color:#53667f}
.papUnit1 .u1-legacy{background:#f9fbff;border-color:#e2e8f2}
.papUnit1 .u1-legacy summary{cursor:pointer}
.papUnit1 .u1-legacy-grid{margin-top:12px}
@media(max-width:850px){.papUnit1 .u1-mission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:490px){.papUnit1 .u1-mission-card{padding:10px}.papUnit1 .u1-hero{padding:15px}.papUnit1 .u1-mission-card strong{font-size:21px}}
.papUnit1 .u1-daily{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;border:1px solid #c7d7ef;padding:14px;border-radius:13px;margin:15px 0}
.papUnit1 .u1-daily strong{font-size:15px}
.papUnit1 .u1-daily p{font-size:13px;margin:4px 0 0;color:#5d6d88}
.papUnit1 .u1-daily button{flex-shrink:0;border:1px solid #9bb5d7;border-radius:10px;padding:9px 12px;font-weight:750}
@media(max-width:600px){.papUnit1 .u1-daily{flex-direction:column;align-items:stretch}}

/* v422 · Ruta guiada: un microconcepte i una pregunta cada vegada */
.papUnit1 .u1-guided-spotlight{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:#f6fbff;border:2px solid #b4d4ed;border-radius:14px;margin:18px 0}
.papUnit1 .u1-guided-spotlight h3{margin:5px 0;font-size:19px}
.papUnit1 .u1-guided-spotlight p{font-size:14px;margin:4px 0}
.papUnit1 .u1-guided-spotlight small{color:#51647a;font-size:12px}
.papUnit1 .u1-guided-spotlight button{border:1px solid #2754ae;padding:11px 15px;border-radius:11px;font-weight:800;white-space:nowrap}
.papUnit1 .u1-lesson,.papUnit1 .u1-guided-question{background:#f8fbff;border:1px solid #c9d9ed;border-radius:17px;padding:24px;margin:15px 0;max-width:850px}
.papUnit1 .u1-lesson h3{font-size:23px;margin:12px 0}
.papUnit1 .u1-lesson>p{font-size:16px}
.papUnit1 .u1-lesson-example{background:#eaf3ff;border-left:4px solid #2f79bb;border-radius:9px;padding:14px 17px;margin:14px 0}
.papUnit1 .u1-lesson-example small{display:block;color:#516682;margin-bottom:4px}
.papUnit1 .u1-lesson-example strong{font-size:18px;color:#183b6c}
.papUnit1 .u1-guided-question label{display:block;font-weight:750;color:#526682;font-size:13px;margin-bottom:6px}
.papUnit1 .u1-guide-group{padding:12px 0;border-bottom:1px solid #dce5f2}
.papUnit1 .u1-guide-options{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.papUnit1 .u1-guide-options button{border:1px solid #bdcfea;padding:7px 10px;border-radius:9px;font-size:13px}
@media(max-width:620px){.papUnit1 .u1-guided-spotlight{flex-direction:column;align-items:stretch}.papUnit1 .u1-guided-spotlight button{white-space:normal}.papUnit1 .u1-lesson,.papUnit1 .u1-guided-question{padding:16px}}

/* v423 · Orientacions de format, visibles només durant entrenament/guia */
.papUnit1 .u1-answer-guide{border:1px solid #c6d8f1;background:#edf4ff;color:#244266;border-radius:12px;padding:11px 14px;margin:12px 0 15px;max-width:720px}
.papUnit1 .u1-answer-guide p{margin:5px 0 0;font-size:15px;line-height:1.5}
.papUnit1 .u1-answer-guide b{color:#143d77}

/* v424 · Evitar camps d'escriptura aparentment bloquejats un cop corregits */
.papUnit1 .u1-attempt-summary{border:1px solid #d3deec;background:#f4f7fb;border-radius:10px;padding:12px 14px;margin:12px 0;color:#344560;line-height:1.5;overflow-wrap:anywhere}
.papUnit1 .u1-guided-question .u1-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 12px}
.papUnit1 .u1-guided-question .u1-actions button{max-width:100%}
@media (max-width:650px){.papUnit1 .u1-guided-question .u1-actions button{width:100%}}

/* v425 · Una sola experiència: progrés, temes i proves amb un mateix llenguatge visual */
.papUnit1 .u1-one-path{max-width:1140px;margin:0 auto;color:var(--u1-ink)}
.papUnit1 .u1-unified-hero{background:linear-gradient(125deg,#edf4ff 0%,#fbfdff 90%);border:1px solid #c6d6ef;border-radius:18px;padding:23px 25px}
.papUnit1 .u1-unified-hero h2{font-size:clamp(24px,3vw,32px);margin:9px 0 7px}
.papUnit1 .u1-unified-hero>p{font-size:15px;color:#4c607c;margin-bottom:16px}
.papUnit1 .u1-unified-lead{background:#fff;border:1px solid #d3e0f0;border-radius:13px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.papUnit1 .u1-unified-lead>div{display:flex;flex-direction:column;min-width:0;gap:3px}
.papUnit1 .u1-unified-lead small{font-size:11px;color:#4d678c;font-weight:850;letter-spacing:.05em}
.papUnit1 .u1-unified-lead strong{font-size:19px;color:#1c3a6b;line-height:1.3}
.papUnit1 .u1-unified-lead span{font-size:12px;color:#60728b}
.papUnit1 .u1-unified-lead button{border-radius:10px;padding:12px 15px;font-weight:800;flex-shrink:0}
.papUnit1 .u1-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0 26px}
.papUnit1 .u1-overview>div{background:#fff;border:1px solid #dce5f2;border-radius:12px;display:flex;flex-direction:column;gap:4px;min-width:0;padding:13px}
.papUnit1 .u1-overview small{color:#576d8b;font-size:12px;font-weight:700}
.papUnit1 .u1-overview strong{font-size:21px;color:#15376c;line-height:1.25}
.papUnit1 .u1-overview span{font-size:11px;color:#60728b}
.papUnit1 .u1-unified-section{padding:18px 0 23px;border-top:1px solid #dde5f1}
.papUnit1 .u1-unified-section h3{font-size:23px;margin:6px 0}
.papUnit1 .u1-unified-section>p,.papUnit1 .u1-section-heading p{color:#536785;font-size:14px;max-width:800px}
.papUnit1 .u1-unified-group{font-size:16px!important;font-weight:850;color:#263f66;margin:24px 0 11px!important}
.papUnit1 .u1-unified-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.papUnit1 .u1-unified-topic{border:1px solid #d4e0ed;border-radius:15px;background:#fff;padding:17px;min-width:0;display:flex;flex-direction:column;gap:10px}
.papUnit1 .u1-unified-topic-head{display:flex;align-items:flex-start;gap:10px}
.papUnit1 .u1-unified-icon{background:#edf3fc;border-radius:11px;padding:8px;min-width:43px;text-align:center;font-size:21px;line-height:1.3}
.papUnit1 .u1-unified-title{flex:1;min-width:0}
.papUnit1 .u1-unified-title h4{font-size:16px;font-weight:850;margin:0 0 3px;line-height:1.35}
.papUnit1 .u1-unified-title p{font-size:12px;color:#617189;margin:0}
.papUnit1 .u1-unified-status{border:1px solid #dbe5f2;background:#f5f8fd;border-radius:999px;font-size:10px;font-weight:750;white-space:nowrap;padding:4px 7px;color:#53647d}
.papUnit1 .u1-unified-topic-meta{color:#5c6f89;font-size:12px;line-height:1.4}
.papUnit1 .u1-unified-topic .u1-bar{height:6px;max-width:none}
.papUnit1 .u1-unified-topic-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:auto;padding-top:3px}
.papUnit1 .u1-unified-topic-actions button{padding:8px 10px;border-radius:9px;font-size:12px;font-weight:800}
.papUnit1 .u1-inline-link{background:transparent;border:0;color:#255fb0;font-weight:750;text-decoration:underline;text-underline-offset:3px;line-height:1.3;cursor:pointer}
.papUnit1 .u1-unified-support{display:flex;gap:12px;align-items:center;background:#f6f9fd;border:1px solid #d9e5f2;border-radius:13px;padding:15px;margin:17px 0 0}
.papUnit1 .u1-unified-support>span{font-size:23px}
.papUnit1 .u1-unified-support>div{flex:1;min-width:0}
.papUnit1 .u1-unified-support strong{font-size:14px}
.papUnit1 .u1-unified-support p{margin:3px 0 0;font-size:12px;color:#526781}
.papUnit1 .u1-unified-support button{font-size:12px;padding:7px}
.papUnit1 .u1-challenge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:17px 0}
.papUnit1 .u1-challenge{border:1px solid #d8e4f0;border-radius:14px;background:#fff;padding:17px;display:flex;flex-direction:column;align-items:flex-start}
.papUnit1 .u1-challenge strong{font-size:15px}
.papUnit1 .u1-challenge p{font-size:13px;color:#596e89;flex:1;margin:7px 0 17px}
.papUnit1 .u1-challenge button{border-radius:9px;font-weight:800;padding:9px 12px;font-size:13px}
.papUnit1 .u1-progress-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:12px}
.papUnit1 .u1-progress-columns h4{font-size:16px;margin:4px 0 12px}
.papUnit1 .u1-unified-progress .u1-medals{grid-template-columns:repeat(2,minmax(0,1fr))}
.papUnit1 .u1-empty-state{padding:17px;background:#f5f8fd;border:1px dashed #ccd9e9;border-radius:12px;font-size:13px;color:#556a88}
.papUnit1 .u1-unified-settings{margin-top:20px}
@media(max-width:920px){.papUnit1 .u1-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.papUnit1 .u1-challenge-grid{grid-template-columns:1fr 1fr}.papUnit1 .u1-progress-columns{grid-template-columns:1fr}}
@media(max-width:680px){.papUnit1 .u1-unified-grid,.papUnit1 .u1-challenge-grid{grid-template-columns:1fr}.papUnit1 .u1-unified-hero{padding:17px}.papUnit1 .u1-unified-lead{flex-direction:column;align-items:stretch}.papUnit1 .u1-unified-lead button{width:100%}.papUnit1 .u1-unified-status{font-size:9px}.papUnit1 .u1-unified-support{flex-wrap:wrap}.papUnit1 .u1-unified-support button{width:100%}}

/* v426 · Teoria en profunditat i botons d'escolta d'exemples */
.papUnit1 .u1-deep-cta,.papUnit1 .u1-practice-theory{display:inline-flex;align-items:center;justify-content:center;max-width:100%;font-size:14px;font-weight:800;border:1px solid #a6bedb;border-radius:10px;padding:10px 14px;color:#22569b;background:#fff;line-height:1.3}
.papUnit1 .u1-deep-cta{margin:8px 0 0}
.papUnit1 .u1-practice-theory{margin:2px 0 14px}
.papUnit1 .u1-tts{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:7px 12px;border:1px solid #c5d5eb;border-radius:9px;color:#23558a;background:#fff;font-size:13px;font-weight:700}
.papUnit1 .u1-short-tts{margin:11px 0 0}
.papUnit1 .u1-deep-view{max-width:880px;margin:0 auto;padding:8px 0 28px}
.papUnit1 .u1-deep-heading{border-radius:18px;padding:23px;background:#edf4ff;border:1px solid #cbdcf1;margin-bottom:15px}
.papUnit1 .u1-deep-heading h2{margin:9px 0}
.papUnit1 .u1-deep-heading p{color:#394f70;font-size:16px;line-height:1.65;max-width:720px}
.papUnit1 .u1-deep-instruction{color:#526681;font-size:14px;margin-bottom:15px}
.papUnit1 .u1-deep-section{background:#fff;border:1px solid #cdd9ea;border-radius:14px;margin:12px 0;overflow:hidden}
.papUnit1 .u1-deep-section[open]{border-color:#a8c2e2;box-shadow:0 3px 14px rgba(42,86,137,.06)}
.papUnit1 .u1-deep-section>summary{cursor:pointer;display:flex;align-items:center;gap:11px;padding:17px 18px;font-size:16px;font-weight:850;color:#153a70;list-style:none}
.papUnit1 .u1-deep-section>summary::-webkit-details-marker{display:none}
.papUnit1 .u1-deep-section>summary>span:last-child{margin-left:auto;color:#6285b1}
.papUnit1 .u1-deep-index{display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:#e7f0ff;color:#28568e;font-size:13px}
.papUnit1 .u1-deep-content{padding:0 20px 19px;color:#273e59;font-size:15px;line-height:1.7}
.papUnit1 .u1-deep-content>p:first-child{margin:7px 0 17px;max-width:760px}
.papUnit1 .u1-deep-example{border-left:4px solid #7aa8dc;background:#f4f8ff;padding:12px 14px;margin:10px 0;border-radius:0 10px 10px 0}
.papUnit1 .u1-deep-example-line{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.papUnit1 .u1-deep-example-line strong{font-size:18px;color:#123966;line-height:1.4;overflow-wrap:anywhere}
.papUnit1 .u1-deep-example p{margin:4px 0 0;color:#4d617b;font-size:14px}
.papUnit1 .u1-deep-tip{padding:10px 12px;border-radius:10px;background:#fff8e7;color:#684e18;margin-top:17px!important;font-size:14px}
.papUnit1 .u1-deep-language{color:#687991;font-size:12px}
.papUnit1 .u1-deep-audio-status{color:#92511c;font-size:13px;min-height:2px}
@media(max-width:600px){.papUnit1 .u1-deep-heading{padding:16px}.papUnit1 .u1-deep-section>summary{padding:13px;font-size:14px}.papUnit1 .u1-deep-content{padding:0 13px 16px}.papUnit1 .u1-deep-example-line{align-items:flex-start}.papUnit1 .u1-deep-example-line strong{font-size:16px}.papUnit1 .u1-tts{font-size:12px}}

/* v438: dibuixos simples de les frases */
.papUnit1 .u1-drill-picture{width:100%;max-width:330px;margin:.25rem auto .85rem;overflow:hidden;border-radius:14px;}
.papUnit1 .u1-drill-picture[hidden]{display:none!important;}
.papUnit1 .u1-drill-scene-svg{width:100%;height:auto;display:block;}
@media (prefers-reduced-motion:reduce){.papUnit1 .u1-drill-scene-svg{animation:none!important;}}

/* v441 · Prova oral no avaluada */
.papUnit1 .u1-speaking-entry,.papUnit1 .u1-speaking-panel{border:1px solid #b8cce6;border-radius:18px;background:#fff;padding:21px;margin:18px 0}
.papUnit1 .u1-speaking-entry{background:#f3f8ff}.papUnit1 .u1-speaking-entry h3{margin:8px 0;font-size:21px;color:#193e71}
.papUnit1 .u1-speaking-entry p,.papUnit1 .u1-speaking-head p{line-height:1.6;color:#4c6080}
.papUnit1 .u1-speaking-head{margin-bottom:20px}.papUnit1 .u1-speaking-head h2{margin:9px 0}
.papUnit1 .u1-speaking-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;color:#426289;margin:11px 0}
.papUnit1 .u1-speaking-question{background:#f2f7ff;border-radius:15px;border:1px solid #cfdff3;padding:20px;margin:14px 0}
.papUnit1 .u1-speaking-question h3{color:#0c376d;font-size:clamp(19px,3.4vw,27px);line-height:1.45;margin:14px 0 18px}
.papUnit1 .u1-speaking-help{margin-top:14px;font-size:13px;color:#486384}.papUnit1 .u1-speaking-help summary{cursor:pointer;font-weight:700}
.papUnit1 .u1-speaking-answer{padding:12px 3px}.papUnit1 .u1-speaking-answer>p:first-child{line-height:1.55}
.papUnit1 .u1-speaking-transcript{font-style:italic;color:#21568b;font-size:16px;overflow-wrap:anywhere;margin:12px 0}
.papUnit1 .u1-speaking-model{background:#fffdf6;border:1px solid #f0deac;border-radius:14px;padding:17px;margin:12px 0}
.papUnit1 .u1-speaking-example{font-size:19px;line-height:1.5;color:#16487b;font-weight:800;margin:12px 0}
.papUnit1 .u1-speaking-alternative{font-size:16px;line-height:1.45;color:#366080}
.papUnit1 .u1-speaking-explain{font-size:13px;color:#6c581f;line-height:1.55}
.papUnit1 .u1-speaking-actions{margin:18px 0;display:flex;flex-wrap:wrap;gap:9px}
.papUnit1 .u1-speaking-note{font-size:12px;color:#657994;line-height:1.5;margin-top:17px}
@media(max-width:560px){.papUnit1 .u1-speaking-entry,.papUnit1 .u1-speaking-panel{padding:14px}.papUnit1 .u1-speaking-question{padding:14px}.papUnit1 .u1-speaking-actions button{flex:1}}

/* v442 · Dictat revisable i valoració IA de l'expressió oral */
.papUnit1 .u1-speaking-editor-label{display:block;font-size:13px;font-weight:800;color:#315579;margin:16px 0 6px}
.papUnit1 .u1-speaking-editor{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:76px;border:1px solid #afc5e0;border-radius:11px;padding:12px;font:inherit;font-size:16px;color:#1e406a;background:#fff;line-height:1.5}
.papUnit1 .u1-speaking-editor:focus{outline:2px solid #3c77c5;outline-offset:1px}
.papUnit1 .u1-speaking-eval-actions{display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin:13px 0 5px}
.papUnit1 .u1-speaking-eval-privacy{font-size:12px;color:#667994}
.papUnit1 .u1-speaking-review{padding:16px 17px;border-radius:13px;margin:14px 0;border:1px solid #cbd8e8;background:#f5f8ff;color:#273e59}
.papUnit1 .u1-speaking-review.is-good{border-color:#a7d5ba;background:#f1faf4}
.papUnit1 .u1-speaking-review h4{font-size:17px;color:#183f72;margin:6px 0 9px}
.papUnit1 .u1-speaking-review p{line-height:1.6;font-size:14px;margin:6px 0}
.papUnit1 .u1-speaking-review .u1-speaking-review-detail{font-weight:650}
.papUnit1 .u1-speaking-review .u1-speaking-review-hint{color:#5b470f}
.papUnit1 .u1-speaking-review small{display:block;color:#60728b;line-height:1.5;margin-top:12px}

/* v443 · Botons de l'activitat oral coherents amb la resta de Pas a Pas.
   El disseny general definia el contorn/padding només per als botons dins
   de .u1-actions; els de pregunta, micròfon, correcció, model i retorn
   quedaven amb els estils per defecte del navegador. */
.papUnit1 .u1-speaking-entry button.u1-primary,
.papUnit1 .u1-speaking-entry button.u1-secondary,
.papUnit1 .u1-speaking-panel button.u1-primary,
.papUnit1 .u1-speaking-panel button.u1-secondary {
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  max-width:100%;
  min-height:42px;
  padding:10px 14px;
  border:1px solid var(--u1-line);
  border-radius:10px;
  font:inherit;
  font-weight:700;
  line-height:1.35;
  text-align:center;
  white-space:normal;
  cursor:pointer;
  text-decoration:none;
}
.papUnit1 .u1-speaking-entry button.u1-primary,
.papUnit1 .u1-speaking-panel button.u1-primary {
  background:var(--u1-blue);
  color:#fff;
  border-color:var(--u1-blue);
}
.papUnit1 .u1-speaking-entry button.u1-secondary,
.papUnit1 .u1-speaking-panel button.u1-secondary {
  background:#fff;
  color:var(--u1-blue);
  border-color:var(--u1-line);
}
.papUnit1 .u1-speaking-entry button:disabled,
.papUnit1 .u1-speaking-panel button:disabled {
  opacity:.52;
  cursor:not-allowed;
}
@media (max-width:560px) {
  .papUnit1 .u1-speaking-panel .u1-speaking-question>button,
  .papUnit1 .u1-speaking-panel .u1-speaking-answer>button,
  .papUnit1 .u1-speaking-panel .u1-speaking-eval-actions>button,
  .papUnit1 .u1-speaking-panel .u1-speaking-model>button {
    width:100%;
  }
  .papUnit1 .u1-speaking-panel .u1-speaking-eval-actions>button {
    flex-shrink:0;
  }
}

/* v450 · Quina sona bé? · 3r ESO — mateixa família visual */
.papUnit1 .u1-choose-panel{background:#fff;border:1px solid #dbe3f1;border-radius:18px;padding:20px;margin:16px 0;max-width:800px}
.papUnit1 .u1-choose-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.papUnit1 .u1-choose-head strong{font-size:15px;white-space:nowrap}
.papUnit1 .u1-choose-setting{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:17px 0}
.papUnit1 .u1-choose-toggle{display:flex;align-items:center;gap:8px;border:1px solid #d9e3f4;border-radius:10px;padding:9px 11px;font-size:13px;font-weight:700;cursor:pointer;background:#f8fbff}
.papUnit1 .u1-choose-toggle input{width:17px;height:17px;margin:0;flex-shrink:0}
.papUnit1 .u1-choose-setting>label:last-child{font-size:13px;font-weight:700}
.papUnit1 .u1-choose-setting select{background:white;border:1px solid #a9bddf;border-radius:9px;padding:8px;font-size:14px}
.papUnit1 .u1-choose-instruction{font-weight:750;margin-top:8px}
.papUnit1 .u1-choose-cue{background:#f2f7ff;border-left:4px solid #476fba;border-radius:8px;padding:10px 12px;font-weight:700;margin:12px 0}
.papUnit1 .u1-choose-listen{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.papUnit1 .u1-choose-listen button{border-radius:10px;padding:11px 15px;font-weight:800;border:1px solid #bad0ec}
.papUnit1 #u1-choose-status{font-size:13px;color:#586d87}
.papUnit1 .u1-choose-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.papUnit1 .u1-choose-choice{display:flex;align-items:center;justify-content:center;gap:12px;border:2px solid #b6cbea;border-radius:16px;background:#f4f8ff;padding:17px 10px;color:#234f91;font-size:18px;font-weight:800;min-height:82px}
.papUnit1 .u1-choose-choice span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#dceafd;font-size:24px;color:#174787}
.papUnit1 .u1-choose-choice:disabled{opacity:.65;cursor:default}
.papUnit1 .u1-choose-fastcorrect{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:17px 0;font-weight:800;color:#18663e}.papUnit1 .u1-choose-fastcorrect button{border:1px solid #b7c8e5;border-radius:9px;padding:9px 12px;font-weight:750}
.papUnit1 .u1-choose-hidden{color:#6d7f96;font-size:12px;text-align:center;margin:13px 0}
.papUnit1 .u1-choose-reveal{margin-top:18px;display:grid;gap:10px}
.papUnit1 .u1-choose-reveal>h3{margin:0;font-size:20px}
.papUnit1 .u1-choose-reveal-line{border:1px solid #dce4f1;border-radius:13px;padding:13px;background:#fff;display:grid;gap:5px;justify-items:start;min-width:0}
.papUnit1 .u1-choose-reveal-line.correct{border-color:#a7d8bc;background:#f2fff6}
.papUnit1 .u1-choose-reveal-line.incorrect{border-color:#e7bdc0;background:#fff8f8}
.papUnit1 .u1-choose-reveal-index{font-size:12px;font-weight:800;color:#60728d}
.papUnit1 .u1-choose-reveal-line strong{font-size:clamp(21px,4vw,30px);font-weight:850;line-height:1.25;overflow-wrap:anywhere}
.papUnit1 .u1-choose-reveal-line mark{padding:0 2px;border-radius:4px;background:#c8efd5;color:#124c33}
.papUnit1 .u1-choose-reveal-line.incorrect mark{background:#ffd3d8;color:#922c39;text-decoration:underline}
.papUnit1 .u1-choose-reveal-line button{border:1px solid #c4d3eb;border-radius:9px;font-size:13px;font-weight:750;padding:7px 12px}
.papUnit1 .u1-choose-tip{background:#f7f9fe;border:1px solid #d9e3f6;border-radius:12px;padding:10px 13px;font-size:14px}
.papUnit1 .u1-choose-nav button,.papUnit1 .u1-choose-end button{border-radius:10px;border:1px solid #bcd0ec;padding:10px 12px;font-weight:800}
.papUnit1 .u1-choose-nav button:disabled{opacity:.45;cursor:default}
.papUnit1 .u1-choose-reading p{font-size:14px;line-height:1.55}
@media(max-width:520px){
 .papUnit1 .u1-choose-panel{padding:13px;border-radius:14px;margin:10px 0}
 .papUnit1 .u1-choose-setting{gap:7px;margin:10px 0}
 .papUnit1 .u1-choose-toggle{width:100%;font-size:12px;padding:7px 9px}
 .papUnit1 .u1-choose-choices{gap:8px}
 .papUnit1 .u1-choose-choice{min-height:75px;font-size:16px;gap:6px;padding:10px 4px}
 .papUnit1 .u1-choose-choice span{height:34px;width:34px;font-size:20px}
 .papUnit1 .u1-choose-reveal-line strong{font-size:22px}
 .papUnit1 .u1-choose-nav{gap:6px}
 .papUnit1 .u1-choose-nav button{flex:1;min-width:110px}
}

/* v451 · Escolta la terminació -ed: una paraula escrita, dos àudios */
.papUnit1 .u1-ed-panel{background:#fff;border:1px solid #dbe3f1;border-radius:18px;padding:18px;margin:15px 0;max-width:780px}
.papUnit1 .u1-ed-prompt{font-weight:750;margin:14px 0 4px;text-align:center}
.papUnit1 .u1-ed-target{font-size:clamp(42px,9vw,74px);font-weight:900;text-align:center;line-height:1.1;letter-spacing:.02em;color:#163f7b;padding:12px 4px 17px;text-transform:uppercase;overflow-wrap:anywhere}
.papUnit1 .u1-ed-target mark{color:#144caa;background:#e4eeff;border-bottom:4px solid #7aaaff;border-radius:5px;padding:0 1px}
.papUnit1 .u1-ed-group-select{display:flex;justify-content:center;margin:0 0 7px}.papUnit1 .u1-ed-group-select label{font-size:13px;font-weight:750;display:flex;align-items:center;gap:7px}.papUnit1 .u1-ed-group-select select{border:1px solid #b5c8e5;background:#fff;border-radius:8px;padding:6px 9px;font-size:13px}
.papUnit1 .u1-ed-audio-controls{display:flex;gap:8px;align-items:stretch;justify-content:center;margin:5px 0}
.papUnit1 .u1-ed-audio-controls button{border:1px solid #b9cae9;border-radius:11px;padding:10px 13px;font-weight:800;min-height:44px}
.papUnit1 .u1-ed-status{min-height:16px;margin:5px 0;color:#4e6481;text-align:center;font-size:13px}
.papUnit1 .u1-ed-speed{display:flex;justify-content:center;margin:7px 0}
.papUnit1 .u1-ed-speed label{font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px}
.papUnit1 .u1-ed-speed select{font-size:14px;padding:6px 8px;border:1px solid #a9bddf;border-radius:9px;background:white}
.papUnit1 .u1-ed-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 6px}
.papUnit1 .u1-ed-choice{display:flex;align-items:center;justify-content:center;gap:8px;border:2px solid #bbcfeb;border-radius:14px;min-height:76px;background:#f3f8ff;color:#204b87;font-size:18px;font-weight:800;padding:10px}
.papUnit1 .u1-ed-choice b{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:#dceafe;color:#17498b;font-size:23px}
.papUnit1 .u1-ed-choice:disabled{opacity:.62;cursor:default}
.papUnit1 .u1-ed-hint{text-align:center;color:#687e99;font-size:12px;margin:10px 0}
.papUnit1 .u1-ed-reveal{display:grid;gap:9px;margin-top:12px}
.papUnit1 .u1-ed-reveal h3{font-size:19px;margin:0}
.papUnit1 .u1-ed-written{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.papUnit1 .u1-ed-written-item{padding:12px;border-radius:13px;border:1px solid #d6e1f2;display:grid;align-content:space-between;gap:7px;justify-items:start;min-width:0}
.papUnit1 .u1-ed-written-item.is-match{background:#f0fff6;border-color:#9acfb0}
.papUnit1 .u1-ed-written-item.is-other{background:#f8fafc}
.papUnit1 .u1-ed-written-item small{font-size:12px;font-weight:800;color:#526a87}
.papUnit1 .u1-ed-written-item strong{font-size:clamp(24px,5vw,39px);line-height:1.1;overflow-wrap:anywhere}
.papUnit1 .u1-ed-written-item mark{background:#bdecd1;color:#175838;border-radius:4px;padding:1px 2px}
.papUnit1 .u1-ed-written-item button{padding:7px 10px;border-radius:9px;border:1px solid #c0d1eb;font-weight:750;font-size:13px}
.papUnit1 .u1-ed-rule{padding:9px 12px;border-radius:10px;background:#f1f6ff;border-left:4px solid #5178bc;font-size:14px;line-height:1.45;margin:0}
.papUnit1 .u1-ed-nav button{border:1px solid #bcd0ec;border-radius:10px;padding:9px 12px;font-weight:800}
.papUnit1 .u1-ed-nav button:disabled{opacity:.45;cursor:default}
@media(max-width:520px){
 .papUnit1 .u1-ed-panel{padding:12px;border-radius:14px;margin:10px 0}
 .papUnit1 .u1-ed-target{font-size:clamp(38px,10vw,57px);padding:5px 0 10px}
 .papUnit1 .u1-ed-audio-controls{gap:5px}
 .papUnit1 .u1-ed-audio-controls button{padding:9px 6px;font-size:12px}
 .papUnit1 .u1-ed-choice{min-height:69px;font-size:15px;padding:7px 3px;gap:6px}
 .papUnit1 .u1-ed-choice b{width:32px;height:32px;font-size:20px}
 .papUnit1 .u1-ed-written{gap:6px}
 .papUnit1 .u1-ed-written-item{padding:9px;gap:6px}
 .papUnit1 .u1-ed-written-item strong{font-size:clamp(23px,6.5vw,31px)}
 .papUnit1 .u1-ed-nav{gap:6px}
 .papUnit1 .u1-ed-nav button{flex:1}
}

/* v452 · Revisió pedagògica amb IA dels buits escrits, sobre l'error. */
.papUnit1 .u1-written-ai-card{margin:12px 0;padding:15px;border:1px solid #b6ccef;border-left:4px solid #456dae;border-radius:12px;background:#f3f7ff;line-height:1.55;color:#243d62}
.papUnit1 .u1-written-ai-card>strong{font-size:16px;display:block;margin-bottom:6px}
.papUnit1 .u1-written-ai-card p{margin:7px 0}
.papUnit1 .u1-written-ai-card ul{padding-left:23px;margin:8px 0}
.papUnit1 .u1-written-ai-hint{background:#fff;border-radius:8px;padding:10px;margin:10px 0}
.papUnit1 .u1-written-ai-card small{display:block;color:#57718f;font-size:12px}
.papUnit1 .u1-written-ai-loading,.papUnit1 .u1-written-ai-unavailable{padding:10px 12px;margin:10px 0;border-radius:9px;background:#eef4ff;color:#294a72;font-size:14px}
.papUnit1 .u1-exercise button:disabled,.papUnit1 .u1-guided-question button:disabled{opacity:.6;cursor:wait}

/* v453 · Modalitat bàsica: text anglès + traducció abans de respondre. */
.papUnit1 .u1-choose-target{display:flex;flex-direction:column;gap:5px;padding:15px 18px;margin:10px 0 13px;background:#eef5ff;border:2px solid #a4c3f1;border-radius:15px;max-width:100%;min-width:0}
.papUnit1 .u1-choose-target-label{font-size:12px;color:#375a91;font-weight:850;letter-spacing:.015em}
.papUnit1 .u1-choose-target strong{font-size:clamp(22px,3.5vw,32px);font-weight:900;line-height:1.28;overflow-wrap:anywhere;color:#153b75}
.papUnit1 .u1-choose-target-translation-label{font-size:11px;font-weight:800;color:#59708d;text-transform:uppercase;letter-spacing:.04em;margin-top:4px}
.papUnit1 .u1-choose-target-es{font-size:clamp(15px,2.3vw,18px);line-height:1.4;color:#354d67}
@media(max-width:520px){
 .papUnit1 .u1-choose-setting{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:6px}
 .papUnit1 .u1-choose-toggle{min-width:0;width:auto;display:flex;align-items:flex-start;gap:5px;padding:7px 5px;line-height:1.25;font-size:11px}
 .papUnit1 .u1-choose-toggle input{width:15px;height:15px;flex-shrink:0;margin-top:1px}
 .papUnit1 .u1-choose-setting>label:last-child{grid-column:1/-1;display:flex;align-items:center;gap:8px}
 .papUnit1 .u1-choose-target{padding:12px 13px;margin:8px 0}
 .papUnit1 .u1-choose-target strong{font-size:23px}
}


/* v454 · Bàsic de veritat: les dues frases, cadascuna amb el seu àudio. */
.papUnit1 .u1-choose-basic-options{display:grid;grid-template-columns:1fr;gap:10px;margin:12px 0}
.papUnit1 .u1-choose-basic-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;border:2px solid #b6cbea;background:#f6f9ff;border-radius:15px;padding:7px;min-width:0}
.papUnit1 .u1-choose-basic-pick{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;min-width:0;min-height:76px;padding:6px 10px;text-align:left;border:0;background:transparent;color:#153b75;cursor:pointer}
.papUnit1 .u1-choose-basic-pick:disabled{opacity:1;cursor:default}
.papUnit1 .u1-choose-basic-index{font-size:12px;font-weight:800;line-height:1.2;color:#4e6590}
.papUnit1 .u1-choose-basic-pick strong{font-size:clamp(19px,2.7vw,26px);font-weight:850;line-height:1.25;overflow-wrap:anywhere}
.papUnit1 .u1-choose-basic-audio{min-width:104px;align-self:center;min-height:54px;background:#e5efff;border:1px solid #a9c3ea;border-radius:12px;font-size:15px;font-weight:850;color:#214b89;padding:10px;cursor:pointer}
.papUnit1 .u1-choose-basic-audio:focus-visible,.papUnit1 .u1-choose-basic-pick:focus-visible{outline:3px solid #3479d0;outline-offset:2px}
.papUnit1 .u1-choose-basic-correct{border-color:#60b58c;background:#effdf4}
.papUnit1 .u1-choose-basic-incorrect{border-color:#df9ba2;background:#fff6f6}
.papUnit1 .u1-choose-basic-selected{box-shadow:0 0 0 2px #5276ba inset}
.papUnit1 .u1-choose-basic-pick mark{padding:0 3px;border-radius:4px;background:#c8efd5;color:#124c33}
.papUnit1 .u1-choose-basic-incorrect mark{background:#ffd3d8;color:#922c39;text-decoration:underline}
.papUnit1 .u1-choose-basic-verdict{font-size:12px;font-weight:850;color:#18663e}
.papUnit1 .u1-choose-basic-incorrect .u1-choose-basic-verdict{color:#9f3545}
.papUnit1 .u1-choose-basic-feedback{margin:10px 0 4px;font-size:15px}
.papUnit1 .u1-choose-basic-feedback>strong{font-size:17px}
.papUnit1 .u1-choose-basic-feedback>p{margin:6px 0}
.papUnit1 .u1-choose-basic-feedback .u1-choose-tip{margin-top:8px}
.papUnit1 .u1-choose-target{gap:4px}
.papUnit1 .u1-choose-target-es{font-size:clamp(17px,2.5vw,20px);font-weight:700;color:#264c82}
@media(max-width:520px){
 .papUnit1 .u1-choose-basic-options{gap:8px;margin:9px 0}
 .papUnit1 .u1-choose-basic-option{gap:4px;padding:5px;border-radius:12px}
 .papUnit1 .u1-choose-basic-pick{min-height:68px;padding:6px 7px}
 .papUnit1 .u1-choose-basic-pick strong{font-size:19px}
 .papUnit1 .u1-choose-basic-audio{min-width:77px;min-height:48px;padding:7px 5px;font-size:14px}
 .papUnit1 .u1-choose-basic-audio span{font-size:12px;display:block}
 .papUnit1 .u1-choose-target{padding:9px 11px;margin:8px 0}
 .papUnit1 .u1-choose-target-es{font-size:16px}
}
