:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#1f2937;background:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--blue: #174ea6;--blue-strong: #2458df;--blue-soft: #e8f0fe;--text: #202124;--muted: #6f7785;--line: #dadce0;--panel: #ffffff;--soft-panel: #f8f9fa;--danger: #b3261e;--success: #147a3f}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#fff}button,select,textarea,input{font:inherit}button{cursor:pointer}.app-shell{width:min(100%,1480px);min-height:100vh;margin:0 auto;padding:32px 40px 30px}.language-row{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);gap:24px;align-items:center;margin-bottom:24px}.language-select{position:relative;display:flex;align-items:center;gap:16px;height:72px;padding:0 24px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#111827}.language-select svg{color:#374151;flex:0 0 auto}.language-select select{flex:1;min-width:0;border:0;outline:0;appearance:none;background:transparent;color:#1710a3;font-size:26px;font-weight:500}.swap-button{display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#4f5662;transition:border-color .15s ease,color .15s ease,background .15s ease}.swap-button:hover{border-color:#b8c0cc;color:var(--blue);background:#fafbff}.workspace{display:grid;grid-template-columns:minmax(0,.92fr) minmax(460px,1fr);gap:24px;align-items:stretch}.panel{min-height:704px;border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}.input-panel{display:flex;flex-direction:column}textarea{flex:1;min-height:440px;width:100%;resize:none;border:0;outline:0;padding:52px 48px 22px;color:var(--text);background:#fff;font-size:34px;line-height:1.35}textarea::placeholder{color:#737373;opacity:1}.input-footer{display:flex;align-items:center;justify-content:space-between;height:68px;padding:0 30px;color:#6b7280;font-size:18px;border-bottom:1px solid #eceff3}.clear-button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:#374151}.clear-button:hover{background:#f2f4f7}.translate-bar{padding:28px 40px;background:#fff}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border:1px solid #d5dbe5;border-radius:8px;padding:0 18px;background:#fff;color:#313846;font-size:16px;font-weight:650;letter-spacing:0;transition:transform .12s ease,border-color .15s ease,background .15s ease,color .15s ease}.button:hover:not(:disabled){border-color:#b9c2d0;background:#f8fbff}.button:focus-visible,.swap-button:focus-visible,.clear-button:focus-visible,.language-select select:focus-visible{outline:3px solid rgba(36,88,223,.24);outline-offset:2px}.button:disabled{cursor:not-allowed;opacity:.56}.button-primary{width:100%;min-height:74px;border-color:var(--blue-strong);background:var(--blue-strong);color:#fff;font-size:20px}.button-primary:hover:not(:disabled){border-color:#1d4ed8;background:#1d4ed8}.button-outline{min-width:138px;border-color:var(--blue-strong);color:#113cbd;background:#fff}.button-wide{width:100%;min-height:58px;background:#fff}.spinner{width:19px;height:19px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.result-panel{display:flex;flex-direction:column;background:#fff}.empty-result{justify-content:flex-start;padding:48px;background:var(--soft-panel)}.empty-title{color:#666;font-size:52px;font-weight:500;line-height:1.1}.result-header{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-height:68px;padding:14px 28px;border-bottom:1px solid #e1e4e8}.result-actions{display:flex;align-items:center;gap:12px}.hint-body{padding:24px 30px 18px}.hint-lead-line,.final-question,.answer-area label{color:#374151;font-size:18px;font-weight:680;line-height:1.5}.hint-lead-line{margin-bottom:12px}.examples{display:grid;gap:0;margin:0 0 18px;padding:0;list-style:none}.examples li{display:flex;align-items:center;gap:14px;min-height:44px;border-bottom:1px solid #e4e8ee;color:#2d3340;font-size:19px}.example-number{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:var(--blue-strong);color:#fff;font-size:15px;font-weight:800}.guidance-block{margin:0 0 16px;padding:2px 0 0}.guidance-block ul{display:grid;gap:7px;margin:0;padding-left:20px}.guidance-block li{color:#2d3340;font-size:17px;line-height:1.4}.final-question{margin:12px 0 18px}.image-stage{display:grid;place-items:center;margin-top:12px;border:1px solid #d5dbe5;border-radius:8px;background:#fff;overflow:hidden}.image-stage.has-image{min-height:220px;background:#f6f7f9}.image-stage img{display:block;width:100%;max-height:390px;object-fit:contain}.answer-area{padding:16px 30px 0}.answer-area label{display:block;margin-bottom:10px}.answer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px}.answer-row input{width:100%;min-width:0;height:58px;border:1px solid #d5dbe5;border-radius:8px;padding:0 18px;outline:none;color:var(--text);font-size:18px}.answer-row input:focus{border-color:var(--blue-strong);box-shadow:0 0 0 3px #2458df1f}.verdict{display:inline-flex;align-items:center;min-height:34px;margin-top:12px;padding:0 12px;border-radius:8px;font-size:16px;font-weight:800}.verdict.yes{color:var(--success);background:#e7f5ec}.verdict.no{color:var(--danger);background:#fcebea}.divider{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;padding:24px 30px 18px;color:#6b7280}.divider span{height:1px;background:#d5dbe5}.divider strong{font-size:16px;font-weight:650}.direct-area{padding:0 30px 28px}.direct-translation{margin-top:14px;padding:16px 18px;border-radius:8px;background:#f1f5ff;color:#111827;font-size:20px;font-weight:720}.bottom-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;margin-top:28px}.bottom-line>span{height:1px;background:#c6cbd2}.error-text{max-width:560px;color:var(--danger);font-size:16px;font-weight:650}@media(max-width:980px){.app-shell{padding:18px}.language-row{grid-template-columns:minmax(0,1fr) 52px;gap:10px}.language-row .language-select:last-child{grid-column:1 / -1}.language-select{height:60px;padding:0 16px}.language-select select{font-size:21px}.swap-button{width:52px;height:52px}.workspace{grid-template-columns:1fr}.panel{min-height:auto}textarea{min-height:300px;padding:34px 26px 18px;font-size:30px}.translate-bar{padding:20px 24px}.result-header,.result-actions,.answer-row{align-items:stretch}.result-header{flex-direction:column}.result-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}}@media(max-width:560px){.empty-title{font-size:42px}.result-actions,.answer-row{grid-template-columns:1fr}.hint-body,.answer-area,.divider,.direct-area{padding-left:20px;padding-right:20px}}
