/* ==========================================================================
   LH English Proficiency Evaluator — front-end design system (v2)
   Palette: violet / purple / fuchsia on a soft lavender canvas.
   All selectors are scoped under .lhepe-app with enough specificity to beat
   theme styles when embedded via shortcode; the full-page layout loads no
   theme CSS at all.
   ========================================================================== */

.lhepe-app{
	--v-900:#2e1065;--v-800:#4c1d95;--v-700:#5b21b6;--v-600:#7c3aed;--v-500:#8b5cf6;--v-400:#a78bfa;--v-300:#c4b5fd;--v-200:#ddd6fe;--v-100:#ede9fe;--v-50:#f5f3ff;
	--f-600:#c026d3;--f-500:#d946ef;--pink:#db2777;--amber:#f59e0b;--teal:#0d9488;--green:#16a34a;--red:#dc2626;
	--ink:#1e1b2e;--ink-2:#4b4660;--muted:#7a7590;--line:#e6e2f3;--card:#ffffff;
	--grad:linear-gradient(135deg,#7c3aed 0%,#a21caf 100%);
	--grad-soft:linear-gradient(135deg,#ede9fe 0%,#fae8ff 100%);
	--shadow:0 10px 40px -12px rgba(76,29,149,.25),0 2px 8px rgba(46,16,101,.06);
	--shadow-sm:0 2px 10px rgba(46,16,101,.08);
	--r-lg:22px;--r-md:14px;--r-sm:10px;
	--font:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
	--serif:"Lora",Georgia,"Times New Roman",serif;
	font-family:var(--font);color:var(--ink);line-height:1.55;font-size:16px;
	-webkit-font-smoothing:antialiased;
}
.lhepe-app *,.lhepe-app *::before,.lhepe-app *::after{box-sizing:border-box}
.lhepe-app button,.lhepe-app input,.lhepe-app textarea{font-family:inherit}

/* ---------- page canvas ---------- */
body.lhepe-body{margin:0;min-height:100vh;background:#f4f1fb;
	background-image:radial-gradient(1200px 600px at -10% -10%,#e9d5ff 0%,transparent 60%),radial-gradient(900px 500px at 110% 0%,#fbcfe8 0%,transparent 55%),radial-gradient(700px 500px at 50% 120%,#ddd6fe 0%,transparent 60%);
	background-attachment:fixed}
.lhepe-fullpage{min-height:100vh;display:flex;flex-direction:column}
.lhepe-embedded{max-width:900px;margin:0 auto}
.lhepe-boot{padding:48px 20px;text-align:center;color:var(--muted)}
.lhepe-notice{background:#fff;border:1px solid var(--v-200);border-radius:var(--r-md);padding:18px 22px;display:inline-block}
.lhepe-notice a{color:var(--v-700);font-weight:700}

/* copy / paste lock */
.lhepe-app.lhepe-nocopy{-webkit-user-select:none;user-select:none}
.lhepe-app.lhepe-nocopy input,.lhepe-app.lhepe-nocopy textarea{-webkit-user-select:text;user-select:text}

/* ---------- top bar ---------- */
.lhepe-topbar{position:sticky;top:0;z-index:20;backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);
	background:rgba(255,255,255,.72);border-bottom:1px solid rgba(124,58,237,.12)}
.lhepe-embedded .lhepe-topbar{position:static;border-radius:var(--r-lg);border:1px solid var(--line);margin-bottom:18px;background:#fff}
.lhepe-topbar-in{max-width:1100px;margin:0 auto;padding:12px 24px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.lhepe-brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--v-800);letter-spacing:-.01em;white-space:nowrap}
.lhepe-brand img{height:36px;width:auto;display:block}
.lhepe-brand-mark{width:34px;height:34px;border-radius:10px;background:var(--grad);display:grid;place-items:center;color:#fff;font-weight:900;font-size:15px;box-shadow:0 4px 12px -2px rgba(124,58,237,.5)}
.lhepe-brand small{display:block;font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.06em;text-transform:uppercase;line-height:1.1}
.lhepe-stepper{display:flex;align-items:center;gap:0;flex:1;justify-content:center;min-width:260px}
.lhepe-stepper-item{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-weight:600}
.lhepe-stepper-dot{width:28px;height:28px;border-radius:50%;border:2px solid var(--v-200);display:grid;place-items:center;font-size:12px;font-weight:800;background:#fff;color:var(--muted);transition:all .25s}
.lhepe-stepper-item.is-active .lhepe-stepper-dot{border-color:var(--v-600);background:var(--v-600);color:#fff;box-shadow:0 0 0 5px rgba(124,58,237,.15)}
.lhepe-stepper-item.is-active{color:var(--v-800)}
.lhepe-stepper-item.is-done .lhepe-stepper-dot{border-color:var(--green);background:var(--green);color:#fff}
.lhepe-stepper-item.is-done{color:var(--green)}
.lhepe-stepper-line{width:34px;height:2px;background:var(--v-200);margin:0 8px}
.lhepe-stepper-line.is-done{background:var(--green)}
.lhepe-hud{display:flex;align-items:center;gap:10px;margin-left:auto}
.lhepe-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--v-800);box-shadow:var(--shadow-sm);white-space:nowrap}
.lhepe-pill-xp{position:relative;padding-right:14px;overflow:hidden}
.lhepe-pill-xp .lhepe-rank-ic{font-size:16px}
.lhepe-pill-xp .lhepe-xp-num{font-variant-numeric:tabular-nums}
.lhepe-pill-xp .lhepe-xp-bar{position:absolute;left:0;bottom:0;height:3px;background:var(--grad);transition:width .6s cubic-bezier(.2,.8,.2,1)}
.lhepe-pill-timer{font-variant-numeric:tabular-nums}
.lhepe-pill-timer.is-warn{background:#fff7ed;border-color:#fdba74;color:#c2410c}
.lhepe-pill-timer.is-danger{background:#fef2f2;border-color:#fca5a5;color:#b91c1c;animation:lhepe-pulse 1s infinite}
@keyframes lhepe-pulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.25)}50%{box-shadow:0 0 0 6px rgba(220,38,38,0)}}
.lhepe-xp-float{position:fixed;z-index:60;font-weight:800;color:var(--v-700);background:#fff;border:1px solid var(--v-200);border-radius:999px;padding:4px 10px;font-size:13px;box-shadow:var(--shadow-sm);pointer-events:none;animation:lhepe-float 1.1s ease-out forwards}
@keyframes lhepe-float{0%{opacity:0;transform:translateY(6px) scale(.9)}20%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-34px)}}

/* ---------- main ---------- */
.lhepe-main{flex:1;width:100%;max-width:860px;margin:0 auto;padding:28px 20px 60px}
.lhepe-card{background:var(--card);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:34px 38px 36px;animation:lhepe-in .35s cubic-bezier(.2,.8,.2,1);border:1px solid rgba(124,58,237,.08)}
@keyframes lhepe-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.lhepe-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--v-600);margin-bottom:10px}
.lhepe-eyebrow::before{content:"";width:18px;height:3px;border-radius:2px;background:var(--grad)}
.lhepe-h1{font-size:32px;line-height:1.15;font-weight:800;letter-spacing:-.02em;color:var(--v-900);margin:0 0 12px}
.lhepe-h2{font-size:24px;line-height:1.2;font-weight:800;letter-spacing:-.015em;color:var(--v-900);margin:0 0 10px}
.lhepe-lead{font-size:17px;color:var(--ink-2);margin:0 0 20px;max-width:62ch}
.lhepe-muted{color:var(--muted);font-size:14px;margin:8px 0}
.lhepe-divider{height:1px;background:var(--line);margin:22px 0}

/* intro skill tiles */
.lhepe-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}
.lhepe-tile{position:relative;background:var(--v-50);border:1px solid var(--v-100);border-radius:var(--r-md);padding:16px 14px 14px;overflow:hidden;transition:transform .2s,box-shadow .2s}
.lhepe-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.lhepe-tile-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:20px;margin-bottom:10px;color:#fff}
.lhepe-tile strong{display:block;font-size:15px;color:var(--v-900);margin-bottom:3px}
.lhepe-tile p{margin:0;font-size:13px;color:var(--muted);line-height:1.45}
.lhepe-tile-q{position:absolute;top:12px;right:12px;font-size:11px;font-weight:800;color:var(--v-600);background:#fff;border-radius:999px;padding:2px 8px;border:1px solid var(--v-200)}
.lhepe-c-listening{background:linear-gradient(135deg,#7c3aed,#6d28d9)}
.lhepe-c-reading{background:linear-gradient(135deg,#db2777,#be185d)}
.lhepe-c-writing{background:linear-gradient(135deg,#f59e0b,#d97706)}
.lhepe-c-speaking{background:linear-gradient(135deg,#0d9488,#0f766e)}
.lhepe-rules{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin:12px 0 4px;padding:0;list-style:none}
.lhepe-rules li{font-size:14px;color:var(--ink-2);display:flex;gap:10px;align-items:flex-start}
.lhepe-rules li::before{content:"✓";flex:none;width:20px;height:20px;border-radius:6px;background:var(--v-100);color:var(--v-700);font-size:12px;font-weight:800;display:grid;place-items:center;margin-top:2px}
.lhepe-warn{background:#fff7ed;border:1px solid #fed7aa;border-radius:var(--r-sm);padding:12px 16px;margin:14px 0;font-size:14px;color:#9a3412}
.lhepe-warn p{margin:4px 0}
.lhepe-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca;border-radius:var(--r-sm);padding:12px 16px;margin:12px 0;font-size:14px}

/* forms */
.lhepe-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}
.lhepe-field label{display:block;font-size:12.5px;font-weight:700;color:var(--ink-2);margin-bottom:6px;letter-spacing:.02em}
.lhepe-app input.lhepe-input,.lhepe-app textarea.lhepe-textarea{width:100%;font-size:16px;padding:13px 15px;border:1.5px solid var(--line);border-radius:var(--r-sm);background:#fff;color:var(--ink);margin:0;box-shadow:none;line-height:1.4;transition:border-color .15s,box-shadow .15s;appearance:none;-webkit-appearance:none}
.lhepe-app input.lhepe-input:focus,.lhepe-app textarea.lhepe-textarea:focus{outline:none;border-color:var(--v-500);box-shadow:0 0 0 4px rgba(139,92,246,.15)}
.lhepe-app input.lhepe-input:disabled{background:var(--v-50);color:var(--muted)}
.lhepe-app textarea.lhepe-textarea{resize:vertical;min-height:200px;font-family:var(--serif);font-size:17px;line-height:1.7}
.lhepe-wc{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:8px;font-weight:600}
.lhepe-wc .is-ok{color:var(--green)}

/* buttons */
.lhepe-app .lhepe-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:15px;font-weight:700;padding:13px 22px;border-radius:12px;border:1.5px solid var(--v-200);background:#fff;color:var(--v-800);cursor:pointer;line-height:1.2;text-decoration:none;transition:transform .15s,box-shadow .15s,background .15s,border-color .15s;box-shadow:none;margin:0;text-transform:none;letter-spacing:0;height:auto;min-height:0}
.lhepe-app .lhepe-btn:hover:not(:disabled){transform:translateY(-1px);border-color:var(--v-400);box-shadow:var(--shadow-sm);background:#fff;color:var(--v-800)}
.lhepe-app .lhepe-btn:active:not(:disabled){transform:translateY(0)}
.lhepe-app .lhepe-btn:disabled{opacity:.45;cursor:not-allowed}
.lhepe-app .lhepe-btn-primary{background:var(--grad);color:#fff;border-color:transparent;padding:15px 28px;font-size:16px;box-shadow:0 8px 20px -8px rgba(124,58,237,.7)}
.lhepe-app .lhepe-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#6d28d9,#86198f);color:#fff;box-shadow:0 12px 26px -8px rgba(124,58,237,.75);border-color:transparent}
.lhepe-app .lhepe-btn-ghost{border-color:transparent;background:transparent;color:var(--v-700);padding-left:10px;padding-right:10px}
.lhepe-app .lhepe-btn-ghost:hover:not(:disabled){background:var(--v-50);box-shadow:none;transform:none}
.lhepe-app .lhepe-btn-rec{background:linear-gradient(135deg,#ef4444,#be123c);color:#fff;border-color:transparent}
.lhepe-app .lhepe-btn-rec:hover:not(:disabled){background:linear-gradient(135deg,#dc2626,#9f1239);color:#fff}
.lhepe-app .lhepe-btn-lg{padding:16px 30px;font-size:17px}
.lhepe-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:26px}
.lhepe-actions .lhepe-spacer{flex:1}

/* section progress */
.lhepe-sec-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.lhepe-sec-title{display:flex;align-items:center;gap:12px;font-weight:800;font-size:15px;color:var(--v-900)}
.lhepe-sec-title .lhepe-tile-ic{width:34px;height:34px;font-size:16px;border-radius:10px;margin:0}
.lhepe-sec-count{font-size:13px;font-weight:700;color:var(--muted)}
.lhepe-track{height:8px;background:var(--v-100);border-radius:99px;overflow:hidden;margin-bottom:24px}
.lhepe-track-fill{height:100%;border-radius:99px;background:var(--grad);transition:width .4s cubic-bezier(.2,.8,.2,1)}
.lhepe-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.lhepe-tag{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--v-50);color:var(--v-700);border:1px solid var(--v-100)}
.lhepe-tag-level{background:var(--v-800);color:#fff;border-color:var(--v-800)}

/* questions & options */
.lhepe-qtext{font-size:19px;font-weight:700;color:var(--ink);margin:0 0 16px;line-height:1.4}
.lhepe-qblock{margin-bottom:26px}
.lhepe-options{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.lhepe-app button.lhepe-option{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:14px 16px;border:1.5px solid var(--line);border-radius:var(--r-md);background:#fff;color:var(--ink);font-size:16px;font-weight:500;line-height:1.4;cursor:pointer;transition:all .15s;margin:0;box-shadow:none;text-transform:none;letter-spacing:0;height:auto;min-height:0;font-family:inherit}
.lhepe-app button.lhepe-option:hover{border-color:var(--v-400);background:var(--v-50);transform:translateX(2px)}
.lhepe-app button.lhepe-option .lhepe-opt-key{flex:none;width:32px;height:32px;border-radius:10px;border:1.5px solid var(--v-200);display:grid;place-items:center;font-weight:800;font-size:13px;color:var(--v-700);background:#fff;transition:all .15s}
.lhepe-app button.lhepe-option .lhepe-opt-text{flex:1;min-width:0}
.lhepe-app button.lhepe-option[aria-pressed="true"]{border-color:var(--v-600);background:var(--v-50);box-shadow:0 0 0 3px rgba(124,58,237,.14)}
.lhepe-app button.lhepe-option[aria-pressed="true"] .lhepe-opt-key{background:var(--v-600);border-color:var(--v-600);color:#fff}
.lhepe-app button.lhepe-option[aria-pressed="true"]::after{content:"✓";font-weight:800;color:var(--v-600);font-size:16px}

/* reading text */
.lhepe-text{font-family:var(--serif);font-size:17.5px;line-height:1.75;color:var(--ink);white-space:pre-wrap;background:var(--v-50);border:1px solid var(--v-100);border-radius:var(--r-md);padding:22px 26px;margin:0 0 24px}

/* listening player */
.lhepe-player{display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 10px 10px}
.lhepe-app button.lhepe-playbtn{position:relative;width:116px;height:116px;border-radius:50%;border:none;background:var(--grad);color:#fff;font-size:40px;cursor:pointer;box-shadow:0 18px 40px -12px rgba(124,58,237,.7);display:grid;place-items:center;transition:transform .2s;margin:0;padding:0}
.lhepe-app button.lhepe-playbtn:hover:not(:disabled){transform:scale(1.05)}
.lhepe-app button.lhepe-playbtn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.lhepe-app button.lhepe-playbtn.is-playing{animation:none}
.lhepe-app button.lhepe-playbtn.is-playing::before,.lhepe-app button.lhepe-playbtn.is-playing::after{content:"";position:absolute;inset:-8px;border-radius:50%;border:2px solid rgba(124,58,237,.45);animation:lhepe-ring 1.6s ease-out infinite}
.lhepe-app button.lhepe-playbtn.is-playing::after{animation-delay:.8s}
@keyframes lhepe-ring{0%{transform:scale(.9);opacity:1}100%{transform:scale(1.5);opacity:0}}
.lhepe-wave{display:flex;align-items:center;gap:4px;height:34px;margin:22px 0 8px}
.lhepe-wave i{display:block;width:5px;height:8px;border-radius:3px;background:var(--v-300);transition:height .2s}
.lhepe-player.is-playing .lhepe-wave i{background:var(--v-600);animation:lhepe-wave 1s ease-in-out infinite}
@keyframes lhepe-wave{0%,100%{height:8px}50%{height:32px}}
.lhepe-wave i:nth-child(2){animation-delay:.1s}.lhepe-wave i:nth-child(3){animation-delay:.2s}.lhepe-wave i:nth-child(4){animation-delay:.3s}.lhepe-wave i:nth-child(5){animation-delay:.4s}.lhepe-wave i:nth-child(6){animation-delay:.5s}.lhepe-wave i:nth-child(7){animation-delay:.3s}.lhepe-wave i:nth-child(8){animation-delay:.15s}.lhepe-wave i:nth-child(9){animation-delay:.45s}.lhepe-wave i:nth-child(10){animation-delay:.25s}.lhepe-wave i:nth-child(11){animation-delay:.05s}.lhepe-wave i:nth-child(12){animation-delay:.35s}
.lhepe-play-status{font-weight:700;color:var(--v-800);font-size:15px}
.lhepe-play-sub{font-size:13px;color:var(--muted);margin-top:4px}

/* speaking */
.lhepe-read-target{font-family:var(--serif);font-size:21px;line-height:1.6;color:var(--ink);margin:6px 0 22px;padding:20px 24px;border-left:4px solid var(--teal);background:#f0fdfa;border-radius:0 var(--r-md) var(--r-md) 0}
.lhepe-recorder{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0}
.lhepe-timer-big{font-variant-numeric:tabular-nums;font-weight:800;font-size:26px;color:var(--v-900);min-width:64px;text-align:center}
.lhepe-rec-dot{width:10px;height:10px;border-radius:50%;background:#ef4444;display:inline-block;animation:lhepe-blink 1s infinite}
@keyframes lhepe-blink{50%{opacity:.2}}
.lhepe-transcript-wrap{margin-top:16px}
.lhepe-transcript-wrap small{display:block;color:var(--muted);font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin-bottom:6px}
.lhepe-transcript{min-height:64px;background:var(--v-50);border:1px dashed var(--v-200);border-radius:var(--r-sm);padding:12px 14px;font-size:15.5px;color:var(--ink-2);font-style:italic}

/* loading */
.lhepe-center{text-align:center;padding:56px 24px}
.lhepe-spinner{width:44px;height:44px;border:4px solid var(--v-100);border-top-color:var(--v-600);border-radius:50%;margin:0 auto 16px;animation:lhepe-spin .8s linear infinite}
@keyframes lhepe-spin{to{transform:rotate(360deg)}}

/* ---------- section complete ---------- */
.lhepe-complete{text-align:center}
.lhepe-complete .lhepe-trophy{width:92px;height:92px;border-radius:28px;background:var(--grad);display:grid;place-items:center;font-size:44px;margin:0 auto 18px;box-shadow:0 20px 40px -14px rgba(124,58,237,.7);animation:lhepe-pop .6s cubic-bezier(.2,1.4,.3,1)}
@keyframes lhepe-pop{from{transform:scale(.3) rotate(-20deg);opacity:0}to{transform:none;opacity:1}}
.lhepe-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}
.lhepe-stat{background:var(--v-50);border:1px solid var(--v-100);border-radius:var(--r-md);padding:16px 10px}
.lhepe-stat small{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.lhepe-stat strong{display:block;font-size:26px;font-weight:800;color:var(--v-900);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.lhepe-stat .lhepe-xp-gain{color:var(--v-600)}
.lhepe-unlocks{margin:10px 0 4px}
.lhepe-unlocks h4{margin:18px 0 10px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.lhepe-badge-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.lhepe-badge{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid var(--v-200);border-radius:14px;padding:10px 14px;text-align:left;box-shadow:var(--shadow-sm);animation:lhepe-in .5s both}
.lhepe-badge-ic{width:40px;height:40px;border-radius:12px;background:var(--grad-soft);display:grid;place-items:center;font-size:22px;flex:none}
.lhepe-badge strong{display:block;font-size:14px;color:var(--v-900)}
.lhepe-badge span{font-size:12px;color:var(--muted)}
.lhepe-badge.is-locked{opacity:.5;filter:grayscale(1)}
.lhepe-rankup{display:inline-flex;align-items:center;gap:8px;background:var(--grad);color:#fff;border-radius:999px;padding:8px 16px;font-weight:800;margin:6px 0 8px;animation:lhepe-pop .7s cubic-bezier(.2,1.4,.3,1)}

/* ---------- report ---------- */
.lhepe-report-head{display:flex;justify-content:space-between;gap:20px;align-items:stretch;flex-wrap:wrap;margin-bottom:18px}
.lhepe-overall{background:var(--grad);color:#fff;border-radius:var(--r-md);padding:18px 26px;text-align:center;min-width:200px;box-shadow:0 14px 30px -12px rgba(124,58,237,.7)}
.lhepe-overall small{color:#e9d5ff;display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.lhepe-overall-level{font-size:52px;font-weight:800;line-height:1.05;letter-spacing:-.03em}
.lhepe-progress-note{border-radius:var(--r-sm);padding:10px 16px;font-weight:700;margin:10px 0 18px;font-size:14px}
.lhepe-progress-note.is-up{background:#dcfce7;color:#166534}
.lhepe-progress-note.is-down{background:#fee2e2;color:#991b1b}
.lhepe-results{display:grid;gap:12px;margin:18px 0}
.lhepe-result-row{display:grid;grid-template-columns:110px 1fr 56px 58px 56px;gap:12px;align-items:center}
.lhepe-result-name{font-weight:800;display:flex;align-items:center;gap:8px}
.lhepe-result-name i{width:10px;height:10px;border-radius:3px;display:inline-block}
.lhepe-result-bar{height:12px;background:var(--v-100);border-radius:6px;overflow:hidden}
.lhepe-result-fill{height:100%;border-radius:6px;transition:width 1s cubic-bezier(.2,.8,.2,1)}
.lhepe-result-pct{font-weight:800;text-align:right;font-variant-numeric:tabular-nums}
.lhepe-result-delta{font-size:13px;font-weight:800;text-align:right}
.lhepe-result-delta.is-up{color:var(--green)}.lhepe-result-delta.is-down{color:var(--red)}
.lhepe-level{display:inline-block;text-align:center;font-weight:800;font-size:13px;padding:4px 0;border-radius:8px;background:var(--v-100);color:var(--v-800)}
.lhepe-cefr-scale{display:flex;gap:6px;margin:20px 0}
.lhepe-cefr-scale span{flex:1;text-align:center;padding:8px 0;border-radius:10px;background:var(--v-50);font-weight:800;color:var(--muted);font-size:13px;border:1px solid var(--v-100)}
.lhepe-cefr-scale span.is-active{background:var(--grad);color:#fff;border-color:transparent}
.lhepe-descriptors{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.lhepe-descriptor{background:var(--v-50);border:1px solid var(--v-100);border-radius:var(--r-md);padding:14px 16px;font-size:14px}
.lhepe-descriptor strong{display:block;margin-bottom:4px}
.lhepe-descriptor p{margin:4px 0 0;color:var(--ink-2)}
.lhepe-feedback{color:var(--muted)!important;font-style:italic;font-size:13px}
.lhepe-game-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:8px 0 18px}
.lhepe-rankcard{background:var(--grad-soft);border:1px solid var(--v-200);border-radius:var(--r-md);padding:16px 18px;display:flex;gap:14px;align-items:center}
.lhepe-rankcard .lhepe-rank-big{font-size:40px}
.lhepe-rankcard strong{display:block;font-size:18px;color:var(--v-900)}
.lhepe-rankcard small{color:var(--ink-2);font-size:13px}
.lhepe-rankcard .lhepe-track{margin:8px 0 0;background:#fff}
.lhepe-report .lhepe-badge-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lhepe-history{margin:22px 0}
.lhepe-chart{width:100%;height:auto;border:1px solid var(--line);border-radius:var(--r-md);background:#fff}
.lhepe-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;margin-top:8px;color:var(--muted);font-weight:600}
.lhepe-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}
.lhepe-app h3{margin:24px 0 10px;font-size:18px;color:var(--v-900);font-weight:800}

/* confetti */
.lhepe-confetti{position:fixed;inset:0;pointer-events:none;z-index:100}

/* toast */
.lhepe-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:90;background:var(--v-900);color:#fff;padding:12px 18px;border-radius:14px;font-weight:700;font-size:14px;box-shadow:var(--shadow);animation:lhepe-in .3s;max-width:92vw}
.lhepe-toast.is-warn{background:#c2410c}

/* footer */
.lhepe-foot{text-align:center;font-size:12.5px;color:var(--muted);padding:20px}

/* ---------- responsive ---------- */
@media (max-width:820px){
	.lhepe-stepper{order:3;width:100%;justify-content:space-between;min-width:0}
	.lhepe-stepper-line{flex:1;width:auto}
	.lhepe-stepper-item span.lhepe-stepper-label{display:none}
	.lhepe-topbar-in{padding:10px 16px;gap:10px}
}
@media (max-width:700px){
	.lhepe-report .lhepe-badge-row{grid-template-columns:1fr}
	.lhepe-main{padding:16px 12px 40px}
	.lhepe-card{padding:22px 18px 24px;border-radius:18px}
	.lhepe-h1{font-size:26px}.lhepe-h2{font-size:21px}
	.lhepe-tiles,.lhepe-descriptors,.lhepe-form,.lhepe-rules,.lhepe-game-summary{grid-template-columns:1fr 1fr}
	.lhepe-stats{grid-template-columns:1fr 1fr 1fr;gap:8px}
	.lhepe-stat strong{font-size:20px}
	.lhepe-result-row{grid-template-columns:86px 1fr 46px 46px 44px;gap:8px;font-size:13px}
	.lhepe-qtext{font-size:17px}
	.lhepe-text{font-size:16px;padding:16px 18px}
}
@media (max-width:480px){
	.lhepe-tiles,.lhepe-form,.lhepe-rules,.lhepe-game-summary,.lhepe-descriptors{grid-template-columns:1fr}
	.lhepe-hud{margin-left:0;width:100%;justify-content:space-between}
	.lhepe-brand small{display:none}
}
@media print{
	body *{visibility:hidden}
	.lhepe-report,.lhepe-report *{visibility:visible}
	.lhepe-report{position:absolute;left:0;top:0;width:100%;box-shadow:none;border:none}
	.lhepe-actions,.lhepe-btn,.lhepe-topbar{display:none!important}
}
