/* ── Small nav button ──────────────────────────────────────────────────────── */
.btn-assess-sm {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-assess-sm:hover { opacity: 0.85; text-decoration: none; }

/* ── Meta line ─────────────────────────────────────────────────────────────── */
.prof-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ── Quadrant grid ─────────────────────────────────────────────────────────── */
.quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.quad-card {
  background: var(--surface);
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.quad-type-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.quad-pct {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.quad-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.quad-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin: 0.1rem 0;
}

.quad-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width var(--dur-bar) var(--ease-bar);
}
.band-fill-DD { background: rgba(196,163,90,0.6); }
.band-fill-AD { background: rgba(122,142,174,0.6); }
.band-fill-DA { background: rgba(122,158,126,0.6); }
.band-fill-AA { background: rgba(136,136,136,0.4); }

.quad-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Task signals ──────────────────────────────────────────────────────────── */
.task-signals {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.task-signal-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  border: 1px solid rgba(196,163,90,0.3);
  color: var(--accent);
  background: rgba(196,163,90,0.06);
  white-space: nowrap;
}
.task-signal-tag.signal-dim {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
}
.task-signal-tag.signal-social {
  border-color: rgba(122,158,126,0.35);
  color: #7a9e7e;
  background: rgba(122,158,126,0.06);
}

/* ── Task score column ─────────────────────────────────────────────────────── */
.task-score {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: nowrap;
}
.score-low  { color: var(--risk-low); }
.score-mid  { color: var(--risk-moderate); }
.score-high { color: var(--risk-very-high); }

/* ── Task row override (4 cols) ────────────────────────────────────────────── */
.task-result-row {
  grid-template-columns: 1fr auto auto auto !important;
}

/* ── Task list column header ───────────────────────────────────────────────── */
.task-result-header {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.75rem;
  padding: 0 0.1rem 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.task-result-header span:nth-child(2),
.task-result-header span:nth-child(3),
.task-result-header span:nth-child(4) {
  text-align: right;
}

/* ── Tasks note ────────────────────────────────────────────────────────────── */
.prof-tasks-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

/* ── CTA block ─────────────────────────────────────────────────────────────── */
.prof-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.prof-cta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.prof-cta-btn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.prof-cta-btn:hover { opacity: 0.85; text-decoration: none; }

/* ── Score distribution histogram ─────────────────────────────────────────── */
.dist-histogram {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  margin: 0.75rem 0 0;
  border-bottom: 1px solid var(--border);
}

.dist-histogram .dist-bar {
  flex: 1;
  background: var(--accent);
  opacity: 0.45;
  border-radius: 2px 2px 0 0;
  height: 0;
  transition: height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 2px;
}

.dist-ticks {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}

.dist-tick {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1em;
}

/* ── Percentile range bar ──────────────────────────────────────────────────── */
.dist-range-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.dist-range-endpoint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dist-range-track {
  position: relative;
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: visible;
}

.dist-range-outer {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(196,163,90,0.2);
  border-radius: 3px;
}

.dist-range-inner {
  position: absolute;
  top: -2px;
  height: calc(100% + 4px);
  background: rgba(196,163,90,0.55);
  border-radius: 3px;
  min-width: 4px;
}

/* ── Profile tabs ──────────────────────────────────────────────────────────── */
.prof-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0.85rem;
}

.prof-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.prof-tab:hover {
  border-color: rgba(196,163,90,0.4);
  color: var(--text);
}

.prof-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196,163,90,0.06);
}

.prof-tab-panel.hidden { display: none; }

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .quad-grid { grid-template-columns: 1fr; }
  .task-result-row { grid-template-columns: 1fr auto auto !important; }
  .task-score { display: none; }
  .prof-cta { flex-direction: column; align-items: flex-start; }
}
