.ev-root{
  --color-text-primary:#1e5a8a;
  --color-text-secondary:#5f5e5a;
  --color-text-info:#185fa5;
  --color-background-primary:#fff;
  --color-background-secondary:#eef2f7;
  --color-background-tertiary:#f5f7fa;
  --color-border-tertiary:#d3d7df;
  --color-border-secondary:#888780;
  --color-border-info:#b5d4f4;
  font-family:system-ui,sans-serif;
  background:var(--color-background-tertiary);
  color:#1a1a18;
}
.ev-root *{box-sizing:border-box}
.ev-root .app{max-width:720px;margin:0 auto;padding:1rem 1rem 5rem}
.ev-root .top-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;min-height:36px}
.ev-root .app-name{font-size:15px;font-weight:500;color:var(--color-text-secondary)}
.ev-root .level-widget{display:none;flex-direction:column;align-items:flex-end;gap:2px}
.ev-root .level-row{display:flex;align-items:center;gap:6px}
.ev-root .level-chip{font-size:12px;font-weight:500;padding:2px 10px;border-radius:20px;background:var(--color-text-primary);color:#fff}
.ev-root .next-chip{font-size:12px;color:var(--color-text-secondary)}
.ev-root .prog-bar-wrap{width:140px;height:5px;background:var(--color-background-secondary);border-radius:3px;overflow:hidden}
.ev-root .prog-bar-fill{height:100%;background:var(--color-text-primary);border-radius:3px;transition:width .5s}
.ev-root .prog-pct{font-size:10px;color:var(--color-text-secondary);text-align:right}
.ev-root nav{display:flex;gap:4px;margin-bottom:1.5rem;border-bottom:0.5px solid var(--color-border-tertiary);padding-bottom:1rem}
.ev-root .nav-btn{background:none;border:none;padding:7px 18px;border-radius:8px;cursor:pointer;font-size:14px;color:var(--color-text-secondary);transition:all .15s;font-family:inherit}
.ev-root .nav-btn.active{background:var(--color-text-primary);color:#fff}
.ev-root .nav-btn:hover:not(.active){background:var(--color-background-secondary)}
.ev-root .section{display:none}
.ev-root .section.active{display:block}
.ev-root h1{font-size:22px;font-weight:500;margin-bottom:4px}
.ev-root .subtitle{color:var(--color-text-secondary);font-size:14px;margin-bottom:1.5rem}
.ev-root .card{background:var(--color-background-primary);border:0.5px solid var(--color-border-tertiary);border-radius:12px;padding:1.25rem;margin-bottom:1rem}
.ev-root .card-btn{cursor:pointer;transition:border-color .15s}
.ev-root .card-btn:hover{border-color:var(--color-border-secondary)}
.ev-root .btn{display:inline-block;padding:10px 20px;border-radius:8px;border:0.5px solid var(--color-border-tertiary);background:var(--color-background-primary);cursor:pointer;font-size:14px;color:#1a1a18;transition:all .15s;font-family:inherit}
.ev-root .btn:hover{background:var(--color-background-secondary)}
.ev-root .btn-primary{background:var(--color-text-primary);color:#fff;border-color:var(--color-text-primary)}
.ev-root .btn-primary:hover{opacity:.85}
.ev-root .btn-sm{padding:6px 14px;font-size:13px}
.ev-root .btn-icon{padding:8px;border-radius:50%;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;font-size:16px}
.ev-root .btn-icon.recording{background:#faece7;border-color:#f09579}
.ev-root .tag{display:inline-block;font-size:11px;padding:3px 10px;border-radius:20px;margin-bottom:8px}
.ev-root .tag-green{background:#e1f5ee;color:#0f6e56}
.ev-root .tag-amber{background:#faeeda;color:#854f0b}
.ev-root .tag-coral{background:#faece7;color:#993c1d}
.ev-root .tag-purple{background:#eeedfe;color:#534ab7}
.ev-root .tag-blue{background:#e6f1fb;color:#185fa5}
.ev-root .road{display:flex;flex-direction:column;gap:0}
.ev-root .milestone-block{position:relative;margin-bottom:1.5rem}
.ev-root .milestone-connector{width:2px;height:24px;background:var(--color-border-tertiary);margin-left:19px}
.ev-root .milestone-connector.done{background:#1d9e75}
.ev-root .milestone-header-row{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--color-background-primary);border:0.5px solid var(--color-border-tertiary);border-radius:12px;cursor:default}
.ev-root .milestone-header-row.active{border:2px solid var(--color-text-primary)}
.ev-root .milestone-header-row.done-m{border-color:#9fe1cb;background:#f4fbf8}
.ev-root .milestone-header-row.locked-m{opacity:.5}
.ev-root .milestone-circle{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:500;flex-shrink:0;background:var(--color-background-secondary);color:var(--color-text-secondary)}
.ev-root .milestone-circle.active{background:var(--color-text-primary);color:#fff}
.ev-root .milestone-circle.done-c{background:#1d9e75;color:#fff}
.ev-root .milestone-info{flex:1}
.ev-root .milestone-title{font-size:15px;font-weight:500}
.ev-root .milestone-sub{font-size:13px;color:var(--color-text-secondary);margin-top:2px}
.ev-root .milestone-badge{font-size:11px;padding:3px 10px;border-radius:20px;white-space:nowrap}
.ev-root .mb-done{background:#e1f5ee;color:#0f6e56}
.ev-root .mb-active{background:var(--color-text-primary);color:#fff}
.ev-root .mb-locked{background:var(--color-background-secondary);color:var(--color-text-secondary)}
.ev-root .stages-panel{margin-top:8px;margin-left:20px;border-left:2px solid var(--color-border-tertiary);padding-left:16px;display:flex;flex-direction:column;gap:6px}
.ev-root .stage-row{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--color-background-primary);border:0.5px solid var(--color-border-tertiary);border-radius:10px;cursor:pointer;transition:border-color .15s}
.ev-root .stage-row:hover:not(.s-locked){border-color:var(--color-border-secondary)}
.ev-root .stage-row.s-locked{opacity:.4;cursor:default}
.ev-root .stage-row.s-done{border-color:#9fe1cb}
.ev-root .stage-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0;background:var(--color-background-secondary)}
.ev-root .stage-icon.s-done{background:#e1f5ee;color:#0f6e56}
.ev-root .stage-icon.s-active{background:var(--color-text-primary);color:#fff}
.ev-root .stage-name{font-size:14px;font-weight:500;flex:1}
.ev-root .stage-desc{font-size:12px;color:var(--color-text-secondary);margin-top:1px}
.ev-root .stage-chip{font-size:11px;padding:2px 8px;border-radius:20px}
.ev-root .sc-done{background:#e1f5ee;color:#0f6e56}
.ev-root .sc-active{background:var(--color-text-primary);color:#fff}
.ev-root .sc-locked{background:var(--color-background-secondary);color:var(--color-text-secondary)}
.ev-root .story-text{font-size:16px;line-height:1.9;margin-bottom:1.5rem}
.ev-root .word-tip{position:relative;display:inline}
.ev-root .tapped{background:#faeeda;border-radius:3px;padding:0 2px;cursor:pointer;border-bottom:1px dashed #854f0b}
.ev-root .tooltip{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:var(--color-text-primary);color:#fff;font-size:12px;padding:6px 10px;border-radius:6px;white-space:nowrap;z-index:10;pointer-events:none;min-width:100px;text-align:center}
.ev-root .tooltip.show{display:block}
.ev-root .chat-wrap{background:var(--color-background-primary);border:0.5px solid var(--color-border-tertiary);border-radius:12px;overflow:hidden;margin-bottom:1rem}
.ev-root .chat-header{padding:.875rem 1.25rem;border-bottom:0.5px solid var(--color-border-tertiary)}
.ev-root .chat-header p{font-size:13px;color:var(--color-text-secondary);margin-top:2px}
.ev-root .messages{padding:1rem 1.25rem;min-height:200px;max-height:340px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}
.ev-root .msg{max-width:82%;padding:10px 14px;border-radius:10px;font-size:15px;line-height:1.5}
.ev-root .msg.ai{background:var(--color-background-secondary);border-radius:10px 10px 10px 2px;align-self:flex-start}
.ev-root .msg.user{background:var(--color-text-primary);color:#fff;border-radius:10px 10px 2px 10px;align-self:flex-end}
.ev-root .msg.loading{color:var(--color-text-secondary);font-style:italic}
.ev-root .speak-btn{font-size:12px;cursor:pointer;margin-left:8px;opacity:.6;background:none;border:none;color:inherit;padding:0}
.ev-root .speak-btn:hover{opacity:1}
.ev-root .chat-input-row{padding:10px 1.25rem;border-top:0.5px solid var(--color-border-tertiary);display:flex;gap:8px;align-items:flex-end}
.ev-root .chat-input-row textarea{flex:1;border:0.5px solid var(--color-border-tertiary);border-radius:8px;padding:10px 12px;font-size:15px;resize:none;font-family:inherit;background:var(--color-background-primary);color:#1a1a18}
.ev-root .chat-input-row textarea:focus{outline:none;border-color:var(--color-border-secondary)}
.ev-root .voice-status{font-size:12px;color:var(--color-text-secondary);text-align:center;min-height:16px;margin-bottom:2px}
.ev-root .grade-section{margin-bottom:12px}
.ev-root .grade-section h3{font-size:11px;font-weight:500;color:var(--color-text-secondary);margin-bottom:3px;text-transform:uppercase;letter-spacing:.06em}
.ev-root .grade-section p{font-size:14px;line-height:1.6}
.ev-root .exp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:1.5rem}
.ev-root .exp-tile{background:var(--color-background-primary);border:0.5px solid var(--color-border-tertiary);border-radius:12px;padding:1.25rem;cursor:pointer;transition:border-color .15s}
.ev-root .exp-tile:hover{border-color:var(--color-border-secondary)}
.ev-root .exp-tile-icon{font-size:24px;margin-bottom:8px}
.ev-root .exp-tile-name{font-size:15px;font-weight:500;margin-bottom:3px}
.ev-root .exp-tile-desc{font-size:13px;color:var(--color-text-secondary)}
.ev-root .topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:1.5rem}
.ev-root .topic-btn{background:var(--color-background-primary);border:0.5px solid var(--color-border-tertiary);border-radius:10px;padding:12px;cursor:pointer;text-align:left;transition:border-color .15s;font-family:inherit}
.ev-root .topic-btn:hover{border-color:var(--color-border-secondary)}
.ev-root .explore-messages{padding:1rem 1.25rem;min-height:160px;max-height:380px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}
.ev-root .explore-msg{font-size:15px;line-height:1.7;padding:10px 14px;border-radius:10px;max-width:90%}
.ev-root .explore-msg.tutor{background:var(--color-background-secondary);border-radius:10px 10px 10px 2px;align-self:flex-start}
.ev-root .explore-msg.me{background:var(--color-text-primary);color:#fff;border-radius:10px 10px 2px 10px;align-self:flex-end}
.ev-root .explore-input-row{padding:10px 1.25rem;border-top:0.5px solid var(--color-border-tertiary);display:flex;gap:8px}
.ev-root .explore-input-row input{flex:1;border:0.5px solid var(--color-border-tertiary);border-radius:8px;padding:10px 12px;font-size:15px;font-family:inherit;background:var(--color-background-primary);color:#1a1a18}
.ev-root .explore-input-row input:focus{outline:none;border-color:var(--color-border-secondary)}
.ev-root .exam-hero{text-align:center;padding:2rem 1rem}
.ev-root .no-exam-banner{background:var(--color-background-secondary);border-radius:12px;padding:2rem;text-align:center;margin-bottom:1rem}
.ev-version-tag{font-size:11px;color:var(--color-text-secondary);text-align:center;padding:.5rem;opacity:.6}
