:root{font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;color:#202039;background:#f7f7fc;font-synthesis:none;--ink: #202039;--muted: #646479;--border: #e6e5f0;--accent: #5545cc;--soft-accent: #efedff}*{box-sizing:border-box}body{margin:0;min-width:300px}button,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,summary:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.topbar{border-bottom:1px solid #ebeaf3;background:#fff}.topbar-inner{min-height:70px;max-width:1280px;padding:0 clamp(20px,5vw,54px);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:11px;font-size:23px;font-weight:720;letter-spacing:-.055em}.brand-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#594bd4;color:#fff;box-shadow:0 2px 5px #4c3bb52e}.service{display:flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #e7e7f0;border-radius:99px;color:#656579;font-size:.8125rem;white-space:nowrap}.service>span{width:7px;height:7px;border-radius:50%;background:#9998ab}.service.ready{background:#f3faf5;border-color:#e1efe4;color:#287048}.service.ready>span{background:#489f68}.main{width:min(1100px,calc(100% - 72px));margin:62px auto 55px}.intro{margin-bottom:29px}.intro h1{margin:0;font-size:clamp(2rem,4.9vw,3.175rem);font-weight:750;letter-spacing:-.057em;line-height:1.13}.intro p{margin:13px 0 0;color:var(--muted);font-size:1rem;line-height:1.65}.workbench{background:#fff;border:1px solid #e3e1ef;border-radius:19px;box-shadow:0 12px 40px -27px #36306665,0 2px 4px #352e7110;overflow:hidden}.direction{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px;padding:13px 24px;background:#fdfcff;border-bottom:1px solid var(--border)}.direction-side{display:flex;align-items:center;gap:10px}.direction-side span{font-size:.875rem;color:var(--muted)}.direction-side strong{font-size:.9375rem;font-weight:650}.direction-target{justify-content:end}.swap{min-height:34px;border:1px solid #dedaf8;border-radius:9px;padding:0 13px;background:#f6f4ff;color:#5341b2;font-weight:600;font-size:.875rem}.swap:hover:enabled{background:#ebe7ff}.swap:disabled{opacity:.58}.panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.panel{display:flex;min-width:0;min-height:333px;flex-direction:column}.output-panel{background:#faf9ff;border-left:1px solid var(--border);padding-bottom:16px}.panel-top{height:62px;display:flex;align-items:center;justify-content:space-between;gap:7px;padding:0 18px 0 24px}.panel-title{color:#3c3a55;font-size:.9375rem;font-weight:650}.panel-actions{display:flex;gap:2px}.icon-button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:none;border-radius:8px;color:#575774;background:transparent}.icon-button:hover:enabled{background:#eeebfa;color:var(--accent)}.icon-button:disabled{color:#a4a2b5}.panel textarea,.empty-result{display:block;flex:1;width:calc(100% - 48px);min-height:223px;margin:0 24px;padding:5px 0;border:0;border-radius:2px;font-size:1.0625rem;line-height:1.7;color:var(--ink);background:transparent;resize:none}.panel textarea:focus-visible{outline-offset:3px;outline-color:#c2b9fe}.panel textarea::placeholder,.empty-result{color:#77758b;opacity:1}.empty-result{display:flex;align-items:flex-start;gap:8px}.empty-result svg{margin-top:5px}.panel-bottom{min-height:42px;padding:8px 24px 13px;color:var(--muted);font-size:.8125rem;line-height:1.5}.input-panel .panel-bottom{text-align:right;font-variant-numeric:tabular-nums}.too-long{color:#9a570f}.actions{display:flex;justify-content:flex-end;padding:15px 22px;border-top:1px solid var(--border)}.translate{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:106px;min-height:42px;padding:0 16px;border:0;border-radius:10px;color:#fff;background:var(--accent);font-weight:650;font-size:.9375rem;box-shadow:0 3px 6px #4d409745}.translate:hover:enabled{background:#4938bf}.translate:disabled{opacity:.59;box-shadow:none}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.messages{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:12px 14px;color:#774407;background:#fff8eb;border:1px solid #f1dfbe;border-radius:10px;font-size:.875rem;line-height:1.5}.messages>svg{flex:0 0 auto;margin-top:1px}.messages summary{cursor:pointer}.messages ul{margin:6px 0 0;padding-left:16px}@media(max-width:670px){.main{width:calc(100% - 30px);margin-top:32px}.intro{margin-bottom:20px}.topbar-inner{padding:0 15px;min-height:59px}.direction{padding:11px 13px;gap:6px}.direction-side{gap:4px;flex-direction:column;align-items:flex-start}.direction-target{align-items:flex-end}.panels{grid-template-columns:minmax(0,1fr)}.panel{min-height:213px}.output-panel{border-left:0;border-top:1px solid var(--border)}.panel-top{height:51px;padding:0 12px 0 15px}.panel textarea,.empty-result{min-height:128px;margin:0 15px;width:calc(100% - 30px)}.panel-bottom{min-height:34px;padding:6px 15px 10px}.actions{padding:11px 13px}}@media(prefers-reduced-motion:reduce){.spin{animation:none}}
