/* /talent — scoped; load with job.css */
body.talent {
  --tal-naive: #94a3b8;
  --tal-effective: #7c3aed;
}

body.talent .tal-meters { display: grid; gap: .65rem; margin: 1rem 0 1.5rem; }
body.talent .tal-meter { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr 2.5rem; gap: .5rem; align-items: center; font-size: .92rem; }
body.talent .tal-meter .bar { height: .55rem; background: color-mix(in srgb, var(--accent, #7c3aed) 12%, transparent); border-radius: 999px; overflow: hidden; }
body.talent .tal-meter .bar i { display: block; height: 100%; background: var(--accent, #7c3aed); border-radius: inherit; }
body.talent .tal-meter b { text-align: right; font-variant-numeric: tabular-nums; }

body.talent .tal-list { margin: 0 0 1.5rem; padding-left: 1.15rem; }
body.talent .tal-list li { margin: .45rem 0; }
body.talent .tal-steps { margin: 0 0 1.5rem; padding-left: 1.2rem; }
body.talent .tal-steps .hint { color: var(--muted, #4b5563); font-size: .9rem; }

body.talent .tal-calc-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  body.talent .tal-calc-grid { grid-template-columns: 1fr; }
}

body.talent .tal-form {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--accent, #7c3aed) 6%, transparent);
  border-radius: 12px;
}
body.talent .tal-form label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
body.talent .tal-form input {
  font: inherit;
  padding: .55rem .7rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 8px;
  background: #fff;
}
body.talent .tal-form button { margin-top: .25rem; justify-self: start; }

body.talent .tal-chart { width: 100%; height: auto; display: block; background: #fff; border-radius: 12px; }
body.talent .tal-grid { stroke: #e2e8f0; stroke-width: 1; }
body.talent .tal-line { stroke-width: 2.5; fill: none; }
body.talent .tal-line.naive { stroke: var(--tal-naive); stroke-dasharray: 4 3; }
body.talent .tal-line.effective { stroke: var(--tal-effective); }
body.talent .tal-axis { fill: #4b5563; font-size: 11px; font-family: inherit; }

body.talent .tal-kpis {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
body.talent .tal-kpis li {
  padding: .75rem .9rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #7c3aed) 8%, transparent);
}
body.talent .tal-kpis span { display: block; font-size: .8rem; color: var(--muted, #4b5563); }
body.talent .tal-kpis strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }

body.talent .tal-legend { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: .85rem; font-size: .85rem; }
body.talent .tal-legend span::before {
  content: '';
  display: inline-block;
  width: .75rem;
  height: .2rem;
  margin-right: .4rem;
  vertical-align: middle;
  border-radius: 2px;
}
body.talent .tal-legend .naive::before { background: var(--tal-naive); }
body.talent .tal-legend .effective::before { background: var(--tal-effective); }

body.talent .tal-people { margin: 0 0 1.5rem; padding-left: 1.2rem; }
body.talent .tal-people li { margin: .7rem 0; }
body.talent .tal-locale {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #7c3aed) 7%, transparent);
  margin: 0 0 1.5rem;
}
body.talent .tal-hero { margin: 1rem 0 0; }
body.talent .tal-hero img { width: 100%; height: auto; border-radius: 12px; display: block; }

body.talent .timeline { list-style: none; padding: 0; margin: 0 0 1.5rem; }
body.talent .timeline li { padding: .65rem 0 .65rem 1rem; border-left: 2px solid color-mix(in srgb, var(--accent, #7c3aed) 40%, transparent); margin-left: .25rem; }
body.talent .timeline time { display: block; font-size: .8rem; color: var(--muted, #4b5563); font-weight: 600; }

body.talent .tal-scenarios { margin: 0 0 1.75rem; }
body.talent .tal-scenarios h2 { margin-bottom: .35rem; }
body.talent .tal-scenarios .sub { color: var(--muted, #4b5563); margin: 0 0 1rem; max-width: 42rem; }
body.talent .tal-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: .75rem;
}
body.talent .tal-scenario {
  display: grid;
  gap: .35rem;
  text-align: left;
  font: inherit;
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent, #7c3aed) 22%, transparent);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: inherit;
}
body.talent .tal-scenario:hover,
body.talent .tal-scenario:focus-visible {
  border-color: var(--accent, #7c3aed);
  outline: none;
}
body.talent .tal-scenario strong { font-size: .98rem; }
body.talent .tal-scenario span { font-size: .85rem; color: var(--muted, #4b5563); line-height: 1.35; }
body.talent .tal-scenario em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--accent, #7c3aed); }

body.talent .tal-locale-card { border-color: color-mix(in srgb, var(--accent, #7c3aed) 35%, transparent); }
body.talent .tal-saying-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: .85rem;
  margin: 0 0 1.5rem;
}
body.talent .tal-saying-grid article {
  padding: .85rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #7c3aed) 6%, transparent);
}
body.talent .tal-saying-grid article strong { display: block; margin-bottom: .2rem; }
body.talent .tal-saying-grid article p { margin: .45rem 0 0; }

/* expand30 hub packs — scoped under body.<app> */
body.vehicles .veh-hx-expand,
body.war .war-hx-expand,
body.water .wat-hx-expand,
body.water .wat-hx-deep,
body.water .wat-hx-related,
body.talent .tal-hx-expand,
body.talent .tal-hx-deep,
body.talent .tal-hx-related { margin: 2rem 0; }
body.vehicles .veh-hx-kicker,
body.war .war-hx-kicker,
body.water .wat-hx-kicker,
body.talent .tal-hx-kicker {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent, #0f766e); margin: 0 0 .35rem;
}
body.vehicles .veh-hx-lede,
body.war .war-hx-lede,
body.water .wat-hx-lede,
body.talent .tal-hx-lede { color: var(--ink2, #334155); max-width: 42em; }
body.vehicles .veh-hx-grid,
body.war .war-hx-grid,
body.water .wat-hx-grid,
body.talent .tal-hx-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .85rem; margin: 1rem 0;
}
body.vehicles .veh-hx-card,
body.war .war-hx-card,
body.water .wat-hx-card,
body.talent .tal-hx-card {
  padding: .85rem 1rem; border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #0f766e) 7%, transparent);
}
body.vehicles .veh-hx-card h3,
body.war .war-hx-card h3,
body.water .wat-hx-card h3,
body.talent .tal-hx-card h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
body.vehicles .veh-hx-lens,
body.war .war-hx-lens,
body.water .wat-hx-lens,
body.talent .tal-hx-lens {
  margin: 1rem 0; padding: 1rem 1.1rem; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #0f766e) 22%, transparent);
}
body.vehicles .veh-hx-related-cols,
body.war .war-hx-related-cols,
body.water .wat-hx-related-cols,
body.talent .tal-hx-related-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0;
}
@media (max-width: 720px) {
  body.vehicles .veh-hx-related-cols,
  body.war .war-hx-related-cols,
  body.water .wat-hx-related-cols,
  body.talent .tal-hx-related-cols { grid-template-columns: 1fr; }
}
body.vehicles .veh-hx-num-row,
body.war .war-hx-num-row,
body.water .wat-hx-num-row,
body.talent .tal-hx-num-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .65rem;
}
body.vehicles .veh-hx-num-row > div,
body.war .war-hx-num-row > div,
body.water .wat-hx-num-row > div,
body.talent .tal-hx-num-row > div {
  padding: .65rem .75rem; border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #0f766e) 8%, #fff);
}
body.vehicles .veh-hx-num-row .k,
body.war .war-hx-num-row .k,
body.water .wat-hx-num-row .k,
body.talent .tal-hx-num-row .k { display: block; font-size: .75rem; color: var(--muted, #4b5563); }
body.vehicles .veh-hx-num-row .v,
body.war .war-hx-num-row .v,
body.water .wat-hx-num-row .v,
body.talent .tal-hx-num-row .v { display: block; font-size: 1.25rem; font-weight: 700; }
body.vehicles .veh-hx-num-row .n,
body.war .war-hx-num-row .n,
body.water .wat-hx-num-row .n,
body.talent .tal-hx-num-row .n { display: block; font-size: .75rem; color: var(--muted, #4b5563); }
body.vehicles .veh-hx-experts,
body.war .war-hx-experts,
body.water .wat-hx-experts,
body.talent .tal-hx-experts,
body.vehicles .veh-hx-caveats,
body.war .war-hx-caveats,
body.water .wat-hx-caveats,
body.talent .tal-hx-caveats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; margin: .75rem 0;
}
body.vehicles .veh-hx-share,
body.war .war-hx-share,
body.water .wat-hx-share,
body.talent .tal-hx-share { font-size: .95rem; color: var(--ink2, #334155); }
body.water .wat-hx-why,
body.talent .tal-hx-why { display: block; font-size: .85rem; color: var(--muted, #4b5563); }

/* —— UX/OSS progressive enhancement (Fuse/Mark/Tippy/Sortable) —— */
.tl-oss-mark { background: color-mix(in srgb, var(--accent, #03C75A) 28%, transparent); color: inherit; padding: 0 .08em; border-radius: 2px; }
.tl-oss-ghost { opacity: .45; }
.tl-oss-chosen { cursor: grabbing; }
.tl-oss-drag { opacity: .92; }
.tippy-box[data-theme~='tl-oss'] {
  background: #191919; color: #f5f5f5; font-size: .82rem; line-height: 1.35;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.tippy-box[data-theme~='tl-oss'] .tippy-arrow { color: #191919; }
.wat-atlas-search, .tal-browse-search, .war-answer-search { margin: 0 0 12px; }
.wat-atlas-search input, .tal-browse-search input, .war-answer-search input {
  width: min(100%, 28rem); font: inherit; padding: .65rem 1rem; border-radius: 999px;
  border: 1px solid var(--line, #e5e7eb); background: var(--surface, #fff);
}
.wat-atlas-search input:focus-visible, .tal-browse-search input:focus-visible, .war-answer-search input:focus-visible {
  outline: 2px solid var(--accent, #03C75A); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .tl-oss-ghost, .tl-oss-chosen, .tl-oss-drag { transition: none !important; }
}

/* p1-myths */
.tal-myth-cards { margin: 1.5rem 0; }
.tal-myth-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tal-myth-card {
  padding: 1rem 1.1rem; border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px; background: var(--surface, #fff);
}
.tal-myth-k { margin: 0 0 .5rem; font-weight: 700; }
.tal-myth-truth { margin: 0 0 .5rem; }
.tal-myth-src { margin: .75rem 0 0; font-size: .9em; color: var(--muted, #4b5563); }


/* p2 planner + exemplars */
.tal-plan { display: grid; gap: .75rem; max-width: 36rem; margin: 1rem 0; }
.tal-plan label { display: grid; gap: .25rem; font-weight: 650; }
.tal-plan input[type="text"], .tal-plan input[type="number"], .tal-plan select {
  font: inherit; padding: .45rem .6rem; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 8px;
}
.tal-plan-check { display: flex; align-items: center; gap: .5rem; font-weight: 650; }
.tal-plan-readout { margin: .25rem 0; }
.tal-ex-grid { display: grid; gap: 1.25rem; }
.tal-ex-card { break-inside: avoid; padding-bottom: .5rem; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.tal-ex-era { font-variant-numeric: tabular-nums; color: var(--muted, #4b5563); }
@media print {
  body.planner-page header, body.planner-page footer, body.planner-page .no-print, body.planner-page .ads { display: none !important; }
}

/* p3 polish */
.tal-presets { margin: 1rem 0 1.25rem; }
.tal-presets .pills { flex-wrap: wrap; }
@media print {
  body.exemplar-page header, body.exemplar-page footer, body.exemplar-page .no-print, body.exemplar-page .ads { display: none !important; }
  body.exemplar-page .tal-ex-card { page-break-inside: avoid; }
}

/* visual-diff: practice-curve-hero */

body.talent {
  --tal-naive: #94a3b8;
  --tal-effective: #0f766e;
  --tal-fill: rgba(15, 118, 110, .16);
}
body.talent .hub-hero {
  background:
    radial-gradient(ellipse 55% 50% at 92% 10%, rgba(15, 118, 110, .14), transparent 55%),
    linear-gradient(180deg, #f0fdfa 0%, transparent 72%);
  padding-bottom: 2rem;
}
body.talent .tal-vd-hero {
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 24rem);
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 860px) {
  body.talent .tal-vd-hero { grid-template-columns: 1fr; }
}
body.talent .tal-vd-curve {
  margin: 0;
  padding: .85rem 1rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--tal-effective) 22%, #e2e8f0);
  box-shadow: 0 22px 48px -30px rgba(15, 118, 110, .45);
}
body.talent .tal-vd-curve .tal-chart { margin: 0; background: transparent; }
body.talent .tal-vd-legend {
  display: flex; flex-wrap: wrap; gap: .75rem 1.1rem;
  margin: .65rem 0 0; font-size: .82rem; font-weight: 700;
}
body.talent .tal-vd-legend .naive::before,
body.talent .tal-vd-legend .effective::before {
  content: ''; display: inline-block; width: .85rem; height: .2rem;
  margin-right: .35rem; vertical-align: middle; border-radius: 2px;
}
body.talent .tal-vd-legend .naive::before { background: var(--tal-naive); }
body.talent .tal-vd-legend .effective::before { background: var(--tal-effective); }
body.talent .tal-vd-cta { margin: .85rem 0 0; }
body.talent .tal-chart .tal-line.effective {
  stroke-width: 3.2;
  filter: drop-shadow(0 2px 0 rgba(15, 118, 110, .15));
}
body.talent .tal-chart .tal-area-effective {
  fill: var(--tal-fill);
  stroke: none;
}
body.talent .tal-calc {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdfa, #fff);
  border: 1px solid color-mix(in srgb, var(--tal-effective) 16%, #e2e8f0);
}
body.talent .tal-line.effective.is-draw,
body.talent .tal-line.naive.is-draw {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: tal-draw 1.1s ease forwards;
}
@keyframes tal-draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.talent .tal-line.effective.is-draw,
  body.talent .tal-line.naive.is-draw { animation: none; stroke-dasharray: none; }
}

/* ---- hub visual polish (2026-09-17) — contrast + scannable glance/explore ---- */
body.talent {
  --ink2: #1f2937;
  --muted: #4b5563;
}
body.talent .lede,
body.talent .card .sub,
body.talent .sub { color: var(--ink2); }
body.talent .hint { color: var(--muted); }
body.talent .pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px;
  padding: var(--tl-chip-pad-y, 8px) var(--tl-chip-pad-x, 14px);
  font-weight: 650; color: var(--ink2, #1f2937);
  overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-hyphens: none;
  white-space: nowrap; max-width: 100%;
}
body.talent .pills { gap: 8px; }
body.talent a.card {
  box-shadow: var(--tl-shadow, 0 1px 2px rgba(17,24,39,.05), 0 6px 18px rgba(17,24,39,.06));
  border-color: rgba(17, 24, 39, .09);
  min-height: 6.25rem;
}
body.talent a.card:hover {
  box-shadow: var(--tl-elev, 0 4px 10px rgba(17,24,39,.05), 0 16px 40px rgba(17,24,39,.09));
}
body.talent .hub-hero .lede { color: var(--ink2); max-width: 42em; }
body.talent .tl-explore-grid,
body.talent .grid.wide.tl-explore-grid {
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(var(--tl-explore-min, 200px), 1fr));
  align-items: stretch;
}
body.talent .facts.tl-glance,
body.talent .stats.tl-glance,
body.talent .tl-glance {
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(var(--tl-glance-min, 158px), 1fr));
}
body.talent .tl-popular-card span:not(.tl-dot),
body.talent .tl-start-card span:not(.tl-start-k) { color: var(--ink2); }
@media (max-width: 720px) {
  body.talent .pill { white-space: normal; }
}

body.talent .tal-vd-guard,
body.talent [data-tal-guard] {
  margin: .75rem 0 1rem; padding: .7rem .9rem; border-radius: 10px;
  border-left: 3px solid #0f766e; background: color-mix(in srgb, #0f766e 10%, #fff);
  color: #134e4a; font-size: .9rem; line-height: 1.5; font-weight: 600;
}

/* P4-POLISH-2026-09-18 */
body.talent{--tal-naive:#475569}
body.talent .tal-axis{fill:#1f2937}
body.talent .tal-chart,body.talent .tal-curve{overflow:visible;max-width:100%;height:auto}
body.talent .tal-form label,body.talent .p3-card{color:#111827}
body.talent .tl-viz-pack{white-space:normal!important;height:auto!important;align-items:center}
body.talent .tl-viz-pack>span:not(.tl-dot):not(.tl-preview-pop){display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal!important;line-height:1.25;text-overflow:unset!important}
body.talent .p3-tool,body.talent .p3-card,body.talent .p3-out{color:#111827}
body.talent .p3-card{background:#fff}
body.talent .p3-form label,body.talent .p3-checks label{color:#1f2937}

/* Shop-grid density 2026-09-19 — score rows stay one word, hub cards even */
body.talent .tl-heat--scores,
body.talent .tl-viz-hbars,
body.talent .tal-meter {
  max-width: 100%;
  overflow-x: auto;
}
body.talent .tl-heat-score,
body.talent .tl-viz-hbar,
body.talent .tal-meter {
  display: grid;
  grid-template-columns: max-content minmax(5.5rem, 1fr) 2.75rem;
  column-gap: 10px;
  align-items: center;
  margin-bottom: 0;
}
body.talent .tl-heat-score > .tl-heat-score-lab,
body.talent .tl-viz-hbar > .tl-viz-hbar-lab,
body.talent .tal-meter > span {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  -webkit-hyphens: none;
  line-height: 1.2;
  min-width: max-content;
  flex-wrap: nowrap;
}
body.talent .tl-heat-score-cells,
body.talent .tl-viz-hbar-track {
  min-width: 5.5rem;
  width: 100%;
  align-self: center;
}
body.talent .tl-heat-score > .tl-heat-score-n,
body.talent .tl-viz-hbar > .tl-viz-hbar-val {
  justify-self: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.talent .tl-viz-meter-lab {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  -webkit-hyphens: none;
}
body.talent .tl-viz-meter-row {
  align-items: center;
  gap: 8px;
}
body.talent .tl-viz-meter-val {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
body.talent .tl-explore-grid {
  align-items: stretch;
  gap: 14px;
}
body.talent .tl-explore-grid > a.card,
body.talent .tl-popular-card,
body.talent .tl-start-card,
body.talent .tl-related-in-card,
body.talent a.tl-glance-card {
  display: flex;
  flex-direction: column;
  min-height: 7.25rem;
  padding: 16px;
  background: #fff;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, .09);
  box-sizing: border-box;
}
body.talent .tl-explore-grid > a.card h3,
body.talent .tl-popular-card strong,
body.talent .tl-start-card strong,
body.talent .tl-related-in-card strong,
body.talent .tl-glance-card strong {
  color: #111827;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  -webkit-hyphens: none;
}
body.talent .tl-explore-grid > a.card .sub,
body.talent .tl-popular-card span:not(.tl-dot):not(.tl-start-k),
body.talent .tl-start-card span:not(.tl-start-k),
body.talent .tl-related-in-card span:not(.tl-preview-pop) {
  color: #1f2937;
}
body.talent .tl-start-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  align-items: stretch;
}
body.talent .tl-start-row > .tl-start-card:first-child {
  border: 2px solid #111827;
  box-shadow: 0 10px 28px -18px rgba(17, 24, 39, .55);
}
body.talent .tl-start-row > .tl-start-card:first-child:hover {
  border-color: #111827;
}
body.talent .tl-start-row > .tl-start-card:first-child strong::after {
  content: " →";
  font-weight: 800;
}

body.talent .tal-meter .bar { min-width: 5.5rem; align-self: center; }
body.talent .tal-meter b {
  justify-self: end; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
body.talent a.tal-card {
  min-height: 7.25rem; padding: 16px; background: #fff; color: #111827;
}
body.talent a.tal-card h3 { color: #111827; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
body.talent a.tal-card .sub { color: #1f2937; }

/* P5 2026-09-19 — week-preset print + policy ink. No group rankings. */
body.talent .tal-preset.is-on {
  border-color: #0f766e;
  color: #134e4a;
  background: #f0fdfa;
  font-weight: 800;
}
body.talent .tal-ex-card {
  background: #fff;
  color: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
body.talent .tal-ex-card strong { color: #111827; }
body.talent .tl-sig-policy,
body.talent .tl-opt10-policy,
body.talent .tal-vd-guard {
  color: #134e4a;
}
@media print {
  body.talent.planner-page .tal-presets.no-print {
    display: block !important;
  }
  body.talent.planner-page .tal-plan-readout,
  body.talent.planner-page .tl-sig-policy,
  body.talent.planner-page .tl-opt10-policy,
  body.talent.exemplar-page .tal-ex-card,
  body.talent.exemplar-page .tl-sig-policy {
    color: #111827 !important;
    background: #fff !important;
  }
  body.talent .tal-plan-readout[data-preset-name]::before {
    content: attr(data-preset-name) " — ";
    font-weight: 800;
    color: #111827;
  }
  body.talent .tal-preset.is-on {
    border: 2px solid #111827;
    color: #111827;
  }
}

/* M390 — cards, score rows, chips stay in the viewport; sticky chrome doesn't cover the end. */
@media (max-width: 720px) {
  html:has(body.talent) { scroll-padding-bottom: 8.5rem; scroll-padding-top: 7.5rem; }
  body.talent main { padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px)); }
  body.talent .wrap,
  body.talent .grid,
  body.talent .grid.wide,
  body.talent .tl-explore-grid,
  body.talent .tl-popular-row,
  body.talent .tl-start-row,
  body.talent .tl-related-in-row,
  body.talent .tl-viz-packs,
  body.talent .pills,
  body.talent .chips,
  body.talent .tl-explore-chips,
  body.talent .tl-sec-jump,
  body.talent .tl-sec-jump-row,
  body.talent .tl-heat--scores,
  body.talent .tl-viz-hbars {
    min-width: 0;
    max-width: 100%;
  }
  body.talent .grid,
  body.talent .grid.wide,
  body.talent .tl-explore-grid,
  body.talent .tl-popular-row,
  body.talent .tl-start-row,
  body.talent .tl-related-in-row,
  body.talent .tl-viz-packs,
  body.talent .tl-explore-grid--compact,
  body.talent .tl-viz-shell:has(input[value="compact"]:checked) .tl-explore-grid {
    --tl-explore-min: min(100%, 9.25rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.25rem), 1fr));
  }
  body.talent .tl-explore-grid > a.card,
  body.talent .tl-popular-card,
  body.talent .tl-start-card,
  body.talent .tl-related-in-card,
  body.talent a.tl-glance-card,
  body.talent a.tal-card,
  body.talent .grid > * {
    min-width: 0;
    max-width: 100%;
  }
  html[lang] body.talent .tl-explore-grid > a.card h3,
  html[lang] body.talent .tl-popular-card strong,
  html[lang] body.talent .tl-start-card strong,
  html[lang] body.talent a.tal-card h3,
  html[lang] body.talent .pill {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
    min-width: 0;
    max-width: 100%;
  }
  body.talent .pills,
  body.talent .chips,
  body.talent .tl-explore-chips,
  body.talent .tl-sec-jump-row { flex-wrap: wrap; }
  html[lang] body.talent .tl-explore-chip,
  html[lang] body.talent a.chip,
  html[lang] body.talent .tl-sec-jump-chip {
    white-space: normal;
    max-width: 100%;
    overflow-wrap: normal;
    hyphens: none;
  }
  html[lang] body.talent .tl-heat-score,
  html[lang] body.talent .tl-viz-hbar,
  html[lang] body.talent .tal-meter {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(2.75rem, 1fr) auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  html[lang] body.talent .tl-heat-score-lab,
  html[lang] body.talent .tl-viz-hbar-lab,
  html[lang] body.talent .tal-meter > span:first-child {
    white-space: normal;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

body.talent .tal-loop-pin { margin: 1.4rem 0; padding: 1rem 1.1rem; border-left: 3px solid var(--accent, #7c3aed); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--accent, #7c3aed) 8%, transparent); }
body.talent .tal-loop-pin h3 { margin: 1rem 0 .5rem; font-size: 1rem; }
body.talent .tal-loop-pin [data-qf-session][hidden] { display: none !important; }
