:root{--bg: #f6f6f9;--surface: #ffffff;--ink: #1b1d3a;--muted: #5a5d7a;--line: #dcdde8;--user: #1b1d3a;--user-ink: #f6f6f9;--magenta: #c2185b;--orange: #e8590c;--teal: #0b7a75;--gold: #e0a100;--indigo: #3a3f9e;--accent: var(--magenta);--tint: #fbeef3;--ok: #0b7a75;--err: #b42318;--err-bg: #fdecea;--display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;--body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;--radius: 14px;color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #12132a;--surface: #1b1d3a;--ink: #ecebf6;--muted: #a6a8c6;--line: #2e3159;--user: #3a3f9e;--user-ink: #ffffff;--magenta: #f06292;--orange: #ff8a4c;--teal: #3cc7bf;--gold: #f5c344;--indigo: #8f95f0;--tint: #2a1f3a;--ok: #3cc7bf;--err: #ff8a80;--err-bg: #3a1d24;color-scheme:dark}}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--body);-webkit-font-smoothing:antialiased}button,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.app{height:100%;max-width:820px;margin:0 auto;display:grid;grid-template-rows:auto auto 1fr auto;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0 12px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px}.brand h1{font-family:var(--display);font-size:22px;font-weight:700;margin:0;letter-spacing:-.01em}.mark{width:34px;height:12px;border-radius:3px;background:linear-gradient(90deg,var(--magenta) 0 30%,var(--gold) 30% 38%,var(--teal) 38% 66%,var(--orange) 66% 74%,var(--indigo) 74%)}.status{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.status .dot{width:8px;height:8px;border-radius:50%;background:var(--line)}.status.ok .dot{background:var(--ok)}.status.down .dot{background:var(--err)}.direction{display:flex;align-items:center;gap:10px;padding:10px 0 12px;border-bottom:1px solid var(--line);font-family:var(--display);font-weight:600;font-size:17px}.lang-from,.lang-to{min-width:76px}.lang-to{color:var(--accent)}.swap{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--surface);transition:transform .2s ease}.swap:hover{transform:rotate(180deg)}.clear{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font:13px var(--body);background:none;border:0;color:var(--muted);padding:6px 8px;border-radius:8px}.clear:hover{color:var(--ink);background:var(--surface)}.thread{overflow-y:auto;padding:18px 2px;min-height:0}.turns{list-style:none;margin:0;padding:0;display:grid;gap:22px}.turn{display:grid;gap:8px}.bubble{max-width:min(560px,88%);padding:10px 14px 12px;border-radius:var(--radius);min-width:0}.bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.bubble-lang{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.7;margin-bottom:2px}.bubble.user{justify-self:end;background:var(--user);color:var(--user-ink);border-bottom-right-radius:4px}.bubble.reply{justify-self:start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:4px}.bubble.reply>p{font-size:17px}.bubble.failed{border-color:var(--err);background:var(--err-bg);color:var(--err);display:grid;gap:10px;justify-items:start}.typing{display:inline-flex;align-items:center;gap:4px;color:var(--muted)}.typing span{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:blink 1.2s infinite ease-in-out}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s;margin-right:6px}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.meta{display:flex;gap:10px;margin-top:6px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}.chip{display:inline-flex;align-items:center;gap:6px;font-size:13px;padding:5px 10px;border-radius:99px;border:1px solid var(--line);background:var(--bg)}.chip:hover:not(:disabled){border-color:var(--muted)}.chip.on{border-color:var(--ok);color:var(--ok)}.chip.on.bad{border-color:var(--orange);color:var(--orange)}.chip.primary{background:var(--accent);border-color:var(--accent);color:#fff}.fb-note{font-size:12.5px;color:var(--muted)}.fb-note.ok{color:var(--ok)}.fb-note.err{color:var(--err)}.correct{margin-top:12px;display:grid;gap:6px;border-top:1px dashed var(--line);padding-top:12px}.correct label{font-size:13px;font-weight:600}.correct textarea{width:100%;resize:vertical;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--bg)}.hint{margin:0;font-size:12.5px;color:var(--muted)}.correct-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.empty{padding:28px 0;max-width:60ch}.empty h2{font-family:var(--display);font-size:clamp(24px,4.5vw,32px);line-height:1.15;margin:0 0 10px;text-wrap:balance}.empty p{color:var(--muted);margin:0 0 18px}.examples{display:flex;flex-wrap:wrap;gap:8px}.example{text-align:left;padding:9px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-size:15px}.example:hover{border-color:var(--accent);background:var(--tint)}.composer{display:flex;gap:10px;align-items:flex-end;padding:12px 0 max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg)}.composer textarea{flex:1;min-width:0;resize:none;max-height:40vh;field-sizing:content;min-height:46px;padding:11px 14px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);font-size:16px}.composer textarea[aria-invalid=true]{border-color:var(--err)}.composer-side{display:grid;justify-items:center;gap:2px}.count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;min-height:14px}.count.over{color:var(--err)}.send{width:46px;height:46px;border-radius:50%;border:0;display:grid;place-items:center;background:var(--accent);color:#fff}@media (prefers-reduced-motion: reduce){.typing span{animation:none;opacity:.6}.swap{transition:none}}.chip.on:disabled{opacity:1}
