:root { --ink:#153126; --deep:#143e2d; --green:#24845d; --mint:#e2f2e7; --paper:#f6f7f3; --muted:#758278; --line:#dce5dd; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC",sans-serif; color:var(--ink); background:var(--paper); }
*{box-sizing:border-box} body{margin:0;background:var(--paper)} button,textarea{font:inherit}.app-shell{width:min(100%,480px);margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 18px 105px}.top{display:flex;align-items:center;justify-content:space-between}.brand{font-weight:750;font-size:15px;letter-spacing:.04em}.brand span{color:#de7655;font-size:20px;vertical-align:-1px}.install{border:1px solid #b6cfbf;border-radius:18px;background:white;color:var(--deep);font-size:12px;font-weight:700;padding:7px 10px}.welcome{padding:34px 4px 24px}.welcome p{margin:0 0 8px;color:var(--green);font-size:13px;font-weight:700}.welcome h1{font-size:32px;letter-spacing:-.055em;line-height:1.24;margin:0;font-weight:800}.streak-card{display:flex;align-items:center;gap:7px;margin-top:22px;color:var(--green);font-size:15px}.streak-card strong{font-size:20px}.streak-card small{color:var(--muted);font-size:12px}.streak-card i{height:14px;border-left:1px solid #c7d2c9;margin:0 5px}.streak-card b{color:var(--muted);font-size:12px;font-weight:500}.today-card,.record-card,.transcript-card,.feedback-card{border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 8px 20px rgba(24,47,33,.035)}.today-card{padding:22px;margin-bottom:15px;background:linear-gradient(140deg,#fff 0%,#eff8ef 100%)}.eyebrow,.step{margin:0;color:var(--green);font-size:11px;font-weight:800;letter-spacing:.1em}.skill-row{display:flex;gap:9px;align-items:center;margin:15px 0}.skill-row>span:last-child{font-size:12px;color:var(--muted)}.skill-tag{background:var(--mint);color:var(--deep);border-radius:12px;padding:5px 9px;font-size:12px;font-weight:750}.today-card h2{font-size:20px;line-height:1.5;letter-spacing:-.03em;margin:0}.formula{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:18px;color:#426150;font-size:11px}.formula b{background:#fff;border:1px solid #d2e3d6;padding:6px 8px;border-radius:8px}.formula span{color:#91a697}.record-card{padding:25px 20px 18px;text-align:center}.record-tip{margin:11px 0 8px;font-size:19px;font-weight:750;letter-spacing:-.025em}.wave{height:31px;display:flex;justify-content:center;align-items:center;gap:4px;margin:12px 0 6px}.wave i{display:block;background:#c8d8cb;width:3px;height:5px;border-radius:4px;transition:height .08s,background .08s}.wave.listening i{background:#4ca67a}.wave.listening i:nth-child(2n){height:18px}.wave.listening i:nth-child(3n){height:28px}.mic-button{width:82px;height:82px;border:0;border-radius:50%;background:var(--deep);color:#fff;box-shadow:0 10px 18px rgba(20,62,45,.24);font-size:37px;line-height:1}.mic-button.recording{background:#bc563e;animation:pulse 1.3s infinite}.record-label{font-weight:750;margin:13px 0 5px}.record-status{font-size:12px;line-height:1.55;color:var(--muted);margin:0 auto;max-width:280px}.record-card audio{width:100%;margin-top:16px}.transcript-card,.feedback-card{margin-top:15px;padding:20px}.section-title{display:flex;justify-content:space-between;align-items:flex-start}.section-title h3,.feedback-card h3{font-size:19px;letter-spacing:-.03em;margin:7px 0 15px}.section-title>span{background:#fff1d7;color:#876123;font-size:11px;border-radius:11px;padding:5px 7px}.transcript-card textarea{width:100%;border:1px solid #cddbd0;border-radius:12px;padding:13px;background:#fbfdfb;color:var(--ink);line-height:1.65;resize:none}.feedback-button,.retry-button{width:100%;border:0;border-radius:12px;background:var(--green);color:white;padding:14px;margin-top:12px;font-weight:800}.feedback-card{background:var(--deep);border-color:var(--deep);color:white}.feedback-card .step{color:#a6dab7}.feedback-card h3{margin-top:9px}.feedback-card p:last-of-type{color:#d3e5d9;font-size:14px;line-height:1.7;margin-bottom:0}.retry-button{background:#fff;color:var(--deep)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-top:1px solid var(--line);display:flex;justify-content:center;gap:82px;z-index:5}.bottom-nav button{border:0;background:transparent;color:#849187;padding:0 4px;font-size:12px}.bottom-nav button.active{color:var(--green);font-weight:800;border-top:2px solid var(--green)}.bottom-space{height:20px}@keyframes pulse{50%{box-shadow:0 0 0 11px rgba(188,86,62,.15)}}
/* History panel and mobile safe-area refinements */
.history-card{margin-top:15px;padding:20px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 8px 20px rgba(24,47,33,.035)}
.history-card h3{font-size:19px;letter-spacing:-.03em;margin:7px 0 15px}
.history-card .section-title>span{background:var(--mint);color:var(--green);font-size:11px;border-radius:11px;padding:5px 7px}
.history-list{display:grid;gap:10px}.history-item{border:1px solid #e2ebe3;border-radius:14px;padding:12px 13px;background:#fbfdfb}
.history-item div{display:flex;justify-content:space-between;gap:10px;align-items:center}.history-item strong{font-size:13px}.history-item small{color:var(--muted);font-size:11px}
.history-item p{margin:8px 0 0;color:#587062;font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.empty-history{color:var(--muted);font-size:13px;line-height:1.6;margin:0}
.bottom-nav button{min-height:44px}.bottom-space{height:90px}
.topic-actions{display:flex;gap:8px;margin-top:18px}.topic-actions button{border:1px solid #cfe0d3;border-radius:10px;background:#fff;color:var(--green);padding:8px 11px;font-size:12px;font-weight:750}.topic-actions button:last-child{background:var(--mint)}
.transcript-note{color:var(--muted);font-size:11px;line-height:1.5;margin:8px 2px 0}
.record-countdown{display:inline-block;margin:8px 0 0;padding:5px 10px;border-radius:999px;background:var(--mint);color:var(--green);font-size:12px;font-weight:800}
.topic-picker{margin:15px 0 2px}.picker-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:var(--deep);font-size:12px;font-weight:800}.picker-heading small{color:var(--muted);font-size:11px;font-weight:500}.topic-chips{display:flex;gap:7px;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:none}.topic-chips::-webkit-scrollbar{display:none}.topic-chip{flex:0 0 auto;border:1px solid #d5e3d8;border-radius:999px;background:rgba(255,255,255,.72);color:#537060;padding:7px 10px;font-size:11px;font-weight:700;white-space:nowrap}.topic-chip.selected{border-color:var(--green);background:var(--deep);color:#fff;box-shadow:0 3px 7px rgba(20,62,45,.14)}
.goal-heading{margin-top:12px}
.account-card{margin-top:15px;padding:13px 14px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 14px rgba(24,47,33,.025)}.account-copy{display:grid;gap:3px}.account-copy strong{font-size:13px}.account-copy small{color:var(--muted);font-size:11px;line-height:1.4}.account-actions{display:flex;gap:7px;margin-top:10px}.account-actions input{min-width:0;flex:1;border:1px solid #cddbd0;border-radius:9px;padding:9px 10px;font-size:12px}.account-actions button{border:0;border-radius:9px;background:var(--green);color:#fff;padding:8px 10px;font-size:11px;font-weight:800;white-space:nowrap}.account-actions button:last-child{background:#edf6ef;color:var(--green)}#accountEmail{align-self:center;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px}
.progress-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:2px 0 15px;padding:12px 8px;border-radius:14px;background:#f4faf5;text-align:center}.progress-summary div{display:flex;flex-direction:column;gap:3px;border-right:1px solid #dce9df}.progress-summary div:last-child{border-right:0}.progress-summary strong{font-size:19px;color:var(--green)}.progress-summary small{font-size:10px;color:var(--muted)}
.history-item-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.detail-button{border:1px solid #cfe0d3;border-radius:999px;background:#fff;color:var(--green);padding:5px 8px;font-size:10px;font-weight:750;white-space:nowrap}.history-question{margin:9px 0 0!important;color:#587062;font-size:12px!important;-webkit-line-clamp:2!important}.history-detail{margin-top:11px;padding-top:10px;border-top:1px dashed #dbe7dd}.history-audio-wrap audio{width:100%;height:34px;margin-bottom:8px}.version{padding:9px 10px;margin-top:7px;border-radius:10px;background:#f4faf5}.version b{font-size:11px;color:var(--green)}.version p{margin:5px 0!important;color:var(--ink);font-size:12px!important;line-height:1.6;display:block!important;-webkit-line-clamp:unset!important}.version small{color:var(--muted);font-size:10px;line-height:1.4}
.feedback-metrics{display:block;color:#b9d8c1;font-size:11px;line-height:1.5;margin-top:10px}.save-text-button{width:100%;border:0;background:transparent;color:var(--muted);font-size:11px;padding:10px 0 2px}
.difficulty-tag{font-size:10px;color:#9a6b25;background:#fff1d7;border-radius:8px;padding:4px 6px}
.history-actions{display:flex;gap:8px;margin:0 0 14px}.history-actions button{flex:1;border:1px solid #cfe0d3;border-radius:10px;background:#fff;color:var(--green);padding:8px 6px;font-size:11px;font-weight:700}
@media (max-width:360px){.progress-summary{grid-template-columns:repeat(2,1fr)}.progress-summary div:nth-child(2){border-right:0}.progress-summary strong{font-size:17px}}
.progress-summary{grid-template-columns:repeat(4,1fr)}
