/* ==========================================================================
   Instituto Triângulo Tech — v3 PROTÓTIPO ("Ops Deck")
   Direção: instrumentação de laboratório / mission control. Não substitui o
   v2 (assets/css/style.css, no ar em produção) — arquivo isolado só pra
   comparação visual em index-v3.html. Teal #4fd1c5 mantido como acento
   oficial; âmbar entra como 2º acento (telemetria/alerta), no lugar do
   violeta do v2.
   ========================================================================== */

:root {
  --bg: #07090b;
  --bg-raised: #0d1013;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.09);
  --grid-line: rgba(255, 255, 255, 0.055);
  --ink: #eef1ef;
  --ink-dim: #9aa6a2;
  --ink-faint: #5c6864;
  --teal: #4fd1c5;
  --teal-dim: rgba(79, 209, 197, 0.35);
  --amber: #ffb020;
  --amber-dim: rgba(255, 176, 32, 0.35);
  --live: #ff6a5c;

  --font-display: "Fraunces", "Hanken Grotesk", Georgia, serif;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.v3 {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* blueprint grid backdrop */
body.v3::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.v3-container { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- ticker ---------- */
.ticker {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #030405;
  border-bottom: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner { display: flex; align-items: center; gap: 22px; padding: 7px 28px; max-width: var(--max); margin: 0 auto; }
.ticker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(255, 106, 92, 0.15);
  flex: none;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.ticker span.sep { color: var(--ink-faint); }
.ticker .clock { color: var(--teal); margin-left: auto; }

/* ---------- header ---------- */
.v3-header {
  position: relative; z-index: 30;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(to bottom, rgba(7,9,11,0.9), rgba(7,9,11,0.6));
  backdrop-filter: blur(10px);
}
.v3-header-inner { display: flex; align-items: center; gap: 36px; padding: 18px 28px; max-width: var(--max); margin: 0 auto; }
.v3-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.v3-logo svg { flex: none; }
.v3-logo-text { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; font-weight: 600; }
.v3-nav { display: flex; gap: 26px; margin-left: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; }
.v3-nav a { color: var(--ink-dim); text-decoration: none; position: relative; padding: 4px 0; }
.v3-nav a.active { color: var(--teal); }
.v3-nav a:hover { color: var(--ink); }
.v3-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--teal);
}
.v3-header-tag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); border: 1px solid var(--panel-border); padding: 4px 9px; border-radius: 3px; letter-spacing: 0.06em; }

/* lang toggle */
.v3-lang { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: 11.5px; border: 1px solid var(--panel-border); border-radius: 3px; overflow: hidden; margin-left: 18px; }
.v3-lang-btn { background: none; border: none; color: var(--ink-faint); padding: 5px 9px; cursor: pointer; letter-spacing: 0.04em; }
.v3-lang-btn.active { color: var(--bg); background: var(--teal); }
.v3-lang-btn:not(.active):hover { color: var(--ink); }

/* mobile nav toggle */
.v3-menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--panel-border); border-radius: 3px;
  color: var(--ink); width: 34px; height: 34px; font-size: 15px; cursor: pointer; line-height: 1;
}
@media (max-width: 880px) {
  .v3-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px); background: var(--bg-raised);
    border-left: 1px solid var(--panel-border); flex-direction: column; gap: 0; padding: 90px 28px 28px;
    transform: translateX(100%); transition: transform 0.3s ease; z-index: 50; }
  .v3-nav.is-open { transform: translateX(0); }
  .v3-nav a { padding: 12px 0; border-bottom: 1px solid var(--panel-border); }
  .v3-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .v3-header-tag { display: none; }
  .v3-lang { margin-left: auto; }
}

/* ---------- hero ---------- */
.v3-hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.v3-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .v3-hero-grid { grid-template-columns: 1fr; } }

.v3-corner {
  position: absolute; width: 26px; height: 26px; border-color: var(--teal-dim); opacity: 0.8;
}
.v3-corner.tl { top: 18px; left: 18px; border-top: 1px solid; border-left: 1px solid; }
.v3-corner.tr { top: 18px; right: 18px; border-top: 1px solid; border-right: 1px solid; }
.v3-corner.bl { bottom: 18px; left: 18px; border-bottom: 1px solid; border-left: 1px solid; }
.v3-corner.br { bottom: 18px; right: 18px; border-bottom: 1px solid; border-right: 1px solid; }

.v3-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 22px;
}
.v3-eyebrow::before { content: "§"; color: var(--amber); }

.v3-hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--ink);
}
.v3-hero h1 em { font-style: italic; color: var(--teal); font-weight: 340; }

.v3-manifesto { font-size: 17px; color: var(--ink-dim); max-width: 52ch; margin: 0 0 30px; }

.v3-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.v3-btn {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em;
  padding: 12px 20px; border-radius: 3px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--panel-border); color: var(--ink); transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.v3-btn.primary { border-color: var(--teal-dim); color: var(--teal); }
.v3-btn.primary:hover { background: rgba(79,209,197,0.08); border-color: var(--teal); }
.v3-btn:hover { color: var(--ink); border-color: var(--ink-faint); }

/* oscilloscope panel */
.v3-scope {
  position: relative;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 4px;
  padding: 18px;
  aspect-ratio: 4 / 3;
}
.v3-scope-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 8px; }
.v3-scope-head b { color: var(--amber); font-weight: 500; }
.v3-scope svg { width: 100%; height: calc(100% - 34px); display: block; }
.v3-wave {
  fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(79,209,197,0.35));
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw-wave 3.2s ease-out forwards, drift-wave 6s ease-in-out 3.2s infinite;
}
.v3-wave.wave-2 {
  stroke: var(--amber); opacity: 0.5; stroke-width: 1.2; filter: none;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw-wave 3.2s ease-out 0.25s forwards, drift-wave 7s ease-in-out 3.4s infinite reverse;
}
.v3-scope-grid line { stroke: var(--grid-line); }
@keyframes draw-wave { to { stroke-dashoffset: 0; } }
@keyframes drift-wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .v3-wave, .v3-wave.wave-2 { animation: none; stroke-dashoffset: 0; }
}

/* ---------- page hero (páginas internas, sem osciloscópio) ---------- */
.v3-page-hero { position: relative; padding: 64px 0 54px; border-bottom: 1px solid var(--panel-border); }
.v3-page-hero .v3-manifesto { margin-bottom: 0; }
.v3-page-hero h1 {
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 380;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.01em;
  margin: 0 0 18px; color: var(--ink);
}

/* ---------- triangle diagram (pesquisa.html — os 3 vértices) ---------- */
.v3-triangle-caption {
  text-align: center; max-width: 62ch; margin: 0 auto 44px; font-size: 14.5px; color: var(--ink-dim);
}
.v3-triangle-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 0;
  max-width: 980px;
  margin: 0 auto;
  min-height: 640px;
}
.v3-triangle-svg {
  grid-column: 1 / 4; grid-row: 1 / 3;
  width: 100%; height: 100%;
  align-self: stretch; justify-self: stretch;
  pointer-events: none;
}
.v3-triangle-outline { fill: none; stroke: var(--panel-border); stroke-width: 1.5; }
.v3-triangle-flow {
  fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 10; opacity: 0.75;
  animation: v3-flow-up 2.6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(79, 209, 197, 0.5));
}
.v3-triangle-flow.is-base { animation-delay: -1.3s; }
@keyframes v3-flow-up { to { stroke-dashoffset: -64; } }
.v3-triangle-node { fill: var(--bg); stroke: var(--teal); stroke-width: 2; }
.v3-triangle-node.is-apex { stroke: var(--amber); }
.v3-triangle-node-pulse { fill: none; stroke: var(--teal); stroke-width: 1; opacity: 0.5; animation: pulse-dot 2.4s ease-in-out infinite; }
.v3-triangle-node-pulse.is-apex { stroke: var(--amber); }
.v3-triangle-tickline { stroke: var(--grid-line); stroke-width: 1; }

.v3-vertex-card {
  position: relative; z-index: 2;
  background: var(--bg-raised); border: 1px solid var(--panel-border); border-radius: 4px;
  padding: 20px 22px; max-width: 300px;
}
.v3-vertex-card.is-apex { grid-column: 1 / 4; grid-row: 1; justify-self: center; align-self: start; border-color: var(--teal-dim); }
.v3-vertex-card.is-left { grid-column: 1 / 2; grid-row: 2; justify-self: start; align-self: start; margin-top: 320px; }
.v3-vertex-card.is-right { grid-column: 3 / 4; grid-row: 2; justify-self: end; align-self: start; margin-top: 320px; }

.v3-vnode {
  position: absolute; left: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--teal); z-index: 3;
  top: 0; transform: translate(-50%, -50%);
}
.v3-vnode.is-apex { border-color: var(--amber); top: auto; bottom: 0; transform: translate(-50%, 50%); }
@media (max-width: 880px) { .v3-vnode { display: none; } }

.v3-vertex-tag { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.v3-vertex-card:not(.is-apex) .v3-vertex-tag { color: var(--ink-faint); }
.v3-vertex-card h3 { font-family: var(--font-display); font-weight: 460; font-size: 1.25rem; margin: 0 0 10px; color: var(--ink); }
.v3-vertex-card p { font-size: 14px; color: var(--ink-dim); margin: 0; }
.v3-vertex-values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.v3-vertex-values span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--teal);
  border: 1px solid var(--teal-dim); border-radius: 3px; padding: 3px 8px;
}

.v3-triangle-mark { display: none; justify-content: center; margin-bottom: 4px; }

@media (max-width: 880px) {
  .v3-triangle-wrap { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; min-height: 0; row-gap: 20px; }
  .v3-triangle-svg { display: none; }
  .v3-triangle-mark { display: flex; }
  .v3-vertex-card.is-apex, .v3-vertex-card.is-left, .v3-vertex-card.is-right {
    grid-column: 1 / 2; grid-row: auto; justify-self: stretch; align-self: auto; max-width: none; margin-bottom: 0; margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-triangle-flow, .v3-triangle-node-pulse { animation: none; }
}

/* ---------- section shell ---------- */
.v3-section { padding: 74px 0; position: relative; }
.v3-section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px; }
.v3-section-head .idx { font-family: var(--font-mono); font-size: 12px; color: var(--amber); }
.v3-section-head h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 0; color: var(--ink);
}
.v3-section-rule { flex: 1; height: 1px; background: var(--panel-border); }

/* ---------- readout stat strip ---------- */
.v3-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--panel-border); border-radius: 4px; overflow: hidden; }
@media (max-width: 720px) { .v3-stats { grid-template-columns: repeat(2, 1fr); } }
.v3-stat { padding: 22px 20px; border-right: 1px solid var(--panel-border); background: var(--panel); }
.v3-stat:last-child { border-right: none; }
.v3-stat-num { display: block; font-family: var(--font-mono); font-size: 2.1rem; color: var(--teal); font-weight: 500; }
.v3-stat-tol { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.v3-stat-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--ink-dim); text-transform: uppercase; margin-top: 6px; }

/* ---------- axis instrument cards ---------- */
.v3-axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--panel-border); border: 1px solid var(--panel-border); border-radius: 4px; overflow: hidden; }
@media (max-width: 880px) { .v3-axes { grid-template-columns: 1fr; } }
.v3-axis { background: var(--bg-raised); padding: 26px 24px 24px; position: relative; }
.v3-axis-ruler { display: flex; gap: 3px; margin-bottom: 18px; }
.v3-axis-ruler span { width: 3px; height: 9px; background: var(--panel-border); }
.v3-axis:hover .v3-axis-ruler span { background: var(--teal-dim); }
.v3-axis-tag { font-family: var(--font-mono); font-size: 11px; color: var(--amber); letter-spacing: 0.06em; display: block; margin-bottom: 12px; }
.v3-axis h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.28rem; margin: 0 0 12px; color: var(--ink); }
.v3-axis p { font-size: 14.5px; color: var(--ink-dim); margin: 0 0 18px; }
.v3-axis-link { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; }
.v3-axis-link:hover { color: var(--teal); border-color: var(--teal-dim); }
.v3-axis-underline { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--teal); transition: width 0.3s ease; }
.v3-axis:hover .v3-axis-underline { width: 100%; }

/* ---------- terminal capture ---------- */
.v3-terminal {
  border: 1px solid var(--panel-border); border-radius: 4px; background: var(--panel);
  padding: 30px 30px 26px; max-width: 640px; margin: 0 auto;
}
.v3-terminal-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.v3-terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-border); }
.v3-terminal h2 { font-family: var(--font-display); font-weight: 420; font-size: 1.5rem; margin: 0 0 8px; }
.v3-terminal p { color: var(--ink-dim); font-size: 14.5px; margin: 0 0 20px; }
.v3-prompt { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13.5px; background: #030405; border: 1px solid var(--panel-border); border-radius: 3px; padding: 12px 14px; }
.v3-prompt .caret { color: var(--teal); }
.v3-prompt input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-family: var(--font-mono); font-size: 13.5px; }
.v3-prompt input::placeholder { color: var(--ink-faint); }
.v3-prompt button { font-family: var(--font-mono); font-size: 12px; color: var(--bg); background: var(--teal); border: none; padding: 8px 14px; border-radius: 3px; cursor: pointer; letter-spacing: 0.04em; }
.v3-prompt button:hover { background: #6fe0d5; }
.v3-terminal-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin: 14px 0 0; }

/* ---------- footer log ---------- */
.v3-footer { border-top: 1px solid var(--panel-border); padding: 30px 0 40px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.v3-footer .log-line { margin: 3px 0; }
.v3-footer .log-line .ok { color: var(--teal); }
.v3-footer-bottom { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--panel-border); flex-wrap: wrap; gap: 10px; }
.v3-footer-bottom a { color: var(--ink-faint); }

/* ---------- reveal-on-scroll ---------- */
.v3-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.v3-reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- scanline sweep ---------- */
.v3-scanline {
  position: fixed; left: 0; right: 0; height: 140px; z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(79,209,197,0.035), transparent);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { 0% { top: -140px; } 100% { top: 100vh; } }

@media (prefers-reduced-motion: reduce) {
  .v3-scanline, .ticker .dot { animation: none; }
  .v3-reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- boot intro (splash terminal, mesmo mecanismo do v2) ---------- */
.v3-boot {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.v3-boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.v3-boot__line {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.4vw, 1.15rem);
  color: var(--teal);
  white-space: nowrap;
}
.v3-boot__caret {
  display: inline-block; width: 0.55em; height: 1.1em;
  background: var(--teal); margin-left: 2px; vertical-align: text-bottom;
  animation: v3-blink 0.9s steps(1) infinite;
}
@keyframes v3-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .v3-boot { display: none; } }

/* ---------- axis rows (pesquisa.html — corpo longo, 1 por linha) ---------- */
.v3-axis-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 32px;
  padding: 30px 0; border-bottom: 1px solid var(--panel-border);
}
.v3-axis-row:first-child { padding-top: 0; }
.v3-axis-row:last-child { border-bottom: none; }
@media (max-width: 720px) { .v3-axis-row { grid-template-columns: 1fr; gap: 12px; } }
.v3-axis-row-label { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: 0.06em; }
.v3-axis-row h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.35rem; margin: 0 0 12px; color: var(--ink); }
.v3-axis-row p { font-size: 14.5px; color: var(--ink-dim); margin: 0; max-width: 68ch; }

/* ---------- future lines (exploratório) ---------- */
.v3-future-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--panel-border); border: 1px solid var(--panel-border); border-radius: 4px; overflow: hidden; margin-top: 28px; }
@media (max-width: 720px) { .v3-future-grid { grid-template-columns: 1fr; } }
.v3-future-item { background: var(--bg-raised); padding: 22px 24px; }
.v3-future-item span.tag { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.v3-future-item h4 { font-family: var(--font-display); font-weight: 450; font-size: 1.1rem; margin: 0 0 8px; color: var(--ink); }
.v3-future-item p { font-size: 14px; color: var(--ink-dim); margin: 0; }

/* ---------- publication layers (2 col intro) ---------- */
.v3-pub-layers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--panel-border); border: 1px solid var(--panel-border); border-radius: 4px; overflow: hidden; margin-bottom: 48px; }
@media (max-width: 720px) { .v3-pub-layers { grid-template-columns: 1fr; } }
.v3-pub-layer { background: var(--bg-raised); padding: 26px 24px; }
.v3-pub-layer h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.2rem; margin: 0 0 10px; color: var(--teal); }
.v3-pub-layer p { font-size: 14px; color: var(--ink-dim); margin: 0; }

/* ---------- publication / note list ---------- */
.v3-pub-list { border: 1px solid var(--panel-border); border-radius: 4px; overflow: hidden; }
.v3-pub-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 22px; border-bottom: 1px solid var(--panel-border); background: var(--bg-raised);
  transition: background 0.2s;
}
.v3-pub-card:last-child { border-bottom: none; }
.v3-pub-card:hover { background: var(--panel); }
.v3-pub-card.is-stub { opacity: 0.6; }
.v3-pub-id { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--amber); letter-spacing: 0.05em; margin-bottom: 5px; }
.v3-pub-card h4 { font-family: var(--font-sans); font-weight: 600; font-size: 15.5px; margin: 0; color: var(--ink); }
.v3-pub-card h4 a { color: inherit; text-decoration: none; }
.v3-pub-card h4 a:hover { color: var(--teal); }
.v3-pub-axis { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.v3-badge {
  flex: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px; border: 1px solid var(--panel-border); color: var(--ink-dim);
}
.v3-badge.is-live { color: var(--teal); border-color: var(--teal-dim); }
.v3-badge.is-prep { color: var(--ink-faint); }

/* ---------- about layout ---------- */
.v3-about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
@media (max-width: 720px) { .v3-about-grid { grid-template-columns: 1fr; } }
.v3-avatar {
  aspect-ratio: 1; border: 1px solid var(--panel-border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); white-space: pre-line; padding: 16px;
  overflow: hidden; position: relative;
}
.v3-avatar.has-photo { border-style: solid; padding: 0; }
.v3-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; filter: grayscale(0.15) contrast(1.05); }
.v3-avatar.has-photo::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--teal-dim); border-radius: 4px; pointer-events: none;
}
.v3-social { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; }
.v3-social a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid transparent; }
.v3-social a:hover { color: var(--teal); border-color: var(--teal-dim); }
.v3-about-bio p { font-size: 15px; color: var(--ink-dim); max-width: 66ch; margin: 0 0 18px; }
.v3-solo-note { border: 1px solid var(--panel-border); border-left: 2px solid var(--amber); border-radius: 3px; padding: 16px 20px; margin-top: 24px; background: var(--panel); }
.v3-solo-note h4 { font-family: var(--font-display); font-weight: 450; font-size: 1rem; margin: 0 0 8px; color: var(--ink); }
.v3-solo-note p { font-size: 13.5px; color: var(--ink-dim); margin: 0; }

/* ---------- transparency blocks ---------- */
.v3-transparency-block { padding: 26px 0; border-bottom: 1px solid var(--panel-border); }
.v3-transparency-block:last-child { border-bottom: none; }
.v3-transparency-block h3 { font-family: var(--font-display); font-weight: 450; font-size: 1.2rem; margin: 0 0 10px; color: var(--ink); }
.v3-transparency-block p { font-size: 14.5px; color: var(--ink-dim); margin: 0; max-width: 68ch; }
.v3-status-honest { border-left: 2px solid var(--amber); padding: 12px 18px; background: var(--panel); border-radius: 0 3px 3px 0; }
.v3-status-honest p { color: var(--ink); }
.v3-muted { color: var(--ink-faint) !important; }

/* ---------- agent panel (painel-agentes.html) ---------- */
.v3-panel-chart {
  border: 1px solid var(--panel-border); background: var(--panel); border-radius: 4px;
  padding: 22px 22px 10px; margin: 0 0 12px;
}
.v3-panel-chart svg { width: 100%; height: auto; display: block; }
.v3-panel-chart .axis-label { font-family: var(--font-mono); font-size: 9.5px; fill: var(--ink-faint); }
.v3-panel-chart .grid-line { stroke: var(--grid-line); stroke-width: 1; }
.v3-panel-chart .line-path { fill: none; stroke: var(--teal); stroke-width: 1.8; }
.v3-panel-chart .leader-dot { fill: var(--amber); stroke: var(--bg); stroke-width: 2; }
.v3-panel-chart .point-dot { fill: var(--teal); opacity: 0.8; }
.v3-panel-chart .leader-tag { font-family: var(--font-mono); font-size: 10px; fill: var(--amber); }

.v3-panel-block { margin-bottom: 20px; }
.v3-panel-block > p.v3-block-body { font-size: 14px; color: var(--ink-dim); max-width: 70ch; margin: -6px 0 18px; }

.v3-table-wrap { border: 1px solid var(--panel-border); border-radius: 4px; overflow-x: auto; }
.v3-table { width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
.v3-table th, .v3-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--panel-border); }
.v3-table tbody tr:last-child td { border-bottom: none; }
.v3-table tbody tr:hover { background: var(--panel); }
.v3-table th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-dim); background: var(--bg-raised); cursor: pointer; user-select: none; position: relative;
}
.v3-table th:hover { color: var(--teal); }
.v3-table th.sorted::after { content: "▾"; margin-left: 6px; font-size: 9px; color: var(--teal); }
.v3-table th.sorted.asc::after { content: "▴"; }
.v3-table td.num, .v3-table th.num { font-family: var(--font-mono); text-align: right; }
.v3-table td.dim { color: var(--ink-faint); }
.v3-table a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.v3-table a:hover { color: var(--teal); border-color: var(--teal-dim); }

.v3-source-footer {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  padding: 10px 16px; border: 1px solid var(--panel-border); border-top: none; border-radius: 0 0 4px 4px;
  background: var(--bg-raised);
}
.v3-source-footer a { color: var(--ink-dim); }
.v3-source-footer a:hover { color: var(--teal); }
.v3-stale-tag {
  color: var(--amber); border: 1px solid rgba(255,176,32,0.35); border-radius: 3px; padding: 2px 7px;
}
.v3-panel-loading, .v3-panel-error { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); padding: 20px 0; }
.v3-panel-error { color: var(--amber); }

.v3-proto-banner {
  font-family: var(--font-mono); font-size: 11.5px; text-align: center; padding: 8px 16px;
  background: rgba(255,176,32,0.08); color: var(--amber); border-bottom: 1px solid rgba(255,176,32,0.25);
  position: relative; z-index: 41;
}
