:root{--ink:#173b35;--muted:#64756f;--brand:#007f6b;--mint:#dff7ee;--line:#e1e9e5;--surface:#fff;--canvas:#f6f8f7;--danger:#b73838;--warm:#faf2e6;--radius:18px;font-family:Pretendard,"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.65}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}input,select,textarea{color:var(--ink)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #168d75;outline-offset:4px}input,select,textarea{accent-color:var(--brand)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.4;letter-spacing:-.035em}h2{font-size:19px;font-weight:750}h3{font-size:17px}.icon{width:21px;height:21px;flex:none;vertical-align:middle}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:10px;left:10px;background:var(--ink);color:white;padding:12px 20px;z-index:100;transform:translateY(-150%)}.skip-link:focus{transform:none}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:white;border-right:1px solid var(--line);padding:28px 17px 16px;display:flex;flex-direction:column;overflow:auto;z-index:30}.brand{display:block;padding:0 14px;margin-bottom:7px}.brand img{display:block;width:164px;height:auto}.sidebar-label{font-size:11px;letter-spacing:.035em;color:var(--muted);padding:0 17px;margin-bottom:36px}.nav-link{display:flex;align-items:center;gap:13px;min-height:49px;padding:11px 16px;border-radius:10px;font-size:14px;font-weight:600;color:#61736c;margin:3px 0;transition:background .15s,color .15s}.nav-link.active{color:var(--brand);background:#e5f6ef}.nav-link.active .icon{stroke-width:2}.nav-link:hover{background:#f0f7f3;color:var(--brand)}.nav-divider{height:1px;background:var(--line);margin:21px 16px}.nav-caption{padding:0 16px 8px;font-size:12px;color:var(--muted)}.sidebar-bottom{margin-top:auto;padding:25px 15px 0}.side-note{background:#f7faf8;border-radius:12px;padding:17px 15px}.language-mark{display:block;font-size:19px;letter-spacing:12px;color:var(--brand);font-weight:700;white-space:nowrap}.language-mark span{color:#597a70}.side-note p{font-size:12px;line-height:1.8;margin-top:6px;color:var(--muted)}.sidebar-copyright{font-size:10px;color:var(--muted);margin-top:18px}.main-shell{margin-left:230px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:81px;flex:none;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;gap:15px}.topbar-leading,.topbar-actions,#header-user{display:flex;align-items:center;gap:13px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 13px;color:#a2afa9}.breadcrumb strong{font-weight:600;color:var(--ink)}.connection-badge{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);white-space:nowrap;margin-right:7px}.connection-badge>span{width:5px;height:5px;border-radius:50%;background:#90a29a}.connection-badge.connected>span{background:var(--brand)}.connection-badge.offline{color:var(--danger)}.connection-badge.offline>span{background:var(--danger)}.main-content{width:100%;max-width:1334px;margin:0 auto;padding:35px 42px 55px;flex:1;outline:none}.main-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 42px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.main-footer a:hover{color:var(--brand)}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:10px 19px;border-radius:9px;border:1px solid var(--line);background:white;color:var(--ink);font-weight:650;font-size:13px;white-space:nowrap;transition:background .16s,border-color .16s}.button:hover{border-color:#aac6ba;background:#f5faf7}.button.primary{background:var(--brand);color:white;border-color:var(--brand)}.button.primary:hover{background:#006b59;border-color:#006b59}.button.subtle{background:white;color:var(--muted)}.button.danger{color:var(--danger);background:#fff6f4;border-color:#edc9c2}.button.small{min-height:36px;padding:7px 13px;font-size:12px}.icon-button{width:44px;height:44px;border:0;border-radius:9px;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:25px;transition:background .16s}.icon-button:hover{background:#e7f2ec;color:var(--brand)}.menu-button,.mobile-brand{display:none}.badge{display:inline-flex;align-items:center;gap:6px;background:#eaf5ef;color:var(--brand);font-size:11px;font-weight:650;border:1px solid #d8ebe1;border-radius:6px;padding:4px 9px;line-height:1.4;white-space:nowrap}.badge.warm{background:#fff7e9;border-color:#ebddbd;color:#846027}.muted{color:var(--muted)}.text-link{font-size:12px;font-weight:600;color:var(--muted);text-decoration:underline;text-decoration-color:#b4c6ba;text-underline-offset:4px}.text-link:hover{color:var(--brand)}.welcome{display:flex;align-items:center;justify-content:space-between;min-height:230px;padding:8px 12px 25px 0;gap:30px}.welcome-note{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--brand);font-weight:600;margin-bottom:11px}.little-spark{font-size:21px;line-height:1}.welcome h1{font-size:35px;font-weight:750;letter-spacing:-.05em;line-height:1.42}.welcome-copy>p{font-size:13px;color:var(--muted);margin-top:13px}.welcome-art{position:relative;flex:none;width:300px;height:220px}.welcome-art:before{content:"";position:absolute;width:192px;height:192px;border-radius:50%;background:#e3f3e9;left:64px;top:19px}.welcome-art img{position:absolute;width:178px;height:178px;right:34px;bottom:1px;object-fit:contain;transform:rotate(-4deg)}.speech-bubble{position:absolute;background:white;border:1px solid #d6e6dc;box-shadow:0 3px 0 #dceae2;font-size:12px;font-weight:600;border-radius:12px;padding:8px 15px;z-index:1}.bubble-ko{top:36px;left:8px;transform:rotate(-7deg)}.bubble-km{right:0;top:9px;transform:rotate(5deg);font-size:17px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-top h2{font-size:17px}.translator-section{padding-top:17px}.translation-workspace{background:white;border:1px solid #d7e4dc;border-radius:17px;overflow:hidden;box-shadow:0 5px 15px #224b3d04}.language-bar{display:grid;grid-template-columns:1fr 1fr;position:relative;height:67px;border-bottom:1px solid var(--line);align-items:center}.language-control{display:block;padding:0 22px}.language-control:first-child{border-right:1px solid var(--line)}.language-control select{background:white;border:0;min-height:44px;font-size:14px;font-weight:700;min-width:150px;padding:5px 10px 5px 0;cursor:pointer}.language-control:last-child{padding-left:32px}.swap-button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border:1px solid var(--line);border-radius:50%;width:34px;height:34px;z-index:1}.swap-button .icon{width:17px;height:17px}.translation-panes{display:grid;grid-template-columns:1fr 1fr;min-height:265px}.source-pane,.result-pane{display:flex;flex-direction:column;min-width:0}.source-pane{border-right:1px solid var(--line)}.source-pane textarea{border:0;background:transparent;resize:vertical;width:100%;min-height:210px;max-height:600px;padding:23px 24px;font-size:18px;line-height:1.85;outline-offset:-4px}.source-pane textarea::placeholder{color:var(--muted);font-size:15px}.result-pane{background:#f1f8f4}.translation-result{padding:23px 27px;white-space:pre-wrap;overflow-wrap:anywhere;min-height:210px;font-size:23px;line-height:1.85;flex:1}.result-placeholder{font-size:15px;color:#5d7065}.pane-toolbar{display:flex;align-items:center;min-height:55px;gap:8px;padding:0 14px 8px}.char-count{font-size:10px;color:var(--muted);margin-left:auto}.clear-button{font-size:20px;width:30px;height:36px}.result-toolbar{padding-left:27px}.result-meta{font-size:10px;color:#5d7065;margin-right:auto}.result-toolbar .icon-button{width:35px;height:36px}.result-toolbar .icon{width:17px;height:17px}.translate-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 0 0}.keyboard-hint{font-size:11px;color:var(--muted)}.translate-submit{min-width:153px;min-height:47px}.translate-submit .icon{width:17px;height:17px}.quick-phrases{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px}.quick-phrases>span{font-size:11px;color:var(--muted);margin-right:3px}.quick-phrases>button{background:#fff;border:1px solid var(--line);color:var(--muted);padding:7px 13px;border-radius:20px;font-size:11px;min-height:34px;transition:background .15s}.quick-phrases>button:hover{background:var(--mint);border-color:#b8d6c5;color:var(--brand)}.mode-explanation{font-size:11px;color:var(--muted);margin-top:13px;line-height:1.8}.home-lower{display:grid;grid-template-columns:1.1fr 1fr;gap:27px;margin-top:37px;padding-top:28px;border-top:1px solid var(--line)}.recent-section .section-top{margin-bottom:11px}.recent-section h2{font-size:15px}.quiet-empty{background:white;border:1px dashed #d6e2d9;color:var(--muted);font-size:12px;padding:23px 18px;border-radius:10px}.recent-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);gap:12px}.recent-row p{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-row small{font-size:11px;color:var(--muted);white-space:nowrap}.learning-invite{display:flex;align-items:center;gap:16px;background:var(--warm);border:1px solid #efe5d5;border-radius:13px;padding:23px;transition:background .16s;align-self:center}.learning-invite:hover{background:#f7ebd8}.invite-icon{display:grid;place-items:center;min-width:41px;height:41px;border:1px solid #e1d0b3;background:#fffaf1;color:#947448;border-radius:11px}.learning-invite .small-label{font-size:10px;color:#796447}.learning-invite h2{font-size:15px;margin:4px 0 6px}.learning-invite p{font-size:11px;color:#796447}.learning-invite>.icon{margin-left:auto;width:16px}.page-heading{margin:15px 0 33px}.page-title{font-size:29px;line-height:1.5;font-weight:750}.page-heading>p{font-size:14px;color:var(--muted);margin-top:8px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius)}.empty-state{padding:52px 24px;text-align:center;color:var(--muted);font-size:14px}.empty-state h1,.empty-state h2,.empty-state h3{color:var(--ink);margin-bottom:9px}.empty-state .button{margin-top:20px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px;color:var(--ink);font-size:13px;font-weight:650}.field input,.field select,.field textarea{width:100%;border:1px solid #c7d7ce;border-radius:9px;padding:11px 13px;background:white;min-height:46px;font-size:14px;font-weight:400}.field input::placeholder{color:var(--muted)}.field input[readonly]{background:#f6f8f6;color:var(--muted)}.field-hint{font-size:12px;color:var(--muted);margin:-6px 0 18px;line-height:1.75}.form-error{background:#fff1ef;color:#a5372e;border:1px solid #f0d0cb;border-radius:8px;padding:10px 13px;font-size:12px;margin:12px 0}.service-notice{background:#ecf5ee;border-left:3px solid var(--brand);padding:12px 16px;margin-bottom:20px;font-size:13px;white-space:pre-wrap}.search-field{display:flex;align-items:center;gap:12px;border:1px solid #cfdbd4;border-radius:10px;background:white;padding:0 15px;flex:1;min-width:0;color:var(--muted)}.search-field input{min-width:0;width:100%;background:transparent;border:0;min-height:46px;font-size:13px;outline-offset:2px}.search-field input::placeholder{color:var(--muted)}.filter-row{display:flex;gap:14px;align-items:center;padding:22px;border-bottom:1px solid var(--line)}.filter-row .button[aria-pressed=true]{background:var(--mint);border-color:#9dcab6;color:var(--brand)}.history-row{padding:23px 25px;border-bottom:1px solid var(--line)}.history-row:last-child{border-bottom:0}.history-meta{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;margin-bottom:11px}.history-meta time{margin-left:auto}.history-texts{display:grid;grid-template-columns:1fr 1fr;gap:25px}.history-texts>div{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:15px}.history-texts>div+div{padding-left:24px;border-left:1px solid var(--line);color:var(--brand)}.history-actions{display:flex;gap:6px;justify-content:flex-end;margin-top:14px}.history-actions .button{min-height:34px;padding:6px 10px;font-size:11px}.dictionary-intro{display:flex;align-items:center;justify-content:space-between;gap:25px;background:#e8f4ed;border:1px solid #d8e9dd;border-radius:15px;padding:29px 34px;margin-bottom:25px}.dictionary-intro h2{font-size:22px;margin:11px 0 7px}.dictionary-intro p{font-size:13px;color:var(--muted)}.dictionary-glyph{font-size:78px;color:#6a9b80;line-height:1.2}.dictionary-controls{display:flex;gap:12px}.dictionary-filter select{height:48px;border:1px solid #cfdbd4;background:white;border-radius:9px;padding:0 15px;font-size:13px;cursor:pointer}.result-count{font-size:12px;color:var(--muted);margin:17px 1px}.word-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.word-card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;align-self:start}.word-card summary{cursor:pointer;padding:21px;list-style:none;position:relative}.word-card summary::-webkit-details-marker{display:none}.word-card summary:after{content:"+";position:absolute;right:20px;top:17px;color:var(--muted);font-size:20px}.word-card[open] summary:after{content:"−"}.word-type{font-size:10px;color:var(--muted);display:block;margin-bottom:14px}.word-khmer{font-size:25px;line-height:1.7;color:var(--brand)}.word-ko{font-size:15px;margin-top:7px;font-weight:650}.word-en{font-size:12px;color:var(--muted);margin-top:2px}.word-details{border-top:1px solid var(--line);padding:17px 21px;background:#fafcfb;font-size:12px}.word-details>p{margin-bottom:12px}.word-details .word-example{font-size:15px;line-height:1.8}.word-details .word-example+span{display:block;color:var(--muted);font-size:12px}.word-details details{margin-top:15px}.word-details summary{padding:0;font-size:11px}.word-details summary:after{display:none}.word-details a{display:block;margin-top:7px;color:var(--brand);text-decoration:underline}.attribution{font-size:10px;color:var(--muted);margin:23px 0;line-height:1.9}.attribution a{text-decoration:underline}.learning-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:31px 34px;border-radius:17px;background:#e6f4ec;margin-bottom:36px;border:1px solid #d6e9dc}.learning-banner h2{font-size:24px;margin:13px 0 7px}.learning-banner p{color:var(--muted);font-size:13px}.learning-banner img{object-fit:contain;transform:rotate(3deg);flex:none}.learning-progress{font-size:12px;color:var(--brand);margin-top:19px}.learning-progress progress{display:block;max-width:280px;width:100%;height:7px;margin-top:9px}.course-list{display:grid;gap:13px}.course-row{display:flex;align-items:center;gap:22px;padding:23px 26px;border:1px solid var(--line);border-radius:12px;background:white}.course-number{display:flex;align-items:center;justify-content:center;width:51px;height:51px;border-radius:14px;background:#eaf5ee;color:#4d8970;font-size:20px;font-weight:600;flex:none}.course-row:nth-child(2) .course-number{background:#eaf0f8;color:#658ab3}.course-row:nth-child(3) .course-number{background:#f8ecec;color:#ae7886}.course-row:nth-child(4) .course-number{background:#fbf3dd;color:#a18a4f}.course-row:nth-child(5) .course-number{background:#f0ecf8;color:#8b75ac}.course-copy{flex:1}.course-copy h3{font-size:16px}.course-copy p{color:var(--muted);font-size:12px;margin-top:4px}.course-copy .badge{margin-left:8px}.course-row .button{margin-left:auto}.lesson-dialog{border:1px solid var(--line);border-radius:18px;padding:28px;max-width:690px;width:calc(100% - 32px);max-height:90vh;overflow:auto;color:var(--ink)}.lesson-dialog::backdrop{background:#153b3277;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.lesson-dialog h2{font-size:24px}.lesson-description{font-size:13px;color:var(--muted);margin:8px 0 20px}.lesson-words{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lesson-word{background:#f3f8f4;border:1px solid var(--line);border-radius:10px;padding:15px 17px}.lesson-word strong{font-size:23px;font-weight:500;color:var(--brand)}.lesson-word p{font-size:13px;margin-top:5px}.lesson-word small{font-size:11px;color:var(--muted)}.lesson-phrase{padding:20px 0;margin-top:8px}.lesson-phrase .khmer{font-size:24px;margin:10px 0;color:var(--brand)}.lesson-quiz{border-top:1px solid var(--line);padding-top:20px}.quiz-choices{display:flex;flex-wrap:wrap;gap:10px;margin:13px 0}.quiz-choices .button[aria-pressed=true]{background:#dff7ee;border-color:var(--brand);color:var(--brand)}.quiz-feedback{font-size:13px;margin:12px 0;min-height:22px}.quiz-feedback.correct{color:var(--brand)}.quiz-feedback.incorrect{color:var(--danger)}.auth-layout{display:grid;grid-template-columns:1fr 1fr;max-width:900px;margin:40px auto;min-height:530px;gap:40px}.auth-story{background:#e4f3e9;border-radius:18px;padding:39px;display:flex;flex-direction:column}.auth-story h1{font-size:29px;line-height:1.5}.auth-story p{font-size:13px;color:var(--muted);margin:16px 0 26px}.auth-story img{margin:auto auto 0;max-width:100%;height:auto}.auth-card{padding:25px 8px;align-self:center}.auth-card>h2{font-size:24px}.auth-card>p{color:var(--muted);font-size:13px;margin:8px 0 27px}.auth-submit{width:100%;margin-top:5px}.auth-switch{font-size:13px;text-align:center;margin:20px 0!important}.auth-switch a{color:var(--brand);font-weight:650;text-decoration:underline;text-underline-offset:4px;margin-left:4px}.auth-card .auth-footnote{font-size:11px;color:var(--muted);text-align:center;line-height:1.9;margin-top:24px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.account-section{padding:27px}.account-section>h2{font-size:17px;margin-bottom:23px}.quota-number{display:flex;align-items:baseline;gap:10px;margin:15px 0}.quota-number>strong{font-size:42px;line-height:1.3}.quota-number>span{font-size:15px;color:var(--muted)}progress{height:9px;border:0;border-radius:5px;overflow:hidden;background:#e7eee8;accent-color:var(--brand)}progress::-webkit-progress-bar{background:#e7eee8}progress::-webkit-progress-value{background:var(--brand);border-radius:5px}progress::-moz-progress-bar{background:var(--brand)}#quota-progress{width:100%;margin-bottom:18px}.account-section>.muted{font-size:12px}.account-info{margin:24px 0;font-size:12px}.account-info div{display:flex;justify-content:space-between;margin:9px 0}.account-info dt{color:var(--muted)}.account-info dd{margin:0}.session-section>p{font-size:13px;color:var(--muted);margin-bottom:22px}.developer-banner{display:flex;align-items:center;justify-content:space-between;padding:30px 35px;border-radius:17px;background:#e6f2eb;border:1px solid #d6e6dc;margin-bottom:26px}.developer-banner h2{font-size:27px;margin:12px 0 10px}.developer-banner p{font-size:13px;color:var(--muted);max-width:440px}.code-art{font:70px/1.2 ui-monospace,monospace;color:#79a68c;letter-spacing:-12px;margin-right:30px}.keys-section{padding:27px;margin-bottom:24px}.keys-section .section-top p{font-size:12px;margin-top:5px}.key-form{display:flex;align-items:flex-end;gap:14px;max-width:610px;margin:23px 0}.key-form .field{margin:0;flex:1}.key-form .button{min-height:46px}.key-row{display:flex;align-items:center;gap:15px;padding:17px 0;border-top:1px solid var(--line)}.key-row>div:first-child{flex:1}.key-row strong{font-size:13px}.key-row p{font-size:11px;color:var(--muted);margin-top:3px}.key-row code{font-size:12px}.key-row .button{font-size:12px;min-height:36px}.secret-key-box{background:#eaf7ed;border:1px solid #b6dbc1;padding:18px;border-radius:10px;margin:20px 0;font-size:13px}.secret-key-box>p{font-size:12px;margin:4px 0 12px;color:var(--muted)}.secret-key-box>div{display:flex;gap:10px;align-items:center}.secret-key-box code{word-break:break-all;flex:1;font-size:12px}.developer-docs{display:grid;grid-template-columns:1.3fr 1fr;gap:23px;align-items:start}.docs-section{padding:25px;min-width:0}.docs-section>h2{font-size:17px;margin-bottom:16px}.docs-section>p{font-size:12px;color:var(--muted)}pre{white-space:pre-wrap;word-break:break-word;background:#183c33;color:#d6f4e4;border-radius:10px;padding:19px 17px;font:11px/1.9 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;margin:18px 0;overflow:auto}.api-reference{margin:0;font-size:12px}.api-reference>div{padding:12px 0;border-bottom:1px solid var(--line)}.api-reference>div:first-child{padding-top:0}.api-reference dt{font-weight:650;margin-bottom:6px}.api-reference dd{color:var(--muted);margin:0;line-height:1.9}.docs-section>.field-hint{margin:17px 0}.toast-region{position:fixed;bottom:25px;left:calc(50% + 115px);transform:translateX(-50%);z-index:100;pointer-events:none;max-width:calc(100vw - 40px)}.toast{padding:13px 22px;background:var(--ink);color:white;border-radius:10px;font-size:13px;box-shadow:0 6px 25px #16382d24;text-align:center}.toast.error{background:#a5372e}.noscript-notice{position:fixed;bottom:0;width:100%;background:#fff0dc;padding:15px;text-align:center;z-index:90}.mobile-only{display:none}.loading-text{color:var(--muted);font-size:13px;padding:22px 0}
@media(min-width:1600px){.welcome{min-height:260px}.welcome h1{font-size:40px}.welcome-art{margin-right:35px}.translation-panes{min-height:300px}.source-pane textarea,.translation-result{min-height:245px}}
@media(max-width:1150px){.sidebar{width:210px;padding-left:12px;padding-right:12px}.brand img{width:155px}.main-shell{margin-left:210px}.main-content{padding:29px 28px 45px}.topbar{padding:0 28px}.welcome h1{font-size:31px}.welcome-art{width:240px}.welcome-art img{right:15px;width:170px;height:170px}.welcome-art:before{left:37px;width:180px;height:180px}.bubble-ko{left:0;font-size:11px}.bubble-km{right:-5px}.home-lower{grid-template-columns:1fr;gap:23px}.learning-invite{max-width:none}.word-grid{grid-template-columns:repeat(2,1fr)}.toast-region{left:calc(50% + 105px)}.developer-docs{grid-template-columns:1fr}.auth-layout{gap:25px}.auth-story{padding:28px}.auth-story h1{font-size:25px}}
@media(max-width:850px){.sidebar{width:230px;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.topbar{height:70px;padding:0 22px}.menu-button{display:inline-flex;flex:none}.breadcrumb{display:none}
.mobile-brand{display:flex;align-items:center;width:100px;min-width:0;height:44px}
.mobile-brand img{display:block;width:100%;height:38px;object-fit:contain;object-position:left center}
.topbar-leading{gap:10px;min-width:0}.topbar-actions{gap:8px}.connection-badge{display:none}.main-content{padding:27px 27px 45px;max-width:820px}.main-footer{padding:19px 27px}.mobile-scrim{position:fixed;inset:0;z-index:25;background:#19382a66}.toast-region{left:50%}.welcome{min-height:226px}.welcome h1{font-size:33px}.welcome-art{width:270px}.welcome-art img{right:23px;width:182px;height:182px}.welcome-art:before{left:46px;width:195px;height:195px}.bubble-km{right:0}.bubble-ko{left:0}.home-lower{grid-template-columns:1fr 1fr;gap:22px}.learning-invite{padding:21px;gap:11px}.learning-invite>.icon{display:none}.invite-icon{min-width:35px;height:35px}.learning-invite h2{font-size:13px}.learning-invite p{font-size:10px}.auth-layout{margin:25px auto}.account-grid{gap:17px}}
@media(max-width:600px){body{font-size:14px}.topbar{height:66px;padding:0 12px}.breadcrumb{display:none}#header-user{gap:7px}.topbar-actions .button{padding:7px 11px;min-height:36px;font-size:11px}.main-content{padding:22px 18px 36px}.welcome{min-height:210px;padding:0 0 18px;gap:6px;position:relative}.welcome-copy{position:relative;z-index:1}.welcome-note{font-size:10px;gap:6px}.little-spark{font-size:17px}.welcome h1{font-size:28px}.welcome-copy>p{font-size:11px;line-height:1.8;max-width:240px}.welcome-art{width:124px;height:176px;margin-top:0;margin-right:-7px;align-self:flex-start}.welcome-art:before{width:116px;height:116px;left:0;top:37px}.welcome-art img{width:116px;height:116px;right:-3px;bottom:12px}.bubble-ko{display:none}.bubble-km{font-size:12px;padding:5px 9px;right:2px;top:20px}.section-top{gap:10px;margin-bottom:13px}.section-top h2{font-size:15px}.badge{font-size:9px;padding:4px 7px}.translator-section{padding-top:4px}.language-bar{height:59px}.language-control{padding:0 14px}.language-control:last-child{padding-left:22px}.language-control select{font-size:12px;min-width:0;max-width:100%;width:100%;padding-right:2px}.swap-button{width:30px;height:30px}.translation-panes{grid-template-columns:1fr}.source-pane{border-right:0;border-bottom:1px solid var(--line)}.source-pane textarea{min-height:147px;padding:19px;font-size:17px}.source-pane textarea::placeholder{font-size:13px}.translation-result{min-height:135px;padding:19px;font-size:22px}.result-placeholder{font-size:13px}.pane-toolbar{min-height:44px;padding:0 11px 6px}.result-toolbar{padding-left:19px}.translate-bottom{padding-top:13px}.translate-submit{min-width:135px;min-height:45px}.keyboard-hint{font-size:9px}.quick-phrases{gap:6px;margin-top:17px}.quick-phrases>span{font-size:10px;width:100%;margin-bottom:3px}.quick-phrases>button{font-size:10px;padding:7px 12px;min-height:34px}.mode-explanation{font-size:10px}.home-lower{grid-template-columns:1fr;margin-top:26px;padding-top:23px;gap:22px}.learning-invite{padding:21px;gap:15px}.learning-invite h2{font-size:15px}.learning-invite p{font-size:11px}.learning-invite>.icon{display:block}.invite-icon{min-width:41px;height:41px}.main-footer{font-size:10px;padding:17px 18px}.page-heading{margin:10px 0 25px}.page-title{font-size:25px}.page-heading>p{font-size:12px;line-height:1.8}.filter-row{padding:15px;gap:9px;flex-wrap:wrap}.filter-row .search-field{flex-basis:100%}.filter-row .button{min-height:37px;font-size:11px}.history-row{padding:18px}.history-meta{font-size:10px;gap:8px}.history-texts{grid-template-columns:1fr;gap:10px}.history-texts>div{font-size:14px}.history-texts>div+div{border:0;padding:12px 0 0;border-top:1px dashed var(--line)}.history-actions{gap:4px;flex-wrap:wrap}.history-actions .button{font-size:10px;padding:6px 8px;min-height:36px}.dictionary-intro{padding:22px;gap:15px}.dictionary-intro h2{font-size:18px}.dictionary-intro p{font-size:11px}.dictionary-glyph{font-size:47px}.dictionary-controls{flex-wrap:wrap;gap:9px}.dictionary-controls .search-field{flex-basis:100%}.dictionary-filter select{height:41px}.word-grid{gap:11px}.word-card summary{padding:16px}.word-card summary:after{right:13px;top:10px}.word-khmer{font-size:22px}.word-type{font-size:9px;margin-bottom:11px}.word-ko{font-size:14px}.word-en{font-size:10px}.word-details{padding:14px;font-size:11px}.word-details .word-example{font-size:14px}.learning-banner{padding:22px;position:relative;margin-bottom:29px;align-items:flex-start;gap:8px}.learning-banner h2{font-size:19px;max-width:215px}.learning-banner p{font-size:11px}.learning-banner img{width:80px;height:80px;margin-right:-8px;margin-top:20px}.learning-progress{font-size:10px;max-width:235px}.course-row{padding:18px 16px;gap:13px;flex-wrap:wrap}.course-number{width:42px;height:42px;font-size:17px;border-radius:11px}.course-copy h3{font-size:14px}.course-copy p{font-size:11px}.course-row .button{min-height:38px;font-size:11px;padding:8px 11px}.course-copy .badge{margin-left:4px}.section-top>.muted{font-size:11px}.lesson-dialog{padding:21px;max-height:92vh}.lesson-dialog h2{font-size:22px}.lesson-word{padding:13px}.lesson-word strong{font-size:21px}.lesson-phrase .khmer{font-size:21px}.auth-layout{grid-template-columns:1fr;margin:3px auto;gap:20px;max-width:450px}.auth-story{padding:23px;min-height:145px;position:relative;overflow:hidden;border-radius:13px}.auth-story h1{font-size:22px;z-index:1}.auth-story p{font-size:11px;margin:10px 0 0;z-index:1}.auth-story img{width:120px;position:absolute;right:14px;bottom:-7px}.auth-card{padding:12px 9px}.auth-card>h2{font-size:23px}.account-grid{grid-template-columns:1fr}.account-section{padding:23px}.developer-banner{padding:24px;gap:18px}.developer-banner h2{font-size:23px}.developer-banner p{font-size:12px}.code-art{font-size:43px;letter-spacing:-9px;margin-right:6px}.keys-section,.docs-section{padding:21px}.key-form{gap:10px;flex-wrap:wrap}.key-form .field{flex-basis:100%}.key-form .button{width:100%;min-height:43px}.key-row{flex-wrap:wrap;gap:9px}.key-row>div:first-child{flex-basis:100%}.key-row .button{margin-left:auto}.key-row p{font-size:10px}.secret-key-box>div{flex-wrap:wrap}.secret-key-box code{flex-basis:100%;font-size:11px}.secret-key-box .button{min-height:36px;font-size:11px}.developer-docs{gap:18px}.docs-section .section-top h2{font-size:15px}.docs-section .section-top .button{font-size:10px}.mobile-only{display:block}.toast{font-size:12px;padding:12px 17px}.empty-state{padding:40px 20px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.auth-success{background:#eaf7ed;border:1px solid #c4dfce;border-radius:12px;padding:23px;margin:25px 0}.auth-success h3{font-size:18px}.auth-success p{font-size:13px;line-height:1.9;margin:10px 0 19px;color:var(--muted)}
.auth-resend{display:block;border:0;background:transparent;color:var(--brand);font-size:12px;min-height:44px;padding:8px 10px;margin:10px auto 0;text-decoration:underline;text-underline-offset:4px}.auth-resend:hover{background:#eef8f2;border-radius:8px}
.sidebar-close{display:none}
@media(max-width:850px){.sidebar-close{display:inline-flex;position:absolute;top:17px;right:7px}.sidebar .brand img{width:140px}.sidebar .brand{margin-top:4px}}
@media(max-width:600px){.topbar-actions .button,.button.small,.history-actions .button,.course-row .button,.key-row .button,.filter-row .button,.secret-key-box .button{min-height:44px}.swap-button{width:44px;height:44px}.result-toolbar .icon-button,.clear-button{width:44px;height:44px}.quick-phrases>button{min-height:44px}.language-control:last-child{padding-left:30px}.language-control:first-child{padding-right:24px}.pane-toolbar{min-height:50px}.result-meta{max-width:calc(100% - 100px)}}
.welcome h1{word-break:keep-all}#header-user a span{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.key-row>div:first-child{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){#header-user a span{max-width:105px}}
@media(max-width:360px){.welcome-art{display:none}.welcome{min-height:206px}.welcome h1{font-size:29px}.welcome-copy>p{max-width:none}#header-user a span{max-width:75px}.topbar-actions .button{padding-left:9px;padding-right:9px}.topbar-leading{gap:3px}}

#delete-account-form{margin-top:20px}.deletion-consent{display:flex;align-items:flex-start;gap:12px;min-height:44px;margin:16px 0;font-size:13px;font-weight:600;cursor:pointer}.deletion-consent input{width:20px;height:20px;min-height:20px;flex:none;margin:2px 0 0;padding:0}#refresh-quota{margin-right:12px}

/* Keep the translation action beside the input, including on small screens. */
.welcome{min-height:164px;padding:0 0 20px;gap:20px}
.welcome h1{font-size:30px;margin:10px 0}
.welcome-art{height:160px;width:235px}
.welcome-art:before{width:140px;height:140px;left:50px;top:10px}
.welcome-art img{width:145px;height:145px;right:36px;bottom:0}
.welcome-art .bubble-ko{left:0;top:14px}.welcome-art .bubble-km{right:0;top:80px}
.translation-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.translator-section .section-top{margin-bottom:8px;align-items:center}
.translator-section .badge{font-size:11px}.quota-badge{background:#fff;border:1px solid #cbded6;color:var(--brand)}
.mode-explanation,.translation-account-status{font-size:12px;line-height:1.65;color:var(--muted);margin:5px 0}
.translation-account-status:empty{display:none}
.quick-phrases{margin:13px 0 14px;gap:8px}
.quick-phrases>button{font-size:12px;min-height:40px;padding:8px 13px;color:var(--ink)}
.translation-panes{min-height:220px}
.pane-label{display:block;font-size:12px;font-weight:650;color:var(--muted);padding:16px 22px 0}
.source-pane textarea{min-height:135px;padding:10px 22px;font-size:18px;line-height:1.75}
.translation-result{min-height:135px;padding:10px 22px;font-size:23px}
.source-pane .translate-bottom{padding:10px 16px 16px;gap:12px}
.translate-submit{min-height:48px;box-shadow:0 2px 0 #005e50;transition:background .15s,transform .12s,box-shadow .12s}
.translate-submit:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 0 #005e50}
.source-pane .form-error{margin:0 18px 16px}
.keyboard-hint,.char-count,.result-meta{font-size:12px}
.result-toolbar{margin-top:auto}
.auth-draft-note{padding:12px 14px;border-radius:10px;background:var(--mint);color:var(--ink);font-size:13px;line-height:1.7}
.quota-detail{font-size:13px;color:var(--muted);margin-bottom:12px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;border-color:var(--brand);box-shadow:inset 0 0 0 2px var(--brand)}
.search-field:focus-within{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.search-field input:focus-visible{box-shadow:none}
@media(min-width:851px){
  .main-content{padding-top:24px}
  .welcome{min-height:125px;padding-bottom:16px}
  .welcome h1{font-size:30px;line-height:1.3;margin:8px 0}
  .welcome h1 br{display:none}
  .welcome-art{width:190px;height:125px}
  .welcome-art:before{width:112px;height:112px;left:38px;top:6px}
  .welcome-art img{width:120px;height:120px;right:28px}
  .welcome-art .bubble-ko{top:0;left:-13px;font-size:11px}
  .welcome-art .bubble-km{top:70px;font-size:15px}
  .source-pane textarea{min-height:104px}
  .pane-toolbar{min-height:50px}
  .source-pane .translate-bottom{padding-top:6px;padding-bottom:12px}
  .mode-explanation,.translation-account-status{display:inline-block;margin-right:14px}
}
@media(max-width:600px){
  .main-content{padding-top:18px}
  .welcome{min-height:148px;padding-bottom:16px;gap:8px}
  .welcome h1{font-size:25px;margin:8px 0}
  .welcome-note{font-size:11px}.welcome-copy>p{font-size:12px}
  .welcome-art{width:110px;height:136px;margin-right:0;align-self:center}
  .welcome-art:before{width:100px;height:100px;left:0;top:25px}
  .welcome-art img{width:108px;height:108px;right:-5px;bottom:0}
  .welcome-art .bubble-km{top:0;right:0}
  .translator-section .section-top{flex-wrap:wrap;gap:6px}
  .translation-badges{justify-content:flex-start}
  .quick-phrases{gap:6px;margin:10px 0 12px}
  .quick-phrases>button{font-size:12px;min-height:44px;padding:8px 11px}
  .language-control{padding-left:16px}.language-control select{font-size:14px;min-height:44px}
  .pane-label{padding:12px 17px 0}
  .source-pane textarea{min-height:104px;padding:9px 17px;font-size:17px}
  .source-pane textarea::placeholder{font-size:14px}
  .source-pane .translate-bottom{padding:6px 14px 16px}
  .keyboard-hint{display:none}.translate-submit{width:100%;font-size:14px}
  .translation-result{min-height:80px;padding:10px 17px;font-size:22px}
  .result-placeholder{font-size:14px}.result-toolbar{padding-left:17px}
  .result-meta{max-width:calc(100% - 96px);line-height:1.5}
  .field-hint,.page-heading>p,.account-section>.muted{font-size:13px}
}
@media(max-width:360px){.welcome{min-height:145px}.welcome h1{font-size:24px;line-height:1.35}.welcome-copy>p{line-height:1.6}.welcome-note{line-height:1.4}.translation-badges{gap:5px}.translator-section .badge{font-size:10px}.quick-phrases>button{padding:8px 9px;font-size:11px}}

/* Keep brand copy clear of decorative art on narrow screens. */
@media(max-width:700px){.auth-story{display:grid;grid-template-columns:minmax(0,1fr) 72px;column-gap:12px}.auth-story h1{grid-column:1 / -1}.auth-story p{grid-column:1}.auth-story img{position:static;grid-column:2;grid-row:2;align-self:end;width:72px;height:72px;margin:0}.developer-banner .code-art{display:none}.developer-banner h2{text-wrap:balance}}

/* Reuse PuKae's existing mint palette and Korean typography for account linking. */
.telegram-page{max-width:680px;margin:0 auto}.telegram-page .page-heading{margin-bottom:24px}.telegram-page .page-heading h1{font-size:28px;text-wrap:balance}.telegram-page .page-heading p{margin-top:10px;color:var(--muted)}.telegram-panel{padding:28px}.telegram-identity{display:flex;gap:16px;align-items:center;margin-bottom:20px}.telegram-identity img{object-fit:contain}.telegram-identity p{color:var(--muted)}#telegram-account{overflow-wrap:anywhere}#telegram-status{margin:12px 0 24px;font-weight:650}.telegram-languages{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.telegram-languages select{width:100%;min-height:48px}.telegram-next{background:var(--mint);padding:20px;margin-top:24px;border-radius:12px}.telegram-next .button{margin:16px 0}.telegram-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.telegram-details{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;font-size:14px}.telegram-panel .button{min-height:44px}@media(max-width:480px){.telegram-panel{padding:20px}.telegram-languages{grid-template-columns:1fr}.telegram-page .page-heading h1{font-size:25px}.telegram-next .button{width:100%}}

/* Uploaded logos keep their proportions within the existing navigation. */
.brand img{max-height:72px;object-fit:contain;object-position:left center}

.social-login { margin-block: 1.25rem; }
#social-links { display: grid; gap: .5rem; }
#social-links .button {
  position: relative; min-height: 46px; padding-inline: 2.5rem;
  white-space: normal; text-align: center; line-height: 1.4;
}
html:lang(ko) #social-links .button { word-break: keep-all; overflow-wrap: anywhere; }
#social-links .button::before {
  content: ""; position: absolute; inset-inline-start: .875rem; top: calc(50% - 10px);
  width: 20px; height: 20px; background: var(--provider-mark) center / contain no-repeat;
}
.social-naver { --provider-mark: url("assets/social-naver.png"); }
.social-kakao { --provider-mark: url("assets/social-kakao.png"); }
.social-google { --provider-mark: url("assets/social-google.png"); }
.social-apple { --provider-mark: url("assets/social-apple.png"); }
.social-facebook { --provider-mark: url("assets/social-facebook.png"); }
.social-microsoft { --provider-mark: url("assets/social-microsoft.png"); }
.social-line { --provider-mark: url("assets/social-line.png"); }
.social-tiktok { --provider-mark: url("assets/social-tiktok.png"); }
a.social-apple::before, a.social-tiktok::before { filter: brightness(0) invert(1); }
.button.social-naver { color: #fff; background: #087b38; }
.button.social-kakao { color: #191919; background: #fee500; }
.button.social-apple, .button.social-tiktok { color: #fff; background: #171717; }
.button.social-google, .button.social-facebook, .button.social-microsoft, .button.social-line {
  color: #202124; background: #fff; border-color: #89958f;
}
#social-links a:hover { box-shadow: inset 0 0 0 1px currentColor; }
#social-links a:active { transform: translateY(1px); }
#social-links button:disabled {
  background: var(--canvas); border-color: var(--line); color: var(--muted); opacity: 1;
  cursor: default; flex-wrap: wrap; gap: .25rem .625rem;
}
#social-links small { font-size: .75rem; font-weight: 500; }
.social-login p { text-align: center; font-size: .875rem; margin-block: 1rem 0; }

.sidebar-label{margin-bottom:12px}
.ui-language-picker{display:flex;align-items:center;gap:8px;margin:0 8px 14px;padding:0 10px;border:1px solid var(--line);border-radius:9px;color:var(--ink)}
.ui-language-picker svg{width:18px;height:18px;flex:none;color:var(--brand)}
.ui-language-picker select{font:inherit;color:inherit;background:transparent;border:0;min-width:0;width:100%;min-height:44px;cursor:pointer}
html:not(:lang(ko)) .button{white-space:normal;text-align:center}
html:not(:lang(ko)) :is(.page-title,.welcome h1,.learning-banner h2,.admin-welcome h2,.nav-link){overflow-wrap:anywhere}
html:lang(km),html:lang(th){line-height:1.65}

.dictionary-pager{display:flex;align-items:center;justify-content:center;gap:1rem;margin:1.25rem 0}.dictionary-pager[hidden]{display:none}

.main-footer { flex-wrap: wrap; }
.footer-links, .legal-languages { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; }
.legal-document { max-width: 80ch; margin: 0 auto; padding: clamp(18px, 4vw, 42px); line-height: 1.75; overflow-wrap: anywhere; }
.legal-document h1 { margin: 1rem 0 .25rem; font-size: clamp(24px, 4vw, 34px); line-height: 1.25; }
.legal-document h2 { margin: 1.75rem 0 .4rem; font-size: 1.25rem; }
.legal-document p { margin: .65rem 0; }
.legal-document .legal-date { color: var(--muted); font-size: .9rem; }
.legal-document a { color: var(--brand); text-decoration: underline; text-underline-offset: .18em; }
.legal-document .legal-table { max-width: 100%; overflow-x: auto; }
.legal-document table { width: 100%; min-width: 0; border-collapse: collapse; font-size: .93rem; }
.legal-document th, .legal-document td { padding: .5rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; white-space: normal; }
.legal-document th { background: var(--mint); }

.welcome-copy .app-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.welcome-copy .app-downloads .button { min-height: 44px; }
