/* Full Analysis (/reporting) — Team pulse. Pairs with trygc-team-pulse.js.
 * Colours come from the theme engine tokens (--te-*), so every preset and dark mode apply. */

main[data-gc-team-pulse] > :not(#gc-team-pulse) { display: none !important; }

.tp {
  --tp-bg: var(--te-background, var(--background));
  --tp-fg: var(--te-foreground, var(--foreground));
  --tp-card: var(--te-card, var(--card));
  --tp-muted: var(--te-muted, var(--muted));
  --tp-muted-fg: var(--te-muted-foreground, var(--muted-foreground));
  --tp-border: var(--te-border, var(--border));
  --tp-brand: var(--te-brand, var(--gc-orange));
  --tp-primary: var(--te-primary, var(--primary));
  --tp-primary-fg: var(--te-primary-foreground, var(--primary-foreground));
  --tp-good: var(--te-success, #16a34a);
  --tp-warn: var(--te-warning, #d97706);
  --tp-bad: var(--te-destructive, #dc2626);
  --tp-radius: var(--te-radius, 0.625rem);
  display: block;
  color: var(--tp-fg);
  font-size: 13px;
  line-height: 1.45;
}

.tp-content { display: flex; flex-direction: column; gap: 16px; }
/* trygc-unified-ui.css sets overflow-wrap:anywhere on p/li/td/th, which lets a table
 * column shrink to one character. Words wrap normally in here. */
.tp :is(p, li, td, th) { overflow-wrap: normal; }
.tp .tp-summary, .tp .tp-panel__head p { overflow-wrap: anywhere; }
.tp.is-loading .tp-content > :not(.tp-head) { opacity: 0.72; transition: opacity 0.2s; }
.tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tp-dim { color: var(--tp-muted-fg); opacity: 0.7; }
.tp-bad { color: var(--tp-bad); }
.tp-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--tp-muted-fg); font-weight: 400; }
.tp-note { margin: 0; font-size: 12px; color: var(--tp-muted-fg); }
.tp-note.is-error { color: var(--tp-bad); }
.tp-empty { margin: 0; padding: 18px 4px; color: var(--tp-muted-fg); font-size: 12px; text-align: center; }

/* Buttons & inputs */
.tp button { font: inherit; color: inherit; cursor: pointer; }
.tp-btn, .tp select, .tp input[type="search"], .tp input[type="date"] {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--te-input, var(--tp-border));
  border-radius: calc(var(--tp-radius) - 2px);
  background: var(--tp-card);
  color: var(--tp-fg);
  font: inherit;
  font-size: 12px;
}
.tp-btn { font-weight: 500; }
.tp-btn:hover:not(:disabled) { background: var(--tp-muted); }
.tp-btn:disabled { opacity: 0.6; cursor: default; }
.tp-task-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tp-border); }
.tp-task-link:hover, .tp-task-link:focus-visible { text-decoration-color: currentColor; }
.tp-tasks .tp-task-link { font: inherit; }
.tp-link { border: 0; background: none; padding: 0 4px; color: var(--tp-fg); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.tp-icon { width: 32px; height: 32px; border: 1px solid var(--tp-border); border-radius: calc(var(--tp-radius) - 2px); background: transparent; }
.tp-icon:hover { background: var(--tp-muted); }

/* Header */
.tp-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tp-border);
}
.tp-eyebrow { font-size: 12px; color: var(--tp-muted-fg); }
#gc-team-pulse .tp-head h1 { margin: 2px 0 4px; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; text-transform: none; }
.tp-head p { margin: 0; color: var(--tp-muted-fg); font-size: 14px; }
.tp-head p b { color: var(--tp-fg); font-weight: 600; }
.tp-head__controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.tp-daypick { display: flex; align-items: center; gap: 4px; }
.tp-daypick > button:not(.tp-link) { width: 32px; height: 32px; border: 1px solid var(--tp-border); border-radius: calc(var(--tp-radius) - 2px); background: var(--tp-card); font-size: 16px; line-height: 1; }
.tp-daypick > button:disabled { opacity: 0.4; cursor: default; }
.tp-seg { display: inline-flex; border: 1px solid var(--tp-border); border-radius: calc(var(--tp-radius) - 2px); overflow: hidden; }
.tp-seg button { height: 30px; padding: 0 10px; border: 0; background: transparent; color: var(--tp-muted-fg); font-size: 12px; font-weight: 500; }
.tp-seg button + button { border-left: 1px solid var(--tp-border); }
.tp-seg button[aria-pressed="true"] { background: var(--tp-muted); color: var(--tp-fg); }
.tp-live { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tp-muted-fg); }
.tp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--tp-good); box-shadow: 0 0 0 3px color-mix(in oklch, var(--tp-good) 20%, transparent); }

/* Day summary */
.tp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--tp-border); border-radius: calc(var(--tp-radius) + 4px); background: var(--tp-card); overflow: hidden; }
.tp-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 0; border-right: 1px solid var(--tp-border); background: transparent; text-align: left; }
.tp-kpi:last-child { border-right: 0; }
.tp-kpi:hover { background: var(--tp-muted); }
.tp-kpi span { font-size: 12px; color: var(--tp-muted-fg); }
.tp-kpi strong { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tp-kpi small { font-size: 11px; color: var(--tp-muted-fg); }

/* Cards */
.tp-card { border: 1px solid var(--tp-border); border-radius: calc(var(--tp-radius) + 4px); background: var(--tp-card); box-shadow: var(--te-shadow-card, none); min-width: 0; }
.tp-card__head { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.tp-card__head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.tp-card__head p { margin: 2px 0 0; font-size: 12px; color: var(--tp-muted-fg); }
.tp-card > .tp-note { padding: 0 16px 10px; }

.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }

/* Team table */
.tp-team input[type="search"] { width: 200px; }
.tp-table-wrap { overflow-x: auto; }
.tp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tp-table th { position: sticky; top: 0; z-index: 1; padding: 0 10px; height: 36px; background: var(--tp-card); border-bottom: 1px solid var(--tp-border); text-align: left; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--tp-muted-fg); }
.tp-table th button { border: 0; background: none; padding: 0; color: inherit; font-weight: 500; }
.tp-table th button:hover { color: var(--tp-fg); }
.tp-table th[aria-sort="ascending"] button, .tp-table th[aria-sort="descending"] button { color: var(--tp-fg); }
.tp-table td { padding: 9px 10px; border-bottom: 1px solid var(--tp-border); vertical-align: middle; }
.tp-table tbody tr:last-child td { border-bottom: 0; }
.tp-table .num { text-align: right; white-space: nowrap; }
.tp-table th.num button { margin-left: auto; display: block; }
.tp-team .tp-table tbody tr { cursor: pointer; transition: background-color 0.12s; }
.tp-team .tp-table tbody tr:hover { background: color-mix(in oklch, var(--tp-muted) 70%, transparent); }
.tp-table tr.is-selected td { background: var(--tp-muted); }
.tp-table.is-compact td { padding: 6px 8px; font-size: 12px; }
.tp-table.is-compact tr.is-empty td { color: var(--tp-muted-fg); }

.tp-person { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.tp-person b { white-space: nowrap; }
.tp-table th, .tp-table td.num { white-space: nowrap; }
.tp-person b { display: block; font-weight: 500; }
.tp-person small { display: block; font-size: 11px; color: var(--tp-muted-fg); }
.tp-avatar { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--tp-muted); color: var(--tp-fg); font-size: 11px; font-weight: 600; border: 1px solid var(--tp-border); }
.tp-avatar.is-sm { width: 24px; height: 24px; font-size: 9.5px; }
.tp-avatar.is-lg { width: 44px; height: 44px; font-size: 15px; }

.tp-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.tp-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--tp-muted-fg); opacity: 0.45; }
.tp-status.is-online i { background: var(--tp-good); opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklch, var(--tp-good) 22%, transparent); }
.tp-status.is-worked i { background: var(--tp-good); opacity: 1; }
.tp-status.is-present i { background: var(--tp-warn); opacity: 1; }
.tp-status.is-none { color: var(--tp-muted-fg); }

.tp-last { max-width: 260px; }
.tp-last > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }

.tp-meter { display: inline-flex; flex-direction: column; gap: 4px; min-width: 70px; }
.tp-meter b { font-weight: 500; font-size: 12px; }
.tp-meter i { display: block; height: 4px; border-radius: 99px; background: var(--tp-muted); overflow: hidden; }
.tp-meter em { display: block; height: 100%; border-radius: 99px; }
.tp-meter.is-good em { background: var(--tp-good); }
.tp-meter.is-warn em { background: var(--tp-warn); }
.tp-meter.is-bad em { background: var(--tp-bad); }
.tp-meter.is-bad b { color: var(--tp-bad); }

.tp-spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 24px; width: 98px; }
.tp-spark i { flex: 1; border-radius: 2px 2px 0 0; background: color-mix(in oklch, var(--tp-fg) 55%, transparent); }
.tp-spark i.is-zero { background: var(--tp-muted); }
.tp-spark i.is-day { background: var(--tp-brand); }

/* Feed */
.tp-feed { display: flex; flex-direction: column; max-height: 720px; }
.tp-feed__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 10px; border-bottom: 1px solid var(--tp-border); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tp-chips button, .tp-pill { height: 26px; padding: 0 10px; border: 1px solid var(--tp-border); border-radius: 999px; background: transparent; font-size: 12px; color: var(--tp-muted-fg); }
.tp-chips button[aria-pressed="true"] { background: var(--tp-primary); border-color: var(--tp-primary); color: var(--tp-primary-fg); }
.tp-pill { color: var(--tp-fg); background: var(--tp-muted); }
.tp-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tp-muted-fg); }
.tp-feed__list { list-style: none; margin: 0; padding: 4px 0 8px; overflow-y: auto; min-height: 0; }
.tp-feed__hour { position: sticky; top: 0; padding: 8px 16px 4px; background: var(--tp-card); font-size: 11px; font-weight: 500; color: var(--tp-muted-fg); }
.tp-feed__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 7px 16px; }
.tp-feed__item:hover { background: color-mix(in oklch, var(--tp-muted) 60%, transparent); }
.tp-feed__item.is-presence { opacity: 0.6; }
.tp-feed__item p { margin: 0; line-height: 1.3; }
.tp-feed__item time { font-size: 11px; color: var(--tp-muted-fg); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tp-name { border: 0; background: none; padding: 0; font-weight: 500; }
.tp-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp-summary { display: block; margin-top: 2px; font-size: 12px; color: var(--tp-muted-fg); overflow-wrap: anywhere; }
.tp-verb { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 500; line-height: 18px; vertical-align: 1px; background: var(--tp-muted); color: var(--tp-muted-fg); }
.tp-verb.is-done { background: color-mix(in oklch, var(--tp-good) 14%, transparent); color: var(--tp-good); }
.tp-verb.is-created { background: color-mix(in oklch, var(--tp-brand) 14%, transparent); color: var(--tp-brand); }
.tp-verb.is-updated { background: var(--tp-muted); color: var(--tp-fg); }
.tp-verb.is-warn { background: color-mix(in oklch, var(--tp-warn) 16%, transparent); color: color-mix(in oklch, var(--tp-warn), var(--tp-fg) 30%); }
.tp-verb.is-danger { background: color-mix(in oklch, var(--tp-bad) 12%, transparent); color: var(--tp-bad); }

/* Attention */
.tp-attention { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tp-attention .tp-card { padding: 14px 16px; }
.tp-attention h3 { margin: 0; font-size: 14px; font-weight: 600; }
.tp-attention p { margin: 2px 0 8px; font-size: 12px; color: var(--tp-muted-fg); }
.tp-attention ul { list-style: none; margin: 0; padding: 0; }
.tp-attention li button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; border: 0; border-top: 1px solid var(--tp-border); background: none; text-align: left; }
.tp-attention li:first-child button { border-top: 0; }
.tp-attention li button:hover { background: var(--tp-muted); }
.tp-attention li button span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-attention li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.tp-attention .tp-empty { text-align: left; padding: 8px 0; }

/* Person panel — layout only while [open]; a closed <dialog> must stay hidden. */
.tp-panel {
  /* The detail panel is read side by side with the table it came from, and at
     640px the KPI grid, the 14-day table and the timeline were all wrapping.
     Wider is the whole point of the panel. */
  width: min(1080px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--tp-border);
  background: var(--tp-card);
  color: var(--tp-fg);
  box-shadow: var(--te-shadow-float, 0 10px 30px rgb(0 0 0 / 0.2));
}
.tp-panel[open] { display: flex; flex-direction: column; }
.tp-panel::backdrop { background: rgb(0 0 0 / 0.28); }
.tp-panel__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--tp-border); }
.tp-panel__head > div { flex: 1; min-width: 0; }
.tp-panel__head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.tp-panel__head p { margin: 2px 0 0; font-size: 12px; color: var(--tp-muted-fg); overflow-wrap: anywhere; }
.tp-panel__body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 28px; }
.tp-panel__body h3 { margin: 22px 0 8px; font-size: 13px; font-weight: 600; }
.tp-panel__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); overflow: hidden; background: var(--tp-border); }
.tp-panel__kpis > div { padding: 10px 12px; background: var(--tp-card); }
.tp-panel__kpis span { display: block; font-size: 11px; color: var(--tp-muted-fg); }
.tp-panel__kpis b { display: block; font-size: 17px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tp-panel__kpis small { display: block; font-size: 11px; color: var(--tp-muted-fg); margin-top: 1px; }
.tp-campaigns { max-width: 220px; color: var(--tp-muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--tp-border); }
.tp-timeline li { display: grid; grid-template-columns: 44px auto minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 5px 0 5px 12px; font-size: 12px; }
.tp-timeline time { color: var(--tp-muted-fg); font-variant-numeric: tabular-nums; }
.tp-tasks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); overflow: hidden; }
.tp-tasks li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid var(--tp-border); font-size: 12px; }
.tp-tasks li:first-child { border-top: 0; }
.tp-tasks li b { font-weight: 500; }
.tp-tasks li small { display: block; color: var(--tp-muted-fg); font-size: 11px; }
.tp-tasks li > span { flex: none; color: var(--tp-muted-fg); white-space: nowrap; }
.tp-tasks li.is-late > span { color: var(--tp-bad); font-weight: 500; }

/* Loading & error */
.tp-skeleton { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tp-skeleton i { height: 84px; border-radius: var(--tp-radius); background: var(--tp-muted); animation: tp-pulse 1.2s ease-in-out infinite alternate; }
@keyframes tp-pulse { to { opacity: 0.45; } }
.tp-error { padding: 20px; }
.tp-error h2 { margin: 0 0 6px; font-size: 16px; }
.tp-error p { margin: 0 0 12px; color: var(--tp-muted-fg); }

/* Responsive */
@media (max-width: 1100px) {
  .tp-feed { max-height: 560px; }
}
@media (max-width: 900px) {
  .tp-head { grid-template-columns: minmax(0, 1fr); }
  .tp-head__controls { justify-content: flex-start; }
  .tp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-kpi:nth-child(3n) { border-right: 0; }
  .tp-kpi:nth-child(-n+3) { border-bottom: 1px solid var(--tp-border); }
  .tp-attention { grid-template-columns: minmax(0, 1fr); }
  #gc-team-pulse .tp-head h1 { font-size: 24px; }
  .tp-panel__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-skeleton { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-kpi { border-right: 0; border-bottom: 1px solid var(--tp-border); }
  .tp-team .tp-card__head { flex-direction: column; align-items: stretch; }
  .tp-team input[type="search"] { width: 100%; }
}

/* Filters, tabs, work log, campaigns */
.tp-filters { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--tp-border); border-radius: calc(var(--tp-radius) + 4px); background: var(--tp-card); }
.tp-filters .tp-chips button { height: 30px; padding: 0 12px; color: var(--tp-fg); }
.tp-filters .tp-chips button b { margin-left: 4px; font-weight: 500; color: var(--tp-muted-fg); }
.tp-filters .tp-chips button[aria-pressed="true"] b { color: inherit; opacity: 0.75; }
.tp-filters__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.tp-filters__row label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-filters__row label > span { font-size: 11px; font-weight: 500; color: var(--tp-muted-fg); }
.tp-filters__row select { width: 200px; max-width: 100%; }
.tp-filters__search { flex: 1 1 220px; }
.tp-filters__search input { width: 100%; }
.tp-filters__row .tp-link { height: 32px; }

.tp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tp-border); scroll-margin-top: 12px; overflow-x: auto; }
.tp-tabs button { position: relative; flex: none; height: 38px; padding: 0 12px; border: 0; background: none; color: var(--tp-muted-fg); font-size: 13px; font-weight: 500; }
.tp-tabs button span { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--tp-muted); font-size: 11px; }
.tp-tabs button:hover { color: var(--tp-fg); }
.tp-tabs button[aria-selected="true"] { color: var(--tp-fg); }
.tp-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 2px; background: var(--tp-fg); }

.tp-main { min-width: 0; }
.tp-pad { padding: 0 16px 10px; }
.tp-time { white-space: nowrap; color: var(--tp-muted-fg); font-variant-numeric: tabular-nums; }
.tp-log__table td { vertical-align: top; }
.tp-log__table tr.is-presence { opacity: 0.55; }
.tp-task { min-width: 220px; max-width: 360px; }
.tp-task > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-camp { max-width: 240px; }
.tp-camp .tp-link, .tp-camp b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0; text-align: left; font-weight: 500; }
.tp-table .tp-link { padding: 0; text-align: left; text-decoration-color: color-mix(in oklch, var(--tp-fg) 30%, transparent); }
.tp-table .tp-name { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-align: left; }
.tp-table tr.is-click { cursor: pointer; }
.tp-table tr.is-click:hover { background: color-mix(in oklch, var(--tp-muted) 70%, transparent); }
.tp-people { display: inline-flex; }
.tp-people .tp-avatar + .tp-avatar { margin-left: -6px; }
.tp-people .tp-avatar { border-color: var(--tp-card); }
.tp-more { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--tp-border); font-size: 12px; color: var(--tp-muted-fg); }

.tp-verb { white-space: nowrap; }
.tp-filters .tp-chips button[aria-pressed="true"] { background: var(--tp-primary); border-color: var(--tp-primary); color: var(--tp-primary-fg); }
.tp-last { min-width: 180px; }

/* Attention cards sit above the table and carry a tone */
.tp-alert { position: relative; overflow: hidden; border-top: 3px solid var(--tp-alert); }
.tp-alert.is-warn { --tp-alert: var(--tp-warn); }
.tp-alert.is-bad { --tp-alert: var(--tp-bad); }
.tp-alert.is-info { --tp-alert: var(--tp-brand); }
.tp-alert { background: linear-gradient(180deg, color-mix(in oklch, var(--tp-alert) 7%, var(--tp-card)), var(--tp-card) 90px); }
.tp-alert header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tp-attention .tp-alert h3 { font-size: 15px; }
.tp-alert header b { flex: none; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: color-mix(in oklch, var(--tp-alert) 16%, transparent); color: color-mix(in oklch, var(--tp-alert), var(--tp-fg) 25%); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-alert li b { color: color-mix(in oklch, var(--tp-alert), var(--tp-fg) 25%); }
.tp-alert ul { max-height: 266px; overflow-y: auto; }

/* --- wider panel: give the extra width to the content, not the margins --- */
.tp-panel__head { padding: 18px 26px; }
.tp-panel__body { padding: 18px 26px 34px; }
@media (max-width: 1120px) { .tp-panel { width: min(760px, 100vw); } }
@media (max-width: 800px)  { .tp-panel { width: 100vw; } .tp-panel__head, .tp-panel__body { padding-left: 16px; padding-right: 16px; } }

/* Anything in the panel that leads somewhere looks like it does. */
.tp-panel .tp-link,
.tp-panel .tp-task-link,
.tp-panel a.tp-jump {
  color: var(--tp-accent-fg, #7c3aed);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 2px;
}
.tp-panel .tp-link:hover, .tp-panel .tp-task-link:hover, .tp-panel a.tp-jump:hover { text-decoration: underline; }
.tp-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tp-chip-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--tp-border); border-radius: 999px;
  background: var(--tp-card); color: var(--tp-muted-fg);
  padding: 4px 10px; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer;
  text-decoration: none;
}
.tp-chip-btn:hover { border-color: var(--tp-accent-fg, #7c3aed); color: var(--tp-accent-fg, #7c3aed); }
.tp-chip-btn i { font-style: normal; opacity: .55; font-weight: 800; }
.tp-insights { display: grid; gap: 8px; }
.tp-insight {
  padding: 11px 13px; border: 1px solid var(--tp-border); border-left-width: 3px;
  border-radius: var(--tp-radius); background: var(--tp-card);
}
.tp-insight.is-bad { border-left-color: #dc2626; }
.tp-insight.is-warn { border-left-color: #d97706; }
.tp-insight.is-good { border-left-color: #15966f; }
.tp-insight b { font-size: 12.5px; }
.tp-insight p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--tp-muted-fg); }
.tp-people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.tp-people-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--tp-border); }
.tp-people-list li:last-child { border-bottom: 0; }
.tp-people-list small { color: var(--tp-muted-fg); font-size: 11px; }

/* 2026-09-23: change against the comparison day, a done-per-day line in the tile, and
 * the "What stands out" row. Arrows carry the direction so colour is never alone. */
.tp-kpi { position: relative; }
.tp-kpi__spark { position: absolute; top: 12px; right: 12px; width: 64px; height: 20px; color: var(--tp-good); opacity: 0.9; }
.tp-delta { display: block; margin-top: 4px; font-style: normal; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-delta span { font-weight: 400; color: var(--tp-muted-fg); }
.tp-delta.is-up { color: var(--tp-good); }
.tp-delta.is-down { color: var(--tp-bad); }
.tp-delta.is-flat { color: var(--tp-muted-fg); font-weight: 500; }
.tp-stand { display: flex; flex-direction: column; gap: 8px; }
#gc-team-pulse .tp-stand h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; }
.tp-stand > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.tp-stand__item { margin: 0; padding: 10px 14px 10px 16px; border: 1px solid var(--tp-border); border-left: 3px solid var(--tp-ins); border-radius: calc(var(--tp-radius) + 2px); background: var(--tp-card); font-size: 12.5px; line-height: 1.5; text-align: left; color: var(--tp-fg); }
button.tp-stand__item:hover { background: var(--tp-muted); }
.tp-stand__item.is-good { --tp-ins: var(--tp-good); }
.tp-stand__item.is-warn { --tp-ins: var(--tp-warn); }
.tp-stand__item.is-bad { --tp-ins: var(--tp-bad); }
.tp-stand__item b { font-weight: 600; }
.tp-btn--link { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }

/* Leadership review. Scoped here because Top Tier shares the base tp primitives. */
#gc-team-pulse { --fa-accent: var(--tp-brand); --fa-accent-soft: color-mix(in srgb, var(--fa-accent) 8%, var(--tp-card)); max-width: 1500px; margin-inline: auto; }
#gc-team-pulse *, #gc-team-pulse *::before, #gc-team-pulse *::after { box-sizing: border-box; }
#gc-team-pulse .tp-content { gap: 20px; min-width: 0; }
#gc-team-pulse .tp-head { align-items: start; padding-bottom: 18px; gap: 12px; }
#gc-team-pulse .tp-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -.035em; }
#gc-team-pulse .tp-head p { max-width: 60ch; font-size: 13px; margin-top: 8px; }
#gc-team-pulse .tp-head__controls { max-width: 580px; }
#gc-team-pulse :is(button, a, input, select, summary):focus-visible { outline: 2px solid var(--fa-accent); outline-offset: 3px; }
#gc-team-pulse .mgmt-nav { margin: 0; gap: 8px; border-bottom: 1px solid var(--tp-border); padding-bottom: 0; overflow-x: auto; }
#gc-team-pulse .mgmt-nav button { min-height: 42px; padding: 8px 16px 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--tp-muted-fg); white-space: nowrap; font-size: 13px; font-weight: 600; }
#gc-team-pulse .mgmt-nav button[aria-pressed=true] { border-bottom-color: var(--fa-accent); color: var(--tp-fg); background: var(--fa-accent-soft); border-radius: 7px 7px 0 0; }
#gc-team-pulse .mgmt-nav span { background: var(--tp-muted); padding: 1px 6px; border-radius: 5px; margin-left: 4px; font-size: 11px; }
#gc-team-pulse .fa-scope { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; color: var(--tp-muted-fg); font-size: 12px; }
#gc-team-pulse .fa-scope > div:first-child { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
#gc-team-pulse .fa-scope-date { color: var(--tp-fg); font-weight: 600; }
#gc-team-pulse .fa-scope-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#gc-team-pulse .fa-scope-controls label { display: flex; align-items: center; gap: 8px; }
#gc-team-pulse .fa-scope-focus { flex: 1 0 100%; margin: 0; padding: 8px 12px; background: var(--fa-accent-soft); color: var(--tp-fg); border-radius: 6px; }
#gc-team-pulse .tp-kpis { border: 1px solid var(--tp-border); border-radius: 10px; overflow: hidden; }
#gc-team-pulse .tp-kpi { padding: 14px 16px; border-radius: 0; min-height: 112px; }
#gc-team-pulse .tp-kpi strong { font-size: 25px; font-weight: 650; font-variant-numeric: tabular-nums; }
#gc-team-pulse .tp-kpi:hover { background: var(--fa-accent-soft); }
#gc-team-pulse .tp-main, #gc-team-pulse .fa-overview { display: grid; gap: 20px; min-width: 0; }
#gc-team-pulse .fa-decision { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 32px; padding: 28px; border: 1px solid color-mix(in srgb, var(--fa-accent) 30%, var(--tp-border)); border-radius: 12px; background: var(--fa-accent-soft); }
#gc-team-pulse .fa-decision-context { color: var(--fa-accent); font-weight: 650; font-size: 12px; }
#gc-team-pulse .fa-decision h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; font-weight: 650; letter-spacing: -.025em; margin: 10px 0; text-transform: none; max-width: 36ch; }
#gc-team-pulse .fa-decision p { color: var(--tp-muted-fg); max-width: 65ch; font-size: 13px; margin: 0 0 18px; }
#gc-team-pulse .fa-primary { border: 0; border-radius: 7px; padding: 10px 15px; min-height: 40px; background: var(--fa-accent); color: white; font-size: 12px; font-weight: 600; }
#gc-team-pulse .fa-primary:hover { filter: brightness(.9); }
#gc-team-pulse .fa-decision dl { display: flex; flex-direction: column; justify-content: center; margin: 0; gap: 20px; padding-left: 24px; border-left: 1px solid color-mix(in srgb, var(--fa-accent) 20%, var(--tp-border)); }
#gc-team-pulse .fa-decision dt { font-size: 12px; color: var(--tp-muted-fg); }
#gc-team-pulse .fa-decision dd { margin: 5px 0 0; font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
#gc-team-pulse .fa-decision dd small { font-size: 12px; color: var(--tp-muted-fg); font-weight: 400; }
#gc-team-pulse .fa-review-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
#gc-team-pulse :is(.fa-flow, .fa-review-next, .fa-history-card, .fa-contributors) { padding: 22px; min-width: 0; border-radius: 10px; }
#gc-team-pulse .fa-section-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
#gc-team-pulse .fa-section-head h2 { margin: 0 0 6px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; text-transform: none; }
#gc-team-pulse .fa-section-head p { margin: 0; max-width: 80ch; font-size: 12px; color: var(--tp-muted-fg); line-height: 1.55; }
#gc-team-pulse .fa-legend { display: flex; gap: 18px; font-size: 11px; color: var(--tp-muted-fg); margin-bottom: 18px; }
#gc-team-pulse .fa-legend span { display: flex; align-items: center; gap: 6px; }
#gc-team-pulse .fa-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--fa-accent); }
#gc-team-pulse .fa-legend i.is-baseline { background: color-mix(in srgb, var(--tp-muted-fg) 45%, var(--tp-card)); }
#gc-team-pulse .fa-compare-row { display: grid; grid-template-columns: 98px minmax(0, 1fr); align-items: center; gap: 16px; width: 100%; border: 0; background: none; text-align: left; padding: 12px 0; border-radius: 5px; }
#gc-team-pulse .fa-compare-row:hover { background: var(--tp-muted); }
#gc-team-pulse .fa-compare-row > span { font-weight: 600; font-size: 12px; }
#gc-team-pulse .fa-compare-row > div { display: grid; gap: 7px; }
#gc-team-pulse .fa-measure { display: flex; align-items: center; gap: 9px; height: 18px; padding-right: 40px; }
#gc-team-pulse .fa-measure i { display: block; height: 100%; width: var(--measure); min-width: 2px; background: var(--fa-accent); border-radius: 2px 4px 4px 2px; }
#gc-team-pulse .fa-measure b { font-size: 12px; font-variant-numeric: tabular-nums; }
#gc-team-pulse .fa-measure.is-baseline i { background: color-mix(in srgb, var(--tp-muted-fg) 32%, var(--tp-card)); }
#gc-team-pulse .fa-measure.is-baseline b { color: var(--tp-muted-fg); font-weight: 400; }
#gc-team-pulse .fa-flow-note { display: grid; gap: 4px; padding-top: 18px; margin-top: 14px; border-top: 1px solid var(--tp-border); font-size: 12px; }
#gc-team-pulse .fa-flow-note span { color: var(--tp-muted-fg); }
#gc-team-pulse .fa-review-next > :is(button,a) { display: grid; grid-template-columns: 28px minmax(0,1fr) 12px; align-items: start; gap: 12px; text-align: left; text-decoration: none; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--tp-border); background: none; color: var(--tp-fg); }
#gc-team-pulse .fa-review-next > :is(button,a):hover b { color: var(--fa-accent); }
#gc-team-pulse .fa-review-next b { display: block; font-size: 13px; font-weight: 600; }
#gc-team-pulse .fa-review-next small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.5; color: var(--tp-muted-fg); }
#gc-team-pulse .fa-review-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; font-weight: 700; background: color-mix(in srgb, var(--tp-warn) 12%, var(--tp-card)); color: var(--tp-warn); }
#gc-team-pulse .fa-review-icon.is-neutral { color: var(--fa-accent); background: var(--fa-accent-soft); }
#gc-team-pulse .fa-chart-unit { color: var(--tp-muted-fg); font-size: 11px; white-space: nowrap; }
#gc-team-pulse .fa-history { display: grid; grid-template-columns: repeat(14,minmax(0,1fr)); gap: 6px; min-height: 150px; }
#gc-team-pulse .fa-history button { display: flex; align-items: stretch; flex-direction: column; gap: 7px; background: none; border: 1px solid transparent; border-radius: 6px; padding: 7px 3px; min-width: 0; color: var(--tp-muted-fg); }
#gc-team-pulse .fa-history button:hover:not(:disabled), #gc-team-pulse .fa-history button[aria-pressed=true] { background: var(--fa-accent-soft); border-color: color-mix(in srgb, var(--fa-accent) 40%, var(--tp-border)); }
#gc-team-pulse .fa-history button:disabled { cursor: default; opacity: .5; }
#gc-team-pulse .fa-history b { font-size: 11px; font-weight: 600; }
#gc-team-pulse .fa-history small { font-size: 10px; text-align: center; white-space: nowrap; }
#gc-team-pulse .fa-history-track { height: 100px; display: flex; align-items: flex-end; background: var(--tp-muted); border-radius: 4px; overflow: hidden; }
#gc-team-pulse .fa-history-track i { display: block; width: 100%; height: var(--measure); background: var(--fa-accent); border-radius: 3px 3px 0 0; opacity: .75; }
#gc-team-pulse .fa-history button[aria-pressed=true] i { opacity: 1; }
#gc-team-pulse .fa-contributors > div:last-child { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
#gc-team-pulse .fa-contributors button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 0; border: 0; border-top: 1px solid var(--tp-border); background: none; }
#gc-team-pulse .fa-contributors button:hover { background: var(--fa-accent-soft); }
#gc-team-pulse .fa-contributors button > span:nth-child(2) { flex: 1; min-width: 0; }
#gc-team-pulse .fa-contributors b { display: block; font-size: 12px; font-weight: 600; }
#gc-team-pulse .fa-contributors small { display: block; margin-top: 4px; color: var(--tp-muted-fg); font-size: 11px; }
#gc-team-pulse .fa-contributors strong { font-size: 18px; color: var(--fa-accent); font-variant-numeric: tabular-nums; }
#gc-team-pulse .tp-attention { gap: 16px; }
#gc-team-pulse .tp-alert { min-height: 0; padding: 18px; border-top-width: 2px; border-radius: 10px; }
#gc-team-pulse .tp-alert ul { max-height: none; }
#gc-team-pulse .tp-alert h3 { font-size: 13px; line-height: 1.4; }
#gc-team-pulse .fa-method { border: 1px solid var(--tp-border); border-radius: 8px; padding: 13px 16px; font-size: 12px; color: var(--tp-muted-fg); }
#gc-team-pulse .fa-method summary { cursor: pointer; color: var(--tp-fg); font-weight: 600; }
#gc-team-pulse .fa-method p { max-width: 90ch; line-height: 1.7; }
#gc-team-pulse .tp-team, #gc-team-pulse .tp-log { min-width: 0; }
#gc-team-pulse .tp-table-wrap { max-width: 100%; overflow-x: auto; }
#gc-team-pulse .tp-panel { max-width: min(900px, calc(100vw - 24px)); }
.dark #gc-team-pulse .fa-primary, [data-theme=dark] #gc-team-pulse .fa-primary { color: #102e35; }
@media (max-width: 1100px) {
  #gc-team-pulse .tp-head { grid-template-columns: 1fr; }
  #gc-team-pulse .tp-head__controls { max-width: none; justify-content: flex-start; }
  #gc-team-pulse .fa-review-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
}
@media (max-width: 760px) {
  #gc-team-pulse .fa-decision, #gc-team-pulse .fa-review-grid { grid-template-columns: minmax(0,1fr); }
  #gc-team-pulse .fa-decision { gap: 20px; padding: 20px; }
  #gc-team-pulse .fa-decision dl { border-left: 0; border-top: 1px solid var(--tp-border); padding: 18px 0 0; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
  #gc-team-pulse .tp-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  #gc-team-pulse .fa-contributors > div:last-child { grid-template-columns: minmax(0,1fr); }
  #gc-team-pulse .tp-attention { grid-template-columns: minmax(0,1fr); }
  #gc-team-pulse .fa-history { overflow-x: auto; grid-template-columns: repeat(14,40px); padding-bottom: 8px; }
}
@media (max-width: 480px) {
  #gc-team-pulse .tp-head h1 { font-size: 28px; }
  #gc-team-pulse .tp-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #gc-team-pulse .tp-kpi { padding: 12px; }
  #gc-team-pulse .tp-kpi__spark { width: 42px; right: 8px; }
  #gc-team-pulse .fa-flow, #gc-team-pulse .fa-review-next, #gc-team-pulse .fa-history-card, #gc-team-pulse .fa-contributors { padding: 16px; }
  #gc-team-pulse .fa-compare-row { grid-template-columns: 80px minmax(0,1fr); gap: 8px; }
  #gc-team-pulse .mgmt-nav { gap: 0; }
  #gc-team-pulse .mgmt-nav button { padding: 9px 10px; font-size: 12px; }
  #gc-team-pulse .fa-section-head { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { #gc-team-pulse *, #gc-team-pulse *::before { transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------------------
 * Full Analysis v2 (2026-09-27): Performance view. Theme tokens only (--tp-*).
 * ------------------------------------------------------------------------- */
.pf { display: flex; flex-direction: column; gap: 16px; }
.pf-scope { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border: 1px solid var(--tp-border); border-radius: calc(var(--tp-radius) + 4px); background: var(--tp-card); }
.pf-scope > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pf-scope__range { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.pf-scope > div:first-child > span:last-child { font-size: 12px; color: var(--tp-muted-fg); }
.pf-scope__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pf-scope__controls label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tp-muted-fg); }

/* KPI tiles */
.pf-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1280px) { .pf-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-kpi { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px 12px; border: 1px solid var(--tp-border); border-radius: calc(var(--tp-radius) + 4px); background: var(--tp-card); overflow: hidden; }
.pf-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tp-border); }
.pf-kpi.is-good::before { background: var(--tp-good); } .pf-kpi.is-warn::before { background: var(--tp-warn); } .pf-kpi.is-bad::before { background: var(--tp-bad); }
.pf-kpi__label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tp-muted-fg); }
.pf-kpi strong { font-size: 26px; line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pf-kpi small { font-size: 11.5px; line-height: 1.35; color: var(--tp-muted-fg); }
.pf-kpi .pf-spark { margin-top: 6px; width: 100%; height: 26px; color: var(--tp-muted-fg); }
.pf-spark { display: block; width: 96px; height: 26px; color: var(--tp-muted-fg); }
.pf-spark.is-good { color: var(--tp-good); } .pf-spark.is-bad { color: var(--tp-bad); }

/* Cards */
.pf-card { padding: 16px 18px; }
.pf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.pf-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.pf-head p { margin: 3px 0 0; max-width: 760px; font-size: 12px; color: var(--tp-muted-fg); }
.pf-h3 { margin: 16px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tp-muted-fg); }
.pf-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--tp-muted-fg); }
.pf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pf-legend i { width: 12px; height: 10px; border-radius: 3px; display: inline-block; }
.pf-bad { color: var(--tp-bad); }
.pf-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--tp-muted); font-size: 10.5px; font-weight: 600; }

/* Columns chart */
.pf-scroll-x { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 6px 4px 2px; }
.pf-cols { display: block; max-width: none; }
.pf-gridline { stroke: var(--tp-border); stroke-width: 1; }
.pf-axis { fill: var(--tp-muted-fg); font-size: 10.5px; }
.pf-val { fill: var(--tp-fg); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-val.is-zero { fill: var(--tp-muted-fg); font-weight: 500; opacity: 0.6; }
.pf-c-created { fill: #60a5fa; background: #60a5fa; }
.pf-c-done { fill: #16a34a; background: #16a34a; }
.pf-c-expired { fill: #dc2626; background: #dc2626; }

/* Tables */
.pf-table-wrap { margin-top: 14px; overflow: auto; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); }
.pf-tall { max-height: 440px; }
.pf-table { width: 100%; }
.pf-table th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.pf-table th button { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; }
.pf-table th button.is-on { color: var(--tp-fg); }
.pf-table td, .pf-table th { text-align: right; font-variant-numeric: tabular-nums; }
.pf-table td:first-child, .pf-table th:first-child { text-align: left; }
.pf-table tfoot td { position: sticky; bottom: 0; background: var(--tp-muted); font-weight: 700; }
.pf-table tr.is-today td { background: color-mix(in srgb, var(--tp-brand) 6%, transparent); }
.pf-people td { vertical-align: middle; }
.pf-people tbody tr { cursor: pointer; }
.pf-people tbody tr:hover td, .pf-people tbody tr:focus-visible td { background: var(--tp-muted); }
.pf-people td:first-child { min-width: 210px; }
.pf-rate { min-width: 150px; }
.pf-rate b { font-size: 12.5px; }
.pf-meter { display: inline-block; width: 56px; height: 6px; margin-right: 6px; vertical-align: middle; border-radius: 3px; background: var(--tp-muted); overflow: hidden; }
.pf-meter i { display: block; height: 100%; }
.pf-meter.is-good i { background: var(--tp-good); } .pf-meter.is-warn i { background: var(--tp-warn); } .pf-meter.is-bad i { background: var(--tp-bad); }

/* Ageing + heat, side by side at equal height */
.pf-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }
.pf-bars { display: flex; flex-direction: column; gap: 8px; }
.pf-bar-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.pf-bar-row > span:first-child { font-weight: 600; }
.pf-track { height: 12px; border-radius: 6px; background: var(--tp-muted); overflow: hidden; }
.pf-track i { display: block; height: 100%; border-radius: 6px; }
.pf-bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.pf-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.pf-list button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 7px 4px; border: 0; border-top: 1px solid var(--tp-border); background: none; text-align: left; }
.pf-list li:first-child button { border-top: 0; }
.pf-list button:hover { background: var(--tp-muted); }
.pf-list small { display: block; font-size: 11px; color: var(--tp-muted-fg); }
.pf-list b { color: var(--tp-bad); font-variant-numeric: tabular-nums; }
.pf-heat { border-collapse: separate; border-spacing: 3px; font-size: 10.5px; }
.pf-heat th { font-weight: 600; color: var(--tp-muted-fg); padding: 0 4px; text-align: left; }
.pf-heat thead th { text-align: center; }
.pf-heat td { width: 30px; min-width: 30px; height: 28px; text-align: center; border-radius: 5px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--tp-good) calc(var(--a) * 100%), var(--tp-muted)); color: var(--tp-fg); }
.pf-method { margin-top: 0; }
@media (max-width: 640px) { .pf-kpi strong { font-size: 22px; } .pf-bar-row { grid-template-columns: 76px minmax(0, 1fr) 36px; } }
.pf-heat td.pf-heat-total, .pf-heat th.pf-heat-total { background: transparent; color: var(--tp-muted-fg); font-weight: 700; min-width: 38px; }
.pf-heat tfoot th { color: var(--tp-muted-fg); }
.pf-heat { width: 100%; }
.pf-heat td { height: 44px; }

/* Fit the page (2026-09-27): full width like the Planner, and the main column may
 * shrink to the screen instead of growing to its widest chart or table. */
#gc-team-pulse { max-width: none; }
#gc-team-pulse .tp-main { grid-template-columns: minmax(0, 1fr); }
#gc-team-pulse .pf, #gc-team-pulse .pf > * { min-width: 0; }

/* ---------------------------------------------------------------------------
 * Person page (2026-10-01): /reporting?person=... — one employee's full record.
 * ------------------------------------------------------------------------- */
#gc-team-pulse .pp-head h1 { font-size: 24px; margin: 0; }
.pp-head { align-items: start; }
.pp-back { margin-bottom: 12px; }
.pp-who { display: flex; align-items: center; gap: 14px; }
.pp-who p { margin-top: 2px; font-size: 13px; overflow-wrap: anywhere; }
.pp-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tp-muted-fg); }
.pp-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pp-kpi.is-on { background: var(--tp-muted); box-shadow: inset 0 -2px 0 var(--tp-brand); }
.pp-kpi span { display: inline-flex; align-items: center; gap: 6px; }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--tp-border); overflow: hidden; }
.pp-facts > div { padding: 12px 14px; background: var(--tp-card); min-width: 0; }
.pp-facts span { display: block; font-size: 11px; color: var(--tp-muted-fg); }
.pp-facts b { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-facts small { display: block; margin-top: 1px; font-size: 11px; color: var(--tp-muted-fg); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } }
.pp-card .pf-legend { padding-right: 4px; }
.pp-chart { display: flex; align-items: flex-end; gap: 3px; overflow-x: auto; padding: 4px 16px 12px; min-height: 190px; }
.pp-bar { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding: 0; border: 0; border-radius: 4px; background: none; }
.pp-bar em { font-style: normal; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 13px; }
.pp-bar.is-zero em { opacity: 0.4; }
.pp-stack { display: flex; flex-direction: column-reverse; width: 70%; min-width: 8px; border-radius: 3px 3px 0 0; overflow: hidden; background: var(--tp-muted); }
.pp-stack i { display: block; min-height: 1px; }
.pp-bar small { font-size: 10px; color: var(--tp-muted-fg); white-space: nowrap; }
.pp-bar:hover, .pp-bar.is-on { background: color-mix(in oklch, var(--tp-muted) 80%, transparent); }
.pp-bar.is-on small { color: var(--tp-fg); font-weight: 700; }
.pp-hours { display: flex; align-items: flex-end; gap: 3px; padding: 4px 16px 14px; min-height: 150px; }
.pp-hour { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.pp-hour i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--tp-brand); }
.pp-hour em { font-style: normal; font-size: 9.5px; font-variant-numeric: tabular-nums; min-height: 12px; color: var(--tp-muted-fg); }
.pp-hour small { font-size: 10px; color: var(--tp-muted-fg); min-height: 12px; }
.pp-scroll { max-height: 420px; overflow: auto; }
.pp-camp { max-width: 340px; }
.pp-camp .tp-link { text-align: left; padding: 0; overflow-wrap: anywhere; }
.pp-when { white-space: nowrap; color: var(--tp-muted-fg); }
.pp-table td { vertical-align: top; }
.pp-time { white-space: nowrap; color: var(--tp-muted-fg); font-variant-numeric: tabular-nums; width: 1%; }
.pp-what { min-width: 220px; max-width: 460px; overflow-wrap: anywhere; }
.pp-result { min-width: 150px; }
.pp-dayrow td { padding: 8px 10px; background: var(--tp-muted); border-bottom: 1px solid var(--tp-border); font-size: 12px; }
.pp-dayrow span { margin-left: 10px; color: var(--tp-muted-fg); }
.pp-tag { display: inline-block; margin: 0 4px 3px 0; padding: 0 7px; border-radius: 999px; font-size: 10.5px; line-height: 18px; white-space: nowrap; background: var(--tp-muted); color: var(--tp-muted-fg); }
.pp-tag.is-good { background: color-mix(in oklch, var(--tp-good) 14%, transparent); color: var(--tp-good); }
.pp-tag.is-warn { background: color-mix(in oklch, var(--tp-warn) 16%, transparent); color: color-mix(in oklch, var(--tp-warn), var(--tp-fg) 30%); }
.pp-tag.is-bad { background: color-mix(in oklch, var(--tp-bad) 12%, transparent); color: var(--tp-bad); }
.pp-log .tp-feed__filters { padding-top: 2px; }
.pp-log .tp-chips b { font-weight: 600; margin-left: 2px; }
.pp-log select { max-width: 260px; }
.pp-more { padding: 12px 16px; text-align: center; border-top: 1px solid var(--tp-border); }
.pp-open { max-height: 420px; overflow: auto; }
@media (max-width: 800px) {
  .pp-head { grid-template-columns: minmax(0, 1fr); }
  .pp-head .tp-head__controls { justify-content: flex-start; }
  .pp-what { min-width: 160px; }
}
