:root {
  --bg: #0a0e14; --panel: #121a25; --panel-2: #172230;
  --line: #1f2d3d; --line-2: #2b3d52; --txt: #e2ebf5; --dim: #7d92a8; --dim-2: #56697e;
  --brand: #3d9bff; --pos: #35d6a4; --neu: #6d829a; --neg: #ff5d5d; --warn: #ffa13d;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--txt); font-family: var(--sans); font-size: 14px; line-height: 1.5; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; align-items: center; gap: .7rem; }
.ico { font-size: 1.6rem; }
h1 { font-size: 1.05rem; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.topbar p { margin: 0; font-size: .72rem; color: var(--dim); }
.back { color: var(--dim); text-decoration: none; font-size: .82rem; }
.back:hover { color: var(--brand); }

.wrap { max-width: 900px; margin: 0 auto; padding: 1.6rem 1.2rem 4rem; }

.search { display: flex; align-items: center; gap: 0; margin-bottom: 1.2rem;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; max-width: 520px; }
.search .at { padding: 0 .3rem 0 .9rem; color: var(--dim); font-weight: 700; }
.search input { flex: 1; background: none; border: none; color: var(--txt); font-family: var(--sans);
  font-size: .95rem; padding: .7rem .4rem; outline: none; }
.go { font-family: var(--sans); font-size: .85rem; font-weight: 700; cursor: pointer; border: none;
  background: var(--brand); color: #041423; padding: .7rem 1.3rem; }
.go:hover { filter: brightness(1.08); }
.go:disabled { opacity: .6; cursor: default; }

.status { font-size: .86rem; color: var(--dim); padding: .8rem 0; }
.status.err { color: var(--neg); }

.report { opacity: 0; transition: opacity .3s; }
.report.in { opacity: 1; }
.report-head { display: none; }

.pf-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pf-id { display: flex; align-items: center; gap: .9rem; }
.pf-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); }
.pf-av-ph { display: grid; place-items: center; background: var(--panel-2); color: var(--dim); font-weight: 800; font-size: 1.4rem; }
.pf-name { font-size: 1.15rem; font-weight: 800; }
.pf-handle { color: var(--dim); font-size: .85rem; }
.pdf-btn { font-family: var(--sans); font-size: .8rem; font-weight: 700; cursor: pointer;
  background: var(--panel-2); color: var(--txt); border: 1px solid var(--line-2); padding: .55rem .9rem; border-radius: 8px; white-space: nowrap; }
.pdf-btn:hover { border-color: var(--brand); color: var(--brand); }

.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: 1.1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; text-align: center; }
.stat b { display: block; font-size: 1.4rem; font-weight: 800; }
.stat span { font-size: .68rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }

.verdict { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 1rem;
  background: var(--panel); border: 1px solid; border-left-width: 5px; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.verdict-badge { font-size: .72rem; font-weight: 800; color: #041423; padding: .3rem .7rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.verdict-score { font-family: var(--mono); font-size: 2rem; font-weight: 700; line-height: 1; }
.verdict-score small { font-size: .9rem; opacity: .6; }
.verdict-text { margin: 0; font-size: .9rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; margin-bottom: 1rem; }
.card h3 { margin: 0 0 .9rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.muted { color: var(--dim); font-size: .84rem; }

/* benchmark de engajamento */
.bench-bar { position: relative; height: 16px; border-radius: 8px; overflow: hidden; background: var(--panel-2); margin-top: 1.4rem; }
.bench-danger { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff5d5d, #ffa13d); opacity: .5; }
.bench-healthy { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #2b6a52, #35d6a4); opacity: .35; }
.bench-floor { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--txt); }
.bench-obs { position: absolute; top: -7px; transform: translateX(-50%); }
.bench-obs::after { content: '▼'; color: var(--txt); font-size: .7rem; }
.bench-obs span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: .66rem; font-family: var(--mono); white-space: nowrap; }
.bench-legend { position: relative; display: flex; justify-content: space-between; font-size: .62rem; color: var(--dim); margin-top: .3rem; height: 1rem; }
.bench-floor-lbl { position: absolute; transform: translateX(-50%); white-space: nowrap; color: var(--dim-2); }
.bench-note { font-size: .82rem; margin: 1rem 0 0; }

/* distribuição de curtidas */
.dist-lbl { font-size: .72rem; color: var(--dim); margin-bottom: .5rem; }
.dist-bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.dist-bars i { flex: 1; background: linear-gradient(180deg, var(--brand), #2b6a9a); border-radius: 2px 2px 0 0; min-height: 3px; }
.dist-foot { display: flex; justify-content: space-between; font-size: .72rem; color: var(--dim); margin-top: .5rem; }
.dist-foot b { color: var(--txt); }

/* sinais */
.signals { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.signals li { display: flex; gap: .7rem; background: var(--panel-2); border-left: 3px solid; border-radius: 8px; padding: .7rem .9rem; }
.sig-ico { font-size: .9rem; }
.sig-text { font-size: .84rem; color: var(--dim); margin-top: .2rem; }

.method { font-size: .78rem; color: var(--dim); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: .9rem 1.1rem; line-height: 1.6; }
.method b { color: var(--txt); }

@media (max-width: 640px) { .pf-stats { grid-template-columns: repeat(2, 1fr); } .grid2 { grid-template-columns: 1fr; } .verdict { grid-template-columns: 1fr; text-align: left; } }

/* ─────────── impressão · relatório em PDF ─────────── */
@media print {
  @page { margin: 1.3cm; }
  :root { --bg: #fff; --panel: #fff; --panel-2: #f5f7f9; --line: #d3d8de; --line-2: #c2c8cf;
    --txt: #14181d; --dim: #55606c; --dim-2: #78828d; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff; font-size: 10.5pt; }
  .topbar, .search, .status, .pdf-btn, .no-print { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .report { opacity: 1 !important; }
  .report-head { display: block !important; border-bottom: 2px solid #14181d; padding-bottom: .4rem; margin-bottom: 1rem; }
  .rh-brand { font-size: 8.5pt; letter-spacing: .1em; color: #55606c; text-transform: uppercase; }
  .rh-title { font-size: 20pt; font-weight: 800; margin: .12rem 0; }
  .rh-meta { font-size: 8pt; color: #78828d; }
  .card, .verdict, .stat, .method { break-inside: avoid; page-break-inside: avoid; box-shadow: none !important; }
  a { text-decoration: none !important; }
}
