/* Utilverso: estilos do site e componentes reaproveitáveis das ferramentas */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format('woff2');
}

:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --sunken: #f5f7fb;
  --ink: #14213d;
  --muted: #56627a;
  --line: #cbd3e1;
  --kit: #f6c324;
  --kit-soft: #fdf3cf;
  --drop-line: #14213d;
  --head: #14213d;
  --head-ink: #f4f6fb;
  --ok: #17784e;
  --err: #b3261e;
  --focus: #2f5bea;
  --link: #24479e;
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  color-scheme: light;
}

/* Temas. Sem escolha (sem data-theme no <html>), segue o sistema: claro ou escuro.
   A escolha no menu do cabeçalho grava data-theme. Para criar um tema novo, copie um bloco
   abaixo, troque as cores e adicione o tema em THEMES (src/layout.mjs) e em i18n.mjs. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f1626;
    --surface: #172238;
    --sunken: #121b2e;
    --ink: #e7ecf5;
    --muted: #9aa6bd;
    --line: #2f3d59;
    --kit-soft: #1c2944;
    --drop-line: #f6c324;
    --head: #0a101d;
    --head-ink: #e7ecf5;
    --ok: #4cc38a;
    --err: #ff8a80;
    --focus: #8fb0ff;
    --link: #a9c1ff;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0f1626;
  --surface: #172238;
  --sunken: #121b2e;
  --ink: #e7ecf5;
  --muted: #9aa6bd;
  --line: #2f3d59;
  --kit-soft: #1c2944;
  --drop-line: #f6c324;
  --head: #0a101d;
  --head-ink: #e7ecf5;
  --ok: #4cc38a;
  --err: #ff8a80;
  --focus: #8fb0ff;
  --link: #a9c1ff;
  color-scheme: dark;
}

/* Sépia: papel quente, confortável para ler */
:root[data-theme='sepia'] {
  --bg: #ece3d1;
  --surface: #faf5ea;
  --sunken: #f2eadb;
  --ink: #3a2e21;
  --muted: #6d5d4a;
  --line: #d6c8af;
  --kit: #f2b931;
  --kit-soft: #f6e5bb;
  --drop-line: #3a2e21;
  --head: #3a2e21;
  --head-ink: #faf5ea;
  --ok: #4c7526;
  --err: #a3372a;
  --focus: #2f5bea;
  --link: #7a4a12;
  color-scheme: light;
}

/* Floresta: verde escuro */
:root[data-theme='forest'] {
  --bg: #0e1c16;
  --surface: #15281f;
  --sunken: #112219;
  --ink: #e3eee6;
  --muted: #9cb4a5;
  --line: #2a4436;
  --kit-soft: #1d3328;
  --drop-line: #f6c324;
  --head: #09140f;
  --head-ink: #e3eee6;
  --ok: #5fd39a;
  --err: #ff8a80;
  --focus: #9fd0ff;
  --link: #9fe0bd;
  color-scheme: dark;
}

/* Alto contraste: preto, branco e amarelo, para quem enxerga com dificuldade */
:root[data-theme='contrast'] {
  --bg: #000000;
  --surface: #000000;
  --sunken: #141414;
  --ink: #ffffff;
  --muted: #f0f0f0;
  --line: #ffffff;
  --kit: #ffe600;
  --kit-soft: #1f1c00;
  --drop-line: #ffe600;
  --head: #000000;
  --head-ink: #ffffff;
  --ok: #5cff95;
  --err: #ff7070;
  --focus: #00e5ff;
  --link: #ffe600;
  color-scheme: dark;
}
:root[data-theme='contrast'] .site-head { border-bottom: 2px solid #ffffff; }
:root[data-theme='contrast'] .site-foot { border-top: 2px solid #ffffff; }
:root[data-theme='contrast'] a { text-decoration-thickness: 2px; }

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: 12px; top: -60px; background: var(--kit); color: #14213d; padding: 8px 14px; border-radius: 6px; z-index: 50; font-weight: 650; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- cabeçalho ---------- */


.site-head { background: var(--head); color: var(--head-ink); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 750; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand .logo { width: 30px; height: 30px; color: #14213d; }
.site-head .brand .logo, .site-foot .brand .logo { color: var(--head); }
.site-head .brand .logo path, .site-foot .brand .logo path { stroke: var(--kit); }

.head-nav { display: flex; align-items: center; gap: 6px; }
.lang-link { color: var(--head-ink); text-decoration: none; font-weight: 650; font-size: 0.9rem; padding: 6px 10px; border: 1.5px solid color-mix(in srgb, var(--head-ink) 35%, transparent); border-radius: 8px; }
.lang-link:hover { border-color: var(--kit); }

/* Menu de temas */
.theme-menu summary {
  width: 38px; height: 34px; padding: 0; justify-content: center;
  border: 1.5px solid color-mix(in srgb, var(--head-ink) 35%, transparent); border-radius: 8px;
}
.theme-menu summary::after { display: none; }
.theme-menu summary:hover, .theme-menu[open] summary { border-color: var(--kit); }
.theme-menu summary svg { width: 18px; height: 18px; }
.theme-menu .theme-panel { width: 260px; display: grid; grid-template-columns: 1fr; gap: 2px; padding: 8px; }
.theme-menu .theme-panel p { margin: 4px 8px 6px; font-weight: 700; }
.theme-option {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font: inherit; font-size: 0.97rem; color: var(--ink); background: none; border: 0; border-radius: 8px;
  padding: 8px; cursor: pointer; white-space: nowrap;
}
.theme-option:hover { background: var(--sunken); }
.theme-option[aria-pressed='true'] { font-weight: 700; background: var(--sunken); }
.theme-option[aria-pressed='true']::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.theme-swatch { display: flex; flex: none; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--line); }
.theme-swatch i { display: block; width: 10px; height: 20px; }
@media (max-width: 560px) {
  .theme-menu .theme-panel { left: auto; right: 16px; width: 260px; }
}

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 650; padding: 6px 12px; border-radius: 8px; user-select: none; display: flex; align-items: center; gap: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.menu[open] summary::after { transform: translateY(1px) rotate(225deg); }
.menu summary:hover, .menu[open] summary { background: color-mix(in srgb, var(--head-ink) 12%, transparent); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30;
  width: min(92vw, 640px); max-height: 75vh; overflow: auto;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 12px; padding: 18px 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 24px;
}
.menu-group-name { display: block; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 4px; }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group li a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 0.97rem; }
.menu-group li a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) {
  .menu { position: static; }
  .menu-panel { left: 16px; right: 16px; width: auto; top: 70px; }
  .site-head .wrap { position: relative; }
}

/* ---------- títulos e textos de abertura ---------- */

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); font-weight: 780; letter-spacing: -0.03em; }

.crumbs { font-size: 0.92rem; color: var(--muted); padding-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

.hero { padding: 48px 0 32px; max-width: 760px; }
.hero--small { padding: 20px 0 20px; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 12px 0 0; max-width: 62ch; }

/* ---------- lista de ferramentas (início e grupos) ---------- */

.directory { display: grid; gap: 36px 40px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); padding-bottom: 24px; }
.directory--single { grid-template-columns: 1fr; max-width: 760px; }
.dir-group h2 { font-size: 1.05rem; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.dir-group h2 a { color: inherit; text-decoration: none; }
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list li { border-bottom: 1px solid var(--line); }
.dir-list a { display: grid; gap: 2px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.dir-list a:hover .dir-name { text-decoration: underline; text-decoration-color: var(--kit); text-decoration-thickness: 3px; }
.dir-name { font-weight: 680; font-size: 1.08rem; }
.dir-short { color: var(--muted); font-size: 0.97rem; }
.soon { color: var(--muted); padding-bottom: 24px; }
.home-about { padding: 24px 0 64px; border-top: 2px solid var(--line); }

/* ---------- página de ferramenta ---------- */

.tool-head { padding: 14px 0 22px; max-width: 820px; }

/* A bancada: o painel onde a ferramenta funciona */
.bench {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 7px 7px 0 var(--kit);
  padding: 18px;
  margin-right: 7px;
}
@media (min-width: 720px) { .bench { padding: 26px 28px; } }

.local-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.93rem; margin: 18px 0 0; }
.local-note svg { width: 16px; height: 16px; flex: none; color: var(--ok); }

.tool-body { display: grid; gap: 40px; padding: 28px 0 64px; }
@media (min-width: 960px) { .tool-body { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; } }

.related h2 { font-size: 1rem; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; }
.related a:hover { text-decoration: underline; }
@media (min-width: 960px) { .related { position: sticky; top: 20px; align-self: start; } }

/* ---------- texto explicativo ---------- */

.prose { max-width: 68ch; }
.prose h1 { margin: 36px 0 20px; }
.prose h2 { font-size: 1.55rem; font-weight: 720; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 8px; }
.prose h3 { font-size: 1.17rem; font-weight: 700; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--muted); }
.prose ol li::marker { font-weight: 700; color: var(--ink); }
.prose code { font-size: 0.92em; background: var(--sunken); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.static-page .prose { padding-bottom: 64px; }
.contact-email { font-size: 1.4rem; font-weight: 700; }

/* ---------- anúncios ---------- */

.ad { margin: 28px 0; min-height: 100px; }
.ad--dev {
  display: grid; place-items: center; min-height: 120px;
  border: 2px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 0.9rem; background: repeating-linear-gradient(-45deg, transparent 0 12px, var(--sunken) 12px 24px);
}

/* ---------- rodapé ---------- */

.site-foot { background: var(--head); color: var(--head-ink); padding: 44px 0 28px; font-size: 0.96rem; }
.site-foot a { color: var(--head-ink); }
.foot-grid { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.foot-about p { color: color-mix(in srgb, var(--head-ink) 72%, transparent); margin: 12px 0 0; max-width: 34ch; }
.foot-col h2 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.foot-col h2 a { text-decoration: none; }
.foot-col ul, .foot-legal ul { list-style: none; margin: 0; padding: 0; }
.foot-col li a { display: block; padding: 3px 0; text-decoration: none; color: color-mix(in srgb, var(--head-ink) 78%, transparent); }
.foot-col li a:hover { color: var(--head-ink); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--head-ink) 20%, transparent); }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-legal p { margin: 0; color: color-mix(in srgb, var(--head-ink) 60%, transparent); }

/* =========================================================
   Componentes das ferramentas (use estas classes no ui.html)
   ========================================================= */

/* Área de soltar arquivo */
.kv-drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 10px;
  padding: 34px 18px; border: 2px dashed var(--drop-line); border-radius: 12px;
  background: var(--kit-soft); cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.kv-drop:hover, .kv-drop.is-over { background: color-mix(in srgb, var(--kit) 40%, var(--surface)); border-style: solid; }
.kv-drop input[type='file'] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.kv-drop:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.kv-drop-icon { width: 44px; height: 44px; color: var(--ink); }
.kv-drop-title { font-size: 1.2rem; font-weight: 700; }
.kv-drop-hint { color: var(--muted); font-size: 0.95rem; }
.kv-drop--compact { padding: 16px; grid-auto-flow: column; justify-content: center; }
.kv-drop--compact .kv-drop-icon { width: 28px; height: 28px; }
.kv-drop--compact .kv-drop-title { font-size: 1rem; }

/* Botões */
.kv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: 11px 18px; min-height: 44px; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink);
}
.kv-btn:hover { background: var(--sunken); }
.kv-btn--primary { background: var(--kit); color: #14213d; border-color: #14213d; }
.kv-btn--primary:hover { background: #ffd54f; }
.kv-btn--quiet { border-color: transparent; background: transparent; color: var(--muted); padding: 8px 10px; min-height: 36px; }
.kv-btn--big { font-size: 1.15rem; padding: 14px 28px; min-height: 54px; border-radius: 12px; }
.kv-btn--quiet:hover { color: var(--ink); background: var(--sunken); }
.kv-btn[disabled], .kv-btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.kv-btn svg { width: 18px; height: 18px; }

/* Campos */
.kv-controls { display: grid; gap: 18px 28px; margin-top: 22px; }
@media (min-width: 720px) { .kv-controls { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.kv-field { display: grid; gap: 8px; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.kv-label { font-weight: 680; font-size: 0.98rem; padding: 0; }
.kv-help { color: var(--muted); font-size: 0.9rem; }
.kv-input-unit { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 10px; background: var(--surface); overflow: hidden; max-width: 220px; }
.kv-input-unit:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.kv-input-unit input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.3rem; font-weight: 700; padding: 8px 12px; font-variant-numeric: tabular-nums; }
.kv-input-unit input:focus { outline: none; }
.kv-input-unit span { display: grid; place-items: center; padding: 0 14px; background: var(--sunken); border-left: 2px solid var(--ink); font-weight: 680; }
.kv-input-unit--small input { font-size: 1.05rem; font-weight: 600; }
.kv-input { border: 2px solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; padding: 9px 12px; max-width: 220px; }
.kv-input:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.kv-textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.5; padding: 10px 12px; resize: vertical;
}
.kv-textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Chips de valores prontos */
.kv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kv-chip {
  font: inherit; font-size: 0.93rem; font-weight: 620; padding: 6px 12px; min-height: 36px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums;
}
.kv-chip:hover { border-color: var(--ink); }
.kv-chip[aria-pressed='true'] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* Seleção segmentada (radio) */
.kv-seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; width: fit-content; }
.kv-seg label { position: relative; }
.kv-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.kv-seg span { display: block; padding: 8px 16px; font-weight: 650; cursor: pointer; border-left: 2px solid var(--ink); }
.kv-seg label:first-child span { border-left: 0; }
.kv-seg input:checked + span { background: var(--ink); color: var(--surface); }
.kv-seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -5px; }
.kv-seg input:disabled + span { opacity: 0.4; cursor: not-allowed; }

.kv-range { width: 100%; accent-color: var(--ink); margin: 6px 0; }

.kv-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.kv-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* Abas */
.kv-tabs { display: flex; flex-wrap: wrap; gap: 2px; box-shadow: inset 0 -2px 0 var(--line); }
.kv-tab {
  font: inherit; font-weight: 650; font-size: 1rem; background: none; border: 0; cursor: pointer;
  padding: 10px 14px; color: var(--muted); border-bottom: 4px solid transparent;
}
.kv-tab:hover { color: var(--ink); }
.kv-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--kit); }
@media (max-width: 420px) { .kv-tab { padding: 10px 8px; font-size: 0.94rem; } }

/* Mensagens */
.kv-msg { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; border-left: 4px solid var(--muted); background: var(--sunken); font-size: 0.97rem; }
.kv-msg--err { border-left-color: var(--err); color: var(--err); }
.kv-msg--ok { border-left-color: var(--ok); }

/* Lista de arquivos reordenável (lib/filelist.js) */
.kv-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: kvfile; }
.kv-file {
  counter-increment: kvfile;
  position: relative;
  display: grid;
  /* Celular: nome em cima, opções no meio, botões embaixo. */
  grid-template-columns: auto 64px minmax(0, 1fr);
  grid-template-areas: 'grip thumb info' 'grip thumb extra' 'grip thumb actions';
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
@media (min-width: 720px) {
  .kv-file { grid-template-columns: auto 64px minmax(0, 1fr) auto auto; grid-template-areas: 'grip thumb info extra actions'; }
}
.kv-files.is-sorting .kv-file:not(.is-dragging) { transition: transform 0.15s ease; }
.kv-file.is-dragging { z-index: 2; border-color: var(--ink); box-shadow: 5px 5px 0 var(--kit); }
.kv-file.has-error { border-color: var(--err); }
/* Número da posição: a ordem do arquivo final */
.kv-file::before {
  content: counter(kvfile);
  position: absolute; left: 38px; top: 6px; z-index: 1;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--surface); font-size: 0.78rem; font-weight: 750;
}
.kv-file-grip {
  grid-area: grip; width: 30px; height: 44px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--muted); cursor: grab; touch-action: none; display: grid; place-items: center;
}
.kv-file-grip:hover { background: var(--sunken); color: var(--ink); }
.kv-file-grip:active { cursor: grabbing; }
.kv-file-grip svg { width: 20px; height: 20px; fill: currentColor; }
.kv-file-thumb {
  grid-area: thumb; width: 64px; height: 64px; border-radius: 6px; overflow: hidden;
  display: grid; place-items: center; background: var(--sunken);
}
.kv-file-thumb canvas, .kv-file-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.kv-file-info { grid-area: info; min-width: 0; }
.kv-file-info p { margin: 0; }
.kv-file-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-file-meta { color: var(--muted); font-size: 0.92rem; }
.kv-file-err { color: var(--err); font-size: 0.92rem; }
.kv-file-extra { grid-area: extra; min-width: 0; }
.kv-file-extra:empty { display: none; }
.kv-file-actions { grid-area: actions; display: flex; margin-left: -8px; }
@media (min-width: 720px) { .kv-file-actions { margin-left: 0; } }
.kv-icon-btn { width: 36px; padding: 0; }
.kv-icon-btn svg { width: 18px; height: 18px; }
.kv-icon-btn[disabled] { opacity: 0.3; }

/* Lista de resultados */
.kv-results { display: grid; gap: 12px; margin-top: 22px; }
.kv-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.kv-results-head h2 { font-size: 1.1rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
