:root{--teal:var(--jade,#00a987);--fresh-teal:var(--jade,#00a987);--fresh-ink:#12334a}
.kg-unit-banner{background:linear-gradient(125deg,#f0fcf6,#fff);border:1px solid #cfeade;color:#12334a}.kg-unit-banner small{color:#008c76;opacity:1}.kg-unit-banner p{color:#526a78}.kg-learn-hero{background:linear-gradient(125deg,#f2fdf7,#fff);border-color:#d1eade}
.kg-primary-link,#primary{background:var(--fresh-teal);border:0;color:#fff!important}
.kg-lesson-path li:first-child .kg-step-disc{background:#e9fbf3;border-color:#a7dfca;border-bottom-color:#83cdb5;color:#008873}
.sound-card{background:linear-gradient(135deg,#f1fcf6,#fff);border-color:#d4eade}.choice[aria-pressed=true],.tile[aria-pressed=true]{background:#edfcf5;border-color:#00a98b}.dual-audio{display:flex;gap:10px;margin:12px 0}.dual-audio .audio{flex:1;margin:0;padding:12px 8px;min-width:0}.dual-audio .audio:first-child{background:#e3f9ef;border-color:#c7e9d9;color:#007a66}.dual-audio .secondary{background:#fff}
.guided-strokes{padding:18px;border:1px solid #dcebe5;border-radius:18px;margin:20px 0;background:#fff}.guided-strokes h2{font-size:16px;line-height:1.4;margin:0 0 12px}.guided-strokes p{font-size:13px;margin:12px 0}.stroke-art{height:145px;background:#f8fcfa;border:1px dashed #cce0d6;border-radius:14px}.stroke-art svg{width:100%;height:100%}.stroke{stroke:#009d84;stroke-width:6;stroke-linecap:round;fill:none}.stroke-num{fill:#526a78;font:10px system-ui}.drawing .stroke{stroke-dasharray:100;stroke-dashoffset:100;animation:draw-stroke .65s ease forwards}.drawing .stroke:nth-child(2){animation-delay:.8s}.drawing .stroke:nth-child(3){animation-delay:1.6s}@keyframes draw-stroke{to{stroke-dashoffset:0}}@media(prefers-reduced-motion:reduce){.drawing .stroke{animation:none;stroke-dashoffset:0}}
.formation{display:grid;grid-template-columns:1fr 1fr;gap:0;max-width:220px;min-height:140px;margin:22px auto;border:2px dashed #cde4d9}.formation-slot{display:grid;place-items:center;min-height:120px;font-size:56px}.formation-slot:first-child{border-right:1px dashed #c7ded2;background:#f0faf6;border-radius:18px 0 0 18px}.formation-slot:last-child{background:#fbfefc;border-radius:0 18px 18px 0}.formation:has(.formation-slot){padding:0}.formation:not(:has(.formation-slot)){display:flex;font-size:76px}.formation-hint{font-size:13px;text-align:center;line-height:1.6}.assembly{font-size:44px}
.vocab-picture{margin:18px auto;text-align:center;max-width:280px}.vocab-picture img{display:block;width:100%;height:auto;max-height:220px;object-fit:contain}.vocab-picture figcaption{font-size:16px;font-weight:650;margin-top:10px;color:#526a78}.vocab-intro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px}.vocab-intro .vocab-picture{margin:0}.vocab-intro figcaption{font-size:12px}.picture-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0}.picture-choice{border:2px solid #e0eae5;border-bottom-width:4px;border-radius:16px;background:#fff;padding:4px;min-width:0;min-height:115px;cursor:pointer}.picture-choice[aria-pressed=true]{border-color:#00a98b;background:#effbf5}.picture-choice .vocab-picture{margin:0}.picture-choice img{max-height:100px}body[data-lesson=vocabulary] .summary strong{font-size:27px;letter-spacing:0}body[data-lesson=vocabulary] .sound-card .vocab-picture{margin:0 auto}
@media(max-width:350px){.picture-choices{gap:6px}.picture-choice{min-height:95px}.guided-strokes{padding:14px}.formation-slot{font-size:48px}}

.sound-card{padding:18px;margin:18px 0}.sound-card .hangul{font-size:72px;line-height:1.25}.guided-strokes{padding:14px;margin:16px 0}.guided-strokes h2{margin-bottom:8px}.guided-strokes p{font-size:12px;margin:8px 0}.stroke-art{height:110px}.guided-strokes .secondary{min-height:44px;padding:10px}.guided-strokes+.formation-hint{margin-top:8px}

.lesson-actions{display:flex;gap:10px;align-items:stretch}.lesson-actions #primary{width:auto;flex:1;min-width:0}.lesson-actions #previous{flex:0 0 auto;min-height:52px;padding:12px 17px;border:1px solid #dbe7e2;border-radius:14px;background:#f6faf8;color:#526a78;font:650 14px system-ui;cursor:pointer}.lesson-actions #previous[hidden]{display:none}.lesson-tools{text-align:right;margin:10px 0 -12px;min-height:20px}.lesson-tools button{border:0;background:none;color:#008b76;font:600 12px/1.5 system-ui;padding:6px 0;cursor:pointer}.lesson-tools button[hidden]{display:none}.resume-start{margin:30px 0 0}.kg-start-over{display:block;margin-top:12px;text-align:center;color:#008b76;font:600 13px/1.5 system-ui}

/* One shared audience selector for visiting, living and learning. */
/* Match lesson typography and surfaces to the existing app. */
.lesson-shell{max-width:480px;padding-top:22px;color:#12334a}.lesson-shell header{margin-bottom:24px}.lesson-shell h1{font-size:25px;line-height:1.3;font-weight:750}.lesson-shell p{font-size:14px;line-height:1.65}.lesson-shell .wordmark{color:#009d91}.lesson-shell progress{height:7px}.lesson-shell .sound-card{border-radius:18px;background:#f5fcfa;border-color:#d5e9e3}.lesson-shell .eyebrow{font-size:10px;color:#008d77}.lesson-shell .privacy,.lesson-shell .practice-note{font-size:12px;color:#637c83}.lesson-shell .practice-note{margin-top:8px}.lesson-shell .choice,.lesson-shell .tile{border-width:1px;border-bottom-width:2px;border-radius:14px}.lesson-shell #primary{border-radius:12px;font-size:14px;min-height:48px}.lesson-shell #primary:disabled{background:#e7efec;color:#738b84!important}.lesson-shell .secondary,.lesson-actions #previous{border-radius:12px;min-height:46px;font-size:13px}.lesson-shell .audio{font-size:13px;min-height:44px;border-radius:12px}.lesson-shell .record-button{width:100%;min-height:50px;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--fresh-teal);color:white;border:0;border-radius:12px;font:650 14px/1.4 system-ui;cursor:pointer}.record-button::before{content:'';width:12px;height:12px;flex:0 0 12px;border:2px solid currentColor;border-radius:50%;box-sizing:border-box}.record-button[data-recording=true]{background:#bb4551}.record-button[data-recording=true]::before{border-radius:2px;background:currentColor}.record-button:disabled{opacity:.65;cursor:wait}.lesson-shell .record-status{font-size:13px;margin:2px 0 8px}.record-status:empty{display:none}.record-playback{width:100%;height:44px}.record-playback[hidden]{display:none}
#klg-home-single .ka-mode-pills,#ka-profile-mode.ka-mode-pills{display:flex!important;align-items:stretch;justify-content:center;gap:0;width:100%;padding:0!important;margin:0 0 16px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none}
.ka-mode-pills .ka-mode-pill{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:46px;padding:11px 4px;border:0!important;border-radius:0!important;background:transparent!important;color:#547a72!important;font:500 14px/1.35 system-ui,sans-serif!important;text-align:center;white-space:normal;box-shadow:none!important}
.ka-mode-pills .ka-mode-pill[aria-pressed=true]{background:transparent!important;color:#007f6b!important;font-weight:700!important}
.ka-mode-pills .ka-mode-pill::before{display:none!important}.ka-mode-pills .ka-mode-pill::after{display:none!important}.ka-mode-pills .ka-mode-pill[aria-pressed=true]::after{content:'';display:block!important;position:absolute;bottom:-1px;left:18%;right:18%;height:3px;border-radius:3px;background:#00a987}
#home #klg-home-single .klgd-search{min-height:46px!important;padding:4px 6px 4px 13px!important;border:1px solid #dce9e4!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;margin:0 0 22px!important}
#home #klg-home-single .klgd-search input{font:400 14px/1.4 system-ui!important;color:#315a56!important;box-shadow:none!important}
#home #klg-home-single .klgd-search-go{background:transparent!important;color:#00a987!important;border:0!important;border-radius:8px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}
#home #klg-home-single .klgd-search-go:focus-visible{outline:2px solid #00a987;outline-offset:1px}
@media(max-width:350px){.ka-mode-pills .ka-mode-pill{font-size:13px!important}.lesson-actions #previous{padding:12px}}

.kg-lesson-path li[data-state=complete] .kg-step-disc{background:#00a987;border-color:#00a987;color:#fff}
