/* ==========================================================================
   vBol free tools (/tools/...). Loaded after site.css and built only from
   its tokens, so light and dark mode follow the rest of the site.
   --f-native is set on <body> by a language page to that script's Anek face.
   ========================================================================== */

.vt-native, .vt-sample, .vt-text{
  font-family:var(--f-native, var(--f-display)), "Nirmala UI", "Noto Sans", system-ui, sans-serif;
}
.head .vt-native{ font-size:clamp(17px,2vw,19px); color:var(--marigold); font-weight:600;
  margin:12px 0 0; line-height:1.5; }

/* ---------------- the tool ---------------- */
.vt{
  max-width:760px; margin:28px 0 8px; padding:22px; border:1px solid var(--rule);
  border-radius:16px; background:var(--paper-2);
}
@media(max-width:560px){ .vt{ padding:16px; border-radius:14px; } }
.vt-h{ font-size:20px; letter-spacing:-0.01em; margin:0 0 16px; }

.vt label{ display:block; font-weight:700; font-size:15px; color:var(--ink); margin-bottom:6px; }
.vt-field{ margin-bottom:16px; }
.vt select{
  width:100%; max-width:360px; font:inherit; font-size:16px; color:var(--ink);
  background:var(--paper); border:1px solid var(--rule); border-radius:9px; padding:10px 12px;
}
.vt select:focus-visible, .vt textarea:focus-visible{ outline:2px solid var(--indigo-lt); outline-offset:2px; }

.vt-inputs{ display:flex; align-items:center; gap:10px 12px; flex-wrap:wrap; }
.vt-or{ font-family:var(--f-mono); font-size:12px; color:var(--ink-3); }
.vt .btn{ min-height:44px; }
.vt .btn[disabled]{ opacity:.55; cursor:not-allowed; }
.vt-file{ display:none; }
.vt-hint{ font-size:14px; color:var(--ink-3); margin:10px 0 0; }

.vt-rec .vt-dot{ width:10px; height:10px; border-radius:50%; background:#fff; flex:none; }
.vt-rec.is-recording{ background:#C0392B; }
.vt-rec.is-recording .vt-dot{ animation:vt-pulse 1s ease-in-out infinite; }
@keyframes vt-pulse{ 50%{ opacity:.25; } }
@media (prefers-reduced-motion: reduce){ .vt-rec.is-recording .vt-dot{ animation:none; } }

.vt-timer{ font-family:var(--f-mono); font-size:15px; color:var(--ink); margin-top:14px; }
.vt-clip{ margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.vt-clip span{ font-size:14px; color:var(--ink-2); overflow-wrap:anywhere; }
.vt-clip audio{ width:100%; max-width:420px; }

/* Honeypot: off-screen for people, still in the form for bots. */
.vt-hp{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }

.vt-go{ margin-top:18px; }
.vt-status{ min-height:1.5em; margin:12px 0 0; font-size:15px; color:var(--ink-2); }
.vt-status.is-error{ color:#B3261E; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .vt-status.is-error{ color:#FF8A80; } }
:root[data-theme="dark"] .vt-status.is-error{ color:#FF8A80; }

.vt-result{ margin-top:18px; border-top:1px solid var(--rule-soft); padding-top:16px; }
.vt-result-head{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; flex-wrap:wrap; }
.vt-detected{ font-family:var(--f-mono); font-size:12px; color:var(--indigo); }
.vt-text{
  width:100%; font-size:17px; line-height:1.6; color:var(--ink); background:var(--paper);
  border:1px solid var(--rule); border-radius:10px; padding:12px 14px; resize:vertical;
}
.vt-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.vt-translation{ margin-top:18px; }

.vt-remaining{ font-size:14px; color:var(--ink-3); margin:16px 0 0; }
.vt-privacy{ font-size:13.5px; color:var(--ink-3); margin:6px 0 0; }

/* ---------------- sidebar bits ---------------- */
.box .vt-more{ display:block; text-align:center; margin-top:12px; font-size:14.5px;
  color:var(--panel-ink); }
.vt-langs{ list-style:none; padding:0; margin:10px 0 0; display:flex; flex-direction:column; gap:6px;
  font-size:15px; }
.vt-langs a{ text-decoration:none; font-weight:600; }
.vt-langs a:hover{ text-decoration:underline; }
