/* Phone task surfaces */
@media screen and (max-width: 600px), screen and (pointer: coarse) and (max-width: 1000px) and (max-height: 500px) {
  html:has(body.ep-mobile-shell), body.ep-mobile-shell,
  body.ep-mobile-shell :is(textarea, .ep-chat-messages, .ep-wordbook-card__body, .ep-recap-grid, .ep-phone-study-sheet) {
    scrollbar-width: none;
    scrollbar-gutter: auto;
  }
  html:has(body.ep-mobile-shell)::-webkit-scrollbar,
  body.ep-mobile-shell::-webkit-scrollbar,
  body.ep-mobile-shell :is(textarea, .ep-chat-messages, .ep-wordbook-card__body, .ep-recap-grid, .ep-phone-study-sheet)::-webkit-scrollbar { display: none; width: 0; height: 0; }

  body.ep-mobile-shell.ep-mobile-learning .ep-mobile-learning-nav a[aria-current="page"]::after {
    background: linear-gradient(100deg, #526fe7, #7961ce);
  }
  body.ep-mobile-learning .ep-mobile-library .ep-library-categories button[aria-pressed="true"]::after {
    background: linear-gradient(135deg, #fff 5%, #eaf1ff 72%, #f1f2ff);
    box-shadow: inset 0 1px 0 #fff, 0 3px 10px #6a8bd225;
  }

  body.ep-mobile-shell.ep-mobile-learning .ep-mobile-learning-nav:not([hidden]) { background: var(--ep-mobile-top-light), #fff; }

  /* Titles live beside the original cover art, with one tap target per book. */
  body.ep-mobile-shell .migration-main:has(.ep-bookshelf) { height: auto; min-height: 100dvh; }
  body.ep-mobile-shell .migration-main:has(.ep-bookshelf,.ep-book-entry:not(.ep-book-entry--personal)) {
    background: linear-gradient(160deg,#eff7f3 0,#fff 47%) !important;
  }
  body.ep-mobile-shell .migration-main:has(.ep-bookshelf) > .block-container { height: auto; padding: 12px 20px 26px; }
  body.ep-mobile-shell .ep-bookshelf { height: auto; }
  body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-tools { display: none; }
  body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-heading { text-align: left; margin: 8px 0 12px; }
  body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-heading h1 { font: 720 1.65rem/1.28 system-ui, sans-serif; letter-spacing: -.04em; color: #162829; }
  body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-collection { flex: none; max-height: none; container-type: normal; }
  body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-grid { width: 100%; grid-template-columns: minmax(0,1fr); gap: 0; padding: 0; }
  body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-grid .ep-book {
    grid-column: 1; display: grid; grid-template-columns: 2.85rem minmax(0,1fr) auto;
    grid-template-rows: auto auto; align-content: center; column-gap: .85rem;
    min-height: 4rem; height: auto; aspect-ratio: auto; padding: .4rem 0; border: 0;
    border-bottom: 1px solid #e6ece9; border-radius: 0; background: transparent;
    color: #1d302e; text-align: left; box-shadow: none; animation: none; container-type: normal;
  }
  body.ep-mobile-shell .ep-bookshelf .ep-book .ep-book__art {
    grid-column: 1; grid-row: 1 / 3; align-self: center; width: 100%; height: 3.15rem;
    border-radius: 2px 5px 5px 2px; background: var(--book-paper);
  }
  body.ep-mobile-shell .ep-bookshelf .ep-book :is(.ep-book__publisher,.ep-book__subtitle,.ep-book__bottom > span:last-child) { display: none; }
  body.ep-mobile-shell .ep-bookshelf .ep-book .ep-book__text { grid-column: 2; grid-row: 1; align-self: end; padding: 0; }
  body.ep-mobile-shell .ep-bookshelf .ep-book .ep-book__title { color: #1c2c2c; font: 660 1.04rem/1.4 system-ui,sans-serif; white-space: normal; }
  body.ep-mobile-shell .ep-bookshelf .ep-book .ep-book__bottom { grid-column: 2; grid-row: 2; align-self: start; margin: .13rem 0 0; padding: 0; color: #596b68; font: 450 .75rem/1.4 system-ui,sans-serif; letter-spacing: .025em; }
  body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-grid .ep-book::after { content: '›'; grid-column: 3; grid-row: 1 / 3; align-self: center; color: #637771; font-size: 1.25rem; }
  body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-grid .ep-book:focus-visible {
    outline: none; box-shadow: none !important;
  }
  body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-grid .ep-book:focus-visible .ep-book__title {
    text-decoration: underline; text-underline-offset: .2em;
  }
  body.ep-mobile-shell .migration-main:has(.ep-book-plan-page) { box-sizing: border-box; min-height: 100dvh; }
  body.ep-mobile-shell .migration-main:has(.ep-book-plan-page) > .block-container {
    padding: 0 clamp(16px, 5vw, 28px) 12px;
  }
  body.ep-mobile-shell .migration-main:has(.ep-book-plan-page) #home-content { align-items: stretch; }
  body.ep-mobile-shell .ep-book-plan-page {
    --plan-cover: clamp(66px, calc(22dvh - 58px), 144px);
    display: flex; flex-direction: column; margin: 0 auto; color: #233932;
  }
  body.ep-mobile-shell .ep-book-plan-page > .ep-wordbook-back {
    align-self: flex-start; min-height: 44px; margin: 0; color: #556a62;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-entry-layout {
    flex: 1; display: grid; grid-template-columns: minmax(0,1fr) var(--plan-cover) minmax(0,1fr);
    grid-template-rows: minmax(min-content,1fr) auto auto minmax(min-content,.26fr) minmax(min-content,.29fr) auto;
    align-items: center; gap: 0;
  }
  body.ep-mobile-shell .ep-book-plan-page :is(.ep-book-entry-stage,.ep-book-entry-hero,.ep-book-settings-panel) { display: contents; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-entry-hero > .ep-book {
    grid-area: 1 / 2; width: 100%; filter: drop-shadow(0 8px 8px #29423c24);
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-entry-neighbor {
    grid-area: 1 / 1; width: max(44px, calc(var(--plan-cover) * .58)); opacity: .8;
    justify-self: center; transform: rotate(-7deg);
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-entry-neighbor:last-child {
    grid-column: 3; justify-self: center; transform: rotate(7deg);
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-settings-heading {
    grid-area: 2 / 1 / auto / -1; margin: 0; padding-top: clamp(4px, 1.1dvh, 12px);
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-settings-heading > span { color: #62726b; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-settings-title { flex-wrap: nowrap; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-settings-title h1 {
    margin: 0; font: 700 clamp(23px, 6.6vw, 29px)/1.3 system-ui,sans-serif; color: #20352d;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-browse-link {
    min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 14px; color: #426657;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-progress {
    grid-area: 3 / 1 / auto / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px; padding: 0; background: transparent; color: #566b60;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-progress :is(span,small,strong) {
    white-space: nowrap; font: 500 13px/1.4 system-ui,sans-serif; font-variant-numeric: tabular-nums; color: inherit;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-progress small { grid-area: 1 / 2; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-progress strong { grid-area: 1 / 3; font-weight: 650; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-progress progress { height: 4px; margin: 0; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-progress progress::-webkit-progress-value { background: #517c68; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-progress progress::-moz-progress-bar { background: #517c68; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-fields {
    grid-area: 4 / 1 / auto / -1; align-self: end; display: block; margin-top: clamp(12px, 2.5dvh, 22px);
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-fields > label {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(100px, .55fr);
    gap: 12px; align-items: center; min-width: 0; padding-block: 10px; border-top: 1px solid #e3eae5;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-fields > label > span {
    font: 600 15px/1.4 system-ui,sans-serif; color: #314d42;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-fields > div,
  body.ep-mobile-shell .ep-book-plan-page #book-total-hint,
  body.ep-mobile-shell .ep-book-plan-page [data-book-review-status] {
    display: none;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-fields :is(.ep-plan-select,select) {
    min-height: 44px; padding: 7px 12px; border: 1px solid #d8e3dd; border-radius: 10px; background: #f6f9f7; box-shadow: none;
    color: #264738; font: 600 16px/1.4 system-ui,sans-serif;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-preview {
    grid-area: 5 / 1 / auto / -1; align-self: end; margin: 0;
    display: grid; padding: 8px 0 10px; border: 0;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-preview > span { display: block; color: #596d62; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-preview strong {
    grid-column: 1 / -1; margin-top: 2px; font: 650 clamp(20px, 5.6vw, 26px)/1.3 system-ui,sans-serif; color: #20352d;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-preview p:empty { display: none; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-actions { grid-area: 6 / 1 / auto / -1; margin: 0; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-actions .ep-wordbook-button {
    width: 100%; min-height: 46px; border: 0; border-radius: 14px; background: #295c4a; color: #fff; box-shadow: none;
  }
  body.ep-mobile-shell .ep-book-plan-page .ep-bookshelf-status { grid-column: 1 / -1; }
  body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-preview [data-book-plan-note] { grid-column: 1 / -1; }

  @media (max-height: 680px) {
    body.ep-mobile-shell .ep-book-plan-page { position: relative; }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-settings-heading { padding-top: 2px; }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-settings-heading > span {
      position: absolute; inset: 0 0 auto auto; display: flex; align-items: center; min-height: 44px;
    }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-fields { margin-top: 10px; }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-preview { padding: 5px 0; }
  }

  @media (orientation: landscape) and (max-height: 500px) {
    body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px;
    }
    body.ep-mobile-shell .ep-bookshelf .ep-bookshelf-grid .ep-book { grid-column: auto; }
    body.ep-mobile-shell .ep-book-plan-page { --plan-cover: clamp(66px, 14vw, 102px); width: 100%; }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-entry-layout {
      grid-template-columns: minmax(44px, .6fr) var(--plan-cover) minmax(44px, .6fr) minmax(0, 3fr);
      grid-template-rows: repeat(5, auto); align-content: start; column-gap: 8px;
    }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-entry-hero > .ep-book,
    body.ep-mobile-shell .ep-book-plan-page .ep-book-entry-neighbor { grid-row: 1 / span 4; }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-settings-heading { grid-area: 1 / 4; }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-progress { grid-area: 2 / 4; }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-fields { grid-area: 3 / 4; margin-top: 4px; }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-preview { grid-area: 4 / 4; }
    body.ep-mobile-shell .ep-book-plan-page .ep-book-plan-actions { grid-area: 5 / 4; }
  }

  /* Personal vocabulary opens on saved words and search, with book browsing below. */
  body.ep-mobile-shell .migration-main:has(.ep-book-entry--personal),
  body.ep-mobile-shell .migration-main:has(.migration-review-page) { background: #fff !important; }
  body.ep-mobile-shell .migration-main:has(.ep-book-entry--personal) > .block-container,
  body.ep-mobile-shell .migration-main:has(.migration-review-page) > .block-container { padding: 14px 20px 28px; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-book-entry-layout { display: flex; flex-direction: column; gap: 28px; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-book-entry-stage { order: 1; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-book-entry-collection {
    width: 100%; max-width: none; max-height: none; padding: 0; overflow: visible; background: #fff; border: 0; box-shadow: none;
  }
  body.ep-mobile-shell .ep-book-entry--personal .ep-book-settings-heading h1 { font: 730 28px/1.25 system-ui,sans-serif; color: #24272e; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-personal-toolbar {
    display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; margin: 16px 0 8px;
  }
  body.ep-mobile-shell .ep-book-entry--personal .ep-personal-toolbar label { grid-column: 1/-1; min-width: 0; color: #606773; font-size: 13px; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-personal-toolbar input { min-height: 44px; border: 0; border-radius: 12px; background: #f2f4f6; font-size: 16px; }
  body.ep-mobile-shell .ep-book-entry--personal [data-personal-action="study"] { min-height: 44px; background: #272930; color: white; border: 0; border-radius: 13px; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-personal-empty { padding: 20px 0 8px; border: 0; background: transparent; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-personal-empty h2 { font-size: 19px; color: #343841; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-personal-list { grid-template-columns: minmax(0,1fr); gap: 0; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-personal-card { padding: 15px 0; background: none; border: 0; border-top: 1px solid #e8ebf0; border-radius: 0; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-personal-card h2 { font: 660 21px/1.28 system-ui,sans-serif; color: #20242c; }
  body.ep-mobile-shell .ep-book-entry--personal .ep-personal-card summary { padding: 8px 0; }
  body.ep-mobile-shell .migration-main:has(.ep-wordbook-history) > .block-container { padding: 0 0 20px; }
  body.ep-mobile-shell .ep-wordbook-history { margin: 0 auto; padding: 0; }
  body.ep-mobile-shell .ep-wordbook-history .wh-island { border: 0; border-radius: 0; box-shadow: none; }
  body.ep-mobile-shell .ep-wordbook-history[data-has-back-entry] .wh-back { display: none; }
  body.ep-mobile-shell .ep-wordbook-history .wh-scroll { scrollbar-width: none; }
  body.ep-mobile-shell .ep-wordbook-history .wh-scroll::-webkit-scrollbar { display: none; }
  body.ep-mobile-shell .ep-wordbook-history .wh-year select { min-height: 42px; }
  body.ep-mobile-shell .ep-wordbook-history .wh-year > span { top: 50%; transform: translateY(-50%); }

  /* Screen preview of the printable report. Paper uses its own print stylesheet. */
  body.ep-mobile-shell .migration-review-page { color: #272c34; }
  body.ep-mobile-shell .ep-review-header { display: block; margin: 6px 0 18px; }
  body.ep-mobile-shell .ep-review-header h1 { font: 720 clamp(25px,7.3vw,34px)/1.24 system-ui,sans-serif; margin: 8px 0 14px; }
  body.ep-mobile-shell .ep-review-header > div:first-child > p { display: none; }
  body.ep-mobile-shell .ep-review-header .ep-review-actions { align-items: center; gap: 16px; }
  body.ep-mobile-shell .ep-review-header .ep-review-actions button { order: -1; min-height: 44px; border: 0; border-radius: 14px; background: #272930; color: #fff; }
  body.ep-mobile-shell .ep-review-header .ep-review-actions a { padding: 10px 0; border: 0; background: none; color: #545e70; }
  body.ep-mobile-shell .migration-review-page :is(.ep-review-report-intro,.ep-review-report-section,.ep-review-training-appendix,.ep-review-footer) {
    margin-block: 20px; padding: 16px 0 0; background: none; border: 0; border-top: 1px solid #e7ebef; border-radius: 0; box-shadow: none;
  }
  body.ep-mobile-shell .ep-review-report-intro .ep-review-report-question { padding: 0; background: transparent; border: 0; color: #2f343c; }

  /* Lark: a quiet paper surface for the conversation and its composer. */
  body.ep-mobile-shell:has([data-lark-split]) {
    --ep-assistant-paper: #fff;
    --ep-assistant-ink: #292c33;
    --ep-assistant-title: #22252b;
  }
  body.ep-mobile-shell .ep-lark-main :is(.ep-chat-shell, .ep-chat-conversation, .ep-chat-messages, .ep-chat-composer) { background: #fff; }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier .ep-chat-header {
    background: var(--ep-mobile-top-light), #fff;
    border-bottom-width: 0;
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier.is-entry .ep-chat-messages {
    padding: 18px 22px;
    gap: 12px 8px;
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier.is-entry .ep-coach-low-suggestions h2 {
    font-size: clamp(23px, 6.4vw, 28px); line-height: 1.45; letter-spacing: -.7px; color: #23262c;
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier .ep-coach-low-suggestions > header {
    min-height: 0; margin-bottom: 0;
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier .ep-chat-composer { padding: 8px 16px 10px; }
  body.ep-top-navigation.ep-mobile-shell .migration-main:has([data-lark-split]) { height: min(100dvh, var(--ep-lark-visible-height, 100dvh)); }
  body.ep-mobile-shell .ep-chat-composer:has([data-phone-composer]) { overflow: visible; }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier [data-phone-composer] {
    --phone-compose-paper: #eeedef; --phone-compose-ink: #23262c; --phone-compose-hint: #656970;
    --phone-compose-blue: #b9d6f4; --phone-compose-menu: #fff; --phone-compose-menu-line: #d6d8dd;
    --phone-compose-tool: 44px; --phone-compose-gap: 5px; --phone-compose-inset: 4px;
    display: grid; position: relative; align-items: center;
    grid-template-columns: var(--phone-compose-tool) minmax(0, 1fr) var(--phone-compose-tool);
    grid-template-areas: "add text send"; column-gap: var(--phone-compose-gap); row-gap: 0;
    min-height: 52px; padding: 4px var(--phone-compose-inset); border: 0; border-radius: 26px;
    color: var(--phone-compose-ink); background: var(--phone-compose-paper); color-scheme: light; box-shadow: none; outline: none;
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier [data-phone-composer]:is([data-expanded], :has(.ep-coach-images--draft, .ep-assistant-profile-tag-row)) {
    grid-template-areas: "text text text" "add . send";
    row-gap: 6px; padding-top: 12px; border-radius: 22px;
  }
  body.ep-mobile-shell [data-phone-composer] :is(.ep-coach-images--draft, .ep-assistant-profile-tag-row) {
    grid-column: 1 / -1; grid-row: 1; margin-inline: 10px;
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier [data-phone-composer]:has(.ep-coach-images--draft, .ep-assistant-profile-tag-row) {
    grid-template-areas: ". . ." "text text text" "add . send";
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier [data-phone-composer]:has(.ep-coach-images--draft):has(.ep-assistant-profile-tag-row) {
    grid-template-areas: ". . ." ". . ." "text text text" "add . send";
  }
  body.ep-mobile-shell [data-phone-composer]:has(.ep-assistant-profile-tag-row) .ep-coach-images--draft { grid-row: 2; }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier .ep-coach-low-composer [data-phone-composer] :is(.ep-coach-input, [data-phone-line-measure]) {
    box-sizing: border-box; width: 100%; min-width: 0; min-height: 24px; margin: 0; padding: 0; border: 0;
    font: 400 max(16px, 1rem)/1.5 system-ui, sans-serif; letter-spacing: normal; white-space: pre-wrap; overflow-wrap: anywhere;
    color: var(--phone-compose-ink); caret-color: var(--phone-compose-ink); background: transparent; box-shadow: none;
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier .ep-coach-low-composer [data-phone-composer] .ep-coach-input {
    grid-area: text; height: auto; max-height: clamp(48px, min(24dvh, calc(var(--ep-lark-visible-height, 100dvh) * .32)), 192px);
    overflow-y: auto; scrollbar-width: none;
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier .ep-coach-low-composer
    [data-phone-composer]:is([data-expanded], :has(.ep-coach-images--draft, .ep-assistant-profile-tag-row)) .ep-coach-input { padding-inline: 13px; }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier .ep-coach-low-composer [data-phone-composer] [data-phone-line-measure] {
    position: absolute; top: 0; inset-inline: calc(var(--phone-compose-inset) + var(--phone-compose-tool) + var(--phone-compose-gap));
    width: auto; max-height: 48px; overflow: hidden; visibility: hidden; pointer-events: none;
  }
  body.ep-mobile-shell .ep-chat-shell [data-phone-composer] .ep-coach-input::placeholder { color: var(--phone-compose-hint); }
  body.ep-mobile-shell [data-phone-compose-tools] { grid-area: add; position: relative; }
  body.ep-mobile-shell [data-phone-compose-tools] > summary,
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell .ep-coach-low-composer [data-phone-composer] > :is([data-coach-send], [data-coach-cancel]) {
    box-sizing: border-box; display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px;
    margin: 0; padding: 0; list-style: none; border: none; border-radius: 50%; box-shadow: none; cursor: pointer;
  }
  body.ep-mobile-shell [data-phone-compose-tools] > summary { color: var(--phone-compose-ink); background: transparent; }
  body.ep-mobile-shell [data-phone-compose-tools] > summary::-webkit-details-marker { display: none; }
  body.ep-mobile-shell [data-phone-compose-tools] > summary svg { width: 24px; height: 24px; }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell .ep-coach-low-composer [data-phone-composer] > :is([data-coach-send], [data-coach-cancel]) {
    grid-area: send; color: #162534; background: var(--phone-compose-blue);
  }
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell .ep-coach-low-composer [data-phone-composer] > [data-coach-send]:disabled {
    color: #5d6c82; background: #e0e5ed; opacity: 1; cursor: default;
  }
  body.ep-mobile-shell .ep-lark-main [data-phone-composer] > [data-coach-send] svg { width: 22px; height: 22px; }
  body.ep-mobile-shell .ep-phone-compose-stop span { width: 14px; height: 14px; border-radius: 3px; background: currentColor; }
  body.ep-mobile-shell .ep-phone-compose-menu {
    position: absolute; z-index: 3; left: 2px; bottom: calc(100% + 8px); width: max-content;
    padding: 4px; border: 1px solid var(--phone-compose-menu-line); border-radius: 14px; background: var(--phone-compose-menu);
  }
  body.ep-mobile-shell .ep-chat-shell [data-phone-composer] .ep-phone-compose-menu button {
    display: flex; align-items: center; gap: 9px; width: 100%; height: 44px; padding: 0 12px;
    border: 0; background: transparent; color: var(--phone-compose-ink); font-size: 15px;
  }
  body.ep-mobile-shell .ep-chat-shell [data-phone-composer] .ep-phone-compose-menu svg { width: 19px; height: 19px; }
  body.ep-mobile-shell .ep-phone-compose-menu [data-coach-image-add]::after { content: "添加图片"; }
  body.ep-mobile-shell [data-phone-composer] :is(button,summary):focus-visible { outline: 2px solid #52709b; outline-offset: -2px; }
  body.ep-mobile-shell .ep-lark-main .ep-coach-cost-note { color: #68707e; }

  /* The reading surface feels like a page, with a compact tool shelf. */
  body.ep-mobile-learning .ep-phone-study--reader .ep-phone-prompt summary { min-height: 40px; display: flex; align-items: center; color: #63708a; }
  body.ep-mobile-learning .ep-phone-study--reader .ep-phone-prompt summary::after { content: '+'; margin-left: 7px; }
  body.ep-mobile-learning .ep-phone-study--reader .ep-phone-prompt[open] summary::after { content: '−'; }
  body.ep-mobile-learning .ep-phone-study--reader .ep-phone-reader-tools { min-height: 64px; }
  body.ep-mobile-learning .ep-phone-study--reader .ep-phone-reader-tools nav { background: #f2f4f7; border-radius: 14px; padding: 3px; gap: 2px; }
  body.ep-mobile-learning .ep-phone-study--reader .ep-phone-reader-tools button { min-height: 40px; padding: 8px 15px; font-size: 13px; color: #626b7c; }
  body.ep-mobile-learning .ep-phone-study--reader .ep-phone-reader-tools button[aria-pressed="true"] { color: #252933; border-radius: 11px; box-shadow: 0 1px 5px #222a3b0a; }
  body.ep-mobile-learning .ep-phone-study--reader .ep-phone-study-hint { margin: 0 0 17px; font-size: 11px; color: #707a88; }
  body.ep-mobile-learning .ep-phone-study--reader :is(.ep-study-reading-side p, .ep-study-close-text > p) { color: #252a32; line-height: 1.85; margin-bottom: 24px; }
  /* A mark at the end of each annotated passage keeps the English easy to scan. */
  body.ep-mobile-learning .ep-phone-study--reader [data-study-pair-group] .ep-study-reading-mark { text-decoration: none; }
  body.ep-mobile-learning .ep-phone-study--reader:not([data-study-hide-underlines]) [data-study-pair-group][data-study-marks]::after {
    content: ''; display: inline-block; width: .62em; height: .62em; margin-inline: .16em .05em; vertical-align: super;
    background: #667cbb; border-radius: .22em .22em .22em 0;
  }
  body.ep-mobile-learning .ep-phone-study--reader [data-study-pair-group]:focus-visible { background: #eef3fd; }
  body.ep-mobile-learning .ep-phone-study-sheet { padding-inline: 22px; background: #fff; border-radius: 28px 28px 0 0; color: #282e37; }
  body.ep-mobile-learning .ep-phone-study-sheet > header { background: var(--ep-mobile-top-light), #fff; margin-bottom: 18px; }

  /* A viewport-sized study desk; revealed definitions scroll inside the card. */
  body.ep-mobile-shell:has(.ep-wordbook-study) :is(.migration-app, .migration-main) { background: #fff !important; }
  body.ep-mobile-shell .migration-main:has(.ep-wordbook-study) > .block-container { width: 100%; padding: 8px 18px 12px; }
  body.ep-mobile-shell .ep-wordbook-study {
    display: flex; flex-direction: column; height: calc(100svh - var(--ep-workspace-header-height, 62px) - var(--ep-mobile-nav-height, 64px) - 20px); min-height: 470px;
  }
  body.ep-mobile-shell .ep-wordbook-study-tools { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
  body.ep-mobile-shell .ep-wordbook-study-tools [data-wordbook-back] { min-height: 40px; margin: 0; padding: 6px 0; border: 0; background: none; box-shadow: none; color: #59677c; font-size: 12px; }
  body.ep-mobile-shell .ep-wordbook-study-tools [data-wordbook-back] { display: grid; place-items: center; width: 44px; border-radius: 10px; }
  body.ep-mobile-shell .ep-wordbook-study-tools [data-wordbook-back] > span { display: none; }
  body.ep-mobile-shell .ep-wordbook-study-tools [data-wordbook-back]::before { content: '←'; font: 400 24px/1 system-ui, sans-serif; }
  body.ep-mobile-shell .ep-wordbook-study [data-wordbook-sync-status] { margin: 0 0 8px; min-height: 24px; font-size: 10px; color: #78818e; }
  body.ep-mobile-shell .ep-wordbook-study [data-wordbook-sync-status]:empty { display: none; }
  body.ep-mobile-shell .ep-wordbook-study [data-wordbook-sync-status] button { min-height: 30px; border: 0; padding: 4px 8px; background: none; color: #526caa; }
  body.ep-mobile-shell .ep-wordbook-study [data-wordbook-learner] { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  body.ep-mobile-shell .ep-wordbook-study [data-wordbook-storage-status] { flex: none; margin: 6px 0 0; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-page { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }
  body.ep-mobile-shell .ep-wordbook-study :is(.ep-wordbook-heading > div:first-child, .ep-wordbook-shortcuts, .ep-wordbook-remaining) { display: none; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-heading {
    display: block; flex: none; margin: 9px 0 0;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-progress {
    width: auto; gap: 8px; padding: 0 0 9px;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-metric {
    justify-items: center; gap: 4px; color: var(--study-muted); font-size: .77rem;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-metric strong {
    display: flex; align-items: baseline; justify-content: center; gap: .24em;
    min-block-size: 25px; color: var(--study-ink); font-size: 1.28rem; line-height: 25px;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-metric__target {
    font-size: .82rem; color: var(--study-muted); font-weight: 500;
  }
  body.ep-mobile-shell .ep-wordbook-study :is(.ep-wordbook-metric--empty, .ep-wordbook-timer) strong {
    font-size: .91rem; font-weight: 550;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-meter {
    width: min(58px, 82%); height: 2px; margin-top: 1px; background: var(--study-line);
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-meter i {
    background: var(--study-accent);
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-shell { display: flex; flex: 1; min-height: 0; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card {
    flex: 1; min-height: 0 !important; padding: 16px 18px; border: 0; border-radius: 26px;
    background: linear-gradient(145deg, #f7f8fb, #fcfcfe 65%, #f2f5fb); box-shadow: inset 0 1px 0 #fff;
  }
  body.ep-mobile-shell:has(.ep-wordbook-study) {
    --study-ink: #203448;
    --study-accent: #325d77;
    --study-muted: #516577;
    --study-line: #cfdee7;
    --study-wash: linear-gradient(135deg, #edf6ff, #e4f6f6);
    --study-action-fill: linear-gradient(115deg, #365d87, #266173);
  }
  body.ep-mobile-shell .ep-wordbook-study :is(.ep-wordbook-card--front, .ep-wordbook-card--result) {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__top { display: none; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-folio {
    color: inherit;
    font: 600 .69rem/1.4 system-ui, sans-serif;
    letter-spacing: .09em;
    font-variant-numeric: tabular-nums;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__body {
    flex: 1 1 0;
    min-height: 0;
    padding: 1rem 2px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--front .ep-wordbook-card__body {
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    text-align: center;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-word { min-width: 0; max-width: 100%; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-word h2 {
    min-width: 0;
    margin: 0;
    color: var(--study-ink);
    font: 650 clamp(2.35rem, 11.8vw, 3.7rem)/1.08 system-ui, sans-serif;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-word[data-long-word] h2 { font-size: clamp(1.85rem, 8.1vw, 2.75rem); }
  body.ep-mobile-shell .ep-wordbook-study .ep-word-pronunciation { margin: .35rem 0 .6rem; gap: 0 .45rem; max-width: 100%; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--front .ep-word-pronunciation { justify-content: center; }
  body.ep-mobile-shell .ep-wordbook-study .ep-word-ipa { order: -1; color: var(--study-muted); font-size: 1.04rem; }
  body.ep-mobile-shell .ep-wordbook-study .ep-word-ipa small { color: inherit; font-size: .72rem; }
  body.ep-mobile-shell .ep-wordbook-study .ep-word-pronounce {
    min-height: 44px;
    border: 0;
    background: none;
    color: var(--study-accent);
    box-shadow: none;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-word-pronounce:not(.ep-word-auto-pronounce) {
    width: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-word-pronounce:not(.ep-word-auto-pronounce) span { display: none; }
  body.ep-mobile-shell .ep-wordbook-study .ep-word-pronounce svg { width: 21px; height: 21px; }
  body.ep-mobile-shell .ep-wordbook-study .ep-word-auto-pronounce { font-size: .75rem; padding: 0 .4rem; color: var(--study-muted); }
  body.ep-mobile-shell .ep-wordbook-study .ep-word-auto-pronounce[aria-pressed="true"] { color: var(--study-accent); }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__footer {
    flex: none;
    margin: 0;
    padding: .65rem 0 .35rem;
    border: 0;
    gap: .35rem;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-self-report { color: var(--study-muted); font-size: .8rem; line-height: 1.45; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__footer .ep-wordbook-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__footer .ep-wordbook-choice .ep-wordbook-button {
    min-height: clamp(3.5rem, 8svh, 4.5rem);
    padding: .8rem .4rem;
    border: 0;
    border-radius: 1.15rem;
    font: 680 1.05rem/1.25 system-ui, sans-serif;
    box-shadow: none;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--front .ep-wordbook-choice {
    --choice-size: min(32vw, 124px, max(66px, 23dvh));
    grid-template-columns: repeat(2, var(--choice-size));
    justify-content: center;
    gap: clamp(16px, 6vw, 28px);
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--front .ep-wordbook-choice .ep-wordbook-button {
    aspect-ratio: 1;
    border-radius: 15px;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__footer .ep-wordbook-choice [data-wordbook-action="again-choice"] {
    color: #69492d; background: linear-gradient(145deg, #fff6e5, #ffead1);
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__footer .ep-wordbook-choice [data-wordbook-action="remembered"] {
    color: #294f67; background: linear-gradient(145deg, #edf7ff, #dceef6);
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--result .ep-wordbook-choice { grid-template-columns: auto minmax(0, 1fr); }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__footer .ep-wordbook-choice [data-wordbook-action="correct-again"] { min-width: 4.8rem; color: var(--study-muted); background: none; font-size: .88rem; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__footer .ep-wordbook-choice [data-wordbook-action="next"] { color: white; background: var(--study-action-fill); }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__footer .ep-wordbook-choice :only-child { grid-column: 1 / -1; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-key { display: none; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--result .ep-wordbook-card__body { display: block; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--result .ep-wordbook-word h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--result .ep-wordbook-word[data-long-word] h2 { font-size: clamp(1.75rem, 7.3vw, 2.35rem); }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-meaning { color: var(--study-ink); border: 0; font-size: 1.25rem; line-height: 1.5; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-meaning i { margin-inline-end: .3em; color: var(--study-muted); font: italic .91rem/1.4 Georgia, serif; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-pattern { display: none; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-collocations { color: var(--study-muted); margin: .25rem 0; font-size: .95rem; line-height: 1.45; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-example { margin: 1rem 0; padding: 0; border: 0; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-example blockquote { margin: .38rem 0; color: var(--study-ink); font: 440 1.12rem/1.55 system-ui, sans-serif; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-target { color: var(--study-accent); }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-example > p { color: var(--study-muted); font-size: .92rem; line-height: 1.6; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-section-label,
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-note span { color: var(--study-muted); font-size: .73rem; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card .ep-wordbook-contrasts { padding: .2rem 0; border: 0; max-height: none; overflow: visible; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-contrast-panel { padding: .8rem 0 .4rem; border: 0; border-top: 1px solid var(--study-line); border-radius: 0; background: transparent; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-contrast-panel h3 { color: var(--study-ink); font-weight: 650; font-size: .88rem; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-contrast-rows th { font: 520 .98rem/1.5 system-ui, sans-serif; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-contrast-rows td { font-size: .86rem; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-contrast-rows .ep-wordbook-contrast-pos { width: 12%; font-size: .74rem; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-contrast-rows .is-current th { color: var(--study-accent); font-weight: 700; }
  @media (max-width: 350px) {
    body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-folio { font-size: .62rem; letter-spacing: .035em; }
    body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-contrast-rows tr {
      display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; column-gap: .35rem; margin: .35rem 0 .5rem;
    }
    body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-contrast-rows tr th { grid-column: 1/-1; width: auto; padding: 0; }
    body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-contrast-rows tr td { width: auto; padding: 0; }
  }
  @media (max-height: 460px) {
    body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card__footer .ep-wordbook-choice .ep-wordbook-button { min-height: 44px; }
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--summary { display: flex; flex-direction: column; justify-content: safe center; gap: 10px; overflow: auto; scrollbar-width: none; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--summary > * { flex-shrink: 0; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--summary h2 { margin: 3px 0 10px; font-size: 25px; color: #292d36; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--summary .ep-wordbook-result { margin: 8px 0; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--summary .ep-wordbook-actions { gap: 7px; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card--summary .ep-wordbook-actions button { min-height: 44px; padding: 8px 12px; font-size: 13px; }

  body.ep-mobile-shell .ep-wordbook-study:has(.ep-wordbook-receipt) { background: #fff; }
  body.ep-mobile-shell:has(.ep-wordbook-receipt) .ep-assistant-launcher { display: none; }
  body.ep-mobile-shell .ep-wordbook-page:has(.ep-wordbook-receipt) .ep-wordbook-heading {
    margin-top: 5px; padding-inline: 7px;
  }
  body.ep-mobile-shell .ep-wordbook-page:has(.ep-wordbook-receipt) .ep-wordbook-progress--daily {
    grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block-end: 13px; border-bottom: 1px solid #e5e7eb;
  }
  body.ep-mobile-shell .ep-wordbook-page:has(.ep-wordbook-receipt) .ep-wordbook-progress--daily > :first-child { display: none; }
  body.ep-mobile-shell .ep-wordbook-page:has(.ep-wordbook-receipt) .ep-wordbook-metric { justify-items: start; }
  body.ep-mobile-shell .ep-wordbook-page:has(.ep-wordbook-receipt) .ep-wordbook-timer { justify-items: end; }
  body.ep-mobile-shell .ep-wordbook-page:has(.ep-wordbook-receipt) .ep-wordbook-timer strong { font-size: 1.05rem; }
  body.ep-top-navigation.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card.ep-wordbook-receipt {
    justify-content: flex-start; padding: 0 7px; gap: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none;
  }
  body.ep-mobile-shell .ep-wordbook-receipt :is(.ep-receipt-desktop-title, .ep-receipt-state, .ep-receipt-streak, .ep-receipt-count) { display: none; }
  body.ep-top-navigation.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card.ep-wordbook-receipt h2 {
    display: grid; flex: 1 0 auto; place-items: center; min-height: clamp(146px, 27dvh, 214px);
    margin: 0; padding-block: 12px; color: #171b22; text-align: center; font-size: clamp(21px, 6vw, 28px); line-height: 1.4;
  }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-today { display: grid; justify-items: center; gap: 5px; }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-today strong {
    font-size: clamp(62px, min(24vw, 15dvh), 114px); line-height: .98; font-weight: 770;
    letter-spacing: -.055em; font-variant-numeric: tabular-nums;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-receipt-proof { display: block; border-top: 1px solid #e5e7eb; }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-week {
    display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 12px;
    padding: 15px 0 18px; color: #202630;
  }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-week-title { display: flex; justify-content: space-between; gap: 8px; font-size: .925rem; }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-week-title span { color: #5e6571; }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-week-days {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(#dce0e6, #dce0e6) center / calc(100% - 16px) 1px no-repeat;
  }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-week-days span {
    box-sizing: border-box; width: 17px; height: 17px; border: 1px solid #bcc4d0; border-radius: 50%; background: #fff;
  }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-week-days .is-checked { border-color: #202a38; background: #202a38; }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-week p { margin: 0; color: #5e6571; text-align: center; font-size: .82rem; }
  body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-controls {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px;
  }
  body.ep-mobile-shell .ep-wordbook-receipt :is(.ep-receipt-actions, .ep-receipt-replay) { display: contents; }
  body.ep-top-navigation.ep-mobile-shell .ep-wordbook-study .ep-wordbook-receipt .ep-receipt-actions > .ep-wordbook-button--primary {
    grid-column: 1 / -1; min-height: 48px; border-radius: 12px; background: #212a36;
  }
  body.ep-top-navigation.ep-mobile-shell .ep-wordbook-study .ep-wordbook-receipt .ep-receipt-controls :is(.ep-wordbook-button--secondary, .ep-receipt-replay > button) {
    justify-self: start; min-height: 44px; padding: 5px 0; border: 0; background: transparent; color: #525d6b; font-weight: 550;
  }
  body.ep-top-navigation.ep-mobile-shell .ep-wordbook-study .ep-wordbook-receipt .ep-receipt-replay > button:last-child {
    grid-column: 2; justify-self: end; text-align: right;
  }

  @media (prefers-reduced-motion: no-preference) {
    body.ep-mobile-shell .ep-wordbook-receipt .ep-receipt-today {
      animation: ep-receipt-arrive 320ms ease-out both;
    }
    @keyframes ep-receipt-arrive {
      from { opacity: .5; transform: translateY(5px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }

  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-page:has(.ep-recap) .ep-wordbook-heading { display: none; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card.ep-recap {
    gap: 8px; padding: 8px 0 0; background: none; box-shadow: none;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-heading h2 {
    margin: 0; color: var(--study-ink); font-size: clamp(21px, 5.8vw, 26px);
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-intro { color: var(--study-muted); }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-grid {
    flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(101px, 1fr);
    gap: 8px; min-height: 0; max-height: none; padding: 2px;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-item { background: #ffffff73; border-color: var(--study-line); }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-item.needs-review { border-color: #c9a474; }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-flip {
    flex: 1; min-height: 0; color: var(--study-ink); grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-face {
    justify-content: safe center; gap: 4px; min-height: 0; padding: 6px 9px;
    overflow-y: auto; overscroll-behavior: contain;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-front strong {
    font-size: clamp(14px, 4.6vw, 21px); letter-spacing: -.015em;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-back { background: var(--study-wash); }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-back strong { font-size: 14px; line-height: 1.35; }
  body.ep-mobile-shell .ep-wordbook-study :is(.ep-recap-count, .ep-recap-front small, .ep-recap-face > span, .ep-recap-footer-note) { display: none; }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-mark {
    min-height: 44px; padding-inline: 9px; color: var(--study-accent); border-top-color: var(--study-line); background: #ffffff5c;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-mark:disabled { color: #69492d; background: #fff0db; }
  body.ep-mobile-shell .ep-wordbook-study :is(.ep-recap-flip, .ep-recap-mark):focus-visible { outline-offset: -2px; }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-footer {
    flex: none; gap: 7px; padding: 2px 0 0; border: 0;
  }
  body.ep-mobile-shell .ep-wordbook-study .ep-recap-footer .ep-wordbook-button {
    min-height: 44px; padding-block: 8px; border-radius: 12px;
  }
  body.ep-top-navigation.ep-mobile-shell .ep-wordbook-study :is(.ep-recap-footer, .ep-wordbook-card--summary) .ep-wordbook-button--primary {
    border-color: transparent; background: var(--study-action-fill);
  }

  /* Writing: the editor takes the space left by the actual controls. */
  body.ep-mobile-shell:has(.migration-write-page) :is(.migration-app, .migration-main) { background: #fff !important; }
  body.ep-mobile-shell .migration-main:has(.migration-write-page, .migration-training-page) > .block-container { padding: 8px 18px 12px; }
  body.ep-mobile-shell .migration-write-page .ep-essay-layout {
    display: grid;
    grid-template: auto auto auto minmax(min-content, 1fr) / minmax(0, 1fr);
    min-height: calc(100svh - var(--ep-mobile-nav-height, 64px) - 20px);
    align-items: stretch;
    gap: 8px;
  }
  body.ep-mobile-shell .migration-write-page[data-mobile-photo-open] .ep-essay-layout {
    grid-template-rows: auto auto auto auto minmax(min-content, 1fr);
  }
  body.ep-top-navigation.ep-mobile-shell .migration-main:has(.ep-essay-directory):not(:has([data-mobile-focus-exit])) > .block-container {
    padding-top: 0;
  }
  body.ep-mobile-shell .migration-main .ep-essay-layout .ep-essay-directory {
    display: flex; flex-flow: row nowrap; align-items: center; gap: clamp(14px, 5vw, 26px);
    padding-block: calc(2px + var(--ep-phone-safe-top)) 2px; margin: 0; border: 0; box-shadow: none;
  }
  body.ep-mobile-shell .migration-write-page .ep-write-rail .ep-essay-directory { width: 100vw; max-width: none; }
  body.ep-mobile-shell .migration-main .ep-essay-layout .ep-essay-directory,
  body.ep-mobile-shell :is(.ep-report-reader, .ep-training-page--focused) .ep-report-mobile-context,
  body.ep-mobile-shell :is(.ep-mobile-reader-back, .ep-wordbook-study-tools, .ep-mobile-account-heading, .ep-mobile-settings-return, .ep-review-header) {
    margin-inline: calc((100% - 100vw) / 2);
    padding-inline: calc((100vw - 100%) / 2);
    background: var(--ep-mobile-top-light), #fff;
  }
  body.ep-top-navigation.ep-mobile-shell .migration-main:has(.ep-mobile-account-context:not([hidden])) > .block-container { padding-top: 0; }
  body.ep-mobile-shell .ep-mobile-account-context { padding-top: 0; }
  body.ep-mobile-shell .ep-mobile-account-context > :is(.ep-mobile-account-heading, .ep-mobile-settings-return) {
    padding-top: 10px;
  }
  body.ep-mobile-shell .ep-mobile-account-heading {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  }
  body.ep-mobile-shell .ep-mobile-account-context [data-account-parent] {
    display: inline-flex; justify-self: start; align-items: center; gap: 4px; min-height: 44px;
    padding: 0 4px 0 0; color: #43516a; text-decoration: none; font-size: 15px;
  }
  body.ep-mobile-shell .ep-mobile-account-context [data-account-parent] svg {
    width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
  }
  body.ep-mobile-shell .ep-mobile-account-heading h1 { margin: 0; }
  body.ep-mobile-shell:has(.my-page--detail) .ep-mobile-account-context { display: none; }
  body.ep-mobile-shell .migration-main .ep-essay-directory a[data-essay-section] {
    flex: 0 0 auto; position: relative; min-height: 44px; height: auto; padding: 8px 0 11px;
    font: 550 clamp(14px, 3.7vw, 16px)/1.4 system-ui, sans-serif; color: #656b75;
    border: 0; border-radius: 0; background: transparent; box-shadow: none; text-decoration: none;
  }
  body.ep-mobile-shell .migration-main .ep-essay-directory a[aria-current="page"] { font-weight: 730; color: #20232a; }
  body.ep-mobile-shell .migration-main .ep-essay-directory a[aria-current="page"]::after {
    content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
    width: 19px; height: 3px; border-radius: 2px; background: linear-gradient(100deg, #526fe7, #7961ce);
  }
  @media (forced-colors: active) {
    body.ep-mobile-shell .migration-main .ep-essay-directory a[aria-current="page"]::after { background: Highlight; }
  }
  body.ep-mobile-shell .migration-write-page .ep-write-title h1 { font-size: 24px; color: #252a32; }
  body.ep-mobile-shell .migration-write-page .ep-writing-timer { background: #f1f3f6; border-radius: 14px; }
  body.ep-mobile-shell .migration-write-page .ep-writing-mode button[aria-pressed="true"] { border-radius: 11px; color: #2c3342; }
  body.ep-mobile-shell .migration-write-page .st-key-essay_editor.ep-write-sheet { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  body.ep-mobile-shell .migration-write-page .ep-write-question-pane { flex: none; padding-bottom: 10px; border-color: #edf0f4; }
  body.ep-mobile-shell .migration-write-page .ep-write-mobile-topic-summary { font-size: 14px; color: #586276; line-height: 1.6; }
  body.ep-mobile-shell .migration-write-page .ep-write-essay-pane,
  body.ep-mobile-shell .migration-write-page .st-key-essay_input { display: flex; flex-direction: column; flex: 1 0 auto; }
  body.ep-mobile-shell .migration-write-page .ep-write-editor-heading { flex: none; margin: 0; }
  body.ep-mobile-shell .migration-write-page .ep-write-sheet .st-key-essay_input textarea {
    flex: 1 0 120px; min-height: 120px; height: auto; resize: none; border: 0 !important; border-radius: 18px;
    background: #f6f7f9 !important; box-shadow: inset 0 1px 3px #24304403 !important; color: #252c37; line-height: 1.7; padding: 15px 16px;
  }
  body.ep-mobile-shell .migration-write-page .ep-write-sheet .migration-write-stats { flex: none; margin: 7px 2px; font-size: 11px; color: #77818f; }
  body.ep-mobile-shell .migration-write-page [data-grading-quota] .migration-info { margin: 3px 0 5px; padding: 8px 12px; border: 0; background: #f5f6f9; border-radius: 10px; font-size: 11px; line-height: 1.5; color: #626e80; }
  body.ep-mobile-shell .migration-write-page [data-grading-quota] .migration-info strong { font-size: 12px; color: #505b6d; }
  body.ep-mobile-shell .migration-write-page [data-grading-quota] .migration-info p { margin: 3px 0 0; }
  body.ep-mobile-shell .migration-write-page .ep-write-sheet .migration-write-submit { flex: none; min-height: 48px; margin: 6px 0 0; border: 0; border-radius: 17px; background: #292d35; color: #fff; }
  body.ep-mobile-shell .migration-write-page .ep-write-sheet .migration-write-submit:disabled { background: #e7e9ee; color: #7c8493; opacity: 1; }
  body.ep-mobile-shell .migration-write-page[data-mobile-writing-keyboard] .ep-essay-layout { min-height: 0; }
  body.ep-top-navigation.ep-mobile-shell .migration-main:has([data-mobile-writing-keyboard]) > .block-container {
    padding-bottom: max(12px, calc(100dvh - var(--ep-phone-view-height, 100dvh)));
  }
  body.ep-mobile-shell .migration-write-page[data-mobile-writing-keyboard] .ep-write-sheet .st-key-essay_input textarea {
    flex: none; height: min(210px, calc(var(--ep-phone-view-height, 100dvh) - 28px)); min-height: 0;
  }
  body.ep-mobile-shell .migration-write-page :is(#topic-input, #essay-input) { font-size: max(16px, 1rem); }
  /* The native preparation dialog borrows the same question field. */
  body.ep-mobile-shell .ep-writing-preparation[open] {
    top: var(--ep-phone-view-top, 0px); bottom: auto; height: var(--ep-phone-view-height, 100dvh);
  }
  body.ep-mobile-shell .ep-writing-preparation[open] #write-topic-fields { display: contents; }
  body.ep-mobile-shell .ep-writing-preparation[open] :is(.ep-write-mobile-topic, .ep-write-mobile-topic-summary) { display: none; }
  body.ep-mobile-shell .ep-writing-preparation[open] .ep-prep-body { scrollbar-width: none; }

  /* Learning records: a clear hierarchy instead of repeated empty cards. */
  body.ep-mobile-profile :is(.migration-app, .migration-main):has(.ep-profile-dashboard, .migration-error-book-page) { background: #fff !important; }
  body.ep-mobile-profile .migration-main:has(.ep-profile-dashboard, .migration-error-book-page) > .block-container { padding: 14px 20px 26px; }
  body.ep-mobile-profile .block-container:has(.ep-profile-dashboard, .migration-error-book-page) .ep-mobile-account-heading { margin-bottom: 12px; padding-top: 0; }
  body.ep-mobile-profile .block-container:has(.ep-profile-dashboard, .migration-error-book-page) .ep-mobile-account-heading h1 { font-size: 26px; color: #242932; }
  body.ep-mobile-profile :is(.ep-profile-dashboard, .migration-error-book-page) .ep-growth-switch { padding: 3px; margin-bottom: 18px; border: 0; border-radius: 14px; background: #f1f3f6; }
  body.ep-mobile-profile :is(.ep-profile-dashboard, .migration-error-book-page) .ep-growth-switch a { min-height: 44px; border-radius: 11px; font-size: 13px; color: #626c7d; }
  body.ep-mobile-profile :is(.ep-profile-dashboard, .migration-error-book-page) .ep-growth-switch a[aria-current="page"] { background: #fff; color: #252e3c; box-shadow: 0 2px 6px #27334e08; }
  body.ep-mobile-profile .ep-learning-profile.ep-profile-dashboard { padding: 0; background: transparent; border-radius: 0; }
  body.ep-mobile-profile .ep-profile-heading { margin: 0; padding: 0; }
  body.ep-mobile-profile .ep-profile-heading :is(h1,p) { display: none; }
  body.ep-mobile-profile .ep-profile-help { margin: 0; }
  body.ep-mobile-profile .ep-profile-help summary { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; color: #63718a; }
  body.ep-mobile-profile .ep-profile-help[open] p { display: block; }
  body.ep-mobile-profile .ep-viz-filters { display: grid; gap: 0; margin: 0 0 18px; padding: 0; border: 0; background: none; }
  body.ep-mobile-profile .ep-viz-filters > div { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; margin: 0; }
  body.ep-mobile-profile .ep-viz-filters > div > span { width: 30px; margin-right: 3px; font-size: 11px; color: #8a92a0; }
  body.ep-mobile-profile .ep-viz-filters button { min-height: 40px; padding: 5px 9px; border: 0; border-radius: 10px; box-shadow: none; background: none; font-size: 12px; color: #788294; }
  body.ep-mobile-profile .ep-viz-filters button[aria-pressed="true"] { color: #303d58; background: #edf2fb; }
  body.ep-mobile-profile .ep-profile-dashboard-grid { display: block; }
  body.ep-mobile-profile .ep-viz-guide { padding: 20px 18px; border: 0; border-radius: 24px; background: linear-gradient(145deg,#f6f8fc,#fcfcfe); box-shadow: none; }
  body.ep-mobile-profile .ep-guide-hero { gap: 10px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid #e5eaf3; }
  body.ep-mobile-profile .ep-guide-hero h2 { margin: 4px 0; font-size: 23px; color: #28303d; }
  body.ep-mobile-profile .ep-guide-hero p { display: none; }
  body.ep-mobile-profile .ep-guide-status { background: none; color: #7b879a; font-size: 10px; padding: 0; }
  body.ep-mobile-profile .ep-viz-guide:has(.ep-guide-empty) .ep-guide-hero { display: none; }
  body.ep-mobile-profile .ep-guide-empty { gap: 10px; padding: 8px 0; border: 0; background: none; text-align: left; }
  body.ep-mobile-profile .ep-guide-empty > svg { display: none; }
  body.ep-mobile-profile .ep-guide-empty h3 { font-size: 24px; color: #28313f; margin: 0; }
  body.ep-mobile-profile .ep-guide-empty p { font-size: 13px; line-height: 1.8; color: #687489; }
  body.ep-mobile-profile .ep-profile-focus-actions { justify-content: flex-start; gap: 8px 16px; margin-top: 16px; }
  body.ep-mobile-profile .ep-profile-primary { min-height: 44px; border: 0; border-radius: 14px; padding: 12px 16px; background: #2b303b; color: #fff; font-size: 12px; }
  body.ep-mobile-profile .ep-profile-secondary { min-height: 44px; padding: 12px 0; border: 0; background: none; color: #667b9b; font-size: 12px; }
  body.ep-mobile-profile .ep-profile-dashboard-side:has(.ep-profile-brief-empty):has(.ep-profile-recent-empty) { display: none; }
  body.ep-mobile-profile .ep-profile-dashboard-side:not(:has(.ep-profile-brief-empty)) { margin-top: 20px; }
  body.ep-mobile-profile .ep-profile-dashboard-details { gap: 0; margin-top: 18px; }
  body.ep-mobile-profile .ep-profile-dashboard-details > :is(.ep-profile-notes, .ep-profile-review, .ep-profile-decisions) { border: 0; border-top: 1px solid #eceff4; border-radius: 0; background: none; box-shadow: none; padding: 0; }
  body.ep-mobile-profile :is(.ep-profile-notes, .ep-profile-review, .ep-profile-decisions) > summary { min-height: 48px; padding: 14px 0; color: #59687f; font-size: 13px; }
  body.ep-mobile-profile .ep-profile-data-source { padding: 0; margin-top: 10px; color: #7b8798; font-size: 11px; }
  body.ep-mobile-profile .ep-error-book-index { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0 0 24px; }
  body.ep-mobile-profile .ep-error-book-index a { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; padding: 14px 12px; border: 0; border-radius: 17px; background: #f3f5f8; box-shadow: none; color: #6b7689; font-size: 11px; }
  body.ep-mobile-profile .ep-error-book-index b { font-size: 27px; color: #313b4c; font-weight: 550; }
  body.ep-mobile-profile .migration-error-book-page:has(> .ep-error-book-section__empty) { display: flex; flex-direction: column; }
  body.ep-mobile-profile .migration-error-book-page:has(> .ep-error-book-section__empty) :is(.ep-error-book-index, .ep-error-book-section) { display: none; }
  body.ep-mobile-profile .migration-error-book-page > .ep-error-book-section__empty { margin: 4px 0; padding: 30px 22px; border: 0; border-radius: 24px; background: #f7f8fb; font-size: 16px; line-height: 1.8; color: #465163; }
  body.ep-mobile-profile .migration-error-book-page > .ep-error-book-section__empty a { display: block; width: fit-content; min-height: 44px; margin-top: 20px; padding: 10px 16px; border-radius: 14px; background: #2b3039; color: #fff; font-size: 13px; text-decoration: none; }
  body.ep-mobile-profile .ep-error-book-section { padding: 20px 0; margin: 0; border: 0; border-top: 1px solid #e9edf3; border-radius: 0; background: none; box-shadow: none; scroll-margin-top: 14px; }
  body.ep-mobile-profile .ep-error-book-section__header h2 { font-size: 19px; color: #2d3747; }
  body.ep-mobile-profile .ep-error-book-section__header p { font-size: 12px; color: #78849a; }
  body.ep-mobile-profile .ep-error-book-section__cards { display: grid; grid-template-columns: 1fr; }
  body.ep-mobile-profile .ep-error-book-card { padding: 18px; border: 0; border-radius: 20px; box-shadow: none; background: #f6f8fb; }
}

@media screen and (max-width: 359px) {
  body.ep-mobile-shell .ep-lark-main .ep-chat-shell.is-low-barrier.is-entry .ep-chat-messages { padding-inline: 18px; }
  body.ep-mobile-shell .migration-main:has(.ep-wordbook-study, .migration-write-page) > .block-container { padding-inline: 14px; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-card { padding-inline: 16px; }
  body.ep-mobile-shell .ep-wordbook-study .ep-wordbook-word h2 { font-size: 32px; }
  body.ep-mobile-profile .migration-main:has(.ep-profile-dashboard, .migration-error-book-page) > .block-container { padding-inline: 16px; }
  body.ep-mobile-profile .ep-viz-filters button { padding-inline: 6px; font-size: 11px; }
}
@media screen and (max-width: 600px) and (forced-colors: active), screen and (pointer: coarse) and (max-width: 1000px) and (max-height: 500px) and (forced-colors: active) {
  body.ep-mobile-shell.ep-mobile-learning .ep-mobile-learning-nav a[aria-current="page"]::after { background: Highlight; }
  body.ep-mobile-learning .ep-mobile-library .ep-library-categories button[aria-pressed="true"] { outline: 1px solid Highlight; }
}

@media screen and (max-width: 600px), screen and (pointer: coarse) and (max-width: 1000px) and (max-height: 500px) {
  body.ep-top-navigation.ep-mobile-shell:has([data-mobile-focus-exit], .ep-wordbook-study) {
    --ep-workspace-header-height: 0px;
    --ep-mobile-nav-height: 0px;
  }
  body.ep-mobile-shell:has([data-mobile-focus-exit], .ep-wordbook-study)
    :is(.ep-mobile-nav, .ep-mobile-learning-nav, .ep-essay-directory) { display: none !important; }
  body.ep-top-navigation.ep-mobile-shell .migration-main:has([data-mobile-focus-exit]) {
    padding-block: var(--ep-phone-safe-top) var(--ep-phone-safe-bottom);
  }
  body.ep-top-navigation.ep-mobile-shell .migration-main:has(.ep-report-reader, .ep-training-page--focused) > .block-container { padding-top: 0; }
  body.ep-mobile-shell :is(.ep-report-reader, .ep-training-page--focused) .ep-essay-reader-exit {
    display: inline-flex; align-items: center; align-self: flex-start; flex: none; gap: 5px; min-height: 44px;
    color: #657186; font: 450 13px/1.4 var(--ep-font-ui, system-ui), sans-serif; text-decoration: none;
  }
  body.ep-mobile-shell :is(.ep-report-reader, .ep-training-page--focused) .ep-report-mobile-context { gap: 14px; }
  body.ep-mobile-shell :is(.ep-report-reader, .ep-training-page--focused) .ep-essay-context { border-bottom-width: 0; }
  body.ep-mobile-shell :is(.ep-report-reader, .ep-training-page--focused) .ep-report-mobile-context > span { color: #232c38; font-weight: 670; }
  body.ep-mobile-shell :is(.ep-report-reader, .ep-training-page--focused) .ep-report-mobile-context [data-report-context-toggle] { margin-inline-start: auto; }
  .ep-essay-reader-exit span { font-size: 22px; font-weight: 400; }
  body.ep-mobile-shell .ep-essay-content:has(.ep-essay-reader-exit) .ep-essay-context__back { display: none; }
  body.ep-top-navigation.ep-mobile-shell .migration-main:has(.ep-wordbook-study),
  body.ep-top-navigation.ep-mobile-shell .migration-main:has(.ep-wordbook-study) > .block-container { padding: 0; }
  body.ep-mobile-shell .ep-wordbook-study {
    position: relative;
    box-sizing: border-box; width: 100%; height: 100dvh; min-height: 0; margin: 0;
    padding: var(--ep-phone-safe-top, 0px) max(18px, env(safe-area-inset-right, 0px)) max(12px, var(--ep-phone-safe-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    background:
      radial-gradient(ellipse 76% 77% at 4% 5%, #d5eaff, transparent),
      radial-gradient(ellipse 57% 64% at 97% 27%, #ffe8ce, transparent),
      radial-gradient(ellipse 56% 46% at 82% 52%, #d6f2f6, transparent),
      radial-gradient(ellipse 49% 41% at 15% 56%, #e9dff9, transparent),
      #fff;
    background-size: 100% 33.333%;
    background-repeat: no-repeat;
  }
  body.ep-mobile-shell .ep-wordbook-study-tools { flex: none; background: transparent; }
  body.ep-mobile-shell .ep-wordbook-study-tools [data-wordbook-back] { min-height: 44px; color: var(--study-accent); }
  body.ep-mobile-shell .ep-wordbook-study-actions :is(.ep-wordbook-tool-icon, [data-personal-save]) { color: var(--study-accent); }
  body.ep-mobile-shell .ep-wordbook-study-actions :is(.ep-wordbook-audio-settings[open] > summary, [data-personal-save][aria-pressed="true"]) {
    background: var(--study-wash);
  }
  body.ep-mobile-shell .ep-wordbook-study-actions .ep-wordbook-audio-panel {
    border-color: var(--study-line); box-shadow: 0 5px 15px #2845591a;
  }
  body.ep-mobile-shell .ep-wordbook-study-actions .ep-wordbook-audio-panel > button { color: var(--study-ink); }
  body.ep-mobile-shell .ep-wordbook-study-actions .ep-wordbook-audio-panel > button:hover { background: var(--study-wash); }
  body.ep-mobile-shell .ep-wordbook-study-actions .ep-wordbook-audio-switch { background: #687b8a; }
  body.ep-mobile-shell .ep-wordbook-study-actions [aria-checked="true"] .ep-wordbook-audio-switch { background: var(--study-action-fill); }
  body.ep-mobile-shell:has(.ep-wordbook-study) :is(.ep-wordbook-lookup, .ep-wordbook-leave) {
    color: var(--study-ink); border-color: var(--study-line); box-shadow: 0 14px 40px #28455924;
  }
  body.ep-mobile-shell:has(.ep-wordbook-study) :is(.ep-wordbook-lookup, .ep-wordbook-leave)::backdrop { background: #243d5242; }
  body.ep-mobile-shell:has(.ep-wordbook-study) .ep-wordbook-lookup #global-lookup-form {
    border-color: var(--study-line); background: var(--study-wash);
  }
  body.ep-mobile-shell:has(.ep-wordbook-study) .ep-wordbook-lookup :is(header button, #global-lookup-form button) { color: var(--study-accent); }
  body.ep-mobile-shell:has(.ep-wordbook-study) .ep-wordbook-leave > p { color: var(--study-muted); }
  body.ep-mobile-shell:has(.ep-wordbook-study) .ep-wordbook-leave__actions > button { color: var(--study-accent); background: var(--study-wash); }
  body.ep-mobile-shell:has(.ep-wordbook-study) .ep-wordbook-leave__actions > [value="continue"] { color: white; background: var(--study-action-fill); }
  body.ep-mobile-shell:has(.ep-wordbook-study) :is(.ep-wordbook-tool-icon, .ep-wordbook-leave__actions > button):focus-visible {
    outline-color: var(--study-accent);
  }
  body.ep-mobile-shell .ep-book-entry--personal:has(.ep-personal-study) :is(.ep-book-entry-stage, [data-bookshelf-action="back"]) { display: none; }
  body.ep-mobile-shell .ep-book-entry--personal:has(.ep-personal-study) > .ep-global-lookup { display: none; }
  body.ep-mobile-shell #home-content .ep-global-lookup #global-lookup-input:focus {
    outline: none; box-shadow: none !important;
  }
  body.ep-mobile-shell #home-content .ep-global-lookup form:focus-within {
    outline: 1px solid #8593ad; outline-offset: -1px;
  }
  body.ep-mobile-shell :is(.ep-book-entry--personal, .ep-book-entry-layout, [data-personal-book]):has(.ep-personal-study) { display: contents; }

  body.ep-mobile-shell :is(.ep-arsenal-picker__top, .ep-lark-side-header, .ep-exam-header, .ep-mobile-analysis-header),
  body.ep-mobile-shell .migration-report-page .ep-report-navigation,
  body.ep-mobile-shell .ep-assistant-host .ep-assistant-host__heading { border-bottom-width: 0; }
  body.ep-mobile-shell :is(.ep-lark-side-composer, .ep-exam-footer, .ep-mobile-analysis-footer) { border-top-width: 0; }

  body.ep-mobile-shell .ep-sentence-first-hint[data-hint-label]:not([hidden]) {
    display: inline-flex; align-items: center; gap: .3em; min-block-size: 1.7em;
    margin-inline-start: .35em; padding: .12em .55em; vertical-align: .1em;
    border: 1px solid #d4dff4; border-radius: 999px; background: #edf2fc; color: #2f4c78;
    font: 650 .8rem/1.35 var(--ds-sans, system-ui, sans-serif); white-space: nowrap; user-select: none;
  }
  body.ep-mobile-shell .ep-sentence-first-hint::before { content: attr(data-hint-label); }
}
