/* Learning surfaces: system UI for controls, serif only for study material. */
.learner-shell {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --text: #1D1D1F;
  --text-2: #424248;
  --text-3: #63636A;
  --muted: #63636A;
  --background: #F5F5F7;
  --fill: #F2F2F5;
  --line: #E5E5EA;
  --card-radius: 24px;
  --card-shadow: 0 2px 8px rgba(24, 24, 30, .025), 0 12px 36px rgba(24, 24, 30, .035);
  --header-bg: #FAFAFC;
  --glass-surface: #FAFAFC;
  font-family: var(--font-ui);
  background: var(--background);
}
.learner-shell .public-main { padding-top: 18px; }
.learner-shell .public-header { box-shadow: 0 1px 0 rgba(29, 29, 31, .07); }
.learner-shell .public-header-inner { min-height: 62px; padding-block: 6px; }
.learner-shell .brand-image { height: 40px; max-width: 160px; }
.learner-shell .brand-mark { width: 42px; height: 42px; }
.learner-shell .shell-brand strong { letter-spacing: -.035em; }
.learner-shell .public-nav > a,
.learner-shell .nav-user-group > a,
.learner-shell .nav-account-trigger { border-radius: 999px; min-height: 42px; }
.learner-shell .nav-account-panel { padding: 8px; border-radius: 22px; border-color: rgba(255, 255, 255, .85); background: var(--glass-surface); box-shadow: 0 14px 48px rgba(29, 29, 31, .13), inset 0 0 0 1px rgba(29, 29, 31, .06); }
.learner-shell .button { min-height: 44px; border: 0; border-radius: 999px; padding: 11px 19px; font-size: 14px; line-height: 22px; font-weight: 600; letter-spacing: -.015em; vertical-align: middle; box-shadow: none; }
.learner-shell .button-secondary { background: var(--fill); }
.learner-shell .button:is(:hover, :active) { transform: none; border: 0; box-shadow: none; }
.learner-shell .button-sm,
.learner-shell .button.is-small { min-height: 44px; padding: 11px 15px; font-size: 14px; line-height: 22px; }
.learner-shell .row > form { display: flex; align-items: center; margin-block: 0; }
.learner-shell .row > .button,
.learner-shell .row > form > .button { margin-block: 0; }
.learner-shell .icon-button,
.learner-shell .chip-scroll-btn { width: 44px; height: 44px; min-height: 44px; border: 0; box-shadow: none; --tap-min: 44px; }
.learner-shell .icon-button:is(:hover, :active),
.learner-shell .chip:is(:hover, :active) { transform: none; }
.learner-shell .card { box-shadow: var(--card-shadow); }
.learner-shell .segmented { max-width: 100%; border: 0; border-radius: 999px; padding: 4px; background: #EAEAEE; }
.learner-shell .segmented > a,
.learner-shell .segmented > button { min-height: 44px; padding: 11px 17px; line-height: 22px; }
.learner-shell .segmented-indicator { top: 4px; bottom: 4px; border-radius: 999px; box-shadow: 0 1px 4px rgba(29, 29, 31, .07); }
.learner-shell .chip { min-height: 44px; border: 0; padding-block: 10px; line-height: 24px; }
.learner-shell .quiz-select-trigger { min-height: 44px; padding: 11px 12px; border: 0; background: var(--fill); line-height: 22px; }
.learner-shell .quiz-select-trigger:hover { border: 0; background: var(--fill-strong); }
.learner-shell :is(.profile-scope-form, .progress-subject-filter, .compose-filter) .quiz-select-trigger { height: 44px; }
.learner-shell :is(.profile-scope-form, .progress-subject-filter, .compose-filter) .quiz-select-summary { -webkit-line-clamp: 1; }
.learner-shell .empty-state { padding: clamp(28px, 5vw, 54px); }
.learner-shell .empty-state p { max-width: 40em; margin-inline: auto; }
.learner-shell .page-intro { border-radius: 26px; }
.learner-shell .eyebrow { letter-spacing: 0; }
.learner-shell .site-footer { margin-top: 32px; }

/* A quiet catalog, with filters separated from the reading surface. */
.learner-shell .learning-catalog .home-hero { padding: 18px 22px; background: var(--surface); border-radius: 22px; box-shadow: var(--card-shadow); margin-bottom: 14px; }
.learner-shell .learning-catalog .home-hero .page-intro-head h1 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.15; letter-spacing: -.045em; }
.learner-shell .learning-catalog .home-hero .page-intro-body p { max-width: 68em; color: var(--text-3); font-size: 14px; line-height: 1.65; }
/* 首页主按钮：三个入口保持一行；前两个收窄内边距，窄屏再自动换行。 */
.learner-shell .learning-catalog .home-hero-actions {
    display: flex; flex-wrap: wrap;
    margin-top: 14px; gap: 8px 10px; align-items: center;
}
.learner-shell .learning-catalog .home-hero-actions > .button { padding-inline: 14px; }
.learner-shell .home-tools { align-items: center; gap: 12px; }
.learner-shell .home-tools .segmented-scroller { flex: 1 1 460px; width: auto; }
.learner-shell .home-tools .segmented { flex: 1 1 auto; width: auto; }
.learner-shell .home-tools .search { flex: 0 1 280px; height: 52px; min-height: 52px; margin: 0; padding: 4px 4px 4px 14px; border: 0; box-shadow: none; }
.learner-shell .home-tools .search input { background: transparent; height: 44px; min-height: 44px; }
.learner-shell .home-tools .search button { min-height: 44px; padding: 11px 17px; font-size: 14px; line-height: 22px; }
.learner-shell .home-tools > .button { height: 52px; min-height: 52px; padding-block: 15px; }
.catalog-context { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 2px 10px; font-size: 13px; color: var(--text-3); }
.catalog-context strong { color: var(--text); font-size: 15px; font-weight: 650; }
.catalog-context a { margin-left: auto; color: var(--brand-text); padding: 6px 0; }
.learner-shell .session { animation: none; padding: 0; }
.learner-shell .session-list { gap: 14px; }
.learner-shell .session-head { border-bottom: 0; margin: 0 0 12px; padding: 0 2px; }
.learner-shell .session-head h2 { font-size: 18px; letter-spacing: -.025em; }
.learner-shell .session-grid { gap: 12px; }
.learner-shell .paper-tile { padding: 14px 16px; gap: 8px; border-radius: 18px; box-shadow: var(--card-shadow); }
.learner-shell .paper-tile:hover { transform: none; background: #FFF; box-shadow: 0 2px 8px rgba(29, 29, 31, .03), 0 12px 32px rgba(29, 29, 31, .09); }
.learner-shell .paper-tile strong { font-size: 16px; font-weight: 650; line-height: 1.45; }
.learner-shell .paper-tile-top .pill { font-size: 12px; }
.learner-shell .paper-tile-meta { gap: 6px 12px; }
.learner-shell .paper-tile-cta { margin-top: 0; }
.learner-shell .paper-part { padding: 22px 26px; }
.learner-shell .unit-row { padding-block: 14px; }
.learner-shell .paper-hero { padding: 12px 2px 8px; }
.learner-shell .compose-hero h1 { font-size: clamp(28px, 3vw, 38px); }
.learner-shell .compose-card { padding: 26px; }
.learner-shell .compose-option { border-radius: 18px; background: var(--fill); box-shadow: none; }
.learner-shell .compose-option.is-empty { opacity: .7; }
.learner-shell .compose-summary { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }

/* Learning center: one principal action, a restrained ledger, then useful tools. */
.learner-shell .profile-page { max-width: 1280px; }
.learner-shell .profile-page .profile-head.profile-summary { margin-bottom: 24px; align-items: center; gap: 20px; }
.learner-shell .profile-page .profile-summary h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.045em; margin: 0 0 9px; }
.learner-shell .profile-page .profile-summary .eyebrow { display: none; }
.learner-shell .profile-page .profile-summary .profile-intro { color: var(--text-3); }
.learner-shell .profile-page .profile-summary .profile-quota { color: var(--text-3); font-size: 12px; }
.learner-shell .profile-page > .learn-tabs { margin-bottom: 22px; width: fit-content; max-width: 100%; }
.profile-scope-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px 18px; background: var(--surface); border-radius: 20px; margin-bottom: 0; }
.profile-scope-form .form-field { flex: 0 1 280px; min-width: 0; margin: 0; }
.profile-scope-form label { display: grid; gap: 6px; font-size: 12px; color: var(--text-3); min-width: 0; }
.profile-scope-form select { font-size: 14px; min-height: 44px; background: var(--fill); border-color: transparent; border-radius: 12px; width: 100%; }
.profile-scope-note { color: var(--text-3); font-size: 12px; line-height: 1.8; margin: 0 2px; }
.profile-overview { display: grid; gap: 16px; min-width: 0; }
.profile-overview-hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); gap: 14px; align-items: stretch; }
.profile-resume-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: clamp(18px, 2.2vw, 26px); min-height: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--card-shadow); }
.profile-resume-card .eyebrow,
.profile-resume-card > p:first-child { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 12px; }
.learner-shell .profile-resume-card h2 { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.35; max-width: 26em; margin: 0 0 8px; letter-spacing: -.04em; }
.profile-resume-card > .row { margin-top: auto; padding-top: 12px; }
.profile-resume-card .row > .button { margin: 0; }
/* 「查看进行中的其他练习」与主按钮同高，但用描边弱化，不抢主按钮的重量。 */
.profile-resume-card .row > .profile-resume-others { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong, #D1D1D6); }
.profile-resume-card .row > .profile-text-link { min-height: 44px; padding-block: 11px; line-height: 22px; }
.profile-resume-card p { color: var(--text-3); font-size: 14px; line-height: 1.65; }
.profile-resume-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; color: var(--text-3); }
/* 续卡里的真实作答进度：填满卡片下半部分，同时告诉用户还剩多少。 */
.profile-resume-progress { width: 100%; margin-top: 10px; display: grid; gap: 6px; }
.profile-resume-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }
.profile-resume-progress-head strong { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.profile-resume-bar { height: 7px; border-radius: 999px; background: var(--fill-strong, #EDEDF2); overflow: hidden; }
.profile-resume-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-color, #F79A3E); }
.profile-membership-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 8px; padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: transparent; }
/* 当前方案卡与 /know、会员中心首屏同源：白底 + 双角光晕 + hairline + 顶部内高光。
   当前方案是付费方案时换成暖金双角光晕，浓度比 /know 更实，「已开通」一眼可见。 */
.learner-shell .profile-membership-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(29, 29, 31, .03), 0 18px 44px -26px rgba(29, 29, 31, .24);
  background:
    radial-gradient(420px 230px at 94% -28%, rgba(var(--brand-rgb), .16), transparent 64%),
    radial-gradient(320px 200px at 0% 130%, rgba(var(--brand-rgb), .10), transparent 62%),
    var(--surface);
}
.learner-shell .profile-membership-card.is-vip {
  border-color: #F6E4BE;
  box-shadow: 0 1px 2px rgba(90, 62, 20, .03), 0 18px 44px -26px rgba(120, 78, 20, .22);
  background:
    radial-gradient(400px 230px at 94% -26%, rgba(255, 190, 110, .34), transparent 70%),
    radial-gradient(330px 210px at 0% 132%, rgba(255, 216, 160, .24), transparent 66%),
    linear-gradient(180deg, #FFFDFA, #FFFAF0);
}
.learner-shell .profile-membership-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}
.learner-shell .profile-membership-card h2 { font-size: 20px; letter-spacing: -.025em; margin: 0; }
.profile-membership-card p { font-size: 13px; color: var(--text-3); line-height: 1.6; margin: 0; }
.profile-membership-card a:not(.button) { color: var(--brand-text); font-size: 13px; padding-block: 7px; }
.profile-membership-card dl { margin: 0; }
.profile-membership-card dt { font-size: 12px; color: var(--text-3); }
.profile-membership-card dd { margin: 3px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.profile-membership-quota { font-size: 14px; color: var(--text-2); }
.profile-overview-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); padding: 15px 8px; border-radius: 20px; }
.profile-overview-stat { display: grid; gap: 6px; align-content: start; padding: 2px 22px; min-width: 0; position: relative; }
.profile-overview-stat + .profile-overview-stat { border-left: 1px solid var(--line); }
.profile-overview-stat .ui-icon { color: var(--brand-text); width: 19px; height: 19px; margin-bottom: 6px; }
.profile-overview-stat strong { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.profile-overview-stat span { font-size: 13px; color: var(--text-2); }
.profile-overview-stat small { font-size: 12px; color: var(--text-3); }
.profile-overview-stat:hover span { color: var(--brand-text); }
.profile-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 2px 14px; }
.learner-shell .profile-section-head h2 { font-size: 20px; letter-spacing: -.035em; }
.profile-section-head > a { color: var(--brand-text); font-size: 13px; padding-block: 8px; }
.profile-section-head p { margin: 0; color: var(--text-3); font-size: 13px; }
.profile-overview-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 28px; background: var(--surface); padding: 6px 24px; border-radius: 24px; }
.profile-overview-tool { display: flex; align-items: center; gap: 13px; padding: 14px 0; min-width: 0; border-bottom: 1px solid var(--line); }
.profile-overview-tool:nth-last-child(-n+2) { border-bottom: 0; }
.profile-overview-tool > .ui-icon { width: 22px; height: 22px; color: var(--brand-text); flex: 0 0 auto; }
.profile-overview-tool > div { flex: 1; min-width: 0; }
.profile-overview-tool h3 { font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.profile-overview-tool p { font-size: 12px; color: var(--text-3); line-height: 1.7; margin: 0; }
.profile-tool-status { font-size: 12px; white-space: nowrap; color: var(--brand-text); margin-left: auto; }
.profile-tool-status.is-locked { color: var(--text-3); }
.profile-tool-status.is-unavailable { color: var(--warn-text); white-space: normal; }
.profile-overview-recent { min-width: 0; }
.profile-recent-item { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 15px 20px; background: var(--surface); }
.profile-recent-item:first-child { border-radius: 24px 24px 0 0; }
.profile-recent-item:last-child { border-radius: 0 0 24px 24px; }
.profile-recent-item:only-child { border-radius: 24px; }
.profile-recent-item + .profile-recent-item { border-top: 1px solid var(--line); }
.profile-recent-item > div:first-child { flex: 1 1 260px; min-width: 0; }
.profile-recent-item strong { font-size: 14px; font-weight: 600; line-height: 1.8; }
.profile-recent-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--text-3); font-size: 12px; margin-top: 5px; }
.profile-recent-score { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-recent-score small { display: block; color: var(--text-3); font-weight: 400; }
.profile-overview-empty,
.profile-overview-unavailable { padding: 24px; border: 1px solid var(--line); border-radius: 24px; color: var(--text-3); font-size: 14px; }
.learner-shell .profile-content .learn-history-table { padding: 12px 24px; }
.learner-shell .profile-content .responsive-table th { font-weight: 500; color: var(--text-3); padding-block: 16px; }
.learner-shell .profile-content .responsive-table td { padding-block: 20px; }
.learner-shell .advice-dashboard .stat-grid { gap: 14px; }
.learner-shell .advice-dashboard .stat-grid .card { padding: 24px; }
.learner-shell .advice-dashboard .stat-number { font-weight: 600; letter-spacing: -.045em; }
.learner-shell .advice-columns { gap: 20px; }
.learner-shell .advice-columns > .card { padding: 26px; }

/* Overview's inner lists are structural, not nested card grids. */
.learner-shell .profile-overview > .profile-overview-tools { display: block; padding: 18px 22px; }
.profile-tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.profile-tool-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; color: var(--brand-text); background: rgba(var(--brand-rgb), .08); }
.profile-tool-copy { display: grid; gap: 6px; flex: 1; min-width: 0; }
.profile-tool-copy > strong { font-size: 15px; font-weight: 600; }
.profile-tool-copy > span { font-size: 12px; color: var(--text-3); line-height: 1.8; }
.profile-resume-label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
.profile-stat-label { display: inline-flex; align-items: center; gap: 8px; }
.profile-overview-stat .profile-stat-label .ui-icon { margin: 0; }
.profile-overview-stat strong small { margin-left: 5px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.profile-overview-stat .profile-stat-note { font-size: 12px; color: var(--text-3); }
.profile-text-link { display: inline-flex; align-items: center; color: var(--brand-text); font-size: 13px; min-height: 40px; }
.learner-shell .profile-membership-card { box-shadow: none; }
.profile-membership-card .profile-section-head { width: 100%; margin: 0; }
.learner-shell .profile-membership-card .profile-section-head h2 { font-size: 13px; color: var(--text-3); font-weight: 500; }
.profile-membership-name { font-size: 25px; font-weight: 600; letter-spacing: -.035em; }
.profile-membership-quota { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.profile-membership-quota dd span { font-size: 12px; letter-spacing: 0; color: var(--text-3); font-weight: 400; }
.profile-recent-copy h3 { font-size: 14px; font-weight: 600; }
.profile-recent-empty { color: var(--text-3); font-size: 14px; padding-block: 14px; }
.learner-shell .profile-overview-recent { padding: 26px; }
.profile-overview-recent .profile-recent-item { padding-inline: 0; }
.profile-overview-recent .profile-recent-item:last-child { padding-bottom: 0; }
/* 状态徽标与「提交后查看得分」宽度不同，居中排列才不会左右错位。 */
.profile-recent-score { display: grid; gap: 5px; justify-items: center; text-align: center; }

/* Practice controls remain above opaque, comfortable reading surfaces. */
.learner-shell .learn-practice .learn-practice-toolbar { top: 68px; min-height: 64px; padding: 10px 14px; border-radius: 22px; background: var(--glass-surface); box-shadow: 0 2px 16px rgba(29, 29, 31, .04), inset 0 0 0 1px rgba(255, 255, 255, .9); }
.learner-shell .learn-practice .learn-toolbar-title h1 { font-family: var(--font-ui); }
.learner-shell .learn-practice .learn-practice-toolbar .button,
.learner-shell .learn-practice .learn-save-sync { min-height: 44px; padding: 11px 14px; border: 0; line-height: 22px; box-shadow: none; }
.learner-shell .learn-practice .learn-save-sync:hover:not(:disabled) { border: 0; background: var(--fill-strong); }
.learner-shell .learn-practice .learn-zoom { height: 44px; padding: 0; align-items: center; }
.learner-shell .learn-practice .learn-zoom button { min-width: 44px; min-height: 44px; padding: 0 10px; --tap-min: 44px; }
  .learner-shell .learn-sheet,
.learner-shell .learn-time-panel { border-radius: 22px; padding: 20px; background: var(--surface); box-shadow: 0 16px 60px rgba(29, 29, 31, .13); }
.learner-shell .learn-sheet-questions { gap: 8px; }
.learner-shell .learn-sheet-q { min-width: 44px; min-height: 44px; height: auto; padding: 8px; border: 0; border-radius: 12px; box-shadow: none; }
.learner-shell .learn-sheet-q:hover { transform: none; box-shadow: none; }
.learner-shell .learn-sheet-unit { padding-block: 12px; }
.learner-shell .learn-practice .learn-material { border-radius: 22px; }
.learner-shell .learn-practice .learn-material h2 { font-family: var(--font-ui); }
.learner-shell .learn-practice .learn-option { border-radius: 14px; min-height: 46px; }
.learner-shell .learn-practice .learn-practice-footer { border-radius: 22px; padding: 16px; }
.learner-shell .learn-practice .learn-practice-footer .button { min-height: 44px; }
.learner-shell .score-overview,
.learner-shell .score-summary { border-radius: 24px; }

/* Same book, same training family; no decorative VIP colours. */
.learner-shell .vocab-training-hero { padding: 26px 28px; background: var(--surface); border-radius: 26px; box-shadow: var(--card-shadow); }
.learner-shell .vocab-training-hero h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.04em; }
.learner-shell .vocab-group-title { font-size: 16px; font-weight: 600; letter-spacing: -.025em; margin-top: 26px; }
.learner-shell .vocab-list-card { padding: 22px; border-radius: 23px; box-shadow: var(--card-shadow); }
.learner-shell .vocab-list-card h2 { font-family: var(--font-ui); font-size: 17px; letter-spacing: -.02em; }
.learner-shell .vocab-list-card .vocab-list-desc { line-height: 1.8; font-size: 13px; }
.learner-shell .vocab-list-card .vocab-list-total strong { font-weight: 600; letter-spacing: -.025em; }
.learner-shell .vocab-vip-pill { background: var(--fill); color: var(--text-2); }
.learner-shell .vocab-list-bar { height: 5px; border-radius: 999px; }
.learner-shell .vocab-study { max-width: 760px; margin-inline: auto; padding: 28px; }
.learner-shell .vocab-word { font-family: var(--font-text); }
/* Vocabulary actions share one quiet tap target; semantic answer fills carry state. */
.learner-shell .vocab-speak,
.learner-shell .vocab-filter,
.learner-shell .vocab-secondary,
.learner-shell .vocab-master,
.learner-shell .vocab-unknown,
.learner-shell .vocab-word-row-speak,
.learner-shell .vocab-word-row-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  line-height: 22px;
}
.learner-shell .vocab-btn-badge { line-height: 20px; }
.learner-shell .vocab-speak { padding: 11px 16px; background: var(--fill); transition: background .15s ease, color .15s ease; }
.learner-shell .vocab-speak:hover { transform: none; box-shadow: none; background: var(--fill-strong); }
.learner-shell .vocab-options button {
  min-height: 48px; padding-block: 13px; border: 0; border-radius: 15px; box-shadow: none;
  line-height: 22px; transition: background .14s ease, color .14s ease;
}
.learner-shell .vocab-option { background: var(--fill); }
.learner-shell .vocab-option:hover { border: 0; transform: none; box-shadow: none; background: #FFFBF5; }
.learner-shell .vocab-option.is-correct { border: 0; background: #F0FBF3; color: #1E7F3C; }
.learner-shell .vocab-option.is-wrong { border: 0; background: #FFF1F0; color: #B3261E; }
.learner-shell .vocab-filter,
.learner-shell .vocab-secondary { padding: 11px 15px; background: var(--fill); }
.learner-shell .vocab-filter:hover,
.learner-shell .vocab-secondary:hover:not(:disabled) { border: 0; transform: none; box-shadow: none; background: var(--fill-strong); color: var(--text); }
.learner-shell .vocab-filter[aria-pressed="true"] { background: var(--ios-dark); color: #fff; }
.learner-shell .vocab-master { min-height: 44px; padding: 11px 14px; }
.learner-shell .vocab-unknown { min-height: 44px; padding: 11px; }
.learner-shell .vocab-word-row-speak { width: 44px; height: 44px; padding: 11px; background: var(--fill); }
.learner-shell .vocab-word-row-speak:hover { border: 0; background: var(--fill-strong); }
.learner-shell .vocab-word-row-mark { padding: 11px 14px; background: #FFF0DC; }
.learner-shell .vocab-word-row-mark:hover:not(:disabled) { border: 0; background: #FFE6C7; }
.learner-shell .vocab-back { min-height: 44px; padding-block: 11px; }
.learner-shell .vocab-settings-dialog { border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(29, 29, 31, .18); }
.learner-shell .sp-library { border-radius: 23px; }

/* Editorial reading keeps the text quiet and lets the lookup controls carry the accent. */
.learner-shell .rd-hero { padding: 24px 2px; border: 0; background: transparent; }
.learner-shell .rd-hero h1 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.045em; }
.learner-shell .rd-hero-sub { max-width: 56em; line-height: 1.9; }
.learner-shell .rd-hero-stats { gap: 24px; }
.learner-shell .rd-feature { border-radius: 25px; grid-template-columns: 230px minmax(0, 1fr); min-height: 170px; box-shadow: var(--card-shadow); }
.learner-shell .rd-feature-body { padding: 24px 28px; gap: 7px; }
.learner-shell .rd-feature h2 { white-space: normal; font-size: clamp(20px, 2vw, 25px); letter-spacing: -.035em; }
.learner-shell .rd-feature-en { font-size: 13px; }
.learner-shell .rd-feature-cover,
.learner-shell .rd-row-cover { background: #E8EAEF; }
.learner-shell .rd-row { padding: 13px 20px 13px 13px; border-radius: 20px; gap: 20px; box-shadow: 0 1px 3px rgba(29, 29, 31, .025); }
.learner-shell .rd-row h3 { font-size: 16px; line-height: 1.6; }
.learner-shell .rd-row:hover,
.learner-shell .rd-feature:hover { transform: none; }
.learner-shell .rd-head { max-width: 860px; margin-bottom: 26px; }
.learner-shell .rd-head h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; }
.learner-shell .rd-toolbar { border-radius: 19px; padding: 10px 12px; top: 68px; background: var(--glass-surface); }
.learner-shell .rd-tool-group { min-height: 44px; padding: 0; align-items: center; }
.learner-shell .rd-tool,
.learner-shell .rd-tool-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 12px; border: 0; border-radius: 12px; line-height: 22px; box-shadow: none; }
.learner-shell .rd-body { padding: 26px 32px; background: var(--surface); border-radius: 24px; }
.learner-shell .rd-para-en { max-width: none; font-size: 18px; line-height: 1.95; }
.learner-shell .rd-para-zh { font-size: 15px; line-height: 1.95; }
.learner-shell .rd-side { top: 86px; gap: 16px; }
.learner-shell .rd-card { border-radius: 21px; padding: 20px; background: var(--surface); }
/* The lookup panel keeps its own tinted gradient from reading.css; this shell only
   standardises the corner radius, otherwise every card flattens to plain white. */
.learner-shell .rd-lookup { border-radius: 21px; padding: 20px; }
.learner-shell .rd-card-head h2,
.learner-shell .rd-card-head h3 { letter-spacing: 0; text-transform: none; font-size: 14px; color: var(--text); font-weight: 600; }
.learner-shell .rd-vip { background: #ECEEF3; color: var(--text); border-radius: 21px; box-shadow: none; padding: 20px; }
.learner-shell .rd-vip h3 { color: var(--text); }
.learner-shell .rd-vip p { color: var(--text-3); }
.learner-shell .rd-vip .kicker,
.learner-shell .rd-vip .go { color: var(--brand-text); letter-spacing: 0; }
.learner-shell .rd-pop,
.learner-shell .rd-sheet-inner { border-radius: 24px; }
.learner-shell .rd-lookup-actions { align-items: center; }
.learner-shell .rd-lookup-actions button,
.learner-shell .rd-vault-actions button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border: 0; border-radius: 999px; padding: 11px 12px; background: var(--fill);
  font-size: 13px; line-height: 22px; box-shadow: none;
}
.learner-shell .rd-lookup-actions button:hover,
.learner-shell .rd-vault-actions button:hover { border: 0; transform: none; box-shadow: none; background: var(--fill-strong); }
.learner-shell .rd-vault-actions button.danger { color: var(--danger-text); background: var(--danger-bg); }
.learner-shell .rd-vault-actions button.danger:hover { border: 0; color: var(--danger-text); background: #FFE7E5; }
.learner-shell .rd-vault-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1 1 100%; gap: 6px; min-width: 0; }
.learner-shell .rd-vault-actions button { min-width: 0; padding-inline: 7px; font-size: 12px; }
.learner-shell .rd-vault-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.learner-shell .rd-vault-filters :is(input[type="search"], select) { height: 44px; min-height: 44px; padding-block: 10px; line-height: 24px; }
.learner-shell .rd-section-nav a { min-height: 44px; }
.learner-shell .vocab-list-card:hover,
.learner-shell .vocab-word-row:hover:not(.is-fading),
.learner-shell .learn-practice .learn-q-play:hover { transform: none; }

@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .learner-shell { --glass-surface: rgba(250, 250, 252, .88); --header-bg: rgba(250, 250, 252, .84); }
  .learner-shell .nav-account-panel,
  .learner-shell .rd-toolbar { backdrop-filter: saturate(150%) blur(24px); -webkit-backdrop-filter: saturate(150%) blur(24px); }
}
@media (max-width: 1000px) {
  .learner-shell .public-header-inner { min-height: 56px; padding-block: 5px; }
  .learner-shell .brand-image { height: 36px; max-width: 145px; }
  .learner-shell .brand-mark { width: 38px; height: 38px; }
  .learner-shell .public-main { padding-top: 14px; }
  .learner-shell .learn-practice .learn-practice-toolbar { top: 0; }
  .learner-shell .rd-toolbar { top: 58px; }
}
@media (max-width: 760px) {
  .learner-shell .public-header-inner { min-height: 52px; padding-block: 4px; }
  .learner-shell .brand-image { height: 32px; max-width: 130px; }
  .learner-shell .brand-mark { width: 34px; height: 34px; }
  .learner-shell .public-main { padding-top: 12px; }
  .learner-shell .learning-catalog .home-hero { padding: 23px 20px; border-radius: 24px; }
  .learner-shell .home-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .learner-shell .home-tools .segmented-scroller { grid-column: 1 / -1; width: 100%; }
  .learner-shell .home-tools .segmented { width: 100%; }
  .learner-shell .home-tools .search { width: 100%; min-width: 0; }
  .learner-shell .home-tools .search input { min-width: 0; }
  .learner-shell .home-tools > .button { padding-inline: 14px; }
  .learner-shell .paper-tile { padding: 13px 14px; }
  .profile-overview { gap: 22px; }
  .profile-overview-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .profile-resume-card { min-height: 0; padding: 18px; border-radius: 20px; }
  .profile-membership-card { padding: 16px 18px; border-radius: 20px; gap: 8px; }
  .profile-overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; padding: 14px 0; }
  .profile-overview-stat { padding-inline: 22px; }
  .profile-overview-stat:nth-child(3) { border-left: 0; }
  .profile-overview-tools { grid-template-columns: minmax(0, 1fr); padding-inline: 20px; }
  .profile-tool-list { grid-template-columns: minmax(0, 1fr); }
  .learner-shell .profile-overview > .profile-overview-tools,
  .learner-shell .profile-overview-recent { padding: 22px 20px; }
  .profile-overview-tool:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .profile-scope-form { padding: 14px; gap: 12px; }
  .profile-scope-form .form-field { flex: 1 1 150px; }
  .profile-scope-form .button { margin-left: auto; }
  .profile-recent-item { padding: 18px 20px; gap: 12px; }
  .learner-shell .profile-page .profile-summary h1 { font-size: 28px; }
  .learner-shell .profile-content .learn-history-table { padding-inline: 18px; }
  .learner-shell .profile-content .learn-history-table td { padding-block: 0; }
  .learner-shell .profile-content .learn-history-table tr { padding-block: 22px; }
  .learner-shell .compose-card { padding: 20px; }
  .learner-shell .learn-sheet { padding: 16px; }
  .learner-shell .learn-sheet-unit { display: grid; gap: 8px; }
  .learner-shell .learn-sheet-unit-title { flex-basis: auto; }
  .learner-shell .vocab-training-hero { padding: 22px 20px; }
  .learner-shell .rd-feature { grid-template-columns: 124px minmax(0, 1fr); min-height: 160px; }
  .learner-shell .rd-feature-body { padding: 18px; gap: 6px; }
  .learner-shell .rd-feature h2 { font-size: 18px; }
  .learner-shell .rd-feature-foot { gap: 6px; }
  .learner-shell .rd-row { gap: 12px; }
  .learner-shell .rd-body { padding: 22px 16px; }
  .learner-shell .rd-para { padding-left: 14px; }
  .learner-shell .rd-para-en { font-size: 17px; }
  .learner-shell .rd-para-zh { font-size: 14px; }
  /* Scoped to the expanded panel only: the collapsed pill carries its own tinted
     background and must not be repainted by this glass treatment. */
  .learner-shell .tab-bar[data-expanded="true"] { background: var(--glass-surface); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 10px 40px rgba(29, 29, 31, .1), inset 0 0 0 1px rgba(29, 29, 31, .04); border-radius: 28px; }
  .learner-shell .tab-bar a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 5px rgba(29, 29, 31, .06); color: var(--brand-text); }
  .learner-shell .tab-bar .tab-label { font-size: 11px; letter-spacing: 0; }
}
@media (max-width: 390px) {
  .learner-shell .learning-catalog .home-hero-actions .button { padding-inline: 14px; }
  .learner-shell .home-tools .search { padding-left: 12px; gap: 5px; }
  .learner-shell .home-tools .search .search-icon { display: none; }
  .learner-shell .home-tools .search button { padding-inline: 12px; }
  .profile-overview-stat { padding-inline: 17px; }
  .profile-overview-stat strong { font-size: 25px; }
  .profile-tool-status { white-space: normal; max-width: 65px; text-align: right; }
  .learner-shell .rd-feature { grid-template-columns: minmax(0, 1fr); }
  .learner-shell .rd-feature-cover { min-height: 90px; max-height: 140px; }
  .learner-shell .rd-feature-cover img { max-height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .learner-shell *, .learner-shell *::before, .learner-shell *::after { scroll-behavior: auto; animation: none !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .learner-shell { --header-bg: #FAFAFC; --glass-surface: #FAFAFC; }
  .learner-shell .public-header, .learner-shell .tab-bar, .learner-shell .nav-account-panel,
  .learner-shell .learn-practice-toolbar, .learner-shell .rd-toolbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
