:root {
  --background: #0e1217;
  --foreground: #eff2f5;
  --card: #171c22;
  --primary: #f9a129;
  --primary-foreground: #201308;
  --secondary: #232a31;
  --muted: #21272d;
  --muted-foreground: #9ea5ad;
  --accent: #009ca5;
  --destructive: #e64343;
  --warning: #eab532;
  --success: #4cb86a;
  --border: #2d343b;
  --radius: .5rem;
  --gradient-topo: linear-gradient(135deg, #182029 0%, #11171c 55%, #341f05 140%);
  --shadow-card: 0 1px 0 0 rgba(255,255,255,.06) inset, 0 12px 30px -18px rgba(0,0,0,.8);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--background); color: var(--foreground); }
body {
  font-family: Barlow, ui-sans-serif, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: Oswald, Barlow, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .01em;
}
h1 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.topo-gradiente { background-image: var(--gradient-topo); }
.superficie {
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.page-home { padding-bottom: 7rem; min-height: 100vh; }
.page { min-height: 100vh; }
.header { border-bottom: 1px solid var(--border); padding: 1.5rem 1rem 1rem; }
.header-pub { padding: 1.5rem 1rem; }
.wrap { margin: 0 auto; padding: 0; }
.wrap-home { max-width: 48rem; }
.wrap-pub { max-width: 56rem; }
.header .wrap { padding: 0; }
.sub { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }
.main { padding: 1.5rem 1rem; }

.kpis { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { border-radius: var(--radius); padding: .5rem .75rem; }
.kpi-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: 11px; text-transform: uppercase; color: var(--muted-foreground);
}
.kpi-value { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters { margin-top: 1rem; display: flex; gap: .5rem; }
.search {
  flex: 1; display: flex; align-items: center; gap: .5rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 .75rem;
}
.search input {
  flex: 1; background: transparent; border: 0; outline: none; height: 2.25rem;
}
.filters select, label select, label input, label textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px); padding: .45rem .6rem; outline: none;
}
.filters select { width: auto; min-width: 8rem; }
label { display: grid; gap: .3rem; font-size: .8rem; color: var(--muted-foreground); margin-top: .75rem; }
label input:focus, label textarea:focus, label select:focus, .search:focus-within {
  border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary);
}

.lista { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.card { display: flex; gap: .75rem; border-radius: var(--radius); padding: .75rem; }
.thumb {
  width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden;
  border-radius: calc(var(--radius) - 2px); background: var(--muted);
  display: grid; place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { min-width: 0; flex: 1; }
.card-top { display: flex; align-items: flex-start; gap: .5rem; }
.card-top h3, .card-pub h2 {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .875rem; font-weight: 600; text-transform: uppercase;
}
.desc { margin-top: .125rem; font-size: .75rem; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { border-radius: .25rem; background: var(--secondary); padding: .15rem .4rem; font-size: 11px; }
.row-qty { margin-top: .5rem; display: flex; align-items: center; gap: .35rem; }
.qty-val { min-width: 2.5rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; }
.icon-btn {
  width: 2rem; height: 2rem; border: 0; background: var(--secondary); color: var(--foreground);
  border-radius: .4rem; display: grid; place-items: center; cursor: pointer;
}
.icon-btn.danger { color: var(--destructive); background: transparent; }
.icon-btn.ghost { background: transparent; color: var(--muted-foreground); }
.badge {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  border-radius: 999px; padding: .15rem .45rem; white-space: nowrap;
}
.badge-off { background: var(--destructive); color: #fff; }
.badge-low { background: var(--warning); color: #201308; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 2.25rem; padding: 0 .75rem; border: 0; border-radius: calc(var(--radius) - 2px);
  cursor: pointer; font-size: .875rem; font-weight: 500; background: transparent; color: var(--foreground);
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--secondary); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--secondary); color: var(--foreground); }
.btn-circle {
  width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 999px;
  background: var(--secondary); flex-shrink: 0;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
}
.dock-inner { display: flex; align-items: center; gap: .5rem; }
.btn-foto { flex: 1; height: 2.75rem; }

.icon, .icon-sm, .icon-lg { display: block; }
.icon { width: 1.25rem; height: 1.25rem; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.muted { color: var(--muted-foreground); }

.empty, .loading { text-align: center; color: var(--muted-foreground); padding: 2.5rem 1rem; font-size: .9rem; }
.empty-box {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 2rem 1rem; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.empty-box svg { width: 2rem; height: 2rem; color: var(--primary); }
.empty-box .empty { padding: 0; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip-entrada { background: color-mix(in srgb, var(--success) 28%, var(--secondary)); }
.chip-saida { background: color-mix(in srgb, var(--destructive) 28%, var(--secondary)); }
.chip-ajuste { background: var(--secondary); }
.chip-contagem { background: color-mix(in srgb, var(--accent) 28%, var(--secondary)); }
.btn-ico { display: inline-flex; }

.grid-pub { display: grid; gap: .75rem; }
@media (min-width: 640px) { .grid-pub { grid-template-columns: 1fr 1fr; } }
.card-pub { display: flex; gap: .75rem; border-radius: var(--radius); padding: .75rem; }
.qty { margin-top: .25rem; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty .meta { margin-left: .5rem; font-size: .75rem; font-weight: 400; color: var(--muted-foreground); }
.link-app {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem;
  font-size: .875rem; color: var(--primary);
}

.modal { border: 0; padding: 0; background: transparent; max-width: 32rem; width: calc(100% - 2rem); }
.modal::backdrop { background: rgba(0,0,0,.8); }
.modal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: .75rem;
  padding: 1.25rem; max-height: 90vh; overflow: auto;
}
.modal-card h2 { font-size: 1.15rem; text-transform: uppercase; }
.preview { width: 100%; height: 11rem; object-fit: cover; border-radius: .5rem; margin: .75rem 0 .25rem; background: var(--muted); }
.similares { font-size: .75rem; color: var(--muted-foreground); margin: .5rem 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }

.toasts { position: fixed; top: .75rem; right: .75rem; z-index: 60; display: grid; gap: .5rem; }
.toast {
  background: var(--card); border: 1px solid var(--border); color: var(--foreground);
  border-radius: .5rem; padding: .7rem .9rem; font-size: .85rem; box-shadow: var(--shadow-card);
  min-width: 16rem; max-width: 22rem;
}
.toast.erro { border-color: var(--destructive); }

.pin-form, .install-form { max-width: 40rem; margin: 2rem auto; padding: 1.25rem; border-radius: .75rem; }
.install-h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.saude { width: 100%; border-collapse: collapse; font-size: .8rem; margin: .5rem 0 0; }
.saude th, .saude td { text-align: left; padding: .45rem .35rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.saude td span { display: block; color: var(--muted-foreground); font-size: .75rem; margin-top: .15rem; line-height: 1.35; }
.saude .ok { color: var(--success); font-weight: 600; white-space: nowrap; }
.saude .falha { color: var(--destructive); font-weight: 600; white-space: nowrap; }
.saude .aviso { color: var(--warning); font-weight: 600; white-space: nowrap; }
.install-acoes { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.inline-form { display: inline; margin: 0; }
.erro { color: var(--destructive); margin-bottom: .75rem; }
.ok { color: var(--success); margin-bottom: .75rem; }
.hint { margin-top: 1rem; font-size: .8rem; color: var(--muted-foreground); }
.check { display: flex; align-items: center; gap: .5rem; margin: 1rem 0; color: var(--foreground); }
.check input { width: auto; }
.link { display: inline-block; margin-top: .75rem; color: var(--accent); font-size: .875rem; }

.contagem-aviso {
  margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--muted-foreground);
  background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .45rem .65rem;
}
.contagem-aviso svg { color: var(--accent); flex-shrink: 0; }
.contagem-aviso strong { color: var(--foreground); }
.contagem-aviso a { color: var(--primary); margin-left: auto; }
.contagem-nova { border-color: color-mix(in srgb, var(--success) 60%, var(--border)); }
.contagem-nova svg { color: var(--success); }
.ia-aviso {
  margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  font-size: .82rem; color: var(--muted-foreground);
  background: color-mix(in srgb, var(--warning) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--warning) 50%, var(--border));
  border-radius: var(--radius); padding: .55rem .75rem;
}
.ia-aviso svg { color: var(--warning); flex-shrink: 0; }
.ia-aviso span { flex: 1; min-width: 12rem; }
.ia-aviso .btn { height: 2rem; font-size: .78rem; margin-left: auto; }
.ia-aviso.ia-on { background: color-mix(in srgb, var(--success) 10%, var(--card)); border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
.ia-aviso.ia-on svg { color: var(--success); }
.ia-passos { margin: .6rem 0 .9rem; padding-left: 1.2rem; font-size: .85rem; color: var(--muted-foreground); display: grid; gap: .3rem; }
.ia-passos a { color: var(--primary); }
.hint { font-size: .8rem; color: var(--muted-foreground); margin: .4rem 0 .7rem; line-height: 1.4; }
.contagem-card { align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.contagem-data { display: flex; align-items: center; gap: .6rem; }
.contagem-data svg { color: var(--primary); }
.contagem-data strong { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
.contagem-data small { color: var(--muted-foreground); font-size: .75rem; }
.contagem-kpis { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .78rem; color: var(--muted-foreground); }
.contagem-kpis b { color: var(--foreground); font-variant-numeric: tabular-nums; }
.delta-pos { color: var(--success); }
.delta-neg { color: var(--destructive); }

.dup-aviso {
  margin-top: .75rem; border-radius: .5rem; padding: .75rem .85rem; font-size: .8rem;
  background: color-mix(in srgb, var(--warning) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--warning) 55%, var(--border));
}
.dup-aviso.dup-parecido { background: color-mix(in srgb, var(--accent) 10%, var(--card)); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.dup-aviso.dup-verificando { background: var(--card); border-color: var(--border); color: var(--muted-foreground); }
.dup-titulo { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--foreground); }
.dup-titulo svg { color: var(--warning); flex-shrink: 0; }
.dup-parecido .dup-titulo svg { color: var(--accent); }
.dup-sub { margin-top: .2rem; color: var(--muted-foreground); }
.dup-lista { margin-top: .6rem; display: grid; gap: .5rem; }
.dup-item { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: .45rem; padding: .5rem; }
.dup-item .thumb { width: 3rem; height: 3rem; }
.dup-item-body { flex: 1 1 9rem; min-width: 0; }
.dup-item .btn { margin-left: auto; }
.dup-item-body strong { display: block; font-size: .8rem; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-item-body small { display: block; color: var(--muted-foreground); font-size: .72rem; }
.dup-item .btn { height: 2rem; font-size: .75rem; padding: 0 .6rem; flex-shrink: 0; }
.dup-acoes { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dup-acoes .btn { height: 2rem; font-size: .75rem; }
.dup-score { font-size: .68rem; font-weight: 600; border-radius: 999px; padding: .1rem .4rem; background: var(--warning); color: #201308; }
.dup-parecido .dup-score { background: var(--secondary); color: var(--foreground); }
.dup-ia { font-size: .7rem; color: var(--muted-foreground); margin-top: .35rem; }

.thumb-btn { border: 0; padding: 0; cursor: zoom-in; color: inherit; }
.thumb-btn:focus-visible, .desc-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.desc-btn { cursor: pointer; }
.desc-btn:hover { color: var(--foreground); }
.card-contagem .card-top .chip { flex-shrink: 0; }
.contagem-nums { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .75rem; color: var(--muted-foreground); }
.contagem-nums b { color: var(--foreground); font-variant-numeric: tabular-nums; }
.contagem-nums .delta-pos b { color: var(--success); }
.contagem-nums .delta-neg b { color: var(--destructive); }
.fotos-contagem { margin-top: .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.foto-mini { position: relative; width: 3.25rem; height: 3.25rem; }
.foto-mini-btn {
  width: 100%; height: 100%; border: 1px solid var(--border); border-radius: .4rem; padding: 0;
  overflow: hidden; background: var(--muted); cursor: zoom-in;
}
.foto-mini-btn img { width: 100%; height: 100%; object-fit: cover; }
.foto-mini-x {
  position: absolute; top: -.4rem; right: -.4rem; width: 1.25rem; height: 1.25rem; border: 0; border-radius: 999px;
  background: var(--destructive); color: #fff; font-size: .8rem; line-height: 1; cursor: pointer;
}
.foto-add {
  height: 3.25rem; min-width: 3.25rem; padding: 0 .5rem; border: 1px dashed var(--border); border-radius: .4rem;
  background: transparent; color: var(--muted-foreground); cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; font-size: .65rem;
}
.foto-add:hover { border-color: var(--primary); color: var(--primary); }
.foto-add:disabled { opacity: .5; cursor: progress; }

.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--foreground);
  width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0;
  display: none; flex-direction: column;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lb-close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: .5rem; }
.lb-figure { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: .25rem; }
.lb-sem-foto { color: var(--muted-foreground); font-size: .9rem; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
.lb-info { background: var(--card); border-top: 1px solid var(--border); padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom)); max-height: 45vh; overflow: auto; }
.lb-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.lb-titulo { font-size: 1rem; text-transform: uppercase; }
.lb-contador { font-size: .75rem; color: var(--muted-foreground); white-space: nowrap; }
.lb-desc { margin-top: .4rem; font-size: .9rem; line-height: 1.5; color: var(--foreground); }
.lb-meta { margin-top: .5rem; }
.lb-thumbs { margin-top: .6rem; display: flex; gap: .4rem; overflow-x: auto; }
.lb-thumb { width: 3.25rem; height: 3.25rem; flex-shrink: 0; border: 2px solid transparent; border-radius: .4rem; padding: 0; overflow: hidden; background: var(--muted); cursor: pointer; }
.lb-thumb.ativo { border-color: var(--primary); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .lightbox { flex-direction: row; }
  .lb-info { width: 24rem; max-height: none; border-top: 0; border-left: 1px solid var(--border); }
}

.page-rel .main { padding-bottom: 3rem; }
.rel-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .5rem; }
.rel-links .link-app { margin-top: 0; }
.export-painel { border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
.export-painel h2 { font-size: 1.1rem; text-transform: uppercase; display: flex; align-items: center; gap: .4rem; }
.export-intro { margin: .4rem 0 .2rem; color: var(--muted-foreground); font-size: .85rem; }
.export-painel h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-foreground); margin: .9rem 0 .4rem; }
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 720px) { .export-grid { grid-template-columns: repeat(4, 1fr); } }
.export-card {
  display: flex; flex-direction: column; gap: .3rem; align-items: flex-start;
  padding: .75rem .8rem; border-radius: .5rem; border: 1px solid var(--border);
  background: var(--muted); text-align: left; min-height: 5.75rem; color: inherit; cursor: pointer;
}
.export-card:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--muted)); }
.export-card strong { display: flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; }
.export-card span { font-size: .72rem; color: var(--muted-foreground); line-height: 1.35; }
@media (max-width: 420px) { .export-grid { grid-template-columns: 1fr; } }
.rel-resumo { border-radius: var(--radius); padding: 1rem; }
.rel-resumo h2, .rel-cat h2 { font-size: 1.1rem; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; }
.kpis-rel { grid-template-columns: repeat(2, 1fr); margin-top: .75rem; }
@media (min-width: 640px) { .kpis-rel { grid-template-columns: repeat(6, 1fr); } }
.kpis-rel .kpi { background: var(--muted); }
.rel-dist { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 640px) { .rel-dist { grid-template-columns: repeat(3, 1fr); } }
.rel-dist h3 { font-size: .8rem; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: .35rem; }
.rel-dist ul { list-style: none; display: grid; gap: .2rem; font-size: .85rem; }
.rel-dist li { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px dashed var(--border); padding: .15rem 0; }
.rel-dist li span { font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.rel-dist a { color: var(--primary); }
.rel-cat { margin-top: 1.75rem; }
.rel-lista { margin-top: .75rem; display: grid; gap: .75rem; }
.rel-item { display: flex; gap: .85rem; border-radius: var(--radius); padding: .85rem; }
.thumb-rel { width: 7rem; height: 7rem; }
.rel-body { min-width: 0; flex: 1; }
.rel-nome { flex: 1; min-width: 0; font-size: .95rem; font-weight: 600; text-transform: uppercase; }
.rel-desc { margin-top: .3rem; font-size: .82rem; color: var(--muted-foreground); line-height: 1.45; }
.rel-meta { margin-top: .6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem .75rem; font-size: .78rem; }
@media (min-width: 640px) { .rel-meta { grid-template-columns: repeat(3, 1fr); } }
.rel-meta dt { text-transform: uppercase; font-size: .65rem; letter-spacing: .04em; color: var(--muted-foreground); }
.rel-meta dd { font-weight: 500; overflow-wrap: anywhere; }
.table-wrap { margin-top: .75rem; border-radius: var(--radius); overflow: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: .8rem; }
.tabela th, .tabela td { padding: .5rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tabela th { font-size: .68rem; text-transform: uppercase; color: var(--muted-foreground); background: var(--muted); position: sticky; top: 0; }
.tabela td.num { text-align: right; font-variant-numeric: tabular-nums; }

@media print {
  :root { --background: #fff; --foreground: #111; --card: #fff; --muted: #f3f3f3; --muted-foreground: #555; --border: #ccc; --secondary: #eee; }
  body { background: #fff; color: #111; }
  .no-print, .toasts, .dock { display: none !important; }
  .topo-gradiente { background: none; }
  .superficie { box-shadow: none; }
  .rel-item, .rel-cat { break-inside: avoid; }
  .thumb-rel { width: 5rem; height: 5rem; }
}

@media (max-width: 420px) {
  .actions .btn { font-size: .75rem; padding: 0 .5rem; }
  .filters { flex-direction: column; }
  .filters select { width: 100%; }
}
