/* Generated from V2 source modules. Run php app/design-v2/build-assets.php after editing. */

/* tokens.css */
/* ECONDOCTOR V2 — Fjord, adopted 14 November 2026. Native rollout stays separately scoped. */
:root {
  --ed-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ed-font-display: var(--ed-font);
  --ed-ink: #263c50;
  --ed-text: #3d5264;
  --ed-muted: #4b6071;
  --ed-blue: #345c7b;
  --ed-blue-hover: #284961;
  --ed-navy: #263c50;
  --ed-on-navy: #f3f6f8;
  --ed-accent: #345c7b;
  --ed-green: #345c7b;
  --ed-green-hover: #284961;
  --ed-sage: #dbe5ed;
  --ed-sage-line: #b8c8d4;
  --ed-tint: #e1e9ef;
  --ed-bg: #eef1f3;
  --ed-paper: #dbe5ed;
  --ed-soft: #e5ecf1;
  --ed-card: #ffffff;
  --ed-workspace-surface: #f3f6f8;
  --ed-workspace-surface-alt: #e5ecf1;
  --ed-workspace-hover: #dbe5ed;
  --ed-panel-surface: #f3f6f8;
  --ed-sand-surface: #e1e9ef;
  --ed-mint-surface: #dbe5ed;
  --ed-line: #b8c8d4;
  --ed-line-strong: #7e95a8;
  --ed-chart-secondary: #507466;
  --ed-badge-surface: #cedeea;
  --ed-badge-text: #263c50;
  --ed-badge-line: #7e95a8;
  --ed-empty-surface: #f0f2f4;
  --ed-empty-alternate: #e6eaee;
  --ed-success-surface: #e3f3e8;
  --ed-success-ink: #315e50;
  --ed-apricot: #fff0df;
  --ed-apricot-ink: #94451f;
  --ed-danger: #ad302f;
  --ed-danger-bg: #fff3f3;
  /* Surface roles shared by the native adapter and V2. */
  --ed-header-surface: #f4f6f7;
  --ed-input-surface: #ffffff;
  --ed-row-surface: #e5ecf1;
  --ed-reference-card-surface: #f3f6f8;
  --ed-reference-card-alternate: #e5ecf1;
  --ed-reference-card-line: #b8c8d4;
  --ed-selected-surface: #cedeea;
  --ed-hover-surface: #dbe5ed;
  --ed-footer-surface: #d8e1e8;
  --ed-footer-text: #263c50;
  --ed-footer-hover: #284961;
  --ed-space-1: .25rem;
  --ed-space-2: .5rem;
  --ed-space-3: .75rem;
  --ed-space-4: 1rem;
  --ed-space-5: 1.5rem;
  --ed-space-6: 2rem;
  --ed-space-7: 3rem;
  --ed-space-8: 4rem;
  --ed-control-height: 44px;
  --ed-control-radius: 4px;
  --ed-radius: 6px;
  --ed-radius-sm: 4px;
  --ed-shadow: 0 2px 5px rgb(35 60 71 / .02), 0 12px 28px rgb(35 60 71 / .025);
  --ed-gutter: clamp(1rem, 3vw, 2rem);
  --ed-page: 1160px;
  --ed-page-wide: 1280px;
  --ed-page-reading: 960px;
  --ed-page-form: 680px;
  --ed-title-size: 2rem;
  --ed-body-size: 1rem;
  --ed-small-size: .875rem;
  --ed-page-padding: 2rem;
  --ed-panel-padding: 1.5rem;
  --ed-heading-content-gap: 1.25rem;
  --ed-prose-gap: 1rem;
  --ed-list-indent: 1.75em;
  --ed-focus: #345c7b;
}
/* Temporary vocabulary bridge for existing native components. No new values. */
.ed-v2, .ed-lens-root {
  --ff-sans: var(--ed-font); --font-sans: var(--ed-font);
  --brand: var(--ed-blue); --brand-600: var(--ed-blue); --brand-700: var(--ed-blue-hover);
  --brand-800: var(--ed-navy); --brand-900: var(--ed-ink);
  --accent: var(--ed-blue); --accent-d: var(--ed-blue-hover); --accent-fg: var(--ed-card);
  --accent-gradient: linear-gradient(var(--ed-blue), var(--ed-blue));
  --brand-gradient: linear-gradient(115deg, var(--ed-navy), var(--ed-ink));
  --clr-accent: var(--ed-blue); --clr-accent-d: var(--ed-blue-hover);
  --clr-text: var(--ed-text); --text: var(--ed-text); --text-muted: var(--ed-muted);
  --surface: var(--ed-bg); --surface-card: var(--ed-card); --border: var(--ed-line);
  --a-brand: var(--ed-blue); --a-brand-d: var(--ed-blue-hover);
  --a-bg: var(--ed-bg); --a-bg-2: var(--ed-tint); --a-ink: var(--ed-ink);
  --a-ink-soft: var(--ed-muted); --a-line: var(--ed-line);
  --a-radius: var(--ed-radius); --a-shadow: var(--ed-shadow); --a-shadow-sm: var(--ed-shadow);
}
@media (max-width: 640px) {
  :root { --ed-title-size: 1.625rem; --ed-page-padding: 1.5rem; --ed-panel-padding: 1.25rem; }
}

/* patterns.css */
/* Existing renderer patterns, mapped to the common V2 tokens. */
.ed-v2 .home-hero { background:var(--ed-navy); color:var(--ed-card); }
.ed-v2 .home-hero::before { content:none; }
.ed-v2 .home-hero .hero-title { color:var(--ed-card); font-family:var(--ed-font); font-size:clamp(2rem,4vw,3.2rem); line-height:1.15; letter-spacing:-.045em; }
.ed-v2 .home-hero .hero-title span { color:var(--ed-accent); }
.ed-v2 .home-hero .hero-desc { color:var(--ed-on-navy); }
.ed-v2 .home-hero .hero-kicker { color:var(--ed-accent); }
.ed-v2 .home-hero .public-text-link { color:var(--ed-on-navy); }
.ed-v2 .home-hero .home-start :is(h2,h3,a) { color:var(--ed-card); }
.ed-v2 .home-hero .home-start p { color:var(--ed-on-navy); }
.ed-v2 .home-hero .home-start { border-color:var(--ed-line-strong); }
.ed-v2 .site-main .settings-row { display:flex; align-items:baseline; gap:.6rem 1rem; flex-wrap:wrap; padding:.95rem 0; border-bottom:1px solid var(--ed-line); }
.ed-v2 .site-main .settings-rows .settings-row:last-child { border-bottom:0; padding-bottom:.25rem; }
.ed-v2 .site-main .settings-label { min-width:100px; flex-shrink:0; color:var(--ed-muted); font-size:.875rem; font-weight:500; }
.ed-v2 .site-main .settings-value { display:flex; flex:1; min-width:0; flex-direction:column; align-items:flex-start; gap:.25rem; color:var(--ed-ink); font-size:.95rem; text-align:left; line-height:1.6; }
.ed-v2 .site-main .settings-value .settings-link { font-size:.875rem; }
.ed-v2 .site-main .settings-pending { color:var(--ed-muted); font-size:.825rem; }
.ed-v2 .site-main #emailOptForm { display:grid; justify-items:start; gap:var(--ed-space-4); width:100%; min-width:0; }
.ed-v2 .site-main #emailOptForm > :is(.settings-radio-row,.btn,p) { margin:0; max-width:100%; }
.ed-v2 .site-main .settings-radio-row { display:flex; flex-wrap:wrap; gap:.65rem; }
.ed-v2 .site-main .settings-radio-row label { display:inline-flex; align-items:center; gap:.5rem; min-height:var(--ed-control-height); padding:.65rem .85rem; border:1px solid var(--ed-line); border-radius:8px; cursor:pointer; font-size:.9rem; }
.ed-v2 .site-main .settings-radio-row label:has(input:checked) { border-color:var(--ed-line-strong); background:var(--ed-tint); color:var(--ed-blue); }
.ed-v2 .site-main .settings-radio-row input { margin:0; accent-color:var(--ed-blue); }
.ed-v2 .settings-alerts { display:grid; gap:.65rem; margin-bottom:var(--ed-space-5); }
.ed-v2 .ed-settings-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:var(--ed-space-5); align-items:start; }
.ed-v2 .ed-settings-side { display:grid; gap:var(--ed-space-5); min-width:0; }
.ed-v2 .site-main .settings-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1rem; }
.ed-v2 .ed-security-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ed-space-5); }
.ed-v2 .site-main .ed-security-layout > section { margin:0; padding:1.5rem; border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-card); box-shadow:var(--ed-shadow); }
.ed-v2 .ed-security-layout .account-actions { margin-top:1.1rem; }
.ed-v2 .ed-security-layout .account-actions > :is(.btn,form) { flex:0 1 auto; }
.ed-v2 .ed-security-layout .account-actions > form > .btn { width:auto; }
.ed-v2 .ed-security-layout .account-security-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; }

/* Teacher tools and revision. */
.ed-v2 .ed-students-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:var(--ed-space-5); margin-bottom:var(--ed-space-5); align-items:stretch; }
.ed-v2 .ed-students-summary > .card { width:100%; max-width:none; margin:0; }
.ed-v2 .ed-teacher-code { display:inline-block; padding:.6rem .85rem; border:1px solid var(--ed-line); border-radius:7px; background:var(--ed-soft); color:var(--ed-ink); letter-spacing:.09em; font-size:1rem; font-weight:600; overflow-wrap:anywhere; }
.ed-v2 .ed-students-panel { margin-top:1.25rem; }
.ed-v2 .ed-students-panel > .card-body > h2 { margin:0 0 1rem !important; }
.ed-v2 .students-table :is(input[type="number"],.form-input) { min-width:4rem; }
.ed-v2 .students-table a[title="Edit name"] { min-width:44px; min-height:44px; }
.ed-v2 .revision-table tr.unit-row td { background:var(--ed-blue-hover); color:var(--ed-card); font-size:.925rem; font-weight:650; text-transform:none; text-align:left; }
.ed-v2 .revision-table tr:not(.unit-row) > td { padding:1rem; border-color:var(--ed-line); }
.ed-v2 .revision-table td.revision-chapter { color:var(--ed-text); }
.ed-v2 .revision-table td.revision-chapter em { display:inline-block; margin-top:.35rem; color:var(--ed-muted); font-size:.9rem; font-style:normal; line-height:1.65; }
.ed-v2 .revision-legend { display:flex; flex-wrap:wrap; flex-direction:row; gap:.65rem 1.2rem; margin-bottom:var(--ed-space-5); line-height:1.6; }
.ed-v2 .revision-legend-row { flex-wrap:wrap; white-space:normal; font-size:.85rem; }

/* Coin packs and resources. */
.ed-v2 .site-main .coins-card { padding:0; border:0; background:transparent; box-shadow:none; }
.ed-v2 .ed-balance { display:flex; align-items:center; flex-wrap:wrap; gap:.85rem; padding:1rem 1.25rem; margin-bottom:1.5rem; border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-tint); border-color:var(--ed-line-strong); }
.ed-v2 .ed-balance p { margin:0; color:var(--ed-muted); font-size:.95rem; }
.ed-v2 .ed-balance strong { color:var(--ed-ink); font-weight:650; }
.ed-v2 .pricing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.ed-v2 .pricing-grid .price-card { display:flex; flex-direction:column; min-width:0; padding:1.5rem; border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-card); color:var(--ed-ink); box-shadow:var(--ed-shadow); text-align:left; border-top:3px solid var(--ed-blue); }
.ed-v2 .pricing-grid .price-card-title { margin:0 0 1.4rem; color:var(--ed-ink); font-size:1.05rem; font-weight:600; }
.ed-v2 .pricing-grid .price { margin:0 0 1.5rem; font-size:2.25rem; font-weight:650; letter-spacing:-.04em; line-height:1.2; color:var(--ed-blue); }
.ed-v2 .pricing-grid .unit { display:block; margin-top:.45rem; color:var(--ed-muted); font-size:.825rem; font-weight:400; letter-spacing:0; line-height:1.5; }
.ed-v2 .pricing-grid .buy-form { margin-top:auto; }
.ed-v2 .ed-coin-guide { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ed-space-5); max-width:none !important; margin-top:1.5rem !important; }
.ed-v2 .ed-coin-guide > section { padding:1.5rem; border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-card); }
.ed-v2 .ed-coin-guide h3 { margin:0 0 1rem; color:var(--ed-ink); font-size:1.05rem; }
.ed-v2 .ed-coin-guide > section > :last-child { margin-bottom:0; }
.ed-v2 .ed-resource-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:var(--ed-space-5); align-items:start; }
.ed-v2 .ed-resource-card { width:100%; max-width:none !important; margin:0 !important; padding:1.75rem; }
.ed-v2 .ed-resource-card .content { text-align:left !important; }
.ed-v2 .ed-resource-card .btn { width:auto; min-width:180px; }
.ed-v2 .ed-resource-password { margin:1.4rem 0 0; padding-top:1.1rem; border-top:1px solid var(--ed-line); }
.ed-v2 .ed-resource-password code { display:inline-block; margin-top:.4rem; padding:.45rem .7rem; border:1px solid var(--ed-line); border-radius:7px; background:var(--ed-soft); color:var(--ed-ink); overflow-wrap:anywhere; }
.ed-v2 .ed-resource-contents { margin:0; padding-left:1.1rem; color:var(--ed-text); line-height:1.8; }
.ed-v2 .ed-resource-contents li + li { margin-top:.6rem; }

/* Long-form reading and feedback reports. Text, criteria and score colours stay native. */
.ed-v2 .ed-legal-nav { margin:0 0 1.5rem; padding-bottom:1rem; border-bottom:1px solid var(--ed-line); }
.ed-v2 .site-main :is(.terms,.privacy,.cookies,.legal) .content { max-width:none; margin:0; padding:clamp(1.25rem,3vw,2.5rem); border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-card); color:var(--ed-text); line-height:1.8; }
.ed-v2 .site-main :is(.terms,.privacy,.cookies,.legal) .content > :not(.table-responsive) { max-width:76ch; }
.ed-v2 .site-main :is(.terms,.privacy,.cookies,.legal) .content :is(h2,h3) { color:var(--ed-ink); scroll-margin-top:7rem; }
.ed-v2 .site-main :is(.terms,.privacy,.cookies,.legal) .content h2 { margin:2rem 0 .75rem; font-size:1.15rem; font-weight:650; line-height:1.45; }
.ed-v2 .site-main :is(.terms,.privacy,.cookies,.legal) .content h3 { margin:1.5rem 0 .65rem; font-size:1.025rem; line-height:1.5; }
.ed-v2 .site-main :is(.terms,.privacy,.cookies,.legal) .content li { margin-block:.5rem; }
.ed-v2 .site-main :is(.terms,.privacy,.cookies,.legal) .content small { color:var(--ed-muted); }
.ed-v2 .report :is(.report-context,.report-check-card,.report-criterion-card,.report-rubric) { border-color:var(--ed-line); border-radius:var(--ed-control-radius); box-shadow:none; }
.ed-v2 .report .report-context { background:var(--ed-soft); padding:1.1rem 1.25rem; }
.ed-v2 .report :is(.report-context-title,.report-criterion-name,.report-criterion-label) { color:var(--ed-ink); }
.ed-v2 .report .report-callout { border-radius:9px; box-shadow:none; }
.ed-v2 .report .report-callout:not(.report-callout--warning):not(.report-callout--danger) { background:var(--ed-soft); border-color:var(--ed-line); color:var(--ed-text); font-weight:500; }
.ed-v2 .report :is(.report-score-value,.report-grade-value) { font-variant-numeric:tabular-nums; letter-spacing:-.035em; }
.ed-v2 .report .report-score { border-radius:var(--ed-control-radius); box-shadow:none; }
.ed-v2 .report .report-criterion-row { padding-block:1.25rem; }
.ed-v2 .report :is(.report-prose,.report-criterion-text,.report-criterion-feedback) { line-height:1.75; }
.ed-v2 .report :is(.report-prose:has(br),.report-criterion-text:has(br),.report-criterion-feedback p:has(br)) { white-space:normal; }
.ed-v2 .report .report-grade { background:var(--ed-soft); border-color:var(--ed-line); border-radius:var(--ed-control-radius); }
.ed-v2 .report :is(.report-grade-label,.report-grade-value) { color:var(--ed-blue); }
.ed-v2 .report .report-meter-bar { background:var(--ed-blue); }
.ed-v2 .report .report-context a { color:var(--ed-blue); }
.ed-v2.ed-lens-root header { flex-wrap:wrap; }
.ed-v2.ed-lens-root nav { max-width:100%; flex-wrap:wrap; }
.ed-v2.ed-lens-root .masthead { background:var(--ed-header-surface); color:var(--ed-ink); border-color:var(--ed-line); }
.ed-v2.ed-lens-root .masthead :is(.brand,.header-note,.header-note a,nav a) { color:var(--ed-blue); opacity:1; }
.ed-v2.ed-lens-root .masthead .brand :is(span,small) { color:inherit; opacity:1; }
.ed-v2.ed-projection .mcq-present__bigcode {
  color:var(--ed-on-navy) !important;
  font-size:clamp(1rem,10vw,9rem);
  white-space:nowrap;
  overflow-wrap:normal;
}

/* Home, directory, guides and real-world examples. */
.ed-v2 .home-hero-loggedin { padding-block:2.5rem; border-bottom:1px solid var(--ed-blue-hover); background:linear-gradient(115deg,var(--ed-navy),var(--ed-text) 65%,var(--ed-navy)); color:var(--ed-card); }
.ed-v2 .home-hero-loggedin::before { content:none; }
.ed-v2 .home-hero-loggedin .hero-title { color:var(--ed-card); font-size:clamp(1.9rem,4vw,2.4rem); font-weight:700; letter-spacing:-.04em; }
.ed-v2 .home-hero-loggedin .hero-desc { color:var(--ed-line); }
.ed-v2 .site-main :is(.tool-card,.learning-card,.rwe-card,.public-resource-list li) { border-color:var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-card); box-shadow:var(--ed-shadow); }
.ed-v2 .tool-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.ed-v2 .tool-card { padding:1.4rem; gap:.65rem; }
.ed-v2 .tool-card-name { color:var(--ed-ink); font-size:1rem; font-weight:650; }
.ed-v2 .tool-card-desc { color:var(--ed-muted); font-size:.875rem; line-height:1.65; }
.ed-v2 .site-main .tool-card:hover { transform:none; border-color:var(--ed-line-strong); box-shadow:0 4px 14px rgb(24 47 72 / .06); }
.ed-v2 .stat-card { padding:1.4rem; }
.ed-v2 .stat-card-label { color:var(--ed-muted); font-size:.825rem; font-weight:500; text-transform:none; letter-spacing:0; }
.ed-v2 .stat-card-value { color:var(--ed-ink); font-size:1.9rem; letter-spacing:-.04em; font-weight:650; }
.ed-v2 .activity-card { padding:1.5rem; }
.ed-v2 .activity-row { flex-wrap:wrap; padding-block:.8rem; border-color:var(--ed-line); }
.ed-v2 .activity-label { flex:1 1 14rem; color:var(--ed-text); white-space:normal; font-size:.9rem; }
.ed-v2 :is(.activity-meta,.activity-link) { max-width:100%; white-space:normal; font-size:.825rem; }
.ed-v2 .public-resource-list { gap:1rem; }
.ed-v2 .public-resource-list li { border:1px solid var(--ed-line); }
.ed-v2 .public-resource-list a { padding:1.4rem; }
.ed-v2 .public-resource-name { color:var(--ed-ink); font-size:1.025rem; font-weight:650; }
.ed-v2 .public-resource-description { color:var(--ed-muted); font-size:.925rem; }
.ed-v2 .public-home-block .section-title { color:var(--ed-ink); font-weight:650; }
.ed-v2 .site-main .learning-heading h1 { color:var(--ed-ink); font-weight:700; letter-spacing:-.035em; }
.ed-v2 .learning-card { padding:1.5rem; }
.ed-v2 .learning-card h3 { font-size:1.1rem; }
.ed-v2 .rwe-card { padding:1.4rem; }

/* Administration uses the same components, with additional room for wide data. */
.ed-v2 .admin-shell { --a-brand:var(--ed-blue); --a-bg:var(--ed-bg); --a-bg-2:var(--ed-soft); --a-ink:var(--ed-ink); --a-ink-soft:var(--ed-muted); --a-line:var(--ed-line); --a-radius:12px; --a-shadow:var(--ed-shadow); --a-shadow-sm:var(--ed-shadow); }
.ed-v2 .site-main.admin-shell > .section.resources-section { background:transparent; }
.ed-v2 .admin-grid > * { min-width:0; width:100%; margin-inline:0; }
.ed-v2 .admin-shell .admin-table-wrap { min-width:0; max-width:100%; }
.ed-v2 .admin-shell table.admin-table thead th { background:var(--ed-blue-hover); color:var(--ed-card); font-size:.825rem; }
.ed-v2 .admin-shell table.admin-table :is(th,td) { overflow-wrap:normal; word-break:normal; }
.ed-v2 .admin-shell table.admin-table thead th { white-space:nowrap; text-transform:none; letter-spacing:0; }
.ed-v2 .admin-shell .admin-stat { box-shadow:var(--ed-shadow); }
.ed-v2 .admin-shell .admin-stat-label { color:var(--ed-muted); text-transform:none; letter-spacing:0; font-size:.825rem; font-weight:500; }
.ed-v2 .admin-shell .admin-stat-value { font-size:1.8rem; font-weight:650; letter-spacing:-.035em; }

@media(max-width:900px) {
  .ed-v2 .pricing-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ed-v2 .tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ed-v2 :is(.ed-settings-grid,.ed-resource-layout) { grid-template-columns:minmax(0,1fr); }
  .ed-v2 .ed-settings-side { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
}
@media(max-width:640px) {
  .ed-v2 .home-hero .home-start { grid-template-columns:minmax(0,1fr); padding:1.25rem; }
  .ed-v2 .pricing-grid .price-card { padding:1.4rem; }
  .ed-v2 .site-main > :is(.section,.settings-section,.account-section,.auth-section) { padding-block:1.5rem 2.5rem; }
  .ed-v2 :is(.ed-panel-grid,.ed-security-layout,.ed-students-summary,.ed-coin-guide,.ed-settings-side) { grid-template-columns:minmax(0,1fr); }
  .ed-v2 .site-main :is(.card-body,.card-header,.account-card,.auth-card,.settings-card,.ed-panel,.ed-resource-card,.ed-security-layout > section,.ed-coin-guide > section) { padding:1.2rem; }
  .ed-v2 .site-main .ed-account-surface { padding:0; }
  .ed-v2 .site-main .auth-container > .auth-form { padding:1.2rem; }
  .ed-v2 .site-main .settings-row { flex-direction:column; gap:.3rem; }
  .ed-v2 .site-main .form-select { min-width:0 !important; width:100%; height:auto; }
  .ed-v2 .site-main .table :is(th,td) { padding:.8rem; }
  .ed-v2 .site-main .students-table { min-width:560px; }
  .ed-v2 .site-main .revision-table,
  .ed-v2 .site-main .revision-table :is(tbody,tr) { display:block; width:100%; min-width:0; }
  .ed-v2 .site-main .revision-table td { display:block; width:auto; }
  .ed-v2 .site-main .revision-table td.revision-rating { padding-top:0; text-align:left; }
  .ed-v2 .ed-resource-card .btn { width:100%; min-width:0; }
  .ed-v2 .ed-legal-nav { gap:.2rem; }
  .ed-v2 .ed-section-nav a { padding:.6rem .75rem; }
}
@media(max-width:640px){
 .ed-v2 .pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .ed-v2 .pricing-grid .price-card{padding:20px}
 .ed-v2 .pricing-grid .price{font-size:2rem}
 .ed-v2 .ed-pack-count{font-size:1.75rem}
 .ed-v2 .ed-pack-symbol{width:34px;height:34px;flex-basis:34px}
 .ed-v2 .pricing-grid .buy-form .btn{padding-inline:10px}
}
@media(max-width:380px){.ed-v2 .pricing-grid{grid-template-columns:minmax(0,1fr)}}

/* Coin packs share the normal panel and action scale. */
.ed-v2 .ed-page .card.coins-card{padding:0;border:0;background:transparent;box-shadow:none}
.ed-v2 .ed-pack-head{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.ed-v2 .ed-pack-symbol{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--ed-line);border-radius:10px;background:var(--ed-tint);color:var(--ed-blue)}
.ed-v2 .ed-pack-symbol svg{width:22px;height:22px}
.ed-v2 .pricing-grid .price-card-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;margin:0}
.ed-v2 .ed-pack-count{font-size:28px;line-height:1.2;font-weight:650}.ed-v2 .ed-pack-label{font-size:14px;color:var(--ed-muted);font-weight:500}
@media(max-width:640px){.ed-v2 .ed-pack-head{gap:8px}.ed-v2 .ed-pack-symbol{flex-basis:32px;width:32px;height:32px}.ed-v2 .ed-pack-count{font-size:26px}}

/* Page layouts centralized from legacy inline styles. */
/* /about.php — layout retained; shared tokens below take precedence. */

  .about-modern-section {
    padding-block: clamp(2.25rem, 4vw, 4rem);
  }

  .about-modern-wrap {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
  }

  .about-modern-title {
    margin: 0 0 1.5rem;
    text-align: center;
    /* Meme titre que les trente autres pages du site (.section-title dans
       assets/styles.css) : cette page et about.php etaient les deux seules a
       ecrire le leur, en bleu plus clair et moins gras. */
    color: hsl(var(--clr-primary-h) var(--clr-primary-s) calc(var(--clr-primary-l) * .82));
    font-size: clamp(1.9rem, 5vw, 2.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-inline: auto;
  }

  .about-modern-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.6vw, 2rem);
    padding: clamp(1.25rem, 2.4vw, 1.9rem);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
    border: 1px solid rgba(16, 36, 62, .08);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
    overflow: hidden;
  }

  .about-modern-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: min(32%, 340px);
    background: linear-gradient(180deg, hsla(var(--clr-primary-h) var(--clr-primary-s) 92% / .95), hsla(var(--clr-primary-h) var(--clr-primary-s) 96% / .82));
    border-right: 1px solid rgba(16, 36, 62, .06);
    pointer-events: none;
  }

  .about-modern-sidebar,
  .about-modern-content {
    position: relative;
    z-index: 1;
  }

  .about-modern-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: .35rem 0;
  }

  .about-modern-portrait {
    width: clamp(170px, 18vw, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.72) 58%, rgba(255,255,255,.28) 100%);
    box-shadow:
      0 0 0 10px rgba(255,255,255,.72),
      0 18px 34px rgba(15, 23, 42, .12);
  }

  .about-modern-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
  }

  .about-modern-meta {
    margin-top: .45rem;
  }

  .about-modern-meta h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 1.8rem);
    line-height: 1.15;
    color: #0f2f55;
  }

  .about-modern-meta p {
    margin: .35rem 0 0;
    color: rgba(31, 41, 55, .8);
    line-height: 1.5;
  }

  .about-modern-meta p + p {
    margin-top: .22rem;
    font-size: .98rem;
  }

  .about-modern-content {
    padding-left: clamp(.1rem, 1vw, .4rem);
    color: var(--clr-text);
  }

  .about-modern-content p {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.82;
    text-align: justify;
    text-justify: inter-word;
  }

  .about-modern-content p + p {
    margin-top: 1rem;
  }

  .about-modern-content strong {
    color: #0f2f55;
  }

  @media (max-width: 900px) {
    .about-modern-card {
      grid-template-columns: 1fr;
    }

    .about-modern-card::before {
      inset: 0 0 auto 0;
      width: auto;
      height: 240px;
      border-right: 0;
      border-bottom: 1px solid rgba(16, 36, 62, .06);
    }

    .about-modern-sidebar {
      padding-top: .5rem;
      padding-bottom: .25rem;
    }

    .about-modern-content {
      padding-left: 0;
    }
  }

  @media (max-width: 640px) {
    .about-modern-title {
      margin-bottom: 1rem;
    }

    .about-modern-card {
      border-radius: 18px;
      padding: 1rem;
      gap: 1.15rem;
    }

    .about-modern-card::before {
      height: 210px;
    }

    .about-modern-portrait {
      width: 164px;
      box-shadow:
        0 0 0 8px rgba(255,255,255,.74),
        0 16px 28px rgba(15, 23, 42, .12);
    }

    .about-modern-content p {
      font-size: 1rem;
      line-height: 1.72;
      text-align: left;
    }
  }

/* /admin/prices.php — layout retained; shared tokens below take precedence. */

  .cp-note { font-size:.82rem; opacity:.75; margin:.15rem 0 0; }
  .cp-tbl { width:100%; border-collapse:collapse; font-size:.9rem; }
  .cp-tbl th, .cp-tbl td { padding:.45rem .5rem; border-bottom:1px solid rgba(128,128,128,.25); vertical-align:top; text-align:left; }
  .cp-tbl th { font-size:.74rem; text-transform:uppercase; letter-spacing:.05em; opacity:.7; }
  .cp-num { width:5.5rem; }
  .cp-units { width:4.5rem; }
  .cp-key { font-family:ui-monospace,monospace; font-size:.78rem; opacity:.8; }
  .cp-flag { font-size:.74rem; padding:.1rem .4rem; border-radius:3px; border:1px solid rgba(128,128,128,.4); }
  .cp-total { font-size:.8rem; opacity:.8; white-space:nowrap; }
  .cp-scroll { overflow-x:auto; }

/* /admin/send_emails.php — layout retained; shared tokens below take precedence. */

  .page-mail .section-title { margin-top: 0; }
  .page-mail .card-header { margin-bottom: 1rem; }
  @media (min-width:768px){ .page-mail .card-header { margin-bottom: 1.25rem; } }

  .page-mail .form-label { font-weight: 700; }

  .page-mail .form-input,
  .page-mail .form-textarea {
    padding: .8rem 1rem;
    border: 1px solid var(--clr-muted);
    border-radius: var(--radius);
    background: #fff;
    min-height: 2.75rem;
  }

  .page-mail .form-hint { font-style: italic; color: rgba(31,41,55,.8); margin-top: .25rem; }
  .page-mail .wc { font-weight: 700; margin-top: .25rem; }

  .page-mail .field-error {
    margin: .35rem 0 .35rem 0;
    color: #b00020;
    font-size: .95rem;
  }
  .page-mail .is-invalid {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 2px rgba(176,0,32,.08);
  }

  .page-mail .btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* /change_email.php — layout retained; shared tokens below take precedence. */

        /* Local, tiny spacing helpers to keep fields perfectly aligned */
        .form-label { display:block; margin-top:.75rem; }
        .form-label:first-of-type { margin-top:0; }
        .form-hint  { display:block; margin-top:.25rem; opacity:.85; }

/* /contact.php — layout retained; shared tokens below take precedence. */

  .contact-modern-section {
    padding-block: clamp(2.25rem, 4vw, 4rem);
  }

  .contact-modern-wrap {
    width: min(100% - 2rem, 1080px);
    margin-inline: auto;
  }

  .contact-modern-title {
    margin: 0 0 1.5rem;
    text-align: center;
    /* Meme titre que les trente autres pages du site (.section-title dans
       assets/styles.css) : cette page et about.php etaient les deux seules a
       ecrire le leur, en bleu plus clair et moins gras. */
    color: hsl(var(--clr-primary-h) var(--clr-primary-s) calc(var(--clr-primary-l) * .82));
    font-size: clamp(1.9rem, 5vw, 2.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-inline: auto;
  }

  .contact-modern-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .9fr);
    gap: clamp(1rem, 2.5vw, 1.6rem);
    padding: clamp(1.15rem, 2.4vw, 1.9rem);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
    border: 1px solid rgba(16, 36, 62, .08);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
  }

  .contact-modern-main {
    display: flex;
    align-items: flex-start;
    min-height: 100%;
    padding: .15rem;
  }

  .contact-modern-copy {
    max-width: 42rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(31, 41, 55, .88);
    margin: 0;
  }

  .contact-modern-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.3rem);
    border-radius: 20px;
    background: linear-gradient(180deg, hsla(var(--clr-primary-h) var(--clr-primary-s) 95% / .95), hsla(var(--clr-primary-h) var(--clr-primary-s) 97% / .86));
    border: 1px solid rgba(16, 36, 62, .06);
  }

  .contact-modern-name {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    line-height: 1.12;
    color: #0f2f55;
  }

  .contact-modern-links {
    display: grid;
    gap: .8rem;
  }

  .contact-modern-link {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(16, 36, 62, .08);
    color: #0f2f55;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }

  .contact-modern-link:hover,
  .contact-modern-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(16, 36, 62, .14);
    box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
  }

  .contact-modern-link img,
  .contact-modern-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .contact-modern-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .contact-modern-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  @media (max-width: 860px) {
    .contact-modern-card {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 640px) {
    .contact-modern-title {
      margin-bottom: 1rem;
    }

    .contact-modern-card {
      border-radius: 18px;
      padding: 1rem;
    }

    .contact-modern-copy {
      font-size: 1rem;
      line-height: 1.68;
    }
  }

/* /ee/add_form.php — layout retained; shared tokens below take precedence. */

  .page-ee-form .card-header { margin-bottom: 1rem; }
  @media (min-width: 768px){ .page-ee-form .card-header { margin-bottom: 1.25rem; } }
  .page-ee-form .form-field { margin-bottom: 1.25rem; }
  @media (min-width: 768px){ .page-ee-form .form-field { margin-bottom: 1.5rem; } }
  .page-ee-form .form-label { display:block; margin-bottom:.45rem; font-weight:700; }
  .page-ee-form .form-input, .page-ee-form .form-select, .page-ee-form .form-textarea {
    width:100%; padding:.85rem 1rem; border:1px solid var(--clr-muted);
    border-radius:var(--radius); line-height:1.4; background:#fff;
  }
  .page-ee-form .form-textarea { resize: vertical; min-height: 240px; }
  .page-ee-form .form-hint { margin-top:.35rem; font-style: italic; color: rgba(0,0,0,.75); }
  .page-ee-form .form-actions { display:flex; gap:.75rem; flex-wrap:wrap; margin-top: 1.25rem; justify-content:flex-start; }
  .page-ee-form .form-warning { margin-top:.5rem; color:#b00020; }

/* /ee/add_rq.php — layout retained; shared tokens below take precedence. */

  /* Scope styles to this page (mirror IA add_* pages) */
  .page-ee-rq .card-header { margin-bottom: 1rem; }
  @media (min-width: 768px) {
    .page-ee-rq .card-header { margin-bottom: 1.25rem; }
  }

  .page-ee-rq .form-field { margin-bottom: 1.25rem; }
  @media (min-width: 768px) {
    .page-ee-rq .form-field { margin-bottom: 1.5rem; }
  }

  .page-ee-rq .form-label {
    display: block;
    margin-bottom: .45rem;
    font-weight: 700;
  }

  .page-ee-rq .form-textarea {
    display: block;
    width: 100%;
    padding: .8rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--clr-muted);
    background-color: #fff;
    font: inherit;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    resize: vertical;
  }

  .page-ee-rq .form-textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .14);
    background-color: #fff;
  }

  .page-ee-rq .form-textarea::placeholder {
    color: rgba(0, 0, 0, .45);
  }

  .page-ee-rq .form-hint {
    margin-top: .35rem;
    font-size: .95rem;
    color: rgba(0, 0, 0, .65);
  }

  .page-ee-rq .form-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
  }

  .page-ee-rq .field-error {
    margin: .35rem 0 .35rem 0;
    color: #b00020;
    font-size: .95rem;
  }

  .page-ee-rq .is-invalid {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.08);
  }

/* /ia/add_article.php — layout retained; shared tokens below take precedence. */

  /* Scope styles to this page (same pattern as add_draft.php) */
  .page-ia-article .card-header { margin-bottom: 1rem; }
  @media (min-width: 768px) {
    .page-ia-article .card-header { margin-bottom: 1.25rem; }
  }

  .page-ia-article .form-field { margin-bottom: 1.25rem; }
  @media (min-width: 768px) {
    .page-ia-article .form-field { margin-bottom: 1.5rem; }
  }

  .page-ia-article .form-label {
    display: block;
    margin-bottom: .45rem;
    font-weight: 700;
  }

  .page-ia-article .form-input,
  .page-ia-article .form-select,
  .page-ia-article .form-textarea {
    display: block;
    width: 100%;
    padding: .8rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--clr-muted);
    background-color: #fff;
    font: inherit;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  }

  .page-ia-article .form-input:focus,
  .page-ia-article .form-select:focus,
  .page-ia-article .form-textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .14);
    background-color: #fff;
  }

  .page-ia-article .form-input::placeholder,
  .page-ia-article .form-textarea::placeholder {
    color: rgba(0, 0, 0, .45);
  }

  .page-ia-article .form-hint {
    margin-top: .35rem;
    font-size: .95rem;
    color: rgba(0, 0, 0, .65);
  }

  .page-ia-article .form-hint em {
    font-style: normal;
    font-weight: 500;
    color: rgba(0, 0, 0, .75);
  }

  .page-ia-article .form-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
  }

  .page-ia-article .field-error {
    margin: .35rem 0 .35rem 0;
    color: #b00020;
    font-size: .95rem;
  }

  .page-ia-article .is-invalid {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.08);
  }

  .page-ia-article .wc {
    font-weight: 700;
    margin-top: .25rem;
  }

/* /login.php — layout retained; shared tokens below take precedence. */

      .auth-main{
        flex:1;
        display:flex;
        align-items:center;
      }
      .auth-section{
        width:100%;
        padding-block:clamp(2.5rem, 7vw, 5rem);
        background:
          radial-gradient(circle at top left, rgba(254,193,0,.16), transparent 24%),
          radial-gradient(circle at top right, hsl(var(--brand-h) var(--brand-s) 22% / .10), transparent 28%),
          linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
      }
      .auth-wrap{
        width:min(100%, 580px);
        margin-inline:auto;
      }
      .auth-card{
        padding:clamp(1.5rem, 3vw, 2rem);
        border-radius:22px;
        border:1px solid hsl(var(--brand-h) var(--brand-s) 22% / .10);
        background:rgba(255,255,255,.94);
        backdrop-filter:blur(8px);
        box-shadow:var(--shadow-xl);
      }
      .auth-brand{
        display:inline-flex;
        align-items:center;
        width:fit-content;
        margin-bottom:1rem;
        padding:.42rem .78rem;
        border-radius:999px;
        background:hsl(var(--brand-h) var(--brand-s) 22% / .06);
        border:1px solid hsl(var(--brand-h) var(--brand-s) 22% / .10);
        color:var(--brand-800);
        font-size:.84rem;
        font-weight:700;
        letter-spacing:.01em;
      }
      .auth-card-head{
        margin-bottom:1rem;
      }
      .auth-title{
        font-size:clamp(1.85rem, 4vw, 2.35rem);
        line-height:1.05;
        letter-spacing:-.03em;
        margin:0 0 .45rem;
        color:var(--brand-900);
      }
      .auth-lead{
        margin:0;
        color:hsl(var(--brand-h) var(--brand-s) 15% / .74);
        font-size:1rem;
        line-height:1.6;
      }
      .auth-form{
        display:flex;
        flex-direction:column;
        gap:.95rem;
        margin-top:1.15rem;
      }
      .auth-form input{
        width:100%;
        min-height:52px;
        padding:.9rem 1rem;
        border:1px solid hsl(var(--brand-h) var(--brand-s) 22% / .14);
        border-radius:14px;
        background:#fff;
        font-size:1rem;
        transition:border-color .2s, box-shadow .2s, background .2s;
      }
      .auth-form input:focus{
        outline:none;
        border-color:hsl(var(--brand-h) var(--brand-s) 22% / .42);
        box-shadow:0 0 0 4px hsl(var(--brand-h) var(--brand-s) 22% / .10);
      }
      .auth-form .btn{
        min-height:52px;
        border-radius:14px;
      }
      .auth-form .btn-accent{
        box-shadow:0 12px 24px rgba(254,193,0,.22);
      }
      .auth-form .btn-accent:hover,
      .auth-form .btn-accent:focus-visible{
        box-shadow:0 16px 28px rgba(213,94,22,.24);
      }
      .auth-card .alert{
        margin-bottom:.85rem;
        text-align:left;
        border-radius:14px;
      }
      .auth-utility{
        margin-top:1rem;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:.9rem;
        flex-wrap:wrap;
      }
      .auth-meta{
        margin:0;
        font-size:.95rem;
      }
      .auth-meta a{
        color:hsl(var(--clr-primary-h) var(--clr-primary-s) var(--clr-primary-l));
        text-decoration:none;
        font-weight:600;
      }
      .auth-meta a:hover,
      .auth-meta a:focus-visible{
        text-decoration:underline;
      }
      .auth-actions{
        margin:0;
      }
      .auth-actions .btn-secondary{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        width:auto;
        min-height:46px;
        padding:.7rem 1rem;
        border-radius:999px;
        border:1px solid hsl(var(--brand-h) var(--brand-s) 22% / .14);
        background:#f7fafc;
        color:var(--brand-800);
        text-decoration:none;
        font-weight:600;
        transition:background .2s, border-color .2s, color .2s, transform .2s;
      }
      .auth-actions .btn-secondary:hover,
      .auth-actions .btn-secondary:focus-visible{
        background:#eef3f8;
        border-color:hsl(var(--brand-h) var(--brand-s) 22% / .22);
        color:var(--brand-900);
        transform:translateY(-1px);
      }
      @media (max-width: 560px){
        .auth-section{
          padding-block:1.5rem 2.5rem;
        }
        .auth-card{
          border-radius:18px;
          padding:1.2rem;
        }
        .auth-utility{
          align-items:stretch;
        }
        .auth-actions,
        .auth-actions .btn-secondary{
          width:100%;
        }
      }

/* /admin/reset_emails.php — layout retained; shared tokens below take precedence. */

  .admin-mail-hero {
    display:grid;
    gap:1rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
    align-items:stretch;
  }
  .admin-mail-focus {
    border:1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(246,248,252,1) 100%);
    box-shadow: 0 16px 34px rgba(15,23,42,.05);
    padding:1.15rem 1.2rem;
  }
  .admin-mail-focus-label { margin:0 0 .45rem 0; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; color:rgba(31,41,55,.6); }
  .admin-mail-focus-title { margin:0; font-size:1.12rem; line-height:1.35; }
  .admin-mail-focus-meta { margin-top:.7rem; display:flex; gap:.45rem; flex-wrap:wrap; }
  .admin-mail-progress { margin-top:1rem; }
  .admin-mail-progress-track { height:10px; border-radius:999px; background:rgba(15,23,42,.08); overflow:hidden; }
  .admin-mail-progress-bar { height:100%; border-radius:999px; background:linear-gradient(90deg, #111827 0%, #4b5563 100%); }
  .admin-mail-progress-bar.warn { background:linear-gradient(90deg, #b45309 0%, #f59e0b 100%); }
  .admin-mail-progress-bar.danger { background:linear-gradient(90deg, #991b1b 0%, #ef4444 100%); }
  .admin-mail-progress-note { margin:.55rem 0 0 0; color:rgba(31,41,55,.74); }
  .admin-mail-sidecard { border:1px solid rgba(15,23,42,.08); border-radius:20px; background:#fff; box-shadow: 0 12px 26px rgba(15,23,42,.04); padding:1.15rem 1.2rem; }
  .admin-mail-mini-list { margin:.9rem 0 0 0; padding:0; list-style:none; display:grid; gap:.7rem; }
  .admin-mail-mini-list li { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
  .admin-mail-mini-list span:first-child { color:rgba(31,41,55,.72); }
  .admin-mail-compact { font-size:.92rem; color:rgba(31,41,55,.74); }
  .admin-mail-table .admin-actions { gap:.35rem; }
  .admin-mail-table .btn { padding:.45rem .62rem; }
  @media (max-width: 980px) {
    .admin-mail-hero { grid-template-columns: 1fr; }
  }

/* /admin/ai_prompts.php — layout retained; shared tokens below take precedence. */

/* ---- Summary strip ---- */
.aip-summary { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-bottom:1rem; }
.aip-pill {
  display:inline-flex; align-items:center; gap:.35rem; font-size:.78rem; font-weight:600;
  padding:.3rem .7rem; border-radius:999px; background:#eef2ff; color:#225b91; border:1px solid #c7d2fe;
}
.aip-pill code { background:transparent; padding:0; font-weight:700; }
.aip-pill b { font-weight:800; }

/* ---- Batch tool ---- */
.aip-batch {
  border:1px solid #c7d2fe; border-radius:12px; background:linear-gradient(135deg,#f5f7ff 0%,#eef2ff 100%);
  margin-bottom:1.5rem; overflow:hidden;
}
.aip-batch-head {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:.8rem 1rem; cursor:pointer; user-select:none;
}
.aip-batch-head h3 { margin:0; font-size:.95rem; color:#19476f; font-weight:700; }
.aip-batch-head .aip-batch-sub { font-size:.78rem; color:#225b91; opacity:.85; }
.aip-batch-chevron { transition:transform .18s; color:#225b91; font-size:1rem; }
.aip-batch.collapsed .aip-batch-chevron { transform:rotate(-90deg); }
.aip-batch-body { padding:0 1rem 1rem; }
.aip-batch.collapsed .aip-batch-body { display:none; }

.aip-batch-scope { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin:.25rem 0 1rem; }
.aip-batch-scope label { font-size:.82rem; font-weight:700; color:#19476f; }

.aip-batch-fields { display:grid; grid-template-columns:repeat(3,1fr); gap:.85rem; }
@media(max-width:760px){ .aip-batch-fields { grid-template-columns:1fr; } }
.aip-batch-field {
  border:1px solid #d1d5db; border-radius:9px; background:#fff; padding:.7rem .8rem;
  transition:border-color .15s, box-shadow .15s, opacity .15s;
}
.aip-batch-field.off { opacity:.55; }
.aip-batch-field.on  { border-color:#225b91; box-shadow:0 0 0 2px rgba(34,91,145,.14); }
.aip-batch-field-top { display:flex; align-items:center; gap:.45rem; margin-bottom:.5rem; }
.aip-batch-field-top input[type=checkbox] { width:1rem; height:1rem; cursor:pointer; }
.aip-batch-field-top label { font-size:.82rem; font-weight:700; color:#374151; cursor:pointer; }

.aip-batch-actions { display:flex; align-items:center; gap:1rem; margin-top:1rem; }
.aip-btn-batch {
  padding:.5rem 1.3rem; background:#225b91; color:#fff; border:none; border-radius:7px;
  font-size:.85rem; font-weight:700; cursor:pointer; transition:background .15s;
}
.aip-btn-batch:hover { background:#19476f; }
.aip-batch-hint { font-size:.75rem; color:#6b7280; }

/* ---- Tabs (sticky) ---- */
.aip-tabbar { position:sticky; top:0; z-index:20; background:rgba(248,250,252,.96); backdrop-filter:blur(4px);
  padding:.4rem 0; margin-bottom:1rem; border-bottom:1px solid #e5e7eb; }
.aip-tabs-row { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; }
.aip-tab-btn {
  padding:.45rem 1rem; border-radius:6px; border:1.5px solid #d1d5db;
  background:#fff; cursor:pointer; font-size:.85rem; font-weight:500; color:#374151;
  transition:background .15s, border-color .15s;
}
.aip-tab-btn:hover { background:#f3f4f6; }
.aip-tab-btn.active { background:#225b91; color:#fff; border-color:#225b91; }
.aip-tab-spacer { flex:1; }
.aip-mini-btn {
  padding:.35rem .7rem; border:1px solid #d1d5db; background:#fff; border-radius:6px;
  font-size:.75rem; font-weight:600; color:#374151; cursor:pointer;
}
.aip-mini-btn:hover { background:#f3f4f6; }

.aip-tab-panel { display:none; }
.aip-tab-panel.active { display:block; }

.aip-card {
  background:#fff; border:1px solid #e5e7eb; border-radius:8px;
  margin-bottom:1.25rem; overflow:hidden; scroll-margin-top:70px;
}
.aip-card-header {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:.7rem 1rem; background:#f8fafc; border-bottom:1px solid #e5e7eb; cursor:pointer;
}
.aip-card-htitle { display:flex; align-items:center; gap:.55rem; min-width:0; }
.aip-card-chevron { color:#9ca3af; font-size:.85rem; transition:transform .18s; flex:none; }
.aip-card.collapsed .aip-card-chevron { transform:rotate(-90deg); }
.aip-card-title { font-weight:600; font-size:.95rem; color:#1e293b; }
.aip-card-badges { display:flex; gap:.35rem; flex-wrap:wrap; align-items:center; }
.aip-mini-badge {
  display:inline-block; font-size:.7rem; font-weight:600; padding:.12rem .45rem; border-radius:4px;
  background:#f1f5f9; color:#475569; border:1px solid #e2e8f0; white-space:nowrap;
}
.aip-mini-badge.model { background:#eef2ff; color:#225b91; border-color:#c7d2fe; }
.aip-card-meta  { font-size:.75rem; color:#9ca3af; white-space:nowrap; }
.aip-card-body  { padding:1rem; }
.aip-card.collapsed .aip-card-body { display:none; }

.aip-row { display:grid; grid-template-columns:1fr 1fr 1fr; gap:.75rem; margin-bottom:.75rem; }
@media(max-width:700px){ .aip-row { grid-template-columns:1fr; } }

.aip-label { display:block; font-size:.78rem; font-weight:600; color:#374151; margin-bottom:.3rem; }
.aip-input, .aip-select {
  width:100%; padding:.4rem .6rem; border:1px solid #d1d5db; border-radius:5px;
  font-size:.85rem; color:#111827; background:#fff; box-sizing:border-box;
}
.aip-input:focus, .aip-select:focus { outline:none; border-color:#225b91; box-shadow:0 0 0 2px rgba(34,91,145,.18); }

.aip-textarea {
  width:100%; padding:.5rem .65rem; border:1px solid #d1d5db; border-radius:5px;
  font-size:.78rem; font-family:'Courier New', monospace; color:#1e293b;
  resize:vertical; min-height:180px; box-sizing:border-box; line-height:1.5;
}
.aip-textarea:focus { outline:none; border-color:#225b91; box-shadow:0 0 0 2px rgba(34,91,145,.18); }
.aip-textarea[readonly] { background:#f8fafc; color:#6b7280; cursor:not-allowed; }

.aip-section-sep { border:none; border-top:1px dashed #e5e7eb; margin:.75rem 0; }
.aip-badge-vars {
  display:inline-block; font-size:.7rem; font-weight:600; padding:.15rem .45rem;
  border-radius:4px; background:#fef3c7; color:#92400e; border:1px solid #fde68a;
  vertical-align:middle; margin-left:.4rem;
}
.aip-badge-editable {
  display:inline-block; font-size:.7rem; font-weight:600; padding:.15rem .45rem;
  border-radius:4px; background:#dcfce7; color:#166534; border:1px solid #bbf7d0;
  vertical-align:middle; margin-left:.4rem;
}

.aip-save-row { display:flex; align-items:center; gap:1rem; margin-top:.75rem; }
.aip-btn-save {
  padding:.45rem 1.1rem; background:#225b91; color:#fff; border:none;
  border-radius:6px; font-size:.85rem; font-weight:600; cursor:pointer; transition:background .15s;
}
.aip-btn-save:hover { background:#19476f; }
.aip-chars { font-size:.75rem; color:#9ca3af; }

/* Students and teachers on the public home. */
.ed-v2 .ed-page.ed-home-main>section.ed-home-community{padding:32px 0;background:var(--ed-bg);border-bottom:1px solid var(--ed-line)}
.ed-v2 .ed-home-community h2{margin:0 0 24px;font-size:1.125rem;color:var(--ed-ink);font-weight:650}
.ed-v2 .ed-community-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0}
.ed-v2 .ed-community-counts>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.ed-v2 .ed-community-counts dt{order:2;color:var(--ed-text);font-size:.9375rem;line-height:1.45}
.ed-v2 .ed-community-counts dd{order:1;margin:0;color:var(--ed-blue);font-size:clamp(1.875rem,3vw,2.5rem);font-weight:750;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.ed-v2 .ed-community-note{margin:20px 0 0;color:var(--ed-muted);font-size:.8125rem}
@media(max-width:600px){.ed-v2 .ed-community-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}.ed-v2 .ed-home-community h2{font-size:1rem}}
/* One coherent recovery panel, using the same Fjord controls as sign-in. */
.ed-v2 .ed-page.ed-password-reset .auth-section{background:none;padding-block:clamp(2rem,5vw,4rem)}
.ed-v2 .ed-page.ed-password-reset .auth-wrap{max-width:30rem;margin-inline:auto}
.ed-v2 .ed-password-reset .auth-card{border:1px solid var(--ed-line);border-radius:var(--ed-radius);background:var(--ed-card);box-shadow:var(--ed-shadow-sm)}
.ed-v2 .ed-password-reset .ed-kicker{margin:0 0 14px;color:var(--ed-muted)}
.ed-v2 .ed-password-reset .auth-title{margin:0 0 16px;font-size:clamp(1.75rem,3vw,2rem);line-height:1.2;letter-spacing:-.025em}
.ed-v2 .ed-password-reset .auth-lead{margin:0;color:var(--ed-text);line-height:1.65}
.ed-v2 .ed-password-reset .auth-form{margin-top:24px;padding:0;border:0;background:none;box-shadow:none;gap:18px}
.ed-v2 .ed-reset-field{display:grid;gap:8px}
.ed-v2 .ed-reset-field label{font-weight:650;color:var(--ed-ink)}
.ed-v2 .ed-password-reset .auth-form input:not([type=hidden]){min-height:48px;padding:12px 14px;border-radius:var(--ed-radius-sm);background:var(--ed-white,#fff)}
.ed-v2 .ed-password-reset .auth-form .btn{min-height:48px;border-radius:var(--ed-radius-sm)}
.ed-v2 .ed-password-reset .ed-reset-back{margin:22px 0 0;text-align:center}
.ed-v2 .ed-password-reset .ed-reset-help{margin:24px 0 0;padding-top:20px;border-top:1px solid var(--ed-line);color:var(--ed-muted);font-size:.875rem;text-align:center}
.ed-v2 .ed-password-reset :is(.ed-reset-back,.ed-reset-help) a{color:var(--ed-blue)}
/* Legacy account forms use the same card and spacing as the recovery page. */
.ed-v2 .ed-page.auth-main .auth-section{background:none}
.ed-v2 .ed-page.auth-main :is(.auth-wrap,.auth-container){max-width:30rem;margin-inline:auto}
.ed-v2 .ed-page.auth-main .auth-container{padding:var(--ed-panel-padding);background:var(--ed-card);border:1px solid var(--ed-line);border-radius:var(--ed-radius)}
.ed-v2 .ed-page.auth-main :is(.auth-card,.auth-container) form{background:none;border:0;padding:0;box-shadow:none}
.ed-v2 .ed-page.auth-main :is(.auth-card,.auth-container) label:not(.form-consent-item){color:var(--ed-ink);font-weight:650}
.ed-v2 .ed-page.auth-main :is(.auth-wrap,.auth-container){--ed-frame-width:30rem}
.ed-v2 .ed-page.auth-main .auth-container{padding-inline:var(--ed-panel-padding)!important}
.ed-v2 .ed-page.auth-main .federated-signin-divider>span{color:var(--ed-muted);background:var(--ed-card)}

.ed-v2 .ed-home-community .ed-home-width{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:32px}
.ed-v2 .ed-home-community h2{margin:0}
@media(max-width:700px){.ed-v2 .ed-home-community .ed-home-width{grid-template-columns:minmax(0,1fr);gap:24px}}

/* components.css */
/* Components share tokens, independent of the page that contains them. */
.ed-v2 :is(a,button,input,select,textarea,summary):focus-visible { outline:3px solid var(--ed-focus); outline-offset:3px; }
.ed-v2 .ed-page a:not(.btn) { text-underline-offset:3px; }
.ed-v2 .ed-page :is(.card,.ed-panel,.account-card,.auth-card,.settings-card,.stat-card,.activity-card,.learning-card,.rwe-card,.contact-modern-card) {
  min-width:0; border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-card);
  box-shadow:var(--ed-shadow); backdrop-filter:none; transform:none;
}
.ed-v2 .ed-page :is(.ed-panel,.account-card,.auth-card,.settings-card,.stat-card,.activity-card,.learning-card,.rwe-card,.contact-modern-card) { padding:var(--ed-panel-padding); }
.ed-v2 .ed-page :is(.account-card,.auth-card,.settings-card) { width:100%; max-width:none; margin-inline:0; }
.ed-v2 .ed-page .ed-panel--brand { background:var(--ed-navy); color:var(--ed-on-navy); border-color:var(--ed-navy); }
.ed-v2 .ed-page .ed-panel--brand :is(h2,h3) { color:var(--ed-card); }
.ed-v2 .ed-page :is(.price-card,.ed-resource-card,.tool-card,.ed-security-layout > section,.ed-coin-guide > section) { padding:var(--ed-panel-padding); border-radius:var(--ed-radius); }
.ed-v2 .ed-page .card:has(> .card-header,> .card-body) { padding:0; }
.ed-v2 .ed-page :is(.card-header,.card-body) { padding:var(--ed-panel-padding); }
.ed-v2 .ed-page .card-header { margin:0; border-bottom:1px solid var(--ed-line); background:var(--ed-tint); }
.ed-v2 .ed-page .card > .card-header:first-child { border-radius:calc(var(--ed-radius) - 1px) calc(var(--ed-radius) - 1px) 0 0; }
.ed-v2 .ed-page .card:hover { transform:none; }
.ed-v2 .ed-page :is(.card-title,.card-subtitle,.account-subtitle) { color:var(--ed-ink); }
.ed-v2 .ed-page :is(.ed-panel,.card-body) > :first-child { margin-top:0; }
.ed-v2 .ed-page :is(.ed-panel,.card-body) > :last-child { margin-bottom:0; }
.ed-v2 .ed-page :is(.btn,.contact-modern-link), .ed-v2 .ed-consent-actions .btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:var(--ed-control-height); max-width:100%;
  padding:.65rem 1rem; border:1px solid var(--ed-line-strong); border-radius:var(--ed-control-radius);
  background:var(--ed-card); color:var(--ed-blue); box-shadow:none; transform:none;
  font:600 .875rem/1.4 var(--ed-font); font-style:normal; letter-spacing:0;
  text-align:center; text-decoration:none; white-space:normal; cursor:pointer;
  transition:background .16s, border-color .16s, color .16s;
}
.ed-v2 .ed-page :is(.btn-primary,.btn-accent), .ed-v2 .ed-consent-actions .btn-accent { border-color:var(--ed-blue); background:var(--ed-blue); color:var(--ed-card); }
.ed-v2 .ed-page :is(.btn-primary,.btn-accent):hover, .ed-v2 .ed-consent-actions .btn-accent:hover { border-color:var(--ed-blue-hover); background:var(--ed-blue-hover); color:var(--ed-card); box-shadow:none; }
.ed-v2 .ed-page :is(.btn-secondary,.btn-outline,.contact-modern-link), .ed-v2 .ed-consent-actions .btn-outline { border-color:var(--ed-line-strong); background:var(--ed-card); color:var(--ed-blue); }
.ed-v2 .ed-page :is(.btn-secondary,.btn-outline,.contact-modern-link):hover { border-color:var(--ed-blue); background:var(--ed-tint); color:var(--ed-blue-hover); box-shadow:none; transform:none; }
.ed-v2 .ed-page .btn-danger { border-color:#dfb9b9; background:var(--ed-card); color:var(--ed-danger); }
.ed-v2 .ed-page .btn-danger:hover { background:var(--ed-danger-bg); border-color:var(--ed-danger); color:var(--ed-danger); box-shadow:none; }
.ed-v2 .ed-page :is(.btn:disabled,.btn[aria-disabled="true"]) { opacity:.55; cursor:not-allowed; }
.ed-v2 .ed-page .btn-sm { font-size:.825rem; }
.ed-v2 .ed-page :is(.table,.admin-table) .btn { min-height:var(--ed-control-height); padding:.55rem .8rem; font-size:.825rem; white-space:nowrap; }
.ed-v2 .ed-page :is(.form-input,.form-select,.form-textarea,.form-control,.admin-input,.admin-select,.aip-input,.aip-select,.input,.account-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),.account-form select,.account-form textarea,.auth-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),.auth-form select) {
  min-width:0; max-width:100%; min-height:var(--ed-control-height); padding:.7rem .85rem;
  border:1px solid var(--ed-line-strong); border-radius:var(--ed-control-radius); background-color:var(--ed-card);
  color:var(--ed-ink); font:400 1rem/1.5 var(--ed-font); box-shadow:none;
}
.ed-v2 .ed-page :is(.form-input,.form-select,.form-textarea):focus { border-color:var(--ed-blue); box-shadow:0 0 0 3px var(--ed-tint); }
.ed-v2 .ed-page .auth-form { width:100%; max-width:none; gap:1rem; }
.ed-v2 .ed-page .auth-container > .auth-form { max-width:none !important; margin-inline:0 !important; padding:var(--ed-panel-padding); border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-panel-surface); }
.ed-v2 .ed-page :is(.form-label,.auth-label,.account-form label) { color:var(--ed-ink); font-size:.9rem; line-height:1.5; font-weight:600; }
.ed-v2 .ed-page :is(.note,.form-hint,.form-help,.help-text,.auth-help,.auth-footnote) { color:var(--ed-muted); font-size:.875rem; line-height:1.65; }
.ed-v2 .ed-page .form-hint { opacity:1; }
.ed-v2 .ed-page :is(select,input,textarea) { min-width:0; max-width:100%; }
.ed-v2 .ed-page :is(.muted,.text-muted,.admin-tiny,.ewi-muted,.ewor-muted,.pf-section-hint,.cp-vocab-label,.ewi-stats dt,.ewi-stats dd small) { color:var(--ed-muted); opacity:1; }
.ed-v2 .ed-page :is([style*="#9ca3af"],[style*="#94a3b8"],[style*="#6b7280"]) { color:var(--ed-muted) !important; }
.ed-v2 .ed-page [style*="#f87171"] { color:var(--ed-danger) !important; }
.ed-v2 .ed-page .aip-tab-btn span { color:inherit; opacity:1 !important; }
.ed-v2 .ed-page .admin-mail-table .admin-tiny { color:var(--ed-muted) !important; opacity:1 !important; }
.ed-v2 .ed-page .aip-tab-buttons { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.ed-v2 .ed-page .aip-mini-btn { font:inherit; }
.ed-v2 .ed-page .error404-card,
.ed-v2 .ed-page .admin-mail-hero > * { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.ed-v2 .ed-page .error404-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.ed-v2 .ed-page .ed-resource-file > * { min-width:0; }
.ed-v2 .ed-resource-files { grid-template-columns:minmax(0,1fr); }
.ed-v2 .ed-resource-file { min-width:0; max-width:100%; box-sizing:border-box; }
@media(max-width:640px) {
  .ed-v2 .ed-resource-file { flex-wrap:wrap; }
  .ed-v2 .ed-resource-file-copy { flex-basis:calc(100% - 5rem); }
  .ed-v2 .ed-resource-download { max-width:100%; white-space:normal; box-sizing:border-box; flex-wrap:wrap; }
}
.ed-v2 .ed-page :is(.form-input,.form-select,.form-textarea)[aria-invalid="true"] { border-color:var(--ed-danger); }
.ed-v2 .ed-page :is(input[type="checkbox"],input[type="radio"]) { accent-color:var(--ed-blue); flex-shrink:0; }
.ed-v2 .ed-page :is(.notice,.account-note,.account-empty,.dropzone) { padding:1rem 1.25rem; border:1px solid var(--ed-line); border-radius:var(--ed-radius-sm); background:var(--ed-soft); color:var(--ed-text); box-shadow:none; line-height:1.65; }
.ed-v2 .ed-page .dropzone { border-style:dashed; }
.ed-v2 .ed-page .dropzone:hover { border-color:var(--ed-blue); background:var(--ed-tint); }
.ed-v2 .ed-page :is(.alert,.account-alert) { border-radius:var(--ed-radius-sm); box-shadow:none; line-height:1.65; }
.ed-v2 .ed-page :is(.table-responsive,.admin-table-wrap) { min-width:0; max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; position:relative; border:1px solid var(--ed-line); border-radius:var(--ed-radius-sm); background:var(--ed-panel-surface); }
.ed-v2 .ed-page :is(.table-responsive,.admin-table-wrap) > table { margin:0; border:0; }
.ed-v2 .ed-page :is(.table-responsive,.admin-table-wrap)>table:has(thead tr>:nth-child(4)) { min-width:36rem; }
.ed-v2 .ed-page :is(.table,.admin-table) { width:100%; border-collapse:collapse; font-size:.925rem; }
.ed-v2 .ed-page :is(.table,.admin-table) :is(th,td) { padding:.9rem 1rem; border-color:var(--ed-line); line-height:1.55; vertical-align:middle; }
.ed-v2 .ed-page :is(.table,.admin-table) thead th { background:var(--ed-navy); color:var(--ed-card); border-color:var(--ed-navy); font-size:.825rem; font-weight:600; text-transform:none; letter-spacing:0; }
.ed-v2 .ed-page :is(.table,.admin-table) thead th a { color:inherit; }
.ed-v2 .ed-page :is(.table,.admin-table) tbody tr:nth-child(even) > td { background:var(--ed-row-surface); }
.ed-v2 .ed-page :is(.table,.admin-table) tbody tr:nth-child(odd) > td { background:var(--ed-panel-surface); }
.ed-v2 .ed-page :is(.table,.admin-table) tbody tr:hover > td { background:var(--ed-tint); }
.ed-v2 .ed-page :is(.table,.admin-table) tbody tr.selected > td { background:var(--ed-tint); }
.ed-v2 .ed-page .ed-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 40px; width:40px; height:40px; border:1px solid var(--ed-line); border-radius:var(--ed-radius-sm); background:var(--ed-tint); color:var(--ed-blue); }
.ed-v2 .ed-page .ed-icon svg { width:21px; height:21px; }
.ed-v2 .ed-page .ed-panel-head { display:flex; align-items:center; gap:var(--ed-space-3); margin-bottom:var(--ed-space-5); }
.ed-v2 .ed-page .ed-panel-head :is(h2,h3,p) { margin:0; }
.ed-v2 .ed-page .ed-panel-head p { margin-top:.3rem; color:var(--ed-muted); font-size:.875rem; }
.ed-v2 .ed-page :is(.contact-modern-link img,.contact-modern-icon) { width:20px; height:20px; }
.ed-v2 .ed-page .contact-modern-side { padding:.15rem 0 .15rem 1.5rem; border:0; border-left:1px solid var(--ed-line); border-radius:0; background:transparent; }
@media(max-width:860px) { .ed-v2 .ed-page .contact-modern-side { padding:1.25rem 0 0; border-left:0; border-top:1px solid var(--ed-line); } }
@media(max-width:640px) { .ed-v2 .ed-page :is(.table,.admin-table) :is(th,td) { padding:.8rem; } }
@media(prefers-reduced-motion:reduce) { .ed-v2 :is(a,button,input,select,textarea,.card,.tool-card) { transition:none; animation:none; } }
@media(forced-colors:active) { .ed-v2 .ed-page :is(.ed-section-nav a[aria-current="page"],.admin-nav a.active) { outline:2px solid Highlight; } }

/* Component contracts shared by every V2 renderer. */
.ed-v2 .ed-filter-field{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;margin:0;color:var(--ed-muted);font:600 12px/1.5 var(--ed-font)}
.ed-v2 .ed-filter-field>span{display:block}.ed-v2 .ed-filter-field :is(input,select){width:100%;min-width:0!important}
.ed-v2 .ed-page .ed-file-input{display:block;width:100%;height:auto;margin:12px 0;border:1px solid var(--ed-line-strong);border-radius:10px;background:white;padding:8px;color:var(--ed-ink);font:400 14px/1.6 var(--ed-font)}
.ed-v2 .ed-file-input::file-selector-button{min-height:var(--ed-control-height);margin-right:12px;padding:8px 14px;border:1px solid var(--ed-line-strong);border-radius:8px;background:var(--ed-tint);color:var(--ed-blue);font:600 14px/1.4 var(--ed-font);cursor:pointer}
.ed-v2 .ed-page .dropzone{max-width:100%;margin-top:16px}.ed-v2 .dropzone .dz-icon{display:none}.ed-v2 .dropzone .dz-title{font-size:16px;color:var(--ed-ink)}
.ed-v2 .ed-page :is(.admin-muted,.admin-tiny,.aip-subtitle,.aip-batch-hint){color:var(--ed-muted)}
.ed-v2 .ed-page .admin-filter{gap:12px;align-items:flex-end}.ed-v2 .ed-page .admin-filter>.ed-filter-field{flex:1 1 160px;max-width:340px}
.ed-v2 .ed-page .admin-filter>.ed-filter-field:first-child{flex-basis:240px}
.ed-v2 .ed-page :is(.aip-mini-btn,.aip-btn-batch,.aip-btn-save,.aip-save-btn){min-height:44px;border:1px solid var(--ed-line-strong);border-radius:10px;padding:9px 14px;background:white;color:var(--ed-blue);font:600 14px/1.4 var(--ed-font);box-shadow:none}
.ed-v2 .ed-page .aip-tabbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.ed-v2 .ed-page .aip-tabs-row{flex:1 1 300px;gap:5px}
.ed-v2 .ed-page .aip-tab-btn{min-height:44px;padding:9px 13px;border-radius:10px;color:var(--ed-muted);font:550 14px/1.4 var(--ed-font)}
.ed-v2 .ed-page .aip-tab-btn.active{background:var(--ed-tint);color:var(--ed-blue);box-shadow:inset 0 -2px var(--ed-blue);border-color:var(--ed-tint)}
.ed-v2 .ed-tab-tools{display:flex;gap:8px;flex-wrap:wrap}.ed-v2 .aip-tab-panel[hidden]{display:none!important}
.ed-v2 .ed-page .admin-grid{min-width:0}.ed-v2 .ed-page .admin-grid>*{min-width:0}
@media(max-width:640px){.ed-v2 .ed-page .admin-filter>.ed-filter-field{flex-basis:100%;max-width:none}.ed-v2 .ed-page .admin-filter>.ed-filter-field:first-child{flex-basis:100%}.ed-v2 .ed-page .admin-filter>.admin-input{min-width:0!important;width:100%}.ed-v2 .ed-page .admin-table-wrap{padding:0}.ed-v2 .ed-page .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ed-v2 .ed-page :is(.settings-link,.account-text-link,.admin-table a:not(.btn),.students-table a:not(.btn)){color:var(--ed-blue)}

/* Data and report tables use the same validated text/background pairs. */
.ed-v2 .ed-page table thead th{background:var(--ed-navy);color:white;border-color:var(--ed-navy)}
.ed-v2 .ed-page table thead th a{color:inherit}
.ed-v2 .ed-page table.revision-table tbody tr.unit-row>td{background:var(--ed-navy);color:white;font-weight:650;text-align:left;text-transform:none}
.ed-v2 .ed-page .dropzone .dz-sep{color:var(--ed-muted);opacity:1}
.ed-v2 .ed-page .ed-tab-count{margin-left:.3rem;font-weight:400;opacity:1;color:inherit}
.ed-v2.ed-lens-root .masthead .header-note{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;max-width:620px}
.ed-v2.ed-lens-root .header-note br{display:none}
.ed-v2.ed-lens-root .header-note>a{display:inline-flex;align-items:center;min-height:36px;padding:5px 0;font-size:13px;line-height:1.5}

.ed-v2 .ed-page .ed-empty-note{color:var(--ed-muted);font-size:.875rem}

.ed-v2 .ed-page .ed-meta{font-size:.85rem;color:var(--ed-muted)}

/* Icon dimensions belong to the button component, not the SVG's intrinsic size. */
.ed-v2 .ed-page .btn>svg{display:block;flex:0 0 18px;width:18px;height:18px}
.ed-v2 .ed-scroll-hint{margin:0;padding:8px 16px;background:var(--ed-tint);border-bottom:1px solid var(--ed-line);color:var(--ed-blue);font:500 12px/1.6 var(--ed-font)}
.ed-v2 .ed-scroll-hint[hidden]{display:none!important}
.ed-v2 .ed-row-menu>summary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:9px 12px;list-style:none;cursor:pointer;border:1px solid var(--ed-line-strong);border-radius:10px;background:white;color:var(--ed-blue);font:600 13px/1.4 var(--ed-font)}
.ed-v2 .ed-row-menu>summary::-webkit-details-marker{display:none}.ed-v2 .ed-row-menu>summary::after{content:'⌄'}
.ed-v2 .ed-row-menu[open]>summary{background:var(--ed-tint);border-color:var(--ed-blue)}
.ed-v2 .ed-row-menu .ed-row-actions{display:flex;align-items:flex-start;flex-direction:column;gap:8px;margin-top:12px}
.ed-v2 .ed-page table.ed-user-table{min-width:1060px}
@media print{.ed-v2 .ed-scroll-hint{display:none!important}}

.ed-v2 .ed-page :is(.table,.admin-table) tbody tr:not(.is-selected):hover > td { background:var(--ed-hover-surface); }

/* Breathing room between a panel heading and its contents, shared across pages. */
.ed-v2 .ed-page :is(.ed-panel,.card-body,.account-card,.settings-card,.auth-card) > :is(h2,h3) {
  margin-bottom:var(--ed-heading-content-gap);
}
.ed-v2 .ed-page :is(.ed-panel,.card-body,.account-card,.settings-card,.auth-card) > :is(h2,h3) + :is(p,ul,ol,dl,form,.form-grid) {
  margin-top:0;
}
.ed-v2 .ed-page .ed-panel-head { margin-bottom:var(--ed-heading-content-gap); }
.ed-v2 .ed-page .ed-panel-head :is(h2,h3) { margin-bottom:0; }

/* Prose rhythm and list markers stay inside the content inset. */
.ed-v2 .ed-page :is(ul,ol):not([class]):not([role]):not(nav ul):not(nav ol) {
  margin-block:var(--ed-prose-gap); padding-inline-start:var(--ed-list-indent); list-style-position:outside;
}
.ed-v2 .ed-page :is(ul,ol):not([class]):not([role]):not(nav ul):not(nav ol)>li+li { margin-block-start:.5em; }
.ed-v2 .ed-page :is(.ed-prose,.content,.contact-modern-copy,.about-modern-content,.account-copy,.learning-body,.public-tool-copy,.public-tool-heading,.public-tool-access,.ed-panel,.card-body,.account-note,.ed-workflow-note)>p+p { margin-block-start:var(--ed-prose-gap); }

/* Private teaching-file browser: same Fjord surfaces and controls as reference libraries. */
.ed-v2 .ed-resource-filters .ed-reference-fields { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.65fr); }
.ed-v2 .ed-resource-filters .ed-reference-options { justify-content:flex-start; gap:1rem; }
.ed-v2 .ed-resource-breadcrumbs { display:flex; flex-wrap:wrap; align-items:baseline; gap:.5rem .75rem; margin:1.5rem 0; font-size:.9375rem; }
.ed-v2 .ed-resource-breadcrumbs a { overflow-wrap:anywhere; }
.ed-v2 .ed-resource-breadcrumbs [aria-current="page"] { color:var(--ed-ink); font-weight:650; text-decoration:none; }
.ed-v2 .ed-resource-courses { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.ed-v2 .ed-resource-course { display:flex; flex-direction:column; justify-content:center; gap:.75rem; padding:1.5rem; border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-panel-surface); text-decoration:none; color:var(--ed-ink); min-width:0; }
.ed-v2 .ed-resource-course:nth-child(even) { background:var(--ed-reference-card-alternate); }
.ed-v2 .ed-resource-course.is-featured { grid-column:1/-1; background:var(--ed-paper); border-color:var(--ed-blue); padding:1.75rem; }
.ed-v2 .ed-resource-course-heading { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; }
.ed-v2 .ed-resource-course-heading strong { font-size:1.1875rem; font-weight:700; line-height:1.4; }
.ed-v2 .ed-resource-course.is-featured strong { font-size:1.5rem; }
.ed-v2 .ed-resource-course-meta { font-size:.9375rem; color:var(--ed-ink); }
.ed-v2 .ed-resource-course:hover,.ed-v2 .ed-resource-folders a:hover { background:var(--ed-workspace-hover); border-color:var(--ed-blue); }
.ed-v2 .ed-resource-section-title { margin:0; font-size:1.125rem; font-weight:700; color:var(--ed-ink); }
.ed-v2 .ed-resource-folders { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:1rem 0 2rem; }
.ed-v2 .ed-resource-folders a { display:flex; flex-direction:column; gap:.5rem; padding:1.125rem 1.25rem; border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-panel-surface); color:var(--ed-ink); text-decoration:none; overflow-wrap:anywhere; }
.ed-v2 .ed-resource-folders a>span { display:flex; justify-content:space-between; gap:1rem; font-size:.875rem; }
.ed-v2 .ed-resource-files { display:grid; gap:.75rem; }
.ed-v2 .ed-resource-file { display:flex; align-items:center; gap:1.125rem; padding:1.25rem; border:1px solid var(--ed-line); border-radius:var(--ed-radius); background:var(--ed-panel-surface); }
.ed-v2 .ed-resource-file:nth-child(even) { background:var(--ed-reference-card-alternate); }
.ed-v2 .ed-resource-format { display:grid; place-items:center; flex:0 0 3.5rem; height:3.5rem; font-size:.75rem; font-weight:750; letter-spacing:.025em; color:var(--ed-ink); background:var(--ed-badge-surface); border:1px solid var(--ed-badge-line); border-radius:6px; }
.ed-v2 .ed-resource-file-copy { min-width:0; flex:1; }
.ed-v2 .ed-resource-file h3 { margin:0 0 .375rem; font-size:1.0625rem; line-height:1.45; font-weight:650; overflow-wrap:anywhere; }
.ed-v2 .ed-resource-file h3 a { color:var(--ed-ink); text-decoration:none; }
.ed-v2 .ed-resource-file h3 a:hover { text-decoration:underline; }
.ed-v2 .ed-resource-file-size,.ed-v2 .ed-resource-location { font-size:.875rem; line-height:1.5; color:var(--ed-ink); }
.ed-v2 .ed-resource-location { margin:0 0 .375rem; overflow-wrap:anywhere; }
.ed-v2 .ed-resource-download { flex-shrink:0; gap:.5rem; }
@media(max-width:760px) {
 .ed-v2 .ed-resource-filters .ed-reference-fields { grid-template-columns:1fr 1fr; }
 .ed-v2 .ed-resource-filters .ed-library-query { grid-column:1/-1; }
 .ed-v2 .ed-resource-courses,.ed-v2 .ed-resource-folders { grid-template-columns:1fr; }
 .ed-v2 .ed-resource-file { align-items:flex-start; flex-wrap:wrap; gap:.875rem; padding:1.125rem; }
 .ed-v2 .ed-resource-download { margin-left:0; }
 .ed-v2 .ed-resource-course.is-featured { padding:1.5rem; }
}
@media(max-width:400px) {
 .ed-v2 .ed-resource-filters .ed-reference-fields { grid-template-columns:1fr; }
 .ed-v2 .ed-resource-file-copy { flex-basis:calc(100% - 4.375rem); }
}

.ed-v2 .ed-resource-breadcrumbs a,.ed-v2 .ed-resource-location a,.ed-v2 .ed-resource-filters .ed-library-clear { color:var(--ed-blue); }

/* Signed-out access uses an open, aligned row rather than a nested card. */
.ed-v2 .ed-page .ed-access-prompt {
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem 2rem;
  width:100%; margin:1.5rem 0 0; padding:1.75rem 0;
  border:0; border-top:1px solid var(--ed-line); border-radius:0;
  background:transparent; box-shadow:none;
}
.ed-v2 .ed-page .ed-access-prompt h2 {
  margin:0; color:var(--ed-ink); font:600 1.125rem/1.5 var(--ed-font); letter-spacing:0;
}
.ed-v2 .ed-access-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem 1.5rem; }
.ed-v2 .ed-access-actions .btn { min-width:8rem; margin:0; }
.ed-v2 .ed-access-register {
  display:inline-flex; align-items:center; gap:.5rem; min-height:44px;
  color:var(--ed-blue); font-size:.9375rem; font-weight:500; text-underline-offset:4px;
}
.ed-v2 .ed-access-register:hover { color:var(--ed-blue-hover); }
@media(max-width:640px) {
  .ed-v2 .ed-page .ed-access-prompt { align-items:flex-start; flex-direction:column; gap:1.25rem; padding:1.5rem 0; }
}

/* Resource libraries: one direct destination per card, with a distinct pictogram. */
.ed-v2 .ed-resource-hub { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.ed-v2 .ed-resource-hub-card {
  display:flex; align-items:center; gap:1.25rem; min-width:0; min-height:112px; padding:1.5rem;
  border:1px solid var(--ed-line); border-radius:var(--ed-radius);
  background:var(--ed-panel-surface); color:var(--ed-ink); text-decoration:none;
}
.ed-v2 .ed-resource-hub-card:first-child { grid-column:1/-1; background:var(--ed-tint); }
.ed-v2 .ed-resource-hub-card h2 { margin:0; font:600 1.25rem/1.4 var(--ed-font); letter-spacing:-.02em; }
.ed-v2 .ed-resource-hub-icon { display:flex; flex:0 0 auto; color:var(--ed-blue); }
.ed-v2 .ed-resource-hub-icon svg { width:32px; height:32px; }
.ed-v2 .ed-resource-hub-arrow { margin-left:auto; color:var(--ed-blue); font-size:1.5rem; }
.ed-v2 .ed-resource-hub-card:hover { border-color:var(--ed-blue); background:var(--ed-hover-surface); }
.ed-v2 .ed-resource-hub-card:focus-visible { outline:3px solid var(--ed-focus); outline-offset:3px; }
@media(max-width:640px) {
  .ed-v2 .ed-resource-hub { grid-template-columns:minmax(0,1fr); }
  .ed-v2 .ed-resource-hub-card { min-height:96px; padding:1.25rem; gap:1rem; }
  .ed-v2 .ed-resource-hub-card h2 { font-size:1.125rem; }
}

.ed-v2 .ed-author-inner.ed-author-inner--text { grid-template-columns:minmax(0,1fr); max-width:760px; }

/* Free textbook editions, each card downloads its PDF directly. */
.ed-v2 .ed-textbook-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; }
.ed-v2 .ed-textbook-card {
  display:grid; grid-template-columns:112px minmax(0,1fr); align-items:center; gap:1.5rem;
  min-width:0; padding:1.5rem; border:1px solid var(--ed-line); border-radius:var(--ed-radius);
  color:var(--ed-ink); background:var(--ed-panel-surface); text-decoration:none;
}
.ed-v2 .ed-textbook-cover { display:block; width:112px; height:auto; box-shadow:0 5px 14px #263c5020; }
.ed-v2 .ed-textbook-details { min-width:0; }
.ed-v2 .ed-textbook-details h2 { margin:0 0 .25rem; font:700 1.75rem/1.25 var(--ed-font); color:var(--ed-blue); }
.ed-v2 .ed-textbook-level { display:block; font-weight:600; }
.ed-v2 .ed-textbook-meta { display:block; margin-top:.75rem; font-size:.875rem; line-height:1.65; }
.ed-v2 .ed-textbook-action { display:inline-flex; align-items:center; gap:.75rem; margin-top:1rem; color:var(--ed-blue); font-weight:700; }
.ed-v2 .ed-textbook-card:hover { border-color:var(--ed-blue); background:var(--ed-hover-surface); }
.ed-v2 .ed-textbook-card:focus-visible { outline:3px solid var(--ed-focus); outline-offset:3px; }
@media(max-width:800px) { .ed-v2 .ed-textbook-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:480px) {
  .ed-v2 .ed-textbook-card { grid-template-columns:78px minmax(0,1fr); padding:1.25rem; gap:1rem; }
  .ed-v2 .ed-textbook-cover { width:78px; }
}
@media(max-width:380px) { .ed-v2 .ed-textbook-card { grid-template-columns:minmax(0,1fr); } }

/* Written-library metadata and question text are distinct from section headings. */
.ed-v2 .ew-syllabus-table .ew-syllabus-count { background:var(--ed-blue); color:#fff; border:1px solid var(--ed-blue); }
.ed-v2 .ew-syllabus-table .ew-syllabus-count>* { color:inherit; }
.ed-v2 .ed-page .ewb-question-card-heading h2 { font-size:1rem; font-weight:500; line-height:1.65; letter-spacing:normal; }
.ed-v2 .ed-page .ewb-question-card-heading>strong { font-size:1rem; line-height:1.65; }

/* layout.css */
/* Shared page structure. Width is declared once in edv2_main_start(). */
.ed-v2 { margin:0; background:var(--ed-bg); color:var(--ed-text); font:400 var(--ed-body-size)/1.65 var(--ed-font); }
.ed-v2 *, .ed-v2 *::before, .ed-v2 *::after { box-sizing:border-box; }
.ed-v2 .ed-page { --ed-frame-width:var(--ed-page); display:block; min-width:0; background:var(--ed-bg); color:var(--ed-text); overflow-wrap:anywhere; }
.ed-v2 .ed-page[data-ed-layout="wide"] { --ed-frame-width:var(--ed-page-wide); }
.ed-v2 .ed-page[data-ed-layout="reading"] { --ed-frame-width:var(--ed-page-reading); }
.ed-v2 .ed-page[data-ed-layout="form"] { --ed-frame-width:var(--ed-page-form); }
.ed-v2 .ed-page > :where(section,.section,.settings-section,.account-section,.auth-section,.about-modern-section,.contact-modern-section):where(:not(.home-hero):not(.home-hero-loggedin)) {
  padding:var(--ed-page-padding) 0 var(--ed-space-8); margin:0; background:transparent; border:0;
}
.ed-v2 .ed-page > section::before { content:none; }
.ed-v2 .ed-page :is(.container,.settings-wrap,.account-wrap,.auth-wrap,.auth-container,.about-modern-wrap,.contact-modern-wrap,.learning-shell) {
  width:min(calc(100% - var(--ed-gutter) * 2),var(--ed-frame-width)) !important; max-width:var(--ed-frame-width) !important;
  margin-inline:auto; padding-inline:0 !important;
}
.ed-v2 .ed-page > .learning-shell { padding-block:var(--ed-page-padding) var(--ed-space-8); }
.ed-v2 .ed-page :is(.container,.auth-wrap,.account-wrap) :is(.container,.auth-wrap,.account-wrap) { width:100%; }
.ed-v2 .ed-page .container > .card:not(.tool-card):not(.price-card):not(.learning-card):not(.rwe-card) { max-width:none !important; }
.ed-v2 .ed-page :is(.settings-card.ed-account-surface,.account-card.ed-account-surface,.auth-container) {
  margin-block:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; text-align:left;
}
.ed-v2 .ed-page :is(.ed-page-head,.admin-heading,.settings-head,.account-head,.auth-head,.learning-heading,.public-tool-heading) {
  position:static; display:block; overflow:visible; padding:0; margin:0 0 var(--ed-space-6);
  border:0; border-radius:0; background:transparent; box-shadow:none; text-align:left;
}
.ed-v2 .ed-page :is(.ed-page-head,.admin-heading)::before,
.ed-v2 .ed-page :is(.ed-page-head,.admin-heading)::after { content:none; }
.ed-v2 .ed-title-block { margin:0 0 var(--ed-space-5); padding:0; text-align:left; }
.ed-v2 .ed-title-block .ed-eyebrow { display:flex; align-items:center; gap:.5rem; margin:0 0 .5rem; color:var(--ed-blue); font-size:.75rem; font-weight:650; line-height:1.5; letter-spacing:.065em; text-transform:uppercase; }
.ed-v2 .ed-title-block .ed-eyebrow::before { content:""; width:16px; height:3px; border-radius:2px; background:var(--ed-blue); }
.ed-v2 .ed-page h1.ed-page-title {
  margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; color:var(--ed-ink);
  font-family:var(--ed-font); font-size:var(--ed-title-size); font-style:normal; font-weight:700;
  line-height:1.25; letter-spacing:-.035em; text-align:left;
}
.ed-v2 .ed-page :is(.ed-page-head,.admin-heading,.account-head,.settings-head,.auth-head,.learning-heading,.public-tool-heading) :is(p,.admin-subtitle,.settings-lead,.account-lead,.auth-lead):not(.ed-eyebrow):not(.learning-kicker) { color:var(--ed-muted); font-size:1rem; line-height:1.7; }
.ed-v2 .ed-page :is(.ed-page-head,.admin-heading,.account-head,.settings-head,.auth-head,.learning-heading,.public-tool-heading) > .ed-title-block { margin-bottom:.6rem; }
.ed-v2 .ed-page :is(.settings-lead,.account-lead,.auth-lead,.learning-intro) { max-width:76ch; margin:0; }
.ed-v2 .ed-page :is(.auth-brand,.learning-kicker) { display:none; }
.ed-v2 .ed-page .admin-meta { display:inline-block; margin-top:.75rem; padding:.3rem .6rem; border:1px solid var(--ed-line); border-radius:6px; background:var(--ed-soft); color:var(--ed-muted); font-size:.8rem; }
.ed-v2 .ed-page .admin-topbar { margin:0 0 var(--ed-space-6); }
.ed-v2 .ed-page .admin-nav { margin:var(--ed-space-5) 0 0; }
.ed-v2 .ed-page :is(h2,h3,h4) { color:var(--ed-ink); font-family:var(--ed-font); letter-spacing:-.015em; }
.ed-v2 .ed-page h2 { font-size:1.375rem; line-height:1.4; font-weight:650; }
.ed-v2 .ed-page h3 { font-size:1.125rem; line-height:1.45; font-weight:650; }
.ed-v2 .ed-page .ed-section-nav { margin-top:var(--ed-space-5); }
.ed-v2 .ed-page :is(.ed-section-nav,.admin-nav) { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; }
.ed-v2 .ed-page :is(.ed-section-nav,.admin-nav) a { display:inline-flex; align-items:center; min-height:var(--ed-control-height); padding:.6rem .9rem; border:1px solid transparent; border-radius:var(--ed-control-radius); background:transparent; color:var(--ed-muted); font:550 .875rem/1.4 var(--ed-font); text-decoration:none; box-shadow:none; }
.ed-v2 .ed-page :is(.ed-section-nav,.admin-nav) a:hover { background:var(--ed-tint); color:var(--ed-blue); }
.ed-v2 .ed-page :is(.ed-section-nav a[aria-current="page"],.admin-nav a.active) { border-color:var(--ed-blue); background:var(--ed-blue); color:var(--ed-card); }
.ed-v2 .ed-page :is(.form-actions,.account-actions,.settings-actions) { display:flex; flex-wrap:wrap; align-items:center; gap:var(--ed-space-3); }
.ed-v2 .ed-page .ed-panel-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ed-space-5); }
.ed-v2 .ed-page .ed-panel-wide { grid-column:1 / -1; }
.ed-v2 .ed-page :is(.ed-panel,.card,.account-card,.auth-card,.settings-card) > :first-child { margin-top:0; }
.ed-v2 .ed-page :is(.ed-panel,.card,.account-card,.auth-card,.settings-card) > :last-child { margin-bottom:0; }
.ed-v2 .ed-page .ed-breadcrumb { display:inline-flex; align-items:center; min-height:36px; margin-bottom:var(--ed-space-3); color:var(--ed-muted); font-size:.875rem; }
.ed-v2 .ed-page :is(.learning-breadcrumb,.learning-meta) { color:var(--ed-muted); font-size:.875rem; }
.ed-v2 .ed-page .about-modern-card { border-radius:var(--ed-radius); border:1px solid var(--ed-line); box-shadow:var(--ed-shadow); }
.ed-v2 .ed-page .about-modern-sidebar { background:var(--ed-tint); }
.ed-v2 .ed-page :is(.terms,.privacy,.cookies,.legal) .content { line-height:1.8; }
.ed-v2 .ed-page :is(.terms,.privacy,.cookies,.legal) .content > :not(.table-responsive) { max-width:76ch; }
@media(max-width:640px) {
  .ed-v2 .ed-page > :is(section,.section,.settings-section,.account-section,.auth-section) { padding-bottom:var(--ed-space-7); }
  .ed-v2 .ed-page .ed-panel-grid { grid-template-columns:minmax(0,1fr); }
  .ed-v2 .ed-title-block { margin-bottom:var(--ed-space-5); }
}
@media print {
  .ed-v2, .ed-v2 .ed-page { background:white; }
  .ed-v2 .ed-page :is(.ed-section-nav,.admin-nav,.ed-breadcrumb) { display:none; }
  .ed-v2 .ed-page :is(.card,.ed-panel,.account-card) { box-shadow:none; break-inside:avoid; }
}

/* Shared PageHeader contract: breadcrumbs, one H1 and a stable introduction. */
.ed-v2 .ed-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 24px;color:var(--ed-muted);font-size:12px;line-height:1.6}
.ed-v2 .ed-breadcrumbs a{display:inline-flex;align-items:center;min-height:28px;color:var(--ed-muted);text-decoration:none}
.ed-v2 .ed-breadcrumbs a:hover{color:var(--ed-blue);text-decoration:underline}
.ed-v2 .ed-title-block{margin-bottom:12px}.ed-v2 .ed-page-head:has(>.ed-breadcrumbs){margin-bottom:28px}
.ed-v2 .ed-page :is(.card-title,.card-subtitle,.account-subtitle){line-height:1.4;letter-spacing:-.02em}
.ed-v2 .ed-page .ed-page-title{font-size:var(--ed-title-size);line-height:1.25;font-weight:700}
@media(max-width:640px){.ed-v2 .ed-breadcrumbs{margin-bottom:20px;font-size:11px}.ed-v2 .ed-page-head:has(>.ed-breadcrumbs){margin-bottom:24px}.ed-v2 .ed-page .ed-title-block{margin-bottom:10px}}
@media print{.ed-v2 .ed-breadcrumbs{display:none}}

/* chrome.css */
/* V2 navigation: public portal, focused workspace and administration. */
.ed-v2 .ed-topbar{position:relative;z-index:50;background:var(--ed-navy);color:white;border-bottom:1px solid #355071}
.ed-v2 .ed-topbar-inner{width:min(calc(100% - 64px),1440px);min-height:76px;margin:auto;display:flex;align-items:center;gap:24px;padding:14px 0}
.ed-v2 .ed-brand{display:inline-flex;align-items:center;gap:9px;color:white;font-size:20px;font-weight:700;letter-spacing:-.04em;text-decoration:none;flex-shrink:0;line-height:1.3}
.ed-v2 .ed-brand img{width:38px;height:38px;object-fit:contain;background:transparent;padding:0;border:0;border-radius:0;box-shadow:none;filter:none}
.ed-v2 .ed-menu{position:relative;min-width:0}
.ed-v2 .ed-menu>summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 14px;border:1px solid #5c7290;border-radius:10px;cursor:pointer;list-style:none;font-size:13px;font-weight:550;color:white;line-height:1.4}
.ed-v2 .ed-menu>summary::-webkit-details-marker{display:none}
.ed-v2 .ed-menu>summary:hover,.ed-v2 .ed-menu[open]>summary{background:#284667;border-color:#9aafcd}
.ed-v2 .ed-service-switch{border-left:1px solid #5c7290;padding-left:22px;max-width:270px}
.ed-v2 .ed-service-switch>summary>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.ed-v2 .ed-chevron{margin-left:auto;flex-shrink:0}
.ed-v2 .ed-dropdown{position:absolute;top:calc(100% + 10px);left:22px;width:310px;max-width:calc(100vw - 32px);max-height:min(650px,75vh);overflow:auto;background:white;border:1px solid var(--ed-line);border-radius:12px;box-shadow:0 12px 35px rgb(15 35 65/.18);padding:8px;color:var(--ed-text);z-index:100}
.ed-v2 .ed-dropdown a,.ed-v2 .ed-dropdown form button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:44px;width:100%;padding:11px 12px;border:0;border-radius:7px;background:white;color:var(--ed-ink);font:500 14px/1.45 var(--ed-font);text-decoration:none;text-align:left;white-space:normal;cursor:pointer}
.ed-v2 .ed-dropdown a:hover,.ed-v2 .ed-dropdown form button:hover{background:var(--ed-tint);color:var(--ed-blue)}
.ed-v2 .ed-dropdown small{color:var(--ed-muted);font-size:12px;font-weight:400}
.ed-v2 .ed-dropdown strong{font-size:14px;font-weight:600}
.ed-v2 .ed-menu-label{display:block;padding:10px 12px 7px;color:var(--ed-muted);font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}
.ed-v2 .ed-dropdown form{margin:5px 0 0;padding-top:5px;border-top:1px solid var(--ed-line)}
.ed-v2 .ed-dropdown-right{left:auto;right:0;width:250px}
.ed-v2 .ed-utility-nav{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-left:auto;min-width:0}
.ed-v2 .ed-utility-nav>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:#e0eafb;text-decoration:none;font-size:13px;font-weight:550;line-height:1.4}
.ed-v2 .ed-utility-nav>a:hover{color:white;text-decoration:underline}
.ed-v2 .ed-utility-nav .ed-balance{display:inline-flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:6px;min-height:44px;padding:9px 12px;margin:0;border:1px solid #adc3e8;border-radius:10px;background:var(--ed-tint);color:var(--ed-navy);font-size:13px;line-height:1.4;white-space:nowrap;text-decoration:none}
.ed-v2 .ed-balance svg{display:block;width:17px;height:17px}
.ed-v2 .ed-utility-nav .ed-balance:hover{background:#dbe7fc;color:var(--ed-navy)}
.ed-v2 .ed-avatar{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#dce8fe;color:var(--ed-navy);font-size:12px;font-weight:650}
.ed-v2 .ed-account-name{display:block;min-width:0;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ed-v2 .ed-utility-nav .ed-auth-link{padding-inline:4px}
.ed-v2 .ed-utility-nav .ed-auth-button{padding:10px 16px;background:var(--ed-tint);border:1px solid #bbcff0;border-radius:10px;color:var(--ed-navy);font-weight:600;white-space:nowrap}
.ed-v2 .ed-utility-nav .ed-auth-button:hover{background:white;color:var(--ed-navy);text-decoration:none}
.ed-v2 .ed-context-bar{background:white;border-bottom:1px solid var(--ed-line)}
.ed-v2 .ed-context-nav{display:flex;align-items:center;gap:6px;min-height:60px;width:min(calc(100% - var(--ed-gutter)*2),var(--ed-page-wide));padding-block:8px;margin:auto;overflow-x:auto;overscroll-behavior-inline:contain}
.ed-v2 .ed-context-nav a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;padding:9px 15px;border-radius:10px;color:var(--ed-muted);font-size:14px;font-weight:550;text-decoration:none;white-space:nowrap;line-height:1.4}
.ed-v2 .ed-context-nav a:hover{background:var(--ed-tint);color:var(--ed-blue)}
.ed-v2 .ed-context-nav a[aria-current=page]{background:var(--ed-tint);color:var(--ed-blue);box-shadow:inset 0 -2px var(--ed-blue)}
.ed-v2 .ed-workspace-layout{width:100%;min-width:0;min-height:calc(100vh - 240px)}
.ed-v2.ed-shell-admin .ed-workspace-layout{display:grid;grid-template-columns:224px minmax(0,1fr);max-width:1664px;margin:auto;align-items:start}
.ed-v2 .ed-admin-sidebar{position:sticky;top:0;max-height:100vh;overflow:auto;min-height:calc(100vh - 120px);padding:25px 16px 32px;background:white;border-right:1px solid var(--ed-line)}
.ed-v2 .ed-admin-nav section+section{margin-top:20px}
.ed-v2 .ed-admin-nav h2{font-size:10px;letter-spacing:.06em;line-height:1.6;text-transform:uppercase;color:var(--ed-muted);font-weight:650;margin:0 10px 8px}
.ed-v2 .ed-admin-nav a{display:flex;align-items:center;min-height:44px;padding:9px 11px;border-radius:8px;color:var(--ed-muted);font-size:12px;font-weight:500;line-height:1.5;text-decoration:none}
.ed-v2 .ed-admin-nav a:hover,.ed-v2 .ed-admin-nav a[aria-current=page]{background:var(--ed-tint);color:var(--ed-blue)}
.ed-v2 .ed-admin-nav a[aria-current=page]{font-weight:650}
.ed-v2 .ed-admin-mobile{display:none}
.ed-v2 .ed-override-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:12px 16px;background:var(--ed-tint);color:var(--ed-ink);font-size:13px;border-bottom:1px solid var(--ed-line)}
.ed-v2 .ed-override-note form{display:inline}.ed-v2 .ed-override-note button{padding:8px 12px;min-height:40px;background:white;border:1px solid var(--ed-line-strong);border-radius:8px;color:var(--ed-blue);font:inherit}
.ed-v2 .ed-footer{padding:28px var(--ed-gutter);border-top:1px solid var(--ed-line);background:white;color:var(--ed-muted)}
.ed-v2 .ed-footer-inner{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;justify-content:space-between;max-width:var(--ed-page-wide);margin:auto}
.ed-v2 .ed-footer-brand{display:flex;align-items:center;flex-wrap:wrap;gap:7px 15px;font-size:12px}
.ed-v2 .ed-footer-brand>a{font-size:14px;font-weight:650;color:var(--ed-ink);text-decoration:none}
.ed-v2 .ed-footer-meta{display:flex;flex-wrap:wrap;gap:5px 20px}
.ed-v2 .ed-footer-meta a,.ed-v2 .ed-footer-services a{display:inline-flex;align-items:center;min-height:32px;font-size:12px;color:var(--ed-muted);text-decoration:none}
.ed-v2 .ed-footer-meta a:hover,.ed-v2 .ed-footer-services a:hover{color:var(--ed-blue);text-decoration:underline}
.ed-v2 .ed-footer-copy{font-size:11px;color:var(--ed-muted)}
.ed-v2 .ed-footer-compact .ed-footer-copy{flex-basis:100%}
.ed-v2 .ed-footer-public{padding-block:36px 24px;background:var(--ed-navy);color:var(--ed-on-navy);border-color:#355071}
.ed-v2 .ed-footer-public .ed-footer-brand{display:block;flex:1 1 260px}
.ed-v2 .ed-footer-public .ed-footer-brand a{color:white;display:block;font-size:18px;margin-bottom:6px}
.ed-v2 .ed-footer-public .ed-footer-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 24px;flex:2 1 560px}
.ed-v2 .ed-footer-public :is(.ed-footer-meta a,.ed-footer-services a,.ed-footer-copy){color:var(--ed-on-navy)}
.ed-v2 .ed-footer-public .ed-footer-meta{width:100%;border-top:1px solid #526c8d;padding-top:18px;margin-top:12px}
/* Consent keeps its native logic and equal choices. */
.ed-v2 .ed-consent{border-top:1px solid var(--ed-line);background:white;color:var(--ed-text);box-shadow:0 -5px 25px rgb(21 46 80/.08)}
.ed-v2 .ed-consent-title{color:var(--ed-ink)}.ed-v2 .ed-consent-text,.ed-v2 .ed-consent-desc{color:var(--ed-muted)}
.ed-v2 .ed-consent-actions{min-width:0;max-width:100%;gap:8px}.ed-v2 .ed-consent-actions .btn{min-width:0;max-width:100%;min-height:44px;padding:10px 16px;border-radius:10px;font:600 14px/1.4 var(--ed-font);white-space:normal;box-shadow:none}
.ed-v2 .ed-consent-actions .btn-accent{background:var(--ed-blue);border:1px solid var(--ed-blue);color:white}.ed-v2 .ed-consent-actions .btn-outline{border:1px solid var(--ed-line-strong);background:white;color:var(--ed-blue)}
.ed-v2 .ed-consent-panel{background:var(--ed-soft);border-color:var(--ed-line)}
@media(max-width:1050px){.ed-v2 .ed-topbar-inner{gap:16px}.ed-v2 .ed-utility-nav{gap:12px}.ed-v2 .ed-service-switch{padding-left:16px;max-width:220px}.ed-v2 .ed-utility-help{display:none!important}.ed-v2 .ed-account-name{max-width:125px}}
@media(max-width:900px){.ed-v2.ed-shell-admin .ed-workspace-layout{display:block}.ed-v2 .ed-admin-sidebar{display:none}.ed-v2 .ed-admin-mobile{display:block;border-bottom:1px solid var(--ed-line);background:white;padding:8px var(--ed-gutter)}.ed-v2 .ed-admin-mobile-menu>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;color:var(--ed-blue);font-size:14px;list-style:none}.ed-v2 .ed-admin-mobile-menu>summary::-webkit-details-marker{display:none}.ed-v2 .ed-admin-mobile-menu .ed-admin-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:14px 0 20px}.ed-v2 .ed-admin-mobile-menu .ed-admin-nav section{margin:0}}
@media(max-width:700px){.ed-v2 .ed-topbar-inner{position:relative;width:calc(100% - 32px);min-height:68px;flex-wrap:wrap;gap:10px 12px;padding:12px 0}.ed-v2 .ed-brand{font-size:17px;gap:8px}.ed-v2 .ed-brand img{width:32px;height:32px}.ed-v2 .ed-service-switch{border-left:0;padding-left:0;margin-left:auto;max-width:calc(100% - 155px)}.ed-v2 .ed-service-switch>summary{font-size:12px;padding:9px 10px;gap:8px}.ed-v2 .ed-topbar .ed-menu{position:static}.ed-v2 .ed-topbar .ed-menu>.ed-dropdown{position:absolute;top:calc(100% + 10px);left:auto;right:0}.ed-v2 .ed-service-switch .ed-dropdown{width:min(310px,calc(100vw - 32px))}.ed-v2 .ed-utility-nav{width:100%;margin-left:0;padding-top:8px;border-top:1px solid #456080;gap:10px}.ed-v2 .ed-utility-resource{margin-right:auto}.ed-v2 .ed-utility-nav .ed-balance{padding:8px 10px}.ed-v2 .ed-balance-unit{display:none}.ed-v2 .ed-account-name{max-width:clamp(44px,calc(100vw - 250px),160px)}.ed-v2 .ed-account-menu>summary{padding:9px 10px;font-size:12px;gap:7px}.ed-v2 .ed-context-nav{width:calc(100% - 24px);min-height:58px;gap:2px}.ed-v2 .ed-context-nav a{font-size:13px;padding-inline:12px}.ed-v2 .ed-footer-inner{align-items:flex-start;gap:14px}.ed-v2 .ed-footer-meta{gap:5px 18px}.ed-v2 .ed-footer-public .ed-footer-services{grid-template-columns:repeat(2,minmax(0,1fr));flex-basis:100%}.ed-v2 .ed-admin-mobile-menu .ed-admin-nav{grid-template-columns:minmax(0,1fr)}.ed-v2 .ed-consent-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.ed-v2 .ed-consent-actions .js-settings{grid-column:1/-1}}
@media print{.ed-v2 :is(.ed-topbar,.ed-context-bar,.ed-admin-sidebar,.ed-admin-mobile,.ed-footer,.ed-preview-bar,.ed-consent,.ed-override-note){display:none!important}.ed-v2.ed-shell-admin .ed-workspace-layout{display:block}}

.ed-v2 .ed-topbar :is(.ed-brand,summary,.ed-utility-nav>a):focus-visible{outline-color:#aac3f7}

/* experience.css */
/* EconDoctor V2: clear resource navigation and quiet learning spaces. */
.ed-v2 { -webkit-font-smoothing:antialiased; }
.ed-v2 .skip-link { position:fixed; top:12px; left:16px; z-index:1000; transform:translateY(calc(-100% - 28px)); transition:none; }
.ed-v2 .skip-link:focus,.ed-v2 .skip-link:focus-visible { transform:translateY(0); }
.ed-v2 ::selection { background:var(--ed-selected-surface); color:var(--ed-ink); }
.ed-v2 .ed-workspace-layout { min-height:calc(100vh - 235px); }
.ed-v2 .ed-topbar { background:var(--ed-card); color:var(--ed-ink); border-bottom:1px solid var(--ed-line); }
.ed-v2 .ed-topbar-inner { width:min(calc(100% - var(--ed-gutter)*2),var(--ed-page-wide)); min-height:76px; flex-wrap:wrap; gap:36px; padding:12px 0; }
.ed-v2 .ed-brand { color:var(--ed-ink); font-size:22px; font-weight:650; letter-spacing:-.055em; gap:10px; }
.ed-v2 .ed-brand img { width:40px; height:40px; }
.ed-v2 .ed-primary-nav { display:flex; align-items:center; gap:8px; }
.ed-v2 .ed-resource-navigation { display:flex; align-items:center; position:relative; }
.ed-v2 .ed-resource-navigation .ed-primary-link { padding-right:4px; }
.ed-v2 .ed-resource-navigation .ed-primary-menu>summary { padding-inline:8px; min-width:36px; justify-content:center; }
.ed-v2 .ed-resource-navigation .ed-dropdown { left:auto; right:0; }
.ed-v2 .ed-footer-tagline { display:block; margin-top:8px; font-size:12px; color:var(--ed-footer-text); }
.ed-v2 .ed-resource-filters .ed-reference-fields { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
@media(max-width:760px) { .ed-v2 .ed-resource-filters .ed-reference-fields { grid-template-columns:minmax(0,1fr); } }
.ed-v2 .ed-menu>summary { border-color:transparent; border-radius:var(--ed-control-radius); color:var(--ed-ink); font-size:14px; font-weight:500; padding:10px 12px; gap:10px; }
.ed-v2 .ed-menu>summary:hover,.ed-v2 .ed-menu[open]>summary { background:var(--ed-soft); border-color:var(--ed-line); color:var(--ed-green); }
.ed-v2 .ed-menu .ed-chevron { font-size:14px; color:var(--ed-muted); transition:transform .16s; }
.ed-v2 .ed-menu[open] .ed-chevron { transform:rotate(180deg); }
.ed-v2 .ed-dropdown { top:calc(100% + 12px); left:0; padding:9px; border-radius:12px; box-shadow:0 16px 40px rgb(35 60 71/.1); }
.ed-v2 .ed-dropdown a,.ed-v2 .ed-dropdown form button { padding:12px; border-radius:7px; }
.ed-v2 .ed-dropdown a:hover,.ed-v2 .ed-dropdown form button:hover { background:var(--ed-sage); color:var(--ed-green); }
.ed-v2 .ed-dropdown small { font-size:13px; line-height:1.5; }
.ed-v2 .ed-utility-nav { gap:22px; }
.ed-v2 .ed-utility-nav>a { color:var(--ed-text); font-size:14px; font-weight:500; }
.ed-v2 .ed-utility-nav>a:hover { color:var(--ed-green); }
.ed-v2 .ed-utility-nav .ed-auth-button { background:var(--ed-green); border-color:var(--ed-green); color:white; padding:12px 18px; border-radius:var(--ed-control-radius); }
.ed-v2 .ed-utility-nav .ed-auth-button:hover { background:var(--ed-green-hover); border-color:var(--ed-green-hover); color:white; }
.ed-v2 .ed-utility-nav .ed-balance { border-color:var(--ed-line); background:var(--ed-soft); color:var(--ed-ink); padding:9px 12px; border-radius:8px; }
.ed-v2 .ed-utility-nav .ed-balance:hover { background:var(--ed-sage); color:var(--ed-ink); }
.ed-v2 .ed-consent [hidden] { display:none!important; }
.ed-v2 .ed-avatar { background:var(--ed-sage); color:var(--ed-green); width:28px; height:28px; flex-basis:28px; }
.ed-v2 .ed-account-menu>summary { border:1px solid var(--ed-line); padding:8px 10px; }
.ed-v2 .ed-dropdown-right { left:auto; right:0; }
.ed-v2 .ed-mobile-menu { display:none; }
.ed-v2 .ed-menu-lines { display:block; width:17px; height:12px; border-block:1.5px solid currentColor; position:relative; }
.ed-v2 .ed-menu-lines::after { content:''; position:absolute; top:4px; left:0; width:17px; border-top:1.5px solid currentColor; }
.ed-v2 .ed-topbar :is(.ed-brand,summary,.ed-utility-nav>a):focus-visible { outline-color:var(--ed-focus); }
.ed-v2 .ed-preview-bar { background:var(--ed-soft); color:var(--ed-muted); font-size:12px; }
.ed-v2 .ed-preview-bar>div { width:min(calc(100% - var(--ed-gutter)*2),var(--ed-page-wide)); padding:7px 0; }
.ed-v2 .ed-preview-bar strong { padding:0; margin-right:5px; background:transparent; color:var(--ed-green); font-size:12px; font-weight:650; }
.ed-v2 .ed-preview-links a { color:var(--ed-muted); }
.ed-v2 .ed-context-bar { background:var(--ed-card); }
.ed-v2 .ed-context-nav { min-height:58px; gap:18px; padding-block:0; }
.ed-v2 .ed-context-nav a { min-height:58px; padding:12px 2px; border-radius:0; border-bottom:2px solid transparent; font-weight:500; }
.ed-v2 .ed-context-nav a:hover { background:transparent; color:var(--ed-green); }
.ed-v2 .ed-context-nav a[aria-current=page] { color:var(--ed-green); background:transparent; border-bottom-color:var(--ed-green); }
.ed-v2 .ed-page h1.ed-page-title { font-weight:600; letter-spacing:-.045em; }
.ed-v2 .ed-page :is(.btn,.contact-modern-link) { font-weight:550; padding:.75rem 1.1rem; }
.ed-v2 .ed-page :is(.card,.ed-panel,.account-card,.settings-card,.activity-card,.learning-card,.rwe-card) { box-shadow:none; }
.ed-v2 .ed-page :is(.table,.admin-table) thead th,
.ed-v2 .ed-page table thead th { background:var(--ed-tint); color:var(--ed-ink); border-color:var(--ed-line); font-weight:600; }
.ed-v2 .ed-page table.revision-table tbody tr.unit-row>td { background:var(--ed-sage); color:var(--ed-green); }
.ed-v2 .ed-page .ed-icon { background:var(--ed-sage); color:var(--ed-green); border-color:transparent; }
.ed-v2 .ed-page .ed-kicker { margin:0 0 18px; color:var(--ed-green); font:600 11px/1.6 var(--ed-font); letter-spacing:.13em; text-transform:uppercase; }
.ed-v2 .ed-page .ed-editorial-title { font-family:var(--ed-font-display); font-weight:600; letter-spacing:-.045em; line-height:1.08; }
.ed-v2 .ed-page .ed-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:32px; }
.ed-v2 .ed-section-heading>div { min-width:0; }
.ed-v2 .ed-page .ed-section-heading h2 { font-family:var(--ed-font-display); font-size:clamp(1.5rem,2.5vw,1.875rem); font-weight:600; letter-spacing:-.035em; line-height:1.15; margin:0 0 12px; }
.ed-v2 .ed-page .ed-section-heading p:not(.ed-kicker) { max-width:60ch; margin:0; color:var(--ed-muted); font-size:15px; line-height:1.7; }
.ed-v2 .ed-page .ed-text-link { display:inline-flex; align-items:center; gap:12px; min-height:44px; color:var(--ed-green); font-size:14px; font-weight:550; text-decoration:none; }
.ed-v2 .ed-page .ed-text-link:hover { text-decoration:underline; text-underline-offset:5px; }
.ed-v2 .ed-arrow { display:inline-block; transition:transform .18s; }
.ed-v2 a:hover .ed-arrow { transform:translateX(3px); }
.ed-v2 .ed-page .ed-home-width { width:min(calc(100% - var(--ed-gutter)*2),var(--ed-page)); margin-inline:auto; }
.ed-v2 .ed-page.ed-home-main>section.ed-home-hero { padding:48px 0; background:var(--ed-paper); border-bottom:1px solid var(--ed-line); }
.ed-v2 .ed-home-hero-inner { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:center; gap:64px; }
.ed-v2 .ed-home-hero-copy { padding:14px 0; min-width:0; }
.ed-v2 .ed-page h1.ed-home-title { margin:0 0 24px; color:var(--ed-ink); font-family:var(--ed-font-display); font-weight:600; font-size:clamp(2.2rem,3.5vw,3.25rem); line-height:1.04; letter-spacing:-.055em; text-wrap:balance; }
.ed-v2 .ed-home-title span { color:var(--ed-green); font-weight:600; }
.ed-v2 .ed-page .ed-home-intro { max-width:44ch; color:var(--ed-text); font-size:16px; line-height:1.75; margin:0 0 22px; }
.ed-v2 .ed-home-actions { display:flex; align-items:center; gap:16px 24px; flex-wrap:wrap; }
.ed-v2 .ed-page .ed-home-actions .btn { min-height:48px; padding:13px 20px; background:var(--ed-green); border-color:var(--ed-green); color:white; gap:22px; }
.ed-v2 .ed-page .ed-home-actions .btn:hover { background:var(--ed-green-hover); border-color:var(--ed-green-hover); }
.ed-v2 .ed-home-note { margin:24px 0 0; color:var(--ed-muted); font-size:12px; line-height:1.7; }
.ed-v2 .ed-demo { position:relative; min-width:0; margin:0; padding:26px 28px 22px; border:1px solid var(--ed-line); border-radius:16px; background:var(--ed-card); box-shadow:0 18px 50px rgb(44 69 60/.045); }
.ed-v2 .ed-demo-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:8px; }
.ed-v2 .ed-demo-label { color:var(--ed-green); font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.ed-v2 .ed-demo-number { color:var(--ed-muted); font-size:11px; font-variant-numeric:tabular-nums; }
.ed-v2 .ed-demo svg { width:100%; height:auto; display:block; overflow:visible; }
.ed-v2 .ed-demo svg text { font-family:var(--ed-font); fill:var(--ed-muted); font-size:13px; }
.ed-v2 .ed-demo .ed-curve-label { font-size:16px; fill:var(--ed-ink); font-style:italic; }
.ed-v2 .ed-demo .ed-chart-grid { stroke:var(--ed-tint); stroke-width:1; }
.ed-v2 .ed-demo .ed-chart-axis { fill:none; stroke:var(--ed-line-strong); stroke-width:1.3; }
.ed-v2 .ed-demo .ed-supply { fill:none; stroke:var(--ed-blue); stroke-width:2.2; }
.ed-v2 .ed-demo .ed-demand { fill:none; stroke:var(--ed-chart-secondary); stroke-width:2.2; }
.ed-v2 .ed-demo .ed-demand-after { stroke-dasharray:5 5; }
.ed-v2 .ed-demo .ed-projection { fill:none; stroke:var(--ed-line-strong); stroke-width:1.2; stroke-dasharray:4 5; }
.ed-v2 .ed-demo .ed-equilibrium { fill:var(--ed-chart-secondary); stroke:var(--ed-panel-surface); stroke-width:3; }
.ed-v2 .ed-demo .ed-after { opacity:1; transition:opacity .25s; }
.ed-v2 .ed-demo.is-enhanced:not(.is-shifted) .ed-after { opacity:0; }
.ed-v2 .ed-demo figcaption { border-top:1px solid var(--ed-line); padding-top:16px; color:var(--ed-text); font-size:13px; line-height:1.65; min-height:65px; }
.ed-v2 .ed-demo figcaption strong { display:block; color:var(--ed-ink); font-size:14px; font-weight:550; margin-bottom:4px; }
.ed-v2 .ed-demo-controls { display:none; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.ed-v2 .ed-demo.is-enhanced .ed-demo-controls { display:flex; }
.ed-v2 .ed-demo-controls>span { color:var(--ed-muted); font-size:11px; }
.ed-v2 .ed-demo-controls button { display:inline-flex; align-items:center; gap:12px; min-height:44px; padding:9px 12px; border:1px solid var(--ed-sage-line); border-radius:7px; background:var(--ed-sage); color:var(--ed-green); font:550 12px/1.4 var(--ed-font); cursor:pointer; }
.ed-v2 .ed-demo-controls button:hover { background:var(--ed-hover-surface); border-color:var(--ed-green); }
.ed-v2 .ed-home-subline { display:flex; align-items:center; gap:12px 24px; flex-wrap:wrap; padding-top:40px; margin-top:38px; border-top:1px solid var(--ed-line); color:var(--ed-muted); font-size:12px; }
.ed-v2 .ed-home-subline span+span::before { content:'·'; margin-right:24px; color:var(--ed-muted); }
.ed-v2 .ed-page.ed-home-main>section.ed-home-tools { padding:48px 0; }
.ed-v2 .ed-path-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.ed-v2 .ed-path-card { display:flex; align-items:flex-start; flex-direction:column; min-width:0; padding:30px 28px 24px; border:1px solid var(--ed-line); border-radius:12px; background:var(--ed-card); }
.ed-v2 .ed-path-card>.ed-icon { width:44px; height:44px; border-radius:10px; margin-bottom:18px; }
.ed-v2 .ed-path-card:nth-child(2)>.ed-icon { color:var(--ed-blue); background:var(--ed-tint); }
.ed-v2 .ed-path-card:nth-child(3)>.ed-icon { color:var(--ed-blue); background:var(--ed-tint); }
.ed-v2 .ed-page .ed-path-card h3 { margin:0 0 12px; color:var(--ed-ink); font-size:21px; font-weight:550; letter-spacing:-.035em; }
.ed-v2 .ed-path-card>p { margin:0 0 24px; font-size:16px; line-height:1.6; color:var(--ed-muted); line-height:1.8; }
.ed-v2 .ed-path-links { width:100%; list-style:none; padding:0; margin:auto 0 0; }
.ed-v2 .ed-path-links li { border-top:1px solid var(--ed-line); }
.ed-v2 .ed-path-links a { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:46px; padding:10px 0; color:var(--ed-green); text-decoration:none; font-size:14px; font-weight:550; }
.ed-v2 .ed-path-links a:hover { color:var(--ed-green-hover); text-decoration:underline; }
.ed-v2 .ed-teacher-strip { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 28px; margin-top:24px; border:1px solid var(--ed-line); border-radius:10px; background:var(--ed-tint); }
.ed-v2 .ed-teacher-strip p { margin:0; color:var(--ed-text); font-size:14px; line-height:1.7; }
.ed-v2 .ed-teacher-strip strong { color:var(--ed-ink); font-weight:600; }
.ed-v2 .ed-teacher-strip a { flex:0 0 auto; }
.ed-v2 .ed-page.ed-home-main>section.ed-home-guides { padding:48px 0; background:var(--ed-sage); border-block:1px solid var(--ed-line); }
.ed-v2 .ed-guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.ed-v2 .ed-guide-card { display:flex; flex-direction:column; min-width:0; padding:26px; background:var(--ed-card); border:1px solid var(--ed-line); border-radius:10px; }
.ed-v2 .ed-guide-art { display:flex; align-items:center; justify-content:center; height:130px; border-bottom:1px solid var(--ed-line); margin-bottom:22px; padding-bottom:20px; color:var(--ed-green); }
.ed-v2 .ed-guide-art svg { height:100%; width:100%; max-width:210px; }
.ed-v2 .ed-guide-card>span { font-size:10px; letter-spacing:.1em; font-weight:600; color:var(--ed-green); text-transform:uppercase; margin-bottom:10px; }
.ed-v2 .ed-page .ed-guide-card h3 { font-size:20px; font-weight:550; letter-spacing:-.035em; line-height:1.4; margin:0 0 12px; }
.ed-v2 .ed-guide-card h3 a { color:var(--ed-ink); text-decoration:none; }
.ed-v2 .ed-guide-card h3 a:hover { color:var(--ed-green); text-decoration:underline; }
.ed-v2 .ed-guide-card>p { margin:0 0 18px; color:var(--ed-muted); font-size:13px; line-height:1.8; }
.ed-v2 .ed-guide-card>.ed-text-link { margin-top:auto; font-size:13px; }
.ed-v2 .ed-page.ed-home-main>section.ed-home-author { padding:48px 0; }
.ed-v2 .ed-author-inner { display:grid; grid-template-columns:200px minmax(0,1fr); align-items:center; gap:56px; width:min(100%,870px); margin:auto; }
.ed-v2 .ed-author-photo { display:block; width:200px; height:238px; object-fit:cover; border-radius:12px; }
.ed-v2 .ed-page .ed-author-copy h2 { font-family:var(--ed-font-display); font-size:28px; font-weight:600; line-height:1.15; letter-spacing:-.035em; margin:0 0 16px; }
.ed-v2 .ed-author-copy>p:not(.ed-kicker) { margin:0 0 16px; color:var(--ed-text); font-size:15px; line-height:1.8; }
.ed-v2 .ed-page.ed-home-main>section.ed-workspace-welcome { padding:44px 0 34px; border-bottom:1px solid var(--ed-line); background:var(--ed-paper); }
.ed-v2 .ed-workspace-welcome .ed-kicker { margin-bottom:12px; }
.ed-v2 .ed-page .ed-workspace-welcome h1 { margin:0 0 12px; font:600 clamp(1.75rem,3vw,2.5rem)/1.12 var(--ed-font-display); letter-spacing:-.045em; color:var(--ed-ink); }
.ed-v2 .ed-workspace-welcome p:not(.ed-kicker) { max-width:60ch; margin:0; color:var(--ed-muted); font-size:15px; }
.ed-v2 .ed-workspace-quicklinks { display:flex; gap:8px 28px; flex-wrap:wrap; margin-top:20px; }
.ed-v2 .ed-workspace-quicklinks .ed-text-link { font-size:13px; }
.ed-v2 .ed-page.ed-home-main>section.ed-dashboard-section { padding:36px 0 64px; }
.ed-v2 .ed-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(0,1fr); gap:28px; align-items:start; }
.ed-v2 .ed-dashboard-main,.ed-v2 .ed-dashboard-side { display:grid; gap:28px; min-width:0; }
.ed-v2 .ed-page .ed-dashboard-heading { margin:0 0 18px; font-size:18px; font-weight:550; letter-spacing:-.025em; }
.ed-v2 .ed-dashboard-entries { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ed-v2 .ed-dashboard-entry { display:flex; align-items:center; gap:16px; min-width:0; padding:20px; border:1px solid var(--ed-line); border-radius:10px; background:white; color:var(--ed-ink); text-decoration:none; }
.ed-v2 .ed-dashboard-entry:hover { border-color:var(--ed-sage-line); background:var(--ed-hover-surface); }
.ed-v2 .ed-dashboard-entry .ed-icon { flex-basis:38px; width:38px; height:38px; }
.ed-v2 .ed-dashboard-entry>span:not(.ed-icon) { min-width:0; }
.ed-v2 .ed-dashboard-entry strong { display:block; font-size:14px; font-weight:550; margin-bottom:5px; line-height:1.5; }
.ed-v2 .ed-dashboard-entry small { display:block; font-size:12px; line-height:1.65; color:var(--ed-muted); }
.ed-v2 .ed-activity-panel { padding:24px; border:1px solid var(--ed-line); border-radius:12px; background:var(--ed-card); }
.ed-v2 .ed-activity-list { margin:0; padding:0; list-style:none; }
.ed-v2 .ed-activity-list>li { display:grid; grid-template-columns:8px minmax(0,1fr) auto; align-items:center; gap:12px; padding:16px 0; border-top:1px solid var(--ed-line); }
.ed-v2 .ed-activity-dot { width:6px; height:6px; border-radius:50%; background:#8d9a9d; }
.ed-v2 .ed-activity-dot[data-state='2'] { background:var(--ed-green); }
.ed-v2 .ed-activity-dot[data-state='1'] { background:var(--ed-blue); }
.ed-v2 .ed-activity-dot[data-state='3'] { background:var(--ed-danger); }
.ed-v2 .ed-activity-label { display:block; color:var(--ed-ink); font-size:14px; font-weight:500; line-height:1.65; }
.ed-v2 .ed-activity-meta { display:block; color:var(--ed-muted); font-size:12px; line-height:1.7; margin-top:2px; }
.ed-v2 .ed-activity-list a { color:var(--ed-green); font-size:12px; font-weight:550; text-decoration:none; padding:10px 0; }
.ed-v2 .ed-activity-list a:hover { text-decoration:underline; }
.ed-v2 .ed-activity-empty { padding:14px 0 0; margin:0; font-size:14px; color:var(--ed-muted); line-height:1.8; }
.ed-v2 .ed-dashboard-tip { border:1px solid var(--ed-sage-line); background:var(--ed-sage); border-radius:12px; padding:26px; }
.ed-v2 .ed-page .ed-dashboard-tip h2 { margin:0 0 12px; font-family:var(--ed-font-display); font-weight:600; font-size:24px; line-height:1.2; letter-spacing:-.035em; }
.ed-v2 .ed-dashboard-tip>p { margin:0 0 15px; color:var(--ed-text); font-size:14px; line-height:1.8; }
.ed-v2 .ed-dashboard-links { padding:24px; border:1px solid var(--ed-line); border-radius:12px; background:white; }
.ed-v2 .ed-dashboard-links .ed-path-links a { font-size:13px; }
.ed-v2 .ed-footer-public { background:var(--ed-footer-surface); border-color:var(--ed-line); padding-block:42px 24px; color:var(--ed-text); }
.ed-v2 .ed-footer-public .ed-footer-brand a { color:var(--ed-ink); font-size:21px; letter-spacing:-.04em; }
.ed-v2 .ed-footer-public :is(.ed-footer-meta a,.ed-footer-services a,.ed-footer-copy) { color:var(--ed-muted); }
.ed-v2 .ed-footer-public .ed-footer-meta { border-color:var(--ed-line); }
.ed-v2 .ed-footer-brand { font-size:13px; line-height:1.8; }
.ed-v2 .ed-footer-meta a,.ed-v2 .ed-footer-services a { font-size:12px; min-height:36px; }
.ed-v2 .ed-footer-public .ed-footer-services a:hover,.ed-v2 .ed-footer-public .ed-footer-meta a:hover { color:var(--ed-green); }
.ed-v2 .ed-footer-services>div { display:flex; flex-direction:column; align-items:flex-start; }
.ed-v2 .ed-footer-services h2 { font:600 12px/1.5 var(--ed-font); color:var(--ed-ink); margin:0 0 12px; }

/* Public tools retain their native copy, price data and account destinations. */
.ed-v2 .ed-page.public-tool-main>.public-tool-hero { background:var(--ed-paper); border-bottom:1px solid var(--ed-line); padding:46px 0 48px; }
.ed-v2 .public-tool-hero::before { content:none; }
.ed-v2 .ed-page .public-tool-title.ed-page-title { max-width:900px; font-family:var(--ed-font-display); font-size:clamp(2rem,3vw,2.75rem); font-weight:600; line-height:1.1; letter-spacing:-.04em; }
.ed-v2 .public-tool-kicker { display:none; }
.ed-v2 .ed-page .public-tool-subtitle { margin:20px 0 12px; font-size:18px; font-weight:500; color:var(--ed-green); }
.ed-v2 .ed-page .public-tool-intro { max-width:65ch; color:var(--ed-text); font-size:16px; line-height:1.8; }
.ed-v2 .ed-page .public-tool-actions { margin-top:24px; }
.ed-v2 .ed-page .public-tool-actions .btn-accent { background:var(--ed-green); border-color:var(--ed-green); }
.ed-v2 .ed-page .public-tool-actions .btn-accent:hover { background:var(--ed-green-hover); border-color:var(--ed-green-hover); }
.ed-v2 .public-tool-preview { min-width:0; padding:26px; border:1px solid var(--ed-line); border-radius:12px; background:white; }
.ed-v2 .ed-page .public-tool-example-label { color:var(--ed-green); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
.ed-v2 .ed-page .public-tool-example { background:var(--ed-sage); border-left:2px solid var(--ed-green); color:var(--ed-text); border-radius:0 6px 6px 0; padding:16px 18px; }
.ed-v2 .ed-page .public-tool-overview>.public-tool-access { padding:26px; background:var(--ed-tint); border:1px solid var(--ed-line); border-radius:12px; }
.ed-v2 .ed-page .public-tool-access>h2 { font-size:18px; margin-top:0; }
.ed-v2 .ed-page .public-tool-access>p { font-size:14px; line-height:1.8; }
.ed-v2 .public-tool-access .public-tool-prices { font-size:14px; }
.ed-v2 .public-tool-details { border-color:var(--ed-line); }
.ed-v2 .public-tool-details>summary { min-height:54px; color:var(--ed-ink); font-weight:550; }
.ed-v2 .public-tool-related ul { gap:8px 30px; }

/* Comfortable reading: clear contents, a quiet page and a consistent text measure. */
.ed-v2 .learning-shell { padding-top:38px; }
.ed-v2 .ed-page .learning-heading .ed-page-title { max-width:27ch; font:600 clamp(1.875rem,3vw,2.625rem)/1.12 var(--ed-font-display); letter-spacing:-.04em; }
.ed-v2 .ed-page .learning-heading .learning-kicker { display:block; margin:0 0 16px; color:var(--ed-green); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.ed-v2 .learning-heading .learning-intro { max-width:65ch; color:var(--ed-text); font-size:17px; line-height:1.85; }
.ed-v2 .learning-heading .learning-meta { font-size:12px; margin-top:20px; }
.ed-v2 .learning-body { max-width:720px; margin-inline:auto; color:var(--ed-text); font-size:16px; line-height:1.9; }
.ed-v2 .learning-body :is(h2,h3) { scroll-margin-top:30px; }
.ed-v2 .learning-body h2 { font-size:24px; font-weight:550; margin:42px 0 18px; line-height:1.45; }
.ed-v2 .learning-body p { margin-block:0 20px; }
.ed-v2 .learning-body li { margin-block:8px; }
.ed-v2 .learning-contents { max-width:720px; padding:24px; margin:32px auto 38px; border:1px solid var(--ed-sage-line); border-radius:10px; background:var(--ed-sage); }
.ed-v2 .learning-contents h2 { margin:0 0 14px; font-size:16px; font-weight:550; }
.ed-v2 .learning-contents>summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:32px; margin:0; font-size:14px; font-weight:550; color:var(--ed-ink); list-style:none; cursor:pointer; }
.ed-v2 .learning-contents>summary::-webkit-details-marker { display:none; }
.ed-v2 .learning-contents[open]>summary { margin-bottom:12px; }
.ed-v2 .learning-contents ul { margin:0; padding:0; list-style:none; }
.ed-v2 .learning-contents a { display:inline-flex; align-items:center; min-height:38px; color:var(--ed-green); font-size:14px; text-decoration:none; line-height:1.6; }
.ed-v2 .learning-contents a:hover { text-decoration:underline; }
.ed-v2 .learning-contents a[aria-current=location] { font-weight:650; color:var(--ed-ink); text-decoration:underline; text-underline-offset:4px; }
.ed-v2 .learning-body :is(blockquote,.learning-callout) { background:var(--ed-soft); border-left:2px solid var(--ed-green); border-radius:0 8px 8px 0; padding:20px 24px; }
.ed-v2 .learning-body figure { margin:30px 0; }
.ed-v2 .learning-body figure>svg { background:white; border-color:var(--ed-line); border-radius:10px; }
.ed-v2 .learning-body figcaption { font-size:12px; line-height:1.75; color:var(--ed-muted); margin-top:12px; }
.ed-v2 .learning-article+.learning-next { max-width:720px; margin:38px auto 0; padding-top:28px; border-color:var(--ed-line); }
.ed-v2 .learning-next h2 { font-size:20px; font-weight:550; }
.ed-v2 .learning-next a { color:var(--ed-green); }
.ed-v2 .learning-card-grid { gap:20px; margin-top:24px; }
.ed-v2 .learning-card { display:flex; flex-direction:column; padding:26px; }
.ed-v2 .learning-card h3 { margin:0 0 14px; font-size:20px; font-weight:550; line-height:1.4; }
.ed-v2 .learning-card h3 a { color:var(--ed-ink); text-decoration:none; }
.ed-v2 .learning-card h3 a:hover { text-decoration:underline; color:var(--ed-green); }
.ed-v2 .learning-card>p { font-size:14px; color:var(--ed-muted); line-height:1.8; }
.ed-v2 .ed-page .ed-guide-number { color:var(--ed-green); font-size:11px; font-weight:600; letter-spacing:.1em; margin-bottom:24px; }
@media(min-width:1100px) {
  .ed-v2 .ed-reading-article { display:block; width:100%; max-width:720px; margin-inline:auto; }
  .ed-v2 .ed-reading-article>.learning-heading { grid-column:1/-1; margin-bottom:38px; }
  .ed-v2 .ed-reading-article>.learning-heading :is(.learning-intro,.learning-meta) { max-width:740px; }
  .ed-v2 .ed-reading-article>.learning-contents { position:sticky; top:24px; grid-column:1; grid-row:2; margin:0; padding:20px 18px; }
  .ed-v2 .ed-reading-article>.learning-body { width:100%; margin:0; }
  .ed-v2 .ed-reading-article .learning-contents a { font-size:12px; line-height:1.75; min-height:40px; padding-block:6px; }
  .ed-v2 .ed-reading-article+.learning-next { margin-inline:auto; max-width:720px; }
  .ed-v2 .ed-reading-article .learning-body>section:first-child>h2:first-child { margin-top:0; }
}

/* File selection stays native; drag and drop is an optional extra. */
.ed-v2 .ed-page .dropzone { display:block; padding:20px; text-align:left; }
.ed-v2 .dropzone .dz-instructions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; width:100%; }
.ed-v2 .dropzone .dz-title { font-size:14px; font-weight:500; line-height:1.6; }
.ed-v2 .ed-page .dropzone .ed-file-input { margin:12px 0 0; }
.ed-v2 .dropzone .dz-sep { margin:0; font-size:13px; }
.ed-v2 .ed-page .dropzone .dz-browse { min-height:44px; padding:8px 13px; font-size:13px; }
.ed-v2 .dropzone .dz-meta { margin-top:12px; color:var(--ed-muted); font-size:12px; line-height:1.7; }
.ed-v2 .dropzone .dz-file { margin-top:14px; padding:12px; border-color:var(--ed-line); border-radius:8px; background:white; }
.ed-v2 .dropzone .dz-file[hidden],.ed-v2 .dropzone .dz-error[hidden] { display:none; }
.ed-v2 .ed-page[data-ed-layout=form] .card-header { padding:24px; }
.ed-v2 .ed-page[data-ed-layout=form] .card-header>h2 { font-size:19px; font-weight:550; margin-bottom:8px; }
.ed-v2 .ed-page[data-ed-layout=form] .card-header>p { font-size:14px; line-height:1.8; }
.ed-v2 .ed-page[data-ed-layout=form] .card-body { padding:28px; }
.ed-v2 .ed-page[data-ed-layout=form] .form-group { margin-bottom:22px; }
.ed-v2 .ed-page .cp-note { color:var(--ed-muted); opacity:1; }
.ed-v2 .ed-page .cp-tbl th { color:var(--ed-ink); background:var(--ed-tint); opacity:1; }
.ed-v2 .ed-coursework-balance { display:flex; align-items:center; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; margin:20px 0 28px; padding:12px 18px; border:1px solid var(--ed-line); border-radius:8px; background:var(--ed-soft); color:var(--ed-muted); font-size:13px; }
.ed-v2 .ed-coursework-balance strong { color:var(--ed-ink); font-weight:600; }
.ed-v2 .ed-coursework-balance .ed-text-link { min-height:36px; font-size:13px; }
.ed-v2 .ed-workflow-note { margin:0 0 28px; padding:16px 20px; border:1px solid var(--ed-line); border-radius:8px; background:white; }
.ed-v2 .ed-workflow-note>summary { min-height:28px; cursor:pointer; color:var(--ed-ink); font-size:14px; font-weight:550; }
.ed-v2 .ed-workflow-note>div { margin-top:20px; }
.ed-v2 .learning-card>.ed-text-link { margin-top:auto; }
.ed-v2 .ed-coursework-select { display:inline-flex; align-items:center; gap:12px; min-height:30px; cursor:pointer; }
.ed-v2 .ed-coursework-select-label { display:none; font:500 12px/1.6 var(--ed-font); color:var(--ed-muted); }
.ed-v2 .ed-page [data-ed-coursework-table] :is(th,td):nth-child(n+2) { text-align:left; }
.ed-v2 .ed-page [data-ed-coursework-table] .btn-block { width:auto; min-width:126px; }
@media(max-width:640px) {
  .ed-v2 .ed-page table[data-ed-coursework-table],
  .ed-v2 .ed-page [data-ed-coursework-table] :is(thead,tbody) { display:block; width:100%; min-width:0; }
  .ed-v2 .ed-page [data-ed-coursework-table] thead tr { display:block; background:var(--ed-tint); }
  .ed-v2 .ed-page [data-ed-coursework-table] thead th:first-child { display:block; width:100%!important; border:0; padding:6px 16px; }
  .ed-v2 .ed-coursework-select { display:flex; min-height:40px; }
  .ed-v2 .ed-coursework-select-label { display:inline; }
  .ed-v2 .ed-page [data-ed-coursework-table] thead th:not(:first-child) { position:absolute; width:1px!important; height:1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
  .ed-v2 .ed-page [data-ed-coursework-table] tbody tr { display:grid; grid-template-columns:24px minmax(0,1fr); gap:10px 12px; padding:18px 16px; border-top:1px solid var(--ed-line); background:var(--ed-panel-surface); }
  .ed-v2 .ed-page [data-ed-coursework-table] tbody tr:nth-child(even) { background:var(--ed-soft); }
  .ed-v2 .ed-page [data-ed-coursework-table] tbody tr.selected { background:var(--ed-sage); }
  .ed-v2 .ed-page [data-ed-coursework-table] tbody td { display:block; min-width:0; width:auto; padding:0!important; border:0; text-align:left!important; background:transparent!important; }
  .ed-v2 .ed-page [data-ed-coursework-table] tbody td:first-child { grid-column:1; grid-row:1/3; padding-top:4px!important; }
  .ed-v2 .ed-page [data-ed-coursework-table] .row-check { width:24px; height:24px; }
  .ed-v2 .ed-page [data-ed-coursework-table] tbody td:nth-child(2) { grid-column:2; grid-row:1; font-size:14px; line-height:1.75; }
  .ed-v2 .ed-page [data-ed-coursework-table] tbody td:nth-child(3) { grid-column:2; grid-row:2; font-size:13px; line-height:1.7; }
  .ed-v2 .ed-page [data-ed-coursework-table] tbody :is(.btn,.btn-block) { width:auto; max-width:100%; white-space:normal; min-height:44px; }
  .ed-v2 .ed-page [data-ed-coursework-table] tbody td:nth-child(3)>.muted { font-size:12px; }
}

@media(max-width:1150px) {
  .ed-v2 .ed-topbar-inner { gap:22px; }
  .ed-v2 .ed-utility-nav { gap:14px; }
  .ed-v2 .ed-account-name { max-width:100px; }
  .ed-v2 .ed-home-hero-inner { gap:38px; }
}
@media(max-width:960px) {
  .ed-v2 .ed-primary-nav { gap:0; }
  .ed-v2 .ed-primary-menu>summary { padding-inline:9px; font-size:13px; }
  .ed-v2 .ed-topbar-inner { gap:18px; }
  .ed-v2 .ed-utility-nav { gap:12px; }
  .ed-v2 .ed-account-name,.ed-v2 .ed-account-menu .ed-chevron { display:none; }
  .ed-v2 .ed-account-menu>summary { padding:7px; min-width:44px; }
  .ed-v2 .ed-demo { padding:22px; }
  .ed-v2 .ed-home-hero-inner { gap:32px; }
  .ed-v2 .ed-path-card { padding:24px 22px 20px; }
  .ed-v2 .ed-path-grid,.ed-v2 .ed-guide-grid { gap:16px; }
  .ed-v2 .ed-guide-card { padding:22px; }
  .ed-v2 .ed-dashboard-grid { grid-template-columns:minmax(0,1fr); }
  .ed-v2 .ed-dashboard-side { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
}
@media(max-width:760px) {
  .ed-v2 .ed-topbar-inner { position:relative; flex-wrap:wrap; width:calc(100% - 32px); min-height:72px; padding:12px 0; gap:12px; }
  .ed-v2 .ed-brand { font-size:20px; gap:8px; }
  .ed-v2 .ed-brand img { width:34px; height:34px; }
  .ed-v2 .ed-primary-nav { display:none; }
  .ed-v2 .ed-mobile-menu { display:block; margin-left:auto; }
  .ed-v2 .ed-mobile-menu>summary { gap:8px; padding:10px; font-size:12px; border:1px solid var(--ed-line); }
  .ed-v2 .ed-topbar .ed-menu { position:static; }
  .ed-v2 .ed-topbar .ed-menu>.ed-dropdown { top:calc(100% + 6px); right:0; left:auto; }
  .ed-v2 .ed-topbar .ed-mobile-menu>.ed-dropdown { width:min(420px,calc(100vw - 32px)); max-height:75vh; max-height:75dvh; }
  .ed-v2 .ed-utility-nav { width:auto; border:0; padding:0; margin:0; gap:10px; }
  .ed-v2 .ed-utility-nav .ed-auth-button { display:none; }
  .ed-v2 .ed-consent-actions .js-save { grid-column:1/-1; }
  .ed-v2 .ed-utility-nav .ed-auth-link { font-size:12px; padding:10px 0; }
  .ed-v2 .ed-balance-unit { display:none; }
  .ed-v2 .ed-utility-nav .ed-balance { padding:7px; font-size:12px; min-height:44px; }
  .ed-v2 .ed-utility-nav .ed-balance svg { width:15px; height:15px; }
  .ed-v2 .ed-topbar .ed-account-menu>summary { padding:7px; }
  .ed-v2 .ed-home-hero-inner { grid-template-columns:minmax(0,1fr); gap:32px; }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-hero { padding:38px 0 28px; }
  .ed-v2 .ed-home-hero-copy { padding:0; }
  .ed-v2 .ed-page h1.ed-home-title { font-size:clamp(3.3rem,8.7vw,4.4rem); max-width:14ch; }
  .ed-v2 .ed-home-hero .ed-kicker { margin-bottom:18px; }
  .ed-v2 .ed-page .ed-home-intro { max-width:49ch; font-size:16px; }
  .ed-v2 .ed-demo { width:100%; max-width:500px; margin-inline:auto; }
  .ed-v2 .ed-home-subline { margin-top:28px; padding-top:24px; gap:8px 16px; font-size:11px; }
  .ed-v2 .ed-home-subline span+span::before { margin-right:16px; }
  .ed-v2 .ed-path-grid,.ed-v2 .ed-guide-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .ed-v2 .ed-path-card { padding:26px; }
  .ed-v2 .ed-path-card>.ed-icon { margin-bottom:20px; }
  .ed-v2 .ed-path-card>p { max-width:55ch; }
  .ed-v2 .ed-page .ed-section-heading { align-items:flex-start; flex-direction:column; gap:10px; margin-bottom:18px; }
  .ed-v2 .ed-section-heading .ed-text-link { min-height:38px; }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-tools,.ed-v2 .ed-page.ed-home-main>section.ed-home-author { padding:44px 0; }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-guides { padding:44px 0; }
  .ed-v2 .ed-teacher-strip { align-items:flex-start; flex-direction:column; padding:22px 24px; gap:10px; }
  .ed-v2 .ed-guide-card { padding:24px; }
  .ed-v2 .ed-guide-art { height:145px; }
  .ed-v2 .ed-author-inner { grid-template-columns:120px minmax(0,1fr); gap:28px; align-items:start; }
  .ed-v2 .ed-author-photo { width:120px; height:154px; }
  .ed-v2 .ed-author-copy .ed-kicker { margin-bottom:12px; }
  .ed-v2 .ed-page .ed-author-copy h2 { font-size:24px; }
  .ed-v2 .ed-author-copy>p:not(.ed-kicker) { font-size:14px; }
  .ed-v2 .ed-footer-public { padding-block:32px 20px; }
  .ed-v2 .ed-context-nav { gap:16px; min-height:52px; }
  .ed-v2 .ed-context-nav a { min-height:52px; padding-inline:0; font-size:12px; }
  .ed-v2 .ed-page.public-tool-main>.public-tool-hero { padding:32px 0; }
  .ed-v2 .ed-page .public-tool-title.ed-page-title { font-size:clamp(1.875rem,6vw,2.25rem); }
  .ed-v2 .public-tool-preview,.ed-v2 .ed-page .public-tool-overview>.public-tool-access { padding:24px; }
  .ed-v2 .ed-page .learning-heading .ed-page-title { font-size:clamp(1.75rem,6vw,2.25rem); }
  .ed-v2 .ed-page .learning-heading .learning-intro { font-size:16px; }
}
@media(max-width:480px) {
  .ed-v2 .ed-utility-nav .ed-balance { display:none; }
  .ed-v2 .ed-home-actions { gap:8px 18px; }
  .ed-v2 .ed-page h1.ed-home-title { font-size:2.25rem; }
  .ed-v2 .ed-home-subline { align-items:flex-start; flex-direction:column; gap:5px; }
  .ed-v2 .ed-home-subline span+span::before { content:none; }
  .ed-v2 .ed-demo { padding:20px 18px 18px; }
  .ed-v2 .ed-demo-label { font-size:9px; }
  .ed-v2 .ed-demo-controls { gap:8px; }
  .ed-v2 .ed-demo-controls>span { max-width:90px; }
  .ed-v2 .ed-author-inner { grid-template-columns:minmax(0,1fr); gap:24px; }
  .ed-v2 .ed-author-photo { width:112px; height:134px; }
  .ed-v2 .ed-dashboard-entries,.ed-v2 .ed-dashboard-side { grid-template-columns:minmax(0,1fr); }
  .ed-v2 .ed-dashboard-entry { padding:20px; }
  .ed-v2 .ed-activity-panel { padding:22px 20px; }
  .ed-v2 .ed-activity-list>li { grid-template-columns:6px minmax(0,1fr); gap:10px; }
  .ed-v2 .ed-activity-list a { grid-column:2; padding:0; min-height:32px; display:inline-flex; align-items:center; justify-self:start; }
  .ed-v2 .ed-dashboard-grid { gap:24px; }
  .ed-v2 .ed-dashboard-main,.ed-v2 .ed-dashboard-side { gap:24px; }
  .ed-v2 .learning-contents { padding:22px; }
  .ed-v2 .learning-body h2 { font-size:22px; margin-top:34px; }
  .ed-v2 .ed-page .ed-workspace-welcome h1 { font-size:2rem; }
  .ed-v2 .ed-page.ed-home-main>section.ed-workspace-welcome { padding:32px 0 26px; }
  .ed-v2 .ed-page[data-ed-layout=form] :is(.card-header,.card-body) { padding:22px; }
}
@media(max-width:359px) {
  .ed-v2 .ed-mobile-menu-label { display:none; }
  .ed-v2 .ed-mobile-menu>summary { min-width:44px; justify-content:center; }
  .ed-v2 .ed-brand { font-size:18px; }
  .ed-v2 .ed-brand img { width:30px; height:30px; }
  .ed-v2 .ed-page h1.ed-home-title { font-size:2rem; }
  .ed-v2 .ed-demo-controls { flex-wrap:wrap; }
  .ed-v2 .ed-demo-controls>span { max-width:none; }
}
@media(prefers-reduced-motion:reduce) {
  .ed-v2 .ed-arrow,.ed-v2 .ed-chevron,.ed-v2 .ed-demo .ed-after { transition:none; }
}
@media(forced-colors:active) {
  .ed-v2 .ed-context-nav a[aria-current=page] { border-bottom-color:Highlight; }
  .ed-v2 .ed-demo svg :is(path,line,circle) { stroke:CanvasText; }
  .ed-v2 .ed-demo svg text { fill:CanvasText; }
}
@media print {
  .ed-v2 .ed-demo-controls,.ed-v2 .ed-home-actions,.ed-v2 .skip-link { display:none!important; }
  .ed-v2 .ed-page .learning-shell { width:100%!important; max-width:none!important; padding:0!important; }
  .ed-v2 .ed-reading-article { display:block!important; max-width:none; }
  .ed-v2 .ed-page .learning-heading .ed-page-title { font-size:26pt; max-width:none; }
  .ed-v2 .ed-page .learning-heading .learning-intro { font-size:11pt; line-height:1.65; }
  .ed-v2 .learning-heading { margin-bottom:18px; }
  .ed-v2 .learning-heading .learning-meta { margin-top:12px; font-size:9pt; }
  .ed-v2 .learning-body { max-width:none; font-size:10.5pt; line-height:1.65; }
  .ed-v2 .learning-body h2 { font-size:14pt; margin:22px 0 12px; }
  .ed-v2 .learning-body p { margin-bottom:12px; }
  .ed-v2 .learning-contents { padding:12px 18px; margin:18px 0 24px; }
  .ed-v2 .learning-contents a { min-height:0; padding:2px 0; font-size:9pt; line-height:1.5; }
  .ed-v2 .learning-contents>summary { min-height:0; font-size:10pt; }
  .ed-v2 .learning-body figure>svg { max-height:72mm; }
  .ed-v2 .learning-body figcaption { font-size:8.5pt; }
  .ed-v2 .ed-reading-article+.learning-next { max-width:none; margin:24px 0 0; padding-top:16px; }
  .ed-v2 .learning-contents { position:static; break-inside:avoid; }
  .ed-v2 .learning-body :is(h2,h3) { break-after:avoid; }
  .ed-v2 .learning-body :is(figure,blockquote,.learning-callout) { break-inside:avoid; }
  .ed-v2 .learning-body :is(p,li) { orphans:3; widows:3; }
  .ed-v2 .ed-home-hero-inner { grid-template-columns:1fr 1fr; gap:24px; }
  .ed-v2 .ed-demo.is-enhanced:not(.is-shifted) .ed-after { opacity:1; }
  .ed-v2 .ed-path-card,.ed-v2 .ed-guide-card { break-inside:avoid; }
}

/* Wayfinding: current section, visible local choices, and compact discovery. */
.ed-v2 .ed-primary-menu.is-current>summary { color:var(--ed-green); background:var(--ed-sage); }
.ed-v2 .ed-dropdown a[aria-current=page] { color:var(--ed-green); background:var(--ed-sage); box-shadow:inset 3px 0 var(--ed-green); }
.ed-v2 .ed-context-nav { flex-wrap:wrap; overflow:visible; gap:0 24px; }
.ed-v2 .ed-context-nav a { white-space:normal; }
.ed-v2 .ed-home-hero-details { min-width:0; }
.ed-v2 .ed-page h1.ed-home-title { line-height:1.16; letter-spacing:-.045em; margin:0; }
.ed-v2 .ed-home-title span { color:var(--ed-green); }
.ed-v2 .ed-page .ed-home-hero .ed-kicker { margin-bottom:16px; }
.ed-v2 .ed-home-hero .ed-home-note { margin-top:18px; }
.ed-v2 .ed-page.ed-home-main>section.ed-home-example { padding:48px 0; border-bottom:1px solid var(--ed-line); background:var(--ed-tint); }
.ed-v2 .ed-home-example-inner { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:64px; }
.ed-v2 .ed-example-copy h2 { max-width:20ch; font-size:28px; line-height:1.3; letter-spacing:-.03em; margin:0 0 18px; }
.ed-v2 .ed-example-copy p:not(.ed-kicker) { max-width:45ch; font-size:16px; line-height:1.75; }
.ed-v2 .ed-section-jumps { display:flex; align-items:center; flex-wrap:wrap; gap:8px 20px; margin:20px 0; font-size:14px; }
.ed-v2 .ed-section-jumps>span { color:var(--ed-muted); }
.ed-v2 .ed-section-jumps a { display:inline-flex; align-items:center; min-height:44px; text-underline-offset:4px; color:var(--ed-green); }
.ed-v2 .ed-section-target { scroll-margin-top:24px; }
.ed-v2 .ed-section-target:focus { outline:2px solid var(--ed-focus); outline-offset:5px; }
.ed-v2 .ed-page .ed-coursework-intro { max-width:65ch; color:var(--ed-text); line-height:1.75; }
.ed-v2 .ed-page .ed-path-card h3 { font-weight:600; letter-spacing:-.025em; }
.ed-v2 .ed-page .ed-path-card>p { line-height:1.7; margin-bottom:20px; }
.ed-v2 .ed-page .ed-home-guides .ed-section-heading { margin-bottom:24px; }
.ed-v2 .ed-guide-art { height:96px; margin-bottom:18px; padding-bottom:16px; }
.ed-v2 .ed-page .ed-section-heading h2 { font-weight:650; }
.ed-v2 .ed-page .ed-workspace-welcome h1 { line-height:1.25; }
.ed-v2 .ed-page .ed-home-intro { max-width:49ch; }
@media(max-width:760px) {
  .ed-v2 .ed-home-hero-inner,.ed-v2 .ed-home-example-inner { grid-template-columns:minmax(0,1fr); gap:20px; }
  .ed-v2 .ed-home-hero-copy { padding:0; }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-hero { padding:32px 0; }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-tools { padding:32px 0; }
  .ed-v2 .ed-context-nav { gap:0 20px; padding-block:4px; }
  .ed-v2 .ed-context-nav a { min-height:44px; font-size:13px; padding-block:10px; }
  .ed-v2 .ed-example-copy h2 { max-width:none; font-size:24px; }
}
@media(forced-colors:active) {
  .ed-v2 .ed-primary-menu.is-current>summary,.ed-v2 .ed-dropdown a[aria-current=page] { outline:1px solid Highlight; }
}
@media print { .ed-v2 .ed-section-jumps { display:none; } }

.ed-v2 .ed-tool-jumps { display:none; }
.ed-v2 .ed-demo { box-shadow:none; }
.ed-v2 .ed-guide-card>span { font-size:11px; letter-spacing:.07em; }
.ed-v2 .ed-path-card { padding:26px 28px 24px; }
@media(max-width:760px) {
  .ed-v2 .ed-tool-jumps { display:flex; margin:-12px 0 20px; gap:8px; }
  .ed-v2 .ed-tool-jumps a { padding:8px 14px; border:1px solid var(--ed-line-strong); border-radius:6px; background:var(--ed-card); text-decoration:none; }
  .ed-v2 .ed-tool-jumps a:hover { background:var(--ed-sage); }
  .ed-v2 .ed-path-card { display:grid; grid-template-columns:40px minmax(0,1fr); column-gap:14px; align-items:center; padding:22px; }
  .ed-v2 .ed-path-card>.ed-icon { grid-column:1; grid-row:1; width:40px; height:40px; margin:0; }
  .ed-v2 .ed-page .ed-path-card h3 { grid-column:2; grid-row:1; margin:0; font-size:20px; }
  .ed-v2 .ed-page .ed-path-card>p { grid-column:1/-1; margin:16px 0; }
  .ed-v2 .ed-path-card>.ed-path-links { grid-column:1/-1; }
}

/* Quiet editorial surfaces: shared materials, precise hierarchy, restrained accents. */
.ed-v2 .ed-page h1.ed-home-title { font-weight:500; letter-spacing:-.045em; }
.ed-v2 .ed-home-title span { font-weight:500; }
.ed-v2 .ed-page .ed-section-heading h2,
.ed-v2 .ed-page .ed-author-copy h2,
.ed-v2 .ed-page .ed-example-copy h2 { font-weight:500; letter-spacing:-.035em; }
.ed-v2 .ed-page .ed-path-card h3 { font-weight:550; font-size:22px; letter-spacing:-.035em; }
.ed-v2 .ed-page .ed-path-card { background:var(--ed-panel-surface); border:1px solid var(--ed-line); border-radius:4px; }
.ed-v2 .ed-page .ed-path-card>.ed-icon { background:transparent; color:var(--ed-green); border-radius:0; width:32px; height:32px; }
.ed-v2 .ed-page .ed-path-card h3 { color:var(--ed-ink); }
.ed-v2 .ed-page .ed-path-card a { color:var(--ed-ink); font-weight:500; }
.ed-v2 .ed-page .ed-path-card a:hover { color:var(--ed-green); }
.ed-v2 .ed-path-card .ed-path-links li { border-color:var(--ed-line); }
.ed-v2 .ed-teacher-strip { background:transparent; border:0; border-block:1px solid var(--ed-sage-line); border-radius:0; padding-inline:0; }
.ed-v2 .ed-guide-art { background:var(--ed-tint); border:0; border-radius:2px; padding:16px; height:112px; color:var(--ed-green); }
.ed-v2 .ed-guide-card:nth-child(2) .ed-guide-art { background:var(--ed-tint); color:var(--ed-green); }
.ed-v2 .ed-guide-card:nth-child(3) .ed-guide-art { background:var(--ed-tint); color:var(--ed-green); }
.ed-v2 .ed-guide-card>span,.ed-v2 .ed-guide-card:nth-child(3)>span { color:var(--ed-muted); }
.ed-v2 .ed-demo,.ed-v2 .ed-guide-card,.ed-v2 .ed-author-photo { border-radius:4px; }
.ed-v2 .ed-demo-controls button { border-radius:4px; }
.ed-v2 .ed-demo-controls button:hover { background:var(--ed-hover-surface); }
@media screen {
  .ed-v2 .ed-topbar { background:var(--ed-header-surface); border-bottom-color:var(--ed-line); }
  .ed-v2 .ed-preview-bar { background:var(--ed-soft); }
  .ed-v2 .ed-context-bar { background:var(--ed-soft); }
  .ed-v2 .ed-dropdown { background:var(--ed-panel-surface); border-color:var(--ed-line-strong); }
  .ed-v2 .ed-dropdown a,.ed-v2 .ed-dropdown form button { background:transparent; }
  .ed-v2 .ed-dropdown a:hover,.ed-v2 .ed-dropdown form button:hover { background:var(--ed-sage); }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-hero,
  .ed-v2 .ed-page.ed-home-main>section.ed-workspace-welcome { background:var(--ed-paper); border-bottom:1px solid var(--ed-sage-line); }
  .ed-v2 .ed-page .ed-home-hero h1,.ed-v2 .ed-page .ed-workspace-welcome h1 { color:var(--ed-ink); }
  .ed-v2 .ed-page .ed-home-hero h1 span { color:var(--ed-blue); }
  .ed-v2 .ed-page .ed-home-hero :is(.ed-kicker,.ed-home-note),
  .ed-v2 .ed-page .ed-workspace-welcome p { color:var(--ed-muted); }
  .ed-v2 .ed-page .ed-home-hero .ed-home-intro { color:var(--ed-text); }
  .ed-v2 .ed-page .ed-home-hero .ed-text-link { color:var(--ed-blue); }
  .ed-v2 .ed-page .ed-home-actions .btn { background:var(--ed-green); border-color:var(--ed-green); color:#ffffff; border-radius:4px; }
  .ed-v2 .ed-page .ed-home-actions .btn:hover { background:var(--ed-green-hover); border-color:var(--ed-green-hover); color:#ffffff; }
  .ed-v2 :is(.ed-home-hero,.ed-workspace-welcome) a:focus-visible { outline-color:var(--ed-green); }
  .ed-v2 .ed-example-copy a:focus-visible { outline-color:var(--ed-focus); }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-tools { background:var(--ed-bg); }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-guides { background:var(--ed-sand-surface); border-block:1px solid var(--ed-line); }
  .ed-v2 .ed-page .ed-home-guides .ed-section-heading :is(p,.ed-text-link) { color:var(--ed-muted); }
  .ed-v2 .ed-guide-card { background:var(--ed-panel-surface); border:0; border-bottom:1px solid var(--ed-line-strong); }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-example { background:var(--ed-mint-surface); border-block:1px solid var(--ed-line); }
  .ed-v2 .ed-page .ed-example-copy :is(h2,p,.ed-text-link) { color:var(--ed-ink); }
  .ed-v2 .ed-demo { background:var(--ed-panel-surface); border-color:var(--ed-line); }
  .ed-v2 .ed-page.ed-home-main>section.ed-home-author { background:var(--ed-bg); }
  .ed-v2 .ed-page.public-tool-main>.public-tool-hero { background:var(--ed-paper); border-bottom-color:var(--ed-sage-line); }
  .ed-v2 .ed-page :is(.card,.ed-panel,.account-card,.auth-card,.settings-card,.stat-card,.activity-card,.learning-card,.rwe-card,.contact-modern-card):not(.ed-panel--brand) { background:var(--ed-panel-surface); }
  .ed-v2 .public-tool-preview,.ed-v2 .ed-workflow-note,.ed-v2 .ed-dashboard-links,.ed-v2 .ed-activity-panel { background:var(--ed-panel-surface); }
  .ed-v2 .ed-dashboard-entry { background:var(--ed-panel-surface); border-color:var(--ed-line); border-radius:4px; }
  .ed-v2 .ed-dashboard-entry .ed-icon { background:transparent; color:var(--ed-green); }
  .ed-v2 .ed-dashboard-entry:hover { outline:1px solid var(--ed-ink); outline-offset:0; }
  .ed-v2 .ed-admin-sidebar,.ed-v2 .ed-admin-mobile { background:var(--ed-selected-surface); }
  .ed-v2 .ed-footer-public { background:var(--ed-footer-surface); border-color:var(--ed-footer-surface); color:var(--ed-footer-text); }
  .ed-v2 .ed-footer-public :is(.ed-footer-brand a,.ed-footer-services h2) { color:var(--ed-footer-text); }
  .ed-v2 .ed-footer-public :is(.ed-footer-meta a,.ed-footer-services a,.ed-footer-copy) { color:var(--ed-footer-text); }
  .ed-v2 .ed-footer-public .ed-footer-meta { border-color:var(--ed-line-strong); }
  .ed-v2 .ed-footer-public :is(.ed-footer-meta a,.ed-footer-services a,.ed-footer-brand a):hover { color:var(--ed-footer-hover); }
  .ed-v2 .ed-footer-public a:focus-visible { outline-color:var(--ed-footer-hover); }
}
@media(max-width:760px) {
  .ed-v2 .ed-path-card { grid-template-columns:32px minmax(0,1fr); column-gap:12px; }
  .ed-v2 .ed-page .ed-path-card h3 { font-size:21px; }
  .ed-v2 .ed-tool-jumps { gap:6px 18px; }
  .ed-v2 .ed-tool-jumps a { padding:8px 0; border:0; border-radius:0; background:transparent; text-decoration:underline; text-underline-offset:5px; }
}
@media screen and (forced-colors:active) {
  .ed-v2 .ed-page.ed-home-main>section.ed-home-hero,.ed-v2 .ed-page.ed-home-main>section.ed-workspace-welcome { background:Canvas; }
}

/* Align link groups with their headings, regardless of the number of links. */
.ed-v2 .ed-path-card { display:grid; grid-template-columns:32px minmax(0,1fr); align-content:start; align-items:center; gap:20px 14px; }
.ed-v2 .ed-path-card .ed-icon { grid-column:1; margin:0; }
.ed-v2 .ed-path-card h3 { grid-column:2; margin:0; }
.ed-v2 .ed-path-card .ed-path-links { grid-column:1/-1; margin:0; }

/* Direct destinations stay visible; course tools share one native dropdown. */
.ed-v2 .ed-primary-nav { flex-wrap:wrap; max-width:100%; gap:4px; }
.ed-v2 .ed-primary-link { display:inline-flex; align-items:center; gap:5px; min-height:44px; padding:10px; border:1px solid transparent; border-radius:var(--ed-control-radius); color:var(--ed-ink); font:500 14px/1.4 var(--ed-font); text-decoration:none; }
.ed-v2 .ed-primary-link:hover { background:var(--ed-soft); color:var(--ed-green); }
.ed-v2 .ed-primary-link[aria-current=page] { background:var(--ed-sage); color:var(--ed-green); }
.ed-v2 .ed-external-mark { color:var(--ed-muted); font-size:12px; }
@media(min-width:1200px) { .ed-v2 .ed-topbar-inner { gap:24px; } }
@media(min-width:761px) and (max-width:1199px) {
  .ed-v2 .ed-topbar-inner { gap:8px 22px; }
  .ed-v2 .ed-primary-nav { order:3; flex-basis:100%; justify-content:center; }
  .ed-v2 .ed-utility-help { display:inline-flex!important; }
}
@media(forced-colors:active) { .ed-v2 .ed-primary-link[aria-current=page] { outline:1px solid Highlight; } }

/* Selected videos share the Resources page; no embedded player or remote thumbnail. */
.ed-v2 .ed-video-section { margin-top:40px; padding-top:32px; border-top:1px solid var(--ed-line); scroll-margin-top:24px; }
.ed-v2 .ed-video-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 20px; margin-bottom:20px; }
.ed-v2 .ed-video-heading h2 { margin:0; }
.ed-v2 .ed-video-heading p { margin:0; color:var(--ed-muted); font-size:14px; }
.ed-v2 .ed-video-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.ed-v2 .ed-video-group { min-width:0; }
.ed-v2 .ed-video-group h3 { margin:0 0 12px; font-size:17px; font-weight:600; color:var(--ed-ink); }
.ed-v2 .ed-video-list { list-style:none; margin:0; padding:0; }
.ed-v2 .ed-video-list li { margin:0; padding:0; border-top:1px solid var(--ed-line); }
.ed-v2 .ed-video-link { display:block; min-height:44px; padding:16px 0; text-decoration:none; color:var(--ed-ink); }
.ed-v2 .ed-video-link:hover { color:var(--ed-green); }
.ed-v2 .ed-video-link:hover .ed-video-title { text-decoration:underline; text-underline-offset:4px; }
.ed-v2 .ed-video-title { display:flex; justify-content:space-between; gap:12px; font-size:15px; font-weight:600; line-height:1.5; }
.ed-v2 .ed-video-topic,.ed-v2 .ed-video-meta { display:block; margin-top:6px; font-size:14px; line-height:1.6; color:var(--ed-text); }
.ed-v2 .ed-video-meta { color:var(--ed-muted); font-size:12px; }
@media(max-width:760px) { .ed-v2 .ed-video-groups { grid-template-columns:minmax(0,1fr); gap:24px; } }

/* Browsable libraries: native GET filters and text-first navigation. */
.ed-v2 .ed-library-intro { color:var(--ed-muted); margin:12px 0 0; max-width:64ch; }
.ed-v2 .ed-library-search { display:flex; align-items:end; flex-wrap:wrap; gap:16px; padding:20px; background:var(--ed-tint); border:1px solid var(--ed-line); border-radius:var(--ed-radius); }
.ed-v2 .ed-library-search label { display:flex; flex-direction:column; gap:7px; min-width:0; font-size:14px; font-weight:600; }
.ed-v2 .ed-library-query { flex:1 1 250px; }
.ed-v2 .ed-library-filter { flex:1 1 240px; }
.ed-v2 .ed-library-search input,.ed-v2 .ed-library-search select { width:100%; min-width:0; height:44px; padding:9px 12px; background:var(--ed-input-surface); color:var(--ed-ink); border:1px solid var(--ed-line-strong); border-radius:var(--ed-control-radius); font:inherit; font-weight:400; }
.ed-v2 .ed-library-result-head { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:12px; margin:20px 0; font-size:14px; }
.ed-v2 .ed-library-result-head p { margin:0; }
.ed-v2 .ed-library-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:40px; align-items:start; }
.ed-v2 .ed-library-index { position:sticky; top:24px; display:grid; border-top:1px solid var(--ed-line-strong); }
.ed-v2 .ed-library-index a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; min-height:48px; border-bottom:1px solid var(--ed-line); text-decoration:none; font-size:14px; font-weight:500; line-height:1.45; color:var(--ed-ink); }
.ed-v2 .ed-library-index a:hover { color:var(--ed-green); text-decoration:underline; text-underline-offset:4px; }
.ed-v2 .ed-library-count { font-variant-numeric:tabular-nums; color:var(--ed-muted); font-size:12px; font-weight:400; }
.ed-v2 .ed-video-category { margin:0 0 40px; }
.ed-v2 .ed-video-category h2 { scroll-margin-top:24px; margin:0 0 24px; padding:14px 20px; font-size:21px; background:var(--ed-sage); border-left:3px solid var(--ed-green); border-radius:0 var(--ed-radius-sm) var(--ed-radius-sm) 0; }
.ed-v2 .ed-video-topic-list { margin:0 0 26px; }
.ed-v2 .ed-video-topic-list h3 { font-size:15px; font-weight:600; line-height:1.5; margin:0 0 8px; color:var(--ed-muted); }
.ed-v2 .ed-video-rows { list-style:none; margin:0; padding:0; border-top:1px solid var(--ed-line); }
.ed-v2 .ed-video-rows li { padding:0; margin:0; border-bottom:1px solid var(--ed-line); }
.ed-v2 .ed-video-row { display:flex; align-items:center; gap:16px; padding:17px 12px; color:var(--ed-ink); text-decoration:none; border-radius:var(--ed-radius-sm); }
.ed-v2 .ed-video-row:hover { background:var(--ed-hover-surface); color:var(--ed-green); }
.ed-v2 .ed-video-row:hover .ed-video-row-title { text-decoration:underline; text-underline-offset:4px; }
.ed-v2 .ed-video-play { flex:none; display:grid; place-items:center; width:38px; height:38px; background:var(--ed-tint); color:var(--ed-blue); border:1px solid var(--ed-line); border-radius:50%; }
.ed-v2 .ed-video-row-copy { min-width:0; flex:1; }
.ed-v2 .ed-video-row-title { display:block; font-size:15px; font-weight:500; line-height:1.55; overflow-wrap:anywhere; }
.ed-v2 .ed-video-row-meta { display:block; margin-top:5px; font-size:12px; color:var(--ed-muted); font-variant-numeric:tabular-nums; }
.ed-v2 .ed-video-row-meta span { margin:0 5px; }
.ed-v2 .ed-video-arrow { flex:none; color:var(--ed-green); }
.ed-v2 .ed-library-empty { padding:28px; }
@media(max-width:800px) { .ed-v2 .ed-library-layout { grid-template-columns:minmax(0,1fr); gap:28px; } .ed-v2 .ed-library-index { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:20px; } }
@media(max-width:480px) { .ed-v2 .ed-library-search { padding:16px; gap:12px; } .ed-v2 .ed-library-search button { width:100%; } .ed-v2 .ed-library-index { grid-template-columns:minmax(0,1fr); } .ed-v2 .ed-video-row { padding:16px 4px; gap:12px; } .ed-v2 .ed-video-play { width:30px; height:30px; } .ed-v2 .ed-video-category h2 { font-size:19px; } }
@media print { .ed-v2 .ed-library-search,.ed-v2 .ed-library-index { display:none; } .ed-v2 .ed-library-layout { display:block; } .ed-v2 .ed-video-row { break-inside:avoid; } }

/* Diagram reference library, sharing the site's palette and type scale. */
.ed-v2 .ed-library-collections { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.ed-v2 .ed-library-collections a { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 16px; border:1px solid var(--ed-line-strong); border-radius:var(--ed-control-radius); color:var(--ed-text); font-weight:500; text-decoration:none; }
.ed-v2 .ed-library-collections a span { font-size:12px; font-variant-numeric:tabular-nums; }
.ed-v2 .ed-library-collections a[aria-current] { background:var(--ed-green); color:white; border-color:var(--ed-green); }
.ed-v2 .ed-library-collections a:hover { text-decoration:underline; text-underline-offset:4px; }
.ed-v2 .ed-diagram-syllabus { margin-top:28px; border:1px solid var(--ed-line); border-radius:var(--ed-radius); overflow:hidden; }
.ed-v2 .ed-diagram-table { width:100%; border-collapse:collapse; font-size:15px; background:var(--ed-panel-surface); }
.ed-v2 .ed-diagram-table td,.ed-v2 .ed-diagram-table th { padding:14px 20px; border-bottom:1px solid var(--ed-line); text-align:left; }
.ed-v2 .ed-diagram-table thead th { background:var(--ed-navy); color:var(--ed-on-navy); font-size:13px; font-weight:500; }
.ed-v2 .ed-diagram-table td:last-child,.ed-v2 .ed-diagram-table thead th:last-child { width:140px; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.ed-v2 .ed-diagram-table .ed-diagram-unit th { background:var(--ed-paper); color:var(--ed-ink); font-weight:600; padding:16px 20px; border-bottom-color:var(--ed-line); }
.ed-v2 .ed-diagram-table tr.is-tinted td { background:var(--ed-row-surface); }
.ed-v2 .ed-diagram-table td a { display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--ed-blue); text-decoration:none; min-height:28px; }
.ed-v2 .ed-diagram-table td a strong { font-weight:500; }
.ed-v2 .ed-diagram-table td a:hover strong { text-decoration:underline; text-underline-offset:4px; }
.ed-v2 .ed-diagram-no-chapter,.ed-v2 .ed-diagram-zero { color:var(--ed-muted); }
.ed-v2 .ed-diagram-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.ed-v2 .ed-diagram-card { min-width:0; background:var(--ed-panel-surface); border:1px solid var(--ed-line); border-radius:var(--ed-radius); overflow:hidden; }
.ed-v2 .ed-diagram-card > a { display:block; height:100%; color:var(--ed-ink); text-decoration:none; }
.ed-v2 .ed-diagram-card > a:hover { background:var(--ed-hover-surface); }
.ed-v2 .ed-diagram-card img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; background:white; border-bottom:1px solid var(--ed-line); }
.ed-v2 .ed-diagram-card-body { padding:18px; }
.ed-v2 .ed-diagram-card h3 { font-size:16px; line-height:1.45; font-weight:600; margin:0 0 10px; }
.ed-v2 .ed-diagram-card p { margin:12px 0 0; font-size:13px; line-height:1.6; color:var(--ed-muted); }
.ed-v2 .ed-diagram-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:12px; color:var(--ed-muted); }
.ed-v2 .ed-diagram-core { display:inline-block; background:var(--ed-sage); color:var(--ed-green); border:1px solid var(--ed-sage-line); padding:2px 7px; border-radius:3px; font-weight:500; }
.ed-v2 .ed-diagram-back { display:inline-block; margin-bottom:24px; }
.ed-v2 .ed-diagram-chapter { margin:0 0 12px; color:var(--ed-muted); font-size:14px; }
.ed-v2 .ed-diagram-detail-head h1 { margin:0 0 12px; }
.ed-v2 .ed-diagram-viewer { border:1px solid var(--ed-line-strong); background:white; border-radius:var(--ed-radius); overflow:hidden; }
.ed-v2 .ed-diagram-viewer img { display:block; width:100%; height:auto; }
.ed-v2 .ed-diagram-downloads { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin-top:24px; }
.ed-v2 .ed-diagram-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.ed-v2 .ed-diagram-download-note { margin:12px 0 0; font-size:13px; color:var(--ed-muted); }
.ed-v2 .ed-library-pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; margin:32px 0 0; font-size:14px; }
.ed-v2 .ed-diagram-section-title { font-size:21px; margin:24px 0; }
.ed-v2 .ed-diagram-access { max-width:680px; padding:28px; }
.ed-v2 .ed-diagram-access h2 { margin-top:0; font-size:22px; }
@media(max-width:900px) { .ed-v2 .ed-diagram-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .ed-v2 .ed-diagram-grid { grid-template-columns:minmax(0,1fr); gap:20px; } .ed-v2 .ed-diagram-table td,.ed-v2 .ed-diagram-table th { padding:14px 12px; } .ed-v2 .ed-diagram-table td:last-child,.ed-v2 .ed-diagram-table thead th:last-child { width:100px; } .ed-v2 .ed-diagram-table { font-size:14px; } .ed-v2 .ed-diagram-table .ed-diagram-unit th { padding:16px 12px; } }
.ed-v2 .ed-diagram-back,.ed-v2 .ed-diagram-downloads > a,.ed-v2 .ed-library-result-head > a,.ed-v2 .ed-library-empty > a { color:var(--ed-blue); text-underline-offset:3px; }

/* Diagram filters and syllabus hierarchy. */
.ed-v2 .ed-diagram-search { display:grid; grid-template-columns:minmax(180px,1.3fr) minmax(160px,1fr) minmax(180px,1.4fr) auto; gap:14px; }
.ed-v2 .ed-diagram-table tr.is-empty td { background:var(--ed-empty-surface); color:var(--ed-muted); }
.ed-v2 .ed-diagram-table tr.is-empty.is-tinted td { background:var(--ed-empty-alternate); }
.ed-v2 .ed-diagram-table .ed-diagram-no-chapter { color:var(--ed-muted); }
.ed-v2 .ed-diagram-table td:last-child { font-size:13px; color:var(--ed-muted); }
.ed-v2 .ed-diagram-table td:last-child span { font-size:12px; }
@media(max-width:1000px) { .ed-v2 .ed-diagram-search { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .ed-v2 .ed-diagram-search { grid-template-columns:minmax(0,1fr); } }

/* Shared library controls: diagrams, videos and real-world examples. */
.ed-v2 .ed-library-search .ed-library-choices { margin:0; padding:0; border:0; min-width:0; display:flex; flex-wrap:wrap; gap:8px; }
.ed-v2 .ed-library-choices legend { margin-bottom:7px; font-size:14px; font-weight:600; }
.ed-v2 .ed-library-search .ed-library-choices label { display:block; position:relative; cursor:pointer; }
.ed-v2 .ed-library-search .ed-library-choices input { position:absolute; width:1px; height:1px; padding:0; margin:-1px; border:0; overflow:hidden; clip-path:inset(50%); }
.ed-v2 .ed-library-choices label > span { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 16px; border:1px solid var(--ed-line-strong); border-radius:var(--ed-control-radius); background:var(--ed-input-surface); color:var(--ed-text); font-size:14px; font-weight:500; }
.ed-v2 .ed-library-choices input:checked + span { background:var(--ed-green); color:white; border-color:var(--ed-green); }
.ed-v2 .ed-library-choices input:focus-visible + span { outline:3px solid var(--ed-blue); outline-offset:3px; }
.ed-v2 .ed-library-choices small { font-size:12px; font-variant-numeric:tabular-nums; }
.ed-v2 .ed-diagram-collections { grid-column:1/-1; }
.ed-v2 .ed-rwe-search { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.ed-v2 .ed-rwe-search .ed-library-query { grid-column:1/-1; }
.ed-v2 .ed-rwe-search button { justify-self:start; }
.ed-v2 .ed-page .ed-rwe-library .ed-library-search { background:var(--ed-tint); }
.ed-v2 .ed-rwe-library .rwe-list { display:grid; gap:20px; margin-top:24px; }
.ed-v2 .ed-page .ed-rwe-library .rwe-card { width:100%; max-width:none; margin:0; padding:28px; background:var(--ed-panel-surface); border:1px solid var(--ed-line); border-radius:var(--ed-radius); box-shadow:none; }
.ed-v2 .ed-page .ed-rwe-library .rwe-card.is-tinted { background:var(--ed-row-surface); }
.ed-v2 .ed-rwe-library .rwe-card h2 { font-size:21px; line-height:1.45; margin:12px 0 20px; text-transform:none; letter-spacing:normal; }
.ed-v2 .ed-rwe-library .rwe-card h2 a,.ed-v2 .ed-rwe-source { color:var(--ed-blue); text-decoration:none; }
.ed-v2 .ed-rwe-library .rwe-card a:hover { text-decoration:underline; text-underline-offset:4px; }
.ed-v2 .ed-rwe-meta { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; font-size:13px; color:var(--ed-muted); margin:0; }
.ed-v2 .ed-rwe-level { padding:2px 7px; background:var(--ed-badge-surface); color:var(--ed-navy); border:1px solid var(--ed-badge-line); border-radius:3px; white-space:nowrap; font-size:12px; font-weight:500; }
.ed-v2 .ed-rwe-context { display:flex; flex-wrap:wrap; gap:16px 40px; margin:0 0 24px; font-size:16px; line-height:1.6; }
.ed-v2 .ed-rwe-context div { min-width:0; flex:1 1 180px; }
.ed-v2 .ed-rwe-context dt,.ed-v2 .ed-rwe-copy h3 { font-size:16px; font-weight:650; color:var(--ed-ink); margin:0 0 8px; }
.ed-v2 .ed-rwe-context dd { margin:0; font-size:16px; color:var(--ed-text); overflow-wrap:anywhere; }
.ed-v2 .ed-rwe-copy p { max-width:none; margin:0 0 20px; line-height:1.75; }
.ed-v2 .ed-rwe-source { font-size:14px; }
.ed-v2 .ewb-page-size,.ed-v2 .ewb-page-size label { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:14px; }
.ed-v2 .ewb-page-size select { min-height:44px; padding:8px 12px; font:inherit; color:var(--ed-ink); background:var(--ed-input-surface); border:1px solid var(--ed-line-strong); border-radius:var(--ed-control-radius); }
.ed-v2 .ewb-page-links { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; }
.ed-v2 .ewb-page-link { display:inline-flex; align-items:center; justify-content:center; min-width:40px; min-height:44px; padding:8px; color:var(--ed-blue); background:var(--ed-input-surface); border:1px solid var(--ed-line-strong); border-radius:var(--ed-control-radius); text-decoration:none; }
.ed-v2 .ewb-page-link.is-current { background:var(--ed-blue); color:white; border-color:var(--ed-blue); }
.ed-v2 .ewb-pagination .is-disabled { color:var(--ed-muted); background:var(--ed-soft); border-color:var(--ed-line); cursor:default; }
@media(max-width:900px) { .ed-v2 .ed-rwe-search { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .ed-v2 .ed-rwe-search { grid-template-columns:minmax(0,1fr); } .ed-v2 .ed-rwe-search .ed-library-query { grid-column:auto; } .ed-v2 .ed-page .ed-rwe-library .rwe-card { padding:20px; } .ed-v2 .ed-rwe-context { gap:16px; } .ed-v2 .ed-rwe-library .rwe-card h2 { font-size:19px; } .ed-v2 .ewb-pagination { gap:12px; } .ed-v2 .ewb-page-links { order:-1; flex-basis:100%; } }
@media print { .ed-v2 .ed-rwe-search,.ed-v2 .ewb-page-size,.ed-v2 .ewb-pagination { display:none; } .ed-v2 .ed-page .ed-rwe-library .rwe-card { break-inside:avoid; background:white; } }
.ed-v2 .ed-video-player { margin:0 0 28px; padding:20px; background:var(--ed-tint); border:1px solid var(--ed-line); border-radius:var(--ed-radius); scroll-margin-top:24px; }
.ed-v2 .ed-video-player[hidden] { display:none; }
.ed-v2 .ed-video-player-head { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:16px; margin-bottom:16px; }
.ed-v2 .ed-video-player-head h2 { font-size:20px; line-height:1.45; margin:0; flex:1 1 280px; }
.ed-v2 .ed-video-frame { aspect-ratio:16/9; background:var(--ed-navy); }
.ed-v2 .ed-video-frame iframe { display:block; width:100%; height:100%; border:0; }
@media(max-width:560px) { .ed-v2 .ed-video-player { padding:12px; } }

/* One continuous portrait panel, without the old decorative strip behind it. */
.ed-v2 .ed-page .about-modern-card { grid-template-columns:minmax(240px,32%) minmax(0,1fr); gap:0; padding:0; background:var(--ed-panel-surface); box-shadow:none; }
.ed-v2 .ed-page .about-modern-card::before { content:none; display:none; }
.ed-v2 .ed-page .about-modern-sidebar { padding:28px; background:var(--ed-tint); border-right:1px solid var(--ed-line); }
.ed-v2 .ed-page .about-modern-content { padding:28px 32px; }
.ed-v2 .ed-page .about-modern-portrait { background:transparent; box-shadow:none; width:180px; }
.ed-v2 .ed-page .about-modern-meta h2,.ed-v2 .ed-page .about-modern-content strong,.ed-v2 .ed-page .contact-modern-name { color:var(--ed-ink); }
.ed-v2 .ed-page .contact-modern-side { background:var(--ed-tint); border-color:var(--ed-line); border-radius:var(--ed-radius); }
@media(max-width:760px) { .ed-v2 .ed-page .about-modern-card { grid-template-columns:minmax(0,1fr); } .ed-v2 .ed-page .about-modern-sidebar { padding:24px; border-right:0; border-bottom:1px solid var(--ed-line); } .ed-v2 .ed-page .about-modern-content { padding:24px; } }
.ed-v2 .ed-library-search select,.ed-v2 .ewb-page-size select { background-image:url('/assets/chevron-down.svg'); background-repeat:no-repeat; background-position:right 12px center; background-size:12px; padding-right:36px; }
.ed-v2 .ewb-page-size select { min-width:82px; }

.ed-v2 .ed-page .ed-workflow-title { margin:0 0 16px; color:var(--ed-ink); font-size:16px; line-height:1.5; font-weight:600; }
@media(min-width:761px) { .ed-v2 .ed-page [data-ed-coursework-table] { table-layout:fixed; } .ed-v2 .ed-page [data-ed-coursework-table] td { overflow-wrap:anywhere; } }

/* Native controllers rendered in V2 share the same page and heading contracts. */
.ed-v2 .ed-page h1.ed-native-title {
  color:var(--ed-ink) !important;
  font-family:var(--ed-font) !important;
  font-size:var(--ed-title-size) !important;
  font-weight:700;
  line-height:1.25;
  letter-spacing:-.035em;
  text-align:left;
  background:none;
  -webkit-text-fill-color:currentColor;
  margin:0 0 var(--ed-space-5);
  padding:0;
}
.ed-v2 .ed-page h1.ed-native-title::before,
.ed-v2 .ed-page h1.ed-native-title::after { content:none; }
.ed-v2 .ed-page .admin-topbar { background:transparent; box-shadow:none; }
.ed-v2 .ed-page :is(.admin-card,.ews-disclosure,.ewp-panel,.ewm-panel,.mcq-panel,.mcq-stat,.cp-panel) {
  border-color:var(--ed-line);
  border-radius:var(--ed-radius);
  box-shadow:var(--ed-shadow);
}
.ed-v2 .ed-page :is(.mcq-filter,.mcq-filters,.admin-filter,.ew-filter-card,.ewb-chapter-filters,.ewo-filters) {
  background:var(--ed-tint);
  border-color:var(--ed-line);
  border-radius:var(--ed-control-radius);
}
.ed-v2 .ed-page :is(.ewm-panel,.ewp-panel,.cp-panel) { background:var(--ed-card); }
.ed-v2 .ed-page :is(.ew-empty,.mcq-empty,.admin-empty,.cp-empty) {
  border-color:var(--ed-line);
  background:var(--ed-panel-surface);
  color:var(--ed-muted);
  border-radius:var(--ed-radius);
  box-shadow:none;
}
.ed-v2 .ed-page :is(.ew-tabs,.mcq-tabs,.cp-tabs) { border-color:var(--ed-line); }
.ed-v2 .ed-page :is(.ew-tab,.mcq-tab,.cp-tab) { border-radius:var(--ed-control-radius) var(--ed-control-radius) 0 0; }
.ed-v2 .ed-page[data-ed-pattern="auth"] .auth-grid { grid-template-columns:minmax(0,1fr); }
@media(max-width:640px) {
  .ed-v2 .ed-page :is(.admin-filter,.mcq-filter,.mcq-filters) { gap:var(--ed-space-3); }
}

/* Secondary windows share the palette without adding the full site navigation. */
.ed-v2.ed-standalone { background:var(--ed-bg); color:var(--ed-text); font:400 1rem/1.65 var(--ed-font); margin:0; padding:0; }
.ed-v2.ed-standalone .ed-page { width:min(calc(100% - 2 * var(--ed-gutter)),var(--ed-page-form)); margin:var(--ed-space-6) auto; padding:0; }
.ed-v2.ed-modal .ed-page { width:min(calc(100% - 2 * var(--ed-gutter)),var(--ed-page-reading)); }
.ed-v2.ed-standalone .ed-standalone-brand { font-size:1.25rem; font-weight:700; color:var(--ed-ink); }
.ed-v2.ed-standalone :is(.feedback-wordmark,h1,h2) { color:var(--ed-ink); font-family:var(--ed-font); }
.ed-v2.ed-standalone :is(.sub,.meta,.coords,.hint,.note,.foot,.empty) { color:var(--ed-muted); }
.ed-v2.ed-standalone .score { background:var(--ed-tint); border-color:var(--ed-line); border-radius:var(--ed-radius); }
.ed-v2.ed-standalone .score :is(b,.pct) { color:var(--ed-blue); }
.ed-v2.ed-standalone :is(.save,.btn-primary) { background:var(--ed-blue); color:var(--ed-card); border:1px solid var(--ed-blue); border-radius:var(--ed-control-radius); min-height:var(--ed-control-height); }
.ed-v2.ed-standalone .btn-reset { background:var(--ed-card); color:var(--ed-blue); border:1px solid var(--ed-line-strong); }
.ed-v2.ed-standalone .canvas-wrap { background:var(--ed-card); border-color:var(--ed-line-strong); }
.ed-v2.ed-standalone .fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ed-v2.ed-standalone input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { min-height:var(--ed-control-height); border:1px solid var(--ed-line-strong); border-radius:var(--ed-control-radius); color:var(--ed-ink); background:var(--ed-input-surface); font:inherit; }
.ed-v2.ed-standalone :is(.error,.alert-err) { background:var(--ed-danger-bg); color:var(--ed-danger); }
.ed-v2.ed-standalone :is(.success,.alert-ok) { background:var(--ed-success-surface); color:var(--ed-success-ink); }
/* A projection remains dark for readability, using the site's slate palette.
   A/B/C answer colours retain their distinct, pedagogical meanings. */
.ed-v2.ed-projection { background:var(--ed-navy); color:var(--ed-on-navy); }
.ed-v2.ed-projection .mcq-present__bar { background:var(--ed-navy); color:var(--ed-on-navy); border-color:var(--ed-line-strong); }
.ed-v2.ed-projection .mcq-present__bar strong { color:var(--ed-card); }
.ed-v2.ed-projection .mcq-present__stage { background:transparent; color:var(--ed-on-navy); }
/* Loan Lens keeps its own working layout and numerical/semantic colour scales. */
.ed-v2.ed-lens-root { --ink:var(--ed-ink); --muted:var(--ed-muted); --paper:var(--ed-bg); --white:var(--ed-card); --line:var(--ed-line); --soft:var(--ed-tint); background:var(--ed-bg); color:var(--ed-text); }
.ed-v2.ed-lens-root :is(.masthead,.app-header) { background:var(--ed-header-surface); border-color:var(--ed-line); }
.ed-v2.ed-lens-root :is(.card,.current-card,.summary-item,.grid-panel,.country-card,.metric-card,dialog) { border-color:var(--ed-line); border-radius:var(--ed-radius); box-shadow:var(--ed-shadow); }
.ed-v2.ed-lens-root button:not(.secondary):not(.text-button):not(.nav-button):not(.close-dialog) { background:var(--ed-blue); border-color:var(--ed-blue); color:var(--ed-card); border-radius:var(--ed-control-radius); }
.ed-v2.ed-lens-root .secondary { background:var(--ed-card); border-color:var(--ed-line-strong); color:var(--ed-blue); border-radius:var(--ed-control-radius); }
.ed-v2.ed-lens-root :is(a,.text-button) { color:var(--ed-blue); }
.ed-v2.ed-lens-root .nav-button.active { background:var(--ed-selected-surface); color:var(--ed-ink); }
@media(max-width:640px) { .ed-v2.ed-standalone .fields { grid-template-columns:minmax(0,1fr); } }
@media print { .ed-v2.ed-standalone { background:white; } .ed-v2.ed-standalone .ed-preview-bar { display:none; } }

/* About and Contact form one utility group, outside the main menus. */
.ed-v2 .ed-utility-info { display:inline-flex; align-items:center; gap:18px; flex-shrink:0; }
.ed-v2 .ed-utility-info a { display:inline-flex; align-items:center; min-height:44px; color:var(--ed-text); font:500 .875rem/1.4 var(--ed-font); text-decoration:none; }
.ed-v2 .ed-utility-info a:hover { color:var(--ed-green); text-decoration:underline; text-underline-offset:3px; }
.ed-v2 .ed-utility-info .ed-utility-help { display:inline-flex !important; }
@media(max-width:700px) {
  .ed-v2 .ed-utility-nav { width:100%; flex-basis:100%; justify-content:flex-end; }
  .ed-v2 .ed-utility-info { margin-right:auto; gap:16px; }
  .ed-v2 .ed-utility-info a { font-size:.8125rem; }
}
/* The V2 sidebar/mobile administration menu replaces the legacy duplicate tabs. */
.ed-v2.ed-shell-admin .admin-shell .admin-nav { display:none; }

/* Reference libraries: one filter, catalogue and paging system. */
.ed-v2 .ed-reference-search{display:block;background:var(--ed-tint);border:1px solid var(--ed-line);padding:1.5rem;border-radius:var(--ed-radius);margin-bottom:1.5rem}
.ed-v2 .ed-reference-fields{display:grid;grid-template-columns:1.2fr .9fr 1.4fr;gap:1rem;align-items:end}
.ed-v2 .ed-reference-fields label,.ed-v2 .ed-library-extra label{display:flex;flex-direction:column;gap:.45rem;min-width:0;margin:0}
.ed-v2 .ed-reference-search label>span{font-size:.875rem;font-weight:600;color:var(--ed-ink)}
.ed-v2 .ed-reference-search input[type=search],.ed-v2 .ed-reference-search select{width:100%;min-width:0;height:46px;margin:0;background:var(--ed-card);border:1px solid var(--ed-line-strong);color:var(--ed-ink);border-radius:6px;padding:.5rem .7rem;font:inherit}
.ed-v2 .ed-reference-search select:disabled{background:var(--ed-soft);color:var(--ed-muted);opacity:1}
.ed-v2 .ed-reference-options{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 1.5rem;margin-top:1.25rem}
.ed-v2 .ed-library-choices{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.25rem;border:0;padding:0;margin:0;min-width:0}
.ed-v2 .ed-library-choices legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ed-v2 .ed-library-choices label{display:inline-flex;align-items:center;gap:.5rem;margin:0;min-height:44px;cursor:pointer}
.ed-v2 .ed-library-choices input{width:18px;height:18px;margin:0;accent-color:var(--ed-accent)}
.ed-v2 .ed-reference-submit{margin-left:auto}
.ed-v2 .ed-library-extra summary{cursor:pointer;font-size:.875rem;color:var(--ed-ink)}
.ed-v2 .ed-library-extra>div{display:flex;flex-wrap:wrap;gap:1rem;padding-top:.75rem}
.ed-v2 .ed-reference-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;margin:0 0 1rem}
.ed-v2 .ed-reference-toolbar>p{margin:0;font-weight:600}
.ed-v2 .ed-library-view{display:inline-flex;gap:2px;padding:3px;background:var(--ed-soft);border:1px solid var(--ed-line);border-radius:7px}
.ed-v2 .ed-library-view a{display:block;padding:.45rem .8rem;border-radius:4px;color:var(--ed-ink);text-decoration:none;font-size:.875rem;min-height:40px;align-content:center}
.ed-v2 .ed-library-view a[aria-current]{background:var(--ed-card);box-shadow:0 1px 3px #263d3b16;font-weight:600}
.ed-v2 .ed-library-clear{margin-left:auto;font-size:.875rem}
.ed-v2 .ed-reference-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1.75rem}
.ed-v2 .ed-reference-pagination .ed-library-pagination{margin:0}
.ed-v2 .ed-reference-pagination .ewb-page-size label{display:flex;align-items:center;gap:.75rem;margin:0;font-size:.875rem}
.ed-v2 .ed-reference-pagination select{min-height:44px;width:auto;margin:0}
.ed-v2 .ed-rwe-revision-entry{display:flex;align-items:center;flex-wrap:wrap;gap:.85rem 1rem;margin:1.5rem 0 1.75rem}
.ed-v2 .ed-rwe-revision-entry .btn{max-width:100%;white-space:normal;text-align:center}
.ed-v2 .ed-account-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:30rem;max-width:100%;gap:.35rem;padding:.35rem;margin:0 0 2rem;border:1px solid var(--ed-line);border-radius:var(--ed-radius);background:var(--ed-tint)}
.ed-v2 .ed-account-tabs a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:.65rem .8rem;border:1px solid transparent;border-radius:var(--ed-radius-sm);color:var(--ed-ink);font-weight:650;line-height:1.4;text-align:center;text-decoration:none;overflow-wrap:normal}
.ed-v2 .ed-account-tabs a[aria-current=page]{background:var(--ed-blue);border-color:var(--ed-blue);color:#fff}
.ed-v2 .ed-account-tabs a:hover{background:var(--ed-hover-surface);border-color:var(--ed-line-strong);color:var(--ed-ink)}
.ed-v2 .ed-account-tabs a[aria-current=page]:hover{background:var(--ed-blue-hover);color:#fff}
.ed-v2 .ed-account-tabs a:focus-visible{outline:3px solid var(--ed-blue);outline-offset:3px}
.ed-v2 .ed-page .ed-account-tab-title{margin-top:0}
@media(max-width:560px){.ed-v2 .ed-account-tabs a{font-size:.85rem;padding-inline:.25rem}}
.ed-v2 .ed-terminology-list{display:grid;gap:1rem;margin:0}
.ed-v2 .ed-term-card{padding:1.5rem 1.75rem;border:1px solid var(--ed-line);border-radius:var(--ed-radius);background:var(--ed-card)}
.ed-v2 .ed-term-card.is-tinted{background:var(--ed-row-surface)}
.ed-v2 .ed-term-card dt{font-family:var(--ed-font-display);font-size:1.3rem;font-weight:600;color:var(--ed-ink);margin-bottom:.75rem}
.ed-v2 .ed-term-card dd{margin:0}.ed-v2 .ed-term-card p:last-child{margin-bottom:0}
.ed-v2 .ed-term-definition{max-width:80ch;line-height:1.75;overflow-wrap:anywhere}
@media(max-width:760px){.ed-v2 .ed-reference-fields{grid-template-columns:1fr}.ed-v2 .ed-reference-search{padding:1.1rem}.ed-v2 .ed-reference-submit{margin-left:0}.ed-v2 .ed-reference-toolbar{gap:.75rem}.ed-v2 .ed-reference-pagination{align-items:flex-start;flex-direction:column}.ed-v2 .ed-term-card{padding:1.25rem}}

/* Alternating reference cards must stand apart from the neutral page canvas. */
.ed-v2 .ed-page .ed-term-card,
.ed-v2 .ed-page .ed-rwe-library .rwe-card {
  background:var(--ed-reference-card-surface);
  border-color:var(--ed-reference-card-line);
}
.ed-v2 .ed-page .ed-term-card.is-tinted,
.ed-v2 .ed-page .ed-rwe-library .rwe-card.is-tinted {
  background:var(--ed-reference-card-alternate);
}

/* Video categories stay above filters; only IB content uses syllabus units. */
.ed-v2 .ed-page .ed-video-page-head{display:flex;align-items:end;justify-content:space-between;gap:1rem}
.ed-v2 .ed-video-all{display:inline-flex;align-items:center;gap:.6rem;min-height:44px;margin-bottom:.25rem;white-space:nowrap;text-decoration:none;color:var(--ed-blue);font-size:.875rem}
.ed-v2 .ed-video-all span{font-variant-numeric:tabular-nums;color:var(--ed-muted)}
.ed-v2 .ed-video-all[aria-current]{text-decoration:underline;text-underline-offset:5px;font-weight:600}
.ed-v2 .ed-video-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:1.5rem}
.ed-v2 .ed-video-categories a{display:flex;flex-direction:column;justify-content:space-between;gap:.45rem;min-width:0;padding:1rem 1.15rem;border:1px solid var(--ed-line);border-radius:var(--ed-radius);background:var(--ed-panel-surface);text-decoration:none;color:var(--ed-ink);border-bottom:3px solid var(--ed-line)}
.ed-v2 .ed-video-categories a>span{font-size:1rem;font-weight:600;line-height:1.4}
.ed-v2 .ed-video-categories small{font-size:.8125rem;color:var(--ed-muted);font-variant-numeric:tabular-nums}
.ed-v2 .ed-video-categories a:hover,.ed-v2 .ed-video-categories a[aria-current]{background:var(--ed-tint);border-color:var(--ed-blue)}
.ed-v2 .ed-video-search .ed-reference-fields{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto}
.ed-v2 .ed-video-search label[hidden]{display:none}
.ed-v2 .ed-video-search .ed-reference-fields:has(label[hidden]){grid-template-columns:minmax(0,1fr) auto}
@media(max-width:760px){.ed-v2 .ed-video-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.ed-v2 .ed-video-categories a{padding:.8rem}.ed-v2 .ed-video-search .ed-reference-fields,.ed-v2 .ed-video-search .ed-reference-fields:has(label[hidden]){grid-template-columns:minmax(0,1fr)}.ed-v2 .ed-page .ed-video-page-head{align-items:center}.ed-v2 .ed-video-all{font-size:.8125rem}}

/* Public and connected footers use the same light neutral surface. */
.ed-v2 .ed-footer { background:var(--ed-footer-surface); border-color:var(--ed-footer-surface); color:var(--ed-footer-text); }
.ed-v2 .ed-footer :is(.ed-footer-brand>a,.ed-footer-services h2,.ed-footer-meta a,.ed-footer-services a,.ed-footer-copy) { color:var(--ed-footer-text); }
.ed-v2 .ed-footer .ed-footer-meta { border-color:var(--ed-line-strong); }
.ed-v2 .ed-footer a:hover { color:var(--ed-footer-hover); text-decoration:underline; }
.ed-v2 .ed-footer a:focus-visible { outline-color:var(--ed-footer-hover); }

/* Connected home: direct tool navigation and real recent reports. */
.ed-v2 .ed-dashboard-grid--simple { grid-template-columns:minmax(0,1fr); }
.ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entries { grid-template-columns:repeat(4,minmax(0,1fr)); }
.ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entry { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:92px; padding:20px; background:var(--ed-workspace-surface); }
.ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entry strong { margin:0; font-size:1rem; font-weight:650; line-height:1.45; }
.ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entry .ed-icon { width:32px; height:32px; color:var(--ed-blue); }
.ed-v2 .ed-dashboard-grid--simple .ed-dashboard-arrow { color:var(--ed-blue); }
.ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entry:hover { background:var(--ed-workspace-hover); outline:none; border-color:var(--ed-blue); }
.ed-v2 .ed-dashboard-grid--simple .ed-activity-panel { background:var(--ed-workspace-surface); }
@media(max-width:1000px) { .ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entries { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entries { grid-template-columns:minmax(0,1fr); } }

/* Account actions form a distinct pair beside the informational utility links. */
.ed-v2 .ed-auth-actions { display:inline-flex; align-items:center; gap:10px; padding-left:22px; border-left:1px solid var(--ed-line); flex-shrink:0; }
.ed-v2 .ed-auth-actions :is(.ed-auth-link,.ed-auth-button) { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:11px 17px; border:1px solid var(--ed-blue); border-radius:var(--ed-control-radius); font:600 .875rem/1.4 var(--ed-font); text-decoration:none; white-space:nowrap; }
.ed-v2 .ed-auth-actions .ed-auth-link { color:var(--ed-blue); background:var(--ed-panel-surface); }
.ed-v2 .ed-auth-actions .ed-auth-link:hover { background:var(--ed-tint); color:var(--ed-blue-hover); border-color:var(--ed-blue-hover); }
.ed-v2 .ed-auth-actions :is(.ed-auth-link,.ed-auth-button):focus-visible { outline:3px solid var(--ed-focus); outline-offset:3px; }
@media(max-width:760px) {
  .ed-v2 .ed-auth-actions { padding-left:14px; }
  .ed-v2 .ed-auth-actions .ed-auth-link { min-height:44px; padding:9px 14px; font-size:.8125rem; }
  .ed-v2 .ed-auth-actions .ed-auth-button { display:none; }
}

/* Name the modules directly; no Learn/Practice split or acronym-only category. */
.ed-v2 .ed-module-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ed-v2 .ed-footer-public .ed-footer-services { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
@media(max-width:760px) { .ed-v2 .ed-module-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:1000px) { .ed-v2 .ed-footer-public .ed-footer-services { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } }

/* Native subscription administration keeps its layout and adopts the V2 materials. */
.ed-v2[data-ed-section="admin"] .ed-page .ews-panel { background:var(--ed-panel-surface); border-color:var(--ed-line); border-radius:var(--ed-radius); padding:var(--ed-panel-padding); color:var(--ed-text); }
.ed-v2[data-ed-section="admin"] .ed-page .ews-note { color:var(--ed-muted); }

/* The site is IB throughout; cards describe destinations rather than curricula. */
.ed-v2 .ed-dashboard-subsection { margin-block:26px; }
.ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entries--ib { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:1000px) { .ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entries--ib { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .ed-v2 .ed-dashboard-grid--simple .ed-dashboard-entries--ib { grid-template-columns:minmax(0,1fr); }
}

/* Classroom is the main workspace entry, with its own classroom pictogram. */
.ed-v2 .ed-classroom-feature { display:grid; grid-template-columns:104px minmax(0,1fr) auto; align-items:center; gap:28px; min-height:164px; padding:28px 32px; border:1px solid var(--ed-line-strong); border-radius:var(--ed-radius); background:var(--ed-paper); color:var(--ed-ink); text-decoration:none; box-shadow:var(--ed-shadow); }
.ed-v2 .ed-classroom-emblem { display:grid; place-items:center; width:104px; height:104px; color:var(--ed-blue); }
.ed-v2 .ed-classroom-emblem .ed-module-icon { width:88px; height:88px; }
.ed-v2 .ed-classroom-feature-copy { display:grid; gap:10px; min-width:0; }
.ed-v2 .ed-classroom-feature-copy>strong { font:600 1.875rem/1.2 var(--ed-font); letter-spacing:-.035em; overflow-wrap:anywhere; }
.ed-v2 .ed-classroom-feature-copy>span { color:var(--ed-text); font-size:.875rem; line-height:1.65; }
.ed-v2 .ed-classroom-open { display:inline-flex; align-items:center; justify-content:center; gap:18px; min-height:46px; padding:12px 18px; background:var(--ed-blue); color:var(--ed-card); border:1px solid var(--ed-blue); border-radius:var(--ed-control-radius); font:600 .875rem/1.4 var(--ed-font); white-space:normal; }
.ed-v2 .ed-classroom-feature:hover { border-color:var(--ed-blue); background:var(--ed-tint); }
.ed-v2 .ed-classroom-feature:hover .ed-classroom-open { background:var(--ed-blue-hover); border-color:var(--ed-blue-hover); }
.ed-v2 .ed-classroom-feature:focus-visible { outline:3px solid var(--ed-focus); outline-offset:4px; }
.ed-v2 .ed-module-icon { flex-shrink:0; }
@media(max-width:760px) {
  .ed-v2 .ed-classroom-feature { grid-template-columns:76px minmax(0,1fr); gap:16px 22px; padding:24px; }
  .ed-v2 .ed-classroom-emblem { width:76px; height:76px; }
  .ed-v2 .ed-classroom-emblem .ed-module-icon { width:72px; height:72px; }
  .ed-v2 .ed-classroom-feature-copy>strong { font-size:1.625rem; }
  .ed-v2 .ed-classroom-open { grid-column:2; justify-self:start; }
}
@media(max-width:420px) {
  .ed-v2 .ed-classroom-feature { grid-template-columns:64px minmax(0,1fr); gap:18px 16px; padding:20px; }
  .ed-v2 .ed-classroom-emblem,.ed-v2 .ed-classroom-emblem .ed-module-icon { width:64px; height:64px; }
  .ed-v2 .ed-classroom-open { grid-column:1/-1; justify-self:stretch; justify-content:space-between; }
}

/* Account preferences use the shared page shell and generous panel insets. */
.ed-v2 .ed-page .ed-account-space .ed-panel{min-width:0;padding:clamp(1.5rem,3vw,2rem)}
.ed-v2 .ed-account-space .ed-panel-head{margin-bottom:1.25rem}
.ed-v2 .ed-account-preferences .settings-rows{margin:0}
.ed-v2 .ed-account-preferences .settings-value{margin:0;overflow-wrap:anywhere}
.ed-v2 .ed-account-preferences .ed-email-preference{min-width:0;margin:0;padding:0;border:0}
.ed-v2 .ed-account-preferences .ed-email-preference legend{margin-bottom:.75rem;color:var(--ed-muted);font-size:.875rem}
.ed-v2 .ed-account-preferences #emailOptForm>p{line-height:1.65}

.ed-v2 .ed-account-space .ed-account-followup{margin-top:var(--ed-space-5)}
.ed-v2 .ed-account-space .account-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:0}
.ed-v2 .ed-account-space .account-actions>form{margin:0}
.ed-v2 .ed-account-space .ed-account-form{display:grid;justify-items:start;gap:.75rem;margin-top:1.5rem}
.ed-v2 .ed-account-space .ed-account-form :is(input[type=password],.btn){max-width:100%}
.ed-v2 .ed-account-space .ed-account-form input[type=password]{width:100%;min-width:0}
.ed-v2 .ed-account-space .ed-account-export-steps{padding-left:1.4rem;line-height:1.7}
.ed-v2 .ed-account-space .ed-account-export-steps li+li{margin-top:.75rem}
.ed-v2 .ed-account-space .account-request{margin-top:1.25rem;padding:1.25rem;border:1px solid var(--ed-line);border-radius:var(--ed-radius);background:var(--ed-tint)}
.ed-v2 .ed-account-space :is(p,code,.google-account-email,.microsoft-account-label){overflow-wrap:anywhere}
.ed-v2 .ed-account-space .account-request-meta dd{margin-inline-start:0}

.ed-v2 .ed-account-space .ed-panel>p{margin:0 0 1rem;line-height:1.7}
.ed-v2 .ed-account-space .ed-panel>:last-child{margin-bottom:0}
.ed-v2 .ed-account-space .ed-panel>.account-actions,.ed-v2 .ed-account-space .ed-panel>a.btn{margin-top:1.25rem}
.ed-v2 .ed-account-space .ed-account-export-steps{margin-block:1.25rem}
.ed-v2 .ed-account-space .ed-panel-head h2{min-width:0;overflow-wrap:anywhere}
.ed-v2 .ed-account-space p a{color:var(--ed-blue);text-underline-offset:.18em}

/* Security cards share the height of their grid row and align their final actions. */
.ed-v2 .ed-account-security .ed-settings-grid{align-items:stretch}
.ed-v2 .ed-page .ed-account-security .ed-panel{display:flex;flex-direction:column;align-items:stretch}
.ed-v2 .ed-account-security .ed-account-security-action{display:flex;flex-direction:column;align-items:flex-start;margin-top:auto;padding-top:.25rem}
.ed-v2 .ed-account-security .ed-account-security-action>:is(form,div){width:100%}
.ed-v2 .ed-account-security .ed-account-security-action>:is(.ed-account-form,.account-actions){margin-top:0}

/* Keep the export explanation and request form aligned as one row. */
.ed-v2 .ed-account-data .ed-settings-grid{align-items:stretch}
.ed-v2 .ed-account-data .ed-settings-grid>.ed-panel{display:flex;flex-direction:column}
.ed-v2 .ed-account-data .ed-settings-grid>.ed-panel>.ed-account-form{margin-top:auto;padding-top:1.25rem}
