/* TM3 — succession and talent as drawn (mk-auto-succession-*, talentpools-*, simulation-index, recommendations-index). */
.tm3-card { margin-top: 12px; }
.tm3-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.tm3-head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.tm3-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.tm3-note { font-size: 12px; color: var(--mu, #64748b); }
.tm3-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 0 0 12px; }
.tm3-facts .k { font-size: 12px; color: var(--mu, #64748b); }
.tm3-facts .v { font-size: 14px; font-weight: 600; }
.tm3-more { margin-top: 8px; border-top: 1px dashed var(--bd, #e2e8f0); padding-top: 8px; }
.tm3-more > summary { cursor: pointer; font-size: 13px; color: var(--ac, #0f766e); min-height: 36px; display: inline-flex; align-items: center; }
.tm3-rowacts { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
.tm3-wrap { white-space: normal; min-width: 200px; }
.tm3-names { display: flex; flex-wrap: wrap; gap: 4px 8px; }
/* the drawn toolbar order: the search, its chips, then Export and More, then the main button */
.tm3-bar > .lt-search { order: 0; } .tm3-bar > .lt-chips { order: 1; } .tm3-bar > .lt-spacer { order: 2; }
.tm3-bar > .lt-bar { order: 3; } .tm3-bar > .btn.pr { order: 4; }

/* the coverage tile (K38) */
.tm3-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.tm3-tile { background: var(--card, #fff); border: 1px solid var(--bd, #e2e8f0); border-radius: 12px; padding: 12px 14px; }
.tm3-tile .k { font-size: 12px; color: var(--mu, #64748b); }
.tm3-tile .v { font-size: 22px; font-weight: 700; margin-top: 4px; }
.tm3-tile.kpi { border-top: 3px solid var(--ac, #0f766e); }
.tm3-tile.kpi.gn { border-top-color: #15803d; } .tm3-tile.kpi.am { border-top-color: #b45309; } .tm3-tile.kpi.rd { border-top-color: #b91c1c; }

/* the nine-box grid */
.tm3-grid td { vertical-align: top; min-width: 150px; }
.tm3-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tm3-cell > .tm3-cellhead { flex: 1 0 100%; }
.tm3-cell .tm3-person { font-size: 13px; font-weight: 700; min-height: 36px; padding: 0 10px; border-radius: 999px; width: auto; }
.tm3-cell span.tm3-person { display: inline-flex; align-items: center; min-height: 28px; }
.tm3-cell .tm3-person.from-appraisal { font-weight: 400; color: var(--mu, #64748b); }
.tm3-box { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: color-mix(in srgb, var(--ac, #0f766e) 10%, transparent); }
.tm3-box.gn { background: #dcfce7; color: #166534; } .tm3-box.am { background: #fef3c7; color: #92400e; } .tm3-box.rd { background: #fee2e2; color: #991b1b; }
.tm3-grid th.tm3-pot { white-space: nowrap; }

/* the what-if */
.tm3-sim { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tm3-sim .md-row { margin: 0 0 10px; }
.tm3-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tm3-chain li { border: 1px solid var(--bd, #e2e8f0); border-radius: 10px; padding: 8px 10px; }
.tm3-chain li.empty { border-color: color-mix(in srgb, #dc2626 35%, transparent); background: color-mix(in srgb, #dc2626 6%, transparent); }
.tm3-range { width: 100%; }
@media (max-width: 640px), (pointer: coarse) { .tm3-foot .btn, .tm3-rowacts .btn { min-height: 44px; } }
