/* HARU visual refresh 04 · refined warmth, purposeful depth, restrained glass */
:root{
 --bg:#faf9f5; --paper:#fff; --ink:#222638; --muted:#7e8295; --line:#eceaf2;
 --violet:#7363e8; --violet-dark:#5f4cd2; --lavender:#edeaff; --lavender-2:#e3ddff;
 --rose:#ffe6d9; --green:#3fae8b; --shadow:0 15px 40px rgba(49,41,81,.055); --r:27px;
 --elevation:0 1px 1px #1e173108,0 12px 30px #1e17310d;
}
html{scroll-padding-top:96px}body{background:var(--bg);color:var(--ink);letter-spacing:-.18px;line-height:1.55}
button,a,input,select{touch-action:manipulation}button{transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s,background .18s,opacity .18s}button:active{transform:translateY(3px)!important;box-shadow:none!important}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b9aaff;outline-offset:3px}
.shell{max-width:1600px;grid-template-columns:238px minmax(0,1fr)}
.sidebar{background:#fffefbf7;border-right:1px solid #ebe9e3;padding:29px 17px 21px;backdrop-filter:blur(22px) saturate(140%)}
.brand{padding:6px 13px 43px;gap:13px}.brand-mark{background:linear-gradient(145deg,#8977f3,#6753db);border-radius:19px;width:46px;height:46px;box-shadow:0 5px 0 #5443bd,0 12px 18px #6b52d82a;font-size:25px}
.brand-name{font-size:20px;font-weight:900;letter-spacing:-.6px}.brand-note{font-size:9px;letter-spacing:2.2px;color:#b0aabb}
.nav{gap:5px}.nav-button{color:#777c8d;padding:13px 17px;border-radius:17px;min-height:53px;font-size:13px;gap:13px;font-weight:750}.nav-button.active{color:#6755dc;background:#f0edff;box-shadow:inset 0 0 0 1px #e8e1ff}.nav-button:hover{background:#f4f1ff}.nav-icon{font-size:22px;font-weight:800}
.mini-profile{background:#f9f6f0;border-color:#eeeae0;border-radius:20px;padding:16px}.avatar{background:#e8e1ff;color:#6755dc;border-radius:16px}.sidebar-foot{color:#bcb4ba}
.workspace{padding:25px clamp(24px,3.8vw,60px) 75px}.page-wrap{max-width:1180px}.topbar{position:relative;margin-bottom:28px}.breadcrumbs{font-weight:650;color:#9c9ca8}.top-avatar,.date-pill{border:1px solid #efede8;background:#fffefbee;box-shadow:0 5px 24px #281f390b;padding:9px 15px;font-weight:750}.top-avatar{padding:9px 13px;color:var(--violet)}
.welcome-v4{padding:0 4px 7px}.welcome-label{font-size:11px;font-weight:850;letter-spacing:2.2px;color:#8174c8}.welcome-v4 h1{font-weight:900;font-size:clamp(31px,3vw,43px);letter-spacing:-1.6px;line-height:1.35;margin:11px 0 7px}.welcome-dot{color:#e89e86}.welcome-v4 p{font-size:13px;color:#9696a1;margin:0}.only-mobile{display:none}
.home-columns{grid-template-columns:minmax(0,1fr) 276px;gap:24px;margin-top:25px}.main-stack,.aside-stack{gap:21px}
.hero-v4{min-height:272px;background:linear-gradient(118deg,#7363e8 0%,#8270ef 55%,#9486f2 100%);border-radius:32px;box-shadow:0 16px 29px #6b55cc30;isolation:isolate}.hero-v4 .hero-content{padding:27px 31px;max-width:470px}.hero-v4 .hero-tag{border:0;background:#a79bfc65;border-radius:999px;padding:8px 13px;font-size:11px;letter-spacing:1.1px}.hero-v4 h2{font-size:31px;letter-spacing:-.8px;margin:17px 0 5px}.hero-v4 p{font-size:13px;margin:0 0 18px;color:#f3efff}.hero-progress{height:9px;width:min(85%,320px);border-radius:99px;background:#b6abf4;overflow:hidden;margin-bottom:11px}.hero-progress-fill{display:block;width:62%;height:100%;background:#fff;border-radius:99px}.hero-v4 small{display:block;font-size:11px;color:#e4dcff;margin-bottom:16px}.hero-button{width:min(100%,320px);min-height:45px!important;font-size:14px!important;box-shadow:0 4px 0 #d6cff8,0 8px 18px #35247b25!important}.hero-v4 .hero-art{right:0;width:240px;opacity:.88}.hero-v4 .orb.a{width:233px;height:233px;right:-77px;top:-61px;background:#ffffff27;border:0}.hero-v4 .orb.b{width:167px;height:167px;right:-42px;top:2px;background:#ffffff2c;border:0}.hero-v4 .orb.c{width:111px;height:111px;right:-16px;top:51px;background:#ffffff36;border:0}.hero-v4 .hero-hangul{right:22px;top:72px;font-size:94px;transform:rotate(0);color:#fff;line-height:1;opacity:.9}.hero-v4 .hero-spark{right:170px;top:18px}
.v4-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 -1px;padding:0 2px}.v4-section-title h3{font-size:21px;font-weight:870;letter-spacing:-.6px;margin:0}.v4-section-title span{font-size:11px;color:#a1a0ab;font-weight:750}
.v4-task-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.v4-task{background:#fff;text-align:left;min-height:171px;border-radius:26px;padding:20px;display:flex;align-items:flex-start;flex-direction:column;border:1px solid #f1efee;box-shadow:0 9px 24px #30274008}.v4-task:hover{transform:translateY(-3px);box-shadow:0 14px 30px #332c5713}.v4-task-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;font-size:22px;font-weight:900;margin-bottom:17px}.v4-task-icon.mint{background:#dff6e8;color:#17453f}.v4-task-icon.peach{background:#ffe6d9;color:#ce896d}.v4-task strong{font-size:16px;letter-spacing:-.4px;margin-bottom:5px}.v4-task small{font-size:11px;color:#9999a5}.v4-task-progress{display:block;width:100px;height:6px;border-radius:10px;background:#dff6e8;margin-top:15px;overflow:hidden}.v4-task-progress em{display:block;height:100%;width:55%;border-radius:10px;background:#56be97}.v4-task-count{margin-top:13px;padding:4px 12px;background:#ffe6d9;border-radius:99px;font-size:10px;color:#be7962;font-weight:800}
.book-promo.v4-promo{padding:20px;border-color:#dcefe5;background:linear-gradient(117deg,#edfaf2,#f5fdf7);color:#17453f;border-radius:25px;box-shadow:none;gap:15px;margin-top:0}.v4-promo .book-promo-icon{background:#d6f1e1;border-radius:18px;color:#17453f;font-size:29px;font-weight:900;width:58px;height:58px}.v4-promo strong{font-size:16px}.v4-promo small{color:#718e80;font-size:11px}.v4-chevron{margin-left:auto;color:#31806e;font-size:22px;font-weight:800}
.panel,.stat-card,.lesson-card,.course-tile,.word-card,.book-word,.scan-card{background:#fff;border:1px solid #f0eef0;border-radius:26px;box-shadow:0 8px 25px #27203d0a}.panel{padding:25px}.section-heading h3{font-size:18px;font-weight:870}.section-heading{margin-bottom:19px}.section-heading span{font-size:11px}.link-btn{color:#7363e8;font-size:12px}
.lesson-row{gap:14px}.lesson-card{min-height:170px;border-radius:22px;padding:18px;gap:17px}.lesson-card:hover,.word-card:hover{border-color:#ded7ff;box-shadow:0 18px 34px #645ac219}.lesson-title{font-weight:850;font-size:16px}.lesson-symbol{border-radius:16px;width:48px;height:48px}.lesson-num{letter-spacing:1.5px;font-size:10px}.progress-track{background:#edeaff;height:7px}.progress-fill{background:linear-gradient(90deg,#7263e8,#a89efc)}
.btn{min-height:48px;padding:12px 20px;font-size:13px;border-radius:17px;letter-spacing:-.1px;box-shadow:none}.btn-primary{background:#7363e8;box-shadow:0 4px 0 #5544bb,0 10px 18px #6251ca19}.btn-primary:hover{background:#6654dc;transform:translateY(-2px);box-shadow:0 6px 0 #5544bb,0 13px 23px #6251ca24}.btn-ghost{background:#eeebff;color:#6352d5}.btn-outline{border-color:#e6e1f0}.btn-white{background:#fff;color:#6552d9}.btn-sm{min-height:38px;padding:8px 13px}
.circle-progress{background:conic-gradient(#7463e8 var(--pct),#f1edff 0);box-shadow:0 0 0 9px #faf9ff}.circle-progress:before{background:#fff}.circle-value{font-size:42px}.daily-panel .btn{width:100%;margin-top:15px}.daily-top .flower{font-size:26px;color:#a393f7}.small-upper{font-size:10px;color:#8c80b2}.center-note{color:#9e9ba7}.v4-metrics .v4-metric-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f2f1f3;padding:13px 0;color:#898c9c;font-size:13px}.v4-metric-row:last-child{border:0;padding-bottom:0}.v4-metric-row b{font-weight:900;font-size:21px;color:var(--ink)}.v4-metric-row small{font-size:11px;color:#a6a3aa}
.last-study{border:1px solid #ede6ff;border-radius:21px;background:#f5f1ff;color:#6553d0;box-shadow:none;padding:16px 20px}.last-study strong{font-size:13px}.last-study small{color:#9a8eb3}
.page-kicker{color:#7463e8;font-weight:850}.page-title{letter-spacing:-1.1px;font-weight:900;line-height:1.28}.page-subtitle{font-size:13px}.course-grid{gap:17px}.course-tile{border-radius:25px}.toolbar{gap:14px}.small-tag,.chip{background:#f0edff;color:#6856d7;border-radius:999px;border-color:#e7e0ff}.chip.active{background:#7363e8;color:#fff}
.word-card{border-radius:27px}.word-ko{font-size:37px;letter-spacing:-1.3px}.word-cn{font-size:16px}.word-play{border-radius:12px}.word-actions{margin-top:24px}.grammar-card{border-radius:25px}.grammar-example{border-radius:15px}.lesson-hero{border-radius:30px;background:linear-gradient(125deg,#f0ecff,#faf8ff);border:1px solid #e9e2ff}
.flash-card{border:1px solid #efebf2!important;border-radius:32px!important;box-shadow:0 18px 44px #29213b0d!important}.flash-ko{font-size:clamp(48px,7vw,74px)!important;letter-spacing:-2px}.flash-rom{font-size:15px!important;color:#9692ad}.flash-stage{max-width:790px;margin:auto}.flash-progress{border-radius:99px;background:#e8e1ff}.flash-progress>div{background:#7363e8!important;border-radius:99px}.record-btn{border-radius:16px}.rating-btn{border-radius:16px}
.book-alert{border-color:#eae4ff;border-radius:21px;background:#f5f1ff}.book-index{border-radius:26px}.book-chapter{border-radius:16px;min-height:50px}.book-chapter.selected{background:#eeeaff;color:#6150d6;border-color:#dcd5ff}.book-word{padding:24px;border-radius:25px!important}.book-ko{font-size:clamp(32px,4vw,42px);letter-spacing:-.9px;line-height:1.3;margin-top:19px}.book-mini{border-radius:12px}.book-rule{border:0;border-radius:15px;background:#eaf6ef;color:#317a65}.book-promo-icon{font-family:inherit}.book-kotitle{color:#6c5bd7}
.scan-layout{gap:20px}.scan-drop{min-height:273px;border:2px dashed #bfb2f9;border-radius:27px;background:radial-gradient(circle at 50% 40%,#f0ebff 0,#fcfaff 70%);gap:14px}.scan-drop b{font-size:18px}.scan-upload h3,.scan-help h3,.scan-review h3{font-size:20px}.scan-step strong{border-radius:12px;background:#edeaff}.scan-card{border-radius:23px!important;padding:21px}.scan-savebar .btn{min-width:150px}.scan-raw{border-radius:20px}
input:not([type=range]),select,.field-input{border:1px solid #e9e7ef!important;background:#fff!important;border-radius:16px!important;padding:12px 14px!important;min-height:45px!important}.cloud-form input{margin-top:10px}.cloud-panel{border-radius:29px}.cloud-status{border-radius:16px;background:#f0edff}.toast{border-radius:19px}
.mobile-nav{background:rgba(255,255,255,.87);backdrop-filter:blur(25px) saturate(1.55);-webkit-backdrop-filter:blur(25px) saturate(1.55);border:1px solid #ffffffdf;border-radius:26px;box-shadow:0 12px 33px #2f264c22}.mobile-nav button{border-radius:18px}.mobile-nav button.active{background:#efebff;color:#6b57e2}.mobile-nav button span{font-size:22px}
@media(max-width:1000px){.home-columns{grid-template-columns:1fr}.aside-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.aside-stack .v4-chart{grid-column:1/-1}}
@media(max-width:760px){.sidebar{display:none}.shell{display:block}.workspace{padding:20px 19px 120px}.page-wrap{max-width:510px}.topbar{padding:0 2px;margin-bottom:25px}.topbar .breadcrumbs{font-size:12px}.date-pill{display:none}.top-avatar{background:#fff;border-radius:15px;min-width:40px;min-height:40px}.only-mobile{display:block}.welcome-v4{padding:0 4px 1px}.welcome-v4 h1{font-size:30px;line-height:1.38;letter-spacing:-1.1px;margin-top:10px}.welcome-v4 p{font-size:12px;color:#8b8d99}.home-columns{margin-top:22px;gap:21px}.main-stack{gap:20px}.hero-v4{border-radius:30px;min-height:245px}.hero-v4 .hero-content{padding:21px 21px 18px;max-width:100%}.hero-v4 h2{font-size:24px;margin-top:21px}.hero-v4 p{font-size:12px;margin-bottom:15px}.hero-v4 .hero-art{right:-7px;opacity:.68}.hero-v4 .hero-progress{width:100%;max-width:none}.hero-v4 .hero-tag{font-size:10px}.hero-v4 .hero-button{width:100%;min-height:36px!important;padding:6px 14px}.hero-v4 small{margin-bottom:12px}.hero-v4 .hero-hangul{font-size:75px;right:36px;top:73px}.v4-section-title h3{font-size:20px}.v4-task-grid{gap:13px}.v4-task{padding:17px;min-height:164px;border-radius:24px}.v4-task strong{font-size:15px}.v4-task small{font-size:10px}.v4-promo{min-height:92px}.v4-promo .book-promo-icon{font-size:24px;width:50px;height:50px}.v4-promo strong{font-size:14px}.v4-promo small{font-size:10px}.aside-stack{display:grid;grid-template-columns:1fr;gap:20px}.aside-stack .v4-chart{grid-column:auto}.mobile-nav{position:fixed;left:14px;right:14px;bottom:max(10px,env(safe-area-inset-bottom));z-index:15;padding:7px 5px;justify-content:space-around;display:flex;max-width:520px;margin:0 auto}.mobile-nav button{flex:1;min-height:57px;padding:7px 0 4px;font-size:10px;gap:2px}.mobile-nav button span{font-size:21px}.panel{padding:20px}.book-word{padding:20px}.scan-drop{min-height:220px}.lesson-row{grid-template-columns:repeat(2,minmax(0,1fr))}.page-title{font-size:29px!important}.review-wrap{padding-bottom:30px}}
@media(max-width:420px){.hero-v4 .hero-hangul{right:17px;top:84px;font-size:72px}.hero-v4 .hero-art{opacity:.46}.v4-task{padding:16px}.lesson-row{gap:11px}.lesson-card{padding:15px}.hero-v4 .hero-progress{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important}}
