/* Fontes no HTML via link Google Fonts. */
:root {
  --bg: #06090e;
  --card: #0b1219;
  --border: rgba(148, 163, 184, 0.14);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted2: #64748b;
  --hydra: #2dd4bf;
  --accent: #14b8a6;
  --cyan: #22d3ee;
  --ok: #4ade80;
  --flag: #fb923c;
  --bad: #f87171;
  --ctx: #38bdf8;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Outfit", "Figtree", system-ui, sans-serif;
  --brand: "Orbitron", system-ui, sans-serif;
  --surface: #0d1520;
  --shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    linear-gradient(180deg, #05080c, #06090e);
}

a { color: var(--hydra); text-decoration: none; }
a:hover { color: var(--cyan); }

.cc-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }

/* Nav — igual ao site Hydra */
.cc-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(10px);
  padding: 10px 0;
}

.cc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hydra-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.hydra-brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.25));
}

.hydra-brand-text { display: flex; flex-direction: column; line-height: 0.95; }

.hydra-brand-name {
  font-family: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hydra-brand-sub {
  font-family: var(--brand);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--cyan);
  margin-top: 2px;
}

.cc-nav-actions { display: flex; gap: 14px; align-items: center; font-size: 0.86rem; }
.cc-nav-link { color: var(--muted); text-decoration: none; }
.cc-nav-link:hover { color: var(--hydra); }

.btn-dl {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #042f2e;
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  text-decoration: none;
}

.btn-dl:hover { filter: brightness(1.05); color: #022c22; }

.cc-page-head { padding: 28px 0 8px; }

.cc-eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hydra);
  font-weight: 600;
}

.cc-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.cc-title em { font-style: normal; color: var(--cyan); }

.cc-lead { margin: 0 0 14px; color: var(--muted); max-width: 58ch; font-size: 1.02rem; line-height: 1.5; }

.cc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.86rem;
}
.cc-hero-meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cc-hero-meta a:hover { color: var(--hydra); }
.cc-hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted2); }

.cc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0 0 22px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--border);
}

.cc-stats strong { font-size: 1.15rem; }
.cc-stats span { display: block; font-size: 0.68rem; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.06em; }

.cc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(300px, 34%);
  gap: 20px;
  padding-bottom: 40px;
  align-items: start;
}

@media (max-width: 920px) { .cc-layout { grid-template-columns: 1fr; } }

.cc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
}

.cc-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%), var(--surface);
  box-shadow: var(--shadow);
}

.cc-card-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cc-card h3.cc-card-title { font-size: 1.05rem; }
.cc-muted { color: var(--muted); font-size: 0.88rem; margin: 0 0 12px; line-height: 1.45; }
.cc-hint { font-size: 0.8rem; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(251, 146, 60, 0.06); border: 1px solid rgba(251, 146, 60, 0.12); }
.cc-sum { text-align: center; font-size: 0.82rem; margin-bottom: 12px; }

.cc-run {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4, #14b8a6 55%, #0f766e);
  box-shadow: 0 8px 28px -8px rgba(45, 212, 191, 0.45);
}

.cc-run-icon { opacity: 0.9; }
.cc-run:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cc-run:disabled { opacity: 0.55; cursor: wait; transform: none; box-shadow: none; }

.cc-input-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.22);
}
.cc-input-title { font-size: 0.84rem; color: var(--muted); }
.cc-input-list { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.86rem; }
.cc-input-list li { margin: 8px 0; }
.cc-markers { display: inline-flex; gap: 5px; }
.marker {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-weight: 600; cursor: pointer; font-size: 0.78rem;
}
.marker.on { border-color: var(--ok); color: var(--ok); }
input[type="text"], select {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 5px 8px; font: inherit;
}
input[type="range"] { width: min(180px, 36vw); vertical-align: middle; }
.cc-hold {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 4px 12px; cursor: pointer; font: inherit;
}
.cc-hold.on { border-color: var(--hydra); }

.cc-run-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cc-timer { font-variant-numeric: tabular-nums; color: var(--muted2); font-size: 0.88rem; }
.cc-progress { height: 3px; background: #1e293b; border-radius: 2px; overflow: hidden; flex: 1; }
#progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width 0.15s; }
.cc-run-progress-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.cc-status-detail { font-size: 0.84rem; color: var(--muted2); margin: 0 0 10px; min-height: 1.1em; }

.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 760px) { .cc-grid { grid-template-columns: repeat(2, 1fr); } }
.cc-cell {
  background: #080c12; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; min-height: 62px; display: flex; flex-direction: column; justify-content: space-between;
}
.cc-cell.waiting { opacity: 0.72; }
.cc-cell.skip { border-style: dashed; opacity: 0.55; }
.cc-cell.measuring { border-color: rgba(45, 212, 191, 0.45); box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.12); }
.cc-cell.done.ok { border-color: rgba(74, 222, 128, 0.35); }
.cc-cell.done.warn { border-color: rgba(251, 146, 60, 0.45); }
.cc-cell.done.bad { border-color: rgba(248, 113, 113, 0.55); box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.15); }
.cc-cell.done.ok .cc-cell-bar i { background: var(--ok); }
.cc-cell.done.warn .cc-cell-bar i { background: var(--flag); }
.cc-cell.done.bad .cc-cell-bar i { background: var(--bad); }
.cc-cell-name { font-size: 0.76rem; font-weight: 500; line-height: 1.2; }
.cc-cell-st { font-size: 0.64rem; color: var(--muted2); margin-top: 4px; text-transform: lowercase; }
.cc-cell.measuring .cc-cell-st { color: var(--hydra); }
.cc-cell-bar { height: 2px; background: #1e293b; border-radius: 1px; margin-top: 6px; overflow: hidden; }
.cc-cell-bar i { display: block; height: 100%; background: var(--hydra); transition: width 0.3s; }
.cc-cell.measuring .cc-cell-bar i { width: 50%; }
.cc-cell.done .cc-cell-bar i { width: 100%; }
.cc-footnote { font-size: 0.78rem; color: var(--muted2); text-align: center; margin: 10px 0 0; }

.cc-aside { position: sticky; top: 64px; }
.cc-score-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px 16px;
}

.gauge {
  width: 118px; height: 118px; margin: 0 auto 8px; border-radius: 50%;
  background: conic-gradient(var(--gauge-fill, var(--hydra)) calc(var(--pct, 0) * 1%), #1e293b 0);
  display: grid; place-items: center; position: relative;
}
.gauge.has-flags { --gauge-fill: var(--bad); }
.gauge.score-low { --gauge-fill: var(--flag); }
.gauge::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--card);
}
.gauge div { position: relative; z-index: 1; text-align: center; line-height: 1; }
.gauge strong { font-size: 1.55rem; }
.gauge small { font-size: 0.58rem; color: var(--muted2); letter-spacing: 0.06em; }
.cc-score-label { text-align: center; font-weight: 600; color: var(--ok); margin: 0 0 4px; font-size: 0.88rem; }
.cc-score-label.review { color: var(--flag); }
.cc-score-label.bad { color: var(--bad); }
.cat-bars { margin: 12px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.cat-bar-head { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.cat-bar-track { height: 6px; border-radius: 999px; background: #1e293b; overflow: hidden; }
.cat-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--hydra)); transition: width 0.35s ease; }
.cat-bar-fill.warn { background: linear-gradient(90deg, var(--flag), #fbbf24); }
.cat-bar-fill.bad { background: linear-gradient(90deg, var(--bad), #fb7185); }

.cc-review { margin: 14px 0 8px; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--flag); font-weight: 600; }
.review-cards { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.review-card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border);
  font-size: 0.78rem; background: rgba(0, 0, 0, 0.25);
}
.review-card--bad { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.review-card--warn { border-color: rgba(251, 146, 60, 0.35); background: rgba(251, 146, 60, 0.07); }
.review-card--ok { border-style: dashed; color: var(--muted2); }
.review-card-body strong { display: block; font-size: 0.8rem; margin-bottom: 4px; line-height: 1.25; }
.review-card-body p { margin: 0; color: var(--muted2); line-height: 1.35; }
.review-pill { flex-shrink: 0; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }
.pill-bad { color: var(--bad); border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.12); }
.pill-warn { color: var(--flag); border-color: rgba(251, 146, 60, 0.4); background: rgba(251, 146, 60, 0.1); }

.cc-secondary {
  width: 100%; margin-top: 6px; padding: 8px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  cursor: pointer; font: inherit; font-size: 0.84rem;
}
.cc-secondary:hover { border-color: var(--hydra); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: #080c12; border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; text-align: center; }
.tile b { display: block; font-size: 1.15rem; }
.tile span { font-size: 0.62rem; color: var(--muted2); text-transform: uppercase; }
.tile-flag b { color: var(--flag); }
.tile-ok b { color: var(--ok); }
.tile-ctx b { color: var(--ctx); }
.tile-un b { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.filters button {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 4px 10px; font-size: 0.72rem; cursor: pointer;
}
.filters button.on { border-color: var(--hydra); color: var(--text); }

.findings { max-height: 55vh; overflow: auto; font-size: 0.8rem; }
.finding { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.f-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.f-cat { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted2); }
.f-badge { font-size: 0.6rem; text-transform: uppercase; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.finding.contradiction .f-badge { color: var(--bad); }
.f-title { margin: 0 0 4px; font-size: 0.9rem; font-weight: 600; }
.f-title a { color: var(--text); }
.f-title a:hover { color: var(--hydra); }
.f-detail { margin: 0 0 8px; color: var(--muted); font-size: 0.78rem; }
.f-obs, .f-exp, .f-why { margin: 0 0 6px; color: var(--muted2); font-size: 0.76rem; line-height: 1.4; }
.f-obs strong, .f-exp strong, .f-why strong {
  display: block; color: var(--text); font-size: 0.68rem; text-transform: uppercase; margin-bottom: 2px;
}
.f-resolve { margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(45, 212, 191, 0.2); background: rgba(20, 184, 166, 0.08); font-size: 0.76rem; }

.aside-discord {
  font-size: 0.8rem; color: var(--muted); margin: 0 0 10px; padding: 8px 10px;
  border-radius: 10px; border: 1px solid rgba(251, 146, 60, 0.2); background: rgba(251, 146, 60, 0.06);
}
.aside-discord.hidden { display: none; }

.unscored-rows { margin: 10px 0 12px; }
.unscored-rows h4 { margin: 0 0 6px; font-size: 0.68rem; text-transform: uppercase; color: var(--muted2); }
.u-row { border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; margin-bottom: 4px; font-size: 0.82rem; }
.u-row summary { cursor: pointer; list-style: none; }
.u-row p { margin: 6px 0 0; font-size: 0.76rem; color: var(--muted); }

.catalog-note { font-size: 0.78rem; margin: 0 0 6px; }
.cc-foot { padding: 20px 0 40px; border-top: 1px solid var(--border); color: var(--muted2); font-size: 0.78rem; }

.cc-section { padding: 36px 0 12px; border-top: 1px solid var(--border); margin-top: 8px; }
.cc-section-title { font-family: var(--display); font-size: 1.35rem; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.cc-section-lead { max-width: 62ch; margin-bottom: 18px; }

.subsystem-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px;
}
.subsystem-grid a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02); color: var(--text); text-decoration: none;
  font-size: 0.82rem; transition: border-color 0.15s, background 0.15s;
}
.subsystem-grid a:hover { border-color: rgba(45, 212, 191, 0.35); background: rgba(20, 184, 166, 0.06); }
.sub-name { line-height: 1.25; }
.sub-count { font-variant-numeric: tabular-nums; color: var(--muted2); font-size: 0.78rem; }

.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.ref-card {
  display: block; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.ref-card:hover { border-color: rgba(45, 212, 191, 0.35); transform: translateY(-2px); color: var(--text); }
.ref-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1rem; font-weight: 600; }
.ref-card p { margin: 0 0 10px; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.ref-more { font-size: 0.78rem; font-weight: 600; color: var(--hydra); }

/* Páginas de check */
.check-layout { max-width: 720px; padding-bottom: 40px; }
.slug { font-size: 0.72rem; color: var(--muted2); word-break: break-all; }
.group { display: inline-block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hydra); margin-bottom: 8px; }
.sect { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.sect h2 { margin: 0 0 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted2); }
.sect p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.actions .primary, .actions button, .actions a.btn-ghost {
  font: inherit; font-size: 0.85rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; text-decoration: none;
}
.actions .primary { background: linear-gradient(135deg, #2dd4bf, #0d9488); color: #042f2e; border: 0; font-weight: 600; }
.actions .btn-ghost { border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.live-v { font-weight: 700; text-transform: uppercase; font-size: 0.78rem; }
.live-v.coherent { color: var(--ok); }
.live-v.contradiction { color: var(--bad); }
.live-v.unresolved { color: var(--muted2); }
#nearby { margin: 0; padding-left: 1.1rem; font-size: 0.84rem; }
#nearby a { color: var(--hydra); }
