:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #17251f; background: #f5f7f2; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top left, #d5f2e4, transparent 38%), #f6f8f4; }
.app-shell { width: min(960px, 100%); }
header { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 24px; gap: 18px; }
header p { color: #5d6d63; margin: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; color: #124f3b; }
.brand-logo { width: 46px; height: 46px; object-fit: cover; border-radius: 12px; border: 1px solid #dce8df; background: #fff; box-shadow: 0 6px 18px rgba(18, 104, 71, 0.12); }
.translator { padding: 28px; border: 1px solid #d7e2db; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px #1f3d3016; }
.language-row { display: flex; align-items: end; gap: 14px; margin-bottom: 22px; }
label { display: grid; gap: 7px; flex: 1; color: #52635a; font-size: .82rem; font-weight: 700; }
select { width: 100%; padding: 11px; border: 1px solid #cedbd3; border-radius: 9px; color: #24352d; background: #fff; font: inherit; }
.swap { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid #cedbd3; border-radius: 50%; background: #f2f7f3; color: #176d4b; font-size: 1.2rem; cursor: pointer; }
.translation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { min-height: 260px; padding: 17px; border: 1px solid #d8e4dc; border-radius: 12px; background: #fcfdfc; }
textarea { min-height: 205px; width: 100%; resize: vertical; border: 0; outline: 0; padding: 9px 0; color: #1b2922; background: transparent; font: 1rem/1.55 inherit; }
.result-panel { display: flex; flex-direction: column; gap: 8px; color: #52635a; font-size: .82rem; font-weight: 700; }
#translated-text { margin: 4px 0; color: #17251f; white-space: pre-wrap; font-size: 1rem; font-weight: 400; line-height: 1.55; }
#translated-text.placeholder { color: #91a198; }
.details { margin: auto 0 0; color: #607267; font-size: .78rem; font-weight: 500; }
.actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.translate { padding: 11px 26px; border: 0; border-radius: 9px; background: #126847; color: #fff; font: 700 .95rem inherit; cursor: pointer; }
.translate:disabled { opacity: .65; cursor: wait; }
@media (max-width: 640px) { body { padding: 18px; } header, .language-row { align-items: stretch; flex-direction: column; } .translator { padding: 18px; } .swap { align-self: center; } .translation-grid { grid-template-columns: 1fr; } }
