/* Home v6 sections after the hero, plus reading progress. */
body.ep-home-sections-active .migration-main .block-container { padding-bottom: 0; }
.ep-home-section { position: relative; min-width: 0; scroll-margin-top: calc(var(--ep-home-header-height, 58px) + 16px); }
.ep-h6-section { padding: clamp(56px, 6vw, 88px) 40px; background: var(--ep-h6-paper-2); }
#home-content > :is(.ep-h6-section, .ep-h6-circuit) { margin: 0 12px 12px; }
.ep-h6-wrap { max-width: 1120px; margin: 0 auto; }
.ep-h6-eyebrow { display: block; font-size: 13px; font-weight: 650; letter-spacing: .14em; color: var(--ep-h6-blue-4); }
.migration-main .ep-h6-section h2 {
  margin: 12px 0 16px; font-size: clamp(30px, 3vw, 42px); font-weight: 700; line-height: 1.22; letter-spacing: -.015em;
  color: var(--ep-h6-ink-1); text-wrap: balance;
}
.ep-h6-lead { max-width: 640px; text-wrap: pretty; color: var(--ep-h6-ink-3); font-size: 16px; line-height: 1.75; }
.ep-h6-head { max-width: 960px; margin: 0 auto 32px; text-align: center; }
.ep-h6-head .ep-h6-lead { max-width: 720px; margin-inline: auto; text-wrap: balance; }
.ep-h6-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; color: var(--ep-h6-ink-4); font-size: 12px; }
.ep-h6-foot--center { justify-content: center; }
.ep-h6-link { color: var(--ep-h6-blue-5); font-size: 14px; font-weight: 650; text-decoration: none; }
.ep-h6-link > span { display: inline-block; transition: transform .25s var(--ep-h6-ease); }
.ep-h6-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ep-h6-link:hover > span { transform: translateX(3px); }
[data-h6-reveal] { transition: opacity .8s var(--ep-h6-ease), transform .8s var(--ep-h6-ease); }
#home-content[data-h6-motion="on"] [data-h6-reveal]:not([data-revealed]) { opacity: 0; transform: translateY(24px); }

/* ---------- 2. Circuit (the only dark section) ---------- */
.ep-h6-circuit { --ep-h6-night: #121732; padding: 36px 28px; background: var(--ep-h6-night); background-image: radial-gradient(ellipse at 50% 65%, #3b467c66, transparent 60%), linear-gradient(145deg, #202b48, #11172d 60%, #1e2748); color: #fff; overflow: clip; }
.ep-h6-circuit__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.ep-h6-circuit .ep-h6-eyebrow { margin-bottom: 8px; text-align: center; color: #b5c3e2; }
.migration-main .ep-h6-circuit .ep-h6-circuit__intro {
  max-width: 510px; margin: 0 auto; text-align: center; font-size: 14px; font-weight: 400; line-height: 1.75; letter-spacing: 0; color: #b3bfd8; text-wrap: balance;
}
.ep-h6-circuit__intro strong { display: block; margin-bottom: 10px; color: #fff; font-size: clamp(28px, 2.3vw, 32px); font-weight: 700; line-height: 1.22; letter-spacing: -.015em; }
.ep-h6-circuit__mobile { display: none; }
.ep-h6-circuit__view { position: relative; height: 368px; margin-top: 12px; }
.ep-h6-circuit__stage { position: absolute; left: 0; top: 0; width: 640px; height: 368px; transform-origin: 0 0; }
.ep-h6-circuit__stage::before {
  content: ""; position: absolute; inset: 0 -20px; pointer-events: none;
  background: radial-gradient(#8696cd44 .7px, transparent .9px) 0 0 / 14px 14px;
  mask-image: radial-gradient(ellipse, #000 20%, transparent 70%);
}
.ep-h6-circuit__svg { position: absolute; inset: 0; width: 640px; height: 368px; overflow: visible; }
.ep-h6-line { fill: none; stroke: #9aa8d8; stroke-width: 1; stroke-dasharray: 3 4; opacity: .65; }
.ep-h6-line-mask { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.ep-h6-line-mask[data-phase="out"] { animation: ep-h6-route-out .52s ease-in-out both; }
.ep-h6-line-mask[data-phase="in"] { animation: ep-h6-route-in .72s ease-out both; }
.ep-h6-line-mask[data-absent] { stroke-dashoffset: 1; }
@keyframes ep-h6-route-out { to { stroke-dashoffset: 1; } }
@keyframes ep-h6-route-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ep-h6-tray { position: absolute; border-radius: 12px; padding: 10px; background: linear-gradient(135deg, #354261, #202942); box-shadow: inset 0 0 0 1px #8c9abb35, inset 0 1px 0 #d7e4ff25, 0 14px 26px #050b222e; }
.ep-h6-tray--top { left: 100px; top: 8px; width: 440px; height: 54px; padding: 7px 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ep-h6-tray--left { left: 28px; top: 158px; width: 140px; height: 120px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 46px); gap: 8px 6px; perspective: 500px; }
.ep-h6-tray--right { position: absolute; left: 506px; top: 190px; width: 94px; height: 80px; perspective: 500px; }
.ep-h6-tray--bottom { position: absolute; left: 110px; top: 320px; display: grid; grid-template-columns: repeat(4, 96px); gap: 12px; }
.ep-h6-slot { height: 40px; display: grid; place-items: center; border: 1px dashed #41496c; border-radius: 5px; font-size: 12px; }
.ep-h6-slot[data-filled="true"] { background: linear-gradient(145deg, #59618c, #3b456d); border-color: #a5b3dd25; color: #f6f5ff; font-weight: 650; }
.ep-h6-slot[data-filled="false"] > span { visibility: hidden; }
.ep-h6-tile, .ep-h6-output { display: grid; place-content: center; justify-items: center; gap: 3px; border-radius: 7px; background: linear-gradient(145deg, #f4f6fc, #cdd7ed); color: #1a2340; text-align: center; box-shadow: inset 0 1px 0 #ffffffcc, 0 4px 10px #080d2440; }
.ep-h6-tile > span, .ep-h6-output > span { font-size: 10px; font-weight: 650; line-height: 1.2; }
.ep-h6-tile .ep-h6-icon { width: 21px; height: 21px; color: #6452c9; }
.ep-h6-tile.is-empty { background: transparent; border: 1px dashed #41496c; box-shadow: none; }
.ep-h6-output { width: 94px; height: 80px; gap: 8px; }
.ep-h6-output > span { font-size: 12px; }
.ep-h6-output .ep-h6-icon { width: 28px; height: 28px; color: #5367a8; }
.ep-h6-chip { position: absolute; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 7px; background: linear-gradient(135deg, #6479b6, #565c93); color: #fff; font-size: 12px; font-weight: 650; white-space: nowrap; box-shadow: inset 0 1px 0 #ffffff40, 0 4px 14px #050b2230; }
.ep-h6-chip--small { position: relative; width: 96px; height: 40px; padding: 0; font-size: 12px; background: linear-gradient(#394969, #2a3655); color: #dee7fa; }
.ep-h6-core { position: absolute; left: 264px; top: 140px; width: 112px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 20px; background: linear-gradient(145deg, #8799cc, #4b598e 45%, #303e6b); box-shadow: inset 0 1px 1px #eff4ff99, inset 0 0 0 1px #bdcafa50, 0 0 44px #8a9dfb30, 0 18px 28px #080e3066; }
.ep-h6-core b { font-size: 29px; letter-spacing: -.02em; }
.ep-h6-core small { margin-top: 5px; font-size: 11px; color: #e0e6fa; }
.ep-h6-slot[data-phase="out"], .ep-h6-tile[data-phase="out"], .ep-h6-output[data-phase="out"] { animation: ep-h6-tile-out .18s ease-in both; }
.ep-h6-slot[data-phase="in"], .ep-h6-tile[data-phase="in"], .ep-h6-output[data-phase="in"] { animation: ep-h6-tile-in .24s ease-out both; }
@keyframes ep-h6-tile-out { to { opacity: 0; transform: translateY(3px) rotateX(-55deg) scale(.94); } }
@keyframes ep-h6-tile-in { from { opacity: 0; transform: translateY(-3px) rotateX(55deg) scale(.94); } to { opacity: 1; transform: none; } }
.ep-h6-chip--small[data-phase="out"] { animation: ep-h6-branch-out .3s ease-in both; }
.ep-h6-chip--small[data-phase="in"] { animation: ep-h6-branch-in .32s .4s ease-out both; }
.ep-h6-chip--small[data-absent] { opacity: 0; }
@keyframes ep-h6-branch-out { to { opacity: 0; transform: translateY(-5px); } }
@keyframes ep-h6-branch-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.ep-h6-circuit:not([data-motion="running"]) [data-phase] { animation-play-state: paused; }

/* ---------- 4. Personal ---------- */
.ep-h6-personal { background: linear-gradient(125deg, #e9edf5, #f6f7fb 55%, #e8edf6); }
.ep-h6-lark { display:grid; grid-template-columns:340px minmax(0,1fr); width:100%; min-height:0; overflow:hidden; border:1px solid #ccd4e3; border-radius:18px; background:var(--ep-h6-card); box-shadow:0 16px 40px #2c3c5a14; }
.ep-h6-lark__memory { display:flex; flex-direction:column; padding:18px; background:linear-gradient(145deg,#293956,#17243e); color:#fff; min-height:0; }
.migration-main .ep-h6-lark h3 { margin:0 0 6px; font-size:17px; font-weight:650; color:inherit; }
.ep-h6-lark__caption { color:#bdcce5; font-size:12px; }
.ep-h6-lark__cards { display:grid; gap:8px; margin-top:12px; }
.ep-h6-memory { display:block; width:100%; padding:10px 14px; border:1px solid #9aaed02e; border-radius:10px; background:#ffffff06; color:#e8eefb; font:inherit; text-align:left; cursor:pointer; transition:background .25s,border-color .25s; }
.ep-h6-memory:hover { background:#ffffff12; border-color:#a1b8e1; }
.ep-h6-memory b { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:15px; }
.ep-h6-memory b>span { color:#b5c6e2; }
.ep-h6-memory q { display:block; margin:5px 0 8px; font-size:14px; color:#b8c8e2; quotes:none; }
.ep-h6-memory__sources { display:flex; flex-wrap:wrap; gap:5px 10px; color:#aebfdd; font-size:10px; }
.ep-h6-memory__sources i { font-style:normal; }
.ep-h6-memory__sources>span { color:#d8e6ff; }
.ep-h6-memory[aria-pressed="true"] { border-color:#c2d2ee; background:linear-gradient(120deg,#526f9e,#3e5783); box-shadow:inset 3px 0 #c4dcff; }
.ep-h6-memory[aria-pressed="true"] :is(q,.ep-h6-memory__sources) { color:#e0eaff; }
.ep-h6-lark__note { margin-top:auto !important; padding-top:10px; color:#aabbd8; font-size:10px; line-height:1.6; }
.ep-h6-lark__chat { display:flex; flex-direction:column; min-width:0; min-height:0; padding:20px 28px 12px; }
.ep-h6-lark__chat>header { display:flex; align-items:center; gap:10px; padding-bottom:14px; border-bottom:1px solid var(--ep-h6-line-1); }
.ep-h6-lark__chat header b { font-size:18px; line-height:1.2; }
.ep-h6-lark__chat header small { display:block; margin-top:4px; font-size:11px; font-weight:400; color:var(--ep-h6-ink-3); }
.ep-h6-lark__topic { margin-left:auto; font-size:10px; color:var(--ep-h6-ink-3); text-align:right; }
.ep-h6-lark__topic strong { display:block; margin-top:4px; color:var(--ep-h6-blue-5); font-size:13px; }
.ep-h6-avatar { width:30px; height:30px; flex-shrink:0; border-radius:50%; background:var(--ep-h6-paper-warm) url('/workspace/assets/assistant-assets/report-reading-avatar.webp?v=avatar-1') center/cover no-repeat; box-shadow:0 4px 10px #2f4a7340; }
.ep-h6-lark__conversation { display:grid; flex:1; min-width:0; min-height:0; overflow:auto; overscroll-behavior:auto; scrollbar-width:thin; padding:10px 2px; }
.ep-h6-lark__conversation>* { grid-area:1/1; min-width:0; }
.ep-h6-lark__reserve { display:grid; visibility:hidden; pointer-events:none; }
.ep-h6-lark__reserve>.ep-h6-lark__log { grid-area:1/1; }
.ep-h6-personal[data-motion="paused"] .ep-h6-bubble.is-arriving { animation-play-state:paused; }
.ep-h6-lark__log { align-self:start; }
#home-content .ep-h6-lark__log>.ep-h6-bubble { max-width:92%; padding:12px 16px; font-size:16px; line-height:1.7; border-radius:10px; }
#home-content .ep-h6-lark__log>.ep-h6-bubble--me { margin-left:auto; margin-right:0; background:#e7edf7; color:#344e75; }
#home-content .ep-h6-lark__log>.ep-h6-bubble--lark { margin-left:0; margin-right:auto; border-left:2px solid #a5b8d8; border-radius:0 10px 10px 0; background:#f5f7fb; }
#home-content .ep-h6-lark__log>.ep-h6-bubble--lark:nth-child(4) { border-color:#759b93; background:#eef5f2; color:#365b56; }
.ep-h6-lark__footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:10px; border-top:1px solid var(--ep-h6-line-1); }
.ep-h6-lark__acts { display:flex; flex-wrap:wrap; gap:6px; }
.ep-h6-lark__acts>button { min-height:32px; padding:5px 10px; background:transparent; font:inherit; cursor:pointer; border:1px solid var(--ep-h6-line-2); border-radius:6px; color:var(--ep-h6-blue-5); font-size:11px; }
.ep-h6-lark__acts>button:hover,.ep-h6-lark__acts>button[aria-pressed="true"] { background:var(--ep-h6-blue-1); border-color:var(--ep-h6-blue-3); }
.ep-h6-lark__acts>button:disabled { opacity:.45; cursor:default; }
#home-content :is(.ep-h6-lark__conversation,.ep-h6-memory,.ep-h6-lark__acts button,.ep-h6-ftabs button,.ep-h6-fseg button,.ep-h6-seg button,.ep-h6-mark,.ep-h6-pair):focus-visible { outline:2px solid var(--ep-h6-blue-4); outline-offset:3px; }

/* ---------- 5. Loop ---------- */
.ep-h6-loop__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 50px; }
.ep-h6-step {
  display: flex; flex-direction: column; justify-content: flex-start;
  min-height: 176px; padding: 20px 18px; border: 1px solid var(--ep-h6-line-2); border-radius: 20px; background: var(--ep-h6-card);
  color: var(--ep-h6-ink-1); font: inherit; text-align: left; cursor: pointer;
  transition: transform .45s var(--ep-h6-ease), box-shadow .45s var(--ep-h6-ease), background-color .3s, color .3s;
}
.ep-h6-step small { display: block; color: var(--ep-h6-blue-4); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.ep-h6-step b { display: block; margin: 6px 0 8px; font-size: 17px; }
.ep-h6-step span { display: block; color: var(--ep-h6-ink-3); font-size: 13px; line-height: 1.65; }
.ep-h6-step:hover { border-color: var(--ep-h6-blue-3); }
.ep-h6-step.is-on {
  border-color: transparent; background: var(--ep-h6-silk-card); color: #fff; transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(47, 74, 115, .28);
}
.ep-h6-step.is-on :is(small, span) { color: #d3dff2; }
.ep-h6-band {
  position: relative; display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 18px 24px; overflow: hidden;
  border-radius: 18px; background: var(--ep-h6-night); color: #fff;
}
.ep-h6-band::before {
  content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(120, 125, 230, .25) 1px, transparent 1.2px); background-size: 16px 16px;
}
.ep-h6-band > :is(b, span) { position: relative; }
.ep-h6-band > b { font-size: 16px; white-space: nowrap; }
.ep-h6-band > span { color: #a7acd4; font-size: 14px; }
.ep-h6-band__pulse {
  position: absolute; top: 0; bottom: 0; left: -160px; width: 160px;
  background: linear-gradient(90deg, transparent, rgba(110, 95, 255, .45), transparent); animation: ep-h6-sweep 5s linear infinite;
}
.ep-h6-loop:not([data-motion="running"]) .ep-h6-band__pulse { animation-play-state: paused; }
.ep-h6-loop[data-motion="static"] .ep-h6-band__pulse { display: none; }
@keyframes ep-h6-sweep { to { left: 100%; } }

/* ---------- 6. Comparison ---------- */
.ep-h6-comparison { background: var(--ep-h6-paper-2); }
.ep-h6-study {
  display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: hidden;
  border-top: 1px solid var(--ep-h6-line-2); background: var(--ep-h6-card);
}
.ep-h6-study__cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px; background: var(--ep-h6-blue-1); }
.ep-h6-study__cases button {
  display: block; width: 100%; padding: 6px 3px; border: 0; border-radius: 6px; background: transparent;
  color: var(--ep-h6-ink-3); font: inherit; font-size: 11px; text-align: center; cursor: pointer; transition: background-color .25s, box-shadow .25s;
}
.ep-h6-study__cases button b { display: block; color: var(--ep-h6-ink-1); font-size: 12px; line-height: 1.45; }
.ep-h6-study__cases button span { display: none; }
.ep-h6-study__cases button:hover { background: rgba(255, 255, 255, .65); }
.ep-h6-study__cases button[aria-pressed="true"] { background: var(--ep-button-silk); color: var(--ep-button-ink); box-shadow: 0 4px 14px rgba(47, 74, 115, .1); }
.ep-h6-skeleton { display: block; height: 52px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .9), rgba(255, 255, 255, .5)); }
.ep-h6-study__main { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; padding: 12px 16px 16px; }
.ep-h6-study__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; margin-bottom: 10px; }
.ep-h6-study__view { flex: 1; min-height: 140px; overflow: auto; scrollbar-width: thin; overscroll-behavior: auto; }
.ep-h6-seg { display: flex; gap: 16px; padding: 0; border-bottom: 1px solid var(--ep-h6-line-2); background: transparent; }
.ep-h6-seg button {
  padding: 7px 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ep-h6-ink-3);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ep-h6-seg button[aria-pressed="true"] { border-bottom-color: var(--ep-h6-blue-4); color: var(--ep-h6-blue-5); }
.ep-h6-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ep-h6-filters button {
  padding: 3px 7px 2px; border: 0; border-bottom: 2px solid var(--ep-h6-kind-color); border-radius: 0; background: transparent;
  color: var(--ep-h6-ink-2); font: inherit; font-size: 13px; cursor: pointer; transition: opacity .25s;
}
.ep-h6-filters button[aria-pressed="false"], .ep-h6-filters button:disabled { opacity: .3; }
.ep-h6-filters button:disabled { cursor: default; }
.ep-h6-study__status { padding: 40px 0; color: var(--ep-h6-ink-3); font-size: 14px; text-align: center; }
.ep-h6-retry { margin-left: 8px; padding: 3px 12px; border: 1px solid var(--ep-h6-line-3); border-radius: 999px; background: var(--ep-h6-card); color: var(--ep-h6-blue-5); font: inherit; cursor: pointer; }
.ep-h6-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ep-h6-line-2); border-radius: 10px; overflow: hidden; }
.ep-h6-pair > div { min-width: 0; padding: 12px; }
.ep-h6-pair > div > p[lang="en"] { font-family: var(--ep-h6-serif); font-size: 15px; line-height: 1.75; color: var(--ep-h6-ink-1); }
.ep-h6-pair__original { background: var(--ep-h6-paper-warm); }
.ep-h6-pair__revised { background: var(--ep-h6-blue-1); }
.ep-h6-study__label { margin-bottom: 4px !important; font-size: 12px; font-weight: 650; letter-spacing: .1em; color: var(--ep-h6-ink-3); }
.ep-h6-essay {
  padding: 14px; border: 1px solid var(--ep-h6-line-2); border-radius: 10px; background: var(--ep-h6-card);
}
.ep-h6-essay > p[lang="en"] { font-family: var(--ep-h6-serif); font-size: 15.5px; line-height: 2.1; color: var(--ep-h6-ink-1); }
.ep-h6-essay > p + p { margin-top: 10px; }
.ep-h6-mark {
  cursor: pointer; border-radius: 3px; padding-bottom: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  background-repeat: no-repeat; background-color: transparent; transition: background-color .2s;
  background-image: linear-gradient(var(--ep-h6-u1), var(--ep-h6-u1));
  background-size: 100% 2px; background-position: 0 100%;
}
.ep-h6-mark[data-depth="2"] {
  padding-bottom: 6px;
  background-image: linear-gradient(var(--ep-h6-u1), var(--ep-h6-u1)), linear-gradient(var(--ep-h6-u2), var(--ep-h6-u2));
  background-size: 100% 2px, 100% 2px; background-position: 0 calc(100% - 4px), 0 100%;
}
.ep-h6-mark[data-depth="3"] {
  padding-bottom: 9px;
  background-image: linear-gradient(var(--ep-h6-u1), var(--ep-h6-u1)), linear-gradient(var(--ep-h6-u2), var(--ep-h6-u2)), linear-gradient(var(--ep-h6-u3), var(--ep-h6-u3));
  background-size: 100% 2px, 100% 2px, 100% 2px; background-position: 0 calc(100% - 8px), 0 calc(100% - 4px), 0 100%;
}
.ep-h6-mark:hover { background-color: var(--ep-h6-blue-1); }
.ep-h6-mark[aria-pressed="true"] { background-color: var(--ep-h6-blue-2); }
.ep-h6-study__note {
  flex: none; max-height: 144px; overflow: auto; scrollbar-width: thin; margin-top: 10px; padding: 12px; border: 1px solid var(--ep-h6-line-2); border-radius: 10px; background: var(--ep-h6-card);
  color: var(--ep-h6-ink-2); font-size: 13.5px; line-height: 1.75;
}
.ep-h6-study__note > p + p { margin-top: 4px; }
@media (max-width: 800px) {
  /* Reading follows the document on phones; a short nested box hides context. */
  #home-content .ep-h6-study__note { max-height: none; overflow: visible; }
  #home-content .ep-h6-study__cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  #home-content .ep-h6-study__cases button { min-height: 52px; padding: 9px; text-align: left; }
  #home-content .ep-h6-study__cases button b { font-size: 13px; line-height: 1.6; }
  #home-content .ep-h6-study__bar { gap: 12px; align-items: stretch; }
  #home-content .ep-h6-study__bar > [role="group"] { flex-basis: 100%; }
  #home-content .ep-h6-study__bar button { min-height: 40px; }
  #home-content .ep-h6-dots { display: flex; justify-content: flex-start; gap: 14px; overflow-x: auto; padding: 6px 4px 10px; scrollbar-width: thin; }
  #home-content .ep-h6-dots button { flex: 0 0 auto; min-height: 44px; width: auto; padding-inline: 6px; white-space: nowrap; }
}
.ep-h6-note__title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px !important; color: var(--ep-h6-ink-1); font-size: 15px; font-weight: 650; }
.ep-h6-kind-tag {
  flex: none; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 650;
  color: var(--ep-h6-kind-color, var(--ep-h6-blue-5));
  background: color-mix(in srgb, var(--ep-h6-kind-color, var(--ep-h6-blue-4)) 12%, var(--ep-h6-card));
}
.ep-h6-note__transfer, .ep-h6-note__takeaway { color: var(--ep-h6-blue-4); }
.ep-h6-note__takeaway { color: var(--ep-h6-ink-3); }
:is(.ep-h6-note__transfer, .ep-h6-note__takeaway) b { margin-right: 8px; font-weight: 650; }
.ep-h6-note__hint { color: var(--ep-h6-ink-4); font-size: 12.5px; }
.ep-h6-typing-box textarea {
  width: 100%; min-height: 96px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--ep-h6-line-3); border-radius: 14px;
  background: var(--ep-h6-card); color: var(--ep-h6-ink-1); font-family: var(--ep-h6-serif); font-size: 15px; line-height: 1.8; resize: vertical;
}
.ep-h6-typing-box__source { font-family: var(--ep-h6-serif); font-size: 15px; line-height: 1.8; color: var(--ep-h6-ink-2); }
.ep-h6-typing-box__go { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ep-h6-typing-box__go button { padding: 7px 16px; border: 0; border-radius: 999px; background: var(--ep-h6-blue-5); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
[data-h6-study-result] { font-size: 13.5px; color: var(--ep-h6-ink-2); }
[data-h6-study-result][data-tone="match"] { color: var(--ep-h6-green); }
[data-h6-study-result][data-tone="differ"] { color: var(--ep-h6-red); }
[data-h6-study-open] { display: inline-block; margin-top: 16px; }

/* ---------- 7. Foundation (笔下有料) ---------- */
.ep-h6-found { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-top: 26px; text-align: left; }
.ep-h6-fpanel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--ep-h6-line-2); border-radius: 24px; background: var(--ep-h6-card); box-shadow: var(--ep-h6-shadow-soft); }
.ep-h6-fpanel__top { padding: 22px 26px 0; }
.ep-h6-fpanel__title { display: flex; align-items: baseline; gap: 12px; }
.ep-h6-fpanel__title b { font-size: 22px; font-weight: 750; color: var(--ep-h6-ink-1); }
.ep-h6-fpanel__title small { font-size: 13px; color: var(--ep-h6-ink-3); }
.ep-h6-fpanel__body { flex: 1; min-height: 292px; padding: 16px 26px 6px; }
.ep-h6-fpanel__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 26px 18px; border-top: 1px solid var(--ep-h6-line-1); color: var(--ep-h6-ink-3); font-size: 12.5px; }
.ep-h6-fpanel__stats { display: grid; }
.ep-h6-fpanel__stats > span { grid-area: 1 / 1; }
.ep-h6-fpanel__stats > [hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.ep-h6-ftabs { display: flex; gap: 12px; margin-top: 14px; padding: 0; border-bottom: 1px solid var(--ep-h6-line-2); }
.ep-h6-ftabs button { flex: 1; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ep-h6-ink-3); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.ep-h6-ftabs button:hover { color: var(--ep-h6-ink-1); }
.ep-h6-ftabs button[aria-selected="true"] { border-bottom-color: var(--ep-h6-blue-4); color: var(--ep-h6-blue-5); }
/* Overlaid states retain their intrinsic size, without replaying entry motion. */
.ep-h6-ars-stack { display: grid; align-items: start; }
.ep-h6-fpane { grid-area: 1 / 1; min-width: 0; }
.ep-h6-fpane[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.ep-h6-fcrumb { display: flex; gap: 8px; margin-bottom: 8px; }
.ep-h6-ftag { color: var(--ep-h6-ink-3); font-size: 12.5px; }
.ep-h6-ftag + .ep-h6-ftag::before { content: "·"; margin-right: 8px; color: var(--ep-h6-ink-4); }
.migration-main .ep-h6-fpane h3 { margin: 0; font-size: 21px; font-weight: 750; color: var(--ep-h6-ink-1); }
.ep-h6-fask { margin: 10px 0 0; padding: 9px 13px; border-left: 3px solid #c9a96b; border-radius: 0 8px 8px 0; background: var(--ep-h6-paper-warm); color: var(--ep-h6-ink-2); font-size: 14px; }
.ep-h6-fask em { margin-right: 8px; color: #8a6a2d; font-size: 12.5px; font-style: normal; font-weight: 700; }
.ep-h6-fask.is-warn { border-left-color: var(--ep-h6-red); background: var(--ep-h6-red-paper); }
.ep-h6-fask.is-warn em { color: var(--ep-h6-red); }
.ep-h6-foutline { display: grid; gap: 7px; margin-top: 10px; font-size: 14px; line-height: 1.55; }
.ep-h6-foutline > div { display: grid; grid-template-columns: 22px 38px minmax(0, 1fr); gap: 4px; }
.ep-h6-foutline s { padding-top: 2px; color: var(--ep-h6-ink-4); font-size: 12px; text-decoration: none; }
.ep-h6-foutline b { color: var(--ep-h6-ink-1); }
.ep-h6-fen { margin: 12px 0 0; font-family: var(--ep-h6-serif); font-size: 17px; line-height: 1.85; color: var(--ep-h6-ink-1); }
.ep-h6-fmark { padding: 1px 3px; border-radius: 4px; background: var(--ep-h6-blue-2); color: var(--ep-h6-blue-5); }
.ep-h6-fnote { margin: 8px 0 0; color: var(--ep-h6-ink-3); font-size: 13.5px; line-height: 1.65; }
.ep-h6-fnote b { color: var(--ep-h6-ink-2); }
.ep-h6-phrases { display: grid; gap: 6px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--ep-h6-line-2); font-size: 13px; }
.ep-h6-phrases > div { display: flex; justify-content: space-between; gap: 12px; }
.ep-h6-phrases dt { color: var(--ep-h6-blue-5); font-weight: 600; }
.ep-h6-phrases dd { margin: 0; color: var(--ep-h6-ink-3); }
.ep-h6-fseg { display: inline-flex; gap: 18px; margin-top: 12px; border-bottom: 1px solid var(--ep-h6-line-2); }
.ep-h6-fseg button { padding: 6px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ep-h6-ink-3); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ep-h6-fseg button[aria-pressed="true"] { border-bottom-color: var(--ep-h6-blue-4); color: var(--ep-h6-blue-5); }
.ep-h6-fpart { padding: 1px 3px; border-radius: 5px; transition: background-color .3s, color .3s, box-shadow .3s; }
.ep-h6-fpane[data-view="split"] .ep-h6-fpart[data-part="adv"] { background: #d7e8fb; box-shadow: inset 0 -2px 0 #4a8fe0; }
.ep-h6-fpane[data-view="split"] .ep-h6-fpart[data-part="main"], .ep-h6-fpane[data-view="main"] .ep-h6-fpart[data-part="main"] { background: var(--ep-h6-green-paper); box-shadow: inset 0 -2px 0 var(--ep-h6-green); }
.ep-h6-fpane[data-view="main"] .ep-h6-fpart[data-part="adv"] { color: var(--ep-h6-ink-4); }
.ep-h6-sen-notes { display: grid; }
.ep-h6-sen-notes > p { grid-area: 1 / 1; }
.ep-h6-sen-notes > [hidden] { display: block !important; visibility: hidden; pointer-events: none; }

.ep-h6-word-stack { display: grid; }
.ep-h6-word { position: relative; display: grid; grid-area: 1 / 1; grid-template-rows: auto 1fr; align-items: start; min-width: 0; min-height: 210px; padding: 22px 24px 18px; border: 1px solid var(--ep-h6-line-2); border-radius: 18px; background: var(--ep-h6-card); }
.ep-h6-word[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
.ep-h6-word__idx { position: absolute; top: 14px; right: 18px; color: var(--ep-h6-ink-4); font-size: 12px; letter-spacing: .08em; }
.ep-h6-word__head { grid-area: 1 / 1; padding-right: 36px; }
.ep-h6-word__w { font-family: var(--ep-h6-serif); font-size: 40px; font-weight: 700; color: var(--ep-h6-ink-1); }
.ep-h6-word__pos { margin-left: 10px; color: var(--ep-h6-ink-3); font-size: 14px; }
.ep-h6-word__front { grid-area: 2 / 1; margin: 8px 0 0; color: var(--ep-h6-ink-3); font-size: 13.5px; }
.ep-h6-word__reveal { grid-area: 2 / 1; margin-top: 10px; }
.ep-h6-word :is(.ep-h6-word__front, .ep-h6-word__reveal)[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.ep-h6-word__zh { font-size: 20px; font-weight: 700; color: var(--ep-h6-ink-1); }
.ep-h6-word__ex { margin: 8px 0 0; font-family: var(--ep-h6-serif); font-size: 16px; line-height: 1.7; }
.ep-h6-word__ex b { color: var(--ep-h6-blue-5); }
.ep-h6-word__tr { margin: 2px 0 0; color: var(--ep-h6-ink-3); font-size: 13.5px; }
.ep-h6-word__note { margin: 9px 0 0; padding: 7px 11px; border-radius: 9px; background: var(--ep-h6-paper-2); color: var(--ep-h6-ink-2); font-size: 13px; }
.ep-h6-word__note em { margin-right: 8px; font-style: normal; font-weight: 700; }
.ep-h6-judge-stack { display: grid; margin-top: 14px; }
.ep-h6-judge { display: flex; grid-area: 1 / 1; gap: 10px; }
.ep-h6-judge[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.ep-h6-judge button { flex: 1; padding: 10px; border: 1px solid var(--ep-h6-line-3); border-radius: 12px; background: var(--ep-h6-card); color: var(--ep-h6-ink-1); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: background-color .2s, border-color .2s; }
.ep-h6-judge button:hover { border-color: var(--ep-h6-blue-3); background: var(--ep-h6-blue-1); }
.ep-h6-judge button.is-next { border-color: var(--ep-h6-blue-5); background: var(--ep-h6-blue-5); color: var(--ep-h6-card); }
.ep-h6-judge button.is-next:hover { background: var(--ep-h6-blue-4); }
.ep-h6-shelf { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; margin: 14px 0 0; padding: 0; list-style: none; }
.ep-h6-cover {
  min-width: 0; overflow: hidden; border-radius: 2px; box-shadow: 0 6px 14px rgba(28, 37, 54, .16); transition: transform .3s var(--ep-h6-ease);
}
.ep-h6-cover__image { display: block; width: 100%; height: auto; aspect-ratio: 240 / 354; }
.ep-h6-cover:hover { transform: translateY(-4px); }
.ep-h6-bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 22px 0 0; color: var(--ep-h6-ink-3); font-size: 14px; }
.ep-h6-bridge__src { padding: 5px 12px; border: 1px solid var(--ep-h6-line-2); border-radius: 999px; background: var(--ep-h6-card); color: var(--ep-h6-ink-2); }
.ep-h6-bridge__dst { padding: 5px 12px; border-radius: 999px; background: var(--ep-h6-blue-1); color: var(--ep-h6-blue-5); font-weight: 650; }

/* ---------- 8. Close ---------- */
.ep-h6-close { padding: clamp(90px, 12vh, 120px) 40px; background: var(--ep-h6-silk-wide); color: #fff; text-align: center; overflow: clip; }
.ep-h6-close::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
}
.ep-h6-close__inner { position: relative; }
.migration-main .ep-h6-close h2 { margin: 0 0 30px; font-size: clamp(32px, 3.4vw, 48px); color: #fff; }
.ep-h6-actions--on-dark .ep-h6-button--primary { background: var(--ep-h6-card); color: var(--ep-h6-blue-5); box-shadow: 0 10px 30px rgba(10, 20, 45, .25); }
.ep-h6-actions--on-dark .ep-h6-button--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.ep-h6-actions--on-dark .ep-h6-button--ghost:hover { background: rgba(255, 255, 255, .1); }

/* Keep the next section's heading visible as a natural scroll cue. */
#home-content[data-h6-motion="on"] #home-report > [data-h6-reveal] { opacity: 1; transform: none; }

/* ---------- Reading progress ---------- */
.ep-home-reading-progress {
  position: fixed; z-index: 21; inset-inline: 0; top: var(--ep-home-header-height, 58px); height: 3px;
  background: #8ba6c820; pointer-events: none;
}
.ep-home-reading-progress__bar { display: block; width: 100%; height: 100%; transform: scaleX(var(--home-reading-progress, 0)); transform-origin: left; background: linear-gradient(90deg, #47658e, #4a70a4); }
@supports (animation-timeline: scroll(root)) {
  .ep-home-reading-progress__bar { animation: ep-home-reading-progress linear both; animation-timeline: scroll(root); }
}
@keyframes ep-home-reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* motion.css gives every workspace button a colour-only transition; home cards also move. */
#home-content :is(.ep-h6-step, .ep-h6-memory) {
  transition: transform .45s var(--ep-h6-ease), box-shadow .45s var(--ep-h6-ease), background-color .3s, border-color .2s, color .3s, scale .18s;
}
#home-content :is(.ep-h6-seg button, .ep-h6-study__cases button, .ep-h6-filters button) {
  transition: background-color .25s, box-shadow .25s, color .2s, opacity .25s, scale .18s;
}

/* Feature sections follow their content; only the opening hero budgets a viewport. */
@media (min-width: 1001px) {
  #home-content .ep-home-section {
    box-sizing: border-box; min-height: 0;
    display: flex; flex-direction: column; justify-content: flex-start;
  }
  #home-content :is(.ep-h6-section, .ep-h6-circuit, .ep-h6-close) {
    padding-block: clamp(56px, 5vw, 80px);
  }
  #home-content .ep-h6-circuit { padding-block: 44px; }
  #home-content :is(.ep-h6-wrap, .ep-h6-circuit__inner, .ep-h6-close__inner) { width: 100%; }
  #home-content .ep-h6-circuit__view { margin-top: 24px; }
  #home-content .ep-h6-head { margin-bottom: 32px; }
  #home-content .ep-h6-loop__row { margin-top: 24px; }
  #home-content .ep-h6-foot { margin-top: 20px; }
  #home-content .ep-h6-personal { height:calc(var(--ep-home-available-height,calc(100svh - 58px)) * .8); padding:24px 40px; }
  #home-content .ep-h6-personal>.ep-h6-wrap { display:flex; flex-direction:column; height:100%; min-height:0; max-width:1160px; }
  #home-content .ep-h6-personal .ep-h6-head { margin-bottom:22px; }
  #home-content .ep-h6-personal h2 { font-size:clamp(28px,2.6vw,38px); margin:8px 0; }
  #home-content .ep-h6-personal .ep-h6-lead { font-size:14px; }
  #home-content .ep-h6-lark { flex:1; }
  #home-content .ep-h6-hero {
    min-height: var(--ep-h6-hero-height);
    padding-top: var(--ep-h6-hero-top); justify-content: center; align-items: center;
  }
  #home-content .ep-h6-report { justify-content: flex-start; }
  #home-content .ep-h6-hero__stage {
    width: min(100%, 1200px); height: var(--ep-h6-scene-height);
    margin-top: 14px; flex: none;
  }
  #home-content .ep-h6-dots { margin-top: 8px; padding-bottom: 0; }
  #home-content .ep-h6-hero h1 { margin-bottom: 20px; font-size: var(--ep-h6-title-size); }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .ep-h6-loop__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ep-h6-found { grid-template-columns: minmax(0, 1fr); }
  .ep-h6-lark { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .ep-h6-section, .ep-h6-circuit, .ep-h6-close { padding: 64px 18px; }
  .ep-h6-foot { flex-direction: column; align-items: flex-start; }
  .ep-h6-foot--center { align-items: center; }
  .ep-h6-circuit__view { height: auto; margin-top: 28px; }
  .ep-h6-circuit__stage { display: none; }
  .ep-h6-circuit__mobile { display: grid; max-width: 520px; margin: auto; }
  .ep-h6-circuit__mobile-group { padding: 16px; border: 1px solid #343b60; border-radius: 12px; background: #1a2041; }
  .ep-h6-circuit__mobile-group > p { margin-bottom: 12px !important; color: #c4c0e8; font-size: 13px; }
  .ep-h6-circuit__mobile-group ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
  .ep-h6-circuit__mobile-group li { display: grid; justify-items: center; gap: 5px; padding: 10px 2px; border-radius: 6px; background: #34316c; color: #f3f1ff; font-size: 13px; }
  .ep-h6-circuit__mobile-group .ep-h6-icon { width: 24px; height: 24px; color: #c9c0ff; }
  .ep-h6-circuit__mobile-core { position: relative; display: grid; justify-items: center; gap: 3px; width: 150px; margin: 24px auto; padding: 14px 10px; border: 1px solid #7770cf60; border-radius: 9px; background: linear-gradient(145deg, #5545b3, #292651); }
  .ep-h6-circuit__mobile-core::before, .ep-h6-circuit__mobile-core::after { content: ""; position: absolute; left: 50%; height: 24px; border-left: 1px dashed #7770cf; }
  .ep-h6-circuit__mobile-core::before { bottom: 100%; }
  .ep-h6-circuit__mobile-core::after { top: 100%; }
  .ep-h6-circuit__mobile-core strong { font-size: 25px; }
  .ep-h6-circuit__mobile-core :is(small, span) { font-size: 12px; color: #c4c0e8; }
  .ep-h6-circuit__mobile-foot { margin-top: 16px !important; color: #a0a8c5; font-size: 12px; line-height: 1.8; text-align: center; }
  .ep-h6-lark__acts > button { min-height: 44px; }
  .ep-h6-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .ep-h6-lark, .ep-h6-study, .ep-h6-pair { grid-template-columns: minmax(0, 1fr); }
  .ep-h6-lark { min-height: 0; }
  .ep-h6-lark__memory { border-right: 0; border-bottom: 1px solid var(--ep-h6-line-1); }
  .ep-h6-lark__chat { padding: 18px; }
  .ep-h6-lark__conversation { overflow:visible; }
  .ep-h6-lark__footer { align-items:flex-start; }
  .ep-h6-loop__row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ep-h6-step { min-height: 0; }
  .ep-h6-step.is-on { transform: none; }
  .ep-h6-band { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ep-h6-study__cases { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--ep-h6-line-1); }
  .ep-h6-study__cases button { flex: 0 0 170px; }
  .ep-h6-study__main { padding: 16px; }
  .ep-h6-seg { flex-wrap: wrap; }
  .ep-h6-fpanel__top { padding: 18px 18px 0; }
  .ep-h6-fpanel__body { min-height: 0; padding: 14px 18px 6px; }
  .ep-h6-fpanel__foot { flex-direction: column; align-items: flex-start; padding: 12px 18px 16px; }
  .ep-h6-fpanel__title { flex-direction: column; gap: 2px; }
  .ep-h6-ftabs button { font-size: 13px; }
  .ep-h6-fen { font-size: 16px; }
  .ep-h6-word__w { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-h6-reveal], #home-content :is(.ep-h6-memory, .ep-h6-step), .ep-h6-cover, .ep-h6-fpart, .ep-h6-output, .ep-h6-slot, .ep-h6-line-mask, .ep-h6-link > span { transition: none; }
  .ep-h6-circuit [data-phase], .ep-h6-band__pulse, .ep-h6-fpane, .ep-h6-word__reveal { animation: none !important; }
}

/* Secondary entries on the closing screen (moved from the former excerpt screen). */
.ep-h6-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.ep-h6-more > a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  background: transparent; color: #fff; font-size: 13.5px; text-decoration: none; transition: background-color .2s, transform .25s var(--ep-h6-ease);
}
.ep-h6-more > a .ep-h6-icon { width: 18px; height: 18px; color: currentColor; }
.ep-h6-more > a:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }

/* Complete report previews with the same source and correction hierarchy as the report. */
.ep-h6-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#home-content .ep-h6-report { box-sizing: border-box; height: calc(var(--ep-home-available-height, calc(100svh - 58px)) * .8); padding-block: 20px 24px; }
#home-content .ep-h6-report > .ep-h6-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; max-width: 1280px; }
#home-content .ep-h6-report .ep-h6-head { flex: none; margin-bottom: 14px; }
#home-content .ep-h6-report .ep-h6-eyebrow { font-size: 11px; }
#home-content .ep-h6-report .ep-h6-head h2 { margin: 8px 0; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.25; }
#home-content .ep-h6-report .ep-h6-lead { font-size: 14px; line-height: 1.6; }
#home-content .ep-h6-report .ep-h6-foot { flex: none; margin-top: 12px; font-size: 11px; }
#home-content .ep-h6-report .ep-h6-foot .ep-h6-link { font-size: 13px; }
.ep-h6-report__preview { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; border: 1px solid #d8dce2; border-radius: 8px; background: #fcfbf8; box-shadow: 0 2px 3px #1c253605, 0 24px 48px #24355212; }
.ep-h6-report__tabs { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 24px; background: #f7f8fa; border-bottom: 1px solid #dfe2e7; }
.ep-h6-report__tabs button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 50px; padding: 10px 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ep-h6-ink-3); font: inherit; cursor: pointer; }
.ep-h6-report__tabs b { font-size: 15px; font-weight: 650; }
.ep-h6-report__tabs span { font-size: 11px; color: #798395; }
.ep-h6-report__tabs [aria-selected="true"] { border-bottom-color: #354d74; background: transparent; color: var(--ep-h6-ink-1); }
.ep-h6-report__tabs button:focus-visible { outline: 2px solid var(--ep-h6-blue-4); outline-offset: -2px; }
.ep-h6-report__panels { flex: 1; min-height: 0; display: grid; }
.ep-h6-report__panel { min-height: 0; min-width: 0; height: 100%; box-sizing: border-box; padding: 26px 30px; overflow: auto; overscroll-behavior: auto; scrollbar-width: thin; color: #43516a; font-family: var(--ds-sans, sans-serif); font-size: 14px; line-height: 1.75; }
.ep-h6-report__panel[hidden], .ep-h6-r-correction[hidden] { display: none !important; }
.ep-h6-report__panel[data-h6-report-panel="map"] { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding: 18px; overflow: hidden; background: #edf2f9; }
.ep-h6-report__panel[data-h6-report-panel="vocabulary"] { padding: 18px; background: #edf2f9; }
.ep-h6-report__panel[data-h6-report-panel="support"] { padding: 0; }
.ep-h6-report__panel > * { min-width: 0; }
.ep-h6-report__panel :is(p, blockquote, h3, h4) { margin: 0; }
.migration-main .ep-h6-report__panel h3 { margin: 0 0 12px; color: var(--ep-h6-ink-1); font-size: 17px; line-height: 1.45; font-weight: 650; }
.ep-h6-report__panel :is(button, summary) { cursor: pointer; }
.ep-h6-report__panel :is(button, summary, [tabindex]):focus-visible, .ep-h6-report__panel:focus-visible { outline: 2px solid var(--ep-h6-blue-4); outline-offset: -2px; }
.ep-h6-r-paper { display: flex; flex-direction: column; min-height: 0; border: 1px solid #c5d2e2; border-top: 3px solid #6687af; border-radius: 6px; background: #fbf9f5; overflow: hidden; box-shadow: var(--ds-shadow-2); }
.migration-main .ep-h6-r-paper > h3 { display: flex; align-items: center; gap: 10px; flex: none; margin: 0; padding: 17px 24px; border-bottom: 1px solid #e3eaf3; background: linear-gradient(110deg, #f0f5fc, #fbfdff); font-size: 16px; font-weight: 600; color: #30496c; }
.ep-h6-r-paper > h3::before { content: ''; flex: 0 0 14px; width: 14px; height: 18px; border: 1.5px solid #6c86a8; border-radius: 4px; background: repeating-linear-gradient(to bottom, #91a6c0 0 1px, transparent 1px 4px) center / 8px 9px no-repeat; }
.ep-h6-r-paper__body { flex: 1; min-height: 0; padding: 22px 24px 26px; overflow: auto; overscroll-behavior: auto; scrollbar-width: thin; font-family: inherit; font-size: 17px; line-height: 1.85; color: #263952; }
.ep-h6-report__panel .ep-h6-r-paper__body p + p { margin-top: 20px; }
#home-content .ep-h6-r-sentence { display: inline; padding: 0; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; white-space: normal; }
.ep-h6-report [data-h6-report-kind] { --h6-report-accent: #667085; --h6-report-tint: #eef1f5; }
.ep-h6-report [data-h6-report-kind="correction"] { --h6-report-accent: #7b61aa; --h6-report-tint: #f5f0fc; }
#home-content .ep-h6-r-sentence[aria-pressed="true"] { background: var(--h6-report-tint); box-shadow: 0 0 0 3px var(--h6-report-tint); }
#home-content .ep-h6-r-sentence:hover { background: #e7edf6; }
#home-content .ep-h6-r-sentence--logic { text-decoration: underline; text-decoration-color: #9a783e; text-underline-offset: 4px; }
.ep-h6-r-number { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 21px; height: 21px; margin-left: 4px; padding-inline: 4px; border-radius: 99px; background: #667085; color: #fff; font: 700 11px/1 var(--ds-sans, sans-serif); vertical-align: 2px; }
.ep-h6-r-number.is-correction { background: #7b61aa; }
.ep-h6-r-number.is-logic { background: #965f13; }
.ep-h6-report .ep-h6-problem { padding: 0; color: inherit; background: transparent; text-decoration: underline; text-decoration-color: #7a67a8; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.ep-h6-r-changes { min-height: 0; padding: 0 2px 4px; overflow: auto; overscroll-behavior: auto; scrollbar-width: thin; }
.migration-main .ep-h6-r-changes > h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; color: #30496c; }
.ep-h6-r-index { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding: 4px 0 10px; background: #edf2f9; }
.ep-h6-r-index button { max-width: 100%; min-height: 34px; padding: 5px 9px; border: 1px solid #d7e2f1; border-radius: 5px; background: #fbf9f5; color: #526786; font: inherit; font-size: 12px; line-height: 1.5; text-align: left; white-space: normal; }
.ep-h6-r-index [aria-pressed="true"] { border-color: var(--h6-report-accent); color: var(--h6-report-accent); background: var(--h6-report-tint); font-weight: 700; }
.ep-h6-r-correction, .ep-h6-r-bridge, .ep-h6-r-anchor, .ep-h6-r-version, .ep-h6-r-vocab { min-width: 0; }
.ep-h6-r-correction { padding: 16px 18px; border: 1px solid #b9cadd; border-top: 3px solid var(--h6-report-accent); border-radius: 10px; background: #fbf9f5; box-shadow: var(--ds-shadow-2); font-size: 15px; }
.ep-h6-r-tag { display: inline-block; padding: 2px 0; border-radius: 0; background: transparent; color: var(--ep-h6-blue-5); font-size: 11px; font-weight: 600; }
.ep-h6-r-correction__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.ep-h6-r-correction__meta { display: flex; align-items: center; gap: 8px; color: var(--h6-report-accent); font-size: 13px; font-weight: 700; }
.ep-h6-r-badge { flex: none; padding: 4px 8px; border-radius: 6px; background: var(--h6-report-tint); }
.migration-main .ep-h6-r-correction__head h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.ep-h6-r-correction__head .ep-h6-r-tag { padding: 0; color: inherit; font: inherit; }
.ep-h6-r-correction .ep-h6-r-field { margin-top: 14px; }
.ep-h6-r-revision { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 10px; padding:10px 12px; border-radius:6px; background:#eef6f3; font-size:19px; line-height:1.5; }
.ep-h6-r-revision strong { color:#28534d; font-weight:600; }
.ep-h6-r-revision del { color:#7f626a; text-decoration-thickness:1px; }
.ep-h6-r-field { margin-top: 18px; }
.migration-main .ep-h6-r-field h4 { margin: 0 0 6px; font-size: 12px; line-height: 1.6; color: var(--ep-h6-ink-3); font-weight: 500; }
.ep-h6-r-correction .ep-h6-r-field h4 { font-size: 13px; color: #52647c; }
.ep-h6-report__panel .ep-h6-r-quote { margin: 12px 0; padding: 0 0 0 16px; border: 0; border-left: 2px solid #c7d2e3; color: #35435b; font-family: inherit; font-size: 17px; line-height: 1.75; }
.ep-h6-r-correction .ep-h6-r-quote { margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--h6-report-accent); border-radius: 0 6px 6px 0; background: #fbf9f5; color: #263952; font-size: 17px; }
.ep-h6-report__panel .ep-h6-r-muted { color: var(--ep-h6-ink-3); font-size: 12px; margin-top: 6px; }
.ep-h6-report__panel .ep-h6-r-improved { padding: 14px 18px; border-left: 2px solid #829d91; background: #eaf0eb; color: #31574c; font-family: inherit; font-size: 18px; line-height: 1.75; }
.ep-h6-r-correction .ep-h6-r-improved { padding: 14px 16px; border-left: 0; border-radius: 8px; background: #eef6f3; color: #28534d; font-size: 17px; font-weight: 500; line-height: 1.75; }
.ep-h6-r-vocabulary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ep-h6-r-vocab { padding: 22px; border: 1px solid #ccd5e5; border-radius: 10px; background: var(--ep-h6-card); box-shadow: 0 5px 14px #304c7612; }
.ep-h6-r-vocab > header, .ep-h6-r-bridge > header, .ep-h6-r-anchor > header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ep-h6-r-vocab > header > b { color: var(--ep-h6-blue-5); }
.ep-h6-r-vocab .ep-h6-r-tag { padding: 4px 9px; border-radius: 999px; background: #e8edf7; }
.ep-h6-r-vocab.is-retained .ep-h6-r-tag { color: #355f57; background: #e8f1ec; }
.ep-h6-r-vocab .ep-h6-r-quote { padding: 8px 12px; border-left: 3px solid #b77c80; font-family: inherit; font-size: 14px; line-height: 1.8; }
.ep-h6-r-vocab .ep-h6-r-swap { margin: 16px 0; font-size: 15px; }
.ep-h6-r-swap strong { color: #355f57; }
.ep-h6-r-swap > span { margin-inline: 5px; color: var(--ep-h6-blue-5); }
.migration-main .ep-h6-report__panel .ep-h6-r-word { margin: 18px 0 12px; color: #293b68; font-family: inherit; font-size: 26px; line-height: 1.3; font-weight: 750; }
.ep-h6-r-word small { font-size: 12px; font-weight: 500; }
.ep-h6-r-word em { color: var(--ep-h6-ink-3); margin-left: 4px; }
.ep-h6-report__panel .ep-h6-r-pattern { width: fit-content; max-width: 100%; margin-top: 14px; padding: 6px 8px; border-radius: 6px; background: #e8edf7; color: #405778; }
.ep-h6-r-collocations { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; }
.ep-h6-r-collocations span { padding: 5px 8px; border-radius: 5px; background: #e8f1ec; color: #355f57; }
.ep-h6-report__panel .ep-h6-r-example { margin-top: 18px; font-size: 14px; line-height: 1.8; }
.ep-h6-r-vocab footer { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #c7d2e3; font-size: 12px; color: var(--ep-h6-ink-3); }
.ep-h6-r-vocab footer p + p { margin-top: 6px; }
.ep-h6-r-bridge { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 32px; align-items: start; }
.ep-h6-r-bridge > header { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid #dedfdd; margin-bottom: 0; }
.ep-h6-r-logic-source { min-width: 0; padding-right: 28px; border-right: 1px solid #dedfdd; }
.ep-h6-r-logic-source > .ep-h6-r-field:first-child { margin-top: 0; }
.ep-h6-r-bridge > header, .ep-h6-r-anchor > header { justify-content: space-between; }
.ep-h6-r-bridge > header .ep-h6-link { border: 0; background: transparent; padding: 0; font-size: 12px; }
.ep-h6-r-quote.is-logic { border-left-color: #947039; }
.ep-h6-r-question { color: var(--ep-h6-ink-1); font-size: 21px; line-height: 1.6; font-weight: 550; }
.ep-h6-r-details { margin-top: 14px; }
.ep-h6-r-details > summary { width: fit-content; color: var(--ep-h6-blue-5); font-size: 13px; font-weight: 600; }
.ep-h6-r-details[open] > summary { margin-bottom: 10px; }
.ep-h6-r-model { min-width: 0; margin-top: 0; }
.ep-h6-r-model > summary { font-size: 16px; color: var(--ep-h6-ink-1); }
.ep-h6-r-model .ep-h6-r-improved { margin-top: 18px; font-size: 20px; }
.ep-h6-report__panel .ep-h6-r-preserve { margin-top: 24px; padding-top: 16px; border-top: 1px solid #dfe4df; color: #355f57; }
.ep-h6-r-support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.ep-h6-r-anchor, .ep-h6-r-version { padding: 24px; }
.ep-h6-r-versions { display: contents; }
.ep-h6-r-version { border-left: 1px solid #e1e2df; }
.migration-main .ep-h6-r-version h3 { margin: 8px 0 16px; font-size: 22px; }
.ep-h6-r-anchor > header > b { font-size: 19px; color: var(--ep-h6-ink-1); }
.ep-h6-r-anchor > header { color: #4d6e7c; font-size: 12px; }
.ep-h6-r-fixed { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid #e1e2df; font-size: 13px; }
.ep-h6-r-fixed > b { display: block; margin-bottom: 6px; font-size: 11px; color: var(--ep-h6-ink-3); }
.ep-h6-r-highlight { padding: 1px 0; border-radius: 3px; color: inherit; background: #e4ecf7; }
.ep-h6-r-version > small { display: block; margin-bottom: 5px; color: var(--ep-h6-ink-3); font-size: 12px; }
.ep-h6-r-version > .ep-h6-r-details { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e1e2df; }
.ep-h6-r-version .ep-h6-r-details p { font-family: inherit; font-size: 17px; line-height: 1.75; }
@media (min-width: 801px) and (max-width: 1100px) {
  .ep-h6-report__tabs button { flex-direction: column; gap: 2px; }
  .ep-h6-r-support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-h6-r-anchor { grid-column: 1 / -1; border-bottom: 1px solid #e1e2df; }
  .ep-h6-r-paper__body { padding-inline: 18px; }
}
@media (max-width: 800px) {
  #home-content .ep-h6-report { height: auto; padding-block: 28px; }
  #home-content .ep-h6-report .ep-h6-head h2 { font-size: 27px; }
  #home-content .ep-h6-report .ep-h6-lead { font-size: 13px; }
  #home-content .ep-h6-report .ep-h6-foot { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .ep-h6-report__preview { flex: none; height: min(680px, 78svh); }
  .ep-h6-report__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 12px; }
  .ep-h6-report__tabs button { min-height: 46px; padding: 7px 4px; gap: 6px; }
  .ep-h6-report__tabs b { font-size: 13px; }
  .ep-h6-report__tabs span { font-size: 10px; }
  .ep-h6-report__panel { padding: 18px; }
  .ep-h6-report__panel[data-h6-report-panel="map"] { display: block; padding: 12px; overflow: auto; }
  .ep-h6-report__panel[data-h6-report-panel="vocabulary"] { padding: 12px; }
  .ep-h6-r-paper { height: 230px; margin-bottom: 16px; }
  .migration-main .ep-h6-r-paper > h3 { padding: 14px 18px; }
  .ep-h6-r-paper__body { padding: 18px; font-size: 17px; }
  .ep-h6-r-changes { padding: 0; overflow: visible; }
  .ep-h6-r-index { position: static; }
  .ep-h6-r-vocabulary, .ep-h6-r-support, .ep-h6-r-bridge { grid-template-columns: minmax(0, 1fr); }
  .ep-h6-r-logic-source { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid #dedfdd; }
  .ep-h6-r-anchor, .ep-h6-r-version { padding: 20px; border-right: 0; border-left: 0; border-bottom: 1px solid #e1e2df; }
  .ep-h6-r-correction, .ep-h6-r-vocab { padding: 16px; }
  .ep-h6-r-question { font-size: 19px; }
}

/* A quieter two-column feature area after the primary product demonstrations. */
.ep-h6-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 12px 12px; }
#home-content .ep-h6-feature-grid > .ep-home-section { min-width: 0; padding: 24px 24px; }
.ep-h6-feature-grid .ep-h6-wrap { display: flex; flex-direction: column; width: 100%; height: 100%; }
#home-content .ep-h6-feature-grid .ep-h6-head { width: 100%; margin-bottom: 18px; }
#home-content .ep-h6-feature-grid .ep-h6-head h2 { margin: 8px 0 10px; font-size: clamp(28px, 2.3vw, 32px); }
#home-content .ep-h6-feature-grid .ep-h6-lead { font-size: 15px; line-height: 1.75; }
#home-content .ep-h6-feature-grid .ep-h6-foot { justify-content: center; margin-top: auto; padding-top: 18px; }
#home-content .ep-h6-feature-grid .ep-h6-loop__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
.ep-h6-feature-grid .ep-h6-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-content: start; gap: 4px 10px; min-height: 88px; padding: 11px 14px; border-radius: 14px; }
.ep-h6-feature-grid .ep-h6-step small { align-self: center; }
.ep-h6-feature-grid .ep-h6-step b { margin: 0; }
.ep-h6-feature-grid .ep-h6-step span { grid-column: 2; }
.ep-h6-feature-grid .ep-h6-step:last-child { grid-column: 1 / -1; min-height: 68px; }
.ep-h6-feature-grid .ep-h6-step.is-on { transform: translateY(-4px); box-shadow: 0 12px 24px #2f4a7330; }
.ep-h6-feature-grid .ep-h6-band { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 14px; }
.ep-h6-feature-grid .ep-h6-band > span { line-height: 1.6; }
#home-content .ep-h6-feature-grid .ep-h6-circuit__view { margin-top: 12px; }
/* Reading, material and vocabulary share one working shelf. */
.ep-h6-resource-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin: 0 12px 12px; }
#home-content .ep-h6-resource-grid > section { padding: 0; background: transparent; }
.ep-h6-resource-grid .ep-h6-wrap { display: flex; flex-direction: column; height: 100%; max-width: none; min-height: 0; }
.ep-h6-resource-grid .ep-h6-comparison, .ep-h6-resource-grid .ep-h6-fpanel { background: var(--ep-h6-paper-2); border: 1px solid var(--ep-h6-line-1); border-radius: 12px; box-shadow: none; }
.ep-h6-resource-head, .ep-h6-foundation .ep-h6-fpanel__top { padding: 24px 18px 0; }
.ep-h6-resource-head { padding-bottom: 20px; text-align: center; }
#home-content .ep-h6-resource-head h2 { margin: 0 0 8px; font-size: 30px; }
.ep-h6-resource-head p, .ep-h6-fpanel__title small { color: var(--ep-h6-ink-3); font-size: 13px; line-height: 1.6; }
.ep-h6-foundation .ep-h6-found { flex: 1; min-height: 0; margin: 0; }
.ep-h6-fpanel__title { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ep-h6-fpanel__title b { font-size: 30px; line-height: 1.22; }
.ep-h6-foundation .ep-h6-fpanel__body { min-height: 0; padding: 16px 20px; overflow: auto; scrollbar-width: thin; }
.ep-h6-foundation .ep-h6-fpanel__foot { flex-direction: column; text-align: center; gap: 8px; padding: 12px 16px 16px; }
.ep-h6-resource-grid > .ep-h6-bridge { grid-column: 1 / -1; margin: 0; padding: 6px 12px 14px; font-size: 13px; }
@media (min-width: 1101px) {
  .ep-h6-resource-grid > section { height: min(704px, calc(var(--ep-home-available-height, calc(100svh - 58px)) * .9)); }
}
@media (max-width: 1100px) {
  .ep-h6-resource-grid { grid-template-columns: minmax(0, 1fr); }
  .ep-h6-resource-grid .ep-h6-found { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-h6-study__view { max-height: 320px; }
}
@media (min-width: 1201px) {
  .ep-h6-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  #home-content > :is(.ep-h6-section, .ep-h6-circuit), .ep-h6-feature-grid { margin-inline: 8px; margin-bottom: 8px; }
  #home-content .ep-h6-feature-grid > .ep-home-section { padding: 32px 18px; }
  #home-content .ep-h6-feature-grid .ep-h6-loop__row { grid-template-columns: minmax(0, 1fr); }
  .ep-h6-feature-grid .ep-h6-step { min-height: 0; }
  .ep-h6-feature-grid .ep-h6-band { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ep-h6-resource-grid { margin-inline: 8px; }
  .ep-h6-resource-grid .ep-h6-found { grid-template-columns: minmax(0, 1fr); }
}
