:root {
  /* Skynet / cipherpunk premium — fundo profundo, bordas finas, acentos só em dados críticos */
  --bg: #0b0e11;
  --bg-elevated: #0f1218;
  --bg-card: #12151c;
  --bg-card-strong: #181b24;
  --border: #2d3139;
  --border-glow: rgba(255, 59, 71, 0.32);
  --text: #f4f4f5;
  --text-muted: #9898a8;
  --accent: #ff3b47;
  --accent-bright: #ff6b6b;
  --accent-dim: rgba(255, 59, 71, 0.18);
  --accent-soft: rgba(255, 59, 71, 0.08);
  /* Secundário estilo Skynet: cinza-neutro (scores / meta), sem azul de marca antiga */
  --blue: #b4b4c0;
  --blue-dim: rgba(255, 255, 255, 0.07);
  --danger: #ff5252;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "Cascadia Code", monospace;
  --donut-mandatory: #22c55e;
  --donut-mandatory-dim: rgba(34, 197, 94, 0.14);
  --donut-triggered: #eab308;
  --donut-triggered-dim: rgba(234, 179, 8, 0.12);
  --donut-out: #4b5563;
  --donut-out-dim: rgba(75, 85, 99, 0.35);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(255, 59, 71, 0.12), 0 24px 56px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.noscript-banner {
  margin: 0;
  padding: 1rem 1.25rem;
  background: #3d1f1f;
  border-bottom: 2px solid var(--danger);
  color: #fff;
  font-size: 0.95rem;
}
.noscript-banner code {
  background: #00000055;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

body.sk-app {
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(255, 59, 71, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(255, 40, 50, 0.06), transparent 45%),
    linear-gradient(180deg, #0a0808 0%, var(--bg) 32%);
}

body.sk-app > main {
  flex: 1 0 auto;
}

body.sk-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

body.sk-app > header,
body.sk-app > main,
body.sk-app > footer,
body.sk-app > .noscript-banner {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
  min-width: 0;
  box-sizing: border-box;
}

.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;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.site-header.sk-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 59, 71, 0.08);
}

.sk-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.85rem 0;
  min-height: 3.25rem;
}

.sk-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.sk-brand-lockup:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.sk-brand-mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #ececf1;
}

.sk-topbar-mono-link {
  display: none;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e6e75;
  text-decoration: none;
  transition: color 0.15s ease;
}
.sk-topbar-mono-link:hover {
  color: #9a9aa3;
}

.sk-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.sk-nav-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
}

.sk-nav-pill--active {
  color: var(--accent-bright);
  border-color: rgba(255, 59, 71, 0.45);
  background: var(--accent-soft);
  box-shadow: 0 0 20px rgba(255, 59, 71, 0.08);
}

.sk-nav-pill--link {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.sk-nav-pill--link:hover {
  color: var(--text);
  border-color: #3d4450;
  background: rgba(255, 255, 255, 0.04);
}

.sk-subbar {
  border-top: 1px solid rgba(30, 38, 53, 0.65);
  padding: 0.5rem 0 0.75rem;
}

.sk-subbar-line {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  line-height: 1.45;
}

.sk-subbar-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 59, 71, 0.35);
  color: var(--accent-bright);
}

.main.sk-main {
  padding: 2.25rem 0 3.5rem;
  min-width: 0;
}

.panel {
  background: linear-gradient(165deg, var(--bg-card-strong) 0%, var(--bg-card) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.85rem;
  box-shadow: var(--shadow-glow);
  min-width: 0;
  max-width: 100%;
}

.pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--border-glow);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pill-ok {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 59, 71, 0.45);
  color: var(--text);
}

.intro-panel h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

.lead {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 65ch;
}
.lead a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lead a:hover {
  color: #fff;
}

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

input[type="text"] {
  width: 100%;
  max-width: 420px;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.85);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:hover {
  border-color: #2a3548;
}
input[type="text"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #c41e1e 0%, #e62e2e 42%, var(--accent) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 28px rgba(255, 59, 71, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 32px rgba(255, 59, 71, 0.45);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn:disabled,
.btn-loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.wizard {
  animation: fadeIn 0.35s ease;
  min-width: 0;
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-top {
  margin-bottom: 1.5rem;
}

.progress-wrap {
  height: 6px;
  background: rgba(30, 38, 53, 0.9);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #b01818, var(--accent), var(--accent-bright));
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
  box-shadow: 0 0 14px rgba(255, 59, 71, 0.45);
}

.step-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.block-title {
  margin: 0;
  font-size: 1.35rem;
}

.block-lead {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 70ch;
  line-height: 1.45;
}
.block-lead.hidden {
  display: none;
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.q-card {
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.95) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  max-width: 100%;
}
.q-card:hover {
  border-color: rgba(255, 59, 71, 0.22);
}

.q-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.q-text {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.q-why {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.q-audit-note {
  margin: -0.5rem 0 1rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(255, 59, 71, 0.35);
}

.q-field {
  margin: 0 0 0.25rem;
}

.q-select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.q-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  resize: vertical;
}

.q-multicheck {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.q-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
}

.q-check-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.q-check-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.q-radio-group {
  margin: 0;
}

.q-radio-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}


.q-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-yn {
  min-width: 100px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-yn:hover {
  border-color: var(--text-muted);
}
.btn-yn[aria-pressed="true"].yes {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-yn[aria-pressed="true"].no {
  background: #ffffff0d;
  border-color: var(--text-muted);
  color: var(--text);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.results-head .summary-line {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  max-width: 70ch;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric {
  position: relative;
  background: linear-gradient(160deg, var(--bg-card-strong) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 0.85rem;
  text-align: center;
  overflow: hidden;
}
.metric::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.05;
  text-shadow: 0 0 32px rgba(255, 59, 71, 0.28);
}
.metric-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  padding: 0;
}

.scope-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.scope-table th,
.scope-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.scope-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scope-table tbody tr:hover {
  background: #ffffff05;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-mandatory {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-glow);
}
.badge-conditional {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fine-print {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.fine-print a {
  color: var(--accent);
}

.site-footer.sk-footer {
  border-top: 1px solid var(--border);
  padding: 1.35rem 0;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: linear-gradient(0deg, rgba(7, 8, 12, 0.98) 0%, transparent 100%);
}

.footer-inner.sk-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sk-footer-copy {
  font-size: 0.78rem;
}

.sk-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}
.sk-footer-links a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sk-footer-links a:hover {
  color: var(--accent);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.85rem 1.1rem;
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  color: var(--text);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 50;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ——— Resultados — dashboard analítico ——— */
.results-dashboard {
  padding-top: 0.25rem;
}

.results-hero.dashboard-hero {
  margin-bottom: 1.5rem;
  padding: 1.75rem 1.9rem;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #14161c 0%, var(--bg-card-strong) 42%, var(--bg-card) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, var(--shadow-glow);
}

.dashboard-hero-grid {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .dashboard-hero-grid {
    grid-template-columns: 1fr minmax(280px, 340px);
  }
}

.dashboard-entity-label {
  margin: 0.5rem 0 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.dashboard-entity-name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
  word-break: break-word;
}

.dashboard-track-pill {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--blue);
}

.dashboard-summary-line {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.dashboard-chart-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, rgba(15, 18, 24, 0.98) 0%, var(--bg-elevated) 100%);
  min-width: 0;
}

.dashboard-chart-title {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.dashboard-chart-sub {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 0.92;
}

.donut-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.donut-ring-wrap {
  position: relative;
  width: 156px;
  height: 156px;
  flex-shrink: 0;
}

.donut-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--border) 0% 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.donut-hole {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.35rem;
}

.donut-pct {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.donut-hole-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  max-width: 8ch;
  line-height: 1.25;
}

.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.donut-legend li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.65rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.donut-legend-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.donut-legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.donut-legend-swatch--mandatory {
  background: var(--donut-mandatory);
  box-shadow: 0 0 10px var(--donut-mandatory-dim);
}
.donut-legend-swatch--triggered {
  background: var(--donut-triggered);
  box-shadow: 0 0 10px var(--donut-triggered-dim);
}
.donut-legend-swatch--out {
  background: var(--donut-out);
}

.kpi-strip {
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0.75rem;
}

.kpi-strip .metric {
  padding: 1.15rem 0.9rem;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(24, 27, 36, 0.95) 0%, var(--bg-elevated) 100%);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kpi-strip .metric:hover {
  border-color: #3d4450;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.kpi-strip .metric-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.65rem;
  text-shadow: none;
}

.metrics-results {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.metric--muted .metric-value {
  color: var(--text-muted);
}

/* Corpo do resultado: grelha analítica em ecrã largo */
.results-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

@media (min-width: 1100px) {
  .results-body.dashboard-lists-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.results-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.results-section--audit {
  border-color: rgba(255, 59, 71, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 59, 71, 0.1) inset, var(--shadow);
}

.results-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.results-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.results-section-title--muted {
  color: var(--text-muted);
}

.results-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid var(--border-glow);
  letter-spacing: 0.04em;
}

.results-count--muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border);
}

.results-section-lead {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 72ch;
}

.title-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}
.title-dot--muted {
  background: var(--text-muted);
  box-shadow: none;
}

.inciso-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-height: 2rem;
}

.inciso-card {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: visible;
  text-align: left;
}

.inciso-card--audit {
  border-color: rgba(255, 59, 71, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 59, 71, 0.08) inset;
}

.inciso-card--skip {
  opacity: 0.92;
}

.inciso-card-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.98) 0%, rgba(10, 12, 18, 0.95) 100%);
}

.inciso-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}
.inciso-pill--audit {
  background: var(--accent-dim);
  color: var(--accent);
}

.inciso-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.inciso-id {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.inciso-id code {
  font-size: inherit;
  color: var(--blue);
  background: transparent;
}

.inciso-body {
  padding: 0.9rem 1rem 1rem;
}

.inciso-label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.inciso-label--bcb {
  margin-top: 0.75rem;
  color: var(--accent);
}

.inciso-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #dcdcdc;
}

.inciso-text--bcb {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.inciso-meta {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.empty-col {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.results-disclaimer {
  margin-top: 2rem;
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.5;
}

/* Jornada 2 */
.journey-2-panel {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 59, 71, 0.18);
  background: linear-gradient(165deg, #140c0d 0%, var(--bg-card-strong) 45%, var(--bg-card) 100%);
  box-shadow: var(--shadow-glow);
  min-width: 0;
  overflow: hidden;
}
.j2-heading {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--accent);
}
.j2-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.j2-sub {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.95rem;
}
.j2-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.j2-activation-head {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.j2-activation-master.journey-2-panel {
  padding: 1.65rem 1.85rem;
  border-color: rgba(255, 59, 71, 0.22);
}

.j2-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.j2-product {
  position: relative;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-width: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.j2-product:hover {
  border-color: #3d4450;
}

.j2-product--active {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px var(--donut-mandatory-dim);
}

.j2-product--inactive {
  opacity: 0.9;
}

.j2-product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}

.j2-product-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.j2-product-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.j2-product--active .j2-product-status {
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
  background: var(--donut-mandatory-dim);
}

.j2-product--inactive .j2-product-status {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.j2-product-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.j2-product-body {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #c4c4cc;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.j2-product-form {
  margin: 0.65rem 0 0;
}

.j2-product-form a {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.3s ease;
}

.j2-product-form a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.j2-streams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
}
.j2-stream {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-width: 0;
  overflow: hidden;
}
.j2-stream--on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}
.j2-stream--off {
  opacity: 0.88;
}
.j2-stream-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.j2-stream-status {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.j2-stream-body {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #d0d0d0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.j2-form-link {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.j2-form-link a {
  color: var(--accent-bright);
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.45;
  vertical-align: top;
}
.j2-notes {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #ff980022;
  border-left: 3px solid #ff9800;
}
.j2-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.j2-note:first-child {
  margin-top: 0;
}
.j2-checklist {
  margin-top: 0.5rem;
}
.j2-inciso {
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  background: var(--bg-elevated);
}
.j2-summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}
.j2-summary code {
  color: var(--blue);
  font-size: 0.85em;
}
.j2-pedidos {
  margin: 0.5rem 0 0.35rem 0;
  padding: 0;
  list-style: none;
}
.j2-pedido {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #d4d4d4;
  list-style: none;
  margin-left: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #101010;
}
.j2-pedido--skip {
  opacity: 0.72;
  border-color: #555;
}
.j2-pedido--elaborate {
  border-color: #ff980088;
  background: #1a1408;
}
.j2-pedido-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.j2-pedido-badge--skip {
  background: #444;
  color: #e0e0e0;
}
.j2-pedido-badge--elab {
  background: #ff980033;
  color: #ffb74d;
  border: 1px solid #ff980055;
}
.j2-pedido-main {
  margin-bottom: 0.55rem;
}
.j2-pedido-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.btn-j2 {
  font: inherit;
  font-size: 0.74rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-j2:hover {
  background: var(--bg-elevated);
  border-color: #555;
}
.btn-j2[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.btn-j2-reset {
  color: var(--text-muted);
  border-style: dashed;
}
.j2-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.j2-det {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--text-muted);
}

/* Painel final — acordeões por inciso e documento */
.results-hero .summary-line {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.dash-audit-list,
.dash-skip-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-inciso {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.dash-inciso-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

@media (max-width: 719px) {
  .dash-inciso-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .dash-inciso-docs-n {
    justify-self: start;
  }
}
.dash-inciso-summary::-webkit-details-marker {
  display: none;
}
.dash-inciso[open] > .dash-inciso-summary {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255, 59, 71, 0.1) 0%, rgba(14, 12, 14, 0.98) 58%);
}

.dash-inciso-pill {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  border: 1px solid transparent;
  flex-shrink: 0;
  line-height: 1.2;
}

.dash-inciso-pill--mandatory {
  background: var(--donut-mandatory-dim);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.dash-inciso-pill--triggered {
  background: var(--donut-triggered-dim);
  border-color: rgba(234, 179, 8, 0.4);
  color: #facc15;
}

.dash-inciso-pill--neutral {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-muted);
}

.dash-inciso-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.dash-inciso-item {
  font-size: 0.95rem;
  color: var(--text);
}
.dash-inciso-meta {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}
.dash-inciso-meta code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: #a1a1b0;
}

.dash-inciso-docs-n {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
}

.dash-inciso-body {
  padding: 0.85rem 1rem 1rem;
}

.dash-context {
  margin-bottom: 1rem;
  border: 1px solid #2a3530;
  border-radius: 8px;
  background: var(--bg-elevated);
}
.dash-context-summary {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
}
.dash-context-summary::-webkit-details-marker {
  display: none;
}
.dash-context-body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid #2e2426;
}
.dash-label {
  margin: 0.65rem 0 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.dash-label:first-child {
  margin-top: 0;
}
.dash-label--bcb {
  color: var(--accent);
  margin-top: 0.75rem;
}
.dash-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #d6d6d6;
}
.dash-text--bcb {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.dash-gatilho {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-docs-section {
  margin-top: 0.25rem;
}
.dash-docs-title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}
.dash-docs-lead {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.dash-docs-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.dash-doc {
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #121212;
}
.dash-doc-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
}
.dash-doc-summary::-webkit-details-marker {
  display: none;
}
.dash-doc[open] > .dash-doc-summary {
  border-bottom: 1px solid var(--border);
  background: #181818;
}
.dash-doc-title {
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.dash-doc-cat {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.dash-doc-panel {
  padding: 0.65rem 0.85rem 0.85rem;
}
.dash-doc-label {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.dash-doc-det {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #ccc;
}

.dash-doc-otimo {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #1c1416 0%, #161214 100%);
  border: 1px solid rgba(255, 59, 71, 0.2);
}
.dash-doc-otimo-label {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
}
.dash-doc-otimo-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #d8d0d2;
}

.dash-pedido-shell {
  margin-top: 0.15rem;
  padding: 0.55rem 0;
  border-top: 1px dashed var(--border);
}

.dash-skip-host {
  width: 100%;
}
.dash-skip-outer {
  border: 1px solid #333;
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.dash-skip-outer-summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
}
.dash-skip-outer-summary::-webkit-details-marker {
  display: none;
}
.dash-skip-outer-title {
  color: var(--text-muted);
}
.dash-skip-outer-count {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #333;
  color: #ccc;
}
.dash-skip-outer-body {
  padding: 0.5rem 0.75rem 0.85rem;
  border-top: 1px solid #333;
}
.dash-skip-item {
  margin-bottom: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}
.dash-skip-item-summary {
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.dash-skip-item-summary::-webkit-details-marker {
  display: none;
}
.dash-skip-item-summary code {
  font-size: 0.78rem;
  color: var(--blue);
}
.dash-skip-item-body {
  padding: 0 0.75rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.dash-skip-art {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
}
.dash-skip-why {
  margin: 0;
  color: #aaa;
}

.journey-2-panel--compact {
  margin-bottom: 1.25rem;
}

/* --- Landing intro (SaaS / alta legibilidade) --- */
body.app-view-intro.sk-app {
  background-color: #0d0d0f;
  background-image: linear-gradient(168deg, #0d0d0f 0%, #121214 38%, #141416 72%, #161618 100%);
}

body.app-view-intro.sk-app::before {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

body.app-view-intro .sk-subbar {
  display: none;
}

body.app-view-intro .sk-nav {
  display: none;
}

body.app-view-intro .sk-topbar-mono-link {
  display: inline-flex;
}

body.app-view-intro .site-header.sk-topbar {
  background: rgba(13, 13, 15, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body.app-view-intro .sk-brand-mark {
  font-size: 0.98rem;
  font-weight: 600;
  color: #a1a1aa;
}

body.app-view-intro .sk-main {
  padding-top: clamp(1.75rem, 6vh, 3rem);
  padding-bottom: clamp(2rem, 8vh, 3.5rem);
}

.intro-landing {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
}

/* Bloco flutuante: sem borda dura, elevação por sombra */
.intro-landing__float {
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: 24px;
  background: rgba(30, 30, 36, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.intro-landing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.intro-landing__wordmark {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9b9ba3;
}

.intro-landing__title {
  margin: 0;
  font-size: clamp(1.65rem, 4.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e7 45%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.intro-landing__desc {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.intro-landing__desc-line {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #888888;
  text-align: center;
}

.intro-landing__desc-line strong {
  color: #c4c4cc;
  font-weight: 600;
}

.intro-landing__desc-line--muted {
  font-size: 0.8125rem;
  color: #6b6b70;
}

.intro-track {
  width: 100%;
  max-width: 22rem;
  margin-top: 0.15rem;
}

.intro-track__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9aa3;
  text-align: center;
}

.intro-track__buttons {
  display: flex;
  gap: 0.5rem;
}

.intro-track__btn {
  flex: 1;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(36, 36, 42, 0.85);
  color: #a1a1aa;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.intro-track__btn:hover {
  border-color: rgba(255, 59, 71, 0.35);
  color: #e4e4e7;
}

.intro-track__btn--active {
  border-color: rgba(255, 75, 85, 0.55);
  background: rgba(255, 59, 71, 0.12);
  color: #f4f4f5;
}

.intro-landing__cta {
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.25rem;
  text-align: center;
}

.intro-landing__cta .field {
  width: 100%;
  margin: 0;
  text-align: left;
}

.intro-landing__field-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9aa3;
  margin-bottom: 0.45rem;
}

.intro-landing__input {
  width: 100%;
  max-width: none !important;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(40, 40, 48, 0.95);
  color: #f4f4f5;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.intro-landing__input::placeholder {
  color: #5c5c64;
}

.intro-landing__input:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(44, 44, 52, 0.98);
}

.intro-landing__input:focus {
  outline: none;
  border-color: rgba(255, 75, 85, 0.85);
  box-shadow:
    0 0 0 3px rgba(255, 59, 71, 0.22),
    0 0 32px rgba(255, 59, 71, 0.14);
  background: rgba(46, 46, 54, 1);
}

.intro-landing__submit.btn-hero.btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.88rem 1.2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 128, 0.35);
  background: linear-gradient(180deg, #ff4d5c 0%, #e82e3d 48%, #d42634 100%);
  box-shadow:
    0 4px 20px rgba(255, 59, 71, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.intro-landing__submit.btn-hero.btn-primary:hover {
  filter: brightness(1.07);
  box-shadow:
    0 8px 36px rgba(255, 59, 71, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  transform: translateY(-1px);
}

.intro-landing__submit.btn-hero.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.intro-landing__certik-foot {
  margin: 0.35rem 0 0;
  padding-top: 0.35rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: #7a7a82;
  text-align: center;
}

.intro-landing__certik-foot a {
  color: #a8a8b0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.intro-landing__certik-foot a:hover {
  color: #d4d4d8;
}

.btn-hero {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
  border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 1.25rem);
  }
  .panel {
    padding: 1.15rem;
  }
  .scope-table {
    font-size: 0.78rem;
  }
  .scope-table th,
  .scope-table td {
    padding: 0.55rem 0.65rem;
  }
}

/* ============================================================
   UI/UX IMPROVEMENTS — Fase A, B, C
   ============================================================ */

/* --- #1: Descrições nos botões de trilha --- */
.intro-track__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.intro-track__btn-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.intro-track__btn-desc {
  font-size: 0.65rem;
  font-weight: 400;
  color: #6e6e78;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.15s ease;
}

.intro-track__btn--active .intro-track__btn-desc {
  color: rgba(244, 244, 245, 0.65);
}

.intro-track__btn:hover .intro-track__btn-desc {
  color: rgba(228, 228, 231, 0.65);
}

/* --- #2: "Fora do escopo" fechado por defeito --- */
.skip-section-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.skip-section-toggle:hover {
  color: var(--text);
  border-color: #4b5563;
}

.skip-section-toggle__chevron {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
}

.skip-section-toggle[aria-expanded="true"] .skip-section-toggle__chevron {
  transform: rotate(90deg);
}

.skip-cards-wrap {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

.skip-cards-wrap.is-open {
  max-height: 9999px;
  opacity: 1;
}

/* --- #3: Navegação sticky no wizard (mobile) --- */
@media (max-width: 767px) {
  .wizard-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: rgba(11, 14, 17, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 0.85rem 1rem;
    margin-top: 1.25rem;
  }
}

/* --- #4: Progress bar com nomes de bloco --- */
.step-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.block-dots {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.block-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.25s ease, transform 0.2s ease, width 0.25s ease;
  border: 1px solid transparent;
  cursor: default;
  flex-shrink: 0;
}

.block-dot[title] {
  cursor: help;
}

.block-dot--done {
  background: rgba(255, 59, 71, 0.45);
}

.block-dot--active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 59, 71, 0.5);
}

.block-dot-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: 0.2rem;
  white-space: nowrap;
}

/* --- #5: Animação slide entre blocos --- */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}

.questions--slide-in {
  animation: slideInRight 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.questions--slide-back {
  animation: slideInLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- #6: Estilo visual distinto para perguntas audit-only --- */
.q-card--audit-only {
  border-color: rgba(74, 144, 226, 0.22);
  background: linear-gradient(180deg, rgba(15, 19, 30, 0.98) 0%, rgba(12, 16, 24, 0.95) 100%);
}

.q-card--audit-only:hover {
  border-color: rgba(74, 144, 226, 0.38);
}

.q-card--audit-only .q-id {
  color: #93c5fd;
}

.q-audit-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid rgba(74, 144, 226, 0.3);
  color: #93c5fd;
  margin-bottom: 0.45rem;
}

/* --- #7: Badge de impacto nas perguntas de escopo --- */
.q-impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 59, 71, 0.32);
  color: var(--accent-bright);
  margin-bottom: 0.45rem;
}

.q-impact-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* --- #8: Filtro sticky na árvore de decisão --- */
.dt-sticky-bar {
  position: sticky;
  top: 56px; /* altura do topbar */
  z-index: 20;
  background: rgba(11, 14, 17, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  margin-bottom: 1.25rem;
}

/* --- #9: Banner de retomar sessão --- */
.resume-banner {
  width: 100%;
  max-width: 22rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.07);
  font-size: 0.82rem;
  color: var(--text);
  flex-wrap: wrap;
}

.resume-banner__icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.resume-banner__text {
  flex: 1;
  color: #e7d27a;
  font-weight: 500;
}

.resume-banner__btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fbbf24;
  font-weight: 700;
  flex-shrink: 0;
}

.resume-banner__btn:hover {
  background: rgba(234, 179, 8, 0.28);
  color: #fde68a;
}

.resume-banner__dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.1rem 0.2rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.resume-banner__dismiss:hover {
  color: var(--text);
}

/* --- #10: Botão Exportar JSON --- */
.btn-export-loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

/* ============================================================
   Transições suaves em controlos interativos (paridade Skynet) */
:is(
    a,
    button,
    .btn,
    .btn-yn,
    input[type="text"],
    .intro-track__btn,
    .sk-nav-pill--link,
    summary,
    .dash-inciso-summary,
    .dash-doc-summary,
    .q-card
  ) {
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease,
    filter 0.3s ease;
}

/* ============================================================
   GUIA DE DOCUMENTOS — Secção similar à árvore de decisão
   ============================================================ */

.docs-guide-view {
  padding: 1.75rem 0 3.5rem;
  min-height: 60vh;
}

.dg-wrap {
  max-width: 980px;
}

/* Toolbar */
.dg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.dg-back { flex-shrink: 0; }

.dg-heading-block {
  flex: 1 1 280px;
  min-width: 0;
}

.dg-main-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dg-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 65ch;
}

/* Sticky bar (stats + filtros) */
.dg-sticky-bar {
  position: sticky;
  top: 56px;
  z-index: 20;
  background: rgba(11, 14, 17, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  margin-bottom: 1.25rem;
}

.dg-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.dg-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dg-stat strong { color: var(--text); font-weight: 700; }
.dg-stat--crit strong { color: #f87171; }
.dg-stat-sep { color: var(--border); }

.dg-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.dg-filter-count-wrap {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dg-ctrl-btn {
  font-size: 0.75rem !important;
  padding: 0.38rem 0.75rem !important;
  border-radius: 7px !important;
}

.dg-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: flex-end;
}

.dg-filter-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dg-filter-text {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.dg-filter-input {
  padding: 0.52rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  min-width: 220px;
  transition: border-color 0.2s ease;
}

.dg-filter-input:focus {
  outline: none;
  border-color: rgba(255, 59, 71, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 59, 71, 0.12);
}

.dg-prio-select {
  padding: 0.52rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Legenda */
.dg-legend {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 24, 32, 0.95) 0%, rgba(15, 18, 24, 0.88) 100%);
}

.dg-legend-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.dg-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dg-legend-sep { color: var(--border); font-size: 0.85rem; }

/* Body */
.dg-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dg-loading, .dg-error {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

.dg-hidden { display: none !important; }

/* Accordion por inciso */
.dg-inciso {
  border: 1px solid rgba(45, 49, 57, 0.85);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(22, 26, 34, 0.98) 0%, rgba(15, 18, 24, 0.96) 100%);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.dg-inciso:hover { border-color: rgba(255, 59, 71, 0.22); }

.dg-inciso[open] {
  border-color: rgba(255, 59, 71, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 59, 71, 0.08);
}

.dg-inciso-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.05rem;
  display: grid;
  grid-template-columns: 1rem auto 1fr auto;
  gap: 0.4rem 0.75rem;
  align-items: center;
}

.dg-inciso-summary::-webkit-details-marker { display: none; }

.dg-inciso-summary:focus-visible {
  outline: 2px solid rgba(255, 59, 71, 0.65);
  outline-offset: 2px;
  border-radius: 8px;
}

.dg-inc-chevron {
  color: var(--text-muted);
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.dg-inciso[open] .dg-inc-chevron { transform: rotate(90deg); }

.dg-inc-rotulo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-bright);
  padding: 0.18rem 0.42rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 59, 71, 0.3);
  background: var(--accent-soft);
  white-space: nowrap;
}

.dg-inc-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.dg-inc-tema {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.dg-inc-art {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dg-inc-badges {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
  align-items: center;
}

.dg-inc-badge {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dg-inc-badge--docs {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-muted);
}

.dg-inc-badge--critico {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #f87171;
}

/* Body do inciso */
.dg-inciso-body {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid rgba(45, 49, 57, 0.75);
  background: rgba(0, 0, 0, 0.15);
  animation: dtBodyReveal 0.3s ease;
}

.dg-inciso-meta {
  margin-bottom: 1.1rem;
}

.dg-resumo {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

.dg-gatilho {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dg-gatilho strong { color: var(--text); }

.dg-base-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dg-base-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.18rem 0.48rem;
  border-radius: 4px;
  border: 1px solid rgba(74, 144, 226, 0.35);
  background: rgba(74, 144, 226, 0.1);
  color: #93c5fd;
  font-family: var(--font-mono);
}

.dg-docs-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* Cards de documento */
.dg-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.dg-doc-card {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease;
}

.dg-doc-card:hover { border-color: #3d4450; }

.dg-doc-card--critica {
  border-left: 3px solid #f87171;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.05) 0%, var(--bg-card) 30%);
}

.dg-doc-card--alta {
  border-left: 3px solid #fbbf24;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.05) 0%, var(--bg-card) 30%);
}

.dg-doc-card--media {
  border-left: 3px solid #94a3b8;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.05) 0%, var(--bg-card) 30%);
}

.dg-doc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
}

.dg-doc-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.dg-doc-titulo {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.dg-prio-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.dg-prio--critica {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

.dg-prio--alta {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.dg-prio--media {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.dg-cat-badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.dg-doc-descricao {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #c8c8d0;
}

/* Sub-detalhes (justificativa / conteúdo mínimo) */
.dg-doc-detail {
  margin-bottom: 0.35rem;
}

.dg-doc-detail-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.3rem 0.1rem;
}

.dg-doc-detail-summary::-webkit-details-marker { display: none; }

.dg-doc-detail-toggle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.dg-doc-detail:hover .dg-doc-detail-toggle { color: var(--text); }

.dg-doc-justificativa {
  margin: 0.4rem 0 0 1.2rem;
  font-size: 0.79rem;
  line-height: 1.55;
  color: #b8c0cc;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(74, 144, 226, 0.07);
  border-left: 2px solid rgba(74, 144, 226, 0.35);
}

.dg-conteudo-list {
  margin: 0.4rem 0 0 1.2rem;
  padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  list-style: disc;
  font-size: 0.79rem;
  line-height: 1.6;
  color: #c0c8d4;
}

.dg-conteudo-list li { margin-bottom: 0.2rem; }

.dg-retencao {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dg-retencao strong { color: var(--text); }

/* Resposta ótima */
.dg-otima {
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 20, 14, 0.98) 0%, rgba(16, 18, 14, 0.95) 100%);
  border: 1px solid rgba(234, 179, 8, 0.3);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.08) inset;
}

.dg-otima-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.dg-otima-icon { font-size: 1rem; }

.dg-otima-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
}

.dg-otima-desc {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #d8d0b8;
}

.dg-otima-indicadores-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.dg-otima-indicadores {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dg-otima-indicadores li {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #c8c4a8;
  padding-left: 1.1rem;
  position: relative;
}

.dg-otima-indicadores li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ---- CertiK badge e card highlight ---- */

.dg-doc-card--certik {
  border-top: 2px solid rgba(14, 165, 233, 0.35);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.04) 0%, var(--bg-card) 40%);
}

.dg-doc-card--certik.dg-doc-card--critica {
  background: linear-gradient(165deg, rgba(14, 165, 233, 0.06) 0%, rgba(248, 113, 113, 0.04) 40%, var(--bg-card) 70%);
}

.dg-certik-block {
  margin-bottom: 0.6rem;
}

.dg-certik-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem 0.28rem 0.5rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0.07) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dg-certik-logo {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.dg-certik-label {
  color: #7dd3fc;
  white-space: nowrap;
}

.dg-certik-service {
  color: #0ea5e9;
  text-decoration: none;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.dg-certik-service:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.55);
  color: #38bdf8;
}

.dg-certik-nota {
  margin: 0.35rem 0 0 0.3rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #94c6e0;
  border-left: 2px solid rgba(14, 165, 233, 0.3);
  font-style: italic;
}

/* Stat CertiK */
.dg-stat--certik strong { color: #38bdf8; }

/* Legenda CertiK */
.dg-legend-item--certik {
  margin-top: 0.1rem;
}

.dg-certik-legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.48rem;
  border-radius: 5px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #7dd3fc;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Filtro "Só CertiK" */
.dg-certik-toggle-label {
  cursor: pointer;
  user-select: none;
}

.dg-certik-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.dg-certik-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.06);
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.dg-certik-toggle-btn svg { color: #38bdf8; flex-shrink: 0; }

.dg-certik-checkbox:checked + .dg-certik-toggle-btn {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.6);
  color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.dg-certik-toggle-label:hover .dg-certik-toggle-btn {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.5);
}

/* Botão "Guia de documentos" na intro */
.intro-landing__aux-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.intro-landing__docs-btn {
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fde68a !important;
  background: rgba(251, 191, 36, 0.06) !important;
}

.intro-landing__docs-btn:hover {
  border-color: rgba(251, 191, 36, 0.55) !important;
  background: rgba(251, 191, 36, 0.1) !important;
  color: #fef3c7 !important;
}

/* Mobile */
@media (max-width: 640px) {
  .dg-inciso-summary {
    grid-template-columns: 1rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.3rem;
  }
  .dg-inc-rotulo { grid-column: 2; }
  .dg-inc-info { grid-column: 1 / -1; }
  .dg-inc-badges { grid-column: 1 / -1; }
  .dg-stats-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Árvore de decisão (mapa perguntas × incisos) ---------- */
.intro-landing__tree-wrap {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(45, 49, 57, 0.9);
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.intro-landing__tree-btn {
  width: 100%;
  max-width: 22rem;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
}

.intro-landing__tree-btn:hover {
  border-color: #3d4450;
  background: rgba(255, 255, 255, 0.07);
}

.intro-landing__tree-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.decision-tree-view {
  padding: 1.75rem 0 3.5rem;
  min-height: 60vh;
}

.dt-wrap {
  max-width: 980px;
}

.dt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.dt-back {
  flex-shrink: 0;
}

.dt-heading-block {
  flex: 1 1 280px;
  min-width: 0;
}

.dt-main-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dt-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 65ch;
}

.dt-track-bar {
  margin-bottom: 1.25rem;
}

.dt-track-label {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.dt-track-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dt-pill {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.dt-pill:hover {
  color: var(--text);
  border-color: #3d4450;
}

.dt-pill--active {
  color: var(--accent-bright);
  border-color: rgba(255, 59, 71, 0.45);
  background: var(--accent-soft);
}

.dt-search-row {
  margin-bottom: 1.25rem;
}

.dt-filter-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 420px;
}

.dt-filter-text {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dt-filter-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.85);
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dt-filter-input:focus {
  outline: none;
  border-color: rgba(74, 144, 226, 0.55);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.18);
}

/* Legenda global — 3 passos (didática) */
.dt-visual-key {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 24, 32, 0.95) 0%, rgba(15, 18, 24, 0.88) 100%);
}

.dt-visual-key-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
}

.dt-key-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.dt-key-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.2);
  border: 1px solid rgba(74, 144, 226, 0.45);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.dt-key-shape {
  flex-shrink: 0;
  display: inline-block;
}

.dt-key-shape--bar {
  width: 10px;
  height: 26px;
  background: #d3d3d3;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dt-key-shape--dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.25);
}

.dt-key-shape--tri {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #ff8c42;
}

.dt-key-txt {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.dt-key-txt strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.dt-key-txt small {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 11rem;
}

.dt-key-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.65;
  user-select: none;
}

.dt-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.15rem;
}

.dt-ctrl-btn {
  font-size: 0.78rem !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 8px !important;
  border-color: var(--border) !important;
}

.dt-ctrl-btn:hover {
  border-color: rgba(74, 144, 226, 0.45) !important;
  color: #93c5fd !important;
}

.dt-mandatory-card {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.35rem;
}

.dt-mandatory-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4ade80;
}

.dt-mandatory-lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dt-inciso-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dt-note-suppress {
  margin-bottom: 1.25rem;
  padding: 1rem 1.2rem;
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.06);
}

.dt-suppress-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e7e7eb;
}

.dt-blocks-root {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dt-block {
  border: 1px solid rgba(45, 49, 57, 0.85);
  border-radius: 14px;
  padding: 1.35rem 1.45rem 1.45rem;
  background: linear-gradient(165deg, rgba(22, 26, 34, 0.98) 0%, rgba(15, 18, 24, 0.96) 100%);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dt-block:hover {
  border-color: rgba(74, 144, 226, 0.22);
}

.dt-block.hidden {
  display: none !important;
}

.dt-block-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.dt-block-id {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  margin-right: 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent-bright);
  vertical-align: middle;
}

.dt-block-lead {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dt-questions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dt-q {
  border: 1px solid rgba(45, 49, 57, 0.9);
  border-radius: 12px;
  background: rgba(18, 21, 28, 0.65);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dt-q:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.dt-q[open] {
  border-color: rgba(74, 144, 226, 0.28);
  box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.12);
}

.dt-q.hidden {
  display: none !important;
}

.dt-q-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.05rem;
  display: grid;
  grid-template-columns: 1.1rem auto auto auto minmax(0, 1fr);
  gap: 0.4rem 0.65rem;
  align-items: center;
  font-size: 0.82rem;
}

.dt-q-summary::-webkit-details-marker {
  display: none;
}

.dt-q-summary:focus-visible {
  outline: 2px solid rgba(74, 144, 226, 0.65);
  outline-offset: 2px;
  border-radius: 8px;
}

.dt-q-chevron {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.dt-q-chevron::before {
  content: "▸";
  display: inline-block;
  transition: transform 0.2s ease;
}

.dt-q[open] .dt-q-chevron::before {
  transform: rotate(90deg);
}

.dt-q-id {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent-bright);
}

.dt-q-type {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.dt-badge {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.dt-badge--scope {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.dt-badge--audit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.dt-q-preview {
  color: var(--text);
  line-height: 1.35;
  overflow: hidden;
}

.dt-q-body {
  padding: 0 1.05rem 1.15rem;
  border-top: 1px solid rgba(45, 49, 57, 0.75);
  background: rgba(0, 0, 0, 0.2);
}

@keyframes dtBodyReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dt-q[open] > .dt-q-body {
  animation: dtBodyReveal 0.32s ease;
}

.dt-q-text {
  margin: 0.85rem 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.dt-q-why {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.dt-flow-wrap {
  margin-top: 0.35rem;
}

/* Árvore de decisão — padrão visual claro (retângulo cinza, círculos azuis, triângulos laranja, linhas cinza) */
.dt-flow-canvas {
  --dt-root-gray: #d3d3d3;
  --dt-line: #cccccc;
  --dt-blue: #4a90e2;
  --dt-orange: #ff8c42;
  --dt-text: #111111;
  --dt-text-sub: #5c5c5c;
  background: #fafbfc;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.35rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.dt-flow-micro-legend {
  list-style: none;
  margin: 0 0 1.05rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid #eef0f3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dt-flow-micro-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--dt-text-sub);
}

.dt-flow-micro-legend strong {
  color: var(--dt-text);
  font-weight: 600;
}

.dt-micro-ico {
  flex-shrink: 0;
  display: inline-block;
}

.dt-micro-ico--bar {
  width: 8px;
  height: 20px;
  background: var(--dt-root-gray);
  border-radius: 2px;
}

.dt-micro-ico--dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dt-blue);
}

.dt-micro-ico--tri {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--dt-orange);
}

.dt-flow-h-rail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.dt-flow-root {
  flex: 0 0 auto;
  width: 34px;
  min-height: 140px;
  margin-right: 10px;
  background: linear-gradient(180deg, #dedede 0%, var(--dt-root-gray) 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dt-flow-canvas:hover .dt-flow-root {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 3px 10px rgba(74, 144, 226, 0.15);
}

.dt-flow-root-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #3a3a3a;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
  max-height: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-flow-rails {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.75rem 2.25rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0.25rem 0.5rem 0.5rem;
}

.dt-flow-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: min(200px, 100%);
  max-width: 340px;
  padding: 0.55rem 0.45rem 0.65rem;
  border-radius: 12px;
  outline: none;
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.22s ease;
}

.dt-flow-rail:hover {
  background: rgba(74, 144, 226, 0.07);
  box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.18);
}

.dt-flow-rail:focus-visible {
  box-shadow: 0 0 0 2px #4a90e2, 0 0 0 4px rgba(74, 144, 226, 0.25);
}

.dt-flow-rail--focus {
  background: rgba(255, 140, 66, 0.1) !important;
  box-shadow: 0 0 0 2px rgba(255, 140, 66, 0.45) !important;
  transform: translateY(-1px);
}

.dt-flow-rail-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.dt-flow-edge-labels {
  text-align: center;
  margin-bottom: 0.35rem;
  max-width: 280px;
}

.dt-flow-lbl-main {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dt-text);
  line-height: 1.3;
}

.dt-flow-lbl-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--dt-text-sub);
  line-height: 1.35;
}

.dt-flow-rail-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
}

.dt-flow-line-diag-wrap {
  position: relative;
  width: 44px;
  height: 36px;
  flex-shrink: 0;
  margin-right: -4px;
}

.dt-flow-line-diag {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 56px;
  height: 2px;
  background: var(--dt-line);
  transform-origin: left center;
  transform: rotate(-42deg);
  border-radius: 1px;
  transition: background 0.25s ease, height 0.2s ease;
}

.dt-flow-rail:hover .dt-flow-line-diag,
.dt-flow-rail--focus .dt-flow-line-diag {
  background: #a8c7ee;
  height: 3px;
}

.dt-flow-node-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5a9ae8 0%, var(--dt-blue) 55%, #3a7bc8 100%);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dt-flow-rail:hover .dt-flow-node-circle {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.5);
}

.dt-flow-rail-tail {
  width: 100%;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dt-flow-outcomes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  justify-content: center;
  align-items: center;
}

.dt-flow-outcome {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0.2rem 0.25rem;
  margin: -0.2rem -0.25rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.dt-flow-outcome:hover {
  background: rgba(255, 140, 66, 0.08);
}

.dt-flow-outcome:hover .dt-flow-triangle:not(.dt-flow-triangle--muted) {
  transform: scale(1.08);
  filter: drop-shadow(0 2px 4px rgba(255, 140, 66, 0.45));
}

.dt-flow-h-line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--dt-line);
  flex-shrink: 0;
  border-radius: 1px;
}

.dt-flow-triangle {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--dt-orange);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(255, 140, 66, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.dt-flow-triangle--muted {
  border-left-color: #b0b8c4;
  filter: none;
}

.dt-flow-result-btn {
  margin-left: 0.35rem;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: var(--dt-text) !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dashed transparent !important;
  padding: 0.1rem 0.2rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.dt-flow-result-btn:hover {
  color: var(--dt-blue) !important;
  border-bottom-color: var(--dt-blue) !important;
}

.dt-flow-result-text {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  color: var(--dt-text-sub);
  max-width: 160px;
  line-height: 1.35;
}

.dt-flow-outcome--empty .dt-flow-result-text {
  font-style: italic;
}

.dt-flow-rail-footnote {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  color: var(--dt-text-sub);
  font-style: italic;
  line-height: 1.4;
  text-align: center;
  max-width: 260px;
}

.dt-inciso-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dt-inciso-chip:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.dt-inciso-chip--mandatory {
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
  background: var(--donut-mandatory-dim);
}

.dt-popover {
  position: fixed;
  z-index: 200;
  width: min(300px, calc(100vw - 1.5rem));
  padding: 1.35rem 2rem 1rem 1.1rem;
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dt-popover-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.dt-popover-close:hover {
  color: var(--text);
}

.dt-popover-id {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.dt-popover-item {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.dt-popover-art {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .dt-visual-key-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dt-key-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .dt-flow-h-rail {
    flex-direction: column;
    align-items: stretch;
  }
  .dt-flow-root {
    width: 100%;
    min-height: 36px;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  .dt-flow-root-label {
    writing-mode: horizontal-tb;
    transform: none;
    max-height: none;
    font-size: 0.72rem;
  }
  .dt-flow-rails {
    padding-left: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .dt-flow-rail {
    max-width: none;
  }
  .dt-q-summary {
    grid-template-columns: 1rem 1fr;
    grid-template-rows: auto auto;
  }
  .dt-q-id,
  .dt-q-type,
  .dt-badge {
    grid-column: 2;
  }
  .dt-q-preview {
    grid-column: 1 / -1;
  }
}

/* ===================================================================
   LANGUAGE TOGGLE — PT / EN
   =================================================================== */

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
}

.lang-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.lang-toggle-btn--active {
  color: #fff;
  background: rgba(99, 209, 150, 0.18);
}

/* separator line between PT and EN */
.lang-toggle-btn:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .lang-toggle {
    margin-left: auto;
  }
  .sk-topbar-mono-link {
    display: none;
  }
}

/* ──────────────────────────────────────────────────────────
   Accessibility: honour system "reduce motion" preference.
   Disables non-essential animations for users with vestibular
   or motion sensitivity conditions (WCAG 2.3 AAA / 2.1 AA).
────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .questions--slide-in,
  .questions--slide-back {
    animation: none !important;
  }
}

/* ===== CROSS-JURISDICTION COMPARISON ===== */
.cross-jurisdiction-view { padding: 2rem 0 4rem; }
.cj-wrap { max-width: 1280px; margin: 0 auto; }
.cj-toolbar { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.cj-back { align-self: flex-start; }
.cj-heading-block { margin-top: .25rem; }
.cj-main-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 .25rem; }
.cj-lead { font-size: .92rem; color: var(--muted); margin: 0; max-width: 72ch; }

.cj-sticky-bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg, #fff); border-bottom: 1px solid var(--border, #e2e8f0);
  padding: .75rem 0; margin-bottom: 1.25rem;
}
.cj-stats-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.cj-stats { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .85rem; }
.cj-stat strong { font-weight: 700; }
.cj-stat-sep { color: var(--muted); }
.cj-controls { display: flex; gap: .4rem; flex-wrap: wrap; }
.cj-ctrl-btn { font-size: .8rem; padding: .25rem .6rem; }
.cj-filter-count-wrap { font-size: .82rem; color: var(--muted); white-space: nowrap; }

.cj-filter-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.cj-filter-label { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; }
.cj-filter-text { font-weight: 600; }
.cj-filter-input { padding: .35rem .5rem; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; font-size: .85rem; min-width: 180px; }
.cj-select { padding: .35rem .5rem; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; font-size: .85rem; }

.cj-jur-toggles { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.cj-jur-toggle { display: flex; align-items: center; gap: .3rem; font-size: .82rem; cursor: pointer; }
.cj-jur-toggle input { accent-color: var(--accent, #6366f1); }

.cj-body { min-height: 200px; }
.cj-loading { color: var(--muted); font-style: italic; padding: 2rem 0; }

/* Inciso row */
.cj-inciso { border: 1px solid var(--border, #e2e8f0); border-radius: 8px; margin-bottom: .75rem; overflow: hidden; }
.cj-inciso[open] > .cj-inciso-summary .cj-chevron { transform: rotate(90deg); }
.cj-inciso-summary {
  display: flex; align-items: center; gap: .5rem; padding: .65rem .85rem;
  cursor: pointer; list-style: none; user-select: none;
  font-size: .88rem; background: var(--bg-subtle, #f8fafc);
}
.cj-inciso-summary::-webkit-details-marker { display: none; }
.cj-chevron { transition: transform .15s ease; font-size: .75rem; color: var(--muted); }
.cj-inc-id { font-weight: 700; font-family: var(--mono, monospace); min-width: 5ch; }
.cj-inc-domain {
  font-size: .72rem; padding: .1rem .45rem; border-radius: 4px;
  background: var(--accent-bg, #eef2ff); color: var(--accent, #6366f1);
  font-weight: 600; white-space: nowrap;
}
.cj-inc-theme { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cj-inc-overlaps { display: flex; gap: .3rem; }

/* Overlap badges */
.cj-overlap { font-size: .7rem; padding: .1rem .4rem; border-radius: 3px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.cj-overlap--high   { background: #dcfce7; color: #166534; }
.cj-overlap--medium { background: #fef3c7; color: #92400e; }
.cj-overlap--low    { background: #fee2e2; color: #991b1b; }
.cj-overlap--none   { background: #f1f5f9; color: #64748b; }

/* Inciso body — jurisdiction grid */
.cj-inciso-body { padding: .5rem .85rem 1rem; }
.cj-bcb-ref { font-size: .82rem; color: var(--muted); margin: 0 0 .75rem; }
.cj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .75rem;
}
.cj-card {
  border: 1px solid var(--border, #e2e8f0); border-radius: 8px;
  padding: .75rem; display: flex; flex-direction: column; gap: .5rem;
  position: relative; overflow: hidden;
}
.cj-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
}
.cj-card--high::before   { background: #22c55e; }
.cj-card--medium::before { background: #f59e0b; }
.cj-card--low::before    { background: #ef4444; }
.cj-card--none::before   { background: #94a3b8; }

.cj-card-header { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cj-card-flag { font-size: 1.1rem; }
.cj-card-jur { font-weight: 700; font-size: .85rem; }
.cj-card-ref { font-size: .82rem; color: var(--fg, #1e293b); }
.cj-card-artefact {
  font-size: .8rem; padding: .3rem .5rem; border-radius: 5px;
  background: var(--bg-subtle, #f8fafc); border: 1px dashed var(--border, #e2e8f0);
}
.cj-card-artefact-label { font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .15rem; }
.cj-card-delta {
  font-size: .8rem; padding: .3rem .5rem; border-radius: 5px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.cj-card-delta:empty { display: none; }
.cj-card-delta-label { font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #b45309; margin-bottom: .15rem; }

.cj-hidden { display: none !important; }

.dg-cj-badges { display: inline-flex; gap: .25rem; margin-left: .3rem; }

/* CJ Insights panel (results dashboard) */
.cji-panel { border: 1px solid var(--border, #e2e8f0); border-radius: 8px; margin: .75rem 0; overflow: hidden; }
.cji-summary {
  padding: .6rem .85rem; font-weight: 700; font-size: .9rem; cursor: pointer;
  background: var(--bg-subtle, #f8fafc); list-style: none;
}
.cji-summary::-webkit-details-marker { display: none; }
.cji-count { font-weight: 400; color: var(--muted); font-size: .82rem; }
.cji-body { padding: .5rem .85rem .25rem; display: flex; flex-direction: column; gap: .35rem; }
.cji-row { display: flex; align-items: center; gap: .4rem; font-size: .84rem; }
.cji-jur { font-weight: 700; min-width: 4ch; }
.cji-desc { color: var(--muted); font-size: .78rem; }
.cji-tip { font-size: .78rem; color: var(--muted); padding: .35rem .85rem .65rem; margin: 0; }

@media (max-width: 640px) {
  .cj-grid { grid-template-columns: 1fr; }
  .cj-inc-theme { display: none; }
}
