:root{font-family:system-ui,-apple-system,Segoe UI,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif;color:#202822;background:#f6f7f8;font-synthesis:none;font-size:16px;line-height:1.6;text-rendering:auto;-webkit-font-smoothing:auto;--orange: #c45124;--line: #dce2dd;--muted: #626e65}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.4}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--orange);outline-offset:4px}textarea:focus-visible{outline:none}::selection{color:#202822;background:#fbdcc8}h1,h2,h3,p{margin:0}button svg{flex-shrink:0}.app-shell{min-height:100dvh}.topbar{height:80px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;white-space:nowrap}.brand img{border-radius:11px}.brand strong{font-size:24px;font-weight:700;letter-spacing:-.5px}.header-actions{display:flex;align-items:center;gap:22px}.service-status{font-size:12px;color:#626e65;display:flex;align-items:center;gap:7px;white-space:nowrap}.service-status i{width:6px;height:6px;border-radius:50%;background:#94a67e}.service-status.unavailable i{background:#c58b6a}.main-content{width:100%;max-width:1440px;margin:0 auto;padding:40px 32px}.translator{border:1px solid #dfe5d6;border-radius:13px;background:#fff;overflow:hidden}.input-methods{display:flex;gap:8px;margin-bottom:16px}.input-methods button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 16px;font-size:14px;font-weight:500}.input-methods button[aria-pressed=true]{color:var(--orange);border-color:#d99e82;background:#fff4ec}.image-input{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:22px;margin-bottom:18px;border:1px dashed #a5b2a8;border-radius:12px;background:#fff}.image-input>svg{color:var(--orange);flex-shrink:0}.image-input-description{flex:1 1 260px;min-width:0}.image-input strong{font-size:16px;font-weight:600}.image-input p{color:var(--muted);font-size:14px;margin-top:5px}.image-input small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.image-input .image-input-error{flex-basis:100%;color:#a13524;margin:0}.secondary-button{border:1px solid var(--line);background:#fff;padding:9px 15px;border-radius:7px;font-size:14px;white-space:nowrap}.secondary-button:hover:not(:disabled){background:#f4f7f3;border-color:#a5b2a8}.language-bar{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);align-items:center;min-height:62px;border-bottom:1px solid var(--line)}.language-picker{min-width:0;padding:0 24px}.target-picker{padding-left:18px}.language-tabs{min-height:62px;display:flex;align-items:stretch;gap:23px}.language-tabs>button{position:relative;padding:0 1px;color:#57665b;font-size:14px;white-space:nowrap;font-weight:500}.language-tabs>button:hover{color:var(--orange)}.language-tabs>button.selected,.more-languages.selected{color:var(--orange)}.language-tabs>button.selected:after{content:"";position:absolute;bottom:-1px;height:3px;border-radius:2px;background:var(--orange);left:0;right:0}.more-languages{display:flex;align-items:center;position:relative;color:#626e65;font-size:13px;min-width:18px}.more-languages>select{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.more-languages:focus-within{outline:2px solid var(--orange);outline-offset:3px}.mobile-language-picker{display:none}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:7px;color:#626e65;flex-shrink:0;padding:0}.icon-button:hover:not(:disabled){color:#596e48;background:#edf1e5}.swap-button{width:32px;height:32px;margin:0 auto;border:1px solid var(--line);color:#57665b}.translation-panes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.input-pane,.output-pane{min-width:0;min-height:264px;padding:20px 25px 16px;display:flex;flex-direction:column}.output-pane{background:#f4f7f3;border-left:1px solid var(--line)}.pane-caption{min-height:28px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#626e65;font-size:14px;font-weight:500}.pane-caption .icon-button{width:28px;height:28px;margin-right:-5px}.engine-tag{color:#57665b;font-size:12px;padding:3px 7px;border-radius:4px;background:#e6ecda;font-weight:400}.input-pane textarea{display:block;width:100%;min-height:140px;max-height:340px;flex:1;resize:none;field-sizing:content;padding:8px 0 0;border:0;outline:none;background:transparent;font-size:28px;line-height:1.6;color:#202822;overflow:auto;font-family:inherit;font-weight:400}.input-pane textarea::placeholder{color:#6b756d;font-size:23px;font-weight:400}.translation-text{margin-top:8px;min-height:50px;max-height:340px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:28px;line-height:1.6;color:#202822;font-weight:500}.translation-text.long-text{font-size:20px;font-weight:400}.output-placeholder{color:#6b756d;font-size:23px;font-weight:400}.target-ipa{color:#52645a;font-size:15px;line-height:1.7;margin-top:9px}.pane-footer{display:flex;align-items:center;gap:10px;min-height:46px;margin-top:auto;padding-top:12px}.pane-footer>.icon-button:first-child{margin-left:-7px}.character-count{color:#626e65;font-size:12px;margin-left:auto;font-variant-numeric:tabular-nums}.primary-button{color:#fff;background:var(--orange);border-radius:7px;height:35px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:14px;font-size:12px}.primary-button:hover:not(:disabled){background:#d9612c}.result-status{color:#626e65;font-size:12px;font-variant-numeric:tabular-nums}.refresh-button{margin-left:auto}.loading-text{font-size:14px;color:#626e65;display:inline-flex;align-items:center;gap:8px}.workspace-options{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:14px 2px 25px;color:#626e65;font-size:13px}.checkbox-label{font-size:13px;color:#52645a;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}.checkbox-label input{accent-color:#8f9e7b;width:13px;height:13px;margin:0;cursor:pointer}.learning-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.6fr);gap:24px}.spelling-suggestion{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:-8px 2px 20px;color:#52645a;font-size:13px;overflow-wrap:anywhere}.spelling-suggestion button{color:var(--orange);text-decoration:underline;font-weight:600}.spelling-suggestion small{color:#626e65}.learning-error{color:#9b7747;font-size:14px}.learning-card{min-width:0;padding:23px 25px;background:#fff;border:1px solid var(--line);border-radius:11px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading h2{font-size:17px;font-weight:600;display:flex;align-items:center;gap:8px}.section-heading h2 svg{color:#626e65;stroke-width:1.7}.section-heading .checkbox-label{font-size:12px}.word-heading{display:flex;align-items:baseline;gap:11px;margin:23px 0 14px;overflow-wrap:anywhere}.word-heading>span{font-family:inherit;font-size:28px;line-height:1.3;font-weight:500}.word-heading small{flex-shrink:0;font-size:12px;color:#626e65;border:1px solid var(--line);border-radius:3px;padding:2px 5px}.pronunciation-list{display:flex;flex-direction:column;gap:5px}.pronunciation-row{display:flex;align-items:center;gap:15px;min-height:32px}.pronunciation-row>span:first-child{font-size:13px;color:#626e65;min-width:25px}.ipa{font-family:Segoe UI,Arial,sans-serif;font-size:16px;color:#3e5044;overflow-wrap:anywhere}.pronunciation-row .icon-button{width:30px;height:30px;margin-left:auto}.definitions{margin-top:18px;border-top:1px solid #edf0e5;padding-top:3px}.definition-row{margin-top:16px}.part-of-speech{font-size:12px;color:#52645a;background:#f0f4e8;border-radius:3px;padding:3px 5px}.definition-row>p{color:#39483e;font-size:15px;line-height:1.8;margin-top:6px}.definition-row .synonyms,.example-count{font-size:13px;color:#626e65}.examples-list{margin-top:8px}.example-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding:20px 0;align-items:start}.example-row+.example-row{border-top:1px solid #eef1e7}.example-source{color:#202822;font-size:17px;line-height:1.8;font-weight:400;overflow-wrap:anywhere}.example-translation{color:#39483e;font-size:17px;line-height:1.8;margin-top:0;font-weight:400;overflow-wrap:anywhere}.example-row .icon-button{width:30px;height:30px}mark{color:#a94119;background:#fff2e5;border-radius:2px;padding:0;font-weight:500}.usage-note{margin-top:8px;padding:12px 14px;border-radius:6px;background:#f5f7ef;color:#52645a;font-size:14px;line-height:1.8}.ai-disclaimer{margin-top:12px;color:#626e65;font-size:12px;line-height:1.7}.empty-detail,.empty-examples>p{color:#626e65;font-size:14px;line-height:1.9;margin-top:20px}.empty-examples{padding-bottom:15px}.learn-button{display:inline-flex;align-items:center;gap:6px;margin-top:15px;padding:9px 12px;font-size:11px;border:1px solid #dce5ce;color:#52645a;border-radius:6px;background:#f0f4e8}.learn-button:hover:not(:disabled){background:#e6eddc}.notice{display:flex;align-items:center;gap:9px;margin:0 0 16px;padding:11px 14px;border:1px solid #e4e9da;border-radius:7px;font-size:12px;color:#52645a;background:#f0f4e8;line-height:1.8}.notice>svg{flex-shrink:0}.error-notice{margin:13px 0 0;color:#b8683f;background:#fff1e7;border-color:#f0dccb}.error-notice>button{display:flex;align-items:center;gap:4px;margin-left:auto;font-size:11px;white-space:nowrap}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%);width:max-content;max-width:calc(100% - 32px);padding:11px 17px;display:flex;align-items:center;gap:8px;border-radius:8px;background:#3c4931;color:#fff;box-shadow:0 4px 22px #24311b20;font-size:12px;line-height:1.8;z-index:50}.toast svg{flex-shrink:0}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{font-size:18px;font-weight:600}.spinning{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1000px){.topbar{padding:0 28px}.main-content{padding:32px 25px;max-width:1440px}.language-picker{padding:0 20px}.target-picker{padding-left:10px}.language-tabs{gap:16px}.language-tabs>button{font-size:14px;font-weight:500}.input-pane,.output-pane{padding-left:21px;padding-right:21px}.learning-card{padding:20px}}@media(max-width:700px){.topbar{height:69px;padding:0 18px;gap:12px}.brand{gap:8px}.brand img{width:31px;height:31px;border-radius:9px}.brand strong{font-size:22px;font-weight:700;letter-spacing:-.5px}.header-actions{gap:10px}.service-status{font-size:12px;gap:5px}.main-content{padding:24px 17px calc(24px + env(safe-area-inset-bottom,0px));max-width:1440px}.translator{border-radius:11px}.language-bar{grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);min-height:64px}.language-picker,.target-picker{padding:0 16px}.language-tabs{display:none}.mobile-language-picker{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:63px}.mobile-language-picker>span{color:#626e65;font-size:9px}.mobile-language-picker>div{position:relative;display:flex;align-items:center}.mobile-language-picker select{width:100%;height:29px;appearance:none;border:0;background:transparent;color:#71845e;font-size:13px;padding-right:19px;border-radius:0;outline-offset:1px}.mobile-language-picker svg{color:#626e65;pointer-events:none;flex-shrink:0}.swap-button{width:30px;height:30px}.translation-panes{grid-template-columns:minmax(0,1fr)}.input-pane,.output-pane{min-height:207px;padding:14px 19px}.output-pane{min-height:190px;border-left:0;border-top:1px solid var(--line)}.pane-caption{min-height:25px;font-size:14px;font-weight:500}.engine-tag{font-size:12px;font-weight:400}.input-pane textarea{min-height:106px;max-height:240px;font-size:28px;padding-top:7px;field-sizing:fixed;font-family:inherit;font-weight:400;line-height:1.6}.input-pane textarea::placeholder{font-size:23px;font-weight:400}.translation-text{font-size:28px;min-height:47px;margin-top:7px;max-height:280px;font-weight:500;line-height:1.6}.translation-text.long-text{font-size:20px;font-weight:400}.output-placeholder{font-size:23px;font-weight:400}.target-ipa{font-size:15px}.pane-footer{min-height:44px;gap:8px;padding-top:9px}.primary-button{height:33px;padding:0 13px;gap:13px;font-size:11px}.character-count,.result-status{font-size:12px}.workspace-options{margin-top:12px;margin-bottom:20px;font-size:13px}.checkbox-label{font-size:13px}.learning-grid{grid-template-columns:minmax(280px,.8fr) minmax(0,1.6fr);gap:24px}.learning-card{padding:20px}.section-heading h2{font-size:17px;font-weight:600}.word-heading{margin-top:21px}.word-heading>span{font-size:28px;font-family:inherit;font-weight:500}.example-source{font-size:17px;font-weight:400;line-height:1.8;overflow-wrap:anywhere}.example-translation{font-size:17px;font-weight:400;line-height:1.8;margin-top:0;overflow-wrap:anywhere}.usage-note{font-size:14px;line-height:1.8}.ai-disclaimer{font-size:12px}.notice{padding:10px 12px;font-size:11px}.toast{bottom:calc(20px + env(safe-area-inset-bottom,0px));font-size:11px}}@media(max-width:370px){.topbar{padding:0 15px}.main-content{padding-left:13px;padding-right:13px;max-width:1440px}.language-picker,.target-picker{padding:0 13px}.mobile-language-picker select{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.language-tabs>button{font-size:14px;font-weight:500}.all-languages-button{display:inline-flex;align-items:center;gap:5px}.mobile-language-picker>button{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;min-height:32px;font-size:14px;font-weight:650;text-align:left;color:#34452b}.mobile-language-picker .current-language{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.language-dialog{width:min(570px,calc(100% - 32px));max-height:min(720px,85dvh);padding:25px;border:1px solid #e3e8dd;border-radius:18px;color:#34452b;background:#fff;box-shadow:0 24px 80px #25332125}.language-dialog::backdrop{background:#26321f45;backdrop-filter:blur(4px)}.language-dialog h2{font-size:20px;font-weight:750}.language-dialog h3{font-size:12px;font-weight:700;color:#626e65;margin:22px 0 12px}.language-search{display:flex;align-items:center;gap:10px;padding:0 13px;margin-top:18px;border:1px solid #dce3d4;border-radius:10px;background:#f7f9f4}.language-search input{border:0;outline:none;background:none;min-width:0;width:100%;padding:13px 0;font:inherit;font-size:14px}.language-search:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px #ed7b4514}.common-languages{display:flex;flex-wrap:wrap;gap:8px}.common-languages button{padding:8px 13px;border:1px solid #e2e7da;border-radius:8px;font-size:13px;font-weight:600}.common-languages button[aria-pressed=true]{color:#d65e28;background:#fff1e8;border-color:#fac8af}.all-language-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;max-height:min(340px,42dvh);overflow-y:auto;overscroll-behavior:contain}.all-language-list button{min-height:45px;display:flex;align-items:center;gap:5px;padding:8px 9px;border-radius:7px;text-align:left;font-size:13px;font-weight:550;overflow-wrap:anywhere}.all-language-list button:hover,.all-language-list button[aria-pressed=true]{background:#f0f4e9;color:#52673f}.all-language-list small{margin-left:auto;font-size:10px;color:#626e65}.pane-caption{font-size:14px;font-weight:500}.translation-text{font-size:28px;font-weight:500;line-height:1.6}.section-heading h2{font-size:17px;font-weight:600}.word-heading>span{font-weight:500;font-family:inherit;font-size:28px}.example-source{font-size:17px;font-weight:400;line-height:1.8;overflow-wrap:anywhere}.example-translation{font-size:17px;font-weight:400;line-height:1.8;margin-top:0;overflow-wrap:anywhere}.primary-button{font-size:13px;font-weight:650}.checkbox-label,.workspace-options{font-size:13px}.language-tabs>button{padding-left:13px;padding-right:13px;font-size:14px;font-weight:500}@media(max-width:900px)and (min-width:641px){.language-tabs>button{font-size:14px;padding-left:8px;padding-right:8px;font-weight:500}}@media(max-width:640px){.language-dialog{padding:20px;border-radius:15px}.all-language-list{grid-template-columns:repeat(2,minmax(0,1fr))}.language-search input{font-size:16px}.mobile-language-picker>span{font-size:11px;font-weight:600}.translation-text{font-size:28px;font-weight:500;line-height:1.6}.pane-caption{font-size:14px;font-weight:500}.workspace-options,.checkbox-label{font-size:13px}.example-source{font-size:17px;font-weight:400;line-height:1.8;overflow-wrap:anywhere}.example-translation{font-size:17px;font-weight:400;line-height:1.8;margin-top:0;overflow-wrap:anywhere}}.target-ipa>span{color:#626e65;font-size:12px;margin-right:6px}.examples-list{margin-top:22px}.examples-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding-bottom:10px;border-bottom:1px solid var(--line);color:#626e65;font-size:13px;font-weight:500}.examples-columns>span+span{padding-left:20px}.example-cell{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:8px;min-width:0;align-items:start}.example-cell+.example-cell{border-left:1px solid #e3e8e3;padding-left:20px}.example-cell>.icon-button{grid-column:2;grid-row:1;margin-top:1px}.example-language{display:none}.example-row:last-child{padding-bottom:12px}@media(max-width:1100px){.learning-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:700px){.input-pane textarea,.translation-text{font-size:25px}.input-pane textarea::placeholder,.output-placeholder{font-size:20px}.example-source,.example-translation{font-size:16px}}@media(max-width:640px){.examples-columns{display:none}.example-row{grid-template-columns:minmax(0,1fr);gap:14px}.example-cell+.example-cell{border-left:0;padding-left:0}.example-language{display:block;grid-column:1 / -1;color:#626e65;font-size:12px}.example-cell>.icon-button{grid-row:2}}
