:root {
  color: #17172b;
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Noto Sans Devanagari',
    'Nirmala UI',
    sans-serif;
  font-synthesis: none;
  --ink: #17172b;
  --muted: #696980;
  --canvas: #f5f5ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #fff;
  --line: rgba(67, 64, 130, 0.12);
  --line-strong: rgba(67, 64, 130, 0.22);
  --brand: #4f46e5;
  --brand-strong: #3730a3;
  --brand-soft: #eeedff;
  --accent: #0891b2;
  --accent-soft: #e6f8fc;
  --warm: #f9735b;
  --warm-soft: #fff0ec;
  --focus: rgba(79, 70, 229, 0.2);
  --shadow-sm: 0 1px 2px rgba(32, 31, 69, 0.04), 0 10px 28px rgba(55, 48, 163, 0.07);
  --shadow-lg: 0 28px 80px rgba(45, 39, 124, 0.14);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}
body {
  color: var(--ink);
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 4%, rgba(249, 115, 91, 0.11), transparent 27rem),
    radial-gradient(circle at 92% 9%, rgba(79, 70, 229, 0.14), transparent 30rem),
    radial-gradient(circle at 64% 68%, rgba(8, 145, 178, 0.07), transparent 28rem), var(--canvas);
}
button,
textarea,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  width: min(78rem, calc(100% - 3rem));
  min-height: 100vh;
  margin: auto;
  padding: 1.25rem 0 1rem;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.52rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 38px rgba(45, 39, 124, 0.08);
  backdrop-filter: blur(22px) saturate(145%);
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-copy {
  display: grid;
  gap: 0.02rem;
  line-height: 1.05;
}
.brand-copy strong {
  font-size: 0.94rem;
  font-weight: 820;
  letter-spacing: -0.025em;
}
.brand-copy strong span {
  color: var(--brand);
}
.brand-copy small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.back-arrow {
  display: inline-flex;
  width: 1.9rem;
  height: 1.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--surface-solid);
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}
.brand:hover .back-arrow {
  color: white;
  background: var(--brand);
  transform: translateX(-2px);
}
.brand-mark {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  color: white;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  font-family: 'Noto Sans Devanagari', 'Nirmala UI', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.26);
}
.product-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.24rem;
  transform: translateX(-50%);
  border: 1px solid rgba(79, 70, 229, 0.08);
  border-radius: 999px;
  background: rgba(238, 237, 255, 0.72);
}
.product-nav a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.34rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}
.product-nav a:hover {
  color: var(--brand-strong);
}
.product-nav a[aria-current='page'] {
  color: var(--brand-strong);
  background: var(--surface-solid);
  box-shadow: 0 5px 16px rgba(55, 48, 163, 0.12);
}
.product-nav-icon {
  color: var(--warm);
  font-size: 0.78rem;
}
.privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffffc9;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.privacy i,
.ready-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.13);
}
.intro {
  margin: 4.7rem auto 3.2rem;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(249, 115, 91, 0.2);
  border-radius: 999px;
  color: #b23c2c;
  background: var(--warm-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
h1 {
  margin: 0;
  font-family: 'Noto Sans Devanagari', 'Kohinoor Devanagari', sans-serif;
  font-size: clamp(2.55rem, 7vw, 5.35rem);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
h1 span {
  color: var(--brand);
}
.lede {
  max-width: 47.5rem;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.converter {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}
.toolbar,
.pane-heading,
.field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.toolbar {
  padding: 0 2px 18px;
}
.toolbar h2 {
  margin: 0;
  font-size: 19px;
}
.toolbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
}
.direction-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(32rem, 100%);
  margin: 1.75rem auto 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--brand-soft);
}
.direction-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}
.direction-switch button[aria-pressed='true'] {
  color: var(--brand-strong);
  background: white;
  box-shadow: var(--shadow-sm);
}
.direction-switch b {
  color: var(--warm);
  font-size: 16px;
}
.file-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(255, 255, 255, 0.86));
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}
.file-import[data-dragging='true'] {
  border-color: var(--brand);
  background: #e8e7ff;
  box-shadow: inset 0 0 0 2px var(--focus);
}
.file-import[data-busy='true'] {
  border-style: solid;
}
.import-copy,
.import-actions,
.import-result > div {
  display: flex;
  align-items: center;
}
.import-copy {
  min-width: 0;
  gap: 11px;
}
.import-icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  font-size: 20px;
  font-weight: 800;
}
.import-copy strong {
  font-size: 14px;
}
.import-copy p,
.import-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.import-actions {
  gap: 7px;
}
.import-button {
  color: white;
  background: var(--brand);
}
.import-button:hover {
  background: var(--brand-strong);
}
.import-button:disabled {
  cursor: wait;
  opacity: 0.58;
}
.import-progress,
.import-result,
.import-note {
  grid-column: 1 / -1;
}
.import-progress {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.import-progress[hidden],
.import-result[hidden] {
  display: none;
}
.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #deddf4;
}
.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 180ms ease;
}
.import-progress span {
  color: var(--muted);
  font-size: 11px;
}
.import-result {
  position: relative;
  padding: 10px 44px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.import-result > div {
  flex-wrap: wrap;
  gap: 5px 10px;
}
.import-result strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-result span {
  color: var(--muted);
  font-size: 10px;
}
.import-result > button {
  position: absolute;
  top: 5px;
  right: 6px;
}
.import-result ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #8a5c2f;
  font-size: 10px;
  line-height: 1.5;
}
.import-note {
  margin-top: -2px;
}
.button,
.text-button {
  border: 0;
  border-radius: 11px;
  font-weight: 750;
}
.button {
  padding: 10px 15px;
}
.secondary {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.ghost {
  background: #f0f0fa;
  color: var(--muted);
}
.text-button {
  padding: 6px 9px;
  color: var(--brand-strong);
  background: transparent;
}
.text-button:hover {
  background: var(--brand-soft);
}
.text-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.strong {
  color: #fff;
  background: var(--brand);
}
.strong:hover {
  background: var(--brand-strong);
}
.panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.25rem minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.pane {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-solid);
}
.output-pane {
  background: #fafaff;
  border-color: var(--line-strong);
}
.pane-heading {
  min-height: 50px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
}
.pane-heading label {
  font-size: 14px;
  font-weight: 800;
}
.ready-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}
textarea,
.output-preview {
  display: block;
  width: 100%;
  height: clamp(18rem, 42vh, 32rem);
  min-height: 18rem;
  max-height: 32rem;
  overflow: auto;
  resize: none;
  padding: 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Noto Sans Devanagari', 'Kohinoor Devanagari', ui-monospace, monospace;
  font-size: 21px;
  line-height: 1.65;
  scrollbar-color: rgba(79, 70, 229, 0.38) transparent;
  scrollbar-width: thin;
}
textarea::-webkit-scrollbar,
.output-preview::-webkit-scrollbar {
  width: 0.55rem;
}
textarea::-webkit-scrollbar-thumb,
.output-preview::-webkit-scrollbar-thumb {
  border: 0.13rem solid transparent;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.38);
  background-clip: padding-box;
}
.output-preview:empty::before {
  color: #9696aa;
  content: attr(data-placeholder);
}
.output-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.output-pane textarea[hidden] {
  display: none;
}
.clipboard-fallback {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.input-pane textarea:focus {
  box-shadow: inset 0 0 0 2px var(--focus);
}
.output-pane textarea {
  color: var(--brand-strong);
}
.mixed-legacy-preview .legacy-run {
  font-family: 'Kruti Dev 010', 'Courier New', ui-monospace, monospace;
}
.mixed-legacy-preview .protected-run {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.field-meta {
  min-height: 42px;
  padding: 7px 12px 8px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.field-meta div {
  display: flex;
  gap: 3px;
}
.convert-button {
  display: inline-flex;
  width: 4.75rem;
  min-width: 4.75rem;
  min-height: 3rem;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.4rem 0.48rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}
.convert-button span:first-child {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
}
.convert-button span:last-child {
  display: block;
  min-width: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.options {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafaff;
}
.options summary {
  padding: 13px 16px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 12px;
  padding: 0 14px 14px;
}
.reverse-option-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}
.options-note {
  margin: -2px 16px 14px;
  color: #7b847e;
  font-size: 11px;
  line-height: 1.45;
}
.check-row,
.word-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: white;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.check-row span,
.word-option span {
  min-width: 0;
}
.check-row strong,
.check-row small,
.word-option strong,
.word-option small {
  display: block;
}
.check-row strong,
.word-option strong {
  font-size: 13px;
}
.check-row small,
.word-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.word-option {
  justify-content: space-between;
}
.word-option input {
  width: 52%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}
.word-option input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus);
}
.status {
  min-height: 20px;
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.status[data-kind='success'] {
  color: var(--brand-strong);
}
.status[data-kind='error'] {
  color: #a23e30;
}
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.notes article {
  display: flex;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff8f;
}
.notes article > span {
  color: var(--warm);
  font-size: 11px;
  font-weight: 850;
}
.notes strong {
  font-size: 13px;
}
.notes p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-top: 0.65rem;
  padding: 0.52rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(238, 237, 255, 0.74));
  box-shadow: 0 10px 30px rgba(45, 39, 124, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
}
.footer-identity,
.footer-promise,
.footer-links {
  display: flex;
  align-items: center;
}
.footer-identity {
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 820;
}
.footer-mini-mark {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: white;
  font-size: 0.67rem;
}
.footer-promise {
  gap: 0.4rem;
}
.footer-promise::before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.11);
  content: '';
}
.footer-links {
  gap: 0.75rem;
}
.footer-links a {
  color: var(--brand-strong);
  font-weight: 740;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

:is(button, input, textarea, summary, a):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

@media (min-width: 54.01rem) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100svh;
    min-height: 0;
    padding: 0.55rem 1.5rem 0.75rem;
  }

  .topbar {
    min-height: 3.15rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.68rem;
    font-size: 1rem;
  }

  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(1.5rem, 4vw, 4.5rem);
    margin: 0;
    padding: 0.35rem 0 0.8rem;
    text-align: left;
  }

  .eyebrow {
    display: none;
  }

  h1 {
    font-size: clamp(2rem, 2.8vw, 3rem);
    line-height: 1.08;
  }

  .lede {
    max-width: 43rem;
    margin: 0.38rem 0 0;
    font-size: clamp(0.8rem, 1.15vw, 0.94rem);
    line-height: 1.45;
  }

  .direction-switch {
    width: min(29rem, 38vw);
    margin: 0;
    padding: 0.35rem;
    border-color: rgba(255, 255, 255, 0.9);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-sm);
  }

  .direction-switch button {
    min-height: 2.55rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }

  .converter {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 0.7rem 0.85rem;
    border-radius: 1.35rem;
  }

  .toolbar {
    flex: 0 0 auto;
    padding: 0 0.15rem 0.45rem;
  }

  .toolbar h2 {
    font-size: 0.95rem;
  }

  .toolbar p {
    font-size: 0.67rem;
  }

  .button {
    padding: 0.42rem 0.72rem;
    font-size: 0.72rem;
  }

  .file-import {
    grid-template-columns: minmax(0, 1fr) auto;
    flex: 0 0 auto;
    gap: 0.2rem 0.8rem;
    margin-bottom: 0.5rem;
    padding: 0.42rem 0.7rem;
    border-radius: 0.8rem;
  }

  .import-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.55rem;
    font-size: 0.95rem;
  }

  .import-copy {
    gap: 0.55rem;
  }

  .import-copy strong {
    font-size: 0.72rem;
  }

  .import-copy p,
  .import-note {
    margin-top: 0;
    font-size: 0.59rem;
    line-height: 1.35;
  }

  .import-note {
    margin-left: 2.35rem;
  }

  .import-progress,
  .import-result {
    margin-top: 0.25rem;
  }

  .panes {
    min-height: 0;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 0.65rem;
  }

  .pane {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 1rem;
  }

  .pane-heading {
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
  }

  .pane-heading label {
    font-size: 0.72rem;
  }

  textarea,
  .output-preview {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0.65rem 0.8rem;
    font-size: clamp(0.95rem, 1.25vw, 1.18rem);
    line-height: 1.55;
  }

  .field-meta {
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.62rem;
  }

  .convert-button {
    width: 4.75rem;
    min-width: 4.75rem;
    min-height: 3rem;
    align-self: center;
    border-radius: 999px;
  }

  .options {
    flex: 0 0 auto;
    margin-top: 0.45rem;
    border-radius: 0.75rem;
  }

  .options summary {
    padding: 0.42rem 0.75rem;
    font-size: 0.67rem;
  }

  .option-grid,
  .reverse-option-grid {
    gap: 0.45rem;
    padding: 0 0.55rem 0.5rem;
  }

  .check-row,
  .word-option {
    gap: 0.45rem;
    padding: 0.45rem;
  }

  .check-row strong,
  .word-option strong {
    font-size: 0.68rem;
  }

  .check-row small,
  .word-option small,
  .options-note {
    font-size: 0.57rem;
  }

  .options-note {
    margin: -0.1rem 0.75rem 0.5rem;
  }

  .status {
    min-height: 0.9rem;
    flex: 0 0 auto;
    margin: 0.3rem 0.2rem 0;
    font-size: 0.62rem;
  }

  .notes {
    display: none;
  }

  footer {
    min-height: 2.35rem;
    margin-top: 0.42rem;
    padding: 0.34rem 0.55rem;
    font-size: 0.58rem;
  }
}

@media (min-width: 54.01rem) and (max-width: 72rem) {
  .intro {
    column-gap: 1.25rem;
  }

  h1 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
  }

  .direction-switch {
    width: min(25rem, 39vw);
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 22px, 680px);
    padding-top: 14px;
  }
  .intro {
    margin: 34px auto 23px;
  }
  .product-nav {
    position: static;
    margin-left: auto;
    transform: none;
  }
  .lede {
    font-size: 15px;
  }
  .converter {
    padding: 14px;
    border-radius: 22px;
  }
  .panes {
    grid-template-columns: 1fr;
  }
  .direction-switch {
    grid-template-columns: 1fr;
  }
  .file-import {
    grid-template-columns: 1fr;
  }
  .import-actions {
    justify-content: flex-start;
  }
  .convert-button {
    width: 100%;
    height: 45px;
    grid-auto-flow: column;
    gap: 7px;
    border-radius: 13px;
  }
  .convert-button span:first-child {
    transform: rotate(90deg);
  }
  .option-grid,
  .reverse-option-grid,
  .notes {
    grid-template-columns: 1fr;
  }
  textarea,
  .output-preview {
    height: 16rem;
    min-height: 16rem;
  }
  .toolbar {
    align-items: flex-start;
  }
  .toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 14px, 480px);
  }
  .back-arrow {
    width: 1.75rem;
    height: 1.75rem;
  }
  .brand {
    gap: 0.42rem;
  }
  .brand-copy small,
  .privacy span,
  .product-nav a span:not(.product-nav-icon) {
    display: none;
  }
  .product-nav a {
    min-height: 1.85rem;
    padding: 0.3rem 0.55rem;
  }
  .privacy {
    padding: 8px 10px;
    font-size: 11px;
  }
  .intro {
    margin-top: 28px;
  }
  .intro br {
    display: none;
  }
  h1 {
    font-size: 36px;
  }
  .toolbar {
    display: block;
  }
  .toolbar-actions {
    margin-top: 12px;
    justify-content: flex-start;
  }
  .word-option {
    align-items: stretch;
    flex-direction: column;
  }
  .word-option input {
    width: 100%;
  }
  footer {
    justify-content: center;
    text-align: center;
  }
  .footer-promise {
    width: 100%;
    justify-content: center;
    order: 3;
  }
}
