:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #282e30;
  background: #fafaf8;
  font-synthesis: none;
  --accent: #35695b;
  --muted: #959b98;
  --line: #e5e8e3;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, textarea, input { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--accent); }
button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.site-header { height: 100px; margin: 0 5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-symbol { position: relative; width: 37px; height: 35px; color: var(--accent); }
.brand-symbol span { display: grid; place-items: center; position: absolute; width: 25px; height: 26px; border: 1.4px solid var(--accent); border-radius: 5px; font-size: 15px; line-height: 1; background: #fafaf8; }
.brand-symbol span:first-child { top: 0; left: 0; }
.brand-symbol span:last-child { bottom: 0; right: 0; background: var(--accent); color: #fff; font-size: 19px; }
.brand-name { display: flex; align-items: center; font-size: 21px; font-weight: 600; letter-spacing: 2px; }
.brand-divider { height: 15px; width: 1px; background: #d8ddd8; margin: 0 13px; }
.brand-en { font-size: 11px; letter-spacing: 2.8px; font-weight: 500; color: #79817c; }
.header-note { color: #8c948e; font-size: 12px; letter-spacing: 1px; }
.header-actions { display: flex; align-items: center; gap: 25px; }
.logout-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; }
.logout-button:disabled { opacity: .5; }
main { width: min(1080px, 90%); margin: 0 auto; flex: 1; padding-top: clamp(44px, 8vh, 82px); padding-bottom: 70px; }
.intro { margin-bottom: 40px; }
.eyebrow { display: flex; gap: 8px; align-items: center; color: var(--accent); font-size: 11px; letter-spacing: 2px; margin-bottom: 17px; }
.eyebrow > span { height: 5px; width: 5px; background: var(--accent); border-radius: 50%; }
h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: 1.5px; line-height: 1.45; font-weight: 500; margin: 0; }
.title-dot { color: var(--accent); }
.intro p { font-size: 13px; color: #8b938d; letter-spacing: .6px; margin: 13px 0 0; }
.translator { background: #fff; border: 1px solid #dce2dc; border-radius: 16px; box-shadow: 0 8px 32px #263d2e04; overflow: hidden; }
.language-bar { height: 71px; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; border-bottom: 1px solid var(--line); padding: 0 28px; position: relative; }
.language { display: flex; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; }
.source-language { color: var(--accent); }
.source-language::after { content: ""; position: absolute; left: 28px; bottom: -1px; height: 2px; width: 31px; background: var(--accent); }
.target-language { padding-left: 26px; }
.native-name { font-size: 12px; color: #a0a59f; font-weight: 400; letter-spacing: .2px; }
.native-name[lang="he"] { font-size: 14px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #858f88; transition: background .15s, color .15s; }
.icon-button:hover:not(:disabled) { color: var(--accent); background: #edf3ed; }
.icon-button:disabled { color: #c8cec7; }
.swap-button { justify-self: center; color: #737f77; }
.panels { display: grid; grid-template-columns: 1fr 1fr; }
.panel { min-width: 0; display: flex; flex-direction: column; }
.input-panel { border-right: 1px solid var(--line); }
.text-area-wrap { position: relative; display: flex; flex: 1; }
textarea, .result { font-size: 22px; font-weight: 400; line-height: 1.85; letter-spacing: .2px; min-height: 260px; }
textarea { resize: none; width: 100%; padding: 26px 55px 20px 28px; border: 0; background: transparent; color: #303936; display: block; border-radius: 0; }
textarea:focus { outline: 0; }
.input-panel:focus-within { box-shadow: inset 0 0 0 1px #35695b28; }
textarea::placeholder { color: #bbc1bb; font-size: 21px; }
textarea[dir="rtl"] { padding: 26px 28px 20px 55px; }
.clear-button { position: absolute; right: 12px; top: 21px; width: 30px; height: 30px; }
.text-area-wrap:has(textarea[dir="rtl"]) .clear-button { right: auto; left: 12px; }
.clear-button svg { width: 18px; height: 18px; }
.output-panel { background: #f6f8f5; }
.result { flex: 1; padding: 26px 28px 20px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.result[lang="he"]:not(.placeholder) { font-size: 24px; }
.result.placeholder { font-size: 21px; color: #b2bab2; direction: ltr; text-align: left; }
.result.is-loading { font-size: 18px; color: #8a978c; direction: ltr; text-align: left; }
.panel-toolbar { min-height: 61px; padding: 0 27px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; font-size: 12px; color: #919a92; background: none; border: 0; }
.text-button:hover { color: var(--accent); }
.text-button svg { width: 16px; height: 16px; }
.character-count { color: #8a958b; font-size: 11px; font-variant-numeric: tabular-nums; }
.character-count span { color: #b5bcb4; }
.character-count.is-over { color: #bb443d; }
.result-caption { font-size: 11px; color: #a4aea2; letter-spacing: .25px; }
.copy-button { width: 30px; height: 30px; margin-right: -4px; }
.copy-button svg { width: 18px; height: 18px; }
.action-bar { border-top: 1px solid var(--line); min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 16px 28px; }
.keyboard-hint { display: inline-flex; align-items: center; gap: 5px; color: #b0b7af; font-size: 11px; }
.keyboard-hint > span:last-child { margin-left: 5px; }
kbd { min-width: 20px; padding: 3px 5px; border: 1px solid #e4e8e2; border-radius: 4px; background: #fafbf9; font: inherit; color: #8c978b; text-align: center; }
.translate-button { min-width: 120px; height: 43px; display: inline-flex; justify-content: center; align-items: center; gap: 20px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: white; font-size: 14px; transition: background .15s, box-shadow .15s; }
.translate-button:hover:not(:disabled) { background: #275446; box-shadow: 0 3px 8px #35695b20; }
.translate-button:disabled { background: #dfe7df; color: #9fae9f; }
.translate-button svg { width: 18px; height: 18px; }
.spinner { display: none; height: 15px; width: 15px; border: 1.5px solid #a3b7aa; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.translate-button.is-loading { gap: 10px; background: var(--accent); color: white; }
.translate-button.is-loading .spinner { display: block; }
.translate-button.is-loading svg { display: none; }
.below-translator { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: #a3aba1; font-size: 11px; letter-spacing: .6px; padding: 0 2px; }
.language-note { display: inline-flex; align-items: center; gap: 12px; }
.language-note > span[lang="he"] { font-size: 13px; }
.language-note > span[aria-hidden] { color: #b4beb2; }
.message { border: 1px solid #dce6dc; border-radius: 8px; padding: 12px 16px; margin-top: 14px; color: #53634f; background: #f3f7f0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.message.is-error { color: #9a4d3b; border-color: #eeddd5; background: #fbf4ef; }
.site-footer { margin: 0 5%; min-height: 67px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #a1aaa0; letter-spacing: 1px; }
.footer-dot { margin: 0 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.login-main { display: grid; place-items: center; padding: 48px 0 64px; width: 92%; }
.login-card { width: min(410px, 100%); background: #fff; padding: 34px; border: 1px solid #dce2dc; border-radius: 16px; box-shadow: 0 8px 32px #263d2e04; }
.login-lock { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 23px; border-radius: 12px; background: #edf3ed; color: var(--accent); }
.login-lock svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-card h1 { font-size: 25px; letter-spacing: .8px; }
.login-description { margin: 10px 0 30px; color: #8b938d; font-size: 13px; line-height: 1.6; }
.login-card label { display: block; margin-bottom: 9px; font-size: 12px; color: #68746a; }
.login-card input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #dce2dc; border-radius: 7px; background: #fafbf9; color: #303936; font-size: 16px; }
.login-card input::placeholder { color: #a5afa4; font-size: 13px; }
.login-card input[aria-invalid="true"] { border-color: #bf7c69; }
.login-card .translate-button { width: 100%; margin-top: 18px; }
.login-message { font-size: 12px; color: #9a4d3b; line-height: 1.7; margin: 11px 0 0; overflow-wrap: anywhere; }
.login-note { margin: 20px 0 0; font-size: 11px; line-height: 1.6; color: #9aa599; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1500px) { main { padding-top: 95px; } }
@media (max-width: 700px) {
  .site-header { height: 77px; }
  .header-note { display: none; }
  .brand-name { font-size: 19px; }
  main { padding-top: 39px; padding-bottom: 46px; width: 92%; }
  .intro { margin-bottom: 27px; padding: 0 3px; }
  .eyebrow { font-size: 10px; margin-bottom: 13px; }
  h1 { font-size: 28px; letter-spacing: 1px; }
  .intro p { font-size: 12px; }
  .translator { border-radius: 12px; }
  .language-bar { height: 66px; padding: 0 18px; grid-template-columns: 1fr 34px 1fr; }
  .language { font-size: 14px; gap: 6px; flex-direction: column; line-height: 1.1; }
  .native-name { font-size: 10px; }
  .native-name[lang="he"] { font-size: 12px; }
  .source-language::after { left: 18px; width: 28px; }
  .target-language { padding-left: 14px; }
  .panels { grid-template-columns: 1fr; }
  .input-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  textarea, .result { min-height: 170px; font-size: 20px; }
  textarea { padding: 20px 48px 12px 20px; }
  textarea[dir="rtl"] { padding: 20px 20px 12px 48px; }
  textarea::placeholder, .result.placeholder { font-size: 19px; }
  .result { padding: 20px 20px 12px; }
  .result[lang="he"]:not(.placeholder) { font-size: 23px; }
  .clear-button { top: 16px; right: 9px; }
  .panel-toolbar { min-height: 48px; padding: 0 20px 10px; }
  .output-toolbar { min-height: 42px; }
  .action-bar { padding: 14px 18px; min-height: 73px; }
  .keyboard-hint { display: none; }
  .translate-button { width: 100%; height: 43px; }
  .below-translator { font-size: 10px; margin-top: 17px; }
  .site-footer { min-height: 61px; font-size: 9px; letter-spacing: .3px; }
  .login-main { padding: 34px 0 45px; }
  .login-card { padding: 28px 24px; }
  .login-card h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
