/* Team-dashboard leadership profile drawer — benchmark/help styles copied verbatim from
   src/css/my-profile.css so the mirrored bars render identically. Keep in sync. */
.benchmark-item {
      margin-bottom: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      background: linear-gradient(180deg, #fbfefc 0%, #ffffff 100%);
      border: 1px solid rgba(15, 23, 42, 0.06);
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
.benchmark-item:last-child { margin-bottom: 0; }
.benchmark-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 8px;
    }
.benchmark-title-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
.benchmark-label {
      font-weight: 700;
      font-size: 0.98rem;
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
    }
.benchmark-help-icon {
      margin-left: 8px;
    }
.benchmark-value-group {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
.benchmark-value-stack {
      text-align: right;
    }
.benchmark-value {
      display: block;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      font-size: 1.15rem;
      color: var(--text-primary);
      line-height: 1.1;
    }
.benchmark-delta {
      display: inline-block;
      margin-top: 4px;
      font-size: 0.78rem;
      font-weight: 600;
    }
.benchmark-delta.good {
      color: #15803d;
    }
.benchmark-delta.warning {
      color: #c2410c;
    }
.benchmark-bar-shell {
      padding-top: 26px; /* headroom so the "Avg" marker above the bar is never clipped */
    }
.benchmark-bar-container {
      position: relative;
      height: 10px;
      background: var(--bg-secondary);
      border-radius: 6px;
      /* NOT overflow:hidden — the Avg marker sits above the bar and must stay visible.
         The fill has its own border-radius, so corners still look rounded. */
    }
.benchmark-bar {
      height: 100%;
      max-width: 100%;
      border-radius: 6px;
      transition: width 0.4s ease;
      background: linear-gradient(90deg, var(--accent-green), var(--accent-lime));
    }
.benchmark-bar.warning {
      background: linear-gradient(90deg, #f59e0b, #fbbf24);
    }
.benchmark-avg-marker {
      position: absolute;
      top: -20px;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      z-index: 2;
    }
.benchmark-avg-marker-pin {
      width: 12px;
      height: 2px;
      background: #0f172a;
      border-radius: 999px;
    }
.benchmark-avg-label {
      font-size: 0.68rem;
      font-weight: 700;
      color: #0f172a;
      background: rgba(255, 255, 255, 0.96);
      padding: 2px 7px;
      border-radius: 999px;
      border: 1px solid rgba(15, 23, 42, 0.08);
    }
.benchmark-meta {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      margin-top: 8px;
      font-size: 0.72rem;
      color: var(--text-muted);
    }
/* Three "Company Min / Company Average / Company Max" labels distributed evenly so the
       longer wording stays readable on a phone (left / center / right within each third). */
    .benchmark-meta span { flex: 1; min-width: 0; }
.benchmark-meta span:nth-child(2) { text-align: center; }
.benchmark-meta span:nth-child(3) { text-align: right; }
.benchmark-note {
      margin-top: 8px;
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      align-items: baseline;
      font-size: 0.78rem;
      line-height: 1.35;
    }
.benchmark-note.good {
      color: #166534;
    }
.benchmark-note.warning {
      color: #c2410c;
    }
.benchmark-note.subtle {
      color: var(--text-muted);
    }
.benchmark-note-title {
      font-size: 0.76rem;
      font-weight: 700;
    }
.benchmark-note-text {
      font-size: 0.76rem;
      line-height: 1.35;
    }
.lower-better {
      font-size: 0.75rem;
      color: var(--text-muted);
      font-style: italic;
    }
/* Help Tooltips */
    .help-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--bg-secondary);
      color: var(--text-muted);
      font-size: 0.7rem;
      font-weight: 700;
      cursor: help;
      margin-left: 6px;
      position: relative;
      transition: all 0.2s;
      flex-shrink: 0;
    }
.help-icon:hover {
      background: var(--accent-blue-light);
      color: var(--accent-blue);
    }
.help-tooltip {
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 12px;
      width: 280px;
      box-shadow: var(--shadow-lg);
      z-index: 100;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s;
      pointer-events: none;
    }
.help-icon:hover .help-tooltip {
      opacity: 1;
      visibility: visible;
    }
.help-tooltip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: var(--bg-card);
    }
.help-tooltip-title {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 6px;
    }
.help-tooltip-text {
      font-size: 0.8rem;
      color: var(--text-secondary);
      line-height: 1.5;
    }
/* Help Tooltips */
    .help-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      background: var(--bg-secondary);
      border-radius: 50%;
      font-size: 11px;
      color: var(--text-muted);
      cursor: help;
      margin-left: 6px;
      position: relative;
    }
.help-icon:hover {
      background: var(--accent-green);
      color: white;
    }
.help-tooltip {
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 12px 16px;
      width: 250px;
      box-shadow: var(--shadow-lg);
      z-index: 100;
      display: none;
      text-align: left;
      font-size: 0.85rem;
      line-height: 1.5;
    }
.help-icon:hover .help-tooltip {
      display: block;
    }
.help-tooltip-title {
      font-weight: 600;
      margin-bottom: 4px;
      color: var(--text-primary);
    }
.help-tooltip-content {
      color: var(--text-muted);
    }
/* ===== END TECHNICIAN PROFILE DESIGN SYSTEM REFINEMENTS ===== */

/* ===== END MISSING CSS CLASSES ===== */

/* Tap-to-open help tooltips on touch devices (hover is unavailable on mobile,
   the primary device for this page). The .help-open class is toggled in init.js. */
.help-icon.help-open .help-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}
.benchmark-list {
  display: grid;
  gap: 14px;
}
/* "You" marker on benchmark bars (the tech's own value) — below the bar so it
   doesn't collide with the "Avg" pin above. */
.benchmark-bar-shell { padding-bottom: 22px; }
/* "You" sits ON the number line (centered on the track), a prominent blue dot above the
   gray company bubbles, with the label tucked just below the track. */
.benchmark-you-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 3;
}
.benchmark-you-dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-blue, #2563eb); border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.18);
}
.benchmark-you-label {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; font-weight: 800; color: var(--accent-blue, #2563eb); white-space: nowrap;
}
/* Company reference points plotted ON the track as bubbles: Min (left), Avg (mid), Max
   (right) — so the tech can see where they fall on a clear number line. Neutral gray; the
   Avg is a touch darker/larger to stand out. The blue "You" dot (z-index 3) sits on top. */
.benchmark-co-bubble {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%; z-index: 1;
  background: #64748b; border: 2px solid #fff;
}
.benchmark-co-bubble.bm-avg { width: 15px; height: 15px; background: #1e293b; }
/* ── Drawer chrome (Push 4c) ── */
#techProfileDrawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 460px; max-width: 92vw;
  background: var(--bg-primary, #0f172a); color: var(--text-primary, #e2e8f0);
  box-shadow: -8px 0 32px rgba(0,0,0,0.35); z-index: 601;
  transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto;
  border-left: 1px solid var(--border-subtle, #334155);
}
#techProfileDrawer.open { transform: translateX(0); }
.tpd-head {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px; background: var(--bg-card, #1e293b);
  border-bottom: 1px solid var(--border-subtle, #334155);
}
.tpd-title { font-weight: 700; font-size: 0.98rem; }
.tpd-close {
  background: transparent; border: none; color: var(--text-muted, #94a3b8);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
}
.tpd-body { padding: 16px 18px 40px; }
.tpd-h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted, #94a3b8); margin: 18px 0 10px; }
.tpd-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.tpd-card {
  flex: 1 1 120px; background: var(--bg-card, #1e293b); border: 1px solid var(--border-subtle, #334155);
  border-radius: 10px; padding: 12px; text-align: center;
}
.tpd-card-val { font-size: 1.3rem; font-weight: 700; }
.tpd-card-lbl { font-size: 0.78rem; color: var(--text-muted, #94a3b8); margin-top: 2px; }
.tpd-card-sub { font-size: 0.68rem; color: var(--text-secondary, #64748b); }
.tpd-empty { color: var(--text-muted, #94a3b8); padding: 24px 4px; text-align: center; font-size: 0.9rem; }
.tpd-context { margin-top: 18px; font-size: 0.72rem; color: var(--text-muted, #94a3b8); font-style: italic; }
.tpd-warn { margin-top: 8px; font-size: 0.78rem; color: #f59e0b; }
@media (max-width: 520px) { #techProfileDrawer { width: 100vw; } }

/* ── Conversation Card (in-review coaching brief) — renders into both the dark team drawer
   and the LIGHT review-capture page, so colors are tints/explicit + theme vars carry text. ── */
.tpd-opening { background: var(--bg-card-alt, rgba(148,163,184,0.10)); border: 1px solid var(--border-subtle, rgba(148,163,184,0.35)); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.tpd-opening-name { font-weight: 800; font-size: 1.1rem; }
.tpd-opening-sub { font-size: 0.78rem; color: var(--text-muted, #94a3b8); margin-top: 2px; }
.tpd-opening-trend { margin-top: 10px; font-size: 0.84rem; font-weight: 600; }
.tpd-opening-trend .good { color: #15803d; }
.tpd-opening-trend .warn { color: #c2410c; }
.tpd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tpd-vchip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; line-height: 1.25; }
.tpd-vchip.good { background: #dcfce7; color: #14532d; }
.tpd-vchip.warn { background: #fde9c8; color: #92400e; }
.tpd-block { border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--border-subtle, rgba(148,163,184,0.3)); }
.tpd-block-h { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; margin-bottom: 10px; color: var(--text-muted, #94a3b8); }
.tpd-recognize { background: rgba(34,197,94,0.07); border-left: 4px solid #22c55e; }
.tpd-recognize .tpd-block-h { color: #15803d; }
.tpd-discuss { background: rgba(245,158,11,0.08); border-left: 4px solid #f59e0b; }
.tpd-discuss .tpd-block-h { color: #b45309; }
.tpd-quote { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-card, rgba(255,255,255,0.05)); border: 1px solid var(--border-subtle, rgba(148,163,184,0.3)); }
.tpd-quote-text { font-style: italic; font-size: 0.9rem; line-height: 1.45; }
.tpd-quote-meta { font-size: 0.7rem; color: var(--text-muted, #94a3b8); margin-top: 5px; }
.tpd-quote-lead { font-size: 0.74rem; font-weight: 700; margin-top: 6px; }
.tpd-quote-good { border-left: 3px solid #22c55e; }
.tpd-quote-good .tpd-quote-lead { color: #15803d; }
.tpd-quote-warn { border-left: 3px solid #f59e0b; }
.tpd-quote-warn .tpd-quote-lead { color: #b45309; }
.tpd-split { margin-top: 12px; }
.tpd-split-head { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.tpd-split-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg-secondary, #e2e8f0); }
.tpd-split-seg { min-width: 3px; }
.tpd-split-seg.ctrl { background: #f59e0b; }
.tpd-split-seg.unctrl { background: #94a3b8; }
.tpd-split-seg.uncat { background: #cbd5e1; }
.tpd-split-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; font-size: 0.74rem; color: var(--text-secondary, #475569); }
.tpd-split-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.tpd-split-legend .dot.ctrl { background: #f59e0b; }
.tpd-split-legend .dot.unctrl { background: #94a3b8; }
.tpd-split-legend .dot.uncat { background: #cbd5e1; }
.tpd-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--bg-secondary, rgba(148,163,184,0.18)); font-size: 0.72rem; margin: 4px 4px 0 0; color: var(--text-secondary, #475569); }
.tpd-trend.tpd-block { background: var(--bg-card-alt, rgba(37,99,235,0.05)); border-left: 4px solid #2563eb; }
.tpd-trend-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tpd-trend-cell { flex: 1 1 90px; text-align: center; padding: 8px; border-radius: 10px; background: var(--bg-card, rgba(255,255,255,0.04)); border: 1px solid var(--border-subtle, rgba(148,163,184,0.3)); }
.tpd-trend-lbl { font-size: 0.7rem; color: var(--text-muted, #94a3b8); }
.tpd-trend-val { font-size: 1rem; font-weight: 700; margin-top: 2px; }
.tpd-trend-delta { font-size: 0.72rem; font-weight: 700; margin-left: 3px; }
.tpd-trend-delta.up { color: #15803d; }
.tpd-trend-delta.down { color: #c2410c; }
.tpd-goals.tpd-block { border-left: 4px solid #8b5cf6; }
.tpd-goal { margin-top: 8px; }
.tpd-goal-top { display: flex; align-items: center; gap: 7px; font-size: 0.84rem; }
.tpd-goal-text { flex: 1; }
.tpd-goal-pct { font-weight: 700; font-size: 0.78rem; }
.tpd-goal-badge { width: 18px; text-align: center; }
.tpd-goal-badge.achieved { color: #15803d; }
.tpd-goal-bar { height: 6px; border-radius: 4px; background: var(--bg-secondary, #e2e8f0); margin-top: 4px; overflow: hidden; }
.tpd-goal-bar > div { height: 100%; background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.tpd-details { margin-top: 8px; border-top: 1px solid var(--border-subtle, rgba(148,163,184,0.3)); padding-top: 10px; }
.tpd-details > summary { cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--text-muted, #94a3b8); padding: 6px 0; }
