/* ASCENDOJO INTEL — Superadmin-only analytics view for Analyse's
   analyse_log outcomes (Block B2a). Same layout/token vocabulary as
   analyse.css/tracker.css (panel + sec-title/dot + hero), own `intel-`
   prefix per this codebase's one-stylesheet-per-view convention.
   Deliberately no [data-dojo] wrapper — this is an admin area, not a Dojo
   tool (see intelView.js), so --dojo-accent stays the shell's neutral
   default, same as admin.js's own page. */

.intel-shell {
  max-width: 960px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.intel-hero {
  text-align: center;
  padding: 8px 4px 4px;
}
.intel-hero-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  color: var(--shell-ink);
  margin: 0 0 8px;
}
.intel-hero-desc {
  font-size: 13px;
  color: var(--shell-ink-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Section card title (same vocabulary as .ana-sec-title) ── */
.intel-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell-ink-faint);
  margin-bottom: 14px;
}
.intel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dojo-accent);
  box-shadow: 0 0 6px var(--dojo-accent);
  flex-shrink: 0;
}

/* The calibration section is the flagship insight — a subtle emphasized
   border sets it apart from the plain breakdown tables below it. */
.intel-sec--hero {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.18), var(--glass-inner-glow), var(--glass-shadow);
}
.intel-dot--hero {
  background: var(--accent-orange);
  box-shadow: 0 0 6px var(--accent-orange-glow);
}

/* ── Overall stat grid ── */
.intel-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}
.intel-stat {
  text-align: center;
}
.intel-stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--shell-ink);
}
.intel-stat-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell-ink-faint);
  margin-top: 4px;
}

/* ── Breakdown tables ── */
.intel-table-wrap {
  overflow-x: auto;
}
.intel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.intel-table th,
.intel-table td {
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--shell-border-hairline);
}
.intel-table th:first-child,
.intel-table td:first-child {
  text-align: left;
}
.intel-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell-ink-faint);
  font-weight: 600;
}
.intel-table td {
  color: var(--shell-ink-dim);
  font-family: var(--font-mono);
}
.intel-table td.intel-label-cell {
  color: var(--shell-ink);
  font-family: var(--font-body);
}
.intel-table tr:last-child td {
  border-bottom: none;
}

.intel-win {
  color: var(--accent-green);
  font-weight: 700;
}
.intel-loss {
  color: var(--state-danger);
  font-weight: 700;
}
.intel-neutral {
  color: var(--shell-ink-faint);
}

/* ── Sample-size badge — the "zu wenig Daten" marker ── */
.intel-n-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  border: 1px solid var(--shell-border);
  color: var(--shell-ink-faint);
  white-space: nowrap;
}
.intel-n-badge--low {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: var(--accent-orange-soft);
}

/* ── Calibration chart ── */
.intel-cal-chart-wrap {
  position: relative;
  height: 240px;
  margin-bottom: 18px;
}
.intel-cal-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 11px;
  color: var(--shell-ink-muted);
  margin-bottom: 4px;
}
.intel-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.intel-cal-swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

/* ── Empty / loading states ── */
.intel-empty {
  text-align: center;
  padding: 48px 20px;
}
.intel-empty-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--shell-ink-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.intel-empty-desc {
  font-size: 13px;
  color: var(--shell-ink-faint);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}
.intel-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--shell-ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
