/* Insights tab (public/js/staff/views/insights*.js, docs/prd-insights.md).
 * The staff app is pinned dark (app.css); colours come from its tokens, and LIVE /
 * video use the TikTok Shop tab's pair so the two read the same. */

.ins-head { gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

/* ── period and filters ────────────────────────────────────────────────── */
.ins-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin-bottom: 14px;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.ins-f { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; color: var(--muted); }
.ins-f .input { padding: 5px 8px; font-size: 13px; color: var(--text); }
.ins-seg { display: flex; gap: 2px; }
.ins-seg .btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ins-dd { position: relative; }
.ins-dd > summary { list-style: none; cursor: pointer; user-select: none; }
.ins-dd > summary::-webkit-details-marker { display: none; }
.ins-dd > summary::after { content: ' ▾'; color: var(--muted); }
.ins-dd[open] > summary { border-color: var(--accent); }
/* A closed dropdown keeps no box: Chromium still lays out a closed <details>' contents,
   and a panel near the right edge then widens the page on a phone. */
.ins-dd:not([open]) > .ins-ddp { display: none; }
.ins-ddp {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 220px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px;
}
.ins-ddq { width: 100%; margin-bottom: 6px; padding: 5px 8px; font-size: 13px; }
.ins-ddl { max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.ins-ddl .check { padding: 3px 4px; border-radius: 6px; }
.ins-ddl .check:hover { background: var(--bg); }
.ins-ddl .check[hidden] { display: none; }
.ins-h { margin: 0 0 10px; }
.ins-help { margin: 0 0 10px; max-width: 760px; }

/* ── tiles ─────────────────────────────────────────────────────────────── */
.ins-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ins-tiles.ins-tiles3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ins-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.ins-tl { font-size: 12px; color: var(--muted); }
.ins-tile strong { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ins-ts { font-size: 12px; color: var(--muted); }
.ins-d { font-weight: 600; margin-right: 4px; }
.ins-tile.up .ins-d, .ins-up { color: var(--good); }
.ins-tile.down .ins-d, .ins-down { color: #e0705f; }

/* ── weekly chart ──────────────────────────────────────────────────────── */
.ins-card { margin-bottom: 12px; }
.ins-chart { margin: 0; --ins-live: var(--accent); --ins-video: #d95926; }
.ins-read {
  min-height: 20px; font-size: 13px; margin-bottom: 8px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.ins-plotwrap { position: relative; padding-left: 56px; }
.ins-plot { position: relative; height: 200px; border-bottom: 1px solid var(--border); }
.ins-gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border); pointer-events: none; }
.ins-axis { position: absolute; left: 0; top: 0; width: 48px; height: 200px; pointer-events: none; }
.ins-axis span {
  position: absolute; right: 0; transform: translateY(50%); white-space: nowrap;
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.ins-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.ins-bar {
  flex: 1 1 0; min-width: 0; height: var(--h); padding: 0; border: 0; border-radius: 3px 3px 0 0;
  background: none; cursor: pointer; display: flex; flex-direction: column; position: relative;
}
.ins-bar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; top: calc(-200px + 100%); }
.ins-bar .v { flex: 1 1 auto; background: var(--ins-video); border-radius: 3px 3px 0 0; }
.ins-bar .l { flex: 0 0 var(--live); background: var(--ins-live); }
.ins-bar.out  .v, .ins-bar.out  .l { opacity: .35; }
.ins-bar.prev .v, .ins-bar.prev .l { opacity: .6; }
.ins-bar.on .v, .ins-bar.on .l, .ins-bar:hover .v, .ins-bar:hover .l { opacity: 1; filter: brightness(1.15); }
.ins-bar:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ins-bars.dense { gap: 1px; }
.ins-bars.dense .ins-bar, .ins-bars.dense .ins-bar .v { border-radius: 1px 1px 0 0; }
.ins-ticks { display: flex; gap: 3px; margin-left: 56px; padding-top: 4px; }
.ins-ticks span { flex: 1 1 0; min-width: 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: visible; }
.ins-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0 56px; font-size: 12px; color: var(--muted); }
.ins-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ins-legend .k-live { background: var(--ins-live); }
.ins-legend .k-video { background: var(--ins-video); }
.ins-legend .k-cur { background: var(--text); }
.ins-legend .k-prev { background: var(--text); opacity: .55; }
.ins-legend .ins-unit { margin-left: auto; }

/* ── opportunities ─────────────────────────────────────────────────────── */
.ins-opps { margin-bottom: 4px; }
.ins-oppgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ins-opp {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
}
.ins-opp h4 { margin: 0; font-size: 14px; }
.ins-opp p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.ins-opp .link-btn { align-self: flex-start; font-size: 13px; margin: 0; }

/* ── tables and lists ──────────────────────────────────────────────────── */
.ins-tablewrap { overflow-x: auto; }
.ins-table th, .ins-table td { white-space: nowrap; }
.ins-table td:first-child, .ins-table .ins-who { white-space: normal; }
.ins-click { cursor: pointer; }
.ins-click:hover td, .ins-click:focus-visible td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ins-click:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ins-click.sel td { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ── brands (insights-brands.js) ───────────────────────────────────────────
   Columns sized by share so the bars fill a wide screen instead of leaving a gap
   after the shop name; under 1000px the table keeps its width and scrolls, with
   the shop name pinned. Bars are neutral: blue stays LIVE's colour. */
/* `clip`, not the base table's `hidden`: hidden makes the table its own scroll
   container, and the pinned shop name then scrolls away with the row. Separate
   borders: a collapsed one leaves a 1px seam beside a pinned cell where the
   scrolled figures show through. */
.ins-shops {
  --ins-live: var(--accent); --ins-video: #d95926; min-width: 1000px;
  overflow: clip; border-collapse: separate; border-spacing: 0;
}
.ins-shops col.c-shop { width: 23%; }
.ins-shops col.c-gmv  { width: 20%; }
.ins-shops col.c-chg  { width: 8%; }
.ins-shops col.c-n    { width: 7%; }
.ins-shops col.c-bar  { width: 13.5%; }
.ins-shops col.c-go   { width: 1%; }
/* Child selectors: an opened shop holds its pool's own table, which keeps its look. */
.ins-shops > tbody > tr > td { vertical-align: middle; }
.ins-shops > thead > tr > th { vertical-align: bottom; }
.ins-shops > thead > tr:first-child > th { padding-bottom: 4px; }
.ins-shops > thead > tr + tr > th { padding-top: 6px; }
.ins-shops th.ins-gh { text-align: center; }
.ins-shops .ins-sn .strong { font-weight: 600; }
.ins-shopcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ins-shoptext { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ins-sb { font-size: 12px; color: var(--muted); }
.ins-nil { color: var(--muted); opacity: .55; }

/* A shop's mark: its brand's logo on white (logos are drawn for light pages), over
   initials on a steady tint. No blue tint: blue stays LIVE's. */
.ins-logo {
  --tone: #94a3b8;
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; position: relative; overflow: hidden;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: color-mix(in srgb, var(--tone) 75%, var(--text));
  background: color-mix(in srgb, var(--tone) 18%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent);
}
.ins-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.ins-logo.lg { flex-basis: 40px; width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.ins-logo.t0 { --tone: #a78bfa; }
.ins-logo.t1 { --tone: #f472b6; }
.ins-logo.t2 { --tone: #f2b33d; }
.ins-logo.t3 { --tone: #34d399; }
.ins-logo.t4 { --tone: #a3d94a; }
.ins-logo.t5 { --tone: #94a3b8; }

.ins-meter { display: flex; align-items: center; gap: 10px; }
.ins-mv { flex: 0 0 auto; min-width: 58px; text-align: right; font-weight: 600; }
.ins-sv { flex: 0 0 auto; min-width: 34px; text-align: right; }
.ins-lv { flex: 0 0 auto; min-width: 72px; text-align: right; white-space: nowrap; }
.ins-lv span { color: var(--muted); margin: 0 3px; }
.ins-track {
  flex: 1 1 auto; min-width: 40px; max-width: 200px; height: 6px; display: flex;
  border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--text) 9%, transparent);
}
.ins-track i { display: block; height: 100%; min-width: 2px; border-radius: 3px;
  background: color-mix(in srgb, var(--text) 62%, transparent); }
.ins-track.ins-thin i { background: color-mix(in srgb, var(--text) 40%, transparent); }
.ins-split { max-width: 140px; }
.ins-split i { min-width: 0; border-radius: 0; }
.ins-split i.l { background: var(--ins-live); }
.ins-split i.v { flex: 1 1 auto; background: var(--ins-video); }

.ins-pill {
  display: inline-block; min-width: 52px; padding: 1px 8px; border-radius: 999px; text-align: center;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--muted); background: color-mix(in srgb, var(--text) 8%, transparent);
}
.ins-pill.up   { color: color-mix(in srgb, var(--good) 60%, var(--text)); background: color-mix(in srgb, var(--good) 20%, transparent); }
.ins-pill.down { color: #e0705f; background: color-mix(in srgb, #e0705f 16%, transparent); }

.ins-shops .ins-go { padding-left: 0; padding-right: 12px; text-align: right; color: var(--muted); opacity: .4; font-size: 16px; }
.ins-click:hover .ins-go, .ins-click:focus-visible .ins-go, .ins-click.sel .ins-go { opacity: 1; color: var(--text); }
@media (max-width: 1000px) {
  .ins-shops .ins-sn { position: sticky; left: 0; z-index: 1; background: var(--surface);
    box-shadow: inset -1px 0 0 var(--border); }
  .ins-shops .ins-click:hover .ins-sn { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
  .ins-shops .ins-click.sel .ins-sn { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
}
/* On a phone the pinned name keeps to ~40% of the screen, so the figures beside it show. */
@media (max-width: 600px) {
  .ins-shops { min-width: 900px; }
  .ins-shops col.c-shop { width: 160px; }
  .ins-shops .ins-sn { padding-left: 10px; padding-right: 8px; }
  /* A set width (a cell's own min-width doesn't hold in a table), the name in two
     lines at most, and no brand line: it shows when the row is opened. */
  .ins-shops .ins-shopcell { gap: 8px; width: 142px; }
  .ins-shops .ins-shoptext .strong {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden; overflow-wrap: break-word;
  }
  .ins-shops .ins-sb { display: none; }
  .ins-shops .ins-logo { flex-basis: 26px; width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }
}

/* ── a shop opened under its row ───────────────────────────────────────────
   One cell across the table, tinted like the row it belongs to. Its content
   keeps to the width you can see (the table's wrapper is a size container) and
   is pinned left, so on a narrow screen it stays put while the figures above
   scroll sideways. The pool scrolls inside, its header pinned, so a long pool
   doesn't push the rest of the shops off the page. */
.ins-shopwrap { container-type: inline-size; }
.ins-shops > tbody > tr.ins-click.sel > td { border-bottom-color: transparent; }
.ins-shops > tbody > tr.ins-xrow > td {
  padding: 0; white-space: normal; vertical-align: top;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.ins-x {
  position: sticky; left: 0; box-sizing: border-box; width: min(100%, calc(100cqw - 2px));
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 16px 16px; font-size: 13px;
}
@container (max-width: 760px) { .ins-x { padding: 12px; } }
.ins-shops .ins-go span { display: inline-block; transition: transform .15s ease; }
.ins-shops [aria-expanded="true"] .ins-go span { transform: rotate(90deg); }

/* The summary across the top: the chart takes what the figures leave, the figures
   beside it in one line; narrower, two by two; narrower still, under the chart. */
.ins-xs {
  min-width: 0; display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 14px 40px;
  align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.ins-xs-chart, .ins-xs-figs { min-width: 0; }
.ins-xs-brand { display: none; margin: 0 0 6px; font-weight: 600; }
.ins-xs-brand.none { display: block; font-weight: 400; color: var(--muted); font-style: italic; }
@container (max-width: 760px) { .ins-xs-brand { display: block; } }
.ins-xs-sub { display: flex; flex-direction: column; gap: 1px; margin: 0; font-size: 12px; color: var(--muted); }
.ins-xs-sub strong { color: var(--text); font-weight: 600; font-size: 13px; }
.ins-xs-spark {
  display: flex; align-items: flex-end; gap: 2px; height: 64px; margin-top: 10px;
  border-bottom: 1px solid var(--border);
}
.ins-xs-spark span { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 2px 2px 0 0; overflow: hidden; }
.ins-xs-spark i { display: block; flex-basis: 0; min-height: 0; }
.ins-xs-spark i.l { background: var(--ins-live); }
.ins-xs-spark i.v { background: var(--ins-video); }
.ins-xs-ticks { display: flex; justify-content: space-between; margin-top: 3px; font-size: 11px; color: var(--muted); }
.ins-xs-none { margin: 10px 0 0; color: var(--muted); }
.ins-xs-grid { display: grid; grid-template-columns: repeat(4, max-content); gap: 10px 32px; margin: 0; }
@container (max-width: 1000px) { .ins-xs-grid { grid-template-columns: repeat(2, max-content); } }
@container (max-width: 640px) {
  .ins-xs { grid-template-columns: minmax(0, 1fr); }
  .ins-xs-grid { grid-template-columns: 1fr 1fr; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--border); }
}
.ins-xs-grid dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ins-xs-grid dd { margin: 1px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ins-xs-grid dd span { color: var(--muted); font-weight: 400; margin-left: 2px; }
.ins-xs-grid .k { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.ins-xs-grid .k-live { background: var(--ins-live); }
.ins-xs-grid .k-video { background: var(--ins-video); }
.ins-xs-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* The pool under it at full width; Close shares the tabs' line, the tabs scrolling
   sideways rather than wrapping when the line is short. */
.ins-xp { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.ins-xp > * { grid-column: 1 / -1; }
.ins-xp > .ins-ltabs { grid-column: 1; grid-row: 1; margin: 0; }
.ins-xp > .ins-xclose { grid-column: 2; grid-row: 1; }
.ins-xp .ins-selbar { margin: 8px 0; }
.ins-xp .ins-tablewrap { max-height: min(440px, 60vh); overflow: auto; border-radius: var(--radius); }
/* `clip`, not `hidden`, so the header can pin to the scrolling wrapper above. */
.ins-xp .ins-table { overflow: clip; }
.ins-xp .ins-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--border); }
.ins-xp .ins-ltabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ins-xp .ins-ltabs .tab { flex: 0 0 auto; white-space: nowrap; }
@container (max-width: 640px) {
  .ins-xp > .ins-ltabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
/* Scrolled to, a row clears the sticky top bar and its opened part the window's edge. */
.ins-shops > tbody > tr { scroll-margin-top: 70px; }
.ins-shops > tbody > tr.ins-xrow { scroll-margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .ins-shops .ins-go span { transition: none; } }

/* ── the gap ───────────────────────────────────────────────────────────── */
.ins-share { display: inline-block; vertical-align: middle; width: 90px; height: 6px; margin-right: 6px;
  background: var(--bg); border-radius: 3px; overflow: hidden; }
.ins-share i { display: block; height: 100%; background: var(--accent); }
.ins-gaphead { margin-top: 18px; }
.ins-gaphead .ins-h { margin: 0; }
.ins-hide { margin: 8px 0 10px; }
.ins-gapshops { margin-top: 22px; }

/* ── creators ──────────────────────────────────────────────────────────── */
.ins-ctools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.ins-ctools input[type=search] { flex: 1 1 240px; max-width: 360px; }
.ins-inline { flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; }
.ins-ctable { margin-top: 0; }
/* The name and its why-line get the room; Brands wraps instead (its 9th cell,
   after the tick, the creator and seven figures). */
.ins-ctable .ins-who { min-width: 320px; }
.ins-ctable td:nth-child(9) { white-space: normal; min-width: 150px; max-width: 220px; }
@media (max-width: 720px) { .ins-ctable .ins-who { min-width: 240px; } }
.ins-focusnote { margin: 0 0 10px; font-size: 13px; padding: 8px 12px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ins-focusnote .link-btn { font-size: 13px; margin-left: 6px; }
.ins-prospects .ins-who .link-btn { margin-right: 4px; }
.ins-tt-out { text-decoration: none; margin-right: 6px; color: var(--muted); }
.ins-tt-out:hover { color: var(--accent); }
.ins-more { margin: 8px 0 0; }
.ins-who .link-btn { font-size: 14px; color: var(--text); font-weight: 600; margin-right: 6px; text-align: left; }
.ins-who .link-btn:hover { color: var(--accent); text-decoration: underline; }
.ins-note { font-size: 12px; color: var(--muted); }
.ins-table .ck { width: 32px; }

.ins-list { margin-top: 14px; scroll-margin-top: 70px; }
.ins-lhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ins-lhead .sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.ins-ltabs { margin: 10px 0; }
.ins-tabs { flex-wrap: wrap; }                    /* five tabs don't fit a phone in one row */
.ins-n { font-variant-numeric: tabular-nums; opacity: .75; margin-left: 2px; }
.ins-selbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; font-size: 13px; }

/* ── cohorts ───────────────────────────────────────────────────────────── */
.ins-cohorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ins-cohort {
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--border);
}
.ins-cohort:hover { border-color: var(--muted); }
.ins-cohort:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ins-cohort strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.ins-cl { font-weight: 600; font-size: 13px; }
.ins-cs { font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; min-height: 18px; }
.ins-ch { font-size: 12px; color: var(--muted); }
.ins-c-new, .ins-c-rising, .ins-c-back { border-left-color: var(--good); }
.ins-c-steady { border-left-color: var(--accent); }
.ins-c-slipping, .ins-c-lapsed { border-left-color: #e0705f; }
.ins-c-elsewhere { border-left-color: #c98500; }

@media (max-width: 900px) {
  .ins-tiles, .ins-tiles.ins-tiles3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ins-tiles, .ins-tiles.ins-tiles3 { grid-template-columns: minmax(0, 1fr); }
  .ins-ddp { position: fixed; left: 16px; right: 16px; top: auto; max-width: none; }
  .ins-read { white-space: normal; min-height: 40px; }
  .ins-plotwrap { padding-left: 44px; }
  .ins-ticks, .ins-legend { margin-left: 44px; }
  .ins-axis { width: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .ins-list { scroll-behavior: auto; }
}

/* ── a seller not in CreatorTrack (insights-prospect.js) ───────────────────
   The creator panel's TikTok Shop tab in a wider drawer; with the room, its
   glance goes in one row and its cards in two columns, as at full width. */
.ins-pdrawer { width: min(900px, 100%); }
.ins-pbar { font-size: 12px; color: var(--muted); padding-left: 6px; }
.ins-phead { flex-wrap: wrap; }
.ins-pwho { flex: 1 1 260px; min-width: 0; }
.ins-phead .ins-pacts { margin-left: auto; }
/* a face beside each name in the lists: the roster's own size */
.ins-table .cl-who { align-items: flex-start; }
.ins-table .ins-ava { margin-top: 1px; }
.ins-phead h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.ins-phead p { margin: 4px 0 0; }
.ins-pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ins-pchips a.chip { text-decoration: none; color: var(--accent); }
.ins-pacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.ins-pacts a.btn { text-decoration: none; }
@media (min-width: 900px) {
  .ins-pdrawer .cp-tt-glance .cp-tt-grid2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ins-pdrawer .cp-tt-pair { display: block; columns: 2; column-gap: 20px; margin-bottom: -16px; }
  .ins-pdrawer .cp-tt-pair.one { columns: 1; }
  .ins-pdrawer .cp-tt-pair > .cp-tt-card { break-inside: avoid; margin: 0 0 16px; }
}
