/* ============================================================
   team-performance.css — the Team page (#/team): an upline's view of their downline.
   Composition borrowed from the best agency CRMs (production tiles with
   deltas → org chart + leaderboard bento → coaching + activity), rendered
   in Standby's "live signal" system: achromatic canvas, chromatic only on
   data, mono labels, light display numerals. Loaded after appshell.css.
   ============================================================ */

/* ---- page frame ---- */
.app-wrap--wide { max-width: 1240px; }
.team { display: flex; flex-direction: column; gap: 18px; }
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.team-head > div:first-child { max-width: 640px; }

/* toolbar: scope pill · period segmented · admin action */
.tm-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.tm-bar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tm-scope { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); padding: 8px 12px; border: 1px solid var(--hairline); border-radius: var(--r-pill); background: var(--fill-subtle); }
.tm-scope__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.tm-scope--org .tm-scope__dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tm-seg { display: inline-flex; padding: 3px; border: 1px solid var(--hairline); border-radius: var(--r-pill); background: var(--inset); }
.tm-seg__btn { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 7px 12px; border-radius: var(--r-pill); background: none; border: 0; cursor: pointer; transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.tm-seg__btn:hover { color: var(--text); }
.tm-seg__btn.is-on { background: var(--surface-2); color: var(--text); }
.tm-seg__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tm-manage { padding: 9px 14px; font-size: var(--text-sm); }

/* ---- entrance: cards rise in sequence (compositor-only; reduced-motion zeroes it) ---- */
@keyframes tm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tm-tile, .tm-card { animation: tm-rise var(--dur-3) var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }

/* ---- production tiles ---- */
.tm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tm-tile { position: relative; padding: 18px 20px 16px; border: 1px solid var(--hairline); border-radius: var(--r-2xl); background: var(--card-solid); overflow: hidden; }
.tm-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 100% 0%, var(--highlight), transparent 55%); }
.tm-tile__l { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.tm-tile__v { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); line-height: 1; color: var(--text); letter-spacing: -0.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tm-tile__s { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-2); margin-top: 8px; }
.tm-tile__f { margin-top: 12px; }
.tm-delta { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-pill); border: 1px solid var(--hairline); color: var(--text-3); white-space: nowrap; }
.tm-delta--up { color: var(--band-high); border-color: color-mix(in oklab, var(--band-high) 40%, transparent); background: color-mix(in oklab, var(--band-high) 10%, transparent); }
.tm-delta--down { color: var(--band-low); border-color: color-mix(in oklab, var(--band-low) 40%, transparent); background: color-mix(in oklab, var(--band-low) 10%, transparent); }
.tm-grade { font-family: var(--font-display); font-weight: 600; font-size: 0.7rem; color: var(--text-2); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 1px 8px; line-height: 1.5; }

/* ---- cards ---- */
.tm-card { border: 1px solid var(--hairline); border-radius: var(--r-2xl); background: var(--card-solid); padding: 20px 22px; min-width: 0; }
.tm-card--muted { background: var(--card-2); }
.tm-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.tm-card__title { font-family: var(--font-display); font-weight: 300; font-size: 1.35rem; color: var(--text); letter-spacing: -0.01em; line-height: 1.1; }
.tm-card__sub { font-size: 0.8rem; color: var(--text-3); margin-top: 5px; line-height: 1.45; }
.tm-empty { color: var(--text-3); font-size: var(--text-sm); padding: 18px 0 6px; }

.tm-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); gap: 14px; align-items: start; }
.tm-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tm-bento { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 14px; }   /* skeleton only */

/* ---- avatars ---- */
.tm-avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.02em; color: var(--text); background: var(--surface-2); border: 1px solid var(--hairline-strong); }
.tm-avatar--sm { width: 26px; height: 26px; font-size: 0.6rem; }

/* ============================================================
   ORG CHART — connectors drawn with pseudo-elements; any depth
   ============================================================ */
.tm-oc { overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.tm-oc__lvl { list-style: none; display: flex; justify-content: center; align-items: flex-start; margin: 0; padding: 22px 0 0; position: relative; }
/* the root level is as wide as the tree: a narrow tree centers, a wide one scrolls (never clips) */
.tm-oc > .tm-oc__lvl { padding-top: 0; width: max-content; min-width: 100%; margin-inline: auto; }
.tm-oc__item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 5px 0; }
.tm-oc > .tm-oc__lvl > .tm-oc__item { padding-top: 0; }
/* each child: a bar across its top half-edges + a stub down to its node */
.tm-oc__item::before, .tm-oc__item::after { content: ""; position: absolute; top: 0; height: 22px; width: 50%; border-top: 1px solid var(--hairline-strong); }
.tm-oc__item::before { right: 50%; }
.tm-oc__item::after { left: 50%; border-left: 1px solid var(--hairline-strong); }
.tm-oc__item:first-child::before { border-top: 0; }
.tm-oc__item:first-child::after { border-radius: 8px 0 0 0; }
.tm-oc__item:last-child::after { border-top: 0; border-left: 0; }
.tm-oc__item:last-child::before { border-right: 1px solid var(--hairline-strong); border-radius: 0 8px 0 0; }
.tm-oc__item:only-child::before { border-top: 0; border-right: 0; }
.tm-oc__item:only-child::after { border-top: 0; border-left: 1px solid var(--hairline-strong); border-radius: 0; }
.tm-oc > .tm-oc__lvl > .tm-oc__item::before, .tm-oc > .tm-oc__lvl > .tm-oc__item::after { display: none; }
/* parent → children stem */
.tm-oc__item > .tm-oc__lvl::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1px solid var(--hairline-strong); }
.tm-oc__item.is-collapsed > .tm-oc__lvl { display: none; }

.tm-node { width: 150px; text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 12px 13px 11px; border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); background: var(--card-2); color: var(--text-2); cursor: pointer; position: relative; transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease); }
.tm-node:hover { border-color: var(--text-4); transform: translateY(-2px); box-shadow: var(--sh-2); }
.tm-node:active { transform: translateY(0); }
.tm-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-node.is-viewer { border-color: color-mix(in oklab, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent), var(--sh-1); }
.tm-node.is-unplaced { border-style: dashed; }
.tm-node.is-inactive { opacity: 0.55; }
.tm-node__top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tm-node__who { display: flex; flex-direction: column; min-width: 0; }
.tm-node__name { font-size: 0.86rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-node__role { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.tm-node.is-unplaced .tm-node__role { color: var(--orange); }
.tm-node__score { display: flex; align-items: baseline; gap: 7px; }
.tm-node__score b { font-family: var(--font-display); font-weight: 300; font-size: 1.85rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tm-node__score-l { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.tm-node__meta { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-oc__toggle { position: relative; z-index: 1; margin-top: -9px; min-width: 22px; height: 18px; padding: 0 7px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); background: var(--card-solid); color: var(--text-2); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.06em; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.tm-oc__toggle::before { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform var(--dur-1) var(--ease); }
.tm-oc__item.is-collapsed > .tm-oc__toggle::before { transform: rotate(-45deg) translate(0, 1px); }
.tm-oc__toggle:hover { background: var(--surface-2); color: var(--text); }
.tm-oc__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.tm-lb { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.tm-lb__row { display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) 56px auto; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--card-2); color: var(--text-2); cursor: pointer; transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.tm-lb__row:hover { border-color: var(--hairline-strong); background: var(--fill-subtle); transform: translateX(2px); }
.tm-lb__row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-lb__row.is-viewer { border-color: color-mix(in oklab, var(--blue) 45%, transparent); background: color-mix(in oklab, var(--blue) 7%, transparent); }
.tm-lb__rank { font-family: var(--font-display); font-weight: 300; font-size: 1.35rem; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.tm-lb__row--1 .tm-lb__rank { color: var(--accent); font-weight: 500; }
.tm-lb__row--2 .tm-lb__rank { color: var(--text); }
.tm-lb__row--3 .tm-lb__rank { color: var(--orange); }
.tm-lb__row--1 .tm-avatar { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 22%, transparent); }
.tm-lb__row--2 .tm-avatar { border-color: var(--text-2); }
.tm-lb__row--3 .tm-avatar { border-color: var(--orange); }
.tm-lb__who { display: flex; flex-direction: column; min-width: 0; }
.tm-lb__name { font-size: 0.9rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-lb__meta { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-lb__score { display: inline-flex; align-items: center; gap: 7px; justify-self: end; }
.tm-lb__score b { font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tm-spark { display: inline-flex; align-items: center; justify-content: center; }
.tm-spark--empty { color: var(--text-4); font-size: 0.8rem; }

/* ============================================================
   COACHING + ACTIVITY
   ============================================================ */
.tm-coach { display: flex; flex-direction: column; gap: 8px; }
.tm-coach__item { position: relative; display: flex; flex-direction: column; gap: 5px; width: 100%; text-align: left; padding: 12px 14px 12px 18px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--card-2); color: var(--text-2); cursor: pointer; transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.tm-coach__item::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--text-4); }
.tm-coach__item[data-kind="slipping"]::before { background: var(--danger); }
.tm-coach__item[data-kind="weak-dim"]::before { background: var(--orange); }
.tm-coach__item[data-kind="inactive"]::before { background: var(--blue); }
.tm-coach__item[data-kind="rising"]::before { background: var(--accent); }
.tm-coach__item:hover { border-color: var(--hairline-strong); transform: translateX(2px); }
.tm-coach__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-coach__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-coach__name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.tm-coach__tag { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.tm-coach__item[data-kind="slipping"] .tm-coach__tag { color: var(--danger); }
.tm-coach__item[data-kind="weak-dim"] .tm-coach__tag { color: var(--orange); }
.tm-coach__item[data-kind="inactive"] .tm-coach__tag { color: var(--blue); }
.tm-coach__item[data-kind="rising"] .tm-coach__tag { color: var(--accent); }
.tm-coach__detail { font-size: 0.8rem; color: var(--text-2); line-height: 1.45; }

.tm-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tm-feed__item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--hairline); }
.tm-feed__item:last-child { border-bottom: 0; }
.tm-feed__dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; background: var(--text-4); }
.tm-feed__item[data-kind="sale"] .tm-feed__dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tm-feed__item[data-kind="scored"] .tm-feed__dot { background: var(--blue); }
.tm-feed__body { min-width: 0; font-size: 0.84rem; color: var(--text-2); line-height: 1.4; }
.tm-feed__who { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.tm-feed__who:hover { text-decoration: underline; text-underline-offset: 3px; }
.tm-feed__who:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tm-feed__sum { display: block; color: var(--text-3); font-size: 0.76rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-feed__when { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; margin-top: 4px; }

/* ============================================================
   GOALS — per-rep targets with progress ("70% to goal")
   ============================================================ */
.tm-goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tm-goal { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--card-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--dur-1) var(--ease); }
.tm-goal:hover { border-color: var(--hairline-strong); }
.tm-goal.is-viewer { border-color: color-mix(in oklab, var(--blue) 40%, transparent); }
.tm-goal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-goal__who { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; min-width: 0; }
.tm-goal__who:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.tm-goal__name { display: flex; flex-direction: column; min-width: 0; }
.tm-goal__n { font-size: 0.9rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-goal__who:hover .tm-goal__n { text-decoration: underline; text-underline-offset: 3px; }
.tm-goal__meta { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.tm-goal__right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.tm-goal__period-chip { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.1em; color: var(--text-3); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 2px 7px; }
.tm-goal__status { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); border: 1px solid var(--hairline); color: var(--text-3); white-space: nowrap; }
.tm-goal[data-status="done"] .tm-goal__status { color: var(--band-high); border-color: color-mix(in oklab, var(--band-high) 45%, transparent); background: color-mix(in oklab, var(--band-high) 12%, transparent); }
.tm-goal[data-status="on-pace"] .tm-goal__status { color: var(--band-high); border-color: color-mix(in oklab, var(--band-high) 35%, transparent); }
.tm-goal[data-status="behind"] .tm-goal__status { color: var(--band-mid); border-color: color-mix(in oklab, var(--band-mid) 40%, transparent); background: color-mix(in oklab, var(--band-mid) 10%, transparent); }
.tm-goal__edit { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); background: var(--fill-subtle); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 5px 10px; cursor: pointer; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.tm-goal__edit:hover { background: var(--fill); color: var(--text); }
.tm-goal__edit[aria-expanded="true"] { color: var(--text); border-color: var(--hairline-strong); }
.tm-goal__edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.tm-goal__bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; }
.tm-gbar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.tm-gbar__l { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.tm-gbar__v { font-size: 0.78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tm-gbar__v b { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.tm-gbar__track { position: relative; height: 6px; border-radius: 99px; background: var(--fill); overflow: visible; }
.tm-gbar__fill { position: absolute; inset: 0; border-radius: 99px; transform-origin: left; background: var(--band-mid); transition: transform var(--dur-3) var(--ease); }
.tm-gbar[data-pace="on"] .tm-gbar__fill { background: var(--band-high); }
.tm-gbar[data-done="1"] .tm-gbar__fill { background: var(--band-high); box-shadow: 0 0 10px color-mix(in oklab, var(--band-high) 55%, transparent); }
/* the pace tick: where you'd be if you were exactly on schedule */
.tm-gbar__pace { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text-2); opacity: 0.7; }
.tm-gbar__pct { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.08em; color: var(--text-3); margin-top: 5px; text-align: right; }

.tm-goal__form { display: grid; grid-template-columns: auto repeat(3, minmax(90px, 1fr)) auto; align-items: end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.tm-goal__period { min-width: 140px; }
.tm-goal__field { display: flex; flex-direction: column; gap: 5px; }
.tm-goal__fl { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.tm-goal__input { padding: 9px 11px; box-shadow: none; }
.tm-goal__actions { display: inline-flex; gap: 6px; }
.tm-goal__btn { padding: 9px 13px; font-size: var(--text-sm); }
.tm-goal-section .tm-goal { background: var(--card-2); }
@media (max-width: 720px) {
  .tm-goal__form { grid-template-columns: 1fr 1fr; }
  .tm-goal__actions { grid-column: 1 / -1; }
  .tm-goal__head { flex-wrap: wrap; }
}

/* ---- team profile (reuses .adm-bar) + unassigned ---- */
.tm-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.tm-unassigned { display: flex; flex-direction: column; gap: 6px; }
.tm-unassigned__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--card-solid); color: var(--text-2); cursor: pointer; transition: border-color var(--dur-1) var(--ease); }
.tm-unassigned__row:hover { border-color: var(--hairline-strong); }
.tm-unassigned__id { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-unassigned__meta { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.tm-unassigned__avg { font-family: var(--font-display); font-weight: 300; font-size: 1.2rem; font-variant-numeric: tabular-nums; }

/* ============================================================
   REPORTING-LINES EDITOR (admin)
   ============================================================ */
.tm-roster__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.tm-roster { border: 1px solid var(--hairline); border-radius: var(--r-2xl); background: var(--card-solid); overflow: hidden; }
.tm-roster__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.tm-roster__row:last-child { border-bottom: 0; }
.tm-roster__who { display: flex; flex-direction: column; min-width: 0; }
.tm-roster__name { font-size: 0.9rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-roster__meta { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-roster__select { min-width: 220px; }

/* ---- notices + skeleton ---- */
.tm-caption { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-top: -6px; }
.tm-notice { padding: 40px 20px; text-align: center; border: 1px dashed var(--hairline-strong); border-radius: var(--r-2xl); }
.tm-notice__t { font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; color: var(--text); }
.tm-notice__h { font-size: 0.86rem; color: var(--text-3); margin-top: 8px; }
@keyframes tm-shimmer { from { opacity: 0.45; } to { opacity: 0.9; } }
.tm-skel { min-height: 118px; background: var(--card-2); border-color: var(--hairline); animation: tm-shimmer 0.9s ease-in-out infinite alternate; }
.tm-skel--tall { min-height: 320px; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  /* one column: the stacks dissolve and cards fall into reading order (--o) */
  .tm-cols { display: flex; flex-direction: column; align-items: stretch; }
  .tm-stack { display: contents; }
  .tm-cols .tm-card { order: var(--o, 0); }
  .tm-bento { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tm-tiles { grid-template-columns: 1fr 1fr; }
  .tm-dims { grid-template-columns: 1fr; }
  .team-head { align-items: flex-start; }
}
@media (max-width: 560px) {
  .tm-tiles { grid-template-columns: 1fr; }
  .tm-lb__row { grid-template-columns: 22px 30px minmax(0, 1fr) auto; }
  .tm-lb__row .tm-spark { display: none; }
  .tm-roster__select { min-width: 160px; }
}
