/* ── Analysis view ───────────────────────────────────────────────
   Embedded platform pages (Analysis + Hands) shown in an iframe.
   The view fills the area below the 44px header; a sub-nav toggles
   which page the iframe loads. Matches the driller's dark shell. */

#view-analysis.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 44px);
  overflow: hidden;
}

.analysis-subnav {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.analysis-subtab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.analysis-subtab:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.04));
}

.analysis-subtab.active {
  color: #0a0a0a;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.analysis-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #ffffff;
  display: block;
}
