.ed-v2 .ecp-library .ed-page-title{display:flex;align-items:center;gap:.7rem}
.ed-v2 .ecp-library a:not(.btn){color:var(--ed-blue);text-underline-offset:.2em}
.ed-v2 .ecp-library .ed-page-head>p{max-width:52rem;margin:.8rem 0 0;line-height:1.65}
.ed-v2 .ecp-filter-panel{background:var(--ed-tint);border:1px solid var(--ed-line);border-radius:var(--ed-radius);margin:1.75rem 0;padding:1.25rem 1.5rem}
.ed-v2 .ecp-filter-panel>summary{cursor:pointer;font-weight:700;min-height:2.75rem;align-content:center}
.ed-v2 .ecp-filter-fields{display:grid;grid-template-columns:1.3fr 1fr 1.3fr .8fr;gap:1rem;margin-top:1rem}
.ed-v2 .ecp-filter-fields--difficulty{grid-template-columns:1.3fr 1fr 1.3fr .8fr .8fr}
.ed-v2 .ecp-filter-fields label{display:flex;flex-direction:column;gap:.5rem;min-width:0;font-weight:650}
.ed-v2 .ecp-filter-fields input,.ed-v2 .ecp-filter-fields select{min-width:0;width:100%;min-height:2.75rem;padding:.6rem .75rem;border:1px solid var(--ed-line);border-radius:var(--ed-radius-sm);font:inherit;color:var(--ed-ink);background:var(--ed-card)}
.ed-v2 .ecp-filter-actions{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;margin-top:1.25rem}
.ed-v2 .ecp-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;border:0;margin:1.75rem 0;padding:0;min-width:0}
.ed-v2 .ecp-modes>legend{font-weight:700;font-size:1.1rem;margin-bottom:.8rem}
.ed-v2 .ecp-modes label{display:flex;gap:.8rem;align-items:center;padding:1rem 1.25rem;border:1px solid var(--ed-line);border-radius:var(--ed-radius);background:var(--ed-panel-surface);cursor:pointer;min-width:0}
.ed-v2 .ecp-modes label:has(input:checked){background:var(--ed-tint);border-color:var(--ed-blue);box-shadow:inset 0 0 0 1px var(--ed-blue)}
.ed-v2 .ecp-modes input{flex:none;width:1.2rem;height:1.2rem;margin:0;accent-color:var(--ed-blue)}
.ed-v2 .ecp-modes strong{display:block}
.ed-v2 .ecp-position{margin:1.4rem 0 .85rem;color:var(--ed-muted);font-weight:650}
.ed-v2 .ecp-card{padding:2rem;border:1px solid var(--ed-line);border-radius:var(--ed-radius);background:var(--ed-reference-card-surface);overflow-wrap:anywhere}
.ed-v2 .ecp-card[data-read-flip=true]{cursor:pointer}
.ed-v2 .ecp-card-meta{display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:0 0 1.5rem;color:var(--ed-muted);font-size:.95rem}
.ed-v2 .ecp-card-title{font-size:clamp(1.35rem,2.5vw,1.85rem);line-height:1.4;margin:0 0 1.4rem;color:var(--ed-ink);font-weight:750;max-width:58rem}
.ed-v2 .ecp-context section{margin:1.3rem 0}
.ed-v2 .ecp-context h3,.ed-v2 .ecp-stops h3,.ed-v2 .ecp-reference>h3{font-size:1rem;font-weight:750;margin:0 0 .5rem;color:var(--ed-ink)}
.ed-v2 .ecp-context p,.ed-v2 .ecp-reference p{font-size:1rem;line-height:1.75;margin:.6rem 0 1rem;max-width:68rem}
.ed-v2 .ecp-stops ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));grid-auto-rows:1fr;gap:.65rem;list-style:none;padding:0;margin:.7rem 0 1.25rem}
.ed-v2 .ecp-stops .ecp-stop-list>li{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.25rem;min-width:0;min-height:2.75rem;margin:0;background:var(--ed-tint);border:1px solid var(--ed-line);border-radius:.4rem;padding:.5rem .75rem;text-align:center}
.ed-v2 .ecp-difficulty{border:1px solid var(--ed-line);border-radius:999px;padding:.15rem .65rem;font-size:.8rem;font-weight:650;background:var(--ed-tint);color:var(--ed-ink)}
.ed-v2 .ecp-reference strong{font-weight:750;color:var(--ed-ink)}
.ed-v2 .ecp-card-instruction{line-height:1.65;margin:1.4rem 0 0;color:var(--ed-muted)}
.ed-v2 .ecp-write{margin-top:1.75rem;padding-top:1.5rem;border-top:1px solid var(--ed-line)}
.ed-v2 .ecp-write>label{display:block;font-weight:750;margin-bottom:.65rem}
.ed-v2 .ecp-write textarea{display:block;box-sizing:border-box;width:100%;min-height:9rem;resize:vertical;padding:1rem;border:1px solid var(--ed-line);border-radius:var(--ed-radius-sm);background:var(--ed-bg);color:var(--ed-ink);font:inherit;font-size:1rem;line-height:1.65}
.ed-v2 .ecp-answer-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1rem}
.ed-v2 .ecp-feedback,.ed-v2 .ecp-reference{margin-top:1.75rem;padding-top:1.5rem;border-top:1px solid var(--ed-line)}
.ed-v2 .ecp-feedback>h3{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:1.15rem;margin:0 0 1rem;color:var(--ed-ink)}
.ed-v2 .ecp-feedback-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.ed-v2 .ecp-feedback-columns:has(>section[hidden]){grid-template-columns:1fr}
.ed-v2 .ecp-feedback-columns>section{min-width:0;padding:1.25rem;border:1px solid currentColor;border-inline-start-width:4px;border-radius:var(--ed-radius)}
.ed-v2 .ecp-feedback-columns>[data-practice-positive-panel]{background:var(--ed-success-surface);color:var(--ed-success-ink)}
.ed-v2 .ecp-feedback-columns>[data-practice-improvement-panel]{background:var(--ed-apricot);color:var(--ed-apricot-ink)}
.ed-v2 .ecp-feedback-columns h4{display:flex;align-items:center;gap:.6rem;font-size:1rem;font-weight:750;margin:0 0 .75rem;color:inherit}
.ed-v2 .ecp-feedback-icon{flex:none;width:1.35rem;height:1.35rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ed-v2 .ecp-feedback-columns ul{margin:0;padding-left:1.3rem;line-height:1.7}
.ed-v2 .ecp-feedback-columns li+li{margin-top:.5rem}
.ed-v2 .ecp-error{border-left:3px solid var(--ed-danger,#ad302f);background:var(--ed-tint);color:var(--ed-ink);padding:1rem 1.2rem;margin-top:1.5rem;line-height:1.65}
.ed-v2 .ecp-turn{margin-top:1.5rem}
.ed-v2 .ecp-navigation{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1.4rem 0 0}
.ed-v2 .ecp-navigation [aria-disabled=true]{opacity:.55;pointer-events:none}
.ed-v2 .ecp-card:focus-visible,.ed-v2 .ecp-modes label:focus-within{outline:3px solid var(--ed-blue);outline-offset:4px}
.ed-v2 .ecp-library [hidden]{display:none!important}
@media(max-width:850px){.ed-v2 .ecp-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.ed-v2 .ecp-modes,.ed-v2 .ecp-feedback-columns{grid-template-columns:1fr}.ed-v2 .ecp-card{padding:1.5rem}.ed-v2 .ecp-filter-panel{padding:1rem 1.25rem}.ed-v2 .ecp-filter-fields{grid-template-columns:1fr}.ed-v2 .ecp-answer-actions .btn{width:100%;justify-content:center}}
/* Leave room for words when learners enlarge the text on a narrow screen. */
@media(max-width:580px){.ed-v2 .ecp-library{--ed-gutter:16px}.ed-v2 .ecp-card,.ed-v2 .ecp-filter-panel{padding:16px}.ed-v2 .ecp-modes label{padding:16px;gap:12px}.ed-v2 .ecp-modes label>span{min-width:0}.ed-v2 .ecp-feedback-columns>section{padding:12px}}
@media print{.ed-v2 .ecp-filter-panel,.ed-v2 .ecp-modes,.ed-v2 .ecp-write,.ed-v2 .ecp-answer-actions,.ed-v2 .ecp-navigation,.ed-v2 .ecp-turn{display:none!important}.ed-v2 .ecp-card{background:#fff;border:1px solid #999;color:#111;box-shadow:none}}
@media print{.ed-v2 .ecp-feedback-columns>section{background:#fff;color:#111;border-color:#777}}
/* Open pages from the previous personal-practice UI must not show cached scores. */
.ed-v2 .ecp-feedback [data-practice-grade]{display:none!important}

.ed-v2 .ecp-feedback-columns li,.ed-v2 .ecp-reference p{text-align:justify;hyphens:auto}

.ed-v2 .ecp-hint svg{width:1.35rem;height:1.35rem;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ed-v2 .ecp-hint{margin:1.25rem 0 0;padding:0;border:1px solid var(--ed-line);border-radius:var(--ed-radius-sm);background:var(--ed-tint)}
.ed-v2 .ecp-hint>summary{display:flex;align-items:center;gap:.65rem;min-height:2.75rem;padding:.75rem 1rem;cursor:pointer;color:var(--ed-blue);font-weight:700;list-style:none}
.ed-v2 .ecp-hint>summary::-webkit-details-marker{display:none}
.ed-v2 .ecp-hint>summary::after{content:'+';margin-inline-start:auto;font-size:1.25rem;font-weight:500}
.ed-v2 .ecp-hint[open]>summary::after{content:'−'}
.ed-v2 .ecp-hint>p{margin:0;padding:0 1rem 1rem;color:var(--ed-ink);font-size:1rem;line-height:1.7}
.ed-v2 .ecp-hint>summary:focus-visible{outline:3px solid var(--ed-blue);outline-offset:3px;border-radius:var(--ed-radius-sm)}

/* A single path links the endpoints; mixed concepts sit separately below it. */
.ed-v2 .ecp-route-map{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:stretch;margin:.75rem 0 1.75rem;min-width:0;border:1px solid var(--ed-line);border-radius:var(--ed-radius);overflow:hidden;background:var(--ed-blue);isolation:isolate}
.ed-v2 .ecp-route-endpoint{display:flex;flex-direction:column;justify-content:center;gap:1rem;min-width:0;min-height:13rem;padding:1.75rem 2rem}
.ed-v2 .ecp-route-start{position:relative;z-index:1;margin-inline-end:-1.75rem;padding-inline-end:3.5rem;background:var(--ed-tint);color:var(--ed-ink);clip-path:polygon(0 0,calc(100% - 1.75rem) 0,100% 50%,calc(100% - 1.75rem) 100%,0 100%)}
.ed-v2 .ecp-route-destination{padding-inline-start:3.5rem;color:var(--ed-on-navy);background:var(--ed-blue)}
.ed-v2 .ecp-route .ecp-route-endpoint h3{display:flex;align-items:center;gap:.65rem;margin:0;font-size:1rem;line-height:1.5;font-weight:700;color:inherit}
.ed-v2 .ecp-route .ecp-route-start h3{color:var(--ed-blue)}
.ed-v2 .ecp-route-icon{display:block;flex:none;width:1.6rem;height:1.6rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ed-v2 .ecp-route-checks{fill:currentColor;stroke:none}
.ed-v2 .ecp-route-endpoint p{margin:0;font-size:1rem;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.ed-v2 .ecp-route-destination p{font-size:clamp(1.2rem,2vw,1.5rem);font-weight:700;line-height:1.5;color:inherit}
@media(max-width:620px){.ed-v2 .ecp-route-map{grid-template-columns:minmax(0,1fr);margin-bottom:1.5rem}.ed-v2 .ecp-route-endpoint{min-height:0;padding:1.4rem;gap:.8rem}.ed-v2 .ecp-route-start{margin-inline-end:0;margin-bottom:-1.35rem;padding-bottom:2.7rem;clip-path:polygon(0 0,100% 0,100% calc(100% - 1.35rem),50% 100%,0 calc(100% - 1.35rem))}.ed-v2 .ecp-route-destination{padding-top:2.7rem;padding-bottom:1.6rem}}
