/* kruti.css — styles for the Kruti Dev → Unicode / English tool only.
   Kept in its own file so style.css is not touched. Uses the same design
   tokens (--line, --field, --ink, --g1 …) as the rest of the app. */

.convert-cta__row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.kd .kd-hi { font-family: 'Noto Sans Devanagari', Inter, sans-serif; }

.kd-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 16px;
}
@media (max-width: 860px) { .kd-body { grid-template-columns: 1fr; } }

.kd-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kd-col > .btn { align-self: flex-start; }

.kd-step { margin: 4px 0 0; font-size: 0.9rem; font-weight: 600; }
.kd-step span { font-weight: 400; color: var(--ink-muted); font-size: 0.8rem; }

.kd-note { margin: 0; font-size: 0.78rem; color: var(--ink-muted); }

.kd-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
}
.kd-area:focus { outline: 2px solid color-mix(in srgb, var(--g2) 45%, transparent); outline-offset: 1px; }
.kd-area--src { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; }
.kd-area--out { font-family: 'Noto Sans Devanagari', Inter, sans-serif; min-height: 260px; }

.kd-row { display: flex; gap: 8px; flex-wrap: wrap; }

.kd-info {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--g2) 12%, transparent);
  color: var(--g3);
}
.kd-info--warn { background: color-mix(in srgb, var(--saffron) 16%, transparent); color: #8a5a00; }

/* ---- Stage 2: English translation ---- */
.kd-tr { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.kd-tr__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kd-left { font-size: 0.8rem; color: var(--ink-muted); }
.kd-progress { align-self: center; font-size: 0.84rem; color: var(--g3); }
.kd-area--en { font-family: Inter, 'Noto Sans Devanagari', sans-serif; min-height: 240px; }

/* Checkbox in the Unicode → Kruti Dev converter controls */
.conv-join { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ink-muted); cursor: pointer; }
.conv-join input { width: 15px; height: 15px; accent-color: var(--g2); }

.conv-info__warn { color: #8a5a00; font-weight: 500; }

/* ---- Legal Writer: language first ---- */
.lw-langrow { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lw-langrow__label { font-size: 0.86rem; font-weight: 600; }
.lw-langrow__note { font-size: 0.76rem; color: var(--ink-muted); max-width: 520px; }
.lw-langs { display: flex; gap: 10px; }
.lw-lang {
  padding: 10px 26px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--field); color: var(--ink); font: inherit; font-size: 0.95rem; cursor: pointer;
}
.lw-lang:hover { border-color: var(--g2); }
.lw-lang.is-active { background: var(--grad); color: #04122b; border-color: transparent; font-weight: 600; }

/* Locked until a language is chosen — visible, so people see what is coming,
   but not clickable, so nothing is filled in the wrong language. */
.is-locked { opacity: 0.45; pointer-events: none; filter: grayscale(0.4); }

/* Line under the dropzone: why a login is asked for, and what it gives. */
.drop-login { margin: 12px 0 0; font-size: 0.84rem; color: var(--ink-muted); }
.drop-login b { color: var(--g3); }
