:root{--ink:#223f38;--muted:#79857d;--green:#315e4e;--paper:#f7f8f3;--line:#e3e7de;--accent:#d9e6b6}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:14px}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:transparent;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #9cae69;outline-offset:4px}[hidden]{display:none!important}.sidebar{width:225px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);padding:37px 24px;background:#fafbf7}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-size:22px;font-weight:700}.brand-icon{display:grid;place-items:center;width:43px;height:43px;background:var(--green);border-radius:14px;color:white;font:italic 34px Georgia}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:5px}.nav-label{font-size:10px;color:var(--muted);margin:62px 12px 17px}.nav{width:100%;text-align:left;display:flex;align-items:center;gap:13px;padding:15px;border-radius:9px}.active{background:#e9eedf}.count{margin-left:auto;font-size:10px}.side-bottom{position:absolute;bottom:35px;left:32px}.side-bottom strong{display:block;font-size:12px;margin-top:18px}.side-bottom p{font-size:12px;line-height:1.8;color:var(--muted)}.mini-orb{display:block;width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#e8efd8,#a1b18b)}.local-note{font-size:10px;margin-top:25px;color:var(--muted)}main{margin-left:225px;padding:0 48px;max-width:1700px}header{height:89px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}header button{border:1px solid var(--line);border-radius:20px;padding:8px 13px;font-size:11px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#b6ab68;margin-left:8px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7c8b6d;font-weight:600}#library>.eyebrow{margin-top:40px}h1{font-size:34px;font-weight:550;letter-spacing:-1px;margin:12px 0}p{line-height:1.8}.intro{color:var(--muted);margin:10px 0 25px}.hero{background:#edf0e4;border:1px solid #e0e6d5;border-radius:18px;display:flex;justify-content:space-between;overflow:hidden;padding:30px 40px;min-height:310px}.pill{font-size:9px;letter-spacing:1.1px;color:#6d7d5a}.hero h2{font:38px/1.05 Georgia,serif;margin:20px 0 14px;letter-spacing:-1px}.hero p{font-size:11px;color:#76816b}.primary{background:var(--green);color:#fff;border-radius:8px;padding:13px 20px;font-size:12px}.primary span{margin-left:25px}.coffee-art{position:relative;width:44%;display:grid;place-items:center}.art-circle{width:235px;height:235px;border-radius:50%;background:#e1e8cd;position:absolute}.cup{position:absolute;width:135px;height:143px;top:87px;background:linear-gradient(100deg,#faf9ed,#e8e8d9);border-radius:8px 8px 60px 60px;box-shadow:inset -12px 0 20px #00000008,0 15px 15px #2337210d;text-align:center;padding-top:30px;font:italic 29px Georgia;transform:rotate(-9deg);z-index:2}.cup:after{content:'';position:absolute;width:39px;height:52px;border:12px solid #efefe2;border-left:0;border-radius:0 40px 40px 0;right:-33px;top:18px}.cup span{display:block}.steam{position:absolute;top:32px;color:#a9b892;font-size:44px;letter-spacing:7px}.saucer{position:absolute;top:210px;width:205px;height:35px;background:#d2d9bf;border-radius:50%;transform:rotate(-9deg)}.art-label{position:absolute;bottom:0;font-size:8px;letter-spacing:2px;color:#8b9877}.section-head{display:flex;align-items:center;justify-content:space-between;margin:32px 0 20px;gap:15px}.section-head h2{font-size:20px;margin:0}.section-head p{font-size:11px;color:var(--muted);margin:8px 0 0}.filters{display:flex;gap:4px;border:1px solid var(--line);padding:4px;border-radius:8px}.filters button{font-size:11px;padding:8px 13px;border-radius:5px}.selected{background:var(--green)!important;color:white!important}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.scene-card{text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;transition:.2s}.scene-card:hover{transform:translateY(-3px);border-color:#91a57d;box-shadow:0 8px 18px #203c3010}.card-top{display:flex;justify-content:space-between;align-items:center}.scene-icon{background:#f1f3e9;display:grid;place-items:center;width:41px;height:41px;border-radius:11px;font-size:22px}.category{font-size:9px;color:var(--muted)}.scene-card h3{font-size:16px;margin:18px 0 6px}.scene-card .en{font:14px Georgia;color:#84907d}.scene-card p{font-size:11px;color:var(--muted);min-height:37px;margin:14px 0}.card-bottom{border-top:1px solid #eef0e9;padding-top:13px;display:flex;justify-content:space-between;font-size:10px;color:#849078}footer{font-size:9px;letter-spacing:1px;color:#98a08f;margin:40px 0 25px;display:flex;justify-content:space-between}.text-button{padding:8px 0;font-size:12px;color:#647a59}#back{margin-top:23px}.lesson-title{display:flex;justify-content:space-between;align-items:center;padding:15px 0}.lesson-title p{color:var(--muted)}.large-icon{font-size:55px}.steps{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding-bottom:18px;margin:5px 0 24px}.steps button{padding:10px 18px;border-radius:7px;font-size:12px}.words{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.word{padding:24px;background:white;border:1px solid var(--line);border-radius:12px}.word-head{display:flex;align-items:center;justify-content:space-between}.word h3{font:25px Georgia;margin:0 0 8px}.word small{color:var(--muted)}.word p{font-size:14px;border-top:1px solid var(--line);padding-top:16px;margin-bottom:0}.start-row{display:flex;justify-content:space-between;align-items:center;margin:25px 0;gap:20px}.start-row p{color:var(--muted);font-size:12px}.conversation-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px}.chat-panel{border:1px solid var(--line);background:#fff;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-height:640px}.chat-top{display:flex;gap:12px;align-items:center;padding:18px;border-bottom:1px solid var(--line)}.avatar{width:36px;height:36px;border-radius:50%;background:#dce7c6;display:grid;place-items:center;font:italic 26px Georgia}.chat-top strong{font-size:12px}.chat-top small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.chat-top button{font-size:10px;margin-left:auto}.chat-top button+button{margin-left:0}#messages{height:365px;overflow:auto;padding:25px;scroll-behavior:smooth}.message{margin-bottom:22px;max-width:90%;width:fit-content}.message small{display:block;font-size:9px;color:var(--muted);margin-bottom:7px}.message p{margin:0;background:#f0f3ea;padding:14px 17px;border-radius:0 13px 13px 13px;font-size:17px;line-height:1.65;overflow-wrap:anywhere}.message.user{margin-left:auto}.message.user p{background:#315e4e;color:white;border-radius:13px 0 13px 13px}.message.user small{text-align:right}.composer{padding:16px 20px;border-top:1px solid var(--line);margin-top:auto}#live-caption{min-height:30px;font-size:11px;color:var(--muted);margin-bottom:8px}/* 下面三条只针对对话输入框。原先写成裸的 form / input / form button 选择器，
   没有限定作用域，登录表单也被一并命中：整张登录表单变成一条横向 flex 栏，
   两个输入框被压到 80px 宽，看起来就是「输入框太小」。
   新增表单时请照此写明作用域，不要再写裸选择器。 */
#answer-form{display:flex;background:#f7f8f3;border:1px solid var(--line);padding:6px;border-radius:9px}#answer-form input{width:100%;min-width:0;border:0;background:transparent;padding:8px;outline-color:#9cae69}#answer-form button{background:var(--green);color:white;border-radius:6px;width:36px;font-size:20px}.voice-row{display:flex;justify-content:center;gap:20px;align-items:center;margin:15px 0 0}.mic{background:#e9efd9;border:1px solid #d6e0c2;border-radius:24px;padding:13px 27px;touch-action:none;user-select:none}.mic.listening{background:#315e4e;color:#fff}.coach-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:15px}.coach-card h3{font-size:15px;margin:12px 0}.coach-card p,.coach-card div:not(.eyebrow){font-size:12px;line-height:1.8;overflow-wrap:anywhere}.coach-card small{display:block;font-size:10px;color:var(--muted);margin-top:14px;line-height:1.7}.example{padding:12px;background:#f3f5ed;border-radius:7px}.danger{color:#9d7269}.summary{text-align:center;padding:70px 20px;background:#edf0e4;border-radius:15px}.summary button{margin:20px 12px}dialog{max-width:480px;border:1px solid var(--line);border-radius:17px;padding:35px;color:var(--ink)}dialog::backdrop{background:#19332966;backdrop-filter:blur(4px)}dialog p{font-size:13px;color:#65756a}.close{float:right;font-size:25px}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#223f38;color:white;padding:14px 22px;border-radius:9px;max-width:90%;z-index:10;font-size:12px}@media(min-width:1450px){.cards{grid-template-columns:repeat(5,1fr)}}@media(max-width:1100px){.sidebar{width:180px;padding:30px 16px}main{margin-left:180px;padding:0 28px}.conversation-grid{grid-template-columns:1fr}.coach{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.coach-card{padding:17px}.cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.sidebar{position:static;width:100%;padding:16px 22px;border-bottom:1px solid var(--line);border-right:0}.brand{font-size:19px}.nav-label,.nav,.side-bottom{display:none}main{margin:0;padding:0 20px}header{height:60px}h1{font-size:28px}#library>.eyebrow{margin-top:26px}.hero{padding:25px;min-height:300px}.hero h2{font-size:32px}.coffee-art{width:28%;opacity:.7}.art-circle{width:140px;height:140px}.cup{width:78px;height:93px;font-size:20px;top:95px;padding-top:20px}.cup:after{right:-22px;width:24px;height:40px;border-width:9px}.saucer{width:120px;top:174px}.steam{top:56px;font-size:28px}.art-label{display:none}.hero p{max-width:180px}.section-head{align-items:start;flex-direction:column}.cards{gap:10px}.scene-card{padding:16px}.scene-card h3{font-size:14px}.words,.coach{grid-template-columns:1fr}.start-row{align-items:stretch;flex-direction:column}.lesson-title{gap:15px}.lesson-title h1{font-size:26px}.large-icon{font-size:40px}.chat-top{padding:12px;gap:8px}#messages{padding:17px;height:340px}.chat-panel{min-height:590px}.message p{font-size:16px}.steps{gap:10px}.steps button{padding:10px 12px}}

.speech-help{font-size:12px;line-height:1.8;background:#fff4df;border:1px solid #e7d6b4;border-radius:8px;padding:12px;margin-top:12px;color:#715a33}.voice-row{flex-wrap:wrap}

.quick-feedback{padding:18px 22px;background:#fff8e8;border-top:2px solid #dbb875}.quick-feedback strong{font-size:13px}.quick-feedback p{margin:7px 0;font-size:14px}.quick-feedback .original{color:#827c70}.quick-feedback .corrected{color:#315e4e;font-weight:600}.quick-feedback button{margin-right:15px}.voice-settings{margin-bottom:20px;border:1px solid var(--line);border-radius:10px;padding:14px;background:white}.voice-settings summary{cursor:pointer}.voice-settings>div{display:flex;flex-wrap:wrap;gap:18px;padding-top:15px;align-items:center}.voice-settings label{font-size:12px}.voice-settings input{width:auto}.voice-settings select{max-width:250px;padding:7px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}.voice-settings p{font-size:11px;color:var(--muted);margin:8px 0 0}

.input-language{font-size:12px}.input-language select{font:inherit;padding:8px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink)}

.message-translation{margin-top:8px}.message-translation summary{cursor:pointer;color:var(--green);font-size:12px;padding:5px 0}.message-translation p{margin-top:6px;background:#f8f8f3;font-size:14px;color:#65756a;border-left:2px solid #d6e0c2}

.natural-suggestion{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.natural-suggestion strong{color:var(--green);font-size:12px}

.collect-help{font-size:11px;color:var(--muted);margin:8px 18px}.collect-help button{margin-left:8px}.saved-expression{background:#f2edc9;color:inherit;text-decoration:underline;text-decoration-color:#81975e;text-underline-offset:4px}#selection-save{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;background:white;border:1px solid var(--line);box-shadow:0 8px 28px #0002;border-radius:12px;padding:10px 14px;max-width:92vw;display:flex;align-items:center;gap:16px}#selection-save[hidden]{display:none}#selection-preview{max-width:45vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}#save-selection{white-space:nowrap}#notebook-dialog{width:min(720px,92vw);max-width:720px;max-height:85vh}#notebook-content{margin-top:20px}.notebook-actions{display:flex;gap:16px}.notebook-card{border:1px solid var(--line);padding:20px;border-radius:12px;margin:14px 0;overflow-wrap:anywhere}.notebook-card h3{font-size:21px;margin:0 0 10px}.notebook-card small{color:var(--muted)}.notebook-card details{margin:12px 0}.notebook-card textarea{display:block;width:100%;min-height:65px;padding:10px;border:1px solid var(--line);border-radius:6px;font:inherit;resize:vertical}.notebook-card button{margin:12px 12px 0 0}.review-card{text-align:center;padding:35px 20px}.review-answer{border-top:1px solid var(--line);margin-top:20px;padding-top:10px}@media(max-width:700px){#open-notebook{display:flex;margin-top:10px}#notebook-dialog{padding:20px}}

/* ===== 阶段目标与分层词汇 ===== */
.stage-plan{border:1px solid var(--line);border-radius:12px;background:#fff;padding:20px 22px;margin-bottom:26px}
.stage-plan-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid var(--line)}
.stage-plan-head strong{font-size:14px}
.stage-plan-head span{font-size:11px;color:var(--muted)}
.stage-plan-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;padding-top:16px}
.stage-item{position:relative;padding-left:34px}
.stage-item .stage-no{position:absolute;left:0;top:2px;font:11px/1 Georgia,serif;color:#9aa88f;letter-spacing:1px}
.stage-item strong{display:block;font-size:13px;margin-bottom:5px}
.stage-item p{margin:0;font-size:11px;line-height:1.75;color:var(--muted)}
.stage-item.current .stage-no{color:var(--green)}
.stage-item.current strong{color:var(--green)}
.stage-item.current:before{content:"";position:absolute;left:-11px;top:4px;bottom:2px;width:2px;border-radius:2px;background:var(--accent)}

.word-group-title{display:flex;align-items:baseline;gap:10px;font-size:14px;margin:26px 0 14px}
.word-group-title small{font-size:11px;font-weight:400;color:var(--muted)}
.word.learned{border-color:#c3d3a4;background:#fbfcf6}
.word-badge{display:inline-block;margin-top:12px;font-size:10px;color:#4c6b3f;background:var(--accent);border-radius:20px;padding:3px 10px}

/* ===== 对话中的阶段条 ===== */
.stage-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid var(--line);background:#fafbf7}
.stage-chip{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:5px 12px;background:#fff}
.stage-chip b{font:11px/1 Georgia,serif;color:#9aa88f}
.stage-chip.current{border-color:#b9cc93;background:#eef3e2;color:var(--green)}
.stage-chip.current b{color:var(--green)}
.stage-chip.done{color:#6d7d5a;border-style:dashed}
.stage-count{margin-left:auto;font-size:11px;color:var(--muted)}

/* ===== 进度与画像 ===== */
.progress-line{font-size:12px;margin:0 0 10px}
.word-chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}
.chip{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:3px 9px;background:#fbfcf8}
.chip.hit{background:var(--green);border-color:var(--green);color:#fff}
.error-list{margin:12px 0;padding-top:12px;border-top:1px solid var(--line)}
.error-row{display:flex;justify-content:space-between;font-size:12px;padding:4px 0}
.error-row b{color:#8a6d3b;font-weight:400}
.error-tag{display:inline-block;margin-top:8px;font-size:10px;color:#7a6a44;background:#f6efdd;border-radius:20px;padding:3px 10px}
.memory-label{color:var(--muted);font-size:11px}

/* ===== 设置中的记忆行 ===== */
.learner-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.learner-row code{font:12px/1.4 "SF Mono",Menlo,monospace;background:#f1f3e9;border-radius:5px;padding:4px 8px}
.learner-row input{flex:1;min-width:140px;font:inherit;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}
.learner-row-note{font-size:11px;color:var(--muted);margin:8px 0 0}

/* ===== 结束页复盘 ===== */
.summary-words{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:18px auto 0;max-width:560px}

@media(max-width:700px){
  .stage-plan{padding:16px}
  .stage-plan-list{grid-template-columns:1fr}
  .stage-item.current:before{display:none}
  .stage-bar{padding:10px 12px}
  .stage-chip span{display:none}
}

/* ===== 登录 / 注册 ===== */
body.auth-locked{overflow:hidden}
.auth-gate{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:24px;
  background:linear-gradient(160deg,#f2f4ec 0%,var(--paper) 45%,#eef1e6 100%)}
.auth-card{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);
  border-radius:18px;padding:40px 34px 32px;box-shadow:0 18px 50px #203c3014}
.auth-brand{display:flex;align-items:baseline;gap:10px;margin-bottom:28px}
.auth-mark{display:grid;place-items:center;width:48px;height:48px;background:var(--green);
  border-radius:14px;color:#fff;font-size:20px;font-weight:700;letter-spacing:1px}
.auth-mark-en{font-size:9px;letter-spacing:2px;color:#8b9877}
.auth-card h1{font-size:27px;margin:0 0 9px;font-weight:550;letter-spacing:-.5px}
.auth-sub{font-size:13px;color:var(--muted);margin:0 0 26px;line-height:1.7}
.auth-field{display:block;margin-bottom:18px}
.auth-field span{display:block;font-size:12px;font-weight:500;color:#61706a;margin-bottom:8px}
.auth-field input{width:100%;min-height:54px;padding:16px;border:1px solid var(--line);
  border-radius:12px;background:#fbfcf8;color:var(--ink);font-family:inherit;
  font-size:15px;line-height:1.4;outline-color:#9cae69;
  transition:border-color .15s,background .15s,box-shadow .15s}
.auth-field input::placeholder{font-size:14px;color:#a8b1ab}
.auth-field input:focus{border-color:#a9bd8b;background:#fff;box-shadow:0 0 0 3px #d9e6b680}
.auth-error{font-size:12.5px;line-height:1.7;color:#8c5a4e;background:#fdf2ee;border:1px solid #efd9d0;
  border-radius:8px;padding:11px 13px;margin:0 0 16px}
.auth-submit{width:100%;min-height:54px;padding:16px;font-size:14px;font-weight:500;
  border-radius:12px;letter-spacing:.5px}
.auth-switch{display:block;width:100%;text-align:center;margin-top:18px;padding:8px 0;
  font-size:13px;color:#5d7355}
.auth-switch:hover{text-decoration:underline}
.auth-foot{font-size:11.5px;color:var(--muted);text-align:center;margin:20px 0 0;padding-top:18px;
  border-top:1px solid var(--line);line-height:1.75}

/* ===== 账号区块 ===== */
.account-block{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.account-line{display:flex;align-items:center;gap:10px;font-size:12px;flex-wrap:wrap}
.account-label{color:var(--muted)}
.account-line code{font:12px/1.4 "SF Mono",Menlo,monospace;background:#f1f3e9;border-radius:5px;padding:4px 8px}
.account-line button{margin-left:auto}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}
.stats-row div{background:#fbfcf8;border:1px solid var(--line);border-radius:10px;padding:12px 8px;text-align:center}
.stats-row strong{display:block;font:20px/1.2 Georgia,serif;color:var(--green)}
.stats-row span{display:block;font-size:10px;color:var(--muted);margin-top:5px}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:12px}
.info-grid label{display:block;font-size:11px;color:var(--muted)}
.info-grid input,.info-grid select{width:100%;margin-top:6px;padding:9px 10px;border:1px solid var(--line);
  border-radius:7px;background:#fff;color:var(--ink);font:inherit}
.account-note{font-size:11px;color:var(--muted);margin:10px 0 0}

@media(max-width:700px){
  .auth-gate{padding:16px}
  .auth-card{padding:30px 22px 26px}
  .auth-field input{min-height:56px;font-size:16px}
  .auth-submit{min-height:56px;padding:17px;font-size:15px}
  .stats-row{grid-template-columns:repeat(2,1fr)}
}
