:root{
  color-scheme:light;
  --bg:#f4f6f2;
  --surface:#fff;
  --surface-2:#fafbf9;
  --ink:#17211b;
  --muted:#6f786f;
  --line:#e2e7e1;
  --brand:#246b47;
  --brand-deep:#174b32;
  --brand-soft:#e9f3ed;
  --danger:#b33b36;
  --danger-soft:#f9e9e7;
  --warning:#9a651c;
  --warning-soft:#fff3df;
  --shadow:0 16px 42px rgba(31,50,39,.09);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}
body{min-height:100vh}
button,input,textarea,select{font:inherit}
button{touch-action:manipulation}
button:disabled{opacity:.55;cursor:not-allowed}
.hidden{display:none!important}
.shell{max-width:1060px;margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 18px calc(90px + env(safe-area-inset-bottom))}
.loading{min-height:78vh;display:grid;place-items:center;text-align:center;color:var(--muted)}
.spinner{width:34px;height:34px;border:3px solid #dce5de;border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 13px}
@keyframes spin{to{transform:rotate(360deg)}}
.auth-wrap,.wizard-wrap{min-height:82vh;display:grid;place-items:center}
.auth-card,.wizard-card{width:min(100%,520px);background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:28px;box-shadow:var(--shadow)}
.wizard-card{width:min(100%,760px)}
.logo{width:44px;height:44px;border-radius:14px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:20px;font-weight:800;box-shadow:0 8px 22px rgba(36,107,71,.22)}
.auth-card .logo,.wizard-card .logo{margin-bottom:20px}
.auth-card h1,.wizard-card h1{font-size:25px;margin:0 0 8px}
.intro{color:var(--muted);font-size:14px;line-height:1.7;margin:0 0 22px}
.field{display:block;margin-top:15px}
.field>span{display:block;font-size:12px;font-weight:700;margin-bottom:7px}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:#fbfcfa;border-radius:13px;padding:13px 14px;outline:none;color:var(--ink)}
.field textarea{min-height:80px;resize:vertical;line-height:1.6}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(36,107,71,.1)}
.primary-btn,.secondary-btn,.ghost-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:13px;padding:12px 17px;font-weight:750;cursor:pointer}
.primary-btn{border:0;background:var(--brand);color:#fff}
.primary-btn.full{width:100%;margin-top:20px}
.secondary-btn{border:1px solid var(--line);background:#fff;color:var(--ink)}
.ghost-btn{border:0;background:transparent;color:var(--muted)}
.message{min-height:20px;font-size:12px;margin-top:12px;line-height:1.5}
.message.error{color:var(--danger)}
.message.success{color:var(--brand)}
.help{font-size:11px;color:var(--muted);line-height:1.6;margin-top:14px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.brand{display:flex;align-items:center;gap:12px}
.brand h1{font-size:19px;line-height:1.15;margin:0}
.brand p{font-size:12px;color:var(--muted);margin:5px 0 0}
.actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.hero{background:linear-gradient(145deg,var(--brand-deep),var(--brand));color:#fff;border-radius:26px;padding:26px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-55px;top:-70px;background:rgba(255,255,255,.09)}
.hero-kicker{font-size:12px;opacity:.78;letter-spacing:.12em;text-transform:uppercase}
.hero h2{font-size:29px;line-height:1.24;margin:10px 0 9px;max-width:680px}
.hero p{font-size:14px;line-height:1.75;max-width:680px;margin:0;color:rgba(255,255,255,.82)}
.status-line{display:flex;align-items:center;gap:9px;margin-top:19px;font-size:13px}
.status-dot{width:9px;height:9px;border-radius:50%;background:#b9efca;box-shadow:0 0 0 6px rgba(185,239,202,.13)}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px;margin-top:14px}

/* ★ 卡片默认【占满一行】，想变窄的自己声明。
   
   .grid 是 12 栅格，而 CSS 里没写 grid-column 的卡片会被自动放进
   【一格】—— 也就是屏幕的十二分之一。表现出来就是几张卡并排缩成
   几根竖条，里面的字一个字一行（老板截图里学习库那四条就是这样）。
   
   这个坑之所以反复踩，是因为它是"忘了写"才触发的：加一张新卡、
   忘了补一条 grid-column，页面就塌一块，而且不报错。
   所以把默认反过来 —— 忘了写就是整行，最多是宽了点，不会塌。
   
   用 :where() 是为了让这条规则【零特异度】：下面 .summary（span 4）、
   .plan-health 这些真正想变窄的，照旧生效，一个字都不用改。 */
.grid>:where(.card){grid-column:1/-1}

.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:19px;box-shadow:0 8px 26px rgba(31,50,39,.04)}
.summary{grid-column:span 4}
.summary .label{font-size:12px;color:var(--muted)}
.summary .value{font-size:26px;font-weight:800;margin-top:8px;letter-spacing:-.02em}
.summary .hint{font-size:11px;color:var(--muted);margin-top:4px}
.section-card{grid-column:span 12}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
.section-head h3{font-size:16px;margin:0}
.section-head p{font-size:12px;color:var(--muted);margin:5px 0 0}
.section-head>span{font-size:12px;color:var(--muted)}
.module-list{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.module{border:1px solid var(--line);border-radius:16px;padding:15px;background:#fcfdfb;min-height:112px;display:flex;flex-direction:column;justify-content:space-between}
.module-icon{font-size:22px}
.module-name{font-size:14px;font-weight:700;margin-top:10px}
.module-status{font-size:11px;color:var(--muted);margin-top:5px}
.badge{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:5px 8px;background:var(--brand-soft);color:var(--brand-deep);font-size:10px;font-weight:700}
.footer-note{text-align:center;color:var(--muted);font-size:11px;margin-top:18px}
.plan-health{grid-column:span 12;display:flex;align-items:flex-start;gap:12px}
.health-mark{width:36px;height:36px;border-radius:12px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:900;flex:0 0 auto}
.plan-health.warning .health-mark{background:var(--warning-soft);color:var(--warning)}
.plan-health.danger .health-mark{background:var(--danger-soft);color:var(--danger)}
.plan-health strong{font-size:14px}
.plan-health p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.6}
.task-list{display:grid;gap:9px}
.task-item{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:15px;padding:13px;background:var(--surface-2);cursor:pointer}
.task-item input{width:20px;height:20px;margin-top:1px;accent-color:var(--brand);flex:0 0 auto}
.task-main{flex:1;min-width:0}
.task-title{font-size:14px;font-weight:700;line-height:1.5}
.task-meta{font-size:11px;color:var(--muted);margin-top:4px}
.task-item.completed .task-title{text-decoration:line-through;color:var(--muted)}
.empty-state{padding:22px;border:1px dashed var(--line);border-radius:16px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}
.log-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.log-field{display:block}
.log-field span{display:block;font-size:12px;font-weight:700;margin-bottom:7px}
.log-field textarea{width:100%;min-height:94px;border:1px solid var(--line);border-radius:13px;padding:12px;background:#fbfcfa;resize:vertical;outline:none;line-height:1.55}
.log-field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(36,107,71,.1)}
.log-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.wizard-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:18px 0 24px}
.progress-segment{height:5px;border-radius:999px;background:var(--line)}
.progress-segment.active,.progress-segment.done{background:var(--brand)}
.wizard-step{display:none}
.wizard-step.active{display:block}
.wizard-step h2{font-size:21px;margin:0 0 6px}
.wizard-step>p{font-size:13px;color:var(--muted);line-height:1.65;margin:0 0 18px}
.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.choice{display:block;position:relative}
.choice input{position:absolute;opacity:0;pointer-events:none}
.choice-box{height:100%;border:1px solid var(--line);border-radius:15px;padding:14px;background:#fbfcfa;cursor:pointer;transition:.16s ease}
.choice-box strong{display:block;font-size:14px}
.choice-box small{display:block;color:var(--muted);font-size:11px;line-height:1.55;margin-top:5px}
.choice input:checked+.choice-box{border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 3px rgba(36,107,71,.08)}
.chip-grid{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative}
.chip input{position:absolute;opacity:0;pointer-events:none}
.chip span{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:9px 12px;background:#fbfcfa;font-size:13px;cursor:pointer}
.chip input:checked+span{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-deep);font-weight:700}
.day-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
.day-chip{position:relative}
.day-chip input{position:absolute;opacity:0;pointer-events:none}
.day-chip span{display:grid;place-items:center;height:42px;border:1px solid var(--line);border-radius:12px;background:#fbfcfa;font-size:12px;cursor:pointer}
.day-chip input:checked+span{border-color:var(--brand);background:var(--brand);color:#fff;font-weight:700}
.inline-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px}
.wizard-actions .right{display:flex;gap:8px}
.edit-plan-option{margin-top:16px;padding:12px;border-radius:13px;background:var(--warning-soft);font-size:12px;line-height:1.6}
.edit-plan-option label{display:flex;align-items:flex-start;gap:8px}
.edit-plan-option input{margin-top:2px;accent-color:var(--brand)}
dialog{width:min(92vw,440px);border:0;border-radius:22px;padding:0;box-shadow:0 24px 70px rgba(0,0,0,.2)}
dialog::backdrop{background:rgba(13,25,18,.46);backdrop-filter:blur(3px)}
.dialog-body{padding:24px}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.dialog-head h3{margin:0}
.icon-btn{width:36px;height:36px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
@media(max-width:760px){
  .shell{padding-left:14px;padding-right:14px}
  .hero{padding:22px 19px;border-radius:22px}
  .hero h2{font-size:25px}
  .summary{grid-column:span 12}
  .summary .value{font-size:23px}
  .module-list{grid-template-columns:repeat(2,1fr)}
  .module{min-height:104px}
  .topbar{align-items:flex-start}
  .actions{max-width:170px}
  .actions button{padding:8px 10px;font-size:12px}
  .auth-card,.wizard-card{padding:23px 19px;border-radius:22px}
  .choice-grid,.inline-grid,.log-grid{grid-template-columns:1fr}
  .day-grid{gap:5px}
  .day-chip span{height:38px;font-size:11px}
  .wizard-actions{align-items:flex-end}
}
@media(max-width:390px){
  .module-list{grid-template-columns:1fr}
  .brand p{display:none}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* Step 5: DeepSeek智能查询中心 */
.lookup-card{position:relative;overflow:hidden}
.lookup-head{align-items:center}
.ai-badge{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;background:var(--warning-soft);color:var(--warning);font-size:11px;font-weight:800;white-space:nowrap}
.ai-badge.ready{background:var(--brand-soft);color:var(--brand-deep)}
.ai-badge.missing{background:var(--danger-soft);color:var(--danger)}
.lookup-form{margin-top:4px}
.lookup-input-wrap{display:grid;grid-template-columns:1fr auto;gap:9px}
.lookup-input-wrap input{width:100%;min-width:0;border:1px solid var(--line);background:#fbfcfa;border-radius:15px;padding:14px 15px;outline:none;color:var(--ink);font-size:15px}
.lookup-input-wrap input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(36,107,71,.1)}
.quick-query-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:11px;color:var(--muted);font-size:11px}
.quick-query{border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:6px 9px;color:var(--ink);cursor:pointer;font-size:11px}
.quick-query:hover{border-color:var(--brand)}
.lookup-history-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px}
.lookup-history-head strong{font-size:13px}
.lookup-history-head span{font-size:11px;color:var(--muted)}
.lookup-history{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
.history-query{border:1px solid var(--line);background:#fff;border-radius:12px;padding:8px 10px;cursor:pointer;text-align:left}
.history-query strong{display:block;font-size:12px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-query small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.lookup-empty{width:100%;border:1px dashed var(--line);border-radius:13px;padding:13px;color:var(--muted);font-size:12px;text-align:center}
.lookup-dialog{width:min(94vw,720px);max-height:92vh}
.lookup-dialog-body{max-height:92vh;overflow:auto}
.lookup-type{font-size:10px;color:var(--brand);font-weight:850;letter-spacing:.09em;text-transform:uppercase;margin-bottom:4px}
.lookup-dialog .dialog-head h3{font-size:24px;line-height:1.25;word-break:break-word}
.lookup-phonetic{font-size:12px;color:var(--muted);margin-top:6px}
.lookup-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:15px}
.lookup-toolbar .secondary-btn{padding:8px 11px;font-size:12px}
.lookup-source{margin-left:auto;font-size:10px;color:var(--muted)}
.lookup-result{display:grid;gap:13px;margin-top:5px}
.lookup-summary{background:linear-gradient(135deg,var(--brand-soft),#f6faf7);border:1px solid #d8e7dc;border-radius:16px;padding:15px;font-size:15px;font-weight:750;line-height:1.7}
.lookup-section{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--surface-2)}
.lookup-section h4{margin:0 0 10px;font-size:13px}
.lookup-item{padding:10px 0;border-top:1px solid var(--line)}
.lookup-item:first-of-type{border-top:0;padding-top:0}
.lookup-item:last-child{padding-bottom:0}
.lookup-item-title{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;font-size:13px;font-weight:750;line-height:1.55}
.lookup-item p{font-size:12px;color:var(--muted);line-height:1.65;margin:4px 0 0}
.lookup-english{font-size:14px;color:var(--ink);font-weight:750;line-height:1.55}
.lookup-translation{font-size:12px;color:var(--muted);margin-top:3px}
.speak-mini{border:0;background:var(--brand-soft);color:var(--brand-deep);border-radius:9px;padding:5px 7px;cursor:pointer;white-space:nowrap;font-size:10px}
.lookup-note-list{margin:0;padding-left:18px}
.lookup-note-list li{font-size:12px;color:var(--muted);line-height:1.7;margin:4px 0}
.quick-check{background:#fff7e9;border-color:#f0d9b7}
.quick-answer{margin-top:9px}
.quick-answer summary{cursor:pointer;font-size:12px;color:var(--warning);font-weight:800}
.quick-answer p{color:var(--ink)}
.collection-save{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}
.collection-save select{width:100%;min-width:0;border:1px solid var(--line);border-radius:13px;background:#fff;padding:11px 12px;outline:none}
.collection-save select:focus{border-color:var(--brand)}
@media(max-width:760px){
  .lookup-input-wrap{grid-template-columns:1fr}
  .lookup-input-wrap .primary-btn{width:100%}
  .lookup-history-head{align-items:flex-start;flex-direction:column;gap:3px}
  .history-query{max-width:100%}
  .lookup-source{width:100%;margin-left:0}
  .collection-save{grid-template-columns:1fr}
  .collection-save .primary-btn{width:100%}
  .lookup-dialog .dialog-head h3{font-size:21px}
}

/* Step 6: 主Tab导航 */
.user-mini{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:rgba(255,255,255,.82);border-radius:999px;padding:8px 11px;color:var(--muted);font-size:12px;white-space:nowrap}.user-mini-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 4px rgba(36,107,71,.10)}
.app-tabs{position:sticky;top:10px;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0 0 16px;padding:7px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 10px 30px rgba(31,50,39,.08);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.app-tab{position:relative;min-width:0;border:0;border-radius:13px;background:transparent;color:var(--muted);padding:10px 8px;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;font-size:12px;font-weight:750;transition:background .18s ease,color .18s ease,transform .18s ease}.app-tab:hover{background:var(--surface-2);color:var(--ink)}.app-tab.active{background:var(--brand);color:#fff;box-shadow:0 8px 18px rgba(36,107,71,.18)}.app-tab:active{transform:scale(.98)}.app-tab-icon{font-size:16px;line-height:1}.app-tab-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tab-badge{position:absolute;top:3px;right:7px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#d9473f;color:#fff;font-size:9px;font-weight:850;border:2px solid #fff}.tab-panel{display:none}.tab-panel.active{display:block;animation:tabPanelIn .18s ease-out}@keyframes tabPanelIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.panel-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:15px 3px 4px}.panel-heading h2{margin:4px 0 4px;font-size:27px;line-height:1.25;letter-spacing:-.025em}.panel-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}.panel-kicker{color:var(--brand);font-size:10px;font-weight:850;letter-spacing:.12em}.dashboard-grid{margin-top:14px}
.quick-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-entry,.library-space{border:1px solid var(--line);border-radius:16px;background:var(--surface-2);color:var(--ink);padding:15px;text-align:left;cursor:pointer;min-height:112px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}.quick-entry:hover,.library-space:hover{border-color:#bfd3c6;transform:translateY(-1px);box-shadow:0 8px 22px rgba(31,50,39,.07)}.quick-entry-icon,.library-space-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand-deep);font-size:17px;margin-bottom:5px}.quick-entry strong,.library-space strong{font-size:13px}.quick-entry small,.library-space small{color:var(--muted);font-size:11px;line-height:1.5}
.plan-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.plan-principles>div{border:1px solid var(--line);border-radius:15px;padding:14px;background:var(--surface-2)}.plan-principles strong{display:block;font-size:13px;margin-bottom:6px}.plan-principles span{display:block;color:var(--muted);font-size:11px;line-height:1.55}
.library-space-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.library-space{width:100%}.account-card{padding:22px}.account-profile{display:flex;align-items:center;gap:14px}.account-avatar{width:54px;height:54px;border-radius:18px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:850;box-shadow:0 10px 24px rgba(36,107,71,.18)}.account-profile h3{margin:0;font-size:19px}.account-profile p{margin:6px 0 0;color:var(--muted);font-size:12px}
.account-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:18px}.account-info-grid>div{border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:13px}.account-info-grid span{display:block;color:var(--muted);font-size:10px;margin-bottom:6px}.account-info-grid strong{display:block;font-size:13px;word-break:break-word}.account-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.settings-action{border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);padding:15px;display:flex;align-items:flex-start;gap:11px;text-align:left;cursor:pointer}.settings-action>span{width:34px;height:34px;border-radius:11px;background:var(--brand-soft);color:var(--brand-deep);display:grid;place-items:center;flex:0 0 auto}.settings-action strong{display:block;font-size:13px}.settings-action small{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.45}.danger-action>span{background:var(--danger-soft);color:var(--danger)}.soft-note-card{background:linear-gradient(135deg,#fbfcfa,#f1f6f2)}.soft-note-card strong{font-size:13px}.soft-note-card p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.65}.app-footer{margin-top:25px}
@media(max-width:760px){.shell{padding-bottom:calc(104px + env(safe-area-inset-bottom))}.topbar{margin-bottom:12px;align-items:center}.user-mini{max-width:38vw;overflow:hidden;text-overflow:ellipsis}.app-tabs{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:90;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));gap:3px;border-width:1px 0 0;border-radius:0;background:rgba(255,255,255,.96);box-shadow:0 -12px 34px rgba(31,50,39,.10)}.app-tab{min-height:55px;padding:6px 2px;flex-direction:column;gap:3px;border-radius:12px;font-size:10px}.app-tab.active{background:var(--brand-soft);color:var(--brand-deep);box-shadow:none}.app-tab-icon{font-size:18px}.tab-badge{top:1px;right:calc(50% - 25px);border-color:rgba(255,255,255,.96)}.panel-heading{padding-top:8px}.panel-heading h2{font-size:23px}.quick-entry-grid,.plan-principles,.account-actions-grid{grid-template-columns:1fr}.library-space-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-entry,.library-space{min-height:96px}.app-footer{display:none}}
@media(max-width:390px){.library-space-grid,.account-info-grid{grid-template-columns:1fr}.user-mini{display:none}}

/* Step 7: concrete content library */
.study-overview-card{padding:14px}.study-count-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.study-count-grid>div{border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:13px}.study-count-grid span{display:block;color:var(--muted);font-size:10px;margin-bottom:6px}.study-count-grid strong{font-size:20px}.study-library-card{padding:16px}.study-subtabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}.study-subtabs::-webkit-scrollbar{display:none}.study-subtab{flex:0 0 auto;border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:999px;padding:9px 14px;font-size:12px;font-weight:750;cursor:pointer}.study-subtab.active{border-color:var(--brand);background:var(--brand);color:#fff}.study-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 145px auto;gap:9px;margin-top:14px}.study-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:13px;background:#fbfcfa;padding:0 12px}.study-search input{width:100%;min-width:0;border:0;outline:none;background:transparent;padding:12px 0}.study-toolbar select{border:1px solid var(--line);border-radius:13px;background:#fff;padding:10px 11px}.study-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:13px}.study-card{border:1px solid var(--line);border-radius:17px;background:#fff;padding:15px;min-height:164px;text-align:left;color:var(--ink);cursor:pointer;display:flex;flex-direction:column;transition:.18s}.study-card:hover{transform:translateY(-2px);border-color:#bfd3c6;box-shadow:0 10px 26px rgba(31,50,39,.08)}.study-card-top{display:flex;justify-content:space-between;gap:8px}.study-card-type{border-radius:999px;padding:5px 8px;background:var(--brand-soft);color:var(--brand-deep);font-size:9px;font-weight:800}.study-card-progress{font-size:9px;color:var(--muted)}.study-card-title{margin-top:14px;font-size:19px;line-height:1.35;font-weight:820;word-break:break-word}.study-card.article-card .study-card-title,.study-card.complex-card .study-card-title{font-size:15px;line-height:1.55}.study-card-phonetic{min-height:17px;margin-top:5px;color:var(--muted);font-size:10px}.study-card-summary{margin-top:9px;color:var(--muted);font-size:11px;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.study-card-bottom{display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px}.study-difficulty{display:flex;gap:3px}.study-difficulty i{width:12px;height:4px;border-radius:999px;background:#e3e8e3}.study-difficulty i.active{background:var(--brand)}.study-scenario{color:var(--muted);font-size:9px}.study-load-more-wrap{display:flex;justify-content:center;margin-top:15px}.study-empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:15px;padding:26px 15px;text-align:center;color:var(--muted);font-size:12px}.study-dialog{width:min(94vw,760px);max-height:93vh}.study-dialog-body{max-height:93vh;overflow:auto}.study-detail-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:15px}.study-detail-toolbar .secondary-btn{padding:8px 11px;font-size:12px}.study-detail-status{margin-left:auto;border-radius:999px;padding:6px 9px;background:var(--surface-2);color:var(--muted);font-size:10px;font-weight:750}.study-detail-content{display:grid;gap:12px;margin-top:8px}.study-detail-summary{border:1px solid #d8e7dc;border-radius:16px;background:linear-gradient(135deg,var(--brand-soft),#f7faf7);padding:15px;font-size:15px;line-height:1.75;font-weight:750}.study-detail-section{border:1px solid var(--line);border-radius:16px;background:var(--surface-2);padding:14px}.study-detail-section h4{margin:0 0 10px;font-size:13px}.study-detail-row{padding:10px 0;border-top:1px solid var(--line)}.study-detail-row:first-of-type{border-top:0;padding-top:0}.study-detail-row p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.65}.study-example-en{font-size:14px!important;color:var(--ink)!important;font-weight:750}.study-article-paragraph{padding:13px 0;border-top:1px solid var(--line)}.study-article-paragraph:first-of-type{border-top:0;padding-top:0}.study-article-paragraph .en{font-size:14px;line-height:1.8}.study-article-paragraph .zh{margin-top:7px;color:var(--muted);font-size:12px;line-height:1.7}.study-rating-box{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}.study-rating-box p{margin:5px 0 0;color:var(--muted);font-size:11px}.study-rating-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:11px}.study-rating-actions button{border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 5px;font-size:10px;font-weight:750;cursor:pointer}.study-rating-actions button:hover{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-deep)}
@media(max-width:760px){.study-count-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.study-toolbar{grid-template-columns:1fr 1fr}.study-search{grid-column:1/-1}.study-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.study-card{min-height:155px;padding:13px}.study-detail-status{width:100%;margin-left:0;text-align:center}.study-rating-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.study-rating-actions button:last-child{grid-column:1/-1}}@media(max-width:390px){.study-card-grid{grid-template-columns:1fr}}

/* =========================================================
   Step 8：正式学习模式
   ========================================================= */
.formal-learning-card{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:22px;
  background:
    radial-gradient(circle at 88% 10%,rgba(255,255,255,.72),transparent 35%),
    linear-gradient(135deg,#eaf5ed,#f8fbf8);
  border-color:#c9dfcf;
  overflow:hidden;
}
.formal-learning-copy{min-width:0;flex:1}
.formal-learning-kicker{
  color:var(--brand);
  font-size:10px;
  letter-spacing:.12em;
  font-weight:850;
}
.formal-learning-copy h3{
  margin:6px 0 7px;
  font-size:21px;
  letter-spacing:-.02em;
}
.formal-learning-copy p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}
.formal-learning-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:13px;
  color:var(--muted);
  font-size:10px;
}
.formal-learning-meta span:first-child{
  color:var(--brand-deep);
  font-weight:750;
}
.formal-learning-mini-progress{
  width:min(420px,100%);
  height:6px;
  margin-top:10px;
  border-radius:999px;
  background:rgba(36,107,71,.10);
  overflow:hidden;
}
.formal-learning-mini-progress span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--brand);
  transition:width .25s ease;
}
.formal-learning-start{
  flex:0 0 auto;
  width:116px;
  height:116px;
  border:0;
  border-radius:34px;
  background:var(--brand);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  box-shadow:0 18px 36px rgba(36,107,71,.20);
  transition:transform .18s ease,box-shadow .18s ease;
}
.formal-learning-start:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 42px rgba(36,107,71,.24);
}
.formal-learning-start:active{transform:scale(.98)}
.formal-learning-start span{font-size:24px}
.formal-learning-start strong{font-size:12px}

.library-learning-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  background:linear-gradient(135deg,var(--brand-soft),#fff);
}
.library-learning-banner h3{
  margin:5px 0;
  font-size:17px;
}
.library-learning-banner p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
}
.library-learning-banner .primary-btn{flex:0 0 auto}

.learning-dialog{
  width:100vw;
  max-width:none;
  height:100dvh;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  background:#f5f7f4;
}
.learning-dialog::backdrop{
  background:rgba(19,28,22,.42);
  backdrop-filter:blur(5px);
}
.learning-shell{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(circle at 50% -15%,#e3f1e7,transparent 38%),
    #f5f7f4;
}
.learning-header{
  position:sticky;
  top:0;
  z-index:5;
  min-height:72px;
  display:grid;
  grid-template-columns:44px minmax(0,620px) 44px;
  justify-content:center;
  align-items:center;
  gap:13px;
  padding:10px max(14px,env(safe-area-inset-left));
  background:rgba(245,247,244,.92);
  border-bottom:1px solid rgba(32,64,45,.08);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.learning-close,
.learning-more{
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.82);
  color:var(--ink);
  font-size:21px;
  cursor:pointer;
}
.learning-more{font-size:14px;font-weight:850}
.learning-header-center{min-width:0}
.learning-header-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
}
.learning-header-line strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.learning-header-line span{
  color:var(--muted);
  white-space:nowrap;
}
.learning-progress-track{
  height:7px;
  margin-top:9px;
  border-radius:999px;
  background:rgba(36,107,71,.10);
  overflow:hidden;
}
.learning-progress-track span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--brand),#53a774);
  transition:width .24s ease;
}
.learning-stage{
  width:min(760px,100%);
  margin:0 auto;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px 18px calc(34px + env(safe-area-inset-bottom));
}
.learning-loading{
  text-align:center;
  color:var(--muted);
  font-size:12px;
}
.learning-loading .spinner{margin:0 auto 14px}
.learning-card-view{width:100%}
.learning-type-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.learning-type-badge,
.learning-source-badge{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  border-radius:999px;
  padding:5px 10px;
  font-size:10px;
  font-weight:800;
}
.learning-type-badge{
  background:var(--brand-soft);
  color:var(--brand-deep);
}
.learning-source-badge{
  background:#fff;
  border:1px solid var(--line);
  color:var(--muted);
}
.learning-main-card{
  min-height:430px;
  border:1px solid rgba(37,76,52,.12);
  border-radius:28px;
  background:rgba(255,255,255,.96);
  box-shadow:0 24px 70px rgba(37,69,48,.10);
  overflow:hidden;
}
.learning-front,
.learning-back{
  padding:38px 34px;
}
.learning-front{
  min-height:430px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.learning-english{
  max-width:100%;
  font-size:clamp(30px,5vw,52px);
  line-height:1.3;
  letter-spacing:-.025em;
  font-weight:850;
  word-break:break-word;
}
.learning-phonetic{
  min-height:22px;
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
}
.learning-audio-actions{
  display:flex;
  gap:8px;
  margin-top:22px;
}
.learning-audio-btn{
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface-2);
  color:var(--ink);
  padding:9px 13px;
  font-size:11px;
  cursor:pointer;
}
.learning-front-tip{
  max-width:460px;
  margin:24px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}
.learning-reveal-btn{
  width:min(330px,100%);
  margin-top:25px;
  border:0;
  border-radius:16px;
  background:var(--brand);
  color:#fff;
  padding:14px 18px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(36,107,71,.18);
}
.learning-back{
  max-height:58vh;
  overflow:auto;
}
.learning-summary{
  border:1px solid #d7e7dc;
  border-radius:17px;
  background:linear-gradient(135deg,var(--brand-soft),#f8fbf8);
  padding:16px;
  font-size:16px;
  line-height:1.75;
  font-weight:750;
}
.learning-explanation{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.learning-explain-block{
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-2);
  padding:14px;
}
.learning-explain-block h4{
  margin:0 0 9px;
  font-size:12px;
}
.learning-explain-row{
  padding:9px 0;
  border-top:1px solid var(--line);
}
.learning-explain-row:first-of-type{
  padding-top:0;
  border-top:0;
}
.learning-explain-row:last-child{padding-bottom:0}
.learning-explain-row strong{
  display:block;
  font-size:13px;
  line-height:1.6;
}
.learning-explain-row p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.65;
}
.learning-rating{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  padding:15px;
}
.learning-rating-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.learning-rating-title strong{font-size:13px}
.learning-rating-title span{
  color:var(--muted);
  font-size:10px;
}
.learning-rating-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin-top:11px;
}
.learning-rating-grid button{
  min-height:65px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  color:var(--ink);
  padding:9px 6px;
  cursor:pointer;
  transition:transform .15s ease,border-color .15s ease,background .15s ease;
}
.learning-rating-grid button:hover{
  transform:translateY(-1px);
  border-color:var(--brand);
  background:var(--brand-soft);
}
.learning-rating-grid strong{
  display:block;
  font-size:11px;
}
.learning-rating-grid small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:8px;
}
.learning-complete{
  width:100%;
  text-align:center;
  border:1px solid rgba(37,76,52,.12);
  border-radius:28px;
  background:#fff;
  padding:36px 28px;
  box-shadow:0 24px 70px rgba(37,69,48,.10);
}
.learning-complete-mark{
  width:68px;
  height:68px;
  margin:0 auto 17px;
  border-radius:22px;
  background:var(--brand);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:31px;
  box-shadow:0 14px 32px rgba(36,107,71,.20);
}
.learning-complete h2{
  margin:8px 0;
  font-size:25px;
}
.learning-complete>p{
  margin:0 auto;
  max-width:520px;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}
.learning-complete-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-top:24px;
}
.learning-complete-stats div{
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-2);
  padding:13px;
}
.learning-complete-stats span{
  display:block;
  color:var(--muted);
  font-size:9px;
}
.learning-complete-stats strong{
  display:block;
  margin-top:5px;
  font-size:17px;
}
.learning-complete-breakdown{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:14px;
}
.learning-complete-breakdown span{
  border-radius:999px;
  background:var(--surface-2);
  padding:7px 10px;
  color:var(--muted);
  font-size:9px;
}
.learning-complete-breakdown strong{
  color:var(--ink);
}
.learning-complete-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:23px;
}
@media(max-width:760px){
  .formal-learning-card{
    align-items:stretch;
    padding:18px;
  }
  .formal-learning-start{
    width:88px;
    height:auto;
    min-height:105px;
    border-radius:25px;
  }
  .library-learning-banner{
    align-items:stretch;
    flex-direction:column;
  }
  .library-learning-banner .primary-btn{width:100%}
  .learning-header{
    grid-template-columns:40px minmax(0,1fr) 40px;
    padding-top:calc(8px + env(safe-area-inset-top));
  }
  .learning-stage{
    align-items:flex-start;
    padding:16px 12px calc(25px + env(safe-area-inset-bottom));
  }
  .learning-main-card{min-height:405px;border-radius:23px}
  .learning-front{
    min-height:405px;
    padding:30px 20px;
  }
  .learning-back{
    padding:22px 17px;
    max-height:53vh;
  }
  .learning-english{font-size:clamp(28px,10vw,42px)}
  .learning-rating-title{
    align-items:flex-start;
    flex-direction:column;
  }
  .learning-rating-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .learning-rating-grid button:last-child{
    grid-column:1/-1;
  }
  .learning-complete{
    padding:28px 17px;
    border-radius:23px;
  }
  .learning-complete-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .learning-complete-actions{
    flex-direction:column;
  }
  .learning-complete-actions button{width:100%}
}
@media(max-width:420px){
  .formal-learning-card{
    flex-direction:column;
  }
  .formal-learning-start{
    width:100%;
    min-height:58px;
    flex-direction:row;
    border-radius:17px;
  }
  .formal-learning-start span{font-size:17px}
}

/* =========================================================
   Step 9：自动复习队列与错题优先
   ========================================================= */
.auto-review-card{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:22px;
  border-color:#ddd6bd;
  background:
    radial-gradient(circle at 88% 8%,rgba(255,255,255,.72),transparent 36%),
    linear-gradient(135deg,#f7f1df,#fcfaf3);
  overflow:hidden;
}
.auto-review-copy{
  min-width:0;
  flex:1;
}
.auto-review-kicker{
  color:#8a651d;
  font-size:10px;
  letter-spacing:.12em;
  font-weight:850;
}
.auto-review-copy h3{
  margin:6px 0 7px;
  font-size:21px;
  letter-spacing:-.02em;
}
.auto-review-copy p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}
.auto-review-counts{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:13px;
}
.auto-review-counts span,
.library-review-chips span{
  border:1px solid rgba(138,101,29,.14);
  border-radius:999px;
  background:rgba(255,255,255,.70);
  padding:6px 9px;
  color:#7a6949;
  font-size:9px;
}
.auto-review-counts strong,
.library-review-chips strong{
  color:#76520e;
}
.auto-review-progress{
  width:min(420px,100%);
  height:6px;
  margin-top:11px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(138,101,29,.12);
}
.auto-review-progress span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#a97920,#d2a645);
  transition:width .24s ease;
}
.auto-review-start{
  flex:0 0 auto;
  width:116px;
  height:116px;
  border:0;
  border-radius:34px;
  background:#9d7529;
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  box-shadow:0 18px 36px rgba(118,82,14,.18);
  transition:transform .18s ease,box-shadow .18s ease;
}
.auto-review-start:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 42px rgba(118,82,14,.23);
}
.auto-review-start:active{transform:scale(.98)}
.auto-review-start span{font-size:27px}
.auto-review-start strong{font-size:12px}

.library-review-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-color:#ddd6bd;
  background:linear-gradient(135deg,#f8f2e2,#fff);
}
.library-review-banner h3{
  margin:5px 0;
  font-size:17px;
}
.library-review-banner p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
}
.library-review-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.library-review-banner .secondary-btn{
  flex:0 0 auto;
  border-color:#c7aa6e;
  color:#77571c;
  background:#fffdf8;
}

.review-shell{
  background:
    radial-gradient(circle at 50% -15%,#f4e8c9,transparent 38%),
    #f7f5ef;
}
.review-progress-track{
  background:rgba(138,101,29,.12);
}
.review-progress-track span{
  background:linear-gradient(90deg,#a97920,#d2a645);
}
.review-source-badge{
  border-color:#ddcda8;
  color:#7c5b19;
  background:#fffaf0;
}
.review-main-card{
  border-color:rgba(138,101,29,.15);
}
.review-reveal-btn{
  background:#9d7529;
  box-shadow:0 12px 28px rgba(118,82,14,.18);
}
.review-summary{
  border-color:#e5d7b8;
  background:linear-gradient(135deg,#f8f0dc,#fffdf7);
}
.review-rating-grid button:hover{
  border-color:#a97920;
  background:#fbf3df;
  color:#6f5016;
}
.review-empty-mark,
.review-complete-mark{
  background:#9d7529;
  box-shadow:0 14px 32px rgba(118,82,14,.20);
}
.review-source-summary{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
  margin-top:14px;
}
.review-source-summary span{
  border:1px solid #e4d8bd;
  border-radius:999px;
  background:#fffaf1;
  padding:7px 10px;
  color:#725827;
  font-size:9px;
}
@media(max-width:760px){
  .auto-review-card{
    align-items:stretch;
    padding:18px;
  }
  .auto-review-start{
    width:88px;
    height:auto;
    min-height:105px;
    border-radius:25px;
  }
  .library-review-banner{
    align-items:stretch;
    flex-direction:column;
  }
  .library-review-banner .secondary-btn{
    width:100%;
  }
}
@media(max-width:420px){
  .auto-review-card{
    flex-direction:column;
  }
  .auto-review-start{
    width:100%;
    min-height:58px;
    flex-direction:row;
    border-radius:17px;
  }
  .auto-review-start span{font-size:18px}
}

/* =========================================================
   Step 10：听力、听写、跟读录音
   ========================================================= */
.practice-hub-card{
  padding:18px;
  background:
    radial-gradient(circle at 90% 5%,rgba(255,255,255,.78),transparent 34%),
    linear-gradient(135deg,#e9f1f7,#fbfcfd);
  border-color:#ccdce7;
}
.practice-mode-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:13px;
}
.practice-mode-card{
  border:1px solid rgba(62,105,133,.14);
  border-radius:18px;
  background:rgba(255,255,255,.86);
  color:var(--ink);
  padding:16px;
  text-align:left;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:145px;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.practice-mode-card:hover{
  transform:translateY(-2px);
  border-color:#9ebdd0;
  box-shadow:0 12px 28px rgba(48,82,104,.09);
}
.practice-mode-icon{
  width:38px;
  height:38px;
  border-radius:13px;
  background:#e5f0f6;
  color:#315f7b;
  display:grid;
  place-items:center;
  font-size:18px;
  margin-bottom:11px;
}
.practice-mode-card strong{font-size:14px}
.practice-mode-card small{
  margin-top:5px;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
}
.practice-mode-card em{
  margin-top:auto;
  padding-top:12px;
  color:#315f7b;
  font-size:9px;
  font-style:normal;
  font-weight:750;
}

.practice-shell{
  background:
    radial-gradient(circle at 50% -15%,#dcebf4,transparent 38%),
    #f3f7f9;
}
.practice-progress-track{
  background:rgba(49,95,123,.12);
}
.practice-progress-track span{
  background:linear-gradient(90deg,#326581,#65a2c1);
}
.practice-source-badge{
  border-color:#bed2de;
  background:#f5fbfe;
  color:#315f7b;
}
.practice-main-card{
  border-color:rgba(49,95,123,.14);
}
.practice-mode-view{
  min-height:430px;
}
.practice-audio-hero,
.practice-shadowing-copy{
  min-height:430px;
  padding:34px 25px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.practice-audio-symbol{
  width:72px;
  height:72px;
  border-radius:24px;
  display:grid;
  place-items:center;
  background:#e5f0f6;
  color:#315f7b;
  font-size:28px;
  box-shadow:0 14px 32px rgba(48,82,104,.10);
}
.practice-audio-hero h2{
  margin:18px 0 7px;
  font-size:24px;
}
.practice-audio-hero>p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}
.practice-audio-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:22px;
}
.practice-reveal{
  margin-top:18px;
}
.practice-dictation-input{
  width:min(520px,100%);
  margin-top:20px;
  text-align:left;
}
.practice-dictation-input span{
  display:block;
  margin-bottom:7px;
  color:var(--muted);
  font-size:10px;
}
.practice-dictation-input textarea{
  width:100%;
  min-height:92px;
  resize:vertical;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fbfcfd;
  padding:13px;
  outline:none;
  color:var(--ink);
  font:inherit;
}
.practice-dictation-input textarea:focus{
  border-color:#79a7bf;
  box-shadow:0 0 0 4px rgba(71,124,153,.09);
}
.practice-submit-btn{
  width:min(320px,100%);
  margin-top:13px;
  border:0;
  border-radius:15px;
  background:#326581;
  color:#fff;
  padding:13px 17px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.practice-shadowing-text{
  max-width:620px;
  font-size:clamp(27px,5vw,44px);
  line-height:1.4;
  font-weight:850;
  letter-spacing:-.025em;
}
.practice-recorder{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:22px;
}
.practice-record-btn{
  border:1px solid #d9b6b3;
  border-radius:15px;
  background:#fff7f6;
  color:#9d3e36;
  padding:11px 15px;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}
.practice-record-btn.recording{
  background:#a8453d;
  color:#fff;
  border-color:#a8453d;
}
.practice-record-btn span{font-size:13px}
.practice-record-btn strong{font-size:11px}
.practice-recorder>span{
  min-width:42px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  font-size:12px;
}
.practice-record-playback{
  width:min(480px,100%);
  margin-top:15px;
}
.practice-record-tip{
  margin:11px 0 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.55;
}
.practice-answer-result{
  margin-bottom:12px;
  border-radius:15px;
  padding:12px 14px;
  font-size:12px;
  line-height:1.65;
}
.practice-answer-result.correct{
  border:1px solid #c8e1ce;
  background:#f1f8f3;
  color:#2e6a3d;
}
.practice-answer-result.weak{
  border:1px solid #ead1ca;
  background:#fff6f3;
  color:#8b4435;
}
.practice-rating-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin-top:11px;
}
.practice-rating-row button,
.practice-next-btn{
  min-height:48px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface-2);
  color:var(--ink);
  padding:9px 7px;
  font-size:10px;
  font-weight:750;
  cursor:pointer;
}
.practice-rating-row button:hover{
  border-color:#6f9fb8;
  background:#eef6fa;
}
.practice-next-btn{
  width:100%;
  margin-top:10px;
  background:#326581;
  color:#fff;
  border-color:#326581;
}
.practice-complete-mark{
  background:#326581;
  box-shadow:0 14px 32px rgba(48,82,104,.18);
}
@media(max-width:760px){
  .practice-mode-grid{grid-template-columns:1fr}
  .practice-mode-card{
    min-height:105px;
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    column-gap:11px;
    align-items:center;
  }
  .practice-mode-icon{
    grid-row:1/4;
    margin:0;
  }
  .practice-mode-card small,
  .practice-mode-card em{
    margin:0;
    padding:0;
  }
  .practice-mode-view,
  .practice-audio-hero,
  .practice-shadowing-copy{
    min-height:405px;
  }
  .practice-audio-hero,
  .practice-shadowing-copy{
    padding:27px 17px;
  }
  .practice-rating-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* =========================================================
   Step 11：自适应学习计划
   ========================================================= */
.adaptive-home-card{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:18px;
  padding:18px 20px;
  border-color:#d6d0e7;
  background:
    radial-gradient(circle at 92% 5%,rgba(255,255,255,.72),transparent 35%),
    linear-gradient(135deg,#f0edf8,#fcfbfe);
}
.adaptive-home-main{
  min-width:0;
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.adaptive-home-main h3{
  margin:2px 0 5px;
  font-size:17px;
}
.adaptive-home-main p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
}
.adaptive-mode-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:28px;
  border-radius:999px;
  padding:6px 10px;
  background:#e8e2f5;
  color:#654a8a;
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
}
.adaptive-mode-badge[data-mode="recovery"]{
  background:#f7e5dc;
  color:#8a4c32;
}
.adaptive-mode-badge[data-mode="consolidation"]{
  background:#f5ecd5;
  color:#80611c;
}
.adaptive-mode-badge[data-mode="balanced"]{
  background:#e4f0e8;
  color:#326944;
}
.adaptive-mode-badge[data-mode="challenge"]{
  background:#e0ebf8;
  color:#315f86;
}
.adaptive-home-targets{
  display:grid;
  grid-template-columns:repeat(3,minmax(72px,1fr));
  gap:7px;
}
.adaptive-home-targets>div{
  border:1px solid rgba(102,75,139,.12);
  border-radius:13px;
  background:rgba(255,255,255,.72);
  padding:10px 11px;
}
.adaptive-home-targets span{
  display:block;
  color:var(--muted);
  font-size:8px;
}
.adaptive-home-targets strong{
  display:block;
  margin-top:4px;
  font-size:13px;
}
.adaptive-plan-grid{
  margin-bottom:14px;
}
.adaptive-plan-detail{
  grid-column:1/-1;
  padding:20px;
  border-color:#d6d0e7;
  background:
    radial-gradient(circle at 95% 0%,#f3effb,transparent 34%),
    #fff;
}
.adaptive-plan-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.adaptive-plan-head h3{
  margin:5px 0;
  font-size:20px;
}
.adaptive-plan-head p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
}
.adaptive-plan-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.adaptive-target-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  margin-top:17px;
}
.adaptive-target-grid>div,
.adaptive-metric-grid>div{
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-2);
  padding:12px;
}
.adaptive-target-grid span,
.adaptive-metric-grid span{
  display:block;
  color:var(--muted);
  font-size:9px;
}
.adaptive-target-grid strong{
  display:block;
  margin-top:5px;
  font-size:15px;
}
.adaptive-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.adaptive-metric-grid strong{
  display:block;
  margin-top:5px;
  font-size:16px;
}
.adaptive-meter{
  height:5px;
  margin-top:9px;
  overflow:hidden;
  border-radius:999px;
  background:#e4e7e3;
}
.adaptive-meter i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:#72569a;
  transition:width .25s ease;
}
.adaptive-detail-columns{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:10px;
  margin-top:10px;
}
.adaptive-detail-columns>section{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:14px;
}
.adaptive-detail-columns h4{
  margin:0 0 10px;
  font-size:12px;
}
.adaptive-reasons{
  display:grid;
  gap:7px;
}
.adaptive-reasons p{
  margin:0;
  border-radius:11px;
  background:var(--surface-2);
  padding:9px 10px;
  color:var(--muted);
  font-size:10px;
  line-height:1.55;
}
.adaptive-content-mix{
  display:grid;
  gap:8px;
}
.adaptive-mix-row{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 34px;
  align-items:center;
  gap:8px;
  font-size:9px;
}
.adaptive-mix-row span:last-child{
  text-align:right;
  color:var(--muted);
}
.adaptive-mix-track{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#e7e9e5;
}
.adaptive-mix-track i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#72569a,#a88dcc);
}
.adaptive-focus{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}
.adaptive-focus span{
  border:1px solid #d8d0e8;
  border-radius:999px;
  background:#faf8fd;
  color:#644b83;
  padding:6px 9px;
  font-size:9px;
}
@media(max-width:900px){
  .adaptive-target-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .adaptive-home-card{
    grid-template-columns:1fr;
  }
  .adaptive-home-targets{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .adaptive-home-card>.secondary-btn{
    width:100%;
  }
  .adaptive-plan-head{
    flex-direction:column;
  }
  .adaptive-plan-actions{
    width:100%;
    justify-content:space-between;
  }
  .adaptive-target-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .adaptive-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .adaptive-detail-columns{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   Step 12：报告、内容管理、导出与最终系统
   ========================================================= */
.report-grid{margin-bottom:14px}
.report-card{
  grid-column:1/-1;padding:20px;border-color:#cfdce4;
  background:radial-gradient(circle at 95% 0%,#eaf2f7,transparent 34%),#fff
}
.report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.report-head h3{margin:5px 0;font-size:20px}
.report-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.report-range-tabs{display:flex;gap:5px;padding:4px;border-radius:13px;background:#edf2f4}
.report-range-tabs button{
  border:0;border-radius:10px;background:transparent;color:var(--muted);
  padding:7px 10px;font-size:10px;font-weight:750;cursor:pointer
}
.report-range-tabs button.active{
  background:#fff;color:#315d74;box-shadow:0 3px 10px rgba(48,82,104,.09)
}
.report-summary-grid{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:17px
}
.report-summary-grid>div{
  border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:12px
}
.report-summary-grid span{display:block;color:var(--muted);font-size:8px}
.report-summary-grid strong{display:block;margin-top:5px;font-size:15px}
.report-columns{
  display:grid;grid-template-columns:1.25fr .75fr;gap:10px;margin-top:10px
}
.report-columns>section{
  border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px;min-width:0
}
.report-lower-columns{grid-template-columns:1fr 1fr}
.report-section-title{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px
}
.report-section-title h4{margin:0;font-size:12px}
.report-section-title span{color:var(--muted);font-size:9px}
.report-trend{
  min-height:180px;display:flex;align-items:flex-end;gap:5px;
  overflow-x:auto;padding:10px 0 2px
}
.report-trend-day{
  flex:1 0 18px;min-width:18px;max-width:42px;height:150px;
  display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px
}
.report-trend-bar{
  width:100%;min-height:3px;border-radius:6px 6px 2px 2px;
  background:linear-gradient(180deg,#5f91aa,#bdd4df)
}
.report-trend-day strong{font-size:9px;font-weight:700;line-height:1}
/* 「分」比数字小一号：一眼看过去先看到数值，单位只做确认 */
.report-trend-day strong em{font-size:7px;font-style:normal;font-weight:500;color:var(--muted);margin-left:1px}
.report-trend-day small{color:var(--muted);font-size:7px;white-space:nowrap}
.report-scores,.report-types{display:grid;gap:10px}
.report-score-row,.report-type-row{
  display:grid;grid-template-columns:58px minmax(0,1fr) 38px;
  align-items:center;gap:8px;font-size:9px
}
.report-score-track,.report-type-track{
  height:8px;border-radius:999px;overflow:hidden;background:#e8ece9
}
.report-score-track i{
  display:block;height:100%;border-radius:inherit;
  background:linear-gradient(90deg,#3f7a95,#75acc5)
}
.report-type-track i{
  display:block;height:100%;border-radius:inherit;
  background:linear-gradient(90deg,#42795a,#8eb99b)
}
.report-score-row>span:last-child,.report-type-row>span:last-child{
  text-align:right;color:var(--muted)
}
.report-weak-items{display:grid;gap:7px;max-height:260px;overflow:auto}
.report-weak-item{
  width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;
  border:0;border-radius:12px;background:var(--surface-2);
  color:var(--ink);padding:9px 10px;text-align:left;cursor:pointer
}
.report-weak-item strong{display:block;font-size:10px;line-height:1.5}
.report-weak-item small{display:block;margin-top:3px;color:var(--muted);font-size:8px}
.report-weak-item span{
  align-self:center;border-radius:999px;background:#f7e7df;
  color:#8a4b34;padding:5px 7px;font-size:8px
}
.report-highlights{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.report-highlights span{
  border:1px solid #cedde5;border-radius:999px;background:#f5fafc;
  color:#3a6478;padding:6px 9px;font-size:9px
}
.system-tools-card{
  background:radial-gradient(circle at 94% 4%,#ecf4ef,transparent 34%),#fff
}
.admin-dialog{
  width:min(1040px,calc(100vw - 22px));max-width:none;
  max-height:calc(100dvh - 22px);border:0;border-radius:24px;
  padding:0;background:#f6f8f5;color:var(--ink)
}
.admin-dialog::backdrop{background:rgba(18,28,21,.45);backdrop-filter:blur(6px)}
.admin-dialog-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 22px)}
.admin-dialog-header{
  display:flex;align-items:center;justify-content:space-between;gap:15px;
  padding:17px 20px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.92)
}
.admin-dialog-header h2{margin:4px 0 0;font-size:20px}
.admin-dialog-header>button{
  width:40px;height:40px;border:1px solid var(--line);border-radius:13px;
  background:#fff;color:var(--ink);font-size:20px;cursor:pointer
}
.admin-dialog-body{overflow:auto;padding:18px}
.admin-filter-bar{
  display:grid;grid-template-columns:130px 120px minmax(180px,1fr) auto auto auto;gap:7px
}
.admin-filter-bar select,.admin-filter-bar input{
  min-height:40px;border:1px solid var(--line);border-radius:12px;
  background:#fff;color:var(--ink);padding:8px 10px;font:inherit
}
.content-admin-list{display:grid;gap:8px;margin-top:14px}
.content-admin-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;
  border:1px solid var(--line);border-radius:15px;background:#fff;padding:12px
}
.content-admin-row.inactive{opacity:.62;background:#f3f4f2}
.content-admin-main strong{display:block;font-size:13px;line-height:1.55}
.content-admin-main p{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.6}
.content-admin-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.content-admin-meta span{
  border-radius:999px;background:var(--surface-2);padding:5px 7px;
  color:var(--muted);font-size:8px
}
.content-admin-actions{display:flex;align-items:center;gap:6px}
.content-admin-actions button{
  border:1px solid var(--line);border-radius:10px;background:#fff;
  color:var(--ink);padding:7px 9px;font-size:9px;cursor:pointer
}
.content-admin-actions button.danger{color:#9a483d;border-color:#e3c5c0}
.content-admin-editor{
  border:1px solid var(--line);border-radius:18px;background:#fff;padding:16px
}
.admin-editor-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px
}
.admin-editor-head h3{margin:0 0 5px;font-size:17px}
.admin-editor-head p{margin:0;color:var(--muted);font-size:10px}
.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.admin-form-wide{grid-column:1/-1}
.admin-form-grid textarea{min-height:84px;resize:vertical}
.admin-form-actions{display:flex;align-items:center;gap:12px;margin-top:14px}
.content-import-textarea{
  width:100%;min-height:320px;resize:vertical;border:1px solid var(--line);
  border-radius:14px;background:#fbfcfb;padding:13px;color:var(--ink);
  font:12px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace
}
.system-dialog{width:min(760px,calc(100vw - 22px))}
.system-panel-intro h3{margin:0 0 7px;font-size:18px}
.system-panel-intro p{margin:0;color:var(--muted);font-size:11px;line-height:1.65}
.export-option-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px
}
.export-option-grid button{
  min-height:100px;border:1px solid var(--line);border-radius:16px;
  background:#fff;color:var(--ink);padding:14px;text-align:left;cursor:pointer
}
.export-option-grid button:hover{border-color:#8bb69a;background:#f7fbf8}
.export-option-grid strong{display:block;font-size:12px}
.export-option-grid small{
  display:block;margin-top:6px;color:var(--muted);font-size:9px;line-height:1.55
}
.diagnostic-summary{margin-top:15px;border-radius:15px;padding:13px;font-size:11px}
.diagnostic-summary.healthy{
  border:1px solid #c9dfcf;background:#f2f8f3;color:#356743
}
.diagnostic-summary.warning{
  border:1px solid #e5d0c8;background:#fff7f4;color:#8a4938
}
.diagnostic-list{display:grid;gap:6px;margin:12px 0}
.diagnostic-row{
  display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;
  align-items:center;border:1px solid var(--line);border-radius:12px;
  background:#fff;padding:9px 10px
}
.diagnostic-row>span:first-child{
  width:20px;height:20px;border-radius:7px;display:grid;place-items:center;font-size:10px
}
.diagnostic-row.ok>span:first-child{background:#e5f1e8;color:#2e6e40}
.diagnostic-row.fail>span:first-child{background:#f8e5df;color:#984638}
.diagnostic-row strong{font-size:10px}
.diagnostic-row small{color:var(--muted);font-size:8px}
.install-instructions{
  display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:16px 0
}
.install-instructions>div{
  border:1px solid var(--line);border-radius:15px;background:#fff;padding:13px
}
.install-instructions strong{font-size:11px}
.install-instructions p{
  margin:6px 0 0;color:var(--muted);font-size:9px;line-height:1.6
}
@media(max-width:900px){
  .report-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-filter-bar input{grid-column:1/-1}
}
@media(max-width:760px){
  .report-head{flex-direction:column}
  .report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-columns,.report-lower-columns{grid-template-columns:1fr}
  .report-trend-day{flex-basis:24px;min-width:24px}
  .admin-dialog{
    width:100vw;height:100dvh;max-height:none;border-radius:0;margin:0
  }
  .admin-dialog-shell{max-height:100dvh}
  .admin-dialog-header{padding-top:calc(13px + env(safe-area-inset-top))}
  .admin-dialog-body{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .admin-filter-bar{grid-template-columns:1fr 1fr}
  .admin-filter-bar input,.admin-filter-bar button:last-child{grid-column:1/-1}
  .content-admin-row{grid-template-columns:1fr}
  .content-admin-actions{justify-content:flex-end}
  .admin-form-grid{grid-template-columns:1fr}
  .admin-form-wide{grid-column:auto}
  .export-option-grid,.install-instructions{grid-template-columns:1fr}
}

/* =========================================================
   Step 13：单词五维深度拆解
   ========================================================= */
.study-word-view-tabs{
  display:flex;
  gap:5px;
  margin:8px 0 14px;
  padding:4px;
  border-radius:14px;
  background:#edf2ee;
}
.study-word-view-tabs button{
  flex:1;
  min-height:38px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.study-word-view-tabs button.active{
  background:#fff;
  color:#245f40;
  box-shadow:0 4px 12px rgba(35,77,49,.08);
}
.word-analysis-tab-badge{
  display:inline-flex;
  margin-left:5px;
  border-radius:999px;
  background:#dbe9df;
  color:#376649;
  padding:3px 6px;
  font-size:7px;
}
.word-analysis-tab-badge.ready{
  background:#246b47;
  color:#fff;
}
.word-analysis-shell{
  min-height:360px;
}
.word-analysis-empty,
.word-analysis-loading{
  min-height:390px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px solid #d9e4dc;
  border-radius:20px;
  background:
    radial-gradient(circle at 50% 0%,#e9f3ec,transparent 43%),
    #fbfcfb;
  padding:30px 20px;
}
.word-analysis-empty h3{
  margin:8px 0;
  font-size:22px;
}
.word-analysis-empty>p,
.word-analysis-loading p{
  max-width:560px;
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.75;
}
.word-analysis-feature-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
  margin:17px 0;
}
.word-analysis-feature-list span{
  border:1px solid #d4e2d8;
  border-radius:999px;
  background:#fff;
  color:#41694e;
  padding:6px 9px;
  font-size:9px;
}
.word-analysis-loading strong{
  margin-top:15px;
  font-size:16px;
}
.word-analysis-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  border:1px solid #d5e2d8;
  border-radius:20px;
  background:
    radial-gradient(circle at 93% 5%,rgba(255,255,255,.8),transparent 34%),
    linear-gradient(135deg,#e9f3ec,#fbfcfb);
  padding:18px;
}
.word-analysis-hero h3{
  margin:6px 0 4px;
  font-size:30px;
  letter-spacing:-.03em;
}
.word-analysis-hero p{
  margin:0;
  color:#52655a;
  font-size:12px;
  line-height:1.65;
}
.word-analysis-priority{
  display:inline-flex;
  border-radius:999px;
  background:#246b47;
  color:#fff;
  padding:5px 8px;
  font-size:8px;
  font-weight:800;
}
.word-analysis-hero-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.word-analysis-core-grid{
  display:grid;
  grid-template-columns:.7fr 1fr 1.3fr;
  gap:8px;
  margin-top:9px;
}
.word-analysis-core-grid>div{
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  padding:12px;
}
.word-analysis-core-grid span{
  display:block;
  color:var(--muted);
  font-size:8px;
}
.word-analysis-core-grid strong{
  display:block;
  margin-top:5px;
  font-size:10px;
  line-height:1.55;
}
.word-analysis-nav{
  display:flex;
  gap:6px;
  margin:13px 0 10px;
  overflow-x:auto;
  padding-bottom:3px;
  scrollbar-width:none;
}
.word-analysis-nav::-webkit-scrollbar{display:none}
.word-analysis-nav button{
  flex:0 0 auto;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  padding:8px 11px;
  font-size:9px;
  font-weight:750;
  cursor:pointer;
}
.word-analysis-nav button.active{
  border-color:#75a185;
  background:#edf6f0;
  color:#285e3d;
}
/* 维度轨道：一屏一维，横向滑动翻页。
   scroll-snap 保证松手后一定停在整页上，不会卡在两页中间。
   overscroll-behavior-x:contain 挡住 iOS 的"滑到头继续拽=后退"手势 ——
   不挡的话滑到第一维再往右一拽就退出页面了。 */
.word-analysis-track{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  scroll-padding:0;
}
.word-analysis-track::-webkit-scrollbar{display:none}
.word-analysis-panel{
  display:block;
  flex:0 0 100%;
  scroll-snap-align:start;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:16px;
  /* 各维长短差很多。不封顶的话轨道会被最长的那一维撑高，
     短的那几维底下留一大片空白，看着像没加载出来。
     封顶之后每一维在自己格子里纵向滚，外层只管横向翻页。 */
  max-height:min(66vh, 620px);
  overflow-y:auto;
  overscroll-behavior-y:contain;
}
.word-analysis-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}
.word-analysis-section-head h4{
  margin:4px 0 0;
  font-size:17px;
}
.word-phonetic-pills{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:5px;
}
.word-phonetic-pills span,
.word-confidence{
  border:1px solid #d6e2d9;
  border-radius:999px;
  background:#f7faf8;
  color:#466452;
  padding:6px 8px;
  font-size:8px;
}
.word-analysis-info-banner{
  margin:8px 0;
  border-radius:13px;
  background:#eff6f1;
  color:#385b45;
  padding:10px 12px;
  font-size:10px;
  line-height:1.65;
}
.word-analysis-info-banner.caution{
  background:#fff7e8;
  color:#795d25;
}
.word-analysis-panel h5{
  margin:17px 0 9px;
  font-size:11px;
}
.word-syllable-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.word-syllable-card{
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-2);
  padding:12px;
}
.word-syllable-head{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
}
.word-syllable-head>span{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#dfece3;
  color:#356847;
  font-size:8px;
}
.word-syllable-head strong{font-size:15px}
.word-syllable-phonetic{
  margin:8px 0 5px;
  color:#436a52;
  font-size:11px;
}
.word-syllable-card>p{
  margin:0;
  color:var(--muted);
  font-size:9px;
  line-height:1.6;
}
.word-analysis-note{
  margin-top:7px;
  border-radius:9px;
  background:#fff;
  padding:7px 8px;
  color:#5c6d62;
  font-size:8px;
  line-height:1.55;
}
.word-speak-btn{
  flex:0 0 auto;
  border:1px solid #cddbd1;
  border-radius:9px;
  background:#fff;
  color:#376649;
  padding:5px 7px;
  font-size:7px;
  font-weight:750;
  cursor:pointer;
}
.word-rule-list{
  display:grid;
  gap:7px;
}
.word-rule-row{
  display:grid;
  grid-template-columns:80px 80px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  border-radius:12px;
  background:var(--surface-2);
  padding:9px 10px;
}
.word-rule-row strong{font-size:11px}
.word-rule-row>span{color:#356847;font-size:10px}
.word-rule-row p{
  margin:0;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
}
/* 字母组合规则的例词按钮：可能有多个，窄屏下要能换行 */
.word-rule-examples{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  justify-content:flex-end;
}
@media (max-width:520px){
  /* 窄屏把网格压成两行，避免例词按钮把说明文字挤没 */
  .word-rule-row{grid-template-columns:56px 56px minmax(0,1fr)}
  .word-rule-examples{grid-column:1 / -1; justify-content:flex-start}
}
.word-analysis-list{
  margin:0;
  padding-left:20px;
  color:#56675d;
  font-size:9px;
  line-height:1.8;
}
.word-morph-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.word-morph-part{
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-2);
  padding:11px;
}
.word-morph-part h5{margin:0 0 8px}
.word-morph-row{
  border-top:1px dashed #d9dfda;
  padding:8px 0;
}
.word-morph-row:first-of-type{border-top:0}
.word-morph-row strong{
  display:block;
  font-size:13px;
}
.word-morph-row span{
  display:block;
  margin-top:3px;
  color:#356847;
  font-size:9px;
}
.word-morph-row p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:8px;
  line-height:1.5;
}
.word-affix-grid,
.word-family-grid,
.word-collocation-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.word-affix-card,
.word-family-card,
.word-collocation-card{
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-2);
  padding:11px;
}
.word-affix-card strong,
.word-family-card strong,
.word-collocation-card strong{
  font-size:12px;
}
.word-affix-card p,
.word-family-card p,
.word-collocation-card p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:9px;
  line-height:1.6;
}
.word-affix-card small,
.word-family-card>span,
.word-collocation-card>span{
  display:block;
  margin-top:5px;
  color:#42684f;
  font-size:8px;
}
.word-family-head,
.word-collocation-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.word-family-example,
.word-collocation-example{
  margin-top:8px;
  border-radius:10px;
  background:#fff;
  padding:8px;
}
.word-family-example b,
.word-collocation-example b{
  display:block;
  font-size:9px;
  line-height:1.5;
}
.word-collocation-example small{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:8px;
}
.word-confusion-list,
.word-scenario-list{
  display:grid;
  gap:9px;
}
.word-confusion-card,
.word-scenario-card{
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-2);
  padding:12px;
}
.word-confusion-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.word-confusion-head>div{
  display:flex;
  align-items:center;
  gap:7px;
}
.word-confusion-head strong{font-size:14px}
.word-confusion-head span{
  color:var(--muted);
  font-size:8px;
}
.word-confusion-core{
  margin-top:9px;
  border-left:3px solid #739b81;
  background:#fff;
  padding:9px 10px;
  color:#395746;
  font-size:10px;
  line-height:1.65;
}
.word-confusion-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin-top:8px;
}
.word-analysis-detail-row{
  border-radius:11px;
  background:#fff;
  padding:9px;
}
.word-analysis-detail-row>strong{
  display:block;
  margin-bottom:4px;
  font-size:8px;
  color:#466452;
}
.word-analysis-detail-row>div{
  color:var(--muted);
  font-size:9px;
  line-height:1.55;
}
.word-contrast-example{
  margin-top:8px;
  border-radius:12px;
  background:#fff;
  padding:9px;
}
.word-contrast-example>div{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-top:5px;
}
.word-contrast-example b{
  font-size:9px;
  line-height:1.5;
}
.word-contrast-example p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:8px;
  line-height:1.55;
}
.word-collocation-meaning{
  color:#2f6240 !important;
  font-weight:750;
}
.word-scenario-head{
  display:flex;
  align-items:center;
  gap:9px;
}
.word-scenario-head>span{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#dfece3;
  color:#356847;
  font-size:9px;
  font-weight:800;
}
.word-scenario-head strong{
  display:block;
  font-size:12px;
}
.word-scenario-head small{
  display:block;
  margin-top:2px;
  color:#497057;
  font-size:8px;
}
.word-scenario-card>p{
  margin:8px 0;
  color:var(--muted);
  font-size:9px;
  line-height:1.6;
}
.word-scenario-example{
  margin-top:7px;
  border-radius:12px;
  background:#fff;
  padding:9px;
}
.word-scenario-example>div{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.word-scenario-example b{
  font-size:10px;
  line-height:1.55;
}
.word-scenario-example p{
  margin:5px 0 0;
  color:#51675a;
  font-size:9px;
}
.word-scenario-example small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:8px;
}
.word-recall-grid,
.word-recall-list{
  display:grid;
  gap:8px;
}
.word-recall-card{
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface-2);
  padding:10px;
}
.word-recall-card summary{
  cursor:pointer;
  font-size:10px;
  font-weight:750;
  line-height:1.55;
}
.word-recall-card p,
.word-recall-card ol{
  color:var(--muted);
  font-size:9px;
  line-height:1.65;
}
.word-recall-answer{
  margin-top:8px;
  border-radius:10px;
  background:#fff;
  padding:9px;
}
.word-recall-answer b{
  display:block;
  font-size:10px;
}
.word-learning-route{
  margin:0;
  padding-left:22px;
  color:#52655a;
  font-size:9px;
  line-height:1.85;
}
.word-analysis-source{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:7px;
  margin-top:9px;
  color:var(--muted);
  font-size:8px;
}
.word-analysis-muted{
  color:var(--muted);
  font-size:10px;
  line-height:1.7;
}
@media(max-width:760px){
  .word-analysis-hero{
    flex-direction:column;
  }
  .word-analysis-hero-actions{
    width:100%;
    justify-content:flex-start;
  }
  .word-analysis-core-grid{
    grid-template-columns:1fr;
  }
  .word-syllable-grid,
  .word-affix-grid,
  .word-family-grid,
  .word-collocation-grid,
  .word-confusion-grid{
    grid-template-columns:1fr;
  }
  .word-morph-grid{
    grid-template-columns:1fr;
  }
  .word-rule-row{
    grid-template-columns:70px minmax(0,1fr) auto;
  }
  .word-rule-row p{
    grid-column:1/-1;
  }
  .word-analysis-panel{
    padding:13px;
  }
}

/* Step 14：手机端阅读字号重排 */
.word-analysis-panel,
.word-analysis-panel p,
.word-analysis-panel li,
.word-analysis-panel small,
.word-analysis-panel span{
  font-size:14px;
}
.word-analysis-panel h4{font-size:20px}
.word-analysis-panel h5{font-size:16px}
.word-analysis-section-head .panel-kicker{font-size:11px}
.word-analysis-info-banner{font-size:14px;line-height:1.75}
.word-syllable-head strong{font-size:19px}
.word-syllable-phonetic{font-size:15px}
.word-syllable-card>p,
.word-rule-row p,
.word-morph-row p,
.word-family-card p,
.word-collocation-card p,
.word-scenario-card>p,
.word-contrast-example p,
.word-scenario-example p{
  font-size:14px;
  line-height:1.75;
}
.word-family-example b,
.word-collocation-example b,
.word-contrast-example b,
.word-scenario-example b{
  font-size:16px;
  line-height:1.7;
}
.word-collocation-meaning{font-size:15px!important}
.word-analysis-detail-row>strong{font-size:12px}
.word-analysis-detail-row>div{font-size:14px;line-height:1.7}
.word-speak-btn{font-size:11px;padding:7px 9px}
.word-analysis-nav button{font-size:12px}
.word-analysis-core-grid span{font-size:11px}
.word-analysis-core-grid strong{font-size:14px}
.word-analysis-source{font-size:11px}

.lookup-key-vocabulary{
  background:linear-gradient(135deg,#eef7f1,#fbfdfb);
}
.lookup-key-word{
  width:100%;
  display:grid;
  grid-template-columns:minmax(100px,auto) minmax(0,1fr);
  gap:5px 12px;
  border:1px solid #d4e4d9;
  border-radius:13px;
  background:#fff;
  color:var(--ink);
  padding:11px 12px;
  margin-top:7px;
  text-align:left;
  cursor:pointer;
}
.lookup-key-word strong{font-size:15px;color:#245f40}
.lookup-key-word span{font-size:13px}
.lookup-key-word small{
  grid-column:1/-1;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}

.pronunciation-coach-dialog{width:min(720px,calc(100vw - 22px))}
.pronunciation-reference-card,
.pronunciation-record-card,
.pronunciation-result{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:17px;
}
.pronunciation-record-card,
.pronunciation-result{margin-top:10px}
.pronunciation-reference-card>span,
.pronunciation-recognized>span{
  color:var(--muted);
  font-size:12px;
}
.pronunciation-reference-card h3{
  margin:8px 0 15px;
  font-size:25px;
  line-height:1.5;
}
.pronunciation-reference-actions{display:flex;flex-wrap:wrap;gap:8px}
.pronunciation-record-card{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:12px;
}
.pronunciation-record-card audio,
.pronunciation-record-card p,
.pronunciation-record-card .full,
.pronunciation-record-card .message{
  grid-column:1/-1;
}
.pronunciation-record-card p{
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}
.pronunciation-score-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.pronunciation-score-grid>div{
  border-radius:14px;
  background:var(--surface-2);
  padding:13px;
}
.pronunciation-score-grid span{
  display:block;color:var(--muted);font-size:11px
}
.pronunciation-score-grid strong{
  display:block;margin-top:5px;font-size:24px
}
.pronunciation-recognized{
  margin-top:10px;
  border-radius:13px;
  background:#f6f8f6;
  padding:12px;
}
.pronunciation-recognized p{
  margin:6px 0 0;font-size:16px;line-height:1.65
}
.pronunciation-word-feedback,
.pronunciation-guidance{
  display:grid;gap:7px;margin-top:10px
}
.pronunciation-feedback,
.pronunciation-guidance p{
  margin:0;border-radius:12px;padding:10px 11px;font-size:13px;line-height:1.65
}
.pronunciation-feedback.weak{background:#fff2ed;color:#8a4938}
.pronunciation-feedback.extra{background:#fff8e8;color:#796024}
.pronunciation-feedback.good{background:#edf7f0;color:#356743}
.pronunciation-feedback p{margin:4px 0 0}
.pronunciation-guidance p{background:#f2f6f3;color:#4c6253}
.pronunciation-limitation{
  margin:10px 0 0;color:var(--muted);font-size:11px
}
@media(max-width:760px){
  .word-analysis-panel,
  .word-analysis-panel p,
  .word-analysis-panel li,
  .word-analysis-panel small,
  .word-analysis-panel span{font-size:15px}
  .word-family-example b,
  .word-collocation-example b,
  .word-contrast-example b,
  .word-scenario-example b{font-size:17px}
  .pronunciation-score-grid{grid-template-columns:1fr}
  .pronunciation-record-card{grid-template-columns:auto 1fr}
}

/* 可点音标 —— 点美标读美音，点英标读英音 */
.lookup-phonetic{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.phonetic-pill{
  display:inline-flex;align-items:center;gap:5px;
  border:1px solid var(--line);border-radius:999px;
  background:#f7faf8;color:#466452;
  padding:5px 11px;
  font-family:inherit;font-size:12px;line-height:1.5;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.phonetic-pill:hover,.phonetic-pill:focus-visible{background:#e9f3ec;border-color:#9cc4ab}
.phonetic-pill:active{transform:translateY(1px)}
.phonetic-pill-play{font-size:9px;opacity:.5}
/* 单词分析面板里的音标要小一号；
   另外 .word-phonetic-pills span 那条规则会给按钮里的 ▶ 也套上药丸边框，
   这里显式清掉 */
.word-phonetic-pills .phonetic-pill{font-size:8px;padding:6px 9px}
.word-phonetic-pills .phonetic-pill .phonetic-pill-play{
  border:0;background:none;padding:0;border-radius:0;font-size:7px;color:inherit
}
/* 音节卡片里的次级按钮（例词），比"听这个音标"弱一档 */
.word-speak-btn-sub{
  opacity:.75;
  font-weight:400;
}

/* ============ 单词库 ============ */
.wordbank-card .section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
/* 卡片只留入口和统计，列表在独立弹窗里 —— 词一多也不会把这一页撑长 */
.wordbank-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.wordbank-chip{
  display:inline-flex;align-items:center;gap:7px;
  border:1px solid var(--line);background:#f7faf8;color:#466452;
  border-radius:999px;padding:7px 13px;font-size:12.5px;
  cursor:pointer;font-family:inherit;
}
.wordbank-chip:hover{background:#e9f3ec;border-color:#9cc4ab}
.wordbank-chip strong{font-size:13px;color:#2f6b47}
.wordbank-chip-empty{color:var(--muted);font-size:12.5px}
.wordbank-dialog{
  border:0;padding:0;background:transparent;
  width:min(680px,100vw);max-width:100vw;
  max-height:100dvh;
}
.wordbank-dialog::backdrop{background:rgba(24,32,26,.42)}
.wordbank-dialog-body{
  background:var(--surface);border-radius:22px;
  padding:20px;max-height:88dvh;overflow:auto;
}
.wordbank-toolbar{display:flex;gap:9px;margin:12px 0 14px;flex-wrap:wrap}
.wordbank-search{
  flex:1;min-width:150px;
  border:1px solid var(--line);background:#fbfcfa;border-radius:12px;
  padding:9px 12px;color:var(--ink);font-size:13px;font-family:inherit;outline:none;
}
.wordbank-select{border:1px solid var(--line);background:#fbfcfa;border-radius:12px;padding:9px 11px;color:var(--ink);font-size:13px;max-width:190px}
.wordbank-summary{color:var(--muted);font-size:12px;margin-top:5px}
.wordbank-list{display:flex;flex-direction:column;gap:10px}
.wordbank-empty{color:var(--muted);font-size:13px;line-height:1.7;padding:18px;text-align:center;border:1px dashed var(--line);border-radius:14px}
/* 左滑露出「确认移除」。
   外壳负责裁切和承载右侧那个按钮，内层 body 才是被推走的那一层 ——
   把 transform 加在外壳上会连按钮一起推走，等于什么都没露出来。 */
.wordbank-item{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff}
.wordbank-item-body{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;background:#fff;position:relative;z-index:1;transition:transform .18s ease}
.wordbank-item.swiped .wordbank-item-body{transform:translateX(-84px)}
.wordbank-swipe-remove{position:absolute;top:0;right:0;bottom:0;width:84px;border:0;border-radius:0 15px 15px 0;background:#c2504b;color:#fff;font-size:12.5px;line-height:1.35;font-family:inherit;cursor:pointer;z-index:0}
.wordbank-swipe-remove:hover{background:#ab423e}
/* 鼠标端没有滑动这个动作，用 hover 顶上，功能不掉队 */
@media (hover:hover){
  .wordbank-item:hover .wordbank-item-body{transform:translateX(-84px)}
}
.wordbank-item-main{min-width:0;flex:1}
.wordbank-item-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.wordbank-item-head strong{font-size:15px;word-break:break-word}
.wordbank-type{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 8px}
.wordbank-item-phonetics{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.wordbank-summary-text{color:var(--muted);font-size:12.5px;line-height:1.6;margin:7px 0 0}
.wordbank-item-side{display:flex;flex-direction:column;gap:6px;flex-shrink:0}
.wordbank-open,.wordbank-remove{border:1px solid var(--line);background:#fff;border-radius:10px;padding:6px 11px;font-size:12px;cursor:pointer;color:var(--ink);font-family:inherit}
.wordbank-open:hover{background:#eef5f0;border-color:#9cc4ab}
.wordbank-remove{color:#a8514d}
.wordbank-remove:hover{background:#fdf0ef;border-color:#e0b3b0}
.wordbank-actions{display:flex;gap:8px;margin-top:12px}
.wordbank-detail-dims{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}
.wordbank-detail-dims-label{font-size:12px;color:var(--muted)}
.wordbank-detail-hint{font-size:11.5px;color:var(--muted);margin:6px 0 8px}
/* 深度拆解就地展开的落脚点。留一条上边线把它和上面那句释义分开，
   否则两块内容糊在一起，看不出下面这一整块是另一回事 */
.wordbank-analysis-host{margin-top:8px;border-top:1px dashed var(--line);padding-top:10px}
.wordbank-analysis-host:empty{display:none}
/* 词库是在弹窗里看的，可用高度本来就比整页少。
   这里把每一维的高度再压一档，免得一条词的展开内容把整个列表顶没了。 */
.wordbank-analysis-host .word-analysis-panel{max-height:min(46vh,420px)}

/* ============ 句中点词 ============ */
.tap-word{
  cursor:pointer;
  border-bottom:1px dotted rgba(70,100,82,.38);
  border-radius:3px;
  transition:background .12s ease;
}
.tap-word:hover{background:#e9f3ec}
.tap-word.active{background:#2f6b47;color:#fff;border-bottom-color:transparent}

.word-peek{
  /* fixed 而不是 absolute：卡片会被挂进 <dialog> 里，
     按视口定位才不受宿主布局影响；也因此定位用视口坐标，
     不能再叠加 scrollX/scrollY */
  position:fixed;z-index:2147483000;
  width:min(320px,calc(100vw - 20px));
  margin:0;padding:0;border:0;background:transparent;overflow:visible;
}
.word-peek.hidden{display:none}
.word-peek-body{
  /* 深色卡片：和白底正文拉开层次，视线不会混在一起 */
  background:linear-gradient(150deg,#1f2a44 0%,#2b2350 55%,#341f45 100%);
  color:#eef1f8;
  border-radius:18px;
  padding:15px 16px 13px;
  box-shadow:0 18px 40px rgba(20,24,45,.34);
}
.word-peek-arrow{
  position:absolute;top:-6px;width:14px;height:14px;
  background:#1f2a44;transform:rotate(45deg);border-radius:3px;
}
.word-peek.flip .word-peek-arrow{top:auto;bottom:-6px;background:#341f45}
.word-peek-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.word-peek-head strong{font-size:19px;letter-spacing:.2px;word-break:break-word}
.word-peek-close{
  border:0;background:rgba(255,255,255,.13);color:#eef1f8;
  width:26px;height:26px;border-radius:50%;cursor:pointer;
  font-size:16px;line-height:1;flex-shrink:0;font-family:inherit;
}
.word-peek-close:hover{background:rgba(255,255,255,.24)}
.word-peek-phonetics{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.word-peek-pill{
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  color:#dfe5f5;border-radius:999px;padding:4px 11px;
  font-size:12px;cursor:pointer;font-family:inherit;
}
.word-peek-pill:hover{background:rgba(255,255,255,.18)}
.word-peek-meaning{margin-top:11px;font-size:13.5px;line-height:1.65}
.word-peek-sense{display:flex;gap:7px;margin-bottom:5px}
.word-peek-pos{color:#a9b4d6;flex-shrink:0;font-size:12px;padding-top:1px}
.word-peek-loading,.word-peek-uncached{color:#aab3cd;font-size:12.5px}
.word-peek-foot{margin-top:12px}
.word-peek-btn{
  width:100%;border:1px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.1);color:#fff;
  border-radius:12px;padding:9px;font-size:13px;cursor:pointer;font-family:inherit;
}
.word-peek-btn:hover:not(:disabled){background:rgba(255,255,255,.2)}
.word-peek-btn:disabled{opacity:.45;cursor:default}
/* 「同时看这 N 个」和「详细释义」并排。前者不占满 ——
   两个都 width:100% 的话会各挤成半张，文字换行成两行，
   而底部这一条本来就只有一行的高度。 */
.word-peek-stack{width:auto;flex-shrink:0;padding:9px 12px;font-size:12px;white-space:nowrap}
.word-peek-stack[hidden]{display:none}

/* 查询结果里内嵌的五维深度拆解 */
.lookup-analysis{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.lookup-analysis.hidden{display:none}
.lookup-analysis .word-analysis-shell{margin:0}
.word-analysis-elapsed{
  color:var(--muted);font-size:11.5px;margin-top:6px;
  font-variant-numeric:tabular-nums;
}

/* 输入时的候选词 */
.lookup-input-wrap{position:relative}
.lookup-suggest{
  position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:40;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 14px 30px rgba(24,32,26,.14);overflow:hidden;max-height:46vh;overflow-y:auto;
}
.lookup-suggest.hidden{display:none}
.lookup-suggest-item{
  display:flex;align-items:baseline;gap:8px;width:100%;
  border:0;border-bottom:1px solid var(--line);background:transparent;
  padding:10px 13px;text-align:left;cursor:pointer;font-family:inherit;color:var(--ink);
}
.lookup-suggest-item:last-child{border-bottom:0}
.lookup-suggest-item:hover{background:#eef5f0}
.lookup-suggest-item strong{font-size:14px;flex-shrink:0}
.lookup-suggest-item span{font-size:12px;color:var(--muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lookup-suggest-item em{font-size:10.5px;color:#2f6b47;font-style:normal;flex-shrink:0;
  border:1px solid #cfe3d6;border-radius:999px;padding:2px 7px}

/* 单词库里就地展开的详情 */
.wordbank-detail{
  border:1px solid var(--line);border-top:0;
  border-radius:0 0 15px 15px;margin-top:-10px;padding:13px 15px 15px;
  background:#fafcfa;
}
.wordbank-detail h5{margin:11px 0 6px;font-size:12px;color:var(--muted);font-weight:600}
.wordbank-detail-summary{margin:0;font-size:13px;line-height:1.65}
.wordbank-detail-list{display:flex;flex-direction:column;gap:6px}
.wordbank-detail-row{display:flex;flex-direction:column;gap:2px;font-size:12.5px;line-height:1.55}
.wordbank-detail-row strong{font-size:11.5px;color:var(--muted)}
.wordbank-detail-en{color:var(--ink)}
.wordbank-detail-loading{color:var(--muted);font-size:12.5px}
.wordbank-detail-full{
  margin-top:12px;width:100%;border:1px solid var(--line);background:#fff;
  border-radius:11px;padding:9px;font-size:12.5px;cursor:pointer;
  color:#2f6b47;font-family:inherit;
}
.wordbank-detail-full:hover{background:#eef5f0;border-color:#9cc4ab}

/* 分段生成的进度：哪几组还在跑要说清楚，
   否则面板一半有内容一半空着，看起来像生成出错了 */
.word-analysis-progress{
  margin:10px 0 4px;padding:8px 11px;
  background:#eff6f1;border-radius:11px;
  color:#385b45;font-size:11.5px;line-height:1.5;
}
.word-analysis-progress.hidden{display:none}

/* 词典结果里的重点程度标记 —— 让"该不该优先记"一眼看得出来 */
.word-peek-dict{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.word-peek-level,.word-peek-tag{
  font-size:10.5px;border-radius:999px;padding:2px 8px;
  border:1px solid rgba(255,255,255,.24);color:#dfe5f5;background:rgba(255,255,255,.08);
}
.word-peek-level.level-5{background:#c8452f;border-color:#c8452f;color:#fff}
.word-peek-level.level-4{background:#c9762b;border-color:#c9762b;color:#fff}
.word-peek-level.level-3{background:#2f7a52;border-color:#2f7a52;color:#fff}
.lookup-suggest-item em.from-dict{color:#8a5a1f;border-color:#e6d3b3;background:#fdf6e9}

/* ============ 音标语音板块（逐音点读） ============
   音素读法一律来自 assets/ipa-data.js 的固定表，不是 AI 现编的，
   所以同一个 /ə/ 在任何单词下的说明都一致。 */
.ipa-voice-block{
  margin:14px 0 4px;padding:13px;
  border:1px solid #cfe0d5;border-radius:16px;
  background:linear-gradient(180deg,#f4faf6,#fbfdfc);
}
.ipa-voice-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;flex-wrap:wrap;
}
.ipa-voice-head h5{margin:0;font-size:12px}
.ipa-accent-toggles{display:flex;gap:5px}
.ipa-accent-toggle{
  border:1px solid #cddbd1;background:#fff;color:#4b6656;
  border-radius:999px;padding:4px 11px;font-size:11px;
  cursor:pointer;font-family:inherit;
}
.ipa-accent-toggle.active{background:#2f6b47;border-color:#2f6b47;color:#fff}

/* 语速条。数字用 <output> 实时跟着走，
   松手（change）才真的合成一次 —— 拖动过程中发请求会把服务器打满 */
.ipa-rate-row{
  display:grid;grid-template-columns:auto minmax(90px,1fr) auto;
  align-items:center;gap:9px;margin:11px 0 4px;
}
.ipa-rate-row label{font-size:11px;color:#4b6656;font-weight:650}
.ipa-rate-row input[type=range]{width:100%;accent-color:#2f6b47;min-width:0}
.ipa-rate-row output{
  font-size:11.5px;font-weight:750;color:#2f6b47;
  font-variant-numeric:tabular-nums;min-width:46px;text-align:right;
}
.ipa-rate-hint{
  grid-column:1/-1;color:var(--muted);font-size:10px;line-height:1.5;
}

.ipa-strip-row{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 8px}
.ipa-chip-row{display:flex;flex-wrap:wrap;gap:6px}

/* 音素本身放大、读法压在下面一行 ——
   「旁边的具体读法」不点也看得见，点了才是完整讲解 */
.ipa-chip{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  min-width:52px;max-width:104px;
  border:1px solid #cddbd1;border-radius:12px;background:#fff;
  padding:7px 8px;cursor:pointer;font-family:inherit;
  text-align:center;color:#2f6b47;
}
.ipa-chip:hover{background:#eef5f0;border-color:#9cc4ab}
.ipa-chip.active{background:#2f6b47;border-color:#2f6b47;color:#fff}
.ipa-chip>b{font-size:15px;font-weight:750;line-height:1.2}
.ipa-chip>em{
  font-style:normal;font-size:9px;line-height:1.35;
  color:var(--muted);word-break:break-word;
}
.ipa-chip.active>em{color:rgba(255,255,255,.85)}
/* 带重音的音素：加一条上边和一个小角标，
   一眼看出劲该使在哪个音上 */
.ipa-chip{position:relative;padding-top:7px}
.ipa-chip.has-stress{
  border-color:#9cc4ab;border-top-width:2px;border-top-color:#2f6b47;
}
.ipa-chip-stress{
  position:absolute;top:-7px;right:5px;
  font-style:normal;font-size:8px;font-weight:750;
  background:#2f6b47;color:#fff;border-radius:999px;padding:1px 5px;
}
.ipa-chip.active .ipa-chip-stress{background:#fff;color:#2f6b47}
.ipa-chip-small{min-width:44px;max-width:88px;padding:6px}
.ipa-chip-small>b{font-size:13px}

.ipa-detail{
  margin-top:10px;border:1px solid #d9e7de;border-radius:13px;
  background:#fff;padding:11px;
}
.ipa-detail-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ipa-detail-symbol{font-size:17px;font-weight:750;color:#2f6b47}
.ipa-detail-group{
  font-size:10px;border-radius:999px;padding:2px 8px;
  background:#eaf3ed;color:#4b6656;
}
.ipa-detail-body{margin-top:8px}
.ipa-detail-body p{margin:0 0 6px;font-size:11px;line-height:1.65;color:#4b5f53}
.ipa-detail-cn{color:var(--ink)!important;font-size:12px!important}
.ipa-detail-warn{color:#8a5326}
.ipa-detail-examples{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ipa-detail-examples b{font-size:10px;color:var(--muted)}

.ipa-table{margin-top:11px}
.ipa-table>summary{
  cursor:pointer;font-size:11px;color:#2f6b47;font-weight:650;padding:4px 0;
}
.ipa-table-group{margin:9px 0}
.ipa-table-group-name{
  display:block;font-size:10px;color:var(--muted);margin-bottom:5px;
}

/* ============ 同类型词汇（第六个维度） ============
   主体是几段影像化叙述，把整片主题词嵌在中文句子里。
   叙述段带 data-tappable，word-peek.js 会把里面每个英文词
   变成可点的 .tap-word —— 所以这里不用自己做高亮和点击。 */
/* ---- 主题搜索 + 推理延伸（长在「同类型词汇」这一维里）---- */
.topic-explorer{border:1px solid var(--line);border-radius:14px;padding:12px;margin:10px 0 14px;background:#fbfdfb}
.topic-search-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.topic-search-row input{flex:1;min-width:180px;border:1px solid var(--line);border-radius:10px;padding:8px 11px;font-size:13px;font-family:inherit;color:var(--ink);background:#fff}
.topic-search-row input:focus{outline:none;border-color:#9cc4ab}
.topic-clear{border:1px solid var(--line);background:#fff;border-radius:10px;padding:7px 11px;font-size:12px;cursor:pointer;color:var(--muted);font-family:inherit}
.topic-clear:hover{background:#f1f5f2}
.topic-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:9px;font-size:12px}
.topic-crumb-label{color:var(--muted)}
.topic-crumb{border:0;background:none;padding:0;font-size:12px;font-family:inherit;color:#2f6b47;cursor:pointer;text-decoration:underline}
.topic-crumb-sep{color:var(--muted)}
.topic-crumb-now{color:var(--ink)}
.topic-next-hint{color:var(--muted);font-size:12px;line-height:1.6;margin:4px 0 8px}
.topic-next-list{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.topic-next{text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 11px;cursor:pointer;font-family:inherit;color:var(--ink)}
.topic-next:hover{border-color:#9cc4ab;background:#f3f9f5}
.topic-next strong{display:block;font-size:13px}
.topic-next em{display:block;font-size:11px;color:#2f6b47;font-style:normal;margin-top:2px}
.topic-next small{display:block;font-size:11.5px;color:var(--muted);line-height:1.55;margin-top:4px}

.cluster-theme{text-align:right}
.cluster-theme strong{display:block;font-size:12px;color:#2f6b47}
.cluster-theme small{display:block;font-size:10px;color:var(--muted);margin-top:2px}

.cluster-scene-list{display:grid;gap:10px}
.cluster-scene{
  border:1px solid var(--line);border-radius:15px;
  background:var(--surface-2);padding:12px;
}
.cluster-scene-head{display:flex;align-items:center;gap:8px}
.cluster-scene-head>span{
  width:22px;height:22px;flex:0 0 auto;
  display:grid;place-items:center;border-radius:8px;
  background:#dfece3;color:#356847;font-size:9px;font-weight:750;
}
.cluster-scene-head strong{font-size:12.5px}
/* 叙述是这一屏唯一需要通读的长文本，行高给足，
   字号不能跟旁边的注释一样小 */
.cluster-story{
  margin:9px 0 0;font-size:12px;line-height:1.85;color:#41544a;
}

.cluster-chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.cluster-chip{
  display:inline-flex;flex-direction:column;gap:1px;
  border:1px solid #cddbd1;border-radius:11px;background:#fff;
  padding:6px 9px;max-width:170px;
}
.cluster-chip>b{font-size:12px;color:#2f6b47;font-weight:750}
.cluster-chip>span{font-size:9.5px;color:var(--muted);line-height:1.4}
.cluster-chip>em{
  font-style:normal;font-size:8.5px;color:#8a7a54;margin-top:1px;
}
.cluster-chip-near{background:#fbfdfc}

.cluster-action-list{display:grid;gap:7px}
.cluster-action{
  border-radius:12px;background:var(--surface-2);padding:9px 10px;
}
.cluster-action-en{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cluster-action-en b{font-size:12px;color:#2f6b47}
.cluster-action>span{
  display:block;margin-top:3px;font-size:10.5px;color:#4b5f53;
}
.cluster-action>small{
  display:block;margin-top:3px;font-size:9px;color:var(--muted);line-height:1.5;
}

/* 音标来源标注：查来的和 AI 猜的必须一眼分得开 */
.phonetic-source{font-size:11.5px;line-height:1.6;margin:8px 0 0;padding:6px 10px;border-radius:9px}
.phonetic-source.ok{color:#2f6b47;background:#eef5f0;border:1px solid #cde0d4}
.phonetic-source.warn{color:#8a5b1f;background:#fdf6ea;border:1px solid #e8d5b0}

/* ============ 思维导图 ============ */
.mind-viewswitch{display:flex;gap:0;border:1px solid var(--line);border-radius:999px;overflow:hidden;flex-shrink:0}
.mind-viewswitch button{border:0;background:#fff;color:var(--muted);font-size:11.5px;padding:5px 12px;cursor:pointer;font-family:inherit}
.mind-viewswitch button.active{background:#2f6b47;color:#fff}

.mind-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
.mind-toolbar select,.mind-toolbar input{border:1px solid var(--line);border-radius:10px;padding:7px 10px;font-size:12.5px;font-family:inherit;color:var(--ink);background:#fff}
.mind-toolbar select{min-width:140px}
.mind-toolbar input{flex:1;min-width:120px}
.mind-save-state{font-size:11.5px;color:var(--muted);margin-left:auto}

/* 操作条：所有按钮都收到这里，树里一个按钮都不留。
   第一版每个节点挂三个按钮，右边占掉近一半宽度，把单词挤得换行。
   sticky 是为了滑到树的深处时它还在手边。 */
.mind-actionbar{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;align-items:center;gap:6px;
  background:#f2f7f4;border:1px solid #cde0d4;border-radius:12px;padding:8px 10px;margin:4px 0 10px}
.mind-actionbar-idle{color:var(--muted);font-size:11.5px;background:#fafbfa;border-style:dashed;border-color:var(--line)}
.mind-actionbar-name{font-size:13px;font-weight:600;max-width:44%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mind-actionbar-sub{font-size:11px;color:var(--muted)}
.mind-actionbar-gap{flex:1}
.mind-act{border:1px solid var(--line);background:#fff;border-radius:9px;padding:5px 9px;font-size:11.5px;cursor:pointer;color:var(--ink);font-family:inherit;white-space:nowrap}
.mind-act:hover{background:#eef5f0;border-color:#9cc4ab}
.mind-act-danger{color:#a8514d}
.mind-act-danger:hover{background:#fdf0ef;border-color:#e0b3b0}

/* ---- 视图一：缩进大纲 ---- */
.mind-tree,.mind-children{list-style:none;margin:0;padding:0}
.mind-children{margin-left:9px;padding-left:11px;border-left:1px dashed #cfdcd4}
.mind-node{margin:2px 0}
.mind-row{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:10px;cursor:pointer}
.mind-row:hover{background:#f2f7f4}
.mind-row.selected{background:#e4f0e9;box-shadow:inset 0 0 0 1px #9cc4ab}
.mind-toggle{border:0;background:none;color:var(--muted);font-size:11px;cursor:pointer;padding:0 2px;width:16px;font-family:inherit;flex-shrink:0}
.mind-toggle-placeholder{width:16px;flex-shrink:0}
.mind-title{flex:1;min-width:0;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.mind-en{font-size:13.5px}
.mind-cn{font-size:12px;color:var(--muted)}
.mind-topic{font-size:13px;font-weight:600;color:#2f6b47}
.mind-badge{font-size:10.5px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 7px;flex-shrink:0}
.mind-foot{font-size:11.5px;color:var(--muted);margin:10px 0 0}

/* ---- 视图二：思维导图 ---- */
/* 画布自己横向滚动。不缩放到一屏：缩到能塞下的时候字已经小到读不了，
   宁可让人推着看 —— 这张图是用来读词的，不是用来截图的。 */
.mind-canvas{overflow:auto;border:1px solid var(--line);border-radius:12px;background:
  radial-gradient(circle at 1px 1px, #e6eee9 1px, transparent 0) 0 0/16px 16px, #fff;
  max-height:52vh;overscroll-behavior:contain}
.mind-canvas-inner{position:relative;padding:4px}
.mind-lines{position:absolute;left:0;top:0;pointer-events:none}
.mind-lines path{fill:none;stroke:#bfd4c6;stroke-width:1.5}
.mind-chip{position:absolute;display:flex;flex-direction:column;justify-content:center;gap:1px;
  border:1px solid var(--line);border-radius:10px;background:#fff;padding:5px 8px;cursor:pointer;overflow:hidden}
.mind-chip.selected{border-color:#2f6b47;box-shadow:0 0 0 2px rgba(47,107,71,.16)}
.mind-chip.is-topic{background:#eef5f0;border-color:#cde0d4}
.mind-chip strong{font-size:12px;color:#2f6b47;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mind-chip b{font-size:12.5px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mind-chip span{font-size:10.5px;color:var(--muted);line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mind-chip-toggle{position:absolute;right:-7px;top:50%;transform:translateY(-50%);
  width:16px;height:16px;border-radius:50%;border:1px solid #bfd4c6;background:#fff;
  font-size:9px;line-height:1;color:#2f6b47;cursor:pointer;font-family:inherit;padding:0}

.mind-picker{border:1px solid var(--line);border-radius:12px;padding:10px;margin:6px 0 6px 16px;background:#fbfdfb}
.mind-picker-head{display:flex;align-items:center;justify-content:space-between;font-size:12.5px;font-weight:600;margin-bottom:8px}
.mind-picker-close{border:0;background:none;font-size:16px;line-height:1;color:var(--muted);cursor:pointer;padding:0 4px;font-family:inherit}
.mind-picker-row{display:flex;gap:8px;align-items:center}
.mind-picker-row input{flex:1;min-width:120px;border:1px solid var(--line);border-radius:10px;padding:7px 10px;font-size:12.5px;font-family:inherit;color:var(--ink);background:#fff}
.mind-picker-note{font-size:11.5px;color:var(--muted);line-height:1.6;margin:8px 0 6px}
.mind-cand-list{display:grid;gap:5px;grid-template-columns:repeat(auto-fill,minmax(168px,1fr))}
.mind-cand{display:flex;align-items:flex-start;gap:7px;border:1px solid var(--line);border-radius:9px;padding:6px 8px;cursor:pointer;background:#fff}
.mind-cand.picked{border-color:#9cc4ab;background:#eef5f0}
.mind-cand input{margin:2px 0 0;flex-shrink:0;width:16px;height:16px}
.mind-cand-main{min-width:0;flex:1}
.mind-cand-en{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.mind-cand-en b{font-size:12.5px}
.mind-cand-ipa{font-size:10.5px;color:#2f6b47;font-style:normal}
.mind-cand-cn{display:block;font-size:11.5px;color:var(--muted);line-height:1.5;margin-top:2px;word-break:break-word}
.mind-picker-foot{margin-top:10px}

/* 主题链路记词：边界 / 检索句 / 维度分区 / 链路延伸 */
.mind-scope{font-size:11.5px;line-height:1.6;color:var(--ink);background:#f4f8f5;border:1px solid #d9e6de;
  border-radius:10px;padding:7px 10px;margin:9px 0}
.mind-scope b{color:#2f6b47;margin-right:6px}
.mind-queries{font-size:11px;line-height:1.9;color:var(--muted);margin:8px 0}
.mind-queries b{display:block;color:var(--ink);font-size:11.5px;margin-bottom:3px}
.mind-queries code{display:inline-block;background:#f2f4f2;border-radius:6px;padding:2px 7px;margin:0 5px 4px 0;
  font-size:11px;color:#3a5c47;word-break:break-word}

.mind-dim{border:1px solid var(--line);border-radius:12px;margin:8px 0;background:#fff;overflow:hidden}
.mind-dim-head{display:flex;align-items:center;gap:8px;padding:8px 10px;cursor:pointer;background:#f7faf8}
.mind-dim-head>div{flex:1;min-width:0}
.mind-dim-head strong{display:block;font-size:12.5px}
.mind-dim-head small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:1px}
.mind-dim-index{width:19px;height:19px;border-radius:50%;background:#2f6b47;color:#fff;font-size:10.5px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0}
.mind-dim-count{font-size:10.5px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 7px}
.mind-dim-fold{font-size:11px;color:var(--muted)}
.mind-dim-block{padding:2px 10px 10px}
.mind-dim-block h6{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#2f6b47;margin:9px 0 6px}
.mind-mini{border:1px solid var(--line);background:#fff;border-radius:8px;padding:2px 8px;font-size:10.5px;
  cursor:pointer;color:var(--muted);font-family:inherit}
.mind-mini:hover{background:#eef5f0;border-color:#9cc4ab;color:var(--ink)}

.mind-bydim{display:flex;align-items:flex-start;gap:7px;font-size:11.5px;color:var(--muted);line-height:1.6;margin:10px 0 0}
.mind-bydim input{margin:2px 0 0;flex-shrink:0}
.mind-nextline{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:12px;padding-top:10px;
  border-top:1px dashed var(--line);font-size:11.5px}
.mind-nextline b{display:block;width:100%;color:var(--ink);margin-bottom:2px}

/* ============ 思维导图：全屏页面 ============ */
.mindmap-dialog{border:0;padding:0;margin:0;max-width:100vw;max-height:100vh;width:100vw;height:100dvh;background:#fff}
.mindmap-dialog::backdrop{background:rgba(20,32,25,.5)}
.mindmap-full{display:flex;flex-direction:column;height:100dvh;min-height:0}
.mindmap-full-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);flex-shrink:0}
.mindmap-full-head>strong{font-size:14px;flex-shrink:0;max-width:34%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mindmap-full-tools{display:flex;align-items:center;gap:6px;margin-left:auto}
#mindmap-full-zoom{font-size:11.5px;color:var(--muted);min-width:38px;text-align:center}
.mindmap-full-bar{padding:8px 12px 0;flex-shrink:0;max-height:46dvh;overflow-y:auto}
/* 舞台占满剩余空间，自己不滚 —— 平移靠 transform。
   两层滚动嵌一起的话，手指一拖不知道拖的是哪一层。 */
.mindmap-full-stage{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;cursor:grab;
  background:radial-gradient(circle at 1px 1px, #e6eee9 1px, transparent 0) 0 0/18px 18px}
.mindmap-full-stage.dragging{cursor:grabbing}
.mindmap-full-scene{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
.mind-headtools{display:flex;align-items:center;gap:6px;flex-shrink:0}
.mind-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:11.5px;margin:6px 0}
.mind-crumb{border:0;background:none;padding:0;font-size:11.5px;font-family:inherit;color:#2f6b47;cursor:pointer;text-decoration:underline}
.mind-crumb-sep{color:var(--muted)}

/* ============ 收藏库 ============ */
/* 结构照抄单词库那个弹窗（.wordbank-dialog）。
   上一版自己写了一套 display:flex 的壳，忘了给背景和内边距，
   结果卡片直接顶到弹窗边框外面 —— 截图里那三张白卡就是这么溢出去的。
   这里不发明新写法，用已经跑通的那一套。 */
.favorites-dialog{
  border:0;padding:0;background:transparent;
  width:min(680px,100vw);max-width:100vw;
  max-height:100dvh;
}
.favorites-dialog::backdrop{background:rgba(24,32,26,.45)}
.favorites-dialog-body{
  background:var(--surface);border-radius:22px;
  padding:20px;max-height:88dvh;overflow:auto;
}
.favorites-dialog-body .dialog-head{align-items:flex-start}
#favorites-hint{color:var(--muted);font-size:12px;line-height:1.6;margin:5px 0 0}
.favorites-body{margin-top:12px}

/* 收藏库的两个页面。摆在最上面 ——
   上一版分组藏在好几层里，老板的原话是"我现在没有看到怎么操作"。 */
.fav-tabs{display:flex;gap:8px;margin-bottom:12px}
.fav-tab{flex:1;border:1px solid var(--line);background:#fff;border-radius:12px;
  padding:9px 10px;font-size:13.5px;cursor:pointer;color:var(--muted);font-family:inherit}
.fav-tab span{margin-left:5px;font-size:11px;color:var(--muted)}
.fav-tab.active{background:#2f6b47;border-color:#2f6b47;color:#fff;font-weight:700}
.fav-tab.active span{color:rgba(255,255,255,.8)}

/* 分组页 */
.gs-list{display:grid;gap:10px;margin-top:10px}
.gs-card{border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff}
/* 学过的淡一档：这一屏按遍数排序，没学过的在最上面，
   底色再拉开一点，"该学哪几组"一眼就分得出来。 */
.gs-card.studied{background:#fafbf9}
.gs-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gs-head strong{font-size:15px}
.gs-count{font-size:11px;color:var(--muted)}
.gs-nums{display:flex;flex-wrap:wrap;gap:12px;font-size:11.5px;color:var(--muted);margin-top:5px}
.gs-nums b{color:var(--ink);font-size:13px}
.gs-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:9px}

/* 难度。四档配色从浅到深 —— 颜色本身就是"这组有多难"。 */
.gs-diff{font-size:10px;border-radius:999px;padding:2px 8px;margin-left:auto;flex-shrink:0}
.gs-diff.none{color:var(--muted);border:1px dashed var(--line)}
.gs-diff.d1{background:#e9f3ed;color:#285e3d}
.gs-diff.d2{background:#eef5f0;color:#2f6b47}
.gs-diff.d3{background:#fff3df;color:#9a651c}
.gs-diff.d4{background:#f9e9e7;color:#b33b36}
.gs-diff-pick{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:9px}
.gs-diff-pick>span{font-size:11.5px;color:var(--muted)}

/* ---------- 标记色：三种，就三种 ---------- */
/* 老板："可以添加备注的颜色，比如说有三个颜色……整个板块都只有三种颜色。
   创建颜色以后，那个单词就用渐变来展示，这个渐变先尝试。"

   渐变的分寸：只从左边起一小段颜色，往右很快化开成白。
   整张卡铺满颜色的话，卡上真正要读的东西（单词、音标、释义）
   全泡在色块里，反而看不清 —— 而这张卡是拿来认词的。
   所以颜色只做"扫一眼认出来"，不抢内容。 */
/* ★ 三种颜色里【没有绿】。
   整个界面的主色就是绿的（按钮、标签、进度条、"记住了"的底色），
   再拿绿当标记色，扫一眼根本分不出哪个绿是什么意思。
   老板："不要绿色，主体是绿色的，看的太多了。"
   所以是 红 / 黄 / 蓝 —— 蓝在这一屏里是独一份，最跳得出来。

   点的尺寸按手指来，不按好看来：26px 是拇指点得准的下限，
   而这三个点要在读词的过程中随手戳，戳偏一次就得撤销重来。 */
.mark-dots{display:flex;gap:8px;margin-left:auto;flex-shrink:0}
.mark-dot{width:26px;height:26px;border-radius:50%;cursor:pointer;
  border:1px solid rgba(0,0,0,.12);padding:0;font-family:inherit}
.mark-dot.m1{background:#f0a9a2}
.mark-dot.m2{background:#f0d489}
.mark-dot.m3{background:#a8c8ea}
/* 选中的那颗描一圈深色，别只靠"哪个更亮"—— 三颗都是浅色，
   不描圈的话根本看不出选的是哪一个。
   圈用墨色不用主色绿：绿在这一屏已经有太多含义了。 */
.mark-dot.on{box-shadow:0 0 0 3px var(--ink);border-color:var(--ink)}

.plan-word.c1{background:linear-gradient(100deg,#fdeceb 0%,#fdf6f5 42%,#fff 78%)}
.plan-word.c2{background:linear-gradient(100deg,#fdf4e0 0%,#fdfaf2 42%,#fff 78%)}
.plan-word.c3{background:linear-gradient(100deg,#e8f1fb 0%,#f4f8fd 42%,#fff 78%)}
/* 标了「记住了」的底色本来就是绿的，颜色渐变要让位 ——
   两层底色叠在一起谁也认不出来。 */
.plan-word.on.c1,.plan-word.on.c2,.plan-word.on.c3{background:#f0f7f3}

/* 收藏列表里也把颜色带上：同一批词，两个页面该长得一样 */
.fav-row.c1{background:linear-gradient(100deg,#fdeceb 0%,#fdf6f5 42%,#fff 78%)}
.fav-row.c2{background:linear-gradient(100deg,#fdf4e0 0%,#fdfaf2 42%,#fff 78%)}
.fav-row.c3{background:linear-gradient(100deg,#e8f1fb 0%,#f4f8fd 42%,#fff 78%)}
.fav-row.picked.c1,.fav-row.picked.c2,.fav-row.picked.c3{background:#eef5f0}

/* 筛选条上那三颗色标 */
.mark-filter::before{content:'';display:inline-block;width:9px;height:9px;
  border-radius:50%;margin-right:5px;vertical-align:-1px}
.mark-filter.m1::before{background:#e08a82}
.mark-filter.m2::before{background:#dcb459}
.mark-filter.m3::before{background:#5b8fc7}
/* 「没标」用空心圈：一眼就看出它说的是"这里什么都没有"，
   而不是第四种颜色。 */
.mark-filter.mnone::before{background:transparent;box-shadow:inset 0 0 0 1.5px #b9c0b8}

/* ---------- 存进度：钉在底下的悬浮条 ---------- */
/* 老板："这里最好可以做一个悬浮窗，停留在同一个位置，
   点击就可以保存当前的数据。"
   一组 50 个词一次全给，按钮沉到五十张卡片最下面就等于没有。

   用 position:sticky 而不是 fixed。
   理由是"贴着它该贴的那个框"：这一屏在 .favorites-dialog-body 里
   （overflow:auto、max-height:88dvh），sticky 认的就是这个滚动容器，
   天然贴在弹窗底边。fixed 认的是视口 —— 弹窗没占满屏幕时，
   按钮会飘到弹窗外面去。

   ★ sticky 有一条容易踩的前提：从这里往上，到那个滚动容器为止，
   中间【不能有 overflow:hidden】的祖先，否则它会安静地退化成
   普通元素（不报错、不闪烁，就是不吸底）。这一条已经用真浏览器
   验过了，见 tools/browser/check_sticky_bar.mjs。 */
.gs-bar{
  position:sticky;
  /* 贴着弹窗内容区的底边。留一点缝，不然和圆角糊在一起 */
  bottom:-1px;
  z-index:5;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:12px;
  /* 负边距 + 同宽内边距：让它横跨整个内容区，
     不然两侧会露出下面卡片的边，看着像浮在半空 */
  margin-left:-20px;margin-right:-20px;
  padding:11px 20px calc(11px + env(safe-area-inset-bottom));
  background:var(--surface);
  border-top:1px solid var(--line);
  box-shadow:0 -8px 20px rgba(31,50,39,.07);
}
/* ★ 弹窗那 20px 的下内边距要让开。
   sticky 元素出不了自己父元素的范围，而父元素和弹窗底边之间
   正好隔着这 20px —— 不让开的话，条会停在离底边 20px 的半空中，
   下面留一条白缝。这个数是在真浏览器里量出来的（19px），不是猜的。
   :has() 老浏览器不认，那时退化成"离底边差 20px"，只是不够贴边，
   吸底本身照常 —— 这是可以接受的退化。 */
.favorites-dialog-body:has(.gs-bar){padding-bottom:0}
.gs-bar span{font-size:12px;color:var(--muted)}
.gs-bar b{color:var(--ink);font-size:14px}
.gs-bar .secondary-btn{flex-shrink:0}

/* 一遍学完那一屏 */
.gs-finish{border:1px solid #9cc4ab;background:#f0f7f3;border-radius:14px;padding:14px 15px}
.gs-finish strong{font-size:15px;display:block}
.gs-finish p{font-size:12.5px;color:var(--muted);line-height:1.7;margin:6px 0 0}

.fav-folders{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.fav-folder{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 11px;font-size:12px;cursor:pointer;color:var(--ink);font-family:inherit}
.fav-folder span{color:var(--muted);margin-left:5px;font-size:11px}
.fav-folder.active{background:#2f6b47;border-color:#2f6b47;color:#fff}
.fav-folder.active span{color:rgba(255,255,255,.75)}
.fav-folder-new{border-style:dashed;color:var(--muted)}
.fav-tools{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.fav-tools input{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:9px 12px;font-size:13px;font-family:inherit;color:var(--ink);background:#fbfcfa}
.fav-filters{display:flex;align-items:center;gap:6px;margin-bottom:10px;flex-wrap:wrap}
.fav-filter{border:1px solid var(--line);background:#fff;border-radius:999px;padding:4px 10px;font-size:11.5px;cursor:pointer;color:var(--muted);font-family:inherit}
.fav-filter.active{background:#eef5f0;border-color:#9cc4ab;color:#285e3d}
.fav-filter-gap{flex:1}
.fav-mini{border:1px solid var(--line);background:#fff;border-radius:9px;padding:5px 9px;font-size:11.5px;cursor:pointer;color:var(--ink);font-family:inherit;white-space:nowrap}
.fav-mini:hover{background:#eef5f0;border-color:#9cc4ab}
.fav-mini:disabled{opacity:.45;cursor:default}
.fav-mini-danger{color:#a8514d}

.fav-list{display:flex;flex-direction:column;gap:7px}
/* 整条都是 <label>，点哪儿都能勾中 ——
   手机上只有那个 16px 的方框可点的话，十次有三次点空 */
.fav-word{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;cursor:pointer}
.fav-word.picked{border-color:#9cc4ab;background:#eef5f0}
.fav-word input{margin:2px 0 0;flex-shrink:0;width:17px;height:17px}
.fav-word-main{flex:1;min-width:0;display:block}
.fav-word-head{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.fav-word-head b{font-size:14px}
.fav-word-cn{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:4px}
.fav-word-badge{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 7px}
.fav-word-badge.on{color:#285e3d;border-color:#9cc4ab;background:#eef5f0}
.fav-word-folder{font-size:10.5px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 7px}

.fav-movebar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;padding:9px 10px;
  border:1px solid #cde0d4;background:#f2f7f4;border-radius:12px;font-size:12px;color:var(--muted)}
/* 底部操作条吸底。收藏多了以后它会被滚出视野，
   而"已选 N 个"和后面那两个按钮正是这时候最需要看到的 */
/* 「再显示 N 个」+ 一行说清楚到底有多少。
   老板报过"500 个以后就不显示了"—— 那时候界面上没有任何数字
   能告诉人"还有没有更多"，所以这一行是这个功能的一半。 */
.fav-more{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}
.fav-more span{font-size:11.5px;color:var(--muted)}

.fav-pickbar{position:sticky;bottom:-20px;display:flex;align-items:center;gap:8px;justify-content:flex-end;
  background:var(--surface);border-top:1px solid var(--line);padding:10px 0;margin-top:10px;font-size:12px;color:var(--muted)}

/* 点词卡片上的收藏星 */
.word-peek-foot{display:flex;align-items:center;gap:8px}
.word-peek-fav{border:1px solid var(--line);background:#fff;border-radius:9px;padding:4px 9px;font-size:15px;line-height:1.1;cursor:pointer;color:var(--muted);font-family:inherit}
.word-peek-fav.on{color:#d8a219;border-color:#e8cf95;background:#fdf8ec}

/* 重要等级 A/B/C/D。
   颜色按"越重要越显眼"排：A 深绿实心，D 灰底，未收录只是一条短横。
   不用红色 —— 红在这套界面里表示危险操作（删、取消收藏），
   而 A 级词是"该背"不是"出事了"。 */
.mind-grade{display:inline-flex;align-items:center;justify-content:center;
  width:16px;height:16px;border-radius:5px;font-size:9.5px;font-weight:700;font-style:normal;flex-shrink:0}
.mind-grade.g-A{background:#2f6b47;color:#fff}
.mind-grade.g-B{background:#e4f0e9;color:#285e3d;border:1px solid #9cc4ab}
.mind-grade.g-C{background:#f2f4f2;color:#5b6b60;border:1px solid var(--line)}
.mind-grade.g-D{background:#fafbfa;color:#98a49c;border:1px solid var(--line)}
.mind-grade.g-none{background:transparent;color:#c3cbc6;border:1px dashed var(--line)}

.mind-gradebar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:10px 0 4px;font-size:11px;color:var(--muted)}
.mind-gradebtn{border:1px solid var(--line);background:#fff;border-radius:999px;padding:3px 9px;
  font-size:11px;cursor:pointer;color:var(--muted);font-family:inherit}
.mind-gradebtn.active{background:#2f6b47;border-color:#2f6b47;color:#fff}

/* 候选词面板一开就很长，全屏时让它占大半屏 */
.mindmap-full-bar.with-picker{max-height:72dvh}

/* 点词卡片里的「原形」一行。
   ★ 这张卡片的底是【深色】的（见 .word-peek-body 的深蓝紫渐变）。
   上一版按浅色界面的习惯给了个近白底、却没改文字颜色 ——
   文字从卡片继承下来的是 #eef1f8，结果就是白字白底，等于没显示。
   现在改成半透明浅色叠在深底上，文字全部走亮色，自己定死不靠继承。 */
/* 带记忆句的长卡片：钉在屏幕正中。
   
   贴着被点的那个词摆是给"短卡片"设计的 —— 加了三句之后卡片翻倍高，
   贴着摆就会盖住下面几行词，或者被弹窗边缘裁掉（老板说的"会有遮挡"）。
   居中之后位置固定，不跟滚动、不跟锚点，人知道该往哪儿看。
   
   left/top 用 !important：贴锚点那条路径是写行内样式的，
   不盖住的话会和这里打架。 */
.word-peek.centered{
  /* 坐标由 JS 算好写成行内 px（见 word-peek.js 的 center()）——
     这里【不再用 left:50% + transform 居中】。
     transform 居中依赖"fixed 元素的包含块是视口"，而卡片此刻挂在
     top layer 的 <dialog> 里，某些浏览器上这个前提不成立，
     一旦不成立就偏出屏幕、只露出一角。
     贴锚点那条路径一直是写 px 的，在所有机子上都对，居中沿用同一套。 */
  width:min(360px,calc(100vw - 24px));
  max-height:calc(100dvh - 40px);
  display:flex;
  flex-direction:column;
}
/* 居中了就没有"指回那个词"这回事，箭头留着只会指错地方 */
.word-peek.centered .word-peek-arrow{display:none}
.word-peek.centered .word-peek-body{
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
/* 一条滚动轴：从释义到三句话连着滚，头部和底部按钮固定。
   分成两个各自滚动的区域的话，手指在中间滑动时
   不知道自己推的是哪一层。 */
.word-peek.centered .word-peek-scroll{
  flex:1;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
}

/* 记忆句（只在收藏库的词条列表点词时出现）。深色卡片，配色都按浅字来。
   卡片本来不高，三句加进来可能超出屏幕 —— 句子区自己限高滚动，
   释义和按钮永远看得见。 */
/* 左右不要再缩：.word-peek-body 已经有 16px 内边距了，
   这里再加一层的话，句子会比上面的释义窄一截，看着像没对齐。 */
.word-peek-sentences:not(:empty){margin-top:12px;padding-top:2px}
.word-peek-sent-head{font-size:10.5px;color:#8fd6ab;letter-spacing:.05em;margin:2px 0 7px}
.word-peek-sent{border-top:1px solid rgba(238,241,248,.14);padding:8px 0}
.word-peek-sent-hook{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.word-peek-sent-hook em{font-style:normal;font-size:9.5px;color:#12331f;
  background:#8fd6ab;border-radius:999px;padding:1px 7px;flex-shrink:0}
.word-peek-sent-hook b{font-size:12.5px;color:#ffd98a;line-height:1.5}
.word-peek-sent-en{display:flex;align-items:flex-start;gap:8px;margin-top:4px}
.word-peek-sent-en>span{flex:1;font-size:13px;line-height:1.7;color:#eef1f8}
.word-peek-sent small{display:block;font-size:11.5px;color:rgba(238,241,248,.72);
  line-height:1.7;margin-top:3px}
.word-peek-sent-fail{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  font-size:11px;color:rgba(238,241,248,.66);padding:6px 0 8px}

.word-peek-base{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;line-height:1.6;
  background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.18);
  border-radius:10px;padding:7px 10px;margin-bottom:9px;color:#eef1f8}
.word-peek-base-tag{font-size:10px;color:#12331f;background:#8fd6ab;border-radius:999px;padding:2px 8px;font-weight:700}
.word-peek-base b{font-size:14px;color:#fff}
.word-peek-base i{font-style:normal;color:#8fd6ab;font-size:12px}
/* 释义那一小段独占一行（词、音标、几个按钮排在上一行）。
   ★ 必须把 .word-peek-base-tag 排除掉：它也是个 span，
   而这条选择器权重更高 —— 不排除的话「原形」那颗小绿标会被撑成
   一整条通栏的绿色横杠，把这一行的其他东西全挤到下一行去
   （老板截图里那根绿条就是它）。 */
.word-peek-base>span:not(.word-peek-base-tag){
  color:rgba(238,241,248,.78);width:100%;font-size:12px}
.word-peek-base-play{padding:2px 9px;font-size:11px}
.word-peek-base-go{background:#8fd6ab;color:#12331f;border-color:#8fd6ab;font-weight:700}

/* 图内查找条 */
.mindmap-full-find{display:flex;align-items:center;gap:6px;padding:8px 12px 0;flex-shrink:0}
.mindmap-full-find input{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;
  padding:7px 10px;font-size:12.5px;font-family:inherit;color:var(--ink);background:#fff}
.mindmap-find-count{font-size:11px;color:var(--muted);min-width:34px;text-align:center}
.mind-chip.hit{border-color:#d8a219;box-shadow:0 0 0 2px rgba(216,162,25,.22)}

/* 操作条改成单行横滚。
   截图里它折成了两行、把画布往下顶掉一大块 —— 手机上按钮就那么几个，
   横着滑一下比占掉两行高度划算。 */
.mind-actionbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.mind-actionbar::-webkit-scrollbar{display:none}
.mind-actionbar .mind-act{flex:0 0 auto}
.mind-actionbar-name{flex:0 0 auto;max-width:34vw}
.mind-actionbar-gap{display:none}

/* 思维导图的第一屏：已建的导图列表 */
.mindmap-list{padding:14px 12px 24px;overflow-y:auto;height:100%;background:var(--surface)}
.mindmap-list-new{display:flex;gap:8px;margin-bottom:14px}
.mindmap-list-new input{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;
  padding:10px 12px;font-size:13px;font-family:inherit;color:var(--ink);background:#fff}
.mindmap-cards{display:grid;gap:9px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
/* 整张卡片可点 = 进这张图。删除是卡片里的一个小角标，
   点它要 stopPropagation，否则会先把图打开再问删不删。 */
.mindmap-card{position:relative;text-align:left;border:1px solid var(--line);border-radius:14px;
  background:#fff;padding:13px 14px;cursor:pointer;font-family:inherit;color:var(--ink)}
.mindmap-card:hover{border-color:#9cc4ab;background:#f7faf8}
.mindmap-card strong{display:block;font-size:14px;margin-bottom:4px;padding-right:34px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mindmap-card span{display:block;font-size:11.5px;color:#2f6b47}
.mindmap-card small{display:block;font-size:10.5px;color:var(--muted);margin-top:3px}
.mindmap-card-del{position:absolute;top:9px;right:10px;font-size:10.5px;font-style:normal;
  color:#a8514d;border:1px solid var(--line);border-radius:7px;padding:2px 6px;background:#fff}
.mindmap-card-del:hover{background:#fdf0ef;border-color:#e0b3b0}

/* ============ 拼读五步（音标拼写维度里新增的一段）============ */
/* 用编号 + 竖线串起五步：这是一条推导链，不是五个并列的块，
   排版上要让人看出"从上一步推到下一步"。 */
.read-guide{position:relative;padding-left:4px}
.read-step{position:relative;padding:0 0 14px 26px;border-left:1px dashed #cfdcd4;margin-left:9px}
.read-step:last-child{border-left-color:transparent;padding-bottom:2px}
.read-step-head{display:flex;align-items:center;gap:7px;margin:0 0 7px -35px}
.read-step-head>span{width:19px;height:19px;border-radius:50%;background:#2f6b47;color:#fff;
  font-size:10.5px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.read-step-head strong{font-size:12.5px;color:#2f6b47}
.read-note{font-size:12px;line-height:1.7;color:var(--ink);margin:0 0 6px}
.read-note b{color:#2f6b47}
.read-silent b{color:#8a5b1f}
.read-mnemonic{background:#fdf6ea;border:1px solid #e8d5b0;border-radius:9px;padding:6px 9px}

.read-chain{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:4px 0 2px}
.read-chain span{background:#eef5f0;border:1px solid #cde0d4;border-radius:8px;padding:3px 10px;font-size:13px}
.read-chain em{color:var(--muted);font-style:normal}

.read-syl-list{display:grid;gap:6px;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));margin-bottom:8px}
.read-syl{border:1px solid var(--line);border-radius:10px;padding:7px 9px;background:#fff}
/* 重读音节描边加重：一眼看出劲儿使在哪个音节上 */
.read-syl.stressed{border-color:#9cc4ab;background:#f6faf7}
.read-syl-head{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.read-syl-head b{font-size:13px}
.read-syl-head i{font-style:normal;font-size:11.5px;color:#2f6b47}
.read-syl-type{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 6px}
.read-syl p{font-size:11.5px;line-height:1.6;color:var(--muted);margin:5px 0 0}
.read-syl small{display:block;font-size:11px;color:var(--muted);margin-top:3px}

.read-rules{display:grid;gap:6px;margin-bottom:8px}
.read-rule{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;border-left:2px solid #cde0d4;padding-left:9px}
.read-rule b{font-size:13px}
.read-rule>span{font-size:11.5px;color:#2f6b47}
.read-rule p{width:100%;font-size:11.5px;line-height:1.6;color:var(--muted);margin:2px 0 0}

.read-example{display:flex;flex-wrap:wrap;align-items:center;gap:7px;background:#f7faf8;
  border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin-top:4px}
.read-example b{font-size:13px}
.read-example span{width:100%;font-size:11.5px;color:var(--muted);line-height:1.6}
.read-register{font-size:10.5px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 7px}
.read-collocations{display:flex;flex-wrap:wrap;gap:6px}
.read-collocations span{background:#eef5f0;border:1px solid #cde0d4;border-radius:8px;
  padding:4px 9px;font-size:12px}

/* ============ 第七维：文章推荐 ============ */
.article-genre{font-size:11px;color:#2f6b47;border:1px solid #cde0d4;background:#eef5f0;
  border-radius:999px;padding:3px 10px;white-space:nowrap}
.article-level{border:1px solid var(--line);border-radius:14px;padding:11px 13px;margin:10px 0 12px;background:#fbfdfb}
.article-level-row{display:flex;align-items:baseline;gap:8px;font-size:12px;color:var(--muted)}
.article-level-row strong{font-size:16px;color:#2f6b47}
.article-level-hint{margin-left:auto;font-size:11px}
.article-level input[type=range]{width:100%;margin:8px 0 2px;accent-color:#2f6b47}
/* 刻度标在滑轨下面。用 space-between 而不是按数值定位：
   定位算出来的位置在不同宽度下会和滑块对不齐，反而更乱。 */
.article-level-scale{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:9px}
/* 两个按钮一行放不下就换行，别把"重写一篇"挤成两行字 */
.article-level-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.article-title{font-size:15px;margin:12px 0 8px}
.article-body{display:grid;gap:12px}
.article-para p{font-size:14.5px;line-height:1.85;margin:0}
.article-para small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:5px;
  padding-left:9px;border-left:2px solid var(--line)}

/* 节点文字改成最多两行，不再一刀切省略号。
   词组（boarding pass、exact change）一行放不下是常态，
   省略成 "boarding…" 等于没显示。 */
.mind-chip{height:auto!important;min-height:42px;padding:6px 9px}
.mind-chip strong,.mind-chip b{white-space:normal;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25}
.mind-chip span{white-space:normal;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25}

/* 右下角常用动作。固定在拇指够得着的地方，不随画布移动。 */
.mind-fab{position:absolute;right:12px;bottom:14px;z-index:4;display:flex;flex-direction:column;
  align-items:stretch;gap:5px;background:rgba(255,255,255,.94);border:1px solid var(--line);
  border-radius:14px;padding:8px;box-shadow:0 6px 20px rgba(30,50,38,.14);backdrop-filter:blur(6px)}
.mind-fab-target{font-size:10.5px;color:var(--muted);max-width:120px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;padding:0 2px 2px}
.mind-fab-btn{border:1px solid var(--line);background:#fff;border-radius:10px;padding:7px 12px;
  font-size:12px;cursor:pointer;color:var(--ink);font-family:inherit;white-space:nowrap}
.mind-fab-btn:hover{background:#eef5f0;border-color:#9cc4ab}
.mind-fab-btn.danger{color:#a8514d}
.mind-fab-recycle{flex-direction:row;align-items:center;gap:8px;font-size:12px;color:var(--muted)}

/* 回收模式下每个词右上角的红减号 */
.mind-minus{position:absolute;right:-6px;top:-6px;width:19px;height:19px;border-radius:50%;
  border:1px solid #e0b3b0;background:#fff;color:#c2504b;font-size:13px;line-height:1;
  cursor:pointer;font-family:inherit;padding:0;z-index:2}
.mind-minus.on{background:#c2504b;color:#fff;border-color:#c2504b}
.mind-row{position:relative}
.mind-row .mind-minus{position:static;margin-left:6px;flex-shrink:0}

/* 点到的不是原形时，标题右上角一个红点。
   加了 -ed/-ing/-s 的词看着和原形很像，不标出来的话
   学习者会以为自己记的就是原形，换个时态又不认识了。 */
#word-peek-word{position:relative;display:inline-block}
#word-peek-word.is-inflected::after{content:'';position:absolute;top:1px;right:-9px;
  width:6px;height:6px;border-radius:50%;background:#c2504b}


/* 多维拓展专区 */
.mind-expand{margin-top:12px;padding-top:10px;border-top:1px dashed var(--line)}
.mind-expand>b{display:block;font-size:12.5px;color:#2f6b47;margin-bottom:2px}
.mind-expand-list{display:grid;gap:7px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.mind-expand-item{border:1px solid var(--line);border-radius:11px;padding:9px 10px;background:#fff}
.mind-expand-head{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.mind-expand-head em{font-size:10px;font-style:normal;color:#fff;background:#2f6b47;
  border-radius:999px;padding:1px 7px}
.mind-expand-head strong{font-size:12.5px}
.mind-expand-item small{display:block;font-size:11px;color:var(--muted);line-height:1.55;margin-top:4px}
.mind-expand-acts{display:flex;gap:5px;margin-top:7px}

/* AI 模型与密钥 */
.aiconf-body{display:grid;gap:13px;margin-top:6px}
.aiconf-row label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.aiconf-row input{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px 12px;
  font-size:13px;font-family:inherit;color:var(--ink);background:#fbfcfa}
.aiconf-presets{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px}
.aiconf-hint{font-size:11px;color:var(--muted)}
.aiconf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.aiconf-status{font-size:11.5px;color:var(--muted)}

/* ---------- 学习库那一屏：四张卡长一个样 ----------
   
   老板的原话："不要这种长条状的，就是普通的几个页面，会规整一点，
   大小色彩一致一点，现在的就比较容易重叠。"
   
   宽度问题上面那条 .grid>:where(.card) 已经解决了（每张都占满一行）。
   这里解决的是"看着不像一家人"：原来四张卡各有各的渐变底色
   （绿的、米黄的、蓝的）、各自的 padding，摆在一起像四个不同的模块
   拼上去的。统一成白底 + 同样的内边距 + 同一条边框，
   颜色只留在左上角那行小字（panel-kicker）上 ——
   要区分它们靠的是名字，不是底色。 */
.library-learning-banner,
.library-entries,
.library-review-banner,
.practice-hub-card{
  padding:18px 20px;
  background:var(--surface);
  border-color:var(--line);
}

/* 横排的两张（开始学习 / 自动复习）在手机上竖过来。
   原来是 flex 横排 + justify-content:space-between，
   窄屏时标题和按钮会互相挤，长标题直接压到按钮上 ——
   老板说的"容易重叠"就是这个。 */
.library-learning-banner,
.library-review-banner{
  flex-wrap:wrap;
  align-items:flex-start;
  gap:14px;
}
.library-learning-banner>div,
.library-review-banner>div{flex:1 1 220px;min-width:0}
.library-learning-banner h3,
.library-review-banner h3{font-size:16px}
.library-learning-banner p,
.library-review-banner p{font-size:12px}

@media (max-width:640px){
  /* 手机上按钮直接占满一行，不跟标题抢位置 */
  .library-learning-banner .primary-btn,
  .library-review-banner .secondary-btn,
  .library-review-banner .primary-btn{width:100%}
}

/* 学习库的入口格子。
   只留名字和一句话，点进去才是内容 ——
   这几个东西用过一次就不用再读介绍了，天天占着首屏纯属浪费。 */
.library-entries .entry-grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));margin-top:4px}
.entry-tile{border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px 10px;
  cursor:pointer;font-family:inherit;color:var(--ink);text-align:center}
.entry-tile:hover{border-color:#9cc4ab;background:#f4f9f6}
.entry-tile strong{display:block;font-size:13.5px}
.entry-tile small{display:block;font-size:10.5px;color:var(--muted);margin-top:3px}

/* ============ 文章翻译 ============ */
.reader-input{display:grid;gap:8px;margin-top:10px}
.reader-input textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;
  font-size:13.5px;line-height:1.7;font-family:inherit;color:var(--ink);background:#fbfcfa;resize:vertical}
.reader-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.reader-result{margin-top:12px}
.reader-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.reader-head h4{margin:0;font-size:15px}
.reader-summary{font-size:12.5px;line-height:1.75;color:var(--muted);margin:7px 0 0}
.reader-points{display:grid;gap:9px}
.reader-point{border-left:3px solid #9cc4ab;padding-left:11px}
.reader-point blockquote{margin:0;font-size:13.5px;line-height:1.7}
.reader-point p{font-size:12.5px;line-height:1.75;color:var(--muted);margin:5px 0 0}
.reader-words{display:grid;gap:7px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.reader-word{border:1px solid var(--line);border-radius:11px;padding:8px 10px;background:#fff}
.reader-word b{font-size:13.5px}
.reader-word span{font-size:12px;color:var(--muted);margin-left:6px}
.reader-word small{display:block;font-size:11px;color:var(--muted);line-height:1.55;margin-top:4px}
/* 逐段对照：编号在左，原文在上、译文在下。
   左右分栏在手机上一列只剩十几个字符，读不下去。 */
.reader-paras{display:grid;gap:12px}
.reader-para{display:flex;gap:9px}
.reader-para-no{width:20px;height:20px;border-radius:50%;background:#eef5f0;color:#2f6b47;
  font-size:10.5px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:3px}
.reader-para p{font-size:14.5px;line-height:1.85;margin:0}
.reader-para small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:5px;
  padding-left:9px;border-left:2px solid var(--line)}

/* 四段故事线导览：让人一眼看出这四段是连着的 */
.mind-storyline{display:flex;flex-wrap:wrap;align-items:stretch;gap:4px;margin:10px 0 4px}
.mind-storyline i{color:var(--muted);font-style:normal;align-self:center;font-size:11px}
.mind-storyline-step{flex:1;min-width:76px;border:1px solid var(--line);border-radius:10px;
  padding:6px 8px;font-size:10px;color:var(--muted);cursor:pointer;background:#fff}
.mind-storyline-step:hover{border-color:#9cc4ab;background:#f4f9f6}
.mind-storyline-step b{display:block;font-size:11.5px;color:var(--ink);margin-top:2px;line-height:1.35}
.mind-storyline-note{margin-top:2px}
.mind-stage{font-size:10px;font-style:normal;color:#fff;background:#2f6b47;
  border-radius:999px;padding:1px 7px;margin-right:5px}

/* 串成句子 —— 一次五种说法 */
.mind-compose{border:1px solid #cde0d4;background:#f4f9f6;border-radius:12px;padding:11px 12px;margin-top:10px}
.mind-compose-en{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.mind-compose-en b{font-size:14px;line-height:1.65}
.mind-compose p{font-size:12.5px;color:var(--muted);line-height:1.7;margin:6px 0 0}
.mind-compose-scene{font-size:11.5px;line-height:1.7;color:var(--muted);margin-top:6px}
.mind-compose-scene b{color:#2f6b47;margin-right:6px}
.mind-picker-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* 挑词。词和中文意思叠在一个格子里：只显示英文的话，
   一屏十几个词全靠回忆哪个是哪个，挑起来很慢。 */
.mind-compose-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.mind-compose-chip{border:1px solid var(--line);background:#fff;border-radius:9px;
  padding:5px 9px;font-size:12px;font-family:inherit;color:var(--ink);cursor:pointer;
  line-height:1.3;text-align:left}
.mind-compose-chip em{display:block;font-style:normal;font-size:10px;color:var(--muted);margin-top:1px}
.mind-compose-chip.on{background:#e4f0e9;border-color:#2f6b47;color:#2f6b47}
.mind-compose-chip.on em{color:#4b7f5f}

/* 五句并排。每一句自成一张小卡，边界清楚 ——
   五句连着排下来会看成一段话，而它们本来是五个互相独立的选项。 */
.mind-sents{display:grid;gap:8px;margin-top:10px}
.mind-sent{border:1px solid #cde0d4;background:#fff;border-radius:10px;padding:9px 10px}
.mind-sent-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:5px}
.mind-sent-head small{font-size:10.5px;color:var(--muted);line-height:1.5}
.mind-sent-type{font-size:10px;color:#fff;background:#2f6b47;border-radius:999px;padding:2px 8px;flex-shrink:0}
.mind-sent-missing{font-size:10.5px;color:#a8514d;line-height:1.6;margin:5px 0 0}
.mind-sent-acts{display:flex;gap:6px;margin-top:7px}
.mind-mini.done{background:#e4f0e9;border-color:#9cc4ab;color:#2f6b47}

.mind-sent-hookline{font-size:13px;line-height:1.6;color:#2f6b47;font-weight:600;margin:2px 0 5px}

/* 挂到图上的整句。
   图上那个格子【只放记忆点那一行中文】，整句一个字都不放 ——
   一整句英文塞进格子里，要么被截成半句，要么把格子撑到半屏高
   把旁边的词全压住（上一版就是这样）。整句收在右边的「故事」面板里。 */
.mind-node.is-sentence>.mind-row{align-items:flex-start}
.mind-sent-line{display:flex;flex-direction:column;gap:3px;min-width:0;padding:2px 0}
.mind-sent-hook{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mind-sent-hook strong{font-size:13px;line-height:1.5;color:#2f6b47}
.mind-sent-en{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.mind-sent-en b{font-size:13px;line-height:1.65;font-weight:500}
.mind-chip-tag{font-size:9.5px;font-style:normal;color:#fff;background:#2f6b47;
  border-radius:999px;padding:1px 6px;flex-shrink:0;align-self:flex-start}
.mind-chip.is-sentence{background:#f4f9f6;border-color:#9cc4ab;
  justify-content:flex-start;align-items:flex-start;gap:3px;padding:6px 8px}
.mind-chip.is-sentence strong{font-size:11.5px;line-height:1.35;color:#2f6b47;
  -webkit-line-clamp:3;text-align:left;align-self:stretch}

/* 右边那块「故事」—— 相当于一份总结。
   浮在画布上而不是挤占画布：读字的时候不该还要先把图拖正。
   手机上宽度取 80vw 封顶 300，左边留一条缝，一眼能看出图还在。 */
.mind-side{position:absolute;right:0;top:0;bottom:0;z-index:5;
  width:min(300px,80vw);display:flex;flex-direction:column;
  background:rgba(255,255,255,.97);border-left:1px solid var(--line);
  box-shadow:-8px 0 24px rgba(30,50,38,.12);backdrop-filter:blur(6px)}
.mind-side-head{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:10px 12px;border-bottom:1px solid var(--line);font-size:12.5px}
.mind-side-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mind-side-body{flex:1;overflow:auto;padding:10px 12px;display:grid;gap:9px;
  overscroll-behavior:contain}
.mind-side-card{border:1px solid var(--line);border-radius:10px;padding:9px 10px;
  background:#fff;cursor:pointer}
.mind-side-card.on{border-color:#2f6b47;box-shadow:0 0 0 2px rgba(47,107,71,.14)}
.mind-side-card p{font-size:12px;color:var(--muted);line-height:1.7;margin:5px 0 0}
.mind-side-path{display:block;font-size:10px;color:var(--muted);margin-top:5px}

/* 句子里用到的那几个词标出来。
   不用纯红字：红字在一行英文里认起来不如"带底色"快，
   而且这几个词还要能点开查释义，底色不影响点击热区。
   background 走透明红，深色底上也不会糊成一块。 */
.mind-used{background:rgba(200,72,64,.14);color:#a8342c;border-radius:4px;
  padding:0 1px;font-weight:700}

/* 播放下面那份词表：原形 + 音标 + 意思。
   为什么必须是原形：句子里是 tickets / booked / was，
   要记的是 ticket / book / be —— 照着句子背，换个形态就不认识了。 */
.mind-words{margin-top:8px;border-top:1px dashed var(--line);padding-top:7px;display:grid;gap:4px}
.mind-words-head{font-size:10px;color:var(--muted);letter-spacing:.04em}
.mind-word-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:11.5px;line-height:1.6}
.mind-word-row b{font-size:12.5px;color:#a8342c}
.mind-word-row i{font-style:normal;font-size:11px;color:#2f6b47}
.mind-word-row span{color:var(--muted);min-width:0;flex:1}
.mind-word-from{font-style:normal;font-size:10px;color:var(--muted);
  background:#eef5f0;border-radius:999px;padding:1px 6px}

/* 到处都能用的一颗收藏星。渲染在各模块，点击由 favorites.js 统一接。 */
.fav-star{border:1px solid var(--line);background:#fff;border-radius:8px;
  width:24px;height:24px;line-height:1;padding:0;font-size:13px;
  color:#c9a227;cursor:pointer;font-family:inherit;flex-shrink:0}
.fav-star:hover{border-color:#c9a227;background:#fffaf0}
.fav-star.on{background:#fff6dd;border-color:#e0be55}

/* 收藏库列表里的音标和播放 */
/* 收藏库的一条词。整体放大 —— 这一屏是拿来复习的，不是拿来数条数的：
   词本身要一眼看清，音标要能读，中文要读得下去。 */
.fav-word{padding:12px 13px!important;gap:11px!important}
.fav-word-head b{font-size:17px!important;line-height:1.4}
.fav-word-cn{font-size:13px!important;line-height:1.75!important;margin-top:5px!important}
.fav-word input{width:19px!important;height:19px!important;margin-top:4px!important}

/* 一条词 = 外壳（.fav-row）+ 里面的勾选区（.fav-word）+ 底下那一句。
   句子必须在 .fav-word 【外面】：整条是个 <label>，
   点它任何非交互的地方都会勾中这个词 —— 读句子时点到标点、空白
   就被勾上，而用户完全不知道自己勾了什么。 */
.fav-row{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.fav-row.picked{border-color:#9cc4ab;background:#eef5f0}
/* 里层那个 label 的边框收掉：两层框套在一起像画错了 */
.fav-row>.fav-word{border:0;border-radius:0;background:transparent}
.fav-row>.fav-word.picked{background:transparent}

/* 释义按义项分行摆，并标出哪几条常用。
   老板："有些意思太多了，一次性记不完，需要标注一下。"
   一行糊着四个词性十来个义项，眼睛扫过去一个也记不住 ——
   因为不知道该记哪个。常用的留在上面，其余折起来。 */
.fav-sense{display:block;margin-top:3px}
.fav-sense i{font-style:normal;color:#2f6b47;margin-right:5px;font-size:11.5px}
.fav-sense.on{color:var(--ink)}
.fav-sense.on b{font-size:9.5px;font-weight:700;color:#12331f;background:#cfe9d8;
  border-radius:999px;padding:1px 6px;margin-right:6px;vertical-align:1px}
.fav-sense-more{margin-top:6px;color:var(--muted)}
/* 学习卡上"剩下那几个"另起一块：塞进「点一下看释义」那个按钮里的话
   就成了按钮套按钮，点谁都说不准。 */
.plan-word-more{margin-top:6px;font-size:12.5px;color:var(--muted);line-height:1.7}

.fav-row-sent{padding:0 13px 11px;margin-top:-2px}
.fav-row-sent:empty{display:none}
.fav-sent-hook{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.fav-sent-hook em{font-style:normal;font-size:9.5px;color:#12331f;
  background:#cfe9d8;border-radius:999px;padding:1px 7px;flex-shrink:0}
.fav-sent-hook b{font-size:12px;color:#8a5a12;line-height:1.5}
.fav-sent-en{display:flex;align-items:flex-start;gap:8px;margin-top:5px}
.fav-sent-en>span{flex:1;min-width:0;font-size:13px;line-height:1.75;color:var(--ink)}
.fav-row-sent small,
.plan-word-sent small{display:block;font-size:11.5px;color:var(--muted);
  line-height:1.7;margin-top:3px}
.fav-sent-play{flex-shrink:0}
/* 还没生成过的词：给一个按钮，不自动去调模型 ——
   一屏几十个词现生成就是几十次调用，又慢又贵。 */
.fav-sent-ask{width:100%;color:var(--muted)}
.fav-sent-swap{margin-left:auto;flex-shrink:0}

/* 学习卡上的例句。英文一直摆着、中文跟着释义一起盖住 ——
   先看它在句子里怎么用、自己回忆，再翻开对答案。 */
.plan-word-sent{margin-top:8px;border-left:2px solid #cfe9d8;padding-left:9px}
.plan-word-sent:empty{display:none}

/* 音标本身就是播放键 —— 不用再去找旁边那个小三角。 */
.fav-word-ipa{border:1px solid var(--line);background:#fff;border-radius:8px;
  padding:2px 9px;font-size:12.5px;color:#2f6b47;cursor:pointer;font-family:inherit;
  line-height:1.6;flex-shrink:0}
.fav-word-ipa:hover{border-color:#9cc4ab;background:#f4f9f6}

/* 重要等级。来自本地词典（考纲标签 + 牛津三千 + 柯林斯星级 + 词频），
   不是 AI 评的。颜色从"必背"到"进阶"逐级变淡，扫一眼就知道先啃哪些。 */
.fav-grade{flex-shrink:0;min-width:22px;height:22px;border-radius:7px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;color:#fff;background:#2f6b47}
.fav-grade.g-A{background:#a8342c}
.fav-grade.g-B{background:#c8752a}
.fav-grade.g-C{background:#2f6b47}
.fav-grade.g-D{background:#7f8b83}
.fav-grade.g-none{background:#fff;color:var(--muted);border:1px dashed var(--line)}

/* 徽章和「添加到分类」挪到第二行：第一行只留等级、词、音标，
   一行里塞五样东西会挤成一团，手机上尤其。 */
.fav-word-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px}
.fav-word-move{margin-left:auto}

/* 等级筛选条上的计数。不标的话点进去才知道是空的。 */
.fav-grades .fav-filter b{margin-left:5px;font-size:10px;opacity:.7}
.fav-filter-label{font-size:11px;color:var(--muted);flex-shrink:0}

/* ---------- 阅读计划 ---------- */
/* 入口摆在筛选条下面：先筛出想过的那一批、再把这批冻成计划，
   是一个连续动作，中间隔一层菜单就没人想得起来用。 */
.plan-entry{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}

.plan-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.plan-head strong{font-size:14px;display:block}
.plan-head small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:3px}
/* 标题右边那一排按钮。窄屏上两个按钮并排会把标题挤没，
   所以让它自己换行，而不是压着标题。 */
.plan-head-acts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;flex-shrink:0}

.plan-list{display:grid;gap:10px}
.plan-card{border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#fff}
.plan-card.done{background:#f4f9f6;border-color:#9cc4ab}
.plan-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.plan-card-name{display:flex;align-items:baseline;gap:2px;min-width:0}
.plan-card-head strong{font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 标签不参与压缩：名字长了截名字，别把标签截没 */
.plan-card-name .plan-round{flex-shrink:0}
/* 「第 2 遍」。只有真的过过一轮才出现 —— 第一遍是默认情况，
   标了满屏都是「第 1 遍」，反而把真正的信息淹了。
   颜色用暖色：它说的是"这批词你见过了"，是好消息，不是警告。 */
.plan-round{font-style:normal;font-size:10.5px;font-weight:700;
  color:#8a5a12;background:#fdf1dc;border:1px solid #ecd6ac;
  border-radius:999px;padding:1px 7px;margin-left:6px;vertical-align:2px}
.plan-percent{font-size:15px;font-weight:700;color:#2f6b47;flex-shrink:0}
.plan-source{display:block;font-size:10.5px;color:var(--muted);margin-top:3px}

.plan-bar{height:8px;border-radius:999px;background:#eef1ee;overflow:hidden;margin:9px 0}
.plan-bar i{display:block;height:100%;background:#2f6b47;border-radius:999px;transition:width .2s}

/* 三个数字都给：只给百分比的话，"还剩 37 个"这种
   真正决定今天学不学的信息还得自己算。 */
.plan-nums{display:flex;flex-wrap:wrap;gap:12px;font-size:11.5px;color:var(--muted)}
.plan-nums b{color:var(--ink);font-size:13px}
.plan-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.plan-finished{font-size:11.5px;color:#2f6b47}

/* 计划的分组，50 个词一组。
   ★ 直接摊在计划卡片上，不是另一个页面 ——
   上一版做成了「开始学」后面的一层，老板试完说"我现在没有看到怎么操作"。
   要的是"自动的"：打开我的计划，分组就在那儿。 */
.group-list{display:grid;gap:8px;margin-top:10px;padding-top:10px;
  border-top:1px dashed var(--line)}
.group-list-head{font-size:11px;color:var(--muted)}

.group-row{border:1px solid var(--line);border-radius:11px;padding:9px 10px;background:#fbfdfb}
.group-row.done{background:#f4f9f6;border-color:#9cc4ab}
.group-row-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.group-row-head strong{font-size:13.5px;flex-shrink:0}
/* 圈的是原始序号的哪一段 + 实际有几个。
   中间删过词的话两个数对不上，那正是"不填充"该有的样子 ——
   不写出来的话，看到"第 51–100 个 · 47 个"会以为出错了。 */
.group-range{font-size:10.5px;color:var(--muted);min-width:0}
.group-pct{margin-left:auto;font-size:12.5px;font-weight:700;color:#2f6b47;flex-shrink:0}
.group-nums{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted);margin-top:1px}
.group-nums b{color:var(--ink);font-size:12.5px}
.group-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
/* 「1-10 组」「11-20 组」这排选择条。
   一个 1200 词的计划有 24 组，全摊在一张卡上要滑很久。
   数字角标是这一段里【还没学完】几组 —— 一眼看出该点哪段。 */
.group-pages{display:flex;flex-wrap:wrap;gap:6px}
.group-pages .fav-filter b{margin-left:5px;color:#b3552f;font-size:10.5px}
.group-pages .fav-filter.active b{color:#fff}
/* 分组里的进度条比计划自己那条细一档，层级才看得出来 */
.group-row .plan-bar{height:6px;margin:7px 0 5px}

.plan-words{display:grid;gap:9px;margin-top:10px}
.plan-word{border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff}
.plan-word.on{border-color:#2f6b47;background:#f0f7f3}
.plan-word-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.plan-word-head b{font-size:18px}

/* 中文先盖住。摊开摆着的话眼睛会自动瞟过去，
   变成"读中文猜英文" —— 那不是复习，是抄答案。 */
.plan-word-cn{display:block;width:100%;text-align:left;margin-top:8px;
  border:1px dashed var(--line);background:#fbfdfb;border-radius:9px;
  padding:8px 10px;font-size:13px;color:var(--muted);line-height:1.7;
  cursor:pointer;font-family:inherit}
.plan-word-cn.open{border-style:solid;color:var(--ink);background:#fff}
.plan-word-mark{width:100%;margin-top:8px;border:1px solid var(--line);
  background:#fff;border-radius:9px;padding:8px;font-size:12.5px;
  color:#2f6b47;cursor:pointer;font-family:inherit}
.plan-word.on .plan-word-mark{background:#2f6b47;border-color:#2f6b47;color:#fff}

.plan-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.plan-foot span{font-size:12px;color:var(--muted)}

/* ---------- 同时展开：几个词并排摆着 ---------- */
/* 壳照抄收藏库那个弹窗 —— 那一套已经跑通了，不发明新写法。
   它是【到哪儿都能开的一个弹窗】，不是某一屏里的一个视图：
   在句子、文章里点了两个词想对着看，不该还得先绕进收藏库。 */
.wordstack-dialog{
  border:0;padding:0;background:transparent;
  width:min(680px,100vw);max-width:100vw;
  max-height:100dvh;
}
.wordstack-dialog::backdrop{background:rgba(24,32,26,.45)}
.wordstack-dialog-body{
  background:var(--surface);border-radius:22px;
  padding:20px;max-height:88dvh;overflow:auto;
}
.wordstack-dialog-body .dialog-head{align-items:flex-start}
.wordstack-hint{color:var(--muted);font-size:12px;line-height:1.6;margin:5px 0 0}
#word-stack-host{margin-top:12px}

/* 点词的卡片（.word-peek）是浮在最上面的一张，天生只能有一张 ——
   点第二个词必然把第一个顶掉。这一页是它的补集：
   卡片管"随手看一眼"，这一页管"摆在一起对着看"。
   所以这里不用浮层那一套（fixed、箭头、居中），就是老老实实一列卡片。 */
.wstack-bar{display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin-bottom:10px}
.wstack-bar span{font-size:11.5px;color:var(--muted)}

.wstack-list{display:grid;gap:10px}
.wstack-card{border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff}
.wstack-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.wstack-head>b{font-size:19px;line-height:1.3}
/* 变形词标个红点，和卡片上那颗一个意思："这个还有原形，去看那个" */
.wstack-head>b.is-inflected::after{content:'';display:inline-block;width:6px;height:6px;
  border-radius:50%;background:#c0392b;margin-left:5px;vertical-align:super}
.wstack-pills{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.wstack-drop{margin-left:auto;flex-shrink:0}

.wstack-meaning{margin-top:8px;font-size:13px;line-height:1.75}
.wstack-sent{margin-top:9px}
.wstack-more{width:100%}

/* 释义和记忆句这两块的内部结构，和卡片里用的是同一份 HTML
  （word-peek.js 的 meaningHtml / sentencesHtml）—— 共用是有意的：
   抄一份过去的话，以后改了那边这边还是老样子。
   代价是那边的配色是照【深色浮层】写的（白字、半透明白边），
   直接搬到白底上就是一片白底白字，看着像根本没渲染。
   所以这里逐条把颜色改回浅底，结构一个字都不动。 */
.wstack-card .word-peek-pill{border-color:var(--line);color:var(--ink);background:#fbfdfb}
/* 考纲那一排标签（中考·高考·四级…）原本是白字白边 ——
   在深色卡片上刚好，搬到白底上就是【一整行看不见的字】
   （老板："上面的白色字体更改一下，这样看不清"）。
   重点程度那颗标里，3/4/5 级自带底色，得原样留住；
   0-2 级没有底色，会跟着一起白掉，所以下面三条要再写一遍。 */
.wstack-card .word-peek-tag,
.wstack-card .word-peek-level{border-color:var(--line);color:var(--muted);background:#fbfdfb}
.wstack-card .word-peek-level.level-5{background:#c8452f;border-color:#c8452f;color:#fff}
.wstack-card .word-peek-level.level-4{background:#c9762b;border-color:#c9762b;color:#fff}
.wstack-card .word-peek-level.level-3{background:#2f7a52;border-color:#2f7a52;color:#fff}
.wstack-card .word-peek-base{background:#f4f9f6;border-color:#cde0d4;color:var(--ink)}
.wstack-card .word-peek-base b{color:var(--ink)}
.wstack-card .word-peek-base i{color:#2f6b47}
.wstack-card .word-peek-base span{color:var(--muted)}
.wstack-card .word-peek-base-go{background:#2f6b47;border-color:#2f6b47;color:#fff}
.wstack-card .word-peek-pos{color:var(--muted)}
.wstack-card .word-peek-sent{border-top-color:rgba(0,0,0,.08)}
.wstack-card .word-peek-sent-en>span{color:var(--ink)}
.wstack-card .word-peek-sent-hook b{color:#8a5a12}
.wstack-card .word-peek-sent-head{color:var(--muted)}
.wstack-card .word-peek-sent small,
.wstack-card .word-peek-sent-fail,
.wstack-card .word-peek-loading,
.wstack-card .word-peek-uncached{color:var(--muted)}

/* ---------- 同类型词汇：置顶的词表汇总 ---------- */
/* 提到最上面是有意的：这一整片词的清单摆在开头，
   才知道自己将要记的是哪一堆；压在两屏影像化描述后面根本翻不到。 */
.cluster-summary{border:1px solid #cde0d4;background:#f4f9f6;border-radius:12px;
  padding:10px 12px;margin-bottom:12px}
.cluster-summary h5{margin:0 0 8px;display:flex;align-items:baseline;gap:8px}
.cluster-summary h5 em{font-style:normal;font-size:11px;color:#fff;
  background:#2f6b47;border-radius:999px;padding:2px 8px}

/* ---------- 近义辨析：置顶汇总 ---------- */
/* 几个、哪几个，一眼看完；要细看再往下翻大卡。
   原来一上来就是四五张详情卡，想知道"到底有几个"得一张张数。 */
.syn-summary{display:grid;gap:10px;margin-bottom:12px}
.syn-summary-group{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fbfdfb}
.syn-summary-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:8px}
.syn-summary-head strong{font-size:13.5px}
.syn-summary-head em{font-style:normal;font-size:11px;color:#fff;
  background:#2f6b47;border-radius:999px;padding:2px 8px}
.syn-summary-head small{font-size:10.5px;color:var(--muted)}
.syn-summary-chips{display:flex;flex-wrap:wrap;gap:7px}
.syn-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);
  border-radius:10px;padding:5px 9px;background:#fff}
.syn-chip b{font-size:14px}
.syn-chip>span{font-size:11px;color:var(--muted)}

/* ---------- 文章推荐：逐段的短句讲解 ---------- */
/* 讲解跟着段落走，不堆在文章末尾 —— 读到哪一段、卡在哪一句，
   讲解就在眼前。堆在最后要来回滚动对照，多数人不会看第二眼。
   左边一条竖线把它和正文分开：一眼看得出"这是讲解，不是原文"。 */
.article-notes{margin-top:9px;padding-left:10px;border-left:3px solid #cde0d4}
.article-notes h6{margin:0 0 6px;font-size:10.5px;color:var(--muted);
  font-weight:600;letter-spacing:.04em}
.article-note{margin-bottom:9px}
.article-note:last-child{margin-bottom:0}
.article-note-en{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.article-note-en b{font-size:13px;line-height:1.7;font-weight:600;color:#2f6b47}
.article-note-cn{display:block;font-size:12px;color:var(--ink);line-height:1.75;margin-top:4px}
.article-note p{font-size:11.5px;color:var(--muted);line-height:1.8;margin:4px 0 0}

/* ---------- 文章翻译：词句总结 + 历史 ---------- */
.reader-vocab{border:1px solid #cde0d4;background:#f4f9f6;border-radius:12px;
  padding:11px 12px;margin:14px 0}
.reader-vocab h5{margin:0 0 4px;display:flex;align-items:baseline;gap:8px}
.reader-vocab h5 em{font-style:normal;font-size:11px;color:#fff;
  background:#2f6b47;border-radius:999px;padding:2px 8px}
.reader-vocab h6{margin:12px 0 6px;font-size:11.5px;color:var(--muted);font-weight:600}
.reader-vocab-note{font-size:11px;color:var(--muted);line-height:1.7;margin:0}
.reader-word-head{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.reader-word-head i{font-style:normal;font-size:11.5px;color:#2f6b47}
.reader-word-form{font-style:normal;font-size:10px;color:var(--muted);
  background:#eef5f0;border-radius:999px;padding:1px 7px}
.reader-phrases{display:grid;gap:8px}
.reader-phrase{border:1px solid var(--line);border-radius:10px;padding:9px 10px;background:#fff}
.reader-phrase-en{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.reader-phrase-en b{font-size:14px;line-height:1.6}
.reader-phrase>span{display:block;font-size:12.5px;color:var(--ink);margin-top:5px;line-height:1.7}
.reader-phrase small{display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.7}

/* ---------- 收藏的推荐文章 ---------- */
/* 和「文章翻译」的历史长得像，但不是同一份数据：
   那边是你自己粘进去的文章，这边是系统按某个词写的。
   列表上把"为哪个词写的"摆出来 —— 找回一篇靠的就是这个。 */
.artsave-list{display:grid;gap:10px;margin-top:10px}
.artsave-card{border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff}
.artsave-head{display:flex;align-items:baseline;gap:8px}
.artsave-head strong{font-size:14.5px;line-height:1.5;min-width:0}
.artsave-level{margin-left:auto;flex-shrink:0;font-size:10.5px;font-weight:700;
  color:#285e3d;background:#eef5f0;border:1px solid #9cc4ab;border-radius:999px;padding:1px 8px}
.artsave-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted);margin-top:6px}
.artsave-meta b{color:var(--ink);font-size:12.5px}
.artsave-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:9px}

/* 「收藏这篇」那颗星，收过之后点亮 */
#article-save.on{color:#8a5a12;border-color:#ecd6ac;background:#fdf1dc}

.reader-history{margin:10px 0}
.reader-hist-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.reader-hist-list{display:grid;gap:8px;margin-bottom:8px}
.reader-hist{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--line);
  border-radius:12px;padding:10px 11px;background:#fff}
.reader-hist-open{flex:1;min-width:0;text-align:left;border:0;background:none;
  padding:0;cursor:pointer;font-family:inherit}
.reader-hist-open strong{display:block;font-size:14px;line-height:1.5}
.reader-hist-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:4px}
.reader-hist-meta em{font-style:normal;font-size:10px;color:#2f6b47;
  border:1px solid #9cc4ab;border-radius:999px;padding:1px 7px}
.reader-hist-meta small{font-size:10.5px;color:var(--muted)}
.reader-hist-open p{font-size:11.5px;color:var(--muted);line-height:1.7;margin:5px 0 0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- 词库分析（取代了原来的「今日自适应安排」）---------- */
.vocab-body{margin-top:4px}
.vocab-body h4{margin:18px 0 4px;font-size:14px;display:flex;align-items:baseline;gap:8px}
.vocab-body h4 em{font-style:normal;font-size:11px;color:#fff;
  background:#2f6b47;border-radius:999px;padding:2px 8px}
.vocab-note{font-size:11.5px;color:var(--muted);line-height:1.8;margin:0 0 8px}

/* 四个总数。一行四格，手机上两行两格 —— 挤成一行会把数字压到看不清。 */
.vocab-totals{display:grid;gap:9px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.vocab-totals>div{border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff}
.vocab-totals span{display:block;font-size:11px;color:var(--muted)}
.vocab-totals strong{display:block;font-size:23px;color:#2f6b47;line-height:1.3;margin-top:2px}

/* 等级分布。外条的【长度】表示这一档有多少词，
   里面深色那截表示其中深挖过多少 —— 一根条读两个数，
   不用左右对照两张图。 */
.vocab-grades{display:grid;gap:9px}
.vocab-grade-row{display:flex;align-items:center;gap:10px}
.vocab-grade-main{flex:1;min-width:0}
.vocab-grade-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;
  font-size:11.5px;color:var(--muted);margin-bottom:4px}
.vocab-grade-head b{font-size:12.5px;color:var(--ink)}
.vocab-grade-track{height:12px;border-radius:999px;background:#e4ece7;overflow:hidden;min-width:14px}
.vocab-grade-track i{display:block;height:100%;background:#2f6b47;border-radius:999px}

/* 九维覆盖。排在最上面的是覆盖最低的那几维（后端排好的）。 */
.vocab-dims{display:grid;gap:8px}
.vocab-dim-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;
  font-size:11.5px;color:var(--muted);margin-bottom:3px}
.vocab-dim-head b{font-size:12.5px;color:var(--ink)}
.vocab-dim-track{height:8px;border-radius:999px;background:#eef1ee;overflow:hidden}
.vocab-dim-track i{display:block;height:100%;background:#2f6b47;border-radius:999px}

/* 接下来先动这几个。整块可点 = 直接去查那个词。

   ★ 一格一行，不做多列。
   上一版是 minmax(170px,1fr) 的多列，结果在手机上：
   等级徽章 + 单词 + 三个标签要挤进 170px，单词被省略成 "br…"、
   标签折成三行 —— 而这一列的全部意义就是让人看清是哪个词。
   宽屏才排两列，窄屏老老实实一行一个。 */
.vocab-next{display:grid;gap:7px}
@media (min-width:720px){
  .vocab-next{grid-template-columns:1fr 1fr}
}
.vocab-next-item{display:flex;align-items:center;gap:9px;border:1px solid var(--line);
  border-radius:11px;padding:10px 12px;background:#fff;cursor:pointer;
  font-family:inherit;text-align:left}
.vocab-next-item:hover{border-color:#9cc4ab;background:#f4f9f6}
/* 单词自己占住剩下的宽度，不被标签挤掉 */
.vocab-next-item>b{font-size:15px;flex:1;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.vocab-next-tags{display:flex;flex-wrap:nowrap;gap:4px;flex-shrink:0}
.vocab-next-tags em{font-style:normal;font-size:9.5px;color:var(--muted);
  border:1px solid var(--line);border-radius:999px;padding:1px 6px;white-space:nowrap}
.vocab-next-tags em.on{color:#285e3d;border-color:#9cc4ab;background:#eef5f0}

/* 报告的两排时间口径 */
.report-range-stack{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.report-grain-tabs button{min-width:38px}

/* ---------- 维度：词形变化 ---------- */
.word-form-grid{display:grid;gap:9px;margin-top:10px}
.word-form-card,.word-derived-card{border:1px solid var(--line);border-radius:12px;
  padding:10px 12px;background:#fff}
.word-form-head{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.word-form-head strong{font-size:15px}
.word-form-head i{font-style:normal;font-size:12px;color:#2f6b47}
.word-form-label{font-style:normal;font-size:10px;color:#fff;background:#2f6b47;
  border-radius:999px;padding:2px 8px;flex-shrink:0}
.word-form-card p,.word-derived-card p{font-size:12px;color:var(--muted);
  line-height:1.7;margin:6px 0 0}
.word-derived-card span{display:block;font-size:12px;color:var(--ink);margin-top:4px}
.word-form-example{margin-top:7px;padding-top:7px;border-top:1px dashed var(--line);
  display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.word-form-example b{font-size:13.5px;line-height:1.7;font-weight:500}
.word-form-example span{width:100%;font-size:12px;color:var(--muted);line-height:1.7}
.word-trap-list{margin:6px 0 0;padding-left:18px;font-size:12.5px;line-height:1.8}

/* 故事卡上自己写的备注。
   给它一块和系统文字明显不同的底色 —— 一屏里"机器写的"和"我写的"
   混在一起看，很快就分不清哪句是自己改过的。 */
.mind-remark{margin-top:8px;border-left:3px solid #c9a227;background:#fffaf0;
  border-radius:0 8px 8px 0;padding:6px 9px}
.mind-remark em{display:block;font-style:normal;font-size:10px;color:#8a6d1f;margin-bottom:2px}
.mind-remark span{font-size:12px;line-height:1.7;color:var(--ink);white-space:pre-wrap}
.mind-remark-add{margin-top:8px;border:1px dashed var(--line);background:none;
  border-radius:8px;padding:4px 9px;font-size:10.5px;color:var(--muted);
  cursor:pointer;font-family:inherit}
.mind-remark-add:hover{border-color:#c9a227;color:#8a6d1f}
.mind-remark-inline{display:block;font-size:11px;color:#8a6d1f;line-height:1.7;
  border-left:2px solid #e0be55;padding-left:7px;margin-top:3px}

/* ---------- 音标拼写：字母怎么读 ---------- */
.letter-sound-note{margin:2px 0 8px}
.letter-sound-grid{display:grid;gap:10px}
.letter-sound-card{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff}
.letter-sound-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.letter-sound-head strong{font-size:20px;line-height:1;color:#2f6b47}
.letter-sound-head span{font-size:11.5px;color:var(--muted)}
.letter-sound-here{font-style:normal;font-size:11px;color:#12331f;background:#cfe9d9;
  border-radius:999px;padding:2px 9px}
.letter-sound-card>p{font-size:12px;color:var(--muted);line-height:1.75;margin:6px 0 0}
.letter-sound-list{margin-top:8px;display:grid;gap:5px}
.letter-sound-row{display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  border:1px solid transparent;border-radius:9px;padding:5px 7px;font-size:11.5px}
/* 本词用的那一条。整行换底色而不是只给音标上色 ——
   一屏五六条读法，只有颜色差别扫一眼分辨不出来。 */
.letter-sound-row.here{background:#f0f7f3;border-color:#9cc4ab}
.letter-sound-ipa{border:1px solid var(--line);background:#fff;border-radius:8px;
  padding:2px 9px;font-size:12.5px;color:#2f6b47;cursor:pointer;font-family:inherit;flex-shrink:0}
.letter-sound-ipa:hover{border-color:#9cc4ab;background:#f4f9f6}
.letter-sound-row em{font-style:normal;font-size:11px;color:var(--muted)}
.letter-sound-eg{font-size:11.5px;color:var(--ink)}
.letter-sound-eg b{font-weight:600}
.letter-sound-eg i{font-style:normal;font-size:10.5px;color:var(--muted);margin-left:4px}
.letter-sound-row small{font-size:10px;color:var(--muted)}
.letter-sound-flag{font-size:10px;color:#2f6b47;font-weight:700;margin-left:auto}

/* 文章每段的段号和播放键 */
.article-para-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.article-para-head .article-para-no{position:static;display:inline-flex;align-items:center;
  justify-content:center;min-width:20px;height:20px;border-radius:999px;
  background:#eef5f0;color:#2f6b47;font-size:10.5px;flex-shrink:0}

/* ---------- 维度：近义辨析 ---------- */
.word-syn-kind{font-style:normal;font-size:10px;color:#fff;background:#2f6b47;
  border-radius:999px;padding:2px 8px;margin-left:6px}
.word-syn-kind.warn{background:#a8514d}
.word-syn-acts{display:flex;align-items:center;gap:6px;flex-shrink:0}
.word-syn-acts i{font-style:normal;font-size:11.5px;color:#2f6b47}
.word-syn-same{font-size:12px;color:var(--muted);margin:6px 0 2px}
.mind-side .mind-picker-note{padding:12px}

/* 收起时缩成右侧一个竖条。整块常驻会挡住图，
   完全藏起来又没人知道有这么个东西。 */
.mind-side-tab{position:absolute;right:0;top:84px;z-index:5;
  border:1px solid var(--line);border-right:0;border-radius:10px 0 0 10px;
  background:rgba(255,255,255,.95);padding:9px 7px;font-size:11px;font-family:inherit;
  color:#2f6b47;cursor:pointer;line-height:1.3;writing-mode:vertical-rl;
  box-shadow:-3px 0 10px rgba(30,50,38,.1)}
.mind-side-tab em{font-style:normal;color:var(--muted);margin-top:4px}

/* 这段时间怎么学的 */
.report-habits{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));margin-top:8px}
.report-habit{border:1px solid var(--line);border-radius:12px;padding:10px;text-align:center;background:#fff}
.report-habit strong{display:block;font-size:19px;color:#2f6b47}
.report-habit span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
