﻿:root {
  --bg: #f2f5fa;
  --surface: #ffffff;
  --ink: #0e1a33;
  --muted: #5a6683;
  --line: #dde4ee;
  --brand: #0b5fa5;
  --brand-ink: #ffffff;
  --navy: #0a1730;
  --navy-2: #12305c;
  --gold: #c9a24b;
  --gold-ink: #7a5c14;
  --cyan: #27d3e6;
  --warn-bg: #fff6e0; --warn-ink: #7a5200; --warn-line: #f2cf7a;
  --info-bg: #e8f1fb; --info-ink: #174a80; --info-line: #b6d1ee;
  --ok-bg: #e7f7ee; --ok-ink: #17623a; --ok-line: #a8dfc0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10,23,48,.06), 0 8px 24px rgba(10,23,48,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070f20; --surface: #0f1b33; --ink: #e7ecf6; --muted: #93a1c0; --line: #223253;
    --brand: #4cc3e8; --brand-ink: #06121f; --navy: #050c1a; --navy-2: #0d2147; --gold: #d9b45e; --gold-ink: #e8c978;
    --warn-bg: #3a2e10; --warn-ink: #f6d489; --warn-line: #6b5420;
    --info-bg: #112a4a; --info-ink: #a9d3f5; --info-line: #23497a;
    --ok-bg: #12301f; --ok-ink: #9ee0ba; --ok-line: #25583a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
code { font-family: ui-monospace, Consolas, monospace; }

.topbar { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: .3px; }
.brand-sub { font-size: .8rem; opacity: .7; border-left: 1px solid rgba(255,255,255,.3); padding-left: 10px; }
.privacy-pill { font-size: .8rem; background: rgba(255,255,255,.12); padding: 5px 12px; border-radius: 99px; }

main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; }
.hero { text-align: center; margin: 12px 0 22px; }
.hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.hero p { color: var(--muted); margin: 6px 0 0; }

.dropzone { border: 2px dashed var(--line); background: var(--surface); border-radius: var(--radius); text-align: center; padding: 34px 16px; cursor: pointer; color: var(--muted); transition: .15s; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: var(--brand); background: var(--info-bg); color: var(--brand); outline: none; }
.dropzone.compact { padding: 14px; }
.dropzone.compact svg, .dropzone.compact .drop-hint { display: none; }
.dropzone p { margin: 6px 0 0; }
.drop-title { font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.drop-hint { font-size: .85rem; }

.file-list { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 10px; }
.chip { flex: none; display: flex; align-items: center; gap: 8px; max-width: 230px; background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 5px 10px 5px 5px; cursor: pointer; color: var(--ink); font: inherit; font-size: .85rem; }
.chip.active { border-color: var(--brand); }
.chip img, .chip .noimg { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; background: var(--line); flex: none; display: grid; place-items: center; font-size: .65rem; color: var(--muted); }
.chip span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #d0d6e4; }
.chip .dot.gps { background: #1fa463; }

.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 20px; }
.file-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.preview { background: var(--bg); border-radius: 10px; min-height: 140px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.preview img { max-width: 100%; max-height: 220px; display: block; }
.file-info h2 { font-size: 1.15rem; word-break: break-all; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0 0 12px; }
.kv dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.hash { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.hash-label { font-size: .75rem; font-weight: 700; color: var(--muted); }
.hash code { font-size: .78rem; word-break: break-all; flex: 1 1 260px; }

.alerts { display: grid; gap: 8px; }
.alert { padding: 10px 14px; border-radius: 10px; border: 1px solid; font-size: .92rem; display: flex; gap: 10px; }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.alert.info { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }
.alert.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; position: relative; }
.card h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 8px; }
.card-ico { position: absolute; top: 12px; right: 14px; font-size: 1.4rem; }
.card-main { font-size: 1.25rem; font-weight: 700; word-break: break-word; }
.card-main.empty { color: var(--muted); font-weight: 500; font-size: 1rem; }
.card-sub { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.card-sub div + div { margin-top: 2px; }

.map-block h3, .all-meta h3 { font-size: 1.05rem; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.map-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#map { height: 380px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.addr { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink); }
.map-addr { margin: 0 0 10px; font-size: .92rem; color: var(--ink); background: var(--bg); border-radius: 8px; padding: 8px 12px; }
.map-addr:empty { display: none; }
.count { font-weight: 400; color: var(--muted); font-size: .85rem; }

#filter { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: .9rem; min-width: min(280px, 100%); }
details.group { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
details.group summary { cursor: pointer; padding: 9px 14px; font-weight: 600; background: var(--bg); font-size: .92rem; }
details.group summary small { color: var(--muted); font-weight: 400; margin-left: 6px; }
table.meta { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.meta td { padding: 6px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.meta td:first-child { width: 36%; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: .82rem; word-break: break-word; }
table.meta td:last-child { word-break: break-word; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.small { padding: 5px 12px; font-size: .82rem; }
.btn:hover { filter: brightness(1.08); }

.disclaimer { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 0 16px 28px; }
[hidden] { display: none !important; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tab.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.panel-title { font-size: 1.2rem; margin-bottom: 6px; }
.muted { color: var(--muted); font-size: .92rem; margin: 0; }
.controls { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.controls label { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.controls label.check { display: flex; align-items: center; gap: 6px; }
.controls input[type=range] { width: 220px; }
.controls select { padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; max-width: 280px; }
.side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side-by-side figure { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.side-by-side figcaption { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.side-by-side canvas { width: 100%; height: auto; display: block; border-radius: 6px; }
@media (max-width: 640px) { .side-by-side { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .file-card { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; }
  #map { height: 300px; }
}

@media print {
  body { background: #fff; color: #000; }
  .topbar, .hero, .dropzone, .file-list, .no-print, #filter { display: none !important; }
  main { padding: 0; max-width: none; }
  .report { border: 0; padding: 0; }
  details.group { break-inside: avoid; }
  details.group > *:not(summary) { display: block; }
  .card, .file-card { break-inside: avoid; }
}

.verdict { font-size: 1rem; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.finding { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.finding .tag { flex: none; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 99px; margin-top: 2px; }
.finding.strong .tag { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.finding.weak .tag, .finding.info .tag { background: var(--info-bg); color: var(--info-ink); border: 1px solid var(--info-line); }
.finding.ok .tag { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }

.px-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.px-box h3 { font-size: 1.05rem; margin-bottom: 4px; }
.px-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.px-head > div { flex: 1 1 320px; }
.px-result { align-items: center; }
.px-pct { font-size: 2rem; font-weight: 800; line-height: 1; min-width: 4ch; }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #1fa463, #f2b01e, #e03131); }
.btn:disabled { opacity: .6; cursor: progress; }

.px-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.px-stage { position: relative; display: inline-block; max-width: 100%; touch-action: none; cursor: crosshair; user-select: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; line-height: 0; justify-self: start; }
.px-stage img { max-width: 100%; max-height: 460px; display: block; }
.px-sel { position: absolute; border: 2px solid var(--brand); background: rgba(31,79,216,.18); pointer-events: none; }
.px-grid { position: absolute; inset: 0; pointer-events: none; }
.px-grid .hit { position: absolute; border: 2px solid #e03131; background: rgba(224,49,49,.12); }
.px-grid .hit span { position: absolute; top: 0; left: 0; background: #e03131; color: #fff; font: 700 11px/1.3 system-ui; padding: 1px 5px; }

.kind-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: var(--info-bg); color: var(--info-ink); border: 1px solid var(--info-line); border-radius: 99px; padding: 2px 9px; vertical-align: middle; }
.preview video { max-width: 100%; max-height: 220px; display: block; }
.px-tools { display: grid; gap: 12px; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
label.inline select { padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.filmstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.filmstrip:empty { display: none; }
.frame { margin: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.frame.hot { border-color: #e03131; }
.frame img { width: 100%; display: block; }
.frame figcaption { font-size: .72rem; padding: 3px 6px; color: var(--muted); }
.frame.hot figcaption { background: #e03131; color: #fff; font-weight: 700; }

hr.sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }


.sub-title { font-size: 1rem; margin-bottom: 8px; }
.frames-box { padding: 12px 14px; display: grid; gap: 8px; }
.frames-box h4 { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }

/* ===== Tema EvidentiaLex: tecnologia + direito ===== */
h1, h2, .brand-name, .panel-title, .section-title { font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
body { background: var(--bg); }

.topbar { background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%); border-bottom: 2px solid var(--gold); padding: 12px 24px; position: relative; z-index: 2; }
.brand-mark { color: #fff; flex: none; }
.brand-name { font-size: 1.45rem; letter-spacing: .2px; font-weight: 700; }
.brand-name em { font-style: normal; color: var(--gold); margin-left: 1px; }
.brand-sub { text-transform: uppercase; letter-spacing: 1.5px; font-size: .68rem; border-left-color: rgba(201,162,75,.6); }
.privacy-pill { background: rgba(39,211,230,.12); border: 1px solid rgba(39,211,230,.35); color: #bff3fa; }

.hero { position: relative; color: #fff; text-align: center; padding: 60px 16px 118px; overflow: hidden;
  background:
    radial-gradient(900px 380px at 80% -10%, rgba(39,211,230,.22), transparent 60%),
    radial-gradient(700px 360px at 10% 110%, rgba(201,162,75,.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .28; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.eyebrow { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 600; }
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1.15; letter-spacing: -.01em; }
.hero .lead { color: #c9d6ee; font-size: 1.06rem; max-width: 640px; margin: 14px auto 0; }
.hero .lead strong { color: #fff; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 22px 0 0; }
.hero-chips li { font-size: .82rem; padding: 6px 13px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e6eefb; backdrop-filter: blur(4px); }
body.has-results .hero:not(#heroHash) { padding: 26px 16px 70px; }
body.has-results .hero:not(#heroHash) .lead, body.has-results .hero:not(#heroHash) .hero-chips, body.has-results .hero:not(#heroHash) .eyebrow { display: none; }
body.has-results .hero:not(#heroHash) h1 { font-size: 1.35rem; }

main { margin-top: -78px; position: relative; z-index: 1; max-width: 1060px; }
body.has-results main { margin-top: -50px; }

.dropzone { background: var(--surface); border: 2px dashed var(--gold); border-radius: 20px; box-shadow: var(--shadow); padding: 38px 18px; }
.dropzone svg { color: var(--brand); }
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: var(--cyan); background: var(--info-bg); color: var(--brand); box-shadow: 0 0 0 4px rgba(39,211,230,.18), var(--shadow); }
.drop-title { font-family: ui-serif, Georgia, serif; font-size: 1.25rem; }
.drop-title u { text-decoration-color: var(--gold); text-underline-offset: 4px; }

.report { border-radius: 18px; box-shadow: var(--shadow); border-color: var(--line); }
.card { border-top: 3px solid var(--gold); border-radius: 14px; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.card h3 { color: var(--gold-ink); }
.panel-title, .section-title { color: var(--ink); }
.chip.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.2); }
.kind-badge { background: var(--navy); color: var(--gold); border-color: var(--gold); }

.tabs { gap: 4px; background: var(--surface); padding: 5px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); display: inline-flex; max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--muted); border-radius: 10px; padding: 9px 16px; white-space: nowrap; }
.tab:hover { color: var(--ink); background: var(--bg); }
.tab.active { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }

.btn { background: linear-gradient(135deg, var(--brand), #0a4a82); border-color: transparent; border-radius: 11px; box-shadow: 0 2px 8px rgba(11,95,165,.28); }
@media (prefers-color-scheme: dark) { .btn { background: linear-gradient(135deg, var(--brand), #2b9fc6); box-shadow: 0 2px 8px rgba(76,195,232,.25); } }
.btn.ghost { background: transparent; border: 1px solid var(--brand); box-shadow: none; color: var(--brand); }
.btn.ghost:hover { background: var(--info-bg); filter: none; }
.bar i { background: linear-gradient(90deg, #1fa463, var(--gold), #e03131); }

details.group summary { background: linear-gradient(90deg, var(--bg), var(--surface)); }
.finding { background: var(--surface); }

.features { margin: 54px 0 10px; }
.section-title { text-align: center; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 26px; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin: 12px auto 0; border-radius: 3px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--gold), var(--cyan)); }
.feature:hover { transform: translateY(-3px); border-color: var(--gold); }
.f-ico { font-size: 1.7rem; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--info-bg); margin-bottom: 12px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }
.features-note { text-align: center; color: var(--muted); font-size: .86rem; margin: 22px auto 0; max-width: 640px; }
body.has-results .features { display: none; }

.foot { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #aebbd6; padding: 28px 20px 34px; margin-top: 40px; border-top: 2px solid var(--gold); }
.foot p { max-width: 860px; margin: 0 auto 8px; }
.foot-brand { font-family: ui-serif, Georgia, serif; font-size: 1.15rem; color: #fff; }
.foot-brand span { font-family: system-ui, sans-serif; font-size: .8rem; color: var(--gold); letter-spacing: .5px; }
.foot strong { color: #e6eefb; }

@media (max-width: 640px) {
  .hero { padding: 40px 16px 100px; }
  .topbar { padding: 10px 16px; }
  .brand-sub { display: none; }
}
@media print {
  .hero, .features, .foot { display: none !important; }
  main { margin-top: 0; }
  .report, .card { box-shadow: none; }
}



/* ===== Modos: fotos e vídeos / hash de documentos ===== */
.modes { display: inline-flex; gap: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 4px; border-radius: 12px; }
.mode { border: 0; background: transparent; color: #cdd8ee; font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.mode:hover { color: #fff; background: rgba(255,255,255,.08); }
.mode.active { background: var(--gold); color: #1a1405; }

#heroHash, #hashMode { display: none; }
body[data-mode="hash"] #heroHash { display: block; }
body[data-mode="hash"] #hashMode { display: grid; gap: 20px; }
body[data-mode="hash"] .hero:not(#heroHash), body[data-mode="hash"] #drop, body[data-mode="hash"] #results, body[data-mode="hash"] .features { display: none !important; }
body[data-mode="hash"] main { margin-top: -78px; }

.hash-opts { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.hash-opts legend { padding: 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.hash-opts .check { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.hash-opts small { color: var(--muted); }
.hash-list { display: grid; gap: 14px; }
.hash-file { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hash-file-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.hash-name { word-break: break-all; font-size: 1.02rem; }
.hash-row { display: grid; grid-template-columns: 82px 1fr auto; gap: 10px; align-items: center; }
.hash-algo { font-size: .78rem; font-weight: 700; color: var(--muted); }
.hash-algo.main { color: var(--gold-ink); }
.hash-val { font-size: .8rem; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.hash-val.match { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); font-weight: 700; }
.hash-err { color: var(--warn-ink); font-size: .85rem; }
.hash-wait { color: var(--muted); font-size: .85rem; }
.hash-at { font-size: .78rem; }
.verify { display: grid; gap: 8px; }
.verify input { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: .85rem ui-monospace, Consolas, monospace; width: 100%; }
.verify input:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.table-wrap { overflow-x: auto; }
table.algos { width: 100%; border-collapse: collapse; font-size: .9rem; border: 1px solid var(--line); border-radius: 10px; }
table.algos th { text-align: left; padding: 9px 14px; background: var(--bg); font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
table.algos td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.algos td:first-child { width: 110px; font-family: inherit; color: var(--ink); }
table.algos tr.rec td { background: var(--ok-bg); color: var(--ok-ink); }
table.algos tr.warn td { background: var(--warn-bg); color: var(--warn-ink); }
table.algos tr.bad td { background: rgba(224,49,49,.1); }
.print-only { display: none; }
.cert-head h2 { font-size: 1.3rem; }
@media (max-width: 760px) {
  .topbar { gap: 10px; }
  .modes { order: 3; width: 100%; justify-content: center; }
  .hash-row { grid-template-columns: 1fr; gap: 4px; }
}
@media print {
  .print-only { display: block; }
  .hash-mode .report { border: 0; box-shadow: none; padding: 0; }
  .hash-file { break-inside: avoid; background: #fff; }
  .modes { display: none !important; }
}
